OSDN Git Service

f6d68056c3cb049c5ef9cb6576c38f75e21ab19d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2
3         * genpreds.c (write_enum_constraint_num): Output definition of
4         CONSTRAINT_NUM_DEFINED_P macro.
5         * ira.c (setup_cover_and_important_classes): Use
6         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
7         
8 2009-04-24  DJ Delorie  <dj@redhat.com>
9
10         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
11         __SH2A_SINGLE_ONLY__ also.
12
13 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
14
15         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
16         (movdf_internal): Ditto.
17         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
18         SFmode and DFmode constants.
19         (ia64_print_operand): Add 'G' format for printing
20         floating point constants.
21
22 2009-04-24  Richard Guenther  <rguenther@suse.de>
23
24         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
25         from unsigned additions.
26
27 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
28
29         * c-typeck.c (set_init_index): Allow array designators that are
30         not integer constant expressions with a pedwarn if pedantic.
31
32 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
33
34         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
35         zero if no overlap in nonzero bits between the operands.
36
37 2009-04-24  Ian Lance Taylor  <iant@google.com>
38
39         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
40         (record_dead_and_set_regs): Likewise.
41         * df.h (struct df_mw_hardreg): Change flags field to int.
42         (struct df_base_ref): Likewise.
43         (struct df): Change changeable_flags field to int.
44         * df-scan.c (df_defs_record): Change clobber_flags to int.
45         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
46         constants rather than #define macros.
47         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
48         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
49         (enum dwarf_calling_convention): Likewise.
50         (enum dwarf_line_number_x_ops): Likewise.
51         (enum dwarf_call_frame_info): Likewise.
52         (enum dwarf_source_language): Likewise.
53         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
54         (add_calling_convention_attribute): Likewise.
55         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum
56         type.
57         (combine_comparisons): Change compcode to int.  Add cast to enum
58         type.
59         * genrecog.c (maybe_both_true_2): Change c to int.
60         (write_switch): Likewise.  Add cast to enum type.
61         * gimplify.c (gimplify_omp_for): Handle return values from
62         gimplify_expr using MIN rather than bitwise or.
63         (gimplify_expr): Add cast to enum type.
64         * ipa-prop.c (update_jump_functions_after_inlining): Change
65         IPA_BOTTOM to IPA_JF_UNKNOWN.
66         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to
67         int.  Add casts to enum type.
68         (setup_cover_and_important_classes): Change cl to int.  Add casts
69         to enum type.
70         (setup_class_translate): Change cl and mode to int.
71         (ira_init_once): Change mode to int.
72         (free_register_move_costs): Likewise.
73         (setup_prohibited_mode_move_regs): Add casts to enum type.
74         * langhooks.c (add_builtin_function_common): Rework assertion that
75         value fits bitfield.
76         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
77         * omega.c (omega_do_elimination): Avoid math on enum types.
78         * optabs.c (expand_vec_shift_expr): Remove casts to int.
79         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
80         int local to handle integral_argment value.
81         * regmove.c (try_auto_increment): Change PUT_MODE to
82         PUT_REG_NOTE_KIND.
83         * reload.c (push_secondary_reload): Add casts to enum type.
84         (secondary_reload_class, find_valid_class): Likewise.
85         * reload1.c (emit_input_reload_insns): Likewise.
86         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
87         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
88         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
89         constant.
90         * tree.c (build_common_builtin_nodes): Add casts to enum type.
91         * tree-complex.c (complex_lattice_t): Typedef to int rather than
92         enum type.
93         (expand_complex_libcall): Add casts to enum type.
94         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
95         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
96         with ERROR_MARK, not NUM_TREE_CODES.
97         (vect_create_epilog_for_reduction): Likewise.
98         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
99         When not using it, set it to ERROR_MARK rather than
100         NUM_TREE_CODES.
101         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
102         enum machine_mode.
103         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
104         vect_unused_in_loop.  Change 0 to loop_vect.
105         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum
106         type.
107         * var-tracking.c (get_init_value): Change return type to enum
108         var_init_status.
109         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
110         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
111         arm_fp_model.
112         (arm_override_options): Add casts to enum type.
113         (arm_emit_tls_decoration): Likewise.
114         * config/i386/i386.c (ix86_function_specific_restore): Add casts
115         to enum type.
116         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
117         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
118         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
119         enum type.
120         * config/s390/s390.c (code_for_builtin_64): Change to array of
121         enum insn_code.
122         (code_for_builtin_31): Likewise.
123         (s390_expand_builtin): Change code_for_builtin to enum insn_code
124         const *.
125         * config/sparc/sparc.c (sparc_override_options): Change value
126         field in struct code_model to enum cmodel.  In initializer change
127         0 to NULL and add cast to enum type.
128
129         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
130         Change all callers.  Issue a -Wc++-compat warning using
131         lhs_origtype if necessary.
132         (convert_for_assignment): Issue -Wc++-compat warnings about
133         invalid conversions to enum type on assignment.
134         * c-common.h (build_modify_expr): Update declaration.
135
136 2009-04-24  Nick Clifton  <nickc@redhat.com>
137
138         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
139         (function_arg_advance): Likewise.
140         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
141         5th alternative.
142
143 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
144
145         * config/s390/constraints.md ('I', 'J'): Fix condition.
146
147 2009-04-24  Diego Novillo  <dnovillo@google.com>
148
149         * gengtype-parse.c (parse_error): Add newline after message.
150
151 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
152
153         * config/i386/sse.md (avxmodesuffixs): Removed.
154         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
155         (*avx_pinsr<ssevecsize>): This.
156
157 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
158
159         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
160         follow chains of regs with a single definition, and allow expressions
161         that are function_invariant_p.
162         (simple_rhs_p): Allow expressions that are function_invariant_p.
163
164 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
165
166         PR middle-end/39867
167         * fold-const.c (fold_cond_expr_with_comparison): When folding
168         > and >= to MAX, make sure the MAX uses the same type as the
169         comparison's operands.
170
171 2009-04-24  Nick Clifton  <nickc@redhat.com>
172
173         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
174         addressing for DImode accesses.
175         (frv_print_operand_address): Handle PLUS case.
176         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as
177         fixed.
178
179 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
180
181         PR rtl-optimization/39794
182         * alias.c (canon_true_dependence): Add x_addr argument.
183         * rtl.h (canon_true_dependence): Adjust prototype.
184         * cse.c (check_dependence): Adjust canon_true_dependence callers.
185         * cselib.c (cselib_invalidate_mem): Likewise.
186         * gcse.c (compute_transp): Likewise.
187         * dse.c (scan_reads_nospill): Likewise.
188         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
189         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
190         canon_base_addr of the group, plus optional offset.
191         (struct group_info): Rename canon_base_mem to
192         canon_base_addr.
193         (get_group_info): Set canon_base_addr to canon_rtx of base, not
194         canon_rtx of base_mem.
195
196 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
197
198         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
199         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
200
201 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
202
203         * config/spu/spu-builtins.h: Delete file.
204
205         * config/spu/spu.h (enum spu_builtin_type): Move here from
206         spu-builtins.h.
207         (struct spu_builtin_description): Likewise.  Add GTY marker.
208         Do not use enum spu_function_code or enum insn_code.
209         (spu_builtins): Add extern declaration.
210
211         * config/spu/spu.c: Do not include "spu-builtins.h".
212         (enum spu_function_code, enum spu_builtin_type_index,
213         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
214         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
215         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
216         unsigned_V2DI_type_node): Move here from spu-builtins.h.
217         (spu_builtin_types): Make static.  Add GTY marker.
218         (spu_builtins): Add extern declaration with GTY marker.
219         Include "gt-spu.h".
220
221         * config/spu/spu-c.c: Do not include "spu-builtins.h".
222         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
223         Check programmatically whether all parameters are scalar.
224
225         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
226
227 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
228
229         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
230         assignment from the constructor either if the target is volatile.
231
232 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
233
234         * config/arm/arm.md (insv): Do not share operands[0].
235
236 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
237
238         * config/vxlib-tls.c (active_tls_threads): Delete.
239         (delete_hook_installed): New.
240         (tls_delete_hook): Don't delete the delete hook.
241         (tls_destructor): Delete it here.
242         (__gthread_set_specific): Adjust installing the delete hook.
243         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
244         __gthread_leave_tsd_dtor_context.
245
246 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
247
248         * c-format.c (gcc_tdiag_char_table): Add support for %E.
249
250 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
251
252         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
253         enum type.
254         (alpha_rtx_costs): Ditto.
255         (emit_unlikely_jump): Use add_reg_note.
256         (emit_frame_store_1): Ditto.
257         (alpha_expand_prologue): Ditto.
258         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
259         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
260
261 2009-04-23  Nick Clifton  <nickc@redhat.com>
262
263         * config/v850/v850.md (epilogue): Remove suppressed code.
264         (return): Rename to return_simple and remove test of frame size.
265         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
266         to gen_return_simple.
267
268 2009-04-22  Jing Yu  <jingyu@google.com>
269
270         PR testsuite/39781
271         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
272
273 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
274
275         PR C/31499
276         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
277         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
278         value is a VECTOR_CST, the element type is the element type of the
279         vector.
280
281 2009-04-22  DJ Delorie  <dj@redhat.com>
282
283         * config/m32c/m32c.h: Update GTY annotations to new syntax.
284
285 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
286
287         * alias.c (find_base_term): Move around LO_SUM case, so that
288         CONST falls through into PLUS/MINUS handling.
289
290         PR c/39855
291         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
292         into 0, use omit_one_operand.
293
294 2009-04-23  Ben Elliston  <bje@au.ibm.com>
295
296         * config/rs6000/linux-unwind.h (get_regs): Remove type
297         puns. Change the type of `pc' to an array of unsigned ints and
298         update all users.  Constify frame24.
299
300 2009-04-22  DJ Delorie  <dj@redhat.com>
301
302         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
303         declarations before code.
304         (current_function_special_page_vector): Likewise.
305         (m32c_expand_insv): Silence a warning.
306
307 2009-04-21  Taras Glek <tglek@mozilla.com>
308
309         * alias.c: Update GTY annotations to new syntax.
310         * basic-block.h: Likewise.
311         * bitmap.h: Likewise.
312         * c-common.h: Likewise.
313         * c-decl.c: Likewise.
314         * c-parser.c: Likewise.
315         * c-pragma.c: Likewise.
316         * c-tree.h: Likewise.
317         * cfgloop.h: Likewise.
318         * cgraph.h: Likewise.
319         * config/alpha/alpha.c: Likewise.
320         * config/arm/arm.h: Likewise.
321         * config/avr/avr.h: Likewise.
322         * config/bfin/bfin.c: Likewise.
323         * config/cris/cris.c: Likewise.
324         * config/darwin.c: Likewise.
325         * config/frv/frv.c: Likewise.
326         * config/i386/i386.c: Likewise.
327         * config/i386/i386.h: Likewise.
328         * config/i386/winnt.c: Likewise.
329         * config/ia64/ia64.h: Likewise.
330         * config/iq2000/iq2000.c: Likewise.
331         * config/mips/mips.c: Likewise.
332         * config/mmix/mmix.h: Likewise.
333         * config/pa/pa.c: Likewise.
334         * config/pa/pa.h: Likewise.
335         * config/rs6000/rs6000.c: Likewise.
336         * config/s390/s390.c: Likewise.
337         * config/sparc/sparc.c: Likewise.
338         * config/xtensa/xtensa.c: Likewise.
339         * cselib.h: Likewise.
340         * dbxout.c: Likewise.
341         * dwarf2out.c: Likewise.
342         * except.c: Likewise.
343         * except.h: Likewise.
344         * fixed-value.h: Likewise.
345         * function.c: Likewise.
346         * function.h: Likewise.
347         * gimple.h: Likewise.
348         * integrate.c: Likewise.
349         * optabs.c: Likewise.
350         * output.h: Likewise.
351         * real.h: Likewise.
352         * rtl.h: Likewise.
353         * stringpool.c: Likewise.
354         * tree-data-ref.c: Likewise.
355         * tree-flow.h: Likewise.
356         * tree-scalar-evolution.c: Likewise.
357         * tree-ssa-address.c: Likewise.
358         * tree-ssa-alias.h: Likewise.
359         * tree-ssa-operands.h: Likewise.
360         * tree.c: Likewise.
361         * tree.h: Likewise.
362         * varasm.c: Likewise.
363         * varray.h: Likewise.
364         * vec.h: Likewise.
365         * coretypes.h: Do not define GTY macro if it is already defined.
366         * doc/gty.texi: Update GTY documentation to new syntax.
367         * gengtype-lex.l: Enforce attribute-like syntax for GTY
368         annotations on structs.
369         * gengtype-parse.c: Likewise.
370
371 2009-04-22  Mark Heffernan  <meheff@google.com>
372
373         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
374
375 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
376
377         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
378         where appropriate.
379
380 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
381
382         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
383         the same as a PLUS without a shift.  Increase the cost of a
384         CONST_INT in MULT.
385
386 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
387
388         * Makefile.in: Update dependencies.
389         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
390         * errors.h: Remove bogus comment about compatibility.
391         (warning): Update declaration.
392         * genautomata.c: Update all calls to warning.
393         * gimple.c: Do not include errors.h. Include toplev.h.
394         * tree-ssa-structalias.c: Do not include errors.h.
395         * omega.c: Likewise.
396         * tree-ssa-reassoc.c: Likewise.
397         * config/spu/spu-c.c: Likewise.
398         * config/spu/t-spu-elf: Update dependencies.
399
400 2009-04-22  Richard Guenther  <rguenther@suse.de>
401
402         PR tree-optimization/39824
403         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
404         make sure the types are compatible.
405
406 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
407
408         PR c++/14875
409         * c-common.c (c_parse_error): Take a token_flags parameter.
410         Use token_type for the token type instead.
411         Pass token_flags to cpp_type2name.
412         * c-common.h (c_parse_error): Update declaration.
413         * c-parser.c (c_parser_error): Pass 0 as token flags.
414
415 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
416
417         PR rtl-optimization/39580
418         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
419         
420 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
421
422         * function.c (expand_function_end): Do not emit a jump to the "naked"
423         return label for fall-through returns.
424         * except.c (sjlj_emit_function_exit): Always place the call to the
425         unregister function at the location installed by expand_function_end.
426
427 2009-04-22  Richard Guenther  <rguenther@suse.de>
428
429         PR tree-optimization/39845
430         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
431         (gen_inbound_check): Likewise.
432
433 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
434
435         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
436         padding for PPC.
437         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
438         * config/vxlib.c (__gthread_once): Add race guard for PPC.
439
440 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
441
442         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
443         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
444         shift counts to avoid out-of-bounds array accesses.
445
446 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
447
448         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
449         (Pmode): Move above.
450
451 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
452
453         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
454         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
455         GET_CODE macro.  Use IN_RANGE macro where appropriate.
456         * config/alpha/alpha.h: Ditto.
457         * config/alpha/alpha.md: Ditto.
458         * config/alpha/constraints.md: Ditto.
459         * config/alpha/predicates.md: Ditto.
460         
461 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
462
463         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
464         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
465         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
466         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
467         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
468         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
469         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
470         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
471         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
472         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
473         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
474         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
475         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
476         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
477         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
478         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
479         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
480         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
481         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
482         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
483         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
484         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
485         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
486         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
487         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
488         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
489         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
490
491 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
492
493         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
494         references from comments.
495         * cfgbuild.c: (count_basic_blocks): Delete.
496         (find_basic_blocks_1): Delete.
497         (find_basic_blocks): Delete.
498         * except.c (finish_eh_generation): Make static.  Move comment from
499         except.h here.  Remove find_basic_blocks references from comments.
500         * except.h (finish_eh_generation): Delete.
501         * basic-block.h (find_basic_blocks): Delete.
502         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
503
504 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
505
506         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
507         (sdbout_parms):  Likewise.
508
509 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
510
511         * config/sh/sh.c (prepare_cbranch_operands): Use
512         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
513         (expand_cbranchdi4): Likewise.
514         (from_compare): Add cast to enum type.
515         (expand_cbranchsi4): Use add_reg_note.
516         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
517         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
518         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
519         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
520         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
521         instead of CODE_FOR_nothing.
522         (cbranchdi4): Likewise.  Fix the order of arguments for
523         gen_rtx_fmt_ee.
524         (push_fpscr): Use add_reg_note.
525         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
526         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
527         
528 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
529
530         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
531         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
532         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
533         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
534         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
535         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
536         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
537         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
538         config/alpha/x-vms, config/arc/t-arc,
539         config/arm/README-interworking, config/arm/arm-c.c,
540         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
541         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
542         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
543         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
544         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
545         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
546         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
547         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
548         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
549         config/cris/t-elfmulti, config/crx/t-crx,
550         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
551         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
552         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
553         config/h8300/t-h8300, config/i386/athlon.md,
554         config/i386/darwin-libgcc.10.4.ver,
555         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
556         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
557         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
558         config/i386/t-linux64, config/i386/t-nwld,
559         config/i386/t-rtems-i386, config/i386/t-sol2-10,
560         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
561         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
562         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
563         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
564         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
565         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
566         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
567         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
568         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
569         config/m68k/t-uclinux, config/mcore/t-mcore,
570         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
571         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
572         config/mips/crtn.asm, config/mips/irix-crti.asm,
573         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
574         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
575         config/mips/mips-fixed.md, config/mips/sb1.md,
576         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
577         config/mips/t-iris6, config/mips/t-isa3264,
578         config/mips/t-libgcc-mips16, config/mips/t-linux64,
579         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
580         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
581         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
582         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
583         config/mn10300/t-linux, config/mn10300/t-mn10300,
584         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
585         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
586         config/picochip/libgccExtras/clzsi2.asm,
587         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
588         config/rs6000/darwin-libgcc.10.4.ver,
589         config/rs6000/darwin-libgcc.10.5.ver,
590         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
591         config/rs6000/t-aix43, config/rs6000/t-aix52,
592         config/rs6000/t-darwin, config/rs6000/t-fprules,
593         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
594         config/rs6000/t-lynx, config/rs6000/t-netbsd,
595         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
596         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
597         config/rs6000/t-rtems, config/rs6000/t-spe,
598         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
599         config/score/t-score-elf, config/sh/divcost-analysis,
600         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
601         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
602         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
603         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
604         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
605         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
606         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
607         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
608         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
609         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
610         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
611         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
612         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
613         limitx.h, version.c, xcoff.h: Add copyright and license notices.
614         * config/h8300/genmova.sh: Include copyright and license notices
615         in generated output.
616         * config/h8300/mova.md: Regenerate.
617         * doc/install.texi2html: Include word "Copyright" in copyright
618         notice and use name "Free Software Foundation, Inc.".
619         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
620         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
621         ChangeLog-2007, ChangeLog-2008: Correct dates.
622
623 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
624
625         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
626         NE_EXPR operations as well.
627         * c-parser.c (c_parser_condition): Do not set location information on
628         the condition.
629         (c_parser_conditional_expression): Likewise.
630         (c_parser_binary_expression): Set location information on operators.
631         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
632         TRUTH_NOT_EXPR has been folded.
633         * fold-const.c (fold_truth_not_expr): Copy location information from
634         the incoming expression to the outgoing one.
635         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
636         recursive calls on the LHS of the operator but pass that of the
637         operator to recursive calls on the RHS of the operator.  Set it
638         on the COND_EXPR.
639         (shortcut_cond_expr): Set the locus of the operator on the second
640         COND_EXPR and that of the expression on the first in degenerate cases.
641         Pass the locus of the expression to calls to shortcut_cond_r.
642         Set the locus of the 'then' block on the associated jump, if any.
643         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
644         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
645         expression to call to gimplify_boolean_expr.
646
647 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
648
649         * config.gcc: Add additional configuration for
650         i686-w64-mingw* and x86_64-w64-mingw* triplet.
651         * config/i386/mingw-w64.h: New mingw-w64 specific header.
652         (CPP_SPEC): Redefine for allowing -municode option.
653         (STARTFILE_SPEC): Likewise.
654         * config/i386/t-mingw-w64: New.
655         * config/i386/mingw-w64.opt: New.
656         (municode): Add new target option.
657         * doc/invoke.texi (municode): Add documentation for new option.
658
659 2009-04-21  Ian Lance Taylor  <iant@google.com>
660
661         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
662         Correct test for number of arguments.
663         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
664
665 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
666
667         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
668         argument of emit_library_call.
669
670 2009-04-21  Richard Guenther  <rguenther@suse.de>
671
672         PR middle-end/39829
673         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
674         inside VIEW_CONVERT_EXPRs.
675
676 2009-04-21  Martin Jambor  <mjambor@suse.cz>
677
678         * tree-switch-conversion.c (build_constructors): Split a long line.
679         (constructor_contains_same_values_p): New function.
680         (build_one_array): Create assigns of constants if possible, do not
681         call mark_sym_for_renaming, call update_stmt.
682         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
683         make_rename_temp.  Do not call mark_symbols_for_renaming, call
684         update_stmt.
685         (gen_def_assigns): Do not call mark_symbols_for_renaming or
686         find_new_referenced_vars, call update_stmt.
687         (gen_inbound_check): Use create_tmp_var and create ssa names manually
688         instead of calling make_rename_temp.  Do not call
689         find_new_referenced_vars or mark_symbols_for_renaming, call
690         update_stmt.
691
692 2009-04-21  Richard Guenther  <rguenther@suse.de>
693
694         PR tree-optimization/39827
695         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
696         (tree_ssa_phiprop): Pass the correct array size.
697
698 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
699
700         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
701
702 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
703
704         PR 16202
705         * c-typeck.c (lvalue_p): Move declaration ...
706         * c-common.h (lvalue_p): ... to here.
707         * c-common.c (candidate_equal_p): New.
708         (add_tlist): Use it.
709         (merge_tlist): Use it.
710         (warn_for_collisions_1): Likewise.
711         (warning_candidate_p): Accept more candidates.
712         (verify_tree): A warning candidate can be an expression. Use
713         candidate_equal_p.
714
715 2009-04-21  Ben Elliston  <bje@au.ibm.com>
716
717         PR target/5267
718         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
719         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
720         options.  Remove -mcall-solaris documentation.
721
722 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
723
724         PR c++/13358
725         * doc/invoke.texi (-Wlong-long): Update description.
726         * c-lex (interpret_integer): Only warn if there was no previous
727         overflow and -Wlong-long is enabled.
728         * c-decl.c (declspecs_add_type): Drop redundant flags.
729         * c.opt (Wlong-long): Init to -1.
730         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
731         and front-end warn_long_long. Wlong-long only depends on other
732         flags if it is uninitialized.
733         * c-parser.c (disable_extension_diagnostics): warn_long_long is
734         the same for CPP and FE.
735         (restore_extension_diagnostics): Likewise.
736
737 2009-04-20  Ian Lance Taylor  <iant@google.com>
738
739         Fix enum conversions which are invalid in C++:
740         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
741         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
742         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
743         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
744         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
745         (dbxout_parms): Likewise.
746         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
747         (df_clear_flags): Likewise.
748         * df-problems.c (df_rd_bb_local_compute_process_def): Change
749         top_flag parameter to int.
750         (df_chain_create_bb_process_use): Likewise.
751         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
752         Remove cast.
753         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
754         (df_ref_create_structure, df_def_record_1): Likewise.
755         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
756         (df_notes_rescan): Change 0 to VOIDmode in function call.
757         (df_get_call_refs, df_insn_refs_collect): Likewise.
758         (df_bb_regs_collect): Likewise.
759         (df_entry_block_defs_collect): Likewise.
760         (df_exit_block_uses_collect): Likewise.
761         * df.h: Update declarations.
762         * double-int.c (double_int_divmod): Add cast to enum type.
763         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
764         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
765         (based_loc_descr): Likewise.
766         (loc_descriptor_from_tree_1): Change first_op and second_op to
767         enum dwarf_location_atom.  Add cast to enum type.
768         * expmed.c (init_expmed): Change 0 to SET in function call.
769         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
770         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
771         (do_store_flag): Likewise.
772         * fixed-value.h (struct fixed_value): Change mode to enum
773         machine_mode.
774         * function.c (assign_parms): Change 0 to VOIDmode in function call.
775         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
776         function call.
777         (insert_insn_decl, insert_decl, insert_state): Likewise.
778         (automata_list_finish): Likewise.
779         * genrecog.c (process_define_predicate): Add cast to enum type.
780         * gensupport.c (init_predicate_table): Add cast to enum type.
781         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
782         function call.
783         (gimple_build_call_1, gimple_build_label): Likewise.
784         (gimple_build_goto, gimple_build_asm_1): Likewise.
785         (gimple_build_switch_1, gimple_build_cdt): Likewise.
786         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
787         (enum fallback): Rename from enum fallback_t.
788         (fallback_t): Typedef as int.
789         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
790         GSI_SAME_STMT in function call.
791         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
792         enum type.
793         (setup_reg_class_relations): Likewise.
794         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
795         (setup_prohibited_class_mode_regs): Add cast to enum type.
796         (setup_prohibited_mode_move_regs): Likewise.
797         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
798         (record_address_regs): Change i to enum reg_class.
799         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
800         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
801         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
802         (GET_MODE_2XWIDER_MODE): Likewise.
803         (GET_CLASS_NARROWEST_MODE): Likewise.
804         * omp-low.c (expand_omp_for): Add cast to enum type.
805         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
806         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
807         * postreload.c (reload_cse_simplify_operands): Change rclass local
808         to enum reg_class.
809         * predict.c (combine_predictions_for_insn): Change best_predictor
810         and predictor to enum br_predictor.
811         (combine_predictions_for_bb): Likewise.
812         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
813         use SET_PREDICT_EXPR_OUTCOME.
814         * real.c (real_arithmetic): Change icode to code in function call.
815         * reginfo.c (init_move_cost): Add casts to enum type.
816         (init_reg_sets_1, init_fake_stack_mems): Likewise.
817         * regmove.c (regclass_compatible_p): Change class0 and class1 to
818         enum reg_class.
819         * reload.c (find_valid_class): Add casts to enum type.
820         (push_reload): Change 0 to NO_REGS in function call.
821         (find_reloads): Change this_alternative to array of enum
822         reg_class.  Remove some now-unnecessary casts.
823         (make_memloc): Change 0 to VOIDmode in function call.
824         * reload1.c (reload): Change 0 to VOIDmode in function call.
825         (eliminate_regs_1, elimination_effects): Likewise.
826         (eliminate_regs_in_insn): Likewise.
827         (emit_input_reload_insns): Add cast to enum type.
828         (delete_output_reload): Change 0 to VOIDmode in function call.
829         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
830         to enum type in function call.
831         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
832         (SET_PREDICT_EXPR_OUTCOME): Define.
833         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
834         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
835         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
836         (dump_function): Likewise.
837         * tree-dump.h: Update declarations.
838         * tree-pass.h: Update declarations.
839         * varasm.c (assemble_integer): Change mclass to enum mode_class.
840         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
841         enum type.
842         (arm_rtx_costs_1): Correct parenthesization.
843         (arm_rtx_costs): Add casts to enum type.
844         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
845         (vfp_emit_fstmd): Use add_rg_note.
846         (emit_multi_reg_push, emit_sfm): Likewise.
847         (thumb_set_frame_pointer): Likewise.
848         (arm_expand_prologue): Likewise.
849         (arm_regno_class): Change return type to enum reg_class.
850         (thumb1_expand_prologue): Use add_reg_note.
851         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
852         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
853         in function call.
854         * config/arm/gentune.sh: Add cast to enum type.
855         * config/arm/arm-tune.md: Rebuild.
856         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
857         (ix86_split_fp_branch, predict_jump): Likewise.
858         (ix86_expand_multi_arg_builtin): Change sub_code from enum
859         insn_code to enum rtx_code.
860         (ix86_builtin_vectorized_function): Add cast to enum type.
861         * config/i386/i386.md (truncdfsf2): Change slot to enum
862         ix86_stack_slot.
863         (truncxf<mode>2, isinf<mode>2): Likewise.
864         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
865         enum type.
866         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
867         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
868         (insert_bundle_state): Change 1 to INSERT in function call.
869         (ia64_add_bundle_selector_before): Likewise.
870         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
871         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
872         (restore_stack_nonlocal): Likewise.
873         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
874         function call.
875         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
876         function call.
877         (mips_rtx_costs): Likewise.
878         (mips_override_options): Add casts to enum type.
879         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
880         in function call.
881         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
882         (store_reg, set_reg_plus_d): Likewise.
883         (hppa_expand_prologue, hppa_profile_hook): Likewise.
884         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
885         cast to enum type.
886         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
887         function call.
888         (emit_unlikely_jump): Use add_reg_note.
889         (rs6000_emit_allocate_stack): Likewise.
890         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
891         (output_toc): Change 1 to INSERT in function call.
892         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
893         (rs6000_initialize_trampoline): Likewise.
894         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
895         function call.
896         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
897         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
898         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
899         (save_gprs): Use add_reg_note.
900         (s390_emit_prologue): Likewise.
901         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
902         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
903         (sparc_fold_builtin): Add cast to enum type.
904         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
905         enum insn_code.
906         (spu_expand_prologue): Use add_reg_note.
907         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
908
909 2009-04-20  Ian Lance Taylor  <iant@google.com>
910
911         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
912         (c_parser_postfix_expression_after_primary): Get VEC for list of
913         arguments.  Get original types of arguments.  Call
914         build_function_call_vec.
915         (cached_expr_list_1, cached_expr_list_2): New static variables.
916         (c_parser_expr_list): Change return type to VEC *.  Add
917         p_orig_types parameter.  Change all callers.
918         (c_parser_release_expr): New static function.
919         (c_parser_vec_to_tree_list): New static function.
920         * c-typeck.c (build_function_call): Rewrite to build a VEC and
921         call build_function_call_vec.
922         (build_function_call_vec): New function, based on old
923         build_function_call.
924         (convert_arguments): Remove nargs and argarray parameters.  Change
925         values to a VEC.  Add origtypes parameter.
926         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
927         (convert_for_assignment): Add origtype parameter.  Change all
928         callers.  If warn_cxx_compat, check for conversion to an enum
929         type when calling a function.
930         (store_init_value): Add origtype parameter.  Change all callers.
931         (digest_init): Likewise.
932         (struct init_node): Add origtype field.
933         (add_pending_init): Add origtype parameter.  Change all callers.
934         (output_init_element): Likewise.
935         (output_pending_init_elements): Pass origtype from init_node to
936         output_init_element.
937         (process_init_element): Pass origtype from c_expr to
938         output_init_element.
939         (c_finish_return): Add origtype parameter.  Change all callers.
940         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
941         caller.
942         (sync_resolve_params): Likewise.
943         (sync_resolve_return): Change params to first_param.  Change caller.
944         (resolve_overloaded_builtins): Change params to VEC *.  Change
945         callers.  Save first parameter around call to build_function_call_vec.
946         * c-decl.c (finish_decl): Add origtype parameter.  Change all
947         callers.  Call build_function_call_vec rather than
948         build_function_call for cleanup.
949         * c-tree.h: Update declarations.
950         * c-common.h: Update declarations.
951         * stub-objc.c (objc_rewrite_function_call): Change parameter from
952         params to first_param.
953         * target.h (struct gcc_target): Change resolve_overloaded_builtin
954         params parameter from tree to void *.
955         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
956         Change arglist parameter to have type void *, and to be a pointer
957         to a VEC.
958         * config/rs6000/rs6000-protos.h
959         (altivec_resolve_overloaded_builtin): Update declaration.
960         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
961         fnargs parameter to have type void *, and to be a pointer to a
962         VEC.  Call build_function_call_vec instead of
963         build_function_call.
964         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
965
966 2009-04-20  Joey Ye  <joey.ye@intel.com>
967             Xuepeng Guo <xuepeng.guo@intel.com>
968             H.J. Lu  <hongjiu.lu@intel.com>
969
970         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
971
972         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
973         (IX86_LEA_PRIORITY): Likewise.
974         (distance_non_agu_define): New function.
975         (distance_agu_use): Likewise.
976         (ix86_lea_for_add_ok): Likewise.
977         (ix86_dep_by_shift_count): Likewise.
978
979         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
980         should split for LEA.
981
982         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
983         function.
984         (ix86_dep_by_shift_count): Likewise.
985
986 2009-04-20  Richard Guenther  <rguenther@suse.de>
987
988         * expr.c (handled_component_p): Move ...
989         * tree.h (handled_component_p): ... here.
990         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
991         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
992         and REALPART_EXPR to be in one group.
993
994 2009-04-20  Richard Guenther  <rguenther@suse.de>
995
996         * basic-block.h (get_all_dominated_blocks): Declare.
997         * dominance.c (get_all_dominated_blocks): New function.
998         * tree-cfg.c (get_all_dominated_blocks): Remove.
999         (remove_edge_and_dominated_blocks): Adjust.
1000         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
1001         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
1002         instead of recursing.
1003
1004 2009-04-20  Doug Kwan  <dougkwan@google.com>
1005
1006         * cgraph.h (cgraph_node_ptr): New type for vector functions.
1007         (struct cgraph_node_set_def): New type.
1008         (cgraph_node_set) New type. Also declare vector functions.
1009         (struct cgraph_node_set_element_def): New type.
1010         (cgraph_node_set_element): Ditto.
1011         (cgraph_node_set_iterator): New iterator type.
1012         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
1013         cgraph_node_set_remove, dump_cgraph_node_set,
1014         debug_cgraph_node_set): New prototypes.
1015         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
1016         cgraph_node_set_size): New inlines.
1017         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
1018         including cgraph.h.
1019         (struct ipa_opt_pass): Add struct cgraph_node_set_def
1020         argument to function 'write_summary'.
1021         * ipa.c: Include ggc.h.
1022         (hash_cgraph_node_set_element,
1023         eq_cgraph_node_set_element, cgraph_node_set_new,
1024         cgraph_node_set_add, cgraph_node_set_remove,
1025         cgraph_node_set_find, dump_cgraph_node_set,
1026         debug_cgraph_node_set): New functions.
1027         * Makefile.in (ipa.o): Add dependency on GGC_H.
1028
1029 2009-04-20  Ira Rosen  <irar@il.ibm.com>
1030
1031         PR tree-optimization/39675
1032         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
1033         check of the return code of vect_schedule_slp. Check that
1034         stmt_vec_info still exists for the statement, before checking its
1035         vectorization type.
1036
1037 2009-04-20  Michael Matz  <matz@suse.de>
1038
1039         * Makefile.in (generated_files): Take out $(simple_generated_c).
1040
1041 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
1042
1043         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
1044         (UINTPTR_TYPE):  Likewise.
1045
1046 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
1047
1048         PR c/37481
1049         * c-typeck.c (digest_init): Check for initializing an array with a
1050         string literal.
1051
1052 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
1053
1054         PR c/19771
1055         * c-semantics.c (pop_stmt_list): Propagate
1056         STATEMENT_LIST_HAS_LABEL to parent statement list.
1057
1058 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
1059
1060         * config/mips/mips.h (mips_tune_attr): New macro.
1061         * config/mips/mips.md (cpu): Use it.
1062
1063 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
1064
1065         PR c/38243
1066         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
1067         declaring a tag.
1068
1069 2009-04-19  Diego Novillo  <dnovillo@google.com>
1070
1071         * toplev.c (compile_file): Move call to coverage_finish ...
1072         * cgraphunit.c (ipa_passes): ... here.
1073         Call cgraph_process_new_functions.
1074         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
1075         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
1076
1077 2009-04-19  Jan Hubicka  <jh@suse.cz>
1078
1079         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
1080         cfun.
1081         (dump_cgraph_node): Dump can throw external flag.
1082         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
1083
1084 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1085
1086         PR c/32061
1087         PR c++/36954
1088         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
1089         * common.opt (Wlogical-op): Move from here...
1090         * c.opt (Wlogical-op): ... to here.
1091         * c-typeck.c (parser_build_binary_op): Update call to
1092         warn_logical_operator.
1093         * c-opts.c (c_common_post_options): Enable warn_logical_op with
1094         extra_warnings.
1095         * c-common.c (warn_logical_op): Update.
1096         * c-common.h (warn_logical_op): Update declaration.
1097
1098 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1099
1100         * tree.c (protected_set_expr_location): Fix formatting.
1101
1102 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
1103
1104         PR c/27676
1105         * c-typeck.c (readonly_warning): new.
1106         (build_unary_op, build_modify_expr): Use readonly_warning for
1107         storing into something readonly but not const-qualified.
1108
1109 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
1110
1111         PR c/22367
1112         * c-typeck.c (build_unary_op): Check for taking address of
1113         expression of type void.
1114
1115 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
1116
1117         PR c/35210
1118         * c-typeck.c (build_function_call): Check for calling a function
1119         with qualified void return types.  Call require_complete_type when
1120         generating a trap.
1121
1122 2009-04-18  Jan Hubicka  <jh@suse.cz>
1123
1124         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
1125         Set nothrow flag.
1126         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
1127         can_throw_external flag.
1128         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
1129         * ipa-pure-const.c (ignore_edge): New function.
1130         (propagate): Compute order for NOTHROW computation; set NOTHROWs
1131         only over can_throw_external edges.
1132         (local_pure_const): Add nothrow flag.
1133         * ipa-utils.c (searchc): Add ignore_edge callback.
1134         (ipa_utils_reduced_inorder): Add ignore_edge callback.
1135         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
1136         (set_nothrow_function_flags): Update cgraph.
1137         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
1138
1139 2009-04-18  Richard Guenther  <rguenther@suse.de>
1140
1141         PR middle-end/39804
1142         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
1143         (fold_stmt): ... this and ...
1144         (fold_stmt_inplace): ... this.
1145         (fold_stmt_1): Fold references in calls and asms.
1146         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
1147
1148 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
1149
1150         * tree-vrp.c (ssa_name_nonzero_p): Remove.
1151         * tree.h: Remove the prototype for ssa_name_nonzero_p.
1152
1153 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
1154
1155         * tree.c (function_args_count): Remove.
1156         * tree.h: Remove the prototype for function_args_count.
1157
1158 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
1159
1160         * tree-iterator.c (expr_only): Remove.
1161         * tree.h: Remove the prototype for expr_only.
1162
1163 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
1164
1165         * reginfo.c (cannot_change_mode_set_regs): Remove.
1166         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
1167
1168 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
1169
1170         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
1171         whether operands 0 and 1 overlaps.
1172
1173 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1174
1175         PR middle-end/36902
1176         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
1177         pointer. Use warning_at instead of warning.
1178         (search_for_addr_array): Likewise.
1179         (check_array_bounds): Likewise.
1180         (check_all_array_refs): Check that the incoming edge is not in the
1181         list of edges to be removed.
1182         (check_all_array_refs): Avoid the temporal pointer.
1183         (vrp_visit_cond_stmt): Fix typo.
1184         (simplify_switch_using_ranges): Handle the case where the switch
1185         index is an integer constant.
1186
1187 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
1188
1189         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
1190
1191 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
1192
1193         * doc/extend.texi, doc/invoke.texi: Fix typos.
1194
1195 2009-04-17  Cary Coutant  <ccoutant@google.com>
1196
1197         * tree-flow-inline.h (get_lineno): Fix inverted test.
1198
1199 2009-04-17  Diego Novillo  <dnovillo@google.com>
1200
1201         * tree-ssa-pre.c (create_expression_by_pieces): Remove
1202         assertion for AVAIL_OUT.
1203
1204 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
1205
1206         PR target/38627
1207         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
1208         * config/sh/linux-atomic.asm: Likewise.
1209
1210 2009-04-17  Diego Novillo  <dnovillo@google.com>
1211
1212         * except.c (debug_eh_tree): New.
1213         (struct eh_region, struct eh_status): Move ...
1214         * except.h: ... here.
1215         (add_type_for_runtime): Declare extern.
1216         (lookup_type_for_runtime): Likewise.
1217         (debug_eh_tree): Declare.
1218         * Makefile.in (GTFILES): List except.h before except.c
1219
1220 2009-04-17  Diego Novillo  <dnovillo@google.com>
1221
1222         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
1223         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1224         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
1225         (find_vars_r): ... here.
1226         * tree-flow.h (find_referenced_vars_in): Declare.
1227         * tree-ssa-pre.c (create_expression_by_pieces): Assert
1228         that AVAIL_OUT exists for BLOCK.
1229         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
1230         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
1231         (tree-parloops.o): Likewise.
1232
1233 2009-04-17  Simon Baldwin  <simonb@google.com>
1234
1235         * toplev.c (default_tree_printer): Add handling for %E format.
1236
1237 2009-04-17  Diego Novillo  <dnovillo@google.com>
1238
1239         * tree-pretty-print.c (dump_generic_node): Add break after
1240         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
1241         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
1242         FUNCTION_TYPE together.  Call print_struct_decl when printing
1243         structures and TDF_SLIM is not given.
1244         (print_struct_decl): Fix logic for detecting recursion.
1245
1246 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
1247
1248         PR 31567
1249         * gcc.c (create_at_file): New.
1250         (compile_input_file_p): New.
1251         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
1252         * main.c (main): Update call to toplev_main.
1253         * toplev.c (toplev_main): Change signature. Call expandargv.
1254         * toplev.h (toplev_main): Change signature.
1255
1256 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1257
1258         * dwarf2out.c (field_byte_offset): Use the type size as the field size
1259         if the latter is not constant.
1260
1261 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
1262
1263         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
1264
1265 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1266
1267         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
1268         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
1269
1270 2009-04-17  Richard Guenther  <rguenther@suse.de>
1271
1272         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1273         Handle component references view-converting an invariant address.
1274
1275 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
1276
1277         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
1278         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
1279         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
1280         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
1281         Use @deftypevr rather than @deftypevar.
1282
1283 2009-04-17  Richard Guenther  <rguenther@suse.de>
1284
1285         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
1286         (get_prop_source_stmt): Likewise.
1287         (can_propagate_from): Likewise.
1288
1289 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
1290
1291         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
1292         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
1293         (--with-multilib-list): Add default value.
1294         * configure: Regenerate.
1295         * Makefile.in (TM_ENDIAN_CONFIG): Define.
1296         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
1297         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
1298         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
1299         Don't add default cpu to multilib list unnecessarily, but do enable
1300         the relevant compiler option..
1301         Add support for --with-multilib-list=<blank> and
1302         --with-multilib-list=!<somelib> to supress unwanted multilibs.
1303         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
1304         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
1305         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
1306         TM_MULTILIB_CONFIG.
1307         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
1308         (MULTILIB_OSDIRNAMES): New variable.
1309         * config/sh/t-1e: Delete file.
1310         * config/sh/t-mlib-sh1: Delete file.
1311         * config/sh/t-mlib-sh2: Delete file.
1312         * config/sh/t-mlib-sh2a: Delete file.
1313         * config/sh/t-mlib-sh2a-nofpu: Delete file.
1314         * config/sh/t-mlib-sh2a-single: Delete file.
1315         * config/sh/t-mlib-sh2a-single-only: Delete file.
1316         * config/sh/t-mlib-sh2e: Delete file.
1317         * config/sh/t-mlib-sh3e: Delete file.
1318         * config/sh/t-mlib-sh4: Delete file.
1319         * config/sh/t-mlib-sh4-nofpu: Delete file.
1320         * config/sh/t-mlib-sh4-single: Delete file.
1321         * config/sh/t-mlib-sh4-single-only: Delete file.
1322         * config/sh/t-mlib-sh4a: Delete file.
1323         * config/sh/t-mlib-sh4a-nofpu: Delete file.
1324         * config/sh/t-mlib-sh4a-single: Delete file.
1325         * config/sh/t-mlib-sh4a-single-only: Delete file.
1326         * config/sh/t-mlib-sh4al: Delete file.
1327         * config/sh/t-mlib-sh5-32media: Delete file.
1328         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
1329         * config/sh/t-mlib-sh5-64media: Delete file.
1330         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
1331         * config/sh/t-mlib-sh5-compact: Delete file.
1332         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
1333         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
1334         * doc/install.texi (Options specification): Add
1335         --with-multilib-list and --with-endian.
1336
1337 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
1338
1339         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
1340         REVISION_c.
1341         (OBJS-common): Add plugin-version.o.
1342         (plugin-version.o): New.
1343         * gcc-plugin.h (plugin_gcc_version): New.
1344         (plugin_default_version_check): New.
1345         (plugin_init_func, plugin_init): Add version argument.
1346         * plugin-version.c: New.
1347         * plugin.c (str_plugin_gcc_version_name): New.
1348         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
1349         pass it to the init function.
1350         (plugin_default_version_check): New.
1351
1352 2009-04-17  Richard Guenther  <rguenther@suse.de>
1353
1354         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
1355         for decl-vs-decl disambiguation.
1356
1357 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
1358
1359         * config/s390/s390.h (s390_tune_attr): New macro definition.
1360         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
1361
1362 2009-04-17  Richard Guenther  <rguenther@suse.de>
1363
1364         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
1365         (fold_stmt_r): Likewise.
1366         (maybe_fold_reference): New function.
1367         (fold_gimple_assign): Handle cases fold_stmt_r did.
1368         (fold_stmt): Do not use fold_stmt_r.
1369         (fold_stmt_inplace): Likewise.
1370
1371 2009-04-17  Richard Guenther  <rguenther@suse.de>
1372
1373         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
1374         (record_equivalences_from_stmt): Remove useless checks and
1375         simplifications.
1376         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
1377         the type is already suitable.
1378
1379 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
1380
1381         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
1382
1383 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
1384
1385         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
1386         (CMPtype): Define as __gcc_CMPtype.
1387
1388 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
1389
1390         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
1391         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
1392
1393 2009-04-17  Richard Guenther  <rguenther@suse.de>
1394
1395         PR tree-optimization/39746
1396         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
1397         special-casing for builtins and static variable use/def.
1398         (call_may_clobber_ref_p_1): Likewise.
1399
1400 2009-04-16  Ian Lance Taylor  <iant@google.com>
1401
1402         * df.h: Include "timevar.h".
1403         (struct df_problem): Change tv_id field to timevar_id_t.
1404         * tree-pass.h: Include "timevar.h".
1405         (struct opt_pass): Change tv_id field to timevar_id_t.
1406         * timevar.h (timevar_id_t): Define TV_NONE.
1407         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
1408         TV_NONE rather than tv_id != 0.
1409         (execute_one_pass): Likewise.
1410         * Makefile.in (DF_H): Add $(TIMEVAR_H).
1411         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
1412         dependencies to $(TREE_PASS_H).
1413         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
1414         to TV_NONE.
1415         (pass_branch_target_load_optimize2): Likewise.
1416         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
1417         (pass_outof_cfg_layout_mode): Likewise.
1418         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
1419         (pass_rebuild_cgraph_edges): Likewise.
1420         (pass_remove_cgraph_callee_edges): Likewise.
1421         * df-core.c (pass_df_initialize_opt): Likewise.
1422         (pass_df_initialize_no_opt): Likewise.
1423         (pass_df_finish): Likewise.
1424         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
1425         * except.c (pass_set_nothrow_function_flags): Likewise.
1426         (pass_convert_to_eh_region_ranges): Likewise.
1427         * final.c (pass_compute_alignments): Likewise.
1428         * function.c (pass_instantiate_virtual_regs): Likewise.
1429         (pass_init_function): Likewise.
1430         (pass_leaf_regs): Likewise.
1431         (pass_match_asm_constraints): Likewise.
1432         * gimple-low.c (pass_lower_cf): Likewise.
1433         (pass_mark_used_blocks): Likewise.
1434         * init-regs.c (pass_initialize_regs): Likewise.
1435         * integrate.c (pass_initial_value_sets): Likewise.
1436         * ira.c (pass_ira): Likewise.
1437         * jump.c (pass_cleanup_barriers): Likewise.
1438         * omp-low.c (pass_expand_omp): Likewise.
1439         (pass_lower_omp): Likewise.
1440         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
1441         * recog.c (pass_split_all_insns): Likewise.
1442         (pass_split_after_reload): Likewise.
1443         (pass_split_before_regstack): Likewise.
1444         (pass_split_before_sched2): Likewise.
1445         (pass_split_for_shorten_branches): Likewise.
1446         * reginfo.c (pass_reginfo_init): Likewise.
1447         (pass_subregs_of_mode_init): Likewise.
1448         (pass_subregs_of_mode_finish): Likewise.
1449         * passes.c (pass_postreload): Likewise.
1450         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
1451         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
1452         (pass_warn_function_return): Likewise.
1453         (pass_warn_function_noreturn): Likewise.
1454         * tree-complex.c (pass_lower_complex): Likewise.
1455         (pass_lower_complex_O0): Likewise.
1456         * tree-if-conv.c (pass_if_conversion): Likewise.
1457         * tree-into-ssa.c (pass_build_ssa): Likewise.
1458         * tree-mudflap.c (pass_mudflap_1): Likewise.
1459         (pass_mudflap_2): Likewise.
1460         * tree-nomudflap.c (pass_mudflap_1): Likewise.
1461         (pass_mudflap_2): Likewise.
1462         * tree-nrv.c (pass_return_slot): Likewise.
1463         * tree-object-size.c (pass_object_sizes): Likewise.
1464         * tree-optimize.c (pass_all_optimizations): Likewise.
1465         (pass_early_local_passes): Likewise.
1466         (pass_all_early_optimizations): Likewise.
1467         (pass_cleanup_cfg): Likewise.
1468         (pass_cleanup_cfg_post_optimizing): Likewise.
1469         (pass_free_datastructures): Likewise.
1470         (pass_free_cfg_annotations): Likewise.
1471         (pass_fixup_cfg): Likewise.
1472         (pass_init_datastructures): Likewise.
1473         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
1474         (pass_late_warn_uninitialized): Likewise.
1475         (pass_update_address_taken): Likewise.
1476         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
1477         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
1478         (pass_cse_sincos): Likewise.
1479         (pass_convert_to_rsqrt): Likewise.
1480         * tree-ssa-structalias.c (pass_build_alias): Likewise.
1481         * tree-stdarg.c (pass_stdarg): Likewise.
1482         * tree-tailcall.c (pass_tail_recursion): Likewise.
1483         (pass_tail_calls): Likewise.
1484         * tree-vect-generic.c (pass_lower_vector): Likewise.
1485         (pass_lower_vector_ssa): Likewise.
1486         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
1487
1488 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
1489
1490         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
1491         XLR entry.
1492         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
1493         Handle -march=xlr.
1494         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
1495         logical and signext.
1496
1497 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1498
1499         PR target/39767
1500         * config/sh/predicates.md (arith_operand): Check if the operand
1501         of TRUNCATE is a REG.
1502
1503 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1504
1505         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
1506         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
1507
1508 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1509
1510         * tree-iterator.c (tsi_split_statement_list_after,
1511         tsi_split_statement_list_before): Remove.
1512         * tree-iterator.h: Remove the prototypes for
1513         tsi_split_statement_list_after and tsi_split_statement_list_before.
1514
1515 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1516
1517         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
1518         * tree-ssa-propagate.h: Remove the prototype for
1519         stmt_makes_single_load.
1520
1521 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1522
1523         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
1524         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
1525
1526 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1527
1528         * tree-iterator.c (EXPR_LAST_BODY): Remove.
1529
1530 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1531
1532         * except.c (eh_region_outer_p): Remove.
1533         * except.h: Remove the prototype for eh_region_outer_p.
1534
1535 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
1536
1537         * function.c (current_function_assembler_name): Remove.
1538         * function.h: Remove the prototype for
1539         current_function_assembler_name.
1540
1541 2009-04-16  Ian Lance Taylor  <iant@google.com>
1542
1543         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
1544         (add_reg_note): Call alloc_reg_note.
1545         * rtl.h (alloc_reg_note): Declare.
1546         * combine.c (try_combine): Use alloc_reg_note.
1547         (recog_for_combine, move_deaths): Likewise.
1548         (distribute_notes): Use alloc_reg_note and add_reg_note.
1549         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
1550         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
1551         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
1552
1553 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
1554
1555         PR rtl-optimization/39762
1556         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
1557         ira_may_move_out_cost): Add comments about way of their usage.
1558         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
1559
1560         * ira-conflicts.c (process_regs_for_copy): Use function
1561         ira_get_register_move_cost instead of global
1562         ira_register_move_cost.
1563
1564         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
1565         color_pass, move_spill_restore, update_curr_costs): Ditto.
1566
1567         * ira-lives.c (process_single_reg_class_operands): Ditto.
1568
1569         * ira-emit.c (emit_move_list): Ditto.
1570
1571         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
1572         (record_reg_classes): Ditto.  Use functions
1573         ira_get_register_move_cost and ira_get_may_move_cost instead of
1574         global vars ira_register_move_cost, ira_may_move_out_cost and
1575         ira_may_move_in_cost.
1576         (record_address_regs): Don't call ira_init_register_move_cost.
1577         Use function ira_get_may_move_cost instead of global
1578         ira_may_move_in_cost.
1579         (process_bb_node_for_hard_reg_moves): Use function
1580         ira_get_register_move_cost instead of global ira_register_move_cost.
1581         (ira_costs): Don't call ira_init_register_move_cost.
1582
1583 2009-04-16  Richard Guenther  <rguenther@suse.de>
1584
1585         * tree-cfg.c (verify_gimple_assign_binary):
1586         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
1587         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
1588         (create_general_new_stmt): Note that this function is broken.
1589
1590 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
1591
1592         * common.opt (fhelp): Add Var(help_flag).
1593         * gcc-plugin.h (plugin_info): Add help.
1594         * plugin.c (plugin_name_args): Add help.
1595         (register_plugin_info): Set plugin->help.
1596         (print_help_one_plugin): New.
1597         (print_plugins_help): New.
1598         * plugin.h (print_plugins_help): New.
1599         * toplev.c (toplev_main): Call print_plugins_help if needed.
1600
1601 2009-04-16  Richard Guenther  <rguenther@suse.de>
1602
1603         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
1604         (gimple_ior_addresses_taken_1): New function.
1605         (gimple_ior_addresses_taken): Likewise.
1606         * gimple.h (struct gimple_statement_with_ops_base): Remove
1607         addresses_taken member.
1608         (gimple_ior_addresses_taken): Declare.
1609         (gimple_addresses_taken, gimple_addresses_taken_ptr,
1610         gimple_set_addresses_taken): Remove.
1611         * ipa-reference.c (mark_address): New function.
1612         (scan_stmt_for_static_refs): Use it for marking addresses taken.
1613         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
1614         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
1615         (gimple_add_to_addresses_taken): Remove.
1616         (get_tmr_operands): Call mark_address_taken.
1617         (get_asm_expr_operands): Likewise.
1618         (get_expr_operands): Likewise.
1619         (build_ssa_operands): Do not clear the addresses_taken bitmap.
1620         (free_stmt_operands): Do not free it.
1621         * tree-ssa.c (delete_tree_ssa): Likewise.
1622         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
1623
1624 2009-04-16  Richard Guenther  <rguenther@suse.de>
1625
1626         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
1627         (walk_stmt_load_store_ops): Likewise.
1628         * gimple.c (get_base_loadstore): New function.
1629         (walk_stmt_load_store_addr_ops): Likewise.
1630         (walk_stmt_load_store_ops): Likewise.
1631         * ipa-pure-const.c (check_op): Simplify.
1632         (check_load, check_store): New functions.
1633         (check_stmt): Use walk_stmt_load_store_ops.
1634         * ipa-reference.c (mark_load): Adjust signature.
1635         (mark_store): Likewise.
1636         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
1637
1638 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
1639
1640         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
1641         (plugin_info): New.
1642         * opts.c (common_handle_option): Don't call print_version.
1643         * plugin.c (plugin_name_args): Add version.
1644         (register_plugin_info): New.
1645         (register_callback): Handle PLUGIN_INFO.
1646         (try_init_one_plugin): New.
1647         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
1648         if failed to init.
1649         (finalize_one_plugin): New.
1650         (finalize_plugins): New.
1651         (print_one_plugin): New.
1652         (print_plugins_versions): New.
1653         * plugin.h (print_plugins_versions): New.
1654         (finalize_plugins): New.
1655         * toplev.c (compile_file): Don't call initialize_plugins.
1656         (print_version): Call print_plugins_versions.
1657         (toplev_main): Call initialize_plugins. Print version if needed.
1658         Call finalize_plugins.
1659
1660 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
1661
1662         * common.opt (fversion): New.
1663         * gcc.c (print_version): New.
1664         (process_command): Don't print the version. Just set print_version.
1665         (main): Print version. Call subprocesses if print_version and
1666         verbose_flag are set.
1667         * opts.c (common_handle_option): Handle OPT_fversion.
1668
1669 2009-04-16  Richard Guenther  <rguenther@suse.de>
1670             Ira Rosen  <irar@il.ibm.com>
1671
1672         PR tree-optimization/39698
1673         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
1674         type of the reduction variable.  Only generate the def if
1675         it is needed.
1676
1677         * omp-low.c (expand_omp_for_generic): When converting to a pointer
1678         make sure to first convert to an integer of the same precision.
1679         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
1680         the type of the evolution correctly in computing the new
1681         induction variable base.
1682
1683 2009-04-16  Richard Guenther  <rguenther@suse.de>
1684
1685         PR middle-end/39625
1686         * tree-cfg.c (make_blocks): Split statements with to-be
1687         abnormal SSA names on the lhs.
1688
1689 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
1690
1691         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
1692         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
1693         * c-typeck.c (really_start_incremental_init): Likewise.
1694         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
1695         (TARGET_INITIALIZER): Remove it.
1696         * target.h (struct target): Remove vector_opaque_p.
1697         * tree.c (build_opaque_vector_type): New.
1698         * tree.h (TYPE_VECTOR_OPAQUE): New.
1699         (build_opaque_vector_type): Declare.
1700         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
1701         * config/rs6000/rs6000.c (build_opaque_vector_type,
1702         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
1703         (rs6000_init_builtins): Use build_opaque_vector_type for
1704         opaque_V4SI_type_node.
1705
1706 2009-04-15  Catherine Moore  <clm@codesourcery.com>
1707
1708         * debug.h (set_name):  Declare.
1709         * dwarf2out.c (dwarf2out_set_name): Declare.
1710         (dwarf2_debug_hooks): Add set_name.
1711         (find_AT_string): New.
1712         (add_AT_string): Call find_AT_string.
1713         (dwarf2out_set_name): New.
1714         * cp/decl.c (grokdeclarator): Call set_name.
1715         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
1716         * debug.c (do_nothing_debug_hooks):  Likewise.
1717         * dbxout.c (dbx_debug_hooks): Likewise.
1718         * sdbout.c (sdb_debug_hooks): Likewise.
1719
1720 2009-04-15  Michael Eager <eager@eagercon.com>
1721
1722         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
1723         reg for single-precision FPU.
1724         * config/rs6000/rs6000.md (movsi_internal1): Only for
1725         !TARGET_SINGLE_FPU.
1726         (movsi_internal1_single): New. Add pattern to move SI values to/from
1727         single-precision FP regs.
1728
1729 2009-04-15  Richard Guenther  <rguenther@suse.de>
1730
1731         * omp-low.c (lower_rec_input_clauses): Build correct address
1732         expressions.
1733         (expand_omp_for_generic): Fix multiplication type.
1734         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
1735         (generate_memset_zero): Fix types.
1736         * tree-profile.c (prepare_instrumented_value): Correctly
1737         widen a pointer.
1738
1739 2009-04-15  Ian Lance Taylor  <iant@google.com>
1740
1741         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
1742         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
1743         for -Wall and for -Wc++-compat.
1744         (c_common_post_options): For C++, set warn_enum_compare if not
1745         already set.
1746         * c-tree.h (struct c_expr): Add field original_type.
1747         (build_external_ref): Update declaration.
1748         * c-parser.c (c_parser_braced_init): Set original_type.
1749         (c_parser_initelt): Likewise.
1750         (c_parser_expr_no_commas): Likewise.
1751         (c_parser_conditional_expression): Likewise.
1752         (c_parser_cast_expression): Likewise.
1753         (c_parser_unary_expression): Likewise.  Pull setting of
1754         original_code to top of function.
1755         (c_parser_sizeof_expression): Set original_type.
1756         (c_parser_alignof_expression): Likewise.
1757         (c_parser_postfix_expression): Likewise.  Pull setting of
1758         original_code to top of function.
1759         (c_parser_postfix_expression_after_paren_type): Set original_type.
1760         (c_parser_postfix_expression_after_primary): Likewise.
1761         (c_parser_expression): Likewise.
1762         * c-typeck.c (build_external_ref): Add type parameter.  Change all
1763         callers.
1764         (c_expr_sizeof_expr): Set original_type field.
1765         (parser_build_unary_op): Likewise.
1766         (parser_build_binary_op): Likewise.  Optionally warn about
1767         comparisons of enums of different types.
1768         (digest_init): Set original_type field.
1769         (really_start_incremental_init): Likewise.
1770         (push_init_level, pop_init_level): Likewise.
1771         * doc/invoke.texi (Warning Options): -Wenum-compare now
1772         supported in C.
1773
1774 2009-04-15  Richard Guenther  <rguenther@suse.de>
1775
1776         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
1777         out a necessary conversion.
1778         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
1779         names we didn't value number.
1780         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
1781
1782 2009-04-15  Richard Guenther  <rguenther@suse.de>
1783
1784         PR tree-optimization/39764
1785         * tree-ssa-ccp.c (get_value): Canonicalize value with
1786         canonicalize_float_value.
1787
1788 2009-04-15  Jan Hubicka  <jh@suse.cz>
1789
1790         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
1791         Wrong version of patch.
1792
1793 2009-04-15  Jan Hubicka  <jh@suse.cz>
1794
1795         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
1796
1797 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
1798
1799         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
1800         our distinct integral and vector types.
1801
1802 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
1803
1804         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
1805         * init.c (build_vtbl_address): Remove call to assemble_external.
1806
1807 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
1808
1809         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
1810         output for other floating point modes.
1811
1812 2009-04-14  Diego Novillo  <dnovillo@google.com>
1813
1814         * diagnostic.c (diagnostic_report_diagnostic): Do not
1815         warn about loaded plugins for DK_ERROR and DK_WARNING.
1816         * c-decl.c (declspecs_add_type): Move call to
1817         invoke_plugin_callbacks ...
1818         * c-parser.c (c_parser_declspecs): ... here.
1819         * plugin.c (dump_active_plugins): Tidy output.
1820
1821 2009-04-14  Diego Novillo  <dnovillo@google.com>
1822             Le-Chun Wu  <lcwu@google.com>
1823
1824         * configure.ac: Add --enable-plugin support.
1825         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
1826         * Makefile.in (PLUGIN_H): Define.
1827         Export ENABLE_PLUGIN and GMPINC to site.exp.
1828         Add PLUGINLIBS to link command.
1829         Add/modify dependencies for plugin.o and files including plugin.h.
1830         (plugin.o): New.
1831         * config.in: Regenerate.
1832
1833         * opts.c (common_handle_option): Handle OPT_fplugin_ and
1834         OPT_fplugin_arg_.
1835
1836 2009-04-14  Le-Chun Wu  <lcwu@google.com>
1837
1838         * tree-pass.h (register_one_dump_file): Add a prototype for
1839         register_one_dump_file.
1840         * toplev.c (compile_file): Call initialize_plugins.
1841         (do_compile): Call invoke_plugin_callbacks.
1842         (toplev_main): Call invoke_plugin_callbacks.
1843         * common.opt: Add -fplugin= and -fplugin-arg-.
1844         * gcc-plugin.h: New public header file for plugins to include.
1845         * plugin.c: New source file.
1846         * plugin.h: New internal header file.
1847         * passes.c (register_one_dump_file): Make it external.
1848
1849         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
1850
1851 2009-04-14  Diego Novillo  <dnovillo@google.com>
1852
1853         * doc/plugins.texi: New.
1854         * doc/gccint.texi: Add reference to Plugins chapter.
1855         * doc/invoke.texi: Document -fplugin and -fplugin-arg
1856         * diagnostic.c (diagnostic_report_diagnostic): Warn about
1857         loaded plugins, if any.
1858         * timevar.def (TV_PLUGIN_INIT): Define.
1859         (TV_PLUGIN_RUN): Define.
1860         * plugin.c: Include timevar.h
1861         (plugins_active_p): New.
1862         (dump_active_plugins): New.
1863         (debug_active_plugins): New.
1864
1865 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
1866
1867         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
1868         library paths.
1869         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
1870
1871 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
1872
1873         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
1874         the same as a minus without a shift.
1875
1876 2009-04-14  Nick Clifton  <nickc@redhat.com>
1877
1878         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
1879         comparisons with small integers will always produce a short
1880         branch.
1881
1882 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
1883
1884         Merge:
1885         2008-12-19  Diego Novillo  <dnovillo@google.com>
1886
1887         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
1888
1889 2009-04-14  Richard Guenther  <rguenther@suse.de>
1890
1891         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
1892         verification.
1893         (verify_gimple_assign_binary): Likewise.  Handle shifts and
1894         rotates correctly.
1895         (verify_gimple_phi): Print the mismatched argument position.
1896         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1897         Fix types.
1898         (vect_update_init_of_dr): Likewise.
1899         * matrix-reorg.c (transform_access_sites): Do what the
1900         comment suggests.
1901         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
1902
1903 2009-04-13  Michael Eager <eager@eagercon.com>
1904
1905         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
1906         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
1907         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
1908         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
1909         remove duplicate config
1910
1911 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1912
1913         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
1914         file_name:line_number type locator of the call site.
1915
1916 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1917
1918         * genautomata.c: Put blank after comma.
1919         (automaton_decls): New.
1920         (struct unit_usage): Add comments to member next.
1921         (store_alt_unit_usage): Keep the list ordered.
1922         (unit_present_on_list_p, equal_alternatives_p): New.
1923         (check_regexp_units_distribution): Check units distribution
1924         correctness correctly.
1925         (main): Don't write automata if error is found.  Return correct
1926         exit code.
1927
1928         * config/m68k/cf.md (cfv4_ds): Remove.
1929         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
1930         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
1931
1932         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
1933         power4-load-ext, power4-store, power4-store-update,
1934         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
1935         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
1936         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
1937         power4-sqrt, power4-isync): Modify reservation to make correct
1938         unit distribution to automata.
1939
1940         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
1941         power5-store-update, power5-two, power5-three, power5-lmul,
1942         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
1943
1944 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
1945
1946         * except.c (pass_set_nothrow_function_flags): Set name and add
1947         TODO_dump_func.
1948         (set_nothrow_function_flags): Mention in the dump file when
1949         changing a function to nothrow.
1950
1951 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
1952
1953         PR/39066
1954         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
1955         instead of unsigned long.
1956
1957 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1958
1959         * config/arm/arm.c (return_used_this_function): Remove.
1960         (arm_output_function_prologue): Remove use of
1961         return_used_this_function.
1962         (output_return_instruction): Replace use of
1963         return_used_this_function
1964         by cfun->machine->return_used_this_function.
1965         (arm_output_epilogue): Likewise.
1966         (arm_output_function_epilogue): Likewise.
1967         (thumb_unexpanded_epilogue): Likewise.
1968         * config/arm/arm.h (struct machine_function):
1969         New member return_used_this_function.
1970
1971 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
1972
1973         * doc/install.texi: Correct description of default directory for
1974         --with-gxx-include-dir.
1975
1976 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
1977
1978         * fold-const.c (build_range_check): Properly deal with enumeral and
1979         boolean base types.
1980
1981 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
1982
1983         * doc/invoke.texi (max_gcse_passes): Remove documentation.
1984         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
1985         * params.h (MAX_GCSE_PASSES): Remove.
1986         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
1987         in sequence.  Remove ability to run multiple passes.
1988         (bypass_jumps): Report run as third CPROP pass.
1989
1990 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
1991
1992         PR middle-end/39651
1993         * except.c (can_throw_external): Look at each insn in a SEQUENCE
1994         when deciding whether the whole SEQUENCE can throw.
1995
1996 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
1997
1998         PR target/39740
1999         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
2000         offseted label references.
2001
2002 2009-04-11  Jan Hubicka  <jh@suse.cz>
2003
2004         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
2005
2006 2009-04-11  Richard Guenther  <rguenther@suse.de>
2007
2008         PR middle-end/39732
2009         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
2010         return variables as TREE_ADDRESSABLE.
2011
2012 2009-04-11  Richard Guenther  <rguenther@suse.de>
2013
2014         PR tree-optimization/39713
2015         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
2016         reference trees have SSA_NAME operands.
2017
2018 2009-04-11  Richard Guenther  <rguenther@suse.de>
2019
2020         PR c/39712
2021         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
2022         address expressions.
2023
2024 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
2025
2026         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
2027         match changes in Cygwin 1.7
2028         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
2029         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
2030
2031 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
2032
2033         PR tree-optimization/39701
2034         * doc/invoke.texi (Optimization Options): Document change in
2035         meaning and initialization of -fdelete-null-pointer-checks.
2036
2037 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2038
2039         PR middle-end/39701
2040         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
2041
2042         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
2043         here.
2044
2045         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
2046
2047 2009-04-10  Chao-ying Fu  <fu@mips.com>
2048
2049         * doc/tm.texi (Instruction Output): Document
2050         TARGET_ASM_FINAL_POSTSCAN_INSN.
2051         * target.h (final_postscan_insn): New field in asm_out.
2052         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2053         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
2054         * final.c (final_scan_insn): Call
2055         targetm.asm_out.final_postscan_insn after outputting
2056         an asm macro and a normal instruction.
2057
2058         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
2059         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
2060         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
2061         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
2062         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
2063
2064 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
2065
2066         PR middle-end/39701
2067         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
2068         variables as non-NULL even with -fdelete-null-pointer-checks.
2069
2070 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
2071
2072         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
2073
2074 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
2075
2076         PR target/39678
2077         * config/i386/i386.c (classify_argument): Handle SCmode with
2078         (bit_offset % 64) != 0.
2079
2080 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
2081
2082         * doc/invoke.texi (Optimize Options): Add cross-reference to
2083         -Q --help=optimizers examples.
2084
2085 2009-04-10  Ben Elliston  <bje@au.ibm.com>
2086
2087         PR target/36800
2088         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
2089         regalign for the reg == fpr and TDmode case.
2090
2091 2009-04-09  David Ayers  <ayers@fsfe.org>
2092
2093         PR objc/29200
2094         * objc/objc-act.c (warn_with_method): Remove helper function.
2095         (check_duplicates): Call warning and inform directly.
2096         (really_start_method): Likewise.
2097
2098 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
2099
2100         * expmed.c (expand_divmod): Always use a comparison for a division
2101         by a large unsigned integer.
2102
2103         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
2104         for things others than variables or functions as nonzero.
2105
2106 2009-04-09  Nick Clifton  <nickc@redhat.com>
2107
2108         * unwind-compat.c: Change copyright header to refer to version
2109         3 of the GNU General Public License with version 3.1 of the
2110         GCC Runtime Library Exception and to point readers at the
2111         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
2112         * config/alpha/crtfastmath.c: Likewise.
2113         * config/alpha/linux-unwind.h: Likewise.
2114         * config/alpha/qrnnd.asm: Likewise.
2115         * config/alpha/vms-crt0-64.c: Likewise.
2116         * config/alpha/vms-crt0.c: Likewise.
2117         * config/alpha/vms-dwarf2.asm: Likewise.
2118         * config/alpha/vms-dwarf2eh.asm: Likewise.
2119         * config/alpha/vms-psxcrt0-64.c: Likewise.
2120         * config/alpha/vms-psxcrt0.c: Likewise.
2121         * config/alpha/vms_tramp.asm: Likewise.
2122         * config/arc/initfini.c: Likewise.
2123         * config/arc/lib1funcs.asm: Likewise.
2124         * config/arm/bpabi-v6m.S: Likewise.
2125         * config/arm/bpabi.S: Likewise.
2126         * config/arm/bpabi.c: Likewise.
2127         * config/arm/crti.asm: Likewise.
2128         * config/arm/crtn.asm: Likewise.
2129         * config/arm/ieee754-df.S: Likewise.
2130         * config/arm/ieee754-sf.S: Likewise.
2131         * config/arm/lib1funcs.asm: Likewise.
2132         * config/arm/libunwind.S: Likewise.
2133         * config/arm/linux-atomic.c: Likewise.
2134         * config/arm/mmintrin.h: Likewise.
2135         * config/arm/pr-support.c: Likewise.
2136         * config/arm/unaligned-funcs.c: Likewise.
2137         * config/arm/unwind-arm.c: Likewise.
2138         * config/arm/unwind-arm.h: Likewise.
2139         * config/avr/libgcc.S: Likewise.
2140         * config/bfin/crti.s: Likewise.
2141         * config/bfin/crtlibid.s: Likewise.
2142         * config/bfin/crtn.s: Likewise.
2143         * config/bfin/lib1funcs.asm: Likewise.
2144         * config/bfin/linux-unwind.h: Likewise.
2145         * config/cris/arit.c: Likewise.
2146         * config/cris/cris_abi_symbol.c: Likewise.
2147         * config/darwin-64.c: Likewise.
2148         * config/darwin-crt2.c: Likewise.
2149         * config/darwin-crt3.c: Likewise.
2150         * config/darwin.h: Likewise.
2151         * config/dbxelf.h: Likewise.
2152         * config/dfp-bit.c: Likewise.
2153         * config/dfp-bit.h: Likewise.
2154         * config/elfos.h: Likewise.
2155         * config/fixed-bit.c: Likewise.
2156         * config/fixed-bit.h: Likewise.
2157         * config/fp-bit.c: Likewise.
2158         * config/fp-bit.h: Likewise.
2159         * config/fr30/crti.asm: Likewise.
2160         * config/fr30/crtn.asm: Likewise.
2161         * config/fr30/lib1funcs.asm: Likewise.
2162         * config/freebsd-spec.h: Likewise.
2163         * config/frv/cmovd.c: Likewise.
2164         * config/frv/cmovh.c: Likewise.
2165         * config/frv/cmovw.c: Likewise.
2166         * config/frv/frvbegin.c: Likewise.
2167         * config/frv/frvend.c: Likewise.
2168         * config/frv/lib1funcs.asm: Likewise.
2169         * config/glibc-stdint.h: Likewise.
2170         * config/h8300/clzhi2.c: Likewise.
2171         * config/h8300/crti.asm: Likewise.
2172         * config/h8300/crtn.asm: Likewise.
2173         * config/h8300/ctzhi2.c: Likewise.
2174         * config/h8300/fixunssfsi.c: Likewise.
2175         * config/h8300/lib1funcs.asm: Likewise.
2176         * config/h8300/parityhi2.c: Likewise.
2177         * config/h8300/popcounthi2.c: Likewise.
2178         * config/i386/ammintrin.h: Likewise.
2179         * config/i386/att.h: Likewise.
2180         * config/i386/avxintrin.h: Likewise.
2181         * config/i386/biarch64.h: Likewise.
2182         * config/i386/bmmintrin.h: Likewise.
2183         * config/i386/cpuid.h: Likewise.
2184         * config/i386/cross-stdarg.h: Likewise.
2185         * config/i386/crtfastmath.c: Likewise.
2186         * config/i386/crtprec.c: Likewise.
2187         * config/i386/cygming-crtbegin.c: Likewise.
2188         * config/i386/cygming-crtend.c: Likewise.
2189         * config/i386/cygwin.asm: Likewise.
2190         * config/i386/emmintrin.h: Likewise.
2191         * config/i386/gmm_malloc.h: Likewise.
2192         * config/i386/gthr-win32.c: Likewise.
2193         * config/i386/i386.h: Likewise.
2194         * config/i386/immintrin.h: Likewise.
2195         * config/i386/linux-unwind.h: Likewise.
2196         * config/i386/linux64.h: Likewise.
2197         * config/i386/mm3dnow.h: Likewise.
2198         * config/i386/mmintrin-common.h: Likewise.
2199         * config/i386/mmintrin.h: Likewise.
2200         * config/i386/nmmintrin.h: Likewise.
2201         * config/i386/pmm_malloc.h: Likewise.
2202         * config/i386/pmmintrin.h: Likewise.
2203         * config/i386/smmintrin.h: Likewise.
2204         * config/i386/sol2-c1.asm: Likewise.
2205         * config/i386/sol2-ci.asm: Likewise.
2206         * config/i386/sol2-cn.asm: Likewise.
2207         * config/i386/sol2-gc1.asm: Likewise.
2208         * config/i386/tmmintrin.h: Likewise.
2209         * config/i386/unix.h: Likewise.
2210         * config/i386/w32-unwind.h: Likewise.
2211         * config/i386/wmmintrin.h: Likewise.
2212         * config/i386/x86-64.h: Likewise.
2213         * config/i386/x86intrin.h: Likewise.
2214         * config/i386/xmmintrin.h: Likewise.
2215         * config/ia64/crtbegin.asm: Likewise.
2216         * config/ia64/crtend.asm: Likewise.
2217         * config/ia64/crtfastmath.c: Likewise.
2218         * config/ia64/crti.asm: Likewise.
2219         * config/ia64/crtn.asm: Likewise.
2220         * config/ia64/fde-glibc.c: Likewise.
2221         * config/ia64/lib1funcs.asm: Likewise.
2222         * config/ia64/linux-unwind.h: Likewise.
2223         * config/ia64/quadlib.c: Likewise.
2224         * config/ia64/unwind-ia64.c: Likewise.
2225         * config/linux.h: Likewise.
2226         * config/m32c/m32c-lib1.S: Likewise.
2227         * config/m32c/m32c-lib2-trapv.c: Likewise.
2228         * config/m32c/m32c-lib2.c: Likewise.
2229         * config/m32r/initfini.c: Likewise.
2230         * config/m68hc11/larith.asm: Likewise.
2231         * config/m68hc11/m68hc11-crt0.S: Likewise.
2232         * config/m68k/cf.md: Likewise.
2233         * config/m68k/crti.s: Likewise.
2234         * config/m68k/crtn.s: Likewise.
2235         * config/m68k/lb1sf68.asm: Likewise.
2236         * config/m68k/linux-unwind.h: Likewise.
2237         * config/mcore/crti.asm: Likewise.
2238         * config/mcore/crtn.asm: Likewise.
2239         * config/mcore/lib1.asm: Likewise.
2240         * config/mips/linux-unwind.h: Likewise.
2241         * config/mips/loongson.h: Likewise.
2242         * config/mips/mips16.S: Likewise.
2243         * config/mmix/crti.asm: Likewise.
2244         * config/mmix/crtn.asm: Likewise.
2245         * config/pa/fptr.c: Likewise.
2246         * config/pa/hpux-unwind.h: Likewise.
2247         * config/pa/lib2funcs.asm: Likewise.
2248         * config/pa/linux-atomic.c: Likewise.
2249         * config/pa/linux-unwind.h: Likewise.
2250         * config/pa/milli64.S: Likewise.
2251         * config/pa/quadlib.c: Likewise.
2252         * config/pa/stublib.c: Likewise.
2253         * config/picochip/libgccExtras/adddi3.asm: Likewise.
2254         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
2255         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
2256         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
2257         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
2258         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
2259         * config/picochip/libgccExtras/divmod15.asm: Likewise.
2260         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
2261         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
2262         * config/picochip/libgccExtras/longjmp.asm: Likewise.
2263         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
2264         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
2265         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
2266         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
2267         * config/picochip/libgccExtras/setjmp.asm: Likewise.
2268         * config/picochip/libgccExtras/subdi3.asm: Likewise.
2269         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
2270         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
2271         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
2272         * config/rs6000/750cl.h: Likewise.
2273         * config/rs6000/altivec.h: Likewise.
2274         * config/rs6000/biarch64.h: Likewise.
2275         * config/rs6000/crtresfpr.asm: Likewise.
2276         * config/rs6000/crtresgpr.asm: Likewise.
2277         * config/rs6000/crtresxfpr.asm: Likewise.
2278         * config/rs6000/crtresxgpr.asm: Likewise.
2279         * config/rs6000/crtsavfpr.asm: Likewise.
2280         * config/rs6000/crtsavgpr.asm: Likewise.
2281         * config/rs6000/darwin-asm.h: Likewise.
2282         * config/rs6000/darwin-fallback.c: Likewise.
2283         * config/rs6000/darwin-fpsave.asm: Likewise.
2284         * config/rs6000/darwin-ldouble.c: Likewise.
2285         * config/rs6000/darwin-tramp.asm: Likewise.
2286         * config/rs6000/darwin-unwind.h: Likewise.
2287         * config/rs6000/darwin-vecsave.asm: Likewise.
2288         * config/rs6000/darwin-world.asm: Likewise.
2289         * config/rs6000/e500crtres32gpr.asm: Likewise.
2290         * config/rs6000/e500crtres64gpr.asm: Likewise.
2291         * config/rs6000/e500crtres64gprctr.asm: Likewise.
2292         * config/rs6000/e500crtrest32gpr.asm: Likewise.
2293         * config/rs6000/e500crtrest64gpr.asm: Likewise.
2294         * config/rs6000/e500crtresx32gpr.asm: Likewise.
2295         * config/rs6000/e500crtresx64gpr.asm: Likewise.
2296         * config/rs6000/e500crtsav32gpr.asm: Likewise.
2297         * config/rs6000/e500crtsav64gpr.asm: Likewise.
2298         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
2299         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
2300         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
2301         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
2302         * config/rs6000/eabi-ci.asm: Likewise.
2303         * config/rs6000/eabi-cn.asm: Likewise.
2304         * config/rs6000/eabi.asm: Likewise.
2305         * config/rs6000/linux-unwind.h: Likewise.
2306         * config/rs6000/linux64.h: Likewise.
2307         * config/rs6000/paired.h: Likewise.
2308         * config/rs6000/paired.md: Likewise.
2309         * config/rs6000/ppc64-fp.c: Likewise.
2310         * config/rs6000/ppu_intrinsics.h: Likewise.
2311         * config/rs6000/rs6000.h: Likewise.
2312         * config/rs6000/si2vmx.h: Likewise.
2313         * config/rs6000/sol-ci.asm: Likewise.
2314         * config/rs6000/sol-cn.asm: Likewise.
2315         * config/rs6000/spe.h: Likewise.
2316         * config/rs6000/spu2vmx.h: Likewise.
2317         * config/rs6000/sysv4.h: Likewise.
2318         * config/rs6000/tramp.asm: Likewise.
2319         * config/rs6000/vec_types.h: Likewise.
2320         * config/s390/linux-unwind.h: Likewise.
2321         * config/s390/tpf-unwind.h: Likewise.
2322         * config/score/crti.asm: Likewise.
2323         * config/score/crtn.asm: Likewise.
2324         * config/sh/crt1.asm: Likewise.
2325         * config/sh/crti.asm: Likewise.
2326         * config/sh/crtn.asm: Likewise.
2327         * config/sh/divtab-sh4-300.c: Likewise.
2328         * config/sh/divtab-sh4.c: Likewise.
2329         * config/sh/divtab.c: Likewise.
2330         * config/sh/lib1funcs-4-300.asm: Likewise.
2331         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
2332         * config/sh/lib1funcs.asm: Likewise.
2333         * config/sh/lib1funcs.h: Likewise.
2334         * config/sh/linux-atomic.asm: Likewise.
2335         * config/sh/linux-unwind.h: Likewise.
2336         * config/sh/shmedia.h: Likewise.
2337         * config/sh/sshmedia.h: Likewise.
2338         * config/sh/ushmedia.h: Likewise.
2339         * config/sparc/crtfastmath.c: Likewise.
2340         * config/sparc/linux-unwind.h: Likewise.
2341         * config/sparc/sol2-c1.asm: Likewise.
2342         * config/sparc/sol2-ci.asm: Likewise.
2343         * config/sparc/sol2-cn.asm: Likewise.
2344         * config/spu/divmodti4.c: Likewise.
2345         * config/spu/divv2df3.c: Likewise.
2346         * config/spu/float_disf.c: Likewise.
2347         * config/spu/float_unsdidf.c: Likewise.
2348         * config/spu/float_unsdisf.c: Likewise.
2349         * config/spu/float_unssidf.c: Likewise.
2350         * config/spu/mfc_multi_tag_release.c: Likewise.
2351         * config/spu/mfc_multi_tag_reserve.c: Likewise.
2352         * config/spu/mfc_tag_release.c: Likewise.
2353         * config/spu/mfc_tag_reserve.c: Likewise.
2354         * config/spu/mfc_tag_table.c: Likewise.
2355         * config/spu/multi3.c: Likewise.
2356         * config/spu/spu_internals.h: Likewise.
2357         * config/spu/spu_intrinsics.h: Likewise.
2358         * config/spu/spu_mfcio.h: Likewise.
2359         * config/spu/vec_types.h: Likewise.
2360         * config/spu/vmx2spu.h: Likewise.
2361         * config/stormy16/stormy16-lib2.c: Likewise.
2362         * config/svr4.h: Likewise.
2363         * config/sync.c: Likewise.
2364         * config/v850/lib1funcs.asm: Likewise.
2365         * config/vxlib-tls.c: Likewise.
2366         * config/vxlib.c: Likewise.
2367         * config/vxworks-dummy.h: Likewise.
2368         * config/xtensa/crti.asm: Likewise.
2369         * config/xtensa/crtn.asm: Likewise.
2370         * config/xtensa/ieee754-df.S: Likewise.
2371         * config/xtensa/ieee754-sf.S: Likewise.
2372         * config/xtensa/lib1funcs.asm: Likewise.
2373         * config/xtensa/lib2funcs.S: Likewise.
2374         * config/xtensa/linux-unwind.h: Likewise.
2375         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
2376         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
2377         * coretypes.h: Likewise.
2378         * crtstuff.c: Likewise.
2379         * defaults.h: Likewise.
2380         * dwarf2.h: Likewise.
2381         * emutls.c: Likewise.
2382         * gbl-ctors.h: Likewise.
2383         * gcov-io.h: Likewise.
2384         * ginclude/float.h: Likewise.
2385         * ginclude/iso646.h: Likewise.
2386         * ginclude/stdarg.h: Likewise.
2387         * ginclude/stdbool.h: Likewise.
2388         * ginclude/stddef.h: Likewise.
2389         * ginclude/stdfix.h: Likewise.
2390         * ginclude/stdint-gcc.h: Likewise.
2391         * ginclude/tgmath.h: Likewise.
2392         * gthr-aix.h: Likewise.
2393         * gthr-dce.h: Likewise.
2394         * gthr-gnat.c: Likewise.
2395         * gthr-gnat.h: Likewise.
2396         * gthr-lynx.h: Likewise.
2397         * gthr-mipssde.h: Likewise.
2398         * gthr-nks.h: Likewise.
2399         * gthr-posix.c: Likewise.
2400         * gthr-posix.h: Likewise.
2401         * gthr-posix95.h: Likewise.
2402         * gthr-rtems.h: Likewise.
2403         * gthr-single.h: Likewise.
2404         * gthr-solaris.h: Likewise.
2405         * gthr-tpf.h: Likewise.
2406         * gthr-vxworks.h: Likewise.
2407         * gthr-win32.h: Likewise.
2408         * gthr.h: Likewise.
2409         * libgcc2.c: Likewise.
2410         * libgcc2.h: Likewise.
2411         * libgcov.c: Likewise.
2412         * tsystem.h: Likewise.
2413         * typeclass.h: Likewise.
2414         * unwind-c.c: Likewise.
2415         * unwind-compat.h: Likewise.
2416         * unwind-dw2-fde-compat.c: Likewise.
2417         * unwind-dw2-fde-darwin.c: Likewise.
2418         * unwind-dw2-fde-glibc.c: Likewise.
2419         * unwind-dw2-fde.c: Likewise.
2420         * unwind-dw2-fde.h: Likewise.
2421         * unwind-dw2.c: Likewise.
2422         * unwind-dw2.h: Likewise.
2423         * unwind-generic.h: Likewise.
2424         * unwind-pe.h: Likewise.
2425         * unwind-sjlj.c: Likewise.
2426         * unwind.inc: Likewise.
2427         * config/arm/neon-gen.ml: Change generated copyright header to
2428         refer to version 3 of the GNU General Public License with
2429         version 3.1 of the GCC Runtime Library Exception and to point
2430         readers at the COPYING3 and COPYING3.RUNTIME files and the
2431         FSF's license web page.
2432         * config/arm/arm_neon.h: Regenerate.
2433
2434 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2435
2436         * config/cris/cris.md: Change copyright header to refer to version
2437         3 of the GNU General Public License.
2438         * doc/install.texi2html: Change copyright header to refer to version
2439         3 of the GNU General Public License and to point readers at the
2440         COPYING3 file and the FSF's license web page.
2441         * config/vax/linux.h: Likewise.
2442
2443 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
2444
2445         * config/i386/i386.md (cmpcc): New.
2446         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
2447         (sync_compare_and_swap_cc*): Delete.
2448
2449         * config/s390/s390.c (s390_compare_emitted): Remove.
2450         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
2451         s390_compare_emitted used to be handled.  Assert that modes match.
2452         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
2453         refer to sync_compare_and_swap_ccsi.
2454         * config/s390/s390.h (s390_compare_emitted): Remove.
2455         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
2456         instead of s390_compare_emitted.
2457         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
2458         instead of s390_compare_emitted.
2459         * config/s390/s390.md (cmpcc): New.
2460         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
2461         CC_REGNUM, do not pretend it's set.
2462         (sync_compare_and_swap_cc*): Delete.
2463         * config/s390/predicates.md (cc_reg_operand): New.
2464
2465         * expr.c (sync_compare_and_swap_cc): Delete.
2466         * optabs.h (sync_compare_and_swap_cc): Delete.
2467         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
2468         is being used with can_compare_p.
2469         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
2470         (find_cc_set): New.
2471         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
2472         look for a MODE_CC set instead.  Use emit_store_flag.
2473         (expand_compare_and_swap_loop): Likewise, with some additional
2474         complication to avoid a force_reg when useless.  Use
2475         emit_cmp_and_jump_insns.
2476         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
2477         * doc/md.texi (sync_compare_and_swap_cc): Merge with
2478         sync_compare_and_swap documentation.
2479
2480 2009-04-09  Jan Hubicka  <jh@suse.cz>
2481
2482         * except.c (find_prev_try): Break out from ....
2483         (duplicate_eh_regions): ... here; properly update prev_try pointers
2484         when duplication part of tree.
2485         (dump_eh_tree): Improve dumping.
2486         (verify_eh_region): New.
2487         (verify_eh_tree): Use it.
2488
2489 2009-04-06  Richard Guenther  <rguenther@suse.de>
2490
2491         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
2492         &ARRAY addresses by adjusting their types and prepending
2493         a conversion.
2494         * tree-cfg.c (verify_gimple_assign_single): Verify that
2495         addresses are correct.
2496
2497 2009-04-09  Richard Guenther  <rguenther@suse.de>
2498
2499         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
2500         indices into an array reference if possible.
2501         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2502         Fold POINTER_PLUS_EXPR statements with invariant address.
2503
2504 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
2505
2506         PR target/39634
2507         * config.gcc (powerpc64-*-linux*): Always build biarch.
2508
2509 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
2510
2511         PR c/39613
2512         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
2513         it and pedwarn if this results in an INTEGER_CST.
2514
2515 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2516
2517         * doc/install.texi: Update minimum GMP version.  Remove obsolete
2518         text in MPFR section.
2519
2520 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
2521
2522         * dwarf2out.c (class_scope_p): New static inline.
2523         (class_or_namespace_scope_p): Use it.
2524         (gen_variable_die): Use DW_TAG_member tag for static data member
2525         declarations instead of DW_TAG_variable.
2526
2527         PR middle-end/39573
2528         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
2529         variables.
2530
2531 2009-04-08  Richard Guenther  <rguenther@suse.de>
2532
2533         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
2534         valueize random data.
2535
2536 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
2537
2538         * config.gcc (aix tm_file):  Add aix-stdint.h.
2539         (aix tm clause use_gcc_stdint):  Set to wrap.
2540         * config/rs6000/aix-stdint.h:  New file.
2541
2542 2009-04-08  Richard Guenther  <rguenther@suse.de>
2543
2544         PR middle-end/36291
2545         * tree-dfa.c (add_referenced_var): Do not recurse into
2546         global initializers.
2547         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
2548         exposed variables.
2549         (fold_const_aggregate_ref): Likewise.
2550
2551 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
2552
2553         * recog.c (ordered_comparison_operator): New.
2554         * gensupport.c (std_preds): Add it.
2555         * doc/md.texi (Machine-Independent Predicates): Document it.
2556
2557 2009-04-08  Jan Hubicka  <jh@suse.cz>
2558
2559         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
2560         * function.h (rtl_eh): Remove exception_handler_label_map.
2561         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
2562         remove_exception_handler_label, for_each_eh_label_1): Remove.
2563         (rtl_remove_unreachable_regions): Remove.
2564         (convert_from_eh_region_ranges): Do not remove unreachable regions.
2565         (find_exception_handler_labels): Don't build the hashtable.
2566         (maybe_remove_eh_handler): Remove.
2567         (for_each_eh_label): Rewrite to walk the tree.
2568         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
2569         * except.h (maybe_remove_eh_handler): Remove.
2570         * passes.c (init_optimization_passes): Schedule second EH cleanup
2571         before out-of-ssa.
2572         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
2573         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
2574
2575 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
2576
2577         * genoutput.c (validate_optab_operands): New.
2578         (gen_insn, gen_expand): Call it.
2579
2580         * genflags.c (gen_insn): Detect misused iterators.
2581         (main): Pass line_no to gen_insn, exit with status 1 on error.
2582
2583         * genextract.c (line_no): Make global.
2584         (VEC_safe_set_locstr): Change assertion to error message.
2585         (main): Exit with status 1 on error.
2586
2587 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
2588
2589         PR c/39614
2590         PR c/39673
2591         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
2592         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
2593         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
2594         * c-convert.c (convert): Do not call fold on results of conversion
2595         functions when the result is a C_MAYBE_CONST_EXPR.
2596         * c-parser.c (c_parser_postfix_expression): Do not fold condition
2597         of __builtin_choose_expr.
2598         * c-typeck.c (remove_c_maybe_const_expr): New.
2599         (build_unary_op, build_conditional_expr, build_compound_expr,
2600         build_binary_op, c_objc_common_truthvalue_conversion): Call
2601         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
2602         integer operands.
2603
2604 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
2605
2606         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
2607         CODE to produce a new one. Add a prototype to use fold_convert_const
2608
2609 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
2610
2611         PR bootstrap/39660
2612         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
2613         mix declarations and code.
2614
2615 2009-04-08  Ben Elliston  <bje@au.ibm.com>
2616
2617         * gcc.c: Replace `CC' with `GCC' throughout.
2618
2619 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
2620
2621         * doc/invoke.texi: Document Atom support.
2622
2623 2009-04-07  Jason Merrill  <jason@redhat.com>
2624
2625         PR c++/25185
2626         * c-common.h, c-common.c: Add flag_pretty_templates.
2627         * c-opts.c (c_common_handle_option): Set it.
2628         * c.opt: Add -fno-pretty-templates.
2629         * doc/invoke.texi (C++ Dialect Options): Likewise.
2630
2631 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
2632
2633         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
2634         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
2635         (ia64_expand_builtin): Likewise.
2636
2637 2009-04-07  Martin Jambor  <mjambor@suse.cz>
2638
2639         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
2640         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
2641         ADDR_EXPRS are include too.
2642
2643 2009-04-07  Richard Guenther  <rguenther@suse.de>
2644
2645         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
2646         decls are only used if passes as parameters or if they are
2647         local statics and the call is not to a builtin.
2648         (call_may_clobber_ref_p_1): Likewise.
2649
2650 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2651
2652         * expr.c (do_store_flag): Remove last argument.  Simplify code
2653         to avoid duplication of tests already done by can_compare_p.
2654         (expand_expr_real_1): Adjust caller.
2655
2656 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2657
2658         * optabs.c (can_compare_p): Test the predicate of a
2659         cbranch and cstore pattern.
2660
2661 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2662
2663         * expr.c (convert_move): Use emit_store_flag instead of
2664         "emulating" it.
2665
2666 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
2667
2668         * config/i386/i386.c (ix86_compare_emitted): Remove.
2669         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
2670         ix86_compare_op0 like ix86_compare_emitted used to be handled.
2671         * config/i386/i386.h (ix86_compare_emitted): Remove.
2672         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
2673         instead of ix86_compare_emitted.
2674         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
2675
2676 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
2677
2678         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
2679         Add t-sysroot-suffix to tmake_file.
2680         * config/print-sysroot-suffix.sh: New file.
2681         * config/t-sysroot-suffix: New file.
2682
2683 2009-04-07  Ben Elliston  <bje@au.ibm.com>
2684
2685         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
2686         as the latter produces a warning when the target does not support
2687         infinity.
2688
2689 2009-04-07  Ben Elliston  <bje@au.ibm.com>
2690
2691         * dfp.c: Replace type punning assignments with memcpy throughout.
2692         * Makefile.in (dfp.o-warn): Remove.
2693
2694 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
2695
2696         PR target/39634
2697         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
2698         Include soft-fp/t-softfp after rs6000/t-linux64.
2699
2700 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2701
2702         * stor-layout.c (set_sizetype): Use the full precision of their
2703         machine mode for bitsize types.
2704
2705 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
2706
2707         * config/i386/i386.md: Revert 2 accidental checkins.
2708
2709 2009-04-06  Joey Ye  <joey.ye@intel.com>
2710             Xuepeng Guo <xuepeng.guo@intel.com>
2711             H.J. Lu  <hongjiu.lu@intel.com>
2712
2713         Atom pipeline model, tuning and insn selection.
2714         * config.gcc (atom): Add atom config options and target.
2715
2716         * config/i386/atom.md: New.
2717
2718         * config/i386/i386.c (atom_cost): New cost.
2719         (m_ATOM): New macro flag.
2720         (initial_ix86_tune_features): Set m_ATOM.
2721         (x86_accumulate_outgoing_args): Likewise.
2722         (x86_arch_always_fancy_math_387): Likewise.
2723         (processor_target): Add Atom cost.
2724         (cpu_names): Add Atom cpu name.
2725         (override_options): Set Atom ISA.
2726         (ix86_issue_rate): New case PROCESSOR_ATOM.
2727         (ix86_adjust_cost): Likewise.
2728
2729         * config/i386/i386.h (TARGET_ATOM): New target macro.
2730         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
2731         (TARGET_OPT_AGU): New target option.
2732         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
2733         (processor_type): Add PROCESSOR_ATOM.
2734
2735         * config/i386/i386.md (cpu): Add new value "atom".
2736         (use_carry, movu): New attr.
2737         (atom.md): Include atom.md.
2738         (adddi3_carry_rex64): Set attr "use_carry".
2739         (addqi3_carry): Likewise.
2740         (addhi3_carry): Likewise.
2741         (addsi3_carry): Likewise.
2742         (*addsi3_carry_zext): Likewise.
2743         (subdi3_carry_rex64): Likewise.
2744         (subqi3_carry): Likewise.
2745         (subhi3_carry): Likewise.
2746         (subsi3_carry): Likewise.
2747         (x86_movdicc_0_m1_rex64): Likewise.
2748         (*x86_movdicc_0_m1_se): Likewise.
2749         (x86_movsicc_0_m1): Likewise.
2750         (*x86_movsicc_0_m1_se): Likewise.
2751         (*adddi_1_rex64): Emit add insn as much as possible.
2752         (*addsi_1): Likewise.
2753         (return_internal): Set atom_unit.
2754         (return_internal_long): Likewise.
2755         (return_pop_internal): Likewise.
2756         (*rcpsf2_sse): Set atom_sse_attr attr.
2757         (*qrt<mode>2_sse): Likewise.
2758         (*prefetch_sse): Likewise.
2759
2760         * config/i386/i386-c.c (ix86_target_macros_internal): New case
2761         PROCESSOR_ATOM.
2762         (ix86_target_macros_internal): Likewise.
2763
2764         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
2765         (*prefetch_sse_rex): Likewise.
2766         (sse_rcpv4sf2): Likewise.
2767         (sse_vmrcpv4sf2): Likewise.
2768         (sse_sqrtv4sf2): Likewise.
2769         (<sse>_vmsqrt<mode>2): Likewise.
2770         (sse_ldmxcsr): Likewise.
2771         (sse_stmxcsr): Likewise.
2772         (*sse_sfence): Likewise.
2773         (sse2_clflush): Likewise.
2774         (*sse2_mfence): Likewise.
2775         (*sse2_lfence): Likewise.
2776         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
2777         (<sse>_movup<ssemodesuffixf2c>): Likewise.
2778         (avx_movdqu<avxmodesuffix>): Likewise.
2779         (avx_lddqu<avxmodesuffix>): Likewise.
2780         (sse2_movntv2di): Change attr "type" to "ssemov".
2781         (sse2_movntsi): Likewise.
2782         (rsqrtv8sf2): Change attr "type" to "sseadd".
2783         (sse3_addsubv2df3): Set attr "atom_unit".
2784         (sse3_h<plusminus_insn>v4sf3): Likewise.
2785         (*sse2_pmaddwd): Likewise.
2786         (*vec_extractv2di_1_rex64): Likewise.
2787         (*vec_extractv2di_1_avx): Likewise.
2788         (sse2_psadbw): Likewise.
2789         (ssse3_phaddwv8hi3): Likewise.
2790         (ssse3_phaddwv4hi3): Likewise.
2791         (ssse3_phadddv4si3): Likewise.
2792         (ssse3_phadddv2si3): Likewise.
2793         (ssse3_phaddswv8hi3): Likewise.
2794         (ssse3_phaddswv4hi3): Likewise.
2795         (ssse3_phsubwv8hi3): Likewise.
2796         (ssse3_phsubwv4hi3): Likewise.
2797         (ssse3_phsubdv4si3): Likewise.
2798         (ssse3_phsubdv2si3): Likewise.
2799         (ssse3_phsubswv8hi3): Likewise.
2800         (ssse3_phsubswv4hi3): Likewise.
2801         (ssse3_pmaddubsw128): Likewise.
2802         (sse3_pmaddubsw: Likewise.
2803         (ssse3_palignrti): Likewise.
2804         (ssse3_palignrdi): Likewise.
2805
2806 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
2807
2808         * doc/install.texi (Specific): Fix two cross-references to MinGW.
2809
2810 2009-04-06  Richard Guenther  <rguenther@suse.de>
2811
2812         PR tree-optimization/28868
2813         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
2814         of which PHI results we inserted.
2815         (insert_into_preds_of_block): Record inserted PHIs.
2816         (eliminate): Eliminate redundant PHI nodes.
2817         (init_pre): Init inserted_phi_names.
2818
2819 2009-04-06  Richard Guenther  <rguenther@suse.de>
2820
2821         PR tree-optimization/39643
2822         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
2823         IMAGPART_EXPRs of complex constants.
2824         (execute_fold_all_builtins): If we folded a call queue
2825         TODO_update_address_taken.
2826
2827 2009-04-06  Jan Hubicka  <jh@suse.cz>
2828
2829         PR middle-end/39659
2830         * except.c (remove_unreachable_regions): Propagate may_contain_throw
2831         flag.
2832
2833 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
2834
2835         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
2836         delay slot.
2837         (ic_invalidate_array): Likewise.
2838
2839 2009-04-06  Hariharan Sandanagobalane <hariharan@picochip.com>
2840
2841         * calls.c (emit_library_call_value_1): Fix a problem with parameter
2842         alignment for library calls.
2843
2844 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
2845
2846         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
2847         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
2848         * config/i386/mingw-stdint.h:  New file.
2849
2850 2009-04-05  Richard Guenther  <rguenther@suse.de>
2851
2852         PR tree-optimization/39648
2853         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
2854         our &A vs. &A[0] IL deficiencies.
2855
2856 2009-04-04  Jan Hubicka  <jh@suse.cz>
2857
2858         * except.c (sjlj_find_directly_reachable_regions): Be ready for
2859         removed toplevel regions.
2860         (sjlj_mark_call_sites): Likewise.
2861
2862 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
2863
2864         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
2865         (cygwin tm clause use_gcc_stdint):  Set to wrap.
2866         * config/i386/cygwin-stdint.h:  New file.
2867
2868 2009-04-04  Richard Guenther  <rguenther@suse.de>
2869
2870         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
2871         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
2872         single-argument PHIs if we are in loop-closed SSA form.
2873         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
2874         for the pre-condition.
2875         (slpeel_tree_peel_loop_to_edge): Likewise.
2876         (vect_build_loop_niters): Take an optional sequence to append stmts.
2877         (vect_generate_tmps_on_preheader): Likewise.
2878         (vect_do_peeling_for_loop_bound): Take extra guards for the
2879         pre-condition.
2880         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
2881         the cost model check.
2882         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
2883         guards if we are going to peel.  Do not apply versioning in that case.
2884         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
2885         (vect_do_peeling_for_loop_bound): Likewise.
2886         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
2887         loop bound only record extra pre-conditions, do not apply loop
2888         versioning.
2889
2890 2009-04-04  Richard Guenther  <rguenther@suse.de>
2891
2892         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
2893         renaming code.
2894
2895 2009-04-04  Jan Hubicka  <jh@suse.cz>
2896
2897         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2898         last_basic_block for size of bb->index indexed array.
2899         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
2900         compute_out, link_btr_uses, build_btr_def_use_webs,
2901         build_btr_def_use_webs, migrate_btr_defs): Likewise.
2902
2903 2009-04-04  Jan Hubicka  <jh@suse.cz>
2904
2905         * except.c (remove_eh_handler_and_replace): Break out from ...
2906         (remove_eh_handler): ... here.
2907         (bring_to_root): New function.
2908         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
2909         handled ones, bring others to root of tree.
2910
2911 2009-04-04  Jan Hubicka  <jh@suse.cz>
2912
2913         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
2914         (all_phis_safe_to_merge): New function.
2915         (update_info): New structure.
2916         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
2917         (cleanup_empty_eh): Update SSA if possible.
2918
2919 2009-04-04  Richard Guenther  <rguenther@suse.de>
2920
2921         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
2922         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
2923         (append_vuse): Likewise.
2924
2925 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
2926
2927         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
2928         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
2929         instead of REG_UNSAVED for DW_CFA_undefined.
2930         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
2931         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
2932         outermost frame.
2933
2934 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
2935
2936         PR target/39501
2937         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
2938         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
2939         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
2940
2941 2009-04-04  Richard Guenther  <rguenther@suse.de>
2942
2943         PR tree-optimization/8781
2944         PR tree-optimization/37892
2945         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
2946         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
2947         (valueize_refs): Call it for *& valueizations.
2948         (shared_reference_ops_from_ref): Rename to ...
2949         (valueize_shared_reference_ops_from_ref): ... this and valueize.
2950         (shared_reference_ops_from_call): Rename to ...
2951         (valueize_shared_reference_ops_from_call): ... this and valueize.
2952         (vn_reference_lookup): Update.
2953         (visit_reference_op_call): Likewise.
2954         * tree-ssa-pre.c (phi_translate_1): Fold *&.
2955         (eliminate): Value-replace the call address in call statements.
2956
2957 2009-04-04  Richard Guenther  <rguenther@suse.de>
2958
2959         PR tree-optimization/39636
2960         * tree-ssa-forwprop.c
2961         (forward_propagate_addr_into_variable_array_index): Check for
2962         GIMPLE_ASSIGN before accessing the rhs code.
2963
2964 2009-04-03  Jason Merrill  <jason@redhat.com>
2965
2966         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
2967
2968 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
2969
2970         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
2971         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
2972         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
2973         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
2974         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
2975         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
2976         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
2977         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
2978         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
2979         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
2980         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
2981         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
2982         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
2983         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
2984         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
2985         Use fr_reg_or_fp01_operand instead of fr_register_operand
2986
2987         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
2988         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
2989         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
2990
2991 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
2992
2993         PR rtl-optimization/39607
2994         PR rtl-optimization/39631
2995
2996         Revert:
2997
2998         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2999         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
3000         instead of DF_LR_OUT.
3001         * ira-lives.c (process_bb_node_lives): Ditto.
3002         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
3003         instead of DF_LR_{OUT,IN}.
3004         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
3005         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
3006
3007 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
3008
3009         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
3010         (execute_lower_omp): Always run but take the short way out if -fopenmp
3011         is not given.
3012         (gate_lower_omp): Remove, forcing the pass manager to always run the
3013         pass and always set PROP_gimple_lomp.
3014         (pass_lower_omp): Remove gate function.
3015         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
3016         PROP_trees.  Instead, require it.
3017         * ipa-cp.c (pass_ipa_cp): Likewise.
3018         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
3019         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
3020         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
3021         and PROP_gimple_leh.
3022
3023 2009-04-03  Richard Guenther  <rguenther@suse.de>
3024
3025         PR middle-end/13146
3026         PR tree-optimization/23940
3027         PR tree-optimization/33237
3028         PR middle-end/33974
3029         PR middle-end/34093
3030         PR tree-optimization/36201
3031         PR tree-optimization/36230
3032         PR tree-optimization/38049
3033         PR tree-optimization/38207
3034         PR tree-optimization/38230
3035         PR tree-optimization/38301
3036         PR tree-optimization/38585
3037         PR middle-end/38895
3038         PR tree-optimization/38985
3039         PR tree-optimization/39299
3040         * tree-ssa-structalias.h: Remove.
3041         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
3042         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
3043         (struct vuse_element_d): Remove.
3044         (struct vuse_vec_d): Likewise.
3045         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
3046         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
3047         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
3048         VUSE_ELEMENT_VAR): Likewise.
3049         (struct voptype_d): Likewise.
3050         (NUM_VOP_FREE_BUCKETS): Likewise.
3051         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
3052         (struct stmt_operands_d): Remove.
3053         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
3054         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
3055         VDEF_NUM, VDEF_VECT): Likewise.
3056         (copy_virtual_operands): Remove.
3057         (operand_build_cmp): Likewise.
3058         (create_ssa_artificial_load_stmt): Likewise.
3059         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
3060         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
3061         vuse_index and mayuse_index members.  Pack and move done and iter_type
3062         members to the front.
3063         (SSA_OP_VMAYUSE): Remove.
3064         (SSA_OP_VIRTUAL_USES): Adjust.
3065         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
3066         (unlink_stmt_vdef): Declare.
3067         (add_to_addressable_set): Remove.
3068         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
3069         (vrp_visit_stmt): Likewise.
3070         * doc/tree-ssa.texi (Alias analysis): Update.
3071         * doc/invoke.texi (max-aliased-vops): Remove docs.
3072         (avg-aliased-vops): Likewise.
3073         * tree-into-ssa.c (syms_to_rename): Remove.
3074         (need_to_update_vops_p): Likewise.
3075         (need_to_initialize_update_ssa_p): Rename to ...
3076         (update_ssa_initialized_fn): ... this.  Track function we are
3077         initialized for.
3078         (symbol_marked_for_renaming): Simplify.
3079         (add_new_name_mapping): Do not set need_to_update_vops_p.
3080         (dump_currdefs): Use SYMS_TO_RENAME.
3081         (rewrite_update_stmt): Always walk all uses/defs.
3082         (dump_update_ssa): Adjust.
3083         (init_update_ssa): Take function argument.  Track what we are
3084         initialized for.
3085         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
3086         (create_new_def_for): Initialize for cfun, assert we are initialized
3087         for cfun.
3088         (mark_sym_for_renaming): Simplify.
3089         (mark_set_for_renaming): Do not initialize update-ssa.
3090         (need_ssa_update_p): Simplify.  Take function argument.
3091         (name_mappings_registered_p): Assert we ask for the correct function.
3092         (name_registered_for_update_p): Likewise.
3093         (ssa_names_to_replace): Likewise.
3094         (release_ssa_name_after_update_ssa): Likewise.
3095         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
3096         (dump_decl_set): Do not print a newline.
3097         (debug_decl_set): Do it here.
3098         (dump_update_ssa): And here.
3099         * tree-ssa-loop-im.c (move_computations): Adjust.
3100         (movement_possibility): Likewise.
3101         (determine_max_movement): Likewise.
3102         (gather_mem_refs_stmt): Likewise.
3103         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
3104         or NAME_MEMORY_TAG.
3105         * tree-complex.c (update_all_vops): Remove.
3106         (expand_complex_move): Adjust.
3107         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
3108         Simplify test for memory referencing statement.  Exclude
3109         non-invariant ADDR_EXPRs.
3110         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
3111         * tree-loop-distribution.c (generate_memset_zero): Adjust.
3112         (rdg_flag_uses): Likewise.
3113         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
3114         related code.
3115         (tree_optimize_tail_calls_1): Also split the
3116         edge from the entry block if we have degenerate PHI nodes in
3117         the first basic block.
3118         * tree.c (init_ttree): Remove memory-tag related code.
3119         (tree_code_size): Likewise.
3120         (tree_node_structure): Likewise.
3121         (build7_stat): Re-write to be build6_stat.
3122         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
3123         (SSA_VAR_P): Adjust.
3124         (struct tree_memory_tag): Remove.
3125         (struct tree_memory_partition_tag): Likewise.
3126         (union tree_node): Adjust.
3127         (build7): Re-write to be build6.
3128         * tree-pass.h (pass_reset_cc_flags): Remove.
3129         (TODO_update_address_taken): New flag.
3130         (pass_simple_dse): Remove.
3131         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
3132         * params.h (MAX_ALIASED_VOPS): Remove.
3133         (AVG_ALIASED_VOPS): Likewise.
3134         * omp-low.c (expand_omp_taskreg): Update SSA form.
3135         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
3136         aliases the lhs in a copy stmt.
3137         * tree-ssa-dse.c (struct address_walk_data): Remove.
3138         (memory_ssa_name_same): Likewise.
3139         (memory_address_same): Likewise.
3140         (get_kill_of_stmt_lhs): Likewise.
3141         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
3142         unused stores.  Look through PHI nodes into post-dominated regions.
3143         (dse_optimize_stmt): Simplify.  Properly remove stores.
3144         (tree_ssa_dse): Compute dominators.
3145         (execute_simple_dse): Remove.
3146         (pass_simple_dse): Likewise.
3147         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
3148         gimple_loaded_syms and gimple_stored_syms computation.
3149         * toplev.c (dump_memory_report): Dump alias and pta stats.
3150         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
3151         (vn_reference_eq): Likewise.
3152         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
3153         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
3154         valueize_vuses): Remove.
3155         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
3156         (get_def_ref_stmt_vuse): ... this.
3157         (vn_reference_lookup_2): New function.
3158         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
3159         walking equivalent vuses.  Simplify.
3160         (vn_reference_lookup): Likewise.
3161         (vn_reference_insert): Likewise.
3162         (vn_reference_insert_pieces): Likewise.
3163         (visit_reference_op_call): Simplify.
3164         (visit_reference_op_load): Likewise.
3165         (visit_reference_op_store): Likewise.
3166         (init_scc_vn): Remove shared_lookup_vuses initialization.
3167         (free_scc_vn): Remove shared_lookup_vuses freeing.
3168         (sort_vuses, sort_vuses_heap): Remove.
3169         (get_ref_from_reference_ops): Export.
3170         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
3171         vector with single vuse pointer.
3172         (vn_reference_lookup_pieces, vn_reference_lookup,
3173         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
3174         (shared_vuses_from_stmt): Remove.
3175         (get_ref_from_reference_ops): Declare.
3176         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
3177         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
3178         memory-tag related code.
3179         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
3180         (likely_value): Add comment, skip static-chain of call statements.
3181         (surely_varying_stmt_p): Adjust.
3182         (gimplify_and_update_call_from_tree): Likewise.
3183         (execute_fold_all_builtins): Do not rebuild alias info.
3184         (gimplify_and_update_call_from_tree): Properly update VOPs.
3185         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
3186         (copy_ref_info): Remove memory-tag related code.
3187         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
3188         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
3189         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
3190         computation.
3191         * tree-ssa-dom.c (gimple_p): Remove typedef.
3192         (eliminate_redundant_computations): Adjust.
3193         (record_equivalences_from_stmt): Likewise.
3194         (avail_expr_hash): Likewise.
3195         (avail_expr_eq): Likewise.
3196         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
3197         (stmt_makes_single_load): Likewise.
3198         (stmt_makes_single_store): Likewise.
3199         * tree-ssa-alias.c: Rewrite completely.
3200         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
3201         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
3202         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
3203         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
3204         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
3205         Remove public functions.
3206         (pass_reset_cc_flags): Remove.
3207         (pass_build_alias): Move ...
3208         * tree-ssa-structalias.c (pass_build_alias): ... here.
3209         * tree-ssa-alias.c (may_be_aliased): Move ...
3210         * tree-flow-inline.h (may_be_aliased): ... here.
3211         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
3212         count_uses_and_derefs): Move ...
3213         * gimple.c: ... here.
3214         * gimple.h (count_uses_and_derefs): Declare.
3215         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
3216         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
3217         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
3218         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
3219         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
3220         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
3221         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
3222         New functions.
3223         * tree-dfa.c (refs_may_alias_p): Move ...
3224         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
3225         * tree-ssa-alias.h: New file.
3226         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
3227         (statement_sink_location): Likewise.
3228         * opts.c (decode_options): Do not adjust max-aliased-vops or
3229         avg-aliased-vops values.
3230         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
3231         (TV_CALL_CLOBBER): Likewise.
3232         (TV_FLOW_SENSITIVE): Likewise.
3233         (TV_FLOW_INSENSITIVE): Likewise.
3234         (TV_MEMORY_PARTITIONING): Likewise.
3235         (TV_ALIAS_STMT_WALK): New timevar.
3236         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
3237         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
3238         (get_address_description): Remove memory-tag related code.
3239         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
3240         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
3241         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
3242         and immediate uses in statements.  Document.
3243         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
3244         (dump_symbols): Remove.
3245         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
3246         * alias.c (get_deref_alias_set): New function split out from ...
3247         (get_alias_set): ... here.
3248         * alias.h (get_deref_alias_set): Declare.
3249         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
3250         type parameter.  Remove restrict pointer handling.  Create a
3251         ref-all pointer in case type-based alias sets do not conflict.
3252         (vect_analyze_data_refs): Remove SMT related code.
3253         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
3254         (vectorizable_load): Likewise.
3255         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
3256         (DR_SYMBOL_TAG, DR_VOPS): Remove.
3257         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
3258         Ignore vops and SMTs.
3259         (dr_analyze_alias): Likewise..
3260         (free_data_ref): Likewise.
3261         (create_data_ref): Likewise.
3262         (analyze_all_data_dependences): Likewise.
3263         (get_references_in_stmt): Adjust.
3264         * tree-flow-inline.h (gimple_aliases_computed_p,
3265         gimple_addressable_vars, gimple_call_clobbered_vars,
3266         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
3267         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
3268         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
3269         gimple_mem_ref_stats): Remove.
3270         (gimple_vop): New function.
3271         (op_iter_next_use): Remove vuses and mayuses cases.
3272         (op_iter_next_def): Remove vdefs case.
3273         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
3274         (clear_and_done_ssa_iter): Do not set removed fields.
3275         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
3276         Assert we are not iterating over vuses or vdefs if not also
3277         iterating over uses or defs.
3278         (op_iter_init_use): Likewise.
3279         (op_iter_init_def): Likewise.
3280         (op_iter_next_vdef): Remove.
3281         (op_iter_next_mustdef): Likewise.
3282         (op_iter_init_vdef): Likewise.
3283         (compare_ssa_operands_equal): Likewise.
3284         (link_use_stmts_after): Handle vuse operand.
3285         (is_call_used): Use is_call_clobbered.
3286         (is_call_clobbered): Global variables are always call clobbered,
3287         query the call-clobbers bitmap.
3288         (mark_call_clobbered): Ignore global variables.
3289         (clear_call_clobbered): Likewise.
3290         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
3291         virtual operands sanity check.
3292         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
3293         Remove.
3294         (TARGET_MEM_REF): Remove TMR_TAG operand.
3295         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
3296         Remove call-clobber related code.
3297         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
3298         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
3299         partitions or escape reason.
3300         (get_single_def_stmt, get_single_def_stmt_from_phi,
3301         get_single_def_stmt_with_phi): Remove.
3302         (dump_referenced_vars): Tidy.
3303         (get_ref_base_and_extent): Allow bare decls.
3304         (collect_dfa_stats): Adjust.
3305         * graphite.c (rename_variables_in_stmt): Adjust.
3306         (graphite_copy_stmts_from_block): Likewise.
3307         (translate_clast): Likewise.
3308         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
3309         (EXPR_DIES): New.
3310         (translate_vuse_through_block): Use the oracle.
3311         (phi_translate_1): Adjust.
3312         (value_dies_in_block_x): Use the oracle.  Cache the outcome
3313         in EXPR_DIES.
3314         (valid_in_sets): Check if the VUSE for
3315         a REFERENCE is available.
3316         (eliminate): Do not remove stmts during elimination,
3317         instead queue and remove them afterwards.
3318         (do_pre): Do not rebuild alias info.
3319         (pass_pre): Run TODO_rebuild_alias before PRE.
3320         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
3321         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
3322         (mark_all_v_defs_stmt): Remove.
3323         (mark_all_v_defs_seq): Adjust.
3324         (sra_replace): Likewise.
3325         (scalarize_use): Likewise.
3326         (scalarize_copy): Likewise.
3327         (scalarize_init): Likewise.
3328         (scalarize_ldst): Likewise.
3329         (todoflags): Remove.
3330         (tree_sra): Do not rebuild alias info.
3331         (tree_sra_early): Adjust.
3332         (pass_sra): Run TODO_update_address_taken before SRA.
3333         * tree-predcom.c (set_alias_info): Remove.
3334         (prepare_initializers_chain): Do not call it.
3335         (mark_virtual_ops_for_renaming): Adjust.
3336         (mark_virtual_ops_for_renaming_list): Remove.
3337         (initialize_root_vars): Adjust.
3338         (initialize_root_vars_lm): Likewise.
3339         (prepare_initializers_chain): Likewise.
3340         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
3341         (may_propagate_copy_into_stmt): Likewise.
3342         (merge_alias_info): Do nothing for now.
3343         (propagate_tree_value_into_stmt): Adjust.
3344         (stmt_may_generate_copy): Likewise.
3345         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
3346         not mark symbols for renaming.
3347         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
3348         with the same statement, make sure to update the new pointed-to one.
3349         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
3350         call statements, do not mark symbols for renaming.
3351         (mark_operand_necessary): Dump something.
3352         (ref_may_be_aliased): New function.
3353         (mark_aliased_reaching_defs_necessary_1): New helper function.
3354         (mark_aliased_reaching_defs_necessary): Likewise.
3355         (mark_all_reaching_defs_necessary_1): Likewise.
3356         (mark_all_reaching_defs_necessary): Likewise.
3357         (propagate_necessity): Do not process virtual PHIs.  For
3358         non-aliased loads mark all reaching definitions as necessary.
3359         For aliased loads and stores mark the immediate dominating
3360         aliased clobbers as necessary.
3361         (visited): New global static.
3362         (perform_tree_ssa_dce): Free visited bitmap after propagating
3363         necessity.
3364         (remove_dead_phis): Perform simple dead virtual PHI removal.
3365         (remove_dead_stmt): Properly unlink virtual operands when
3366         removing stores.
3367         (eliminate_unnecessary_stmts): Schedule PHI removal after
3368         stmt removal.
3369         * tree-ssa-ter.c (is_replaceable_p): Adjust.
3370         (process_replaceable): Likewise.
3371         (find_replaceable_in_bb): Likewise.
3372         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
3373         based on the single gimple vop.
3374         (verify_flow_insensitive_alias_info): Remove.
3375         (verify_flow_sensitive_alias_info): Likewise.
3376         (verify_call_clobbering): Likewise.
3377         (verify_memory_partitions): Likewise.
3378         (verify_alias_info): Likewise.
3379         (verify_ssa): Adjust..
3380         (execute_update_addresses_taken): Export.  Update SSA
3381         manually.  Optimize only when optimizing.  Use a local bitmap.
3382         (pass_update_address_taken): Remove TODO_update_ssa, add
3383         TODO_dump_func.
3384         (pass_update_address_taken): Just use TODO_update_address_taken.
3385         (init_tree_ssa): Do not initialize addressable_vars.
3386         (verify_ssa): Verify new VUSE / VDEF properties.
3387         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
3388         Do not call verify_alias_info.
3389         (delete_tree_ssa): Clear the VUSE, VDEF operands.
3390         Do not free the loaded and stored syms bitmaps.  Reset the escaped
3391         and callused solutions.  Do not free addressable_vars.
3392         Remove memory-tag related code.
3393         (warn_uninitialized_var): Aliases are always available.
3394         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
3395         * lambda-code.c (can_put_in_inner_loop): Adjust.
3396         (can_put_after_inner_loop): Likewise.
3397         (perfect_nestify): Likewise.
3398         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
3399         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
3400         (vectorizable_conversion): Do not mark symbols for renaming.
3401         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
3402         (expand_call_inline): Unlink the calls virtual operands before
3403         replacing it.
3404         (tree_function_versioning): Do not call update_ssa if we are not
3405         updating clones.  Simplify.
3406         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
3407         (propagate_with_phi): Likewise..
3408         * tree-outof-ssa.c (create_temp): Remove memory tag and call
3409         clobber code.  Assert we are not aliased or global.
3410         * tree-flow.h: Include tree-ssa-alias.h
3411         (enum escape_type): Remove.
3412         (struct mem_sym_stats_d): Likewise.
3413         (struct mem_ref_stats_d): Likewise.
3414         (struct gimple_df): Add vop member.  Remove global_var,
3415         call_clobbered_vars, call_used_vars, addressable_vars,
3416         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
3417         escaped and callused members.
3418         (struct ptr_info_def): Remove all members, add points-to solution
3419         member pt.
3420         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
3421         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
3422         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
3423         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
3424         (tree-ssa-alias.o): Likewise.
3425         (toplev.o): Add tree-ssa-alias.h
3426         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
3427         * gimple.c (gimple_set_bb): Fix off-by-one error.
3428         (is_gimple_reg): Do not handle memory tags.
3429         (gimple_copy): Also copy virtual operands.
3430         Delay updating the statement.  Do not reset loaded and stored syms.
3431         (gimple_set_stored_syms): Remove.
3432         (gimple_set_loaded_syms): Likewise.
3433         (gimple_call_copy_skip_args): Copy the virtual operands
3434         and mark the new statement modified.
3435         * tree-ssa-structalias.c (may_alias_p): Remove.
3436         (set_uids_in_ptset): Take the alias set to prune with as
3437         parameter.  Fold in the alias test of may_alias_p.
3438         (compute_points_to_sets): Compute whether a ptr is dereferenced
3439         in a local sbitmap.
3440         (process_constraint): Deal with &ANYTHING on the lhs, reject all
3441         other ADDRESSOF constraints on the lhs.
3442         (get_constraint_for_component_ref): Assert that we don't get
3443         ADDRESSOF constraints from the base of the reference.
3444         Properly generate UNKNOWN_OFFSET for DEREF if needed.
3445         (struct variable_info): Remove collapsed_to member.
3446         (get_varinfo_fc): Remove.
3447         (new_var_info): Do not set collapsed_to.
3448         (dump_constraint): Do not follow cycles.
3449         (dump_constraint_graph): Likewise.
3450         (build_pred_graph): Likewise.
3451         (build_succ_graph): Likewise.
3452         (rewrite_constraints): Likewise.
3453         (do_simple_structure_copy): Remove.
3454         (do_rhs_deref_structure_copy): Remove.
3455         (do_lhs_deref_structure_copy): Remove.
3456         (collapse_rest_of_var): Remove.
3457         (do_structure_copy): Re-implement.
3458         (pta_stats): New global variable.
3459         (dump_pta_stats): New function.
3460         (struct constraint_expr): Make offset signed.
3461         (UNKNOWN_OFFSET): Define special value.
3462         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
3463         (solution_set_expand): New helper function split out from ...
3464         (do_sd_constraint): ... here.
3465         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
3466         (do_ds_constraint): Likewise.
3467         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
3468         and CALLUSED = *CALLUSED.
3469         (set_union_with_increment): Make inc argument signed.
3470         (type_safe): Remove.
3471         (get_constraint_for_ptr_offset): Handle unknown and negative
3472         constant offsets.
3473         (first_vi_for_offset): Handle offsets before start.  Bail
3474         out early for offsets beyond the variable extent.
3475         (first_or_preceding_vi_for_offset): New function.
3476         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
3477         Together with ESCAPED = *ESCAPED this properly computes reachability.
3478         (find_what_var_points_to): New function.
3479         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
3480         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
3481         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
3482         pt_solutions_intersect): New functions.
3483         (compute_call_used_vars): Remove.
3484         (compute_may_aliases): New main entry into PTA computation.
3485         * gimple.h (gimple_p): New typedef.
3486         (struct gimple_statement_base): Remove references_memory_p.
3487         (struct gimple_statement_with_memory_ops_base): Remove
3488         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
3489         members.
3490         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
3491         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
3492         gimple_set_references_memory): Remove.
3493         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
3494         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
3495         New functions.
3496         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
3497         (verify_expr): Allow RESULT_DECL.
3498         (gimple_duplicate_bb): Do not copy virtual operands.
3499         (gimple_duplicate_sese_region): Adjust.
3500         (gimple_duplicate_sese_tail): Likewise.
3501         (mark_virtual_ops_in_region): Remove.
3502         (move_sese_region_to_fn): Do not call it.
3503         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
3504         and pass_simple_dse.
3505         (execute_function_todo): Handle TODO_update_address_taken,
3506         call execute_update_addresses_taken for TODO_rebuild_alias.
3507         (execute_todo): Adjust.
3508         (execute_one_pass): Init dump files early.
3509         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
3510         call-clobbered.
3511         (create_general_new_stmt): Clear vops.
3512         * tree-ssa-reassoc.c (get_rank): Adjust.
3513         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
3514         symbols for renaming.
3515         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
3516         (PARAM_AVG_ALIASED_VOPS): Likewise.
3517         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
3518         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
3519         * tree-ssa-operands.c: Simplify for new virtual operand representation.
3520         (operand_build_cmp, copy_virtual_operands,
3521         create_ssa_artificial_load_stmt, add_to_addressable_set,
3522         gimple_add_to_addresses_taken): Remove public functions.
3523         (unlink_stmt_vdef): New function.
3524
3525 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
3526
3527         * config.gcc (powerpc-*-linux*): Merge variants.
3528
3529 2009-04-02  Chao-ying Fu  <fu@mips.com>
3530             James Grosbach <james.grosbach@microchip.com>
3531
3532         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
3533         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
3534         cop0_sp_offset.
3535         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
3536         keep_interrupts_masked_p, use_debug_exception_return_p.
3537         (mips_attribute_table): Add interrupt, use_shadow_register_set,
3538         keep_interrupts_masked, use_debug_exception_return.
3539         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
3540         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
3541         New functions.
3542         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
3543         (mips_print_operand): Process COP0 registers to print $0 .. $31
3544         correctly for GAS to process.
3545         (mips_interrupt_extra_call_saved_reg_p): New function.
3546         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
3547         extra registers.
3548         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
3549         (mips_compute_frame_info): Add supports for interrupt context that
3550         includes doubleword accumulators and COP0 registers.
3551         (mips_for_each_saved_acc): New function.
3552         (mips_for_each_saved_gpr_and_fpr): Change the function name from
3553         mips_for_each_saved_reg.
3554         (mips_save_reg): Save accumulators.
3555         (mips_kernel_reg_p): A new for_each_rtx callback.
3556         (mips_expand_prologue): Support interrupt handlers.
3557         (mips_restore_reg): Restore accumulators.
3558         (mips_expand_epilogue): Support interrupt handlers.
3559         (mips_can_use_return_insn): Return false for interrupt handlers.
3560         (mips_epilogue_uses): New function.
3561         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
3562         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
3563         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
3564         cop0_move): New instructions.
3565         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
3566         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
3567         defines.
3568         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
3569         New defines.
3570         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
3571         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
3572         interrupt handlers, we use K0 as the temporary register.
3573         (EPILOGUE_USES): Change to a function call.
3574         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
3575         handlers, we use K0 as the temporary register.
3576
3577         * doc/extend.texi (Function Attributes): Document interrupt,
3578         use_shadow_register_set, keep_interrupts_masked,
3579         use_debug_exception_return for MIPS attributes.
3580
3581 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
3582
3583         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
3584         Remove a number of t-files from tmake_file.
3585         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
3586         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
3587         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3588         target_prototype, not TARGET_PROTOTYPE.
3589         (LINK_OS_GNU_SPEC): Define.
3590         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
3591         and darwin-ldoubdle.c.
3592
3593 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3594
3595         PR driver/39293
3596         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
3597         (cpp_options): Ditto.
3598         (default_compilers): Ditto.
3599         (display_help): Ditto.
3600         (process_command): Ditto.
3601         (do_spec_1): Ditto.
3602         (set_input): Use lbasename instead of duplicate code.
3603         (save_temps_prefix): New static for -save-temps=obj.
3604         (save_temps_length): Ditto.
3605
3606         * doc/invoke.texi (-save-temps=obj): Document new variant to
3607         -save-temps switch.
3608
3609 2009-04-02  Jeff Law  <law@redhat.com>
3610
3611         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
3612         variable.
3613
3614 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3615
3616         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
3617         * configure: Regenerated.
3618
3619 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3620
3621         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
3622         share the argument list.
3623
3624 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3625
3626         Merge
3627
3628         2009-02-12  Diego Novillo  <dnovillo@google.com>
3629
3630         * varpool.c (debug_varpool): New.
3631         * cgraph.h (debug_varpool): Declare.
3632
3633 2009-04-02  Jan Hubicka  <jh@suse.cz>
3634
3635         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
3636         pass.
3637
3638 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3639
3640         * config/i386/i386.c (ix86_abi): Move initialization to ...
3641         (override_options): Here.
3642
3643 2009-04-02  Christian Bruel  <christian.bruel@st.com>
3644
3645         * config/sh/sh.c (sh_dwarf_register_span): New function.
3646         (TARGET_DWARF_REGISTER_SPAN): Define.
3647         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
3648
3649 2009-04-02  Ira Rosen  <irar@il.ibm.com>
3650
3651         PR tree-optimization/39595
3652         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
3653         interleaved loads group is not  greater than the SLP group size.
3654
3655 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
3656
3657         * builtins.c (is_builtin_name): New.
3658         (called_as_built_in): Use is_builtin_name.
3659         * tree.h (is_builtin_name): New.
3660         * varasm.c (incorporeal_function_p): Use is_builtin_name
3661
3662 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
3663
3664         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
3665
3666 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
3667
3668         PR c++/26693
3669         * c-decl.c (clone_underlying_type): Move this ...
3670         * c-common.c (set_underlying_type): ... here.
3671         Also, make sure the function properly sets TYPE_STUB_DECL() on
3672         the newly created typedef variant type.
3673         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
3674         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
3675         points.
3676
3677 2009-04-02  Richard Guenther  <rguenther@suse.de>
3678
3679         PR tree-optimization/37221
3680         * tree-flow.h (degenerate_phi_result): Declare.
3681         * tree-ssa-dom.c (degenerate_phi_result): Export.
3682         * tree-scalar-evolution.c (analyze_initial_condition): If
3683         the initial condition is defined by a degenerate PHI node
3684         use the degenerate value.
3685
3686 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
3687
3688         PR rtl-optimization/39588
3689         * combine.c (merge_outer_ops): Do not set the constant when this
3690         is not necessary.
3691         (simplify_shift_const_1): Do not modify it either in this case.
3692
3693 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
3694
3695         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
3696         tuning is deprecated if -mtune value is set to an Itanium1 variant.
3697
3698 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
3699
3700         PR c/29027
3701         * c-lex.c (interpret_float): Default (no suffix) is double.
3702
3703 2009-04-1  Xinliang David Li  <davidxl@google.com>
3704
3705         * config/i386/i386.c (legitimate_constant_p): Recognize
3706         all one vector constant.
3707
3708 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3709
3710         * gcc/config/vax/vax.c: Add #includes to silence warnings.
3711         Change #include order to silence two warnings.
3712
3713 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3714
3715         * gcc/config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
3716         (ASM_SPEC): Pass -k to the assembler for PIC code.
3717
3718 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3719
3720         * gcc/config.gcc: Add vax-*-linux* to the switch.
3721         * gcc/config/vax/linux.h: New file. (TARGET_VERSION,
3722         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
3723
3724 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3725
3726         * gcc/config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
3727         Use predicate macros instead of GET_CODE() == foo.
3728         * gcc/config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
3729         ashlsi3, rotrsi3, <unnamed>): Likewise.
3730
3731 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3732
3733         * gcc/config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
3734         jbbccihi, jbbccisi): Remova trailing whitespace.
3735         * gcc/config/vax/constraints.md: Likewise.
3736         * gcc/config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
3737         * gcc/config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
3738         * gcc/config/vax/predicates.md: Likewise.
3739         * gcc/config/vax/vax.c (print_operand_address, vax_output_int_move,
3740         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
3741         * gcc/config/vax/vax.h: Likewise.
3742         * gcc/config/vax/vax.md (nonlocal_goto): Likewise.
3743
3744 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3745
3746         * gcc/config/vax/vax.c (vax_float_literal, vax_output_int_move)
3747         (indirectable_address_p, adjacent_operands_p): Add spaces around
3748         braces.
3749         * gcc/config/vax/vax-protos.h (adjacent_operands_p): Likewise.
3750
3751 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3752
3753         * gcc/config/vax/vax.c (legitimate_constant_address_p,
3754         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
3755         index_term_p, reg_plus_index_p, legitimate_address_p,
3756         vax_mode_dependent_address_p): Update comments to match functions
3757         modified by the recent int->bool conversion.
3758
3759 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3760
3761         * gcc/config/vax/builtins.md: Update copyright message.
3762         * gcc/config/vax/constraints.md: Likewise.
3763         * gcc/config/vax/netbsd-elf.h: Likewise.
3764         * gcc/config/vax/predicates.md: Likewise.
3765         * gcc/config/vax/vax-protos.h: Likewise.
3766         * gcc/config/vax/vax.c: Likewise.
3767         * gcc/config/vax/vax.h: Likewise.
3768         * gcc/config/vax/vax.md: Likewise.
3769         * gcc/config/vax/vax.opt: Likewise.
3770
3771 2009-04-01  Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
3772
3773         * gcc/config/vax/builtins.md (ffssi2, ffssi2_internal,
3774         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
3775         * gcc/config/vax/constraints.md (B, R): Likewise.
3776         * gcc/config/vax/predicates.md (external_memory_operand,
3777         nonimmediate_addsub_di_operand): Likewise.
3778         * gcc/config/vax/vax.c (vax_output_int_add): Likewise.
3779         * gcc/config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
3780         untyped_call): Likewise.
3781
3782 2009-04-01  Matt Thomas <matt@3am-software.com>
3783
3784         * config/vax/predicates.md: New file.
3785         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
3786         external_const_operand, nonsymbolic_operand, external_memory_operand,
3787         indirect_memory_operand, indexed_memory_operand,
3788         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
3789         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
3790         predicate.
3791         * config/vax/constraints.md: New file.
3792         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
3793         New constraint.
3794         * config/vax/builtins.md: New file.
3795         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
3796         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
3797         jbbccisi): Define.
3798         * config/vax/vax.opt (mqmath): Add option.
3799         * config/vax/vax.md (isfx): Extend with DI.
3800         (VAXintQH, VAXintQHSD): Define.
3801         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
3802         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
3803         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
3804         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
3805         (movdi): Update constraints and use vax_output_int_move().
3806         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
3807         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
3808         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
3809         nonlocal_goto): New.
3810         (mov<mode>): Extend accepted operand types.
3811         (subdi3_old): Rename from subdi3, change update constraints and use
3812         a new implementation.
3813         * gcc/config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
3814         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
3815         MOVE_RATIO, CLEAR_RATIO): Define.
3816         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
3817         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3818         (PRINT_OPERAND): Redefine using a function instead of inlined code.
3819         * gcc/config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
3820         (split_quadword_operands): Make static and really allow variable
3821         splitting.
3822         (print_operand_address): Update for PIC generation.
3823         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
3824         indexable_address_p, fixup_mathdi_operand,
3825         vax_expand_addsub_di_operands, adjacent_operands_p): New.
3826         (vax_float_literal, legitimate_constant_p,
3827         indirectable_constant_address_p, index_term_p,
3828         reg_plus_index_p): Return bool instead of int.
3829         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
3830         where needed.
3831         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
3832         generation.
3833         (vax_output_conditional_branch): Indent.
3834         (legitimate_constant_address_p, indirectable_constant_address_p,
3835         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
3836         vax_mode_dependent_address_p): Return bool instead of int, update for
3837         PIC generation.
3838         * config/vax/vax-protos.h (legitimate_constant_address_p,
3839         legitimate_constant_p, legitimate_address_p,
3840         vax_mode_dependent_address_p): Change declaration to bool.
3841         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
3842         vax_expand_addsub_di_operands, vax_output_int_subtract,
3843         vax_output_movmemsi): Declare.
3844         (split_quadword_operands, vax_float_literal): Delete declaration.
3845         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
3846         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
3847         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
3848         ASM_OUTPUT_DWARF_PCREL): Define.
3849         (ASM_SPEC): Change definition to allow PIC generation.
3850
3851 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
3852
3853         * doc/sourcebuild.texi: Update front-end requirements.
3854
3855 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3856
3857         PR target/39226
3858         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
3859         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
3860         (booldi3_internal3): Use boolean_or_operator instead of
3861         boolean_operator.
3862
3863 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
3864
3865         PR c/39605
3866         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
3867         declarator whose size is not an integer constant expression but
3868         folds to an integer constant, then treat it as a constant
3869         subsequently.
3870
3871 2009-04-01  Richard Guenther  <rguenther@suse.de>
3872
3873         * fold-const.c (fold_plusminus_mult_expr): Do not fold
3874         i * 4 + 2 to (i * 2 + 1) * 2.
3875
3876 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3877
3878         PR c/37772
3879         * c-parser.c (c_parser_asm_statement): Skip until close paren and
3880         return if c_parser_asm_string_literal returned NULL.
3881
3882 2009-04-01  Nick Clifton  <nickc@redhat.com>
3883
3884         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
3885         already defined.
3886         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
3887         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
3888         other typedefs to avoid conflicts with libgcc2.c.  Define labels
3889         to gain 16-bit bit-manipulation functions from libgcc2.c and then
3890         include it.
3891         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
3892         to gain 16-bit trapping arithmetic functions from libgcc2.c and
3893         then include it.
3894
3895 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
3896
3897         * varasm.c (default_function_rodata_section): Declare DOT as
3898         const char*.
3899
3900 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
3901             Andrey Galkin <agalkin@hypercom.com>
3902
3903         PR/39492
3904         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3905         Make object_name unique for each process.
3906
3907 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3908
3909         PR other/39591
3910         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
3911         addressable variables in the parallel that could go out of scope while
3912         running queued tasks.
3913
3914 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
3915
3916         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
3917         (CASE_VALUES_THRESHOLD): Redefine.
3918         * config/avr/avr.c (avr_override_options): Remove initialization of
3919         avr_case_values_threshold variable.
3920         (avr_case_values_threshold): Remove variable. Add new function.
3921         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
3922         * config/avr/avr.opt (mno-tablejump): Remove option.
3923         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
3924
3925 2009-04-01  DJ Delorie  <dj@redhat.com>
3926
3927         * varasm.c (default_function_rodata_section): Don't assume
3928         anything about where the first '.' in the section name is.
3929
3930 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
3931
3932         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
3933         rs6000_emit_stack_tie.
3934
3935 2009-03-31  Ian Lance Taylor  <iant@google.com>
3936
3937         * tree-eh.c (tree_remove_unreachable_handlers): Compare
3938         gimple_code with GIMPLE_RESX, not RESX.
3939
3940 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
3941
3942         * c-common.c (c_get_ident): New.
3943         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
3944
3945 2009-04-01  Ben Elliston  <bje@au.ibm.com>
3946
3947         * config/rs6000/sysv4.opt (msdata): Improve option description.
3948
3949 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
3950
3951         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
3952         (divdf3_internal_lat): Remove.
3953         (divxf3_internal_lat): Remove.
3954         (divxf3_internal_thr): Remove.
3955         (divxf): Use divxf3_internal.
3956         * config/ia64/div.md (divsf3_internal_lat): New.
3957         (divdf3_internal_lat): New.
3958         (divxf3_internal): New.
3959
3960 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
3961
3962         PR c/448
3963         * Makefile.in (USE_GCC_STDINT): Define.
3964         (stmp-int-hdrs): Install stdint.h if applicable.
3965         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
3966         if known.
3967         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
3968         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
3969         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
3970         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3971         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3972         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3973         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3974         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3975         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3976         (c_common_nodes_and_builtins): Initialize
3977         underlying_wchar_type_node.  Do not initialize
3978         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
3979         nodes for new types.
3980         (c_stddef_cpp_builtins): Define macros for new types.
3981         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
3982         Remove.
3983         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
3984         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
3985         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
3986         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
3987         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
3988         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
3989         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
3990         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
3991         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
3992         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
3993         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
3994         int16_type_node, int32_type_node, int64_type_node,
3995         uint8_type_node, uint16_type_node, c_uint32_type_node,
3996         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
3997         int_least32_type_node, int_least64_type_node,
3998         uint_least8_type_node, uint_least16_type_node,
3999         uint_least32_type_node, uint_least64_type_node,
4000         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
4001         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
4002         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
4003         uintptr_type_node): Define.
4004         * c-cppbuiltin.c (builtin_define_constants,
4005         builtin_define_type_minmax): New.
4006         (builtin_define_stdint_macros): Define more macros.
4007         (c_cpp_builtins): Define more limit macros.
4008         (type_suffix): New.
4009         (builtin_define_type_max): Define in terms of
4010         builtin_define_type_minmax.  Remove is_long parameter.  All
4011         callers changed.
4012         * config.gcc (use_gcc_stdint): Define.
4013         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
4014         Add newlib-stdint.h for generic targets.
4015         * config/glibc-stdint.h, config/newlib-stdint.h,
4016         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
4017         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
4018         * config/score/score.h (UINTPTR_TYPE): Define.
4019         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
4020         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
4021         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4022         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4023         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4024         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4025         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4026         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4027         * config/spu/spu.h (STDINT_LONG32): Define.
4028         * configure.ac (use_gcc_stdint): Substitute.
4029         * configure: Regenerate.
4030         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
4031         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
4032         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
4033         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
4034         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
4035         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
4036         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
4037         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
4038         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
4039         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
4040         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
4041         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
4042         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
4043         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
4044         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
4045         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
4046         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
4047         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
4048         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
4049         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
4050         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
4051         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
4052         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
4053         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4054         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4055         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4056         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4057         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4058         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
4059
4060 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
4061
4062         * loop-iv.c (suitable_set_for_replacement): Renamed from
4063         simplify_using_assignment; changed to return bool and to accept new
4064         args DEST and SRC.  Return true iff we find a source/destination pair
4065         that can be used to make a replacement, and fill SRC and DEST if so.
4066         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
4067         changed.
4068         (simplify_using_initial_values): Deal with altered regs here and track
4069         more precisely the effect they have on the validity of our expression.
4070
4071         * loop-iv.c (simplify_using_condition): A condition of the form
4072         (EQ REG CONST) can be used to simply make a substitution.
4073         (simplify_using_initial_values): Keep track of conditions we have seen
4074         and keep using them to simplify new expressions, while applying the
4075         same substitutions to them as to the expression.
4076
4077         * simplify-rtx.c (simplify_relational_operation_1): Simplify
4078         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
4079         GEU/LTU reversed.
4080
4081         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
4082         changed.  Use this when trying to improve the upper bound.
4083         Generate the comparison by using simplify_gen_relational.
4084
4085         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
4086
4087         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
4088         functions.
4089         (simplify_using_assignment, simplify_using_initial_values): Call
4090         replace_in_expr to make replacements.  Call replace_single_def_regs
4091         once on the initial version of the expression.
4092
4093 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4094
4095         PR target/27237
4096         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
4097
4098 2009-03-31  Richard Guenther  <rguenther@suse.de>
4099
4100         PR middle-end/31029
4101         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
4102         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
4103
4104 2009-03-31  Richard Guenther  <rguenther@suse.de>
4105
4106         * tree.h (div_if_zero_remainder): Declare.
4107         * fold-const.c (div_if_zero_remainder): Export.
4108         * tree-ssa-forwprop.c
4109         (forward_propagate_addr_into_variable_array_index): Handle
4110         constant array index addition outside of the variable index.
4111
4112 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
4113
4114         PR target/39592
4115         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
4116         define_splits, floatunssi<mode>2): Require x87 conversions from
4117         DImode to be permitted.
4118
4119 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
4120
4121         PR preprocessor/15638
4122         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
4123
4124 2009-03-31  Richard Guenther  <rguenther@suse.de>
4125
4126         PR middle-end/23401
4127         PR middle-end/27810
4128         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
4129         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
4130         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
4131         a separate statement.
4132         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
4133         (lookup_tmp_var): Likewise.
4134         (is_gimple_formal_tmp_or_call_rhs): Remove.
4135         (is_gimple_reg_or_call_rhs): Rename to ...
4136         (is_gimple_reg_rhs_or_call): ... this.
4137         (is_gimple_mem_or_call_rhs): Rename to ...
4138         (is_gimple_mem_rhs_or_call): ... this.
4139         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
4140         DECL_GIMPLE_REG_P only if is_formal is true.
4141         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
4142         for non-proper post-modify expression gimplification.
4143         (gimplify_self_mod_expr): For post-modify expressions gimplify
4144         the lvalue to a minimal lvalue.
4145         (rhs_predicate_for): Remove formal temp case.
4146         (gimplify_modify_expr_rhs): Likewise.
4147         (gimplify_addr_expr): Use is_gimple_reg.
4148         (gimplify_expr): Remove formal temp cases.
4149         (gimple_regimplify_operands): Likewise.
4150         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
4151         and FILTER_EXPR like constants.
4152         * gimple.c (walk_gimple_op): Fix val_only initialization, use
4153         is_gimple_reg.
4154         (is_gimple_formal_tmp_rhs): Remove.
4155         (is_gimple_reg_rhs): Remove special casing.
4156         (is_gimple_mem_rhs): Fix.
4157         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
4158         (is_gimple_formal_tmp_var): Remove.
4159         (is_gimple_formal_tmp_reg): Likewise.
4160         (is_gimple_min_lval): Allow invariant component ref parts.
4161         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
4162         is_gimple_formal_tmp_reg): Remove declarations.
4163         * tree-cfg.c (verify_expr): Verify that variables with address
4164         taken do not have DECL_GIMPLE_REG_P set.
4165         * tree-mudflap.c (mf_build_check_statement_for): Use
4166         force_gimple_operand instead of gimplify_expr.
4167
4168 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
4169
4170         * modulo-sched.c (sms_schedule_by_order): Pass the actual
4171         schedulable rows to compute_split_row.
4172
4173 2009-03-31  Ben Elliston  <bje@au.ibm.com>
4174
4175         PR target/31635
4176         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
4177         OPT_mvrsave.
4178
4179 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
4180
4181         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
4182         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
4183         * configure: Regenerate.
4184         * config.in: Regenerate.
4185         * config/rs6000/rs6000.opt (mtls-markers): Add.
4186         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
4187         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
4188         (tls_ld_aix, tls_ld_sysv): Likewise.
4189         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
4190         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
4191
4192 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
4193
4194         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
4195
4196 2009-03-30  Jan Hubicka  <jh@suse.cz>
4197
4198         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
4199         out of RESX.
4200         (tree_remove_unreachable_handlers): Cleanup EH predecestor
4201         detection and label handling.
4202
4203 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4204
4205         * ira-int.h (ira_allocno): Rename left_conflicts_num to
4206         left_conflicts_size.
4207         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
4208         ALLOCNO_LEFT_CONFLICTS_SIZE.
4209
4210         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
4211         remove_allocno_from_bucket_and_push,
4212         allocno_spill_priority_compare, push_allocnos_to_stack,
4213         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4214         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
4215         (setup_allocno_left_conflicts_num): Ditto.  Rename to
4216         setup_allocno_left_conflicts_size.
4217         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
4218         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
4219         setup_allocno_left_conflicts_size instead of
4220         setup_allocno_left_conflicts_num.
4221
4222         * ira-build.c (ira_create_allocno): Use
4223         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
4224         ALLOCNO_LEFT_CONFLICTS_NUM.
4225
4226 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
4227
4228         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
4229         instead of DF_LR_OUT.
4230
4231         * ira-lives.c (process_bb_node_lives): Ditto.
4232
4233         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
4234         instead of DF_LR_{OUT,IN}.
4235
4236         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
4237
4238         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
4239
4240 2009-03-30  Jan Hubicka  <jh@suse.cz>
4241
4242         * except.c (label_to_region_map): Fix thinko.
4243
4244 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
4245
4246         PR middle-end/38237
4247         * tree.h (tree_find_value): New declaration.
4248         * tree.c (tree_find_value): New function.
4249         * varasm.c (assemble_external): Avoid duplicate entries on lists.
4250
4251 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
4252
4253         PR debug/39563
4254         * c-decl.c (struct c_binding): Add locus field.
4255         (bind): Add locus argument, set locus field from it.
4256         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
4257         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
4258         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
4259         implicitly_declare, undeclared_variable, lookup_label,
4260         declare_label, c_make_fname_decl, c_builtin_function,
4261         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
4262         bind callers.
4263
4264 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4265
4266         PR target/38781
4267         * config/i386/i386.c (classify_argument): Check total size of
4268         structure.
4269
4270 2009-03-30  Martin Jambor  <mjambor@suse.cz>
4271
4272         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
4273         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
4274         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
4275         respectively.
4276
4277         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
4278         seen_variable_array_ref while also traversing a union.
4279
4280         * tree-inline.c (optimize_inline_calls): Do not call
4281         cgraph_node_remove_callees.
4282         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
4283         (pass_remove_cgraph_callee_edges): New variable.
4284         * passes.c (init_optimization_passes): Add
4285         pass_remove_cgraph_callee_edges after early inlining and before all
4286         late intraprocedural passes.
4287
4288         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
4289
4290 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4291
4292         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
4293         Fix typos in names.
4294
4295 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4296
4297         * combine.c (simplify_comparison): Use have_insn_for.
4298         * dojump.c (do_jump): Likewise.
4299
4300 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4301
4302         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
4303         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
4304         sparc_compare_op0 like sparc_compare_emitted used to be handled.
4305         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
4306         instead of sparc_compare_emitted.
4307         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
4308         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
4309         instead of sparc_compare_emitted.
4310
4311 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4312
4313         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
4314         enter/exit cfglayout mode.
4315         (pass_partition_block): Require it.
4316         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
4317         (combine_instructions): Track basic blocks instead of labels.
4318         (update_cfg_for_uncondjump): New.
4319         (try_combine): Use it.  Update jumps after rescanning.
4320         (pass_combine): Require PROP_cfglayout.
4321         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
4322
4323 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4324
4325         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
4326         Provide/destroy PROP_cfglayout respectively.
4327         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
4328         * tree-pass.h (PROP_cfglayout): New.
4329
4330 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
4331
4332         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
4333         fold_convert_const_fixed_from_fixed,
4334         fold_convert_const_fixed_from_int,
4335         fold_convert_const_fixed_from_real, fold_negate_const): Do not
4336         set TREE_CONSTANT_OVERFLOW.
4337         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
4338         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
4339
4340 2009-03-30  Ira Rosen  <irar@il.ibm.com>
4341
4342         * tree-vect-loop-manip.c: New file.
4343         * tree-vectorizer.c: Update documentation and included files.
4344         (vect_loop_location): Make extern.
4345         (rename_use_op): Move to tree-vect-loop-manip.c
4346         (rename_variables_in_bb, rename_variables_in_loop,
4347         slpeel_update_phis_for_duplicate_loop,
4348         slpeel_update_phi_nodes_for_guard1,
4349         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
4350         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
4351         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
4352         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
4353         find_loop_location): Likewise.
4354         (new_stmt_vec_info): Move to tree-vect-stmts.c.
4355         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
4356         get_vectype_for_scalar_type, vect_is_simple_use,
4357         supportable_widening_operation, supportable_narrowing_operation):
4358         Likewise.
4359         (bb_in_loop_p): Move to tree-vect-loop.c.
4360         (new_loop_vec_info, destroy_loop_vec_info,
4361         reduction_code_for_scalar_code, report_vect_op,
4362         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
4363         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
4364         (vect_supportable_dr_alignment): Likewise.
4365         * tree-vectorizer.h (tree-data-ref.h): Include.
4366         (vect_loop_location): Declare.
4367         Reorganize function declarations according to the new file structure.
4368         * tree-vect-loop.c: New file.
4369         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
4370         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
4371         * tree-vect-data-refs.c: New file.
4372         * tree-vect-patterns.c (timevar.h): Don't include.
4373         * tree-vect-stmts.c: New file.
4374         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
4375         tree-vect-slp.c, tree-vect-loop.c.
4376         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
4377         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
4378         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
4379         (tree-vect-analyze.o): Remove.
4380         (tree-vect-transform.o): Likewise.
4381         (tree-vect-data-refs.o): Add rule.
4382         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
4383         tree-vect-slp.o): Likewise.
4384         (tree-vect-patterns.o): Remove redundant dependencies.
4385         (tree-vectorizer.o): Likewise.
4386         * tree-vect-slp.c: New file.
4387
4388 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4389
4390         * optc-gen.awk: Warn if an option flag has multiple different
4391         help strings.
4392
4393 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
4394
4395         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
4396         -floop-block): Document dependences on PPL, CLooG and Graphite.
4397
4398 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
4399
4400         PR rtl-optimization/323
4401         * c-common.c (c_fully_fold, convert_and_check,
4402         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
4403         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
4404         * c-common.def (EXCESS_PRECISION_EXPR): New.
4405         * c-cppbuiltin.c (builtin_define_float_constants): Define
4406         constants with enough digits for long double.
4407         * c-lex.c (interpret_float): Interpret constant with excess
4408         precision where appropriate.
4409         * c-opts.c (c_common_post_options): Set
4410         flag_excess_precision_cmdline.  Give an error for
4411         -fexcess-precision=standard for C++ for processors where the
4412         option is significant.
4413         * c-parser.c (c_parser_conditional_expression): Handle excess
4414         precision in condition.
4415         * c-typeck.c (convert_arguments): Handle arguments with excess
4416         precision.
4417         (build_unary_op): Move excess precision outside operation.
4418         (build_conditional_expr): Likewise.
4419         (build_compound_expr): Likewise.
4420         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
4421         (build_modify_expr): Handle excess precision in RHS.
4422         (convert_for_assignment): Handle excess precision in converted
4423         value.
4424         (digest_init, output_init_element, process_init_element): Handle
4425         excess precision in initializer.
4426         (c_finish_return): Handle excess precision in return value.
4427         (build_binary_op): Handle excess precision in operands and add
4428         excess precision as needed for operation.
4429         * common.opt (-fexcess-precision=): New option.
4430         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
4431         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4432         For standard excess precision, output explicit conversion to and
4433         truncation from XFmode.
4434         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
4435         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
4436         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
4437         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
4438         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
4439         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
4440         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
4441         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
4442         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
4443         define_splits, sqrt<mode>2): Disable where appropriate for
4444         standard excess precision.
4445         * convert.c (convert_to_real): Do not shorten arithmetic to type
4446         for which excess precision would be used.
4447         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
4448         * doc/invoke.texi (-fexcess-precision=): Document option.
4449         (-mfpmath=): Correct index entry.
4450         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
4451         flag_excess_precision): New.
4452         * langhooks.c (lhd_post_options): Set
4453         flag_excess_precision_cmdline.
4454         * opts.c (common_handle_option): Handle -fexcess-precision=.
4455         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
4456         init_excess_precision): New.
4457         (lang_dependent_init_target): Call init_excess_precision.
4458         * tree.c (excess_precision_type): New.
4459         * tree.h (excess_precision_type): Declare.
4460
4461 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
4462
4463         PR c/35235
4464         * c-typeck.c (build_component_ref): Do not copy qualifiers from
4465         non-lvalue to component.
4466
4467 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
4468
4469         PR preprocessor/34695
4470         * Makefile.in (c-opts.o): Depend on c-tree.h.
4471         * c-common.c: Move down include of diagnostic.h.
4472         (done_lexing, c_cpp_error): New.
4473         * c-common.h (done_lexing): Declare.
4474         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
4475         (parse_in).
4476         * c-opts.c: Include c-tree.h.
4477         (c_common_init_options): Set preprocessor error callback.
4478         (c_common_handle_option): Do not set preprocessor
4479         inhibit_warnings, warnings_are_errors, warn_system_headers,
4480         pedantic_errors or inhibit_warnings flags.
4481         (c_common_post_options): Do not check cpp_errors (parse_in).
4482         (c_common_finish): Do not output dependencies if there were
4483         errors.  Do not check return value of cpp_finish.
4484         * c-ppoutput.c (pp_file_change): Set input_location.
4485         * c-tree.h (c_cpp_error): Declare.
4486         * diagnostic.c (diagnostic_set_info_translated): Also initialize
4487         override_column.
4488         (diagnostic_build_prefix): Check override_column.
4489         * diagnostic.h (diagnostic_info): Add override_column field.
4490         (diagnostic_override_column): Define.
4491
4492 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
4493
4494         * c-common.c (c_expand_expr, c_staticp): Remove.
4495         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
4496         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
4497         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
4498         * c-gimplify.c (gimplify_compound_literal_expr,
4499         optimize_compound_literals_in_ctor): Remove.
4500         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
4501         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
4502         * c-semantics.c (emit_local_var): Remove.
4503
4504         * langhooks-def.h (lhd_expand_expr): Remove.
4505         * langhooks.c (lhd_expand_expr): Remove.
4506         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
4507
4508         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
4509         handling from c-semantics.c; don't call into langhook.
4510         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
4511         * gimplify.c (gimplify_compound_literal_expr,
4512         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
4513         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
4514         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
4515         as was done in c-gimplify.c.
4516         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
4517         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
4518         Move from c-common.h.
4519         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
4520
4521         * tree.c (staticp): Do not call langhook.
4522         * langhooks.c (lhd_staticp): Delete.
4523         * langhooks-def.h (lhd_staticp): Delete prototype.
4524         (LANG_HOOKS_STATICP): Delete.
4525         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
4526
4527         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
4528         instead of DECL_STMTs.
4529
4530 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
4531
4532         PR c/456
4533         PR c/5675
4534         PR c/19976
4535         PR c/29116
4536         PR c/31871
4537         PR c/35198
4538         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
4539         void_type_node.
4540         (fold_call_expr): Return a NOP_EXPR from folding rather than the
4541         contained expression.
4542         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
4543         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
4544         conditional expressions for C.
4545         (decl_constant_value_for_optimization): Move from
4546         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
4547         whether optimizing and that the expression is a VAR_DECL not of
4548         array type instead of doing such checks in the caller.  Do not
4549         check pedantic.  Call gcc_unreachable for C++.
4550         * c-common.def (C_MAYBE_CONST_EXPR): New.
4551         * c-common.h (c_fully_fold, c_save_expr,
4552         decl_constant_value_for_optimization): New prototypes.
4553         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4554         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4555         EXPR_INT_CONST_OPERANDS): Define.
4556         * c-convert.c (convert): Strip nops from expression.
4557         * c-decl.c (groktypename): Take extra parameters expr and
4558         expr_const_operands.  Update call to grokdeclarator.
4559         (start_decl): Update call to grokdeclarator.  Add statement for
4560         expressions used in type of decl.
4561         (grokparm): Update call to grokdeclarator.
4562         (push_parm_decl): Update call to grokdeclarator.
4563         (build_compound_literal): Add parameter non_const and build a
4564         C_MAYBE_COSNT_EXPR if applicable.
4565         (grokdeclarator): Take extra parameters expr and
4566         expr_const_operands.  Track expressions used in declaration
4567         specifiers and declarators.  Fold array sizes and track whether
4568         they are constant expressions and whether they are integer
4569         constant expressions.
4570         (parser_xref_tag): Set expr and expr_const_operands fields in
4571         return value.
4572         (grokfield): Update call to grokdeclarator.
4573         (start_function): Update call to grokdeclarator.
4574         (build_null_declspecs): Set expr and expr_const_operands fields in
4575         return value.
4576         (declspecs_add_type): Handle expressions in typeof specifiers.
4577         * c-parser.c (c_parser_declspecs): Set expr and
4578         expr_const_operands fields for declaration specifiers.
4579         (c_parser_enum_specifier): Likewise.
4580         (c_parser_struct_or_union_specifier): Likewise.
4581         (c_parser_typeof_specifier): Likewise.  Update call to
4582         groktypename.  Fold expression as needed.  Return expressions with
4583         type instead of adding statements.
4584         (c_parser_attributes): Update calls to c_parser_expr_list.
4585         (c_parser_statement_after_labels): Fold expression before passing
4586         to objc_build_throw_stmt.
4587         (c_parser_condition): Fold expression.
4588         (c_parser_asm_operands): Fold expression.
4589         (c_parser_conditional_expression): Use c_save_expr.  Update call
4590         to build_conditional_expr.
4591         (c_parser_alignof_expression): Update call to groktypename.
4592         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
4593         original_code.  Fold expression argument of va_arg.  Create
4594         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
4595         argument to va_arg.  Update calls to groktypename.  Fold array
4596         index for offsetof.  Verify that first argument to
4597         __builtin_choose_expr has integer type.
4598         (c_parser_postfix_expression_after_paren_type): Update calls to
4599         groktypename and build_compound_literal.  Handle expressions with
4600         side effects in type name.
4601         (c_parser_postfix_expression_after_primary): Update call to
4602         c_parser_expr_list.  Set original_code for calls to
4603         __builtin_constant_p.
4604         (c_parser_expr_list): Take extra parameter fold_p.  Fold
4605         expressions if requested.
4606         (c_parser_objc_type_name): Update call to groktypename.
4607         (c_parser_objc_synchronized_statement): Fold expression.
4608         (c_parser_objc_receiver): Fold expression.
4609         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
4610         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
4611         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
4612         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
4613         (struct c_typespec): Add elements expr and expr_const_operands.
4614         (struct c_declspecs): Add elements expr and expr_const_operands.
4615         (groktypename, build_conditional_expr, build_compound_literal):
4616         Update prototypes.
4617         (in_late_binary_op): Declare.
4618         * c-typeck.c (note_integer_operands): New function.
4619         (in_late_binary_op): New variable.
4620         (decl_constant_value_for_broken_optimization): Move to c-common.c
4621         and rename to decl_constant_value_for_optimization.
4622         (default_function_array_conversion): Do not strip nops.
4623         (default_conversion): Do not call
4624         decl_constant_value_for_broken_optimization.
4625         (build_array_ref): Do not fold result.
4626         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
4627         result when operand is a VLA.
4628         (c_expr_sizeof_type): Update call to groktypename.  Handle
4629         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
4630         result when operand names a VLA type.
4631         (build_function_call): Update call to build_compound_literal.
4632         Only fold result for calls to __builtin_* functions.  Strip
4633         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
4634         the function designator.
4635         (convert_arguments): Fold arguments.  Update call to
4636         convert_for_assignment.
4637         (build_unary_op): Handle increment and decrement of
4638         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
4639         decrement earlier.  Fold operand of increment and decrement.
4640         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
4641         built for integer operand.  Wrap returns that are INTEGER_CSTs
4642         without being integer constant expressions or that have integer
4643         constant operands without being INTEGER_CSTs.
4644         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
4645         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
4646         result is an integer constant expression or can be used in
4647         unevaluated parts of one and avoid folding and wrap as
4648         appropriate.  Fold operands before possibly doing -Wsign-compare
4649         warnings.
4650         (build_compound_expr): Wrap result for C99 if operands can be used
4651         in integer constant expressions.
4652         (build_c_cast): Update call to digest_init.  Do not ignore
4653         overflow from casting floating-point constants to integers.  Wrap
4654         results that could be confused with integer constant expressions,
4655         null pointer constants or floating-point constants.
4656         (c_cast_expr): Update call to groktypename.  Handle expressions
4657         included in type name.
4658         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
4659         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
4660         Update calls to convert_for_assignment.
4661         (convert_for_assignment): Take new parameter
4662         null_pointer_constant.  Do not strip nops or call
4663         decl_constant_value_for_broken_optimization.  Set
4664         in_late_binary_op for conversions to boolean.
4665         (store_init_value): Update call to digest_init.
4666         (digest_init): Take new parameter null_pointer_constant.  Do not
4667         call decl_constant_value_for_broken_optimization.  pedwarn for
4668         initializers not constant expressions.  Update calls to
4669         convert_for_assignment.
4670         (constructor_nonconst): New.
4671         (struct constructor_stack): Add nonconst element.
4672         (really_start_incremental_init, push_init_level, pop_init_level):
4673         Handle constructor_nonconst and nonconst element.
4674         (set_init_index): Call constant_expression_warning for array
4675         designators.
4676         (output_init_element): Fold value.  Set constructor_nonconst as
4677         applicable.  pedwarn for initializers not constant expressions.
4678         Update call to digest_init.  Call constant_expression_warning
4679         where constant initializers are required.
4680         (process_init_element): Use c_save_expr.
4681         (c_finish_goto_ptr): Fold expression.
4682         (c_finish_return): Fold return value.  Update call to
4683         convert_for_assignment.
4684         (c_start_case): Fold switch expression.
4685         (c_process_expr_stmt): Fold expression.
4686         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
4687         ensure statement expression is not evaluated in constant expression.
4688         (build_binary_op): Track whether results are integer constant
4689         expressions or may occur in such, disable folding and wrap results
4690         as applicable.  Fold operands for -Wsign-compare warnings unless
4691         in_late_binary_op.
4692         (c_objc_common_truthvalue_conversion): Handle results folded to
4693         integer constants that are not integer constant expressions.
4694         * doc/extend.texi: Document when typeof operands are evaluated,
4695         that condition of __builtin_choose_expr is an integer constant
4696         expression, and more about use of __builtin_constant_p in
4697         initializers.
4698
4699 2009-03-29  Richard Guenther  <rguenther@suse.de>
4700
4701         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
4702         propagate addresses of array references.
4703
4704 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
4705
4706         * regmove.c (perhaps_ends_bb_p): Remove.
4707         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
4708         from INSN and check that the main loop stays within that basic block.
4709         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
4710         (regmove_forward_pass): Split out from regmove_optimize.  Use
4711         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
4712         (regmove_backward_pass): Split out from regmove_optimize.  Use
4713         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
4714         (regmove_optimize): Simplify.
4715
4716 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
4717
4718         PR target/39545
4719         * config/i386/i386.c (classify_argument): Ignore flexible array
4720         member in struct and warn ABI change.
4721
4722 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
4723
4724         * config/i386/i386-protos.h (ix86_agi_dependent): New.
4725
4726         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
4727         (ix86_adjust_cost): Updated.
4728
4729 2009-03-29  Jan Hubicka  <jh@suse.cz>
4730
4731         PR middle-end/28850
4732         * tree-pass.h (pass_cleanup_eh): New function.
4733         (remove_unreachable_regions): Break code handling RTL
4734         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
4735         that can not be reached by runtime.
4736         (can_be_reached_by_runtime): New function.
4737         (label_to_region_map): New function.
4738         (num_eh_regions): New function.
4739         (rtl_remove_unreachable_regions): New function.
4740         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
4741         (remove_eh_region): New function.
4742         * except.h: Include sbitmap and vecprim.
4743         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
4744         num_eh_regions): Declare.
4745         * passes.c (init_optimization_passes): Schedule cleanup_eh.
4746         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
4747         * tree-eh.c (tree_remove_unreachable_handlers): New function.
4748         (tree_empty_eh_handler_p): New function.
4749         (cleanup_empty_eh): New function.
4750         (cleanup_eh): New function.
4751         (pass_cleanup_eh): New function.
4752
4753 2009-03-29  Jan Hubicka  <jh@suse.cz>
4754
4755         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
4756         for removed regions.
4757
4758 2009-03-29  Jan Hubicka  <jh@suse.cz>
4759
4760         * except.c (dump_eh_tree): Dump all datastructures.
4761
4762 2009-03-29  Jan Hubicka  <jh@suse.cz>
4763
4764         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
4765         (duplicate_eh_regions_1): Likewise.
4766         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
4767         vector; call EH verification.
4768         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
4769         Be ready for region being removed.
4770
4771 2009-03-29  Jan Hubicka  <jh@suse.cz>
4772
4773         * bitmap.c (bitmap_last_set_bit): New function.
4774         * bitmap.h (bitmap_last_set_bit): Declare.
4775
4776 2009-03-29  David Ayers  <ayers@fsfe.org>
4777
4778         PR objc/27377
4779         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
4780         by calling objc_compare_types and surpress warnings about
4781         incompatible C pointers that are compatible ObjC pointers.
4782
4783 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
4784
4785         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
4786         call initialize_inline_failed.
4787         (initialize_inline_failed): Move it from here ...
4788         * cgraph.c (initialize_inline_failed): ... to here.
4789         (cgraph_create_edge): Call initialize_inline_failed rather than
4790         setting inline_failed directly.
4791
4792 2009-03-29  Ben Elliston  <bje@au.ibm.com>
4793
4794         PR target/32542
4795         * sysv4.opt (msdata): Improve comment.
4796         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
4797         * sysv4.h (SVR4_ASM_SPEC): Likewise.
4798
4799 2009-03-29  Ben Elliston  <bje@au.ibm.com>
4800
4801         PR target/30451
4802         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
4803         load and store attributes.
4804
4805 2009-03-29  Ben Elliston  <bje@au.ibm.com>
4806
4807         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
4808         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
4809         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
4810         * doc/extend.texi (X86 Built-in Functions): Add index entries for
4811         __builtin_infq and __builtin_huge_valq.
4812
4813 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
4814
4815         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
4816         atmega8m1 devices.
4817         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4818         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
4819
4820 2009-03-28  Xinliang David Li  <davidxl@google.com>
4821
4822         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
4823         (do_dbg_cnt): New function.
4824
4825 2009-03-28  Jan Hubicka  <jh@suse.cz>
4826
4827         Merge from pretty-ipa:
4828
4829         2009-03-27  Jan Hubicka  <jh@suse.cz>
4830
4831         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4832         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
4833         * passes.c (function_called_by_processed_nodes_p): New.
4834         * ipa-pure-const.c (check_call): Fix handling of operands.
4835         (analyze_function): Dump debug output for skipped bodies.
4836         (local_pure_const): Use function_called_by_processed_nodes_p.
4837         * dwarf2out.c (reference_to_unused): Use output.
4838         * passes.c (do_per_function_toporder): Likewise.
4839
4840         2008-11-12  Jan Hubicka  <jh@suse.cz>
4841
4842         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
4843         * ipa-pure-const.c (funct_state_d): Add can throw field; make
4844         state_set_in_source enum
4845         (check_decl): Ignore memory tags; do not set fake looping flags;
4846         dump diagnostics.
4847         (check_operand, check_tree, check_rhs_var, check_lhs_var,
4848         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
4849         (check_call, analyze_function): Rewrite.
4850         (check_stmt): New.
4851         (add_new_function): Update call of analyze_function.
4852         (generate_summary): Add call of analyze_function.
4853         (propagate): Propagate can_throw; handle state_set_in_source correctly.
4854         (local_pure_const): New function.
4855         (pass_local_pure_const): New pass.
4856         * ipa-inline.c (inline_transform): Set after_inlining.
4857         * tree-eh.c (stmt_can_throw_external): New.
4858         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
4859         work with aliasing built.
4860         * tree-flow.h (stmt_can_throw_external): New.
4861         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
4862         and local pure/const pass in early and late optimization queue.
4863
4864 2009-03-28  Martin Jambor  <mjambor@suse.cz>
4865
4866         * fold-const.c (get_pointer_modulus_and_residue): New parameter
4867         allow_func_align.
4868         (fold_binary): Allow function decl aligment consideration is the
4869         second argument is integer constant one.
4870         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
4871         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
4872         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
4873
4874 2009-03-28  Jan Hubicka  <jh@suse.cz>
4875
4876         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
4877         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
4878         * function.h (rtl_data): Add nothrow flag.
4879         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
4880         set DECL_NOTHROW for AVAILABLE functions.
4881
4882 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
4883
4884         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
4885         following vector keyword has expansion starting with pixel or bool
4886         keyword, expand vector to __vector and pixel or bool to __pixel or
4887         __bool.
4888
4889         PR c++/39554
4890         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
4891         warn_if_disallowed_function_p): Removed.
4892         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
4893         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
4894         warning_if_disallowed_function_p.
4895         * flags.h (warn_if_disallowed_function_p,
4896         warn_disallowed_functions): Removed.
4897         * common.opt (Wdisallowed-function-list=): Removed.
4898         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
4899
4900 2009-03-28  Richard Guenther  <rguenther@suse.de>
4901
4902         PR tree-optimization/38723
4903         * tree-ssa-pre.c (compute_avail): Add all default definitions to
4904         the entry block.
4905
4906 2009-03-28  Jan Hubicka  <jh@suse.cz>
4907
4908         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
4909         test introduced by my previous patch.
4910
4911 2009-03-28  Richard Guenther  <rguenther@suse.de>
4912
4913         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
4914         the PHIs value undefined.
4915
4916 2009-03-28  Jan Hubicka  <jh@suse.cz>
4917
4918         * tree-pass.h (pass_fixup_cfg): New pass.
4919         * ipa-inline.c (inline_transform): Set
4920         always_inline_functions_inlined/after_inlining.
4921         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
4922         (pass_fixup_cfg): New pass.
4923         * passes.c (init_optimization_passes): Add fixup_cfg.
4924
4925 2009-03-28  Richard Guenther  <rguenther@suse.de>
4926
4927         PR tree-optimization/38458
4928         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
4929         argument use the arguments copy-of value.
4930
4931 2009-03-28  Richard Guenther  <rguenther@suse.de>
4932
4933         PR tree-optimization/38180
4934         * tree-ssa-ccp.c (get_default_value): Simplify.
4935         (likely_value): Likewise.
4936         (surely_varying_stmt_p): Properly handle VOP case.
4937         (ccp_initialize): Likewise.
4938         (ccp_fold): Handle propagating through *&.
4939         (fold_const_aggregate_ref): Also handle decls.
4940
4941 2009-03-28  Jan Hubicka  <jh@suse.cz>
4942
4943         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
4944         * cgraph.h (cgraph_node): Likewise.
4945         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
4946         (cgraph_reset_node): Use process flag.
4947         (cgraph_mark_functions_to_output): Likewise.
4948         (cgraph_expand_function): Likewise.
4949         (cgraph_expand_all_functions): Likewise.
4950         (cgraph_output_in_order): Likewise.
4951         * dwarf2out.c (reference_to_unused): Likewise.
4952         * passes.c do_per_function_toporder): Likewise.
4953
4954 2009-03-28  Jan Hubicka  <jh@suse.cz>
4955
4956         Bring from lto-branch:
4957
4958         2008-09-03  Doug Kwan  <dougkwan@google.com>
4959
4960         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
4961         enums instead of reason strings.
4962         * cgraph.c (cgraph_create_edge): Same.
4963         (cgraph_inline_failed_string): New function.
4964         * cgraph.h (cgraph_inline_failed_t): New enum type.
4965         (cgraph_inline_failed_string): New prototype.
4966         (struct cgraph_edge): Change type of INLINED_FAILED from constant
4967         char pointer to cgraph_inline_failed_t.
4968         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
4969         (cgraph_default_inline_p): Ditto.
4970         * gcc/cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
4971         to cgraph_inline_failed_t pointer.
4972         * cif-code.def: New file.
4973         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
4974         reason string.
4975         (cgraph_check_inline_limits): Change type of REASON to pointer to
4976         cgraph_inline_failed_t.  Replace reason strings with enums.
4977         (cgraph_default_inline_p): Ditto.
4978         (cgraph_recursive_inlining_p): Ditto.
4979         (update_caller_keys): Change type of FAILED_REASON to
4980         cgraph_inline_failed_t.
4981         (cgraph_set_inline_failed): Change type of REASON to pointer to
4982         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
4983         convert enums to strings for text output.
4984         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
4985         to be of type cgraph_inline_failed_t.  Replace reason strings with
4986         enums.  Call cgraph_inline_failed_string to covert enums
4987         to strings for text output.
4988         (cgraph_decide_inlining): Replace reason strings with enums.
4989         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
4990         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
4991         for text output.
4992         * tree-inline.c (expand_call_inline): Change type of REASON
4993         to cgraph_inline_failed_t.  Replace reason strings with enums.
4994         Call cgraph_inline_failed_string for text output.
4995         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
4996         (cgraph.o): Ditto.
4997
4998 2009-03-28  Jan Hubicka  <jh@suse.cz>
4999
5000         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
5001         cgraph_clone_node): Remove master clone handling.
5002         (cgraph_is_master_clone, cgraph_master_clone): Remove.
5003         * cgraph.h (master_clone): Remove.
5004         (cgraph_is_master_clone, cgraph_master_clone): Remove.
5005         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
5006         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
5007
5008 2009-03-28  Jan Hubicka  <jh@suse.cz>
5009
5010         * cgraph.c (cgraph_function_body_availability): Functions declared
5011         inline are always safe to assume that it is not going to be replaced.
5012
5013 2009-03-28  Richard Guenther  <rguenther@suse.de>
5014
5015         PR tree-optimization/38513
5016         * tree-ssa-pre.c (eliminate): Remove redundant stores.
5017         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
5018         EXC_PTR_EXPR and FILTER_EXPR.
5019         (get_ref_from_reference_ops): Likewise.
5020
5021 2009-03-28  Richard Guenther  <rguenther@suse.de>
5022
5023         PR tree-optimization/38968
5024         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5025         Use FLOOR_MOD_EXPR to compute misalignment.
5026
5027 2009-03-28  Richard Guenther  <rguenther@suse.de>
5028
5029         PR tree-optimization/37795
5030         * tree.h (combine_comparisons): Declare.
5031         * fold-const.c (combine_comparisons): Export.
5032         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
5033         comparisons.
5034         (ifcombine_iforif): Use combine_comparisons.
5035
5036 2009-03-28  Jan Hubicka  <jh@suse.cz>
5037
5038         * tree-eh.c (inlinable_call_p): New function.
5039         (make_eh_edges): Use it.
5040         (verify_eh_edges): Use it.
5041         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
5042         * except.c (reachable_next_level): Add inlinable_function argument
5043         (sjlj_find_directly_reachable_regions): Update.
5044         (add_reachable_handler): Do not set saw_any_handlers.
5045         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
5046         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
5047         Add new inlinable call parameter.
5048         (can_throw_internal, can_throw_external): Update.
5049         * except.h (can_throw_internal_1, can_throw_external_1,
5050         foreach_reachable_handler): Update declaration.
5051
5052 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
5053
5054         * config/arm/t-arm-coff, config/h8300/coff.h,
5055         config/i386/i386-aout.h, config/i386/i386-coff.h,
5056         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
5057         config/pdp11/2bsd.h, config/rs6000/aix41.h,
5058         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
5059         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
5060         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
5061         sys-types.h: Remove.
5062         * Makefile.in: Remove protoize and fixproto support and references
5063         in comments.
5064         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
5065         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
5066         Remove.
5067         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
5068         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
5069         unprotoize$(exeext).
5070         (rest.encap): Don't depend on $(STMP_FIXPROTO)
5071         (.PHONY): Don't depend on proto.
5072         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
5073         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
5074         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
5075         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
5076         build/gen-protos.o, build/scan.o, xsys-protos.h,
5077         build/fix-header$(build_exeext), build/fix-header.o,
5078         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
5079         stmp-install-fixproto): Remove.
5080         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
5081         SYSCALLS.c or fixproto files.
5082         (install-common): Don't install protoize.
5083         (install-headers-tar, install-headers-cpio, install-headers-cp):
5084         Don't depend on $(STMP_FIXPROTO).
5085         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
5086         install fixproto files or write out fixproto settings.
5087         (uninstall): Don't uninstall protoize.
5088         * config.gcc (use_fixproto): Remove.
5089         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
5090         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
5091         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
5092         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
5093         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
5094         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
5095         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
5096         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
5097         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
5098         * config/t-vxworks (STMP_FIXPROTO): Remove.
5099         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
5100         STMP_FIXPROTO): Remove.
5101         * config.in, configure: Regenerate.
5102         * crtstuff.c (gid_t, uid_t): Don't undefine.
5103         * doc/install.texi: Change m68k-coff to m68k-elf in example.
5104         (arm-*-coff, arm-*-aout: Remove target entries.
5105         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
5106         Remove mention of AIX 4.1.
5107         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
5108         * doc/invoke.texi (Running Protoize): Remove.
5109         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
5110         (Protoize Caveats): Remove.
5111         * tsystem.h: Update comments on headers assumed to exist.
5112
5113 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
5114
5115         * genautomata.c: Add a new year to the copyright.  Add a new
5116         reference.
5117         (struct insn_reserv_decl): Add comments for member bypass_list.
5118         (find_bypass): Remove.
5119         (insert_bypass): New.
5120         (process_decls): Use insert_bypass.
5121         (output_internal_insn_latency_func): Output all bypasses with the
5122         same input insn in one switch case.
5123
5124         * rtl.def (define_bypass): Describe bypass choice.
5125         * doc/md.texi (define_bypass): Ditto.
5126
5127 2009-03-27  Richard Guenther  <rguenther@suse.de>
5128
5129         * gimplify.c (mark_addressable): Export.
5130         * tree-flow.h (mark_addressable): Declare.
5131         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
5132         * tree-ssa.c (verify_phi_args): Verify that address taken
5133         variables have TREE_ADDRESSABLE set.
5134
5135 2009-03-27  Richard Guenther  <rguenther@suse.de>
5136
5137         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
5138         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
5139         Do not mark decls TREE_ADDRESSABLE.
5140         (build_fold_addr_expr): Adjust.
5141         (fold_addr_expr): Remove.
5142         (fold_unary): Use build_fold_addr_expr.
5143         (fold_comparison): Likewise.
5144         (split_address_to_core_and_offset): Likewise.
5145         * coverage.c (tree_coverage_counter_addr): Mark the array decl
5146         TREE_ADDRESSABLE.
5147         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
5148         (gimplify_modify_expr_to_memcpy): Mark source and destination
5149         addressable.
5150         * omp-low.c (create_omp_child_function): Mark the object decl
5151         TREE_ADDRESSABLE.
5152         (lower_rec_input_clauses): Mark the var we take the address of
5153         TREE_ADDRESSABLE.
5154         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
5155
5156 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5157
5158         PR middle-end/39315
5159         * cfgexpand.c (expand_one_stack_var_at): Change alignment
5160         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
5161
5162 2009-03-27  Richard Guenther  <rguenther@suse.de>
5163
5164         PR tree-optimization/39120
5165         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
5166         constraints.
5167         (handle_lhs_call): Process return constraints.  Add escape
5168         constraints if necessary.
5169         (handle_const_call): Fill out return constraints.  Make nested
5170         case more precise.  Avoid consttmp if possible.
5171         (handle_pure_call): Fill out return constraints.  Avoid
5172         callused if possible.
5173         (find_func_aliases): Simplify call handling.
5174
5175 2009-03-27  Richard Guenther  <rguenther@suse.de>
5176
5177         PR tree-optimization/39120
5178         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
5179         as a representative.
5180         (solve_graph): Do propagate CALLUSED.
5181         (handle_pure_call): Use a scalar constraint from CALLUSED for
5182         the return value.
5183         (find_what_p_points_to): CALLUSED shall not appear in poins-to
5184         solutions.
5185
5186 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5187
5188         PR c/39323
5189         * c-common.c (handle_aligned_attribute): Properly check alignment
5190         overflow.  Use (1U << i) instead of (1 << i).
5191
5192         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
5193
5194         * expr.h (get_mem_align_offset): Updated.
5195
5196         * tree.h (tree_decl_common): Change align to "unsigned int" and
5197         move it before pointer_alias_set.
5198
5199 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5200             Jakub Jelinek  <jakub@redhat.com>
5201
5202         PR target/38034
5203         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
5204         gr_register_operand with gr_reg_or_0_operand.
5205         (cmpxchg_rel_di): Likewise.
5206         (sync_lock_test_and_set<mode>): Likewise.
5207
5208 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
5211         (true_regnum): Likewise.
5212
5213         * rtlanal.c (subreg_info): Moved to ...
5214         * rtl.h (subreg_info): Here.  New.
5215         (subreg_get_info): New.
5216
5217         * rtlanal.c (subreg_get_info): Make it extern.
5218
5219 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5220
5221         PR target/39472
5222         * config/i386/i386.c (ix86_abi): New.
5223         (override_options): Handle -mabi=.
5224         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
5225         (ix86_call_abi_override): Likewise.
5226         (init_cumulative_args): Likewise.
5227         (function_arg_advance): Likewise.
5228         (function_arg_64): Likewise.
5229         (function_arg): Likewise.
5230         (ix86_pass_by_reference): Likewise.
5231         (ix86_function_value_regno_p): Likewise.
5232         (ix86_build_builtin_va_list_abi): Likewise.
5233         (setup_incoming_varargs_64): Likewise.
5234         (is_va_list_char_pointer): Likewise.
5235         (ix86_init_machine_status): Likewise.
5236         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
5237         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
5238         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
5239         (ix86_function_abi): Make it static and return enum calling_abi.
5240         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
5241         with ix86_abi.
5242         (ix86_fn_abi_va_list): Updated.
5243
5244         * config/i386/i386.h (ix86_abi): New.
5245         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
5246         (CONDITIONAL_REGISTER_USAGE): Likewise.
5247         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
5248         (machine_function): Likewise.
5249
5250         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
5251         with ix86_abi.
5252         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
5253         (STACK_BOUNDARY): Likewise.
5254         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
5255
5256         * config/i386/i386.opt (mabi=): New.
5257
5258         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
5259         return enum calling_abi.
5260         (ix86_function_type_abi): Likewise.
5261         (ix86_function_abi): Removed.
5262
5263         * doc/invoke.texi: Document -mabi= option for x86.
5264
5265 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5266
5267         * builtins.c (real_dconstp): Delete.
5268         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
5269
5270 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
5271             Jakub Jelinek  <jakub@redhat.com>
5272
5273         PR debug/37959
5274         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
5275         (gen_subprogram_die): When a function is explicit, generate the
5276         DW_AT_explicit attribute.
5277         * langhooks.h (struct lang_hooks_for_decls): Add
5278         function_decl_explicit_p langhook.
5279         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
5280         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
5281
5282 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
5283
5284         * builtins.c (fold_builtin_memory_op): Optimize memmove
5285         into memcpy if we can prove source and destination don't overlap.
5286
5287         * tree-inline.c: Include gt-tree-inline.h.
5288         (clone_fn_id_num): New variable.
5289         (clone_function_name): New function.
5290         (tree_function_versioning): Use it.
5291         * Makefile.in (GTFILES): Add tree-inline.c.
5292
5293 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
5294
5295         * BASE-VER: Change to 4.5.0.
5296
5297 2009-03-27  Xinliang David Li  <davidxl@google.com>
5298
5299         PR tree-optimization/39557
5300         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
5301
5302 2009-03-27  Xinliang David Li  <davidxl@google.com>
5303
5304         PR tree-optimization/39548
5305         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
5306         candidate check.
5307
5308 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5309
5310         * c-common.c (pointer_int_sum): Use %wd on return from
5311         tree_low_cst.
5312
5313 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5314
5315         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
5316         on return from tree_low_cst.
5317
5318 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5319
5320         PR c++/36799
5321         * ginclude/stdarg.h (va_copy): Define also for
5322         __GXX_EXPERIMENTAL_CXX0X__.
5323
5324 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5325
5326         PR c++/35652
5327         * builtins.h (c_strlen): Do not warn here.
5328         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
5329         * c-common.c (pointer_int_sum): Take an explicit location.
5330         Warn about offsets out of bounds.
5331         * c-common.h (pointer_int_sum): Adjust declaration.
5332
5333 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5334
5335         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
5336         markup glitch.
5337
5338 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
5339
5340         PR c++/39554
5341         * opts.c (warn_if_disallowed_function_p): Don't assume
5342         get_callee_fndecl must return non-NULL.
5343
5344 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
5345
5346         PR rtl-optimization/39522
5347         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
5348         when reg_reloaded_valid is set.
5349
5350 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5351
5352         * config/spu/divv2df3.c: New file.
5353         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
5354         (DPBIT_FUNCS): Filter out _div_df.
5355
5356 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
5357
5358         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
5359         a jump insn, count that jump in the distance to the loop start.
5360
5361 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5362
5363         PR target/39523
5364         * config/sh/sh.c (calc_live_regs): Fix condition for global
5365         registers except PIC_OFFSET_TABLE_REGNUM.
5366
5367 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
5368
5369         PR/39518
5370         * doc/invoke.texi (-mconsole): New.
5371         (-mcygwin): New.
5372         (-mno-cygwin): New.
5373         (-mdll): New.
5374         (-mnop-fun-dllimport): New.
5375         (-mthread): New.
5376         (-mwin32): New.
5377         (-mwindows): New.
5378         (sub section "i386 and x86-64 Windows Options"): New.
5379
5380 2009-03-25  Ralf Corsépius <ralf.corsepius@rtems.org>
5381
5382         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
5383         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
5384
5385 2009-03-25  Richard Guenther  <rguenther@suse.de>
5386
5387         PR middle-end/39497
5388         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
5389         of -Wno-error.
5390
5391 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
5392
5393         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
5394         neither of haifa/selective schedulers are working.
5395
5396 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5397
5398         * doc/invoke.texi (Debugging Options): Fix description of
5399         -fno-merge-debug-strings.
5400
5401 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
5402
5403         * config/cris/libgcc.ver: New version-script.
5404         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
5405
5406         * configure.ac <GAS features, nop mnemonic>: Add pattern
5407         crisv32-*-* for "nop".
5408         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
5409         * configure: Regenerate.
5410
5411 2009-03-24  Ira Rosen  <irar@il.ibm.com>
5412
5413         PR tree-optimization/39529
5414         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
5415         mark_sym_for_renaming for the tag copied to the new vector
5416         pointer.
5417
5418 2009-03-24  Arthur Loiret  <aloiret@debian.org>
5419
5420         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
5421         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
5422         EXTRA_SPEC_FUNCTIONS.
5423         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
5424         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
5425         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
5426         -march and -mtune options.
5427
5428 2009-03-24  Ralf Corsépius <ralf.corsepius@rtems.org>
5429
5430         * config/m68k/t-rtems: Add m5329 multilib.
5431
5432 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
5433             Jakub Jelinek  <jakub@redhat.com>
5434
5435         PR debug/39524
5436         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
5437         nodes.
5438
5439 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
5440
5441         PR c/39495
5442         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
5443         instead of c_parser_expression_conv, if original_code isn't one of the
5444         4 allowed comparison codes, fail.
5445
5446 2009-03-23  Richard Guenther  <rguenther@suse.de>
5447
5448         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
5449         * tree.h (struct tree_type): Likewise.
5450         * reload.h (struct insn_chain): Likewise.
5451         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
5452         * function.h (struct function): Likewise.
5453         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
5454
5455 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
5456
5457         PR tree-optimization/39516
5458         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
5459
5460 2009-03-23 Bingfeng Mei  <bmei@broadcom.com>
5461
5462         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
5463         should be set true if BITS_PER_WORD of target is bigger than 32
5464
5465 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
5466
5467         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
5468         Translate -B-options to -rpath-link.  Correct existing
5469         rpath-link and conditionalize on !nostdlib.
5470
5471 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5472
5473         * doc/extend.texi (Function Attributes, Variable Attributes):
5474         Fix typos.
5475         * doc/invoke.texi (Debugging Options, Optimize Options)
5476         (i386 and x86-64 Options, MCore Options): Likewise.
5477
5478 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
5479
5480         PR debug/37890
5481         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
5482         it for block local namespace aliases.
5483         (gen_decl_die): Pass context_die to gen_namespace_die.
5484
5485 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
5486
5487         PR c/39495
5488         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
5489         minimum or maximum value.
5490
5491 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
5492
5493         * reginfo.c (globalize_reg): Recompute derived reg sets.
5494
5495 2009-03-19  Ozkan Sezer <sezeroz@gmail.com>
5496
5497         PR target/39063
5498         * libgcc2.c (mprotect): Do not use signed arguments for
5499         VirtualProtect, use DWORD arguments.  Also fix the 'may
5500         be used uninitialized' warning for the np variable.
5501
5502 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
5503
5504         PR target/39496
5505         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
5506         functions using regparm calling conventions when not optimizing.
5507         (ix86_function_sseregparm): Similarly for sseregparm calling
5508         conventions.
5509
5510 2009-03-19  Li Feng  <nemokingdom@gmail.com>
5511
5512         PR middle-end/39500
5513         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
5514         dependence if the first conflict is after niter iterations.
5515
5516 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
5517
5518         PR middle-end/38609
5519         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
5520         functions with dynamic stack-pointer adjustments.
5521
5522 2009-03-19  Ben Elliston  <bje@au.ibm.com>
5523
5524         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
5525         option; change to -msdata=data.
5526
5527 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5528
5529         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
5530         and -fopenmp.
5531
5532 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
5533
5534         PR target/35180
5535         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
5536
5537 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
5538
5539         * doc/invoke.texi (Code Gen Options): Expand discussion of
5540         -fno-common.
5541
5542 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
5543
5544         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
5545         * matrix-reorg.c (struct matrix_info): Likewise.
5546         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
5547         * rtl.h (struct mem_attrs): Likewise.
5548         * df.h (struct df): Likewise.
5549         * tree-data-ref.h (struct data_dependence_relation): Likewise.
5550         * ira-int.h (struct ira_allocno): Likewise.
5551         * df-scan.c (struct df_collection_rec): Likewise.
5552         * ira.c (struct equivalence): Likewise.
5553         * function.c (struct temp_slot): Likewise.
5554         * cfgloop.h (struct loop): Likewise.
5555
5556         PR debug/39485
5557         * function.c (use_register_for_decl): When not optimizing, disregard
5558         register keyword for variables with types containing methods.
5559
5560 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
5561
5562         PR middle-end/39447
5563         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
5564         (is_simple_operand): Call contains_component_ref_p before calling data
5565         reference analysis that would fail on COMPONENT_REFs.
5566
5567         * tree-vrp.c (search_for_addr_array): Fix formatting.
5568
5569 2009-03-18  Richard Guenther  <rguenther@suse.de>
5570
5571         * tree-vect-transform.c (vect_loop_versioning): Fold the
5572         generated comparisons.
5573         * tree-vectorizer.c (set_prologue_iterations): Likewise.
5574         (slpeel_tree_peel_loop_to_edge): Likewise.
5575
5576 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5577
5578         PR middle-end/37805
5579         * opts.c (print_specific_help): In addition to `undocumented',
5580         accept `separate' and `joined' flags if passed alone.  Describe
5581         output by the first matched one of those.
5582         (common_handle_option): Skip over empty strings.
5583         * gcc.c (display_help): Fix help string for `--help='.
5584         * doc/invoke.texi (Option Summary, Overall Options): With
5585         `--help=', classes and qualifiers can both be repeated, but
5586         only the latter can be negated.  One should not pass only
5587         negated qualifiers.  Fix markup and examples.
5588
5589         Revert
5590         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
5591         PR middle-end/37805
5592         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
5593         and -fhelp=separate.
5594
5595 2009-03-17  Jing Yu  <jingyu@google.com>
5596
5597         PR middle-end/39378
5598         * function.h (struct rtl_data): Move is_thunk from here...
5599         (struct function): ...to here.
5600         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
5601         * varasm.c (assemble_start_function): Change is_thunk from crtl to
5602         cfun.
5603         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
5604         cfun.
5605         (alpha_does_function_need_gp, alpha_start_function): Likewise.
5606         (alpha_output_function_end_prologue): Likewise.
5607         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
5608         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
5609         (rs6000_output_function_epilogue): Likewise.
5610         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
5611
5612 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
5613
5614         PR target/39482
5615         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
5616         from different units in a single alternative.
5617         (*truncdfsf_i387): Ditto.
5618         (*truncxfsf2_mixed): Ditto.
5619         (*truncxfdf2_mixed): Ditto.
5620
5621 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
5622
5623         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
5624         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
5625
5626         PR debug/39474
5627         * tree-ssa-live.c (remove_unused_locals): Don't remove local
5628         unused non-artificial variables when not optimizing.
5629
5630         PR debug/39471
5631         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
5632         DW_TAG_imported_module even if decl is IMPORTED_DECL with
5633         NAMESPACE_DECL in its DECL_INITIAL.
5634
5635         PR middle-end/39443
5636         * optabs.c (set_user_assembler_libfunc): New function.
5637         * expr.h (set_user_assembler_libfunc): New prototype.
5638         * c-common.c: Include libfuncs.h.
5639         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
5640         for memcmp, memset, memcpy, memmove and abort.
5641         * Makefile.in (c-common.o): Depend on libfuncs.h.
5642
5643         PR debug/39412
5644         * dwarf2out.c (gen_inlined_enumeration_type_die,
5645         gen_inlined_structure_type_die, gen_inlined_union_type_die,
5646         gen_tagged_type_instantiation_die): Removed.
5647         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
5648         do nothing.
5649
5650 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
5651
5652         PR testsuite/38526
5653         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
5654         its use.
5655         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
5656         (check-parallel-%): Ditto.
5657         (check-consistency): Ditto.
5658
5659 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
5660
5661         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
5662         local variable rhs by NULL_TREE.
5663
5664 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5665
5666         PR target/39477
5667         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
5668
5669 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5670
5671         PR target/39476
5672         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
5673
5674 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5675
5676         PR target/39473
5677         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
5678         for ms->sysv ABI calls only in 64bit mode.
5679
5680         * config/i386/i386.md (untyped_call): Support 32bit.
5681
5682 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5683
5684         * doc/extend.texi: Replace x86_65 with x86_64.
5685
5686 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
5687
5688         PR tree-optimization/39455
5689         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
5690         mismatches for POINTER_TYPE_P (type).
5691         (number_of_iterations_le): Likewise.
5692
5693 2009-03-16  Hariharan Sandanagobalane <hariharan@picochip.com>
5694
5695         * config/picochip/picochip.c: Removed profiling support.
5696         * config/picochip/picochip.md: Removed profiling instruction.
5697         * config/picochip/picochip.h: Removed profiling builtin.
5698
5699 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
5700
5701         * doc/install.texi (--with-host-libstdcxx): Document.
5702
5703 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
5704
5705         PR target/34299
5706         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
5707         generate a warning if the function name does not begin with
5708         "__vector" and the function has either the 'signal' or 'interrupt'
5709         attribute, from here to ...
5710         (avr_declare_function_name): ...here. New function.
5711         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
5712         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
5713
5714 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
5715
5716         PR bootstrap/39454
5717         * cse.c (fold_rtx): Don't modify original const_arg1 when
5718         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
5719         separate variable instead.
5720         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
5721         from out of range shift counts.
5722         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
5723
5724 2009-03-13  Catherine Moore  <clm@codesourcery.com>
5725
5726         * gcc/config/i386/x-mingw32 (host-mingw32.o): Replace
5727         diagnostic.h with $(DIAGNOSTIC_H).
5728
5729 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
5730
5731         PR target/39431
5732         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
5733         predicate.
5734         * config/i386/sync.md (sync_compare_and_swap<mode>,
5735         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
5736         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
5737         into a register.
5738         (sync_double_compare_and_swapdi_pic,
5739         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
5740         cmpxchg8b_pic_memory_operand instead of just memory_operand.
5741
5742 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         PR target/39445
5745         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
5746
5747 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
5748
5749         PR target/39327
5750         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
5751         (avx_addsubv4df3): Likewise.
5752         (*avx_addsubv4sf3): Likewise.
5753         (sse3_addsubv4sf3): Likewise.
5754
5755 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
5756
5757         PR target/38824
5758         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
5759
5760 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
5761
5762         PR debug/39432
5763         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
5764         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
5765         registers for allocnos created from user-defined variables.
5766
5767 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5768
5769         PR target/39181
5770         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
5771         of non-integer mode as well.
5772
5773 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
5774
5775         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
5776         for functions for which the parameter types are unknown.
5777
5778 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
5779
5780         PR target/39137
5781         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
5782         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
5783         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
5784         * config/i386/i386.c (ix86_local_alignment): For
5785         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
5786         long long variables on the stack to avoid dynamic realignment.
5787         Allow the first argument to be a decl rather than type.
5788         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
5789
5790 2009-03-11  Nick Clifton  <nickc@redhat.com>
5791
5792         PR target/5362
5793         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
5794         options.
5795         Add description to mno-lsim option.
5796         * config/mcore/mcore.h: Remove comment about deprecated m4align
5797         option.
5798         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
5799         * doc/invoke.texi: Add description of mno-lsim and
5800         mstack-increment options.
5801
5802         * config/fr30/fr30.opt: Document the -mno-lsim option.
5803         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
5804         and -mno-lsim options.
5805
5806 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5807
5808         * fold-const.c (fold_comparison): Only call fold_inf_compare
5809         if the mode supports infinities.
5810
5811 2009-03-11  Jason Merrill  <jason@redhat.com>
5812
5813         PR debug/39086
5814         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
5815         end already did.  Notice GIMPLE_CALL modifications of the result.
5816         Don't copy debug information from an ignored decl or a decl from
5817         another function.
5818
5819 2009-03-10  Richard Guenther  <rguenther@suse.de>
5820             Nathan Froyd  <froydnj@codesourcery.com>
5821
5822         PR middle-end/37850
5823         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
5824         (__divMODE3): Likewise.
5825
5826 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
5827
5828         PR tree-optimization/39394
5829         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
5830         DECL_SIZE_UNIT of variable length FIELD_DECLs.
5831
5832 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5833
5834         * recog.c (verfiy_changes): Disallow renaming of hard regs in
5835         inline asms for register asm ("") declarations.
5836
5837 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
5838
5839         * fold-const.c (fold_unary): Fix comment.
5840
5841 2009-03-07  Jan Hubicka  <jh@suse.cz>
5842
5843         PR target/39361
5844         * tree-inline.c (setup_one_parameter): Do replacement of const
5845         argument by constant in SSA form.
5846
5847 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5848
5849         PR middle-end/38028
5850         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
5851         determine alignment passed to assign_stack_local.
5852         (assign_parms_unsplit_complex): Likewise.
5853         * except.c (sjlj_build_landing_pads): Likewise.
5854
5855 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
5856
5857         PR middle-end/39360
5858         * tree-flow.h (add_referenced_var): Return bool instead of void.
5859         * tree-dfa.c (add_referenced_var): Return result of
5860         referenced_var_check_and_insert call.
5861         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
5862         of referenced_var_check_and_insert.
5863
5864         PR debug/39372
5865         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
5866         (gen_variable_die): Emit DW_AT_location on abstract static variable's
5867         DIE, don't emit it if abstract origin already has it.
5868         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
5869         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
5870
5871 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5872
5873         * genpreds.c (needs_variable): Fix parentheses at variable name
5874         detection.
5875         (write_tm_constrs_h): Indent generated code.
5876
5877 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5878
5879         * doc/extend.texi (Function Attributes): Add documentation
5880         for isr attributes.
5881
5882 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
5883
5884         PR debug/39387
5885         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
5886         take locus from its DECL_SOURCE_LOCATION instead of input_location.
5887
5888 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
5889
5890         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
5891         the loop as bad.
5892
5893 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
5894
5895         PR debug/39379
5896         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
5897         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
5898
5899 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
5900
5901         * config/i386/i386.md (R8_REG, R9_REG): New constants.
5902         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
5903         constants instead of magic numbers.
5904         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
5905         (QI_REG_P): Ditto.
5906         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
5907         (x86_64_ms_abi_int_parameter_registers): Ditto.
5908         (x86_64_int_return_registers): Ditto.
5909         (ix86_maybe_switch_abi): Ditto.
5910         (ix86_expand_call): Ditto for clobbered_registers array.
5911         (ix86_hard_regno_mode_ok): Ditto.
5912         (x86_extended_QIreg_mentioned_p): Ditto.
5913
5914 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
5915
5916         PR tree-optimization/39349
5917         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
5918
5919         * combine.c (gen_lowpart_for_combine): Use omode when generating
5920         clobber.
5921
5922 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
5923
5924         PR rtl-optimization/39235
5925         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
5926
5927 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
5928
5929         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
5930
5931 2009-03-04  Richard Guenther  <rguenther@suse.de>
5932
5933         PR tree-optimization/39362
5934         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
5935         that occur in abnormal PHIs should be varying.
5936
5937 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
5938
5939         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
5940         Extend comments.
5941         (simple_iv):  Take loop as an argument instead of statement.
5942         * tree-scalar-evolution.h (simple_iv): Declaration changed.
5943         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
5944         to simple_iv.
5945         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
5946         Ditto.
5947         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
5948         * matrix-reorg.c (analyze_transpose): Ditto.
5949         * tree-data-ref.c (dr_analyze_innermost): Ditto.
5950         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
5951         * tree-predcom.c (ref_at_iteration): Ditto.
5952         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
5953
5954 2009-03-04  Richard Guenther  <rguenther@suse.de>
5955
5956         PR tree-optimization/39358
5957         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
5958         escaped_id and callused_id.
5959         (solve_graph): Likewise.
5960
5961 2009-03-04  Richard Guenther  <rguenther@suse.de>
5962
5963         PR tree-optimization/39339
5964         * tree-sra.c (try_instantiate_multiple_fields): Make it
5965         no longer ICE on the above.
5966
5967 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
5968
5969         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
5970         that fits within Pmode.
5971
5972 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
5973
5974         PR middle-end/10109
5975         * tm.texi (LIBCALL_VALUE): Update description.
5976
5977 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
5978
5979         PR middle-end/34443
5980         * doc/extend.texi (section): Update description.
5981
5982 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
5983
5984         PR middle-end/39345
5985         * tree-inline.c (remapped_type): New.
5986         (can_be_nonlocal): Call remapped_type instead of remap_type.
5987
5988 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
5989
5990         PR fortran/39354
5991         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
5992         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
5993
5994 2009-03-03  Richard Guenther  <rguenther@suse.de>
5995
5996         PR middle-end/39272
5997         * tree.c (tree_nonartificial_location): New function.
5998         * tree.h (tree_nonartificial_location): Declare.
5999         * builtins.c (expand_builtin_memory_chk): Provide location
6000         of the call location for artificial function pieces.
6001         (maybe_emit_chk_warning): Likewise.
6002         (maybe_emit_sprintf_chk_warning): Likewise.
6003         (maybe_emit_free_warning): Likewise.
6004         * expr.c (expand_expr_real_1): Likewise.
6005
6006 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
6007
6008         PR tree-optimization/39343
6009         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
6010         COMPONENT_REF t has ARRAY_TYPE.
6011
6012 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
6013
6014         PR middle-end/39335
6015         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
6016         when the type precision of the induction variable should be
6017         larger than the type precision of nit.
6018         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
6019         * graphite.c (graphite_loop_normal_form): Same.
6020         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
6021
6022 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
6023
6024         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
6025         (*call_1_rex64_ms_sysv): Use named constants instead of magic
6026         numbers to describe clobbered registers.
6027         (*call_value_0_rex64_ms_sysv): Ditto.
6028         * config/i386/mmx.md (mmx_emms): Ditto.
6029         (mmx_femms): Ditto.
6030
6031 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
6032
6033         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
6034         of ABI_64.
6035
6036 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6037
6038         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
6039         (spu_section_type_flags): New function.
6040
6041 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
6042
6043         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
6044         reg_class_contents of FLOAT_REGS into a temporary.
6045
6046 2009-03-02  Richard Guenther  <rguenther@suse.de>
6047             Ira Rosen  <irar@il.ibm.com>
6048
6049         PR tree-optimization/39318
6050         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
6051         information to the vectorized statement.
6052
6053 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
6054
6055         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
6056         variable.  Use defined names instead of magic constants for REX SSE
6057         registers.
6058
6059 2009-03-01  Richard Guenther  <rguenther@suse.de>
6060
6061         PR tree-optimization/39331
6062         * omp-low.c (lower_send_shared_vars): Do not receive new
6063         values for the reference of DECL_BY_REFERENCE parms or results.
6064
6065 2009-03-01  Jan Hubicka  <jh@suse.cz>
6066
6067         PR debug/39267
6068         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
6069         BLOCK_NONLOCALIZED_VAR): New macros.
6070         (tree_block): Add nonlocalized_vars.
6071         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
6072         gen_decl_die): Add origin argument.  Allow generation of die with
6073         origin at hand only.
6074         (gen_member_die, gen_type_die_with_usage, force_decl_die,
6075         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
6076         of gen_*.
6077         (gen_block_die): Fix checking for unused blocks.
6078         (process_scope_var): Break out from .... ; work with origins only.
6079         (decls_for_scope) ... here; process nonlocalized list.
6080         (dwarf2out_ignore_block): Look for nonlocalized vars.
6081         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
6082         vars.
6083         (dump_scope_block): Dump them.
6084         * tree-inline.c (remap_decls): Handle nonlocalized vars.
6085         (remap_block): Likewise.
6086         (can_be_nonlocal): New predicate.
6087         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
6088
6089 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6090
6091         * configure: Regenerate.
6092
6093 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6094
6095         * optc-gen.awk: No need to duplicate option flags twice.
6096         Reuse help texts for duplicate options which do not have any.
6097
6098         * gcc.c (display_help): Document --version.
6099
6100         * gcc.c (main): If print_help_list and verbose_flag, ensure
6101         driver output comes before subprocess output.
6102
6103         * optc-gen.awk: Assign all remaining fields to help string,
6104         space-separated, for multi-line help in *.opt.
6105
6106         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
6107         -Wno-pedantic-ms-format is for MinGW targets only.
6108
6109         * doc/options.texi (Option file format): Fix bad indentation,
6110         restoring dropped sentence.
6111
6112 2009-02-28  Jan Hubicka  <jh@suse.cz>
6113
6114         * tree-inline.c (tree_function_versioning): Output debug info.
6115
6116 2009-02-28  Jan Hubicka  <jh@suse.cz>
6117
6118         PR debug/39267
6119         * tree-inline.c (setup_one_parameter): Do not copy propagate
6120         arguments when not optimizing.
6121
6122 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
6123
6124         PR target/39327
6125         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
6126         (avx_addsubv4df3): Likewise.
6127         (*avx_addsubv4sf3): Likewise.
6128         (sse3_addsubv4sf3): Likewise.
6129         (*avx_addsubv2df3): Likewise.
6130         (sse3_addsubv2df3): Likewise.
6131         (avx_unpckhps256): Correct item selectors.
6132         (avx_unpcklps256): Likewise.
6133         (avx_unpckhpd256): Likewise.
6134         (avx_unpcklpd256): Likewise.
6135
6136 2009-02-28  Jan Hubicka  <jh@suse.cz>
6137
6138         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
6139         static vars.
6140         (copy_arguments_for_versioning): If var is declared don't declare it.
6141         (tree_function_versioning): First setup substitutions and then copy
6142         args.
6143
6144 2009-02-27  Jan Hubicka  <jh@suse.cz>
6145
6146         PR debug/39267
6147         * cgraph.h (varpool_output_debug_info): Remove.
6148         * cgraphunit.c (varpool_output_debug_info): Remove.
6149         * dwarf2out.c (deferred_locations_struct): New struct
6150         (deferred_locations): New type.
6151         (deferred_locations_list): New static var.
6152         (deffer_location): New function.
6153         (gen_variable_die): Use it.
6154         (decls_for_scope): Output info on local static vars.
6155         (dwarf2out_finish): Process deferred locations.
6156         * varpool.c (varpool_output_debug_info): Remove.
6157
6158 2009-02-27  Jan Hubicka  <jh@suse.cz>
6159
6160         PR debug/39267
6161         * tree.h (TREE_PROTECTED): Fix comment.
6162         (BLOCK_HANDLER_BLOCK): Remove.
6163         (struct tree_block): Remove handler_block add body_block.
6164         (inlined_function_outer_scope_p): New.
6165         (is_body_block): Remove.
6166         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
6167         * dwarf2out.c (is_inlined_entry_point): Remove.
6168         (add_high_low_attributes): Use inlined_function_outer_scope_p.
6169         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
6170         code.
6171         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
6172         * gimplify.c (gimplify_expr): Gimplify body blocks.
6173         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
6174         block with multiple subblocks.
6175         (dump_scope_block): Prettier output; dump more flags and info.
6176         (dump_scope_blocks): New.
6177         (remove_unused_locals): Use dump_scope_blocks.
6178         * tree-flow.h (dump_scope_blocks): Declare.
6179         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
6180         * stmt.c (is_body_block): Remove.
6181         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
6182         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
6183
6184 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
6185
6186         PR middle-end/39308
6187         * graphite.c (graphite_loop_normal_form): Do not call
6188         number_of_iterations_exit from a gcc_assert.
6189
6190 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6191
6192         * gcc/config/s390/s390.c (s390_swap_cmp): Look for conditional
6193         jumps if COND is NULL.
6194         (find_cond_jump): New function.
6195         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
6196         * gcc/config/s390/s390.md: Remove z10_cobra attribute value.
6197
6198 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
6199
6200         * config/alpha/alpha.h (alpha_expand_mov): Return false if
6201         force_const_mem returns NULL_RTX.
6202
6203 2009-02-26  Jan Hubicka  <jh@suse.cz>
6204
6205         PR debug/39267
6206         * cgraph.h (varpool_output_debug_info): Remove.
6207         * cgraphunit.c (varpool_output_debug_info): Remove.
6208         * dwarf2out.c (deferred_locations_struct): New struct
6209         (deferred_locations): New type.
6210         (deferred_locations_list): New static var.
6211         (deffer_location): New function.
6212         (gen_variable_die): Use it.
6213         (decls_for_scope): Output info on local static vars.
6214         (dwarf2out_finish): Process deferred locations.
6215         * varpool.c (varpool_output_debug_info): Remove.
6216
6217 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         PR rtl-optimization/39241
6220         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
6221         to subreg_offset_representable_p.
6222
6223 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
6224
6225         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
6226         execute function prototype.  Get f and nregs from max_reg_num
6227         and get_insns.  Remove the first backward pass as it's dead,
6228         guard the forward pass by flag_expensive_optimizations.
6229         (rest_of_handle_regmove): Delete.
6230         (pass_regmove): Replace it with regmove_optimize.
6231
6232 2009-02-25  Martin Jambor  <mjambor@suse.cz>
6233
6234         PR tree-optimization/39259
6235         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6236         calls_alloca function flags.
6237         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
6238         calls are detected.
6239
6240 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
6241
6242         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
6243         flags_set_1_rtx, flags_set_1_set): Delete.
6244         (regmove_optimize): Do not call mark_flags_life_zones.
6245
6246 2009-02-24  Julian Brown  <julian@codesourcery.com>
6247
6248         PR target/35965
6249         * config/arm/arm.c (require_pic_register): Only set
6250         cfun->machine->pic_reg once per function.
6251
6252 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
6253
6254         * doc/invoke.texi (Link Options): Document an easier way to pass
6255         options that take arguments to the GNU linker using -Xlinker and -Wl.
6256
6257 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
6258
6259         PR target/33785
6260         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
6261
6262 2009-02-24  Richard Guenther  <rguenther@suse.de>
6263
6264         PR debug/39285
6265         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
6266
6267 2009-02-24  Richard Guenther  <rguenther@suse.de>
6268             Zdenek Dvorak  <ook@ucw.cz>
6269
6270         PR tree-optimization/39233
6271         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
6272         from converting them to a generic type.
6273
6274 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
6275
6276         PR tree-optimization/39260
6277         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
6278         contains a condition with a real type.
6279         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
6280
6281 2009-02-23  Jason Merrill  <jason@redhat.com>
6282
6283         PR c++/38880
6284         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
6285         narrowing_initializer_constant_valid_p.
6286         (narrowing_initializer_constant_valid_p): Don't return
6287         null_pointer_node for adding a pointer to itself.
6288
6289 2009-02-23  Jan Hubicka  <jh@suse.cz>
6290
6291         PR c/12245
6292         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
6293         resizing.
6294
6295 2009-02-23  Jan Hubicka  <jh@suse.cz>
6296
6297         PR tree-optimization/37709
6298         * tree.c (block_ultimate_origin): Move here from dwarf2out.
6299         * tree.h (block_ultimate_origin): Declare.
6300         * dwarf2out.c (block_ultimate_origin): Move to tree.c
6301         * tree-ssa-live.c (remove_unused_scope_block_p):
6302         Eliminate blocks containig no instructions nor live variables nor
6303         nested blocks.
6304         (dump_scope_block): New function.
6305         (remove_unused_locals): Enable removal of dead blocks by default;
6306         enable dumping at TDF_DETAILS.
6307
6308 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6309
6310         * config/i386/i386.c (classify_argument): Don't allow COImode
6311         and OImode.
6312         (function_arg_advance_32): Don't allow OImode.
6313         (function_arg_32): Likewise.
6314         (function_value_32): Likewise.
6315         (return_in_memory_32): Likewise.
6316         (function_arg_64): Remove OImode comment.
6317
6318 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6319
6320         PR target/39261
6321         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
6322         ix86_expand_vector_set for V4DImode in 64bit mode only.
6323         (ix86_expand_vector_init_one_var): Likewise.
6324
6325 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
6326
6327         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
6328
6329 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
6330
6331         PR bootstrap/39257
6332         * loop-iv.c: Revert last change.
6333         * emit-rtl.c: Likewise.
6334
6335 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
6336
6337         PR target/39256
6338         * config/i386/i386.c (type_natural_mode): Remove an extra
6339         space in the warning message.
6340         (function_value_32): Handle 32-byte vector modes.
6341         (return_in_memory_32): Likewise.
6342
6343 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
6344
6345         * loop-iv.c (truncate_value): New function.
6346         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
6347         of lowpart_subreg.
6348         (lowpart_subreg): Move to...
6349         * emit-rtl.c: ...here.
6350
6351 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
6352
6353         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
6354         accidental and undocumented change at revision 140860.
6355
6356 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
6357
6358         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
6359         take gimple_seq * arguments.
6360         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
6361         types_compatible_p langhook.
6362
6363 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
6364             Joseph Myers  <joseph@codesourcery.com>
6365
6366         * config/arm/arm.c (arm_builtin_va_list): New function.
6367         (arm_expand_builtin_va_start): Likewise.
6368         (arm_gimplify_va_arg_expr): Likewise.
6369         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
6370         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
6371         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
6372         (va_list_type): New variable.
6373         (arm_mangle_type): Mangle va_list_type appropriately.
6374
6375 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
6376
6377         PR middle-end/39157
6378         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
6379         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
6380         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
6381         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
6382         parameter to 1000 for -O1 by default.
6383         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
6384         parameter.
6385         * loop-invariant.c: Include params.h.
6386         (move_loop_invariants): Don't call move_single_loop_invariants on
6387         very large loops.
6388
6389 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
6390
6391         * calls.c (emit_library_call_value_1): Use slot_offset instead of
6392         offset when calculating bounds for indexing stack_usage_map.  Fixes
6393         a buffer overflow with certain target setups.
6394
6395 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
6396
6397         PR target/39240
6398         * calls.c (expand_call): Clear try_tail_call if caller and callee
6399         disagree in promotion of function return value.
6400
6401 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
6402
6403         PR target/39175
6404         * c-common.c (c_determine_visibility): If visibility changed and
6405         DECL_RTL has been already set, call make_decl_rtl to update symbol
6406         flags.
6407
6408 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
6409
6410         PR c++/39188
6411         * varasm.c (assemble_variable): Don't check DECL_NAME when
6412         globalizing a variable.
6413
6414 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
6415
6416         PR c/38483
6417         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
6418         expression before any __builtin_trap call.
6419         * c-typeck.c (build_function_call): Convert and check function
6420         arguments before generating a call to a trap.  Evaluate the
6421         function arguments before the trap.
6422
6423 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
6424
6425         PR target/39228
6426         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
6427         (UNSPEC_FXAM_MEM): New unspec.
6428         (fxam<mode>2_i387_with_temp): New insn and split pattern.
6429         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
6430         memory using fxam<mode>2_i387_with_temp to remove excess precision.
6431
6432 2009-02-19  Richard Guenther  <rguenther@suse.de>
6433
6434         PR tree-optimization/39207
6435         PR tree-optimization/39074
6436         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
6437         storedanything_tree): New.
6438         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
6439         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
6440         (build_succ_graph): Add edges from STOREDANYTHING to all
6441         non-direct nodes.
6442         (init_base_vars): Initialize STOREDANYTHING.
6443         (compute_points_to_sets): Free substitution info after
6444         building the succ graph.
6445         (ipa_pta_execute): Likewise.
6446
6447         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
6448         field.
6449         (do_ds_constraint): Do not add to special var or non-pointer
6450         field solutions.
6451         (type_could_have_pointers): Split out from ...
6452         (could_have_pointers): ... here.  For arrays use the element type.
6453         (create_variable_info_for): Initialize may_have_pointers.
6454         (new_var_info): Likewise.
6455         (handle_lhs_call): Make the HEAP variable unknown-sized.
6456         (intra_create_variable_infos): Use a type with pointers for
6457         PARM_NOALIAS, make it unknown-sized.
6458
6459 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
6460
6461         PR target/39224
6462         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
6463
6464 2009-02-18  Jason Merrill  <jason@redhat.com>
6465
6466         PR target/39179
6467         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
6468         value if DECL_EXTERNAL.
6469         * tree-sra.c (sra_walk_gimple_assign): Likewise.
6470         * target.h (gcc_target::binds_local_p): Clarify "module".
6471         * tree.h (TREE_PUBLIC): Clarify "module".
6472
6473 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
6474
6475         PR target/38891
6476         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
6477         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
6478
6479 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
6480
6481         PR target/39082
6482         * c.opt (Wabi): Support C and ObjC.
6483         (Wpsabi): New.
6484
6485         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
6486
6487         * config/i386/i386.c (classify_argument): Warn once about the ABI
6488         change when passing union with long double.
6489
6490         * doc/invoke.texi: Update -Wabi for warning psABI changes.
6491
6492 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
6493
6494         PR c/35447
6495         * c-parser.c (c_parser_compound_statement): Always enter and leave
6496         a scope.
6497
6498 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6499
6500         PR target/34587
6501         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
6502
6503 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
6504
6505         PR tree-optimization/36922
6506         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
6507         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
6508         Likewise.
6509
6510 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
6511
6512         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
6513         to 0 for EABI64.
6514
6515 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
6516
6517         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
6518
6519 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
6520
6521         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
6522         tree sharing.
6523
6524 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
6525             Richard Sandiford  <rdsandiford@googlemail.com>
6526
6527         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
6528         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
6529         (loongson_biadd): ...this.
6530
6531 2009-02-17  Richard Guenther  <rguenther@suse.de>
6532
6533         PR tree-optimization/39202
6534         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
6535         a var make sure to follow existing collapses.
6536
6537 2009-02-17  Richard Guenther  <rguenther@suse.de>
6538
6539         PR middle-end/39214
6540         * langhooks.c (lhd_print_error_function): Check for NULL block.
6541
6542 2009-02-17  Richard Guenther  <rguenther@suse.de>
6543
6544         PR tree-optimization/39204
6545         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
6546         of the PHI arg.
6547
6548 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
6549
6550         * config/soft-fp/double.h: Update from glibc CVS.
6551
6552 2009-02-17  Richard Guenther  <rguenther@suse.de>
6553
6554         PR tree-optimization/39207
6555         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
6556         strict-aliasing warnings for pointers pointing to NULL.
6557
6558 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
6559
6560         PR c/35446
6561         * c-parser.c (c_parser_braced_init): Call pop_init_level when
6562         skipping until next close brace.
6563
6564 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
6565
6566         PR target/37049
6567         * config/i386/i386.c (ix86_expand_push): Set memory alignment
6568         to function argument boundary.
6569
6570 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
6571
6572         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
6573         in the lea_add. Reload eventually constraints it properly.
6574         * config/picochip/constraints.md : Remove the target constraint
6575         "b", since it is not needed anymore.
6576
6577 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
6578
6579         * gthr-dce.h: Uglify function parameter and local variable names.
6580         * gthr-gnat.h: Likewise.
6581         * gthr-mipssde.h: Likewise.
6582         * gthr-nks.h: Likewise.
6583         * gthr-posix95.h: Likewise.
6584         * gthr-posix.h: Likewise.
6585         * gthr-rtems.h: Likewise.
6586         * gthr-single.h: Likewise.
6587         * gthr-solaris.h: Likewise.
6588         * gthr-tpf.h: Likewise.
6589         * gthr-vxworks.h: Likewise.
6590         * gthr-win32.h: Likewise.
6591
6592 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
6593
6594         PR target/39196
6595         * config/i386/i386.md: Restrict the new peephole2 to move
6596         between MMX/SSE registers.
6597
6598 2009-02-15  Richard Guenther  <rguenther@suse.de>
6599
6600         Revert
6601         2009-02-13  Richard Guenther  <rguenther@suse.de>
6602
6603         * configure.ac: Enable LFS.
6604         * configure: Re-generate.
6605         * config.in: Likewise.
6606
6607 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6608
6609         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
6610         spu_srqwbyte, spu_srqwbytebc): Define.
6611         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
6612         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
6613         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
6614         "shrqby_<mode>"): New insn-and-split patterns.
6615         * config/spu/spu.c (expand_builtin_args): Determine and return
6616         number of operands using spu_builtin_description data.
6617         (spu_expand_builtin_1): Use it.
6618
6619 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
6620
6621         PR target/38056
6622         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
6623         TARGET_CONST_GP.
6624
6625 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6626
6627         PR target/39149
6628         * config/i386/i386.c (override_options): Correct warning
6629         messages for -malign-loops, -malign-jumps and -malign-functions.
6630
6631 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6632
6633         PR target/39152
6634         * config/i386/i386.md: Restrict the new peephole2 to move
6635         between the general purpose registers.
6636
6637 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
6638
6639         PR target/39162
6640         * config/i386/i386.c (type_natural_mode): Add a new argument.
6641         Return the original mode and warn ABI change if vector size is 32byte.
6642         (function_arg_advance): Updated.
6643         (function_arg): Likewise.
6644         (ix86_function_value): Likewise.
6645         (ix86_return_in_memory): Likewise.
6646         (ix86_sol10_return_in_memory): Likewise.
6647         (ix86_gimplify_va_arg): Likewise.
6648         (function_arg_32): Don't warn ABX ABI change here.
6649         (function_arg_64): Likewise.
6650
6651 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
6652
6653         * loop-iv.c (implies_p): In the final case, test that operands 0
6654         of the two comparisons match.
6655
6656         * config/bfin/bfin.c (find_prev_insn_start): New function.
6657         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
6658         (find_next_insn_start): Move.
6659
6660 2009-02-13  Richard Guenther  <rguenther@suse.de>
6661
6662         * configure.ac: Enable LFS.
6663         * configure: Re-generate.
6664         * config.in: Likewise.
6665
6666 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
6667
6668         PR c/35444
6669         * c-parser.c (c_parser_parms_list_declarator): Discard pending
6670         sizes on syntax error after some arguments have been parsed.
6671
6672 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
6673
6674         * doc/invoke.texi (-fira): Remove.
6675
6676 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6677
6678         * caller-save.c: Replace regclass.c with reginfo.c in comments.
6679         * recog.c: Likewise.
6680         * rtl.h: Likewise.
6681
6682 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
6683
6684         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
6685         (umul_ppmm): Likewise.
6686         (count_leading_zeros): Likewise.
6687         (count_trailing_zeros): Likewise.
6688         (UMUL_TIME): Likewise.
6689
6690 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
6693         soft-fp/t-softfp to tmake_file.
6694
6695         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
6696         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
6697         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
6698         IA64_BUILTIN_INFQ]: New.
6699         (ia64_init_builtins): Initialize __builtin_infq,
6700         __builtin_fabsq and __builtin_copysignq if not HPUX.
6701         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
6702         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
6703
6704         * config/ia64/lib1funcs.asm (__divtf3): Define only if
6705         SHARED is defined.
6706         (__fixtfti): Likewise.
6707         (__fixunstfti): Likewise.
6708         (__floattitf): Likewise.
6709
6710         * config/ia64/libgcc-glibc.ver: New.
6711         * config/ia64/t-fprules-softfp: Likewise.
6712         * config/ia64/sfp-machine.h: Likewise.
6713
6714         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
6715         (LIBGCC2_TF_CEXT): Likewise.
6716         (TF_SIZE): Likewise.
6717         (TARGET_INIT_LIBFUNCS): Likewise.
6718
6719         * config/ia64/t-glibc (SHLINB_MAPFILES):
6720         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
6721
6722 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
6723
6724         * config/i386/i386.c (construct_container): Rewrite processing
6725         BLKmode with X86_64_SSE_CLASS.
6726
6727 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
6728
6729         PR target/39152
6730         * config/i386/i386.md: Replace simplify_replace_rtx with
6731         replace_rtx in the new peephole2.
6732
6733 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
6734
6735         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
6736         loop unrolling do not happen at -O2.
6737
6738 2009-02-12  Michael Matz  <matz@suse.de>
6739
6740         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
6741
6742 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
6743
6744         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
6745         for -g3.
6746
6747 2009-02-12  Ben Elliston  <bje@au.ibm.com>
6748
6749         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
6750         patterns when updating the back chain.  Missed in the 2009-02-10
6751         change.
6752
6753 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
6754
6755         * doc/extend.texi (Decimal Floating Types): Update identifier of
6756         draft TR and list of missing support.
6757
6758 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
6759
6760         PR middle-end/39154
6761         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
6762         bit to variable length decl's flags, add it also to its
6763         pointer replacement variable.
6764
6765 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
6766             Jakub Jelinek  <jakub@redhat.com>
6767
6768         PR target/39118
6769         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
6770         (memory_blockage): New expander.
6771         (*memory_blockage): New insn pattern.
6772         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
6773         instead of general blockage at the end of function prologue when
6774         frame pointer is used to access red zone area.  Do not emit blockage
6775         when profiling, it is emitted in generic code.
6776         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
6777         function epilogue when frame pointer is used to access red zone area.
6778
6779 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
6780
6781         PR target/38824
6782         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
6783         by arithmetic with memory operands.
6784         * config/i386/predicates.md (commutative_operator): New.
6785
6786 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
6787
6788         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
6789         bulleted lists.
6790
6791 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
6792
6793         * alias.h (record_alias_subset): Declare.
6794         * alias.c (record_alias_subset): Make global.
6795
6796 2009-02-10  Nick Clifton  <nickc@redhat.com>
6797
6798         * tree-parloops.c: Change license to GPLv3.
6799         * ipa-struct-reorg.c: Change license to GPLv3.
6800         * ipa-struct-reorg.h: Change license to GPLv3.
6801
6802 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
6803
6804         PR c/39084
6805         * c-decl.c (start_struct): Return NULL on error.
6806
6807 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
6808
6809         PR middle-end/39124
6810         * cfgloopmanip.c (remove_path): Call remove_bbs after
6811         cancel_loop_tree, not before it.
6812
6813         PR target/39139
6814         * function.h (struct function): Add has_local_explicit_reg_vars bit.
6815         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
6816         VAR_DECLs were seen.
6817         * tree-ssa-live.c (remove_unused_locals): Recompute
6818         cfun->has_local_explicit_reg_vars.
6819         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
6820         copies or clearings if cfun->has_local_explicit_reg_vars.
6821
6822 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
6823
6824         PR target/39118
6825         * config/i386/i386.c (expand_prologue): Emit blockage at the end
6826         of function prologue when frame pointer is used to access
6827         red zone area.
6828
6829 2009-02-10  Richard Guenther  <rguenther@suse.de>
6830
6831         PR middle-end/39127
6832         * gimplify.c (gimple_regimplify_operands): Always look if
6833         we need to create a temporary.
6834
6835 2009-02-10  Richard Guenther  <rguenther@suse.de>
6836
6837         PR tree-optimization/39132
6838         * tree-loop-distribution.c (todo): New global var.
6839         (generate_memset_zero): Trigger TODO_rebuild_alias.
6840         (tree_loop_distribution): Return todo.
6841
6842 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
6843
6844         PR target/39119
6845         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
6846         (x86_64_reg_class_name): Removed.
6847         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
6848         first one isn't X86_64_SSE_CLASS or any other ones aren't
6849         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
6850         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
6851         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
6852         and 3 X86_64_SSEUP_CLASS.
6853         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
6854         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
6855
6856 2009-02-10  Ben Elliston  <bje@au.ibm.com>
6857
6858         * config/rs6000/rs6000.md (allocate_stack): Always use an update
6859         form instruction to update the stack back chain word, even if the
6860         user has disabled the generation of update instructions.
6861         (movdi_<mode>_update_stack): New.
6862         (movsi_update_stack): Likewise.
6863         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
6864         always use an update form instruction to update the stack back
6865         chain word.
6866
6867 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
6868
6869         PR middle-end/38953
6870         * graphite.c (if_region_set_false_region): After moving a region in
6871         the false branch of a condition, remove the empty dummy basic block.
6872         (gloog): Remove wrong fix for PR38953.
6873
6874 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6875
6876         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
6877         generation due to implicit sign extension.
6878
6879 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
6880
6881         PR middle-end/38981
6882         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
6883         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
6884
6885 2009-02-09  Richard Guenther  <rguenther@suse.de>
6886
6887         PR middle-end/35202
6888         * convert.c (convert_to_real): Disable (float)fn((double)x)
6889         to fnf(x) conversion if errno differences may occur and
6890         -fmath-errno is set.
6891
6892 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
6893
6894         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
6895         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6896         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6897
6898 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
6899
6900         PR c/35434
6901         * c-common.c (handle_alias_attribute): Disallow attribute for
6902         anything not a FUNCTION_DECL or VAR_DECL.
6903
6904 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
6905
6906         PR c/39035
6907         * real.c (do_compare): Special-case compare of zero against
6908         decimal float value.
6909
6910 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
6911
6912         PR c/36432
6913         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
6914         as indicating flexible array members unless the field itself is
6915         being declarared as the incomplete array.
6916
6917 2009-02-06  Jan Hubicka  <jh@suse.cz>
6918
6919         PR tree-optimization/38844
6920         * ipa-inline.c (try_inline): Stop inlining recursion when edge
6921         is already inlined.
6922
6923 2009-02-06  Richard Guenther  <rguenther@suse.de>
6924
6925         PR middle-end/38977
6926         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
6927         fork because we may expand it as __gcov_fork.
6928
6929 2009-02-06  Nick Clifton  <nickc@redhat.com>
6930
6931         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
6932
6933 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
6934
6935         PR tree-optimization/35659
6936         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
6937         vn_phi_eq): Shortcut if hashcode does not match.
6938         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
6939         NULL operands.
6940         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
6941         and avoid iterative_hash_expr.
6942         (FOR_EACH_VALUE_ID_IN_SET): New.
6943         (value_id_compare): Remove.
6944         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
6945         sort expressions by value id.
6946
6947 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
6948
6949         PR target/38991
6950         * config/sh/predicates.md (general_movsrc_operand): Don't check
6951         the subreg of system registers here.
6952
6953 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
6954
6955         PR c++/39106
6956         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
6957         on the copied decl.
6958
6959 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
6960
6961         PR rtl-optimization/39110
6962         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
6963         addresses, not aligned ones.
6964
6965 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
6966             Richard Guenther  <rguenther@suse.de>
6967
6968         PR tree-optimization/39100
6969         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
6970         comment says and add edges.
6971
6972 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
6973
6974         PR c/35435
6975         * c-common.c (handle_tls_model_attribute): Ignore attribute for
6976         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
6977
6978 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
6979
6980         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6981         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6982         register_bb_in_sese, new_sese, free_sese): Moved.
6983         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6984         outermost_loop_in_scop, build_scop_iteration_domain,
6985         expand_scalar_variables_ssa_name, get_vdef_before_scop,
6986         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6987         Use loop_in_sese_p instead of loop_in_scop_p.
6988         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
6989         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
6990         (scopdet_basic_block_info): Fix bug in scop detection.
6991         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6992         eq_loop_to_cloog_loop): Remove.
6993         (nb_loops_around_loop_in_scop, nb_loop
6994         ref_nb_loops): Moved here...
6995         * graphite.h (ref_nb_loops): ... from here.
6996         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
6997         (loop_domain_dim, loop_iteration_vector_dim): Remove.
6998         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6999         * testsuite/gcc.dg/graphite/scop-19.c: New
7000
7001 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
7002             Hans-Peter Nilsson  <hp@axis.com>
7003
7004         PR rtl-optimization/37889
7005         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
7006         Move offset handling from PLUS to before the switch.  Use new
7007         arguments when considering SYMBOL_REFs too.
7008         (rtx_addr_can_trap_p): Pass dummy offset and size.
7009         (enum may_trap_p_flags): Remove.
7010         (may_trap_p_1): Pass size from MEM_SIZE.
7011
7012         PR rtl-optimization/38921
7013         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
7014         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
7015         * rtlanal.c (may_trap_after_code_motion_p): Delete.
7016         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
7017
7018 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
7019
7020         AVX Programming Reference (January, 2009)
7021         * config/i386/sse.md (*vpclmulqdq): New.
7022
7023 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
7024
7025         PR tree-optimization/38977
7026         PR gcov-profile/38292
7027         * calls.c (special_function_p): Disregard __builtin_ prefix.
7028
7029 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7030
7031         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
7032         non-indexable addresses even before reload.
7033
7034 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
7035
7036         PR c/29129
7037         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
7038         as having variable size.  Do not give an error for unnamed
7039         parameters with [*] declarators.  Give a warning for type names
7040         with [*] declarators and mark them as variable size.
7041         * c-parser.c (c_parser_sizeof_expression): Do not give an error
7042         for sizeof applied to [*] type names.
7043
7044 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7045
7046         PR C++/36607
7047         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
7048
7049 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
7050
7051         * gcc.c (process_command): Update copyright notice dates.
7052         * gcov.c (print_version): Likewise.
7053         * gcov-dump.c (print_version): Likewise.
7054         * mips-tfile.c (main): Likewise.
7055         * mips-tdump.c (main): Likewise.
7056
7057 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
7058
7059         PR c/35433
7060         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
7061         for composite type involving a zero-length array type.
7062
7063 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
7064
7065         PR target/35318
7066         * function.c (match_asm_constraints_1): Skip over
7067         initial optional % in the constraint.
7068
7069         PR inline-asm/39059
7070         * c-parser.c (c_parser_postfix_expression): If fixed point is not
7071         supported, don't accept FIXED_CSTs.
7072         * c-decl.c (finish_declspecs): Error if fixed point is not supported
7073         and _Sat is used without _Fract/_Accum.  Set specs->type to
7074         integer_type_node for cts_fract/cts_accum if fixed point is not
7075         supported.
7076
7077 2009-02-02  Catherine Moore  <clm@codesourcery.com>
7078
7079         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
7080
7081 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
7082
7083         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
7084         (ABI_HAS_64BIT_SYMBOLS): Use it.
7085         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
7086
7087 2009-02-02  Paul Brook  <paul@codesourcery.com>
7088
7089         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
7090
7091 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
7092
7093         PR inline-asm/39058
7094         * recog.h (asm_operand_ok): Add constraints argument.
7095         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
7096         recurse on matching constraint.
7097         (check_asm_operands): Pass constraints as 3rd argument to
7098         asm_operand_ok.  Don't look up matching constraint here.
7099         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
7100         to asm_operand_ok.
7101
7102 2009-02-02  Ben Elliston  <bje@au.ibm.com>
7103
7104         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
7105         TARGET_NARROW_VOLATILE_BITFIELD macro names.
7106
7107 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7108
7109         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
7110         information.  Remove some obsolete information.  Reorganize.
7111
7112         * config/pa/fptr.c: Revert license to GPL 2.
7113         * config/pa/milli64.S: Likewise.
7114
7115 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
7116
7117         PR target/38904
7118         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
7119         LIBRARY name in, instead of hard-coding it.
7120         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
7121         extra target make frag to tmake_files according to EH model.
7122         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
7123         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
7124         frags that define makefile variable EH_MODEL appropriately.
7125         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
7126         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
7127         to "-sjlj" according to type of EH configured.
7128         (LIBGCC_SONAME):  Concatenate it to shared library base name.
7129         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
7130         to "_sjlj" according to type of EH configured.
7131         (LIBGCC_SONAME):  Concatenate it to shared library base name.
7132         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
7133         (SHLIB_LINK):  Add missing semicolon to if-else construct.
7134         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
7135         string value of "pe_dll" command-line option.
7136         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
7137         (SHLIB_SONAME):  Use it when overriding t-cygming default.
7138         (SHLIB_IMPLIB):  Override t-cygming default.
7139         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
7140         string value of "pe_dll" command-line option.
7141
7142 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
7143
7144         PR target/38952
7145         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
7146         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
7147
7148 2009-01-31  Richard Guenther  <rguenther@suse.de>
7149
7150         PR tree-optimization/38937
7151         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
7152         computing the transitive closure.
7153
7154 2009-01-30  Richard Guenther  <rguenther@suse.de>
7155
7156         PR tree-optimization/39041
7157         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
7158         Propagate variable indices only if the types match for this stmt.
7159
7160 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
7161
7162         PR target/39013
7163         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
7164         inline but never defined.
7165
7166 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
7167
7168         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
7169         (*insv_h_di_reg_extimm): New insn.
7170         (*insv_l<mode>_reg_extimm): New insn.
7171
7172 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7173
7174         * config/picochip/picochip.c (flag_conserve_stack): set
7175         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
7176         fconserve-stack. Reduce call-overhead used by inliner.
7177
7178 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7179
7180         PR/38157
7181         * common.opt (flag_conserve_stack): Initialised to zero.
7182
7183 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
7184
7185         PR/39002
7186         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
7187         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
7188         method.
7189
7190 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
7191
7192         * ira-color.c (allocno_reload_assign): Update comments.
7193         * regmove.c (regmove_optimize): Likewise.
7194
7195         * ra.h: Removed.
7196
7197 2009-01-29  Robert Millan  <rmh@aybabtu.com>
7198
7199         * gcc/config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
7200         * gcc/config/i386/kopensolaris-gnu.h: New file.  Undefine
7201         `MD_UNWIND_SUPPORT'.
7202         * gcc/config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
7203
7204 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
7205
7206         PR tree-optimization/39007
7207         * tree-loop-distribution.c (generate_builtin): Use
7208         recompute_dominator to compute the immediate dominator of the
7209         basic block just after the loop.
7210
7211 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7212
7213         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
7214         (ASM_OUTPUT_DWARF_PCREL): Define.
7215
7216 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
7217
7218         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
7219         * doc/passes.texi: Remove entries about regclass, local-alloc, and
7220         global.  Modify entries about regmove and IRA.
7221
7222         * ra-conflict.c: Remove the file.
7223
7224         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
7225
7226         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
7227         (pass_regclass_init): Rename to pass_reginfo_init.
7228
7229         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
7230
7231         * toplev.h (flag_ira): Remove.
7232
7233         * caller-save.c (setup_save_areas): Remove flag_ira.
7234
7235         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
7236
7237         * global.c: Remove the file.
7238
7239         * opts.c (decode_options): Remove flag_ira.
7240
7241         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
7242
7243         * regmove.c: Modify file description.
7244         (find_use_as_address, try_auto_increment): Define them only if
7245         AUTO_INC_DEC is defined.
7246         (replacement_quality, replace_in_call_usage, fixup_match_1,
7247         stable_and_no_regs_but_for_p): Remove.
7248         (reg_set_in_bb): Make it static.
7249         (regmove_optimize): Remove flag_ira and code which worked for
7250         !flag_ira.
7251
7252         * local-alloc.c: Remove the file.
7253
7254         * common.opt (fira): Remove.
7255
7256         * ira.c: Include except.h.
7257         (eliminable_regset): Move from global.c.
7258         (mark_elimination): Ditto.  Remove flag_ira.
7259         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
7260         equiv_mem_modified, validate_equiv_mem_from_store,
7261         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
7262         contains_replace_regs, memref_referenced_p, memref_used_between_p,
7263         no_equiv, recorded_label_ref): Move from local-alloc.c.
7264         (update_equiv_regs): Ditto.  Make it static.
7265         (print_insn_chain, print_insn_chains): Move it from global.c.
7266         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
7267         (build_insn_chain): Ditto.  Make it static.
7268         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
7269         Rename to init_live_subregs.
7270         (gate_ira): Remove flag_ira.
7271
7272         * regclass.c: Rename reginfo.c.  Change file description.
7273         (FORBIDDEN_INC_DEC_CLASSES): Remove.
7274         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
7275         (init_reg_sets_1): Remove code for evaluation of
7276         reg_class_superclasses and losing_caller_save_reg_set.
7277         (init_regs): Remove init_reg_autoinc.
7278         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
7279         ok_for_base_p_nonstrict): Remove.
7280         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
7281         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
7282         corresponding entries.
7283         (dump_regclass, record_operand_costs, scan_one_insn,
7284         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
7285         record_address_regs, auto_inc_dec_reg_p): Remove.
7286         (gt-regclass.h): Rename to gt-reginfo.h.
7287
7288         * rtl.h (dump_global_regs, retry_global_alloc,
7289         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
7290
7291         * Makefile.in (RA_H): Remove.
7292         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
7293         Rename regclass.o to reginfo.o.
7294         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
7295         gt-reginfo.h.
7296         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
7297         (GTFILES): Rename regclass.c to reginfo.c.
7298
7299         * passes.c (init_optimization_passes): Remove pass_local_alloc and
7300         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
7301
7302         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
7303         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
7304         Remove flag_ira.
7305         (finish_spills): Ditto.  Remove code for !flag_ira.
7306
7307 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
7308
7309         PR middle-end/35854
7310         * doc/invoke.texi (rtl debug options): Complete rewrite.
7311         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
7312         to auto_inc_dec".
7313         * mode-switching.c (pass_mode_switching): Rename pass from
7314         "mode-sw" to "mode_sw".
7315         * except.c (pass_convert_to_eh_ranges): Rename pass from
7316         "eh-ranges" to "eh_ranges".
7317         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
7318         to "subreg1".
7319
7320
7321 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
7322             Alexander Monakov  <amonakov@ispras.ru>
7323
7324         PR middle-end/38857
7325         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
7326         register.
7327         (move_exprs_to_boundary): Change return type and pass through
7328         should_move from move_op.  Relax assert.  Update usage ...
7329         (schedule_expr_on_boundary): ... here.  Use should_move instead of
7330         cant_move.
7331         (move_op_orig_expr_found): Indicate that insn was disconnected from
7332         stream.
7333         (code_motion_process_successors): Do not call after_merge_succs
7334         callback if original expression was not found when traversing any of
7335         the branches.
7336         (code_motion_path_driver): Change return type.  Update prototype.
7337         (move_op): Update comment.  Add a new parameter (should_move).  Update
7338         prototype.  Set *should_move based on indication provided by
7339         move_op_orig_expr_found.
7340
7341 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
7342
7343         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
7344         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
7345         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
7346         * config/rs6000/rs6000.c (rs6000_override_options): Default
7347         avoid-indexed-addresses on for Power6, off for everything else.
7348         (avoiding_indexed_address_p): New function.
7349         (rs6000_legitimize_address): Use it.
7350         (rs6000_legitimate_address): Likewise.
7351         * config/rs6000/rs6000.md (movXX_updateX): Likewise
7352
7353 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
7354
7355         PR tree-optimization/38997
7356         * tree-loop-distribution.c (generate_memset_zero): Use
7357         POINTER_PLUS_EXPR for a pointer addition.
7358
7359 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
7360
7361         * config/s390/s390.md (bswap<mode>2): New pattern added.
7362
7363 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
7364
7365         * config/s390/s390.md (*tls_load_31): Added type attribute.
7366
7367 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
7368
7369         * config/s390/s390.md: Fix a few comments.
7370
7371 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
7372
7373         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
7374         (*tm<mode>_full): Fixed z10prop attribute.
7375         (*tst<mode>_extimm): Fixed z10prop attribute.
7376         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
7377         (*tstqiCCT_cconly): Fixed z10prop attribute.
7378         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
7379         (*movsi_larl): Fixed z10prop attribute.
7380         (*movsi_zarch): Fixed z10prop attribute.
7381         (*movsi_eas): Fixed z10prop attribute.
7382         (*movhi): Fixed z10prop attribute.
7383         (*movqi): Fixed z10prop attribute.
7384         (*movstrictqi): Fixed z10prop attribute.
7385         (*mov<mode>): Fixed z10prop attribute.
7386         (*movcc): Fixed z10prop attribute.
7387         (*sethighpartdi_64): Fixed z10prop attribute.
7388         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
7389         (*negdi2_sign_cc): Fixed z10prop attribute.
7390         (*negdi2_sign): Fixed z10prop attribute.
7391         (*absdi2_sign_cc): Fixed z10prop attribute.
7392         (*absdi2_sign): Fixed z10prop attribute.
7393         (*negabsdi2_sign_cc): Fixed z10prop attribute.
7394         (*negabsdi2_sign): Fixed z10prop attribute.
7395         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
7396         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
7397         (doloop_si64): Fixed z10prop attribute.
7398         (doloop_si31): Fixed z10prop attribute.
7399         (doloop_long): Fixed z10prop attribute.
7400         (indirect_jump): Fixed z10prop attribute.
7401         (nop): Fixed z10prop attribute.
7402         (main_base_64): Fixed z10prop attribute.
7403         (reload_base_64): Fixed z10prop attribute.
7404
7405 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
7406
7407         PR rtl-optimization/38740
7408         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
7409         if !optimize.
7410         * config/mips/mips.c (mips_reorg): Likewise.
7411
7412 2009-01-28  Richard Guenther  <rguenther@suse.de>
7413
7414         PR tree-optimization/38926
7415         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
7416         with the correct value id to a value.
7417         (do_regular_insertion): Use the value number of edoubleprime
7418         for the value number of the expr.
7419
7420         Revert
7421         2008-08-21  Richard Guenther  <rguenther@suse.de>
7422
7423         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
7424         a PHI ask VN if it is already available.
7425         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
7426         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
7427
7428 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
7429
7430         PR middle-end/38934
7431         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
7432         set to varying whenever max has TREE_OVERFLOW set, similarly
7433         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
7434
7435 2009-01-28  Richard Guenther  <rguenther@suse.de>
7436
7437         PR middle-end/38908
7438         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
7439         uninitialized aggregate uses in call arguments.
7440
7441 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
7442
7443         PR tree-optimization/38984
7444         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
7445         the nothing_id variable if -fno-delete-null-pointer-checks.
7446
7447 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
7448
7449         PR target/38988
7450         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
7451         (set_got_offset_rex64): Ditto.
7452
7453 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
7454
7455         PR target/38941
7456         * doc/extend.texi: Improve local variable with asm reg.
7457
7458 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
7459
7460         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
7461         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
7462         was not supplied then set warn_packed_bitfield_compat to the
7463         default value of 1.
7464         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
7465         against 1.
7466
7467 2009-01-27  Richard Guenther  <rguenther@suse.de>
7468
7469         PR tree-optimization/38503
7470         * cfgexpand.c (expand_gimple_basic_block): Ignore
7471         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
7472         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
7473         variables that cannot have TBAA applied.
7474         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
7475         statements.
7476
7477 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
7478
7479         PR middle-end/38969
7480         * calls.c (initialize_argument_information): Do not wrap complex
7481         arguments in SAVE_EXPR.
7482
7483 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
7484
7485         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
7486         (INSTALL_LIBGCC): Revert typo commit.
7487
7488 2009-01-26  Richard Guenther  <rguenther@suse.de>
7489
7490         PR tree-optimization/38745
7491         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
7492         from special handling.
7493
7494 2009-01-26  Richard Guenther  <rguenther@suse.de>
7495
7496         PR tree-optimization/38745
7497         * tree-ssa.c (execute_update_addresses_taken): Do not include
7498         variables that cannot possibly be a register in not_reg_needs.
7499         Do not clear TREE_ADDRESSABLE on vars that may not become
7500         registers.
7501         * tree-ssa.c (update_alias_info_1): Include those in the set
7502         of addressable vars.
7503
7504 2009-01-26  Richard Guenther  <rguenther@suse.de>
7505
7506         PR middle-end/38851
7507         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
7508         * tree-ssa-dse.c: Include langhooks.h
7509         (execute_simple_dse): Remove stores with zero size.
7510
7511 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
7512
7513         PR c/38957
7514         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
7515         as PLUS_EXPR.
7516
7517 2009-01-24  Julian Brown  <julian@codesourcery.com>
7518
7519         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
7520         config/arm/linux-atomic.c.
7521         * config/arm/linux-atomic.c: New.
7522
7523 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
7524
7525         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
7526         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
7527         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
7528
7529 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
7530
7531         PR c/38938
7532         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
7533         properly.
7534
7535 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
7536
7537         PR tree-optimization/38953
7538         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
7539         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
7540         (gloog): Split the exit of the scop when the scop exit is a loop exit.
7541         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
7542         changed the CFG.
7543
7544 2009-01-24  Paul Brook  <paul@codesourcery.com>
7545
7546         * config/arm/neon.md (neon_type): Move to arm.md.
7547         (neon_mov<VSTRUCT>): Add neon_type attribute.
7548         * config/arm/arm.md (neon_type): Move to here.
7549         (conds): Add "unconditioal" and use as default for NEON insns.
7550
7551 2009-01-24  Ben Elliston  <bje@au.ibm.com>
7552
7553         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
7554         void *' warning from -Wc++-compat.
7555         * Makefile.in (dominance.o-warn): Remove.
7556
7557 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
7558
7559         PR tree-optimization/38932
7560         * fold-const.c (fold_unary_ignore_overflow): New.
7561         * tree.h (fold_unary_ignore_overflow): Declare.
7562         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
7563         * tree-ssa-sccvn.c (visit_reference_op_load,
7564         simplify_unary_expression): Likewise.
7565
7566 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
7567
7568         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
7569         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
7570         regardless of their type.
7571         * c-common.c (handle_packed_attribute): Don't ignore packed on
7572         bitfields.
7573         * c.opt (Wpacked-bitfield-compat): New warning option.
7574         * stor-layout.c (place_field): Warn if offset of a field changed.
7575         * doc/extend.texi (packed): Mention the ABI change.
7576         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
7577         (Warning Options): Add it to the list.
7578
7579 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
7580
7581         * c-opts.c (c_common_post_options): Fix a typo in comments.
7582
7583 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
7584
7585         PR middle-end/38615
7586         * gimplify.c (gimplify_init_constructor): Fix promotion of const
7587         variables to static.
7588         * doc/invoke.texi (-fmerge-all-constants): Update description.
7589
7590 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
7591
7592         PR target/38931
7593         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
7594         (*movdi_1_rex64): Use type "mmx" for alternative 5.
7595
7596 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
7597
7598         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
7599         a word boundary.
7600         (LOCAL_ALIGNMENT): Similarly.
7601
7602 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
7603             Joseph Myers  <joseph@codesourcery.com>
7604
7605         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
7606         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
7607         * config/arm/arm-tune.md: Regenerate.
7608         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
7609         -march=iwmmxt2.
7610
7611 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
7612
7613         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
7614         version number to five.
7615
7616 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
7617
7618         PR c++/38930
7619         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
7620         * c-common.c (set_underlying_type): Likewise.
7621         (is_typedef_decl ): Likewise
7622         * tree.h: Likewise
7623         (set_underlying_type): Likewise.
7624         (is_typedef_type): Likewise.
7625
7626 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
7627
7628         PR middle-end/38587
7629         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
7630         crossing setjmps.
7631
7632 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
7633
7634         PR bootstrap/37660
7635         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
7636         (LIBGCC_SPEC):  Don't define.
7637         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
7638
7639 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
7640
7641         PR rtl-optimization/38879
7642         * alias.c (base_alias_check): Unaligned access via AND address can
7643         alias all surrounding object types except those with sizes equal
7644         or wider than the size of unaligned access.
7645
7646 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
7647
7648         PR c++/26693
7649         * c-decl.c (clone_underlying_type): Move this ...
7650         * c-common.c (set_underlying_type): ... here.
7651         Also, make sure the function properly sets TYPE_STUB_DECL() on
7652         the newly created typedef variant type.
7653         (is_typedef_decl ): New entry point.
7654         * tree.h: Added a new member member_types_needing_access_check to
7655         struct tree_decl_non_common.
7656         (set_underlying_type): New entry point.
7657         (is_typedef_type): Likewise.
7658
7659 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
7660
7661         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
7662         Check whether two instructions have memory references that
7663         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
7664         are helper functions for traversing.
7665         * alias.h (insn_alias_sets_confilict_p): New prototypes.
7666         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
7667         not to draw dependency edge for instructions with non-conflicting
7668         alias sets.
7669
7670 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
7671
7672         PR other/38758
7673         * longlong.h: Update copyright years.  Use soft-fp license notice.
7674         Sync __clz_tab declaration with glibc.
7675
7676 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
7677
7678         PR target/30687
7679         * doc/extend.texi (syscall_linkage): New.
7680         (version_id): Modify.
7681
7682 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7683             Richard Guenther  <rguenther@suse.de>
7684
7685         PR tree-optimization/38747
7686         PR tree-optimization/38748
7687         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
7688         conversion if the base address is an indirect reference and the
7689         aliasing sets could cause issues.
7690
7691 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
7692
7693         * common.opt (fgraphite, fgraphite-identity): Add comment for
7694         explaining why these options are not documented.
7695
7696 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
7697
7698         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
7699         gimple_call_lhs is NULL.
7700
7701 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
7702
7703         PR target/38868
7704         * emit-rtl.c (adjust_address_1): Make sure memref is never
7705         overwritten.
7706
7707 2009-01-20  Ben Elliston  <bje@au.ibm.com>
7708
7709         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7710         const qualifier from arg parameter. Remove unnecessary cast to char *.
7711         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
7712         const qualifier from arg 2.
7713
7714 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
7715
7716         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
7717
7718 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
7719
7720         PR c/38869
7721         * rtl.h (reinit_regs): New prototype.
7722         * regclass.c: Include ira.h.
7723         (reinit_regs): New.
7724         * Makefile.in (regclass.o): Add ira.h.
7725         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
7726
7727 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
7728
7729         PR target/38736
7730         * c-common.c (handle_aligned_attribute): Use
7731         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
7732         default alignment value.
7733
7734         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
7735
7736         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
7737         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
7738
7739         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
7740         __BIGGEST_ALIGNMENT__.
7741
7742         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
7743
7744 2009-01-18  Richard Guenther  <rguenther@suse.de>
7745
7746         PR tree-optimization/38819
7747         * tree-flow.h (operation_could_trap_helper_p): Declare.
7748         * tree-eh.c (operation_could_trap_helper_p): Export.
7749         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
7750         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
7751         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
7752         are about to insert a possibly trapping instruction and fail
7753         in this case.
7754
7755 2009-01-18  Andreas Schwab  <schwab@suse.de>
7756
7757         * doc/install.texi (Configuration): Remove obsolete paragraph
7758         about use of --with-gnu-ld with --with-gnu-as.
7759
7760 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
7761
7762         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
7763         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
7764         Follow spelling conventions.
7765
7766 2009-01-18  Ben Elliston  <bje@au.ibm.com>
7767
7768         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
7769         C++ warning about implicit conversion from void * to struct
7770         bitmap_head_def *.
7771         (bitmap_obstack_free): Likewise for bitmap_element *.
7772         * Makefile.in (bitmap.o-warn): Remove.
7773
7774 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
7775
7776         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
7777
7778 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
7779             Tobias Grosser  <tobi.grosser@amd.com>
7780
7781         * graphite.c (graphite_trans_scop_block): Do not block single
7782         nested loops.
7783
7784 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
7785
7786         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
7787         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
7788         test with assertion.
7789
7790 2009-01-16  Richard Guenther  <rguenther@suse.de>
7791
7792         PR tree-optimization/38835
7793         PR middle-end/36227
7794         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
7795         and INT + PTR -> (INT)(PTR p+ INT) folding.
7796         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
7797
7798 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
7799
7800         PR target/38554
7801         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
7802         the subreg from a lowpart subreg if it is also casting the value.
7803
7804 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7805             Tobias Grosser  <tobi.grosser@amd.com>
7806
7807         * graphite.c (compare_prefix_loops): New.
7808         (build_scop_canonical_schedules): Rewritten.
7809         (graphite_transform_loops): Move build_scop_canonical_schedules
7810         after build_scop_iteration_domain.
7811
7812 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
7813             Tobias Grosser  <tobi.grosser@amd.com>
7814
7815         * graphite.c (add_conditions_to_domain): Add the loops to
7816         the dimension of the iteration domain.  Do copy the domain
7817         only when it exists.
7818         (build_scop_conditions_1): Do not call add_conditions_to_domain.
7819         (add_conditions_to_constraints): New.
7820         (can_generate_code_stmt, can_generate_code): Removed.
7821         (gloog): Do not call can_generate_code.
7822         (graphite_transform_loops): Call add_conditions_to_constraints
7823         after building the iteration domain.
7824
7825 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
7826
7827         PR tree-optimization/38789
7828         * tree-ssa-threadedge.c
7829         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
7830         __builtin_constant_p.
7831
7832 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
7833
7834         * dce.c (delete_unmarked_insns): Reversed the order that insns are
7835         examined before deleting them.
7836
7837 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
7838
7839         * function.c (aggregate_value_p): Correctly extract the function
7840         type from CALL_EXPR_FN lookup.
7841
7842 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
7843
7844         * config/picochip/picochip.c (picochip_override_options): Revert
7845         CFI asm flag disable commited previously.
7846
7847 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
7848             Tobias Grosser  <tobi.grosser@amd.com>
7849             Jan Sjodin  <jan.sjodin@amd.com>
7850
7851         * graphite.c (scan_tree_for_params): On substractions negate
7852         all the coefficients of the term.
7853         (clast_to_gcc_expression_red): New.  Handle reduction expressions
7854         of more than two operands.
7855         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
7856         (get_vdef_before_scop): Handle also the case of default definitions.
7857
7858 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
7859
7860         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
7861         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
7862         Also use them when walking CALL_INSN_FUNCTION_USAGE.
7863
7864 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
7865             Joey Ye  <joey.ye@intel.com>
7866
7867         PR middle-end/37843
7868         * cfgexpand.c (expand_stack_alignment): Don't update stack
7869         boundary nor check incoming stack boundary here.
7870         (gimple_expand_cfg): Update stack boundary and check incoming
7871         stack boundary here.
7872
7873 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
7874
7875         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
7876
7877 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
7878
7879         PR rtl-optimization/38245
7880         * calls.c (expand_call): Add stack arguments to
7881         CALL_INSN_FUNCTION_USAGE even for pure calls (when
7882         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
7883         in regs and partially in memory or BLKmode arguments.
7884         (emit_library_call_value_1): Add stack arguments to
7885         CALL_INSN_FUNCTION_USAGE even for pure calls (when
7886         ACCUMULATE_OUTGOING_ARGS).
7887         * dce.c: Include tm_p.h.
7888         (find_call_stack_args): New function.
7889         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
7890         argument.
7891         (mark_insn): Call find_call_stack_args for CALL_Ps.
7892         (prescan_insns_for_dce): Walk insns backwards in bb rather than
7893         forwards.  Allocate and free arg_stores bitmap if needed, pass it
7894         down to deletable_insn_p, don't mark stores set in arg_stores
7895         bitmap, clear the bitmap at the beginning of each bb.
7896         * Makefile.in (dce.o): Depend on $(TM_P_H).
7897
7898 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
7899
7900         PR target/22599
7901         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
7902         to make sure the insn is a conditional test (bug 22599).  Reformat a
7903         few long lines.
7904
7905 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
7906
7907         PR middle-end/38431
7908         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
7909         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
7910         (gloog): Do not call cleanup_tree_cfg.
7911         (graphite_transform_loops): Call cleanup_tree_cfg after all
7912         scops have been code generated.
7913
7914 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
7915         * doc/gty.texi (Invoking the garbage collector): Added new node
7916         and section documenting ggc_collect.
7917
7918 2009-01-14  Richard Guenther  <rguenther@suse.de>
7919
7920         PR tree-optimization/38826
7921         PR middle-end/38477
7922         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
7923         initialization notes only if we actually emitted a warning.
7924         (intra_create_variable_infos): Add constraints for a result decl
7925         that is passed by hidden reference.
7926         (build_pred_graph): Mark all related variables non-direct on
7927         address-taking.
7928
7929 2009-01-14  Nick Clifton  <nickc@redhat.com>
7930
7931         * ira-conflicts.c: Include addresses.h for the definition of
7932         base_reg_class.
7933         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
7934         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
7935
7936 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
7937
7938         PR target/38811
7939         * Makefile.in (ira-lives.o): Add except.h.
7940
7941         * ira-lives.c: Include except.h.
7942         (process_bb_node_lives): Process can_throw_internal.
7943
7944 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
7945
7946         PR rtl-optimization/38774
7947         * combine.c (simplify_set): When undoing cc_use change, don't do
7948         PUT_CODE on the newly created comparison, but instead put back the
7949         old comparison.
7950
7951 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
7952
7953         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
7954         values.  Remove duplicate arm8 entry.
7955
7956 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
7957
7958         PR tree-optimization/38786
7959         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
7960         the SSA_NAME case of expand_scalar_variables_expr.
7961         Set the type of an expression to the type of its assign statement.
7962         (expand_scalar_variables_expr): Also gather the scalar computation
7963         used to index the memory access.  Do not pass loop_p.
7964         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
7965         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
7966         the gimple_stmt_iterator where it inserts new code.
7967         Do not pass loop_p.
7968         (copy_bb_and_scalar_dependences): Do not pass loop_p.
7969         (translate_clast): Update call to copy_bb_and_scalar_dependences.
7970
7971 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
7972
7973         * graphite.h (debug_value): Removed.
7974         * graphite.c (debug_value): Removed.
7975
7976 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
7977
7978         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
7979         ldrd/strd with two 32-bit instructions.
7980
7981 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
7982
7983         * config/arm/arm.c (struct processors): Pass for speed down into
7984         cost helper functions.
7985         (const_ok_for_op): Handle COMPARE and inequality nodes.
7986         (arm_rtx_costs_1): Rewrite.
7987         (arm_size_rtx_costs): Update prototype.
7988         (arm_rtx_costs): Pass speed down to helper functions.
7989         (arm_slowmul_rtx_costs): Rework cost calculations.
7990         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
7991         (arm_9e_rtx_costs): Likewise.
7992
7993 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
7994
7995         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
7996         relocations of local symbols wider than UNITS_PER_WORD are not valid.
7997         (alpha_legitimize_address): Do not split local symbols wider than
7998         UNITS_PER_WORD into HIGH/LO_SUM parts.
7999
8000 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
8001
8002         PR bootstrap/38580
8003         * gcc.c (process_command): Replace call to execvp with calls
8004         to pex_one and exit.
8005
8006 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
8007
8008         PR target/29141
8009         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
8010         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
8011         variant for devices with 3-byte PC.
8012         (__tablejump_elpm__): New.
8013
8014 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
8015
8016         PR c/32041
8017         * c-parser.c (c_parser_postfix_expression): Allow `->' in
8018         offsetof member-designator, handle it as `[0].'.
8019
8020 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8021
8022         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
8023         function when not using named sections on targets with named sections
8024         if branch distance is less than 262132.
8025
8026 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
8027
8028         * combine.c (combine_instructions):  Recompute
8029         optimize_this_for_speed_p  for each BB in the main combine loop.
8030
8031 2009-01-12  Tomas Bily  <tbily@suse.cz>
8032
8033         PR middlend/38385
8034         * tree-loop-distribution.c (prop_phis): New function.
8035         (generate_builtin): Call prop_phis.
8036         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
8037
8038 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
8039
8040         PR tree-optimization/38807
8041         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
8042         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
8043
8044 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
8045
8046         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
8047         subreg of op0 to the original op0.
8048
8049 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
8050
8051         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
8052
8053 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
8054
8055         PR debug/7055
8056         * gcc/mips-tfile.c (parse_def): Fix parsing of def strings
8057         starting with digits.
8058
8059 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
8060
8061         PR target/38695
8062         * config/arm/arm.c (arm_is_long_call_p): Don't call
8063         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
8064
8065 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
8066
8067         * regrename.c (regrename_optimize): Fix dumping.
8068         (find_oldest_value_reg): Preserve REG_POINTER.
8069         (copy_hardreg_forward_1): Likewise.
8070
8071 2009-01-09  Diego Novillo  <dnovillo@google.com>
8072
8073         * gimple.h (struct gimple_statement_base) <uid>: Document
8074         the restrictions on its use.
8075         (gimple_uid): Tidy.
8076         (gimple_set_uid): Tidy.
8077
8078 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
8079
8080         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
8081         zero guard even if align_bytes != 0 and count is smaller than
8082         size_needed.
8083
8084 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
8085
8086         PR rtl-optimization/38495
8087         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
8088         (add_range_and_copies_from_move_list): Print all added ranges.
8089         Add ranges to memory optimized destination.
8090
8091 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
8092
8093         PR target/38686
8094         PR target/38708
8095         * config/i386/i386.c (override_options): Reject
8096         -mstringop-strategy=rep_8byte with -m32.
8097         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
8098         to 1.  Do count comparison against epilogue_size_needed at compile
8099         time even when count_exp was constant forced into register.  For
8100         size_needed don't jump to epilogue, instead just avoid aligning
8101         and invoke the body algorithm.  If need_zero_guard, add zero guard
8102         even if count is non-zero, but smaller than size_needed + number of
8103         bytes that could be stored for alignment.
8104         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
8105         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
8106         but smaller than size_needed + number of bytes that could be stored
8107         for alignment.  Compare size_needed with epilogue_size_needed instead
8108         of desired_align - align, don't adjust size_needed, pass
8109         epilogue_size_needed to the epilogue expanders.
8110
8111         PR c/35742
8112         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
8113
8114 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8115
8116         * pa.c (last_address): Change to unsigned.
8117         (update_total_code_bytes): Change argument to unsigned.  Don't
8118         check if insn addresses are set.
8119         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
8120         addresses are not set.
8121         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
8122
8123 2009-01-09  Nick Clifton  <nickc@redhat.com>
8124
8125         * config/sh/symbian.c: Replace uses of DECL_INLINE with
8126         DECL_DECLARED_INLINE_P.
8127
8128 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
8129
8130         PR middle-end/38347
8131         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
8132         GET_MODE (op0) in operand_subword_force calls.
8133
8134         PR middle-end/38771
8135         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
8136         fold_convert arg0 operands to TREE_TYPE (op0) first.
8137
8138 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
8139
8140         * params.def (ira-max-conflict-table-size): Decrease default value
8141         to 1000.
8142
8143 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
8144
8145         PR tree-optimization/37031
8146         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
8147         on parameter_set.
8148         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
8149         allocate it using gc instead of heap, use VEC_quick_push instead of
8150         VEC_safe_push.
8151         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
8152         instead of heap, use VEC_quick_push instead of VEC_safe_push.
8153         * tree-data-ref.h (struct access_matrix): Change matrix to gc
8154         allocated vector from heap allocated.
8155         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
8156         * tree-loop-linear.c (linear_transform_loops): Allocate nest
8157         vector only after perfect_loop_nest_depth call.
8158
8159 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
8160             Jan Sjodin  <jan.sjodin@amd.com>
8161
8162         PR tree-optimization/38559
8163         * graphite.c (debug_value, copy_constraint,
8164         swap_constraint_variables, scale_constraint_variable, ): New.
8165         (get_lower_bound, get_upper_bound): Removed.
8166         (graphite_trans_bb_strip_mine): Clean up this code that works
8167         only for constant number of iterations.  Fully copy upper and
8168         lower bound constraints, not only the constant part of them.
8169         * graphite.h (debug_value): Declared.
8170
8171 2009-01-08  Ira Rosen  <irar@il.ibm.com>
8172
8173         PR tree-optimization/37194
8174         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
8175         Don't add the cost of cost model guard in prologue to scalar
8176         outside cost in case of known number of iterations.
8177
8178 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
8179             Alan Modra  <amodra@bigpond.net.au>
8180
8181         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
8182         non-word-aligned REG+CONST addressing.
8183
8184 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
8185
8186         PR target/38706
8187         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
8188         free_after_compilation when outputting a thunk.
8189         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
8190         Do not call free_after_compilation here.
8191
8192 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
8193
8194         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
8195         (ix86_valid_target_attribute_inner_p): Ditto.
8196
8197 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
8198
8199         PR tree-optimization/38492
8200         PR tree-optimization/38498
8201         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
8202         * tree-chrec.h (scev_is_linear_expression): Declared.
8203         * graphite.c (graphite_cannot_represent_loop_niter): New.
8204         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
8205         (graphite_loop_normal_form): Use gcc_assert.
8206         (scan_tree_for_params): Use CASE_CONVERT.
8207         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
8208         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
8209         Use gcc_assert.  Discard scops that contain unhandled cases.
8210         (build_scop_conditions): Return a boolean status for unhandled cases.
8211         (strip_mine_profitable_p): Print the loop number, not its depth.
8212         (is_interchange_valid): Pass the depth of the loop nest, don't
8213         recompute it wrongly.
8214         (graphite_trans_bb_block): Same.
8215         (graphite_trans_bb_block): Print tentative of loop blocking.
8216         (graphite_trans_scop_block): Do not print that the loop has been
8217         blocked.
8218         (graphite_transform_loops): Do not handle scops that contain condition
8219         scalar phi nodes.
8220
8221 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
8222
8223         AVX Programming Reference (December, 2008)
8224         * config/i386/avxintrin.h (_mm256_stream_si256): New.
8225         (_mm256_stream_pd): Likewise.
8226         (_mm256_stream_ps): Likewise.
8227
8228         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
8229         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
8230         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
8231         (bdesc_special_args): Add __builtin_ia32_movntdq256,
8232         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
8233         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
8234         (ix86_expand_special_args_builtin): Likewise.
8235
8236         * config/i386/sse.md (AVXMODEDI): New.
8237         (avx_movnt<mode>): Likewise.
8238         (avx_movnt<mode>): Likewise.
8239         (<sse>_movnt<mode>): Remove AVX support.
8240         (sse2_movntv2di): Likewise.
8241
8242 2009-01-07  Richard Guenther  <rguenther@suse.de>
8243
8244         PR middle-end/38751
8245         * fold-const.c (extract_muldiv): Remove obsolete comment.
8246         (fold_plusminus_mult_expr): Undo MINUS_EXPR
8247         to PLUS_EXPR canonicalization for the canonicalization.
8248
8249 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
8250
8251         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
8252         hosted cross-compilers generating less efficient code.
8253
8254 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8255
8256         * function.h (rtl_data): Add a dbr_scheduled_p field.
8257         * reorg.c (dbr_schedule): Set it.
8258         (gate_handle_delay_slots): Check it.
8259         * config/mips/mips.c (mips_base_delayed_branch): Delete.
8260         (mips_reorg): Check flag_delayed_branch instead of
8261         mips_base_delayed_branch.
8262         (mips_override_options): Don't set mips_base_delayed_branch
8263         or flag_delayed_branch.
8264
8265 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8266
8267         PR rtl-optimization/38426.
8268         * ira.c (ira): Set current_function_is_leaf earlier.
8269
8270 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
8271
8272         PR rtl-optimization/38722
8273         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
8274         too early, only set a flag and modify after last possible
8275         undo_all point.
8276
8277 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
8278
8279         PR c/34252
8280         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
8281         * real.c (decimal_single_format): Correct values of emin and emax.
8282         (decimal_double_format): Ditto.
8283         (decimal_quad_format): Ditto.
8284         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
8285         computation of DECnn_MIN and DECnn_MAX for corrected values of
8286         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
8287         __DECnn_MIN__, and adjust its computation for the corrected value
8288         of emin.
8289
8290 2009-01-06  Jan Hubicka  <jh@suse.cz>
8291
8292         PR target/38744
8293         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
8294
8295 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
8296
8297         * doc/contrib.texi (Contributors): Slightly adjust the end note.
8298         Add Robert Clark to the list of testers.
8299
8300 2009-01-06  Jan Hubicka  <jh@suse.cz>
8301             Kai Tietz  <kai.tietz@onevision.com>
8302
8303         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
8304         * config/i386/i386.c (ix86_expand_call): Add clobbers.
8305
8306 2009-01-06  Jan Hubicka  <jh@suse.cz>
8307             Kai Tietz  <kai.tietz@onevision.com>
8308
8309         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
8310         for w64 ABI.
8311         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
8312         (ix86_nsaved_regs): Count only general purpose regs.
8313         (ix86_nsaved_sseregs): New.
8314         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
8315         to 16 for w64; compute padding and size of sse reg save area.
8316         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
8317         general purpose regs.
8318         (ix86_emit_save_sse_regs_using_mov): New.
8319         (ix86_expand_prologue): Save SSE regs if needed.
8320         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
8321         (ix86_emit_restore_sse_regs_using_mov): New.
8322         (ix86_expand_epilogue): Save SSE regs if needed.
8323
8324 2009-01-06  Jan Hubicka  <jh@suse.cz>
8325             Kai Tietz  <kai.tietz@onevision.com>
8326
8327         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
8328         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
8329         functions when accumulate outgoing args is off.
8330
8331 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
8332
8333         PR bootstrap/38742
8334         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
8335         before using pseudos_have_intersected_live_ranges_p.
8336
8337         * ira-int.h (ira_assert): Always define.
8338
8339 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
8340
8341         AVX Programming Reference (December, 2008)
8342         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
8343         (_mm256_permute2_pd): Likewise.
8344         (_mm_permute2_ps): Likewise.
8345         (_mm256_permute2_ps): Likewise.
8346         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
8347         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
8348
8349         * config/i386/i386.c (ix86_builtins): Remove
8350         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
8351         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
8352         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
8353         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
8354         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
8355         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
8356         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
8357         __builtin_ia32_vpermil2ps256.
8358         (ix86_init_mmx_sse_builtins): Updated.
8359         (ix86_expand_args_builtin): Likewise.
8360
8361 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8362
8363         * pa.c (output_call): Relocate non-jump insns in the delay slot of
8364         long absolute calls when generating PA 2.0 code.
8365
8366 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
8367
8368         PR rtl-optimization/38583
8369         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
8370
8371         * params.def (ira-max-conflict-table-size): New.
8372
8373         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
8374
8375         * ira.h (ira_conflicts_p): New external definition.
8376
8377         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
8378         table.  Report this.  Return result of building.
8379         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
8380         building conflict table.
8381
8382         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
8383         (ira_color): Use ira_conflicts_p.
8384
8385         * global.c: Include ira.h.
8386         (pseudo_for_reload_consideration_p, build_insn_chain): Use
8387         ira_conflicts_p.
8388
8389         * Makefile.in (global.o): Add ira.h.
8390
8391         * ira-build.c (mark_all_loops_for_removal,
8392         propagate_some_info_from_allocno): New.
8393         (remove_unnecessary_allocnos): Call
8394         propagate_some_info_from_allocno.
8395         (remove_low_level_allocnos): New.
8396         (remove_unnecessary_regions): Add parameter.  Call
8397         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
8398         parameter to remove_unnecessary_regions.
8399         (ira_build): Remove all regions but root if the conflict table was
8400         not built.  Update conflict hard regs for allocnos crossing calls.
8401
8402         * ira.c (ira_conflicts_p): New global.
8403         (ira): Define and use ira_conflicts_p.
8404
8405         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
8406         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
8407         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
8408
8409 2009-01-06  Ben Elliston  <bje@au.ibm.com>
8410
8411         * gengtype-lex.l (YY_NO_INPUT): Define.
8412
8413 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8414
8415         PR c/34911
8416         * c-common.c (handle_vector_size_attribute): Also reject
8417         BOOLEAN_TYPE types.
8418
8419 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
8420
8421         PR tree-optimization/38492
8422         * graphite.c (rename_map_elt, debug_rename_elt,
8423         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
8424         rename_map_elt_info, eq_rename_map_elts,
8425         get_new_name_from_old_name, bb_in_sese_p): Moved around.
8426         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
8427         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
8428         (sese_build_livein_liveouts): New.
8429         (new_sese, free_sese): New.
8430         (new_scop): Call new_sese.
8431         (free_scop): Call free_sese.
8432         (rename_variables_from_edge, rename_phis_end_scop): Removed.
8433         (register_old_new_names): Renamed register_old_and_new_names.
8434         (register_scop_liveout_renames, add_loop_exit_phis,
8435         insert_loop_close_phis, struct igp,
8436         default_liveout_before_guard, add_guard_exit_phis,
8437         insert_guard_phis, copy_renames): New.
8438         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
8439         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
8440         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
8441         (scop_adjust_phis_for_liveouts): New.
8442         (gloog): Call scop_adjust_phis_for_liveouts.
8443
8444         * graphite.h (struct sese): Documented.  Added fields liveout,
8445         num_ver and livein.
8446         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
8447         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
8448         (struct scop): Added field liveout_renames.
8449         (SCOP_LIVEOUT_RENAMES): New.
8450
8451 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
8452
8453         PR tree-optimization/38510
8454         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
8455         (translate_clast): Call recompute_all_dominators before
8456         graphite_verify.
8457         (gloog): Call recompute_all_dominators before graphite_verify.
8458
8459 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
8460             Jan Sjodin  <jan.sjodin@amd.com>
8461
8462         PR tree-optimization/38500
8463         * graphite.c (create_sese_edges): Call fix_loop_structure after
8464         splitting blocks.
8465
8466 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
8467
8468         * config.gcc: Add m32r*-*-rtems*.
8469         * config/m32r/rtems.h: New file.
8470
8471 2009-01-05  Ben Elliston  <bje@au.ibm.com>
8472
8473         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
8474         (.po.pox): Likewise.
8475         (po/gcc.pot): Likewise.
8476
8477 2009-01-04  David S. Miller  <davem@davemloft.net>
8478
8479         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
8480         (STARTING_FRAME_OFFSET): Always set to zero.
8481
8482 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
8483
8484         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
8485         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
8486         fixed-point types, and vectors of the same.
8487
8488 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
8489
8490         * config/mips/sync.md (*mb_barrier): Rename to...
8491         (*memory_barrier): ...this.
8492
8493 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
8494
8495         * doc/extend.texi (Function Attributes): Move @cindex after @item
8496         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
8497         and put in alphabetical order. Fix 'target' name and put in order.
8498         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
8499         typos.
8500
8501 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
8502
8503         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
8504         (memory_barrier): Expand as unspec instead of unspec_volatile.
8505         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8506         (*memory_barrier): Define as unspec instead of unspec_volatile.
8507         Use (match_dup 0) as input operand.
8508
8509         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
8510         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
8511         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
8512         scratch register.  Remove operand 1.
8513         (*stbar): Define as unspec instead of unspec_volatile.
8514         Use (match_dup 0) as input operand, remove (const_int 8).
8515         (*membar): Define as unspec instead of unspec_volatile.
8516         Use (match_dup 0) as input operand, remove input operand 2.
8517
8518         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
8519         (memory_barrier): Expand as unspec instead of unspec_volatile.
8520         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8521         (*memory_barrier): Define as unspec instead of unspec_volatile.
8522         Use (match_dup 0) as input operand.
8523
8524         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
8525         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8526         Set volatile flag on operand 0.
8527         (*memory_barrier): New insn pattern.
8528
8529         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
8530         insn operands.
8531         (*memory_barrier): Use (match_dup 0) as input operand.
8532
8533         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
8534         Remove mem:BLK from insn operands.  Use Pmode scratch register.
8535         Set volatile flag on operand 0.
8536         (*mb_internal): New insn pattern.
8537
8538         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
8539
8540 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
8541
8542         PR middle-end/38586
8543         * function.c (struct temp_slot): Move to the section of the file
8544         that deals with temp slots.  Remove field 'address'.
8545         (temp_slot_address_table): New hash table of address -> temp slot.
8546         (struct temp_slot_address_entry): New struct, items for the table.
8547         (temp_slot_address_compute_hash, temp_slot_address_hash,
8548         temp_slot_address_eq, insert_temp_slot_address): Support functions
8549         for the new table.
8550         (find_temp_slot_from_address): Rewrite to use the new hash table.
8551         (remove_unused_temp_slot_addresses): Remove addresses of temp
8552         slots that have been made available.
8553         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
8554         worker function for remove_unused_temp_slot_addresses.
8555         (assign_stack_temp_for_type): Don't clear the temp slot address list.
8556         Add the temp slot address to the address -> temp slot map.
8557         (update_temp_slot_address): Update via insert_temp_slot_address.
8558         (free_temp_slots): Call remove_unused_temp_slot_addresses.
8559         (pop_temp_slots): Likewise.
8560         (init_temp_slots): Allocate the address -> temp slot map, or empty
8561         the map if it is already allocated.
8562         (prepare_function_start): Initialize temp slot processing.
8563
8564 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
8565
8566         PR middle-end/38584
8567         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
8568         Calculate the size of all stack vars assuming no packing of stack
8569         vars will happen, replacing a quadratic algorithm with a linear one.
8570
8571 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
8572
8573         PR target/38707
8574         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
8575         can't be used.
8576
8577 2009-01-03  Diego Novillo  <dnovillo@google.com>
8578
8579         * doc/contrib.texi: Update contributions.
8580
8581 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
8582
8583         PR c++/38705
8584         * builtins.c (fold_builtin_memory_op): Give up if either operand
8585         is volatile.  Set srctype or desttype to non-qualified version
8586         of the other type.
8587
8588         PR c/38700
8589         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
8590         and FUNCTION_DECLs.
8591
8592 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
8593
8594         PR rtl-optimization/35805
8595         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
8596         problem if fast dce is able to remove any instructions.
8597         * dce.c (dce_process_block): Fix dump message.
8598
8599 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
8600
8601         PR 33649
8602         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
8603
8604 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
8605
8606         PR middle-end/38690
8607         * tree-flow.h (op_code_prio, op_prio): New prototypes.
8608         * tree-pretty-print.c (op_code_prio): New function.
8609         (op_prio): No longer static.  Use op_code_prio.
8610         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
8611         Use op_prio and op_code_prio to determine if () should be
8612         printed around operand(s) or not.
8613
8614         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
8615         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
8616         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
8617         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
8618         pp_character instead of pp_string for single letter printing.
8619
8620 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8621
8622         * doc/extend.texi: Fix '#pragma GCC option' typo.
8623
8624 2009-01-02  Richard Guenther  <rguenther@suse.de>
8625
8626         * doc/install.texi (--enable-checking): Mention different
8627         default for stage1.
8628         (--enable-stage1-checking): Document.
8629
8630 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
8631
8632         PR middle-end/30142
8633         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
8634         case to be an error.
8635
8636 2009-01-02  Ben Elliston  <bje@au.ibm.com>
8637
8638         * config/fp-bit.h (pack_d): Constify argument.
8639         * config/fp-bit.c (makenan): Constify return type. Remove casts.
8640         (isnan): Constify argument.
8641         (isinf): Likewise.
8642         (iszero): Likewise.
8643         (pack_d): Likewise.
8644         (_fpadd_parts): Constify return type.
8645         (_fpmul_parts): Likewise.
8646         (_fpdiv_parts): Likewise.
8647
8648 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
8649
8650         PR c/36489
8651         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
8652         warn about overwriting initializer with side-effects or
8653         -Woverride-init if !IMPLICIT.
8654         (output_init_element): Likewise.  Pass IMPLICIT down to
8655         add_pending_init.
8656         (process_init_element): Add IMPLICIT argument.  Pass it down
8657         to output_init_element.
8658         (push_init_element, pop_init_level, set_designator): Adjust
8659         process_init_element callers.
8660         (set_nonincremental_init, set_nonincremental_init_from_string):
8661         Adjust add_pending_init callers.
8662         (output_pending_init_elements): Adjust output_init_element callers.
8663         * c-tree.h (process_init_element): Adjust prototype.
8664         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
8665         process_init_element callers.
8666
8667 \f
8668 Copyright (C) 2009 Free Software Foundation, Inc.
8669
8670 Copying and distribution of this file, with or without modification,
8671 are permitted in any medium without royalty provided the copyright
8672 notice and this notice are preserved.