OSDN Git Service

* config/rs6000/rs6000.c (processor_target_table): Add
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2
3         * config/rs6000/rs6000.c (processor_target_table): Add
4         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
5
6 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7
8         PR target/36827
9         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
10         (m32c_legitimate_address_p): Handle "++rii" addresses created by
11         m32c_legitimize_reload_address.
12
13 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
14
15        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
16        DECL_IN_SYSTEM_HEADER in sync.
17
18 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
19
20         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
21         * tree-ssa-pre.c (pre_expr_eq): Ditto
22         (get_constant_for_value_id): Take a type as an argument.
23         (fully_constant_expression): Pass in type.
24         (find_or_generate_expression): Short circuit constant case.
25         (create_expression_by_pieces): Remove special casing of
26         pointer_plus.
27         (do_regular_insertion): Short circuit constant case.
28         (do_partial_partial_insertion): Ditto.
29
30 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
31
32         PR target/36782
33         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
34
35 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
36         
37         * config/xtensa/libgcc-xtensa.ver: New file.
38         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
39         
40 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
41
42         * df-problems.c (df_set_note): Avoid C++ keywords.
43         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
44         * dse.c (record_store, remove_useless_values): Likewise.
45         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
46         gen_reg_rtx_offset, operand_subword, change_address_1,
47         change_address, adjust_address_1, offset_address,
48         widen_memory_access, emit_copy_of_insn_after): Likewise.
49         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
50         * fwprop.c (should_replace_address, propagate_rtx_1,
51         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
52         Likewise.
53         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
54         gcse_emit_move_after, update_ld_motion_stores): Likewise.
55         * lcm.c (compute_insert_delete, pre_edge_lcm,
56         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
57         * lower-subreg.c (resolve_reg_notes): Likewise.
58         * mode-switching.c (optimize_mode_switching): Likewise.
59
60 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
61
62         * bt-load.c (add_btr_def, migrate_btr_def,
63         branch_target_load_optimize): Avoid C++ keywords.
64         * caller-save.c (insert_restore, insert_save, insert_one_insn):
65         Likewise.
66         * combine.c (subst, simplify_set, make_extraction,
67         make_compound_operation, known_cond, simplify_shift_const_1):
68         Likewise.
69         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
70         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1):
71         Likewise.
72
73 2008-07-15  Richard Guenther  <rguenther@suse.de>
74
75         PR middle-end/36369
76         * c-common.c (strict_aliasing_warning): Do not warn for
77         TYPE_REF_CAN_ALIAS_ALL pointers.
78         (c_common_get_alias_set): may_alias types are not special.
79         * tree.c (build_pointer_type_for_mode): Look up the may_alias
80         attribute and set can_ref_all accordingly.
81         (build_reference_type_for_mode): Likewise.
82         * doc/extend.texi (may_alias): Clarify.
83
84 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
85
86         PR target/36780
87         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
88         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
89
90 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
91
92         PR target/31568
93         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
94         gcc_assert, instead call output_operand_lossage.
95
96 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
97
98         * builtins.c (std_canonical_va_list): Treat structure based
99         va_list types.
100
101 2008-07-15  Ben Elliston  <bje@au.ibm.com>
102
103         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
104
105 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
106
107         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
108         is set.
109
110 2008-07-14  Jan Hubicka  <jh@suse.cz>
111
112         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
113         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
114         fix predicates and constraints.
115         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
116         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
117
118 2008-07-14  Doug Kwan  <dougkwan@google.com>
119
120         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
121         additional option file arm/eabi.opt.
122         * config/arm/eabi.h (File): New configuration file for EABI targets.
123         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
124         SUBSUBTARGET_EXTRA_SPECS.
125         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
126         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
127         from STARTFILE_SPEC so that it can be referenced in an override.
128         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
129         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
130         can be referenced in an override.
131         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
132         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
133         so that it can be referenced in an override.
134         (LINK_SPEC): Use BPABI_LINK_SPEC.
135         * config/arm/eabi.opt (File): New.
136
137 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
138
139         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
140         (FIXED_VALUE_H): New variable.
141         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
142         input.h, fixed-value.h.
143         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
144         (BASIC_BLOCK_H): Use $(BITMAP_H).
145         (FUNCTION_H): Add varray.h.
146         (IPA_REFERENCE_H): Use $(BITMAP_H).
147         (CGRAPH_H): Add $(BASIC_BLOCK_H).
148         (DF_H): Use $(BITMAP_H).
149         (GGC_H): Add statistics.h.
150         (INSN_ADDR_H): New.
151         (INSN_ATTR_H): Use it.
152         (SYSTEM_H): Add safe-ctype.h, filenames.h.
153         (INPUT_H): New.
154         (SYMTAB_H): Add $(OBSTACK_H).
155         (CPP_INTERNAL_H): New.
156         (TREE_DUMP_H): Add tree-pass.h.
157         (TREE_FLOW_H): Use $(BITMAP_H)
158         (PRETTY_PRINT_H): Use $(INPUT_H).
159         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
160         (GSTAB_H): New.
161         (BITMAP_H): New.
162         (many object files): Fix lots of header dependencies throughout.
163
164 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
165
166         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
167         New macros.
168         (s-gtyp-input): Use them to write tmp-gi.list.
169         (echo_to_gi.list): Remove.
170
171 2008-07-14  Richard Guenther  <rguenther@suse.de>
172
173         * tree-ssa-sccvn.c (pre_info): Remove.
174         (switch_to_PRE_table): Likewise.
175         (free_scc_vn): Do not clear SSA_NAME_VALUE.
176         Do not free pre_info.
177         (set_hashtable_value_ids): Do not create value-ids for the
178         optimistic tables.
179         (run_scc_vn): Remove double test.  Remove bogus special-case
180         in value-number printing.
181         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
182         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
183         SSA_NAME_VALUE.
184         * tree-flow-inline.h (get_value_handle): Remove.
185         * tree-flow.h (get_value_handle): Remove.
186
187 2008-07-14  Martin Jambor  <mjambor@suse.cz>
188
189         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
190         in which we generate arithmetics is not a subrange.
191
192 2008-07-14  Martin Jambor  <mjambor@suse.cz>
193
194         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
195
196 2008-07-14  Richard Guenther  <rguenther@suse.de>
197
198         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call
199         convert.
200
201 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
202
203         PR target/36745
204         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
205         reload for symbol refs moved to r0 with -fPIC.
206         (legitimize_pic_address): Use the target register as temporary
207         reg if possible.
208         (emit_symbolic_move): Adjust comment.
209         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
210         New expanders.
211
212 2008-07-14  Ben Elliston  <bje@au.ibm.com>
213
214         * c-common.h (C_CPP_HASHNODE): New macro.
215         * coretypes.h (struct cpp_token): Forward declare.
216         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
217         the context-sensitive keyword method.
218         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
219         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
220         expand_bool_pixel): New.
221         (altivec_categorize_keyword): New function.
222         (init_vector_keywords): New function.
223         (rs6000_macro_to_expand): Likewise.
224         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
225         compiling an ISO C dialect.
226
227 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
228
229         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert
230         calls.
231         (create_expression_by_pieces): Fix typo.
232         (do_regular_insertion): Use debug counter here too.
233
234 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
235
236         PR target/35492.
237         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
238         CONST_OK_FOR_LETTER_P.  All port-local users changed.
239         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
240         implement Kp matching power-of-two.
241         (CONSTRAINT_LEN): Define to match.
242         * config/cris/cris.md: Replace all use of constraint K with Kc.
243         ("*btst*): Use Kp for operand 0 of last alternative.
244
245 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
246
247         PR testsuite/36440
248         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
249         and quad formats.
250
251 2008-07-13  Jan Hubicka  <jh@suse.cz>
252
253         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
254         to be mangled too.
255
256 2008-07-13  Richard Guenther  <rguenther@suse.de>
257
258         PR middle-end/36811
259         * langhooks.c (lhd_print_error_function): Deal with recursive
260         BLOCK trees.
261
262 2008-07-12  Jan Hubicka  <jh@suse.cz>
263
264         * cgraph.c (assembler_name_hash): New static var.
265         (hash_node_by_assembler_name, eq_assembler_name): New.
266         (cgraph_node_for_asm): Use hashtable.
267         (cgraph_remove_node): Maintain hashtable.
268         (change_decl_assembler_name): Sanity check that names are not changing
269         after aliasing was processed.
270         * cgraph.h (varpoon_node): Add next GGC marker.
271         * tree.c (decl_assembler_name_equal): Constify.
272         (decl_assembler_name_hash): New.
273         * tree.h (decl_assembler_name_equal): Constify.
274         (decl_assembler_name_hash): Update.
275
276 2008-07-12  David Daney  <ddaney@avtrex.com>
277
278         * config/mips/driver-native.c (host_detect_local_cpu): Handle
279         sb1 and r5000 cpus.
280
281 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
282
283         * doc/md.texi: Document the MIPS "v" constraint.
284         * config/mips/mips.h (reg_class): Revert last change.
285         (REG_CLASS_NAMES): Likewise.
286         (REG_CLASS_CONTENTS): Likewise.
287         * config/mips/mips.c (mips_regno_to_class): Likewise.
288         * config/mips/constraints.md (v): Likewise, but add documentation.
289         Add a comment to say that this constraint should not be used in
290         gcc code.
291
292 2008-07-11  DJ Delorie  <dj@redhat.com>
293
294         * config/h8300/h8300.md (length): Fix branch offset limit.
295
296 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
297
298         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
299         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
300         (avr_hard_regno_scratch_ok): New function.
301         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
302         * config/avr/avr.md (all peepholes that request a scratch register):
303         Remove avr_peep2_scratch_safe use.
304
305 2008-07-11  Tom Tromey  <tromey@redhat.com>
306             Ian Lance Taylor  <iant@google.com>
307
308         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
309         (struct c_common_resword): Define.
310         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
311         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
312         (c_common_reswords, num_c_common_reswords): Declare.
313         * c-common.c (c_common_reswords): New global const array.
314         (num_c_common_reswords): New const int.
315         * c-parser.c (struct resword, reswords): Don't define.
316         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
317         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
318         than reswords.  If warning about C++ keywords, give them a special
319         RID code.
320         (c_lex_one_token): Warn about C++ keywords.  Call
321         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
322         (c_parser_external_declaration): Look for RID_xxx rather than
323         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
324         (c_parser_statement_after_labels): Likewise.
325         (c_parser_objc_class_instance_variables): Likewise.
326         (c_parser_objc_class_declaration): Likewise.
327         (c_parser_objc_try_catch_statement): Likewise.
328         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
329         (declspecs_add_type): Likewise.
330
331 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
332
333         * ggc-page.c (alloc_page):
334         Substituting xmalloc, xcalloc with
335         XNEWVEC and XCNEWVAR macros which add the
336         needed casts.
337
338 2008-07-11  Richard Guenther  <rguenther@suse.de>
339
340         PR tree-optimization/36765
341         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
342         aliases from HEAP vars to SMTs.
343
344 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
345
346         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
347         * configure.ac (loose_warn): Move -Wc++-compat from here...
348         (strict_warn): ...to here.
349         * configure: Regenerate.
350
351 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
352
353         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
354         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
355         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
356         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
357         excluding more specific h8300-*-* and sh-*-* targets.
358
359 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
360
361         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert
362         calls.
363         (eliminate): Ditto.
364         (execute_pre): Call loop_optimizer_finalize in early exit.
365
366 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
367
368         PR middle-end/36790
369         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
370         uids in the bitmap, not just VAR_DECL uids.
371
372         PR rtl-optimization/36419
373         * combine-stack-adj.c (adjust_frame_related_expr): New function.
374         (combine_stack_adjustments_for_block): Call it if needed.  Delete
375         correct insn.
376         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
377         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
378         prologue sp adjustment.
379
380 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
381
382         PR other/28322
383         * opts.c (print_ignored_options): Report postponed diagnostics for
384         unknown -Wno-* options as warnings, not errors.
385         (postpone_unknown_option_error): Renamed to...
386         (postpone_unknown_option_warning): ... this.
387
388 2008-07-09  Doug Kwan  <dougkwan@google.com>
389
390         Revert:
391         2008-07-08  Doug Kwan  <dougkwan@google.com>
392
393         * config/arm/arm.opt (mandroid): New option.
394         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
395         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
396         (CC1_SPEC): Same.
397         (CC1PLUS_SPEC): Same.
398         (LIB_SPEC): Same.
399         (STARTFILE_SPEC): Same.
400         (ENDFILE_SPEC): Same.
401         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
402         used.
403
404 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
405
406         PR target/35802
407         * config/mips/mips.h (reg_class): Remove V1_REG.
408         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
409         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
410         instead of V1_REGS.
411         (mips_get_tp): New function.
412         (mips_legitimize_tls_address): Use it.
413         * config/mips/constraints.md (v): Delete.
414         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
415         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
416         After reload, split into a move and ...
417         (*tls_get_tp_<mode>_split): ...this new instruction.
418
419 2008-07-09  David Daney  <ddaney@avtrex.com>
420
421         * config/mips/driver-native.c: Include coretypes.h and tm.h.
422
423 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
424
425         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
426         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
427         Add c argument.
428         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
429         htab_delete should be called.  Don't free c.
430         (lookup_tmp_var): Create temp_htab lazily.
431         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
432         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
433         callers.
434         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
435         lower_omp_ordered, lower_omp_critical, lower_omp_for,
436         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
437         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
438         * tree-sra.c (generate_element_init): Likewise.
439         * tree-mudflap.c (execute_mudflap_function_ops,
440         execute_mudflap_function_decls): Likewise.
441         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
442         * tree-gimple.h (struct gimplify_ctx): New type.
443         (push_gimplify_context): Adjust prototype.
444
445 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
446
447         * tree-ssa-pre.c (phi_translate_1): Update placement of
448         add_to_value calls.
449
450 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
451
452         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
453         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
454         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
455         * targhooks.c (default_hard_regno_scratch_ok): New function.
456         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
457         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
458         * recog.c:  Include "target.h".
459         (peep2_find_free_register): Add check for global regs. Add target
460         specific check.
461         * Makefile.in (recog.o): Depend on target.h.
462
463 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
464
465         * config/sh/sh.c (sh_canonical_va_list_type): New.
466         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
467
468 2008-07-09  Raksit Ashok <raksit@google.com>
469
470         * doc/invoke.texi (Option Summary): Mention new option
471         -Wdisallowed-function-list=...
472         (Warning Options): Document -Wdisallowed-function-list=...
473         * common.opt (Wdisallowed-function-list=): New flag.
474         * flags.h (warn_disallowed_functions): External definition of new
475         boolean warning flag.
476         (warn_if_disallowed_function_p): Declare new function.
477         * opts.c (warning_disallowed_functions): New static variable.
478         (warn_disallowed_functions): New boolean warning flag.
479         (warn_if_disallowed_function_p): New function.
480         (add_comma_separated_to_vector): Rename
481         add_instrument_functions_exclude_list to this.
482         (common_handle_option): Handle new option. Rename calls to
483         add_instrument_functions_exclude_list into calls to
484         add_comma_separated_to_vector.
485         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
486         based on flag warn_disallowed_functions.
487
488 2008-07-09  Christian Bruel  <christian.bruel@st.com>
489
490         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
491          instead of get_attr_length.
492
493 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
494
495         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
496         keywords.
497         * genemit.c (gen_insn): Likewise.
498         * gengtype.c (note_def_vec): Likewise.
499         * gengtype.h (note_def_vec): Likewise.
500         * genoutput.c (struct data, output_insn_data, process_template,
501         gen_expand, gen_split, note_constraint): Likewise.
502         * genrecog.c (new_decision, add_to_sequence, factor_tests,
503         make_insn_sequence): Likewise.
504         * gensupport.c (record_insn_name): Likewise.
505
506 2008-07-08  Doug Kwan  <dougkwan@google.com>
507
508         * config/arm/arm.opt (mandroid): New option.
509         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
510         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
511         (CC1_SPEC): Same.
512         (CC1PLUS_SPEC): Same.
513         (LIB_SPEC): Same.
514         (STARTFILE_SPEC): Same.
515         (ENDFILE_SPEC): Same.
516         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
517         used.
518
519 2008-07-08  Raksit Ashok  <raksit@google.com>
520
521         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
522         (set_storage_via_setmem): Fix expected_align parameter.
523         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
524         missing from the list.
525         * doc/md.texi (movmem): Explicitly state that expected alignment is
526         to be expressed in bytes.
527         (setmem): Explicitly state that expected alignment is to be expressed
528         in bytes.
529
530 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
531
532         * reload.c (find_reloads_subreg_address): Do not require validity
533         of address in original mode before reloading address.
534
535 2008-07-07  Tianwei Sheng  <tianweis@google.com>
536
537         * df-core.c (df_remove_problem): Adjust the access to avoid out of
538         bounds array access.
539
540 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
541
542         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
543         dst.
544
545 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
546         
547         Fix PR tree-optimization/23455
548         Fix PR tree-optimization/35286
549         Fix PR tree-optimization/35287
550         * Makefile.in (OBJS-common): Remove tree-vn.o.
551         tree-vn.o: Remove.
552         * dbgcnt.def: Add treepre_insert debug counter.
553         * gcc/tree-flow.h (add_to_value): Updated for other changes.
554         (debug_value_expressions): Ditto.
555         (print_value_expressions): Ditto.
556         * tree-pretty-print.c (dump_generic_node): Updated for
557         VALUE_HANDLE removal.
558         * tree-ssa-dom.c (record_equality): Ditto.
559         (cprop_operand): Ditto.
560         (lookup_avail_expr): Ditto.
561         * tree-ssa-threadedge.c
562         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
563         (simplify_control_stmt_condition): Ditto.
564         * tree.c (tree_code_size): Ditto.
565         (tree_node_structure): Ditto.
566         (iterative_hash_expr): Ditto.
567         * tree.def: Ditto.
568         * tree.h (VALUE_HANDLE_ID): Ditto.
569         (VALUE_HANDLE_EXPR_SET): Ditto.
570         (struct tree_value_handle): Ditto.
571         (union tree_node): Ditto.
572         * treestruct.def: Ditto.
573         * tree-vn.c: Removed.
574         * tree-ssa-pre.c: Rewritten entirely.
575         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
576         (constant_value_ids): Ditto.
577         (vn_nary_op_t): Moved to header.
578         (vn_phi_t): Ditto.
579         (vn_reference_op_t): Ditto
580         (vn_reference_t): Ditto.
581         (next_value_id): New variable.
582         (VN_INFO): Add an assert.
583         (vn_constant_eq): New function.
584         (vn_constant_hash): Ditto.
585         (get_or_alloc_constant_value_id): Ditto.
586         (value_id_constant_p): Ditto.
587         (vn_reference_compute_hash): De-staticify.
588         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
589         Disable some code with a FIXME.
590         Remove VALUE_HANDLE use.
591         (valueize_refs): Update opcode if it changes from ssa name to
592         constant.
593         (vn_reference_lookup_1): Add new argument.
594         (vn_reference_lookup):  Ditto.
595         (vn_reference_lookup_pieces): New function.
596         (vn_reference_insert): Add return type. Modify to deal with value
597         ids.
598         (vn_reference_insert_pieces):  New function.
599         (vn_nary_op_compute_hash): De-staticify.
600         (vn_nary_op_eq): Ditto.
601         (vn_nary_op_lookup_pieces): New function.
602         (vn_nary_op_lookup): Add new argument.  
603         (vn_nary_op_insert_pieces): New function.
604         (vn_nary_op_insert): Add return type. Modify to deal with value
605         ids.
606         (vn_phi_insert): Ditto.
607         (visit_unary_op): Update for callee changes.
608         (visit_binary_op): Ditto.
609         (visit_reference_op_load): Ditto.
610         (visit_reference_op_store): Ditto.
611         (init_scc_vn): Init next_value_id, constant_to_value_id and
612         constant_value_ids. 
613         (free_scc_vn): Free them.
614         (set_hashtable_value_ids): New function.
615         (run_scc_vn): Use it.
616         (get_max_value_id): New function.
617         (get_next_value_id): Ditto.
618         (expressions_equal_p): Moved from tree-vn.c
619         (sort_vuses): Ditto.
620         (sort_vuses_heap): Ditto.
621         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
622         above).
623         * tree.c (iterative_hash_hashval_t): Made non-static
624         * tree.h (iterative_hash_hashval_t): Declare it.
625         
626 2008-07-08  Martin Jambor  <mjambor@suse.cz>
627
628         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
629         instead of ipa_create_node_params.
630         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
631         ipa_check_create_edge_args, free them with
632         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
633
634         * ipa-prop.c: Include flags.h and tree-inline.h.
635         (ipa_node_params_vector): New variable.
636         (ipa_edge_args_vector): New variable.
637         (edge_removal_hook_holder): New variable.
638         (node_removal_hook_holder): New variable.
639         (edge_duplication_hook_holder): New variable.
640         (node_duplication_hook_holder): New variable.
641         (ipa_detect_param_modifications): Check for presence of modified flags.
642         (ipa_compute_jump_functions): Check for presence of jump functions.
643         (ipa_free_edge_args_substructures): New function.
644         (ipa_create_node_params): Removed.
645         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
646         (ipa_free_node_params_substructures): New function.
647         (ipa_free_all_node_params): Changed to deallocate the on-the-side
648         vector.
649         (ipa_edge_removal_hook): New function.
650         (ipa_node_removal_hook): New function.
651         (duplicate_array): New function.
652         (ipa_edge_duplication_hook): New function.
653         (ipa_node_duplication_hook): New function.
654         (ipa_register_cgraph_hooks): New function.
655         (ipa_unregister_cgraph_hooks): New function.
656         (free_all_ipa_structures_after_ipa_cp): New function.
657         
658         * ipa-prop.h: Include vec.h.
659         (ipa_node_params_t): New typedef with vector types for it.
660         (ipa_edge_args_t):  New typedef with vector types for it.
661         (IPA_NODE_REF): Changed to access an on-the-side vector.
662         (IPA_EDGE_REF): Changed to access an on-the-side vector.
663         (ipa_check_create_node_params): New function.
664         (ipa_check_create_edge_args): New function.
665         
666         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
667         all users.
668         
669 2008-07-07  Tom Tromey  <tromey@redhat.com>
670
671         * configure, config.in: Rebuilt.
672         * configure.ac: Don't check for scandir or alphasort.
673
674 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
675
676         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
677         types immediately after creating them.
678
679 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
680
681         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
682
683 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
684
685         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
686         dump_constraint_graph.
687         (dump_constraint_edge): New function.
688         (dump_constraint_graph): New function.
689         (debug_constraint_graph): New function.
690         (dump_constraint): Removed useless comparison.
691         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
692         (dump_constraint_graph): Declare.
693         (debug_constraint_graph): Declare.
694         * tree-dump.c (struct dump_option_value_info): Declare
695         TDF_GRAPH.
696
697 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
698
699         * config/i386/i386.c (is_va_list_char_pointer): New.
700         (ix86_va_start): Replace compare with ms_va_list_type_node
701         by is_va_list_char_pointer.
702         (ix86_gimplify_va_arg): Likewise.
703
704 2008-07-07  Martin Jambor  <mjambor@suse.cz>
705
706         * cgraph.c (cgraph_edge_max_uid): New variable.
707         (struct cgraph_edge_hook_list): New type.
708         (struct cgraph_node_hook_list): New type.
709         (struct cgraph_2edge_hook_list): New type.
710         (struct cgraph_2node_hook_list): New type.
711         (first_cgraph_edge_removal_hook): New variable.
712         (first_cgraph_node_removal_hook): New variable.
713         (first_cgraph_edge_duplicated_hook): New variable.
714         (first_cgraph_node_duplicated_hook): New variable.
715         (cgraph_add_edge_removal_hook): New function.
716         (cgraph_remove_edge_removal_hook): New function.
717         (cgraph_call_edge_removal_hooks):  New function.
718         (cgraph_add_node_removal_hook):  New function.
719         (cgraph_remove_node_removal_hook):  New function.
720         (cgraph_call_node_removal_hooks):  New function.
721         (cgraph_add_edge_duplication_hook):  New function.
722         (cgraph_remove_edge_duplication_hook):  New function.
723         (cgraph_call_edge_duplication_hooks):  New function.
724         (cgraph_add_node_duplication_hook):  New function.
725         (cgraph_remove_node_duplication_hook):  New function.
726         (cgraph_call_node_duplication_hooks):  New function.
727         (cgraph_create_edge): Assign to edge uid.
728         (cgraph_remove_edge): Call edge removal hooks.
729         (cgraph_node_remove_callees): Call edge removal hooks.
730         (cgraph_node_remove_callers): Call edge removal hooks.
731         (cgraph_remove_node): Call node removal hooks.
732         (cgraph_clone_edge): Call edge duplication hooks.
733         (cgraph_clone_node): Call node duplication hooks.
734
735         * cgraph.h (cgraph_edge): New field uid.
736         (cgraph_edge_hook): New type.
737         (cgraph_node_hook): New type.
738         (cgraph_2edge_hook): New type.
739         (cgraph_2node_hook): New type.
740
741 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
742
743         * config.in: Regenerate.
744
745 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
746
747         * gcc.c (print_sysroot): New.
748         (option_map, display_help, process_command): Handle the
749         -print-sysroot option.
750         (main): Print the sysroot if requested.
751         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
752         
753 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
754
755         PR target/34780
756         * unwind-pe.h (size_of_encoded_value): add attribute unused.
757
758 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
759
760         * function.c (assign_parm_remove_parallels): Check mode of
761         entry_parm.
762         (assign_parm_setup_block_p): Also check mode of entry_parm.
763
764 2008-07-07  Richard Guenther  <rguenther@suse.de>
765
766         * tree-ssa-structalias.h (set_used_smts): Remove.
767         * tree-ssa-structalias.c (used_smts): Likewise.
768         (set_used_smts): Likewise.
769         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
770         call to set_used_smts.
771
772 2008-07-07  Richard Guenther  <rguenther@suse.de>
773
774         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
775         (new_var_info): Set it to false.
776         (solution_set_add): Correctly handle pointers outside a var and
777         inside a field.
778         (type_safe): Treat variables with is_full_var properly.
779         (do_sd_constraint): Likewise.
780         (do_ds_constraint): Likewise.
781         (process_constraint): Remove zeroing offset for !use_field_sensitive.
782         (get_constraint_for_ptr_offset): New function.
783         (get_constraint_for_component_ref): For addresses at least include
784         the last field of the variable.  Handle is_full_vars properly.
785         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
786         (handle_ptr_arith): Remove.
787         (find_func_aliases): Simplify assignment handling.
788         (create_function_info_for): For parameter and result varinfos set
789         is_full_var flag.
790         (create_variable_info_for): Set is_full_var flag whenever we
791         just created a single varinfo for a decl.
792         (init_alias_vars): Initialize use_field_sensitive from
793         max-fields-for-field-sensitive parameter.
794
795 2008-07-07  Richard Guenther  <rguenther@suse.de>
796
797         PR tree-optimization/36713
798         * tree-flow-inline.h (is_call_used): New function.
799         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
800         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
801         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
802
803 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
804
805         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
806         
807 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
808
809         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
810
811 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
812             Nathan Sidwell  <nathan@codesourcery.com>
813
814         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
815         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
816         tmake_file.
817         * config/m68k/t-linux: New.
818         * doc/install.texi: Document m68k-*-linux is now multilibbed by
819         default.
820
821 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
822
823         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
824         * config/m68k/m68k-devices.def: Remove multilibs that only differ
825         by MAC/EMAC.
826
827 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
828
829         * gcc.c (execute): Fix -Wc++-compat warning.
830
831 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
832
833         PR target/36720
834         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
835         constant for little endian.
836
837 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
838
839         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
840         mips_base_mips16 instead of TARGET_MIPS16.
841         (mips_base_mips16): Declare.
842         * config/mips/mips.c (mips_base_mips16): Make global.
843         (was_mips16_p): Remove GTY marker.
844         (was_mips16_pch_p): New variable.
845         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
846         (mips_override_options): Force to non-MIPS16 mode initially.
847         Do not complain about MIPS16 PIC incompatibilities here.
848         Only allow -mgpopt if -mexplicit-relocs is in force for
849         non-MIPS16 code.
850
851 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
852
853         * configure.ac: Check for caddr_t, define to char * if not defined.
854         * configure: Regenerate.
855         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
856         (mmap_gt_pch_use_address): Likewise.
857         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
858
859 2008-07-06  Richard Guenther  <rguenther@suse.de>
860
861         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
862         (new_var_info): Deal with it.
863         (solution_set_add): Likewise.
864         (bitpos_of_field): Make signed, fix.
865         (struct fieldoff): Remove type and decl fields.  Make size field
866         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
867         flags.
868         (fieldoff_compare): Deal with it.
869         (push_fields_onto_fieldstack): Remove has_union argument, glob
870         adjacent non-pointer fields together.
871         (create_function_info_for): Do not set has_union.
872         (create_variable_info_for): Simplify.
873
874 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
875
876         * config.gcc (extra_headers): Add cross-stdarg.h for target
877         x86_64-*-* and i?86-*-*.
878         * config/i386/cross-stdarg.h: New.
879         * builtins.c (std_fn_abi_va_list): New.
880         (std_canonical_va_list_type): New.
881         (stabilize_va_list): Replace va_list_type_node use by
882         mtarget.canonical_va_list_type.
883         (gimplify_va_arg_expr): Likewise.
884         (expand_builtin_va_copy): Replace va_list_type_node use by
885         mtarget.fn_abi_va_list.
886         * tree-sra.c (is_va_list_type): New helper.
887         (decl_can_be_decomposed_p): Replace
888         va_list_type_node use by is_va_list_type.
889         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
890         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
891         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
892         * config/i386/i386-protos.h (ix86_get_valist_type): New.
893         (ix86_enum_va_list): New.
894         * config/i386/i386.c (sysv_va_list_type_node): New.
895         (ms_va_list_type_node): New.
896         (ix86_function_type_abi): Remove sorry.
897         (ix86_build_builtin_va_list_abi): New.
898         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
899         for 64-bit targets.
900         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
901         (ix86_init_builtins_va_builtins_abi): New.
902         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
903         for 64-bit targets.
904         (ix86_handle_abi_attribute): New.
905         (attribute_spec): Add sysv_abi and ms_abi.
906         (ix86_fn_abi_va_list): New.
907         (ix86_canonical_va_list_type): New.
908         (ix86_enum_va_list): New.
909         (TARGET_FN_ABI_VA_LIST): New.
910         (TARGET_CANONICAL_VA_LIST_TYPE): New.
911         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
912         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
913         (TARGET_CANONICAL_VA_LIST_TYPE): New.
914         (TARGET_ENUM_VA_LIST): New.
915         * expr.h (std_fn_abi_va_list): New.
916         (std_canonical_va_list_type): New.
917         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
918         (TARGET_CANONICAL_VA_LIST_TYPE): New.
919         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
920         TARGET_CANONICAL_VA_LIST_TYPE.
921         * target.h (struct gcc_target): Add fn_abi_va_list hook
922         and canonical_va_list_type hook.
923
924 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
925
926         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
927         integral and pointer types.
928
929 2008-07-04  Roger Sayle  <roger@eyesopen.com>
930
931         * config/rs6000/host-darwin.c (darwin_rs6000_extra_siganls): Cast
932         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
933
934 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
935
936         PR target/36684
937         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns
938         for PIC.
939
940 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
941
942         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
943         build_gimple_modify_stmt.
944         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
945         gimple operand.  Use fold_build* instead of build*.
946
947 2008-07-04  Richard Guenther  <rguenther@suse.de>
948
949         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
950         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
951         properly to compute the reachability set if we do field-sensitive PTA.
952         * invoke.texi (max-fields-for-field-sensitive): Document default.
953         * opts.c (decode_options): Set max-fields-for-field-sensitive to
954         100 for optimize >= 2.
955
956 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
957
958         * ggc-zone.c (lookup_page_table_if_allocated,
959         set_page_table_entry, zone_find_object_size, alloc_small_page,
960         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
961         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
962         -Wc++-compat and/or -Wcast-qual warnings.
963
964 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
965
966         PR target/36634
967         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
968         pic_offset_table_rtx to be marked as used here.
969         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
970         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
971         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
972         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
973         !TARGET_SECURE_PLT.
974
975 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
976
977         * alloc-pool.c (hash_descriptor, eq_descriptor,
978         alloc_pool_descriptor): Fix -Wc++-compat warnings.
979         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
980         Likewise.
981         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
982         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
983         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
984         Likewise.
985         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
986         Likewise.
987
988 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
989
990         * tree-flow.h (loop_only_exit_p): Declare.
991         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
992         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
993         the number of iterations if it is constant.  Otherwise, if this is the
994         only possible exit of the loop, use the conservative estimate on the
995         number of iterations of the entire loop if available.
996
997 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
998
999         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
1000         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
1001         Add synchronization functions.
1002         * config/sync.c: New file.
1003         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
1004         (LIBGCC_SYNC_CFLAGS): Likewise.
1005
1006 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
1007
1008         PR target/36710
1009         * config/i386/i386.md (mode): Add TF to "mode" attribute.
1010         (*pushtf_sse): New insn pattern.
1011         (pushtf splitters): New splitters.
1012
1013 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
1014
1015         PR middle-end/35736
1016         * predict.c (build_predict_expr): Use void_type_node for the tree
1017         type, instead of NULL_TREE.
1018
1019 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
1020
1021         * config/i386/i386.c (contains_aligned_value_p): Return true
1022         for TCmode.
1023         (ix86_data_alignment): Align TCmode to 128bits.
1024         (ix86_local_alignment): Likewise.
1025
1026 2008-07-03  Andrew Haley  <aph@redhat.com>
1027
1028         PR bootstrap/33304
1029         * vec.h (VEC_TA): New.
1030         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
1031         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
1032         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
1033         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
1034         (C_COMMON_FIXED_TYPES): Remove first arg.
1035         (C_COMMON_FIXED_MODE_TYPES): Likewise.
1036         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
1037         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
1038         not to use empty macro arguments.
1039
1040 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
1041
1042         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
1043         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
1044         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
1045         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
1046         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
1047         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
1048         config/ia64/crtn.asm, config/m68hc11/larith.asm,
1049         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
1050         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
1051         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
1052         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
1053         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
1054         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
1055         config/rs6000/e500crtres64gpr.asm,
1056         config/rs6000/e500crtres64gprctr.asm,
1057         config/rs6000/e500crtrest32gpr.asm,
1058         config/rs6000/e500crtrest64gpr.asm,
1059         config/rs6000/e500crtresx32gpr.asm,
1060         config/rs6000/e500crtresx64gpr.asm,
1061         config/rs6000/e500crtsav32gpr.asm,
1062         config/rs6000/e500crtsav64gpr.asm,
1063         config/rs6000/e500crtsav64gprctr.asm,
1064         config/rs6000/e500crtsavg32gpr.asm,
1065         config/rs6000/e500crtsavg64gpr.asm,
1066         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
1067         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
1068         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1069         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
1070         config/sparc/sol2-cn.asm: Remove .file directives.
1071
1072 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
1073
1074         * resource.c (mark_referenced_resources): Look inside
1075         UNSPEC_VOLATILEs and ASM_INPUTs.
1076
1077 2008-07-02  Ian Lance Taylor  <iant@google.com>
1078
1079         * rtlanal.c (add_reg_note): New function.
1080         * rtl.h (add_reg_note): Declare.
1081         * auto-inc-dec.c (attempt_change): Use add_reg_note.
1082         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
1083         * builtins.c (expand_builtin_longjmp): Likewise.
1084         (expand_builtin_nonlocal_goto): Likewise.
1085         * calls.c (emit_call_1, expand_call): Likewise.
1086         * cfgexpand.c (add_reg_br_prob_note): Likewise.
1087         * cfglayout.c (fixup_reorder_chain): Likewise.
1088         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1089         (commit_one_edge_insertion): Likewise.
1090         * combine.c (move_deaths, distribute_notes): Likewise.
1091         * df-problems.c (df_set_note): Likewise.
1092         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
1093         (set_unique_reg_note): Likewise.
1094         (emit_copy_of_insn_after): Likewise.
1095         * expr.c (expand_expr_real): Likewise.
1096         * gcse.c (add_label_notes): Likewise.
1097         * haifa-sched.c (create_check_block_twin): Likewise.
1098         * jump.c (mark_jump_label_1): Likewise.
1099         * loop-doloop.c (add_test, doloop_modify): Likewise.
1100         * loop-unswitch.c (compare_and_jump_seq): Likewise.
1101         * lower-subreg.c (move_eh_region_note): Likewise.
1102         * optabs.c (emit_libcall_block): Likewise.
1103         * predict.c (predict_insn): Likewise.
1104         (combine_predictions_for_insn): Likewise.
1105         * recog.c (peephole2_optimize): Likewise.
1106         * regmove.c (try_auto_increment): Likewise.
1107         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
1108         * reload.c (find_reloads): Likewise.
1109         * reload1.c (fixup_eh_region_note): Likewise.
1110         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
1111         * reorg.c (delete_prior_computation): Likewise.
1112         (delete_computation, dbr_schedule): Likewise.
1113         * config/pa/pa.c (legitimize_pic_address): Likewise.
1114         * config/sh/sh.c (sh_reorg): Likewise.
1115
1116 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1117
1118         PR target/36669
1119         * config/libgcc-glibc.ver: Add %exclude.
1120         * config/m32r/libgcc-glibc.ver: Likwise.
1121         * config/s390/libgcc-glibc.ver: Likwise.
1122         * config/sh/libgcc-glibc.ver: Likwise.
1123         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
1124
1125         * config/i386/libgcc-glibc.ver: New.
1126
1127         * config/i386/libgcc-x86_64-glibc.ver: Removed.
1128
1129 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1130
1131         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
1132         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
1133         i[34567]86-*-linux*, x86_64-*-linux*.  Add
1134         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
1135         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
1136         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
1137         i[34567]86-*-linux*, x86_64-*-linux*.
1138
1139         * libgcc-std.ver: Add empty GCC_4.4.0.
1140
1141         * mkmap-symver.awk: Support multiple versions per symbol.
1142
1143         * config/i386/i386.c (ix86_init_builtins): Always define
1144         __builtin_fabsq and __builtin_copysignq with fallbacks.
1145         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
1146         and __builtin_copysignq if SSE2 isn't available.
1147
1148         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
1149         (LIBGCC2_TF_CEXT): Likwise.
1150         (TF_SIZE): Likwise.
1151
1152         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
1153
1154         * config/i386/sfp-machine.h: Moved to libgcc.
1155
1156         * config/i386/sfp-machine.h: New.
1157         * config/i386/t-linux: Likwise.
1158
1159         * config/i386/t-darwin: Remove softfp_wrap_start and
1160         softfp_wrap_end.
1161         * config/i386/t-darwin64: Likewise.
1162
1163         * config/i386/t-fprules-softfp64: Renamed to ...
1164         * config/i386/t-fprules-softfp: This.
1165
1166         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
1167         and softfp_wrap_end.
1168
1169 2008-07-02  Jason Merrill  <jason@redhat.com>
1170
1171         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
1172
1173         * tree.c (ctor_to_list): New fn.
1174         * tree.h: Declare it.
1175         (CONSTRUCTOR_ELT): New macro.
1176         (CONSTRUCTOR_NELTS): New macro.
1177
1178 2008-07-02  Richard Guenther  <rguenther@suse.de>
1179
1180         * tree-ssa-structalias.c (struct variable_info): Reorder
1181         to fill padding on 64bit hosts.  Make collapsed_to an int.
1182         (get_varinfo_fc): Deal with that.
1183         (new_var_info): Likewise.
1184         (collapse_rest_of_var): Likewise.
1185
1186 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
1187
1188         * doc/install.texi (--enable-java-home): Document.
1189         (--enable-aot-compile-rpm): Likewise.
1190         (--with-arch-directory): Likewise.
1191         (--with-os-directory): Likewise.
1192         (--with-origin-name): Likewise.
1193         (--with-arch-suffix): Likewise.
1194         (--with-jvm-root-dir): Likewise.
1195         (--with-jvm-jar-dir): Likewise.
1196         (--with-python-dir): Likewise.
1197
1198 2008-07-02  Richard Guenther  <rguenther@suse.de>
1199
1200         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
1201         from decls explicitly.  Merge operand checking from tuples.
1202
1203 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1204
1205         * tree-switch-conversion.c: Included timevar.h which I forgot before.
1206         
1207 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1208
1209         * tree-switch-conversion.c: Included timevar.h
1210         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
1211
1212         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
1213
1214 2008-07-02  Martin Jambor  <mjambor@suse.cz>
1215
1216         * tree-switch-conversion.c: Corrected various comments and
1217         whitespace issues
1218         (build_constructors): Fixed minor formatting mistakes.
1219
1220         * invoke.texi (Optimize Options): Corrected the
1221         switch-conversion-max-branch-ratio parameter.
1222
1223 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
1224
1225         * final.c (asm_insn_count): Return zero for an empty asm body.
1226
1227 2008-07-02  Richard Guenther  <rguenther@suse.de>
1228
1229         * bitmap.h (bitmap_set_bit): Return bool.
1230         (bitmap_clear_bit): Likewise.
1231         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
1232         write to the bitmap if it would.
1233         (bitmap_clear_bit): Likewise.
1234         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
1235         bitmap_set_bit return value.
1236         (add_pred_graph_edge): Likewise.
1237         (add_graph_edge): Likewise.
1238         (do_sd_constraint): Likewise.
1239         (do_ds_constraint): Likewise.
1240
1241 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1242
1243         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
1244         Fix -Wc++-compat and/or -Wcast-qual warnings.
1245         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
1246         gen_regparm_prefix): Likewise.
1247         * vmsdbgout.c (write_modbeg, lookup_filename,
1248         vmsdbgout_source_line, vmsdbgout_init): Likewise.
1249
1250 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
1251
1252         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
1253         defaults.h definition apply.
1254
1255 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1256
1257         * function.c (assign_parm_remove_parallels): New.
1258         (assign_parm_setup_block_p): Do not return true for non-BLKmode
1259         PARALLELs.
1260         (assign_parm_setup_block): Do not handle them.
1261         (assign_parm_setup_reg, assign_parm_setup_stack): Call
1262         assign_parm_remove_parallels.
1263
1264 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1265
1266         * c-typeck.c (convert_for_assignment): Use
1267         vector_targets_convertible_p.
1268         * c-common.c (vector_targets_convertible_p): New.
1269         * c-common.h (vector_targets_convertible_p): New prototype.
1270         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
1271         opaque_p_V2SI_type_node.
1272
1273 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
1274
1275         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
1276         RFmode constants.
1277
1278 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
1279
1280         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
1281         TFmode constants via two element DImode vector for hosts with
1282         HOST_BITS_PER_WIDE_INT < 64.
1283         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
1284         also for HOST_BITS_PER_WIDE_INT < 64.
1285
1286 2008-07-01  Richard Guenther  <rguenther@suse.de>
1287
1288         PR tree-optimization/36666
1289         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
1290         (get_constraint_exp_from_ssa_var): Split into ...
1291         (get_constraint_exp_for_temp): ... this ...
1292         (get_constraint_for_ssa_var): ... and that.
1293         Return constraint expressions for all touched sub-fields
1294         if the results address is not taken.
1295         (process_constraint): Remove assertion that aggregate
1296         assignments do not happen at this place.
1297         (get_constraint_for_component_ref): Add address_p argument.
1298         Return constraint expressions for all touched sub-fields
1299         if the results address is not taken.
1300         (do_deref): Use get_constraint_exp_for_temp.
1301         (get_constraint_for_1): Rename from ...
1302         (get_constraint_for): ... this.  Add the old function as wrapper.
1303         (do_structure_copy): Use get_constraint_for_1.
1304
1305 2008-07-01  Martin Jambor  <mjambor@suse.cz>
1306
1307         * Makefile.in (tree-switch-conversion.o): Add.
1308         (OBJS-common): Add tree-swtch-conversion.o.
1309         * passes.c (init_optimization_passes): Add pass_convert_switch.
1310         * tree-pass.h: (pass_convert_switch): Add.
1311         * tree-switch-conversion.c: New file.
1312         * gcc.dg/tree-ssa/cswtch.c: New testcase.
1313         * common.opt (ftree-cswtch): New option.
1314         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1315         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
1316         * opts.c (decode_options): Set flag_tree_switch_conversion when
1317         optimization level is >= 2.
1318         * doc/invoke.texi (Optimize Options): Added description of
1319         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
1320
1321 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1322
1323         * config/darwin-driver.c (darwin_default_min_version): Fix
1324         -Wc++-compat warnings.
1325
1326 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
1327
1328         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
1329         of operand 0.
1330
1331 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1332
1333         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
1334         
1335 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
1336
1337         PR rtl-optimization/34744
1338         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
1339         (df_scan_free_internal): Free data structures not
1340         allocated in storage pools.
1341         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
1342         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
1343         df_scan_free_mws_vec.
1344         * dse.c (dse_step6): Free offset_map_p and offset_map_n
1345         unconditionally.
1346
1347 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1348
1349         * config/i386/i386.c (contains_aligned_value_p): Return true
1350         for __float128.
1351         (ix86_function_arg_boundary): Return its natural boundary
1352         for __float128.
1353         (return_in_memory_32): Don't check TDmode.
1354         (ix86_split_to_parts): Support splitting into 4 parts and
1355         support TFmode for 32bit target.
1356         (ix86_split_long_move): Support splitting into 4 parts.
1357         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
1358         for SSE2.
1359         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
1360         (ix86_init_builtins): Here.
1361         (ix86_scalar_mode_supported_p): Always return true for TFmode.
1362         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
1363         'q' and 'w', respectively. 
1364
1365         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
1366         TARGET_64BIT.
1367         (movtf_internal): Likewise.
1368         (<code>tf2): Likewise.
1369         (*absnegtf2_sse): Likewise.
1370         (copysign<mode>3): Likewise.
1371         (copysign<mode>3_const): Likewise.
1372         (copysign<mode>3_var): Likewise.
1373         (define_split UNSPEC_COPYSIGN): Likewise.
1374         * config/i386/sse.md (*nandtf3): Likewise.
1375         (<code>tf3): Likewise.
1376         (*<code>tf3): Likewise.
1377
1378 2008-06-30  Joey Ye  <joey.ye@intel.com>
1379             H.J. Lu  <hongjiu.lu@intel.com>
1380
1381         * global.c (compute_regsets): Set frame_pointer_needed here.
1382         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
1383
1384 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1385
1386         * doc/install.texi (specific): Expand Windows build notes.
1387
1388 2008-06-30  Ira Rosen  <irar@il.ibm.com>
1389
1390         PR tree-optimization/36648
1391         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
1392         number of prolog iterations by step. Fix the comment.
1393
1394 2008-06-30  Richard Guenther  <rguenther@suse.de>
1395
1396         PR middle-end/36671
1397         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
1398         handle calls from ECF_MALLOC functions.
1399         (handle_pure_call): ECF_MALLOC functions do not return
1400         call-used memory.
1401         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
1402
1403 2008-06-29  Andreas Schwab  <schwab@suse.de>
1404
1405         * config/m68k/m68k.c (print_operand): Always print a float
1406         constant in hex.
1407         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
1408         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
1409         Remove macros.
1410
1411         * config/rs6000/x-linux64: Remove never used file.
1412
1413 2008-06-29  Richard Guenther  <rguenther@suse.de>
1414
1415         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
1416         prototype.
1417         (struct alias_info): Move ...
1418         * tree-ssa-alias.c: ... here.
1419         (update_alias_info): Declare.
1420         (compute_may_aliases): Call it.
1421         (update_alias_info): New function.
1422         * tree-ssa-structalias.c (update_alias_info): Move ...
1423         * tree-ssa-alias.c (update_alias_info_1): ... here.
1424         * tree-ssa-structalias.c (process_constraint_1): Remove
1425         unused from_call argument.  Rename to ...
1426         (process_constraint): ... this.  Delete old wrapper.
1427         (make_constraint_to): Adjust callers.
1428         (handle_const_call): Likewise.
1429         (handle_pure_call): Likewise.
1430         (init_base_vars): Likewise.
1431         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
1432         (find_func_aliases): We don't need structure copies for
1433         complex types.
1434         (make_constraint_from_anything): Remove.
1435         (create_variable_info_for): For globals make constraints
1436         from escaped, not from anything.
1437         (compute_points_to_sets): Do not call update_alias_info.
1438         (ipa_pta_execute): Use make_constraint_from.
1439
1440 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1441
1442         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
1443         (bitmap.o-warn, dominance.o-warn): New.
1444         * configure.ac (cxx_compat_warn): Delete.
1445         (loose_warn): Add -Wcast-qual and -Wc++-compat.
1446         * system.h: Remove #pragma diagnostic for -Wcast-qual and
1447         -Wc++-compat.
1448         * configure: Regenerate.
1449
1450         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
1451         warnings.
1452
1453 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1454
1455         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
1456         * df-scan.c (df_notes_rescan): Likewise.
1457         * ggc-page.c (set_page_table_entry): Likewise.
1458         * intl.c (gcc_gettext_width): Likewise.
1459         * varasm.c (get_unnamed_section, get_noswitch_section,
1460         get_section): Likewise.
1461
1462 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
1463
1464         * regrename.c (build_def_use): Don't copy RTX.
1465
1466 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
1467
1468         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
1469         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
1470         punctuation.  Use @ref instead of @xref.
1471         (Function Names): Remove stray @display/@end display.
1472         (C++ Attributes): Use @ref instead of @xref.
1473         (Deprecated Features): Fix punctuation around @xref.
1474         (Backwards Compatibility): Likewise.
1475         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
1476
1477 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
1478
1479         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
1480         constants for E500 double.
1481
1482 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1483
1484         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
1485         element type of const_vector.
1486
1487 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
1488
1489         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
1490         Remove FLAGS_REG clobber from expander pattern.
1491         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
1492         (anddi3, andsi3, andhi3, andqi3): Ditto.
1493         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
1494         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
1495         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
1496         (ashlsi3, ashlhi3, ashlqi3): Ditto.
1497         (ashrsi3, ashrhi3, ashrqi3): Ditto.
1498         (lshrsi3, lshrhi3, lshrqi3): Ditto.
1499         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
1500         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
1501
1502 2008-06-28  Richard Guenther  <rguenther@suse.de>
1503
1504         * tree-ssa-structalias.c (callused_id, var_callused,
1505         callused_tree): Add.
1506         (handle_pure_call): New function.
1507         (find_func_aliases): Call it.
1508         (find_what_p_points_to): Handle the call-used set.
1509         (clobber_what_escaped): Likewise.
1510         (compute_call_used_vars): New function.
1511         (init_base_vars): Init the call-used variable.
1512         (do_sd_constraint): Do not propagate the solution from CALLUSED
1513         but use CALLUSED as a placeholder.
1514         (solve_graph): Likewise.
1515         * tree-flow-inline.h (gimple_call_used_vars): New function.
1516         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
1517         (compute_call_used_vars): Declare.
1518         * tree-ssa-alias.c (set_initial_properties): Call
1519         compute_call_used_vars.
1520         (reset_alias_info): Clear call-used variables.
1521         (add_call_clobber_ops): Assert we are not called for const/pure
1522         functions.  Remove handling of them.
1523         (add_call_read_ops): Handle pure functions by adding the
1524         call-used set of variables as VUSEs.
1525         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
1526         (delete_tree_ssa): Free it.
1527         * tree-dfa.c (remove_referenced_var): Clear the var from the
1528         call-used bitmap.
1529
1530 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
1531
1532         * tree.c (build_varargs_function_type_list): New.
1533         (build_function_type_list_1): New.
1534         (build_function_type_list): Use build_function_type_list_1.
1535         * tree.h (build_varargs_function_type_list): New.
1536
1537 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1538
1539         PR target/34856
1540         * config/spu/spu.c (spu_builtin_splats): Do not generate
1541         invalid CONST_VECTOR expressions.
1542         (spu_expand_vector_init): Likewise.
1543
1544 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
1545
1546         * optabs.c (libfunc_decls): New variable.
1547         (libfunc_decl_hash, libfunc_decl_eq): New functions.
1548         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
1549         for the same function twice.
1550
1551 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
1552
1553         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
1554         ix86_expand_binary_operator directly.
1555         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
1556         for operand 2.
1557         (*ashrti3_1): Ditto.
1558         (*lshrti3_1): Ditto.
1559         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
1560         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
1561         using only one splitter.  Conditionaly execute splitter before or
1562         after peephole2 pass.
1563         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
1564         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
1565         Use only one alternative in asm template.
1566         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
1567         in asm template.
1568         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
1569         "J" operand constraint for operand 2.
1570         (*ashldi3_cconly_rex64): Ditto.
1571         (*ashrdi3_cmp_rex64): Ditto.
1572         (*ashrdi3_cconly_rex64): Ditto.
1573         (*lshrdi3_cmp_rex64): Ditto.
1574         (*lshrdi3_cconly_rex64): Ditto.
1575         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
1576         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
1577         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
1578         gen_x86_shrd_1.
1579
1580 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
1581
1582         * gimplify.c (omp_is_private): Don't return true if decl is not
1583         already private on #pragma omp for or #pragma omp parallel for.
1584
1585         PR debug/36617
1586         * tree-cfg.c (struct move_stmt_d): Replace block field with
1587         orig_block and new_block fields.
1588         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
1589         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
1590         (move_block_to_fn): Replace vars_map and new_label_map arguments
1591         with struct move_stmt_d pointer.
1592         (replace_block_vars_by_duplicates): New function.
1593         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
1594         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
1595         all subblocks of ORIG_BLOCK to the new function.  Call
1596         replace_block_vars_by_duplicates.
1597         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
1598         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
1599         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
1600         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
1601         (expand_omp): Temporarily set input_location to the location of
1602         region's controlling stmt.
1603         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
1604         BIND_EXPR, push ctx->block_vars and gimplification vars into
1605         the BIND_EXPR and its block's BLOCK_VARS instead of directly
1606         into dest function.
1607         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
1608         there are any BLOCK_VARS.
1609         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
1610         OMP_PARALLEL or OMP_TASK stmt.
1611         (lower_omp): Save and restore input_location around the lower_omp_1
1612         call.
1613
1614 2008-06-27  Richard Guenther  <rguenther@suse.de>
1615
1616         PR tree-optimization/36400
1617         PR tree-optimization/36373
1618         PR tree-optimization/36344
1619         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
1620         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
1621         (update_alias_info): Remove call clobbering code.
1622         (make_constraint_to): New helper function.
1623         (make_escape_constraint): Likewise.
1624         (handle_rhs_call): Use it on all pointer containing arguments.
1625         Also mark the static chain escaped.
1626         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
1627         instead of ANYTHING.
1628         (make_constraint_from): New helper split out from ...
1629         (make_constraint_from_anything): ... here.
1630         (find_func_aliases): Add constraints for escape sites.
1631         (intra_create_variable_infos): Make constraints from NONLOCAL
1632         for parameters.
1633         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
1634         as ANYTHING.
1635         (clobber_what_p_points_to): Remove.
1636         (clobber_what_escaped): New function.
1637         (init_base_vars): Init NONLOCAL and ESCAPED.
1638         (do_sd_constraint): Do not propagate the solution from ESCAPED
1639         but use ESCAPED as a placeholder.
1640         (solve_graph): Likewise.
1641         * tree-flow.h (clobber_what_p_points_to): Remove.
1642         (clobber_what_escaped): Declare.
1643         * tree-ssa-alias.c (set_initial_properties): Call it.
1644         Remove code clobbering escaped pointers.
1645
1646 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1647
1648         * function.c (allocate_struct_function): Only allocate a unique
1649         funcdef_no if the decl is nonzero.
1650
1651 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
1652
1653         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
1654         * config/mips/mips.c (mips_split_const_insns): New function.
1655         * config/mips/mips.md (move_type): New attribute.
1656         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
1657         (dword_mode): New attribute.
1658         (type): Avoid long line.  Map "move_type"s to "type"s,
1659         choosing "multi" for doubleword moves if appropriate.
1660         Swap MTC/MFC comments to match their declaration order.
1661         (extended_mips16): Default to "yes" if "move_type" is "sll0",
1662         "type" is "branch" or "jal" is "direct".
1663         (length): Handle "extended_mips16" first.  Make the default
1664         "0" for "ghost" instructions.  Set the length from "move_type".
1665         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
1666         of "type", with "sll0" for the register alternative.  Remove the
1667         "extended_mips16" attribute.
1668         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
1669         of "type", with "shift_shift" for the register alternative.
1670         Remove the "length" attribute.
1671         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
1672         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
1673         of "type", with "andi" for the register alternative.
1674         (*zero_extendqihi2): Likewise.
1675         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
1676         of "andi" instead of a "type" of "arith".
1677         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
1678         instead of "type".
1679         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
1680         (mov_<store>r, *mov<mode>_ra): Likewise.
1681         (extendsidi2): Use "move_type" instead of "type", with "move"
1682         for the register alternative.
1683         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
1684         of "type", with "signext" for the register alternative.
1685         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
1686         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
1687         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
1688         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
1689         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
1690         (unnamed branch insn): Likewise.
1691         (*movdi_gp32_fp64): Fold into...
1692         (*movdi_32bit): ...here.
1693         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
1694         (*movdf_hardfloat): ...this new pattern.
1695         (*movdf_softfloat): Remove redundant FPR alternatives.
1696         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
1697         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
1698         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
1699         the "move" attribute.
1700         (*movdi_32bit): Use "move_type" instead of "type" and remove the
1701         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
1702         and "store" for COP loads and stores.
1703         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
1704         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
1705         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
1706         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
1707         (*movtf_mips16, *movv2sf): Likewise.
1708         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
1709         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
1710         (mfhc1<mode>): Use "move_type" instead of "move".
1711         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
1712         (loadgp_blockage): Remove the "length" attribute.
1713         (blockage, set_got_version, update_got_version): Likewise.
1714         (call_internal): Remove the "extended_mips16" attribute.
1715         (call_value_internal, call_value_multiple_internal): Likewise.
1716         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
1717         instead of "move".
1718         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
1719         the "length" attribute.
1720
1721 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1722
1723         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
1724         -Wcast-qual warnings.
1725         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
1726         handle_pragma_pop_macro): Likewise.
1727         * collect2.c (resolve_lib_name): Likewise.
1728         * config/arc/arc.c (arc_init): Likewise.
1729         * config/arm/arm.c (neon_builtin_compare,
1730         locate_neon_builtin_icode): Likewise.
1731         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
1732         * config/bfin/bfin.c (bfin_init_machine_status,
1733         bfin_optimize_loop): Likewise.
1734         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1735         * config/cris/cris.c (cris_init_expanders): Likewise.
1736         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
1737         * config/darwin.c (machopic_indirection_eq,
1738         machopic_indirection_name, machopic_output_indirection): Likewise.
1739         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
1740         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
1741         frv_optimize_membar): Likewise.
1742         * config/i386/cygwin.h (mingw_scan,
1743         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
1744         * config/i386/cygwin1.c (mingw_scan): Likewise.
1745         * config/i386/i386.c (machopic_output_stub): Likewise.
1746         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
1747         i386_pe_unique_section): Likewise.
1748         * config/ia64/ia64.c (ia64_init_machine_status,
1749         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
1750         Likewise.
1751         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
1752         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
1753         * config/m68k/m68k.c (m68k_handle_option,
1754         m68k_sched_md_init_global): Likewise.
1755         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
1756         mcore_unique_section): Likewise.
1757         * config/mips/mips.c (mips_block_move_straight,
1758         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
1759         Likewise.
1760         * config/mmix/mmix.c (mmix_init_machine_status,
1761         mmix_encode_section_info): Likewise.
1762         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
1763         * config/rs6000/rs6000.c (rs6000_init_machine_status,
1764         print_operand_address, output_toc, redefine_groups,
1765         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
1766         * config/s390/s390.c (s390_init_machine_status): Likewise.
1767         * config/score/score.c (score_block_move_straight,
1768         score_block_move_loop_body): Likewise.
1769         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1770         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1771         * emit-rtl.c (find_auto_inc): Likewise.
1772         * gcc.c (translate_options, process_command): Likewise.
1773         * reorg.c (dbr_schedule): Likewise.
1774         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
1775         * xcoffout.c (xcoffout_declare_function): Likewise.
1776
1777 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
1778
1779         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
1780         ipa-pta working again.
1781
1782 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
1783
1784         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
1785         genautomata.
1786
1787 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
1788
1789         * config.gcc (powerpc*-*-*): Add new core e500mc.
1790         * config/rs6000/e500mc.md: New file.
1791         * config/rs6000/rs6000.c (processor_costs): Add new costs for
1792         e500mc.
1793         (rs6000_override_options): Add e500mc case to
1794         processor_target_table. Altivec and Spe options not allowed
1795         with e500mc. Add isel instruction to e500mc by
1796         default. Initialize rs6000_cost for e500mc.
1797         (rs6000_issue_rate): Set issue rate for e500mc.
1798         * config/rs6000/rs6000.h (processor_type): Add
1799         PROCESSOR_PPCE500MC.
1800         (ASM_CPU_SPEC): Add e500mc.
1801         Set TARGET_ISEL to rs6000_isel.
1802         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
1803         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
1804         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
1805         Include e500mc.md.
1806         * doc/invoke.texi: Add e500mc to list of cpus.
1807
1808 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1809
1810         PR c/34867
1811         * c-lex.c (lex_charconst): Initialize unsignedp.
1812
1813 2008-06-27  Olivier Hainque  <hainque@adacore.com>
1814
1815         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
1816         documented assumptions.
1817
1818 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
1819
1820         * dwarf2out.c: Remove trailing white spaces.  Break long line
1821         in comments.
1822
1823 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
1824
1825         * libfuncs.h (LTI_synchronize): New libfunc_index.
1826         (synchronize_libfunc): Declare.
1827         * builtins.c (expand_builtin_synchronize): Consider using
1828         synchronize_libfunc before falling back on an asm blockage.
1829         * config/mips/mips.c: Include libfuncs.h
1830         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
1831
1832 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
1833
1834         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
1835         parameter.  Copy stack_reg to r11 where appropriate.
1836         (no_global_regs_above): Add gpr parameter.
1837         (rs6000_stack_info): Only add padding for SPE save area if we
1838         are saving SPE GPRs and CR.
1839         (saveres_routine_syms): New variable.
1840         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
1841         Define.
1842         (rs6000_savres_routine_sym): New function.
1843         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
1844         split out of...
1845         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
1846         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
1847         Tweak FPR out-of-line saving.
1848         (rs6000_make_savres_rtx): New function.
1849         (rs6000_use_multiple_p): New function.
1850         (rs6000_savres_strategy): New function.
1851         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
1852         out-of-line if appropriate.
1853         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
1854         if we are optimizing for size.
1855         (GP_SAVE_INLINE): Define.
1856         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
1857         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
1858         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
1859         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
1860         (*save_fpregs_<mode>): Add use of r11.
1861         (*restore_gpregs_<mode>): New insn.
1862         (*return_and_restore_gpregs_<mode>): New insn.
1863         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
1864         use r11.
1865         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
1866         (*restore_gpregs_spe): New insn.
1867         (*return_and_restore_gpregs_spe): New insn.
1868         * config/rs6000/predicates.md (save_world_operation): Fix check.
1869
1870 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1871
1872         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
1873         this point, so assert that.
1874
1875 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
1876
1877         * cfganal.c: Include vec.h and vecprim.h.
1878         (compute_idf): Import from...
1879         * tree-into-ssa (compute_idf): ...here.
1880         * basic-block.h (compute_idf): Export.
1881
1882 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
1883
1884         * c-decl.c (merge_decls): Use !current_function_decl to check for
1885         extern declaration of C99 inline function being at file scope.
1886
1887 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
1888
1889         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1890
1891 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1892
1893         * alias.c (record_alias_subset, init_alias_analysis): Fix
1894         -Wc++-compat and/or -Wcast-qual warnings.
1895         * attribs.c (lookup_attribute_spec): Likewise.
1896         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1897         copy_bb, connect_traces,
1898         find_rarely_executed_basic_blocks_and_cr): Likewise.
1899         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1900         note_btr_set, migrate_btr_defs): Likewise.
1901         * builtins.c (result_vector, expand_builtin_memcpy,
1902         expand_builtin_mempcpy_args, expand_builtin_strncpy,
1903         builtin_memset_read_str, expand_builtin_printf,
1904         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
1905         Likewise.
1906         * caller-save.c (mark_set_regs): Likewise.
1907         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1908         * cgraph.c (cgraph_edge): Likewise.
1909         * combine.c (likely_spilled_retval_1): Likewise.
1910         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
1911         htab_counts_entry_del, get_coverage_counts): Likewise.
1912         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
1913         new_cselib_val): Likewise.
1914         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
1915         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
1916         Likewise.
1917         * df-core.c (df_compact_blocks): Likewise.
1918         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
1919         * df-scan.c (df_grow_reg_info, df_ref_create,
1920         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
1921         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
1922         df_record_entry_block_defs, df_record_exit_block_uses,
1923         df_bb_verify): Likewise.
1924         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
1925         DF_REF_EXTRACT_MODE_CONST): New.
1926         * dominance.c (get_immediate_dominator, get_dominated_by,
1927         nearest_common_dominator, root_of_dom_tree,
1928         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
1929         -Wc++-compat and/or -Wcast-qual warnings.
1930         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
1931         record_store, replace_read, check_mem_read_rtx, scan_insn,
1932         dse_step1, dse_record_singleton_alias_set): Likewise.
1933         * dwarf2asm.c (dw2_force_const_mem): Likewise.
1934
1935 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1936
1937         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
1938         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1939         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1940         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1941         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1942         add_ranges_num, add_ranges_by_labels, file_info_cmp,
1943         file_name_acquire, output_file_names, add_const_value_attribute,
1944         premark_used_types_helper, file_table_eq, file_table_hash,
1945         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1946         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1947         -Wcast-qual warnings.
1948         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1949         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1950         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1951         gen_reg_rtx, start_sequence, init_emit): Likewise.
1952         * et-forest.c (et_new_occ, et_new_tree): Likewise.
1953         * except.c (init_eh_for_function, gen_eh_region,
1954         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1955         arh_to_landing_pad, arh_to_label, add_action_record,
1956         add_call_site, switch_to_exception_section): Likewise.
1957         * expmed.c (synth_mult): Likewise.
1958         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
1959         store_expr): Likewise.
1960         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
1961         Likewise.
1962         * function.c (assign_stack_temp_for_type,
1963         allocate_struct_function, match_asm_constraints_1): Likewise.
1964         * gcov-io.c (gcov_allocate): Likewise.
1965         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
1966         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
1967         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
1968         record_one_set, insert_expr_in_table, insert_set_in_table,
1969         dump_hash_table, compute_hash_table_work, alloc_hash_table,
1970         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
1971         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
1972         -Wcast-qual warnings.
1973
1974 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1975
1976         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
1977         -Wcast-qual warnings.
1978         * gcc.c (process_command): Likewise.
1979         * genattrtab.c (oballoc): Use XOBNEW.
1980         (oballocvec): Define.
1981         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
1982         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
1983         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
1984         -Wc++-compat and/or -Wcast-qual warnings.
1985         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
1986         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
1987         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1988         gen_presence_absence_set, gen_automaton, gen_regexp_el,
1989         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1990         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
1991         add_excls, process_presence_absence_names,
1992         process_presence_absence_patterns, add_presence_absence,
1993         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
1994         get_free_state, add_arc, get_free_automata_list_el,
1995         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
1996         transform_3, cache_presence, create_ainsns, create_automata,
1997         create_state_ainsn_table, dfa_insn_code_enlarge,
1998         output_trans_func, output_min_issue_delay_func,
1999         output_dead_lock_func, output_reset_func,
2000         output_get_cpu_unit_code_func, output_dfa_start_func,
2001         expand_automata): Likewise.
2002         * genextract.c (gen_insn): Likewise.
2003         * gengtype-lex.l: Likewise.
2004         * gengtype.c (read_input_list, adjust_field_type,
2005         process_gc_options): Likewise.
2006         * genoutput.c (note_constraint): Likewise.
2007         * genpreds.c (mangle, add_constraint): Likewise.
2008         * genrecog.c (process_define_predicate, new_decision,
2009         add_to_sequence): Likewise.
2010         * gensupport.c (record_insn_name): Likewise.
2011
2012 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2013
2014         * config/i386/driver-i386.c (detect_caches_amd,
2015         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
2016         and/or -Wcast-qual warnings.
2017         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
2018         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
2019         gt_pch_save): Likewise.
2020         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
2021         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
2022         * global.c (compute_regsets): Likewise.
2023         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2024         finish_graph_dump_file): Likewise.
2025         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
2026         unlink_bb_notes): Likewise.
2027         * integrate.c (get_hard_reg_initial_val): Likewise.
2028         * ipa-prop.c (ipa_push_func_to_list): Likewise.
2029         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
2030         * local-alloc.c (update_equiv_regs): Likewise.
2031         * loop-invariant.c (check_invariant_table_size,
2032         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
2033         Likewise.
2034         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
2035         altered_reg_used, mark_altered): Likewise.
2036         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
2037         insert_var_expansion_initialization,
2038         combine_var_copies_in_loop_exit, apply_opt_in_copies,
2039         release_var_copies): Likewise.
2040         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
2041         analyze_matrix_decl, add_allocation_site, analyze_transpose,
2042         analyze_accesses_for_phi_node, check_var_notmodified_p,
2043         check_allocation_function, find_sites_in_func,
2044         record_all_accesses_in_func, transform_access_sites,
2045         transform_allocation_sites): Likewise.
2046         * omp-low.c (new_omp_region, create_omp_child_function_name,
2047         check_omp_nesting_restrictions, check_combined_parallel,
2048         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
2049         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
2050         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
2051         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
2052         Likewise.
2053         * opts-common.c (prune_options): Likewise.
2054         * opts.c (add_input_filename, print_filtered_help,
2055         get_option_state): Likewise.
2056         * params.c (add_params): Likewise.
2057         * passes.c (set_pass_for_id, next_pass_1,
2058         do_per_function_toporder, pass_fini_dump_file): Likewise.
2059         * postreload.c (reload_cse_simplify_operands): Likewise.
2060         * predict.c (tree_predicted_by_p, tree_predict_edge,
2061         clear_bb_predictions, combine_predictions_for_bb): Likewise.
2062
2063 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2064
2065         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
2066         warnings.
2067         * recog.c (check_asm_operands, validate_change_1): Likewise.
2068         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
2069         subst_asm_stack_regs): Likewise.
2070         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
2071         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
2072         * regmove.c (reg_is_remote_constant_p): Likewise.
2073         * regrename.c (regrename_optimize, scan_rtx_reg,
2074         kill_clobbered_value, kill_set_value, kill_autoinc_value):
2075         Likewise.
2076         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
2077         regstat_compute_calls_crossed): Likewise.
2078         * reload1.c (init_reload, new_insn_chain,
2079         has_nonexceptional_receiver, reload, copy_reloads,
2080         calculate_needs_all_insns, init_elim_table): Likewise.
2081         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
2082         * rtl.c (shallow_copy_rtx_stat): Likewise.
2083         * rtlanal.c (parms_set): Likewise.
2084         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
2085         sbitmap_resize, sbitmap_vector_alloc): Likewise.
2086         * sched-ebb.c (earliest_block_with_similiar_load,
2087         add_deps_for_risky_insns): Likewise.
2088         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
2089         schedule_region): Likewise.
2090         * see.c (eq_descriptor_pre_extension,
2091         hash_descriptor_pre_extension, hash_del_pre_extension,
2092         eq_descriptor_properties, hash_descriptor_properties,
2093         hash_del_properties, see_seek_pre_extension_expr,
2094         see_initialize_data_structures, see_print_register_properties,
2095         see_print_pre_extension_expr, see_delete_merged_def_extension,
2096         see_delete_unmerged_def_extension, see_emit_use_extension,
2097         see_pre_delete_extension, see_map_extension, see_commit_changes,
2098         see_analyze_merged_def_local_prop,
2099         see_analyze_merged_def_local_prop,
2100         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
2101         see_set_prop_merged_def, see_set_prop_unmerged_def,
2102         see_set_prop_unmerged_use, see_print_one_extension,
2103         see_merge_one_use_extension, see_merge_one_def_extension,
2104         see_store_reference_and_extension, see_update_uses_relevancy,
2105         see_update_defs_relevancy): Likewise.
2106         * statistics.c (hash_statistics_hash, hash_statistics_eq,
2107         hash_statistics_free, curr_statistics_hash): Likewise.
2108         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
2109         expand_asm_operands, expand_return, case_bit_test_cmp,
2110         expand_case): Likewise.
2111         * stor-layout.c (start_record_layout): Likewise.
2112         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
2113         gt_pch_save_stringpool): Likewise.
2114         * tree-data-ref.c (hash_stmt_vertex_info,
2115         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
2116         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
2117
2118 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
2119
2120         PR target/36627
2121         * config/i386/i386.md : Change constraints of HImode and QImode
2122         immediate operands from "i" to "n".  Change SImode "ni" constraint to
2123         "i" and SImode "rmi" constraint to "g".  Remove all constraints
2124         from const0_operand and const1_operand predicated operands.
2125         (i): Change QImode and HImode attribute from "i" to "n".
2126         (*subqi_2): Change HImode operands to QImode.
2127         (*subqi_3): Ditto.
2128
2129 2008-06-25  Olivier Hainque  <hainque@adacore.com>
2130
2131         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
2132         sed substitutions.
2133
2134 2008-06-25  Richard Guenther  <rguenther@suse.de>
2135
2136         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
2137         not overflow the result type.
2138
2139 2008-06-25  Richard Guenther  <rguenther@suse.de>
2140
2141         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
2142         (vn_lookup): Likewise.
2143
2144 2008-06-25  Richard Guenther  <rguenther@suse.de>
2145
2146         PR tree-optimization/35518
2147         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
2148         * tree-sra.c (instantiate_element): Use fold_build3 to build
2149         BIT_FIELD_REFs.
2150         (try_instantiate_multiple_fields): Likewise.
2151
2152 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2153
2154         * config/rs6000/rs6000.md: Change all string instruction's clobber to
2155         be early clobbers.
2156
2157 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2158
2159         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
2160         use_backchain_to_restore_sp to true
2161         if the offset of the link register save area would go over the 32k - 1
2162         offset limit of the load
2163         instructions.
2164
2165 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
2166
2167         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
2168         anchor for the type-punning blurb.  Cross-reference "Structures
2169         unions enumerations and bit-fields implementation".  Provide a
2170         cast-through-pointer example.  Make final sentence self-contained.
2171         * doc/implement-c.texi (Structures unions enumerations and
2172         bit-fields implementation): Cross-reference the type-punning blurb
2173         in the -fstrict-aliasing documentation.
2174
2175 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2176
2177         PR middle-end/36594
2178         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
2179         the memory instead of the memory itself for the save area.
2180
2181 2008-06-24  Olivier Hainque  <hainque@adacore.com>
2182             Nicolas Roche  <roche@adacore.com>
2183
2184         * gengtype.c (srcdir_len): size_t instead of int.
2185         (get_file_realbasename): New function.  For F a filename, the real
2186         basename of F, with all the path components stripped.
2187         (get_file_srcdir_relative_path): New function.  For F a filename, the
2188         relative path to F from $(srcdir).
2189         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
2190         get_file_realbasename.  Adjust the head comment.
2191         (get_prefix_langdir_index): New function. For F a filename, return the
2192         lang_dir_names[] relative index of the language directory that is
2193         a prefix in F.
2194         (get_file_langdir): For F a filename, return the name of the language
2195         directory where F is located.
2196         (get_file_gtfilename): New function. The gt- output file name for an
2197         input filename F.
2198         (get_output_file_with_visibility): Replace in-line computations with
2199         uses of get_file_gtfilename and get_prefix_langdir_index.
2200         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
2201
2202 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
2203
2204         PR tree-optimization/36504
2205         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
2206         references without base address.
2207
2208 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2209
2210         PR middle-end/36584
2211         * calls.c (expand_call): Increase alignment for recursive functions.
2212
2213 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
2214
2215         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
2216         (TARGET_FUNCTION_VALUE): New define.
2217         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
2218         * config/avr/avr.h (FUNCTION_VALUE): Remove.
2219
2220 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2221
2222         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
2223         (fmod<mode>3): Ditto.
2224         (remainderxf3): Ditto.
2225         (remainder<mode>3): Ditto.
2226
2227 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
2228
2229         PR target/36533
2230         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
2231         REG is a hard register.
2232
2233         PR tree-optimization/36508
2234         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
2235         499, don't check it at all in release compilers.
2236
2237 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
2238
2239         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
2240         together with SSE_TARGET_MATH to disable insn pattern.
2241         (*fop_<MODEF:mode>_2_i387): Ditto.
2242         (*fop_<MODEF:mode>_3_i387): Ditto.
2243
2244 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
2245
2246         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
2247         
2248 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2249
2250         PR middle-end/34906
2251         * gimplify.c (gimplify_asm_expr): Check the return code of
2252         parse_output_constraint call, set function return and is_inout
2253         value if it failed.
2254
2255 2008-06-22  Ian Lance Taylor  <iant@google.com>
2256
2257         * c-lex.c (narrowest_unsigned_type): Change itk to int.
2258         (narrowest_signed_type): Likewise.
2259         * c-typeck.c (c_common_type): Change local variable mclass to enum
2260         mode_class, twice.
2261         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
2262         tcc_comparison, not the tree code itself.
2263         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
2264         (c_expand_expr): Cast modifier to enum expand_modifier.
2265         * c-common.h (C_RID_CODE): Add casts.
2266         (C_SET_RID_CODE): Define.
2267         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
2268         (c_lex_one_token): Add cast to avoid warning.
2269         (c_parser_objc_type_name): Rename local typename to type_name.
2270         (check_no_duplicate_clause): Change code parameter to enum
2271         omp_clause_code.
2272         (c_parser_omp_var_list_parens): Change kind parameter to enum
2273         omp_clause_code.
2274         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
2275         c_parser_omp_list_var_parens.
2276         (c_parser_omp_threadprivate): Likewise.
2277         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
2278         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
2279         * c-format.c (NO_FMT): Define.
2280         (printf_length_specs): Use NO_FMT.
2281         (asm_fprintf_length_specs): Likewise.
2282         (gcc_diag_length_specs): Likewise.
2283         (scanf_length_specs): Likewise.
2284         (strfmon_length_specs): Likewise.
2285         (gcc_gfc_length_specs): Likewise.
2286         (printf_flag_specs): Change 0 to STD_C89.
2287         (asm_fprintf_flag_specs): Likewise.
2288         (gcc_diag_flag_specs): Likewise.
2289         (gcc_cxxdiag_flag_specs): Likewise.
2290         (scanf_flag_specs): Likewise.
2291         (strftime_flag_specs): Likewise.
2292         (strfmon_flag_specs): Likewise.
2293         (print_char_table): Likewise.
2294         (asm_fprintf_char_table): Likewise.
2295         (gcc_diag_char_table): Likewise.
2296         (gcc_tdiag_char_table): Likewise.
2297         (gcc_cdiag_char_table): Likewise.
2298         (gcc_cxxdiag_char_table): Likewise.
2299         (gcc_gfc_char_table): Likewise.
2300         (scan_char_table): Likewise.
2301         (time_char_table): Likewis.
2302         (monetary_char_table): Likewise.
2303         * c-format.h (BADLEN): Likewise.
2304
2305 2008-06-21  Ian Lance Taylor  <iant@google.com>
2306
2307         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
2308         Define END_OF_BASE_TREE_CODES around inclusion.
2309         * tree.c (tree_code_type): New global array.
2310         (tree_code_length, tree_code_name): Likewise.
2311         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
2312         $(lang_tree_files).
2313         (all-tree.def, s-alltree): New targets.
2314         (gencheck.h, s-gencheck): Remove.
2315         (tree.o): Depend upon all-tree.def.
2316         (build/gencheck.o): Remove gencheck.h dependency.
2317         (mostlyclean): Don't remove gencheck.h.
2318         * c-common.h (enum c_tree_code): Remove.
2319         * c-lang.c (tree_code_type): Remove.
2320         (tree_code_length, tree_code_name): Remove.
2321         * gencheck.c (tree_codes): Include all-tree.def, rather than
2322         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
2323         after it is used.
2324         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
2325         than tree.def.
2326         * cp/cp-tree.h (enum cplus_tree_code): Remove.
2327         (operator_name_info): Size to MAX_TREE_CODES.
2328         (assignment_operator_name_info): Likewise.
2329         * cp/cp-lang.c (tree_code_type): Remove.
2330         (tree_code_length, tree_code_name): Remove.
2331         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
2332         (assignment_operator_name_info): Likewise.
2333         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
2334         MAX_TREE_CODES.
2335         * cp/mangle.c (write_expression): Likewise.
2336         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
2337         * fortran/f95-lang.c (tree_code_type): Remove.
2338         (tree_code_length, tree_code_name): Remove.
2339         * java/java-tree.h (enum java_tree_code): Remove.
2340         * java/lang.c (tree_code_type): Remove.
2341         (tree_code_length, tree_code_name): Remove.
2342         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
2343         * objc/objc-act.h (enum objc_tree_code): Remove.
2344         * objc/objc-lang.c (tree_code_type): Remove.
2345         (tree_code_length, tree_code_name): Remove.
2346         * objcp/objcp-lang.c (tree_code_type): Remove.
2347         (tree_code_length, tree_code_name): Remove.
2348         * ada/ada-tree.h (enum gnat_tree_code): Remove.
2349         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
2350         * ada/misc.c (tree_code_type): Remove.
2351         (tree_code_length, tree_code_name): Remove.
2352
2353 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
2354
2355         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
2356         the grand_bitmap_obstack.
2357
2358 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2359
2360         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
2361         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
2362         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
2363         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
2364         move_stmt_r, new_label_mapper): Likewise.
2365         * tree-complex.c (cvc_lookup): Likewise.
2366         * tree-dfa.c (create_function_ann): Likewise.
2367         * tree-dump.c (dump_register): Likewise.
2368         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
2369         find_phi_replacement_condition): Likewise.
2370         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
2371         tree_function_versioning): Likewise.
2372         * tree-into-ssa.c (cmp_dfsnum): Likewise.
2373         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
2374         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
2375         get_nonlocal_debug_decl, convert_nonlocal_reference,
2376         convert_nonlocal_omp_clauses, get_local_debug_decl,
2377         convert_local_reference, convert_local_omp_clauses,
2378         convert_nl_goto_reference, convert_nl_goto_receiver,
2379         convert_tramp_reference, convert_call_expr): Likewise.
2380         * tree-outof-ssa.c (contains_tree_r): Likewise.
2381         * tree-parloops.c (reduction_phi, initialize_reductions,
2382         eliminate_local_variables_1, add_field_for_reduction,
2383         add_field_for_name, create_phi_for_local_result,
2384         create_call_for_reduction_1, create_loads_for_reductions,
2385         create_stores_for_reduction, create_loads_and_stores_for_name):
2386         Likewise.
2387         * tree-phinodes.c (allocate_phi_node): Likewise.
2388         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
2389         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
2390         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
2391         * tree-ssa-coalesce.c (compare_pairs): Likewise.
2392         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
2393         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
2394         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
2395         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
2396         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
2397         vn_nary_op_insert): Likewise.
2398         * tree-ssa.c (redirect_edge_var_map_add,
2399         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
2400         * tree-vectorizer.c (vectorize_loops): Likewise.
2401         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
2402         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
2403         tree_cons_stat, build1_stat, build_variant_type_copy,
2404         decl_init_priority_lookup, decl_fini_priority_lookup,
2405         decl_priority_info, decl_restrict_base_lookup,
2406         decl_restrict_base_insert, decl_debug_expr_lookup,
2407         decl_debug_expr_insert, decl_value_expr_lookup,
2408         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
2409         type_hash_add, get_file_function_name, tree_check_failed,
2410         tree_not_check_failed, tree_range_check_failed,
2411         omp_clause_range_check_failed, build_omp_clause,
2412         build_vl_exp_stat): Likewise.
2413         * value-prof.c (gimple_histogram_value,
2414         gimple_duplicate_stmt_histograms): Likewise.
2415         * var-tracking.c (attrs_list_insert, attrs_list_copy,
2416         unshare_variable, variable_union_info_cmp_pos, variable_union,
2417         dataflow_set_different_1, dataflow_set_different_2,
2418         vt_find_locations, variable_was_changed, set_variable_part,
2419         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
2420         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
2421         section_entry_hash, object_block_entry_eq,
2422         object_block_entry_hash, create_block_symbol,
2423         initialize_cold_section_name, default_function_rodata_section,
2424         strip_reg_name, set_user_assembler_name, const_desc_eq,
2425         build_constant_desc, output_constant_def, lookup_constant_def,
2426         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
2427         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
2428         default_internal_label): Likewise.
2429         * varray.c (varray_init, varray_grow): Likewise.
2430         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
2431
2432 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2433
2434         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
2435         operators for "test" insn.  Macroize insn using SWI mode macro.
2436         (*jcc_fused_2): Ditto.
2437         (*jcc_fused_3): Macroize insn using SWI mode macro.
2438         (*jcc_fused_4): Ditto.
2439
2440 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
2441
2442         * tree-ssa-pre.c: Fix typo in comment.
2443         (init_antic, fini_antic): Add explicit funtions for
2444         initializing and deinitializing ANTIC and AVAIL sets.
2445         (create_expression_by_pieces): Fix typo in comment.
2446         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
2447         (execute_pre): Eventually dump details about ANTIC_IN.
2448
2449 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2450
2451         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
2452         * gcc.c (translate_options, init_spec, store_arg, read_specs,
2453         add_to_obstack, file_at_path, find_a_file, execute,
2454         add_preprocessor_option, add_assembler_option, add_linker_option,
2455         process_command, insert_wrapper, do_option_spec, do_self_spec,
2456         spec_path, do_spec_1, is_directory, main, used_arg,
2457         getenv_spec_function): Likewise.
2458         * tlink.c (symbol_hash_lookup, file_hash_lookup,
2459         demangled_hash_lookup, symbol_push, file_push, frob_extension):
2460         Likewise.
2461
2462 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
2463
2464         * doc/rtl.texi: Updated subreg section.
2465
2466 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2467
2468         PR c++/36523
2469         * cgraphunit.c (cgraph_process_new_functions): Don't clear
2470         node->needed and node->reachable.
2471         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
2472         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
2473         (expand_task_call): Don't call expand_task_copyfn.
2474         (expand_task_copyfn): Renamed to...
2475         (finalize_task_copyfn): ... this.
2476
2477 2008-06-19  Jan Hubicka  <jh@suse.cz>
2478
2479         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
2480         clobbering framepointer.
2481
2482 2008-06-19  Jan Hubicka  <jh@suse.cz>
2483
2484         * tree-optimize.c (execute_early_local_optimizations): Set
2485         cgraph_state only at first invocation.
2486
2487 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2488
2489         * system.h (-Wc++-compat): Activate as a warning, no an error.
2490
2491 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2492
2493         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
2494         instead of "#" in insn asm template.
2495         (*jcc_fused_2): Ditto.
2496
2497 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
2498
2499         * config/i386/i386.h (ix86_tune_indices)
2500         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
2501         (TARGET_FUSE_CMP_AND_BRANCH): New define.
2502         * config/i386/i386.md (*jcc_fused_1): New insn pattern
2503         (*jcc_fused_2): Ditto.
2504         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
2505         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
2506         (print operand): Handle 'E' and 'e' code.
2507
2508 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
2509
2510         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
2511         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2512         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2513
2514 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
2515
2516         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
2517         node->decl.
2518         (cgraph_expand_function): Use local copy of decl.
2519         (cgraph_expand_all_functions): Remove redundant initialization of
2520         order_pos.
2521         (cgraph_optimize): Reword internal_error message.
2522
2523 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
2524
2525         * arm-protos.h (arm_return_in_memory): Remove public
2526         arm_return_in_memory() prototype.
2527         * arm.c (arm_return_in_memory): Add static prototype, add target
2528         hook macro, change definition and comments.
2529         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
2530
2531 2008-06-19  Ben Elliston  <bje@au.ibm.com>
2532
2533         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
2534         real.c: Remove references to IEEE 754R.
2535         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
2536         * doc/libgcc.texi (Decimal float library routines): Likewise.
2537
2538 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2539
2540         * targhooks.h (struct gcc_target): New member unwind_word_mode.
2541         (default_unwind_word_mode): Add prototype.
2542         * targhooks.c (default_unwind_word_mode): New function.
2543         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
2544         instead of word_mode.
2545         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
2546         (TARGET_INITIALIZER): Use it.
2547
2548         * c-common.c (handle_mode_attribute): Support "unwind_word"
2549         mode attribute.
2550         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
2551
2552         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
2553         word_mode to access SjLj_Function_Context member "data".
2554         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
2555         conversion from targetm.eh_return_filter_mode () to
2556         targetm.unwind_word_mode () if they differ.
2557
2558         * builtin-types.def (BT_UNWINDWORD): New primitive type.
2559         (BT_FN_UNWINDWORD_PTR): New function type.
2560         (BT_FN_WORD_PTR): Remove.
2561         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
2562         * except.c (expand_builtin_extend_pointer): Convert pointer to
2563         targetm.unwind_word_mode () instead of word_mode.
2564
2565         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
2566         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
2567         (spu_unwind_word_mode): New function.
2568         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
2569         (TARGET_UNWIND_WORD_MODE): Define.
2570         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
2571
2572 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2573
2574         * config/spu/spu.c (reg_align): Remove.
2575         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
2576         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
2577         (spu_split_store): Likewise.
2578
2579 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
2580
2581         * gcc/tree-vn.c: Fix typo in comment.
2582
2583 2008-06-18  Jan Hubicka  <jh@suse.cz>
2584
2585         * cgraphunit.c (cgraph_optimize): Output debug info when doing
2586         toplevel reorder too.
2587
2588 2008-06-18  Jan Hubicka  <jh@suse.cz>
2589
2590         * c-opts.c (c_common_post_options): PCH is not compatible with
2591         no-unit-at-a-time.
2592         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
2593         -fno-toplevel-reorder by default now.
2594
2595 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2596
2597         PR documentation/30739
2598         * doc/install.texi (Prerequisites): Document dependency on awk.
2599
2600 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
2601             Ian Lance Taylor  <iant@google.com>
2602
2603         PR rtl-optimization/35604
2604         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
2605         only want to change jump destinations, not eventual label comparisons.
2606
2607 2008-06-16  Jan Hubicka  <jh@suse.cz>
2608
2609         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
2610         syntax errors.
2611         (cgraph_analyze_function): Likewise.
2612
2613 2008-06-16  Jan Hubicka  <jh@suse.cz>
2614
2615         * cgraph.h (cgraph_mark_if_needed): New function.
2616         * cgraphunit.c (cgraph_mark_if_needed): New function.
2617         * c-decl.c (duplicate_decl): Use it.
2618
2619 2008-06-16  Jan Hubicka  <jh@suse.cz>
2620
2621         * cgraph.c (cgraph_add_new_function): When in expansion state, do
2622         lowering.
2623
2624 2008-06-16  Jan Hubicka  <jh@suse.cz>
2625
2626         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
2627
2628 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
2629             Kazu Hirata  <kazu@codesourcery.com>
2630             Maxim Kuvyrkov  <maxim@codesourcery.com
2631
2632         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
2633         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
2634         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
2635         EXTRA_SPEC_FUNCTIONS.
2636         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
2637         (DRIVER_SELF_SPECS): Adjust.
2638         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
2639         * config/mips/st.h, config/mips/t-st: New.
2640         * config/mips/driver-native.c, config/mips/x-native: New.
2641         * doc/invoke.texi (MIPS): Document 'native' value for -march and
2642         -mtune options.
2643
2644 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
2645
2646         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
2647         from it.
2648         (ISA_HAS_FP_CONDMOVE): New macro.
2649         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
2650         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
2651         (ISA_HAS_NMADD3_NMSUB3): New macro.
2652         * config/mips/mips.c (mips_rtx_costs): Update.
2653         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
2654         compiling for ST Loongson 2E/2F.
2655         (madd<mode>): Rename to madd4<mode>.  Update.
2656         (madd3<mode>): New pattern.
2657         (msub<mode>): Rename to msub4<mode>.  Update.
2658         (msub3<mode>): New pattern.
2659         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
2660         (nmadd3<mode>): New pattern.
2661         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
2662         (nmadd3<mode>_fastmath): New pattern.
2663         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
2664         (nmsub3<mode>): New pattern.
2665         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
2666         (nmsub3<mode>_fastmath): New pattern.
2667         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
2668
2669 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
2670
2671         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
2672         (DF_REF_INSN_INFO): New.
2673         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
2674         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
2675         with a NULL DF_REF_INSN_INFO.
2676         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
2677         DF_INSN_SET.
2678         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
2679         DF_INSN_INFO_EQ_USES): New.
2680         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
2681         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
2682         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
2683         * df-core.c: Update comment for above changes.
2684         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
2685         DF_INSN_UID_* macros.
2686         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
2687         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
2688         insn rtx.  Update all callers.
2689         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
2690         df_ref_create_structure, df_insn_refs_collect): Likewise.
2691         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
2692         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
2693         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
2694         macros to access the insn refs.
2695         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
2696         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
2697         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
2698         for accessing the refs.
2699         (try_fwprop_subst): Likewise.
2700         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
2701         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
2702         for accessing the refs.
2703         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
2704         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
2705         to look at the insn refs.
2706         (record_uses): Likewise.
2707         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
2708         function anymore.
2709         (mark_artificial_uses): Don't mark_insn for artificial refs.
2710         (mark_reg_rependencies): Likewise.
2711
2712         * doc/rtl.texi: Remove documentation of ADDRESSOF.
2713
2714 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2715
2716         * configure: Regenerate.
2717
2718 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2719
2720         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
2721         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2722         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2723
2724 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2725
2726         * config/avr/avr.c (avr_mcu_t): Add attiny167.
2727         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2728         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2729
2730 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
2731
2732         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
2733         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
2734         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2735
2736 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2737
2738         * tree-ssa-sccvn.c: Fix format of comments.
2739
2740 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
2741
2742         * cgraph.c: Remove unneeded forward declarations of eq_node()
2743         and hash_node().
2744
2745 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
2746
2747         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
2748         REG_RETVAL notes.
2749         (see_update_relevancy): Likewise.
2750         * fwprop.c (try_fwprop_subst): Likewise.
2751         * rtlanal.c (noop_move_p): Likewise.
2752         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
2753         notes to non-existing libcall blocks.
2754         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
2755         Remove orig_set.
2756         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
2757         (dead_libcall_p): Remove.
2758         (delete_trivially_dead_insns): Don't use it.
2759         * web.c (union_defs): Remove comment about keeping nops.
2760         * gcse.c (hash_scan_insn): Don't take libcall pointers.
2761         (compute_hash_table_work): Don't track libcall notes.
2762         (do_local_cprop): Don't take libcall pointers.  Don't update
2763         libcall notes.
2764         (adjust_libcall_notes): Deleted.
2765         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
2766         ever have existed in the first place).
2767         (replace_store_insn): Don't try to remove libcall notes.
2768         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
2769         (resolve_reg_notes): Don't call them.
2770         (resolve_simple_move): Likewise.
2771         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
2772         Don't remove REG_RETVAL notes.
2773         * emit-rtl.c (try_split): Don't update libcall notes.
2774         (emit_copy_of_insn_after): Dito.
2775         * cselib.c (cselib_current_insn_in_libcall): Remove.
2776         (cselib_process_insn): Don't set/clear it.
2777         (new_elt_loc_list): Don't record it.
2778         (cselib_init): Don't initialize it.
2779         * cselib.c (struct elt_loc_list): Remove in_libcall field.
2780         * loop-invariant.c (find_invariant_insn): Don't look for libcall
2781         notes.
2782         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
2783         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
2784         (init_deps): Don't initialize it.
2785         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
2786         * combine.c (delete_noop_moves): Don't update libcall notes.
2787         (can_combine_p): Remove now pointless #if 0 block.
2788         (try_combine): Remove another obsolete #if 0 block.
2789         (distribute_notes): Don't distribute libcall notes.
2790         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
2791         * dce.c (libcall_dead_p): Remove.
2792         (delete_unmarked_insns): Don't handle libcall blocks.
2793         (preserve_libcall_for_dce): Remove.
2794         (prescan_insns_for_dce): Don't special-case libcall block insns.
2795         * reload1 (reload): Don't handle libcall notes. 
2796         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
2797         documentation.
2798
2799 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2800
2801         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
2802         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2803         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2804
2805 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
2806
2807         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
2808         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2809         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
2810
2811 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2812
2813         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
2814
2815 2008-06-16  Ira Rosen  <irar@il.ibm.com>
2816
2817         PR tree-optimization/36493
2818         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
2819         the arguments list. Use VECTYPE to create vector pointer.
2820         (vectorizable_store): Fail if accesses through a pointer to vectype
2821         do not alias the original memory reference operands.
2822         Call vect_create_data_ref_ptr without the removed argument.
2823         (vectorizable_load): Likewise.
2824         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
2825         removed argument.
2826
2827 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
2828
2829         PR target/36336
2830         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
2831         reg_equiv_constant.
2832
2833 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
2834
2835         * config/mips/loongson2ef.md: New file.
2836         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2837         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2838         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2839         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
2840         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
2841         and loongson_2f.
2842         (loongson2ef.md): New include.
2843         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
2844         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
2845         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
2846         (loongson_gt_<mode>, loongson_extract_halfword)
2847         (loongson_insert_halfword_0, loongson_insert_halfword_2)
2848         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
2849         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
2850         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
2851         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
2852         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
2853         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
2854         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
2855         (vec_interleave_low<mode>): Define type attribute.
2856         * config/mips/mips.c (mips_ls2): New static variable.
2857         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
2858         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
2859         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
2860         Implement target scheduling hooks.
2861         (mips_multipass_dfa_lookahead): Update to handle tuning for
2862         Loongson 2E/2F.
2863         (mips_sched_init): Initialize data for Loongson scheduling.
2864         (mips_ls2_variable_issue): New static function.
2865         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
2866         Add sanity check.
2867         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
2868         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
2869         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
2870         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
2871         Handle ST Loongson 2E/2F cores.
2872         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
2873
2874 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2875
2876         * omp-low.c (extract_omp_for_data): Fix comment typo.
2877         * c.opt: Fix typo.
2878
2879 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2880
2881         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
2882         FIXME note about gcc/config.guess.
2883         * doc/options.texi (Option file format): Remove non-ASCII bytes.
2884         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
2885         * doc/cppopts.texi: Likewise.
2886         * doc/extend.texi: Likewise.
2887         * doc/gcc.texi: Likewise.
2888         * doc/gccint.texi: Likewise.
2889         * doc/gcov.texi: Likewise.
2890         * doc/gty.texi: Likewise.
2891         * doc/hostconfig.texi: Likewise.
2892         * doc/install.texi: Likewise.
2893         * doc/invoke.texi: Likewise.
2894         * doc/loop.texi: Likewise.
2895         * doc/makefile.texi: Likewise.
2896         * doc/md.texi: Likewise.
2897         * doc/passes.texi: Likewise.
2898         * doc/tm.texi: Likewise.
2899         * doc/tree-ssa.texi: Likewise.
2900         * doc/trouble.texi: Likewise.
2901
2902 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
2903             Nathan Sidwell  <nathan@codesourcery.com>
2904             Maxim Kuvyrkov  <maxim@codesourcery.com>
2905             Richard Sandiford  <rdsandiford@googlemail.com>
2906         
2907         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
2908         * config/mips/mips-protos.h (mips_expand_vector_init): New.
2909         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
2910         builtins.
2911         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
2912         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
2913         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
2914         V8QImode cases.
2915         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
2916         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
2917         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
2918         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
2919         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
2920         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
2921         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
2922         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
2923         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
2924         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
2925         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
2926         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
2927         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
2928         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
2929         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
2930         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
2931         (mips_builtins): Add Loongson builtins.
2932         (mips_loongson_2ef_bdesc): New.
2933         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
2934         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
2935         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
2936         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
2937         New.
2938         (mips_expand_vector_init): New.
2939         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2940         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2941         if appropriate.
2942         * config/mips/mips.md: Add unspec numbers for Loongson
2943         builtins.  Include loongson.md.
2944         (MOVE64): Include Loongson vector modes.
2945         (SPLITF): Include Loongson vector modes.
2946         (HALFMODE): Handle Loongson vector modes.
2947         * config/mips/loongson.md: New.
2948         * config/mips/loongson.h: New.
2949         * config.gcc: Add loongson.h header for mips*-*-* targets.
2950         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2951
2952 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
2953
2954         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2955         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2956         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2957         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2958         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
2959         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
2960         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
2961         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
2962         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
2963         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
2964         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
2965         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
2966         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
2967         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
2968         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
2969         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
2970         Remove use_fixproto=yes.
2971         (ia64*-*-hpux*): Remove comment about using fixproto.
2972         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
2973
2974 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2975
2976         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
2977         library rebuilds.
2978         * configure: Regenerate.
2979
2980 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2981
2982         PR middle-end/36520
2983         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
2984         before evaluating it.
2985
2986 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
2987
2988         PR c/36507
2989         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
2990         nested inline functions.
2991         (start_decl, start_function): Don't invert DECL_EXTERNAL
2992         for nested inline functions.
2993
2994 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2995
2996         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
2997         splits that must be made for correctness.
2998
2999 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
3000
3001         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
3002         (AVAIL_NON_MIPS16): Likewise.
3003         (mips_builtin_description): Replace target_flags with a predicate.
3004         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
3005         (dspr2_32): New availability predicates.
3006         (MIPS_BUILTIN): New macro.
3007         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
3008         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
3009         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
3010         Replace the TARGET_FLAGS parameters with AVAIL parameters.
3011         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
3012         (mips_dsp_32only_bdesc): Merge into...
3013         (mips_builtins): ...this new array.
3014         (mips_bdesc_map, mips_bdesc_arrays): Delete.
3015         (mips_init_builtins): Update after above changes.
3016         (mips_expand_builtin_1): Merge into...
3017         (mips_expand_builtin): ...here and update after above changes.
3018
3019 2008-06-12  Paul Brook  <paul@codesourcery.com>
3020
3021         * longlong.h (__arm__): Define count_leading_zeros.
3022         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
3023         (clzsi2, clzdi2): New functions.
3024         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
3025         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
3026         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
3027         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
3028         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
3029         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
3030         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
3031         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3032         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
3033         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
3034
3035 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
3036
3037         * config/m68k/m68k.c (m68k_tune_flags): New.
3038         (override_options): Compute m68k_tune_flags.
3039         (MULL_COST, MULW_COST): Update for various variants of CFV2.
3040         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
3041
3042 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3043
3044         PR middle-end/36506
3045         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
3046
3047 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3048
3049         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
3050         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
3051
3052 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3053
3054         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
3055         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
3056
3057 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3058
3059         PR middle-end/36506
3060         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
3061         reductions.
3062
3063 2008-06-12  Richard Guenther  <rguenther@suse.de>
3064
3065         PR tree-optimization/36345
3066         * tree-flow.h (struct ptr_info_def): Align escape_mask,
3067         add memory_tag_needed flag.
3068         (may_alias_p): Declare.
3069         * tree-ssa-alias.c (may_alias_p): Export.
3070         (set_initial_properties): Use memory_tag_needed flag.
3071         (update_reference_counts): Likewise.
3072         (reset_alias_info): Reset memory_tag_needed flag.
3073         (create_name_tags): Check memory_tag_needed flag.
3074         (dump_points_to_info_for): Dump it.
3075         * tree-ssa-structalias.c (struct variable_info): Remove
3076         directly_dereferenced flag.
3077         (new_var_info): Do not initialize it.
3078         (process_constraint_1): Do not set it.
3079         (update_alias_info): Set is_dereferenced flag.
3080         (set_uids_in_ptset): Use may_alias_p.
3081         (set_used_smts): Check memory_tag_needed flag.
3082         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
3083         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
3084         memory_tag_needed flag.
3085         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
3086         from broken design.
3087
3088 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
3089
3090         * config/i386/i386.c (ix86_compute_frame_layout): Disable
3091         red zone for w64 abi.
3092         (ix86_expand_prologue): Likewise.
3093         (ix86_force_to_memory): Likewise.
3094         (ix86_free_from_memory): Likewise.
3095
3096 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
3097
3098         PR target/36425
3099         * config/rs6000/rs6000.c (rs6000_override_options): Set
3100         rs6000_isel conditionally to the absence of comand line override.
3101         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3102         Remove duplicate rs6000_isel setting.
3103         * config/rs6000/eabispe.h: Ditto.
3104
3105 2008-06-11  Richard Guenther  <rguenther@suse.de>
3106
3107         * alias.c (get_alias_set): Use the element alias-set for arrays.
3108         (record_component_aliases): For arrays and vectors do nothing.
3109         * c-common.c (strict_aliasing_warning): Handle the cases
3110         of alias set zero explicitly.
3111         * Makefile.in (dfp.o-warn): Add -Wno-error.
3112
3113 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3114
3115         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
3116         tune_32 tune_64.
3117         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
3118         tune_32 tune_64 to supported_defaults.  Allow values not
3119         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
3120         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
3121         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
3122         with_cpu_64 to generic for 64-bit-supporting configurations, not
3123         with_cpu.  Remove FIXMEs.
3124         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
3125         --with-arch-64, --with-tune-32, --with-tune-64): Document.
3126         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
3127         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
3128         arch_32 and arch_64.
3129
3130 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3131             Olivier Hainque  <hainque@adacore.com>
3132
3133         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
3134         Use DECL_SIZE_UNIT to retrieve the size of the field.
3135
3136 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
3137
3138         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
3139         with function calls after declarations.  Lay out
3140         neon_float_type_node before further use.
3141
3142 2008-06-11  Richard Guenther  <rguenther@suse.de>
3143
3144         * tree-flow.h (may_point_to_global_var): Declare.
3145         * tree-ssa-alias.c (may_point_to_global_var): New function.
3146         * tree-ssa-sink.c (is_hidden_global_store): Use it.
3147
3148 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
3149
3150         * configure.ac: Teach that fido supports .debug_line.
3151         * configure: Regenerate.
3152
3153 2008-06-10  Tom Tromey  <tromey@redhat.com>
3154
3155         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
3156         debug hook.
3157
3158 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3159
3160         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
3161         (encode_decimal64, decode_decimal64, encode_decimal128,
3162         decode_decimal128): Reverse order of 32-bit parts of value if host
3163         and target endianness differ.
3164
3165 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
3166
3167         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
3168         Avoid division by 0.
3169         (tree_mod_pow2_value_transform): Likewise.
3170         (tree_ic_transform): Likewise.
3171         (tree_stringops_transform): Likewise.
3172         (tree_mod_subtract_transform): Likewise.
3173         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
3174         (copy_edges_for_bb): Likewise.
3175         (initialize_cfun): Likewise.
3176
3177 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3178
3179         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
3180         nonmemory_operand. Add "N" operand constraint.
3181         (*btsi): Ditto.
3182         (*jcc_btdi_mask_rex64): New instruction and split pattern.
3183         (*jcc_btsi_mask): Ditto.
3184         (*jcc_btsi_mask_1): Ditto.
3185
3186 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
3187
3188         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
3189         TYPE_CANONICAL for copied element type.
3190
3191 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
3192
3193         PR target/36473
3194         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
3195         Add m_CORE2 and m_GENERIC.
3196         * config/i386/predicates.md (bt_comparison_operator): New predicate.
3197         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
3198         (*btsi): Ditto.
3199         (*jcc_btdi_rex64): New instruction and split pattern.
3200         (*jcc_btsi): Ditto.
3201         (*jcc_btsi_1): Ditto.
3202         (*btsq): Fix Intel asm dialect operand order.
3203         (*btrq): Ditto.
3204         (*btcq): Ditto.
3205
3206 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
3207
3208         PR middle-end/36447
3209         * simplify-rtx.c (simplify_subreg): Add check for shift count 
3210         greater than size.
3211
3212 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
3213
3214         * doc/md.texi: Synchronize with later constraints.md change.
3215         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
3216         with a C implementation.
3217         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
3218         MFLO handling.
3219         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
3220         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
3221         when moving to and from MD_REGNUM.
3222         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
3223         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
3224         Handle byte and halfword moves.
3225         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
3226         separately.
3227         * config/mips/constraints.md (h): Turn into NO_REGS.
3228         (l, x): Update documentation.
3229         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
3230         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
3231         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
3232         (HILO): New mode iterator.
3233         (MOVE128): Add TI.
3234         (any_div): New code iterator.
3235         (u): Extend code attribute to div and udiv.
3236         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
3237         d_operand in the splitters.  Remove redundant CONST_INT checks.
3238         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
3239         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
3240         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
3241         accordingly, using normal moves instead of unspecs to move LO into
3242         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
3243         (<u>mulsidi3): Handle expansion in C code.
3244         (<u>mulsidi3_32bit_internal): Rename to...
3245         (<u>mulsidi3_32bit): ...this.
3246         (<u>mulsidi3_32bit_r4000): Fix insn separator.
3247         (*<u>mulsidi3_64bit): Rename to...
3248         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
3249         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
3250         to set LO and HI to the multiplication result.  Use a normal move
3251         for MFLO and an unspec for MFHI.
3252         (*<u>mulsidi3_64bit_parts): Replace with...
3253         (<u>mulsidi3_64bit_hilo): ...this new instruction.
3254         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
3255         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
3256         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
3257         instead of HI.  Split the instruction into a separate multiplication
3258         and MFHI if !TARGET_FIX_R4000.
3259         (<su>muldi3_highpart): Likewise.
3260         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
3261         and the "=h" clobber.
3262         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
3263         (<u>mulditi3): New expander.
3264         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
3265         (madsi): Remove "=h" clobber.
3266         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
3267         Force the modulus result to be a GPR and split the instruction into
3268         a division followed by an MFHI after reload.
3269         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
3270         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
3271         the MIPS16 HIGH define_split.
3272         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
3273         of acc<->gpr moves to "multi".
3274         (*movdi_64bit): Replace the single "x" alternative with
3275         alternatives for moving into and out of "a".
3276         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
3277         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
3278         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
3279         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
3280         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
3281         (movti): New expander.
3282         (*movti, *movti_mips16): New insns.
3283         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
3284         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
3285         (mthi<GPR:mode>_<HILO:mode>): Likewise.
3286         * config/mips/predicates.md (fpr_operand): Delete.
3287         (d_operand): New predicate.
3288
3289 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
3290
3291         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
3292         failure on some Bourne shells.
3293         (x86_64-*-*): Ditto.
3294
3295 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
3296
3297         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
3298
3299 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3300
3301         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
3302         (sparc-sun-solaris2*): Likewise.
3303
3304 2008-06-09  Arnaud Charlet  <charlet@adacore.com
3305
3306         * doc/install.texi: Update requirements to build the Ada compiler.
3307
3308 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
3309
3310         * df-scan.c (struct df_scan_problem_data): Remove the
3311         mw_link_pool alloc pool.
3312         (df_scan_free_internal): Don't free it.
3313         (df_scan_alloc): Don't allocate it.
3314         * df.h (struct df_link): Update comment.
3315
3316 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
3317
3318         * except.h: Correct checks for when SJLJ exceptions must be used.
3319
3320 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3321
3322         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
3323         default.
3324         
3325 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
3326
3327         PR tree-optimization/36218
3328         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
3329         configure for the build system.
3330         (BUILD_LDFLAGS): Define.
3331         * configure: Regenerate.
3332         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
3333
3334 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
3335
3336         PR target/36424
3337         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
3338         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
3339         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
3340
3341 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
3342
3343         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
3344
3345 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
3346
3347         * config.gcc (Obsolete configurations): Remove list of
3348         configurations.
3349         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
3350         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
3351         targets matched by those patterns.
3352         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
3353         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
3354         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
3355         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
3356         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
3357         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3358         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
3359         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
3360         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
3361         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
3362         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
3363         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
3364         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
3365         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
3366         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
3367         Make code for Solaris 7 and greater unconditional for Solaris.
3368         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
3369         Remove --with-* handling.
3370         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
3371         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
3372         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
3373         LINK_OS_WINDISS_SPEC): Remove.
3374         * config/rs6000/sysv4.opt (mwindiss): Remove.
3375         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
3376         * configure: Regenerate.
3377         * doc/cpp.texi: Don't mention BeOS.
3378         * doc/extend.texi (interrupt): Don't mention MS1.
3379         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
3380         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
3381         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
3382         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
3383         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
3384         Remove.
3385         * doc/invoke.texi (MT Options): Remove.
3386         (-mwindiss): Remove.
3387         (CRIS Options): Remove cris-axis-aout references.
3388         (HPPA Options): Don't mention hppa1.1-*-pro.
3389         * doc/md.texi: (MorphoTech family): Remove.
3390         * libgcc2.c: Don't handle UWIN.
3391         * config/alpha/t-unicosmk: Remove.
3392         * config/alpha/unicosmk.h: Remove.
3393         * config/arm/kaos-arm.h: Remove.
3394         * config/arm/kaos-strongarm.h: Remove.
3395         * config/arm/strongarm-coff.h: Remove.
3396         * config/arm/strongarm-elf.h: Remove.
3397         * config/arm/strongarm-pe.h: Remove.
3398         * config/arm/t-strongarm-pe: Remove.
3399         * config/arm/t-xscale-coff: Remove.
3400         * config/arm/t-xscale-elf: Remove.
3401         * config/arm/xscale-coff.h: Remove.
3402         * config/arm/xscale-elf.h: Remove.
3403         * config/chorus.h: Remove.
3404         * config/cris/aout.h: Remove.
3405         * config/cris/aout.opt: Remove.
3406         * config/cris/t-aout: Remove.
3407         * config/i386/beos-elf.h: Remove.
3408         * config/i386/kaos-i386.h: Remove.
3409         * config/i386/ptx4-i.h: Remove.
3410         * config/i386/sco5.h: Remove.
3411         * config/i386/sco5.opt: Remove.
3412         * config/i386/sysv4-cpp.h: Remove.
3413         * config/i386/sysv5.h: Remove.
3414         * config/i386/t-beos: Remove.
3415         * config/i386/t-sco5: Remove.
3416         * config/i386/t-uwin: Remove.
3417         * config/i386/uwin.asm: Remove.
3418         * config/i386/uwin.h: Remove.
3419         * config/kaos.h: Remove.
3420         * config/mips/windiss.h: Remove.
3421         * config/mt: Remove directory.
3422         * config/pa/pa-osf.h: Remove.
3423         * config/pa/pa-pro-end.h: Remove.
3424         * config/pa/t-pro: Remove.
3425         * config/ptx4.h: Remove.
3426         * config/rs6000/beos.h: Remove.
3427         * config/rs6000/kaos-ppc.h: Remove.
3428         * config/rs6000/t-beos: Remove.
3429         * config/rs6000/windiss.h: Remove.
3430         * config/sh/kaos-sh.h: Remove.
3431         * config/sol2-6.h: Remove.
3432         * config/sparc/sol26-sld.h: Remove.
3433         * config/sparc/sysv4-only.h: Remove.
3434         * config/vax/bsd.h: Remove.
3435         * config/vax/t-memfuncs: Remove.
3436         * config/vax/ultrix.h: Remove.
3437         * config/vax/vaxv.h: Remove.
3438         * config/windiss.h: Remove.
3439
3440 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
3441
3442         PR rtl-optimization/36438
3443         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
3444         for vector shifts with constant scalar shift operands.
3445
3446 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
3447
3448         * doc/invoke.texi: Document -march=xlr.
3449         * config/mips/xlr.md: New file.
3450         * config/mips/mips.md: Include it.
3451         (cpu): Add "xlr".
3452         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
3453         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
3454         (mips_rtx_cost_data): Likewise.
3455
3456 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
3457
3458         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
3459         PRE_INC and PRE_DEC cases.
3460
3461 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3462
3463         PR rtl-optimization/36419
3464         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
3465         the emitting jump insn.
3466
3467         PR target/36362
3468         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
3469         is not bool, boolify the whole *expr_p and convert to the desired type.
3470
3471 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3472
3473         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
3474         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
3475         Add omp_private_outer_ref hook, add another argument to
3476         omp_clause_default_ctor hook.
3477         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
3478         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
3479         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
3480         hook_tree_tree_tree_tree_null.
3481         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
3482         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
3483         * hooks.c (hook_tree_tree_tree_tree_null): New function.
3484         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
3485         * tree.def (OMP_TASK): New tree code.
3486         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
3487         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
3488         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
3489         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
3490         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
3491         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
3492         OMP_CLAUSE_COLLAPSE_EXPR): Define.
3493         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3494         (OMP_DIRECTIVE_P): Add OMP_TASK.
3495         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
3496         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
3497         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
3498         and OMP_CLAUSE_UNTIED entries.
3499         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
3500         num_ops to 2.
3501         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3502         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
3503         * tree-pretty-print.c (dump_omp_clause): Handle
3504         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
3505         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
3506         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
3507         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
3508         warning about unsigned iterators.  Change decl/init/cond/incr
3509         arguments to TREE_VECs, check arguments for all collapsed loops.
3510         (c_finish_omp_taskwait): New function.
3511         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
3512         ws_clauses.
3513         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
3514         default_function_array_conversion on init.  Add par_clauses argument.
3515         If decl is present in parallel's lastprivate clause, change it to
3516         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
3517         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
3518         collapse count in clauses.
3519         (c_parser_omp_for, c_parser_omp_parallel): Adjust
3520         c_parser_omp_for_loop callers.
3521         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
3522         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
3523         (c_parser_omp_clause_name): Handle collapse and untied clauses.
3524         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
3525         functions.
3526         (c_parser_omp_clause_schedule): Handle schedule(auto).
3527         Include correct location in the error message.
3528         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
3529         and PRAGMA_OMP_CLAUSE_UNTIED.
3530         (OMP_TASK_CLAUSE_MASK): Define.
3531         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
3532         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
3533         * tree-nested.c (convert_nonlocal_omp_clauses,
3534         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
3535         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
3536         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3537         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
3538         OMP_CLAUSE_DECL.
3539         (conver_nonlocal_reference, convert_local_reference,
3540         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
3541         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
3542         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
3543         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
3544         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
3545         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
3546         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
3547         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
3548         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3549         OMP_CLAUSE_UNTIED.
3550         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
3551         * c-common.h (c_finish_omp_taskwait): New prototype.
3552         * gimple-low.c (lower_stmt): Handle OMP_TASK.
3553         * tree-parloops.c (create_parallel_loop): Create 1 entry
3554         vectors for OMP_FOR_{INIT,COND,INCR}.
3555         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3556         (make_edges): Handle OMP_TASK.
3557         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
3558         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3559         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
3560         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
3561         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
3562         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3563         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
3564         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
3565         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
3566         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
3567         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
3568         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
3569         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
3570         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
3571         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
3572         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
3573         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
3574         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
3575         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
3576         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
3577         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
3578         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
3579         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
3580         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
3581         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
3582         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
3583         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
3584         original iterator is present in lastprivate clause or if
3585         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
3586         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3587         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
3588         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
3589         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
3590         if it is set, lookup var in outer contexts too.  Handle
3591         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
3592         to be implicitly determined firstprivate for task regions.
3593         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
3594         if it is set, lookup var in outer contexts too.  Set
3595         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
3596         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
3597         OMP_CLAUSE_UNTIED.  Take region_type as last argument
3598         instead of in_parallel and in_combined_parallel.
3599         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
3600         Adjust callers.
3601         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
3602         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
3603         (new_omp_context): Set default_kind to
3604         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
3605         (omp_region_type): New enum.
3606         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
3607         fields, add region_type.
3608         (new_omp_context): Take region_type as argument instead of is_parallel
3609         and is_combined_parallel.
3610         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
3611         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
3612         ctx->is_combined_parallel checks.
3613         (gimplify_omp_task): New function.
3614         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
3615         OMP_CLAUSE_UNTIED.
3616         * omp-low.c (extract_omp_for_data): Use schedule(static)
3617         for schedule(auto).  Handle pointer and unsigned iterators.
3618         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
3619         Add loops argument.  Extract data for collapsed OMP_FOR loops.
3620         (expand_parallel_call): Assert sched_kind isn't auto,
3621         map runtime schedule to index 3.
3622         (struct omp_for_data_loop): New type.
3623         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
3624         Add loop, loops, collapse and iter_type fields.
3625         (workshare_safe_to_combine_p): Disallow combined for if
3626         iter_type is unsigned long long.  Don't combine collapse > 1 loops
3627         unless all bounds and steps are constant.  Adjust extract_omp_for_data
3628         caller.
3629         (expand_omp_for_generic): Handle pointer, unsigned and long long
3630         iterators.  Handle collapsed OMP_FOR loops.  Adjust
3631         for struct omp_for_data changes.  If libgomp function doesn't return
3632         boolean_type_node, add comparison of the return value with 0.
3633         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
3634         pointer, unsigned and long long iterators.  Adjust for struct
3635         omp_for_data changes.
3636         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
3637         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
3638         unsigned long long.  Allocate loops array, pass it to
3639         extract_omp_for_data.  For collapse > 1 loops use always
3640         expand_omp_for_generic.
3641         (omp_context): Add sfield_map and srecord_type fields.
3642         (is_task_ctx, lookup_sfield): New functions.
3643         (use_pointer_for_field): Use is_task_ctx helper.  Change first
3644         argument's type from const_tree to tree.  Clarify comment.
3645         In OMP_TASK disallow copy-in/out sharing.
3646         (build_sender_ref): Call lookup_sfield instead of lookup_field.
3647         (install_var_field): Add mask argument.  Populate both record_type
3648         and srecord_type if needed.
3649         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
3650         in srecord_type.
3651         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
3652         and DECL_FIELD_OFFSET.
3653         (scan_sharing_clauses): Adjust install_var_field callers.  For
3654         firstprivate clauses on explicit tasks allocate the var by value in
3655         record_type unconditionally, rather than by reference.
3656         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
3657         Use is_taskreg_ctx instead of is_parallel_ctx.
3658         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
3659         (create_omp_child_function_name): Add task_copy argument, use
3660         *_omp_cpyfn* names if it is true.
3661         (create_omp_child_function): Add task_copy argument, if true create
3662         *_omp_cpyfn* helper function.
3663         (scan_omp_parallel): Adjust create_omp_child_function callers.
3664         Rename parallel_nesting_level to taskreg_nesting_level.
3665         (scan_omp_task): New function.
3666         (lower_rec_input_clauses): Don't run constructors for firstprivate
3667         explicit task vars which are initialized by *_omp_cpyfn*.  
3668         Pass outer var ref to omp_clause_default_ctor hook if
3669         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
3670         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
3671         OMP_CLAUSE_REDUCTION_INIT.
3672         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
3673         avoid duplicate setting of fields.  Handle
3674         OMP_CLAUSE_PRIVATE_OUTER_REF.
3675         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
3676         copy-out if TREE_READONLY, only copy-in.
3677         (expand_task_copyfn): New function.
3678         (expand_task_call): New function.
3679         (struct omp_taskcopy_context): New type.
3680         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
3681         New functions.
3682         (lower_omp_parallel): Rename to...
3683         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3684         Call create_task_copyfn if srecord_type is needed.  Adjust
3685         sender_decl type.
3686         (task_shared_vars): New variable.
3687         (check_omp_nesting_restrictions): Warn if work-sharing,
3688         barrier, master or ordered region is closely nested inside OMP_TASK.
3689         Add warnings for barrier if closely nested inside of work-sharing,
3690         ordered, or master region.
3691         (scan_omp_1): Call check_omp_nesting_restrictions even for
3692         GOMP_barrier calls.  Rename parallel_nesting_level to
3693         taskreg_nesting_level.  Handle OMP_TASK.
3694         (lower_lastprivate_clauses): Even if some lastprivate is found on a
3695         work-sharing construct, continue looking for them on parent parallel
3696         construct.
3697         (lower_omp_for_lastprivate): Add lastprivate clauses
3698         to the beginning of dlist rather than end.  Adjust for struct
3699         omp_for_data changes.
3700         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
3701         not after it.  Handle collapsed OMP_FOR loops, adjust for
3702         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
3703         (get_ws_args_for): Adjust extract_omp_for_data caller.
3704         (scan_omp_for): Handle collapsed OMP_FOR
3705         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
3706         (lower_omp_single_simple): If libgomp function doesn't return
3707         boolean_type_node, add comparison of the return value with 0.
3708         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
3709         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
3710         (parallel_nesting_level): Rename to...
3711         (taskreg_nesting_level): ... this.
3712         (is_taskreg_ctx): New function.
3713         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
3714         of is_parallel_ctx.
3715         (execute_lower_omp): Rename parallel_nesting_level to
3716         taskreg_nesting_level.
3717         (expand_omp_parallel): Rename to...
3718         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
3719         Call omp_task_call for OMP_TASK regions.
3720         (expand_omp): Adjust caller, handle OMP_TASK.
3721         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
3722
3723         * bitmap.c (bitmap_default_obstack_depth): New variable.
3724         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
3725         if argument is NULL and bitmap_default_obstack is already initialized.
3726         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
3727         at the end.
3728         * matrix-reorg.c (matrix_reorg): Likewise.
3729
3730 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
3731
3732         * config/i386/i386.md (*indirect_jump): Macroize using P
3733         mode iterator.  Remove !TARGET_64BIT from insn constraints.
3734         (*tablejump_1): Ditto.
3735         (*indirect_jump_rex64): Remove insn pattern.
3736         (*tablejump_1_rex64): Ditto.
3737         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
3738         and eh_return_si insn patterns.
3739
3740 2008-06-06  Richard Guenther  <rguenther@suse.de>
3741
3742         * tree-ssa-structalias.c (merge_smts_into): Remove.
3743         (find_what_p_points_to): Do not bother to compute the
3744         points-to set for pt_anything pointers.
3745         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
3746         for pt_anything pointers is ok.
3747
3748 2008-06-06  Jan Hubicka  <jh@suse.cz>
3749
3750         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
3751
3752 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3753
3754         * cgraph.c: Fix typos in comments.
3755         (cgraph_availability_names): Fix string typo.
3756         * fold-const.c: Fix typos in comments.
3757         (fold_binary): Fix typo in warning.
3758         * genautomata.c: Fix typos in comments.
3759         (check_presence_pattern_sets): Fix typo in local variable.
3760         (output_description): Fix typo in output.
3761         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
3762         * hwint.h: Likewise.
3763         * matrix-reorg.c (check_allocation_function): Likewise.
3764         * omega.c (smooth_weird_equations): Likewise.
3765         * auto-inc-dec.c: Fix typos in comments.
3766         * bb-reorder.c: Likewise.
3767         * builtins.c: Likewise.
3768         * c-common.c: Likewise.
3769         * c-cppbuiltin.c: Likewise.
3770         * c-parser.c: Likewise.
3771         * c-pretty-print.c: Likewise.
3772         * cfgcleanup.c: Likewise.
3773         * cfgexpand.c: Likewise.
3774         * cfghooks.c: Likewise.
3775         * cfglayout.c: Likewise.
3776         * cfgloopmanip.c: Likewise.
3777         * cgraphunit.c: Likewise.
3778         * coverage.c: Likewise.
3779         * dbxout.c: Likewise.
3780         * df-byte-scan.c: Likewise.
3781         * df-core.c: Likewise.
3782         * df-problems.c: Likewise.
3783         * df-scan.c: Likewise.
3784         * dfp.c: Likewise.
3785         * dominance.c: Likewise.
3786         * domwalk.c: Likewise.
3787         * dse.c: Likewise.
3788         * dwarf2out.c: Likewise.
3789         * emit-rtl.c: Likewise.
3790         * et-forest.c: Likewise.
3791         * function.c: Likewise.
3792         * function.h: Likewise.
3793         * gcc.c: Likewise.
3794         * gcov-io.c: Likewise.
3795         * gcov.c: Likewise.
3796         * gcse.c: Likewise.
3797         * genattrtab.c: Likewise.
3798         * ggc-page.c: Likewise.
3799         * gimplify.c: Likewise.
3800         * gthr-lynx.h: Likewise.
3801         * haifa-sched.c: Likewise.
3802         * ipa-cp.c: Likewise.
3803         * ipa-inline.c: Likewise.
3804         * ipa-prop.h: Likewise.
3805         * ipa-pure-const.c: Likewise.
3806         * ipa-struct-reorg.c: Likewise.
3807         * ipa-struct-reorg.h: Likewise.
3808         * ipa-type-escape.c: Likewise.
3809         * ipa.c: Likewise.
3810         * loop-doloop.c: Likewise.
3811         * mips-tfile.c: Likewise.
3812         * mkmap-flat.awk: Likewise.
3813         * mkmap-symver.awk: Likewise.
3814         * modulo-sched.c: Likewise.
3815         * omp-low.c: Likewise.
3816         * optabs.c: Likewise.
3817         * optabs.h: Likewise.
3818         * opts.c: Likewise.
3819         * passes.c: Likewise.
3820         * postreload-gcse.c: Likewise.
3821         * postreload.c: Likewise.
3822         * predict.c: Likewise.
3823         * pretty-print.h: Likewise.
3824         * profile.c: Likewise.
3825         * protoize.c: Likewise.
3826         * ra-conflict.c: Likewise.
3827         * real.c: Likewise.
3828         * recog.c: Likewise.
3829         * regclass.c: Likewise.
3830         * regs.h: Likewise.
3831         * reload.c: Likewise.
3832         * rtl-error.c: Likewise.
3833         * rtlanal.c: Likewise.
3834         * scan.h: Likewise.
3835         * sched-rgn.c: Likewise.
3836         * see.c: Likewise.
3837         * stmt.c: Likewise.
3838         * target.h: Likewise.
3839         * tree-dfa.c: Likewise.
3840         * tree-eh.c: Likewise.
3841         * tree-flow-inline.h: Likewise.
3842         * tree-inline.c: Likewise.
3843         * tree-into-ssa.c: Likewise.
3844         * tree-loop-distribution.c: Likewise.
3845         * tree-nested.c: Likewise.
3846         * tree-parloops.c: Likewise.
3847         * tree-pass.h: Likewise.
3848         * tree-pretty-print.c: Likewise.
3849         * tree-profile.c: Likewise.
3850         * tree-scalar-evolution.c: Likewise.
3851         * tree-sra.c: Likewise.
3852         * tree-ssa-alias-warnings.c: Likewise.
3853         * tree-ssa-ccp.c: Likewise.
3854         * tree-ssa-coalesce.c: Likewise.
3855         * tree-ssa-dom.c: Likewise.
3856         * tree-ssa-dse.c: Likewise.
3857         * tree-ssa-forwprop.c: Likewise.
3858         * tree-ssa-live.c: Likewise.
3859         * tree-ssa-live.h: Likewise.
3860         * tree-ssa-loop-im.c: Likewise.
3861         * tree-ssa-loop-ivopts.c: Likewise.
3862         * tree-ssa-loop-niter.c: Likewise.
3863         * tree-ssa-loop-prefetch.c: Likewise.
3864         * tree-ssa-phiopt.c: Likewise.
3865         * tree-ssa-phiprop.c: Likewise.
3866         * tree-ssa-sccvn.c: Likewise.
3867         * tree-ssa-ter.c: Likewise.
3868         * tree-ssa-threadupdate.c: Likewise.
3869         * tree-ssa.c: Likewise.
3870         * tree-vect-analyze.c: Likewise.
3871         * tree-vect-transform.c: Likewise.
3872         * tree-vectorizer.c: Likewise.
3873         * tree-vn.c: Likewise.
3874         * tree-vrp.c: Likewise.
3875         * tree.c: Likewise.
3876         * tree.def: Likewise.
3877         * tree.h: Likewise.
3878         * unwind-dw2-fde.c: Likewise.
3879         * unwind.inc: Likewise.
3880         * value-prof.c: Likewise.
3881         * vmsdbgout.c: Likewise.
3882
3883 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
3884
3885         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
3886         always place FP constants in the TOC for TARGET_POWERPC64.
3887         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
3888
3889 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
3890
3891         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3892         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3893         enable for TARGET_E500_DOUBLE.
3894         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3895         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3896         floating-point modes like integer modes for E500 double.
3897         (rs6000_legitimate_offset_address_p): Likewise.
3898         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
3899         addressing for DDmode for E500 double.
3900         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3901         modes as using 64-bits of registers for E500 double.
3902         (spe_build_register_parallel): Do not handle DDmode or TDmode.
3903         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
3904         specially for E500 double.
3905         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
3906         TDmode for E500 double.
3907         (rs6000_gimplify_va_arg): Only handle SDmode in registers
3908         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
3909         (rs6000_split_multireg_move): Do not handle TDmode specially for
3910         E500 double.
3911         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
3912         using 64-bit registers for E500 double.
3913         (emit_frame_save): Do not handle DDmode specially for E500 double.
3914         (gen_frame_mem_offset): Likewise.
3915         (rs6000_function_value): Do not call spe_build_register_parallel
3916         for DDmode or TDmode.
3917         (rs6000_libcall_value): Likewise.
3918         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
3919         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
3920         for E500 double.
3921
3922 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3923
3924         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
3925         in comments.
3926
3927 2008-06-04  Junjie Gu <jgu@tensilica.com>
3928
3929         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
3930         comparison for frame pointers.
3931
3932 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3933
3934         PR target/27386
3935         * config/avr/avr.h (PUSH_ROUNDING): Remove.
3936
3937 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3938
3939         PR target/30243
3940         * builtins.c (expand_builtin_signbit): Don't take lowpart when
3941         register is already smaller or equal to required mode. 
3942
3943 2008-06-04  Xinliang David Li  <davidxl@google.com>
3944
3945         * tree-call-cdce.c: New file. 
3946         (cond_dead_built_in_calls): New static variable.
3947         (input_domain): New struct.
3948         (check_pow): New function.
3949         (check_builtin_call): Ditto.
3950         (check_target_format): Ditto.
3951         (is_call_dce_candidate): Ditto.
3952         (gen_one_condition): Ditto.
3953         (gen_conditions_for_domain): Ditto.
3954         (get_domain): Ditto.
3955         (gen_conditions_for_pow_cst_base): Ditto.
3956         (gen_conditions_for_pow_int_base): Ditto.
3957         (gen_conditions_for_pow): Ditto.
3958         (get_no_error_domain): Ditto.
3959         (gen_shrink_wrap_conditions): Ditto.
3960         (shrink_wrap_one_built_in_call): Ditto.
3961         (shink_wrap_conditional_dead_built_in_calls): Ditto.
3962         (tree_call_cdce): Ditto.
3963         (gate_call_cdce): Ditto.
3964         (pass_call_cdce): New gimple pass.
3965         * passes.c: (init_optimization_passes): New pass.
3966         * tree-pass.h: New pass declaration.
3967         * opts.c (decode_options): New flag setting.
3968         * common.opt: Add -ftree-builtin-call-dce flag.
3969         * Makefile.in: Add new source file.
3970         * tempvar.def: New tv_id.
3971         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
3972
3973 2008-06-04  Richard Guenther  <rguenther@suse.de>
3974
3975         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
3976         (is_call_clobbered): Always check var_ann->call_clobbered.
3977         (mark_call_clobbered): Always set var_ann->call_clobbered.
3978         (clear_call_clobbered): Always clear var_ann->call_clobbered.
3979         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
3980         (reset_alias_info): Clear call clobbering info on MTAGs and
3981         globals as well.
3982         (set_pt_anything): Set pt_global_mem.
3983         (create_tag_raw): Adjust comment.
3984         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
3985
3986 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
3987             Maxim Kuvyrkov  <maxim@codesourcery.com>
3988
3989         * config/m68k/m68k.opt (mxgot): New option.
3990         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
3991         (m68k_output_addr_const_extra): New.
3992         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
3993         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
3994         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
3995         * doc/invoke.texi (M680x0 Options): Document -mxgot.
3996
3997 2008-06-04  Richard Guenther  <rguenther@suse.de>
3998
3999         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
4000         negative or non-representable offsets.
4001
4002 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
4003
4004         * config/i386/i386.c (ix86_gen_leave): New.
4005         (ix86_gen_pop1): Likewise.
4006         (ix86_gen_add3): Likewise.
4007         (ix86_gen_sub3): Likewise.
4008         (ix86_gen_sub3_carry): Likewise.
4009         (ix86_gen_one_cmpl2): Likewise.
4010         (ix86_gen_monitor): Likewise.
4011         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
4012         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
4013         ix86_gen_one_cmpl2 and ix86_gen_monitor.
4014         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
4015         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
4016         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
4017         (ix86_expand_epilogue): Updated.
4018         (print_operand): Handle integer register operand for 'z'.
4019         (ix86_expand_strlensi_unroll_1): Likewise.
4020         (ix86_expand_strlen): Likewise.
4021         (ix86_expand_builtin): Likewise.
4022         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
4023         mov{q}/mov{l} and add{q}/add{l}.
4024
4025 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4026
4027         * config/i386/i386.md (P): New mode iterator.
4028         (SFmode push_operand splitter): Macroize DImode and SImode pushes
4029         using P mode iterator.
4030         (DFmode push_operand splitter): Ditto.
4031         (XFmode push_operand splitter): Ditto.
4032         (DFmode float_extend SFmode push_operand splitter): Ditto.
4033         (XFmode float_extend SFmode push_operand splitter): Do not generate
4034         SImode pushes for 64bit target.  Macroize Dimode and SImode
4035         pushes using P mode iterator.
4036         (XFmode float_extend DFmode push_operand splitter): Ditto.
4037
4038 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4039
4040         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
4041         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
4042         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
4043         return type to int.
4044         (ix86_call_abi_override): Remove check for call_used_regs.
4045
4046 2008-06-03  Richard Guenther  <rguenther@suse.de>
4047
4048         * tree-ssa-structalias.c (find_func_aliases): Add constraints
4049         for the lhs of calls if the return type contains pointers.
4050
4051 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
4052
4053         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
4054         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
4055         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
4056         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
4057         of cfun and DEFAULT_ABI to deceide abi mode.
4058         (DEFAULT_ABI): New.
4059         (REG_PARM_STACK_SPACE): Removed.
4060         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
4061         (STACK_BOUNDARY): Use default target to deceide stack boundary.
4062         * config/i386/i386-protos.h (ix86_cfun_abi): New.
4063         (ix86_function_abi): Likewise.
4064         (ix86_function_type_abi): Likewise.
4065         (ix86_call_abi_override): Likewise.
4066         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
4067         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
4068         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
4069         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
4070         specific defines.
4071         (X86_64_REGPARM_MAX): New.
4072         (X86_64_SSE_REGPARM_MAX): New.
4073         (X64_REGPARM_MAX): New.
4074         (X64_SSE_REGPARM_MAX): New.
4075         (X86_32_REGPARM_MAX): New.
4076         (X86_32_SSE_REGPARM_MAX): New.
4077         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
4078         (ix86_function_regparm): Handle user calling abi.
4079         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
4080         by DEFAULT_ABI versus SYSV_ABI check.
4081         (ix86_reg_parm_stack_space): New.
4082         (ix86_function_type_abi): New.
4083         (ix86_call_abi_override): New.
4084         (ix86_function_abi): New.
4085         (ix86_cfun_abi): New.
4086         (init_cumulative_args): Call abi specific initialization.
4087         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
4088         (function_arg_64): Extend SSE_REGPARM_MAX check.
4089         (function_arg (): Remove TARGET_64BIT_MS_ABI.
4090         (ix86_pass_by_reference): Likewise.
4091         (ix86_function_value_regno_p): Likewise.
4092         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
4093         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
4094         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
4095         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
4096         (setup_incoming_varargs_64): Adjust regparm for call abi.
4097         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
4098         (ix86_va_start): Likewise.
4099         (ix86_gimplify_va_arg): Likewise.
4100         (ix86_expand_prologue): Likewise.
4101         (output_pic_addr_const): Likewise.
4102         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
4103         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
4104         (x86_output_mi_thunk): Likewise.
4105         (x86_function_profiler): Likewise.
4106         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
4107         (SYSV_ABI, MS_ABI): New constants.
4108         (DEFAULT_ABI): New.
4109         (init_regs): Add prototype of function in regclass.c file.
4110         (OVERRIDE_ABI_FORMAT): New.
4111         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
4112         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
4113         (OUTGOING_REG_PARM_STACK_SPACE): New.
4114         (ix86_reg_parm_stack_space): New prototype.
4115         (CUMULATIVE_ARGS): Add call_abi member.
4116         (machine_function): Add call_abi member.
4117         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
4118         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
4119
4120 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
4121
4122         PR target/34879
4123         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
4124         (avr_builtin_setjmp_frame_value): New function.
4125         * config/avr/avr.md (nonlocal_goto_receiver): Define.
4126         (nonlocal_goto): Define.
4127
4128 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
4129
4130         * config/mips/mips.c (mips_emit_loadgp): Return early if
4131         there is nothing do to, otherwise emit a blockage if
4132         !TARGET_EXPLICIT_RELOCS || crtl->profile.
4133         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
4134
4135 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4136
4137         * configure.ac: Drop unneeded backslash ending up in config.in.
4138         * acinclude.m4: Likewise.
4139         * config.in: Regenerate.
4140
4141 2008-05-26  Jan Hubicka  <jh@suse.cz>
4142
4143         * predict.c (maybe_hot_frequency_p): Break out of...
4144         (maybe_hot_bb_p): ... here.
4145         (maybe_hot_edge_p): New.
4146         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
4147         * basic-block.h (maybe_hot_edge_p): Declare.
4148
4149 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4150
4151         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
4152         (*cmpfp_<mode>_cc): Ditto.
4153         (*fp_jcc_8<mode>_387): Ditto.
4154         (*fop_<MODEF:mode>_2_i387): Ditto.
4155         (*fop_<MODEF:mode>_3_i387): Ditto.
4156         (*fop_xf_2_i387): Ditto.
4157         (*fop_xf_3_i387): Ditto.
4158
4159 2008-06-02  Tomas Bily  <tbily@suse.cz>
4160
4161         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
4162
4163 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4164
4165         * config/mips/mips.c (mips_valid_offset_p): New function.
4166         (mips_valid_lo_sum_p): Likewise.
4167         (mips_classify_address): Use them.
4168         (mips_force_address): New function.
4169         (mips_legitimize_address): Use it.
4170         * config/mips/mips.md (MOVE128): New mode iterator.
4171         (movtf): Require TARGET_64BIT.  Remove empty strings.
4172         (*movtf_internal): Rename to...
4173         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
4174         of "R" and use {,fp}{load,store} attributes instead of "multi".
4175         Use a separate define_split.
4176         (*movtf_mips16): New pattern.
4177
4178 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4179
4180         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
4181         * config/mips/mips.c (mips_expand_before_return): New function.
4182         (mips_expand_epilogue): Call it.
4183         * config/mips/mips.md (return): Turn into a define_expand.
4184         (*return): New insn.
4185
4186 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
4187
4188         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
4189         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
4190         functions.  Do not emit uses and clobbers of CONCATs; individually
4191         use and clobber their operands.
4192         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
4193         gen_clobber, emit_use and gen_use.
4194         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4195         (expand_builtin_return): Likewise.
4196         * cfgbuild.c (count_basic_blocks): Likewise.
4197         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
4198         * explow.c (emit_stack_restore): Likewise.
4199         * expmed.c (extract_bit_field_1): Likewise.
4200         * expr.c (convert_move, emit_move_complex_parts): Likewise.
4201         (emit_move_multi_word, store_constructor): Likewise.
4202         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
4203         (thread_prologue_and_epilogue_insns): Likewise.
4204         * lower-subreg.c (resolve_simple_move): Likewise.
4205         * optabs.c (widen_operand, expand_binop): Likewise.
4206         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
4207         * reload.c (find_reloads): Likewise.
4208         * reload1.c (eliminate_regs_in_insn): Likewise.
4209         * stmt.c (expand_nl_goto_receiver): Likewise.
4210         * config/alpha/alpha.md (builtin_longjmp): Likewise.
4211         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
4212         * config/arm/arm.c (arm_load_pic_register): Likewise.
4213         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
4214         * config/arm/arm.md (untyped_return): Likewise.
4215         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
4216         * config/avr/avr.c (expand_prologue): Likewise.
4217         * config/bfin/bfin.c (do_unlink): Likewise.
4218         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
4219         * config/cris/cris.c (cris_expand_prologue): Likewise.
4220         * config/darwin.c (machopic_indirect_data_reference): Likewise.
4221         (machopic_legitimize_pic_address): Likewise.
4222         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
4223         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
4224         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
4225         (ix86_expand_convert_uns_didf_sse): Likewise.
4226         (ix86_expand_vector_init_general): Likewise.
4227         * config/ia64/ia64.md (eh_epilogue): Likewise.
4228         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
4229         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
4230         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
4231         (config/iq2000/iq2000.c): Likewise.
4232         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
4233         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
4234         (builtin_longjmp): Likewise.
4235         * config/mn10300/mn10300.md (call, call_value): Likewise.
4236         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
4237         * config/pdp11/pdp11.md (abshi2): Likewise.
4238         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4239         * config/s390/s390.c (s390_emit_prologue): Likewise.
4240         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
4241         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
4242         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
4243         * config/sh/sh.c (prepare_move_operands): Likewise.
4244         (output_stack_adjust, sh_expand_epilogue): Likewise.
4245         (sh_set_return_address, sh_expand_t_scc): Likewise.
4246         * config/sparc/sparc.c (load_pic_register): Likewise.
4247         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
4248         * config/spu/spu.c (spu_expand_epilogue): Likewise.
4249         * config/v850/v850.c (expand_epilogue): Likewise.
4250
4251 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
4252
4253         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
4254         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
4255         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
4256         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
4257         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
4258         stack pointer register.
4259         (output_movhi): Remove code for interrupt specific writing to the 
4260         stack pointer register.
4261
4262 2008-05-31  Richard Guenther  <rguenther@suse.de>
4263
4264         PR tree-optimization/34244
4265         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
4266         (tree_expr_nonzero_warnv_p): Likewise.
4267         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
4268         ssa_name_nonnegative_p.
4269         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
4270         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
4271         not tree_expr_nonzero_warnv_p.
4272
4273         PR tree-optimization/36262
4274         Revert
4275         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
4276
4277         PR tree-optimization/34244
4278         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
4279         (record_numbers_of_iterations): New function.
4280         (execute_vrp): Cache the numbers of iterations of loops.
4281         * tree-scalar-evolution.c (scev_reset_except_niters):
4282         New function.
4283         (scev_reset): Use scev_reset_except_niters.
4284         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
4285
4286 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4287
4288         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
4289         __WORKAROUND_RETS when appropriate.
4290
4291 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
4292
4293         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
4294         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
4295         mode iterator.
4296         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
4297         *fop_df_comm_sse insn patterns using MODEF mode iterator.
4298         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
4299         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
4300         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
4301         *fop_df_1_mixed insn patterns using MODEF mode iterator.
4302         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
4303         *fop_df_1_sse insn patterns using MODEF mode iterator.
4304         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
4305         *fop_df_1_i387 insn patterns using MODEF mode iterator.
4306         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
4307         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
4308         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
4309         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
4310         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
4311         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
4312         (*fop_xf_4_i387): Use <MODE> for mode attribute.
4313         (*fop_xf_5_i387): Ditto.
4314         (*fop_xf_6_i387): Ditto.
4315
4316 2008-05-30  Richard Guenther  <rguenther@suse.de>
4317
4318         * builtins.c (build_string_literal): Avoid generating
4319         a non-gimple_val result.
4320
4321 2008-05-30  DJ Delorie  <dj@redhat.com>
4322
4323         * exec-tool.in: Use an environment variable (private) instead of a
4324         file (shared) as a semaphore, so as to not break parallel builds.
4325
4326 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4327
4328         * optabs.c (maybe_encapsulate_block): Remove.
4329         (emit_libcall_block): Adjust accordingly.
4330         * optabs.h (maybe_encapsulate_block): Remove prototype.
4331
4332         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
4333         Don't use maybe_encapsulate_block.
4334
4335 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4336
4337         * config/rs6000/rs6000.c (rs6000_legitimize_address,
4338         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
4339         rtx is a SYMBOL_REF before calling get_pool_constant.
4340
4341 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
4342
4343         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
4344
4345 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
4346
4347         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
4348         rather than OS names to choose INO_T_EQ definition.
4349         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
4350         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
4351
4352 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
4353
4354         PR target/36348
4355         * config/darwin-f.c: New.
4356         * config/t-darwin: Added rule to build darwin-f.o.
4357         * config.gcc: Defined new variable, fortran_target_objs.
4358         (*-*-darwin*): Set fortran_target_objs.
4359         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
4360         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
4361         * configure: Regenerated.
4362
4363 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
4364
4365         PR target/35771
4366         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
4367         canonical type if needed.
4368
4369 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
4370
4371         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
4372
4373 2008-05-29  Richard Guenther  <rguenther@suse.de>
4374
4375         PR tree-optimization/36343
4376         PR tree-optimization/36346
4377         PR tree-optimization/36347
4378         * tree-flow.h (clobber_what_p_points_to): Declare.
4379         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
4380         pointed-to variable is dereferenced is irrelevant to whether
4381         the pointer can access the pointed-to variable.
4382         (clobber_what_p_points_to): New function.
4383         * tree-ssa-alias.c (set_initial_properties): Use it.
4384         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
4385         call clobber check for NMTs.
4386
4387 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4388         
4389         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
4390         for printing gcov_type.
4391
4392 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
4393
4394         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
4395         and the eh region information.
4396         * value-prof.c (gimple_move_stmt_histograms): New function.
4397         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
4398
4399 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
4400
4401         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
4402
4403 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
4404
4405         * value-prof.c (tree_ic_transform): Print counts.
4406         * tree-profile.c (tree_gen_ic_func_profiler):
4407         Clear __gcov_indreict_call_callee variable to avoid misattribution
4408         of the profile.
4409
4410 2008-05-28  Rafael Espindola  <espindola@google.com>
4411
4412         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
4413         invalid sharing.
4414
4415 2008-05-28  Richard Guenther  <rguenther@suse.de>
4416
4417         PR tree-optimization/36339
4418         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
4419         and clobbering code out of the loop.
4420
4421 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4422
4423         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
4424         letters defined.
4425
4426         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
4427         s390_contiguous_bitmask_p, s390_symref_operand_p,
4428         s390_check_symref_alignment, s390_reload_larl_operand,
4429         s390_reload_symref_address): New functions.
4430         (s390_branch_condition_mnemonic): Support compare and branch
4431         instructions.
4432         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
4433         and 'W' constraints.
4434         (s390_secondary_reload): Add secondary reloads for unaligned
4435         symbol refs or symbol refs to floating point or QI/TI mode
4436         integer values.
4437         (legitimate_address_p): Accept symbol references as addresses.
4438         (s390_expand_insv): Use rotate and insert selected bits
4439         instruction for insv when building for z10.
4440         (print_operand_address): Handle symbol ref addresses.
4441         (print_operand): Output modifier 'c' added for signed byte values.
4442         (s390_encode_section_info): Mark symbol refs with
4443         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
4444
4445         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
4446         (length attribute): RRF, RRR have 4 byte length.
4447         (FPALL, INTALL): New mode iterators added.
4448         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
4449         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
4450         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
4451         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
4452         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
4453         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
4454         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
4455         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
4456         instructions.
4457         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
4458         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
4459         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
4460         reload<INTALL:mode><P:mode>_toreg_z10,
4461         reload<FPALL:mode><P:mode>_tomem_z10,
4462         reload<FPALL:mode><P:mode>_toreg_z10,
4463         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
4464         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
4465         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
4466         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
4467         definition.
4468         (movmem, clrmem, cmpmem): New splitters added.
4469
4470         * config/s390/predicates.md (larl_operand): Use
4471         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
4472         SYMBOL_REF_ALIGN1_P.
4473         (s390_signed_integer_comparison,
4474         s390_unsigned_integer_comparison): New predicates.
4475
4476         * config/s390/s390-protos.h (s390_check_symref_alignment,
4477         s390_contiguous_bitmask_p, s390_reload_larl_operand,
4478         s390_reload_symref_address,
4479         s390_compare_and_branch_condition_mask): Prototypes added.
4480
4481         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
4482         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
4483         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
4484
4485 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
4486
4487         * config/s390/s390.c (z10_cost): New cost function for z10.
4488         (s390_handle_arch_option, override_options): Support -march=z10 switch.
4489         (s390_issue_rate): Adjust issue rate for z10.
4490         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
4491         (processor_flags): Add PF_Z10.
4492         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
4493         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
4494         * gcc/config.gcc: Add z10.
4495
4496 2008-05-28  Richard Guenther  <rguenther@suse.de>
4497
4498         PR tree-optimization/36291
4499         * tree-flow. h (struct gimple_df): Remove var_anns member.
4500         * tree-flow-inline.h (gimple_var_anns): Remove.
4501         (var_ann): Simplify.
4502         * tree-dfa.c (create_var_ann): Simplify.
4503         (remove_referenced_var): Clear alias info from var_anns of globals.
4504         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
4505         (delete_tree_ssa): Clear alias info from var_anns of globals.
4506         Do not free var_anns.
4507         (var_ann_eq): Remove.
4508         (var_ann_hash): Likewise.
4509
4510 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
4511
4512         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
4513         and loongson2f entries.
4514         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
4515         * config/mips/mips.h (processor_type): Add Loongson-2E
4516         and Loongson-2F entries.
4517         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
4518         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
4519         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
4520         * doc/invoke.texi (MIPS Options): Document loongson2e
4521         and loongson2f processor names.
4522
4523 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4524
4525         PR target/35767
4526         PR target/35771
4527         * config/i386/i386.c (ix86_function_arg_boundary): Use
4528         alignment of canonical type.
4529         (ix86_expand_vector_move): Check unaligned memory access for
4530         all SSE modes.
4531
4532 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
4533
4534         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
4535         Moved to the front of file.
4536
4537 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
4538             H.J. Lu  <hongjiu.lu@intel.com>
4539
4540         * dwarf2out.c (current_fde): New.
4541         (add_cfi): Use it.
4542         (lookup_cfa:): Likewise.
4543         (dwarf2out_end_epilogue): Likewise.
4544         (dwarf2out_note_section_used): Likewise.
4545
4546 2008-05-27  Michael Matz  <matz@suse.de>
4547
4548         PR c++/27975
4549         * c.opt (Wenum-compare): New warning option.
4550         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
4551
4552 2008-05-27  Michael Matz  <matz@suse.de>
4553
4554         PR middle-end/36326
4555         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
4556         non-BLKmode types.
4557         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
4558         into memory as tail calls.
4559
4560 2008-05-27  Richard Guenther  <rguenther@suse.de>
4561
4562         PR tree-optimization/36339
4563         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
4564         pointers cause all addressable variables to be call clobbered.
4565
4566 2008-05-27  Richard Guenther  <rguenther@suse.de>
4567
4568         PR tree-optimization/36245
4569         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
4570
4571 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4572
4573         * config/s390/s390.md: Replace all occurences of the 'm'
4574         constraint with 'RT'.
4575
4576 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4577
4578         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
4579         definitions added.
4580         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
4581         "*movdi_64".
4582         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
4583         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
4584         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
4585
4586 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4587
4588         * reload.c: (find_reloads): Skip alternatives according to the
4589         "enabled" attribute. Constify the constraint variable.
4590         * recog.c (get_attr_enabled): Add default implementation.
4591         (extract_insn): Set the alternative_enabled_p array
4592         in the recog_data struct.
4593         (preprocess_constraints, constrain_operands): Skip
4594         alternatives according to the "enabled" attribute
4595         * recog.h (struct recog_data): New field alternative_enabled_p.
4596         (skip_alternative): New inline function.
4597         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
4598         (record_reg_classes): Skip alternative according to the
4599         "enabled" attribute.
4600
4601         * doc/md.texi: Add documention for the "enabled" attribute.
4602
4603 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
4604
4605         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
4606         * postreload.c (reload_cse_simplify_operands): Replace 'm'
4607         constraint with TARGET_MEM_CONSTRAINT.
4608         * recog.c (asm_operand_ok, preprocess_constraints,
4609         constrain_operands): Likewise.
4610         * regclass.c (record_reg_classes): Likewise.
4611         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
4612         * reload1.c (maybe_fix_stack_asms): Likewise.
4613         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
4614         * recog.h: Adjust comment.
4615         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
4616         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
4617         * doc/md.texi: Add a note to description of 'm' constraint.
4618         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
4619
4620 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
4621
4622         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
4623         that the bitfield is of integral type before testing its precision.
4624
4625 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
4626             Sa Liu  <saliu@de.ibm.com> 
4627
4628         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
4629         __modti3, __udivti3, __umodti3 and __udivmodti4.
4630         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
4631         that implement TImode mul and div functions.
4632         * config/spu/multi3.c: New. Implement __multi3.
4633         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
4634         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
4635         functions on SPU.
4636
4637 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
4638
4639         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
4640         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
4641         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
4642         tls_sysv_suffix): New mode and mode attribute iterators.
4643         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
4644         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
4645         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
4646         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
4647         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
4648         iterators.
4649
4650 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4651
4652         PR tree-optimization/36329
4653         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
4654         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
4655         * cgraphbuild.c (initialize_inline_failed): Use the latter
4656         macro in lieu of the former.
4657         * ipa-inline.c (cgraph_mark_inline): Likewise.
4658         (cgraph_decide_inlining_of_small_function): Likewise.
4659         (cgraph_decide_inlining): Likewise.
4660         (cgraph_decide_inlining_incrementally): Likewise.
4661
4662 2008-05-26  Tristan Gingold  <gingold@adacore.com>
4663             Anatoly Sokolov  <aesok@post.ru>
4664
4665         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
4666         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
4667         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
4668         optimization for 'avr6' architecture.
4669
4670 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
4671
4672         PR target/34932
4673         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
4674
4675 2008-05-26  Richard Guenther  <rguenther@suse.de>
4676
4677         * tree-ssa-sccvn.c (expr_has_constants): Declare.
4678         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
4679
4680 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
4681
4682         PR middle-end/36253
4683         * caller-save.c (insert_restore): Verify alignment of spill space.
4684         (insert_save): Likewise.
4685         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
4686         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
4687         (STACK_SLOT_ALIGNMENT): Likewise.
4688         * function.c (LOCAL_ALIGNMENT): Removed.
4689         (get_stack_local_alignment): New.
4690         (assign_stack_local): Use it.  Set alignment on stack slot.
4691         (assign_stack_temp_for_type): Use get_stack_local_alignment.
4692         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
4693         (STACK_SLOT_ALIGNMENT): New.
4694         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
4695         stack slot in XFmode.
4696
4697         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
4698
4699 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
4700
4701         PR/36321
4702         * config/i386/i386.md (allocate_stack_worker_64): Make sure
4703         argument operand in rax isn't removed.
4704
4705 2008-05-26  Richard Guenther  <rguenther@suse.de>
4706
4707         PR middle-end/36300
4708         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
4709         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
4710
4711 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4712
4713         PR bootstrap/36331
4714         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
4715
4716 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
4717
4718         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
4719         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
4720
4721 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4722
4723         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
4724         build a trampoline if we don't want one.
4725         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
4726         return zero for nested functions if we don't want a trampoline.
4727
4728 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4729
4730         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
4731
4732 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
4733
4734         PR fortran/18428
4735         * c.opt: Removed undocumented option '-lang-fortran'.
4736         * c-common.h: Removed global variable 'lang_fortran'.
4737         * c-opts.c (c_common_handle_option): Removed code to handle
4738         option '-lang-fortran'. Updated includes.
4739         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
4740         definition of '__GFORTRAN__'.
4741         (define__GNUC__): Reimplemented to use BASEVER and
4742         cpp_define_formatted.
4743         (builtin_define_with_value_n): Removed.
4744         * c-incpath.h: Renamed to ...
4745         * incpath.h: ... this.
4746         * c-incpath.c: Renamed to ...
4747         * incpath.c: ... this. Updated includes.
4748         * fix-header.c: Updated includes.
4749         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
4750         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
4751         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
4752
4753 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4754
4755         * tree.h: Update the table of flags used on tree nodes.
4756         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
4757         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
4758         (FORCED_LABEL): Add access check.
4759         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
4760         (ASM_INPUT_P): Likewise.
4761         (ASM_VOLATILE_P): Likewise.
4762         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
4763         (OMP_SECTION_LAST): Access private_flag directly.
4764         (OMP_RETURN_NOWAIT): Likewise.
4765         (OMP_PARALLEL_COMBINED): Likewise.
4766         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
4767         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
4768         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
4769         deprecated_flag directly.
4770
4771 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4772
4773         * final.c (frame_pointer_needed): Removed.
4774         * flags.h (frame_pointer_needed): Likewise.
4775
4776         * function.h (rtl_data): Add frame_pointer_needed.
4777         (frame_pointer_needed): New.
4778
4779 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
4780
4781         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
4782
4783 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
4784
4785         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
4786         SRC is a REG.
4787
4788 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
4789
4790         * c-common.c (strip_array_types): Move function to..
4791         * tree.c: ..here.
4792         (get_inner_array_type): Delete.
4793         * c-common.h (strip_array_types): Move declaration to..
4794         * tree.h: ..here.
4795         (get_inner_array_type): Delete.
4796         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
4797         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
4798         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
4799         * config/pa/pa.c (emit_move_sequence): Likewise.
4800
4801 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4802
4803         * config/i386/i386.md (*sse_prologue_save_insn): Set length
4804         attribute to 34.
4805
4806 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
4807
4808         * function.c: Include target hook for nonlocal_goto frame value.
4809
4810 2008-05-24  Richard Guenther  <rguenther@suse.de>
4811
4812         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
4813         variable can be only accessed through a pointer or a union.
4814
4815 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4816
4817         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
4818         * doc/extend.texi: Likewise.
4819
4820 2008-05-23  DJ Delorie  <dj@redhat.com>
4821
4822         * config/m32c/jump.md (untyped_call): Add.
4823
4824         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
4825         for A24 to PSImode.
4826         (m32c_address_cost): Detail costs for indirect offsets.
4827
4828 2008-05-23  Rafael Espindola  <espindola@google.com>
4829
4830         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
4831         if a node is a SUBREG.
4832         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
4833         is a SUBREG.
4834
4835 2008-05-23  Paul Brook  <paul@codesourcery.com>
4836             Carlos O'Donell  <carlos@codesourcery.com>
4837
4838         * doc/extend.texi: Clarify use of __attribute__((naked)).
4839         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4840         * target.h (gcc_target): Add allocate_stack_slots_for_args.
4841         * function.c (use_register_for_decl): Use
4842         targetm.calls.allocate_stack_slots_for_args.
4843         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
4844         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
4845         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
4846
4847 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4848
4849         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
4850
4851 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
4852
4853         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
4854         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
4855         is only rounded once.
4856
4857 2008-05-23  Richard Guenther  <rguenther@suse.de>
4858
4859         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
4860
4861 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
4862             Jakub Jelinek  <jakub@redhat.com>
4863
4864         PR target/36079
4865         * configure.ac: Handle --enable-cld.
4866         * configure: Regenerated.
4867         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
4868         * config/i386/i386.h (struct machine_function): Add needs_cld field.
4869         (ix86_current_function_needs_cld): New define.
4870         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
4871         (cld): New isns pattern.
4872         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
4873         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
4874         * config/i386/i386.opt (mcld): New option.
4875         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
4876         TARGET_CLD and ix86_current_function_needs_cld.
4877         (override_options): Use -mcld by default for 32-bit code if
4878         USE_IX86_CLD.
4879
4880         * doc/install.texi (Options specification): Document --enable-cld.
4881         * doc/invoke.texi (Machine Dependent Options)
4882         [i386 and x86-64 Options]: Add -mcld option.
4883         (Intel 386 and AMD x86-64 Options): Document -mcld option.
4884
4885 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
4886         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
4887         (return_in_memory_64): Likewise.
4888         (return_in_memory_ms_64): Likewise.
4889
4890 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4891
4892         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4893         * builtins.c (fold_builtin_fpclassify): New.
4894         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4895         * builtins.def (BUILT_IN_FPCLASSIFY): New.
4896         * c-common.c (handle_type_generic_attribute): Adjust to accept
4897         fixed arguments before an elipsis.
4898         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4899         * doc/extend.texi: Document __builtin_fpclassify.
4900
4901 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
4902
4903         * omp-low.c (gate_expand_omp_ssa): Remove.
4904         (pass_expand_omp_ssa): Remove.
4905         (gate_expand_omp): Do not check for flag_openmp_ssa.
4906         * common.opt (-fopenmp-ssa): Remove.
4907         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
4908
4909 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4910
4911         * config/sh/sh.opt (mfixed-range): New option.
4912         * config/sh/sh-protos.h (sh_fix_range): Declare.
4913         * config/sh/sh.c (sh_fix_range): New function.
4914         * config/sh/sh.h (sh_fixed_range_str): Declare.
4915         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
4916         is not empty.
4917         * doc/invoke.texi (SH Options): Document -mfixed-range.
4918
4919 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
4920
4921         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
4922         it before the redeclaration.
4923
4924 2008-05-22  Anatoly Sokolov <aesok@post.ru>
4925
4926         * config/avr/avr.c (get_sequence_length): Add new function.
4927         (expand_prologue, expand_epilogue): Remove duplicate code.
4928
4929 2008-05-22  Rafael Espindola  <espindola@google.com>
4930
4931         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
4932         sharing.
4933
4934 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4935
4936         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
4937         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4938
4939         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4940         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4941         (vect_update_misalignment_for_peel): Likewise.
4942         (vector_alignment_reachable_p): Likewise.
4943         * tree-vect-transform.c (vectorizable_load): Likewise.
4944         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4945         (get_vectype_for_scalar_type): Pass mode of scalar_type
4946         to UNITS_PER_SIMD_WORD.
4947
4948         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4949         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4950         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4951         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4952         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4953
4954 2008-05-22  Ira Rosen  <irar@il.ibm.com>
4955
4956         PR tree-optimization/36293
4957         * tree-vect-transform.c (vect_transform_strided_load): Don't check
4958         if the first load must be skipped because of a gap.
4959
4960 2008-05-22  Richard Guenther  <rguenther@suse.de>
4961
4962         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
4963         more cases of offset disambiguation that is possible if
4964         strict-aliasing rules apply.
4965         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
4966         for basic offset and type-based disambiguation.
4967
4968 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4969
4970         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
4971         ix86_expand_vector_set on V16QImode for SSE4.1.
4972
4973 2008-05-21  Tom Tromey  <tromey@redhat.com>
4974
4975         * c.opt (Wimport): Mark as undocumented.
4976         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
4977         -Wno-import.
4978         (Warning Options): Likewise.
4979         * doc/cppopts.texi: Don't mention -Wimport.
4980
4981 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
4982
4983         PR tree-optimization/36287
4984         PR tree-optimization/36286
4985         * lambda-code.c (build_access_matrix): Do not use the loop->num
4986         for computing the number of induction variables: use the loop depth
4987         instead.
4988
4989 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
4990
4991         PR/36280
4992         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
4993         option -f(no-)leading-underscore.
4994
4995 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4996
4997         * config/i386/i386.c (ix86_expand_vector_init_general): Use
4998         GET_MODE_NUNITS (mode).
4999
5000 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
5001
5002         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
5003         (-mmulhw): Add 464 to description.
5004         (-mdlmzb): Likewise.
5005         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
5006         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
5007         464fp entries.
5008         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
5009         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
5010         * config/rs6000/rs6000.md: Update comments for 464.
5011
5012 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
5013
5014         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
5015
5016 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5017
5018         * config/i386/sse.md (vec_extractv4sf): Removed.
5019         (vec_extractv2df): Likewise.
5020         (vec_extractv2di): Likewise.
5021         (vec_extractv4si): Likewise.
5022         (vec_extractv8hi): Likewise.
5023         (vec_extractv16qi): Likewise.
5024         (vec_extract<mode>): New.
5025
5026 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5027
5028         * config/i386/sse.md (vec_setv4sf): Removed.
5029         (vec_setv2df): Likewise.
5030         (vec_setv2di): Likewise.
5031         (vec_setv4si): Likewise.
5032         (vec_setv8hi): Likewise.
5033         (vec_setv16qi): Likewise.
5034         (vec_set<mode>): New.
5035
5036 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5037
5038         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
5039         goto for vec_concat and vec_interleave.
5040
5041 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5042
5043         * config/i386/sse.md (vec_initv4sf): Removed.
5044         (vec_initv2df): Likewise.
5045         (vec_initv2di): Likewise.
5046         (vec_initv4si): Likewise.
5047         (vec_initv8hi): Likewise.
5048         (vec_initv16qi): Likewise.
5049         (vec_init<mode>): New.
5050
5051 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
5052
5053         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
5054
5055 2008-05-21  Tom Tromey  <tromey@redhat.com>
5056
5057         * ggc-zone.c (lookup_page_table_if_allocated): New function.
5058         (zone_find_object_offset): Likewise.
5059         (gt_ggc_m_S): Likewise.
5060         (highest_bit): Likewise.
5061         * ggc-page.c (gt_ggc_m_S): New function.
5062         * stringpool.c (string_stack): Remove.
5063         (init_stringpool): Update.
5064         (ggc_alloc_string): Use ggc_alloc.
5065         (maybe_delete_ident): New function.
5066         (ggc_purge_stringpool): Likewise.
5067         (gt_ggc_m_S): Remove.
5068         * ggc-common.c (ggc_protect_identifiers): New global.
5069         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
5070         ggc_protect_identifiers.
5071         * ggc.h (ggc_protect_identifiers): Declare.
5072         (gt_ggc_m_S): Update.
5073         (ggc_purge_stringpool): Declare.
5074         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
5075         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
5076         special case.
5077         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
5078
5079 2008-05-21  David S. Miller  <davem@davemloft.net>
5080
5081         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
5082         tmake_file.
5083
5084 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
5085
5086         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
5087         once finished.
5088
5089 2008-05-20  David Daney  <ddaney@avtrex.com>
5090
5091         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
5092         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
5093         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5094         UNSPEC_UPDATE_GOT_VERSION): Renumber.
5095         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
5096         (atomic_hiqi_op): New define_code_iterator.
5097         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
5098         mips_expand_compare_and_swap_12.
5099         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
5100         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
5101         (sync_<optab><mode>, sync_old_<optab><mode>,
5102         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5103         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
5104         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
5105         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
5106         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
5107         (test_and_set_12): New insn.
5108         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
5109         sync_new_<optab><mode>, sync_old_nand<mode>,
5110         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
5111         clobber to operand 0 for SI and DI mode insns.
5112         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
5113         mips_gen_fn_4): New typedefs.
5114         (mips_gen_fn_ptrs): Define new union type.
5115         (mips_expand_compare_and_swap_12): Remove declaration.
5116         (mips_expand_atomic_qihi): Declare function.
5117         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
5118         (mips_expand_atomic_qihi): ... this.  Use new generator function
5119         parameter.
5120         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
5121         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
5122         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
5123         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
5124         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
5125         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
5126         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
5127         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
5128         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
5129         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
5130         New macros.
5131
5132 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
5133
5134         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
5135         the missing break.
5136
5137 2008-05-20  Anatoly Sokolov <aesok@post.ru>
5138
5139         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
5140         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
5141         (avr_attribute_table): Add 'OS_main' function attribute.
5142         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
5143         functions with 'OS_main' attribute.
5144
5145 2008-05-20  Richard Guenther  <rguenther@suse.de>
5146
5147         PR tree-optimization/35204
5148         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
5149         helper, split out from ...
5150         (DFS): ... here.  Make the DFS walk non-recursive.
5151
5152 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5153             Jan Sjodin  <jan.sjodin@amd.com>
5154
5155         PR tree-optimization/36181
5156         * tree-parloops.c (loop_has_vector_phi_nodes): New.
5157         (parallelize_loops): Don't parallelize when the loop has vector
5158         phi nodes.
5159
5160 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5161             Sebastian Pop  <sebastian.pop@amd.com>
5162
5163         * tree-loop-linear.c (gather_interchange_stats): Look in the access
5164         matrix, and never look at the tree representation of the memory
5165         accesses.
5166         (linear_transform_loops): Computes parameters and access matrices.
5167         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
5168         when fails.
5169         (access_matrix_get_index_for_parameter): New.
5170         * tree-data-ref.h (struct access_matrix): New.
5171         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
5172         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
5173         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
5174         am_vector_index_for_loop): New.
5175         (struct data_reference): Add field access_matrix.
5176         (DR_ACCESS_MATRIX): New.
5177         (compute_data_dependences_for_loop): Update declaration.
5178         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
5179         * lambda.h (lambda_vector_vec_p): Declared.
5180         * lambda-code.c: Depend on pointer-set.h.
5181         (lambda_collect_parameters_from_af, lambda_collect_parameters,
5182         av_for_af_base, av_for_af, build_access_matrix,
5183         lambda_compute_access_matrices): New.
5184         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
5185
5186 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
5187
5188         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
5189         $SOURCEDIR/include.
5190
5191 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5192             Sebastian Pop  <sebastian.pop@amd.com>
5193
5194         PR tree-optimization/36206
5195         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
5196         FOLD_CONVERSIONS.
5197         (instantiate_scev_1): Rename flags to fold_conversions.
5198         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
5199         outeside instantiation_loop.
5200         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
5201         (evolution_function_is_affine_or_constant_p): Removed.
5202         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
5203         instantiate_scev.
5204         (analyze_siv_subscript): Pass in the loop nest number.
5205         Call evolution_function_is_affine_in_loop instead of 
5206         evolution_function_is_affine_p.
5207         (analyze_overlapping_iterations): Pass in the loop nest number.
5208
5209 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
5210             Sebastian Pop  <sebastian.pop@amd.com>
5211
5212         PR tree-optimization/36206
5213         * tree-chrec.h (chrec_fold_op): New.
5214         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
5215         and other trees.
5216
5217 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
5218
5219         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
5220         (DIRS_EQ): New.
5221         (remove_duplicates): Do not set inode on non-inode systems.
5222         Use DIRS_EQ.
5223
5224 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
5225
5226         * config.gcc (tm_file): Update comments about relative pathnames.
5227
5228 2008-05-20  Richard Guenther  <rguenther@suse.de>
5229
5230         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
5231         * tree-ssa-sccvn.c (process_scc): Likewise.
5232         * tree-ssa-sink.c (execute_sink_code): Likewise.
5233         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
5234         * tree-vrp.c (process_assert_insertions): Likewise.
5235         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
5236         (perform_tree_ssa_dce): Likewise.
5237         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5238         (dump_dominator_optimization_stats): Likewise.
5239         * tree-vectorizer.c (vectorize_loops): Likewise.
5240
5241 2008-05-20  Richard Guenther  <rguenther@suse.de>
5242
5243         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
5244
5245 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
5246
5247         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
5248         (ix86_i386elf_return_in_memory): Likewise.
5249         (ix86_i386interix_return_in_memory): Likewise.
5250         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
5251         (SUBTARGET_RETURN_IN_MEMORY): New.
5252         * config/i386/i386elf.h: Likewise.
5253         * config/i386/ptx4-i.h: Likewise.
5254         * config/i386/sol2-10.h: Likewise.
5255         * config/i386/sysv4.h: Likewise.
5256         * config/i386/vx-common.h: Likewise.
5257         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
5258         * config/i386/i386.c (ix86_return_in_memory): Made static and
5259         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
5260         (ix86_i386elf_return_in_memory): Removed.
5261         (ix86_i386interix_return_in_memory): Removed.
5262         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
5263         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
5264
5265 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
5266
5267         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
5268
5269 2008-05-19  Xinliang David Li  <davidxl@google.com>
5270
5271         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
5272         * opts.c: Ditto.
5273         * common.opt: Ditto.
5274         * doc/invoke.texi: Ditto.
5275
5276 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
5277
5278         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
5279         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
5280
5281 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5282
5283         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
5284         sizes of operand array from 8/4 to 4/2.
5285         (ix86_expand_vector_init_general): Change size of operand array
5286         from 32 to 16.  Remove op0, op1 and half_mode.
5287
5288 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5289
5290         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
5291         (ix86_expand_vector_init_interleave): Likewise.
5292         (ix86_expand_vector_init_general): Use them.  Assert
5293         word_mode == SImode when n_words == 4.
5294
5295 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
5296
5297         * config/i386/i386.c (ix86_secondary_reload): New static function.
5298         (TARGET_SECONDARY_RELOAD): New define.
5299         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
5300         * config/i386/i386.md (reload_outqi): Remove.
5301
5302 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5303
5304         PR middle-end/35509
5305         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
5306         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
5307         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
5308         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
5309         (fold_builtin_1): Likewise.
5310         * builtins.def (BUILT_IN_ISINF_SIGN): New.
5311         c-common.c (check_builtin_function_arguments): Handle
5312         BUILT_IN_ISINF_SIGN.
5313         * doc/extend.texi: Document __builtin_isinf_sign.
5314         * fold-const.c (operand_equal_p): Handle COND_EXPR.
5315
5316 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
5317
5318         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
5319         EH cleanup at the end of the pass, search for those that have been
5320         turned into forwarder blocks and do the cleanup on their successor.
5321
5322 2008-05-18  Richard Guenther  <rguenther@suse.de>
5323
5324         * tree-cfg.c (verify_gimple_expr): Allow conversions from
5325         pointers to sizetype and vice versa.
5326
5327 2008-05-18 Xinliang David Li   <davidxl@google.com>
5328
5329         * gcc/tree-ssa-dce.c: Coding style fix.
5330         (check_pow): Documentation comment. 
5331         (check_log): Documenation comment. Coding style fix.
5332         (is_unnecessary_except_errno_call): Ditto.
5333         (gen_conditions_for_pow): Ditto.
5334         (gen_conditions_for_log): Ditto.
5335         (gen_shrink_wrap_conditions): Ditto.
5336         (shrink_wrap_one_built_in_calls): Ditto.
5337         * gcc/doc/invoke.texi: Better documentation string.
5338         * ChangeLog: Fix wrong change log entries from 
5339         May 17 checkin on function call DCE.
5340
5341 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
5342
5343         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
5344
5345 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
5346
5347         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
5348         * df-problems.c (simulation routines): Fixed block comment to
5349         properly say how to add forwards scanning functions.
5350         
5351 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5352
5353         * tree-inline.c (setup_one_parameter): Remove dead code.
5354
5355 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
5356
5357         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
5358         a BIT_AND_EXPR only for an INTEGER_TYPE.
5359
5360 2008-05-17 Xinliang David Li   <davidxl@google.com>
5361
5362         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
5363         (check_pow, check_log, is_unnecessary_except_errno_call): New 
5364         functions to check for eliminating math functions that are pure 
5365         except for setting errno.
5366         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
5367         general condition expressions for shrink-wrapping pow/log calls.
5368         (gen_shrink_wrap_conditions): Ditto.
5369         (shrink_wrap_one_built_in_call): Ditto.
5370         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
5371         (mark_operand_necessary): If debugging, output if OP is necessary.
5372         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
5373         unnecessary.
5374         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
5375         opt level >= 2.
5376         * gcc/common.opt: New user flag -ftree-builtin-dce.
5377         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
5378
5379 2008-05-16  David S. Miller  <davem@davemloft.net>
5380
5381         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
5382         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5383
5384 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
5385
5386         PR target/36246
5387         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
5388
5389 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5390
5391         * ifcvt.c (dead_or_predicable): Rename
5392         df_simulate_one_insn_backwards to df_simulate_one_insn.
5393         * recog.c (peephole2_optimize): Ditto.
5394         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
5395         Ditto.
5396         * df.h: Rename df_simulate_one_insn_backwards to
5397         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
5398         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
5399         scanning of defs and uses.
5400         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
5401         (df_simulate_one_insn_forwards): Removed.
5402
5403 2008-05-16  Doug Kwan  <dougkwan@google.com>
5404
5405         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
5406         QNaN & SNaN.
5407         (real_from_string): Handle NaNs and Inf as approriate.
5408
5409 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5410
5411         * doc/gty.texi (Source Files Containing Type Information): Note
5412         that headers should appear first in the gtfiles list.
5413
5414 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5415
5416         * tree.def (COND_EXEC): Properly documented this code.
5417
5418 2008-05-16  Diego Novillo  <dnovillo@google.com>
5419
5420         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
5421         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
5422         the new field.
5423
5424 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5425
5426         * tree-ssa-dse (max_stmt_uid): Removed.
5427         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
5428         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
5429         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
5430         * function.h (cfun.last_stmt_uid): New field.
5431         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
5432         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
5433         New functions.
5434         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
5435         (create_stmt_ann): Initialize the ann->uid field.
5436         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
5437         with new calls.
5438         * tree-flow.h (renumber_gimple_stmt_uids): New function.
5439
5440 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
5441
5442         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
5443         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
5444         (init_empty_tree_cfg): Call it.
5445
5446 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5447
5448         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
5449         Update all users.
5450
5451 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
5452
5453         * doc/invoke.text (-fdump-tree-*-verbose): New option.
5454         * tree-dump.c (dump_options): New verbose option.
5455         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
5456         Add verbose dump.
5457         * tree-pass.h (TDF_VERBOSE): New dump flag.
5458         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
5459         (tree-flow.h): Added include.
5460         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
5461
5462 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
5463
5464         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
5465
5466         From Jie Zhang  <jie.zhang@analog.com>
5467         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5468         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
5469         mcpu=bf561-none and mcpu=bf561-0.2.
5470         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5471         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5472         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5473         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
5474         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
5475         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
5476         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
5477         option.
5478         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
5479         (cputype_selected): Remove.
5480         (bfin_handle_option): Don't use cputype_selected.
5481         (override_options): When no mcpu option, enable all workarounds.
5482         Don't use bfin_workarounds.
5483         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
5484         processor type.
5485         (DEFAULT_CPU_TYPE): Don't define.
5486
5487 2008-05-16  Richard Guenther  <rguenther@suse.de>
5488
5489         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
5490         on deletion of the last stmt.
5491
5492 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5493
5494         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
5495         V8HImode for SSE2 and V16QImode for SSE4.1.
5496
5497 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
5498
5499         * cgraph.h (compute_inline_parameters): Made public.
5500         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
5501         variable_generate_summary, function_write_summary,
5502         variable_write_summary, variable_read_summary.  Added generate_summary,
5503         write_summary, read_summary.
5504         * cgraphunit.c (cgraph_process_new_functions): Changed call from
5505         pass_ipa_inline.function_generate_summary, to
5506         compute_inline_parameters. 
5507         * ipa-inline.c (compute_inline_parameters): Made public and added
5508         node parameter.
5509         (compute_inline_parameters_for_current): New function.
5510         (pass_inline_param): Now calls compute_inline_parameters_for_current.
5511         (inline_generate_summary): Removed parameter and made to loop over
5512         all cgraph nodes.
5513         (pass_ipa_inline): Updated for new IPA_PASS structure.
5514         * passes.c (execute_ipa_summary_passes): Now is called once per
5515         pass rather than once per node*pass.
5516         
5517 2008-05-15  Anatoly Sokolov <aesok@post.ru>
5518
5519         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
5520         avr_have_mul_p, avr_asm_only_p): Remove variables.
5521         (avr_override_options): Remove initialization of removed variables.
5522         (avr_file_start):  Convert removed variables to fields of 
5523         'struct base_arch_s *avr_current_arch'. 
5524         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
5525         (AVR_HAVE_MUL): (Ditto.).
5526         (AVR_HAVE_MOVW): (Ditto.).
5527         (AVR_HAVE_LPMX): (Ditto.). 
5528         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
5529         avr_asm_only_p): Remove declaration.
5530
5531 2008-05-15  Diego Novillo  <dnovillo@google.com>
5532
5533         * config/arm/arm.c (arm_return_in_memory): Fix return type.
5534         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
5535
5536 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
5537
5538         PR middle-end/36194
5539         * combine.c (check_conversion): Rename back to check_promoted_subreg.
5540         Don't call record_truncated_value from here.
5541         (record_truncated_value): Turn it into a for_each_rtx callback.
5542         (record_truncated_values): New function.
5543         (combine_instructions): Call note_uses with record_truncated_values.
5544         Change name of check_conversion to check_promoted_subreg. 
5545
5546 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
5547
5548         * doc/sourcebuild.texi: Document support for torture tests.
5549
5550 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5551
5552         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
5553         to alternative 4 of operand 2.
5554
5555 2008-05-15  Richard Guenther  <rguenther@suse.de>
5556
5557         * tree-pass.h (current_pass): Declare.
5558         (get_pass_for_id): Likewise.
5559         * passes.c (passes_by_id, passes_by_id_size): New globals.
5560         (set_pass_for_id): New function.
5561         (get_pass_for_id): Likewise.
5562         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
5563         (execute_function_todo): Flush per function statistics.
5564         * toplev.c (compile_file): Init statistics.
5565         (general_init): Do early statistics initialization.
5566         (finalize): Finish statistics.
5567         * statistics.h (statistics_early_init): Declare.
5568         (statistics_init): Likewise.
5569         (statistics_fini): Likewise.
5570         (statistics_fini_pass): Likewise.
5571         (statistics_counter_event): Likewise.
5572         (statistics_histogram_event): Likewise.
5573         * statistics.c: New file.
5574         * Makefile.in (OBJS-common): Add statistics.o.
5575         (statistics.o): Add dependencies.
5576         * doc/invoke.texi (-fdump-statistics): Document.
5577
5578         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
5579         (insert): Likewise.
5580         (execute_pre): Use statistics_counter_event.
5581         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
5582         (substitute_and_fold): Increment it.  Use statistics_counter_event.
5583
5584 2008-05-15  Diego Novillo  <dnovillo@google.com>
5585
5586         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
5587
5588         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
5589         * tree-ssa-alias.c (new_type_alias): Remove references to
5590         sub-variables from comment.
5591         * tree-ssa-operands.c (swap_tree_operands): Likewise.
5592
5593 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5594
5595         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
5596         attribute to 1 only for insertps alternative.
5597
5598 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5599
5600         * config/bfin/bfin.md (loadbytes): New pattern.
5601         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
5602         (bfin_init_builtins): Initialize it.
5603         (bdesc_1arg): Add it.
5604
5605 2008-05-15  Sa Liu  <saliu@de.ibm.com>
5606
5607         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
5608         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
5609         * testsuite/lib/target-supports.exp: Add
5610         check_effective_target_fortran_integer_16.
5611
5612 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
5613
5614         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
5615         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
5616         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
5617         (TARGET_RETURN_IN_MEMORY): Define.
5618
5619 2008-05-15  Richard Guenther  <rguenther@suse.de>
5620
5621         PR middle-end/36244
5622         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
5623         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
5624         represent unmodifiable vars.
5625
5626 2008-05-15  Richard Guenther  <rguenther@suse.de>
5627
5628         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
5629         INDIRECT_REF and TARGET_MEM_REF.
5630         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5631         TARGET_MEM_REF.
5632
5633 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
5634             H.J. Lu  <hongjiu.lu@intel.com>
5635
5636         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
5637         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
5638         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
5639         insn alternatives.  Add missing alternatives.
5640         (*vec_concatv2di_rex64_sse4_1): Likewise.
5641         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
5642         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
5643         Require TARGET_SSE.
5644
5645 2008-05-15  Richard Guenther  <rguenther@suse.de>
5646
5647         PR tree-optimization/36009
5648         PR tree-optimization/36204
5649         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
5650         (determine_invariantness_stmt): Record the loop a store is
5651         always executed in.
5652         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
5653         dependency.
5654
5655 2008-05-15  Richard Guenther  <rguenther@suse.de>
5656
5657         PR tree-optimization/34330
5658         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
5659         through the pointer will alias the SMT.
5660
5661 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
5662
5663         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
5664
5665 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5666
5667         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
5668
5669 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5670             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5671
5672         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
5673         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
5674         (vashl_optab): New optab for vector/vector shifts.
5675         (vashr_optab): Ditto.
5676         (vlshr_optab): Ditto.
5677         (vrotl_optab): Ditto.
5678         (vrotr_optab): Ditto.
5679         (optab_subtype): New enum for optab_for_tree_code call.
5680         (optab_for_tree_code): Add enum optab_subtype argument.
5681
5682         * optabs.c (optab_for_tree_code): Take an additional argument to
5683         distinguish between a vector shift by a scalar and vector shift by
5684         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
5685         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
5686         vector shift by a vector.
5687         (expand_widen_pattern_expr): Pass additional argument to
5688         optab_for_tree_code.
5689
5690         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
5691         vrotl_optab, vrotr_optab.
5692
5693         * expr.c (expand_expr_real_1): Update calls to
5694         optab_for_tree_code to distinguish between vector shifted by a
5695         scalar and vector shifted by a vector.
5696         * tree-vectorizer.c (supportable_widening_operation): Ditto.
5697         (supportable_narrowing_operation): Ditto.
5698         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
5699         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
5700         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
5701         (vect_create_epilog_for_reduction): Ditto.
5702         (vectorizable_reduction): Ditto.
5703         (vectorizable_operation): Ditto.
5704         (vect_strided_store_supported): Ditto.
5705         (vect_strided_load_supported): Ditto.
5706         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
5707         * expmed.c (expand_shift): Ditto.
5708
5709         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
5710         scalar type.
5711         (ashr@var{m}3): Ditto.
5712         (vashl@var{m}3): Document new vector/vector shift standard name.
5713         (vashr@var{m}3): Ditto.
5714         (vlshr@var{m}3): Ditto.
5715         (vrotl@var{m}3): Ditto.
5716         (vrotr@var{m}3): Ditto.
5717
5718         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
5719         (PPERM_INVERT): Ditto.
5720         (PPERM_REVERSE): Ditto.
5721         (PPERM_REV_INV): Ditto.
5722         (PPERM_ZERO): Ditto.
5723         (PPERM_ONES): Ditto.
5724         (PPERM_SIGN): Ditto.
5725         (PPERM_INV_SIGN): Ditto.
5726         (PPERM_SRC1): Ditto.
5727         (PPERM_SRC2): Ditto.
5728
5729         * config/i386/sse.md (mulv2di3): Add SSE5 support.
5730         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
5731         allows a memory operand to be the value being added, and split it
5732         to improve vectorization.
5733         (sse5_pmacsdqh_mem): Ditto.
5734         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
5735         (sse5_mulv2div2di3_high): Ditto.
5736         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
5737         (vec_pack_trunc_v4si): Ditto.
5738         (vec_pack_trunc_v2di): Ditto.
5739         (sse5_pcmov_<mode>): Remove code that tried to use use
5740         andps/andnps instead of pcmov.
5741         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
5742         pmacsdqh instructions.
5743         (vec_widen_smult_lo_v4si): Ditto.
5744
5745         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
5746         (PPERM_INVERT): Ditto.
5747         (PPERM_REVERSE): Ditto.
5748         (PPERM_REV_INV): Ditto.
5749         (PPERM_ZERO): Ditto.
5750         (PPERM_ONES): Ditto.
5751         (PPERM_SIGN): Ditto.
5752         (PPERM_INV_SIGN): Ditto.
5753         (PPERM_SRC1): Ditto.
5754         (PPERM_SRC2): Ditto.
5755         (ix86_expand_sse_movcc): Move the SSE5 test after the if
5756         true/false tests.
5757         (ix86_expand_int_vcond): If SSE5 generate all possible integer
5758         comparisons.
5759         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
5760         says ignore whether the last reference is a memory operand.
5761
5762 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5763             Paolo Bonzini <bonzini at gnu dot org>
5764
5765         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
5766         shift patterns.
5767
5768         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
5769         (vlshr<mode>3): Rename from vlshr<mode>3.
5770         (vashr<mode>3): Rename from vashr<mode>3.
5771         (mulv4sf3): Change the names of vector shift patterns.
5772         (mulv4si3): Ditto.
5773         (negv4sf2): Ditt.
5774
5775         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
5776         shift insns.
5777
5778         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
5779         (SI_SHLHI): Ditto.
5780         (SI_SHL): Ditto.
5781         (SI_SHLI): Ditto.
5782         (SI_ROTH): Ditto.
5783         (SI_ROTHI): Ditto.
5784         (SI_ROT): Ditto.
5785         (SI_ROTI): Ditto.
5786         (SPU_RL_0): Ditto.
5787         (SPU_RL_1): Ditto.
5788         (SPU_RL_2): Ditto.
5789         (SPU_RL_3): Ditto.
5790         (SPU_RL_4): Ditto.
5791         (SPU_RL_5): Ditto.
5792         (SPU_RL_6): Ditto.
5793         (SPU_RL_7): Ditto.
5794         (SPU_SL_0): Ditto.
5795         (SPU_SL_1): Ditto.
5796         (SPU_SL_2): Ditto.
5797         (SPU_SL_3): Ditto.
5798         (SPU_SL_4): Ditto.
5799         (SPU_SL_5): Ditto.
5800         (SPU_SL_6): Ditto.
5801         (SPU_SL_7): Ditto.
5802
5803         * config/spu/spu.md (v): New iterator macro to add v for vector types.
5804         (floatunssidf2_internal): Change vector/vector shift names.
5805         (floatunsdidf2_internal): Ditto.
5806         (mulv8hi3): Ditto.
5807         (ashrdi3): Ditto.
5808         (ashrti3): Ditto.
5809         (cgt_df): Ditto.
5810         (cgt_v2df): Ditto.
5811         (dftsv): Ditto.
5812         (vashl<mode>3): Rename from ashl<mode>3.
5813         (vashr<mode>3): Rename from ashr<mode>3.
5814         (vlshr<mode>3): Rename from lshr<mode>3.
5815         (vrotl<mode>3): Rename from rotl<mode>3.
5816
5817 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
5818
5819         PR target/36224
5820         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
5821         multiply gives the wrong value when doing widening multiplies.
5822         (vec_widen_smult_lo_v4si): Ditto.
5823
5824 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5825
5826         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
5827         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
5828         emit_library_call_value. 
5829         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
5830         * tree.h (ECF_LIBCALL_BLOCK): Removed.
5831         * calls.c (initialize_argument_information, precompute_arguments, 
5832         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
5833         (precompute_arguments): Removed flags parameter.
5834         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
5835         
5836 2008-05-14  Richard Guenther  <rguenther@suse.de>
5837
5838         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
5839         Make sure to register the store if the use is a PHI_NODE.
5840
5841 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5842
5843         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
5844         memory if the component is to be referenced in BLKmode according
5845         to get_inner_reference.
5846
5847 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
5848
5849         * calls.c (emit_library_call_value_1): Restore code clearing
5850         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
5851
5852 2008-05-14  Olivier Hainque  <hainque@adacore.com>
5853             Nicolas Roche  <roche@adacore.com>
5854
5855         * configure.ac: Add support for a "gcc_subdir" variable in
5856         config-lang.in, to denote a subdirectory where the language/GCC
5857         integration files are to be found.
5858         * configure: Regenerate.
5859
5860 2008-05-14  Ira Rosen  <irar@il.ibm.com>
5861
5862         PR tree-optimization/36098
5863         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
5864         value for the first load in the group in case of a gap.
5865         (vect_build_slp_tree): Check that there are no gaps in loads.
5866
5867 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
5868
5869         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
5870         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
5871         expand_copysign_bit, ): Change call to emit_no_conflict_block to
5872         emit_insn and remove unneeded code to construct extra args.
5873         (emit_no_conflict_block): Removed.
5874         * optabls.h: (emit_no_conflict_block): Removed.
5875         * cse.c (cse_extended_basic_block): Remove search for
5876         REG_NO_CONFLICT note.
5877         * global.c: Removed incorrect comment added in revision 117.
5878         * expr.c (convert_move): Change call to emit_no_conflict_block to
5879         emit_insn.
5880         * recog.c: Change comments so that they do not mention
5881         REG_NO_CONFLICT.
5882         * local_alloc.c (combine_regs): Removed last parameter.
5883         (no_conflict_p): Removed.
5884         (block_alloc): Removed note, no_conflict_combined_regno and set
5885         local vars. Removed all code to process REG_NO_CONFLICT blocks.
5886         (combine_regs): Removed already_dead and code to look for
5887         REG_NO_CONFLICT notes.
5888         * lower_subreg (remove_retval_note): Removed code to look for
5889         REG_NO_CONFLICT block.
5890         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5891         (resolve_clobber): Remove code to process libcalls that have
5892         REG_NO_CONFLICT notes.
5893         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5894         case.
5895         * combine.c (can_combine_p, distribute_notes):  Removed
5896         REG_NO_CONFLICT case.
5897         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5898         to emit_insns.
5899         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5900         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5901         Ditto.
5902         * reg-notes.def (NO_CONFLICT): Removed.
5903
5904 2008-05-14  David S. Miller  <davem@davemloft.net>
5905
5906         * config/sparc/sparc.c (sparc_profile_hook): If
5907         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
5908         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
5909         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5910
5911 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5912
5913         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
5914
5915 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
5916
5917         PR target/36222
5918         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
5919         and op1 expansion before vector concat to have less live pseudos.
5920
5921 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5922
5923         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5924         ix86_expand_vector_set if supported.
5925
5926 2008-05-13  Diego Novillo  <dnovillo@google.com>
5927             Kenneth Zadeck  <zadeck@naturalbridge.com>
5928
5929         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
5930
5931         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
5932         phinodes_print_statistics, init_ssanames, fini_ssanames,
5933         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
5934         release_ssa_name, release_defs, replace_ssa_name_symbol,
5935         ssanames_print_statistics): Move ...
5936         * tree-flow.h: ... here.
5937         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
5938         Use FN instead of cfun.
5939         (make_ssa_name_fn): Rename from make_ssa_name.
5940         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5941         * tree-flow-inline.h (make_ssa_name): Move from
5942         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
5943         * omp-low.c (expand_omp_parallel):
5944         * tree-flow-inline.h (redirect_edge_var_map_result):
5945         * tree-ssa.c (init_tree_ssa): Add argument FN.
5946         Use it instead of cfun.  Update all users.
5947
5948 2008-05-13  Tom Tromey  <tromey@redhat.com>
5949
5950         PR preprocessor/22168:
5951         * doc/cpp.texi (Top): Update menu.
5952         (Alternatives to Wrapper #ifndef): New node.
5953         (Other Directives): Document deprecation.
5954         (Obsolete Features): Remove menu.
5955         (Assertions): Merge node into Obsolete Features.
5956         (Obsolete once-only headers): Move earlier; rename to Alternatives
5957         to Wrapper #ifndef.
5958         * doc/cppopts.texi: Update.
5959         * c.opt (Wdeprecated): Enable for C and ObjC.
5960         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
5961         (C++ Dialect Options): Move -Wno-deprecated from here to...
5962         (Warning Options): ... here.
5963
5964 2008-05-13  Richard Guenther  <rguenther@suse.de>
5965
5966         PR middle-end/36227
5967         * fold-const.c (fold_sign_changed_comparison): Do not allow
5968         changes in pointer-ness.
5969
5970 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5971
5972         PR target/24713
5973         * config/sh/sh.c (sh_expand_prologue): Don't clear
5974         RTX_FRAME_RELATED_P for push insns.
5975
5976 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
5977
5978         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
5979
5980 2008-05-12  Anatoly Sokolov <aesok@post.ru>
5981
5982         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
5983         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
5984         Use 'machine->is_leaf' instead of 'leaf_func_p'.
5985
5986 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5987
5988         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
5989         (*vec_concatv4sf_sse): This.
5990         (*sse2_concatv2si): Renamed to ...
5991         (*vec_concatv2si_sse2): This.
5992         (*sse1_concatv2si): Renamed to ...
5993         (*vec_concatv2si_sse): This.
5994         (*vec_concatv2di_rex): Renamed to ...
5995         (*vec_concatv2di_rex64): This.
5996         (*vec_concatv2si_sse4_1): New.
5997         (*vec_concatv2di_rex64_sse4_1): Likewise.
5998
5999 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
6000
6001         PR rtl-optimization/36111
6002         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
6003         that was created for swappable operands.
6004
6005 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
6006
6007         PR ada/36001
6008         * Makefile.in: Substitute GNATMAKE and GNATBIND.
6009         * configure.ac: Add call to ACX_PROG_GNAT.
6010
6011 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
6012
6013         * optc-gen.awk: Fix comment typo.
6014
6015 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6016
6017         * pretty-print.c (pp_integer_with_precision): Use
6018         HOST_LONG_LONG_FORMAT.
6019
6020 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
6021
6022         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
6023                 
6024 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6025
6026         * config/i386/i386.c (bdesc_ptest): Removed.
6027         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
6028         (bdesc_args): Add __builtin_ia32_ptestz128,
6029         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
6030         (ix86_init_mmx_sse_builtins): Updated.
6031         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
6032         (ix86_expand_builtin): Updated.
6033
6034 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
6035
6036         * tree-cfg.c (valid_fixed_convert_types_p): New function.
6037         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
6038
6039 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
6040
6041         * value-prof.c (interesting_stringop_to_profile): Do not
6042         return early for BUILT_IN_MEMPCPY.
6043
6044 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
6045
6046         * calls.c (expand_call): Don't use callgraph to increase
6047         preferred_stack_boundary.
6048
6049         * cgraph.h (cgraph_rtl_info): Use unsigned on
6050         preferred_incoming_stack_boundary.
6051
6052         * final.c (rest_of_clean_state): Use unsigned on
6053         preferred_stack_boundary.
6054
6055 2008-05-09  Tom Tromey  <tromey@redhat.com>
6056
6057         PR preprocessor/22231:
6058         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
6059         proceeding.
6060
6061 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
6062
6063         PR tree-optimization/36129
6064         * tree-ssa-ccp.c: Include value-prof.h.
6065         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
6066         built-in function was folded to a constant.
6067         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
6068
6069 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
6070             Sebastian Pop  <sebastian.pop@amd.com>
6071
6072         * tree-scalar-evolution.c: Document instantiate_scev.
6073         (instantiate_parameters_1): Renamed instantiate_scev_1.
6074         Don't use the same loop for instantiation_loop and evolution_loop.
6075         (instantiate_scev): New.
6076         (instantiate_parameters): Moved...
6077         (resolve_mixers): Update call to instantiate_scev_1 to pass the
6078         same loop twice.  Maintains the semantics for this function.
6079         * tree-scalar-evolution.h (instantiate_scev): Declare.
6080         (instantiate_parameters): ...here.  Now static inline.
6081         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
6082         instead of resolve_mixers.
6083
6084 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6085
6086         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
6087
6088 2008-05-09  Tomas Bily  <tbily@suse.cz>
6089
6090         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
6091         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
6092         * tree-ssa-structalias.c (get_constraint_for): Likewise.
6093         * c-common.c (c_common_truthvalue_conversion): Likewise.
6094         * tree-object-size.c (compute_object_offset): Likewise.
6095         * tree-inline.c (estimate_num_insns_1): Likewise.
6096         * varasm.c (const_hash_1, compare_constant, copy_constant)
6097         (compute_reloc_for_constant, output_addressed_constants)
6098         (initializer_constant_valid_p): Likewise.
6099         * c-omp.c (check_omp_for_incr_expr): Likewise.
6100         * gimplify.c (gimplify_expr): Likewise.
6101         * c-typeck.c (c_finish_return): Likewise.
6102         * tree-vectorizer.c (supportable_widening_operation)
6103         (supportable_narrowing_operation): Likewise.
6104         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
6105         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
6106         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
6107         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
6108         (descr_info_loc): Likewise.
6109         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
6110         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
6111         (fold_unary): Likewise.
6112         * builtins.c (get_pointer_alignment): Likewise.
6113         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
6114         (instantiate_parameters_1): Likewise.
6115         * tree.c (expr_align, stabilize_reference): Likewise.
6116         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
6117         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
6118         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
6119         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
6120         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
6121         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
6122         Likewise.
6123         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
6124         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
6125         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
6126         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
6127         (forward_propagate_comparison)
6128         (tree_ssa_forward_propagate_single_use_vars): Likewise.
6129         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
6130         * emit-rtl.c (component_ref_for_mem_expr)
6131         (set_mem_attributes_minus_bitpos): Likewise.
6132         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6133         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
6134         Likewise.
6135         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
6136         (build_function_call, pointer_diff, build_compound_expr)
6137         (c_finish_return): Likewise.
6138         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
6139         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
6140         Likewise.
6141         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
6142         * expr.c (is_aligning_offset): Likewise.
6143         * tree-ssa-alias.c (is_escape_site): Likewise.
6144         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
6145         (check_all_va_list_escapes): Likewise.
6146         * tree-ssa-loop-ivopts.c (determine_base_object)
6147         (determine_common_wider_type): Likewise.
6148         * dojump.c (do_jump): Likewise.
6149         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
6150         * tree-gimple.c (is_gimple_cast): Likewise.
6151         * fold-const.c (decode_field_reference, )
6152         (fold_sign_changed_comparison, fold_unary, fold_comparison)
6153         (fold_binary): Likewise.
6154         * tree-ssa-alias-warnings.c (find_alias_site_helper)
6155         (already_warned_in_frontend_p): Likewise.
6156         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
6157         * tree.c (really_constant_p, get_unwidened): Likewise.
6158         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
6159         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
6160         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
6161         Likewise.
6162         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
6163         CONVERT_EXPR_P.
6164         (CONVERT_EXPR_P): Define.
6165         (CASE_CONVERT): Define.
6166         
6167 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
6168
6169         PR middle-end/36117
6170         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
6171         (delete_unmarked_insns): When deleting a call, call
6172         delete_unreachable_blocks.
6173         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6174         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
6175
6176 2008-05-08  Richard Guenther  <rguenther@suse.de>
6177
6178         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
6179         (-ftree-salias): Likewise.
6180         (salias-max-implicit-fields): Remove param documentation.
6181         (salias-max-array-elements): Likewise.
6182         * tree-pass.h (pass_create_structure_vars): Remove.
6183         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6184         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6185         * tree-ssa-alias.c (create_structure_vars): Remove.
6186         (gate_structure_vars): Likewise.
6187         (pass_create_structure_vars): Likewise.
6188         (gate_build_alias): Likewise.
6189         (pass_build_alias): Adjust to run always and dump the function.
6190         * common.opt (ftree-salias): Hide.
6191         * passes.c (init_optimization_passes): Remove
6192         pass_create_structure_vars, adjust comment.
6193         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
6194         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
6195         * opts.c (decode_options): Do not set flag_tree_salias.
6196         (common_handle_option): Add OPT_ftree_salias to the backward
6197         compatibility section.
6198
6199 2008-05-08  Richard Guenther  <rguenther@suse.de>
6200
6201         * tree-flow-inline.h (var_can_have_subvars): Move ...
6202         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
6203         * tree-flow.h (var_can_have_subvars): Remove.
6204         (push_fields_onto_fieldstack): Remove.
6205         (sort_fieldstack): Likewise.
6206         (struct fieldoff): Move ...
6207         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
6208         alias_set and base_for_components fields.
6209         (sort_fieldstack): Make static.
6210         (push_fields_onto_fieldstack): Likewise.  Remove code that
6211         handles anything but RECORD_TYPEs.  Remove alias_set and
6212         base_for_components handling.
6213         (create_variable_info_for): Adjust.
6214
6215 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
6216
6217         * common.opt (Wframe-larger-than=): Shorten the help message
6218         to one line.
6219         * doc/invoke.texi (Wframe-larger-than=): Add more description.
6220
6221 2008-05-08  Rafael Espindola  <espindola@google.com>
6222
6223         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
6224         trap.
6225         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
6226         trap and that both operands are gimple values.
6227         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
6228         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
6229         is a fp operation.
6230
6231 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6232
6233         * read-rtl.c (join_c_conditions): Return the first string if the
6234         two strings are equal.
6235
6236 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
6237
6238         * gensupport.h (pred_data): Add a "num_codes" field.
6239         (add_predicate_code): Declare.
6240         * gensupport.c (add_predicate_code): New function.
6241         (std_pred_table): Add an "allows_const_p" field.
6242         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
6243         Remove the (incomplete) list of such codes from the codes field.
6244         (init_predicate_table): Use add_predicate_code.  Add all
6245         RTX_CONST_OBJs if allows_const_p is true.
6246         * genrecog.c (process_define_predicate): Use add_predicate_code.
6247
6248 2008-05-08  David Daney  <ddaney@avtrex.com>
6249             Richard Sandiford  <rsandifo@nildram.co.uk>
6250         
6251         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
6252         special case of constant zero operands.
6253         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
6254         old and new values.  Special case constant zero values.
6255         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
6256         fails.
6257         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
6258         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
6259
6260 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
6261
6262         PR target/36090
6263         * simplify-rtx.c (simplify_plus_minus): Create CONST of
6264         similar RTX_CONST_OBJ before CONST_INT.
6265
6266 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
6267
6268         * stmt.c (expand_stack_restore): Change sa mode if needed.
6269
6270 2008-05-08  Richard Guenther  <rguenther@suse.de>
6271
6272         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
6273         return type to bool.
6274         (ix86_sol10_return_in_memory): Likewise.
6275         (ix86_i386elf_return_in_memory): Likewise.
6276         (ix86_i386interix_return_in_memory): Likewise.
6277         * config/i386/i386.c (ix86_return_in_memory): Likewise.
6278         (ix86_sol10_return_in_memory): Likewise.
6279         (ix86_i386elf_return_in_memory): Likewise.
6280         (ix86_i386interix_return_in_memory): Likewise.
6281
6282 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6283
6284         PR bootstrap/36180
6285         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
6286         fndecl argument.
6287         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
6288         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
6289         declared in front.
6290
6291 2008-05-08  Richard Guenther  <rguenther@suse.de>
6292
6293         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
6294         * tree-data-ref.h (struct dr_alias): Remove subvars field.
6295         (DR_SUBVARS): Remove.
6296         * tree-dfa.c (dump_subvars_for): Remove.
6297         (debug_subvars_for): Likewise.
6298         (dump_variable): Do not dump subvars.
6299         (remove_referenced_var): Do not remove subvars.
6300         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
6301         (lookup_subvars_for_var): Remove.
6302         (get_subvars_for_var): Likewise.
6303         (get_subvars_at): Likewise.
6304         (get_first_overlapping_subvar): Likewise.
6305         (overlap_subvar): Likewise.
6306         * tree-flow.h (subvar_t): Remove.
6307         (struct var_ann_d): Remove subvars field.
6308         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
6309         argument.  Remove special handling of SFTs.
6310         (compute_tag_properties): Likewise.
6311         (set_initial_properties): Likewise.
6312         (compute_call_clobbered): Likewise.
6313         (count_mem_refs): Likewise.
6314         (compute_memory_partitions): Likewise.
6315         (compute_flow_insensitive_aliasing): Likewise.
6316         (setup_pointers_and_addressables): Likewise.
6317         (new_type_alias): Likewise.
6318         (struct used_part): Remove.
6319         (used_portions): Likewise.
6320         (struct used_part_map): Likewise.
6321         (used_part_map_eq): Likewise.
6322         (used_part_map_hash): Likewise.
6323         (free_used_part_map): Likewise.
6324         (up_lookup): Likewise.
6325         (up_insert): Likewise.
6326         (get_or_create_used_part_for): Likewise.
6327         (create_sft): Likewise.
6328         (create_overlap_variables_for): Likewise.
6329         (find_used_portions): Likewise.
6330         (create_structure_vars): Likewise.
6331         * tree.def (STRUCT_FIELD_TAG): Remove.
6332         * tree.h (MTAG_P): Adjust.
6333         (struct tree_memory_tag): Remove base_for_components and
6334         unpartitionable flags.
6335         (struct tree_struct_field_tag): Remove.
6336         (SFT_PARENT_VAR): Likewise.
6337         (SFT_OFFSET): Likewise.
6338         (SFT_SIZE): Likewise.
6339         (SFT_NONADDRESSABLE_P): Likewise.
6340         (SFT_ALIAS_SET): Likewise.
6341         (SFT_UNPARTITIONABLE_P): Likewise.
6342         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
6343         (union tree_node): Remove sft field.
6344         * alias.c (get_alias_set): Remove special handling of SFTs.
6345         * print-tree.c (print_node): Remove handling of SFTs.
6346         * tree-dump.c (dequeue_and_dump): Likewise.
6347         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
6348         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
6349         * tree-predcom.c (set_alias_info): Do not set subvars.
6350         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
6351         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
6352         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
6353         (add_vars_for_offset): Remove.
6354         (add_virtual_operand): Remove special handling of SFTs.
6355         (add_call_clobber_ops): Likewise.
6356         (add_call_read_ops): Likewise.
6357         (get_asm_expr_operands): Likewise.
6358         (get_modify_stmt_operands): Likewise.
6359         (get_expr_operands): Likewise.
6360         (add_to_addressable_set): Likewise.
6361         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
6362         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6363         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
6364         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
6365         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
6366         (tree_node_structure): Likewise.
6367         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
6368         handling of SFTs.
6369         (find_what_p_points_to): Likewise.
6370
6371 2008-05-08  Sa Liu  <saliu@de.ibm.com>
6372
6373         * config/spu/spu.md: Fixed subti3 pattern.
6374
6375 2008-05-08  Richard Guenther  <rguenther@suse.de>
6376
6377         PR middle-end/36154
6378         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
6379         sure to create a representative for trailing arrays for PTA.
6380
6381 2008-05-08  Richard Guenther  <rguenther@suse.de>
6382
6383         PR middle-end/36172
6384         * fold-const.c (operand_equal_p): Two objects which types
6385         differ in pointerness are not equal.
6386
6387 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
6388
6389         * calls.c (compute_argument_block_size): Add argument tree fndecl.
6390         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
6391         (emit_library_call_value_1): Add new variable fndecl initialized by
6392         NULL_TREE. It should be the decl type of orgfun, but this information
6393         seems not to be available here, so it uses the default calling abi.
6394         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
6395         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
6396         by TARGET_RETURN_IN_MEMORY.
6397         * config/i386/i386-interix.h: Likewise.
6398         * config/i386/i386.h: Likewise.
6399         * config/i386/i386elf.h: Likewise.
6400         * config/i386/ptx4-i.h: Likewise.
6401         * config/i386/sol2-10.h: Likewise.
6402         * config/i386/sysv4.h: Likewise.
6403         * config/i386/vx-common.h: Likewise.
6404         * config/cris/cris.h: Removed #if 0 clause.
6405         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
6406         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
6407         argument.
6408         (ix86_sol10_return_in_memory): Likewise.
6409         (ix86_i386elf_return_in_memory): New.
6410         (ix86_i386interix_return_in_memory): New.
6411         * config/mt/mt-protos.h (mt_return_in_memory): New.
6412         * config/mt/mt.c: Likewise.
6413         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6414         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
6415         * config/bfin/bfin.h: Likewise.
6416         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
6417         argument.
6418         * config/bfin/bfin.c: Likewise.
6419         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
6420         * config/alpha/unicosmk.h: Likewise.
6421         * config/i386/cygming.h: Likewise.
6422         * config/iq2000/iq2000.h: Likewise.
6423         * config/mips/mips.h: Likewise.
6424         * config/mn10300/mn10300.h: Likewise.
6425         * config/rs6000/rs6000.h: Likewise.
6426         * config/score/score.h: Likewise.
6427         * config/spu/spu.h: Likewise.
6428         * config/v850/v850.h: Likewise.
6429         * defaults.h: Likewise.
6430         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
6431         * expr.c (emit_block_move): Adjust use of
6432         OUTGOING_REG_PARM_STACK_SPACE.
6433         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
6434         OUTGOING_REG_PARM_STACK_SPACE.
6435         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
6436
6437 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
6438
6439         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
6440         on OMP_RETURN for OMP_FOR.
6441
6442         PR debug/35896
6443         * dwarf2out.c (dw_expand_expr, common_check): Removed.
6444         (fortran_common): New function.
6445         (gen_variable_die): Call fortran_common instead of common_check,
6446         adjust for it returning tree instead of rtx.  Formatting.
6447
6448 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
6449
6450         PR rtl/7335
6451         PR rtl/33826
6452         * see.c (see_copy_insn): Copy new pure const attributes for new call.
6453         * c-decl.c (merge_decls): Ditto.
6454         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
6455         to RTL_CONST_OR_PURE_CALL_P.
6456         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
6457         Initialized DECL_LOOPING_CONST_PURE.
6458         (process_call_operands): Set tree_side_effects properly.
6459         * tree.h (TREE_READONLY_DECL_P): Removed.
6460         (DECL_IS_PURE): Renamed to DECL_PURE_P.
6461         (DECL_LOOPING_OR_CONST_P): New macro.
6462         (struct tree_function_decl): Added looping_const_or_pure_p.
6463         (ECF_*) Renumbered.
6464         (ECF_LOOPING_OR_CONST_P): New macro.
6465         * rtlanal.c (pure_const_p): Removed.
6466         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
6467         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
6468         to RTL_CONST_CALL_P.
6469         * ipa-pure-const.c (pure_const_state_e): Added looping field.
6470         (check_decl, check_tree, check_call, scan_function): Initialize
6471         looping.
6472         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
6473         (static_execute): Set looping true for recursive functions.
6474         Undo setting state to IPA_NEITHER for recursive functions.
6475         * cse.c (cse_insn): 
6476         * ifcvt.c (noce_can_store_speculate_p): Changed
6477         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
6478         RTL_CONST_OR_PURE_CALL_P.
6479         * dse.c (scan_insn): Ditto.
6480         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
6481         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
6482         RTL_CONST_OR_PURE_CALL_P.
6483         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
6484         pure_call_p to RTL_CONST_CALL_P.
6485         * gimplify.c (gimplify_call_expr): Clear side effects for
6486         non-looping pure and constant calls.
6487         * calls.c (emit_call_1): Set rtl flags from ecf flags.
6488         (flags_from_decl_or_type): Set ecf flags from decl flags.
6489         (initialize_argument_information): Turn off
6490         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
6491         Change const to pure if callee_copies is true rather than just
6492         turning off const.
6493         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
6494         way of marking pure calls.
6495         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
6496         Remove hack that was supposed to fix pr7335 and remove old
6497         way of marking pure calls.
6498         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
6499         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
6500         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
6501         RTL_CONST_OR_PURE_CALL_P.
6502         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
6503         * loop-invariant.c (find_exits, find_invariant_bb): Changed
6504         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
6505         * sched-deps.c (schedule_analyze): Ditto.
6506         * rtl.h (struct rtx_def): Use call field, unchanging field, and
6507         return_val field of calls to represent pure and const function info.
6508         (CONST_OR_PURE_CALL_P): Deleted macro.
6509         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
6510         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
6511         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
6512         TREE_READONLY.
6513         * tree-optimize.c (execute_fixup_cfg): Added test for
6514         ECF_LOOPING_CONST_OR_PURE.
6515         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
6516         DECL_PURE_P.
6517         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
6518         effects for looping pure or const calls.
6519         (verify_gimple_expr): Added verification code. 
6520         * config/alpha/alpha.c (alpha_legitimize_address,
6521         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
6522         RTL_CONST_CALL_P.
6523         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
6524         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
6525         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
6526         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
6527         RTL_CONST_OR_PURE_CALL_P.
6528         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
6529         and const calls to be deleted.
6530
6531 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6532
6533         PR target/35714
6534         * config/i386/mmx.md (mmx_subv2sf3): New expander.
6535         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
6536         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
6537         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6538         to handle nonimmediate operands.
6539         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
6540         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
6541         to handle nonimmediate operands.
6542         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
6543         (mmx_pmulhrwv4hi3): New expander.  Use
6544         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6545         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
6546         (sse2_umulv1siv1di3): New expander.  Use
6547         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6548         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
6549         (mmx_eq<mode>3): New expander.  Use
6550         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6551         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
6552         (mmx_uavgv8qi3): New expander.  Use
6553         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6554         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
6555         (mmx_uavgv4hi3): New expander.  Use
6556         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6557
6558         * config/i386/sse.md
6559         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
6560         to handle nonimmediate operands.
6561         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
6562         to handle nonimmediate operands.
6563         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
6564         to handle nonimmediate operands.
6565         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
6566         to handle nonimmediate operands.
6567         (sse2_unpckhpd_exp): New expander.  Use
6568         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6569         (sse2_unpcklpd_exp): New expander.  Use
6570         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6571         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
6572         to handle nonimmediate operands.
6573         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
6574         to handle nonimmediate operands.
6575         (*sse2_<plusminus_insn><mode>3): Rename from
6576         sse2_<plusminus_insn><mode>3 insn pattern.
6577         (sse2_<plusminus_insn><mode>3): New expander.  Use
6578         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6579         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
6580         (sse2_umulv2siv2di3): New expander.  Use
6581         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6582         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
6583         (sse4_1_mulv2siv2di3): New expander.  Use
6584         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6585         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
6586         (sse2_pmaddwd): New expander.  Use
6587         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6588         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
6589         (sse2_eq<mode>3): New expander.  Use
6590         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6591         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
6592         (sse4_1_eqv2di3): New expander.  Use
6593         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6594         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6595         (sse2_uavgv16qi3): New expander.  Use
6596         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6597         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
6598         (sse2_uavgv16qi3): New expander.  Use
6599         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6600         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
6601         (sse2_uavgv8hi3): New expander.  Use
6602         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6603         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
6604         (ssse3_pmulhrswv8hi3): New expander.  Use
6605         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6606         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
6607         (ssse3_pmulhrswv4hi3): New expander.  Use
6608         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6609
6610         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
6611         (<sse>_vmmul<mode>3): Ditto.
6612         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
6613         (divv2df3): Ditto.
6614         (ssse3_pmaddubsw128): Use register_operand for operand 1.
6615         (ssse3_pmaddubsw): Ditto.
6616
6617         * config/i386/i386.c (struct_builtin_description)
6618         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
6619         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
6620         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
6621         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
6622         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
6623         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
6624         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
6625         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
6626         (ix86_fixup_binary_operands): Assert that src1
6627         and src2 must have the same mode when swapped.
6628         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
6629         and ix86_binary_operator_ok.  Do not force operands in registers
6630         when optimizing.
6631
6632 2008-05-07  Jan Hubicka  <jh@suse.cz>
6633
6634         * cgraph.c (dump_cgraph_node): Update.
6635         * cgraph.h (cgraph_local_info): Break out inline summary.
6636         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
6637         hook.
6638         * ipa-inline (inline_summary): New accestor function.
6639         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
6640         cgraph_decide_inlining, compute_inline_parameters): Update.
6641         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
6642
6643 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
6644
6645         Cleanup ColdFire scheduling support and add V4 pipeline model.
6646
6647         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
6648         (define_attr cpu): Add cfv4 value.
6649         (define_attr type, define_attr type1): Merge into a single 'type'
6650         attribute.  Update all uses.
6651         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
6652         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
6653         Update all uses.
6654         (define_attr opx_mem, define_attr opy_mem): Remove.
6655         (define_attr op_mem): Clean up, update comment.
6656         (define_attr size): Use specific values instead of general int.
6657         (define_attr guess, define_attr split): Remove.  Update all uses.
6658         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
6659         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
6660         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
6661         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
6662         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
6663         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
6664         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
6665         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
6666         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
6667         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
6668         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
6669         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
6670         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
6671         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
6672         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
6673         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
6674         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
6675         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
6676         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
6677         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
6678         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
6679         Update or set attributes.
6680         (stack_tie): New fake instruction.
6681
6682         * config/m68k/m68k.h (TUNE_CFV4): New macro.
6683         (m68k_sched_attr_size): Update declaration.
6684         (m68k_sched_attr_type2): Remove.
6685         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
6686         Declare new bypass predicates.
6687
6688         * config/m68k/m68k.c (m68k_sched_issue_rate,
6689         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
6690         implementations.
6691         (TARGET_SCHED_ISSUE_RATE,
6692         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
6693         (override_options): Handle scheduling for ColdFire V4 core.
6694         (m68k_expand_prologue): Emit stack_tie.
6695         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
6696         'OP_TYPE_FPN'.  Update all uses.
6697         (sched_guess_p): Remove.
6698         (sched_address_type): Handle symbolic addresses.
6699         (sched_get_operand): New static function.
6700         (sched_operand_type): Merge into sched_attr_op_type.
6701         (sched_attr_op_type): Handle FP registers, handle quick constants,
6702         update.
6703         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
6704         (m68k_sched_attr_size): Update.  Move logic to ...
6705         (sched_get_attr_size_int): New static function.
6706         (sched_get_opxy_mem_type): New static function.
6707         (m68k_sched_attr_op_mem): Update.
6708         (m68k_sched_attr_type2): Remove.
6709         (sched_cfv4_bypass_data): New static variable.
6710         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
6711         (m68k_sched_issue_rate): Implement scheduler hook.
6712         (struct _sched_ib: enabled_p): New field.
6713         (m68k_sched_variable_issue): Update.  Handle V4.
6714         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
6715         sched_dump_class_func_t, sched_dump_split_class,
6716         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
6717         sched_dump_dfa_class, m68k_sched_dump): Remove.
6718         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
6719         hook.
6720         (m68k_sched_init_global): Remove statisctics dumping, introduce
6721         sanity check that all instructions have pipeline reservations.  Handle
6722         ColdFire V4 core.
6723         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
6724         Handle ColdFire V4 core.
6725         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
6726         New static functions.
6727         (m68k_sched_address_bypass_p): New bypass predicate.
6728         (sched_get_indexed_address_scale): New static function.
6729         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
6730
6731         * cf.md: Update comments.
6732         (define_attr type2): Remove.  Use 'type' attribute instead.
6733         Update all uses.
6734         (cf_ib): Rename to cfv123_ib.  Update all uses.
6735         (cf_oep): Rename to cfv123_oep.  Update all uses.
6736         (cf_chr): Rename to cfv123_chr.  Update all uses.
6737         (cf_mem): Rename to cfv123_mem.  Update all uses.
6738         (cf_mac): Move to more appropriate place.
6739         (cfv123_guess): New automaton and cpu_unit.
6740         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
6741         Update uses of 'size' attribute.  Handle before reload scheduling.
6742         (cfv123_guess): New dummy reservation for unhandled instructions.
6743         (cfv4_*): Pipeline description of ColdFire V4 core.
6744         (ignore): New reservation to handle 'ignore' type.
6745
6746 2008-05-07  Ian Lance Taylor  <iant@google.com>
6747
6748         PR middle-end/36013
6749         * gimplify.c (find_single_pointer_decl_1): Don't look through
6750         indirections.
6751         (find_single_pointer_decl): Adjust comments.
6752
6753 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
6754
6755         PR middle-end/36137
6756         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
6757         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
6758
6759         PR middle-end/36106
6760         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
6761         integral type rather than floating point, then VIEW_CONVERT_EXPR
6762         to the floating point type.
6763
6764 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
6765
6766         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
6767         TFmode op0 to register.
6768
6769 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
6770
6771         * c-decl.c (grokdeclarator): Comment typo.
6772
6773 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
6774
6775         * tree-flow.h: Remove prototype for computed_goto_p.
6776         * tree-cfg.c (computed_goto_p): Make static.
6777
6778 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
6779
6780         PR target/35657
6781         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
6782         (contains_aligned_value_p): This.  Handle _Decimal128.
6783         (ix86_function_arg_boundary): Only align _Decimal128 to its
6784         natural boundary and handle it properly.
6785
6786 2008-05-06  Martin Jambor  <mjambor@suse.cz>
6787
6788         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
6789         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
6790         (ipcp_method_set_orig_node): Removed.
6791         (ipcp_cval_get_cvalue_type): Removed.
6792         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
6793         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
6794         (ipcp_cval_set_cvalue_type): Removed.
6795         (ipcp_cval_get_cvalue): Removed.
6796         (ipcp_cval_set_cvalue): Removed.
6797         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
6798         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
6799         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
6800         (ipcp_cval_meet): Renamed to ipa_lattice_meet
6801         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
6802         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
6803         (ipcp_get_ith_lattice): Changed parameters.
6804         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
6805         (ipcp_lattice_from_jfunc): Changed parameters.
6806         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
6807         (ipcp_method_cval_print): Added temporary variable info.
6808         (ipcp_redirect): Removed already unused local variable caller.
6809         (ipcp_redirect): New temporary variable orig_callee_info
6810         (ipcp_redirect): Removed newly unused local variable callee.
6811         (ipcp_redirect): Removed (a bit confusing) local variable type.
6812         (ipcp_insert_stage): Added local variable info.
6813         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
6814         renamed too
6815         (ipcp_formal_create): Removed.
6816         (ipcp_method_cval_set): Removed.
6817         (ipcp_propagate_stage): Renamed lattice variables.
6818         (ipcp_method_cval_set_cvalue_type): Removed.
6819         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
6820         (ipcp_print_all_lattices): Changed printed strings to refer to 
6821         lattices rather than cvals.
6822         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
6823         (ipcp_propagate_const): Changed formal parameters.
6824         (build_const_val): Changed formal parameters.
6825         (ipcp_insert_stage): Removed useless variable cvalue
6826         (build_const_val): Changed formal parameters.
6827         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
6828         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
6829         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
6830         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
6831         (ipcp_print_func_profile_counts): Changed string from "method" to 
6832         "function"
6833         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
6834         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
6835         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
6836         (ipcp_structures_print): Renamed to ipcp_print_all_structures
6837         (ipcp_profile_print): Renamed to ipcp_print_profile_data
6838         (ipcp_lat_is_const): Changed parameters and made inline.
6839         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
6840         (ipcp_redirect): Renamed to ipcp_need_redirect_p
6841         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
6842         the predicate condition directly
6843         (ipcp_propagate_stage): Added local variable args. Removed local
6844         variable callee.  (Both are mere code simplifications.)
6845         (ipcp_method_dont_insert_const): Renamed to
6846         ipcp_node_not_modifiable_p.
6847         (ipcp_node_not_modifiable_p): Made inline.
6848         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
6849         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
6850         (ipcp_print_all_lattices): Removed variable cvalue
6851         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
6852         Updated comments.
6853
6854 2008-05-06  Olivier Hainque  <hainque@adacore.com>
6855
6856         * tree-sra.c (try_instantiate_multiple_fields): Early return
6857         if field has POINTER_TYPE.
6858
6859 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
6860
6861         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
6862         by using 'q' specifier for instruction.
6863         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
6864
6865 2008-05-06  Anatoly Sokolov <aesok@post.ru>
6866
6867         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6868         Change mode of zero_extract from QImode to HImode.
6869         (sign bit tests peepholes): (Ditto.).
6870
6871 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
6872
6873         * config/i386/mmx.md: Remove double backslashes from asm templates.
6874         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
6875         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6876         to handle nonimmediate operands.
6877         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
6878         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
6879         to handle nonimmediate operands.
6880         (*mmx_<code>v2sf3_finite): New insn pattern.
6881         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
6882         (mmx_<code>v2sf3): New expander.  Use
6883         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6884         (mmx_<plusminus_insn><mode>3): New expander.  Use
6885         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6886         (*mmx_<plusminus_insn><mode>3): New insn pattern.
6887         (mmx_add<mode>3): Removed.
6888         (mmx_ssadd<mode>3): Ditto.
6889         (mmx_usadd<mode>3): Ditto.
6890         (mmx_sub<mode>3): Ditto.
6891         (mmx_sssub<mode>3): Ditto.
6892         (mmx_ussub<mode>3): Ditto.
6893         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6894         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
6895         to handle nonimmediate operands.
6896         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6897         insn pattern.
6898         (mmx_smulv4hi3_highpart): New expander.  Use
6899         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6900         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6901         insn pattern.
6902         (mmx_umulv4hi3_highpart): New expander.  Use
6903         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6904         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
6905         (mmx_<code>v4hi3): New expander.  Use
6906         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6907         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
6908         (mmx_<code>v8qi3): New expander.  Use
6909         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6910         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
6911         (mmx_<code><mode>3): New expander.  Use
6912         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6913
6914 2008-05-05  Jan Hubicka  <jh@suse.cz>
6915
6916         PR tree-optimization/36118
6917         * passes.c (pass_init_dump_file): Fix dump header.
6918
6919 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6920
6921         PR middle-end/36141
6922         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
6923         VCE for function decls.
6924
6925 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6926
6927         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
6928
6929 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6930
6931         * config/i386/i386.md (sat_plusminus): New.
6932         (plusminus_insn): Likewise.
6933         (plusminus_mnemonic): Likewise.
6934         (addsub): Removed.
6935         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
6936         (*<addsub><mode>3_cc_overflow): Renamed to ...
6937         (*<plusminus_insn><mode>3_cc_overflow): This.
6938         (*<addsub>si3_zext_cc_overflow): Renamed to ...
6939         (*<plusminus_insn>si3_zext_cc_overflow): This.
6940
6941         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6942         (<plusminus_insn><mode>3): This.
6943         (*<addsub><mode>3): Renamed to ...
6944         (*<plusminus_insn><mode>3): This.
6945         (<sse>_vm<addsub><mode>3): Renamed to ...
6946         (<sse>_vm<plusminus_insn><mode>3): This.
6947         (sse3_h<addsub>v4sf3): Renamed to ...
6948         (sse3_h<plusminus_insn>v4sf3): This.
6949         (sse3_h<addsub>v2df3): Renamed to ...
6950         (sse3_h<plusminus_insn>v2df3): This.
6951         (<plusminus_insn><mode>3): New.
6952         (*<plusminus_insn><mode>3): Likewise.
6953         (sse2_<plusminus_insn><mode>3): Likewise.
6954         (add<mode>): Removed.
6955         (*add<mode>3): Likewise.
6956         (sse2_ssadd<mode>3): Likewise.
6957         (sse2_usadd<mode>3): Likewise.
6958         (sub<mode>3): Likewise.
6959         (*sub<mode>3): Likewise.
6960         (sse2_sssub<mode>3): Likewise.
6961         (sse2_ussub<mode>3): Likewise.
6962
6963 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
6964
6965         * gthr-single.h: Add in required interface elements as per gthr.h.
6966         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
6967         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
6968         Generalize UNUSED macro. 
6969         (__gthread_once): Add.
6970         (__gthread_key_create): Add.
6971         (__gthread_key_delete): Add.
6972         (__gthread_getspecific): Add.
6973         (__gthread_setspecific): Add.
6974         
6975 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
6976
6977         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
6978         the same size types for the indirect reference on the rhs, then
6979         create a VCE.
6980
6981 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
6982
6983         * config/i386/i386.md
6984         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
6985         one insn template instead of template series.
6986         (*xordi_1_rex64): Ditto.
6987         (*xordi_2_rex64): Ditto.
6988
6989 2008-05-05  Ira Rosen  <irar@il.ibm.com>
6990
6991         PR tree-optimization/36119
6992         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
6993         in case of SLP.
6994
6995 2008-06-04  Jan Hubicka  <jh@suse.cz>
6996
6997         tree-optimization/36100
6998         * tree-pass.h (pass_O0_always_inline): Declare.
6999         * ipa-inline.c (inline_transform): Remove dead code.
7000         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7001         pass_O0_always_inline): New.
7002         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
7003
7004 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
7005
7006         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
7007         mnemonic in this_param move for TARGET_64BIT.
7008
7009 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
7010
7011         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
7012         (*strmovsi_rex_1): Ditto.
7013         (*strsetsi_1): Ditto.
7014         (*strsetsi_rex_1): Ditto.
7015
7016         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
7017         adddicc expanders using SWI mode iterator.
7018
7019 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7020
7021         PR target/36121
7022         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
7023         argument handling.
7024
7025 2008-05-04  David S. Miller  <davem@davemloft.net>
7026
7027         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
7028         (sparc*-*-linux*): Use linux.h in tm_file.
7029         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
7030         compiler defaulting to 32-bit.
7031         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
7032         no longer needed.
7033         * config/sparc/linux.h: Remove definitions now obtained
7034         properly from linux.h
7035         * config/sparc/linux64.h: Likewise.
7036         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
7037         don't want this setting for 32-bit builds in a biarch compiler.
7038         * doc/install.texi: Add sparc-linux to list of targets
7039         supporting --enable-targets=all.
7040
7041 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
7042
7043         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
7044
7045 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
7046
7047         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
7048         after V4SI_FTYPE_V8HI.
7049         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
7050         case V4SI_FTYPE_V2DF.
7051
7052 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
7053
7054         * doc/invoke.texi (max-flow-memory-locations): Removed.
7055         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
7056         
7057 2008-05-03  Richard Guenther  <rguenther@suse.de>
7058
7059         PR middle-end/34973
7060         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
7061
7062 2008-05-02  David S. Miller  <davem@davemloft.net>
7063
7064         * config.gcc (need_64bit_hwint): Document libcpp dependency.
7065
7066 2008-05-02  Simon Baldwin <simonb@google.com>
7067
7068         PR bootstrap/36108
7069         * c-common.h (warn_array_subscript_range): Removed.
7070         * c-common.c (warn_array_subscript_range): Ditto.
7071         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
7072         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
7073
7074 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7075
7076         * config/i386/i386.c (ix86_special_builtin_type): New.
7077         (bdesc_special_args): Likewise.
7078         (ix86_expand_special_args_builtin): Likewise.
7079         (ix86_init_mmx_sse_builtins): Updated.
7080         (ix86_expand_builtin): Updated.
7081         (ix86_expand_store_builtin): Removed.
7082         (ix86_expand_unop_builtin): Likewise.
7083
7084         * config/i386/mm3dnow.h (__v2sf): Moved to ...
7085         * config/i386/mmintrin.h (__v2sf): Here.
7086
7087         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
7088         const __v2sf.
7089         (_mm_loadl_pi): Likewise.
7090         (_mm_storeh_pi): Replace __v2si with __v2sf.
7091         (_mm_storel_pi): Likewise.
7092
7093         * doc/extend.texi: Correct __builtin_ia32_loadhps,
7094         __builtin_ia32_loadlps, __builtin_ia32_storehps,
7095         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
7096         __builtin_ia32_loadlpd.
7097
7098 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
7099
7100         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
7101         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
7102         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
7103         (ix86_init_mmx_sse_builtins): Updated.
7104         (ix86_expand_args_builtin): Likewise.
7105         (ix86_expand_builtin): Likewise.
7106         (ix86_expand_unop1_builtin): Renamed to ...
7107         (ix86_expand_unop_vec_merge_builtin): This.
7108
7109 2008-05-01  Jan Hubicka  <jh@suse.cz>
7110
7111         PR bootstrap/36100
7112         * ipa-inline.c (inline_generate_summary): Make static.
7113         (inline_transform): Do not call inlining at -O0; make static.
7114         * passes.c (execute_todo): Add sanity check.
7115         (execute_one_ipa_transform_pass): Execute proper flags.
7116
7117 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
7118
7119         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
7120         (DECL_NONADDRESSABLE_P): Likewise.
7121         * alias.c (record_component_aliases): Fix comment.
7122
7123 2008-05-01  Simon Baldwin <simonb@google.com>
7124
7125         * c-common.h (warn_array_subscript_range): New function.
7126         * c-common.c (warn_array_subscript_range): Ditto.
7127         * tree-vrp.c (check_array_ref): Corrected code to agree with
7128         comment, ignoring only arrays of size 0 or size 1.
7129         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
7130
7131 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7132
7133         * config/i386/i386.c (ix86_builtin_type): Replace
7134         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
7135         (bdesc_args): Updated.
7136         (ix86_init_mmx_sse_builtins): Likewise.
7137         (ix86_expand_args_builtin): Likewise.
7138
7139         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
7140         with __v1di.
7141
7142         * doc/extend.texi: Correct __builtin_ia32_palignr.
7143
7144 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7145
7146         PR target/36095
7147         * config/i386/i386.c (bdesc_crc32): Removed.
7148         (ix86_expand_crc32): Likewise.
7149         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
7150         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
7151         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
7152         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
7153         UINT_FTYPE_UINT_UCHAR.
7154         (bdesc_args): Updated. Add crc32 builtins.
7155         (ix86_init_mmx_sse_builtins): Updated.
7156         (ix86_expand_args_builtin): Updated to support subreg.
7157
7158         * doc/extend.texi: Correct __builtin_ia32_crc32di.
7159
7160 2008-05-01  Jan Hubicka  <jh@suse.cz>
7161
7162         * tree-pass.h (opt_pass): Add IPA_PASS.
7163         (varpool_node, cgraph_node): Forward declare.
7164         (ipa_opt_pass): Define.
7165         (pass_ipa_inline): Turn into ipa_opt_pass.
7166         (pass_apply_inline): Remove.
7167         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
7168         (apply_inline): Turn into ....
7169         (inline_transform): ... this one.
7170         (inline_generate_summary): New function.
7171         (pass_apply_inline): Remove.
7172         * function.h (ipa_opt_pass): Forward declare structure; typedef;
7173         vector.
7174         (struct function): Add ipa_transforms_to_apply.
7175         * passes.c (register_one_dump_file): Work on IPA_PASS.
7176         (init_optimization_passes): Remove pass_inline_parameters and
7177         pass_apply_inline.
7178         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
7179         (execute_one_pass) ... here; apply transforms when possible.
7180         (add_ipa_transform_pass, execute_ipa_summary_asses,
7181         execute_one_ipa_transform_pass): New.
7182         (execute_ipa_pass_list): Update for IPA_PASS type.
7183
7184 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7185
7186         * config/i386/i386.c (ix86_builtin_type): Add
7187         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
7188         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
7189         (bdesc_args): Add SSE4a builtins.
7190         (ix86_init_mmx_sse_builtins): Updated.
7191         (ix86_expand_args_builtin): Likewise.
7192         (ix86_expand_builtin): Likewise.
7193
7194 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
7195
7196         * config/i386/i386.c (ix86_builtin_type): Add
7197         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
7198         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
7199         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
7200         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
7201         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
7202         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
7203         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
7204         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
7205         and DI_FTYPE_DI_DI_INT.
7206         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
7207         (ix86_init_mmx_sse_builtins): Updated.
7208         (ix86_expand_args_builtin): Likewise.
7209         (ix86_expand_builtin): Likewise.
7210         (ix86_expand_binop_imm_builtin): Removed.
7211
7212         * doc/extend.texi: Correct __builtin_ia32_palignr128.
7213
7214 2008-04-30  Richard Guenther  <rguenther@suse.de>
7215
7216         PR tree-optimization/32921
7217         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
7218
7219 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
7220
7221         * config/arm/arm.c (arm_unwind_emit): Use
7222         crtl->all_throwers_are_sibcalls instead of
7223         cfun->all_throwers_are_sibcalls.
7224         (arm_output_fn_unwind): Likewise.
7225         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
7226         instead of cfun->uses_pic_offset_table.
7227         (frv_expand_prologue): Likewise.
7228         (frv_frame_pointer_required): Likewise.
7229         (frv_expand_fdpic_call): Likewise.
7230         (frv_emit_movsi): Likewise.
7231         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
7232         cfun->returns_pcc_struct instead of
7233         current_function_returns_pcc_struct.
7234         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
7235         instead of cfun->calls_eh_return.
7236         (m32c_pushm_popm): Likewise.
7237         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
7238         "extern" declaration.
7239
7240 2008-04-30  Richard Guenther  <rguenther@suse.de>
7241
7242         PR tree-optimization/21636
7243         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
7244         constant address.
7245         (evaluate_stmt): Print the likely value.
7246         (ccp_visit_stmt): Avoid excessive vertical spacing.
7247
7248 2008-04-30  Rafael Espindola  <espindola@google.com>
7249
7250         * builtins.c (fold_call_expr): Return realret.
7251         * tree-ssa-threadedge.c
7252         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7253         __builtin_object_size.
7254
7255 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
7256
7257         * gcc.c (wrapper_string): New variable.
7258         (insert_wrapper): New function.
7259         (execute): New option -wrapper.
7260         * doc/invoke.texi (Overall Options): New driver option -wrapper.
7261
7262 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
7263
7264         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
7265         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
7266         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
7267         from...
7268         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
7269         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
7270         config/rs6000/e500crtres64gprctr.asm,
7271         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
7272         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
7273         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
7274         config/rs6000/e500crtsav64gprctr.asm,
7275         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
7276         config/rs6000/e500crtsavg64gprctr.asm: New files.
7277         * config/rs6000/t-ppccomm: Add build rules for new files.
7278         (LIB2FUNCS_STATIC_EXTRA): Add new files.
7279         * config/rs6000/t-netbsd: Add build rules for new files.
7280         (LIB2FUNCS_STATIC_EXTRA): New variable.
7281         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
7282         (CRTSAVRES_DEFAULT_SPEC): Likewise.
7283         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
7284
7285 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
7286
7287         * config/i386/i386.c (ix86_builtin_type): Add
7288         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
7289         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
7290         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
7291         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
7292         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
7293         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
7294         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
7295         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
7296         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
7297         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
7298         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
7299         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
7300         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
7301         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
7302         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
7303         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
7304         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
7305         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
7306         V1DI_FTYPE_V2SI_V2SI.
7307         (bdesc_2arg): Moved to ...
7308         (bdesc_args): Here.
7309         (ix86_init_mmx_sse_builtins): Updated.
7310         (ix86_expand_args_builtin): Updated.  Take a pointer
7311         to const struct builtin_description.  Handle comparison
7312         builtin functions.
7313         (ix86_expand_sse_compare): Take a new argument for swapping operands.
7314         (ix86_expand_builtin): Updated.
7315
7316         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
7317         (ssse3_pmaddubsw128): This.
7318         (ssse3_pmaddubswv4hi3): Renamed to ...
7319         (ssse3_pmaddubsw): This.
7320
7321         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
7322         (__builtin_ia32_packssdw128): Likewise.
7323         (__builtin_ia32_packuswb128): Likewise.
7324         (__builtin_ia32_pmaddubsw): Likewise.
7325         (__builtin_ia32_pmaddubsw128): Likewise.
7326
7327 2008-04-30  Richard Guenther  <rguenther@suse.de>
7328
7329         PR tree-optimization/14847
7330         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
7331         (recognize_bits_test): Use it.
7332         (recognize_single_bit_test): Likewise.
7333
7334 2008-04-30  Martin Jambor  <mjambor@suse.cz>
7335
7336         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
7337         instead of setting number of formal parameters to zero.
7338         (ipcp_init_stage): Do not set the number of actual parameters to zero 
7339         either.
7340         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
7341         which are called with variable number of arguments.
7342         (ipcp_insert_stage): Explicitely skipping all nodes which are
7343         called with variable number of arguments.
7344         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
7345         number of parameters.
7346
7347         * ipa-prop.h (struct ipa_node_params): Added flag
7348         called_with_var_arguments
7349         (ipa_set_param_count): Added.  Changed sole setter to use it.
7350         (ipa_get_param_count): Added.  All readers of param_count
7351         converted to use it instead.
7352         (ipa_set_called_with_variable_arg): Added.
7353         (ipa_is_called_with_var_arguments): Added.
7354         (ipa_get_ith_param): Added.  All readers of param_decls converted
7355         to use it instead.
7356         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
7357         changed to use it. 
7358         (ipa_get_cs_argument_count): Added, all readers of argument_count
7359         changed to cal it.
7360         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
7361         to use it.
7362         
7363         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
7364         (struct ipcp_lattice): Renamed cval_type to type
7365         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
7366
7367         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
7368         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
7369         (ipcp_insert_stage): Changed the type of variable cvalue to tree
7370         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
7371         (build_const_val): Changed the type of parameter cvalue to tree
7372         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
7373         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
7374         
7375         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
7376         constant 
7377
7378         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
7379         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
7380         (ipa_add_method): Renamed to ipa_push_func_to_list
7381         (ipa_remove_method): Renamed to ipa_pop_func_from_list
7382         (ipa_callsite_param_count): Removed.
7383         (ipa_callsite_param_count_set): Removed.
7384         (ipa_callsite_param): Removed.
7385         (ipa_callsite_callee): Removed.
7386         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
7387         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
7388         (ipa_method_formal_count): Removed.
7389         (ipa_method_formal_count_set): Removed.
7390         (ipa_method_get_tree): Removed.
7391         (ipa_method_tree_map_create): Removed.
7392         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
7393         (ipa_create_param_decls_array): Creates the array itself
7394         (ipa_create_param_decls_array): Temporary variable info instead of 
7395         a few dereferences.
7396         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
7397         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
7398         (get_type): Removed.
7399         (ipa_jf_get_info_type): Removed.
7400         (ipa_node_create): Renamed to ipa_create_node_params
7401         (ipa_free): Renamed to ipa_free_all_node_params
7402         (ipa_nodes_create): Renamed to ipa_create_all_node_params
7403         (ipa_edges_create): Renamed to ipa_create_all_edge_args
7404         (ipa_edges_free): Renamed to ipa_free_all_edge_args
7405         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
7406         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
7407         ipa_free_all_edge_args
7408         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
7409         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
7410         (ipa_create_methodlist_node): Removed.
7411         (ipa_methodlist_method): Removed.
7412         (ipa_methodlist_method_set): Removed.
7413         (ipa_methodlist_next_method): Removed.
7414         (ipa_methodlist_next_method_set): Removed.
7415         (ipa_method_is_modified): Removed.
7416         (ipa_method_modify_create): Removed.
7417         (ipa_method_modify_init): Temporary variable info instead of a few 
7418         dereferences.
7419         (ipa_detect_param_modifications): Temporary variable info instead of 
7420         a few dereferences.
7421         (ipa_compute_jump_functions): Temporary variable info instead of 
7422         a few dereferences.
7423         (ipa_method_modify_set): Removed.
7424         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
7425         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
7426         than craph_node as the first parameter.
7427         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
7428         (ipa_method_modify_init): Removed.
7429         (ipa_compute_jump_functions): Added a temp variable instead of 
7430         repeatadly dereferencing the cgraph_edge.aux pointer
7431         (ipa_callsite_param_set_type): Removed.
7432         (ipa_compute_jump_functions): i renamed to index and moved to 
7433         an inner block
7434         (ipa_callsite_param_set_info_type_formal): Removed.
7435         (ipa_callsite_param_set_info_type): Removed.
7436         (ipa_callsite_param_map_create): Removed.
7437         (ipa_callsite_tree): Removed.
7438         (ipa_callsite_caller): Removed.
7439         (ipa_pop_func_from_list): return_method removed to return_func
7440
7441         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
7442         prefixed all values with IPA_. Changed all users.
7443         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
7444         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
7445         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
7446         (union parameter_info): Renamed to jump_func_value.
7447         (union jump_func_value): Renamed value to constant
7448         (struct ipa_jump_func): Renamed info_type to value
7449         (struct ipa_node): Renamed to ipa_node_params
7450         (struct ipa_node_params): Renamed ipa_arg_num to param_count
7451         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
7452         (struct ipa_node_params): Renamed ipa_mod to modified_flags
7453         (struct ipa_edge): Renamed to ipa_edge_args
7454         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
7455         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
7456         (struct ipa_methodlist): Renamed to ipa_func_list
7457         (struct ipa_func_list): method_p renamed to node, next_method
7458         renamed to next
7459         (ipa_methodlist_p): Removed, switched all users to struct pointer
7460         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
7461
7462 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
7463
7464         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
7465         (rs6000_emit_epilogue): Use backchain to restore only when we
7466         have a large frame.  Make use of frame pointer to restore if we
7467         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
7468
7469 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
7470
7471         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
7472         Add mode to zero_extract.
7473         (sign bit tests peepholes): (Ditto.).
7474
7475 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
7476
7477         * config/i386/i386.c (ix86_builtins): Replace Prescott New
7478         Instructions in comments with SSE3.
7479         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
7480         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
7481         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
7482         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
7483         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
7484         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
7485         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
7486         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
7487         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
7488         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
7489         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
7490         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
7491         (bdesc_sse_args): Renamed to ...
7492         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
7493         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
7494         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
7495         IX86_BUILTIN_FABSQ.
7496         (bdesc_1arg): Moved to ...
7497         (bdesc_args): Here.
7498         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
7499         Instructions in comments with SSE3.
7500         (ix86_expand_sse_operands_builtin): Renamed to ...
7501         (ix86_expand_args_builtin): This.  Updated.
7502         (ix86_expand_unop1_builtin): Update comments.
7503         (ix86_expand_builtin): Updated.
7504
7505 2008-04-29  Richard Guenther  <rguenther@suse.de>
7506
7507         PR tree-optimization/36078
7508         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7509         Update virtual SSA form after cleaning up the CFG.
7510
7511 2008-04-29  Richard Guenther  <rguenther@suse.de>
7512
7513         PR middle-end/15255
7514         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
7515
7516 2008-04-29  Richard Guenther  <rguenther@suse.de>
7517
7518         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
7519         (compute_may_aliases): Do not call finalize_ref_all_pointers.
7520         (compute_flow_insensitive_aliasing): Do not treat
7521         PTR_IS_REF_ALL pointers special.
7522         (get_smt_for): Likewise.
7523         (may_alias_p): Re-structure.
7524         (is_escape_site): A ref-all pointer conversion is not an escape site.
7525         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
7526         PTR_IS_REF_ALL pointers special.
7527         * tree-ssa-structalias.h (struct alias_info): Remove
7528         ref_all_symbol_mem_tag field.
7529         (PTR_IS_REF_ALL): Remove.
7530
7531 2008-04-29  Richard Guenther  <rguenther@suse.de>
7532
7533         PR middle-end/36077
7534         * fold-const.c (extract_muldiv_1): In combining division constants
7535         make sure to never overflow.
7536
7537 2008-04-29  Nick Clifton  <nickc@redhat.com>
7538
7539         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
7540
7541 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7542
7543         PR bootstrap/35169
7544         * optc-gen.awk: Work around HP-UX/IA awk bug.
7545
7546 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
7547
7548         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
7549         2008-04-25 commit.
7550
7551 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7552
7553         PR target/36073
7554         * config/i386/i386.md
7555         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
7556         Change operand 1 predicate to nonimmediate_operand.
7557
7558 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
7559
7560         PR debug/36060
7561         * dwarf2out.c (struct die_struct): Mark as chain_circular through
7562         die_sub field.
7563         * gengtype.c (walk_type, write_func_for_structure): Handle
7564         chain_circular.
7565         * doc/gty.texi: Document chain_circular.
7566
7567 2008-04-28  Richard Guenther  <rguenther@suse.de>
7568
7569         PR tree-optimization/36066
7570         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
7571         SCEV and loop.
7572
7573 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
7574
7575         PR target/36064
7576         * config/i386/i386.md
7577         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
7578         Use match_scratch instead of match_operand for operands 3 and 4.
7579
7580 2008-04-27  Richard Guenther  <rguenther@suse.de>
7581
7582         PR tree-optimization/18754
7583         PR tree-optimization/34223
7584         * tree-pass.h (pass_complete_unrolli): Declare.
7585         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
7586         loop size before and after unconditionally of UL_NO_GROWTH in effect.
7587         Rewrite loop into loop closed SSA form if it is not already.
7588         (tree_unroll_loops_completely): Re-structure to iterate over
7589         innermost loops with intermediate CFG cleanups.
7590         Unroll outermost loops only if requested or the code does not grow
7591         doing so.
7592         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
7593         loops are available.
7594         (tree_vectorize): Instead do so here.
7595         (tree_complete_unroll): Also unroll outermost loops.
7596         (tree_complete_unroll_inner): New function.
7597         (gate_tree_complete_unroll_inner): Likewise.
7598         (pass_complete_unrolli): New pass.
7599         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
7600         uses outside of the loop.
7601         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
7602         form if it is available.  
7603         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
7604         * passes.c (init_optimization_passes): Schedule complete inner
7605         loop unrolling pass before the first CCP pass after final inlining.
7606
7607 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
7608
7609         * targhooks.h (default_emutls_var_fields,
7610         default_emutls_var_init): Declare.
7611         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
7612         * target.h (struct gcc_target): Add struct emutls member.
7613         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
7614         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
7615         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
7616         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
7617         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
7618         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
7619         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
7620         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
7621         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
7622         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
7623         emit debug information.
7624         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
7625         * varasm.c: Include targhooks.h.
7626         (emutls_object_section, emutls_tmpl_section): New.
7627         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
7628         (EMUTLS_SEPARATOR): New.
7629         (prefix_name): New.
7630         (get_emutls_object_name): New.
7631         (default_emutls_var_fields): New, broken out of ...
7632         (get_emutls_object_type): ... here.  Adjust to use target hooks.
7633         (get_emutls_init_templ_addr): Adjust to use target hooks.
7634         (emutls_decl): Adjust to use target hooks.
7635         (emutls_finish): Likewise.
7636         (default_emutls_var_init): New, broken out of ...
7637         (assemble_variable): ... here.  Adjust to use target hooks.
7638         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
7639         SECCAT_EMUTLS_TMPL.
7640         * c-common.c (handle_section_attribute): Prevent overriding
7641         sections for emulated tls with special sections.
7642         * config/i386/i386.c (x86_64_elf_select_section): Add
7643         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
7644         (x86_64_elf_unique_section): Likewise.
7645         * config/vxworks.c: Include tree.h.
7646         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
7647         (vxworks_override_options): Set TLS scheme.
7648         * doc/tm.texi (Emulated TLS): New node.
7649
7650 2008-04-26  Simon Baldwin <simonb@google.com>
7651
7652         PR c/35652
7653         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
7654         with propagated string constants.
7655
7656 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
7657
7658         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
7659         constraint for operand 2 when operand 0 is memory operand.
7660         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
7661         operand 0 is memory operand.
7662         (fix_trunc<mode>_i387_with_temp): Ditto.
7663         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
7664         operand 2 when operand 1 is memory operand.
7665         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
7666         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
7667         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
7668         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7669         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
7670         operands 2,3 and 4 when operand 1 is memory operand.
7671         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
7672         is memory operand.
7673         (fistdi2_floor_with_temp): Ditto.
7674         (fist<mode>2_floor_with_temp): Ditto.
7675         (fistdi2_ceil_with_temp): Ditto.
7676         (fist<mode>2_ceil_with_temp): Ditto.
7677         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
7678
7679 2008-04-26  David Daney  <ddaney@avtrex.com>
7680
7681         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
7682         unspec_volitile.
7683         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
7684         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7685         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7686         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
7687         (compare_and_swap_12): New insn.
7688         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
7689         * config/mips/mips.c (mips_force_binary): New function.
7690         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
7691         (mips_expand_compare_and_swap_12): New function.
7692         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
7693
7694 2008-04-25  Jan Hubicka  <jh@suse.cz>
7695
7696         PR testsuite/35843
7697         * cfgexpand.c (pass_expand): Turn into RTL pass.
7698         * passes.c (execute_one_pass): Do pass typechecking after execution.
7699         * tree-pass.h (pass_expand): Turn into RTL pass.
7700
7701         * function.h (struct rtl_data): Move here fields
7702         accesses_prior_frames, calls_eh_return, saves_all_registers,
7703         has_nonlocal_goto, has_asm_statement, is_thunk,
7704         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
7705         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
7706         arg_pointer_save_area_init from struct function; turn into bool.
7707         (struct function): Move
7708         calls_eh_return, saves_all_registers, has_nonlocal_goto,
7709         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
7710         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
7711         tail_call_emit, arg_pointer_save_area_init
7712         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
7713         (current_function_returns_struct, current_function_returns_pcc_struct,
7714         current_function_calls_setjmp, current_function_calls_alloca,
7715         current_function_accesses_prior_frames,
7716         current_function_calls_eh_return, current_function_is_thunk,
7717         current_function_stdarg, current_function_profile,
7718         current_function_limit_stack, current_function_uses_pic_offset_table,
7719         current_function_uses_const_pool, current_function_has_nonlocal_label,
7720         current_function_saves_all_registers,
7721         current_function_has_nonlocal_goto,
7722         current_function_has_asm_statement): Remove accesor macros.
7723         * ra-conflict.c (global_conflicts): Update.
7724         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
7725         (suitable_for_tail_call_opt_p): Update.
7726         * builtins.c (expand_builtin_return_addr): Update.
7727         (expand_builtin_setjmp_setup): Update.
7728         (expand_builtin_nonlocal_goto): Update.
7729         * final.c (final_start_function): Update.
7730         (profile_function): Update.
7731         (leaf_function_p): Update.
7732         (only_leaf_regs_used): Update.
7733         * df-scan.c (df_get_exit_block_use_set): Update.
7734         * dojump.c (clear_pending_stack_adjust): Update.
7735         * tree-stdarg.c (gate_optimize_stdarg): Update.
7736         * gimple-low.c (lower_function_body): Update.
7737         * global.c (compute_regsets): Update.
7738         (global_alloc): Update.
7739         * dwarf2out.c (dwarf2out_begin_prologue): Update.
7740         * expr.c (expand_assignment): Update.
7741         * dse.c (dse_step0): Update.
7742         (dse_step1): Update.
7743         * c-decl.c (store_parm_decls): Update.
7744         * local-alloc.c (combine_regs): Update.
7745         (find_free_reg): Update.
7746         * function.c (assign_parms_augmented_arg_list): Update.
7747         (assign_parm_find_data_types): Update.
7748         (assign_parms): Update.
7749         (allocate_struct_function): Update.
7750         (expand_function_start): Update.
7751         (expand_function_end): Update.
7752         (get_arg_pointer_save_area): Update.
7753         (thread_prologue_and_epilogue_insns): Update.
7754         (rest_of_match_asm_constraints): Update.
7755         * stor-layout.c (variable_size): Update.
7756         * gcse.c (gcse_main): Update.
7757         (bypass_jumps): Update.
7758         * gimplify.c (gimplify_function_tree): Update.
7759         * calls.c (emit_call_1): Update.
7760         (expand_call): Update.
7761         * bt-load.c (compute_defs_uses_and_gen): Update.
7762         * except.c (sjlj_assign_call_site_values): Update.
7763         (sjlj_emit_function_enter): Update.
7764         (can_throw_external): Update.
7765         (set_nothrow_function_flags): Update.
7766         (expand_builtin_unwind_init): Update.
7767         (expand_eh_return): Update.
7768         (convert_to_eh_region_ranges): Update.
7769         (output_function_exception_table): Update.
7770         * emit-rtl.c (gen_tmp_stack_mem): Update.
7771         * cfgexpand.c (expand_used_vars): Update.
7772         (tree_expand_cfg): Update.
7773         * cfgcleanup.c (rest_of_handle_jump): Update.
7774         * explow.c (allocate_dynamic_stack_space): Update.
7775         * varasm.c (assemble_start_function): Update.
7776         (force_const_mem): Update.
7777         (mark_constant_pool): Update.
7778         * tree-optimize.c (tree_rest_of_compilation): Update.
7779         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
7780         * tree-cfg.c (notice_special_calls): Update.
7781         (is_ctrl_altering_stmt): Update.
7782         (tree_can_make_abnormal_goto): Update.
7783         (tree_purge_dead_abnormal_call_edges): Update.
7784         * config/alpha/predicates.md: Update.
7785         * config/alpha/alpha.c (alpha_sa_mask): Update.
7786         (alpha_sa_size): Update.
7787         (alpha_does_function_need_gp): Update.
7788         (alpha_expand_prologue): Update.
7789         (alpha_start_function): Update.
7790         (alpha_output_function_end_prologue): Update.
7791         (alpha_expand_epilogue): Update.
7792         * config/frv/frv.c (frv_stack_info): Update.
7793         (frv_expand_epilogue): Update.
7794         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
7795         (s390_register_info): Update.
7796         (s390_frame_info): Update.
7797         (s390_init_frame_layout): Update.
7798         (s390_can_eliminate): Update.
7799         (save_gprs): Update.
7800         * config/spu/spu.c (spu_split_immediate): Update.
7801         (need_to_save_reg): Update.
7802         (spu_expand_prologue): Update.
7803         (spu_expand_epilogue): Update.
7804         * config/sparc/sparc.md: Update.
7805         * config/sparc/sparc.c (eligible_for_return_delay): Update.
7806         (sparc_tls_got): Update.
7807         (legitimize_pic_address): Update.
7808         (sparc_emit_call_insn): Update.
7809         (sparc_expand_prologue): Update.
7810         (output_return): Update.
7811         (print_operand): Update.
7812         (sparc_function_ok_for_sibcall): Update.
7813         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
7814         * config/m32r/m32r.md: Update.
7815         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
7816         (m32r_compute_frame_size): Update.
7817         (m32r_expand_prologue): Update.
7818         (m32r_expand_epilogue): Update.
7819         (m32r_legitimize_pic_address): Update.
7820         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
7821         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7822         * config/i386/i386.c (ix86_frame_pointer_required): Update.
7823         (gen_push): Update.
7824         (ix86_save_reg): Update.
7825         (ix86_compute_frame_layout): Update.
7826         (ix86_expand_prologue): Update.
7827         (ix86_expand_epilogue): Update.
7828         * config/sh/sh.c (output_stack_adjust): Update.
7829         (calc_live_regs): Update.
7830         (sh5_schedule_saves): Update.
7831         (sh_expand_prologue): Update.
7832         (sh_expand_epilogue): Update.
7833         (sh_setup_incoming_varargs): Update.
7834         (sh_allocate_initial_value): Update.
7835         (sh_get_pr_initial_val): Update.
7836         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
7837         * config/sh/sh.md (label:): Update.
7838         * config/avr/avr.c (out_movhi_mr_r): Update.
7839         * config/crx/crx.h (enum): Update.
7840         * config/xtensa/xtensa.h (along): Update.
7841         * config/stormy16/stormy16.c Update.
7842         (xstormy16_compute_stack_layout): Update.
7843         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
7844         (fr30_expand_prologue): Update.
7845         * config/cris/cris.c (cris_conditional_register_usage): Update.
7846         (cris_reg_saved_in_regsave_area): Update.
7847         (cris_initial_frame_pointer_offset): Update.
7848         (cris_simple_epilogue): Update.
7849         (cris_expand_prologue): Update.
7850         (cris_expand_epilogue): Update.
7851         (cris_expand_pic_call_address): Update.
7852         (cris_asm_output_symbol_ref): Update.
7853         (cris_asm_output_label_ref): Update.
7854         * config/cris/cris.md Update.
7855         * config/iq2000/iq2000.c (compute_frame_size): Update.
7856         (iq2000_expand_epilogue): Update.
7857         * config/mt/mt.h (save_direction): Update.
7858         * config/mn10300/mn10300.c (mn10300_function_value): Update.
7859         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
7860         (ia64_secondary_reload_class): Update.
7861         * config/m68k/m68k.c (m68k_save_reg): Update.
7862         (m68k_expand_prologue): Update.
7863         (m68k_expand_epilogue): Update.
7864         (legitimize_pic_address): Update.
7865         * config/rs6000/rs6000.c (rs6000_got_register): Update.
7866         (first_reg_to_save): Update.
7867         (first_altivec_reg_to_save): Update.
7868         (compute_vrsave_mask): Update.
7869         (compute_save_world_info): Update.
7870         (rs6000_stack_info): Update.
7871         (spe_func_has_64bit_regs_p): Update.
7872         (rs6000_ra_ever_killed): Update.
7873         (rs6000_emit_eh_reg_restore): Update.
7874         (rs6000_emit_allocate_stack): Update.
7875         (rs6000_emit_prologue): Update.
7876         (rs6000_emit_epilogue): Update.
7877         (rs6000_output_function_epilogue): Update.
7878         (output_profile_hook): Update.
7879         (rs6000_elf_declare_function_name): Update.
7880         * config/rs6000/rs6000.h (rs6000_args): Update.
7881         * config/rs6000/rs6000.md: Update.
7882         * config/mcore/mcore.c (mcore_expand_prolog): Update.
7883         * config/arc/arc.c (arc_output_function_epilogue): Update.
7884         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
7885         * config/darwin.c (machopic_function_base_name): Update.
7886         * config/score/score3.c (score3_compute_frame_size): Update.
7887         (rpush): Update.
7888         (rpop): Update.
7889         (score3_epilogue): Update.
7890         * config/score/score7.c (score7_compute_frame_size): Update.
7891         (score7_prologue): Update.
7892         (score7_epilogue): Update.
7893         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7894         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7895         * config/arm/arm.c (use_return_insn): Update.
7896         (require_pic_register): Update.
7897         (arm_load_pic_register): Update.
7898         (arm_compute_save_reg0_reg12_mask): Update.
7899         (arm_compute_save_reg_mask): Update.
7900         (thumb1_compute_save_reg_mask): Update.
7901         (output_return_instruction): Update.
7902         (arm_output_function_prologue): Update.
7903         (arm_output_epilogue): Update.
7904         (arm_get_frame_offsets): Update.
7905         (arm_expand_prologue): Update.
7906         (thumb_pushpop): Update.
7907         (thumb_exit): Update.
7908         (thumb1_expand_prologue): Update.
7909         (thumb1_expand_epilogue): Update.
7910         (arm_unwind_emit): Update.
7911         (arm_output_fn_unwind): Update.
7912         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
7913         * config/arm/arm.md: Update.
7914         * config/pa/pa.md: Update.
7915         * config/pa/pa.c (legitimize_pic_address): Update.
7916         (compute_frame_size): Update.
7917         (hppa_expand_prologue): Update.
7918         (hppa_expand_epilogue): Update.
7919         (borx_reg_operand): Update.
7920         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
7921         (HARD_REGNO_RENAME_OK): Update.
7922         * config/mips/mips.c (mips_global_pointer): Update.
7923         (mips_save_reg_p): Update.
7924         (mips_compute_frame_info): Update.
7925         (mips_frame_pointer_required): Update.
7926         (mips_expand_prologue): Update.
7927         (mips_expand_epilogue): Update.
7928         (mips_can_use_return_insn): Update.
7929         (mips_reorg_process_insns): Update.
7930         * config/v850/v850.c (compute_register_save_size): Update.
7931         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
7932         * config/mmix/mmix.c (along): Update.
7933         (mmix_expand_epilogue): Update.
7934         * config/bfin/bfin.c (legitimize_pic_address): Update.
7935         (must_save_p): Update.
7936         (stack_frame_needed_p): Update.
7937         (add_to_reg): Update.
7938         (bfin_expand_prologue): Update.
7939         * stmt.c (expand_asm_operands): Update.
7940         * reload1.c (reload): Update.
7941         (init_elim_table): Update.
7942
7943 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
7944         
7945         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7946         
7947 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
7948
7949         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7950         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
7951         (mov<mode>): Removed.
7952         (*movv4sf_internal): Likewise.
7953         (*movv2df_internal): Likewise.
7954
7955 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7956
7957         * config.gcc (crx-*-elf): Remove deprecation.
7958
7959 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
7960
7961         * config/i386/cygming-crtend.c (register_frame_ctor): Register
7962         __gcc_deregister_frame with atexit.
7963         (deregister_frame_dtor): Remove.
7964
7965 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
7966             Nathan Sidwell  <nathan@codesourcery.com>
7967
7968         * config/rs6000/rs6000.opt (mspe): Remove Var property.
7969         (misel): Likewise.
7970         * config/rs6000/rs6000.h (rs6000_spe): Declare.
7971         (rs6000_isel): Likewise.
7972         * config/rs6000/rs6000.c (rs6000_spe): New variable.
7973         (rs6000_isel): New variable.
7974         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
7975
7976 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7977
7978         PR c++/35758
7979         * c-common.c (handle_vector_size_attribute): Call
7980         lang_hooks.types.reconstruct_complex_type instead of
7981         reconstruct_complex_type.
7982         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
7983         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
7984         * langhooks.h (struct lang_hooks_for_types): Add
7985         reconstruct_complex_type hook.
7986         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
7987         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7988
7989 2008-04-24  Richard Guenther  <rguenther@suse.de>
7990
7991         * c-common.h (check_builtin_function_arguments): Declare.
7992         * c-common.c (validate_nargs): New function.
7993         (check_builtin_function_arguments): Likewise.
7994         * c-typeck.c (build_function_call): Call
7995         check_builtin_function_arguments.
7996         * builtins.c (fold_builtin_classify): Remove error reporting code.
7997         (fold_builtin_unordered_cmp): Likewise.
7998         (fold_builtin_1): Likewise.
7999         (fold_builtin_n): Likewise.
8000
8001 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8002
8003         PR tree-optimization/36008
8004         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
8005         the original op1, rather than delta by step.
8006
8007 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
8008             Sebastian Pop  <sebastian.pop@amd.com>
8009
8010         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8011         eliminate_local_variables_stmt, eliminate_local_variables,
8012         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8013         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8014         of code delimited by two edges in the CFG.
8015         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8016         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8017         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
8018         the case of parallelisation of reductions.
8019         (expr_invariant_in_region_p): New.
8020
8021         * tree-flow.h (gather_blocks_in_sese_region): Declared.
8022         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8023
8024 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8025             Richard Guenther  <rguenther@suse.de>
8026
8027         PR tree-optimization/36034
8028         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
8029         incapable of dealing with loads with gaps.
8030
8031 2008-04-24  Rafael Espindola  <espindola@google.com>
8032
8033         * tree-flow.h (vrp_evaluate_conditional): Change signature.
8034         * tree-ssa-propagate.c (fold_predicate_in): Update call to
8035         vrp_evaluate_conditional.
8036         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
8037         (vrp_evaluate_conditional): Split the cond argument.
8038         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
8039         (simplify_stmt_for_jump_threading): Update call to
8040         vrp_evaluate_conditional.
8041
8042 2008-04-24  Ira Rosen  <irar@il.ibm.com>
8043
8044         PR tree-optimization/35982
8045         * tree-vect-analyze.c (vect_check_interleaving): Check that the
8046         interleaved data-refs are of the same type.
8047
8048 2008-04-24  Danny Smith  <dannysmith@users.net>
8049
8050         * c-format.c (check_format_info_main): Use strncmp rather than a
8051         magic prefix to handle multichar length specs.
8052         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
8053         Don't prefix "I64" and "I32" with '\0'.
8054
8055 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
8056
8057         PR target/36015
8058         * config/i386/i386.c (init_cumulative_args): Don't pass anything
8059         in registers for -m32 only if stdarg_p (fntype).
8060
8061 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
8062
8063         PR rtl-optimization/36006
8064         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
8065         temp to op0 in order to avoid invalid rtx sharing.
8066
8067 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
8068
8069         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
8070         check TREE_INVARIANT.
8071         * tree-gimple.c (is_gimple_address): New.
8072         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
8073         * tree-gimple.h (is_gimple_address): New.
8074         * tree.h (decl_address_invariant_p): New.
8075         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
8076         (build_string): Likewise.
8077         (decl_address_invariant_p): New, from is_gimple_invariant_address.
8078         (tree_invariant_p_1): Likewise.
8079         (save_expr): Use it.
8080         (tree_invariant_p): New.
8081         (skip_simple_arithmetic): Use it.
8082         (stabilize_reference_1): Use it.
8083         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
8084         simplify.
8085         (build1_stat): Drop code to compute TREE_INVARIANT.
8086         (build2_stat): Drop code to compute TREE_INVARIANT.
8087         (build3_stat): Drop code to compute TREE_INVARIANT.
8088         (build4_stat): Drop code to compute TREE_INVARIANT.
8089         (build5_stat): Drop code to compute TREE_INVARIANT.
8090         (build7_stat): Drop code to compute TREE_INVARIANT.
8091         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
8092         * tree.h (struct tree_base): Remove invariant_flag.
8093         (TREE_INVARIANT): Remove.
8094         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
8095         (fold_builtin_expect): Check TREE_CONSTANT.
8096         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
8097         * c-tree.h (c_expr_to_decl): Drop third parameter.
8098         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
8099         (build_c_cast): Don't set TREE_INVARIANT.
8100         (pop_init_level): Don't set TREE_INVARIANT.
8101         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
8102         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
8103         TREE_CONSTANT.
8104         (gimplify_init_constructor): Don't set TREE_INVARIANT.
8105         (gimplify_addr_expr): Adjust comment.
8106         * tree-mudflap.c (mf_build_string):
8107         * print-tree.c (print_node): Don't print TREE_INVARIANT.
8108         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
8109         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
8110         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
8111         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
8112         * langhooks.h (struct lang_hooks): Drop third parameter from
8113         expr_to_decl.
8114
8115 2008-04-23  Richard Guenther  <rguenther@suse.de>
8116
8117         PR tree-optimization/27799
8118         PR tree-optimization/32921
8119         PR tree-optimization/32624
8120         * tree-ssa-structalias.c (merge_smts_into): Only merge the
8121         SMTs aliases and the tag itself into the solution.
8122         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
8123         merge the points-to solution back into the SMT aliases.
8124         (may_alias_p): Use alias_set_subset_of instead of
8125         aliases_conflict_p.  A pointer which points to
8126         memory with alias set zero may access any variable.
8127
8128 2008-04-23  Richard Guenther  <rguenther@suse.de>
8129
8130         * alias.c (alias_set_subset_of): Correctly handle asking
8131         if zero is a subset of an alias set with zero child.
8132         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
8133         (compute_flow_insensitive_aliasing): Correctly walk all
8134         pointers.  Do not unnecessarily union sets.
8135
8136 2008-04-23  Richard Guenther  <rguenther@suse.de>
8137
8138         PR middle-end/36021
8139         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
8140
8141 2008-04-22  Tomas Bily  <tbily@suse.cz>
8142
8143         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
8144         unreachable case.
8145         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
8146         NON_LVALUE_EXPR.
8147         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8148         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8149         * tree-inline.c (estimate_num_insns_1): Likewise.
8150         * varasm.c (const_hash_1, compare_constant, copy_constant)
8151         (compute_reloc_for_constant, output_addressed_constants): Likewise.
8152         * emit-rtl.c (component_ref_for_mem_expr)
8153         (set_mem_attributes_minus_bitpos): Likewise.
8154         * expr.c (highest_pow2_factor, expand_expr_real_1, )
8155         (is_aligning_offset): Likewise.
8156         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
8157         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8158         * dojump.c (do_jump): Likewise.
8159         * builtins.c (get_pointer_alignment, get_memory_rtx)
8160         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
8161         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
8162
8163 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
8164
8165         PR rtl-optimization/36017
8166         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
8167         expanding the library call.
8168
8169 2008-04-22  Ian Lance Taylor  <iant@google.com>
8170
8171         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
8172         than size_in_bytes.
8173
8174 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
8175
8176         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
8177         of LR/CTR moves for Power6.
8178
8179 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8180
8181         PR middle-end/36003
8182         * passes.c (init_optimization_passes): Remove
8183         pass_fast_rtl_byte_dce.
8184         
8185 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
8186
8187         PR target/29096
8188         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
8189         builtin functions to generate faster code.
8190         (_mm_cvtpu16_ps): Ditto.
8191         (_mm_cvtpi32x2_ps): Ditto.
8192
8193 2008-04-22  Nick Clifton  <nickc@redhat.com>
8194
8195         * common.opt (ftree-loop-distribution): Add Optimization
8196         attribute.
8197
8198         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
8199         (frv_expand_builtin_va_start): Likewise.
8200
8201         * config/arm/arm.c (thumb_find_work_register): Fix location of
8202         argument register count.
8203
8204 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8205
8206         Support scheduling for ColdFire V1 and V3 microarchitecture.
8207         Improve scheduling of multiplication instructions.
8208
8209         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
8210         (mac): New instruction attribute.
8211         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
8212         (m68k_sched_mac): New variable.
8213         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
8214         Handle cfv1 and cfv3.
8215         (max_insn_size): New static variable.
8216         (struct _sched_ib): New type.
8217         (sched_ib): New static variable.
8218         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
8219         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
8220         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
8221         Update.
8222         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
8223         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
8224         new variables.  Update.
8225         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8226         Add modeling of cfv3 instruction buffer.  Update.
8227         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
8228         * config/m68k/m68k.h (TUNE_CFV3): New macro.
8229         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
8230         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
8231         a particular reservation applies to.
8232         (type2): Reorganize attribute values.  Rename alu to alu_reg,
8233         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
8234         to mul_l and mul_w.
8235         (cf_ib_*): Simplify description of instruction buffer.
8236         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
8237         (cf_mem): Split into cf_mem1 and cf_mem2.
8238         (cf_v2_move_??): Rename to cfv12_alu_??.
8239         (cf_v2_move_l_??): Rename to cfv12_omove_??.
8240         (cf_v2_mul_??): Remove reservations.
8241         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
8242         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
8243         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
8244         appropriate place.
8245         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
8246         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
8247         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
8248         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
8249         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
8250         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
8251         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
8252         expansions of the above reservations for instructions of sizes
8253         1, 2 and 3 words.
8254
8255 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
8256
8257         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
8258
8259 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
8260
8261         * coverage.c: Include tree-pass.h.
8262         (coverage_counter_alloc): Print da_file_name to the dump file.
8263
8264 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
8265
8266         * sbitmap.c (sbitmap_range_empty_p): New function.
8267         * sbitmap.h (sbitmap_range_empty_p): New function.
8268         * bitmap.h: Now includes obstack.h.
8269
8270 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
8271             Kenneth Zadeck  <zadeck@naturalbridge.com>
8272
8273         * dbgcnt.def (ra_byte_scan): Added.
8274         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
8275         when the last hit happens for a counter.  
8276         * timevar.def (TV_DF_BYTE_LR): New variable.
8277         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
8278         * passes.c (pass_fast_rtl_byte_dce): New pass.
8279         * fwprop.c (update_df): Added mode to call df_ref_create.
8280         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8281         DF_REF_EXTRACT_OFFSET.
8282         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
8283         DF_BYTE_LR_OUT, df_byte_lr): New macro.
8284         (df_mm): New enum.
8285         (df_ref_extract): Added mode field.
8286         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
8287         DF_REF_EXTRACT_OFFSET.
8288         (DF_REF_EXTRACT_MODE): New macro.
8289         (df_byte_lr_bb_info): New structure.
8290         (df_print_byte_regset, df_compute_accessed_bytes, 
8291         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
8292         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
8293         df_byte_lr_simulate_uses,
8294         df_byte_lr_simulate_artificial_refs_at_top,
8295         df_byte_lr_simulate_artificial_refs_at_end,
8296         df_compute_accessed_bytes): New function.
8297         (df_ref_create): Add parameter.
8298         (df_byte_lr_get_bb_info): New inline function.
8299         * df-scan.c (df_ref_record, df_uses_record,
8300         df_ref_create_structure): Added mode parameter.
8301         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
8302         df_defs_record, df_uses_record, df_get_conditional_uses,
8303         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
8304         df_entry_block_defs_collect, df_exit_block_uses_collect):
8305         Added mode parameter to calls to df_ref_record, df_uses_record,
8306         df_ref_create_structure.
8307         (df_ref_equal_p, df_ref_compare): Added test for modes.
8308         (df_ref_create_structure): Added code to set mode.  Renamed
8309         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
8310         DF_REF_EXTRACT_OFFSET.
8311         * df-core.c (df_print_byte_regset): New function.
8312         * df-byte-scan.c: New file.
8313         * df-problems.c (df_rd_transfer_function): Removed unnecessary
8314         calls to BITMAP_FREE.  
8315         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
8316         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
8317         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
8318         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
8319         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
8320         df_byte_lr_local_compute, df_byte_lr_init,
8321         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
8322         df_byte_lr_transfer_function, df_byte_lr_free, 
8323         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
8324         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
8325         df_byte_lr_simulate_uses,
8326         df_byte_lr_simulate_artificial_refs_at_top,
8327         df_byte_lr_simulate_artificial_refs_at_end): New function.
8328         * dce.c (byte_dce_process_block): New function.
8329         (dce_process_block): au is now passed in rather than computed
8330         locally.  Changed loops that look at artificial defs to not look
8331         for conditional or partial ones, because there never are any.  
8332         (fast_dce): Now is able to drive byte_dce_process_block or 
8333         dce_process_block depending on the kind of dce being done.
8334         (rest_of_handle_fast_dce): Add parameter to fast_dce.
8335         (rest_of_handle_fast_byte_dce): New function.
8336         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
8337         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
8338
8339 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
8340
8341         PR fortran/35019
8342         * gcc.h: Added fortran options that take arguments to
8343         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
8344         macros.
8345
8346 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
8347
8348         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
8349         scalarization if on the LHS and not a full access.
8350
8351 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8352
8353         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
8354
8355 2008-04-18  Rafael Espindola  <espindola@google.com>
8356
8357         * tree-vrp.c (find_case_label_index): Fix the binary search.
8358         (find_case_label_range): New.
8359         (vrp_visit_switch_stmt): Use find_case_label_range.
8360         (simplify_switch_using_ranges): Use find_case_label_range.
8361
8362 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
8363
8364         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
8365         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
8366
8367 2008-04-18  Tom Tromey  <tromey@redhat.com>
8368
8369         PR libcpp/15500:
8370         * doc/cpp.texi (Implementation-defined behavior): Mention
8371         -finput-charset.
8372
8373 2008-04-18  Ian Lance Taylor  <iant@google.com>
8374
8375         * fold-const.c (pointer_may_wrap_p): New static function.
8376         (fold_comparison): Add another test for pointer overflow.  Use
8377         pointer_may_wrap_p to disable some false positives.
8378
8379 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
8380           
8381         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
8382         (fname_as_string): Match updated cpp_interpret_string prototype.
8383         (fix_string_type): Support char16_t* and char32_t*.
8384         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
8385         derivative) nodes.  Register as builtin if C++0x.
8386         (c_parse_error): Support CPP_CHAR{16,32}.
8387         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
8388         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
8389         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
8390         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
8391         CTI_CHAR32_ARRAY_TYPE>: New elements.
8392         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
8393         char32_type_node, signed_char32_type_node, char16_array_type_node,
8394         char32_array_type_node): New defines.
8395         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
8396         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
8397         (lex_string): Support CPP_STRING{16,32}, match updated
8398         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
8399         (lex_charconst): Support CPP_CHAR{16,32}.
8400         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
8401         and CPP_STRING{16,32}.
8402
8403 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
8404
8405         PR bootstrap/35457
8406         * aclocal.m4: Regenerate.
8407         * configure: Regenerate.
8408
8409 2008-04-18  Jan Hubicka  <jh@suse.cz>
8410
8411         * except.c (dw2_size_of_call_site_table,
8412         sjlj_size_of_call_site_table): Use vector API for call_site_record.
8413
8414         * cgraphbuild.c (build_cgraph_edges): Update.
8415         * tree-pass.h: Update comment.
8416         * final.c (leaf_function_p): Update.
8417         (leaf_renumber_regs): Update.
8418         (rest_of_clean_state): Update.
8419         * omp-low.c (expand_omp_parallel): Update.
8420         * ipa-reference.c (analyze_function): Update.
8421         * reorg.c (find_end_label): Update.
8422         (optimize_skip): Update.
8423         (fill_simple_delay_slots): Update.
8424         (fill_simple_delay_slots): Update.
8425         (make_return_insns): Update.
8426         (dbr_schedule): Update.
8427         * gimple-low.c (record_vars_into): Update.
8428         * cfgbuild.c (make_edges): Update.
8429         * function.c (assign_stack_local): Update.
8430         (assign_parm_adjust_stack_rtl): Update.
8431         (locate_and_pad_parm): Update.
8432         (allocate_struct_function): Do not initialize stack_alignment_needed
8433         and preferred_stack_boundary here.
8434         (stack_protect_prologue): Update.
8435         (stack_protect_epilogue): Update.
8436         (expand_function_start): Initialize stack_alignment_needed,
8437         preferred_stack_boundary and max_jumptable_ents.
8438         (expand_function_end): Update.
8439         (free_after_compilation): Do not NULLify epilogue_delay_list.
8440         * function.h (struct rtl_data): Add stack_protect_guard,
8441         stack_alignment_needed,
8442         preferred_stack_boundary, epilogue_delay_list.
8443         (struct function): Remove value_histograms, stack_alignment_needed,
8444         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
8445         last_label_uid,
8446         unexpanded_var_list, stack_protect_guard.
8447         (current_function_epilogue_delay_list): Remove.
8448         * ipa-type-escape.c (analyze_function): Update.
8449         * gimplify.c (pop_gimplify_context): Update comment.
8450         * calls.c (expand_call): Update.
8451         (emit_library_call_value_1): Update.
8452         * except.c (set_nothrow_function_flags): Update.
8453         * cfgexpand.c (get_decl_align_unit): Update.
8454         (create_stack_guard): Update.
8455         (estimated_stack_frame_size): Update.
8456         (expand_used_vars): Update.
8457         (tree_expand_cfg): Free histogram earliers, init expansion variables.
8458         * explow.c (allocate_dynamic_stack_space): Update.
8459         * tree-ssa-live.c (remove_unused_locals): Update.
8460         * varasm.c (mark_constant_pool): Update.
8461         * tree-inline.c (remap_decls): Update.
8462         (initialize_cfun): Update.
8463         (declare_return_variable): Update.
8464         (inline_forbidden_p): Update.
8465         (expand_call_inline): Update.
8466         (declare_inline_vars): Update.
8467         (tree_function_versioning): Update.
8468         * tree-flow.h (value_histograms): New.
8469         (VALUE_HISTOGRAMS): New macro.
8470         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
8471         last_label_uid.
8472         * tree-cfg.c (set_bb_for_stmt): Update.
8473         (replace_by_duplicate_decl): Update.
8474         (move_block_to_fn): Update.
8475         (new_label_mapper): Update.
8476         (dump_function_to_file): Update.
8477         * ipa-struct-reorg.c (build_data_structure): Update.
8478         * cfgrtl.c (print_rtl_with_bb): Update.
8479         * reload1.c (reload): Update.
8480         (reload): Update.
8481         * config/i386/i386.c (setup_incoming_varargs_64,
8482         ix86_compute_frame_layout): Update.
8483         * config/arc/arc.c (arc_output_function_epilogue): Update.
8484
8485 2008-04-18  Marius Strobl <marius@FreeBSD.org>
8486
8487         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
8488         for FreeBSD as well.
8489         * gthr-posix95.h: Likewise.
8490
8491 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
8492
8493         PR rtl-optimization/35838
8494         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
8495         out the byte offset of the first subreg.
8496
8497 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
8498
8499         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
8500         to split_ti instead of three separate calls with single member arrays.
8501         (subti3 splitter): Ditto.
8502         (adddi3 splitter): Ditto with split_di.
8503         (subdi3 splitter): Ditto.
8504         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
8505         two separate calls with single member arrays.  Swap match_dup
8506         operands 1 and 2 to better fit into the array.
8507         (negdi2 splitter): Ditto with split_di.
8508         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
8509         two separate calls with single member arrays.  Swap match_dup operands
8510         6 and 7 to better fit into the array.
8511
8512 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
8513
8514         * config/i386/i386.c (sse_builtin_type): New.
8515         (bdesc_sse_args): Likewise.
8516         (bdesc_sse_3arg): Removed.
8517         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8518         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
8519         IX86_BUILTIN_ROUNDPS.
8520         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
8521         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
8522         IX86_BUILTIN_ROUNDPS.
8523         (ix86_expand_sse_4_operands_builtin): Removed.
8524         (ix86_expand_sse_operands_builtin): New.
8525         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
8526         and CODE_FOR_sse4_1_roundps.
8527         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
8528         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
8529
8530 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
8531
8532         PR target/35907
8533         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
8534         regs before frame pop when needed.  If use_backchain_to_restore_sp
8535         then load backchain into a temp reg to restore vr and vrsave.  Add
8536         code to restore vr after frame pop if possible.
8537
8538 2008-04-17  Richard Guenther  <rguenther@suse.de>
8539
8540         * tree-vn.c (expressions_equal_p): Do not check type
8541         equality or compatibility before calling operand_equal_p.
8542         * fold-const.c (operand_equal_p): Check equivalence of
8543         integer constants before bailing out due to signedness or
8544         precision differences.
8545         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
8546         spurious differences in type qualification.  Ignore types
8547         for COMPONENT_REFs at all.
8548
8549 2008-04-17  Christian Bruel  <christian.bruel@st.com>
8550
8551         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
8552         msw_skip comparison.
8553         
8554 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
8555
8556         PR c/35739
8557         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
8558         reg type.
8559
8560         PR tree-optimization/35899
8561         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
8562         rather than TREE_OPERAND.
8563
8564 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
8565
8566         PR target/35944
8567         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
8568         temporary registers.  Change operand predicate to general_operand.
8569         (remainderxf3): Ditto.
8570
8571 2008-04-16  Richard Guenther  <rguenther@suse.de>
8572
8573         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
8574         * tree-affine.c (aff_combination_expand): Look through some
8575         conversions.
8576
8577 2008-04-15  Doug Kwan  <dougkwan@google.com>
8578
8579         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
8580         for hex printing.
8581         * tree-pretty-print.c (dump_generic_node): Ditto.
8582         * final.c (output_addr_const): Ditto.
8583         * dwarf2out.c (output_cfi): Ditto.
8584         * c-pretty-print.c (pp_c_integer_constant): Ditto.
8585         * print-rtl.c (print_rtx): Ditto.
8586         * print-tree.c (print_node_brief, print_node): Ditto.
8587         * c-common.c (match_case_to_enum_1): Ditto.
8588         * sched-vis.c (print_value): Ditto.
8589         * config/i386/i386.c (print_operand): Cast to long unsigned int
8590         for hex printing.
8591
8592 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
8593         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
8594         MS Windows VirtualProtect function.
8595
8596 2008-04-15  Jan Hubicka  <jh@suse.cz>
8597
8598         * gengtype.c (write_root): Param_is argument is OK.
8599         * expr.c (expand_expr_real_1): Update call of get_exception_*.
8600         * function.h: Include varray.h
8601         (rtl_eh): New stucture based on except.c one.
8602         (call_site_record): New forward declaration and vector type.
8603         * calls.c (emit_call_1): Do not call
8604         note_current_region_may_contain_throw.
8605         * except.c (eh_status): Remove cur_region, try_region since they are
8606         unused.
8607         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
8608         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
8609         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
8610         Remove call_site_data_used, call_site_data_size.
8611         Turn call_site_record into vector in function.h.
8612         (note_current_region_may_contain_throw): Remove.
8613         (get_exception_pointer, get_exception_filter): Do not take struct
8614         function argument; update.
8615         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
8616         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
8617         build_post_landing_pads, dw2_build_landing_pads,
8618         sjlj_assign_call_site_values, sjlj_mark_call_sites,
8619         sjlj_emit_function_enter, sjlj_emit_function_enter, 
8620         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
8621         sjlj_build_landing_pads, finish_eh_generation,
8622         remove_exception_handler_label, remove_eh_handler,
8623         maybe_remove_eh_handler, add_reachable_handler,
8624         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
8625         add_action_record, collect_one_action_chain, add_call_site,
8626         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
8627         sjlj_output_call_site_table, output_function_exception_table,
8628         * except.h (note_current_region_may_contain_throw): Remove
8629         (get_exception_pointer, get_exception_filter): Do not take struct
8630         function argument.
8631         * Makefile.in (GTFILES): Put varargs before struct function.
8632
8633 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8634
8635         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
8636         punt for STRING_CST.
8637         (get_constraint_for): Deal with STRING_CST here instead.
8638
8639 2008-04-15  Richard Guenther  <rguenther@suse.de>
8640
8641         * tree-ssa-propagate.c (substitute_and_fold): Substitute
8642         statements in a basic-block with a backward walk.  Do not
8643         substitute into dead statements but instead remove those.
8644
8645 2008-04-15  Richard Guenther  <rguenther@suse.de>
8646
8647         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
8648         to zero, thus disable creation of SFTs.
8649
8650 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
8651
8652         * tree-predcom.c (suitable_reference_p): Return false if the
8653         reference can throw.
8654
8655 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
8656
8657         PR c/35751
8658         * c-decl.c (finish_decl): If extern or static var has variable
8659         size, set TREE_TYPE (decl) to error_mark_node.
8660
8661 2008-04-15  Rafael Espindola  <espindola@google.com>
8662
8663         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
8664         variable arg1.
8665
8666 2008-04-15  Richard Guenther  <rguenther@suse.de>
8667
8668         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
8669         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
8670         (visit_reference_op_load): Do walk vuse-vdef chains on
8671         vn_reference_lookup.
8672         (visit_reference_op_store): But do not here.
8673         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
8674         vn_reference_lookup.
8675         (vn_lookup_with_vuses): But do so here.
8676
8677 2008-04-14  Ian Lance Taylor  <iant@google.com>
8678
8679         * fold-const.c (fold_overflow_warning): Remove assertion.
8680
8681 2008-04-15  Ben Elliston  <bje@au.ibm.com>
8682
8683         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
8684         temp1 local variables.
8685
8686 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
8687
8688         PR target/35661
8689         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
8690         ".text.unlikely" section as executable.
8691
8692 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
8693
8694         * config/ia64/ia64.c (rtx_needs_barrier): Handle
8695         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
8696         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
8697         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
8698         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
8699         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
8700         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
8701
8702 2008-04-14  Ian Lance Taylor  <iant@google.com>
8703
8704         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
8705         * fold-const.c (fold_comparison): If appropriate, test
8706         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
8707         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
8708         reassociating a pointer type.
8709         * doc/invoke.texi (Optimize Options): Document that
8710         -fstrict-overflow applies to pointer wraparound.
8711
8712 2008-04-13  Jan Hubicka  <jh@suse.cz>
8713
8714         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
8715
8716 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
8717
8718         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
8719         we are going to "save the world".
8720
8721 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
8722
8723         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
8724         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
8725         operand 0 constraint, not "=".
8726
8727 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
8728
8729         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
8730
8731 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8732
8733         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
8734         of size of positions_needed * CHAR_BIT.
8735
8736 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
8737
8738         PR middle-end/35897
8739         * dse.c (store_info): Change positions_needed to unsigned
8740         HOST_WIDE_INT.
8741         (lowpart_bitmask): New.
8742         (record_store): Cast to unsigned HOST_WIDE_INT for
8743         positions_needed.  Assert width <= size of positions_needed *
8744         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
8745         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
8746         lowpart_bitmask to set mask.
8747
8748 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
8749
8750         * config/bfin/constraints.md: New file.
8751         * config/bfin/bfin.md: Include it.
8752         (adddi3): Use satisfies_constraint functions instead of the old macros.
8753         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
8754         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
8755         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
8756         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
8757         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
8758         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
8759         EXTRA_CONSTRAINT): Delete.
8760         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
8761         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
8762         of the old macros.
8763         * config/bfin/bfin.c: Include "tm-constrs.h".
8764         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
8765         Use satisfies_constraint functions instead of the old macros.
8766         * doc/md.texi (Blackfin Constraints): Update file name reference.
8767
8768 2008-04-11  Richard Guenther  <rguenther@suse.de>
8769
8770         PR tree-optimization/35869
8771         * tree-vrp.c (execute_vrp): Move switch statement update after
8772         jump threading.  Schedule another cfg cleanup run.
8773
8774 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
8775
8776         PR c/35744
8777         * attribs.c (decl_attributes): Return early on errorneous node.
8778
8779 2008-04-10  Oleg Ryjkov  <olegr@google.com>
8780
8781         * tree.h (struct tree_base): Added a new flag default_def_flag.
8782         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
8783
8784 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
8785
8786         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
8787
8788 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8789
8790         PR target/35768
8791         * pa.md: Define mode iterator P.  Define mode attribute dwc.
8792         (dcacheflush): Update pattern to use iterator P and attribute dwc.
8793         (icacheflush): Likewise.
8794         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
8795         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
8796
8797 2008-04-11  Ben Elliston  <bje@au.ibm.com>
8798
8799         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
8800
8801 2008-04-10  Rafael Espindola  <espindola@google.com>
8802
8803         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
8804         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
8805         (extract_range_from_expr): The same.
8806
8807 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8808
8809         * config/mips/mips.md (GPR2): New mode iterator.
8810         (seq): Add comment.
8811         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
8812         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
8813         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
8814         Rewrite these to take two modes, the mode of comparison and the
8815         mode of the destination.
8816         * config/mips/mips.c (mips_expand_scc): Instead of having
8817         paradoxical subreg as destination, expand "narrowing" scc if mode
8818         of comparison is SI and target is requested in DI mode.
8819         (mips_emit_int_order_test): Update comment.  Make mode of
8820         comparison match CMP0 rather than TARGET.  When creating inverse
8821         target use mode of TARGET.
8822
8823 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
8824
8825         * gcov-dump.c (tag_summary): Only print summaries for the first
8826         GCOV_COUNTERS_SUMMABLE counters.
8827
8828 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
8829
8830         * config/i386/i386.md (absneg): New code iterator.
8831         (absnegprefix): New code attribute.
8832         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
8833         patterns using absneg code iterator.
8834         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
8835         using absneg code iterator.
8836         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
8837         *neg<mode>2 patterns using absneg code iterator.
8838         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8839         *negextendsfdf2 patterns using absneg code iterator.
8840         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
8841         *negextendsfxf2 patterns using absneg code iterator.
8842         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
8843         *negextendsfdf2 patterns using absneg code iterator.
8844         * config/i386/sse.md (<code><mode>2): Macroize expander from
8845         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
8846
8847 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
8848
8849         * config/s390/s390.h: Remove the remains of the recent search
8850         & replace action of current_function_outgoing_args_size.
8851
8852 2008-04-10  Ira Rosen  <irar@il.ibm.com>
8853
8854         PR tree-optimization/35821
8855         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
8856         NEW_STMT_LIST is not NULL.
8857
8858 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
8859
8860         PR libstdc++/35597
8861         * toplev.c (process_options): Remove -ffunction-sections debugging
8862         warning.
8863
8864 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
8865
8866         PR middle-end/PR28690
8867         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
8868         than gen_rtx_fmt_ee to perform more canonicalizations.
8869
8870 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8871
8872         PR driver/35665
8873         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
8874
8875 2008-04-09  Richard Guenther  <rguenther@suse.de>
8876
8877         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
8878         (dump_function_to_file): Dump function arguments with types.
8879
8880 2008-04-08  Richard Guenther  <rguenther@suse.de>
8881
8882         * fold-const.c (fold_widened_comparison): Do not allow
8883         sign-changes that change the result.
8884
8885 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
8886
8887         PR target/35839
8888         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8889         kinds of indirect references.
8890
8891 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
8892
8893         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8894         GNU Fortran language string.
8895
8896 2008-04-08  Rafael Espindola  <espindola@google.com>
8897
8898         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8899         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8900         * tree.h (tree_call_nonnegative_warnv_p): New.
8901
8902 2008-04-08  Jan Hubicka  <jh@suse.cz>
8903
8904         * function.c (free_after_compilation): Clear out regno_reg_rtx
8905         pointer.
8906
8907 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
8908
8909         Revert
8910         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8911
8912         PR middle-end/PR28690
8913         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
8914         same precedence as REG_POINTER and MEM_POINTER operands.
8915
8916 2008-04-08  Richard Guenther  <rguenther@suse.de>
8917
8918         PR middle-end/35834
8919         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
8920         for adding index to base.
8921
8922 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
8923
8924         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
8925         (MINGW_ENABLE_EXECUTE_STACK): New.
8926         (IN_LIBGCC2): For libgcc include windows.h file for
8927         function declarations.
8928
8929 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
8930
8931         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
8932         and tem2 if tem1 is not a REG or MULT.
8933
8934 2008-04-08  Jan Hubicka  <jh@suse.cz>
8935
8936         * function.h (incomming_args): Break out of struct function.
8937         (function_subsections): Break out of struct function.
8938         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8939         return_rtx and hard_reg_initial_vals from struct function.
8940         Kill inl_max_label_num.
8941         (current_function_pops_args, current_function_args_info,
8942         current_function_args_size, current_function_args_size,
8943         current_function_pretend_args_size,
8944         current_function_outgoing_args_size,
8945         current_function_internal_arg_pointer, current_function_return_rtx):
8946         Kill compatibility accestor macros.
8947         * builtins.c (expand_builtin_apply_args_1): Update.
8948         (expand_builtin_next_arg): Update.
8949         * df-scan.c (df_get_call_refs): Update.
8950         * dbxout.c (dbxout_function_end): Update.
8951         * dwarf2out.c (dwarf2out_switch_text_section): Update.
8952         (output_line_info): Update.
8953         (secname_for_decl): Update.
8954         (dwarf2out_var_location): Update.
8955         * function.c (free_after_compilation): Update.
8956         (assign_parm_find_stack_rtl): Update.
8957         (assign_parms): Update.
8958         (expand_dummy_function_end): Update.
8959         (expand_function_end): Update.
8960         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
8961         (expand_call): Update.
8962         (emit_library_call_value_1): Update.
8963         (store_one_arg): Update.
8964         * varasm.c (initialize_cold_section_name): Update.
8965         (unlikely_text_section): Update.
8966         (unlikely_text_section_p): Update.
8967         (assemble_start_function): Update.
8968         (assemble_end_function): Update.
8969         (default_section_type_flags): Update.
8970         (switch_to_section): Update.
8971         * integrate.c (set_decl_abstract_flags): Update.
8972         (get_hard_reg_initial_val): Update.
8973         (has_hard_reg_initial_val): Update.
8974         (allocate_initial_values): Update.
8975         * resource.c (init_resource_info): Update.
8976         * config/alpha/alpha.c (NUM_ARGS): Update.
8977         (direct_return): Update.
8978         (alpha_va_start): Update.
8979         (alpha_sa_size): Update.
8980         (alpha_initial_elimination_offset): Update.
8981         (alpha_expand_prologue): Update.
8982         (alpha_start_function): Update.
8983         (alpha_expand_epilogue): Update.
8984         (unicosmk_initial_elimination_offset):
8985         * config/alpha/alpha.md (call expander): Update.
8986         * config/s390/s390.c (s390_register_info): Update.
8987         (s390_register_info): Update.
8988         (s390_frame_info): Update.
8989         (s390_initial_elimination_offset): Update.
8990         (s390_build_builtin_va_list): Update.
8991         (s390_va_start): Update.
8992         * config/spu/spu.c (direct_return): Update.
8993         (spu_expand_prologue): Update.
8994         (spu_initial_elimination_offset): Update.
8995         (spu_build_builtin_va_list): Update.
8996         (spu_va_start): Update.
8997         * config/sparc/sparc.c (sparc_init_modes): Update.
8998         (sparc_compute_frame_size): Update.
8999         (function_value): Update.
9000         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
9001         * config/i386/i386.md (return expander): Update.
9002         * config/i386/i386.c (ix86_va_start): Update.
9003         (ix86_can_use_return_insn_p): Update.
9004         (ix86_compute_frame_layout): Update.
9005         (ix86_expand_epilogue): Update.
9006         * config/sh/sh.c (output_stack_adjust): Update.
9007         (calc_live_regs): Update.
9008         (sh_expand_prologue): Update.
9009         (sh_builtin_saveregs): Update.
9010         (sh_va_start): Update.
9011         (initial_elimination_offset): Update.
9012         (sh_allocate_initial_value): Update.
9013         (sh_function_ok_for_sibcall): Update.
9014         (sh_get_pr_initial_val): Update.
9015         * config/sh/sh.md (return expander): Update.
9016         * config/avr/avr.c (frame_pointer_required_p): UPdate.
9017         * config/crx/crx.c (crx_compute_frame): UPdate.
9018         (crx_initial_elimination_offset): UPdate.
9019         * config/xtensa/xtensa.c (compute_frame_size): Update
9020         (xtensa_builtin_saveregs): Update.
9021         (xtensa_va_start): Update.
9022         (order_regs_for_local_alloc): Update.
9023         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
9024         (xstormy16_expand_builtin_va_start): Update.
9025         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
9026         * config/m68hc11/m68hc11.md (return expanders): Update.
9027         * config/m68hc11/m68hc11.c (expand_prologue): Update.
9028         (expand_epilogue): Update.
9029         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
9030         (cris_simple_epilogue): Update.
9031         (cris_expand_prologue): Update.
9032         (cris_expand_epilogue): Update.
9033         * config/iq2000/iq2000.c (iq2000_va_start): Update.
9034         (compute_frame_size): Update.
9035         * config/mt/mt.c (mt_compute_frame_size): Update.
9036         * config/mn10300/mn10300.c (expand_prologue): Update.
9037         (expand_epilogue): Update.
9038         (initial_offset): Update.
9039         (mn10300_builtin_saveregs):
9040         * config/mn10300/mn10300.md (return expander): Update.
9041         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9042         (ia64_initial_elimination_offset): Update.
9043         (ia64_initial_elimination_offset): Update.
9044         (ia64_expand_prologue): Update.
9045         * config/m68k/m68k.md (return expander): Update.
9046         * config/rs6000/rs6000.c (rs6000_va_start): Update.
9047         (rs6000_stack_info): Update.
9048         * config/mcore/mcore.c (layout_mcore_frame): Update.
9049         (mcore_expand_prolog): Update.
9050         * config/arc/arc.c (arc_compute_frame_size): Update.
9051         * config/score/score3.c (score3_compute_frame_size): Update.
9052         * config/score/score7.c (score7_compute_frame_size): Update.
9053         * config/arm/arm.c (use_return_insn): Update.
9054         (thumb_find_work_register): Update.
9055         (arm_compute_save_reg_mask): Update.
9056         (arm_output_function_prologue): Update.
9057         (arm_output_epilogue): Update.
9058         (arm_size_return_regs): Update.
9059         (arm_get_frame_offsets): Update.
9060         (arm_expand_prologue): Update.
9061         (thumb_exit): Update.
9062         (thumb_unexpanded_epilogue): Update.
9063         (thumb1_output_function_prologue): Update.
9064         * config/pa/pa.md (return expander): Update.
9065         * config/pa/pa.c (compute_frame_size): Update.
9066         (hppa_builtin_saveregs): Update.
9067         * config/mips/mips.c (mips_va_start): Update.
9068         (mips16_build_function_stub): Update.
9069         (mips_compute_frame_info): Update.
9070         (mips_restore_gp): Update.
9071         (mips_output_function_prologue): Update.
9072         (mips_expand_prologue): Update.
9073         * config/v850/v850.c (compute_frame_size): Update.
9074         (expand_prologue): * config/mmix/mmix.c (along): update.
9075         (mmix_initial_elimination_offset): update.
9076         (mmix_reorg): update.
9077         (mmix_use_simple_return): update.
9078         (mmix_expand_prologue): update.
9079         (mmix_expand_epilogue): Update.
9080         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
9081         (emit_link_insn): Update.
9082
9083 2008-04-08  Anatoly Sokolov <aesok@post.ru>
9084
9085         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
9086         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
9087         instructions.
9088         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
9089         atmega103 device.
9090
9091 2008-04-07  Jan Hubicka  <jh@suse.cz>
9092
9093         * function.h (rtl): Rename to x_rtl.
9094         (crtl): New define.
9095         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9096         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9097         used_temp_slots avail_temp_slots, temp_slot_level,
9098         nonlocal_goto_handler_labels): Update accesstors.
9099         (rtl): New global variable.
9100         (struct function): Move some fileds to rtl_data.
9101         (get_arg_pointer_save_area): Update prototype.
9102         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9103         get_arg_pointer_save_area.
9104         * expr.c (init_expr): Update
9105         * function.c (get_frame_size): Update
9106         (assign_stack_local): Update
9107         (expand_function_end): Update.
9108         (get_art_pointer_save_area): Update
9109         * function.h 
9110         * emit-rtl.c (rtl): Declare.
9111         (regno_reg_rtx): Declare.
9112         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9113         Update.
9114         (gen_reg_rtx): Update.
9115         * varasm.c (n_deferred_constatns): Update accestor.
9116         (init_varasm_status): Do not allocate varasm_status.
9117         (force_const_mem, get_pool_size, output_constant_pool): Update.
9118         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9119         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9120         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
9121         * sparc/sparc.h (INIT_EXPANDERS): Update.
9122         * ia64/ia64.h (INIT_EXPANDERS): Update.
9123
9124 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
9125
9126         * reload.c (push_secondary_reload): Add missing break to for loop.
9127
9128 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
9129
9130         PR middle-end/PR28690
9131         * rtlanal.c: Update copyright years.
9132         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
9133         as REG_POINTER and MEM_POINTER operands.
9134         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
9135         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
9136         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
9137         * gcse.c: Update copyright years.
9138         (pre_delete): Call gen_reg_rtx_and_attrs.
9139         (hoist_code): Likewise.
9140         (build_store_vectors): Likewise.
9141         (delete_store): Likewise.
9142         * loop-invariant.c (move_invariant_reg): Likewise.
9143         Update copyright years.
9144
9145 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
9146
9147         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
9148         control string instead of quoted.
9149
9150 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9151
9152         * doc/rtl.texi: Rewrite of subreg section.
9153
9154 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
9155
9156         PR/35842
9157         * config/i386/i386.c (legitimize_pic_address): Add treating
9158         of dllimport SYM_REF's.
9159         (legitimize_dllimport_symbol): Add prototype.
9160
9161 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9162
9163         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
9164         reference in constructor with non self-referential type.
9165
9166 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9167
9168         Removal of Return with Depressed Stack Pointer support
9169         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
9170         (ECF_SP_DEPRESSED): Likewise.
9171         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
9172         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
9173         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9174         (expand_call): Do not test ECF_SP_DEPRESSED.
9175         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9176         * function.c (keep_stack_depressed): Delete.
9177         (handle_epilogue_set): Likewise.
9178         (update_epilogue_consts): Likewise.
9179         (emit_equiv_load): Likewise.
9180         (thread_prologue_and_epilogue_insns): Remove support for Return with
9181         Depressed Stack Pointer.
9182         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
9183
9184 2008-04-06  Richard Guenther  <rguenther@suse.de>
9185
9186         PR tree-optimization/35400
9187         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
9188         information from SSA_NAMEs.
9189
9190 2008-04-06  Anatoly Sokolov <aesok@post.ru>
9191
9192         * config/avr/avr.h (avr_mega_p): Remove declaration.
9193         (AVR_MEGA): Remove macro.
9194         * config/avr/avr.c (avr_mega_p): Remove variable.
9195         (avr_override_options): Remove inicializion of avr_mega_p.
9196         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9197         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
9198         (avr_jump_mode): (Ditto.).
9199         (avr_output_progmem_section_asm_op): (Ditto.).
9200         (avr_asm_init_sections): (Ditto.).
9201         (avr_asm_init_sections): (Ditto.).
9202         (avr_rtx_costs): (Ditto.).
9203         * config/avr/avr.md: (Ditto.).
9204         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
9205         '__AVR_MEGA__'.
9206
9207 2008-04-06  Richard Guenther  <rguenther@suse.de>
9208
9209         PR tree-optimization/35842
9210         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
9211         is_gimple_invariant_address.
9212
9213 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9214
9215         * gcc.c (default_compilers): Sync Fortran extensions list with
9216         that in fortran/lang-specs.h.
9217         * doc/invoke.texi: Likewise.
9218         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
9219         * dwarf2out.c (gen_compile_unit_die): Likewise.
9220
9221 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
9222
9223         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
9224
9225 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
9226
9227         PR target/12329
9228         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
9229         attribute is used for nested functions.
9230
9231 2008-04-05  Jan Hubicka  <jh@suse.cz>
9232
9233         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
9234
9235         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
9236         letter argument.
9237         (dump_files): Update.
9238         (enable_rtl_dump_file): Do not accept letter argument.
9239         * tree-pass.h (dump_file_info): Remove letter argument.
9240         * toplev.c (decode_d_option): Update -da handling.
9241         * toplev.h (enable_rtl_dump_file): Update prototype.
9242         * passes.c (register_one_dump_file): Do not accept IPA argument; work
9243         it out based on pass type.
9244         (register_dump_files_1): Likewise.
9245         (init_optimization_passes): Update register_one_dump_file calls.
9246         (execute_one_pass): Sanity check that IPA passes are called at IPA
9247         level and RTL passes at RTL level.
9248         (execute_pass_list): IPA pass can not be after or subpass of
9249         GIMPLE/RTL pass.
9250         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
9251         disallov RTL subpasses of IPA subpasses.
9252
9253 2008-04-05  Ben Elliston  <bje@au.ibm.com>
9254
9255         * tree-cfg.c (need_fake_edge_p): Return false for calls to
9256         builtins that return exactly once and do not throw. Cache call to
9257         call_expr_flags.
9258
9259 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
9260
9261         PR rtl-optimization/34916
9262         PR middle-end/35519
9263         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
9264         between instruction pairs.
9265
9266 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
9267
9268         * doc/invoke.texi: Document -mbitops for SH.
9269         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
9270         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
9271         * config/sh/sh.c (print_operand): Add %t operand code.
9272         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
9273         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
9274         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
9275         (extendqihi2): Likewise.
9276         (movqi_i): Likewise.
9277         (insv): Use bset, bclr and bst instructions for SH2A if possible.
9278         (extv): Use bld instruction for SH2A if possible.
9279         (extzv): Likewise.
9280         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
9281         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
9282         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
9283         (bset.b, bclr.b): Define peepholes.
9284         * config/sh/sh.opt (mbitops): New option.
9285
9286 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
9287
9288         PR target/35620
9289         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
9290         and view convert expression.
9291
9292 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9293
9294         PR target/35364
9295         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
9296
9297 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
9298
9299         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
9300
9301         * config/i386/cpuid.h (bit_AES): New.
9302         (bit_PCLMUL): Likewise.
9303
9304         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
9305         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
9306         SSE2 if AES or PCLMUL is enabled.
9307         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
9308         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9309         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
9310         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
9311         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
9312         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
9313         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
9314         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
9315         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
9316         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
9317         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
9318         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
9319         __builtin_ia32_aeskeygenassist128 and
9320         __builtin_ia32_pclmulqdq128.
9321         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
9322         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
9323         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
9324
9325         * config/i386/i386.h (TARGET_AES): New.
9326         (TARGET_PCLMUL): Likewise.
9327         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
9328
9329         * config/i386/i386.md (UNSPEC_AESENC): New.
9330         (UNSPEC_AESENCLAST): Likewise.
9331         (UNSPEC_AESDEC): Likewise.
9332         (UNSPEC_AESDECLAST): Likewise.
9333         (UNSPEC_AESIMC): Likewise.
9334         (UNSPEC_AESKEYGENASSIST): Likewise.
9335         (UNSPEC_PCLMUL): Likewise.
9336
9337         * config/i386/i386.opt (maes): New.
9338         (mpclmul): Likewise.
9339
9340         * config/i386/sse.md (aesenc): New pattern.
9341         (aesenclast): Likewise.
9342         (aesdec): Likewise.
9343         (aesdeclast): Likewise.
9344         (aesimc): Likewise.
9345         (aeskeygenassist): Likewise.
9346         (pclmulqdq): Likewise.
9347
9348         * config/i386/wmmintrin.h: New.
9349
9350         * doc/extend.texi: Document AES and PCLMUL built-in function.
9351
9352         * doc/invoke.texi: Document -maes and -mpclmul.
9353
9354 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
9355
9356         * function.c (free_after_parsing): Replace with
9357         cxx_push_function_context from C++ front-end.
9358         (allocate_struct_function): Don't call langhook.
9359         * langhooks.h (struct lang_hooks_for_functions): Delete.
9360         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
9361         member "function".
9362         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
9363         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
9364         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
9365         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
9366         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
9367         remove LANG_HOOKS_FUNCTION_INITIALIZER.
9368         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
9369
9370         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
9371         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
9372         
9373 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
9374
9375         PR c/35440
9376         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
9377         for all types.
9378
9379 2008-04-04  Richard Guenther  <rguenther@suse.de>
9380
9381         PR middle-end/35823
9382         * fold-const.c (optimize_minmax_comparison): Use the correct
9383         type for the constant in the simplified comparison.
9384
9385 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
9386
9387         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
9388         Pass L2 size as "--param l2-cache-size" to the compiler.
9389         (decode_l2_cache): New function to decode L2 cache parameters using
9390         0x8000006 extended cpuid function.
9391         (detect_caches_amd): Determine parameters of L2 cache using
9392         decode_l2_caches function.
9393         (decode_caches_intel): Decode L2 cache parameters.
9394         (detect_caches_intel): Determine L2 cache parameters using
9395         decode_caches_intel and decode_l2_caches functions.
9396
9397 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
9398
9399         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
9400         secondary input reload for subword loads from the constant pool.
9401
9402 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
9403
9404         PR target/35713
9405         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
9406           constants of the appropriate size for runtime calculations.
9407
9408         PR c/35712
9409         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
9410           decimal-float literal constant zero.
9411
9412 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
9413
9414         PR c/35738
9415         * c-parser.c (c_parser_omp_atomic): Call
9416         default_function_array_conversion on the RHS.
9417
9418         PR middle-end/35818
9419         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
9420         call is_variable_sized if decl has incomplete type.
9421
9422 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
9423
9424         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
9425
9426 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
9427
9428         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
9429         iterators.
9430         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
9431         (sgt<u>): Merge sgt and sgtu into new expander.
9432         (sgt, sgtu): Remove expanders.
9433         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
9434         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
9435         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
9436         *sgtu_<mode>_mips16 into new pattern.
9437         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
9438         (sge<u>): Merge sge and sgeu into new expander.
9439         (sge, sgeu): Remove expanders.
9440         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
9441         new pattern.
9442         (*sge_<mode>, second *sge_<mode>): Remove patterns.
9443         (slt<u>): Merge slt and sltu into new expander.
9444         (slt, sltu): Remove expanders.
9445         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
9446         (*slt_<mode>, *sltu_<mode>): Remove patterns.
9447         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
9448         *sltu_<mode>_mips16 into new pattern.
9449         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
9450         (sle<u>): Merge sle and sleu into new expander.
9451         (sle, sleu): Remove expanders.
9452         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
9453         (*sle_<mode>, *sleu_<mode>): Remove patterns.
9454         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
9455         *sleu_<mode>_mips16 into new pattern.
9456         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
9457
9458 2008-04-03  Jan Hubicka  <jh@suse.cz>
9459
9460         PR tree-optimization/35795
9461         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
9462         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9463         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9464         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
9465         * score/score3.c (score3_output_mi_thunk): Likewise.
9466         * score/score7.c (score7_output_mi_thunk): Likewise.
9467         * mips/mips.c (mips_output_mi_thunk): Likewise.
9468
9469 2008-04-03  Richard Guenther  <rguenther@suse.de>
9470
9471         * tree-vrp.c (extract_range_from_unary_expr): Handle all
9472         conversions.  Simplify code.
9473
9474 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
9475
9476         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
9477
9478 2008-04-03  Tom Tromey  <tromey@redhat.com>
9479             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9480
9481         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9482         * config/bfin/t-bfin-linux (generated_files): Add
9483         linux-sysroot-suffix.h.
9484         * doc/install.texi (Prerequisites): Require make 3.80.
9485         * doc/sourcebuild.texi (Front End Directory): Document new
9486         variable.
9487         * Makefile.in (generated_files): New variable.
9488         (ALL_HOST_OBJS): New variable.
9489         ($(ALL_HOST_OBJS)): New target.
9490
9491 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9492
9493         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
9494         (remap_block): Call id->transform_lang_insert_block instead
9495         of langhook.
9496         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
9497         Set id.transform_lang_insert_block to NULL.
9498         (clone_body): Move to cp/optimize.c
9499         * tree-inline.h (struct copy_body_data): Change
9500         transform_lang_insert_block to function pointer.
9501         (copy_generic_body, copy_decl_no_change): Export.
9502         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
9503         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
9504         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
9505
9506         * c-tree.h (insert_block): Kill.
9507         * c-decl.c (insert_block): Kill.
9508
9509 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
9510
9511         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9512         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9513         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
9514         argument.
9515         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
9516         argument, call {push,pop}_function_context from here.
9517         * c-parser.c: Use c_{push,pop}_function_context.
9518
9519         * function.c (push_function_context_to): Move meat ...
9520         (push_function_context): ... here.  Simplify.
9521         * function.c (pop_function_context_from): Move meat ...
9522         (pop_function_context): ... here.  Simplify.
9523         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
9524         leave_nested).
9525         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
9526         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
9527         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
9528         * tree.h (push_function_context_to, pop_function_context_from): Remove.
9529
9530 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9531
9532         * expmed.c (extract_force_align_mem_bit_field): Remove.
9533
9534 2008-04-03  Richard Guenther  <rguenther@suse.de>
9535
9536         PR middle-end/35800
9537         * expr.h (try_casesi): Adjust prototype.
9538         * expr.c (try_casesi): Take fallback label as extra parameter.
9539         Use that for gen_casesi if default_label is NULL.
9540         * stmt.c (expand_case): Pass fallback label to try_casesi,
9541         make sure to fill gaps with a fallback label if default_label
9542         is not present.
9543
9544 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
9545
9546         PR target/35801
9547         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
9548
9549 2008-04-03  Ben Elliston  <bje@au.ibm.com>
9550
9551         * expmed.c (extract_split_bit_field): Remove if (0) code.
9552         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
9553         (do_ds_constraint): Likewise.
9554
9555 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
9556
9557         * doc/cppopts.texi (-dU): Document.
9558         * c-common.h (flag_dump_macros): Update comment.
9559         * c-opts.c (handle_OPT_d): Handle -dU.
9560         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
9561         dump_queued_macros, cb_used_define, cb_used_undef): New.
9562         (init_pp_output): Handle -dU.
9563         (cb_line_change): Call dump_queued_macros.
9564         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
9565
9566 2008-04-02  Anatoly Sokolov <aesok@post.ru>
9567
9568         * config/avr/predicates.md (io_address_operand): New predicate. 
9569         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
9570         * config/avr/avr.c (avr_io_address_p): Remove function.
9571         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
9572         'avr_io_address_p' function.
9573         (out_movhi_r_mr): (Ditto.).
9574         (out_movqi_mr_r): (Ditto.).
9575         (out_movhi_mr_r): (Ditto.).
9576         (avr_address_cost): (Ditto.).
9577
9578 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
9579
9580         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
9581         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
9582         in 32bit mode when XMM registers are available to avoid store
9583         forwarding stalls.
9584         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
9585         corresponding post-reload splitters.
9586
9587 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9588
9589         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
9590         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
9591         __builtin_ia32_roundss.
9592         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
9593         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
9594         __builtin_ia32_roundss.
9595         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
9596         IX86_BUILTIN_SHUFPD here.
9597
9598 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
9599
9600         * config/i386/i386.md (plogic): New.
9601         (plogicprefix): Likewise.
9602
9603         * config/i386/mmx.md (mmx_<code><mode>3): New.
9604         (mmx_and<mode>3): Removed.
9605         (mmx_ior<mode>3): Likewise.
9606         (mmx_xor<mode>3): Likewise.
9607
9608         * config/i386/sse.md (<code><mode>3): New.
9609         (*<code><mode>3): Likewise.
9610         (*<code><mode>3): Likewise.
9611         (<code><mode>3): Likewise.
9612         (*sse_<code><mode>3): Likewise.
9613         (*sse2_<code><mode>3): Likewise.
9614         (<code>tf3): Likewise.
9615         (*<code>tf3): Likewise.
9616         (and<mode>3): Likewise.
9617         (*and<mode>3): Likewise.
9618         (ior<mode>3): Removed.
9619         (*ior<mode>3): Likewise.
9620         (xor<mode>3): Likewise.
9621         (*xor<mode>3): Likewise.
9622         (*and<mode>3): Likewise.
9623         (*ior<mode>3): Likewise.
9624         (*xor<mode>3): Likewise.
9625         (and<mode>3): Likewise.
9626         (*sse_and<mode>3): Likewise.
9627         (*sse2_and<mode>3): Likewise.
9628         (andtf3): Likewise.
9629         (*andtf3): Likewise.
9630         (ior<mode>3): Likewise.
9631         (*sse_ior<mode>3): Likewise.
9632         (*sse2_ior<mode>3): Likewise.
9633         (iortf3): Likewise.
9634         (*iortf3): Likewise.
9635         (xor<mode>3): Likewise.
9636         (*sse_xor<mode>3): Likewise.
9637         (*sse2_xor<mode>3): Likewise.
9638         (xortf3): Likewise.
9639         (*xortf3): Likewise.
9640
9641 2008-04-02  Richard Guenther  <rguenther@suse.de>
9642
9643         PR tree-optimization/14495
9644         PR tree-optimization/34793
9645         * tree-vrp.c (struct switch_update): New structure.
9646         (to_remove_edges, to_update_switch_stmts): New VECs.
9647         (simplify_switch_using_ranges): New function.  Remove not taken
9648         case labels and edges.
9649         (simplify_stmt_using_ranges): Call it.
9650         (identify_jump_threads): Mark edges we have queued for removal
9651         so we don't thread them.
9652         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
9653         case label vector.
9654         * tree-cfg.c (group_case_labels): Deal with missing default label.
9655         (tree_verify_flow_info): Allow missing default label.
9656         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
9657         (emit_case_nodes): Likewise.
9658         (expand_case): Do not rely on the default label to be present.
9659         * expr.c (try_casesi): Deal with NULL default_label.
9660         (do_tablejump): Likewise.
9661
9662 2008-04-02  Richard Guenther  <rguenther@suse.de>
9663
9664         PR tree-optimization/14495
9665         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
9666         SWITCH_EXPR here ...
9667         (vrp_visit_switch_stmt): ... but here (new function).
9668         (find_case_label_index): New helper function.
9669         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
9670
9671 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9672
9673         * fwprop.c: Fix ISO-C99ism.
9674
9675 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9676
9677         PR bootstrap/35752
9678         * Makefile.in (objdir): Set it here.
9679         * configure.ac: Not here.  Find dynamic linker characteristics.
9680         * exec-tool.in: Use them.
9681         * aclocal.m4: Regenerate.
9682         * configure: Regenerate.
9683
9684 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9685
9686         * expr.c (expand_var): Delete it.
9687         * expr.h (expand_var): Delete prototype.
9688         * function.c (expand_function_start): Use expand_decl instead.
9689         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
9690         langhook.
9691
9692 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
9693
9694         PR rtl-optimization/35542
9695         * fwprop.c (forward_propagate_and_simplify): Replace
9696         loc_reg_mentioned_in_p with reg_mentioned_p.
9697
9698 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
9699
9700         PR rtl-optimization/35281
9701         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
9702         (propagate_rtx_1): Handle PR_HANDLE_MEM.
9703         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
9704         (varying_mem_p): Move above propagate_rtx.
9705         (all_uses_available_at): Do not check MEMs.
9706
9707 2008-04-02  Rafael Espindola  <espindola@google.com>
9708
9709         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
9710         (register_edge_assert_for_2): Split the cond argument.
9711         (register_edge_assert_for_1): Adjust for the change in
9712         register_edge_assert_for_2.
9713         (register_edge_assert_for): Split the cond argument.
9714         (find_switch_asserts): Adjust for the change in
9715         register_edge_assert_for.
9716
9717 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
9718
9719         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
9720         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
9721         offsets for 64-bit mingw.
9722         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
9723         abi for x86_64-pc-mingw.
9724
9725 2008-04-02  Richard Guenther  <rguenther@suse.de>
9726
9727         * tree-vrp.c (extract_range_from_assert): Make sure to not
9728         produce range min/max with TREE_OVERFOW set.
9729         If merging a anti-range and a range keep the anti-range if
9730         the range covers all values of the type.
9731         (register_edge_assert_for_2): Only allow sign-changing
9732         conversions in detecting canonical range checks.  Also
9733         register an assert for the unsigned name if useful.
9734
9735         PR tree-optimization/35787
9736         * tree-vrp.c (vrp_val_max): New function.
9737         (vrp_val_min): Likewise.
9738         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
9739         (vrp_val_is_min): Likewise.
9740         (supports_overflow_infinity): Use vrp_val_{min,max}.
9741         (negative_overflow_infinity): Likewise.
9742         (positive_overflow_infinity): Likewise.
9743         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
9744         (is_positive_overflow_infinity): Likewise.
9745         (is_overflow_infinity): Likewise.
9746         (avoid_overflow_infinity): Use vrp_val_{min,max} and
9747         vrp_val_is_{min,max}.
9748         (set_and_canonicalize_value_range): Canonicalize anti-ranges
9749         to ranges if possible.  Avoid empty ranges.
9750
9751 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9752
9753         PR middle-end/35705
9754         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
9755         the expression is a function address.
9756
9757 2008-04-01  George Helffrich  <george@gcc.gnu.org>
9758
9759         PR fortran/35154, fortran/23057
9760         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
9761         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
9762         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
9763         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
9764         in common.
9765         (dbxout_syms): Check for COMMON-based symbol and wrap in
9766         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
9767         in bracket for efficiency.
9768
9769         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
9770         using DW_TAG_common_block + member offset.
9771         (add_pubname_string): New function.
9772         (dw_expand_expr): New function to find block name and offset for
9773         COMMON var.
9774         (common_check): New function to check whether symbol in Fortran COMMON.
9775         (gen_variable_die): If COMMON, use DW_TAG_common_block.
9776
9777 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
9778
9779         PR c/35436
9780         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
9781
9782 2008-04-02  Ben Elliston  <bje@au.ibm.com>
9783
9784         * config/v850/v850.md (casesi): Remove if (0) code.
9785         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
9786         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9787
9788 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
9789
9790         * config/i386/i386.md (rex64suffix): New mode attribute.
9791         (floathi<mode>2): Disable expander for SSE math.
9792         (*floathi<mode>2_1): New insn insn_and_split pattern.
9793         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
9794         corresponding post-reload splitters.
9795         (*floathi<mode>2_i387): New macroized insn pattern.
9796         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
9797         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
9798         insn_and_split pattern.
9799         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
9800         New macroized instruction patterns and corresponding post-reload
9801         splitters.
9802         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
9803         and corresponding post-reload splitters.
9804         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
9805         New macroized instruction patterns.
9806         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
9807         macroized instruction patterns and corresponding post-reload splitters.
9808         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
9809         corresponding post-reload splitters.
9810         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
9811         New macroized instruction patterns.
9812         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
9813         corresponding post-reload splitters.
9814         (*floatsi<mode>2_i387): New macroized instruction patterns.
9815
9816 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
9817
9818         * config/i386/i386.md (smaxmin): New.
9819         (umaxmin): Likewise.
9820         (maxminiprefix): Likewise.
9821         (maxminfprefix): Likewise.
9822         (<code><mode>3): Likewise.
9823         (smin<mode>3): Removed.
9824         (smax<mode>3): Likewise.
9825
9826         * config/i386/mmx.md (mmx_<code>v2sf3): New.
9827         (mmx_<code>v4hi3): Likewise.
9828         (mmx_<code>v8qi3): Likewise.
9829         (mmx_smaxv2sf3): Removed.
9830         (mmx_sminv2sf3): Likewise.
9831         (mmx_umaxv8qi3): Likewise.
9832         (mmx_smaxv4hi3): Likewise.
9833         (mmx_uminv8qi3): Likewise.
9834         (mmx_sminv4hi3): Likewise.
9835
9836         * config/i386/sse.md (<addsub><mode>3): New.
9837         (*<addsub><mode>3): Likewise.
9838         (<sse>_vm<addsub><mode>3): Likewise.
9839         (<maxmin><mode>3): Likewise.
9840         (*<maxmin><mode>3_finite): Likewise.
9841         (*<maxmin><mode>3): Likewise.
9842         (<sse>_vm<maxmin><mode>3): Likewise.
9843         (sse3_h<addsub>v4sf3): Likewise.
9844         (sse3_h<addsub>v2df3): Likewise.
9845         (<maxmin>v16qi3): Likewise.
9846         (*<maxmin>v16qi3): Likewise.
9847         (<maxmin>v8hi3): Likewise.
9848         (*<maxmin>v8hi3): Likewise.
9849         (*sse4_1_<maxmin><mode>3): Likewise.
9850         (*sse4_1_<maxmin><mode>3): Likewise.
9851         (add<mode>3): Removed.
9852         (*add<mode>3): Likewise.
9853         (<sse>_vmadd<mode>3): Likewise.
9854         (sub<mode>3): Likewise.
9855         (*sub<mode>3): Likewise.
9856         (<sse>_vmsub<mode>3): Likewise.
9857         (smin<mode>3): Likewise.
9858         (*smin<mode>3_finite): Likewise.
9859         (*smin<mode>3): Likewise.
9860         (<sse>_vmsmin<mode>3): Likewise.
9861         (smax<mode>3): Likewise.
9862         (*smax<mode>3_finite): Likewise.
9863         (*smax<mode>3): Likewise.
9864         (<sse>_vmsmax<mode>3): Likewise.
9865         (sse3_haddv4sf3): Likewise.
9866         (sse3_haddv2df3): Likewise.
9867         (sse3_hsubv4sf3): Likewise.
9868         (sse3_hsubv2df3): Likewise.
9869         (umaxv16qi3): Likewise.
9870         (*umaxv16qi3): Likewise.
9871         (smaxv8hi3): Likewise.
9872         (*smaxv8hi3): Likewise.
9873         (*sse4_1_smax<mode>3): Likewise.
9874         (*sse4_1_umax<mode>3): Likewise.
9875         (uminv16qi3): Likewise.
9876         (*uminv16qi3): Likewise.
9877         (sminv8hi3): Likewise.
9878         (*sminv8hi3): Likewise.
9879         (*sse4_1_smin<mode>3): Likewise.
9880         (*sse4_1_umin<mode>3): Likewise.
9881
9882 2008-04-01  Rafael Espindola  <espindola@google.com>
9883
9884         * tree-cfg.c (verify_expr): remove in_phi.
9885         (verify_stmt): Don't call walk_tree with verify_expr. Use
9886         is_gimple_min_invariant instead of is_gimple_val.
9887
9888 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
9889
9890         * doc/include/gpl_v3.texi: Update for manpage generation.
9891         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9892         gpl.texi.
9893         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9894         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9895         gpl_v3.texi instead of gpl.texi.
9896         (gpl.pod): New.
9897
9898 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
9899
9900         PR pch/13675
9901         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9902
9903 2008-04-01  Rafael Espindola  <espindola@google.com>
9904
9905         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
9906         (extract_code_and_val_from_cond): Use
9907         extract_code_and_val_from_cond_with_ops.
9908
9909 2008-04-01  Jan Hubicka  <jh@suse.cz>
9910
9911         * function.c (free_after_compilation): Free epilogue_delay_list.
9912         (prepare_function_start): Assert that previous compilation was freed.
9913
9914 2008-04-01  Jan Hubicka  <jh@suse.cz>
9915             Jim Wilson  <wilson@tuliptree.org>
9916             Andreas Tobler <andreast@gcc.gnu.org>
9917
9918         PR middle-end/35781
9919         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
9920         rtl.emit instead cfun->emit.
9921         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
9922         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
9923
9924 2008-04-01  Ben Elliston  <bje@au.ibm.com>
9925
9926         * doc/c-tree.texi (Function Basics): Fix grammatical error.
9927
9928 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
9929
9930         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
9931         New options
9932         (fprofile-use): Add var flag_profile_use
9933         * coverage.c (coverage_begin_output): Do not open a gcno file for
9934         output only if -ftest-coverage is set.
9935         Do not add getpwd() to gcda file path.
9936         (build_gcov_info): Check the new flag
9937         flag_profile_datafile_relative_path.
9938         (coverage_init): Use profile_data_prefix.
9939         Read profile counter only if flag_profile_use is set.
9940         * opts.c (common_handle_option): New option fprofile-use=,
9941         fprofile-dir=, fprofile-generate=.
9942         * toplev.c (profile_data_prefix): New variable definition.
9943         * toplev.h (profile_data_prefix): New declaration.
9944         * doc/invoke.tex (Option Summary, Optimization Options):
9945         Add new options.
9946
9947 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
9948
9949         * varasm.c (output_constant_pool_1): In LABEL_REF check,
9950         use tmp consistently.
9951
9952         PR target/35695
9953         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9954         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9955         UNSPEC_FR_RECIP_APPROX_RES.
9956         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9957
9958 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
9959
9960         PR c/35750
9961         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
9962
9963 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9964
9965         PR middle-end/30186
9966         * fold-const.c (fold_indirect_ref_1): Support accessing non first
9967         element of the vector via a pointer.
9968
9969 2008-03-31  Ian Lance Taylor  <iant@google.com>
9970
9971         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
9972
9973 2008-03-31  Jan Hubicka  <jh@suse.cz>
9974
9975         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9976         get_arg_pointer_save_area.
9977         * expr.c (init_expr): Just clear out rtl.expr.
9978         * function.c (free_after_compilation): Clear out whole RTL structure.
9979         (get_func_frame_size): Merge into ...
9980         (get_frame_size): ... this one.
9981         (assign_stack_local_1): Merge into ...
9982         (assign_stack_local): ... this one.
9983         (expand_function_end): Update call of get_arg_pointer_save_area.
9984         (get_art_pointer_save_area): Remove cfun argument.
9985         * function.h (emit_status): regno_pointer_align does not need length
9986         attribute. Move x_regno_reg_rtx to ...
9987         (regno_reg_rtx): ... new global array.
9988         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
9989         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
9990         apply_args_value, forced_labels, stack_pointer_delta):
9991         Update accestors.
9992         (struct varasm_status): Move here from varasm.c
9993         (struct rtl_data): New. Move here some fields from struct function.
9994         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9995         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9996         used_temp_slots avail_temp_slots, temp_slot_level,
9997         nonlocal_goto_handler_labels): Update accesstors.
9998         (rtl): New global variable.
9999         (struct function): Move some fileds to rtl_data.
10000         (get_arg_pointer_save_area): Update prototype.
10001         * emit-rtl.c (rtl): Declare.
10002         (regno_reg_rtx): Declare.
10003         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10004         Update.
10005         (gen_reg_rtx): Update.
10006         (init_virtual_regs): Do not tate emit_status argument.
10007         (init_emit): Do not allocate emit.
10008         * varasm.c (varasm_statuc): Move to function.h.
10009         (n_deferred_constatns): Update accestor.
10010         (init_varasm_status): Do not allocate varasm_status.
10011         (force_const_mem, get_pool_size, output_constant_pool): Update.
10012         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10013         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10014
10015 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
10016
10017         PR rtl-optimization/35729
10018         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
10019         references.
10020
10021 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
10022
10023         PR target/32000
10024         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
10025         load/store if memory is unaligned.
10026         (*movti_rex64): Likewise.
10027
10028         * config/i386/predicates.md (misaligned_operand): New.
10029
10030 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
10031
10032         PR tree-opt/35431
10033         * tree-ssa-phiopt.c (conditional_replacement): Return early for
10034         complex types.
10035
10036 2008-03-31  Jan Beulich  <jbeulich@novell.com>
10037
10038         * config/ia64/constraints.md: Add 'j' constraint.
10039         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
10040         (movdi_internal): Likewise.
10041
10042 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
10043
10044         PR c/35748
10045         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
10046
10047 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
10048
10049         PR target/35757
10050         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
10051         proper error message for the third argument on blendpd and
10052         blendps.
10053
10054         * config/i386/sse.md (blendbits): New.
10055         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
10056
10057 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
10058
10059         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
10060
10061 2008-03-30  Richard Guenther  <rguenther@suse.de>
10062
10063         PR middle-end/31023
10064         * fold-const.c (fold_sign_changed_comparison): Do leave
10065         conversions to base-types alone.
10066
10067 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10068
10069         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
10070         the link register if one altivec register is be saved.
10071
10072 2008-03-30  Ben Elliston  <bje@au.ibm.com>
10073
10074         * final.c (final_scan_insn): Remove if (0) code.
10075
10076 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
10077
10078         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
10079
10080 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10081
10082         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
10083         of V4SFmode to ix86_binary_operator_ok.
10084
10085 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
10086
10087         * config/i386/i386.c (override_options): Initialize
10088         ix86_veclib_handler to ix86_veclibabi_svml when
10089         -mveclibabi=svml is used.
10090         (ix86_veclibabi_svml): New function for SVML ABI style
10091         vectorization support.
10092         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
10093
10094 2008-03-28  Rafael Espindola  <espindola@google.com>
10095
10096         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
10097         (tree_binary_nonnegative_warnv_p): Make it public.
10098         (tree_single_nonnegative_warnv_p): Make it public.
10099         (tree_invalid_nonnegative_warnv_p): Make it public.
10100         (tree_unary_nonzero_warnv_p): Make it public.
10101         (tree_binary_nonzero_warnv_p): Make it public
10102         (tree_single_nonzero_warnv_p): Make it public.
10103         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
10104         (extract_range_from_binary_expr): Split the expr argument.
10105         (extract_range_from_unary_expr): Split the expr argument.
10106         (extract_range_from_comparison): Split the expr argument.
10107         (extract_range_from_expr): Use the new aux functions.
10108         (vrp_evaluate_conditional_warnv): Use
10109         vrp_evaluate_conditional_warnv_with_ops.
10110         * tree.h (tree_unary_nonzero_warnv_p): Declare.
10111         (tree_binary_nonzero_warnv_p): Declare.
10112         (tree_single_nonzero_warnv_p): Declare.
10113         (tree_expr_nonzero_warnv_p): Declare.
10114         (tree_unary_nonnegative_warnv_p): Declare.
10115         (tree_binary_nonnegative_warnv_p): Declare.
10116         (tree_single_nonnegative_warnv_p): Declare.
10117         (tree_invalid_nonnegative_warnv_p): Declare.
10118
10119 2008-03-28  Richard Guenther  <rguenther@suse.de>
10120
10121         PR tree-optimization/30317
10122         PR tree-optimization/30911
10123         PR tree-optimization/34793
10124         * tree-vrp.c (set_and_canonicalize_value_range): New function.
10125         (struct assert_locus_d): New member EXPR.
10126         (register_new_assert_for): Add EXPR parameter to support
10127         ASSERT_EXPR <name, expr OP limit>.
10128         (register_edge_assert_for_1): Adjust callers.
10129         (find_assert_locations): Likewise.
10130         (process_assert_insertions_for): Build condition from expression.
10131         (extract_range_from_assert): Handle ASSERT_EXPRs
10132         of the form ASSERT_EXPR <name, expr OP limit>.
10133         (register_edge_assert_for_2): New helper registering
10134         asserts for comparisons.  Recognize range tests of the form
10135         (unsigned)i - CST1 OP CST2.
10136         (register_edge_assert_for_1): Use it.
10137         (register_edge_assert_for): Likewise.
10138         (needs_overflow_infinity): Integer sub-types
10139         do not need overflow infinities.
10140         (vrp_val_is_max): The extreme values of integer sub-types
10141         are those of the base type.
10142         (vrp_val_is_min): Likewise.
10143         * tree.def (ASSERT_EXPR): Document extra allowed conditional
10144         expressions.
10145
10146 2008-03-28  Nick Clifton  <nickc@redhat.com>
10147
10148         PR target/31110
10149         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
10150         Return GENERAL_REGS for stack adjustment reloads.
10151
10152 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10153
10154         PR target/31334
10155         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
10156         const_vector when all the vectors are constant.
10157
10158 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
10159
10160         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
10161         comparisons.
10162         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
10163         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
10164         (scc_sf): New.
10165         (s<code>_sf): Use new scc_sf attribute for opcode names.
10166
10167 2008-03-27  Tom Tromey  <tromey@redhat.com>
10168
10169         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
10170         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
10171         config/spu/t-spu-elf, config/i386/t-interix,
10172         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
10173         config/i386/x-darwin, config/i386/x-mingw32,
10174         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
10175         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
10176         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
10177         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
10178         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
10179         config/rs6000/x-darwin, config/rs6000/t-rs6000,
10180         config/score/t-score-elf, config/arm/t-strongarm-pe,
10181         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
10182         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
10183         Revert automatic dependency patch.
10184
10185 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10186
10187         PR target/35657
10188         * config/i386/i386.c (ix86_function_arg_boundary): Align
10189         decimal floating point to its natural boundary.
10190
10191 2008-03-27  Richard Guenther  <rguenther@suse.de>
10192
10193         PR middle-end/35716
10194         * fold-const.c (fold_comparison): Restrict distinct decl
10195         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
10196         solely rely on operand_equal_p.
10197
10198 2008-03-27  Richard Guenther  <rguenther@suse.de>
10199
10200         PR c/32511
10201         * c-common.c (handle_weak_attribute): Reject combination of
10202         weak and inline.
10203
10204 2008-03-27  Richard Guenther  <rguenther@suse.de>
10205
10206         PR tree-optimization/32810
10207         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
10208         conversions from DECL_INITIAL.
10209         (fold_const_aggregate_ref): Likewise from constructor elements.
10210
10211 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
10212
10213         * tree-affine.h (aff_combination_expand): Declare.
10214         (get_inner_reference_aff): Likewise.
10215         * tree-affine.c (aff_combination_expand): Split out from
10216         tree_to_aff_combination_expand.
10217         (get_inner_reference_aff): New function.
10218         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
10219         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
10220         (struct lim_aux_data): sm_done field removed.
10221         (mem_ref_loc_p, mem_ref_locs_p): New types.
10222         (struct mem_ref): Added id, stored, accesses_in_loop,
10223         indep_loop, dep_loop, indep_ref, dep_ref fields.
10224         Removed is_stored, locs and next fields.
10225         (memory_accesses): New variable.
10226         (movement_possibility): Do not allow moving statements
10227         that store to memory.
10228         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
10229         New functions.
10230         (determine_max_movement): For statements with memory references,
10231         find the outermost loop in that the reference is independent.
10232         (move_computations_stmt): Mark the virtual operands for renaming.
10233         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
10234         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
10235         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
10236         add_vop_ref_mapping, create_vop_ref_mapping_loop,
10237         create_vop_ref_mapping, analyze_memory_references,
10238         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
10239         get_all_locs_in_loop, ref_always_accessed_p,
10240         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
10241         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
10242         store_motion_loop, store_motion): New functions.
10243         (struct vop_to_refs_elt): New type.
10244         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
10245         memref_hash, memref_eq, hoist_memory_references): Rewritten.
10246         (schedule_sm): Replaced by...
10247         (execute_sm): ... this.
10248         (determine_lsm_ref, hoist_memory_references,
10249         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
10250         find_more_ref_vops, free_mem_ref, free_mem_refs,
10251         determine_lsm_loop, determine_lsm): Removed.
10252         (tree_ssa_lim_finalize): Free data structures used by store motion.
10253         (tree_ssa_lim): Call analyze_memory_references.  Use
10254         store_motion instead of determine_lsm.
10255
10256 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10257
10258         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
10259         rename tmake_file to m68hc11/t-m68hc11.
10260         (mcore): Set inhibit_libc to true.
10261         * config.host (alpha*-dec-*vms*): Set extra_programs.
10262         (interix3*): Don't use host_xmake_file.
10263         * configure.ac: Let config.gcc override inhibit_libc.
10264         * configure: Regenerate.
10265
10266         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
10267         * config/t-openbsd-thread: Remove commented out lines.
10268         
10269         * config/x-interix: Remove.
10270
10271         * config/m68hc11/t-m68hc11-gas: Rename to...
10272         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
10273
10274         * config/mcore/t-mcore: Remove T_CFLAGS.
10275         * config/mcore/t-mcore-pe: Likewise.
10276
10277 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
10278
10279         * configure.ac: Replace custom __GNU_SOURCE test with
10280         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
10281         * aclocal.m4: Regenerate.
10282         * configure: Regenerate.
10283         * config.in: Regenerate.
10284
10285 2008-03-27  Richard Guenther  <rguenther@suse.de>
10286
10287         * fold-const.c (target.h): Include.
10288         (fold_comparison): Fold comparison of addresses of decls
10289         that bind locally or of constants.  Consolidate address folding code.
10290         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
10291         results from fold_binary_to_constant.
10292         (compare_values_warnv): Likewise.
10293
10294 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
10295
10296         PR middle-end/35429
10297         * fold-const.c (fold_truthop): Check for integeral types when folding
10298         a == 0 && b == 0 and a != 0 || b != 0 .
10299
10300 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10301
10302         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
10303
10304 2008-03-26  Andreas Schwab  <schwab@suse.de>
10305
10306         * doc/invoke.texi: Fix use of @item vs. @itemx.
10307
10308 2008-03-26  Tom Tromey  <tromey@redhat.com>
10309
10310         * Makefile.in (build/gensupport.o, build/print-rtl.o,
10311         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
10312         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
10313         build/gencodes.o, build/genconditions.o, build/genconfig.o,
10314         build/genconstants.o, build/genemit.o, build/genextract.o,
10315         build/genflags.o, build/genmddeps.o, build/genopinit.o,
10316         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
10317         options.h.
10318
10319 2008-03-26  Richard Guenther  <rguenther@suse.de>
10320
10321         Revert
10322         2008-03-26  Richard Guenther  <rguenther@suse.de>
10323
10324         * fold-const.c (target.h): Include.
10325         (fold_comparison): Fold comparison of addresses of two decls
10326         that bind locally.  Consolidate address folding code.
10327
10328 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10329
10330         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
10331         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
10332         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
10333         dconstsqrt2, dconstthird, dconste and/or dconst10.
10334         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
10335         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
10336         dconstsqrt2, dconste): Delete.
10337         (init_emit_once): Likewise.  Simplify initializing dconstm1.
10338         Constify variable.
10339         * real.c (get_real_const): New.
10340         * real.h (dconst3, dconst10, dconstm2, dconstthird,
10341         dconstsqrt2, dconste): Delete.
10342         (real_value_const, get_real_const): New.
10343
10344 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10345
10346         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
10347
10348         * config/i386/i386.c (ix86_function_arg_boundary): Check
10349         BIGGEST_ALIGNMENT instead of 128.
10350         (setup_incoming_varargs_64): Likewise.
10351
10352 2008-03-26  Tom Tromey  <tromey@redhat.com>
10353
10354         * Makefile.in (DEPFILES): Add missing '/'.
10355
10356 2008-03-26  Richard Guenther  <rguenther@suse.de>
10357
10358         * fold-const.c (target.h): Include.
10359         (fold_comparison): Fold comparison of addresses of two decls
10360         that bind locally.  Consolidate address folding code.
10361
10362 2008-03-26  Nick Clifton  <nickc@redhat.com>
10363
10364         PR target/31232
10365         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
10366         not allow INT+INT as a legitimate addressing mode.
10367
10368 2008-03-26  Richard Guenther  <rguenther@suse.de>
10369
10370         * tree-flow.h (widen_bitfield): Remove declaration.
10371         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
10372         (widen_bitfield): Remove function.
10373         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
10374         code.
10375
10376 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10377
10378         PR target/31558
10379         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
10380         error_mark_node's.
10381
10382 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
10383
10384         PR rtl-optimization/35232
10385         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
10386         (forget_old_reloads_1, forget_marked_reloads): Don't clear
10387         reg_reloaded_call_part_clobbered here.
10388         (reload_regs_reach_end_p): New function.
10389         (reload_reg_rtx_for_input): New variable.
10390         (reload_reg_rtx_for_output): Likewise.
10391         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
10392         when reassigning a pseudo register.  Load reloadreg from 
10393         reload_reg_rtx_for_input, moving the mode and register
10394         calculation to...
10395         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
10396         instead of the original when deciding whether an input reload
10397         would be a no-op or whether an output reload can be deleted.
10398         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
10399         when setting up new_spill_reg_store.  Load it from
10400         reload_reg_rtx_for_output, moving the mode and register
10401         calculation to...
10402         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
10403         instead of the original when deciding whether an output reload
10404         would be a no-op.  Do the same when modifying insn notes.
10405         Use rtx_equal_p instead of == to compare the registers.
10406         (inherit_piecemeal_p): Take a mode and two register numbers
10407         as argument.
10408         (emit_reload_insns): Clear new_spill_reg_store for every hard
10409         register in the reload register.  Remove spill registers
10410         from reg_reloaded_valid before considering whether to record
10411         inheritance information for them.  Use reload_reg_rtx_for_output
10412         instead of reg_rtx when recording output reloads.  Use
10413         reload_reg_rtx_for_input instead of reg_rtx when recording
10414         input reloads.  Set or clear reg_reloaded_call_part_clobbered
10415         at the same time as setting reg_reloaded_valid.
10416         (delete_output_reload): Add a new_reload_reg parameter and use it
10417         instead of rld[j].reg_rtx.
10418         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
10419         calls accordingly.
10420
10421 2008-03-25  Tom Tromey  <tromey@redhat.com>
10422
10423         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
10424         (build/genattr.o): Likewise.
10425         (build/genattrtab.o): Likewise.
10426         (build/gencodes.o): Likewise.
10427         (build/genconfig.o): Likewise.
10428         (build/genconstants.o): Likewise.
10429         (build/genemit.o): Likewise.
10430         (build/genextract.o): Likewise.
10431         (build/genflags.o): Likewise.
10432
10433 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
10434         
10435         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
10436         instead of size_int for integer types.
10437         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
10438         to match type of MINUS_EXPR.
10439         
10440 2008-03-25  Tom Tromey  <tromey@redhat.com>
10441
10442         * configure: Rebuilt.
10443         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
10444         Makefile.
10445
10446 2008-03-25  Tom Tromey  <tromey@redhat.com>
10447
10448         * config/x-solaris (host-solaris.o): Update.
10449         * config/x-linux (host-linux.o): Update.
10450         * config/x-hpux (host-hpux.o): Update.
10451         * config/x-darwin (host-darwin.o): Update.
10452         * config/v850/t-v850e (v850-c.o): Update.
10453         * config/v850/t-v850 (v850-c.o): Update.
10454         * config/t-vxworks (vxworks.o): Update.
10455         * config/t-sol2 (sol2-c.o, sol2.o): Update.
10456         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
10457         * config/spu/t-spu-elf (spu-c.o): Update.
10458         (spu.o): Remove.
10459         * config/sh/t-symbian (sh-c.o): Update.
10460         (symbian.o): Update.
10461         * config/sh/t-sh (sh-c.o): Update.
10462         * config/score/t-score-elf (score7.o, score3.o): Update.
10463         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
10464         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
10465         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
10466         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
10467         (rs6000.o): Remove.
10468         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10469         * config/m32c/t-m32c (m32c-pragma.o): Update.
10470         * config/ia64/t-ia64 (ia64-c.o): Update.
10471         * config/i386/x-mingw32 (host-mingw32.o): Update.
10472         * config/i386/x-i386 (driver-i386.o): Update.
10473         * config/i386/x-darwin (host-i386-darwin.o): Update.
10474         * config/i386/x-cygwin (host-cygwin.o): Update.
10475         * config/i386/t-nwld (nwld.o): Update.
10476         * config/i386/t-netware (netware.o): Update.
10477         * config/i386/t-interix (winnt.o): Update.
10478         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
10479         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
10480         msformat-c.o): Update.
10481         * config/bfin/t-bfin-linux (generated_files): Add
10482         linux-sysroot-suffix.h.
10483         * config/arm/t-wince-pe (pe.o): Update.
10484         * config/arm/t-strongarm-pe (pe.o): Update.
10485         * config/arm/t-pe (pe.o): Update.
10486         * config/arm/t-arm (arm-c.o): Update.
10487         * doc/install.texi (Prerequisites): Require make 3.80.
10488         * Makefile.in: Remove .o targets.
10489         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
10490         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
10491         (simple_generated_h, simple_generated_c): Move earlier.
10492         (generated_files): New variable.
10493         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
10494         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
10495         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
10496         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
10497         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
10498         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
10499         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
10500         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
10501         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
10502         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
10503         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
10504         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
10505         (.c.o): Remove.
10506         (COMPILE.base, COMPILE): New variables.
10507         (%.o): New pattern rule.
10508         (ALL_HOST_OBJS): New variable.
10509         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
10510         (dummy-checksum.o, cc1-checksum.o): Remove.
10511         (DRIVER_SHLIB): New variable.
10512         (DRIVER_DEFINES): Use it.
10513         (gencondmd.c): Move out of build/.
10514         (s-conditions): Update.
10515         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
10516         (ALL_BUILD_OBJS): Likewise.
10517         (build/%.o): Use BUILDCOMPILE.
10518         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
10519         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
10520         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
10521         build/gencheck.o, build/gencodes.o, build/genconditions.o,
10522         build/genconfig.o, build/genconstants.o, build/genemit.o,
10523         build/genextract.o, build/genflags.o, build/genmddeps.o,
10524         build/genopinit.o, build/genoutput.o, build/genpeep.o,
10525         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
10526         build/gen-protos.o, build/scan.o, build/fix-header.o,
10527         build/scan-decls.o): Simplify.
10528         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
10529         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
10530         prefix.o, toplev.o): Reduce to variable setting.
10531         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
10532         ($(out_object_file), gcc-options.o): New targets.
10533         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
10534         * configure: Rebuilt.
10535         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
10536         * doc/sourcebuild.texi (Front End Directory): Document new variable.
10537
10538 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
10539
10540         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
10541         complain when we hit an error, return ERROR_MARK_NODE.
10542
10543 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10544
10545         * config/sh/constraints.md (Pso, Psz): New constraints.
10546         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
10547         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
10548
10549 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10550
10551         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
10552         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
10553
10554 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
10555
10556         * config/sh/sh.md (prefetch): Add condition for SH2A target.
10557         (prefetch_sh2a): New.   
10558
10559 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10560             Naveen.H.S  <naveen.hs@kpitcummins.com>
10561
10562         * config/sh/constraints.md (I28): New constraint.
10563         * config/sh/sh.c (broken_move): Add support for movi20s.
10564         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
10565
10566 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
10567             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
10568             Naveen.H.S  <naveen.hs@kpitcummins.com>
10569
10570         * config/sh/sh.c (SH_ATTRIBUTES): Define.
10571         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
10572         (print_operand): Handle resbank in %@ operand code.
10573         (sh_encode_section_info): New.
10574         (push_regs): Add conditions for resbank.
10575         (sh_expand_epilogue): Likewise.
10576         (sh_insert_attributes): Likewise.
10577         (sh_attribute_table): Likewise.
10578         (sh_handle_resbank_handler_attribute): New.
10579         (sh2a_handle_function_vector_handler_attribute): New.
10580         (sh2a_is_function_vector_call): New.
10581         (sh2a_get_function_vector_number): New.
10582         (sh2a_function_vector_p): New.
10583         (sh_cfun_resbank_handler_p): New.
10584         * config/sh/sh.md (calli): Emit jsr/n if possible.
10585         (calli_tbr_rel): New.
10586         (calli_pcrel): Emit jsr/n if possible.
10587         (return_i): Emit rts/n if possible.
10588         (call_valuei_tbr_rel): New.
10589         (call_valuei_pcrel): Add condition for SH2A target.
10590         (call_value): Likewise.
10591         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
10592         (sh2a_get_function_vector_number): Likewise.
10593         (sh2a_is_function_vector_call): Likewise.
10594         * doc/extend.texi: Document TBR relative addressing of SH2A.
10595         (resbank): Add description for SH2A.
10596
10597 2008-03-24  Richard Guenther  <rguenther@suse.de>
10598
10599         PR c/22371
10600         * gimplify.c (gimplify_modify_expr): For frontend type-correct
10601         pointer assignments change conversions according to middle-end rules.
10602         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
10603         * configure.ac: Include type checking in yes.
10604         * configure: Regenerate.
10605
10606 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10607
10608         * diagnostic.c (diagnostic_count_diagnostic): Delete.
10609         (diagnostic_report_diagnostic): Update. Handle ICEs here.
10610         
10611 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
10612
10613         * gthr-vxworks.h (UNUSED): Define.
10614
10615 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10616
10617         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
10618
10619 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
10620
10621         * doc/extend.texi (Function Attributes): Add missing comma in the
10622         example of the "alloc_size" attribute.
10623         
10624 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
10625
10626         Revert:
10627         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10628
10629         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10630         32bit host.
10631
10632         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10633
10634         PR target/35496
10635         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10636         of the underlying type of a MS bitfield layout to the natural
10637         alignment of the type.
10638
10639         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10640
10641         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10642         to their natural alignment to avoid store forwarding stalls.
10643
10644 2008-03-22  Richard Guenther  <rguenther@suse.de>
10645
10646         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
10647         For PHI nodes verify the address is invariant.
10648         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
10649         (get_symbol_constant_value): Use is_gimple_min_invariant.
10650         (maybe_fold_stmt_indirect): Likewise.
10651
10652 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
10653
10654         PR rtl-optimization/33927
10655         * Makefile.in (dse.o): Depend on $(TM_P_H).
10656         * expr.h (extract_low_bits): Declare.
10657         * expmed.c (extract_low_bits): New function.
10658         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
10659         * dse.c: Include tm_p.h.
10660         (find_shift_sequence): Remove the read_reg argument and return the
10661         read value.  Emit the instructions instead of returning them.
10662         Iterate on new_mode rather than calculating it each time.
10663         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
10664         source to NEW_MODE and extract_low_bits to convert the shifted
10665         value to READ_MODE.
10666         (replace_read): Allow the load and store to have different mode
10667         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
10668         or extraction instructions before trying the replacement.  Update
10669         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
10670
10671 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
10672
10673         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
10674         to their natural alignment to avoid store forwarding stalls.
10675
10676 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10677
10678         PR target/27946
10679         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
10680         encouraging but not allowing gprs for input;
10681         change the input constraint to !f#r.
10682         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
10683         gprs for output;
10684         change the output constraint to !f#r.
10685
10686 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
10687
10688         PR target/13958
10689         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
10690         corresponding post-reload splitters.
10691         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
10692         when x87 FP math is selected.
10693         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
10694         New function prototype.
10695         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
10696         unreachable function to ease macroization of insn patterns.
10697
10698 2008-03-21  Martin Jambor  <mjambor@suse.cz>
10699
10700         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
10701         reference dumps if ddr is NULL or dependence is unknown.
10702
10703 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10704
10705         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
10706         unsigned extension into account.
10707         (ATOMIC_COMPARE_AND_SWAP): Likewise.
10708         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
10709         Do computations on a scratch register.
10710
10711 2008-03-21  Richard Guenther  <rguenther@suse.de>
10712
10713         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10714         Use is_gimple_min_invariant instead of TREE_INVARIANT.
10715         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
10716         * tree-ssa-dom.c (record_equality): Likewise.
10717         * tree-inline.c (copy_body_r): Likewise.
10718         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
10719         TREE_INVARIANT.
10720
10721 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10722
10723         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
10724         as 'delete_unused' argument.
10725
10726 2008-03-20  Richard Guenther  <rguenther@suse.de>
10727
10728         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
10729         special casing of constant qualifiers.
10730         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
10731         care about them in general.
10732         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
10733         regardless of their type.
10734         (fold_stmt_r): Forcefully fold *& if we end up with that.
10735
10736 2008-03-20  Paul Brook  <paul@codesourcery.com>
10737
10738         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
10739         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
10740         linker flags.
10741         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
10742         definition.
10743         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
10744         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
10745
10746 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
10747
10748         * common.opt (Wmudflap): New option.
10749         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
10750         (mx_register_decls): Likewise.
10751         (mudflap_finish_file): Likewise.
10752         * doc/invoke.texi: Document -Wno-mudflap.
10753
10754 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
10755
10756         * c-format.c (replace_format_name_to_system_name): New.
10757         (cmp_attribs): New.
10758         (convert_format_name_to_system_name): New.
10759         (decode_format_attr): Add use of convert_format_name_to_system_name.
10760         (format_types_orig): Add gnu_ prefix to names.
10761         (check_format_info_main): Special treating of \0 escaped names for
10762         supporting multi-character format specifiers as I32, I64.
10763         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
10764         (gnu_target_overrides_format_attributes): New.
10765         * c-format.h: Add structure target_ovr_attr to hold
10766         system specific formatter names.
10767         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
10768         msformat-c.o file to c_target_objs and cxx_target_objs.
10769         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10770         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
10771         (TARGET_N_FORMAT_TYPES): New.
10772         * config/i386/msformat-c.c: New.
10773         * config/i386/t-cygming: Add build rule for msformat-c.o.
10774         * doc/extend.texi: Add new format names gnu_* and ms_* and
10775         further details.
10776         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
10777
10778 2008-03-20  Ira Rosen  <irar@il.ibm.com>
10779
10780         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
10781         optimizations turned on under -O3.
10782         (ftree-vectorize): Add that the flag is turned on with -O3.
10783
10784 2008-03-20  Ben Elliston  <bje@au.ibm.com>
10785
10786         * regmove.c (try_auto_increment): Fix spelling error in comment.
10787         * final.c (final_scan_insn): Likewise.
10788
10789 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
10790
10791         PR target/14552
10792         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
10793         allocator preferences for "y" and "r" class registers.
10794         ("*mov<mode>_internal"): Ditto.
10795         ("*movv2sf_internal_rex64"): Ditto.
10796         ("*movv2sf_internal"): Ditto.
10797
10798 2008-03-19  Michael Matz  <matz@suse.de>
10799
10800         PR middle-end/35616
10801         * calls.c (expand_call): Check overlap of arguments with call
10802         address for sibcalls.
10803
10804 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
10805
10806         PR target/35496
10807         * stor-layout.c (update_alignment_for_field): Set minimum alignment
10808         of the underlying type of a MS bitfield layout to the natural
10809         alignment of the type.
10810
10811 2008-03-19  Jan Hubicka  <jh@suse.cz>
10812
10813         PR other/35094
10814         * toplev.c (decode_d_option): Handle all CPP flags.
10815         * tree-vrp.c: Update tree_pass descriptors.
10816         * regrename.c: Update tree_pass descriptors.
10817         * fwprop.c: Update tree_pass descriptors.
10818         * doc/invoke.texi: Remove documentation of dropped -d? flags.
10819         * tree-into-ssa.c: Update tree_pass descriptors.
10820         * tree-dump.c: Update tree_pass descriptors.
10821         * tree-complex.c: Update tree_pass descriptors.
10822         * tree-dump.h: Update tree_pass descriptors.
10823         * see.c: Update tree_pass descriptors.
10824         * cgraphbuild.c: Update tree_pass descriptors.
10825         * tracer.c: Update tree_pass descriptors.
10826         * tree-loop-distribution.c: Update tree_pass descriptors.
10827         * cgraph.c: Update tree_pass descriptors.
10828         * postreload-gcse.c: Update tree_pass descriptors.
10829         * postreload.c: Update tree_pass descriptors.
10830         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
10831         * tree-tailcall.c: Update tree_pass descriptors.
10832         * tree-pass.h (tree_opt_pass): Rename to ...
10833         (opt_pass) ... this one; add "type" field and remove letter field.
10834         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
10835         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
10836         all_lowering_passes): Update declaration.
10837         * ipa-cp.c: Update tree_pass descriptors.
10838         * final.c: Update tree_pass descriptors.
10839         * omp-low.c: Update tree_pass descriptors.
10840         * tree-ssa-dse.c: Update tree_pass descriptors.
10841         * ipa-reference.c: Update tree_pass descriptors.
10842         * tree-ssa-uncprop.c: Update tree_pass descriptors.
10843         * auto-inc-dec.c: Update tree_pass descriptors.
10844         * reorg.c: Update tree_pass descriptors.
10845         * cgraphunit.c: Update tree_pass descriptors.
10846         * tree-ssa-copyrename.c: Update tree_pass descriptors.
10847         * tree-ssa-ccp.c: Update tree_pass descriptors.
10848         * df-core.c: Update tree_pass descriptors.
10849         * mode-switching.c: Update tree_pass descriptors.
10850         * tree-nomudflap.c: Update tree_pass descriptors.
10851         * modulo-sched.c: Update tree_pass descriptors.
10852         * ipa-pure-const.c: Update tree_pass descriptors.
10853         * cse.c: Update tree_pass descriptors.
10854         * web.c: Update tree_pass descriptors.
10855         * tree-stdarg.c: Update tree_pass descriptors.
10856         * tree-ssa-math-opts.c: Update tree_pass descriptors.
10857         * tree-ssa-dom.c: Update tree_pass descriptors.
10858         * tree-nrv.c: Update tree_pass descriptors.
10859         * tree-ssa-alias.c: Update tree_pass descriptors.
10860         * loop-init.c: Update tree_pass descriptors.
10861         * gimple-low.c: Update tree_pass descriptors.
10862         * ipa-inline.c: Update tree_pass descriptors.
10863         * tree-ssa-sink.c: Update tree_pass descriptors.
10864         * global.c: Update tree_pass descriptors.
10865         * ifcvt.c: Update tree_pass descriptors.
10866         * jump.c: Update tree_pass descriptors.
10867         * predict.c: Update tree_pass descriptors.
10868         * tree-ssa-loop.c: Update tree_pass descriptors.
10869         * recog.c: Update tree_pass descriptors.
10870         * dse.c: Update tree_pass descriptors.
10871         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
10872         * tree-eh.c: Update tree_pass descriptors.
10873         * regmove.c: Update tree_pass descriptors.
10874         * local-alloc.c
10875         * function.c: Update tree_pass descriptors.
10876         * tree-vectorizer.c: Update tree_pass descriptors.
10877         * gcse.c: Update tree_pass descriptors.
10878         * ipa-type-escape.c: Update tree_pass descriptors.
10879         * tree-if-conv.c: Update tree_pass descriptors.
10880         * init-regs.c: Update tree_pass descriptors.
10881         * ipa.c: Update tree_pass descriptors.
10882         * tree-ssa-phiopt.c: Update tree_pass descriptors.
10883         * rtl-factoring.c: Update tree_pass descriptors.
10884         * lower-subreg.c: Update tree_pass descriptors.
10885         * bt-load.c: Update tree_pass descriptors.
10886         * tree-dfa.c: Update tree_pass descriptors.
10887         * except.c: Update tree_pass descriptors.
10888         * emit-rtl.c: Update tree_pass descriptors.
10889         * cfgexpand.c: Update tree_pass descriptors.
10890         * tree-cfgcleanup.c: Update tree_pass descriptors.
10891         * cfgcleanup.c: Update tree_pass descriptors.
10892         * tree-ssa-pre.c: Update tree_pass descriptors.
10893         * tree-sra.c: Update tree_pass descriptors.
10894         * tree-mudflap.c: Update tree_pass descriptors.
10895         * tree-ssa-copy.c: Update tree_pass descriptors.
10896         * cfglayout.c: Update tree_pass descriptors.
10897         * tree-ssa-forwprop.c: Update tree_pass descriptors.
10898         * tree-ssa-dce.c: Update tree_pass descriptors.
10899         * tree-ssa.c: Update tree_pass descriptors.
10900         * regclass.c: Update tree_pass descriptors.
10901         * integrate.c: Update tree_pass descriptors.
10902         * tree-optimize.c: Update tree_pass descriptors.
10903         * tree-ssa-phiprop.c: Update tree_pass descriptors.
10904         * tree-object-size.c: Update tree_pass descriptors.
10905         * combine.c: Update tree_pass descriptors.
10906         * tree-outof-ssa.c: Update tree_pass descriptors.
10907         * bb-reorder.c: Update tree_pass descriptors.
10908         * stack-ptr-mod.c: Update tree_pass descriptors.
10909         * var-tracking.c: Update tree_pass descriptors.
10910         * tree-profile.c: Update tree_pass descriptors.
10911         * tree-vect-generic.c: Update tree_pass descriptors.
10912         * reg-stack.c: Update tree_pass descriptors.
10913         * sched-rgn.c: Update tree_pass descriptors.
10914         * tree-ssa-structalias.c: Update tree_pass descriptors.
10915         * tree-cfg.c: Update tree_pass descriptors.
10916         * passes.c (current_pass): Update declaration.
10917         (finish_optimization_passes): Update.
10918         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
10919         (register_one_dump_file, register_dump_files_1, next_pass_1):
10920         Update arguments.
10921         (init_optimization_passes): Update handling of new types.
10922         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
10923         * ipa-struct-reorg.c: Update tree_pass descriptors.
10924         * tree-ssa-reassoc.c: Update tree_pass descriptors.
10925         * combine-stack-adj.c: Update tree_pass descriptors.
10926         * cfgrtl.c: Update tree_pass descriptors.
10927         * dce.c: Update tree_pass descriptors.
10928         * tree-ssanames.c: Update tree_pass descriptors.
10929
10930 2008-03-19  Richard Guenther  <rguenther@suse.de>
10931
10932         PR middle-end/35609
10933         * tree-ssa.c (walk_data): New structure.
10934         (warn_uninitialized_var): If not always_executed warn with "maybe"
10935         instead of "is".
10936         (execute_early_warn_uninitialized): Compute post-dominators.
10937         Initialize always_executed before processing each basic block.
10938
10939 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10940
10941         PR target/35504
10942         * config/i386/i386.c (x86_this_parameter): Calculate correct location
10943         of "this" pointer when "regparm = N" or "fastcall" is in effect.
10944
10945 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10946
10947         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10948
10949 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10950
10951         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10952         is true.
10953         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10954         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10955         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
10956         target after ignore has been set, and move there also the commputation
10957         of subtarget and original_target.
10958         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10959         (LANG_HOOKS_INITIALIZER): Remove it.
10960         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
10961
10962 2008-03-18  Richard Guenther  <rguenther@suse.de>
10963
10964         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
10965         found an expression with constants, note that in the VN for the lhs.
10966         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
10967         fold them to constants if possible.  Run cleanup_cfg if done so.
10968         (execute_pre): Return todo.
10969         (do_pre): Likewise.
10970         (execute_fre): Likewise.
10971         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
10972         of constants.
10973         (get_prop_source_stmt): Look through pointer conversions.
10974
10975 2008-03-18  Jan Hubicka  <jh@suse.cz>
10976
10977         * tree-pretty-print.c: Include predict.h.
10978         (dump_generic_node): Dump predictor.
10979         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
10980         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
10981         * gimple-low.c (lower_stmt): Likewise.
10982         * expr.c (expand_expr_real): Likewise.
10983         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
10984         them.
10985         (build_predict_expr, build_predict_expr): New.
10986         * predict.h (predictor_name, build_predict_expr): Update.
10987         * c-typeck.c (c_finish_bc_stmt): Add prediction.
10988         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
10989         * predict.def (PRED_CONTINUE): Update hitrate.
10990         * tree.def (PREDICT_EXPR): Define.
10991         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
10992         do not handle BIND_EXPR.
10993         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
10994         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
10995         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
10996         operands.
10997
10998 2008-03-18  Michael Matz  <matz@suse.de>
10999
11000         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
11001
11002 2008-03-18  Richard Guenther  <rguenther@suse.de>
11003
11004         * tree-gimple.h (is_gimple_invariant_address): Declare.
11005         (is_gimple_constant): Likewise.
11006         * tree-gimple.c (is_gimple_constant): New function.
11007         (is_gimple_invariant_address): Likewise.
11008         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
11009         and is_gimple_invariant_address.
11010         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
11011         previous change.
11012         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
11013         an addressable base.
11014
11015 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11016
11017         PR middle-end/35611
11018         * gimplify.c (gimplify_expr): Gimplify second operand of
11019         OMP_ATOMIC_LOAD.
11020
11021 2008-03-17  Richard Guenther  <rguenther@suse.de>
11022
11023         PR tree-optimization/19637
11024         * fold-const.c (fold_unary): Remove restrictions of removing
11025         intermediate pointer-conversions (P2)(P1)P0.
11026         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
11027         conversion to void pointer.
11028         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
11029
11030 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
11031
11032         PR debug/31510
11033         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
11034         emulated thread local variables.
11035
11036 2008-03-16  Richard Guenther  <rguenther@suse.de>
11037
11038         PR middle-end/35607
11039         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
11040         expand TREE_INVARIANT operations that are not gimple invariant.
11041
11042 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
11043
11044         * doc/extend.texi (Alignment): Say that the ABI controls
11045         the __alignof__ for non-strict-alignment targets rather
11046         than being a recommendation.
11047
11048 2008-03-15  Paul Brook  <paul@codesourcery.com>
11049
11050         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
11051         annotations.
11052         (arm_output_fn_unwind): Mark functions that can not be unwound.
11053
11054 2008-03-15  Paul Brook  <paul@codesourcery.com>
11055
11056         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
11057         extension instructions.
11058
11059 2008-03-15  Richard Guenther  <rguenther@suse.de>
11060
11061         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
11062         and fold constant aggregate refs.
11063         (fold_const_aggregate_ref): Handle string constants
11064         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
11065         (evaluate_stmt): Simplify now that ccp_fold folds constant
11066         aggregate refs.
11067
11068 2008-03-15  Paul Brook  <paul@codesourcery.com>
11069
11070         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
11071         (extzv): Use gen_extzv_t2.
11072         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
11073
11074 2008-03-15  Richard Guenther  <rguenther@suse.de>
11075
11076         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
11077         (fold_const_aggregate_ref): Likewise.
11078         (get_value): Return NULL if we don't have any values.
11079         (ccp_finalize): Set const_val to NULL after freeing it.
11080         * tree-flow.h (get_symbol_constant_value): Declare.
11081         (fold_const_aggregate_ref): Likewise.
11082         * tree-ssa-sccvn.c (try_to_simplify): Use them.
11083
11084 2008-03-15  Richard Guenther  <rguenther@suse.de>
11085
11086         PR middle-end/35593
11087         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
11088         to not produce negative array indices if not allowed.  Add
11089         parameter to indicate that.
11090         (maybe_fold_offset_to_component_ref): Allow negative array
11091         indices only for the first member of a structure.
11092         (maybe_fold_offset_to_reference): Allow negative array indices.
11093         (maybe_fold_stmt_addition): Likewise.
11094
11095 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
11096             Anatoly Sokolov <aesok@post.ru>
11097
11098         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
11099         (avr_arch): Add ARCH_AVR6.
11100         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
11101         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
11102         instead of fixed value 2.
11103         (print_operand_address): Use gs() asm specifier instead of pm().
11104         (avr_assemble_integer): (Ditto.).
11105         (avr_output_addr_vec_elt): (Ditto.).
11106         (print_operand): Handle "!" code.
11107         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
11108         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
11109         (AVR_HAVE_EIJMP_EICALL): Define.
11110         (AVR_3_BYTE_PC): Redefine.
11111         (AVR_2_BYTE_PC): (Ditto.).
11112         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
11113         (LINK_SPEC): Add atmega2560 and atmega2561.
11114         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
11115         (crtm2561.o).
11116         * config/avr/avr.md (call_insn): Use eicall instead of icall 
11117         for 3 byte PC devices.
11118         (call_value_insn): (Ditto.).
11119         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
11120         (indirect_jump): Use only for for 2 byte PC devices.
11121         (*tablejump): (Ditto.).
11122         (*indirect_jump_avr6): Add insn.
11123         (*tablejump_rjmp): Don't use for 3 byte PC devices.
11124         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
11125         instead of ijmp for 3 byte PC devices.
11126         (__tablejump2__): (Ditto.).
11127         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
11128         (MULITLIB_DIRNAMES): (Ditto.). 
11129         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
11130
11131 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
11132
11133         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
11134         "sse2_umulsidi3".  Use V1DI mode for operand 0.
11135         ("mmx_psadbw"): Use V1DI mode for operand 0.
11136         * config/i386/i386-modes.def (V1SI): New vector mode.
11137         * config/i386/i386.c (struct builtin_description)
11138         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
11139         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
11140         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
11141         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
11142         v1di_ftype_v8qi_v8qi type.
11143         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
11144
11145         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
11146         __builtin_ia32_pmuludq]: Fix the mode of return value.
11147
11148 2008-03-15  Richard Guenther  <rguenther@suse.de>
11149
11150         PR middle-end/35595
11151         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
11152         being a PHI_NODE.
11153
11154 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
11155         
11156         * doc/invoke.texi (Option Summary, Xtensa Options): Document
11157         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
11158         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
11159         unless TARGET_SERIALIZE_VOLATILE is enabled.
11160         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
11161         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
11162         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
11163
11164 2008-03-14  Richard Guenther  <rguenther@suse.de>
11165
11166         PR tree-optimization/34172
11167         * tree-flow.h (refs_may_alias_p): Declare.
11168         (get_single_def_stmt): Likewise.
11169         (get_single_def_stmt_from_phi): Likewise.
11170         (get_single_def_stmt_with_phi): Likewise.
11171         * tree-dfa.c (refs_may_alias_p): New function.
11172         (get_single_def_stmt): Likewise.
11173         (get_single_def_stmt_from_phi): Likewise.
11174         (get_single_def_stmt_with_phi): Likewise.
11175         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
11176         (vn_reference_lookup_1): New helper function.
11177         (vn_reference_lookup): Walk the virtual use-def chain to
11178         continue searching for a match if the def does not alias the
11179         reference we are looking for.
11180
11181 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
11182
11183         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
11184         archive and Perzl.  Update The Written Word listing.
11185
11186 2008-03-14  Richard Guenther  <rguenther@suse.de>
11187
11188         PR tree-optimization/34043
11189         PR tree-optimization/33989
11190         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
11191         when doing FRE.
11192         (bitmap_find_leader): Use extra argument to verify dominance
11193         relationship inside a basic-block.
11194         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
11195         (find_leader_in_sets): Adjust.
11196         (create_component_ref_by_pieces): Take extra argument for
11197         dominance check, handle lookup failures.
11198         (find_or_generate_expression): Likewise.
11199         (create_expression_by_pieces): Likewise.
11200         (insert_into_preds_of_block): Adjust.
11201         (create_value_expr_from): If asked for, verify all operands
11202         are in the blocks AVAIL_OUT set.
11203         (make_values_for_stmt): Check for SSA_NAMEs that are life
11204         over an abnormal edge.
11205         (compute_avail): Remove such check.
11206         (do_SCCVN_insertion): New function.
11207         (eliminate): If we do not find a leader suitable for replacement
11208         insert a replacement expression from SCCVN if available.
11209         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
11210         (struct vn_ssa_aux): Add needs_insertion flag.
11211         * tree-ssa-sccvn.c (may_insert): New global flag.
11212         (copy_reference_ops_from_ref): Value-number union member access
11213         based on its size, not type and member if insertion is allowed.
11214         (visit_reference_op_load): For a weak match from union type
11215         punning lookup a view-converted value and insert a SSA_NAME
11216         for that value if that is not found.
11217         (visit_use): Make dumps shorter.  Do not disallow value numbering
11218         SSA_NAMEs that are life over an abnormal edge to constants.
11219         (free_scc_vn): Release inserted SSA_NAMEs.
11220         (run_scc_vn): New flag to specify whether insertion is allowed.
11221         Process SSA_NAMEs in forward order.
11222         * tree-ssa-loop-im.c (for_each_index): Handle invariant
11223         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
11224         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
11225         pointer type to/from integral types that do not change the
11226         precision to regular conversions.
11227
11228 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11229
11230         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11231         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11232         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
11233         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
11234         input arguments and the mode of return value.  Built-in functions
11235         that operate on whole 64-bit MMX register now use V1DI mode.
11236
11237 2008-03-13  Alon Dayan  <alond@il.ibm.com>
11238             Olga Golovanevsky  <olga@il.ibm.com>
11239
11240         PR tree-optimization/35041
11241         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
11242         to locate the right position in a statement.
11243
11244 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
11245
11246         PR target/34000
11247         PR target/35553
11248         * config/i386/xmmintrin.h:  Change all static inline functions to
11249         extern inline and add __gnu_inline__ attribute.
11250         * config/i386/bmintrin.h: Ditto.
11251         * config/i386/smmintrin.h: Ditto.
11252         * config/i386/tmmintrin.h: Ditto.
11253         * config/i386/mmintrin-common.h: Ditto.
11254         * config/i386/ammintrin.h: Ditto.
11255         * config/i386/emmintrin.h: Ditto.
11256         * config/i386/pmmintrin.h: Ditto.
11257         * config/i386/mmintrin.h: Ditto.
11258         * config/i386/mm3dnow.h: Ditto.
11259
11260 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11261
11262         PR middle-end/35185
11263         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
11264         (lower_omp_2): New function.
11265         (lower_omp_1, lower_omp): Rewritten.
11266
11267 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
11268
11269         PR 35054
11270         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
11271         with the phrase "Microsoft Windows compilers".
11272         (Push/Pop Macro Pragmas): New subsection. Document
11273         #pragma push_macro and pragma pop_macro.
11274
11275 2008-03-12  Paul Brook  <paul@codesourcery.com>
11276
11277         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
11278
11279 2008-03-12  Paul Brook  <paul@codesourcery.com>
11280
11281         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
11282         (thumb2_alusi3_short): Exclude PLUS and MINUS.
11283         (thumb2_addsi_shortim): Rename ...
11284         (thumb2_addsi_short): ... to this.  Allow register operands.
11285         (thumb2_subsi_short): New pattern.
11286         (thumb2_one_cmplsi2_short,
11287         thumb2_negsi2_short): New patterns and peepholes.
11288
11289 2008-03-12  Paul Brook  <paul@codesourcery.com>
11290
11291         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
11292
11293 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
11294
11295         * config/i386/i386.md (int_cond): New code iterator.
11296         (fp_cond): Ditto.
11297         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
11298         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
11299         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
11300         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
11301         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
11302         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
11303         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
11304         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
11305
11306 2008-03-12  Paul Brook  <paul@codesourcery.com>
11307
11308         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
11309         instead of {arm,thumb}_compute_save_reg_mask.
11310         (output_return_instruction): Ditto.
11311         (thumb_unexpanded_epilogue): Ditto.
11312         (thumb1_expand_prologue): Ditto.
11313         (thumb1_output_function_prologue): Ditto.
11314         (arm_set_return_address): Ditto.
11315         (thumb_set_return_address): Ditto.
11316         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
11317         regs to achieve stack alignment.
11318         (thumb1_compute_save_reg_mask): Fix compiler warning.
11319         (arm_output_epilogue): Use offsets->saved_regs_mask.
11320         Adjust stack pointer by poping call clobered registers.
11321         (arm_expand_prologue): Use offsets->saved_regs_mask.
11322         Adjust stack pointer by pushing extra registers.
11323         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
11324
11325 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
11326
11327         PR tree-opt/35422
11328         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
11329         conversion to the operands of a multiplication.
11330
11331 2008-03-12  Richard Guenther  <rguenther@suse.de>
11332
11333         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
11334         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
11335         * timevar.def (TV_TREE_PHIPROP): Add.
11336         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
11337         pass description.  Use TV_TREE_PHIPROP.
11338         * tree-ssa-forwprop.c: Remove phiprop code.
11339
11340 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11341
11342         PR middle-end/35549
11343         * omp-low.c (maybe_lookup_decl): Constify first argument.
11344         (use_pointer_for_field): Change last argument from bool to
11345         omp_context *.  Disallow shared copy-in/out in nested
11346         parallel if decl is shared in outer parallel too.
11347         (build_outer_var_ref, scan_sharing_clauses,
11348         lower_rec_input_clauses, lower_copyprivate_clauses,
11349         lower_send_clauses, lower_send_shared_vars): Adjust callers.
11350
11351 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
11352             Ira Rosen  <irar@il.ibm.com>
11353
11354         * tree-vectorizer.c (free_stmt_vec_info): New function.
11355         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
11356         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
11357         * tree-vectorizer.h (free_stmt_vec_info): Declare.
11358         * tree-vect-transform.c (vectorizable_conversion): Free
11359         vec_oprnds0 if it was allocated.
11360         (vect_permute_store_chain): Remove unused VECs.
11361         (vectorizable_store): Free VECs that are allocated in the..
11362         function.
11363         (vect_transform_strided_load, vectorizable_load): Likewise.
11364         (vect_remove_stores): Simplify the code.
11365         (vect_transform_loop): Move code to vect_remove_stores().
11366         Call vect_remove_stores() and free_stmt_vec_info().
11367
11368 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11369
11370         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
11371         TARGET_HPUX.  Revise comment.
11372         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
11373         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
11374         Use sr4 variant of `be' instruction when not generating PIC code.
11375         (attr_length_call): Adjust for above change.
11376
11377 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11378
11379         * ipa-reference.c (static_execute): Remove module_statics_const and
11380         associated setting code.
11381
11382 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11383
11384         PR target/35540
11385         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
11386         predicate for operand 1.
11387         (paritysi2_cmp): Use register_operand predicate for operand 2.
11388         Use earlyclobber modifier for operand 1.  Remove support for
11389         memory operands.
11390         (paritydi2_cmp): Use register_operand predicate for operand 3.
11391         Use earlyclobber modifier for operand 1.  Remove support for
11392         memory operands.
11393
11394 2008-03-11  Paul Brook  <paul@codesourcery.com>
11395             Vladimir Prus  <vladimir@codesourcery.com>
11396
11397         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
11398         (arm_compute_save_reg0_reg12_mask): Always
11399         check if register 11 must be saved.  Always safe hard frame pointer
11400         when frame_pointer_needeed.
11401         (arm_compute_save_reg_mask): Save IP and PC
11402         only with apcs frames.
11403         (arm_output_epilogue): Adjust Thumb2 codepath to
11404         be also invoked and work for ARM non-apcs frames.
11405         (arm_expand_prologue): Don't bother saving IP
11406         for non-apcs frame, since it's not clobbered by
11407         prologue code.  Implement non-apcs frame
11408         layout.
11409
11410 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11411
11412         PR rtl-optimization/35281
11413         * expr.c (convert_move): Use a new pseudo for the intermediate
11414         from_mode->word_mode result.
11415
11416 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
11417
11418         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
11419         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
11420         * toplev.c (compile_file): Don't call it.
11421
11422 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
11423
11424         PR middle-end/35526
11425         * expr.c (store_expr): Call emit_block_move if the mode
11426         of "temp" RTX is BLKmode.
11427
11428 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11429             Richard Guenther  <rguenther@suse.de>
11430
11431         PR tree-optimization/31358
11432         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
11433         the step with a NULL_TREE.
11434         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
11435         to sizetype if type is a pointer type.
11436         (add_candidate_1): Don't convert the base and step to
11437         the generic type if the orginal type is a pointer type.
11438         (add_iv_value_candidates): Use sizetype for the step
11439         if type is a pointer type.
11440         (cand_value_at): Likewise.
11441         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
11442         for pointer types.
11443         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
11444         Don't convert the tem affine to the type.
11445         (add_elt_to_tree): Use sizetype for the step if a pointer.
11446         Use POINTER_PLUS_EXPR for pointers.
11447         (aff_combination_to_tree): Use sizetype for the step if a
11448         pointer.
11449
11450 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
11451
11452         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
11453         Remove commutativity hint.
11454
11455 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
11456
11457         PR c/35438
11458         PR c/35439
11459         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
11460         errorneous type.  Check that v is a VAR_DECL.
11461
11462         PR middle-end/35099
11463         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
11464
11465 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
11466
11467         PR tree-optimization/35494
11468         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
11469         may be overriden at link and run time.
11470
11471 2008-03-10  Richard Guenther  <rguenther@suse.de>
11472
11473         PR tree-optimization/34677
11474         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
11475         (poolify_tree): Likewise.
11476         (modify_expr_template): Likewise.
11477         (poolify_modify_stmt): Likewise.
11478         (insert_fake_stores): Handle all component-ref style stores
11479         in addition to INDIRECT_REF.  Also handle complex types.
11480         Do not poolify the inserted load.
11481         (realify_fake_stores): Do not rebuild the tree but only
11482         make it a SSA_NAME copy.
11483         (init_pre): Remove initialzation of modify_expr_template.
11484         Do not allocate modify_expr_node_pool.
11485         (fini_pre): Do not free modify_expr_node_pool.
11486
11487 2008-03-10  Paul Brook  <paul@codesourcery.com>
11488
11489         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
11490         to avoid conflicts.
11491
11492 2008-03-10  Paul Brook  <paul@codesourcery.com>
11493             Mark Shinwell  <shinwell@codesourcery.com>
11494
11495         * config/arm/cortex-r4.md: New.
11496         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
11497         insn attributes.
11498         * config/arm/arm.md: Include cortex-r4.md.
11499         (insn): Add smmls, sdiv and udiv values.
11500         (generic_sched): Don't use generic scheduling for Cortex-R4.
11501         (arm_issue_rate): New function.
11502         (TARGET_SCHED_ISSUE_RATE): Define.
11503
11504 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
11505
11506         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
11507
11508 2008-03-10  Richard Guenther  <rguenther@suse.de>
11509
11510         * tree-ssa-pre.c (get_sccvn_value): Simplify.
11511         (compute_avail): Do not add stmt uses to AVAIL_OUT.
11512
11513 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
11514
11515         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
11516         Set default to true.
11517
11518 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11519
11520         * c.opt (Wsynth): Deprecate.
11521         * doc/invoke.texi (Option Summary, Warning Options): Document
11522         -Wno-format-contains-nul.
11523
11524 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
11525
11526         PR target/35496
11527         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
11528         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
11529
11530 2008-03-09  Ira Rosen  <irar@il.ibm.com>
11531
11532         * config/rs6000/rs6000.c (builtin_description): Rename vector
11533         left shift operations.
11534         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
11535         (altivec_vsl<VI_char>): Rename to ...
11536         (ashl<mode>3): ... new name.
11537         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
11538         gen_ashlv4si3.
11539         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
11540
11541 2008-03-08  Richard Guenther  <rguenther@suse.de>
11542
11543         * coverage.h (tree_coverage_counter_addr): Declare.
11544         * coverage.c (tree_coverage_counter_addr): New function.
11545         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
11546         before using again.
11547         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
11548         (tree_gen_one_value_profiler): Likewise.
11549         (tree_gen_ic_profiler): Likewise.
11550         (tree_gen_average_profiler): Likewise.
11551         (tree_gen_ior_profiler): Likewise.
11552
11553 2008-03-08  Richard Guenther  <rguenther@suse.de>
11554
11555         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
11556         (vn_binary_op_insert): Likewise.
11557         (vn_unary_op_lookup): Likewise.
11558         (vn_unary_op_insert): Likewise.
11559         (vn_nary_op_lookup): Declare.
11560         (vn_nary_op_insert): Likewise.
11561         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
11562         and binary hashes, use a single obstack for unary_op_pool
11563         and binary_op_pool.
11564         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
11565         a single struct vn_nary_op_s.  Store tree code length and
11566         a variable number of operands.
11567         (struct vn_reference_op_struct): Remove unused op2.
11568         (vn_reference_op_eq): Do not compare op2.
11569         (vn_reference_op_compute_hash): Do not compute hash of op2.
11570         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
11571         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
11572         with vn_nary_op_compute_hash.
11573         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
11574         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
11575         vn_nary_op_lookup.
11576         (vn_unary_op_insert, vn_binary_op_insert): Replace with
11577         vn_nary_op_insert.
11578         (visit_unary_op): Call nary functions.
11579         (visit_binary_op): Likewise.
11580         (process_scc): Adjust for struct vn_tables_s changes.
11581         (allocate_vn_table): Likewise.
11582         (free_vn_table): Likewise.
11583         * tree-vn.c (vn_add): Call nary functions.
11584         (vn_lookup): Likewise.
11585
11586 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
11587
11588         PR target/35498
11589         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
11590         wdst back after sync_compare_and_swapqhi_internal.
11591
11592 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
11593
11594         PR target/22152
11595         * config/i386/i386-modes.def (V1DI): New vector mode.
11596         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
11597         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
11598         (MMXMODE248): Ditto.
11599         (MMXMODE): Add V1DI mode.
11600         (mmxvecsize): Change DI mode to V1DI mode.
11601         ("mov<mode>): Use MMXMODEI8 mode iterator.
11602         ("*mov<mode>_internal_rex64"): Ditto.
11603         ("*mov<mode>_internal"): Ditto.
11604         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
11605         ("mmx_sub<mode>3"): Ditto.
11606         ("mmx_adddi3"): Remove insn pattern.
11607         ("mmx_subdi3"): Ditto.
11608         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
11609         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
11610         ("mmx_ashl<mode>3"): Ditto.
11611         ("mmx_lshrdi3"): Remove insn pattern.
11612         ("mmx_ashldi3"): Ditto.
11613         * config/i386/i386.c (classify_argument): Handle V1DImode.
11614         (function_arg_advance_32): Ditto.
11615         (function_arg_32): Ditto.
11616         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
11617         mmx_addv1di3 insn pattern.
11618         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
11619         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
11620         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
11621         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
11622         Remove definitions of built-in functions.
11623         (V1DI_type_node): New node.
11624         (v1di_ftype_v1di_int): Ditto.
11625         (v1di_ftype_v1di_v1di): Ditto.
11626         (v2si_ftype_v2si_si): Ditto.
11627         (v4hi_ftype_v4hi_di): Remove node.
11628         (v2si_ftype_v2si_di): Ditto.
11629         (ix86_init_mmx_sse_builtins): Handle V1DImode.
11630         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
11631         Redefine builtins using def_builtin_const with *_ftype_*_int node.
11632         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
11633         Add new builtins using def_builtin_const.
11634         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
11635         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
11636         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
11637         * config/i386/mmintrin.h (__v1di): New typedef.
11638         (_mm_add_si64): Cast arguments to __v1di type.
11639         (_mm_sub_si64): Ditto.
11640         (_mm_sll_pi16): Cast __count to __v4hi type.
11641         (_mm_sll_pi32): Cast __count to __v2si type.
11642         (_mm_sll_si64): Cast arguments to __v1di type.
11643         (_mm_srl_pi16): Cast __count to __v4hi type.
11644         (_mm_srl_pi32): Cast __count to __v2si type.
11645         (_mm_srl_si64): Cast arguments to __v1di type.
11646         (_mm_sra_pi16): Cast __count to __v4hi type.
11647         (_mm_sra_pi32): Cast __count to __v2si type.
11648         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
11649         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
11650         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
11651         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
11652         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
11653         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
11654         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
11655         (_mm_srai_pi32): Use __builtin_ia32_psradi.
11656         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
11657         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
11658         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
11659         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
11660
11661 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
11662
11663         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
11664
11665 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
11666
11667         PR target/35373
11668         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
11669         reg+const addressing for Altivec modes.  Don't generate reg+reg
11670         addressing for TFmode or TDmode quantities.
11671
11672 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
11673
11674         * c-common.c (vector_types_convertible_p): Call langhook
11675         instead of comptypes.
11676
11677 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11678
11679         PR tree-opt/35402
11680         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
11681         integral and scalar float variables which have a
11682         NULL DECL_INITIAL.
11683
11684 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
11685
11686         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
11687         dwarf_register_span hook when emitting unwind information for
11688         register-to-memory saves.
11689         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
11690         (rs6000_frame_related): Remove call to spe_synthesize_frame.
11691
11692 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11693
11694         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
11695         for the same VAR_DECL.
11696
11697 2008-03-06  Tom Tromey  <tromey@redhat.com>
11698
11699         * treelang: Delete.
11700         * doc/standards.texi (Standards): Don't mention treelang.
11701         * doc/invoke.texi (Overall Options): Don't mention treelang.
11702         * doc/install.texi (Prerequisites): Don't mention bison or
11703         treelang.
11704         (Configuration): Don't mention treelang.
11705         (Building): Likewise.
11706         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
11707
11708 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
11709
11710         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
11711         word-extractions out of a multi-word object.
11712
11713 2008-03-06  Richard Guenther  <rguenther@suse.de>
11714
11715         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
11716         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
11717         result type and precision.
11718         * expr.c (get_inner_reference): Set unsignedp based on the result
11719         type of BIT_FIELD_REF.
11720         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
11721         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
11722         (try_instantiate_multiple_fields): Likewise.  Use the correct type
11723         for BIT_FIELD_REF.
11724         (sra_build_assignment): Likewise.
11725         (sra_build_elt_assignment): Likewise.
11726         (sra_explode_bitfield_assignment): Likewise.
11727         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
11728         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
11729         set BIT_FIELD_REF_UNSIGNED.
11730         (vectorizable_load): Likewise.
11731
11732 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
11733
11734         * cse.c (cse_extended_basic_block): Invalidate artificial defs
11735         at bb start.
11736
11737 2008-03-06  Richard Guenther  <rguenther@suse.de>
11738
11739         * alias.c (struct alias_set_entry): Move has_zero_child field
11740         to pack with alias_set.
11741
11742 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11743
11744         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11745         32bit host.
11746
11747 2008-03-05  Ian Lance Taylor  <iant@google.com>
11748
11749         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
11750
11751 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
11752
11753         * fwprop.c (update_df): Support width and offset parameters of
11754         df_ref_create.
11755         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
11756         global_conflicts): Change DF_REF_EXTRACT to either
11757         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11758         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11759         * df-scan.c (df_ref_record, df_defs_record,
11760         df_ref_create_structure, df_def_record_1, df_uses_record,
11761         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
11762         df_bb_refs_collect, df_entry_block_defs_collect,
11763         df_exit_block_uses_collect): Support new width and offset fields.
11764         (ref_extract_pool): New storage pool.
11765         (df_free_ref): New function.
11766         (df_reg_chain_unlink, df_free_collection_rec,
11767         df_sort_and_compress_refs): Call df_free_ref.
11768         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
11769         of df_ref_extract.
11770         (df_ref_create_structure): Allocate df_ref_extract if offset and
11771         width fields are used.
11772         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
11773         (df_uses_record): Get offset and width from ZERO_EXTRACT 
11774         and SIGN_EXTRACT.
11775         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
11776         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11777         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11778         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
11779         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
11780         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
11781         (df_ref_extract): New structure.
11782         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
11783         (df_ref_create): Add width and offset parameters.
11784         
11785 2008-03-05  Richard Guenther  <rguenther@suse.de>
11786
11787         * tree-ssa-structalias.c (get_constraint_for_component_ref):
11788         Use ranges_overlap_p.
11789         (offset_overlaps_with_access): Rename
11790         to ranges_overlap_p and move ...
11791         * tree-flow-inline.h (ranges_overlap_p): ... here.
11792
11793         * tree.h (get_inner_reference, handled_component_p): Update
11794         comments.
11795
11796         * tree.h (record_component_aliases, get_alias_set,
11797         alias_sets_conflict_p, alias_sets_must_conflict_p,
11798         objects_must_conflict_p): Move declarations ...
11799         * alias.h (record_component_aliases, get_alias_set,
11800         alias_sets_conflict_p, alias_sets_must_conflict_p,
11801         objects_must_conflict_p): ... here.
11802         Include coretypes.h.
11803         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
11804
11805 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
11806
11807         * cfg.c: Include tree-flow.h.
11808         (remove_edge_raw): Call redirect_edge_var_map_clear.
11809         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
11810         * tree-flow-inline.h (redirect_edge_var_map_def): New.
11811         (redirect_edge_var_map_result): New.
11812         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
11813         PENDING_STMT use with redirect_edge_var_map_*.
11814         * tree-ssa.c (edge_var_maps): New definition.
11815         (redirect_edge_var_map_add): New.
11816         (redirect_edge_var_map_clear): New.
11817         (redirect_edge_var_map_dup): New.
11818         (redirect_edge_var_map_vector): New.
11819         (redirect_edge_var_map_destroy): New.
11820         (ssa_redirect_edge): Replace PENDING_STMT use with
11821         redirect_edge_var_map_*.
11822         (flush_pending_stmts): Same.
11823         (delete_tree_ssa): Destroy edge var map.
11824         * tree-flow.h (struct _edge_var_map): New.
11825         Define edge_var_map vector type.
11826         Declare redirect_edge_var_map_* prototypes.
11827         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
11828         * tree-cfg.c (reinstall_phi_args): Replace
11829         PENDING_STMT use with redirect_edge_var_map_*.
11830
11831 2008-03-05  Richard Guenther  <rguenther@suse.de>
11832
11833         PR tree-optimization/35472
11834         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
11835         whose single use_stmt has a overlapping set of loaded and
11836         stored symbols as that use_stmt might be a noop assignment then.
11837
11838 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
11839
11840         * gthr-rtems.h: Implement __gthread_mutex_destroy.
11841
11842 2008-03-05  Richard Guenther  <rguenther@suse.de>
11843
11844         PR c++/35336
11845         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
11846         should be constants.
11847         * tree-cfg.c (verify_expr): Verify it.
11848         * fold-const.c (fold_truthop): Remove code generating
11849         BIT_FIELD_REFs of structure bases.
11850         (fold_binary): Likewise.
11851         (fold_ternary): Position and size of BIT_FIELD_REFs are
11852         always host integers.
11853         (make_bit_field_ref): Remove.
11854         (optimize_bit_field_compare): Remove.
11855         (all_ones_mask_p): Remove.
11856
11857 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
11858
11859         PR gcc/33009
11860         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
11861         (split_block_and_df_analyze): New. Split basic block and rebuild
11862         dataflow.
11863         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
11864         SPLIT_BLOCK.
11865         (split_pattern_seq): Likewise.
11866         (erase_matching_seqs): Likewise.
11867         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
11868
11869 2008-03-04  Geoff Keating  <geoffk@apple.com>
11870
11871         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
11872         declaration and code.
11873         (tree_invalid_nonnegative_warnv_p): Likewise.
11874
11875 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
11876
11877         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
11878         examples.  Truncate option-names then causing overfull hbox.
11879
11880 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11881
11882         PR target/35222
11883         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
11884         on hpux10.
11885         * configure: Rebuilt.
11886
11887 2008-03-04  Rafael Espindola  <espindola@google.com>
11888
11889         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11890         (tree_unary_nonnegative_warnv_p): New.
11891         (tree_binary_nonnegative_warnv_p): New.
11892         (tree_single_nonnegative_warnv_p): New.
11893         (tree_invalid_nonnegative_warnv_p): New.
11894         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11895
11896 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11897
11898         PR 28322
11899         * opts.c (handle_option): Postpone 'unknown option' errors only for
11900         warning options.
11901
11902 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11903
11904         PR target/35453
11905         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
11906         (_SIDD_XXX): This.
11907
11908 2008-03-04  Rafael Espindola  <espindola@google.com>
11909
11910         * fold-const.c (tree_unary_nonzero_warnv_p): New.
11911         (tree_binary_nonzero_warnv_p): New.
11912         (tree_single_nonzero_warnv_p): New.
11913         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
11914
11915 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
11916
11917         PR middle-end/35456
11918         * fold-const.c (fold_cond_expr_with_comparison): Prevent
11919         transformations for modes that have signed zeros.
11920         * ifcvt.c (noce_try_abs): Ditto.
11921
11922 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
11923
11924         * config/i386/i386.c (override_options): Force
11925         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
11926
11927 2008-03-04  Jan Hubicka  <jh@suse.cz>
11928
11929         PR c++/35262
11930         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
11931         in last commit.
11932
11933 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11934
11935         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
11936         label to probe the stack.
11937
11938 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11939
11940         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11941         (__gthr_win32_mutex_destroy): Declare.
11942         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11943         __gthr_win32_mutex_destroy.
11944         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
11945
11946 2008-03-03  Jan Hubicka  <jh@suse.cz>
11947
11948         PR c++/35262
11949         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11950         aggressive on inlining cold calls.
11951
11952 2008-03-03  Richard Guenther  <rguenther@suse.de>
11953
11954         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11955         struct copies into the expression table.
11956         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11957         (try_to_simplify): Likewise.
11958         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
11959         integral and pointer arguments which do not change the
11960         precision to NOP_EXPRs.
11961         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
11962         VIEW_CONVERT_EXPR case.
11963
11964 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
11965
11966         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
11967         defined in a loop at depth 0 is invariant.
11968         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11969         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
11970         be called at loop depth 0.
11971
11972 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
11973
11974         PR driver/35420
11975         * gcc.c (process_command): Update copyright notice dates.
11976         * gcov.c (print_version): Likewise.
11977         * gcov-dump.c (print_version): Likewise.
11978         * mips-tfile.c (main): Likewise.
11979         * mips-tdump.c (main): Likewise.
11980
11981 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11982
11983         PR 24924
11984         * c-common.c (flag_permissive): Delete.
11985         (constant_expression_warnings): Check flags first.
11986         (constant_expression_error): New.
11987         * c-common.h (flag_permissive): Delete.
11988         (constant_expression_error): Declare.
11989         * flags.h (flag_permissive): Declare. Update description.
11990         * diagnostic.c (pedwarn): Update.
11991         (permerror): New.
11992         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
11993         (permissive_error_kind): New.
11994         * toplev.c (flag_permissive): Define. Update description.
11995         * toplev.h (permissive_error_kind): Declare.
11996         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
11997         (pedwarn_c90): Use pedantic_warning_kind.
11998         * c-opts.c (c_common_post_options): flag_permissive does not affect
11999         flag_pedantic_errors.
12000
12001 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
12002
12003         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
12004         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
12005         __absvsi2, __absvDI2): Use unsigned arithmetic.
12006
12007 2008-03-02  Andi Kleen  <ak@suse.de>
12008             Richard Guenther  <rguenther@suse.de>
12009
12010         * struct-equiv.c: Remove file.
12011         * cfg_cleanup.c (condjump_equiv_p): Remove.
12012         * Makefile.in (OBJS-common): Remove struct-equiv.o.
12013         (struct-equiv.o): Remove rule.
12014         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
12015         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
12016         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
12017
12018 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12019
12020         * ifcvt.c (noce_process_if_block): Try to handle only the then
12021         block if the else block exists but isn't suitable.
12022
12023 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12024
12025         PR gcc/35063
12026         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
12027         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
12028         regression from previous patch.
12029
12030 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
12031
12032         PR gcc/35063
12033         * gthr.h: Add __gthread_mutex_destroy as a function that must be
12034         implemented.
12035         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
12036         * gthr-single.h (__gthread_mutex_destroy): Likewise.
12037         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
12038         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
12039         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
12040         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
12041         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
12042         (__gthread_mutex_destroy_function): Rename to
12043         __gthread_mutex_destroy.
12044         * gthr-dce.h (__gthread_mutex_destroy): Call
12045         pthread_mutex_destroy.
12046         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
12047         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
12048         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
12049
12050 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12051
12052         * df-scan.c (df_ref_chain_change_bb): Simplify.
12053         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
12054         set_block_for_insn if there's any change.
12055         * df.h ((df_insn_change_bb): Fix prototype.
12056         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
12057         df_insn_change_bb, don't call set_block_for_insn.
12058         * emit-rtl.c (reorder_insns): Likewise.
12059         * haifa-sched.c (move_insn): Likewise.
12060
12061 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12062
12063         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
12064
12065 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
12066
12067         * tree-flow-inline.h (next_readonly_imm_use): Return
12068         NULL_USE_OPERAND_P after the end.
12069
12070 2008-03-01  Richard Guenther  <rguenther@suse.de>
12071
12072         PR tree-optimization/35411
12073         * tree-sra.c (sra_build_assignment): Split conversion to
12074         final type to a separate statement if we are not assigning
12075         to a register.
12076
12077 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12078
12079         * fold-const.c (fold_convertible_p): Correct the logic to follow
12080         that in fold_convert().
12081
12082 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
12083
12084         PR c++/35315
12085         * tree-inline.c (build_duplicate_type): When we make a
12086         duplicate type, make it unique in the canonical types system.
12087
12088 2008-02-29  Tom Tromey  <tromey@redhat.com>
12089
12090         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
12091         input_file_stack_history, input_file_stack_restored): Remove.
12092         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12093         * input.h (struct file_stack): Remove.
12094         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
12095         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
12096         Likewise.
12097         * diagnostic.h (struct diagnostic_context) <last_module>: Change
12098         type.
12099         (diagnostic_last_module_changed): Add 'map' argument.
12100         (diagnostic_set_last_function): Likewise.
12101         * diagnostic.c (undiagnostic_report_current_module): Iterate using
12102         line map, not input_file_stack.
12103         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
12104
12105 2008-02-29  Paul Brook  <paul@codesourcery.com>
12106
12107         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
12108
12109 2008-02-29  Paul Brook  <paul@codesourcery.com>
12110
12111         * config/arm/ieee754-df.S (muldf3): Use RET macros.
12112
12113 2008-02-29  Richard Guenther  <rguenther@suse.de>
12114
12115         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
12116         vn_lookup_or_add.
12117         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
12118         value for comparing for a store match.
12119         (simplify_unary_expression): Do nothing for SSA_NAMEs.
12120         (try_to_simplify): Do not do a full-blown reference lookup.
12121
12122 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12123
12124         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
12125         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
12126
12127         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
12128
12129 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
12130
12131         * tree-loop-linear.c (try_interchange_loops): Compare memory access
12132         strides against cache sizes.
12133
12134 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12135
12136         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
12137         constant to fpul.
12138
12139 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
12140
12141         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
12142         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
12143         is smaller than the original promoted value.
12144         (simplify_subreg): If OP is a SUBREG, try to preserve its
12145         SUBREG_PROMOTED_VAR_P information.
12146
12147 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
12148
12149         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
12150         (VN_INFO_GET): Allocate new objects on the obstack.
12151         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
12152         for rpo_numbers_temp, for consistency.
12153         (free_scc_vn): Free the obstack.
12154
12155 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
12156
12157         * doc/invoke.texi: Document -ftree-loop-distribution.
12158         * tree-loop-distribution.c: New.
12159         * tree-pass.h (pass_loop_distribution): New.
12160         * graphds.h (struct graph): Add htab_t indices.
12161         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
12162         * tree-vectorizer.c (rename_variables_in_loop): Extern.
12163         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
12164         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
12165         * tree-data-ref.c (debug_data_dependence_relations): New.
12166         (dump_data_dependence_relation): Also print data references.
12167         (free_data_ref): Extern.
12168         (same_access_functions): Moved...
12169         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
12170         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12171         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
12172         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
12173         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
12174         (stmts_from_loop): Skip LABEL_EXPR.
12175         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
12176         New.
12177         (build_rdg): Initialize rdg->indices htab.
12178         (free_rdg, stores_from_loop, ref_base_address,
12179         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
12180         have_similar_memory_accesses_1, ref_base_address_1,
12181         remove_similar_memory_refs): New.
12182         * tree-data-ref.h: Depend on tree-chrec.h.
12183         (debug_data_dependence_relations, free_data_ref): Declared.
12184         (same_access_functions): ... here.
12185         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
12186         New.
12187         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
12188         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
12189         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
12190         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
12191         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
12192         rdg_vertex_for_stmt): Declared.
12193         (struct rdg_edge): Add level.
12194         (RDGE_LEVEL): New.
12195         (free_rdg, stores_from_loop, remove_similar_memory_refs,
12196         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
12197         Declared.
12198         (rdg_has_similar_memory_accesses): New.
12199         * tree-vect-analyze.c: Remove unused static decls.
12200         * lambda.h (dependence_level): New.
12201         * common.opt (ftree-loop-distribution): New.
12202         * tree-flow.h (mark_virtual_ops_in_bb, 
12203         slpeel_tree_duplicate_loop_to_edge_cfg,
12204         rename_variables_in_loop): Declared.
12205         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
12206         (OBJS-common): Add tree-loop-distribution.o.
12207         (tree-loop-distribution.o): New rule.
12208         * tree-cfg.c (mark_virtual_ops_in_bb): New.
12209         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
12210         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
12211
12212 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
12213
12214         PR target/33963
12215         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
12216         other than structures and unions.
12217
12218 2008-02-28  Richard Guenther  <rguenther@suse.de>
12219
12220         Revert:
12221         2008-02-26  Richard Guenther  <rguenther@suse.de>
12222
12223         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12224         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12225         (lookup_decl_from_uid): Declare.
12226         (remove_decl_from_map): Likewise.
12227         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12228         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12229         (decl_for_uid_map): New global hashtable mapping DECL_UID
12230         to the decl tree.
12231         (init_ttree): Allocate it.
12232         (insert_decl_to_uid_decl_map): New helper function.
12233         (make_node_stat): Insert new decls into the map.
12234         (copy_node_stat): Likewise.
12235         (lookup_decl_from_uid): New function.
12236         (remove_decl_from_map): Likewise.
12237         (print_decl_for_uid_map_statistics): New helper.
12238         (dump_tree_statistics): Call it.
12239
12240         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12241         (referenced_var_iterator): Adjust.
12242         (FOR_EACH_REFERENCED_VAR): Adjust.
12243         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12244         (num_referenced_vars): Adjust.
12245         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12246         (first_referenced_var): Remove.
12247         (end_referenced_vars_p): Likewise.
12248         (next_referenced_var): Likewise.
12249         (referenced_var_iterator_set): New helper function.
12250         * tree-dfa.c (referenced_var_lookup): Adjust.
12251         (referenced_var_check_and_insert): Likewise.
12252         (remove_referenced_var): Likewise.
12253         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12254         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12255         (verify_call_clobbering): Likewise.
12256         (verify_memory_partitions): Likewise.
12257         (init_tree_ssa): Allocate bitmap instead of hashtable for
12258         referenced_vars.
12259         (delete_tree_ssa): Adjust.
12260         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12261         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12262         (compute_tag_properties): Likewise.
12263         (set_initial_properties): Likewise.
12264         (find_partition_for): Likewise.
12265         (update_reference_counts): Likewise.
12266         (dump_may_aliases_for): Likewise.
12267         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12268         (add_call_clobber_ops): Likewise.
12269         (add_call_read_ops): Likewise.
12270         (get_asm_expr_operands): Likewise.
12271         * tree-into-ssa.c (dump_decl_set): Likewise.
12272         (update_ssa): Likewise.
12273         * tree-sra.c (scan_function): Likewise.
12274         (decide_instantiations): Likewise.
12275         (scalarize_parms): Likewise.
12276         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12277         (dsa_named_for): Likewise.
12278         * tree-ssa-structalias.c (update_alias_info): Likewise.
12279         (merge_smts_into): Likewise.
12280
12281 2008-02-27  David Daney  <ddaney@avtrex.com>
12282
12283         PR target/34409
12284         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
12285         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
12286         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
12287         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
12288         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
12289
12290 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
12291
12292         PR target/25477
12293         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
12294         (BUILT_IN_NEXTTOWARD): Remove.
12295         (BUILT_IN_NEXTTOWARDF): Ditto.
12296         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
12297         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
12298
12299 2008-02-27  Tom Tromey  <tromey@redhat.com>
12300
12301         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
12302         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
12303
12304 2008-02-27  Jan Beulich  <jbeulich@novell.com>
12305
12306         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
12307         update the respective field on newdecl.
12308
12309 2008-02-27  Revital Eres  <eres@il.ibm.com>
12310
12311         PR rtl-optimization/34999
12312         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
12313         crossing edges that ends with a call insn.
12314         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
12315         call insn and clear the EDGE_CROSSING flag of the crossing edge
12316         when fixing fallthru edges.
12317
12318 2008-02-27  Richard Guenther  <rguenther@suse.de>
12319
12320         PR middle-end/35390
12321         * fold-const.c (fold_unary): Return the correct argument,
12322         converted to the result type.
12323
12324 2008-02-27  Richard Guenther  <rguenther@suse.de>
12325
12326         PR middle-end/34971
12327         * expr.c (expand_expr_real_1): Assert on rotates that operate
12328         on partial modes.
12329         * fold-const.c (fold_binary): Use the types precision, not the
12330         bitsize of the mode if folding rotate expressions.  Build rotates
12331         only for full modes.
12332
12333 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
12334
12335         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
12336         and CPP_PRAGMA_EOL.
12337         * c-pragma.c (pragma_ns_name): New typedef.
12338         (registered_pp_pragmas): New variable.
12339         (c_pp_lookup_pragma): New function.
12340         (c_register_pragma_1): If flag_preprocess_only, do nothing
12341         for non-expanded pragmas, for expanded ones push pragma's
12342         namespace and name into registered_pp_pragmas vector.
12343         (c_invoke_pragma_handler): Register OpenMP pragmas even when
12344         flag_preprocess_only, don't register GCC pch_preprocess
12345         pragma if flag_preprocess_only.
12346         * c-opts.c (c_common_init): Call init_pragma even if
12347         flag_preprocess_only.
12348         * c-pragma.c (c_pp_lookup_pragma): New prototype.
12349         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
12350         cpp_register_pragma if flag_preprocess_only.
12351
12352 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12353
12354         PR c/28800
12355         * c-parser.c (c_parser_translation_unit): Warn for empty
12356         translation unit, not empty source file.
12357
12358 2008-02-26  Paul Brook  <paul@codesourcery.com>
12359
12360         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
12361         operand for Thumb-2.
12362         * config/arm/arm.h (reg_class): Add CORE_REGS.
12363         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
12364         (BASE_REG_CLASS): Use CORE_REGS.
12365         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
12366         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
12367         (REGNO_OK_FOR_INDEX_P): Exclude SP.
12368         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
12369         ARM_REGNO_OK_FOR_INDEX_P.
12370         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
12371         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
12372         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
12373         (ldm/stm peepholes): Ditto.
12374         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
12375         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
12376         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
12377         * config/arm/constraints.md: Enable "k" constraint on ARM.
12378
12379 2008-02-27  Ben Elliston  <bje@au.ibm.com>
12380
12381         * config/rs6000/rs6000.c: Annotate cache line size field in all
12382         instances of struct processor_costs.
12383
12384 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
12385
12386         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
12387         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
12388         jump_bypass): New counters.
12389         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
12390         * dce.c (gate_ud_dce): Same.
12391         (gate_fast_dce): Same.
12392         * dse.c (gate_dse1): New function.
12393         (gate_dse2): New function.
12394         (gate_dse): Merge results of new gate functions.
12395         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
12396         (gate_handle_jump_bypass): Add dbg_cnt.
12397         (gate_handle_gcse): Add dbg_cnt.
12398         * ifcvt.c (gate_handle_if_conversion): Same.
12399         (gate_handle_if_after_combine): Same.
12400         (gate_handle_if_after_reload): Same.
12401         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
12402
12403 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
12404
12405         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
12406         line sizes.
12407         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
12408
12409 2008-02-26  Jason Merrill  <jason@redhat.com>
12410
12411         PR c++/35315
12412         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
12413         alone if it's the naming decl for the type's main variant.
12414
12415 2008-02-26  Tom Tromey  <tromey@redhat.com>
12416
12417         * system.h (USE_MAPPED_LOCATION): Poison.
12418         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
12419         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
12420         (make_goto_expr_edges): Likewise.
12421         (remove_bb): Likewise.
12422         (execute_warn_function_return): Likewise.
12423         * basic-block.h (struct edge_def) <goto_locus>: Change type to
12424         location_t.
12425         * c-common.c (fname_decl): Remove old location code.
12426         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
12427         location code.
12428         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
12429         variant.
12430         (ASM_INPUT_SOURCE_LOCATION): Likewise.
12431         (gen_rtx_ASM_INPUT): Likewise.
12432         (gen_rtx_ASM_INPUT_loc): Likewise.
12433         (get_rtx_asm_OPERANDS): Remove.
12434         * cfglayout.c (insn_locators_alloc): Remove old location code.
12435         (set_curr_insn_source_location): Likewise.
12436         (curr_insn_locator): Likewise.
12437         * print-tree.c (print_node): Remove old location code.
12438         * tree-mudflap.c (mf_varname_tree): Remove old location code.
12439         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
12440         * cfgexpand.c (expand_gimple_cond_expr): Don't use
12441         location_from_locus.
12442         (construct_exit_block): Remove old location code.
12443         * emit-rtl.c (force_next_line_note): Remove old location code.
12444         * profile.c (branch_prob): Remove old location code.
12445         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
12446         LOC_LINE): Remove old-location variants.
12447         * langhooks.c (lhd_print_error_function): Remove old location
12448         code.
12449         * configure, config.in: Rebuilt.
12450         * configure.ac (--enable-mapped-location): Remove.
12451         * c-decl.c (c_init_decl_processing): Remove old location code.
12452         (finish_function): Likewise.
12453         * recog.c (decode_asm_operands): Remove old location code.
12454         * c-pch.c (c_common_read_pch): Remove old location code.
12455         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
12456         variants.
12457         * gimple-low.c (lower_function_body): Remove old location code.
12458         * toplev.c (unknown_location): Remove.
12459         (push_srcloc): Remove old-location variant.
12460         (process_options): Remove old location code.
12461         (lang_dependent_init): Likewise.
12462         * input.h (UNKNOWN_LOCATION): Move definition.
12463         (location_t): Undeprecate.
12464         (source_locus): Remove.
12465         (location_from_locus): Remove.
12466         (struct location_s): Remove.
12467         Remove all old-location code.
12468         (input_line, input_filename): Remove.
12469         * final.c (final_scan_insn): Remove old location code.
12470         * diagnostic.c (diagnostic_build_prefix): Remove
12471         USE_MAPPED_LOCATION test.
12472         * tree.h (gimple_stmt) <locus>: Now a location_t.
12473         (tree_exp) <locus>: Likewise.
12474         (DECL_IS_BUILTIN): Remove old-location variant.
12475         (annotate_with_file_line, annotate_with_locus): Likewise.
12476         (expr_locus, set_expr_locus): Update.
12477         * tree.c (build1_stat): Remove old location code.
12478         (last_annotated_node): Remove.
12479         (annotate_with_file_line): Remove old-location variant.
12480         (annotate_with_locus): Likewise.
12481         (expr_location): Remove old location code.
12482         (set_expr_location): Likewise.
12483         (expr_has_location): Likewise.
12484         (expr_locus): Likewise.
12485         (set_expr_locus): Likewise.
12486         (expr_filename): Don't use location_from_locus.
12487         (expr_lineno): Likewise.
12488         * rtl-error.c (location_for_asm): Remove old location code.
12489         * c-lex.c (cb_line_change): Remove old location code.
12490         (fe_file_change): Likewise.
12491         (cb_def_pragma): Likewise.
12492         (c_lex_with_flags): Likewise.
12493         * gengtype.c (do_typedef): Don't special-case location types.
12494         (define_location_structures): Remove.
12495         (main): Don't call define_location_structures.
12496         * tree-pretty-print.c (dump_implicit_edges): Remove old location
12497         code.
12498
12499 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12500
12501         PR 26264
12502         * builtins.def (BUILT_IN_STDARG_START): Remove.
12503         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
12504         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12505         * tree-inline.c (inline_forbidden_p_1): Likewise.
12506         
12507 2008-02-26  Richard Guenther  <rguenther@suse.de>
12508
12509         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12510         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12511         (lookup_decl_from_uid): Declare.
12512         (remove_decl_from_map): Likewise.
12513         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12514         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12515         (decl_for_uid_map): New global hashtable mapping DECL_UID
12516         to the decl tree.
12517         (init_ttree): Allocate it.
12518         (insert_decl_to_uid_decl_map): New helper function.
12519         (make_node_stat): Insert new decls into the map.
12520         (copy_node_stat): Likewise.
12521         (lookup_decl_from_uid): New function.
12522         (remove_decl_from_map): Likewise.
12523         (print_decl_for_uid_map_statistics): New helper.
12524         (dump_tree_statistics): Call it.
12525
12526         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12527         (referenced_var_iterator): Adjust.
12528         (FOR_EACH_REFERENCED_VAR): Adjust.
12529         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12530         (num_referenced_vars): Adjust.
12531         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12532         (first_referenced_var): Remove.
12533         (end_referenced_vars_p): Likewise.
12534         (next_referenced_var): Likewise.
12535         (referenced_var_iterator_set): New helper function.
12536         * tree-dfa.c (referenced_var_lookup): Adjust.
12537         (referenced_var_check_and_insert): Likewise.
12538         (remove_referenced_var): Likewise.
12539         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12540         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12541         (verify_call_clobbering): Likewise.
12542         (verify_memory_partitions): Likewise.
12543         (init_tree_ssa): Allocate bitmap instead of hashtable for
12544         referenced_vars.
12545         (delete_tree_ssa): Adjust.
12546         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12547         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12548         (compute_tag_properties): Likewise.
12549         (set_initial_properties): Likewise.
12550         (find_partition_for): Likewise.
12551         (update_reference_counts): Likewise.
12552         (dump_may_aliases_for): Likewise.
12553         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12554         (add_call_clobber_ops): Likewise.
12555         (add_call_read_ops): Likewise.
12556         (get_asm_expr_operands): Likewise.
12557         * tree-into-ssa.c (dump_decl_set): Likewise.
12558         (update_ssa): Likewise.
12559         * tree-sra.c (scan_function): Likewise.
12560         (decide_instantiations): Likewise.
12561         (scalarize_parms): Likewise.
12562         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12563         (dsa_named_for): Likewise.
12564         * tree-ssa-structalias.c (update_alias_info): Likewise.
12565         (merge_smts_into): Likewise.
12566
12567 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12568
12569         PR 34351
12570         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
12571         * c-opts.c (c_common_handle_option): Wall enables
12572         Wvolatile-register-var.
12573         * common.opt: Move Wvolatile-register-var to...
12574         * c.opt: ...here.
12575         
12576 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12577
12578         * common.opt (Wlarger-than=): New.
12579         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
12580         -Wlarger-than=.
12581         * opts.c (common_handle_option): Handle -Wlarger-than=.
12582         * optc-gen.awk: Likewise.
12583         * opth-gen.awk: Likewise.
12584         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
12585         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12586         
12587 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12588
12589         * c-common.c (match_case_to_enum_1): Add appropriate
12590         OPT_W* parameter to warning.
12591         (c_do_switch_warnings): Likewise.
12592         * c-typeck.c (warning_init): Add one more parameter following
12593         'warning' function.
12594         (push_init_level): Update call to warning_init.
12595         (pop_init_level): Likewise.
12596         (add_pending_init): Likewise.
12597         (output_init_element: Likewise.
12598
12599 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12600
12601         PR 28322
12602         * toplev.c (toplev_main): If there are warnings or error, print
12603         errors for ignored options.
12604         * opts.c (ignored_options): New static variable.
12605         (postpone_unknown_option_error): New.
12606         (print_ignored_options): New.
12607         (handle_option): Postpone errors for unknown -Wno-* options.
12608         * opts.h (print_ignored_options): Declare.
12609         
12610 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12611
12612         * config/mips/mips.md (loadgp_blockage, blockage): Change type
12613         to "ghost".
12614
12615 2008-02-25  Richard Guenther  <rguenther@suse.de>
12616
12617         Revert:
12618         2008-02-25  Richard Guenther  <rguenther@suse.de>
12619
12620         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12621         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12622         (lookup_decl_from_uid): Declare.
12623         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12624         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12625         (decl_for_uid_map): New global hashtable mapping DECL_UID
12626         to the decl tree.
12627         (init_ttree): Allocate it.
12628         (insert_decl_to_uid_decl_map): New helper function.
12629         (make_node_stat): Insert new decls into the map.
12630         (copy_node_stat): Likewise.
12631         (lookup_decl_from_uid): New function.
12632         (print_decl_for_uid_map_statistics): New helper.
12633         (dump_tree_statistics): Call it.
12634
12635         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12636         (referenced_var_iterator): Adjust.
12637         (FOR_EACH_REFERENCED_VAR): Adjust.
12638         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12639         (num_referenced_vars): Adjust.
12640         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12641         (first_referenced_var): Remove.
12642         (end_referenced_vars_p): Likewise.
12643         (next_referenced_var): Likewise.
12644         (referenced_var_iterator_set): New helper function.
12645         * tree-dfa.c (referenced_var_lookup): Adjust.
12646         (referenced_var_check_and_insert): Likewise.
12647         (remove_referenced_var): Likewise.
12648         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12649         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12650         (verify_call_clobbering): Likewise.
12651         (verify_memory_partitions): Likewise.
12652         (init_tree_ssa): Allocate bitmap instead of hashtable for
12653         referenced_vars.
12654         (delete_tree_ssa): Adjust.
12655         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12656         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12657         (compute_tag_properties): Likewise.
12658         (set_initial_properties): Likewise.
12659         (find_partition_for): Likewise.
12660         (update_reference_counts): Likewise.
12661         (dump_may_aliases_for): Likewise.
12662         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12663         (add_call_clobber_ops): Likewise.
12664         (add_call_read_ops): Likewise.
12665         (get_asm_expr_operands): Likewise.
12666         * tree-into-ssa.c (dump_decl_set): Likewise.
12667         (update_ssa): Likewise.
12668         * tree-sra.c (scan_function): Likewise.
12669         (decide_instantiations): Likewise.
12670         (scalarize_parms): Likewise.
12671         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12672         (dsa_named_for): Likewise.
12673         * tree-ssa-structalias.c (update_alias_info): Likewise.
12674         (merge_smts_into): Likewise.
12675
12676 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12677
12678         PR fortran/29549
12679         * doc/invoke.texi (-fcx-limited-range): Document new option.
12680         * toplev.c (process_options): Handle -fcx-fortran-rules.
12681         * common.opt: Add documentation for -fcx-fortran-rules.
12682
12683 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
12684
12685         PR c/35162
12686         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
12687         actual behaviour and C99.
12688         
12689 2008-02-26  Ben Elliston  <bje@au.ibm.com>
12690
12691         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
12692         (ASM_CPU_POWER6_SPEC): Likewise.
12693         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
12694         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
12695         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
12696
12697 2008-02-25  Richard Guenther  <rguenther@suse.de>
12698
12699         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
12700         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
12701         (lookup_decl_from_uid): Declare.
12702         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
12703         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
12704         (decl_for_uid_map): New global hashtable mapping DECL_UID
12705         to the decl tree.
12706         (init_ttree): Allocate it.
12707         (insert_decl_to_uid_decl_map): New helper function.
12708         (make_node_stat): Insert new decls into the map.
12709         (copy_node_stat): Likewise.
12710         (lookup_decl_from_uid): New function.
12711         (print_decl_for_uid_map_statistics): New helper.
12712         (dump_tree_statistics): Call it.
12713
12714         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
12715         (referenced_var_iterator): Adjust.
12716         (FOR_EACH_REFERENCED_VAR): Adjust.
12717         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
12718         (num_referenced_vars): Adjust.
12719         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
12720         (first_referenced_var): Remove.
12721         (end_referenced_vars_p): Likewise.
12722         (next_referenced_var): Likewise.
12723         (referenced_var_iterator_set): New helper function.
12724         * tree-dfa.c (referenced_var_lookup): Adjust.
12725         (referenced_var_check_and_insert): Likewise.
12726         (remove_referenced_var): Likewise.
12727         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
12728         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12729         (verify_call_clobbering): Likewise.
12730         (verify_memory_partitions): Likewise.
12731         (init_tree_ssa): Allocate bitmap instead of hashtable for
12732         referenced_vars.
12733         (delete_tree_ssa): Adjust.
12734         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
12735         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
12736         (compute_tag_properties): Likewise.
12737         (set_initial_properties): Likewise.
12738         (find_partition_for): Likewise.
12739         (update_reference_counts): Likewise.
12740         (dump_may_aliases_for): Likewise.
12741         * tree-ssa-operands.c (add_virtual_operand): Likewise.
12742         (add_call_clobber_ops): Likewise.
12743         (add_call_read_ops): Likewise.
12744         (get_asm_expr_operands): Likewise.
12745         * tree-into-ssa.c (dump_decl_set): Likewise.
12746         (update_ssa): Likewise.
12747         * tree-sra.c (scan_function): Likewise.
12748         (decide_instantiations): Likewise.
12749         (scalarize_parms): Likewise.
12750         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
12751         (dsa_named_for): Likewise.
12752         * tree-ssa-structalias.c (update_alias_info): Likewise.
12753         (merge_smts_into): Likewise.
12754
12755 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
12756
12757         PR target/35258
12758         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
12759         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
12760         * alias.h (nonoverlapping_memrefs_p): Likewise.
12761
12762 2008-02-25  Jan Beulich  <jbeulich@novell.com>
12763
12764         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
12765         * config/i386/netware-libgcc.exp: Add __bswap?i2,
12766         __emultls_get_address, __emultls_register_common,
12767         __floatundi?f, and _Unwind_GetIPInfo.
12768         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
12769         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
12770         (gen_regparm_prefix): Likewise.
12771         (i386_nlm_encode_section_info): Sync with
12772         config/i386/winnt.c:i386_pe_encode_section_info().
12773         (i386_nlm_maybe_mangle_decl_assembler_name): New.
12774         i386_nlm_mangle_decl_assembler_name): New.
12775         (netware_override_options): New.
12776         * config/i386/netware.h (netware_override_options): Declare.
12777         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
12778         (i386_nlm_mangle_decl_assembler_name): Declare.
12779         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
12780
12781 2008-02-25  Ben Elliston  <bje@au.ibm.com>
12782
12783         PR other/32948
12784         * c-decl.c (grokdeclarator): Remove unused local variables
12785         `typedef_type' and `type_as_written'.
12786         * bb-reorder.c
12787         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
12788         unused local variable `has_hot_blocks'.
12789         (fix_crossing_conditional_branches): Remove unused local variable
12790         `prev_bb'.
12791         
12792 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
12793
12794         PR middle-end/19984
12795         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
12796         using DEF_C99_BUILTIN.
12797         (BUILT_IN_NANF): Ditto.
12798         (BUILT_IN_NANL): Ditto.
12799
12800 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
12801             Revital Eres  <eres@il.ibm.com>
12802
12803         * modulo-sched.c (calculate_must_precede_follow): Address TODO
12804         regarding the order of two dependent insns in the same row.
12805
12806 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
12807
12808         * stor-layout.c (layout_decl): Do not bump the alignment of a
12809         bit-field to more than byte alignment if it is packed.
12810
12811 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
12812
12813         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
12814         e300c2 and e300c3.
12815
12816 2008-02-24  Diego Novillo  <dnovillo@google.com>
12817
12818         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
12819
12820         PR 33738
12821         * tree-vrp.c (vrp_evaluate_conditional): With
12822         -Wtype-limits, emit a warning when comparing against a
12823         constant outside the natural range of OP0's type.
12824         * c.opt (Wtype-limits): Move ...
12825         * common.opt (Wtype-limits): ... here.
12826
12827 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
12828
12829         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
12830         * config/rs6000/e300c2c3.md: New file.
12831         * config/rs6000/rs6000.c (processor_costs): Add new costs for
12832         e300c2 and e300c3.
12833         (rs6000_override_options): Add e300c2 and e300c3 cases to
12834         processor_target_table. Do not allow usage of Altivec or Spe
12835         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
12836         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
12837         * config/rs6000/rs6000.h (processor_type): Add
12838         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
12839         (ASM_CPU_SPEC): Add e300c2 and e300c3.
12840         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
12841         and ppce300c3. Include e300c2c3.md.
12842
12843 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
12844
12845         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
12846         instead of TARGET_STRICT_ALIGN.
12847
12848 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
12849
12850         * explow.c (memory_address): Assert that the generated address is
12851         valid.
12852
12853 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12854
12855         PR target/25477
12856         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
12857         * config/darwin-ppc-ldouble-patch.def: New file.
12858         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
12859         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
12860         SUBTARGET_INIT_BUILTINS if defined.
12861         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
12862         New functions.
12863
12864 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12865
12866         PR rtl-opt/33512
12867         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
12868         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
12869
12870 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12871
12872         PR pch/35027
12873         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
12874         file" warning condtional on -Winvalid-PCH.
12875
12876 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
12877
12878         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
12879
12880 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
12881
12882         PR target/22076
12883         PR target/34256 
12884         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
12885         prevent reload from using MMX registers.
12886         (*mov<mode>_internal): Ditto.
12887         (*movv2sf_internal_rex64): Ditto.
12888         (*movv2sf_internal): Ditto.
12889
12890 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12891
12892         PR documentation/31569
12893         * doc/install.texi2html: Use makeinfo --no-number-sections.
12894
12895 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12896
12897         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12898         ensure that we can address an entire entity > 8 bytes.  Don't
12899         generate reg+reg addressing for such data.
12900
12901 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12902
12903         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
12904         strings when optimizing for size, unless the target cares about
12905         alignment.
12906
12907 2008-02-22  Tom Tromey  <tromey@redhat.com>
12908
12909         * regclass.c (current_pass): Remove declaration.
12910
12911 2008-02-22  Anatoly Sokolov <aesok@post.ru>
12912
12913         * config/avr/libgcc.S (__RAMPZ__): Define.
12914         (__do_copy_data): Add for devices with 128KB code memory.
12915
12916 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12917
12918         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12919         Use spe_abi.
12920         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12921
12922 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
12923
12924         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
12925         GENNONACR_REGS.
12926
12927 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12928
12929         PR c/19999
12930         * c-typeck.c (build_binary_op): Warn about floating point
12931         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
12932
12933 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
12934
12935         PR target/34526
12936         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
12937         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
12938         add vrsave.
12939         (rs6000_override_options): Set altivec_abi as default, not override,
12940         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12941         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12942         is used; use new member spe_abi.
12943         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12944         spe_abi and altivec_abi.
12945
12946 2008-02-22  Tomas Bily  <tbily@suse.cz>
12947
12948         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12949
12950 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12951
12952         PR bootstrap/35273
12953         * config.build (build_file_translate): Set to `CMD //c' only if
12954         it works.
12955         * Makefile.in (build_file_translate): Improve comment.
12956
12957 2008-02-21  Jan Hubicka  <jh@suse.cz>
12958
12959         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
12960         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
12961         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
12962
12963 2008-02-21  Michael Matz  <matz@suse.de>
12964
12965         PR target/35264
12966         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
12967
12968 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
12969
12970         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
12971         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
12972         as insn constraint.
12973         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
12974         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
12975         SSE_VEC_FLOAT_MODE_P as insn constraint.
12976         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
12977         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
12978         sse4a_movntdf using MODEF mode iterator.
12979         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
12980         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
12981         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
12982         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
12983         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
12984         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
12985         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
12986
12987 2008-02-21  Richard Guenther  <rguenther@suse.de>
12988
12989         * tree.def (PAREN_EXPR): New tree code.
12990         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
12991         and PAREN_EXPR.
12992         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
12993         * expr.c (expand_expr_real_1): Likewise.
12994         * tree-inline.c (estimate_num_insns_1): Likewise.
12995         * tree-complex.c (expand_complex_move): Likewise.
12996         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
12997         as plain x.
12998
12999 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13000
13001         PR target/35225
13002         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
13003
13004 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13005
13006         PR target/35190
13007         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
13008
13009         * config/sh/sh.c (find_barrier): Don't go past
13010         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
13011
13012 2008-02-20  DJ Delorie  <dj@redhat.com>
13013
13014         * config/h8300/h8300.md (insv): Force source operand to be a register.
13015
13016         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
13017         as a jump, not as a plain insn.
13018         
13019 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
13020
13021         * doc/invoke.texi (Warning Options): Add new option
13022         -Wframe-larger-than=.
13023         (-Wframe-larger-than): Document.
13024
13025         * flags.h (warn_frame_larger_than, frame_larger_than_size):
13026         Add declarations for new option variables.
13027
13028         * final.c (final_start_function): Check the frame size
13029         before emission and issue a Wframe-larger-than warning.
13030
13031         * opts.c (warn_frame_larger_than, frame_larger_than_size):
13032         Add definitions for new option variables.
13033         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
13034
13035         * common.opt (Wframe-larger-than=): New option.
13036
13037 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13038
13039         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
13040         (<sse>_div<mode>3): Ditto.
13041         (<sse>_vmdiv<mode>3): Ditto.
13042         (<sse>_vmsqrt<mode>2): Ditto.
13043         (*smax<mode>3): Ditto.
13044         (sse5_frcz<mode>2): Ditto.
13045         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
13046         as insn constraint.
13047
13048 2008-02-20  Richard Guenther  <rguenther@suse.de>
13049
13050         PR middle-end/35265
13051         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
13052         be happy with INTEGRAL_TYPE_P.
13053
13054 2008-02-20  Richard Guenther  <rguenther@suse.de>
13055
13056         * fold-const.c (split_tree): Associate floatig-point expressions
13057         if flag_associative_math is set.
13058
13059 2008-02-20  Richard Guenther  <rguenther@suse.de>
13060
13061         * tree.h (fold_real_zero_addition_p): Declare.
13062         * fold-const.c (fold_real_zero_addition_p): Export.
13063         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
13064         floating-point operations with zero and one.
13065
13066 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
13067
13068         * doc/install.texi: Correct references to CFLAGS, replacing them
13069         with BOOT_CFLAGS.  Document flags used during bootstrap for
13070         target libraries.
13071                                 
13072 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
13073
13074         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
13075         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
13076         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
13077         insn constraint.
13078         (smin<mode>3): Ditto from similar patterns.
13079         (smax<mode>3): Ditto.
13080         (*ieee_smin<mode>3): Ditto.
13081         (*ieee_smax<mode>3): Ditto.
13082         * config/i386/sse.md (sse): New mode attribute.
13083         (mov<mode>): Macroize expander from movv4sf and movv2df using
13084         SSEMODEF2P mode iterator.
13085         (<sse>_movnt<mode>): Ditto from similar patterns. Use
13086         SSE_VEC_FLOAT_MODE_P as insn constraint.
13087         (storent<mode>): Ditto.
13088         (storent<mode>): Macroize expander from storentsf and storentdf using
13089         MODEF mode iterator.
13090         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
13091         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
13092         (abs<mode>2): Ditto from similar patterns.
13093         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
13094         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
13095         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
13096         (<sse>_vmsqrt<mode>2): Ditto.
13097         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
13098         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
13099         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
13100         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
13101         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
13102         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
13103         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
13104         insn constraint.
13105         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
13106         iterator and SSE_FLOAT_MODE_P as insn constraint.
13107         (<sse>_ucomi): Ditto from similar patterns.
13108         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
13109         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
13110         SSE_VEC_FLOAT_MODE_P as insn constraint.
13111         (vcond<mode>): Ditto from similar patterns.
13112         (and<mode>3, *and<mode>3): Ditto.
13113         (<sse>_nand<mode>3): Ditto.
13114         (ior<mode>3, *ior<mode>3): Ditto.
13115         (xor<mode>3, *xor<mode>3): Ditto.
13116         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
13117         iterator and SSE_FLOAT_MODE_P as insn constraint.
13118         (*nand<mode>3): Ditto from similar patterns.
13119         (*ior<mode>3): Ditto.
13120         (*xor<mode>3): Ditto.
13121
13122 2008-02-20  Ira Rosen  <irar@il.ibm.com>
13123
13124         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
13125         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
13126         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
13127
13128 2008-02-19  Jan Hubicka  <jh@suse.cz>
13129
13130         * predict.c (tree_bb_level_predictions): Remove variable next
13131         mistakely introduced by previous commit.
13132
13133 2008-02-19  Jan Hubicka  <jh@suse.cz>
13134
13135         * predict.c (predict_paths_leading_to): Rewrite.
13136         (predict_paths_for_bb): New.
13137         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
13138
13139 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13140
13141         PR bootstrap/35218
13142         * Makefile.in (build_file_translate): New.
13143         (gcc-vers.texi): Use it for translating $(abs_srcdir).
13144         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
13145         * configure.ac (build_file_translate): Substitute it.
13146         * configure: Regenerate.
13147
13148 2008-02-19  Jan Hubicka  <jh@suse.cz>
13149
13150         PR rtl-optimization/34408
13151         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
13152         invalid sharing.
13153
13154 2008-02-19  Jan Hubicka  <jh@suse.cz>
13155
13156         PR middle-end/28779
13157         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
13158         call_expr.
13159
13160 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13161
13162         PR Ada/35186
13163         * config/i386/i386-modes.def: Revert the last DI alignment
13164         change until Ada people can look into it.
13165
13166 2008-02-19  Nick Clifton  <nickc@redhat.com>
13167
13168         * opts.c (print_specific_help): Fix typo in --help text.
13169
13170 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
13171
13172         PR target/35239
13173         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
13174         32-bit inline asm without asm alternatives for host GCC < 3.0.
13175
13176 2008-02-19  Richard Guenther  <rguenther@suse.de>
13177
13178         PR tree-optimization/34989
13179         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
13180         Allow propagation to INDIRECT_REF if we can simplify only.
13181
13182 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13183
13184         * c-common.c (warn_for_collisions_1): Use appropriate option when
13185         warning.
13186
13187 2008-02-19  Nick Clifton  <nickc@redhat.com>
13188
13189         PR other/31349
13190         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
13191         (handle_options): Fix indentation.
13192         (print_filtered_help): If no language-specific options were
13193         displayed tell the user how to list all the options supported by
13194         the language's front-end.
13195         (print_specific_help): Fix indentation and remove duplicate line.
13196         (common_handle_option): Handle the -v option.
13197         For --help enable the display of undocumented options if the -v
13198         switch has been included on the command line.
13199         For --help= check for overlaps in the arguments between the option
13200         classes and the language names and issue a warning when they
13201         cannot be disambiguated.
13202         * c.opt (v): Pass on to the common option handler.
13203
13204 2008-02-19  Revital Eres  <eres@il.ibm.com> 
13205
13206         * modulo-sched.c (sms_schedule): Change dump message when
13207         create_ddg function fails.
13208         (try_scheduling_node_in_cycle): Rename row to cycle.
13209         (print_partial_schedule): Rename CYCLE to ROW.
13210
13211 2008-02-19  Christian Bruel  <christian.bruel@st.com>
13212             Zdenek Dvorak  <ook@ucw.cz>
13213
13214         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
13215
13216 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13217
13218         PR target/33555
13219         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
13220         (*x86_movdicc_0_m1_se): Ditto.
13221
13222 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
13223
13224         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
13225         (CMPtype): Define as __gcc_CMPtype.
13226         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
13227         (CMPtype): Define as __gcc_CMPtype.
13228
13229 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
13230
13231         Support valgrind 3.3 for --enable-checking=valgrind.
13232         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
13233         here.
13234         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
13235         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
13236         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
13237         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
13238         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
13239         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
13240         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
13241         respectively.
13242         * ggc-zone.c: Similar.
13243         * ggc-page.c: Similar.
13244
13245 2008-02-19  Paul Brook  <paul@codesourcery.com>
13246
13247         PR target/35071
13248         * config/arm/ieee754-df.S: Fix do_it typo.
13249         * config/arm/ieee754-sf.S: Fix do_it typo.
13250
13251 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13252
13253         PR target/35189
13254         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
13255         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
13256         (OPTION_MASK_ISA_SSE_SET): Likewise.
13257         (OPTION_MASK_ISA_SSE2_SET): Likewise.
13258         (OPTION_MASK_ISA_SSE3_SET): Likewise.
13259         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
13260         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
13261         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
13262         (OPTION_MASK_ISA_SSE4_SET): Likewise.
13263         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
13264         (OPTION_MASK_ISA_SSE5_SET): Likewise.
13265         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
13266         (OPTION_MASK_ISA_MMX_UNSET): Updated.
13267         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
13268         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
13269         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
13270         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
13271         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
13272         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
13273         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
13274         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
13275         (OPTION_MASK_ISA_SSE4): Removed.
13276         (ix86_handle_option): Turn on bits in ix86_isa_flags and
13277         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
13278         (override_options): Don't turn on implied SSE/MMX bits in
13279         ix86_isa_flags.
13280
13281 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
13282
13283         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13284         32bit host.
13285
13286 2008-02-18  Joey Ye  <joey.ye@intel.com>
13287
13288         PR middle-end/34921
13289         * tree-nested.c (insert_field_into_struct): Set type alignment
13290         to field alignment if the former is less than the latter.
13291
13292 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
13293
13294         * BASE-VER: Set to 4.4.0.
13295
13296 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13297
13298         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
13299         * doc/cfg.texi: Likewise.
13300         * doc/extend.texi: Likewise.
13301         * doc/gty.texi: Likewise.
13302         * doc/invoke.texi: Likewise.
13303         * doc/loop.texi: Likewise.
13304         * doc/md.texi: Likewise.
13305         * doc/passes.texi: Likewise.
13306         * doc/rtl.texi: Likewise.
13307         * doc/sourcebuild.texi: Likewise.
13308         * doc/tm.texi: Likewise.
13309         * doc/tree-ssa.texi: Likewise.
13310
13311 2008-02-17  Richard Guenther  <rguenther@suse.de>
13312
13313         PR middle-end/35227
13314         * tree-complex.c (init_parameter_lattice_values): Handle parameters
13315         without default definition.
13316
13317 2008-02-17  Richard Guenther  <rguenther@suse.de>
13318
13319         PR tree-optimization/35231
13320         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
13321         if A | B != 1.
13322
13323 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
13324
13325         Revert:
13326         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
13327         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13328         libgcc_cmp_return mode.
13329
13330 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13331
13332         PR c/28368
13333         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
13334
13335 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
13336
13337         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
13338         multilibs.
13339
13340 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13341
13342         * doc/c-tree.texi: Use `@.' where appropriate.
13343         * doc/extend.texi: Likewise.
13344         * doc/install.texi: Likewise.
13345         * doc/invoke.texi: Likewise.
13346         * doc/loop.texi: Likewise.
13347         * doc/makefile.texi: Likewise.
13348         * doc/md.texi: Likewise.
13349         * doc/passes.texi: Likewise.
13350         * doc/standards.texi: Likewise.
13351         * doc/tm.texi: Likewise.
13352
13353 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13354
13355         PR middle-end/35196
13356         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
13357         in entry_bb.
13358         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
13359         rather than in entry_bb.
13360
13361 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13362
13363         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
13364         libgcc_cmp_return mode.
13365
13366 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13367
13368         PR middle-end/35130
13369         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
13370         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
13371
13372 2008-02-15  Richard Guenther  <rguenther@suse.de>
13373             Zdenek Dvorak  <ook@ucw.cz>
13374
13375         PR tree-optimization/35164
13376         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
13377         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
13378         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
13379         Only propagate addresses which do not have abnormal SSA_NAMEs
13380         in their operands.
13381
13382 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
13383
13384         PR target/35088
13385         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
13386
13387 2008-02-15  Jan Hubicka  <jh@suse.cz>
13388
13389         PR middle-end/35149
13390         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
13391
13392 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13393
13394         PR middle-end/34621
13395         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
13396         when calculating alignment_pad.
13397
13398 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
13399
13400         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
13401         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
13402         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
13403         and STACK_BOUNDARY define.
13404
13405 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
13406
13407         PR preprocessor/35061
13408         * c-pragma.c (handle_pragma_pop_macro): Check that
13409         pushed_macro_table has been allocated.
13410
13411 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13412
13413         PR middle-end/35136
13414         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
13415         (force_gimple_operand): Likewise.
13416         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
13417         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
13418         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
13419         (find_interesting_uses_address): Check addressability and alignment
13420         of the base expression only after substituting bases of IVs into it.
13421
13422 2008-02-14  Michael Matz  <matz@suse.de>
13423
13424         PR target/34930
13425         * function.c (instantiate_virtual_regs_in_insn): Reload address
13426         before falling back to reloading the whole operand.
13427
13428 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13429
13430         * config/s390/s390.c (s390_mainpool_start): Emit the pool
13431         before the first section switch note.
13432
13433 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13434
13435         * doc/bugreport.texi: Update copyright years.
13436         * doc/c-tree.texi: Likewise.
13437         * doc/cfg.texi: Likewise.
13438         * doc/cpp.texi: Likewise.
13439         * doc/cppinternals.texi: Likewise.
13440         * doc/fragments.texi: Likewise.
13441         * doc/frontends.texi: Likewise.
13442         * doc/gcc.texi: Likewise.
13443         * doc/gty.texi: Likewise.
13444         * doc/hostconfig.texi: Likewise.
13445         * doc/implement-c.texi: Likewise.
13446         * doc/libgcc.texi: Likewise.
13447         * doc/loop.texi: Likewise.
13448         * doc/makefile.texi: Likewise.
13449         * doc/options.texi: Likewise.
13450         * doc/passes.texi: Likewise.
13451         * doc/rtl.texi: Likewise.
13452         * doc/sourcebuild.texi: Likewise.
13453         * doc/standards.texi: Likewise.
13454         * doc/tree-ssa.texi: Likewise.
13455         * doc/trouble.texi: Likewise.
13456
13457         * doc/extend.texi: Use @: or add comma where appropriate.
13458         * doc/invoke.texi: Likewise.
13459         * doc/tm.texi: Likewise.
13460
13461 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
13462
13463         PR target/34393
13464         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
13465         to a reg.
13466
13467 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
13468
13469         * doc/md.texi (clz, ctz): Add reference.
13470         * doc/rtl.texi (clz, ctz): Likewise.
13471
13472 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13473
13474         PR other/35148
13475         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
13476         srcdir.
13477
13478 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
13479
13480         * config/s390/s390.c (struct constant_pool): New field
13481         emit_pool_after added.
13482         (s390_mainpool_start): Set the emit_pool_after flag according
13483         to the section switch notes.
13484         (s390_mainpool_finish): Consider emit_pool_after when emitting
13485         the literal pool at the end of the function.
13486         (s390_chunkify_start): Force literal pool splits at section
13487         switch notes.
13488
13489 2008-02-13  Michael Matz  <matz@suse.de>
13490
13491         PR debug/35065
13492         * var-tracking.c (clobber_variable_part): Correctly traverse the
13493         list.
13494
13495 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13496
13497         PR 29673
13498         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
13499         Add -fdump-ipa-inline.
13500         * tree-dump.c (dump_files): Remove tree-inlined dump.
13501         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
13502         
13503 2008-02-12  Richard Guenther  <rguenther@suse.de>
13504
13505         PR tree-optimization/35171
13506         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
13507         default defs.
13508
13509 2008-02-12  Richard Guenther  <rguenther@suse.de>
13510
13511         PR middle-end/35163
13512         * fold-const.c (fold_widened_comparison): Use get_unwidened in
13513         value-preserving mode.  Disallow final truncation.
13514
13515 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
13516
13517         PR middle-end/35136
13518         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
13519         code from here to...
13520         (force_gimple_operand): ...here.
13521
13522 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
13523
13524         PR c++/35144
13525         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
13526         non-compatible pointers.
13527         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
13528         different FIELD_DECLs, try harder by comparing field offsets, sizes
13529         and types.
13530
13531         PR inline-asm/35160
13532         * function.c (match_asm_constraints_1): Don't replace the same input
13533         multiple times.
13534
13535 2008-02-12  Anatoly Sokolov <aesok@post.ru>
13536
13537         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
13538         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
13539         (expand_epilogue): Restore RAMPZ register.
13540         * config/avr/avr.md (RAMPZ_ADDR): New constant.
13541
13542 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
13543
13544         * config/i386/cygwin.asm: (__alloca): Correct calling
13545         convention and alignment.
13546         (__chkstk): Force 8 byte stack alignment.
13547
13548 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
13549             Richard Guenther  <rguenther@suse.de>
13550
13551         PR tree-optimization/33992
13552         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
13553         the zero we compare against.
13554
13555 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
13556
13557         PR libfortran/35063
13558         * gthr-win32.h (__gthread_mutex_destroy_function): New function
13559         to CloseHandle after unlocking to prevent accumulation of handle
13560         count.
13561
13562 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13563
13564         PR middle_end/34150
13565         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
13566         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
13567         and update LABEL_NUSES during and after reload.
13568
13569 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
13570
13571         PR middle-end/34627
13572         * combine.c (simplify_if_then_else): Make sure the comparison is
13573         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
13574
13575 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
13576
13577         PR bootstrap/35051
13578         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
13579         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
13580         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
13581         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
13582         * tree.h (get_type_static_bounds): Likewise.
13583
13584 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13585
13586         * doc/invoke.texi (Option Summary, C++ Dialect Options)
13587         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13588         Make -Wfoo language annotations match what the compiler outputs.
13589
13590 2008-02-08  Sa Liu  <saliu@de.ibm.com>
13591
13592         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
13593         intrinsics spu_convts, spu_convtu, spu_convtf.
13594
13595 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
13596
13597         * doc/extend.texi (Function Attributes) <noinline>: Mention
13598         asm ("") as method to keep calls.
13599
13600 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13601
13602         PR other/32754
13603         * doc/options.texi (Options): Replace references to opts.sh with
13604         optc-gen.awk.
13605         * opts-common.c: Likewise.
13606         * optc-gen.awk: Likewise.
13607         
13608 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
13609
13610         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
13611
13612 2008-02-07  Richard Henderson  <rth@redhat.com>
13613
13614         PR rtl-opt/33410
13615         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
13616         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
13617         funny mode.
13618
13619 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
13620
13621         PR tree-optimization/35085
13622         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
13623         for operand entry oe2 in addition to operand entry oe3 in order to
13624         expose more opportunities for vectorizer sum reduction.
13625
13626 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13627
13628         PR other/35107
13629         * Makefile.in (LIBS): Remove $(GMPLIBS).
13630         (cc1-dummy, cc1): Add $(GMPLIBS).
13631
13632 2008-02-06  Jan Hubicka  <jh@suse.cz>
13633
13634         PR target/23322
13635         * i386.md (moddf_integer): Do not produce partial memory stalls for
13636         targets where it hurts.
13637
13638 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
13639
13640         PR target/35083
13641         * optabs.c (expand_float): Do not check for decimal modes when
13642         expanding unsigned integer through signed conversion.
13643
13644 2008-02-06  Nick Clifton  <nickc@redhat.com>
13645
13646         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
13647         inside the clobber with a match_operand and duplicated operand
13648         number in the constraint.
13649         (ineqbranchsi): Delete redundant comment.
13650
13651 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
13652
13653         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
13654         builtin_define ("__USE_INIT_FINI__").
13655         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
13656         -msx multilibs.
13657         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
13658
13659 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13660
13661         PR documentation/30330
13662         * doc/invoke.texi (C++ Dialect Options)
13663         (Objective-C and Objective-C++ Dialect Options, Warning Options):
13664         For each warning option -Wfoo that allows -Wno-foo, ensure both
13665         -Wfoo and -Wno-foo are listed in the option index.  Fix index
13666         entry of -Wswitch-default, index -Wnormalized= including the
13667         `=', and -Wlarger-than-@var{len} including @var{len}.
13668
13669 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13670
13671         * config/i386/i386.md (floatunssisf2): Use
13672         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
13673         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
13674         Macroize expander using MODEF mode iterator.
13675
13676 2008-02-05  Diego Novillo  <dnovillo@google.com>
13677
13678         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
13679
13680         PR 33738
13681         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
13682
13683 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13684
13685         PR other/35070
13686         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
13687
13688 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
13689
13690         PR target/35084
13691         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
13692         to indicate if a message should be generated.
13693         (init_cumulative_args): Updated.
13694         (function_value_32): Likewise.
13695
13696 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
13697
13698         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
13699
13700 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
13701
13702         PR target/35083
13703         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
13704         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
13705
13706 2008-02-04  Diego Novillo  <dnovillo@google.com>
13707
13708         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
13709
13710         PR 33738
13711         * tree-vrp.c (vrp_evaluate_conditional): With
13712         -Wtype-limits, emit a warning when comparing against a
13713         constant outside the natural range of OP0's type.
13714
13715 2008-02-04  Richard Guenther  <rguenther@suse.de>
13716
13717         PR middle-end/33631
13718         * expr.c (count_type_elements): Give for unions instead of
13719         guessing.
13720
13721 2008-02-04  Richard Guenther  <rguenther@suse.de>
13722
13723         PR middle-end/35043
13724         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
13725         to TYPE_DOMAINs base type instead of using bitsizetype here.
13726
13727 2008-02-03  Jason Merrill  <jason@redhat.com>
13728
13729         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
13730
13731 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13732
13733         PR other/29972
13734         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
13735         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
13736         (RS/6000 and PowerPC Options): Fix typos and markup.
13737         * doc/passes.texi (Tree-SSA passes): Likewise.
13738
13739 2008-02-02  Michael Matz  <matz@suse.de>
13740
13741         PR target/35045
13742         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
13743         from record_last_reg_set_info.
13744         (record_last_reg_set_info): Take an RTX argument, iterate over all
13745         constituent hardregs.
13746         (record_last_set_info, record_opr_changes): Change calls to
13747         new signature or to record_last_reg_set_info_regno.
13748
13749 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13750
13751         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
13752
13753 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
13754
13755         PR rtl-optimization/34773
13756         * reg-notes.def (EQUAL): Mention significance of combination of
13757         REG_EQUAL and REG_RETVAL.
13758         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
13759         insn that has a REG_RETVAL.
13760
13761 2008-02-01  Roger Sayle  <roger@eyesopen.com>
13762
13763         PR bootstrap/33781
13764         * configure.ac (--enable-fixed-point): Disable unless explicitly
13765         requested on IRIX.
13766         * configure: Regenerate.
13767
13768 2008-02-01  Richard Guenther  <rguenther@suse.de>
13769
13770         PR other/35042
13771         * invoke.texi (-finline-limit): Remove no longer true parts
13772         of the documentation.  Note that there is no default value.
13773
13774 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
13775             Mark Mitchell  <mark@codesourcery.com>
13776             Ben Elliston  <bje@au.ibm.com>
13777
13778         PR c/29326
13779         * doc/extend.texi (Other Builtins): Document.
13780
13781 2008-01-31  Tom Browder <tom.browder@gmail.com>
13782
13783         * doc/c-tree.texi (Types): Fix grammar.
13784         (Expression trees): Ditto.
13785         * doc/passes.texi (Tree-SSA passes): Ditto.
13786         
13787         * doc/configterms.texi (Configure Terms): Fix typo.
13788         * doc/cpp.texi (Common Predefined Macros): Ditto.
13789         * doc/md.texi (Machine Constraints): Ditto.
13790         
13791         * doc/makefile.texi (Makefile): Add comma.
13792
13793 2008-01-31  Tom Browder  <tom.browder@gmail.com>
13794             Gerald Pfeifer  <gerald@pfeifer.com>
13795         
13796         * doc/sourcebuild.texi (Front End): Remove references to CVS
13797         and CVSROOT/modules.
13798         (Texinfo Manuals): Replace reference to CVS by one to SVN.
13799         (Back End): Remove reference to CVS.
13800
13801 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13802
13803         PR target/34900
13804         * config/mips/mips.c (gen_load_const_gp): New function, taking a
13805         comment from...
13806         (mips16_gp_pseudo_reg): ...here.
13807         * config/mips/mips.md (load_const_gp): Replace with...
13808         (load_const_gp_<mode>): ...this :P-based insn.
13809
13810 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13811
13812         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
13813         options. Minor fixes.
13814         (-std): Move reference to standards closer to where language
13815         standards are first mentioned.
13816         
13817 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
13818
13819         PR rtl-optimization/34995
13820         * reload.c (alternative_allows_const_pool_ref): Take an rtx
13821         parameter and return a bool.  If the rtx parameter is nonnull,
13822         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
13823         (find_reloads): Update call accordingly.  Pass the new operand
13824         if it needed no address reloads, otherwise pass null.
13825
13826 2008-01-30  Richard Henderson  <rth@redhat.com>
13827
13828         PR c/34993
13829         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
13830         for unbounded arrays.
13831
13832 2008-01-30  Silvius Rus  <rus@google.com>
13833
13834         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
13835
13836 2008-01-30  Jan Hubicka  <jh@suse.cz>
13837
13838         PR target/34982
13839         * i386.c (init_cumulative_args): Use real function declaration when
13840         calling locally.
13841
13842 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
13843
13844         PR rtl-optimization/34998
13845         * global.c (build_insn_chain): Treat non-subreg_lowpart
13846         SUBREGs of pseudos as clobbering all the words covered by the
13847         SUBREG, not just all the bytes.
13848         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
13849         original df_ref rather than an extract parameter.
13850         (global_conflicts): Update call accordingly.
13851
13852 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
13853
13854         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
13855         the overflow check to make it easier to read.
13856         (__fixtfdi): Change the type of the ll member in union
13857         long_double to UDItype_x.
13858
13859 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
13860
13861         PR middle-end/34969
13862         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
13863         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
13864         * tree-inline.c (fold_marked_statements): Call
13865         cgraph_update_edges_for_call_stmt if folding a call statement.
13866         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
13867         debug_generic_stmt calls, reset it back afterwards.
13868
13869         PR c/35017
13870         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
13871         static decls.
13872         * c-typeck.c (build_external_ref): Don't pedwarn about
13873         static vars in current function's scope.
13874
13875 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
13876
13877         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
13878
13879 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
13880
13881         PR c/35002
13882         * ipa-struct-reorg.c: Fix spelling.
13883         * params.def: Ditto.
13884
13885 2008-01-29  Richard Guenther  <rguenther@suse.de>
13886
13887         PR middle-end/35006
13888         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13889         field.
13890         * tree-inline.c (remap_type): Increment remapping_type_depth
13891         around remapping types.
13892         (copy_body_r): Only add referenced variables if they are referenced
13893         from code, not types.
13894
13895 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
13896
13897         PR c++/34055
13898         PR c++/34103
13899         PR c++/34219
13900         PR c++/34606
13901         PR c++/34753
13902         PR c++/34754
13903         PR c++/34755
13904         PR c++/34919
13905         PR c++/34961
13906         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
13907         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
13908
13909 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
13910
13911         PR target/34412
13912         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
13913         pointer for tiny stack.
13914
13915 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13916
13917         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
13918
13919 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13920
13921         * config/vx-common.h: Fix typo in comment.
13922
13923 2008-01-28  Ian Lance Taylor  <iant@google.com>
13924
13925         PR c++/34862
13926         PR c++/33407
13927         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13928         coalesce pointers if they have different DECL_NO_TBAA_P values.
13929         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
13930         between variables with different DECL_NO_TBAA_P values.
13931
13932 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
13933
13934         PR 31535
13935         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
13936         are not legitimate small data references on SPE targets.
13937
13938 2008-01-28  David Daney  <ddaney@avtrex.com>
13939
13940         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13941
13942 2008-01-28  David Daney  <ddaney@avtrex.com>
13943
13944         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
13945
13946 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
13947
13948         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13949         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13950         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13951         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13952         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13953         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13954         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13955         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13956
13957 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13958
13959         * basic-block.h (condjump_equiv_p): Fix comment.
13960
13961 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13962
13963         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
13964         print_generic_stmt_indented): Fix comment.
13965
13966 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13967
13968         * configure.ac (__stack_chk_fail): Add detecion for availability
13969         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
13970         * configure: Regenerate.
13971
13972 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
13973
13974         PR middle-end/34688
13975         * final.c (output_addr_const): Handle TRUNCATE.
13976
13977 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
13978
13979         PR target/34711
13980         * tree-ssa-loop-ivopts.c (comp_cost): New type.
13981         (zero_cost, infinite_cost): New constants.
13982         (struct cost_pair): Change type of cost to comp_cost.
13983         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
13984         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
13985         New functions.
13986         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
13987         split_address_cost, ptr_difference_cost, difference_cost,
13988         get_computation_cost_at, get_computation_cost,
13989         determine_use_iv_cost_generic, determine_use_iv_cost_address,
13990         determine_use_iv_cost_condition, determine_use_iv_costs,
13991         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
13992         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
13993         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
13994         Change type of cost to comp_cost.
13995         (determine_iv_cost): Increase cost of non-original ivs, instead
13996         of decreasing the cost of original ones.
13997         (get_address_cost): Indicate the complexity of the addressing mode 
13998         in comp_cost.
13999         (try_add_cand_for): Prefer using ivs not specific to some object.
14000         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
14001
14002 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
14003             Janis Johnson  <janis187@us.ibm.com>
14004
14005         PR target/34814
14006         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
14007         (TARGET_INSTANTIATE_DECLS): Likewise.
14008         * target.h (expand_to_rtl_hook): New target hook.
14009         (instantiate_decls): Likewise.
14010         * function.c (instantiate_decl): Make non-static.  Rename to...
14011         (instantiate_decl_rtl): ... this.
14012         (instantiate_expr): Use instantiate_decl_rtl.
14013         (instantiate_decls_1): Likewise.
14014         (instantiate_decls): Likewise.
14015         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
14016         * function.h (instantiate_decl_rtl): Add prototype.
14017         * cfgexpand.c (target.h): New include.
14018         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
14019         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
14020         (TARGET_INSTANTIATE_DECLS): Likewise.
14021         (TARGET_INITIALIZER): New target hooks added.
14022         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
14023         New prototype.
14024         * config/rs6000/rs6000.c (tree-flow.h): New include.
14025         (machine_function): Add sdmode_stack_slot field.
14026         (rs6000_alloc_sdmode_stack_slot): New function.
14027         (rs6000_instantiate_decls): Likewise.
14028         (rs6000_secondary_memory_needed_rtx): Likewise.
14029         (rs6000_check_sdmode): Likewise.
14030         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
14031         (TARGET_INSTANTIATE_DECLS): Likewise.
14032         (rs6000_hard_regno_mode_ok): Allow SDmode.
14033         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
14034         (rs6000_emit_move): Handle SDmode.
14035         (function_arg_advance): Likewise.
14036         (function_arg): Likewise.
14037         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
14038         SDmode var args for 32-bit compiles.
14039         (rs6000_secondary_reload_class): Handle SDmode.
14040         (rs6000_output_function_epilogue): Likewise.
14041         (rs6000_function_value): Simplify if statement.
14042         (rs6000_libcall_value): Likewise.
14043         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
14044         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
14045         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
14046         (movsd_hardfloat): New define_insn.
14047         (movsd_softfloat): Likewise.
14048         (movsd_store): Likewise.
14049         (movsd_load): Likewise.
14050         (extendsddd2): Likewise.
14051         (extendsdtd2): Likewise.
14052         (truncddsd2): Likewise.
14053         (movdd_hardfloat64): Fixup comment.
14054         (UNSPEC_MOVSD_LOAD): New constant.
14055         (UNSPEC_MOVSD_STORE): Likewise.
14056
14057 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
14058
14059         PR c++/34965
14060         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
14061         TRUTH_XOR_EXPR.
14062         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
14063         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
14064         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
14065         and TRUTH_XOR_EXPR.
14066
14067 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
14068
14069         PR target/34794
14070         * config.gcc: Separate AIX 5.3 from AIX 6.1.
14071         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14072         __LONGDOUBLE128 too.
14073         * config/rs6000/aix61.h: New file.
14074
14075 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14076
14077         PR rtl-optimization/34959
14078         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
14079         popcount and parity rtxes the same mode as their operand.
14080         Truncate or extend the result to the return value's mode
14081         if necessary.
14082
14083 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
14084
14085         PR target/34981
14086         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
14087         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
14088         to GOT_VERSION_REGNUM.
14089         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
14090         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
14091         * config/mips/mips.c (mips_emit_call_insn): New function.
14092         (mips_call_tls_get_addr): Call mips_expand_call directly.
14093         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
14094         emit_call_insn.
14095         (mips16_build_call_stub): Likewise.  Return the call insn or null.
14096         (mips_expand_call): Update the call to mips16_build_call_stub
14097         accordingly and a remove redundant condition.  Assert that MIPS16
14098         stubs do not use lazy binding.  Use mips_emit_call_insn and return
14099         the call insn.
14100         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
14101         TARGET_USE_GOT.
14102         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
14103         (mips_avoid_hazard): Remove hazard_set handling.
14104         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
14105         (UNSPEC_RESTORE_GP): ...this.
14106         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
14107         (FAKE_CALL_REGNO): Rename to...
14108         (GOT_VERSION_REGNUM): ...this.
14109         (type): Add "ghost" value.  Add an associated insn reservation.
14110         (hazard_set): Remove.
14111         (exception_receiver): Rename to...
14112         (restore_gp): ...this and update the unspec identifier accordingly.
14113         (exception_receiver, nonlocal_got_receiver): New expanders.
14114         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
14115         FAKE_CALL_REGNO.  Remove hazard_set attribute.
14116         (set_got_version, update_got_version): New patterns.
14117
14118 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
14119
14120         PR target/34970
14121         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
14122
14123 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14124
14125         PR other/31955
14126         * doc/install.texi2html: Generate gcc-vers.texi.
14127
14128 2008-01-25  DJ Delorie  <dj@redhat.com>
14129
14130         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14131
14132 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
14133
14134         * config/c4x: Remove directory.
14135         * config.gcc (crx-*, mt-*): Mark obsolete.
14136         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
14137         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
14138         sh-*-rtemscoff*): Remove cases.
14139         * defaults.h (C4X_FLOAT_FORMAT): Remove.
14140         * real.c (encode_c4x_single, decode_c4x_single,
14141         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
14142         c4x_extended_format): Remove.
14143         * real.h (c4x_single_format, c4x_extended_format): Remove.
14144         * doc/extend.texi (interrupt, naked): Remove mention of attributes
14145         on C4x.
14146         (Pragmas): Remove comment about c4x pragmas.
14147         * doc/install.texi (c4x): Remove target-specific instructions.
14148         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
14149         * doc/md.texi (Machine Constraints): Remove C4x documentation.
14150         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
14151         refer to C4x source files as examples.
14152         (C4X_FLOAT_FORMAT): Remove documentation.
14153
14154 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
14155
14156         * config/bfin/bfin.c (override_options): Reorder tests so that
14157         flag_pic gets enabled for -msep-data.
14158
14159 2008-01-25  Richard Guenther  <rguenther@suse.de>
14160
14161         PR middle-end/32244
14162         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
14163         to its bitfield precision if required.
14164
14165 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14166
14167         PR middle-end/33880
14168         * tree-nested.c (walk_omp_for): New function.
14169         (convert_nonlocal_reference, convert_local_reference): Call
14170         walk_omp_for on OMP_FOR.
14171         (convert_call_expr): Call walk_body on OMP_FOR's
14172         OMP_FOR_PRE_INIT_BODY.
14173
14174 2008-01-25  Richard Guenther  <rguenther@suse.de>
14175
14176         PR tree-optimization/34966
14177         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
14178         default defs and PHI_NODEs we have to insert after the
14179         defining statement.
14180
14181 2008-01-24  Nick Clifton  <nickc@redhat.com>
14182
14183         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
14184         Provide a default definition.
14185         (LIBGCC2_UNITS_PER_WORD): Likewise.
14186
14187         * config/stormy16/stormy16.c: Include df.h for the prototype
14188         for df_regs_ever_live_p.
14189         (xstormy16_expand_builtin_va_start): Convert the stack offset
14190         into a component_ref and then use POINTER_PLUS_EXPR to add it
14191         to the incoming_virtual_args_rtx.
14192         (xstormy16_gimplify_va_arg_expr): Rename to
14193         xstormy16_gimplify_va_arg_expr.
14194         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
14195         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
14196         xstormy16_gimplify_va_arg_expr.
14197         Fix up some formatting issues.
14198
14199         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
14200         Move to predicates.md.
14201         (xs_hi_general_operand): Likewise.
14202         (xs_hi_nonmemory_operand): Likewise.
14203         * config/stormy16/predicates.md:
14204         (xstormy16_carry_plus_operand): New predicate.
14205         (xs_hi_general_operand): New predicate.
14206         (xs_hi_nonmemory_operand): New predicate.
14207         * config/stormy16/stormy16-protos.h:
14208         (xstormy16_carry_plus_operand): Delete prototype.
14209         (xs_hi_general_operand): Likewise.
14210         (xs_hi_nonmemory_operand): Likewise.
14211
14212         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
14213         modifiers as they are no longer needed and they can trigger
14214         reload spill failures.
14215
14216         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
14217         with a match_operand in order to help reload.
14218
14219         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
14220         constraint with 'e' for the 8th alternative as this version of
14221         the mov.w instruction only accepts the lower 8 registers.
14222
14223 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
14224
14225         PR target/34856
14226         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
14227         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
14228         vector elements.
14229
14230 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14231
14232         PR middle-end/33333
14233         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
14234
14235 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14236
14237         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
14238         New functions.
14239         (remove_structure): Update allocations list before removing structure.
14240         
14241 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
14242
14243         * ipa-struct-reorg.c (is_safe_cond_expr, 
14244         create_new_stmts_for_cond_expr): Use integer_zerop function,
14245         that recognize not only zero-pointer, but zero-integer too.
14246
14247 2008-01-25  Ben Elliston  <bje@au.ibm.com>
14248
14249         PR other/22232
14250         * fixproto: Escape "." in sed expression that strips leading "./".
14251
14252 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14253
14254         PR driver/34904
14255         * gcc.c (SWITCH_OK): Removed.
14256         (SWITCH_LIVE): Changed to bit.
14257         (SWITCH_FALSE): Likewise.
14258         (SWITCH_IGNORE): Likewise.
14259         (switchstr): Change live_cond to unsigned int.
14260         (process_command): Replace SWITCH_OK with 0.
14261         (do_self_spec): Likewise.
14262         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
14263         (give_switch): Likewise.
14264         (used_arg): Likewise.
14265         (do_spec_1): Set the SWITCH_IGNORE bit.
14266         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
14267         bits.  Set the SWITCH_LIVE bit.
14268
14269 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
14270
14271         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
14272
14273 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
14274
14275         PR tree-optimization/34472
14276         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
14277         parameter to a "bool *" and set *DATA to false if there is
14278         an unsafe access.  Do not delete the structure here.
14279         (check_cond_exprs): Delete it here instead.
14280         (check_cond_exprs, exclude_cold_structs): Do not increase
14281         I when removing a structure.
14282
14283 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
14284
14285         PR target/34856
14286         * config/i386/i386.c (ix86_expand_vector_init): Consider only
14287         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
14288
14289 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
14290
14291         PR middle-end/34934
14292         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
14293         a fixed vector for stack.
14294
14295 2008-01-24  Ben Elliston  <bje@au.ibm.com>
14296
14297         PR c++/25701
14298         * doc/gcc.texi (Software development): Add a direntry for g++.
14299         
14300 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
14301
14302         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
14303         stale and straggling -fforce-addr comments above.
14304
14305         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
14306         define.
14307         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
14308         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
14309
14310 2008-01-23  Michael Matz  <matz@suse.de>
14311
14312         PR debug/34895
14313         * dwarf2out.c (force_type_die): Use modified_type_die instead of
14314         gen_type_die.
14315
14316 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
14317
14318         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
14319         malloc result type.
14320
14321 2008-01-23 Anatoly Sokolov <aesok@post.ru>
14322
14323         * config/avr/avr.c (avr_current_arch): New variable.
14324         (avr_arch_types): Add 'avr31' and 'avr51' entries.
14325         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
14326         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
14327         (avr_override_options): Init 'avr_current_arch'. 
14328         (base_arch_s): Move from here...
14329         * config/avr/avr.h (base_arch_s): ... here. Add new members 
14330         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
14331         'mega' to 'have_jmp_call'.
14332         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
14333         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
14334         macros.
14335         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
14336         architectures.
14337         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
14338         MULTILIB_MATCHES): (Ditto.).
14339
14340 2008-01-23  Richard Guenther  <rguenther@suse.de>
14341
14342         PR middle-end/31529
14343         * cgraphunit.c (cgraph_reset_node): Always mark the node
14344         not reachable if it is not queued already.
14345
14346 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14347
14348         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
14349         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
14350         (cputype_selected): New static variable.
14351         (bfin_handle_option): Set it if -mcpu is used.
14352         (override_option): Select default set of workarounds if no cpu type
14353         selected on the command line.
14354         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
14355
14356         From  Michael Frysinger  <michael.frysinger@analog.com>
14357         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
14358         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
14359
14360         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
14361         for bf547, bf523, bf524, and bf526.
14362         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
14363         bf526.
14364         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
14365         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
14366         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
14367         __ADSPBF547__ and __ADSPBF54x__ for bf547.
14368         * doc/invoke.texi (Blackfin Options): Document that
14369         -mcpu now accept bf547, bf523, bf524, and bf526.
14370
14371 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
14372
14373         PR rtl-optimization/34628
14374         * combine.c (try_combine): Stop and undo after the first combination
14375         if an autoincrement side-effect on the first insn has effectively
14376         been lost.
14377
14378 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
14379
14380         PR target/34529
14381         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
14382         Offset addresses are not valid for Altivec or paired float modes.
14383
14384 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
14385
14386         PR c++/34607
14387         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
14388         if DECL_INITIAL (decl) is error_mark_node.
14389
14390         PR c++/34914
14391         * c-common.c (handle_vector_size_attribute): Only allow
14392         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
14393         the same way as pointer, array etc. types.
14394         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
14395
14396         PR c++/34917
14397         * tree.c (build_type_attribute_qual_variant): Call
14398         build_qualified_type if attributes are equal, but quals are not.
14399
14400 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14401
14402         PR 32102
14403         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
14404         * flags.h (warn_strict_aliasing): Remove.
14405         (warn_strict_overflow): Remove.
14406         * opts.c (warn_strict_aliasing): Remove.
14407         (warn_strict_overflow): Remove.
14408         * c-opts.c (c_common_handle_option): -Wall only sets
14409         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
14410         (c_common_post_options): Give default values to -Wstrict-aliasing
14411         and -Wstrict-overflow if they are uninitialized.
14412         * common.opt (Wstrict-aliasing): Specify Var and Init.
14413         (Wstrict-overflow): Likewise.
14414
14415 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
14416
14417         PR rtl-optimization/26854
14418         PR rtl-optimization/34400
14419         PR rtl-optimization/34884
14420         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
14421         DF_RD->gen.
14422         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
14423         (df_rd_bb_info.expanded_lr_out): Deleted
14424         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
14425         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
14426         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14427         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14428         Removed code to allocate, initialize or free expanded_lr_out.
14429         (df_rd_bb_local_compute_process_def): Restructured to make more
14430         understandable.
14431         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
14432         sets if the sets are being trimmed.
14433
14434 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
14435
14436         PR bootstrap/32287
14437         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
14438         (as_vers): Likewise.
14439         * configure: Regenerated.
14440
14441 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14442
14443         PR middle-end/33092
14444         * tree-pass.h (pass_build_alias): New pass.
14445         * tree-ssa-alias.c (gate_build_alias): New.
14446         (pass_build_alias): New.
14447         * passes.c (init_optimization_passes): Add pass_build_alias after
14448         pass_create_structure_vars.
14449
14450 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
14451
14452         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
14453         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
14454         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
14455         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
14456         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
14457         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
14458         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
14459         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
14460         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
14461         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
14462         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
14463         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
14464         * config/s390/s390.md (FP_ALL): New mode iterator.
14465         (_d): New mode attribute.
14466         ("*signbit<mode>2>"): Changed mode of first operand.
14467         ("isinf<mode>2"): Changed mode of first operand.
14468         ("*TDC_insn"): Adaptation for DFP modes.
14469
14470 2008-01-22  Ben Elliston  <bje@au.ibm.com>
14471
14472         * tree.c (check_qualified_type): Improve function description.
14473
14474 2008-01-21  Jason Merrill  <jason@redhat.com>
14475
14476         PR c++/34196
14477         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
14478         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
14479         if it is set.
14480
14481 2008-01-21  DJ Delorie  <dj@redhat.com>
14482
14483         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
14484         return zero.
14485
14486 2008-01-21  Richard Guenther  <rguenther@suse.de>
14487
14488         PR middle-end/34856
14489         * tree-cfg.c (verify_expr): Allow all invariant expressions
14490         instead of just constant class ones as reference argument.
14491         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
14492         like any other constant.
14493         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14494
14495 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
14496
14497         * regmove.c (fixup_match_1): Update call crossed frequencies.
14498
14499 2008-01-21  Richard Guenther  <rguenther@suse.de>
14500
14501         PR c/34885
14502         * tree-inline.c (setup_one_parameter): Deal with mismatched
14503         types using a VIEW_CONVERT_EXPR.
14504
14505 2008-01-21  Alon Dayan  <alond@il.ibm.com>
14506             Olga Golovanevsky  <olga@il.ibm.com>
14507         
14508         PR tree-optimization/34701
14509         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
14510         when the structure size is not a power of 2.
14511
14512 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14513
14514         * doc/install.texi: Add doc for --enable-checking=df.
14515         
14516 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14517
14518         PR rtl-optimization/34808
14519         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
14520
14521 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14522
14523         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
14524         input.
14525
14526 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
14527
14528         PR rtl-optimization/26854
14529         PR rtl-optimization/34400
14530         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
14531         DF_RD->gen.
14532         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
14533         (df_rd_bb_info.expanded_lr_out): New.
14534         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
14535         * loop_iv.c (iv_analysis_loop_init): Ditto.
14536         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
14537         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
14538         Added code to allocate, initialize or free expanded_lr_out.
14539         (df_rd_bb_local_compute_process_def): Restructured to make
14540         more understandable.
14541         (df_rd_confluence_n): Add code to do nothing with fake edges and
14542         code to no apply invalidate_by_call sets if the sets are being trimmed.
14543         (df_lr_local_finalize): Renamed to df_lr_finalize.
14544         (df_live_local_finalize): Renamed to df_live_finalize.
14545
14546 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
14547
14548         PR target/34831
14549         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
14550         deciding whether to use reciprocal instructions.
14551
14552 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
14553
14554         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
14555         dwarf2out_note_section_used if cold_text_section is NULL.
14556
14557 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
14558
14559         PR gcov-profile/34610
14560         * tree-cfg.c (make_edges): Mark both outgoing edges from
14561         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
14562         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
14563         from OMP_FOR and OMP_CONTINUE outgoing edges.
14564
14565         * tree-profile.c (tree_profiling): Return early if
14566         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
14567         at the end.
14568         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
14569         from cfun to child_cfun.
14570         * function.h (struct function): Add after_tree_profile bit.
14571
14572 2008-01-19 Anatoly Sokolov <aesok@post.ru>
14573
14574         * config/avr/avr.S (_exit): Disable interrupt.
14575
14576 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
14577             Steven Bosscher  <stevenb.gcc@gmail.com>
14578
14579         PR rtl-optimization/26854
14580         PR rtl-optimization/34400
14581         * df-problems.c (df_live_scratch): New scratch bitmap.
14582         (df_live_alloc): Allocate df_live_scratch when doing df_live.
14583         (df_live_reset): Clear the proper bitmaps.
14584         (df_live_bb_local_compute): Only process the artificial defs once
14585         since the order is not important.
14586         (df_live_init): Init the df_live sets only with the variables
14587         found live by df_lr.
14588         (df_live_transfer_function): Use the df_lr sets to prune the
14589         df_live sets as they are being computed.  
14590         (df_live_free): Free df_live_scratch.
14591
14592 2008-01-18  Ian Lance Taylor  <iant@google.com>
14593
14594         * common.opt: Add fmerge-debug-strings.
14595         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
14596         flag_merge_debug_strings rather than flag_merge_constants.
14597         * doc/invoke.texi (Option Summary): Mention
14598         -fmerge-debug-strings.
14599         (Debugging Options): Document -fmerge-debug-strings.
14600
14601 2008-01-18  Ian Lance Taylor  <iant@google.com>
14602
14603         PR c++/33407
14604         * tree.h (DECL_IS_OPERATOR_NEW): Define.
14605         (struct tree_function_decl): Add new field operator_new_flag.
14606         * tree-inline.c (expand_call_inline): When inlining a call to
14607         operator new, force the return value to go into a variable, and
14608         set DECL_NO_TBAA_P on that variable.
14609         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
14610
14611 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
14612
14613         PR debug/34484
14614         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
14615         DWARF2_DEBUGGING_INFO.
14616         (dwarf2out_note_section_used): Ditto.  Add prototype.
14617         (have_multiple_function_sections, text_section_used,
14618         cold_text_section_used, *cold_text_sections): Move declarations
14619         before their uses.
14620
14621 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
14622
14623         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
14624         field and add signal_ra.
14625         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
14626         assignments to frame state pc.  Move end of stack check after
14627         MD_FALLBACK_FRAME_STATE_FOR.
14628         (uw_update_context_1): Use frame state signal_regs if set, instead
14629         of checking signal_frame flag.
14630         (uw_update_context): Use frame state signal_ra if set.
14631         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
14632         * config/xtensa/linux-unwind.h: New file.
14633
14634 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
14635
14636         * modulo-sched.c (get_sched_window): Fix comment typo.
14637
14638 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
14639
14640         PR tree-optimization/34648
14641         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
14642
14643 2008-01-17  Anatoly Sokolov <aesok@post.ru>
14644
14645         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
14646         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
14647
14648 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
14649
14650         PR rtl-optimization/34400
14651         * df-core.c (df_worklist_dataflow_overeager,
14652         df_worklist_dataflow_doublequeue): New functions.
14653         (df_worklist_dataflow): Two different worklist solvers.
14654         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
14655         New param.
14656
14657 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14658
14659         PR testsuite/34821
14660         * doc/invoke.texi: Document the dependence on pthread for fopenmp
14661         and ftree-parallelize-loops.
14662
14663 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
14664
14665         PR rtl-optimization/34826
14666         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
14667
14668 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
14669
14670         * global.c (find_reg): Mark the eh regs as used if necessary.
14671         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
14672         * ra.h (struct allocno): no_eh_reg field added.  Changed
14673         no_stack_reg type to bitfield.
14674
14675 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
14676
14677         * tree.c (substitute_in_expr): Add missing 'break'.
14678
14679 2008-01-17  Richard Guenther  <rguenther@suse.de>
14680
14681         PR tree-optimization/34825
14682         * tree-ssa-math-opts.c (is_division_by): Do not recognize
14683         x / x as division to handle.
14684
14685 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14686
14687         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
14688         "-pthread" is specified.
14689         * pa-hpux11.h (LIB_SPEC): Likewise.
14690
14691 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
14692             Peter Bergner  <bergner@vnet.ibm.com>
14693
14694         PR rtl-optimization/33796
14695         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
14696
14697 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14698
14699         PR libgfortran/34699
14700         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
14701         static links.
14702         * pa-hpux10.h (LINK_SPEC): Likewise.
14703         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
14704
14705 2008-01-16  Richard Guenther  <rguenther@suse.de>
14706
14707         PR middle-end/32628
14708         * fold-const.c (fold_convert_const_int_from_int): Do not
14709         set overflow if that occured only because of a sign extension
14710         change when converting from/to a sizetype with the same
14711         precision and signedness.
14712
14713 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14714
14715         PR debug/34249
14716         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
14717         location address to the correct place.  Update copyright year.
14718
14719 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14720
14721         * lambda-code.c (lambda_transform_legal_p): Handle the case of
14722         no dependences in the dependence_relations vector.
14723
14724 2008-01-16  Jan Hubicka  <jh@suse.cz>
14725
14726         PR rtl-optimization/31396
14727         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
14728         * cfg.c (dump_reg_info): Print it.
14729         * regs.h (struct reg_info_t): add freq_calls_crossed.
14730         (REG_FREQ_CALLS_CROSSED): New macro.
14731         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
14732         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
14733         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
14734         regmove_optimize): Update call crossed frequencies.
14735         * local-alloc.c (struct qty): Add freq_calls_crossed.
14736         (alloc_qty): Copute freq_calls_crossed.
14737         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
14738         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
14739         * ra.h (struct allocno): Add freq_calls_crossed.
14740
14741 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14742
14743         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
14744         libgomp when compiling with ftree-parallelize-loops.
14745         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
14746
14747 2008-01-16  Richard Guenther  <rguenther@suse.de>
14748
14749         PR tree-optimization/34769
14750         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
14751         * tree.c (int_cst_value): Instead make this function more
14752         permissive in what it accepts as valid input.  Document this
14753         function always sign-extends the value.
14754
14755 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
14756             Richard Guenther  <rguenther@suse.de>
14757
14758         PR c/34668
14759         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
14760         (gimple_fold_indirect_ref_rhs): ... this.
14761         (gimple_fold_indirect_ref): New function with foldings
14762         that preserve lvalueness.
14763         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
14764         * tree-flow.h (gimple_fold_indirect_ref): Declare.
14765         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
14766         to fold an INDIRECT_REF, fall back to the old use of
14767         fold_indirect_ref_1.
14768
14769 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
14770
14771         * tree-data-ref.c (subscript_dependence_tester_1): Call 
14772         free_conflict_function.
14773         (compute_self_dependence): Same.
14774
14775 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
14776
14777         PR debug/34249
14778         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
14779         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
14780         function global.
14781         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
14782         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
14783         for DWARF2_UNWIND_INFO targets.
14784
14785 2008-01-16  Richard Guenther  <rguenther@suse.de>
14786
14787         PR c/34768
14788         * c-typeck.c (common_pointer_type): Do not merge inconsistent
14789         type qualifiers for function types.
14790
14791 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
14792
14793         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
14794         loop_iterator li from previous commit.
14795
14796 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
14797
14798         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
14799
14800 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14801
14802         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
14803         (parallelize_loops): Don't parallelize irreducible components.
14804
14805 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14806
14807         PR c++/24924
14808         * c-opts (c_common_post_options): Do not enable CPP
14809         flag_pedantic_errors by default.
14810         
14811 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
14812
14813         PR rtl-optimization/31944
14814         * cse.c (remove_pseudo_from_table): New function.
14815         (merge_equiv_classes): Use above function to remove pseudo-registers.
14816         (invalidate): Likewise.
14817
14818 2008-01-13  Richard Guenther  <rguenther@suse.de>
14819
14820         PR middle-end/34601
14821         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
14822         instead of TYPE_MODE to deal with calls from expand_one_error_var.
14823
14824 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
14825
14826         * gcse.c (cprop_jump): Call validate_unshare_change instead of
14827         validate_change to unshare the source of the PC set.
14828
14829 2008-01-12  Jan Hubicka  <jh@suse.cz>
14830
14831         PR middle-end/32135
14832         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
14833         references above array bounds.  This might trigger bounds checks for
14834         pointers to arrays.
14835
14836 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
14837
14838         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
14839         new_replaceable_dependencies.
14840
14841 2008-01-12  Doug Kwan  <dougkwan@google.com>
14842
14843         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
14844         instead of OPT_Wreturn_type in warning due to ignored return type
14845         qualifiers.
14846         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
14847         options included in -Wextra.
14848         * c.opt: New option -Wignored_qualifiers.
14849         * doc/invoke.texi (Warning Options, -Wextra): Add new option
14850         -Wignore_qualifiers.
14851         (-Wignored-qualifiers): Document.
14852         (-Wreturn-type): Remove description of functionality now handled
14853         by -Wignored-qualifiers.
14854
14855 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
14856
14857         PR ada/33788
14858         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
14859         NOP_EXPR if it is between integral types with the same precision.
14860
14861 2008-01-12  Jan Hubicka  <jh@suse.cz>
14862
14863         PR other/28023
14864         * invoke.texi (max-inline-recursive-depth): Fix default value.
14865
14866 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
14867
14868         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
14869         correct type.
14870
14871 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
14872         
14873         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
14874         
14875 2008-01-11  James E. Wilson  <wilson@specifix.com>
14876
14877         PR target/26015
14878         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
14879
14880 2008-01-11  Anatoly Sokolov <aesok@post.ru>
14881
14882         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
14883         save/restore frame pointer register and don't use 'call-prologues' 
14884         optimization in function with "OS_task" attribute.
14885
14886 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
14887
14888         PR middle-end/31309
14889         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14890         when copying to memory.
14891
14892 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
14893
14894         PR rtl-optimization/30905
14895         * cfgcleanup.c: Include dce.h
14896         (crossjumps_occured): New global variable.
14897         (try_crossjump_bb): Exit loop after finding a fallthru edge.
14898         If something changed, set crossjumps_occured to true.
14899         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14900         Don't add/remove fake edges to exit here...
14901         (cleanup_cfg): ...but do it here, when crossjumping.
14902         Run a fast DCE when successful crossjumps occured in the latest
14903         iteration of try_optimize_cfg.
14904
14905 2008-01-11  Richard Guenther  <rguenther@suse.de>
14906
14907         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
14908         (struct vn_unary_op_s): Likewise.
14909         (vn_reference_insert): Free old reference on hash collision.
14910
14911 2008-01-10  Raksit Ashok  <raksit@google.com>
14912
14913         PR rtl-optimization/27971
14914         * combine.c (find_split_point): Split PLUS expressions which are
14915         inside a MEM rtx, and whose first operand is complex.
14916
14917 2008-01-10  DJ Delorie  <dj@redhat.com>
14918
14919         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
14920         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
14921         (m32c_hard_regno_ok): Call the underlying function.
14922
14923 2008-01-10  Richard Guenther  <rguenther@suse.de>
14924
14925         PR middle-end/34683
14926         * tree-cfg.c (tree_merge_blocks): Do not go through the
14927         full-blown folding and stmt updating path if we just deal
14928         with virtual operands.
14929         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
14930         test for abnormal SSA_NAMEs.
14931
14932 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
14933
14934         PR middle-end/34641
14935         * reload.c (push_reload): Add assertions.  All constants from
14936         reg_equiv_constant should have been used for replacing the respective
14937         pseudo earlier.
14938         (find_reloads_address): Invoke find_reloads_address_part for
14939         constant taken from the reg_equiv_constant array.
14940
14941 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
14942
14943         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14944         field (valnum) the first in the struct.  Replace bools with
14945         unit bit fields.
14946
14947 2008-01-10  Richard Guenther  <rguenther@suse.de>
14948
14949         PR tree-optimization/34651
14950         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
14951         types and ordering for masking and converting.
14952
14953 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
14954
14955         PR tree-optimization/34017
14956         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14957         also for PHI_NODE expressions.
14958
14959 2008-01-09  Jan Hubicka  <jh@suse.cz>
14960
14961         PR tree-optimization/34708
14962         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
14963         based on number of case labels.
14964         (init_inline_once): Remove switch_cost.
14965         * tree-inline.h (eni_weights_d): Remove switch_cost.
14966
14967 2008-01-09  Richard Guenther  <rguenther@suse.de>
14968         Andrew Pinski  <andrew_pinski@playstation.sony.com>
14969
14970         PR middle-end/30132
14971         * gimplify.c (gimplify_cond_expr): Do not create an addressable
14972         temporary if an rvalue is ok or an lvalue is not required.
14973
14974 2008-01-09  Richard Guenther  <rguenther@suse.de>
14975
14976         PR middle-end/34458
14977         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
14978         adjust return type.
14979
14980 2008-01-09  Richard Guenther  <rguenther@suse.de>
14981
14982         PR middle-end/34679
14983         * tree.c (host_integerp): Check for sizetype only if the
14984         type is an integer type.
14985
14986 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
14987
14988         PR debug/26364
14989         * opts.c (decode_options): Disable inlining of functions called
14990         once if not in unit-at-a-time mode.
14991
14992 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
14993
14994         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
14995
14996 2008-01-08  Richard Guenther  <rguenther@suse.de>
14997
14998         PR middle-end/31863
14999         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
15000         out early if the result will be unused.
15001
15002 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15003
15004         PR target/34709
15005         Revert:
15006
15007         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15008         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15009         for TARGET_RECIP.       
15010         
15011 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
15012         
15013         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
15014         for vectorization tuned.
15015         
15016 2008-01-08  Richard Guenther  <rguenther@suse.de>
15017
15018         PR tree-optimization/34683
15019         * tree-ssa-operands.c (operand_build_cmp): Export.
15020         * tree-ssa-operands.h (operand_build_cmp): Declare.
15021         * tree-vn.c (vuses_compare): Remove.
15022         (sort_vuses): Use operand_build_cmp.
15023         (sort_vuses_heap): Likewise.
15024         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
15025         to re-use old VEC if available.  Do not sort already sorted VUSEs.
15026         (vdefs_to_vec): Do not sort already sorted VDEFs.
15027
15028 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
15029
15030         PR middle-end/34694
15031         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
15032
15033 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
15034
15035         PR target/34702
15036         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
15037         limitations of reciprocal sequences on x86 targets.
15038
15039 2008-01-08  Richard Guenther  <rguenther@suse.de>
15040
15041         PR tree-optimization/34683
15042         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
15043
15044 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
15045
15046         PR target/34622
15047         * config/darwin.c (darwin_mergeable_string_section): Don't use
15048         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
15049
15050 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
15051
15052         PR target/34682
15053         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
15054         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
15055         predicates of op0 and op1 to register_operand.
15056         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
15057         expander using X87MODEF mode iterator.  Change predicates of
15058         op0 and op1 to register_operand.
15059         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
15060         corresponding patterns and macroize using MODEF macro.  Change
15061         predicates of op0 and op1 to register_operand and remove
15062         "m" constraint. Disparage "r" alternative with "!".
15063         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
15064         macroize using X87MODEF macro.  Change predicates of op0 and op1
15065         to register_operand and remove "m" constraint.  Disparage "r"
15066         alternative with "!".
15067         (absneg splitter with memory operands): Remove.
15068         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
15069         patterns and macroize using X87MODEF mode iterator.
15070         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
15071         Change predicate of op1 to register_operand.
15072         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
15073         for memory operands.
15074
15075 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15076
15077         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
15078
15079 2008-01-07  Richard Guenther  <rguenther@suse.de>
15080
15081         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
15082         fields.
15083
15084 2008-01-07  Richard Guenther  <rguenther@suse.de>
15085
15086         PR tree-optimization/34683
15087         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
15088         VOPs of the needed size to save memory.  Use VEC_quick_push
15089         to save compile-time.
15090         (vdefs_to_vec): Likewise.
15091
15092 2008-01-07  Sa Liu  <saliu@de.ibm.com>
15093
15094         * config/spu/spu.md (divdf3): Genetate inline code for double
15095         division.  The implementation doesn't handle INF or NAN, therefore it
15096         only applies when -ffinite-math-only is given.
15097
15098 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
15099
15100         PR libstdc++/34680
15101         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
15102         * doc/cpp.texi ([Common Predefined Macros]): Document.
15103
15104 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
15105
15106         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
15107         order to use commutative addition instead of subtraction.
15108
15109 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15110             Mircea Namolaru  <namolaru@il.ibm.com>
15111             Vladimir Yanovsky  <yanov@il.ibm.com>
15112             Revital Eres  <eres@il.ibm.com>
15113
15114         PR tree-optimization/34263
15115         * tree-outof-ssa.c (process_single_block_loop_latch,
15116         contains_tree_r): New functions.
15117         (analyze_edges_for_bb): Call process_single_block_loop_latch
15118         function to empty single-basic-block latch block if possible.
15119
15120 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15121
15122         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
15123         for TARGET_RECIP.
15124         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
15125
15126 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15127
15128         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
15129
15130 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
15131
15132         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
15133
15134 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
15135
15136         PR tree-optimization/34618
15137         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
15138         flag from T.
15139
15140 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
15141
15142         PR target/34673
15143         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
15144         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
15145         Update copyright year.
15146
15147         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
15148         Update copyright year.
15149         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
15150         using NR fixup.
15151
15152 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
15153
15154         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
15155         edge does not point to current bb before changing need_assert.
15156
15157 2008-01-04  Richard Guenther  <rguenther@suse.de>
15158
15159         PR middle-end/34029
15160         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
15161         for verifying purposes if they are is_gimple_min_invariant.
15162
15163 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
15164
15165         PR tree-optimization/34448
15166         PR tree-optimization/34465
15167         * gimplify.c (gimplify_init_constructor): Add new parameter
15168         notify_temp_creation.  Use it.
15169         (gimplify_modify_expr_rhs): Take volatiles into account when
15170         optimizing constructors.
15171         Do not optimize constructors if gimplify_init_constructor will dump to
15172         memory.
15173         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
15174         * gcc.c-torture/compile/pr34448.c: New.
15175
15176 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
15177
15178         PR gcov-profile/34609
15179         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
15180         return_slot if result is TREE_ADDRESSABLE.
15181
15182 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
15183
15184         * config/mips/mips.md (sqrt_condition): Tweak comment.
15185         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
15186
15187 2008-01-03  Tom Tromey  <tromey@redhat.com>
15188
15189         PR c/34457
15190         * c-common.c (c_type_hash): Handle VLAs.
15191
15192 2008-01-03  Jan Hubicka  <jh@suse.cz>
15193
15194         PR tree-optimization/31081
15195         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
15196         0 when inlining and not inlining to first basic block.
15197         (remap_decl): When var is initialized to 0, don't set default_def.
15198         (expand_call_inline): Set entry_bb.
15199         * tree-inline.h (copy_body_data): Add entry_bb.
15200
15201 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15202
15203         PR c++/34619
15204         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
15205         before returning.
15206
15207         PR tree-optimization/29484
15208         * tree-inline.c (inline_forbidden_p_2): New function.
15209         (inline_forbidden_p): Disallow inlining if some static var
15210         has an address of a local LABEL_DECL in its initializer.
15211         * doc/extend.texi (Labels as Values): Document &&foo behaviour
15212         vs. inlining.
15213
15214 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15215
15216         PR tree-optimization/34635
15217         * tree-data-ref.c (add_other_self_distances): Make sure that the
15218         evolution step is constant.
15219
15220 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
15221
15222         PR middle-end/34608
15223         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
15224
15225 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
15226
15227         * tree-sra.c (scalarize_init): Insert the generate_element_init
15228         statements after the generate_element_zero statements.
15229
15230 2008-01-02  Richard Guenther  <rguenther@suse.de>
15231
15232         PR middle-end/34093
15233         PR middle-end/31976
15234         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
15235         for very large number of operands instead of ICEing.
15236
15237 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
15238
15239         PR target/34013
15240         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
15241         while stack probing.
15242
15243 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
15244
15245         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
15246         in C++0x mode.
15247
15248 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
15249
15250         PR libmudflap/26442
15251         * tree-mudflap.c (mx_register_decls): Guard warning by
15252         !DECL_ARTIFICIAL check.
15253
15254 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
15255
15256         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
15257         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
15258         sse5_perm<mode>): Fix constraints.