OSDN Git Service

bab05f5bf7982dbf55a2bd6e2e4db248a11b280d
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-06-19  Ian Lance Taylor  <iant@google.com>
2
3         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
4         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
5         version.
6
7         * c-decl.c (finish_decl): If -Wc++-compat, warn about
8         uninitialized const.
9
10 2009-06-19  Ian Lance Taylor  <iant@google.com>
11
12         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
13         all uses.
14
15         * c-decl.c (in_struct, struct_types): Remove.
16         (struct c_binding): Add in_struct field.
17         (c_binding_ptr): Define type, along with VEC.
18         (struct c_struct_parse_info): Define.
19         (struct_parse_info): New static variable.
20         (bind): Initialize in_struct field.
21         (start_struct): Remove enclosing_in_struct and
22         enclosing_struct_types parameters.  Add
23         enclosing_struct_parse_info parameter.  Change all callers.  Set
24         struct_parse_info rather than in_struct and struct_types.
25         (grokfield): If -Wc++-compat and there is a symbol binding for the
26         field name, set the in_struct flag and push it on the
27         struct_parse_info->fields vector.
28         (warn_cxx_compat_finish_struct): New static function.
29         (finish_struct): Remove enclosing_in_struct and
30         enclosing_struct_types parameters.  Add
31         enclosing_struct_parse_info parameter.  Change all callers.  Don't
32         set C_TYPE_DEFINED_IN_STRUCT here.  Call
33         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
34         parameter.  Only push on struct_types if warn_cxx_compat.
35         (finish_enum): Only push on struct_types if warn_cxx_compat.
36         (declspecs_add_type): Add loc parameter.  Change all callers.
37         Change all error calls to error_at.  Pass loc, not input_location,
38         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
39         defined in a struct.  If -Wc++-compat and parsing a struct, record
40         that a typedef name was used.
41         * c-parser.c (c_parser_declspecs): Get location to pass to
42         declspecs_add_type.
43         (c_parser_struct_or_union_specifier): Update calls to start_struct
44         and finish_struct.
45         * c-tree.h (struct c_struct_parse_info): Declare.
46         (finish_struct, start_struct): Update declarations.
47         (declspecs_add_type): Update declaration.
48
49 2009-06-19  Ian Lance Taylor  <iant@google.com>
50
51         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
52         variable with an anonymous type.
53
54 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
55
56         * see.c: Remove for real.
57
58 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
59
60         * optabs.h (enum optab_index): Add new OTI_significand.
61         (significand_optab): Define corresponding macro.
62         * optabs.c (init_optabs): Initialize significand_optab.
63         * genopinit.c (optabs): Implement significand_optab using
64         significand?f2 patterns.
65         * builtins.c (expand_builtin_mathfn): Handle
66         BUILT_IN_SIGNIFICAND{,F,L}.
67         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
68         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
69
70         * config/i386/i386.md (significandxf2, significand<mode>2): New
71         expanders to implement significandf, significand and significandl
72         built-ins as inline x87 intrinsics.
73
74 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
75
76         * config/avr/avr.c (avr_override_options): Remove setting value of
77         PARAM_INLINE_CALL_COST.
78
79 2009-06-18  Richard Henderson  <rth@redhat.com>
80
81         PR 40488
82         * tree-pass.h (TDF_ASMNAME): New.
83         * tree-dump.c (dump_options): Add asmname.
84         * doc/invoke.texi: Document it.
85
86         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
87         (dump_decl_name): ...here.
88         (dump_function_name): New flags arg; mind TDF_ASMNAME.
89         (dump_generic_node): Update dump_function_name calls.
90         (print_call_name): New flags arg; update all dump calls.
91         * diagnostic.h (print_call_name): Update.
92         * gimple-pretty-print.c (dump_gimple_call): Update.
93
94 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
95
96         PR target/40470
97         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
98
99 2009-06-18  Diego Novillo  <dnovillo@google.com>
100
101         * doc/plugins.texi: Document plugin_is_GPL_compatible.
102         * plugin.c (str_license): Declare.
103         (try_init_one_plugin): Assert that the symbol
104         'plugin_is_GPL_compatible' exists.
105
106 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
107
108         * see.c: Remove.
109         * Makefile.in (OBJS-common): Remove see.o.
110         (see.o): Remove.
111         * common.opt (fsee): Mark as preserved for backward compatibility.
112         * opts.c (common_handle_option): Add OPT_fsee to the backward 
113         compatibility section.
114         * passes.c (init_optimization_passes, pass_see): Remove pass.
115         * timevar.def (TV_SEE): Remove.
116         * tree-pass.h (pass_see): Remove declaration.
117         * doc/invoke.texi (-fsee): Remove documentation.
118         
119 2009-06-18  Martin Jambor  <mjambor@suse.cz>
120
121         * tree-sra.c: Include statistics.h
122         (sra_stats): New variable.
123         (sra_initialize): Clear sra_stats.
124         (create_access_replacement): Increment sra_stats.replacements.
125         (get_access_replacement): Do not return twice.
126         (analyze_all_variable_accesses): Increment statistics counter by the
127         number of scalarized aggregates.
128         (generate_subtree_copies): Increment sra_stats.subtree_copies.
129         (sra_modify_expr): Increment sra_stats.exprs.
130         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
131         (sra_modify_assign): Increment sra_stats.exprs,
132         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
133         (perform_intra_sra): Update statistics counters.
134         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
135
136 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
137
138         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
139         (arm_scalar_mode_supported_p): New function.
140
141 2009-06-18  Paul Brook  <paul@codesourcery.com>
142             Sandra Loosemore  <sandra@codesourcery.com>
143
144         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
145         (__extendhfsf2, __truncsfhf2): Define.
146         * config/arm/fp16.c: New file.
147         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
148         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
149
150 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
151
152         * doc/extend.texi (Half-Precision): New section.
153         * doc/invoke.texi (Option Summary): List -mfp16-format.
154         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
155         * config/arm/arm.opt (mfp16-format=): New.
156         * config/arm/arm.c: Include intl.h.
157         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
158         (TARGET_INVALID_RETURN_TYPE): Redefine.
159         (TARGET_PROMOTED_TYPE): Redefine.
160         (TARGET_CONVERT_TO_TYPE): Redefine.
161         (arm_fp16_format): Define.
162         (all_fpus): Add entry for neon-fp16.
163         (fp_model_for_fpu): Likewise.
164         (struct fp16_format): Declare.
165         (all_fp16_formats): Define.
166         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
167         functions.
168         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
169         and no ldrh.
170         (arm_legitimate_index_p): Treat HFmode like HImode.
171         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
172         (coproc_secondary_reload_class): Special-case HFmode.
173         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
174         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
175         (arm_init_fp16_builtins): New.
176         (arm_init_builtins): Call it.
177         (arm_invalid_parameter_type): New.
178         (arm_invalid_return_type): New.
179         (arm_promoted_type): New.
180         (arm_convert_to_type).
181         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
182         format.
183         (arm_emit_fp16_const): New function.
184         (arm_mangle_type): Mangle __fp16 as "Dh".
185         * config/arm/arm.h (TARGET_VFPD32): Make it know about
186         FPUTYPE_NEON_FP16.
187         (TARGET_NEON_FP16): New.
188         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
189         (enum fputype): Add FPUTYPE_NEON_FP16.
190         (enum arm_fp16_format_type): Declare.
191         (arm_fp16_format): Declare.
192         (LARGEST_EXPONENT_IS_NORMAL): Define.
193         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
194         * config/arm/arm-modes.def (HFmode): Define.
195         * config/arm/vfp.md: (*movhf_vfp): New.
196         (extendhfsf2): New.
197         (truncsfhf2): New.
198         * config/arm/arm.md: (fpu): Add neon_fp16.
199         (floatsihf2, floatdihf2): New.
200         (fix_trunchfsi2, fix_trunchfdi2): New.
201         (truncdfhf2): New.
202         (extendhfdf2): New.
203         (movhf): New.
204         (*arm32_movhf): New.
205         (*thumb1_movhf): New.
206         (consttable_2): Add check for HFmode constants.
207         (consttable_4): Handle HFmode constants.
208
209 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
210
211         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
212
213 2009-06-17  Olivier Hainque  <hainque@adacore.com>
214
215         * collect2.c (main): Use CONST_CAST2 to perform char ** to
216         const char ** conversion in AIX specific section.
217         
218 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
219
220         * config/i386/i386.c (ix86_special_builtin_type): Remove
221         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
222         (bdesc_special_args): Updated.
223         (ix86_init_mmx_sse_builtins): Likewise.
224         (ix86_expand_special_args_builtin): Likewise.
225
226 2009-06-17  Richard Henderson  <rth@redhat.com>
227
228         * tree-pretty-print.c (maybe_dump_asm_name): New.
229         (dump_decl_name): Use it.
230         (PRINT_FUNCTION_NAME): Merge into...
231         (dump_function_name): ... here.  Use maybe_dump_asm_name.
232
233 2009-06-17  Cary Coutant  <ccoutant@google.com>
234
235         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
236         Change caller.
237         * debug.c (struct gcc_debug_hooks): Change placeholder for
238         source_line hook.
239         (debug_nothing_int_charstar_int): Replaced by...
240         (debug_nothing_int_charstar_int_bool): ...this.
241         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
242         source_line prototype.
243         (debug_nothing_int_charstar_int): Replaced by...
244         (debug_nothing_int_charstar_int_bool): ...this.
245         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
246         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
247         Output is_stmt operand when necessary.
248         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
249         (notice_source_line): Add is_stmt parameter.
250         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
251         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
252         Change callers.
253         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
254         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
255
256 2009-06-17  Ian Lance Taylor  <iant@google.com>
257
258         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
259         Change all uses.
260         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
261         call uses.
262
263 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
264
265         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
266         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
267         tree_strip_sign_nop_conversions and
268         tree_ssa_strip_useless_type_conversions rather than stripping
269         the operations here.
270         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
271         Declare them.
272         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
273         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
274         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
275         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
276         functions.
277
278 2009-06-17  Michael Eager  <eager@eagercon.com>
279
280         * config/rs6000/constraints.md (register_constraint "d"): New.
281         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
282         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
283         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
284         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
285         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
286         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
287         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
288         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
289         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
290         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
291         __fctiwz): Same.
292         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
293         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
294         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
295         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
296         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
297         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
298         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
299         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
300         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
301         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
302         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
303         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
304         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
305         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
306
307 2009-06-16  Ian Lance Taylor  <iant@google.com>
308
309         * profile.c (total_num_never_executed): Don't define.
310         (compute_branch_probabilities): Don't count or print
311         num_never_executed.
312         (init_branch_prob): Don't set total_num_never_executed.
313         (end_branch_prob): Don't print total_num_never_executed.
314
315 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
316
317         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
318
319 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
320
321         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
322         (nabstd2_fpr): Same.
323
324 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
325
326         * expr.c (expand_assignment): Change complex type check.
327
328 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
329
330         * doc/plugins.texi (Building GCC plugins): Added new section. 
331
332 2009-06-17  Ian Lance Taylor  <iant@google.com>
333
334         * c-pch.c (get_ident): Don't set size of templ array.
335         (pch_init): Don't set size of partial_pch array.
336
337         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
338         string constant to intialize an array whose size is the length of
339         the string.
340
341 2009-06-17  Richard Guenther  <rguenther@suse.de>
342
343         PR tree-optimization/40389
344         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
345         to addressable types.
346         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
347
348 2009-06-17  Richard Guenther  <rguenther@suse.de>
349
350         PR middle-end/40460
351         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
352         if there is no evolution of left in the loop bail out.
353         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
354         chrec_fold_multiply.
355
356 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
357             Janis Johnson  <janis187@us.ibm.com>
358
359         PR target/39254
360         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
361         for the symbol ref of a constant that is the source of a move
362         - nor for any other not-obvious-label-ref constants.
363
364 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
365
366         * plugin.c (position_pass): Skip newly inserted pass during list
367         traversal to avoid repeated insertion.
368
369 2009-06-16  Ian Lance Taylor  <iant@google.com>
370
371         * vec.h (VEC_stack_alloc): Define different version if
372         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
373         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
374         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
375         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
376
377 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
378
379         * config.gcc (extra_headers): Add ia32intrin.h for x86.
380
381         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
382         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
383         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
384         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
385         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
386         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
387         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
388         (bdesc_special_args): Add __builtin_ia32_rdtsc and
389         __builtin_ia32_rdtscp.
390         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
391         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
392         and __builtin_ia32_rorhi.
393         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
394         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
395         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
396         (ix86_expand_args_builtin): Likewise.
397         (ix86_expand_special_args_builtin): Likewise.
398
399         * config/i386/i386.md (UNSPECV_RDTSCP): New.
400         (UNSPECV_RDTSC): Likewise.
401         (UNSPECV_RDPMC): Likewise.
402         (*bsr): Renamed to ...
403         (bsr): This
404         (*bsr_rex64): Renamed to ...
405         (bsr_rex64): This.
406         (rdpmc): New.
407         (*rdpmc): Likewise.
408         (*rdpmc_rex64): Likewise.
409         (rdtsc): Likewise.
410         (*rdtsc): Likewise.
411         (*rdtsc_rex64): Likewise.
412         (rdtscp): Likewise.
413         (*rdtscp): Likewise.
414         (*rdtscp_rex64): Likewise.
415
416         * config/i386/ia32intrin.h: New.
417
418         * config/i386/x86intrin.h: Include <ia32intrin.h>.
419
420 2009-06-16  Ian Lance Taylor  <iant@google.com>
421
422         * ira-build.c (copy_info_to_removed_store_destinations):
423         Initialize parent_a.
424
425 2009-06-16  Ian Lance Taylor  <iant@google.com>
426
427         * c-decl.c (grokdeclarator): Change size_varies to bool.
428
429 2009-06-16  Ian Lance Taylor  <iant@google.com>
430
431         * sel-sched.c: Make forward declarations of move_op_hooks and
432         fur_hooks explicitly extern.
433
434 2009-06-16  Ian Lance Taylor  <iant@google.com>
435
436         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
437         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
438
439 2009-06-16  Ian Lance Taylor  <iant@google.com>
440
441         * resource.c (mark_referenced_resources): Change
442         include_delayed_effects parameter to bool.  Change all callers.
443         (mark_end_of_function_resources): Likewise.
444         * reorg.c (insn_references_resource_p): Likewise.
445         (insn_sets_resource_p): Likewise.
446         * resource.h (mark_referenced_resources): Update declaration.
447         (mark_end_of_function_resources): Update declaration.
448
449 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
450
451         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
452
453 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
454
455         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
456         GCC can bootstrap on AIX with GNU Binutils 2.20.
457
458 2009-06-16  Ian Lance Taylor  <iant@google.com>
459
460         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
461
462 2009-06-16  Ian Lance Taylor  <iant@google.com>
463
464         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
465         inline, not extern inline.
466         (exact_log2): Likewise.
467         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
468         test CLZ_HWI.
469         (exact_log2): Likewise, but don't test CTZ_HWI.
470
471 2009-06-16  Ian Lance Taylor  <iant@google.com>
472
473         * bitmap.c (bitmap_clear): Don't declare as inline.
474         * gimple.c (gimplify_assign): Likewise.
475         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
476         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
477         (sched_scan_info): Remove duplicate definition.
478
479 2009-06-16  Ian Lance Taylor  <iant@google.com>
480
481         * c-common.c (skip_evaluation): Don't define.
482         (c_inhibit_evaluation_warnings): Define global variable.
483         (overflow_warning): Check c_inhibit_evaluation_warnings rather
484         than skip_evaluation.
485         (convert_and_check, warn_for_div_by_zero): Likewise.
486         * c-common.h (skip_evaluation): Don't declare.
487         (c_inhibit_evaluation_warnings): Declare.
488         * c-parser.c (c_parser_typeof_specifier): Set
489         c_inhibit_evaluation_warnings rather than skip_evaluation.
490         (c_parser_conditional_expression): Likewise.
491         (c_parser_binary_expression): Likewise.
492         (c_parser_sizeof_expression): Likewise.
493         (c_parser_alignof_expression): Likewise.
494         * c-typeck.c (build_indirect_ref): Check
495         c_inhibit_evaluation_warnings rather than skip_evaluation.
496         (build_conditional_expr, build_binary_op): Likewise.
497
498 2009-06-16  Richard Guenther  <rguenther@suse.de>
499
500         * tree-ssa-alias.c (is_escape_site): Remove.
501         * tree-ssa-alias.h (enum escape_type): Remove.
502         (is_escape_site): Likewise.
503         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
504         via casts and asms without deferring to is_escape_site.
505
506 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
507
508         PR middle-end/40446
509         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
510         use gen_lowpart if op0 has complex mode.
511
512 2009-06-16  Richard Guenther  <rguenther@suse.de>
513
514         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
515         variables add them to ESCAPED.
516         (find_func_aliases): Do not make all indirectly stored values escaped.
517
518 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
519
520         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
521         make_decl_one_only.
522
523 2009-06-16  Martin Jambor  <mjambor@suse.cz>
524
525         PR tree-optimization/40432
526         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
527         check whether we need to force gimple register operand.
528
529 2009-06-16  Martin Jambor  <mjambor@suse.cz>
530
531         PR tree-optimization/40413
532         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
533         build_ref_for_offset.
534         (propagate_subacesses_accross_link): Fix a typo in a comment.
535
536 2009-06-16  Ira Rosen  <irar@il.ibm.com>
537
538         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
539         with additional parameter.
540         * tree-vectorizer.h (enum vect_def_type): Add new value
541         vect_nested_cycle.
542         (enum vect_relevant): Add comments.
543         (vect_is_simple_reduction): Add new argument.
544         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
545         Detect nested cycles.
546         (vect_is_simple_reduction): Update documentation, add an argument to
547         distinguish inner-loop reduction from nested cycle, detect nested
548         cycles, fix printings and indentation, don't swap operands in case
549         of nested cycle.
550         (get_initial_def_for_reduction): Handle subtraction.
551         (vect_create_epilog_for_reduction): Add new argument to specify
552         reduction variable.
553         (vect_finalize_reduction): Handle subtraction, fix comments.
554         (vectorizable_reduction): Handle nested cycles. In case of nested
555         cycle keep track of the reduction variable position. Call 
556         vect_is_simple_reduction with additional parameter. Use original 
557         statement code in reduction epilogue for nested cycle. Call
558         vect_create_epilog_for_reduction with additional parameter.
559         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
560         inner-loop vectorization.
561         (vect_recog_widen_sum_pattern): Likewise.
562         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
563         and reductions.
564         (vect_mark_stmts_to_be_vectorized): Likewise.
565         (vect_get_vec_def_for_operand): Handle nested cycles.
566
567 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
568
569         * doc/invoke.texi (Debugging Options): Fix option index entries
570         for -fdump-statistics, -frandom-seed add entries for
571         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
572         (FRV Options): Fix entries for -mTLS, -mtls.
573         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
574         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
575         (M68hc1x Options): Fix @itemx for -mnominmax.
576         (MCore Options): Fix entry for -mno-lsim.
577         (MMIX Options): Fix entry for -mabi=mmixware.
578         (PDP-11 Options): Fix entry for -mbcopy-builtin.
579
580 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
581
582         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
583         Mention the plugin mode of gengtype.
584         * doc/gty.texi (Source Files Containing Type Information): Likewise.
585         * gengtype.c: Updated copyright.
586         (plugin_files, nb_plugin_files) Added new static variables.
587         (measure_input_list) Care about plugin_files.
588         (write_rtx_next): Added early return in plugin mode.
589         (create_file): Updated copyright year in generated file. Added
590         asserts.
591         (oprintf): Added early return if NULL outf.
592         (get_output_file_with_visibility): Care of plugin_files.
593         (get_output_file_name): May return null.
594         (write_local): Added early return.
595         (put_mangled_filename): Ditto.
596         (finish_root_table): Added check for base_files.
597         (write_roots): Care about null when plugins.
598         (main): Added plugin mode.
599
600 2009-06-15  Ian Lance Taylor  <iant@google.com>
601
602         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
603         * gcov.c (read_count_file): Add braces around variables declared
604         before label.
605
606         * c.opt (Wjump-misses-init): New warning.
607         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
608         -Wall and -Wc++-compat if not already set.
609         (c_common_post_options): Clear warn_jump_misses_init if it was not
610         set.
611         * c-decl.c (struct c_binding): Change type field to a union with
612         new label field.  Make it the first field in the struct.  Update
613         references to type to use u.type instead.
614         (struct c_spot_bindings): Define.
615         (struct c_goto_bindings): Define.
616         (c_goto_bindings_p): Define, along with VECs.
617         (struct c_label_vars): Define.
618         (struct c_scope): Add has_label_bindings field.
619         (bind_label, set_spot_bindings): New static functions.
620         (decl_jump_unsafe, update_spot_bindings): New static functions.
621         (update_label_decls): New static function.
622         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
623         Update binding u.label field to shadowed field.
624         (c_binding_start_stmt_expr): New function.
625         (c_binding_end_stmt_expr): New function.
626         (pushdecl): Don't call c_begin_vm_scope.
627         (make_label): Add defining and p_label_vars parameters.  Change
628         all callers.
629         (lookup_label): Correct test for whether a label has not yet been
630         defined.  Call bind_label rather than bind.
631         (warn_about_goto): New static function.
632         (lookup_label_for_goto): New function.
633         (declare_label): Call bind_label rather than bind.
634         (check_earlier_gotos): New static function.
635         (define_label): Don't give errors about jumping into statement
636         expressions or scopes of variably modified types.  Call
637         set_spot_bindings and check_earlier_gotos.  Call bind_label
638         instead of bind.  Don't set label_context_stack_se or
639         label_context_stack_vm.
640         (c_get_switch_bindings): New function.
641         (c_release_switch_bindings): New function.
642         (c_check_switch_jump_warnings): New function.
643         (start_function): Don't set label_context_stack_se or
644         label_context_stack_vm.
645         (finish_function): Likewise.
646         * c-typeck.c (label_context_stack_se): Don't define.
647         (label_context_stack_vm): Don't define.
648         (c_finish_goto_label): Call lookup_label_for_goto rather than
649         lookup_label.  Don't give errors about jumping into a statement
650         expression or the scope of a variably modified type.  Don't set
651         label_context_stack_se or label_context_stack_vm.
652         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
653         fields.  Add bindings field.
654         (c_start_case): Don't set deleted fields.  Set bindings field.
655         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
656         or blocked_vm.  Call c_check_switch_jump_warnings.
657         (c_finish_case): Don't test blocked_stmt_expr field.  Call
658         c_release_switch_bindings.
659         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
660         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
661         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
662         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
663         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
664         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
665         (c_begin_vm_scope, c_end_vm_scope): Don't define.
666         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
667         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
668         (C_DECL_UNJUMPABLE_VM): Don't define.
669         (C_DECL_UNDEFINABLE_VM): Don't define.
670         (struct c_label_list): Don't define.
671         (struct c_label_context_se): Don't define.
672         (struct c_label_context_vm): Don't define.
673         (struct c_spot_bindings): Declare.
674         (c_bindings_start_stmt_expr): Declare.
675         (c_bindings_end_stmt_expr): Declare.
676         (lookup_label_for_goto): Declare.
677         (c_get_switch_bindings, c_release_switch_bindings): Declare.
678         (c_check_switch_jump_warnings): Declare.
679         (label_context_stack_se, label_context_stack_vm): Don't declare.
680         (c_finish_goto_label): Update declaration.
681         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
682         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
683         (Warning Options): Document -Wjump-misses-init.
684
685 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
686
687         * tree-object-size.c (addr_object_size): Fix a pasto in the last
688         change.
689
690 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
691
692         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
693
694 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
695
696         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
697
698 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
699
700         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
701
702 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
703
704         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
705         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
706         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
707         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
708         * dwarf2asm.c (dw2_force_const_mem): Update call to
709         make_decl_one_only.
710         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
711         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
712         * langhooks.c (lhd_comdat_group): Remove.
713         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
714         * tree.h (DECL_COMDAT_GROUP): New.
715         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
716         (tree_decl_with_vis): Add comdat_group. Remove one_only.
717         (make_decl_one_only): Change signature.
718         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
719         make_decl_one_only.
720         (make_decl_one_only): Change signature.
721         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
722
723 2009-06-15  Richard Guenther  <rguenther@suse.de>
724
725         PR middle-end/40439
726         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
727
728 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
729
730         * tree-ssa-math-opts.c: Remove extra divide.
731
732 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
733
734         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
735
736 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
737
738         * passes.c: Add bswap pass.
739         * tree-pass.h: Add pass_optimize_bswap declaration.
740         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
741         Include rtl.h, expr.h and optabs.h for optab_handler check.
742         (struct symbolic_number, pass_optimize_bswap): New definition.
743         (do_shift_rotate, verify_symbolic_number_p): New functions.
744         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
745         (gate_optimize_bswap): New function.
746         * tree.c (widest_int_cst_value): New function.
747         * tree.h (widest_int_cst_value): Prototype added.
748
749 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
750
751         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
752         REG_EQUAL/REG_EQUIV notes.
753
754 2009-06-14  Richard Guenther  <rguenther@suse.de>
755
756         PR middle-end/40389
757         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
758         has its address taken if NRV was applied and it is addressable.
759         * tree-ssa-structalias.c (get_constraint_for_address_of): New
760         function split out from ...
761         (get_constraint_for_1): ... here.
762         (handle_rhs_call): Use it to mark the return slot escaped if
763         it is addressable and NRV was applied.
764
765 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
766
767         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
768         Change first argument type to location_t.
769         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
770         Do not set input_location.
771         Use loc instead of input_location throughout.
772
773 2009-06-13  Richard Guenther  <rguenther@suse.de>
774
775         PR tree-optimization/40421
776         * tree-predcom.c (should_unroll_loop_p): Remove.
777         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
778
779 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
780
781         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
782         Add location argument.
783
784 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
785
786         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
787         build_decl.
788         * config/s390/s390.c (s390_build_builtin_va_list): Same.
789         (s390_gimplify_va_arg): Pass location to create_artificial_label.
790         * config/spu/spu-protos.h: Add location to
791         spu_resolve_overloaded_builtin.
792         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
793         spu_build_builtin_va_list.
794         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
795         argument.  Pass location to build_function_call_vec.
796         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
797         build_decl.
798         (emit_fpu_switch): Same.
799         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
800         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
801         to build_decl and create_artificial_label.
802         (xtensa_gimplify_va_arg_expr): Same.
803         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
804         (xstormy16_gimplify_va_arg_expr): Same.
805         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
806         * config/arm/arm.c (arm_build_builtin_va_list): Same.
807         * config/mips/mips.c (mips_build_builtin_va_list): Same.
808         (mips16_build_function_stub): Same.
809         (mips16_build_call_stub): Same.
810
811 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
812
813         PR target/40327
814         * arm/constraints.md (Pa, Pb): New constraints.
815         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
816         split pattern to deal with them.
817
818 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
819
820         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
821         fix index entry for -Xpreprocessor.
822
823 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
824
825         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
826         Add location argument to build_decl call.
827         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
828         (rs6000_init_builtins): Same.
829         (spe_init_builtins): Same.
830         (rs6000_gimplify_va_arg): Add location argument to
831         create_artificial_label call.
832
833 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
834
835         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
836         * combine-stack-adj.c (pass_stack_adjustments): Use it.
837         * Makefile.in: Fix GGC dependency for gcse.o.
838
839 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
840
841         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
842         * gimple-pretty-print.c (dump_gimple_stmt): Same.
843         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
844         created.
845         * c-parser.c (c_parser_binary_expression): Use current column while
846         building binary operations.
847         * common.opt (fshow-column): Enable by default.
848         * tree-vrp.c (check_array_ref): Use warning_at.
849         (check_array_bounds): Use location from call back if expr has no
850         location.
851         * tree.h: Add location argument to maybe_fold_*.
852         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
853         (maybe_fold_offset_to_array_ref): Add location argument and use it.
854         (maybe_fold_offset_to_component_ref): Same.
855         (maybe_fold_offset_to_reference): Same.
856         (maybe_fold_offset_to_address): Same.
857         (maybe_fold_stmt_indirect): Same.
858         (maybe_fold_stmt_addition): Same.
859         (fold_stmt_r): Pass location to maybe_fold_*.
860         (fold_gimple_assign): Same.
861         * c-tree.h: Add location argument to finish_decl,
862         default_function_array_conversion, store_init_value.
863         * c-decl.c (define_label): Use error_at.
864         (c_make_fname_decl): Pass location to finish_decl.
865         (finish_decl): New location argument.
866         (build_compound_literal): Pass location to store_init_value.
867         (grokdeclarator): Pass location to finish_decl.
868         (grokfield): Same.
869         * c-typeck.c (array_to_pointer_conversion): New location argument.
870         (function_to_pointer_conversion): Same.
871         (default_function_array_conversion): Same.
872         (parser_build_unary_op): Pass location to overflow_warning.
873         (parser_build_binary_op): Same.  Use warning_at.
874         (build_unary_op): Pass location to array_to_pointer_conversion.
875         (build_c_cast): Pass location to digest_init.
876         (build_modify_expr): New location argument.
877         (convert_for_assignment): Same.
878         (store_init_value): Same.
879         (digest_init): Same.
880         (output_init_element): Pass location to digest_init and
881         array_to_pointer_conversion.
882         (c_finish_return): Pass location to convert_for_assignment.
883         * gimplify.c (gimplify_conversion): Pass location to
884         maybe_fold_offset_to_address.
885         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
886         to maybe_fold_stmt_addition.
887         * c-omp.c (c_finish_omp_atomic): Pass new location to
888         build_modify_expr.
889         (c_finish_omp_for): Same.
890         * c-common.c (overflow_warning): New argument.
891         * c-common.h: New argument to build_modify_expr, overflow_warning.
892         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
893         finish_decl.
894         (c_parser_initializer): Pass location to
895         default_function_array_conversion.
896         (c_parser_initelt): Same.
897         (c_parser_initval): Same.
898         (c_parser_asm_operands): Same.
899         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
900         (c_parser_conditional_expression): Same.
901         (c_parser_binary_expression): Add location info to stack.  Use it.
902         (c_parser_unary_expression): Pass location to
903         default_function_array_conversion, parser_build_unary_op,
904         build_indirect_ref, c_parser_postfix_expression_after_primary.
905         (c_parser_postfix_expression_after_primary): New location argument.
906         Use it.
907         (c_parser_expression_conv): Pass location to
908         default_function_array_conversion.
909         (c_parser_expr_list): Same.
910         (c_parser_omp_atomic): Same.
911         (c_parser_omp_for_loop): Same.
912         * c-tree.h: (struct c_declarator): Add comment to id_loc.
913         (build_array_declarator): New argument.
914         * c-decl.c (build_array_declarator): Add location argument.
915         (grokdeclarator): Set id_loc for cdk_array.
916         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
917         build_array_declarator.
918         * tree.c (build_omp_clause): Add location argument.
919         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
920         (OMP_CLAUSE_LOCATION): New macro.
921         (struct tree_omp_clause): Add location field.
922         (build_omp_clause): Add argument.
923         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
924         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
925         build_omp_clause.
926         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
927         (cp_parser_omp_clause_collapse): Same.
928         (cp_parser_omp_clause_default): Same.
929         (cp_parser_omp_clause_if): Same.
930         (cp_parser_omp_clause_nowait): Same.
931         (cp_parser_omp_clause_num_threads): Same.
932         (cp_parser_omp_clause_ordered): Same.
933         (cp_parser_omp_clause_schedule): Same.
934         (cp_parser_omp_clause_untied): Same.
935         (cp_parser_omp_for_loop): Same.
936         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
937         * c-tree.h (c_start_case): Add location argument.
938         (c_process_expr_stmt): Same.
939         (c_finish_goto_*): Same.
940         * tree-parloops.c (initialize_reductions): Pass location to
941         build_omp_clause.
942         (create_parallel_loop): Same.
943         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
944         (gfc_trans_omp_reduction_list): Same.
945         (gfc_trans_omp_clauses): Same.
946         (gfc_trans_omp_do): Same.
947         * c-typeck.c (c_finish_goto_label): Same.
948         (c_finish_goto_ptr): New location argument.
949         (c_start_case): Same.
950         (emit_side_effect_warnings): Same.
951         (c_process_expr_stmt): Same.
952         (c_finish_stmt_expr): Same.
953         (c_finish_omp_clauses): Use error_at instead of error.
954         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
955         build_omp_clause.
956         * c-omp.c (c_split_parallel_clauses): New location argument.
957         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
958         to build_omp_clause.
959         (convert_local_reference_stmt): Same.
960         (convert_gimple_call): Same.
961         * c-common.h (c_split_parallel_clauses): New argument.
962         * c-parser.c (c_parser_statement_after_labels): Pass location to
963         c_finish_goto_label.
964         (c_parser_switch_statement): Pass location to c_start_case.
965         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
966         and c_process_expr_stmt.
967         (c_parser_omp_variable_list): Add location argument.
968         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
969         (c_parser_omp_clause_default): Same.
970         (c_parser_omp_clause_if): Same.
971         (c_parser_omp_clause_num_threads): Same.
972         (-c_parser_omp_clause_ordered): Same.
973         (c_parser_omp_clause_reduction): Pass location to
974         c_parser_omp_variable_list.
975         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
976         (c_parser_omp_clause_untied): Same.
977         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
978         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
979
980         * c-tree.h (check_for_loop_decls, undeclared_variable,
981         build_component_ref, build_array_ref, build_external_ref,
982         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
983         build_conditional_expr, build_compound_expr, c_cast_expr,
984         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
985         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
986         argument.
987         * c-semantics.c (build_stmt): Same.
988         (build_case_label): Same.
989         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
990         (undeclared_variable): New argument.
991         (make_label): Same.
992         (lookup_label): Pass location on down.
993         (define_label): Same.
994         (finish_decl): Same.
995         (build_compound_literal): Same.
996         (finish_struct): Same.
997         (finish_function): Do not set location here.
998         (check_for_loop_decls): New argument.
999         * tree.c (save_expr): Set location.
1000         (build_empty_stmt): New argument.
1001         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
1002         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
1003         * builtins.c (gimplify_va_arg_expr): Use locations.
1004         (expand_builtin_sync_operation): Same.
1005         * c-typeck.c (build_component_ref): New argument.
1006         (build_array_ref): Same.
1007         (build_external_ref): Same.
1008         (c_expr_sizeof_expr): Same.
1009         (c_expr_sizeof_type): Same.
1010         (parser_build_unary_op): Same.
1011         (build_conditional_expr): Same.
1012         (build_compound_expr): Pass location on down.
1013         (build_compound_expr): New argument.
1014         (build_c_cast): Same.
1015         (c_cast_expr): Same.
1016         (build_asm_expr): Same.
1017         (c_finish_return): Same.
1018         (c_process_expr_stmt): Pass location on down.
1019         (c_finish_stmt_expr): New argument.
1020         (push_clenaup): Same.
1021         (c_finish_omp_parallel): Same.
1022         (c_finish_omp_task): Same.
1023         * gimplify.c (gimplify_call_expr): Pass location on down.
1024         * c-omp.c (c_finish_omp_master): New argument.
1025         (c_finish_omp_critical): Same.
1026         (c_finish_omp_ordered): Same.
1027         (c_finish_omp_barrier): Same.
1028         (-c_finish_omp_taskwait): Same.
1029         (c_finish_omp_atomic): Same.
1030         (c_finish_omp_flush): Same.
1031         * tree-inline.c (copy_tree_body_r): Pass location on down.
1032         (inline_forbidden_p): Remove use of input_location.
1033         * c-gimplify.c (c_build_bind_expr): New argument.
1034         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
1035         (c_sizeof_or_alignof_type): New argument.
1036         (c_alignof_expr): Same.
1037         (build_va_arg): Same.
1038         (c_add_case_label): Same.
1039         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
1040         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
1041         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
1042         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
1043         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
1044         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
1045         New argument.
1046         * stub-objc.c (objc_build_selector_expr): Same.
1047         (objc_build_throw_stmt): Same.
1048         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
1049         (c_parser_initelt): Same.
1050         (c_parser_compound_statement): Same.
1051         (c_parser_compound_statement_nostart): Same.
1052         (c_parser_label): Same.
1053         (c_parser_statement_after_labels): Same.
1054         (c_parser_if_body): Same.
1055         (c_parser_else_body): Same.
1056         (c_parser_if_statement): Same.
1057         (c_parser_switch_statement): Same.
1058         (c_parser_while_statement): Same.
1059         (c_parser_do_statement): Same.
1060         (c_parser_for_statement): Same.
1061         (c_parser_asm_statement): Same.
1062         (c_parser_conditional_expression): Same.
1063         (c_parser_binary_expression): Same.
1064         (c_parser_cast_expression): Same.
1065         (c_parser_unary_expression): Same.
1066         (c_parser_sizeof_expression): Same.
1067         (c_parser_alignof_expression): Same.
1068         (c_parser_postfix_expression): Same.
1069         (c_parser_expression): Same.
1070         (c_parser_objc_receiver): Same.
1071         (c_parser_omp_variable_list): Same.
1072         (c_parser_omp_structured_block): Same.
1073         (c_parser_omp_atomic): New argument.
1074         (c_parser_omp_barrier): Same.
1075         (c_parser_omp_critical): Same.
1076         (c_parser_omp_flush): Pass location on down.
1077         (c_parser_omp_for_loop): New argument.
1078         (c_parser_omp_for): Same.
1079         (c_parser_omp_master): Same.
1080         (c_parser_omp_ordered): Same.
1081         (c_parser_omp_sections_scope): Same.
1082         (c_parser_omp_sections): Same.
1083         (c_parser_omp_parallel): Same.
1084         (c_parser_omp_single): Same.
1085         (c_parser_omp_task): Same.
1086         (c_parser_omp_taskwait): Pass location on down.
1087         (c_parser_omp_construct): Same.
1088         (c_parser_omp_threadprivate): Same.
1089         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
1090         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
1091         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
1092         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
1093         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
1094         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
1095         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
1096         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
1097         config/i386/i386.c, stmt.c:
1098         Add location argument to the following function definitions and/or
1099         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
1100         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
1101         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
1102         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
1103         do_case, c_finish_bc_stmt, build_compound_literal,
1104         build_function_call.
1105         * c-decl.c (build_compound_literal): Add location argument.
1106         Make all diagnostic calls use location.
1107         (start_struct): Same.
1108         (finish_struct): Same.
1109         (start_enum): Same.
1110         (build_enumerator): Same.
1111         (start_function): Same.
1112         (grokdeclarator): Make all diagnostic calls use location.
1113         (store_parm_decls_oldstyle): Same.
1114         * c-typeck.c (build_function_call): Add location argument.
1115         Make all diagnostic calls use location.
1116         (do_case): Same.
1117         (c_finish_bc_stmt): Same.
1118         * tree-nested.c (get_trampoline_type): Add argument.
1119         Pass location to build_decl.
1120         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
1121         * rtl.h (RTL_LOCATION): New.
1122         * c-common.c (c_add_case_label): Add location argument.
1123         Make all diagnostic calls use location.
1124         * c-common.h: Add location argument to make_fname_decl, do_case,
1125         c_add_case_label, build_function_call, resolve_overloaded_builtin.
1126         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
1127         Set it appropriately for every case.  Pass enum_loc to start_enum
1128         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
1129         parser_xref_tag.
1130         (c_parser_struct_or_union_specifier): Save location.  Use it for
1131         start_struct, finish_struct, and parser_xref_tag.
1132
1133 2009-06-12  Ian Lance Taylor  <iant@google.com>
1134
1135         * fold-const.c (fold_unary): Rename local variable and to and_expr.
1136
1137         * c-opts.c (c_common_handle_option): For -Wc++-compat set
1138         cpp_opts->warn_cxx_operator_names.
1139
1140 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1141
1142         PR tree-opt/38865
1143         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
1144         is returns NULL and OP is a VCE, look through the VCE.
1145
1146 2009-06-12  Ian Lance Taylor  <iant@google.com>
1147
1148         PR bootstrap/40430
1149         * collect2.c (main): Use CONST_CAST2 in code inside #if
1150         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
1151
1152 2009-06-12  Joey Ye  <joey.ye@intel.com>
1153
1154         PR middle-end/39146
1155         * cfgexpand.c (get_decl_align_unit): Update
1156         max_used_stack_slot_alignment with align instead of
1157         stack_alignment_needed.
1158
1159         * function.c (assign_stack_local_1): Update
1160         max_used_stack_slot_alignment with alignment_in_bits instead
1161         of stack_alignment_needed.
1162         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
1163         here.
1164
1165 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
1166
1167         * dwarf2out.c (last_var_location_insn): New variable.
1168         (dwarf2out_end_epilogue): Clear last_var_location_insn.
1169         (dwarf2out_var_location): Don't record anything after last real
1170         insn.  Only change labels if there were any real instructions
1171         in between last note and this one, or if changed sections.
1172
1173 2009-06-11  Richard Henderson  <rth@redhat.com>
1174
1175         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
1176         note when storing the frame pointer in a register.
1177         (FRP): Don't redefine to nothing for epilogue.
1178         (alpha_expand_epilogue): Mark register and sp restores.
1179         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
1180
1181         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
1182         when gen_lowpart is needed.
1183
1184 2009-06-11  Richard Henderson  <rth@redhat.com>
1185
1186         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
1187
1188         * dwarf2out.c (need_data_align_sf_opcode): New.
1189         (div_data_align): Move earlier.
1190         (def_cfa_1, reg_save): Use it.
1191
1192 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
1193
1194         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
1195         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
1196         (ix86_handle_option): Handle OPT_mcrc32.
1197         (ix86_target_string): Add -mcrc32.
1198         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
1199
1200         * config/i386/i386.h (TARGET_CRC32): New.
1201
1202         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
1203         (sse4_2_crc32di): Likewise.
1204
1205         * config/i386/i386.opt (mcrc32): New.
1206
1207         * doc/invoke.texi: Document -mcrc32.
1208
1209 2009-06-11  Richard Henderson  <rth@redhat.com>
1210
1211         * common.opt (gdwarf-): Accept a version number.
1212         * doc/invoke.texi (gdwarf-): Update docs.
1213         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
1214         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
1215         version level, and record it.
1216
1217         * dwarf2.h (DW_CIE_VERSION): Remove.
1218         * dwarf2out.c (DWARF_VERSION): Remove.
1219         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
1220         (output_call_frame_info): Use CIE version 3 for dwarf3,
1221         or if the return register column is out of range for version 1.
1222         (dwarf_stack_op_name): Add all dwarf3 values.
1223         (DEBUG_PUBTYPES_SECTION): New.
1224         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
1225         encoding change for dwarf3.
1226         (output_die) [dw_val_class_die_ref]: Likewise.
1227         (output_compilation_unit_header): Emit correct version for dwarf3.
1228         (output_line_info): Likewise.
1229         (output_pubnames): Update for DWARF_VERSION removal.
1230         (output_aranges): Likewise.
1231         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
1232         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
1233         (dwarf2out_finish): Likewise.
1234
1235 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
1236
1237         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
1238         in r148403.
1239
1240 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
1241
1242         PR c/39252
1243         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
1244         * builtins.c (expand_builtin_unreachable): New function.
1245         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
1246         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
1247         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
1248         successors.
1249         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
1250         searching for missing barriers.
1251
1252 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1253
1254         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
1255         when -fprofile-generate* was passed.
1256         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
1257
1258 2009-06-11  Anthony Green  <green@moxielogic.com>
1259
1260         * config/moxie/moxie.md: Define length attribute for all instructions.
1261         (rCC): Define.
1262         (*b<cond:code>): Support limited branch ranges for new PC-relative
1263         branch instructions.
1264         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
1265
1266 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
1267
1268         * config/i386/i386.c (min_insn_size): Use get_attr_length
1269         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
1270         For __asm return 0.
1271
1272         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
1273         instead of emit_insn_before.
1274
1275 2009-06-10  Ian Lance Taylor  <iant@google.com>
1276
1277         PR bootstrap/40408
1278         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
1279         GIMPLE_SWITCH.
1280
1281 2009-06-10  Revital Eres  <eres@il.ibm.com>
1282
1283         * passes.c (init_optimization_passes): Reschedule
1284         predictive-commoning pass before complete unroll pass.
1285
1286 2009-06-10  Martin Jambor  <mjambor@suse.cz>
1287
1288         * cgraph.c (cgraph_node_can_be_local_p): New function.
1289         (cgraph_make_node_local): New function.
1290         * cgraph.h (cgraph_node_can_be_local_p): Declare.
1291         (cgraph_make_node_local): Declare.
1292
1293 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
1294
1295         * tree.h (tree_base): Add packed_flag and user_align fields.
1296         Decrease size of spare field.
1297         (TYPE_USER_ALIGN): Use user_align from tree_base.
1298         (DECL_USER_ALIGN): Likewise.
1299         (TYPE_PACKED): Use packed_flag from tree_base.
1300         (DECL_PACKED): Likewise.
1301         (tree_type): Delete packed_flag and user_align fields.  Widen
1302         precision field.  Widen mode field and shuffle fields to align
1303         mode on an 8-bit boundary.
1304         (tree_decl_common): Delete decl_flag_1 and user_align fields.
1305         Renumber decl_flag_* fields.  Fix comments.  Widen
1306         decl_common_unused field.
1307         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
1308         (DECL_EXTERNAL): Likewise.
1309         (DECL_BIT_FIELD): Likewise.
1310         (DECL_NONADDRESSABLE_P): Likewise.
1311         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
1312         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
1313
1314 2009-06-10  Ian Lance Taylor  <iant@google.com>
1315
1316         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
1317         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
1318         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
1319         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
1320         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
1321         DEF_VEC_ALLOC_FUNC_P.
1322         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
1323         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
1324         DEF_VEC_ALLOC_FUNC_O.
1325         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
1326         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
1327         DEF_VEC_ALLOC_FUNC_I.
1328         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
1329         (vec_stack_p_reserve_exact_1): Declare.
1330         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
1331         (vec_stack_free): Declare.
1332         (VEC_stack_alloc): Define.
1333         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
1334         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
1335         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
1336         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
1337         for void_p.
1338         (stack_vecs): New static variable.
1339         (vec_stack_p_reserve_exact_1): New function.
1340         (vec_stack_o_reserve_1): New static function.
1341         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
1342         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
1343         (vec_stack_free): New function.
1344         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
1345         (VEC_df_ref_stack_alloc): Define.
1346         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
1347         DEF_VEC_ALLOC_P_STACK.
1348         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
1349         (struct df_collection_rec): Change _vec fields to VEC.  Remove
1350         _use fields.
1351         (df_free_collection_rec): Adjust for new fields.
1352         (df_insn_rescan): Use new df_collection_rec fields.
1353         (df_notes_rescan, df_canonize_collection_rec): Likewise.
1354         (df_ref_create_structure, df_ref_record): Likewise.
1355         (df_get_conditional_uses, df_get_call_refs): Likewise.
1356         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
1357         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
1358         (df_record_exit_block_uses, df_bb_verify): Likewise.
1359         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
1360         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
1361         Remove count parameter.  Change return type to void.  Change all
1362         callers.
1363         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
1364         Remove count parameter.  Change return type to void.  Change all
1365         callers.
1366         (df_install_refs): Change old_vec parameter to VEC.  Remove count
1367         parameter.  Change all callers.
1368         (df_install_mws): Change old_vec parameter to VEC.  Remove count
1369         parameter.  Change all callers.
1370         (df_refs_verify): Change new_rec parameter to VEC.  Change call
1371         callers.
1372         (df_mws_verify): Likewise.
1373
1374 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
1375
1376         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
1377
1378 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
1379
1380         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
1381
1382 2009-06-10  Anthony Green  <green@moxielogic.com>
1383
1384         * config/moxie/crti.asm: New file.
1385         * config/moxie/crtn.asm: New file.
1386         * config/moxie/moxie.c: New file.
1387         * config/moxie/moxie.h: New file.
1388         * config/moxie/sfp-machine.h: New file.
1389         * config/moxie/moxie-protos.h: New file.
1390         * config/moxie/t-moxie: Created.
1391         * config/moxie/t-moxie-softfp: Created.
1392         * config/moxie/moxie.md: Created.
1393         * config/moxie/constraints.md: Created.
1394         * config.gcc: Add moxie support.
1395         * doc/md.texi (Machine Constraints): Add moxie constraints.
1396         * doc/contrib.texi (Contributors): Mention moxie port.
1397         * doc/install.texi (Specific): Mention the moxie port.
1398
1399 2009-06-09  Ian Lance Taylor  <iant@google.com>
1400
1401         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
1402         compiling with C++.
1403         * optabs.c (optab_table): Only use designated initializers if
1404         HAVE_DESIGNATED_INITIALIZERS is defined.
1405         (convert_optab_table): Likewise.
1406         (init_optabs): Always call init_insn_codes if
1407         HAVE_DESIGNATED_INITIALIZERS is not defined.
1408
1409 2009-06-09  Ian Lance Taylor  <iant@google.com>
1410
1411         * targhooks.c (default_builtin_vectorized_function): Change fn
1412         parameter to unsigned int.
1413         (default_builtin_vectorized_conversion): Change code parameter to
1414         unsigned int.
1415         (default_builtin_reciprocal): Change fn parameter to unsigned int.
1416         * targhooks.h: Update declarations.
1417         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
1418         parameter to unsigned int.
1419
1420         * c-typeck.c (comptypes_check_enum_int): New static function.
1421         (comptypes_internal): Add enum_and_int_p parameter.  Change all
1422         callers.
1423         (comp_target_types): Add location parameter.  Change all callers.
1424         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
1425         Change all callers.
1426         (function_types_compatible_p, type_lists_compatible_p): Likewise.
1427         (build_conditional_expr): Add colon_loc parameter.  Change all
1428         callers.
1429         (convert_for_assignment): Add location parameter.  Change all callers.
1430         * c-parser.c (c_parser_conditional_expression): Pass location of
1431         colon to build_conditional_expr.
1432         * c-tree.h (build_conditional_expr): Update declaration.
1433
1434 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1435
1436         * graphite.c: Revert previous patch.
1437
1438 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
1439
1440         PR bootstrap/40103
1441         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
1442
1443 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1444
1445         * tree-ssa-loop-prefetch.c
1446         (loop_prefetch_arrays): Fixed a portability problem in printf format
1447         string.
1448
1449 2009-06-09  Martin Jambor  <mjambor@suse.cz>
1450
1451         PR tree-optimization/40351
1452         * tree-sra.c (propagate_subacesses_accross_link): Check that a
1453         refrence to a potential artifical subaccess can be constructed.
1454
1455 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1456
1457         * config/sh/sh-protos.h (sh_optimization_options): Declare.
1458         (sh_override_options): Likewise.
1459         * config/sh/sh.c: Include params.h.
1460         (sh_optimization_options): New.
1461         (sh_override_options): Likewise.
1462         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
1463         (OVERRIDE_OPTIONS): Use sh_override_options.
1464
1465 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
1466
1467         * dwarf2out.c (emit_cfa_remember): New variable.
1468         (add_fde_cfi): If emit_cfa_remember, recurse to add
1469         DW_CFA_remember_state first.
1470         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
1471         instead just set emit_cfa_remember.
1472
1473 2009-06-08  Jan Hubicka  <jh@suse.cz>
1474
1475         PR debug/40126
1476         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
1477
1478 2009-06-08  Jan Hubicka  <jh@suse.cz>
1479
1480         PR middle-end/39834
1481         * cgraphunit.c (save_inline_function_body): Do not copy transform
1482         hooks for saved inline bodies.
1483         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
1484         for given function.
1485
1486 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
1487
1488         * jump.c (returnjump_p): Handle delayed branches.  Add missing
1489         function comment.
1490
1491 2009-06-08  Jan Hubicka  <jh@suse.cz>
1492
1493         PR middle-end/40102
1494         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
1495         original node might've been modified.
1496         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
1497
1498 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
1499
1500         * tree-object-size.c (addr_object_size): Add OSI argument.
1501         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
1502         (compute_builtin_object_size, expr_object_size): Adjust callers.
1503         (plus_stmt_object_size): Call addr_object_size instead of
1504         compute_builtin_object_size.
1505
1506 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1507             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1508         
1509         * tree-ssa-loop-prefetch.c 
1510         (gather_memory_references): Introduced a counter for the number of 
1511         memory references.
1512         (anything_to_prefetch_p): Introduced a counter for the number of 
1513         prefetches.
1514         (is_loop_prefetching_profitable): New function with a cost model 
1515         for prefetching.
1516         (loop_prefetch_arrays): Use the new cost model to determine if 
1517         prefetching is profitable.
1518         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
1519         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1520         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
1521         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1522         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
1523         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1524         
1525 2009-06-08  Michael Matz  <matz@suse.de>
1526
1527         PR debug/40012
1528         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
1529         partitions use the same.
1530         (expand_one_var): Deal with DECL_RTL sometimes begin set also
1531         for basevars of SSA_NAMEs.
1532         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
1533         to not expand them twice.
1534         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
1535         multiple places.
1536
1537 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
1538
1539         * common.opt (fcompare-debug=, fcompare-debug-second): New.
1540         (fdump-final-insns=, gtoggle): New.
1541         * doc/invoke.texi: Document them.
1542         * final.c (rest_of_clean_state): Dump final insn stream.
1543         * gcc.c (invoke_as): Hook in -fcompare-debug.
1544         (static_spec_functions): Add compare-debug-dump-opt,
1545         compare-debug-self-opt and compare-debug-auxbase-opt.
1546         (compare_debug, compare_debug_second, compare_debug_opt): New.
1547         (switches_debug_check, n_switches_debug_check): New.
1548         (debug_auxbase_opt, debug_check_temp_file): New.
1549         (process_command): Handle -fno-compare-debug, -fcompare-debug and
1550         -fcompare-debug=*.
1551         (do_self_spec): Handle arguments after switches.
1552         (do_spec_1): Add .gk extension to temp file basenames for compare.
1553         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
1554         (cc1_options): Use it instead of normal auxbase computation for
1555         the second compare-debug compilation.
1556         (compare_files): New.
1557         (main): Set up and implement compare debug mode.
1558         (compare_debug_dump_opt_spec_function): New.
1559         (compare_debug_self_opt_spec_function): New.
1560         (compare_debug_auxbase_opt_spec_function): New.
1561         * toplev.c (process_options): Handle flag_gtoggle,
1562         flag_dump_final_insns.
1563         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
1564         during -fcompare-debug-second compilation.
1565
1566 2009-06-07  Ian Lance Taylor  <iant@google.com>
1567
1568         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
1569         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
1570
1571         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
1572         with no default node.  Change warning with %H to warning_at.
1573         Don't clear warn_switch around case checking.
1574         * doc/invoke.texi (Warning Options): Clarify distinction between
1575         -Wswitch and -Wswitch-enum.
1576
1577 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1578
1579         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
1580
1581 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1582
1583         * gbl-ctors.h: Add header guard.
1584
1585 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1586
1587         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
1588         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
1589         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
1590         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
1591         prototypes for removed functions.
1592         (expressions_equal_p): Move to ...
1593         * tree-ssa-sccvn.h: ... here and ...
1594         * matrix-reorg.c: ... adjust includes.
1595
1596 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1597
1598         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
1599
1600 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1601
1602         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
1603         (finish_function): Remove erroneous whitespace.
1604
1605 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1606
1607         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
1608         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
1609
1610 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1611
1612         * errors.c (internal_error): Commentary typo fix.
1613         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
1614         * tree-ssa-pre.c: Ditto.
1615
1616 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1617
1618         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
1619         them is supposed to hold actual statements.
1620
1621 2009-06-06  Ian Lance Taylor  <iant@google.com>
1622
1623         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
1624         empty statements can now have attributes.
1625
1626 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
1627
1628         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
1629         * config/mips/mips.md: Ditto.
1630
1631 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
1632
1633         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
1634         _RELOCATABLE.
1635         (__eabi_uconvert): Likewise.
1636
1637 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
1638
1639         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
1640         CFI_* definitions with IN_GCC.
1641
1642 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
1643
1644         * xcoffout.h (xcoffout_source_line): Update prototype.
1645
1646 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1647
1648         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
1649         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
1650
1651 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
1652
1653         PR middle-end/40340
1654         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1655         inlined_function_outer_scope_p blocks for artificial inlines
1656         even at -g0/-g1.
1657         * tree.c (tree_nonartificial_location): Rewrite using
1658         block_nonartificial_location.
1659
1660 2009-06-05  Revital Eres  <eres@il.ibm.com>
1661             Leehod Baruch  <leehod@il.ibm.com>
1662
1663         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
1664         (expand_expr_real_1): Remove comment.
1665         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1666         Vectorize misaligned access when the target supports it.
1667         (vect_supportable_dr_alignment): Check for unaligned access support.
1668         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
1669         and remove asset.
1670
1671 2009-06-05  Julian Brown  <julian@codesourcery.com>
1672
1673         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
1674         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
1675
1676 2009-06-05  Richard Guenther  <rguenther@suse.de>
1677
1678         PR bootstrap/40350
1679         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
1680         as possibly unused.
1681
1682 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
1683
1684         * config/s390/s390.c (global_not_special_regno_p): New static inline.
1685         (save_gprs): Don't tell unwinder when a global register is saved.
1686         (s390_emit_epilogue): Emit needed epilogue unwind info.
1687
1688 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
1689
1690         * dwarf2out.c (deferred_asm_name): New.
1691         (add_name_and_src_coords_attributes): Defer creation of
1692         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
1693         computed yet.
1694         (move_linkage_attr): New.
1695         (dwarf2out_finish): Revisit deferrals and emit attributes at the
1696         right place.
1697
1698 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
1699
1700         * tree-nested.c (finalize_nesting_tree_1): Declare the
1701         frame_decl in the binding tree.
1702
1703 2009-06-04  Cary Coutant  <ccoutant@google.com>
1704
1705         * basic-block.h (struct basic_block_def): Add discriminator field.
1706         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
1707         callers.
1708         * debug.c (do_nothing_debug_hooks): Add additional entry.
1709         (debug_nothing_int_charstar_int): New function.
1710         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
1711         (debug_nothing_int_charstar_int): New declaration.
1712         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
1713         discriminator value in .loc directive.
1714         * final.c (last_discriminator): New variable.
1715         (discriminator): New variable.
1716         (final_start_function): Initialize above variables, pass current
1717         discriminator to debug hook.
1718         (notice_source_line): Check for discriminator change.
1719         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
1720         * sdbout.c (sdbout_source_line): New parameter.
1721         * tree-cfg.c (struct locus_discrim_map): New structure type.
1722         (discriminator_per_locus): New hash table.
1723         (build_gimple_cfg): Allocate and free discriminator hash table.
1724         (make_edges): Call assign_discriminator.
1725         (locus_map_hash): New function.
1726         (locus_map_eq): New function.
1727         (next_discriminator_for_locus): New function.
1728         (same_line_p): New function.
1729         (assign_discriminator): New function.
1730         (make_cond_expr_edges): Call assign_discriminator.
1731         (make_gimple_switch_edges): Likewise.
1732         (first_non_label_stmt): New function.
1733         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
1734         all callers.
1735         * xcoffout.c (xcoffout_source_line): Add new parameter.
1736
1737         * configure.ac (gcc_cv_as_discriminator): New configury check for
1738         gas support for discriminator.
1739         * configure: Regenerate.
1740         * config.in: Regenerate.
1741
1742 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1743
1744         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
1745         val after checking for integers.
1746
1747 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
1748
1749         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
1750         X64_REGPARM_MAX.
1751         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
1752         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
1753         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
1754         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
1755         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
1756         X64_SSE_REGPARM_MAX.
1757         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
1758         X64_SSE_REGPARM_MAX.
1759
1760 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
1761
1762         * gcc.c (report_times_to_file): New.
1763         (execute): Implement it.
1764         (process_command): Support -time=.
1765         * doc/invoke.texi: Document it.
1766
1767 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
1768
1769         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
1770         that have value exprs.
1771
1772 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
1773
1774         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
1775         declarations for constants until...
1776         (dw2_output_indirect_constant_1): ... this point.
1777
1778 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
1779
1780         PR target/10242
1781         * arm.md (arm_addsi3): Don't try to split an add with an
1782         eliminable register until after reload has completed.
1783
1784 2009-06-03  Ian Lance Taylor  <iant@google.com>
1785
1786         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
1787         * genattrtab.c (write_length_unit_log): Likewise.
1788         * genchecksum.c (dosum): Likewise.
1789         * gengtype.c (write_rtx_next): Likewise.
1790         (finish_root_table, write_roots): Likewise.
1791         * gimple.c (gimple_ops_offset_): Likewise.
1792         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
1793         * config/arc/arc.c (arc_attribute_table): Likewise.
1794         * config/arm/arm.c (arm_attribute_table): Likewise.
1795         * config/avr/avr.c (avr_attribute_table): Likewise.
1796         * config/crx/crx.c (crx_attribute_table): Likewise.
1797         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
1798         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
1799         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
1800         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
1801         * config/sh/sh.c (sh_attribute_table): Likewise.
1802         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
1803         * config/spu/spu.c (spu_attribute_table): Likewise.
1804         * config/v850/v850.c (v850_attribute_table): Likewise.
1805
1806         * config/alpha/alpha.c (vms_attribute_table): Make static.
1807         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
1808         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
1809         * config/mips/mips.c (mips_attribute_table): Likewise.
1810
1811         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
1812         $(SYSTEM_H).
1813         (cc1-checksum.o): Likewise.
1814
1815 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
1816
1817         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
1818
1819 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
1820
1821         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
1822         insn if it is changing sp.  Use gen_add3_insn instead of
1823         conditionally gen_addsi3 and gen_adddi3.
1824         (offset_below_red_zone_p): New static inline function.
1825         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
1826         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
1827         * config/rs6000/ppc-asm.h: Include auto-host.h.
1828         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
1829         CFI_RESTORE): Define.
1830         * config/rs6000/crtresxgpr.asm: Add unwind info.
1831         * config/rs6000/crtresxfpr.asm: Likewise.
1832         * config/rs6000/crtresgpr.asm: Likewise.
1833         * config/rs6000/crtresfpr.asm: Likewise.
1834         * config/rs6000/crtsavgpr.asm: Likewise.
1835         * config/rs6000/crtsavfpr.asm: Likewise.
1836
1837         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
1838         argument of DWARF2_FRAME_REG_OUT macros.
1839
1840 2009-06-03  Julian Brown  <julian@codesourcery.com>
1841
1842         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
1843         words or less (including TImode) in core registers.
1844
1845 2009-06-03  Richard Guenther  <rguenther@suse.de>
1846
1847         PR middle-end/40328
1848         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
1849
1850 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
1851
1852         * statistics.c (statistics_counter_event): Do not record event 
1853         in pass dump if its number == -1.
1854         (curr_statistics_hash): Add assert that we never get passes 
1855         with static number == -1.
1856
1857 2009-06-03  Richard Guenther  <rguenther@suse.de>
1858             Andrey Belevantsev  <abel@ispras.ru>
1859
1860         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
1861         non-BLKmode arrays addressable.
1862
1863 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
1864
1865         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
1866         * config/m68k/m68k.h: ... here.
1867         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
1868         m68k and fido.
1869
1870 2009-06-03  Martin Jambor  <mjambor@suse.cz>
1871
1872         PR tree-optimization/40323
1873         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
1874         assignment.
1875
1876 2009-06-03  Richard Guenther  <rguenther@suse.de>
1877
1878         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
1879         consistently.
1880
1881 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
1882
1883         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
1884         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
1885         JUMP_TABLE_DATA_P where applicable.
1886         * config/sh/sh.c: Ditto.
1887         * config/sh/sh.h: Ditto.
1888         * config/sh/sh.md: Ditto.
1889         * config/sh/symbian.c: Ditto.
1890
1891 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
1892
1893         * config/i386/driver-i386.c (describe_cache): Optimize
1894         concatenation of strings.  Use snprintf instead of sprintf.
1895         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
1896         target when not compiling with GCC.
1897
1898 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1899
1900         * config/sh/sh.c: Revert last change.
1901         (sh_expand_epilogue): Emit a blockage insn before the frame
1902         pointer adjustment unconditionally.
1903
1904 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1905
1906         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
1907         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
1908         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
1909         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
1910         to COLLECT_GCC_OPTIONS.
1911
1912 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1913
1914         * collect2.c (target_system_root): New variable.
1915         (main): Handle --sysroot=.
1916         (ignore_library): Strip the sysroot from the library path.
1917
1918 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1919
1920         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
1921         (collect2.o): Depend on collect2-aix.h.
1922         (collect2-aix.o): New rule.
1923         * collect2-aix.h: New file.
1924         * collect2-aix.c: Likewise.
1925         * collect2.c: Include collect2-aix.h.  Don't undefine
1926         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
1927         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
1928         Use TARGET_AIX_VERSION instead of _AIX51.
1929         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
1930         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
1931         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
1932         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
1933         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
1934
1935 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1936
1937         * collect2.c (ignore_library): Avoid premature post-increment
1938         and null deference.
1939
1940 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1941
1942         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
1943         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
1944         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
1945         CROSS_DIRECTORY_STRUCTURE too.
1946         (LINK_LIBG_SPEC): Likewise.
1947         (LIB_SPEC): Add %R to sysroot paths.
1948         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
1949         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
1950         * config/rs6000/aix51.h: As for aix43.h.
1951         * config/rs6000/aix52.h: Likewise.
1952         * config/rs6000/aix53.h: Likewise.
1953         * config/rs6000/aix61.h: Likewise.
1954         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
1955         to the beginning of sysroot paths.
1956
1957 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1958
1959         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
1960         INSN_LISTs that are out of the REG_NOTE range.
1961
1962 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1963
1964         * loop-unroll.c (struct iv_to_split): Add pointer to next.
1965         (struct var_to_expand): Likewise.
1966         (struct opt_info): Add head and tail for linked lists of the above.
1967         (analyze_insn_to_expand_var): Initialize next.
1968         (analyze_iv_to_split_insn): Likewise.
1969         (analyze_insns_in_loop): Create linked lists.
1970         (allocate_basic_variable): Simplify for use without hash table.
1971         (insert_var_expansion_initialization): Likewise, make it type-safer.
1972         (combine_var_copies_in_loop_exit): Likewise.
1973         (apply_opt_in_copies): Walk lists rather than hash tables.
1974         (release_var_copies): Simplified and inlined by hand into...
1975         (free_opt_info): ... this function.
1976
1977 2009-06-02  Richard Guenther  <rguenther@suse.de>
1978
1979         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
1980         for field decls.
1981
1982 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1983
1984         * cfgexpand.c (gimple_expand_cfg): Discard the source location
1985         only for builtins that are not overridden.
1986
1987 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1988
1989         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
1990         label string.
1991
1992 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1993
1994         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
1995
1996 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
1997
1998         * combine.c (move_deaths): Compare LUIDs within the same BB only.
1999
2000 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
2001
2002         * common.opt (fdump-unnumbered-links): New.
2003         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
2004         * print-rtl.c (flag_dump_unnumbered_links): New.
2005         (print_rtx): Test it.
2006
2007 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
2008
2009         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
2010         push/pop multiple to 8-byte alignment.
2011
2012 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
2013
2014         * config/i386/i386.c (queued_cfa_restores): New static variable.
2015         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
2016         functions.
2017         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
2018         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
2019         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
2020         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
2021         note unconditionally.
2022         (ix86_emit_restore_regs_using_mov): Likewise.
2023         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2024         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
2025         it through to ix86_emit_restore_reg_using_pop.
2026         (ix86_emit_leave): Add RED_OFFSET argument.  Call
2027         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
2028         instead of adding REG_CFA_OFFSET note unconditionally.
2029         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
2030         the above functions.  Call ix86_add_queued_cfa_restore_notes when
2031         needed.
2032
2033         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
2034         force output of the label even for dwarf2out_do_cfi_asm.
2035         (add_fde_cfi): If -g2 and above and cfi might change CFA,
2036         force creation of CFI label and chain DW_CFA_set_loc jumping to it
2037         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
2038         caller.
2039         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
2040         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
2041         dwarf2out_cfi_label callers.
2042         * tree.h (dwarf2out_cfi_label): Adjust prototype.
2043         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
2044         Adjust dwarf2out_cfi_label callers.
2045         * config/vax/vax.c (vax_output_function_prologue): Likewise.
2046
2047         * config/i386/i386.h (struct machine_cfa_state,
2048         struct machine_function): Guard with ifndef USED_FOR_TARGET
2049         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
2050
2051         PR other/40024
2052         * emutls.c (__emutls_get_address): Change arr->size to mean number
2053         of allocated arr->data entries instead of # of slots + 1.
2054
2055         PR middle-end/40316
2056         * recog.c (peep2_reinit_state): New function.
2057         (peephole2_init_state): Use it at the end of a basic block and also
2058         when seeing a RTX_FRAME_RELATED_P insn.
2059
2060 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
2061
2062         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
2063         fixuns_truncrfdi2): New.
2064         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
2065         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
2066         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
2067         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
2068         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
2069         *recip_approx): Remove.
2070         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
2071         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
2072         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
2073         move to div.md.
2074         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
2075         setf_exp_rf): New.
2076
2077 2009-06-01  Ian Lance Taylor  <iant@google.com>
2078
2079         * attribs.c (register_attribute): Use CONST_CAST.
2080         * collect2.c (main): Use CONST_CAST2.
2081         (scan_prog_file): Likewise.
2082         * gcc.c (process_command, main): Likewise.
2083         * toplev.c (toplev_main): Likewise.
2084
2085         * c-typeck.c (handle_warn_cast_qual): New static function,
2086         partially broken out of build_c_cast.
2087         (build_c_cast): Call handle_warn_cast_qual.
2088         * doc/invoke.texi (Warning Options): Document new effect of
2089         -Wcast-qual.
2090
2091 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
2092
2093         * diagnostic.c (diagnostic_build_prefix): Always print columns.
2094         (diagnostic_report_current_module): Print columns.
2095         * common.opt (flag_show_column): Enable by default.
2096
2097 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
2098
2099         * alias.c (find_base_term): Check for NULL term before returning.
2100
2101 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
2102
2103         Revert due to PR40320:
2104         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
2105         * calls.c (emit_library_call_value_1): Don't force_operand for move
2106         and push insns.
2107
2108 2009-06-01  Olivier Hainque  <hainque@adacore.com>
2109             Eric Botcazou  <ebotcazou@adacore.com>
2110
2111         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
2112         to be processed as a bitfield for constructor output purposes.
2113         * output.h (initializer_constant_valid_for_bitfield_p): Declare
2114         new function.
2115         * varasm.c (oc_local_state): New type, output_constructor
2116         local state to support communication with helpers.
2117         (oc_outer_state): New type, output_constructor outer state of
2118         relevance in recursive calls.
2119         (output_constructor_array_range): New output_constructor helper,
2120         extracted code for an array range element.
2121         (output_constructor_regular_field): New output_constructor helper,
2122         extracted code for an element that is not a bitfield.
2123         (output_constructor_bitfield): New output_constructor helper,
2124         extracted code for a bitfield element.  Accept an OUTER state
2125         argument for recursive processing.  Recurse on record or array
2126         CONSTRUCTOR values, possibly past noop conversions.
2127         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
2128         VALUE is a valid constant-valued expression for use in a static
2129         bit-field initializer.
2130         (output_constructor): Rework to use helpers.  Accept and honor an
2131         OUTER state argument for recursive calls.  Return total size.  Be
2132         prepared for nested constructors initializing bitfields.
2133         (output_constant): Feed OUTER in calls to output_constructor.
2134
2135 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
2136
2137         * calls.c (emit_library_call_value_1): Don't force_operand for move
2138         and push insns.
2139
2140 2009-06-01  Nick Clifton  <nickc@redhat.com>
2141
2142         * doc/invoke.texi (IA-64 Options): Fix typo.
2143
2144 2009-06-01  Ira Rosen  <irar@il.ibm.com>
2145
2146         PR tree-optimization/39129
2147         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the 
2148         printed message.
2149         (vect_do_peeling_for_loop_bound): Use 
2150         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
2151         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
2152         (vect_loop_versioning): Likewise.
2153         (vect_create_cond_for_alias_checks): Fix indentation.
2154         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the 
2155         macros.
2156         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
2157         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
2158         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to 
2159         "control flow in loop".
2160         (vect_estimate_min_profitable_iters): Use 
2161         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
2162         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
2163         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2164         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
2165         * tree-vect-stmts.c (vectorizable_store): Replace the check that the 
2166         statement belongs to a group of strided accesses with the exact code 
2167         check.
2168         (vectorizable_load): Likewise.
2169         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
2170         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
2171
2172 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
2173
2174         * config/freebsd-stdint.h: New file.
2175         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
2176         Add freebsd-stdint.h to tm_file.
2177
2178 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
2179
2180         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
2181         (thumb2_extendhidi2): Likewise.
2182
2183 2009-05-31  Ian Lance Taylor  <iant@google.com>
2184
2185         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
2186
2187 2009-05-31  Ian Lance Taylor  <iant@google.com>
2188
2189         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
2190         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
2191         (ipa-reference.o): Depend upon gt-ipa-reference.h.
2192
2193 2009-05-31  Jason Merrill  <jason@redhat.com>
2194
2195         * tree-pretty-print.c (print_call_name): Take the callee, not the
2196         call itself.  Make non-static.  Use dump_function_name for functions.
2197         (dump_generic_node): Adjust.
2198         * diagnostic.h: Declare print_call_name.
2199         * gimple-pretty-print.c (dump_gimple_call): Use it.
2200
2201 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2202
2203         * config/sh/sh.md (ashldi3_std): New define_expand.
2204         (ashldi3): Use it.
2205
2206 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2207
2208         PR target/40313
2209         * config/sh/sh.c: Include debug.h.
2210         (sh_expand_epilogue): Emit a blockage insn before the frame
2211         pointer adjustment also when dwarf2out_do_frame returns true.
2212
2213 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
2214
2215         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
2216         (thumb2_extendqidi2): New pattern.
2217
2218 2009-05-31  Ira Rosen  <irar@il.ibm.com>
2219
2220         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
2221         mark phis for renaming.
2222         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
2223         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
2224         Call mark_sym_for_renaming.
2225         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
2226         * tree-vect-loop.c (vect_transform_loop): Remove
2227         vect_memsyms_to_rename initialization and a call to
2228         mark_set_for_renaming.
2229
2230 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
2231
2232         PR middle-end/40304
2233         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
2234         frame related even if !set_cfa && style < 0.
2235
2236 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
2237
2238         * config/i386/mingw-tls.c: New file.
2239         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
2240         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
2241         defining _WIN32 but not __CYGWIN__.
2242
2243 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2244
2245         * configure.ac: Add MPC support.
2246         
2247         * config.in, configure: Regenerate.     
2248
2249 2009-05-29  Richard Henderson  <rth@redhat.com>
2250
2251         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
2252         NOTE_INSN_BASIC_BLOCK.
2253         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
2254         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
2255         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
2256         to be deleted.
2257         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
2258         add in_use field.
2259         (add_cfi): Disable check redefining cfa away from drap.
2260         (lookup_cfa_1): Add remember argument; handle remember/restore.
2261         (lookup_cfa): Pass remember argument.
2262         (cfa_remember): New.
2263         (compute_barrier_args_size_1): Remove sibcall check.
2264         (dwarf2out_frame_debug_def_cfa): New.
2265         (dwarf2out_frame_debug_adjust_cfa): New.
2266         (dwarf2out_frame_debug_cfa_offset): New.
2267         (dwarf2out_frame_debug_cfa_register): New.
2268         (dwarf2out_frame_debug_cfa_restore): New.
2269         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
2270         (dwarf2out_begin_epilogue): New.
2271         (dwarf2out_frame_debug_restore_state): New.
2272         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
2273         DW_CFA_restore_state.
2274         (output_cfi_directive): Likewise.
2275         (convert_cfa_to_fb_loc_list): Likewise.
2276         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
2277         * dwarf2out.h: Update.
2278         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
2279         (copy_insn_1): Early out for null.
2280         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
2281         and dwarf2out_frame_debug_restore_state.
2282         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
2283         (prologue_insn_hash, epilogue_insn_hash): New.
2284         (free_after_compilation): Adjust freeing accordingly.
2285         (record_insns): Create hash table if needed; push insns into
2286         hash instead of array.
2287         (maybe_copy_epilogue_insn): New.
2288         (contains): Search hash table instead of array.
2289         (sibcall_epilogue_contains): Remove.
2290         (thread_prologue_and_epilogue_insns): Split eh_return insns
2291         and mark them as epilogues.
2292         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
2293         scanning in terms of basic blocks.
2294         * insn-notes.def (CFA_RESTORE_STATE): New.
2295         * jump.c (returnjump_p_1): Accept EH_RETURN.
2296         (eh_returnjump_p_1, eh_returnjump_p): New.
2297         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
2298         CFA_REGISTER, CFA_RESTORE): New.
2299         * rtl.def (EH_RETURN): New.
2300         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
2301
2302         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
2303         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
2304
2305         * config/i386/i386.c (gen_push): Update cfa state.
2306         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
2307         add a CFA_ADJUST_CFA note.
2308         (ix86_dwarf_handle_frame_unspec): Remove.
2309         (ix86_expand_prologue): Update cfa state.
2310         (ix86_emit_restore_reg_using_pop): New.
2311         (ix86_emit_restore_regs_using_pop): New.
2312         (ix86_emit_leave): New.
2313         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
2314         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
2315         * config/i386/i386.h (struct machine_cfa_state): New.
2316         (ix86_cfa_state): New.
2317         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
2318         (eh_return_internal): Merge from eh_return_<mode>,
2319         use eh_return rtx, split w/ epilogue.
2320
2321 2009-05-29  Ian Lance Taylor  <iant@google.com>
2322
2323         * builtins.c (validate_gimple_arglist): Don't use va_arg with
2324         enum type.
2325         * calls.c (emit_library_call_value_1): Likewise.
2326
2327         * c-typeck.c (c_build_va_arg): New function.
2328         * c-tree.h (c_build_va_arg): Declare.
2329         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
2330         instead of build_va_arg.
2331
2332 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
2333
2334         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
2335         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
2336         (ptr_difference_cost): Use affine combinations to compute it.
2337         (difference_cost): Likewise.
2338         (get_computation_cost_at): Compute more accurate cost for addresses
2339         if the ratio is a multiplier allowed in addresses.
2340         For non-addresses, consider that an additional offset or symbol is
2341         added only once.
2342
2343 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2344
2345         * config/i386/i386.c (ix86_decompose_address): Avoid useless
2346         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
2347
2348         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
2349         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
2350         (prefix_rex): For UNIT_MMX don't imply the prefix by default
2351         if MODE_DI.
2352         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
2353         to 1 for TYPE_SSE{IADD1,CVT1}.
2354         (prefix_vex_imm8): Removed.
2355         (length_vex): Only pass 1 as second argument to
2356         ix86_attr_length_vex_default if prefix_extra is 0.
2357         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
2358         (length): For prefix vex computation use length_immediate
2359         attribute instead of prefix_vex_imm8.
2360         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
2361         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
2362         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
2363         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
2364         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
2365         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
2366         a space in between the operands.
2367         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
2368         if one operand is 0xff and the other one si, di, bp or sp.
2369         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
2370         other one si, di, bp or sp.
2371         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
2372         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
2373         type and mode attributes.
2374         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
2375         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
2376         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
2377         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
2378         prefix_data16 attribute iff MODE_DF.
2379         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
2380         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
2381         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
2382         constm128_operand in length_immediate computation.
2383         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
2384         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
2385         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
2386         length_immediate attribute to 1.
2387         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
2388         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
2389         for certain alternatives.
2390         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
2391         prefix_data16 attribute if MODE_V1DF.
2392         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
2393         length_immediate to 1.
2394         (set_got_rex64, set_rip_rex64): Remove length attribute, set
2395         length_address to 4, set mode attribute to MODE_DI.
2396         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
2397         (fxam<mode>2_i387): Set length attribute to 4.
2398         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
2399         *prefetch_3dnow_rex): Override length_address attribute.
2400         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
2401         attributes.
2402         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
2403         (constm128_operand): Removed.
2404         * config/i386/i386.c (memory_address_length): For
2405         disp && !index && !base in 64-bit mode account for SIB byte if
2406         print_operand_address can't optimize disp32 into disp32(%rip)
2407         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
2408         for fs: or gs: segment.
2409         (ix86_attr_length_immediate_default): When checking if shortform
2410         is possible, truncate immediate to the length of the non-shortened
2411         immediate.
2412         (ix86_attr_length_address_default): Ignore MEM_P operands
2413         with X constraint.
2414         (ix86_attr_length_vex_default): Only check for DImode on
2415         GENERAL_REG_P operands.
2416         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
2417         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
2418         (sse_cvttps2pi): Clear prefix_rep attribute.
2419         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
2420         attribute.
2421         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
2422         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
2423         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
2424         iff operand 2 is const_int_operand.
2425         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
2426         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
2427         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
2428         instead of vex.
2429         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
2430         prefix_data16.
2431         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
2432         prefix_data16 attribute for movlpd and movhpd instructions.
2433         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
2434         length_immediate for shufpd instruction.
2435         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
2436         (avx_cmpp<avxmodesuffixf2c><mode>3,
2437         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
2438         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
2439         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
2440         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
2441         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
2442         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
2443         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
2444         prefix_data16 attribute for the first alternative to 1.
2445         (*avx_loadlps): Override length_immediate for the first alternative.
2446         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
2447         attributes for second alternative.
2448         (*vec_concatv2sf_sse4_1): Override length_immediate and
2449         prefix_data16 attributes for second alternative.
2450         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
2451         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
2452         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
2453         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
2454         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
2455         prefix_data16 and length_immediate to 1.
2456         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
2457         to 1.
2458         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
2459         prefix_extra attribute for variants that don't have 0f prefix alone.
2460         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
2461         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
2462         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
2463         *sse4_1_pextrd): Set length_immediate to 1.
2464         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
2465         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
2466         to 1.
2467         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
2468         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
2469         length_immediate to 1 for second alternative.
2470         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
2471         prefix_extra and length_immediate attributes for the first
2472         alternative.
2473         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
2474         first alternative.
2475         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
2476         to 1 for the first and third alternative.
2477         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
2478         alternative.
2479         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
2480         attribute.
2481         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
2482         attribute to 0.
2483         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
2484         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
2485         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
2486         *avx_psign<mode>3): Set prefix_extra attribute to 1.
2487         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
2488         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
2489         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
2490         ssse3_psign<mode>3): Override prefix_rex attribute.
2491         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
2492         (ssse3_palignrti): Override length_immediate to 1.
2493         (ssse3_palignrdi): Override length_immediate to 1, override
2494         prefix_rex attribute.
2495         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
2496         (sse4a_extrqi): Override length_immediate to 2.
2497         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
2498         (sse4a_insertq): Override prefix_data16 to 0.
2499         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
2500         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
2501         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
2502         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
2503         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
2504         and length_immediate to 1.
2505         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
2506         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
2507         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
2508         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
2509         and length_immediate to 1.
2510         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
2511         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
2512         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
2513         avx_ptest256): Override prefix_extra to 1.
2514         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
2515         Override prefix_data16 and length_immediate to 1.
2516         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
2517         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
2518         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
2519         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
2520         prefix_data16 to 0 and prefix_extra to 2.
2521         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
2522         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
2523         attribute.
2524         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
2525         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
2526         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
2527         and prefix_extra to 2.
2528         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
2529         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
2530         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
2531         avx_vpermilvar<mode>3,
2532         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
2533         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
2534         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
2535         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
2536         Override prefix_extra to 1.
2537         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
2538         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
2539         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
2540         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
2541         prefix_extra and length_immediate to 1.
2542         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
2543         modrm to 0.
2544         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
2545         to 1 for the first alternative.
2546         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
2547         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
2548         cases.
2549         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
2550         *movv2sf_internal_avx, *movv2sf_internal): Override
2551         prefix_rep attribute for certain alternatives.
2552         (*mov<mode>_internal): Override prefix_rep or prefix_data16
2553         attributes for certain alternatives.
2554         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
2555         attributes for certain alternatives.
2556         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
2557         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
2558         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
2559         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
2560         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
2561         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
2562         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
2563         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
2564         length_immediate to 1 if operand 2 is const_int_operand.
2565         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
2566         *vec_extractv2si_1): Set length_immediate attribute to 1.
2567         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
2568         using old 3DNOW insn rather than SSE/3DNOW_A.
2569         (mmx_emms, mmx_femms): Clear modrm attribute.
2570
2571 2009-05-29  Martin Jambor  <mjambor@suse.cz>
2572
2573         * tree-sra.c:  New implementation of SRA.
2574
2575         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
2576         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
2577         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
2578         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
2579         (SRA_MAX_STRUCTURE_COUNT): Removed.
2580         (SRA_FIELD_STRUCTURE_RATIO): Removed.
2581         * doc/invoke.texi (sra-max-structure-size): Removed.
2582         (sra-field-structure-ratio): Removed.
2583
2584 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2585
2586         PR middle-end/40291
2587         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
2588         before expansion.
2589
2590 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
2591
2592         PR rtl-optimization/40101
2593         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
2594         seqno.  Adjust comment.
2595         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
2596         inserting bookkeeping before a jump, the jump is not scheduled.
2597         When no positive seqno found, provide a value.  Add comment.
2598
2599 2009-05-29  Richard Guenther  <rguenther@suse.de>
2600
2601         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
2602         short-cutting on the first component.
2603
2604 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2605
2606         PR middle-end/39958
2607         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
2608         for trees other than decls/types.
2609
2610 2009-05-29  Richard Guenther  <rguenther@suse.de>
2611
2612         * tree-ssa-operands.c (get_expr_operands): Do not handle
2613         INDIRECT_REFs in the handled-component case.  Remove
2614         unused get_ref_base_and_extent case.
2615         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
2616         tree_low_cst and host_integerp where possible.
2617         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
2618         codes for equivalence.
2619         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
2620
2621 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
2622
2623         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
2624         to tmake_file for i[34567]86-*-cygwin*. 
2625
2626 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
2627
2628         PR target/40017
2629         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
2630         (altivec_categorize_keyword, init_vector_keywords,
2631         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
2632         similar to bool.
2633
2634 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
2635
2636         * tree.c (handle_dll_attribute): Check if node is
2637         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
2638
2639 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
2640
2641         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
2642         component.
2643         (thumb2_zero_extendqidi2): Likewise.
2644
2645 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2646
2647         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
2648         instead of gen_movrt.
2649         * config/sh/sh.md (movrt): Remove.
2650
2651 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
2652
2653         * doc/invoke.texi (IA-64 Options):
2654         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
2655         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
2656         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
2657         -msched-prefer-non-control-spec-insns,
2658         -msched-stop-bits-after-every-cycle,
2659         -msched-count-spec-in-critical-path,
2660         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
2661         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
2662         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
2663         and -msched-spec-verbose.
2664
2665 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
2666
2667         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
2668         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
2669         error if used.
2670         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
2671
2672 2009-05-28  Richard Guenther  <rguenther@suse.de>
2673
2674         * tree-ssa-alias.c (ao_ref_init): New function.
2675         (ao_ref_base): Likewise.
2676         (ao_ref_base_alias_set): Likewise.
2677         (ao_ref_alias_set): Likewise.
2678         (refs_may_alias_p_1): Change signature.
2679         (refs_may_alias_p): Adjust.
2680         (refs_anti_dependent_p): Likewise.
2681         (refs_output_dependent_p): Likewise.
2682         (call_may_clobber_ref_p_1): Change signature.
2683         (call_may_clobber_ref_p): Adjust.
2684         (stmt_may_clobber_ref_p_1): New function split out from ...
2685         (stmt_may_clobber_ref_p): ... here.
2686         (maybe_skip_until): Adjust signature.
2687         (get_continuation_for_phi): Likewise.
2688         (walk_non_aliased_vuses): Likewise.
2689         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
2690         (ao_ref_init): Declare.
2691         (ao_ref_base): Likewise.
2692         (ao_ref_alias_set): Likewise.
2693         (stmt_may_clobber_ref_p_1): Likewise.
2694         (walk_non_aliased_vuses): Adjust.
2695         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
2696         (get_ref_from_reference_ops): remove.
2697         (vn_reference_lookup_2): Adjust signature.
2698         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
2699         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
2700         (vn_reference_lookup): Adjust.
2701         (vn_reference_insert): Likewise.
2702         (vn_reference_insert_pieces): Adjust signature.
2703         (visit_reference_op_call): Adjust.
2704         * tree-ssa-pre.c (get_expr_type): Simplify.
2705         (phi_translate_1): Adjust.
2706         (compute_avail): Likewise.
2707         (translate_vuse_through_block): Do not re-build trees.
2708         (value_dies_in_block_x): Likewise.
2709         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
2710         fields.
2711         (vn_reference_lookup_pieces): Adjust declaration.
2712         (vn_reference_insert_pieces): Likewise.
2713
2714 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
2715
2716         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
2717         with checking disabled.
2718
2719 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
2720
2721         PR target/37216
2722
2723         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
2724         macro definition for support of three-operand format aligned
2725         .comm directive in assembler on cygwin/pe/mingw target OS.
2726         * configure:  Regenerate.
2727         * config.h:  Regenerate.
2728
2729         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
2730         aligned form of .comm directive if -mpe-aligned-commons is in effect.
2731         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
2732
2733         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
2734         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
2735
2736 2009-05-28  Ira Rosen  <irar@il.ibm.com>
2737
2738         PR tree-optimization/40254
2739         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
2740         in analysis of basic blocks.
2741
2742 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
2743
2744         PR middle-end/33699
2745         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
2746         * target-def.h (TARGET_CONST_ANCHOR): New macro.
2747         (TARGET_INITIALIZER): Use it.
2748         * cse.c (CHEAPER): Move it up to the other macros.
2749         (insert): Rename this ...
2750         (insert_with_costs): ... to this.  Add cost parameters.  Update
2751         function comment.
2752         (insert): New function.  Call insert_with_costs.
2753         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
2754         find_reg_offset_for_const, try_const_anchors): New functions.
2755         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
2756         when using a const-anchor.  Call insert_const_anchors.
2757         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2758         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
2759
2760 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
2761
2762         * tree-inline.c (remap_decls): Enable nonlocalized variables
2763         when not optimizing.
2764
2765 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
2766
2767         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
2768         Simplify other tests involving optimize.
2769
2770 2009-05-27  Tom Tromey  <tromey@redhat.com>
2771
2772         * unwind-dw2.c (_Unwind_DebugHook): New function.
2773         (uw_install_context): Call _Unwind_DebugHook.
2774
2775 2009-05-27  Tom Tromey  <tromey@redhat.com>
2776
2777         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
2778
2779 2009-05-27  Ian Lance Taylor  <iant@google.com>
2780
2781         * Makefile.in (LINKER, LINKER_FLAGS): Define.
2782         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
2783         (ALL_LINKERFLAGS): Define.
2784         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
2785         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
2786         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
2787         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
2788         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
2789         $(LINKER_FOR_BUILD).
2790         (build/gcov-iov$(build_exeext)): Likewise.
2791
2792 2009-05-27  Julian Brown  <julian@codesourcery.com>
2793
2794         * gcse.c (target.h): Include.
2795         (can_assign_to_reg_without_clobbers_p): Check that the target allows
2796         copy of argument to a pseudo register.
2797
2798 2009-05-27  Diego Novillo  <dnovillo@google.com>
2799
2800         * tree-ssa-live.c (dump_scope_block): Document arguments.
2801         (dump_scope_blocks): Document.
2802         (debug_scope_blocks): New.
2803         * tree-flow.h (debug_scope_blocks): Declare.
2804
2805 2009-05-21  Denis Chertykov  <denisc@overta.ru>
2806
2807         * doc/contrib.texi (Contributors): Add myself to the list.
2808
2809 2009-05-27  Olivier Hainque  <hainque@adacore.com>
2810
2811         * expr.c (target_align): New function.  Alignment the TARGET of an
2812         assignment may be assume to have.
2813         (highest_pow2_factor_for_target): Use it instead of relying on
2814         immediate tree attributes of TARGET, not necessarily honored when
2815         intermediate bitfields are involved.
2816         
2817 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2818
2819         PR target/40266
2820         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2821         AVX, SSE4, AES, PCLMUL and POPCNT.
2822
2823 2009-05-27  Diego Novillo  <dnovillo@google.com>
2824
2825         * tree-pretty-print.c (dump_location): New.
2826         (dump_generic_node): Call it.
2827         Factor code to handle BLOCK nodes ...
2828         (dump_block_node): ... here.
2829
2830 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
2831
2832         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
2833         with it.
2834         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
2835         included.
2836         * gcc-plugin.h: Include config.h and system.h.
2837         (IN_GCC): Define if not defined.
2838
2839 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
2840
2841         PR middle-end/40249
2842         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
2843         with -fno-inline.
2844
2845 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
2846
2847         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
2848         applicable.
2849         * config/m32r/m32r.h: Ditto.
2850         * config/m32r/m32r.md: Ditto.
2851         * config/m32r/predicates.md: Ditto.
2852
2853 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
2854
2855         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
2856
2857 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
2858
2859         * doc/plugins.texi
2860         (Loading plugins): typo.
2861         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
2862         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
2863         (Interacting with the GCC Garbage Collector): Added new section.
2864         (Giving information about a plugin): Added new section for
2865         PLUGIN_INFO.
2866         * ggc.h (ggc_register_root_tab): Added declaration.
2867         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
2868         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
2869         (register_callback): Improved comment in declaration.
2870         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
2871         (extra_root_vec) Added static variable for dynamic roots registration.
2872         (ggc_register_root_tab) Added new routine.
2873         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
2874         PLUGIN_GGC_MARKING event.
2875         * ggc-zone.c: Include plugin.h.
2876         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
2877         * ggc-page.c: Include plugin.h.
2878         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
2879         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
2880         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
2881         (register_callback): check lack of callbacks for
2882         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
2883         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
2884         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
2885         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
2886         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
2887         dependency on plugin.h.
2888         (plugin.o): Added dependency on ggc.h...
2889
2890 2009-05-26  Richard Guenther  <rguenther@suse.de>
2891
2892         PR middle-end/40248
2893         Revert
2894         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
2895         with mismatched comparison modes.
2896
2897         * expr.c (expand_expr_real_1): Expand the operand of a
2898         VIEW_CONVERT_EXPR in its natural mode.
2899
2900 2009-05-26  Ian Lance Taylor  <iant@google.com>
2901
2902         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
2903         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
2904         (ALL_COMPILERFLAGS): Define.
2905         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
2906         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
2907         (collect2$(exeext), collect2.o): Likewise.
2908         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
2909         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
2910         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
2911         (libbackend.o, intl.o, cppdefault.o): Likewise.
2912         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
2913         (build/%.o): Use $(COMPILER_FOR_BUILD).
2914         (build/gen%$(build_exeext)): Likewise.
2915         (build/gcov-iov$(build_exeext)): LIkewise.
2916         * config/t-darwin (darwin.o): Use $(COMPILER).
2917         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
2918         * config/t-sol2 (sol2-c.o): Likewise.
2919         (sol2.o): Likewise.
2920         * config/t-vxworks (vxworks.o): Likewise.
2921         * config/x-darwin (host-darwin.o): Likewise.
2922         * config/x-hpux (host-hpux.o): Likewise.
2923         * config/x-linux (host-linux.o): Likewise.
2924         * config/x-solaris (host-solaris.o): Likewise.
2925         * config/alpha/x-alpha (driver-alpha.o): Likewise.
2926         * config/arm/t-arm (arm-c.o): Likewise.
2927         * config/arm/t-pe (pe.o): Likewise.
2928         * config/arm/t-wince-pe (pe.o): Likewise.
2929         * config/i386/t-cygming (winnt.o): Likewise.
2930         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
2931         * config/i386/t-cygwin (cygwin1.o): Likewise.
2932         (cygwin2.o): Likewise.
2933         * config/i386/t-i386 (i386-c.o): Likewise.
2934         * config/i386/t-interix (winnt.o): Likewise.
2935         * config/i386/t-netware (netware.o): Likewise.
2936         * config/i386/t-nwld (nwld.o): Likewise.
2937         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
2938         * config/i386/x-i386 (driver-i386.o): Likewise.
2939         * config/i386/x-cygwin (host-cygwin.o): Likewise.
2940         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
2941         * config/ia64/t-ia64 (ia64-c.o): Likewise.
2942         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
2943         * config/mips/x-native (driver-native.o): Likewise.
2944         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
2945         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
2946         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
2947         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
2948         * config/score/t-score-elf (score7.o): Likewise.
2949         (score3.o): Likewise.
2950         * config/sh/t-sh (sh-c.o): Likewise.
2951         * config/sh/t-symbian (sh-c.o): Likewise.
2952         (symbian.o): Likewise.
2953         * config/spu/t-spu-elf (spu-c.o): Likewise.
2954         * config/v850/t-v850 (v850-c.o): Likewise.
2955         * config/v850/t-v850e (v850-c.o): Likewise.
2956
2957 2009-05-26  Richard Guenther  <rguenther@suse.de>
2958
2959         PR tree-optimization/40122
2960         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
2961         VECTOR_CSTs if possible.
2962         (fold_gimple_assign): Likewise.
2963
2964 2009-05-26  Richard Guenther  <rguenther@suse.de>
2965
2966         PR middle-end/40252
2967         * fold-const.c (fold_binary): Use the correct types for building
2968         rotates.
2969
2970 2009-05-26  Richard Guenther  <rguenther@suse.de>
2971
2972         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
2973         redundant calls to merge_alias_info.
2974         (bump_vector_ptr): Likewise.
2975         * tree-ssa-copy.c (merge_alias_info): Remove.
2976         (replace_exp_1): Remove call to merge_alias_info.
2977         (propagate_tree_value): Likewise.
2978         (fini_copy_prop): Propagate points-to info.
2979         * tree-flow.h (merge_alias_info): Remove.
2980
2981 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
2982
2983         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
2984
2985 2009-05-25  Jan Hubicka  <jh@suse.cz>
2986
2987         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
2988         * cgraph.h (struct inline_summary): New filed self_wize,
2989         size_inlining_benefit, self_time and time_inlining_benefit.
2990         (struct cgraph_global_info): Replace insns by time ans size fields.
2991         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
2992         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
2993         (ipcp_update_callgraph): Do not touch function bodies.
2994         * ipa-inline.c: Include except.h
2995         (MAX_TIME): New constant.
2996         (overall_insns): Remove.
2997         (leaf_node_p): New.
2998         (overall_size, max_benefit): New static variables.
2999         (cgraph_estimate_time_after_inlining): New function.
3000         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
3001         (cgraph_clone_inlined_nodes): Update size.
3002         (cgraph_mark_inline_edge): Update size.
3003         (cgraph_estimate_growth): Use size info.
3004         (cgraph_check_inline_limits): Check size.
3005         (cgraph_default_inline_p): Likewise.
3006         (cgraph_edge_badness): Compute badness based on benefit and size cost.
3007         (cgraph_decide_recursive_inlining): Check size.
3008         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
3009         and times.
3010         (cgraph_decide_inlining): Likewise.
3011         (cgraph_decide_inlining_incrementally): Likewise; honor
3012         PARAM_EARLY_INLINING_INSNS.
3013         (likely_eliminated_by_inlining_p): New predicate.
3014         (estimate_function_body_sizes): New function.
3015         (compute_inline_parameters): Use it.
3016         * except.c (must_not_throw_labels): New function.
3017         * except.h (must_not_throw_labels): Declare.
3018         * tree-inline.c (init_inline_once): Kill inlining_weigths
3019         * tree-ssa-structalias.c: Avoid uninitialized warning.
3020         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
3021         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
3022         (PARAM_INLINE_CALL_COST): Remove.
3023         (PARAM_EARLY_INLINING_INSNS): New.
3024
3025 2009-05-25  Richard Guenther  <rguenther@suse.de>
3026
3027         PR tree-optimization/36327
3028         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
3029         callback for reference translation or lookup at the point of may-defs.
3030         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
3031         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
3032         for union COMPONENT_REFs.
3033         (vn_reference_lookup_3): New callback.  Lookup from memset
3034         and CONSTRUCTOR assignment, translate through struct copies.
3035         (vn_reference_lookup_pieces): Make sure to not free the
3036         passed operands array.  Adjust walk_non_aliased_vuses call.
3037         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
3038         make sure we do not leak memory.
3039
3040 2009-05-25  Richard Guenther  <rguenther@suse.de>
3041
3042         * tree-ssa-alias.h (dump_points_to_solution): Declare.
3043         * tree-inline.c (expand_call_inline): Reset the escaped and
3044         callused solutions.
3045         * tree-ssa-structalias.c (pass_build_ealias): New.
3046         * tree-pass.h (pass_build_ealias): Declare.
3047         * passes.c (init_optimization_passes): Add PTA during 
3048         early optimizations.
3049         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
3050         and CALLUSED solutions.
3051         (dump_points_to_solution): New function, split out from ...
3052         (dump_points_to_info_for): ... here.
3053         * tree-parloops.c (parallelize_loops): Reset the escaped and
3054         callused solutions.
3055
3056 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3057
3058         PR bootstrap/40027
3059         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
3060         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
3061
3062 2009-05-25  Ira Rosen  <irar@il.ibm.com>
3063
3064         PR tree-optimization/40238
3065         * tree-vect-stmts.c (vect_init_vector): Insert initialization
3066         statements after basic block's labels.
3067         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
3068         to free the allocated memory.
3069
3070 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
3071
3072         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
3073         return address with a USE.
3074
3075 2009-05-24  Richard Guenther  <rguenther@suse.de>
3076
3077         PR middle-end/40233
3078         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
3079         array type from the main variant of the inner type.
3080
3081 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3082
3083         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
3084         definition to bool (from int) to un-break build.
3085         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
3086
3087 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
3088
3089         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
3090         discard_stmt_changes): Delete.
3091         * tree-ssa-operands.c (scb_stack): Delete.
3092         (init_ssa_operands): Do not initialize it.
3093         (fini_ssa_operands): Do not free it.
3094         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
3095
3096         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
3097         update_stmt, remove the others.  Fix comments.
3098         * tree-dfa.c (optimize_stack_restore): Likewise.
3099         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
3100         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
3101         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
3102         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
3103         Likewise.
3104         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
3105         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
3106         (dom_opt_finalize_block): Likewise, adjusting access to
3107         stmts_to_rescan.
3108         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
3109         (stmts_to_rescan): Change item type to gimple.
3110         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
3111
3112 2009-05-24  Ira Rosen  <irar@il.ibm.com>
3113
3114         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
3115         * tree-pass.h (pass_slp_vectorize): New pass.
3116         * params.h (SLP_MAX_INSNS_IN_BB): Define.
3117         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
3118         * tree-vectorizer.c (timevar.h): Include.
3119         (user_vect_verbosity_level): Declare.
3120         (vect_location): Fix comment.
3121         (vect_set_verbosity_level): Update user_vect_verbosity_level
3122         instead of vect_verbosity_level.
3123         (vect_set_dump_settings): Add an argument. Ignore user defined
3124         verbosity if dump flags require higher level of verbosity. Print to
3125         stderr only for loop vectorization.
3126         (vectorize_loops): Update call to vect_set_dump_settings.
3127         (execute_vect_slp): New function.
3128         (gate_vect_slp): Likewise.
3129         (struct gimple_opt_pass pass_slp_vectorize): New.
3130         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
3131         access its members.
3132         (vec_info_for_bb): New function.
3133         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
3134         (VECTORIZATION_ENABLED): New macro.
3135         (SLP_ENABLED, SLP_DISABLED): Likewise.
3136         (vect_is_simple_use): Add bb_vec_info argument.
3137         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
3138         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3139         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3140         vect_schedule_slp, vect_analyze_slp): Likewise.
3141         (vect_analyze_stmt): Add slp_tree argument.
3142         (find_bb_location): Declare.
3143         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
3144         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
3145         (vect_analyze_loop_operations, vect_analyze_loop,
3146         get_initial_def_for_induction, vect_create_epilog_for_reduction,
3147         vect_finalize_reduction, vectorizable_reduction,
3148         vectorizable_live_operation, vect_transform_loop): Likewise.
3149         * tree-data-ref.c (dr_analyze_innermost): Update comment,
3150         skip evolution analysis if analyzing a basic block.
3151         (dr_analyze_indices): Likewise.
3152         (initialize_data_dependence_relation): Skip the test whether the
3153         object is invariant for basic blocks.
3154         (compute_all_dependences): Skip dependence analysis for data
3155         references in basic blocks.
3156         (find_data_references_in_stmt): Don't fail in case of invariant
3157         access in basic block.
3158         (find_data_references_in_bb): New function.
3159         (find_data_references_in_loop): Move code to
3160         find_data_references_in_bb and add a call to it.
3161         (compute_data_dependences_for_bb): New function.
3162         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
3163         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
3164         that STEP is 0.
3165         (vect_analyze_data_ref_dependence): Check for interleaving in case of
3166         unknown dependence in basic block and fail in case of dependence in
3167         basic block.
3168         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
3169         dependence instances from either loop or basic block vectorization
3170         info.
3171         (vect_compute_data_ref_alignment): Check if it is loop vectorization
3172         before calling nested_in_vect_loop_p.
3173         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
3174         dependence instances from either loop or basic block vectorization
3175         info.
3176         (vect_verify_datarefs_alignment): Likewise.
3177         (vect_enhance_data_refs_alignment): Adjust function calls.
3178         (vect_analyze_data_refs_alignment): Likewise.
3179         (vect_analyze_group_access): Fix printing. Skip different checks if
3180         DR_STEP is 0. Keep strided stores either in loop or basic block
3181         vectorization data structure. Fix indentation.
3182         (vect_analyze_data_ref_access): Fix comments, allow zero step in
3183         basic blocks.
3184         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
3185         dependence instances from either loop or basic block vectorization
3186         info.
3187         (vect_analyze_data_refs): Update comment. Call
3188         compute_data_dependences_for_bb to analyze basic blocks.
3189         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
3190         case of loop vectorization. In case of basic block vectorization use
3191         data-ref itself as a base.
3192         (vect_create_data_ref_ptr): In case of basic block vectorization:
3193         don't advance the pointer, add new statements before the current
3194         statement.  Adjust function calls.
3195         (vect_supportable_dr_alignment): Support only aligned accesses in
3196         basic block vectorization.
3197         * common.opt (ftree-slp-vectorize): New flag.
3198         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
3199         (vect_pattern_recog_1): Likewise.
3200         * tree-vect-stmts.c (process_use): Likewise.
3201         (vect_init_vector): Add new statements in the beginning of the basic
3202         block in case of basic block SLP.
3203         (vect_get_vec_def_for_operand): Adjust function calls.
3204         (vect_finish_stmt_generation): Likewise.
3205         (vectorizable_call): Add assert that it is loop vectorization, adjust
3206         function calls.
3207         (vectorizable_conversion, vectorizable_assignment): Likewise.
3208         (vectorizable_operation): In case of basic block SLP, take
3209         vectorization factor from statement's type and skip the relevance
3210         check. Adjust function calls.
3211         (vectorizable_type_demotion): Add assert that it is loop
3212         vectorization, adjust function calls.
3213         (vectorizable_type_promotion): Likewise.
3214         (vectorizable_store): Check for outer loop only in case of loop
3215         vectorization. Adjust function calls. For basic blocks, skip the
3216         relevance check and don't advance pointers.
3217         (vectorizable_load): Likewise.
3218         (vectorizable_condition): Add assert that it is loop vectorization,
3219         adjust function calls.
3220         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
3221         that it is not reduction, get vector type, call only supported
3222         functions, skip loop specific parts.
3223         (vect_transform_stmt): Check for outer loop only in case of loop
3224         vectorization.
3225         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
3226         (vect_is_simple_use): Fix comment, add new argument, fix conditions
3227         for external definition.
3228         * passes.c (pass_slp_vectorize): New pass.
3229         * tree-vect-slp.c (find_bb_location): New function.
3230         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
3231         check for patterns only in loops.
3232         (vect_build_slp_tree): Add argument, adjust function calls, fail in
3233         case of multiple types in basic block SLP.
3234         (vect_mark_slp_stmts_relevant): New function.
3235         (vect_supported_load_permutation_p): Fix comment.
3236         (vect_analyze_slp_instance): Add argument. In case of basic block
3237         SLP, take vectorization factor from statement's type, check that
3238         unrolling factor is 1. Adjust function call. Save SLP instance in
3239         either loop or basic block vectorization structure. Return FALSE,
3240         if SLP failed.
3241         (vect_analyze_slp): Add argument. Get strided stores groups from
3242         either loop or basic block vectorization structure. Return FALSE
3243         if basic block SLP failed.
3244         (new_bb_vec_info): New function.
3245         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
3246         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
3247         (vect_schedule_slp): Add argument. Get SLP instances from either
3248         loop or basic block vectorization structure. Set vectorization factor
3249         to be 1 for basic block SLP.
3250         (vect_slp_transform_bb): New function.
3251         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
3252
3253 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
3254
3255         * final.c (shorten_branches): Do not align labels for jump tables.
3256         (final_scan_insn): Use JUMP_TABLE_DATA_P.
3257
3258 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3259
3260         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
3261         Remove outdated reference to flow.c and fix nits.
3262         * doc/gccint.texi: Tweak RTL description.
3263         * doc/rtl.texi: Likewise.
3264
3265 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
3266
3267         * config/avr/avr.c: Change my email address.
3268         * config/avr/avr.h: Likewise.
3269         * config/avr/avr.md: Likewise.
3270         * config/avr/avr-protos.h: Likewise.
3271         * config/avr/libgcc.S: Likewise.
3272
3273 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3274
3275         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
3276         (spu_split_load, spu_split_store): Change return type to int.
3277         (spu_split_convert): Declare.
3278         * config/spu/predicates.md (spu_mem_operand): Remove.
3279         (spu_mov_operand): Update.
3280         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
3281         * config/spu/spu.c (regno_aligned_for_load): Remove.
3282         (reg_aligned_for_addr, spu_expand_load): Define.
3283         (spu_expand_extv): Reimplement and handle MEM.
3284         (spu_expand_insv): Handle MEM.
3285         (spu_sched_reorder): Handle insn's with length 0.
3286         (spu_legitimate_address_p): Reimplement.
3287         (store_with_one_insn_p): Return TRUE for any mode with size
3288         larger than 16 bytes.
3289         (address_needs_split): Define.
3290         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
3291         operands.
3292         (spu_convert_move): Define.
3293         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
3294         (spu_split_store): Change all MEM's to TImode.
3295         (spu_init_expanders): Preallocate registers that correspond to
3296         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
3297         mark_reg_pointer.
3298         (spu_split_convert): Define.
3299         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
3300         (_move<mode>, _movdi, _movti): Update predicate and condition.
3301         (load, store): Change to define_split.
3302         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
3303         extend<mode>ti2.
3304         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
3305         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
3306         define_insn_and_split of lshr<mode>3.
3307         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
3308         (<v>ashr<mode>3_imm): Define.
3309         (extv, extzv, insv): Allow MEM operands.
3310         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
3311         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
3312         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
3313         (_spu_convert2): Change to define_insn_and_split and remove the
3314         corresponding define_peephole2.
3315         (stack_protect_set, stack_protect_test, stack_protect_test_si):
3316         Change predicates to memory_operand.
3317
3318 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
3319
3320         * config/arm/thumb2.md: Add 16-bit multiply instructions.
3321
3322 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3323
3324         PR tree-optimization/40219
3325         * tree.c (iterative_hash_expr): Make sure the builtin function is
3326         a normal builtin function and not a front end or back end builtin
3327         before indexing into the built_in_decls array.
3328
3329 2009-05-22  Richard Guenther  <rguenther@suse.de>
3330
3331         PR middle-end/38964
3332         * alias.c (write_dependence_p): Do not use TBAA for answering
3333         anti-dependence or output-dependence.
3334         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
3335         (emit_pointer_definition): Remove.
3336         (emit_alias_warning): Likewise.
3337         (find_what_var_points_to): Remove TBAA pruning code.
3338         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
3339         violations.
3340         (compute_points_to_sets): Remove code computing the set of
3341         dereferenced pointers.
3342         * tree-data-ref.c (dr_may_alias_p): Properly use the split
3343         oracle for querying anti and output dependencies.
3344         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
3345         if TBAA may be applied.
3346         (refs_anti_dependent_p): New function.
3347         (refs_output_dependent_p): Likewise.
3348         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
3349         (refs_output_dependent_p): Likewise.
3350         * doc/tree-ssa.texi (Memory model): New section.
3351         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
3352         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
3353         * cfgexpand.c (expand_gimple_basic_block): Do not handle
3354         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
3355         * expr.c (expand_expr_real_1): Likewise.
3356         * gimple-low.c (lower_stmt): Likewise.
3357         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
3358         (dump_gimple_cdt): Remove.
3359         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
3360         (gimple_size): Likewise.
3361         (walk_gimple_op): Likewise.
3362         (is_gimple_stmt): Likewise.
3363         (walk_stmt_load_store_addr_ops): Likewise.
3364         (gimple_build_cdt): Remove.
3365         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
3366         * gimple.h (gimple_cdt_new_type): Remove.
3367         (gimple_cdt_new_type_ptr): Likewise.
3368         (gimple_cdt_set_new_type): Likewise.
3369         (gimple_cdt_location): Likewise.
3370         (gimple_cdt_location_ptr): Likewise.
3371         (gimple_cdt_set_location): Likewise.
3372         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
3373         * tree-cfg.c (remove_useless_stmts_1): Do not handle
3374         GIMPLE_CHANGE_DYNAMIC_TYPE.
3375         (verify_types_in_gimple_stmt): Likewise.
3376         * tree-inline.c (estimate_num_insns): Likewise.
3377         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
3378         (copy_decl_to_var): Likewise.
3379         (copy_result_decl_to_var): Likewise.
3380         * tree-pretty-print.c (dump_generic_node): Do not handle
3381         CHANGE_DYNAMIC_TYPE_EXPR.
3382         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3383         * tree-ssa-operands.c (get_expr_operands): Likewise.
3384         * tree-ssa-structalias.c (struct variable_info): Remove
3385         no_tbaa_pruning member.
3386         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
3387         (unify_nodes): Do not copy it.
3388         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
3389         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
3390         (set_uids_in_ptset): Do not check it.
3391         (find_what_var_points_to): Likewise.
3392         (compute_tbaa_pruning): Remove.
3393         (compute_points_to_sets): Do not call it.
3394         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
3395         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
3396         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
3397         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
3398         (DECL_NO_TBAA_P): Likewise.
3399         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
3400         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
3401         (expand_omp_atomic_pipeline): Do not set it.
3402         * print-tree.c (print_node): Do not dump it.
3403         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
3404         redundant check.
3405
3406 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
3407
3408         PR target/39856
3409         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
3410         for clobber.
3411
3412 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
3413
3414         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
3415         non-external.
3416
3417 2009-05-22  Ben Elliston  <bje@au.ibm.com>
3418
3419         * Makefile.in (bversion.h, s-bversion): New targets.
3420         (TOPLEV_H): Add bversion.h.
3421         * toplev.h: Include "bversion.h".
3422         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
3423         the __format__ attribute only if compiling with the same version
3424         of GCC as the sources (the "build version").
3425
3426 2009-05-22  Ben Elliston  <bje@au.ibm.com>
3427
3428         * c-format.c (handle_format_attribute): Fix comment typo.
3429
3430 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
3431
3432         PR target/37846
3433         * config/ia64/ia64.opt (mfused-madd): New.
3434         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
3435         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3436         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
3437         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
3438         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
3439         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
3440         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
3441         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
3442         instruction if !TARGET_FUSED_MADD.
3443         (fpma, fpms): Remove colon from name.
3444
3445 2009-05-22  Richard Guenther  <rguenther@suse.de>
3446
3447         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
3448         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
3449         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3450         TARGET_MEM_REF.
3451         (create_expression_by_pieces): Only convert if necessary.
3452         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
3453         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
3454
3455 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
3456
3457         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
3458         regular pattern from a template and rename it ...
3459         (*extzv_truncsi_exts): ... to this.
3460
3461 2009-05-21  Richard Guenther  <rguenther@suse.de>
3462
3463         * cgraph.h (struct cgraph_node): Remove inline_decl member.
3464         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
3465         (cgraph_default_inline_p): Likewise.
3466         (cgraph_decide_inlining_incrementally): Likewise.
3467
3468 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
3469             Uros Bizjak  <ubizjak@gmail.com>
3470
3471         * config/i386/cpuid.h (bit_MOVBE): New.
3472
3473         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3474
3475         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
3476         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
3477         (ix86_handle_option): Handle OPT_mmovbe.
3478         (ix86_target_string): Add -mmovbe.
3479         (pta_flags): Add PTA_MOVBE.
3480         (processor_alias_table): Add PTA_MOVBE to "atom".
3481         (override_options): Handle PTA_MOVBE.
3482
3483         * config/i386/i386.h (TARGET_MOVBE): New.
3484
3485         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
3486         (*bswapsi_movbe): New.
3487         (*bswapdi_movbe): Likewise.
3488         (bswapdi2): Renamed to ...
3489         (*bswapdi_1): This.
3490         (bswapdi2): New expander.
3491
3492         * config/i386/i386.opt (mmovbe): New.
3493
3494         * doc/invoke.texi: Document -mmovbe.
3495
3496 2009-05-21  Taras Glek  <tglek@mozilla.com>
3497
3498         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
3499         * gcc-plugin.h (plugin_init): Updated signature.
3500         * gcc-plugin.h (plugin_name_args): Moved to this header.
3501         * doc/plugins.texi (plugin_init): Updated documention to reflect
3502         API change.
3503         * doc/plugins.texi (plugin_name_args): Added to documention.
3504
3505 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
3506
3507         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
3508         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
3509
3510 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
3511
3512         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
3513         JUMP_TABLE_DATA_P predicates where applicable.
3514         * config/i386/predicates.md: Ditto.
3515         * config/i386/sse.md: Ditto.
3516
3517 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
3518
3519         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
3520         operand2 -128 override length_immediate attribute to 1.
3521         * config/i386/predicates.md (constm128_operand): New predicate.
3522
3523         * config/i386/i386.c (memory_address_length): Handle %r12
3524         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
3525         also check REGNO.
3526         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
3527         mode look through optional ZERO_EXTEND and SUBREG.
3528         * config/i386/i386.md (R12_REG): New define_constant.
3529         (prefix_data16): For sse unit set also for MODE_TI insns.
3530         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
3531         insns set if operand 1 is ext_QIreg_operand.
3532         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
3533         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
3534         immediate.
3535         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
3536         mode from MODE_DI to MODE_SI.
3537         (movdi_1_rex64): Override modrm and length_immediate attributes
3538         only for movabs (TYPE_IMOV, alternative 2).
3539         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
3540         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3541         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3542         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3543         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
3544         prefix_rex attribute if DImode.
3545         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
3546         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
3547         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
3548         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
3549         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
3550         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
3551         Likewise.  For TYPE_IMOV clear length_immediate attribute.
3552         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
3553         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
3554         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
3555         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
3556         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
3557         or one operand TYPE_ISHIFT.
3558         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
3559         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
3560         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
3561         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
3562         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
3563         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
3564         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
3565         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
3566         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
3567         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
3568         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
3569         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
3570         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
3571         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
3572         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
3573         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
3574         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
3575         set mode attribute, don't override length attribute.
3576         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
3577         to 1.
3578         (return_internal_long): Set length attribute to 2 instead of 1.
3579         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
3580         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
3581         prefix_rex attribute.
3582         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
3583         New predicates.
3584         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
3585
3586 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3587
3588         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
3589
3590 2009-05-20  Ian Lance Taylor  <iant@google.com>
3591
3592         * tree.c (build_tree_list_vec_stat): New function.
3593         (ctor_to_vec): New function.
3594         (build_nt_call_vec): New function.
3595         (build_call_array): Change args to be a const pointer.
3596         (build_call_vec): New function.
3597         * tree.h (build_nt_call_vec): Declare.
3598         (build_tree_list_vec_stat): Declare.
3599         (build_tree_list_vec): Define.
3600         (build_call_array): Update declaration.
3601         (build_call_vec): Declare.
3602         (ctor_to_vec): Declare.
3603         * c-common.c (tree_vector_cache): New static variable.
3604         (make_tree_vector): New function.
3605         (release_tree_vector): New function.
3606         (make_tree_vector_single): New function.
3607         (make_tree_vector_copy): New function.
3608         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
3609         (make_tree_vector_single, make_tree_vector_copy): Declare.
3610         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
3611         (c_parser_expr_list): Don't manage cache here, instead call
3612         make_tree_vector.
3613         (c_parser_release_expr_list): Remove static function.
3614         (c_parser_vec_to_tree_list): Remove static function.
3615         (c_parser_attributes): Call build_tree_list_vec instead of
3616         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
3617         c_parser_release_expr_list.
3618         (c_parser_postfix_expression_after_primary): Likewise.
3619         (c_parser_objc_keywordexpr): Likewise.
3620
3621 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
3622
3623         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
3624         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
3625         TARGET_CONVERT_TO_TYPE.
3626         * hooks.c (hook_tree_const_tree_null): Define.
3627         * hooks.h (hook_tree_const_tree_null): Declare.
3628         * target.h (struct gcc_target):  Add invalid_parameter_type,
3629         invalid_return_type, promoted_type, and convert_to_type fields.
3630         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
3631         (TARGET_INVALID_RETURN_TYPE): Define.
3632         (TARGET_PROMOTED_TYPE): Define.
3633         (TARGET_CONVERT_TO_TYPE): Define.
3634         (TARGET_INITIALIZER): Update for new fields.
3635         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
3636         (grokparms): Check targetm.invalid_parameter_type.
3637         * c-typeck.c (default_conversion): Check targetm.promoted_type.
3638         * c-convert.c (convert): Check targetm.convert_to_type.
3639
3640 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
3641
3642         * config/mips/mips.md (*extenddi_truncate<mode>,
3643         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
3644         defintions.
3645         (*extendhi_truncateqi): New define_insn_and_sptit.
3646
3647 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
3648
3649         PR middle-end/40204
3650         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
3651         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
3652
3653 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3654
3655         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
3656         the operand of VIEW_CONVERT_EXPR.
3657
3658 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
3659
3660         * config/i386/driver-i386.c (host_detect_local_cpu): Check
3661         extended family and model for Intel processors.  Support Intel Atom.
3662
3663 2009-05-20  Olivier Hainque  <hainque@adacore.com>
3664
3665         * gstab.h (stab_code_type): Define, to be used instead of the
3666         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
3667         notice.
3668         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
3669         occurrences by stab_code_type.
3670         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
3671
3672 2009-05-20  Martin Jambor  <mjambor@suse.cz>
3673
3674         * tree-flow.h (insert_edge_copies_seq): Undeclare.
3675         (sra_insert_before): Likewise.
3676         (sra_insert_after): Likewise.
3677         (sra_init_cache): Likewise.
3678         (sra_type_can_be_decomposed_p): Likewise.
3679         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
3680         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
3681         (sra_insert_before): Likewise.
3682         (sra_insert_after): Likewise.
3683         (sra_init_cache): Likewise.
3684         (insert_edge_copies_seq): Made static and moved upwards.
3685
3686         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
3687         case.
3688
3689         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
3690
3691         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
3692         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
3693         simple copies.
3694
3695 2009-05-20  Richard Guenther  <rguenther@suse.de>
3696
3697         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
3698         with mismatched comparison modes.
3699
3700 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3701
3702         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
3703         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
3704         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
3705         with shifts for Thumb2.
3706         (orsi_notsi): New for orn.
3707         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
3708         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
3709         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
3710         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
3711         Don't invert remainder for IOR.
3712         
3713 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
3714
3715         PR tree-optimization/40087
3716         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
3717         number_of_iterations_ne): Rename never_infinite argument.
3718         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
3719         number_of_iterations_le): Handle pointer-type ivs when
3720         exit_must_be_taken is false.
3721         (number_of_iterations_cond):  Do not always assume that
3722         exit_must_be_taken if the control variable is a pointer.
3723
3724 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3725
3726         * c-typeck.c (build_binary_op): Allow % on integal vectors.
3727         * doc/extend.texi (Vector Extension): Document that % is allowed too.
3728
3729 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
3730
3731         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
3732         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
3733
3734 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3735
3736         PR c/40172
3737         * c.opt (Wlogical-op): Disabled by default.
3738         * c-opt (c_common_post_options): Do not enable Wlogical-op with
3739         Wextra.
3740         * doc/invoke.texi (Wlogical-op): Likewise.
3741         
3742 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3743
3744         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
3745         into CASE_CONVERT.
3746         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
3747         Propagate the type of the first operand.
3748         <ASSERT_EXPR>: Simplify.
3749         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
3750         Rewrite using the RHS code as discriminant.
3751         <NOP_EXPR>: Turn into CASE_CONVERT.
3752         <PLUS_EXPR>: Propagate the type of the first operand.
3753
3754 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
3755
3756         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
3757         (ia64_dconst_0_375): New.
3758         * config/ia64/ia64.c (ia64_override_options): Remove
3759         -minline-sqrt-min-latency warning.
3760         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
3761         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
3762         * config/ia64/ia64.md (*sqrt_approx): Remove.
3763         (sqrtsf2): Remove #if 0.
3764         (sqrtsf2_internal_thr): Rewrite and move to div.md.
3765         (sqrtdf): Remove assert.
3766         (sqrtdf2_internal_thr): Rewrite and move to div.md.
3767         (sqrtxf2): Remove #if 0.
3768         (sqrtxf2_internal_thr): Rewrite and move to div.md.
3769         * div.md (sqrt_approx_rf): New.
3770         (sqrtsf2_internal_thr): New implementation.
3771         (sqrtsf2_internal_lat): New.
3772         (sqrtdf2_internal_thr: New implementation.
3773         (sqrtxf2_internal): New implementation.
3774
3775 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
3776             Hans-Peter Nilsson  <hp@axis.com>
3777
3778         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
3779         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
3780         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
3781         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
3782         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
3783         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
3784         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
3785         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
3786         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
3787         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
3788         * c-common.c: ...from here.
3789
3790 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3791
3792         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
3793
3794 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3795
3796         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
3797
3798 2009-05-19  Ben Elliston  <bje@au.ibm.com>
3799
3800         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
3801         assignments with memcpy calls.
3802         (add_fdes): Likewise.
3803         (binary_search_unencoded_fdes): Likewise.
3804         (linear_search_fdes): Eliminate type puns.
3805         
3806 2009-05-19  Richard Guenther  <rguenther@suse.de>
3807
3808         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
3809         not falsely claim to have propagated into all uses.
3810
3811 2009-05-19  Ben Elliston  <bje@au.ibm.com>
3812
3813         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
3814         version to v3.0.
3815
3816 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3817
3818         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
3819         * config/sh/sh.c (sh_legitimate_address_p): Make static.
3820         (TARGET_LEGITIMATE_ADDRESS_P): New.
3821         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3822         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
3823         
3824 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
3825
3826         PR debug/40109
3827         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
3828         child of the containing namespace's DIE.
3829
3830 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
3831
3832         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
3833         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
3834         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
3835         extend patterns.
3836
3837 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
3838
3839         PR target/39942
3840         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
3841         gen_align with gen_pad.
3842         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
3843         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
3844
3845         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
3846         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
3847
3848         * config/i386/i386.md (align): Renamed to ...
3849         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
3850         ASM_OUTPUT_MAX_SKIP_PAD.
3851
3852 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
3853
3854         * config.gcc: Fix variable syntax.
3855
3856         PR target/39531
3857         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
3858         before calling exact_log2.
3859         (output_iorsi3): Likewise.
3860         (output_xorsi3): Likewise.
3861
3862 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3863
3864         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
3865         for the none zero constant operand except for EQ and NE
3866         comprisons even when the first operand is R0.
3867
3868 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
3869
3870         * config/s390/2064.md: Remove trailing whitespaces.
3871         * config/s390/2084.md: Likewise.
3872         * config/s390/constraints.md: Likewise.
3873         * config/s390/fixdfdi.h: Likewise.
3874         * config/s390/libgcc-glibc.ver: Likewise.
3875         * config/s390/s390-modes.def: Likewise.
3876         * config/s390/s390-protos.h: Likewise.
3877         * config/s390/s390.c: Likewise.
3878         * config/s390/s390.h: Likewise.
3879         * config/s390/s390.md: Likewise.
3880         * config/s390/tpf-unwind.h: Likewise.
3881
3882 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3883
3884         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
3885
3886 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3887
3888         M68K TLS support.
3889         * configure.ac (m68k-*-*): Check if binutils support TLS.
3890         * configure: Regenerate.
3891         * config/m68k/predicates.md (symbolic_operand): Extend comment.
3892         * config/m68k/constraints.md (Cu): New constraint.
3893         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
3894         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
3895         (movsi): Handle TLS symbols.
3896         (addsi3_5200): Handle XTLS symbols, indent.
3897         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
3898         (m68k_tls_reference_p): Declare.
3899         (m68k_legitimize_address): Declare.
3900         (m68k_unwrap_symbol): Declare.
3901         * config/m68k/m68k.opt (mxtls): New option.
3902         * config/m68k/m68k.c (ggc.h): Include.
3903         (m68k_output_dwarf_dtprel): Implement hook.
3904         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
3905         (m68k_expand_prologue): Load GOT pointer when function needs it.
3906         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
3907         (m68k_legitimate_constant_address_p): Same.
3908         (m68k_decompose_address): Handle TLS references.
3909         (m68k_get_gp): New static function.
3910         (enum m68k_reloc): New contants.
3911         (TLS_RELOC_P): New macro.
3912         (m68k_wrap_symbol): New static function.
3913         (m68k_unwrap_symbol): New function.
3914         (m68k_final_prescan_insn_1): New static function.
3915         (m68k_final_prescan_insn): New function.
3916         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
3917         functions.
3918         (legitimize_pic_address): Handle TLS references..
3919         (m68k_tls_get_addr, m68k_get_tls_get_addr)
3920         (m68k_libcall_value_in_a0_p)
3921         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
3922         (m68k_call_m68k_read_tp): Helper variables and functions for ...
3923         (m68k_legitimize_tls_address): Handle TLS references.
3924         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
3925         New functions.
3926         (m68k_legitimize_address): Handle TLS symbols.
3927         (m68k_get_reloc_decoration): New static function.
3928         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
3929         UNSPEC_RELOC32.
3930         (m68k_output_dwarf_dtprel): Implement hook.
3931         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
3932         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
3933         m68k_call_* routines.
3934         (sched_attr_op_type): Handle TLS symbols.
3935         (gt-m68k.h): Include.
3936         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
3937         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
3938
3939 2009-05-18  Martin Jambor  <mjambor@suse.cz>
3940
3941         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
3942         (visit_store_addr_for_mod_analysis): New function.
3943         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
3944         (determine_cst_member_ptr): Use gimple_assign_single_p.
3945         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
3946         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
3947         operands.  Don't check number of operands of a NOP_EXPR.
3948
3949 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
3950
3951         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
3952
3953 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3954
3955         PR c/40172
3956         * c-common.c (warn_logical_operator): Don't warn if one of
3957         expression isn't always true or false.
3958
3959 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
3960
3961         * config/i386/biarch32.h: New file.
3962         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
3963
3964 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
3965
3966         * config/mips/mips.md (*zero_extend<mode>_trunchi,
3967         *zero_extend<mode>_truncqi): Merge these into ...
3968         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
3969         Name the pattern following this as *zero_extendhi_truncqi.
3970
3971 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
3972
3973         PR middle-end/39301
3974         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
3975         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
3976         (output_info): Make field HOST_WIDEST_INT.
3977         (print_statistics): Use HOST_WIDEST_INT_PRINT.
3978         (dump_bitmat_statistics): Same.
3979
3980 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
3981
3982         * config.gcc (use_gcc_stdint):  Set to wrap.
3983         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
3984         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
3985         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
3986         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
3987         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
3988         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
3989         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
3990         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
3991
3992 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
3993
3994         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
3995         tune_64.
3996         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
3997         Move definitions earlier.
3998         (OPT_ARCH64, OPT_ARCH32): Define.
3999         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
4000         and tune_64.
4001
4002 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
4003
4004         PR target/40153
4005         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
4006         implies.
4007
4008 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
4009
4010         * arm.md (movdi2): Copy non-reg values to DImode registers.
4011
4012 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
4013
4014         PR target/39942
4015         * final.c (label_to_max_skip): New function.
4016         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
4017         CODE_LABEL_NUMBER <= max_labelno.
4018         * output.h (label_to_max_skip): New prototype.
4019         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
4020         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
4021         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
4022         Handle CODE_LABELs with >= 16 byte alignment or with
4023         max_skip == (1 << align) - 1.
4024         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
4025         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
4026
4027         PR target/39942
4028         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
4029         .p2align 3 if MAX_SKIP is smaller than 7.
4030         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4031
4032 2009-05-15  Ian Lance Taylor  <iant@google.com>
4033
4034         * alias.c (struct alias_set_entry_d): Rename from struct
4035         alias_set_entry.  Change all uses.
4036         * except.c (struct call_site_record_d): Rename from struct
4037         call_site_record.  Change all uses.
4038         * except.h (struct eh_region_d): Rename from struct eh_region.
4039         Change all uses.
4040         * gcse.c (struct hash_table_d): Rename from struct hash_table.
4041         Change all uses.
4042         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
4043         ivtype_map_elt.  Change all uses.
4044         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
4045         Change all uses.
4046         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
4047         * graphite.h (struct name_tree_d): Rename from struct name_tree.
4048         Change all uses.
4049         (struct sese_d): Rename from struct sese.  Change all uses.
4050         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
4051         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
4052         * optabs.h (struct optab_d): Rename from struct optab.  Change all
4053         uses.
4054         (struct convert_optab_d): Rename from struct convert_optab.
4055         Change all uses.
4056         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
4057         ipa_opt_pass.  Change all uses.
4058         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
4059         all uses.
4060
4061         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
4062         defined as a typedef.
4063         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
4064         defined as a tag.
4065
4066 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4067
4068         PR 16302
4069         * fold-const.c (make_range,build_range_check,merge_ranges): Move
4070         declaration to...
4071         (merge_ranges): Returns bool. 
4072         * tree.h (make_range): .. to here.
4073         (build_range_check): Likewise.
4074         (merge_ranges): Likewise. Renamed from merge_ranges.
4075         * c-typeck.c (parser_build_binary_op): Update calls to
4076         warn_logical_operator.
4077         * c-common.c (warn_logical_operator): Add new warning.
4078         * c-common.h (warn_logical_operator): Update declaration.
4079         
4080 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4081
4082         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
4083         
4084 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4085
4086         * doc/install.texi: Document MPC requirements, flags etc.
4087
4088         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
4089         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
4090         Evaluate constant arguments.
4091         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
4092         (fold_builtin_1): Likewise, also evaluate constant arguments.
4093         Remove superfluous break.
4094         (do_mpc_ckconv): New.
4095         * real.h: Include mpc.h.
4096         * toplev.c (print_version): Output MPC version info if available.
4097
4098 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
4099
4100         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
4101
4102 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4103
4104         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
4105         only once.
4106
4107 2009-05-15  Jan Hubicka  <jh@suse.cz>
4108
4109         * doc/invoke.texi (max-early-inliner-iterations): New flag.
4110         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
4111         (try_inline): Fix return value.
4112         (cgraph_decide_inlining_incrementally): Honor new value.
4113         (cgraph_early_inlining): Handle indirect inlining.
4114         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
4115
4116 2009-05-15  Jan Hubicka  <jh@suse.cz>
4117
4118         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
4119         * cgraphunit.c (cgraph_finalize_function): Set it.
4120         (cgraph_expand_function): Use it.
4121
4122 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
4123
4124         * real.c (encode_ieee_half): Define.
4125         (decode_ieee_half): Define.
4126         (ieee_half_format): Define.
4127         (arm_half_format): Define.
4128         * real.h (ieee_half_format): Declare.
4129         (arm_half_format): Declare.
4130
4131 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
4132
4133         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
4134         swapped, and reversed optabs exist before trying to use them.
4135
4136 2009-05-15  Paul Brook  <paul@codesourcery.com>
4137             Sandra Loosemore  <sandra@codesourcery.com>
4138
4139         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
4140         loads.  Allow PRE_DEC.
4141         (output_move_neon): Handle PRE_DEC.
4142         (arm_print_operand): Add 'A' for neon structure loads.
4143         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
4144         * config/arm/neon.md (neon_mov): Update comment.
4145         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
4146         calls.
4147         (Um): New constraint.
4148
4149 2009-05-15  Jan Hubicka  <jh@suse.cz>
4150
4151         Revert the following patch until testsuite fallout is fixed:
4152         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4153         * cgraph.h (struct inline_summary): New filed self_wize,
4154         size_inlining_benefit, self_time and time_inlining_benefit.
4155         (struct cgraph_global_info): Replace insns by time ans size fields.
4156         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4157         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4158         (ipcp_update_callgraph): Do not touch function bodies.
4159         * ipa-inline.c: Include except.h
4160         (MAX_TIME): New constant.
4161         (overall_insns): Remove
4162         (overall_size, max_benefit): New static variables.
4163         (cgraph_estimate_time_after_inlining): New function.
4164         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4165         (cgraph_clone_inlined_nodes): Update size.
4166         (cgraph_mark_inline_edge): Update size.
4167         (cgraph_estimate_growth): Use size info.
4168         (cgraph_check_inline_limits): Check size.
4169         (cgraph_default_inline_p): Likewise.
4170         (cgraph_edge_badness): Compute badness based on benefit and size cost.
4171         (cgraph_decide_recursive_inlining): Check size.
4172         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4173         and times.
4174         (cgraph_decide_inlining): Likewise.
4175         (cgraph_decide_inlining_incrementally): Likewise; honor
4176         PARAM_EARLY_INLINING_INSNS.
4177         (likely_eliminated_by_inlining_p): New predicate.
4178         (estimate_function_body_sizes): New function.
4179         (compute_inline_parameters): Use it.
4180         * except.c (must_not_throw_labels): New function.
4181         * except.h (must_not_throw_labels): Declare.
4182         * tree-inline.c (init_inline_once): Kill inlining_weigths
4183         * tree-ssa-structalias.c: Avoid uninitialized warning.
4184         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
4185         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
4186         (PARAM_INLINE_CALL_COST): Remove.
4187         (PARAM_EARLY_INLINING_INSNS): New.
4188
4189 2009-05-15  Richard Guenther  <rguenther@suse.de>
4190
4191         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
4192         not TODO_update_ssa.
4193
4194 2009-05-15  Richard Guenther  <rguenther@suse.de>
4195
4196         PR tree-optimization/39999
4197         * gimple.h (gimple_expr_type): Use the expression type looking
4198         through useless conversions.
4199         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
4200         (vn_nary_op_insert_stmt): Likewise.
4201         (simplify_binary_expression): Likewise.
4202
4203 2009-05-15  Richard Guenther  <rguenther@suse.de>
4204
4205         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
4206         New options, enabled by default.
4207         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
4208         Document.
4209         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
4210         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
4211         * tree-ssa-structalias.c (gate_tree_pta): New function.
4212         (pass_build_alias): Use it.
4213
4214 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
4215
4216         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
4217         recurse on an invariant address if a conversion from a pointer
4218         type to a wider integer type is involved.
4219
4220 2009-05-15  Jan Hubicka  <jh@suse.cz>
4221
4222         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4223         * cgraph.h (struct inline_summary): New filed self_wize,
4224         size_inlining_benefit, self_time and time_inlining_benefit.
4225         (struct cgraph_global_info): Replace insns by time ans size fields.
4226         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4227         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4228         (ipcp_update_callgraph): Do not touch function bodies.
4229         * ipa-inline.c: Include except.h
4230         (MAX_TIME): New constant.
4231         (overall_insns): Remove
4232         (overall_size, max_benefit): New static variables.
4233         (cgraph_estimate_time_after_inlining): New function.
4234         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4235         (cgraph_clone_inlined_nodes): Update size.
4236         (cgraph_mark_inline_edge): Update size.
4237         (cgraph_estimate_growth): Use size info.
4238         (cgraph_check_inline_limits): Check size.
4239         (cgraph_default_inline_p): Likewise.
4240         (cgraph_edge_badness): Compute badness based on benefit and size cost.
4241         (cgraph_decide_recursive_inlining): Check size.
4242         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4243         and times.
4244         (cgraph_decide_inlining): Likewise.
4245         (cgraph_decide_inlining_incrementally): Likewise; honor
4246         PARAM_EARLY_INLINING_INSNS.
4247         (likely_eliminated_by_inlining_p): New predicate.
4248         (estimate_function_body_sizes): New function.
4249         (compute_inline_parameters): Use it.
4250         * except.c (must_not_throw_labels): New function.
4251         * except.h (must_not_throw_labels): Declare.
4252         * tree-inline.c (init_inline_once): Kill inlining_weigths
4253         * tree-ssa-structalias.c: Avoid uninitialized warning.
4254         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
4255         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
4256         (PARAM_INLINE_CALL_COST): Remove.
4257         (PARAM_EARLY_INLINING_INSNS): New.
4258         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
4259         (inline-call-cost): Remove.
4260         (early-inlining-insns): New.
4261
4262 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4263
4264         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
4265         for bounds.
4266         (print_int_cst_bounds_in_octal_p): Likewise.
4267         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
4268         with subtypes.
4269         * dwarf2out.c (base_type_die): Likewise.
4270         (is_subrange_type): Delete.
4271         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
4272         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
4273         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
4274         if the destination type is boolean.
4275         (build_range_check): Do not special-case subtypes.
4276         (fold_sign_changed_comparison): Likewise.
4277         (fold_unary): Likewise.
4278         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
4279         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
4280         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
4281         * tree.c (subrange_type_for_debug_p): New predicate based on the
4282         former is_subrange_type.
4283         * tree.h (subrange_type_for_debug_p): Declare.
4284         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
4285         (convert_affine_scev): Remove call to above function.
4286         (chrec_convert_aggressive): Likewise.
4287         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
4288         false for conversions involving subtypes.
4289         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
4290         (vrp_val_min): Likewise.
4291         (needs_overflow_infinity): Likewise.
4292         (extract_range_from_unary_expr): Likewise.
4293
4294 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
4295
4296         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
4297         * config/frv/frv.c: Likewise.
4298         * config/s390/s390.c: Likewise.
4299         * config/sparc/sparc.h: Likewise.
4300         * config/i386/i386.h: Likewise.
4301         * config/i386/i386.c: Likewise.
4302         * config/crx/crx.c: Likewise.
4303         * config/m68hc11/m68hc11.h: Likewise.
4304         * config/iq2000/iq2000.c: Likewise.
4305         * config/mn10300/mn10300.h: Likewise.
4306         * config/mn10300/mn10300.c: Likewise.
4307         * config/m68k/m68k.c: Likewise.
4308         * config/rs6000/rs6000.c: Likewise.
4309         * config/rs6000/xcoff.h: Likewise.
4310         * config/rs6000/linux64.h: Likewise.
4311         * config/rs6000/sysv4.h: Likewise.
4312         * config/score/score3.c: Likewise.
4313         * config/score/score7.c: Likewise.
4314         * config/score/score.c: Likewise.
4315         * config/arm/arm.md: Likewise.
4316         * config/mips/mips.c: Likewise.
4317         * config/mips/mips.md: Likewise.
4318         * config/bfin/bfin.h: Likewise.
4319         * config/pa/pa.c: Likewise.
4320         * config/pa/constraints.md: Likewise.
4321
4322         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
4323         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
4324         * config/pdp11/pdp11.h: Use memory_address_p instead.
4325
4326 2009-05-14  Ian Lance Taylor  <iant@google.com>
4327
4328         * passes.c (finish_optimization_passes): Change i to int.
4329         * plugin.c (plugins_active_p): Change event to int.
4330         (dump_active_plugins): Likewise.
4331         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
4332         Add cast.
4333         * tree.c (tree_range_check_failed): Change c to unsigned int.
4334         (omp_clause_range_check_failed): Likewise.
4335         (build_common_builtin_nodes): Change mode to int.  Add cast.
4336         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
4337         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
4338
4339         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
4340         ++ or -- with a variable of enum type.
4341
4342 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
4343
4344         PR driver/40144
4345         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
4346
4347 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
4348
4349         * store-motion.c: Do not include params.h
4350         * Makefile.in: Fix dependencies for various files.
4351
4352 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
4353
4354         * auto-inc-dec.c: Fix pass description, remove apparent
4355         accidental duplication.
4356
4357 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4358
4359         PR middle-end/40147
4360         * ipa-utils.h (memory_identifier_string): Moved to ...
4361         * tree.h (memory_identifier_string): Here.  Add GTY(()).
4362
4363 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
4364
4365         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
4366         in the former documentation of...
4367         (GO_IF_LEGITIMATE_ADDRESS): ... this.
4368         * ira-conflicts.c (get_dup_num): Use address_operand.
4369         * targhooks.c (default_legitimate_address_p): New.
4370         * targhooks.h (default_legitimate_address_p): New.
4371         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
4372         Call hook.
4373         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
4374         * target.h (struct target): Add legitimate_address_p.
4375         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
4376         (TARGET_INITIALIZER): Include it.
4377
4378         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4379         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
4380         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
4381         (TARGET_LEGITIMATE_ADDRESS_P): New.
4382
4383         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4384         (REG_OK_STRICT_P): Delete.
4385         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
4386         (frv_legitimate_address_p_1): ... this.
4387         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
4388         (frv_legitimate_address_p_1): ... the renamed old
4389         frv_legitimate_address_p.
4390         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
4391         (TARGET_LEGITIMATE_ADDRESS_P): New.
4392
4393         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4394         * config/s390/s390-protos.h (legitimate_address_p): Remove.
4395         * config/s390/s390.c (legitimate_address_p): Rename to...
4396         (s390_legitimate_address_p): ... this, make static.
4397         (legitimize_address): Adjust call.
4398         (TARGET_LEGITIMATE_ADDRESS_P): New.
4399         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
4400
4401         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4402         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
4403         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
4404         (TARGET_LEGITIMATE_ADDRESS_P): New.
4405
4406         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4407         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
4408         * config/spu/spu.c (spu_legitimate_address): Rename to...
4409         (spu_legitimate_address_p): ... this, make static.
4410         (TARGET_LEGITIMATE_ADDRESS_P): New.
4411
4412         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4413         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
4414         * config/sparc/sparc.c (legitimate_address_p): Rename to...
4415         (sparc_legitimate_address_p): ... this, make static and return bool.
4416         (legitimize_address): Adjust call.
4417         (TARGET_LEGITIMATE_ADDRESS_P): New.
4418
4419         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4420         * config/i386/i386-protos.h (legitimate_address_p): Remove.
4421         * config/i386/i386.c (legitimate_address_p): Rename to...
4422         (ix86_legitimate_address_p): ... this, make static.
4423         (constant_address_p): Move after it, adjust call.
4424         (TARGET_LEGITIMATE_ADDRESS_P): New.
4425
4426         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4427         * config/avr/avr-protos.h (legitimate_address_p): Remove.
4428         * config/avr/avr.c (legitimate_address_p): Rename to...
4429         (avr_legitimate_address_p): ... this, make static.
4430         (legitimize_address): Adjust call.
4431         (TARGET_LEGITIMATE_ADDRESS_P): New.
4432
4433         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4434         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
4435         * config/crx/crx.c (crx_legitimate_address_p): Make static.
4436         (TARGET_LEGITIMATE_ADDRESS_P): New.
4437
4438         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4439         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
4440         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
4441         (TARGET_LEGITIMATE_ADDRESS_P): New.
4442
4443         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4444         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
4445         Remove.
4446         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4447         Make static.
4448         (TARGET_LEGITIMATE_ADDRESS_P): New.
4449
4450         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4451         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
4452         Remove.
4453         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
4454         Rename to...
4455         (m68hc11_legitimate_address_p): ... this, make static.
4456         (go_if_legitimate_address_internal): Rename to...
4457         (m68hc11_legitimate_address_p_1): ... this.
4458         (legitimize_address): Adjust call.
4459         (TARGET_LEGITIMATE_ADDRESS_P): New.
4460
4461         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4462         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
4463         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
4464         (TARGET_LEGITIMATE_ADDRESS_P): New.
4465
4466         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4467         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
4468         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
4469         (mn10300_legitimate_address_p): ... this, make static.
4470         (TARGET_LEGITIMATE_ADDRESS_P): New.
4471
4472         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4473         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
4474         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
4475         (TARGET_LEGITIMATE_ADDRESS_P): New.
4476
4477         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4478         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
4479         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
4480         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4481         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
4482         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
4483         (rs6000_legitimate_address_p): ... this, make static.
4484         (TARGET_LEGITIMATE_ADDRESS_P): New.
4485         (REG_MODE_OK_FOR_BASE_P): Delete.
4486         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
4487
4488         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4489         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
4490         Delete.
4491         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
4492         static, adjust types.
4493         (TARGET_LEGITIMATE_ADDRESS_P): New.
4494
4495         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4496         * config/score/score.c (score_address_p): Rename to...
4497         (score_legitimate_address_p): ... this.
4498         (TARGET_LEGITIMATE_ADDRESS_P): New.
4499         * config/score/score3.c (score3_address_p): Rename to...
4500         (score3_legitimate_address_p): ... this.
4501         * config/score/score7.c (score7_address_p): Rename to...
4502         (score7_legitimate_address_p): ... this.
4503
4504         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
4505         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
4506         GO_IF_LEGITIMATE_ADDRESS): Delete.
4507         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
4508         thumb2_legitimate_address_p): Delete.
4509         (arm_legitimate_address_p): Rename to...
4510         (arm_legitimate_address_outer_p): ... this.
4511         * config/arm/constraints.md ("Uq"): Adjust call.
4512         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
4513         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
4514         to...
4515         (arm_legitimate_address_outer_p): ... this.
4516         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
4517         static.
4518         (TARGET_LEGITIMATE_ADDRESS_P): New.
4519
4520         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4521         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
4522         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
4523         (TARGET_LEGITIMATE_ADDRESS_P): New.
4524
4525         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4526         * config/vax/vax-protos.h (legitimate_address_p): Remove.
4527         * config/vax/vax.c (legitimate_address_p): Rename to...
4528         (vax_legitimate_address_p): ... this, make static.
4529         (TARGET_LEGITIMATE_ADDRESS_P): New.
4530
4531         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4532         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
4533         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
4534         (TARGET_LEGITIMATE_ADDRESS_P): New.
4535
4536         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4537         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
4538         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
4539         (mmix_legitimate_address_p): ... this, make static.
4540         (TARGET_LEGITIMATE_ADDRESS_P): New.
4541
4542         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4543         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
4544         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
4545         (TARGET_LEGITIMATE_ADDRESS_P): New.
4546
4547 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
4548
4549         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
4550         of MODE_COMPLEX_INT.
4551
4552 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4553
4554         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
4555         LCT_NORMAL in function call.
4556         * mips-tdump.c (print_file_desc): Add cast to enum type.
4557         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
4558         (mark_stabs): Add casts to enum types.
4559         (parse_stabs_common): Add casts to enum types.
4560
4561 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
4562
4563         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
4564         Check for invalid values of LETTER.
4565
4566 2009-05-13  Taras Glek  <tglek@mozilla.com>
4567
4568         * attribs.c (register_attribute): moved out attribute registration
4569         into register_attribute.
4570         * doc/plugins.texi: Documented register_attribute and
4571         PLUGIN_ATTRIBUTES.
4572         * gcc-plugin.h: Added forward decl for register_attribute.
4573         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
4574         * plugin.c (register_callback, invoke_plugin_callbacks): Added
4575         PLUGIN_ATTRIBUTES boilerplate.
4576
4577 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4578
4579         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
4580         values even in sentinel and empty entries.
4581         (ms_printf_flag_specs):  Likewise.
4582         (ms_scanf_flag_specs):  Likewise.
4583         (ms_strftime_flag_specs):  Likewise.
4584         (ms_print_char_table):  Likewise.
4585         (ms_scan_char_table):  Likewise.
4586         (ms_time_char_table):  Likewise.
4587
4588 2009-05-13  Doug Kwan  <dougkwan@google.com>
4589
4590         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
4591
4592 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
4593
4594         * config/mips/mips.md (store): Add attributes for QI and HI.
4595         Update comment.
4596         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
4597         (truncdi<mode>2): ... this new pattern.
4598
4599 2009-05-13  Brad Hards  <bradh@kde.org>
4600
4601         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
4602
4603 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
4604             Ben Elliston <bje@au.ibm.com>
4605
4606         PR middle-end/40035
4607         * dse.c (check_mem_read_rtx): Guard against width == -1.
4608
4609 2009-05-13  Michael Matz  <matz@suse.de>
4610
4611         PR middle-end/39976
4612         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
4613         (trivially_conflicts_p): New function.
4614         (insert_backedge_copies): Use it.
4615
4616 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
4617
4618         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
4619         (handle_stdc_pragma): Use new enum constant names.
4620         (handle_pragma_float_const_decimal64): Ditto.
4621
4622 2009-05-13  Ian Lance Taylor  <iant@google.com>
4623
4624         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
4625         tree.def.
4626
4627 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
4628
4629         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
4630         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
4631         multilibs.
4632         * config/m68k/m68k.h (FL_UCLINUX): Define.
4633
4634 2009-05-13  Jan Hubicka  <jh@suse.cz>
4635
4636         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
4637
4638 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4639
4640         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
4641         unless -fschedule-insns is specified.
4642
4643 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4644
4645         PR target/39561
4646         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
4647         TARGET_EXPAND_CBRANCHDI4.
4648         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
4649         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
4650         (cmpeqdi): Fix comment.
4651
4652 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
4653
4654         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
4655         (sh_legitimate_address_p): Likewise.
4656         * config/sh/sh.c (sh_legitimate_index_p): New.
4657         (sh_legitimate_address_p): Likewise.
4658         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
4659         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
4660         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
4661         (MAYBE_BASE_REGISTER_RTX_P): New macro.
4662         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
4663         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
4664         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
4665         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
4666         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
4667
4668 2009-05-12  Jan Hubicka  <jh@suse.cz>
4669
4670         * tree-inline.c (estimate_operator_cost): Add operands;
4671         when division happens by constant, it is cheap.
4672         (estimate_num_insns): Loads and stores are not having cost of 0;
4673         EH magic stuff is cheap; when computing runtime cost of switch,
4674         use log2 base of amount of its cases; builtin_expect has cost of 0;
4675         compute cost for moving return value of call.
4676         (init_inline_once): Initialize time_based flags.
4677         * tree-inline.h (eni_weights_d): Add time_based flag.
4678
4679 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4680
4681         * df-core.c: Update head documentation.
4682
4683 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4684
4685         PR bootstrap/40118
4686         * rs6000.c (rs6000_generate_compare): Use op1b instead of
4687         shadowing exisiting variable op1.
4688
4689 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
4690
4691         PR target/37179
4692         * config/i386/driver-i386.c (processor_signatures): New enum.
4693         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
4694         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
4695         processor signature to detect geode processor.
4696
4697 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4698
4699         Revert:
4700
4701         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4702
4703         * optabs.c (prepare_cmp_insn): Temporarily disable test that
4704         causes spurious differences between trunk and cond-optab branch.
4705
4706 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
4707
4708         * dojump.c (compare_from_rtx): Delete.
4709         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
4710         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
4711         if the comparison does not satisfy the predicate; test predicates for
4712         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
4713         further if one existing pattern fails.
4714         * expr.h (compare_from_rtx): Delete.
4715         (prepare_operand): Declare it.
4716         * optabs.c: Change "lib call" to "libcall" throughout.
4717         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
4718         HAVE_conditional_trap, emit_cmp_insn): Delete.
4719         (can_compare_p): Delete cmp_optab case.
4720         (prepare_float_lib_cmp): Return an rtx and a machine mode.
4721         Accept other parameters by value.
4722         (prepare_operand): Make non-static.
4723         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
4724         other parameters by value.  Try to widen operands here based on
4725         an optab_methods argument and looking at cbranch_optab.
4726         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
4727         loop.  Use cbranch_optab directly.
4728         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
4729         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
4730         assertion.
4731         (emit_conditional_move, emit_conditional_add): Inline what's needed
4732         of compare_from_rtx, using new prepare_cmp_insn for the rest.
4733         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
4734         with COMPARE.  Move cmov_optab and cstore_optab above
4735         with cbranch_optab, move cmp_optab down with ucmp_optab,
4736         remove tst_otpab.  Do not initialize trap_rtx.
4737         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
4738         for trap code.  Do not check HAVE_conditional_trap.  Use
4739         prepare_cmp_insn.  Accept no predicate for operand 3.
4740         * optabs.h (OTI_cmp): Mark as used only for libcalls.
4741         (OTI_ctrap, ctrap_optab): New.
4742         (tst_optab): Delete.
4743         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
4744         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
4745         with lookup of ctrap_optab.
4746         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
4747         Delete.
4748         (ctrap_optab): New.
4749
4750         * combine.c (combine_simplify_rtx, simplify_set): Do not
4751         special case comparing against zero for cc0 machines.
4752         * simplify-rtx.c (simplify_binary_operation_1): Never remove
4753         COMPARE on cc0 machines.
4754         (simplify_relational_operation): Return a new expression when
4755         a COMPARE could be removed.
4756         * final.c (final_scan_insn): Compare cc_status values
4757         against LHS of a (compare FOO (const_int 0)) cc0 source.
4758         Also check if cc_status.value is the full compare.
4759
4760         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
4761         (cstoreMM4): Document.
4762         (conditional_trap): Document ctrapMM4 instead.
4763         (sync_compare_and_swapMM): Refer to cbranchcc4.
4764         (Dependent Patterns): Eliminate obsolete information referring to
4765         the old jump optimization phase.
4766         (Canonicalization): Include cbranchcc4 case, omit canonicalization
4767         of compares with 0 on cc0 machines.
4768         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
4769         avoiding references to cc0.  Remove text about storing operands
4770         in cmpMM.
4771         * doc/tm.texi (Condition Codes): Include blurb on different
4772         condition code representations, separate into subsections for
4773         CC0, MODE_CC and conditional execution.
4774
4775         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
4776         alpha_emit_setcc): Accept operands and a machine mode.
4777         * config/alpha/alpha.c (alpha_emit_conditional_branch):
4778         Get code/op0/op1 from operands, use machine mode argument
4779         instead of alpha_compare.fp_p.  Emit the branch here.
4780         (alpha_emit_setcc): Likewise, and return boolean.
4781         (alpha_emit_conditional_move): Likewise.  Assert that
4782         cmp_op_mode == cmp_mode, and simplify accordingly.
4783         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
4784         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
4785         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
4786         Delete.
4787         (stack probe test): Use cbranchdi4.
4788         * config/alpha/predicates.md (alpha_cbranch_operator): New.
4789
4790         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
4791         * config/arc/arc.h (movsicc, movsfcc): Use it.
4792         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
4793         (cbranchsi4, cstoresi4): New.
4794         (cmpsi, bCC and sCC expanders): Remove. 
4795
4796         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
4797         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
4798         * config/arm/predicates.md (arm_comparison_operator): Only include
4799         floating-point operators if there is a hardware floating-point unit.
4800         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
4801         deferring to cbranch_cc and cstore_cc respectively.
4802         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
4803         cbranch_cc, cstore_cc): New.
4804         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
4805         arm_compare_op1.
4806         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
4807
4808         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
4809         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
4810         as an argument.
4811         (adjust_insn_length): Adjust calls.
4812         (avr_reorg): Handle (compare (foo) (const_int 0)).
4813         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
4814         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
4815         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
4816         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
4817         (bCC): Remove.
4818         (cbranchqi4, cbranchhi4, cbranchsi4): New.
4819         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
4820
4821         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
4822         (cbranchsi4, cstorebi4, cstoresi4): New.
4823         (movbisi): This insn is duplicate, split it to zero_extend.
4824         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
4825         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
4826         (bfin_optimize_loop): Use cbranch expander.
4827         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
4828         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
4829         (bfin_bimode_comparison_operator): ... this.
4830         (bfin_direct_comparison_operator): New.
4831  
4832         * config/cris/cris.c (cris_normal_notice_update_cc): Look
4833         inside (compare FOO (const_int 0)).
4834         (cris_rtx_costs): Handle ZERO_EXTRACT.
4835         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
4836         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
4837         (*tstdi_v32): Delete.
4838         (*cmpdi_non_v32): Add M alternative for operand 1.
4839         (cmpsi, cmp<mode>): Make private.
4840         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
4841         with COMPARE.
4842         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
4843
4844         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
4845         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
4846         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
4847         (cc_reg_operand): New.
4848         (any_cond): Delete.
4849         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
4850         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
4851         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
4852         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
4853         crx_expand_scond): Delete.
4854
4855         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
4856         (cbranchsi4): New.
4857         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
4858         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
4859
4860         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
4861         cstoresi4, cstoresf4, cstoredf4): New.
4862         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
4863         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
4864         Receive the entire operands array.
4865         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
4866         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
4867         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
4868         Get test/op0/op1 from the operands array.
4869         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
4870
4871         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
4872         (h8300_expand_store): New.
4873         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
4874         (const_int 0)).
4875         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
4876         (h8300_expand_store): New.
4877         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
4878         or do not try to produce (set (cc0) REG).
4879         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
4880         change a compare into a move to a scratch register.  Disable some
4881         peepholes when comparing with zero.
4882         (tstsi, tsthi, tstsi, cmpqi): Make private.
4883         (cmphi): Delete.
4884         (bCC, sCC): Delete.
4885         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
4886         cstoresi4): New.
4887
4888         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
4889         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
4890         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
4891         (ix86_emit_i387_log1p): Use cbranchxf2.
4892         (ix86_expand_setcc): Return void.
4893         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
4894         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
4895         cmp<MODEF>, cmpcc): Remove.
4896         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
4897         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
4898         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
4899         (sCC and bCC expanders): Remove.
4900         (stack_protect_test): Use cbranchcc4.
4901
4902         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
4903         Delete.
4904         (ia64_expand_compare): Accept three rtx by reference and return void.
4905         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
4906         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
4907         from *expr.  Update *expr with the BImode comparison to do.
4908         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
4909         cmptf, bCC, sCC, conditional_trap): Delete.
4910         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
4911         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
4912         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
4913         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
4914         * config/ia64/predicates.md (ia64_cbranch_operator): New.
4915
4916         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
4917         type of last argument.
4918         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
4919         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
4920         use machine mode argument instead of branch_type.  Remove dead
4921         code for floating-point comparisons.
4922         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
4923         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
4924         Remove.
4925         (cbranchsi4, cstoresi4): New.
4926         * config/iq2000/predicates.md (reg_or_const_operand): New.
4927
4928         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
4929         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
4930         (b<code>_op): Rewrite to...
4931         (bcc_op): ... this, using match_operator.
4932         (s<code>_op): Rewrite to...
4933         (scc_op): ... this, using match_operator.
4934         (s<code>_24_op): Rewrite to...
4935         (scc_op_24): ... this, using match_operator.
4936         (s<code>_<mode>): Rewrite to...
4937         (cstore<mode>4): ... this, using match_operator.
4938         (s<code>_<mode>_24): Rewrite to...
4939         (cstore<mode>4_24): ... this, using match_operator.
4940         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
4941         m32c_unpend_compare, m32c_expand_scc): Delete.
4942         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
4943         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
4944         (m32c_expand_movcc): Change NE to EQ if necessary.
4945         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
4946
4947         * config/m32r/m32r-protos.h (gen_cond_store): New.
4948         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
4949         (gen_cond_store): New, from sCC patterns.
4950         (m32r_expand_block_move): Use cbranchsi4.
4951         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
4952         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
4953         (cbranchsi4, cstoresi4): New.
4954         
4955         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
4956         Delete.
4957         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
4958         (m68hc11_notice_update_cc): Look into a compare with 0.
4959         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
4960         Delete.
4961         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
4962         cmphi, cmpqi, bCC): Delete.
4963         (cbranchsi4, cbranchhi4, cbranchqi4): New.
4964         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
4965         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
4966         sets with COMPARE.
4967
4968         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
4969         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
4970         * config/m68k/constraints.md (H): New.
4971         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
4972         the define_insn below.
4973         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
4974         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
4975         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
4976         patterns): Wrap RHS with COMPARE.
4977         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
4978         (*cmpdi_internal): Name this pattern.
4979         (cmpdi): Change to define_insn.
4980         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
4981         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
4982         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
4983         predicate.
4984         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
4985         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
4986         (conditional_trap): Change to...
4987         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
4988         (*conditional_trap): Use the ordered_comparison_operator and
4989         const1_operand predicates.
4990         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
4991         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
4992         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
4993         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
4994
4995         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
4996         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
4997         (mcore_gen_compare): New. 
4998         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
4999         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
5000         (mcore_gen_compare): ... this.
5001         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
5002         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
5003         (stack probe pattern): Use cbranchsi4.
5004
5005         * config/mips/predicates.md (mips_cstore_operator): New.
5006         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
5007         * config/mips/mips.md (any_cond): Delete.
5008         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
5009         always succeed.
5010         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
5011         fixuns_truncsfdi2): Use cbranch patterns.
5012         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
5013         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
5014         Adjust call to mips_expand_conditional_branch.
5015         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
5016         cstore<GPR:mode>4.
5017         * config/mips/mips-protos.h (mips_expand_conditional_branch,
5018         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
5019         * config/mips/mips.c (cmp_operands): Delete.
5020         (mips_emit_compare): Get comparison operands from *op0/*op1.
5021         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
5022         that it succeeds.  Use op0/op1 instead of cmp_operands.
5023         (mips_expand_conditional_branch, mips_expand_conditional_move,
5024         mips_expand_conditional_trap): Likewise.
5025         (mips_block_move_loop): Use cbranch patterns. 
5026         * config/mips/mips.h (cmp_operands): Delete.
5027
5028         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
5029         (mmix_gen_compare_reg): Just return a register in the right CC mode.
5030         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
5031         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
5032         (*cmpcc_folded): Rename to...
5033         (*cmpdi_folded): this.
5034         (*cmpcc): Rename to...
5035         (*cmps): ... this.
5036         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
5037         (bCC): Remove.
5038         (cbranchdi4): New.
5039         (cbranchdf4): New.  Handle invalid comparisons here.
5040         * config/mmix/predicates.md (float_comparison_operator): New.
5041
5042         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
5043         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
5044         * config/mn10300/mn10300.md (tst): Delete.
5045         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
5046         Name these patterns and wrap RHS in a compare.
5047         (*cmpsi): Make this pattern private.  Include tst.
5048         (*cmpsf): Make this pattern private.
5049         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
5050         (compare with zero peepholes): Likewise.
5051         (bCC): Remove.
5052         (cbranchsi4, cbranchsf4): New.
5053         (casesi): Use cbranchsi4.
5054
5055         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
5056         hppa_branch_type): Delete.
5057         (return_addr_rtx): Use cbranchsi4.
5058         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
5059         Emit CCFPmode comparison here.
5060         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
5061         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
5062         hppa_branch_type): Delete.
5063         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
5064         (movsicc, movdicc): Remove references to hppa_compare_op0,
5065         hppa_compare_op1 and compare_from_rtx.
5066         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
5067         (casesi): Use cbranchsi4.
5068
5069         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
5070         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
5071         * config/pdp11/pdp11.md (register_or_const0_operand): New.
5072         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
5073         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
5074         (bCC): Delete.
5075         (cbranchdf4, cbranchhi4, cbranchqi4): New.
5076         (*branch, *branch_inverted): New.
5077
5078         * config/picochip/picochip.md (cbranchhi4): Use
5079         ordered_comparison_operator.
5080         (cmphi, bCC): Remove.
5081
5082         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
5083         (trap_comparison_operator): Delete.
5084         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
5085         rs6000_emit_cbranch): Accept mode and operands.
5086         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
5087         rs6000_compare_fp_p): Delete.   
5088         (rs6000_generate_compare): Accept mode and comparison.  Extract code
5089         and op0/op1 from there.  Replace references to rs6000_compare_op0
5090         and rs6000_compare_op1.
5091         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
5092         extract result from passed operands.
5093         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
5094         extract loc from passed operands.
5095         (rs6000_emit_cmove): Likewise.
5096         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
5097         rs6000_compare_fp_p): Delete.
5098         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
5099         (cbranch<GPR>4, cbranch<FP>4): New.
5100         (cstore<mode>4): New.  Consolidate here all choices about when to use
5101         portable or specialized sCC sequences.
5102         (stack_protect_test): Use cbranchsi4.
5103         (conditional_trap): Replace with ctrap<GPR>4.
5104         (conditional trap insn): Replace trap_comparison_operator with
5105         ordered_comparison_operator. 
5106
5107         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
5108         (s390_emit_prologue): Use ctrap.
5109         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
5110         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
5111         New predicates replacing...
5112         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
5113         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
5114         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
5115         (add<mode>cc): Do not use s390_compare_op0/op1.
5116         (s<code>): Change to...
5117         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
5118         (seq): Change to...
5119         (cstorecc4): ... this.  Handle EQ or NE equally.
5120         (*sne): Un-privatize for use in cstorecc4.
5121         (b<code>): Change to...
5122         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
5123         (conditional_trap): Replace with...
5124         (ctrap<GPR>4, ctrap<FP>4): ... these.
5125         (stack_protect): Use cbranchcc4.
5126
5127         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
5128         * config/score/score-protos.h (score_gen_cmp): Delete.
5129         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
5130         (score_block_move-loop): Use cbranchsi4.
5131         * config/score/score.md (cbranchsi4): New.
5132         (cmpsi, bCC): Delete.
5133         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
5134         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
5135         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
5136         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
5137         * config/score/score3.h (score3_gen_cmp): Delete.
5138         * config/score/score7.h (score7_gen_cmp): Delete.
5139
5140         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
5141         (sh_emit_scc_to_t): ... this.  Return void.
5142         (from_compare): Rename to...
5143         (sh_emit_compare_and_branch): ... this.
5144         (sh_emit_compare_and_set): New.
5145         (sh_expand_t_scc): Accept operands.
5146         * config/sh/predicates.md (sh_float_comparison_operator): New.
5147         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
5148         (prepare_scc_operands): Rename to...
5149         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
5150         arguments.
5151         (sh_emit_cheap_store_flag): New.
5152         (sh_emit_set_t_insn): New.
5153         (from_compare): Rename to...
5154         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
5155         handling of TARGET_SH2E floating point to avoid recursive call.
5156         Generate branch here.
5157         (sh_emit_compare_and_set): New.
5158         (sh_expand_t_scc): Get op0/op1 from arguments.
5159         (sh_emit_cheap_store_flag): New.
5160         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
5161         cases.
5162         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
5163         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
5164         (movsicc, movdicc): Do nothing when it recreated operands from
5165         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
5166         prepare_scc_operands (now sh_emit_scc_to_t).
5167         (udivdi3): Use cstoresi4.
5168         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
5169         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
5170         (cbranchint4_media, cbranchfp4_media): New.
5171         (casesi): Use cbranchdi4.
5172         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
5173         Delete.
5174         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
5175         (movnegt): Remove second operand.
5176         (cbranchsf4, cbranchdf4): New.
5177         (stack_protect): Use cbranchdi4/cbranchsi4.
5178
5179         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
5180         (gen_compare_reg): Accept comparison, extract part of it to...
5181         (gen_compare_reg_1): ... this. 
5182         (gen_compare_operator): Delete.
5183         (gen_v9_scc): Accept separate destination, comparison code and arms.
5184         Do not use sparc_compare_op0/sparc_compare_op1.
5185         (emit_scc_insn, emit_conditional_branch_insn): New.
5186         (emit_v9_brxx): Make static.  Remove useless assertion.
5187         (sparc_emit_float_lib_cmp): Return RTL instead of calling
5188         emit_cmp_insn.
5189         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
5190         * config/sparc/sparc-protos.h (gen_compare_reg,
5191         sparc_emit_float_lib_cmp): Adjust prototype.
5192         (emit_scc_insn, emit_conditional_branch_insn): New.
5193         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
5194         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
5195         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
5196         iterators to the top.
5197         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
5198         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
5199         snedi_special_trunc): Delete.
5200         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
5201         and snedi_special_trunc.
5202         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
5203         cbranchdi4, cbranch<F:mode>4): New.
5204         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
5205         here.  Use gen_compare_reg instead of gen_compare_operator.
5206         (conditional_trap): Replace with...
5207         (ctrapsi4, ctrapdi4): ... this.
5208         (stack_protect_test): Use cbranchcc4.
5209
5210         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
5211         argument to rtx.
5212         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
5213         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
5214         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
5215         from operands[0] or operands[3] depending on is_set.
5216         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
5217         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
5218         cmpdf, bCC), sCC: Remove.
5219         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
5220         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
5221         cstoredf4): New.
5222         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
5223         spu_emit_branch_or_set.
5224
5225         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
5226         Add two arguments.
5227         * config/stormy16/stormy16.h (xstormy16_compare_op0,
5228         xstormy16_compare_op1): Delete.
5229         * config/stormy16/stormy16.c (xstormy16_compare_op0,
5230         xstormy16_compare_op1): Delete. 
5231         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
5232         Adjust calls.
5233         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
5234         (cmphi, cmpsi, bCC): Remove.
5235
5236         * config/v850/v850.md (tstsi, cmpsi): Fold into...
5237         (*cmpsi): ... this one.
5238         (cbranchsi4, cstoresi4): New.
5239         (bCC expanders): Delete.
5240         (sCC insns): Fold into...
5241         (*setcc): ... this one.
5242         (casesi): Do not use gen_cmpsi and gen_bgtu. 
5243         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
5244         (movsicc): Simplify.
5245         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
5246
5247         * config/vax/vax-protos.h (cond_name): New.
5248         (vax_output_conditional_branch): Remove.
5249         * config/vax/vax.c (cond_name): New.
5250         (vax_output_conditional_branch): Remove.
5251         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
5252         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
5253         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
5254         (bit<VAXint>): Wrap source with (compare).
5255         (b<code> and following unnamed pattern): Rename to *branch and
5256         *branch_reversed.  Change macroization to match_operator.
5257         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
5258
5259         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
5260         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
5261         Change last argument to machine_mode.
5262         (xtensa_expand_scc): Add machine_mode argument.
5263         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
5264         (gen_conditional_move, xtensa_expand_conditional_branch,
5265         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
5266         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
5267         Adjust operand numbers.
5268         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
5269         Delete.
5270         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
5271         (cmpsi, cmpsf, b<code>, s<code>): Delete.
5272         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
5273
5274 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
5275
5276         * optabs.c (prepare_cmp_insn): Temporarily disable test that
5277         causes spurious differences between trunk and cond-optab branch.
5278
5279 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
5280
5281         PR target/37137
5282         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
5283
5284 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
5285
5286         * tree.c (iterative_hash_pointer): Delete.
5287         (iterative_hash_expr): Short-circuit handling of NULL pointer.
5288         Hash UIDs and versions of SSA names.  Don't special-case built-in
5289         function declarations.
5290
5291 2009-05-11  Ian Lance Taylor  <iant@google.com>
5292
5293         PR bootstrap/40103
5294         * graphite.c: Force -Wc++-compat to only be a warning before
5295         #including "cloog/cloog.h".
5296
5297 2009-05-11  Martin Jambor  <mjambor@suse.cz>
5298
5299         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
5300         
5301 2009-05-11  Jan Hubicka  <jh@suse.cz>
5302
5303         * tree-ssa-loop-ivcanon.c: Include target.h
5304         (struct loop_size): new structure.
5305         (constant_after_peeling): New predicate.
5306         (tree_estimate_loop_size): New function.
5307         (estimated_unrolled_size): Rewrite for new estimates.
5308         (try_unroll_loop_completely): Use new estimates.
5309         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
5310
5311 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5312
5313         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
5314         libcpp interface change.
5315         (spu_macro_to_expand): Likewise.
5316
5317 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
5318
5319         PR tree-optimization/40026
5320         * gimplify.c (gimplify_init_constructor): Change initial conditional
5321         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
5322         optimize_compound_literals_in_ctor.
5323
5324 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
5325
5326         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
5327         New devices.
5328         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
5329
5330 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5331
5332         * tree-vect-data-refs.c (vect_analyze_group_access): Use
5333         HOST_WIDE_INT for gap.
5334
5335 2009-05-11  Ira Rosen  <irar@il.ibm.com>
5336
5337         PR tree-optimization/40074
5338         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
5339         account in group size and step comparison.
5340
5341 2009-05-11  Richard Guenther  <rguenther@suse.de>
5342
5343         * passes.c (init_optimization_passes): Strip now incorrect comment.
5344         (execute_function_todo): Do not set PROP_alias.
5345         * tree-pass.h (PROP_alias): Remove.
5346         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
5347         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
5348         * tree-nrv.c (pass_return_slot): Likewise.
5349         * tree-object-size.c (pass_object_sizes): Likewise.
5350         * tree-ssa-dom.c (pass_dominator): Likewise.
5351         (pass_phi_only_cprop): Likewise.
5352         * tree-ssa-dse.c (pass_dse): Likewise.
5353         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
5354         (pass_cselim): Likewise.
5355         * tree-ssa-pre.c (pass_pre): Likewise.
5356         (pass_fre): Likewise.
5357         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5358         * tree-ssa-sink.c (pass_sink_code): Likewise.
5359         * tree-stdarg.c (pass_stdarg): Likewise.
5360         * tree-tailcall.c (pass_tail_calls): Likewise.
5361         * tree-vrp.c (pass_vrp): Likewise.
5362
5363 2009-05-10  Ian Lance Taylor  <iant@google.com>
5364
5365         * basic-block.h (enum profile_status): Break out of struct
5366         control_flow_graph.
5367         * cgraph.h (struct inline_summary): Break out of struct
5368         cgraph_local_info.
5369         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
5370         of struct cgraph_order_sort.
5371         * combine.c (enum undo_kind): New enum, broken out of struct undo.
5372         * cse.c (struct branch_path): Break out of struct
5373         cse_basic_block_data.
5374         * except.h (enum eh_region_type): Break out of struct eh_region.
5375         * gcc.c (enum add_del): Break out of struct modify_target.
5376         * genrecog.c (enum decision_type): Break out of struct decision_test.
5377         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
5378         ggc_pch_data.
5379         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
5380         * regmove.c (enum match_use): New enum, broken out of struct match.
5381         * sched-int.h (enum post_call_group): New enum, broken out of
5382         struct deps.
5383         (struct deps_reg): Break out of struct deps.
5384         * target.h (struct asm_int_op): Break out of struct gcc_target.
5385         * tree-eh.c (struct goto_queue_node): Break out of struct
5386         leh_tf_state.
5387         * tree-inline.h (enum copy_body_cge_which): Break out of
5388         copy_body_data.
5389         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
5390
5391         * c-decl.c (in_struct, struct_types): New static variables.
5392         (pushtag): Add loc parameter.  Change all callers.
5393         (lookup_tag): Add ploc parameter.  Change all callers.
5394         (check_compound_literal_type): New function.
5395         (parser_xref_tag): Add loc parameter.  Change all callers.  If
5396         -Wc++-compat, warn about struct/union/enum types defined within a
5397         struct or union.
5398         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
5399         and loc parameters.  Change all callers.  Change error calls to
5400         error_at, using loc.  For a redefinition, if the location of the
5401         original definition is known, report it.  Set in_struct and
5402         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
5403         (finish_struct): Add new parameters enclosing_in_struct and
5404         enclosing_struct_types.  Change all callers.  Set
5405         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
5406         in the struct.  If in a struct, add this struct to struct_types.
5407         (start_enum): Add loc parameter.  Change all callers.  Use
5408         error_at for errors, using loc.  For a redefinition, if the
5409         location of the original definition is known, report it.  If in a
5410         struct, add this enum type to struct_types.  If -Wc++-compat warn
5411         if in sizeof, typeof, or alignof.
5412         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
5413         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
5414         (c_parser_enum_specifier): Get enum location for start_enum.
5415         (c_parser_struct_or_union_specifier): Get struct location for
5416         start_struct.  Save in_struct and struct_types status between
5417         start_struct and finish_struct.
5418         (c_parser_cast_expression): Get location of cast.
5419         (c_parser_alignof_expression): Get location of type.
5420         (c_parser_postfix_expression): Likewise.
5421         (c_parser_postfix_expression_after_paren_type): Add type_loc
5422         parameter.  Change all callers.  Call check_compound_literal_type.
5423         Use type_loc for error about variable size type.
5424         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
5425         of an enum constant from an enum type defined in a struct or union.
5426         (c_cast_expr): Add loc parameter.  Change all callers.  If
5427         -Wc++-compat, warn about defining a type in a cast.
5428         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
5429         (start_enum, start_struct, finish_struct): Update declarations.
5430         (parser_xref_tag, c_cast_expr): Update declarations.
5431         (check_compound_literal_type): Declare.
5432
5433 2009-05-11  Ben Elliston  <bje@au.ibm.com>
5434
5435         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
5436         for recent libcpp interface change.
5437         (rs6000_macro_to_expand): Likewise.
5438
5439 2009-05-10  Michael Matz  <matz@suse.de>
5440
5441         PR target/40031
5442         * config/arm/arm.c (require_pic_register): Emit on entry edge,
5443         not at entry of function.
5444
5445 2009-05-10  Richard Guenther  <rguenther@suse.de>
5446
5447         PR tree-optimization/40081
5448         Revert
5449         * tree-sra.c (instantiate_element): Instantiate scalar replacements
5450         using the main variant of the element type.  Do not fiddle with
5451         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
5452
5453         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
5454         structs with volatile fields.
5455
5456 2009-05-10  Jan Hubicka  <jh@suse.cz>
5457
5458         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
5459         (estimate_move_cost): Assert that it does not get called for
5460         VOID_TYPE_P.
5461         (estimate_num_insns): Skip VOID types in argument handling.
5462         (optimize_inline_calls): Delete unreachable blocks and verify that
5463         callgraph is valid.
5464
5465 2009-05-10  Jan Hubicka  <jh@suse.cz>
5466
5467         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
5468         * cgraph.c (cgraph_mark_address_taken_node): New function.
5469         (dump_cgraph_node): Dump new flag.
5470         * cgraph.h (struct cgraph_node): Add address_taken.
5471         (cgraph_mark_address_taken_node): New function.
5472         * ipa.c (cgraph_postorder): Prioritize functions with address taken
5473         since new direct calls can be born.
5474
5475 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
5476
5477         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
5478         tok->val.node.node.
5479
5480 2009-05-10  Jan Hubicka  <jh@suse.cz>
5481
5482         PR middle-end/40084
5483         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
5484         argument; rewrite.
5485         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
5486         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
5487         * tree-inline.c (copy_bb): Set frequency correctly.
5488         (fold_marked_statements): Update call to
5489         cgraph_update_edges_for_call_stmt.
5490
5491 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
5492
5493         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
5494         identifiers in diagnostics.
5495         * config/arm/arm.c (arm_handle_fndecl_attribute,
5496         arm_handle_isr_attribute): Likewise.
5497         * config/avr/avr.c (avr_handle_progmem_attribute,
5498         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
5499         * config/bfin/bfin.c (handle_int_attribute,
5500         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
5501         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
5502         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
5503         Likewise.
5504         * config/darwin.c (darwin_handle_kext_attribute,
5505         darwin_handle_weak_import_attribute): Likewise.
5506         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
5507         h8300_handle_eightbit_data_attribute,
5508         h8300_handle_tiny_data_attribute): Likewise.
5509         * config/i386/i386.c (ix86_handle_cconv_attribute,
5510         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
5511         * config/i386/winnt.c (ix86_handle_shared_attribute,
5512         ix86_handle_selectany_attribute): Likewise.
5513         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
5514         * config/m32c/m32c.c (function_vector_handler): Likewise.
5515         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
5516         m68hc11_handle_fntype_attribute): Likewise.
5517         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
5518         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
5519         * config/mips/mips.c (mips_insert_attributes,
5520         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
5521         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
5522         rs6000_handle_struct_attribute): Likewise.
5523         * config/sh/sh.c (sh_insert_attributes,
5524         sh_handle_resbank_handler_attribute,
5525         sh_handle_interrupt_handler_attribute,
5526         sh2a_handle_function_vector_handler_attribute,
5527         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
5528         Likewise.
5529         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
5530         * config/spu/spu.c (spu_handle_fndecl_attribute,
5531         spu_handle_vector_attribute): Likewise.
5532         * config/stormy16/stormy16.c
5533         (xstormy16_handle_interrupt_attribute): Likewise.
5534         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
5535         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
5536
5537 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
5538
5539         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
5540         (pp_translate_identifiers): New.
5541         (pp_identifier): Only conditionally translate identifier to locale
5542         character set.
5543         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
5544         (pp_base_tree_identifier): Only conditionally translate identifier
5545         to locale character set.
5546         * c-pretty-print.c (M_): Define.
5547         (pp_c_type_specifier, pp_c_primary_expression): Mark English
5548         fragments for conditional translation with M_.
5549         * tree-pretty-print.c (maybe_init_pretty_print): Disable
5550         identifier translation.
5551
5552 2009-05-10  Richard Guenther  <rguenther@suse.de>
5553
5554         PR tree-optimization/40081
5555         * tree-sra.c (instantiate_element): Instantiate scalar replacements
5556         using the main variant of the element type.  Do not fiddle with
5557         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
5558
5559 2009-05-09  Jan Hubicka  <jh@suse.cz>
5560
5561         PR middle-end/40080
5562         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
5563         indirect calls; verify cgraph afterwards.
5564
5565 2009-05-09  Jan Hubicka  <jh@suse.cz>
5566
5567         PR bootstrap/40082
5568         * ipa.c (update_inlined_to_pointer): New function.
5569         (cgraph_remove_unreachable_nodes): Use it.
5570
5571 2009-05-09  Jan Hubicka  <jh@suse.cz>
5572
5573         * tree-eh.c (struct leh_state): Remove prev_try.
5574         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
5575         not track prev_try.
5576         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
5577         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
5578         remove_eh_handler_and_replace, foreach_reachable_handler,
5579         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
5580         * except.h (struct eh_region): Remove eh_region_u_cleanup.
5581         (gen_eh_region_cleanup): Update prototype.
5582
5583 2009-05-09  Jan Hubicka  <jh@suse.cz>
5584
5585         PR middle-end/40043
5586         * except.c (copy_eh_region): Always set prev_try.
5587         (redirect_eh_edge_to_label): Find outer try.
5588         (foreach_reachable_handler): When looking for prev try
5589         handle case where previous try is not going to be taken.
5590
5591 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
5592
5593         PR tree-optimization/40049
5594         * tree-vect-stmts.c (vectorizable_operation): If the machine has
5595         only vector/vector shifts, convert the type of the constant to the
5596         appropriate type to avoid building incorrect trees, which
5597         eventually have problems with garbage collection.
5598
5599 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
5600
5601         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
5602         -1 for complex floating-point types if honoring signed zeros.
5603
5604 2009-05-08  Jan Hubicka  <jh@suse.cz>
5605
5606         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
5607         argument; handle correctly when profile is absent.
5608         (build_cgraph_edges): Update.
5609         (rebuild_cgraph_edges): Update.
5610         * cgraph.c: Do not include varray.h.
5611         (cgraph_set_call_stmt_including_clones): New function.
5612         (cgraph_create_edge_including_clones): Likewise
5613         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
5614         (cgraph_update_edges_for_call_stmt): Handle clones.
5615         (cgraph_remove_node): Handle clone tree.
5616         (cgraph_remove_node_and_inline_clones): New function.
5617         (dump_cgraph_node): Dump clone tree.
5618         (cgraph_clone_node): Handle clone tree.
5619         (clone_function_name): Bring here from tree-inline.c.
5620         (cgraph_create_virtual_clone): New function.
5621         * cgraph.h (ipa_replace_map): Move here from ipa.h.
5622         (cgraph_clone_info): New function.
5623         (strut cgraph_node): Add clone_info and new clone tree pointers.
5624         (cgraph_remove_node_and_inline_clones,
5625         cgraph_set_call_stmt_including_clones,
5626         cgraph_create_edge_including_clones,
5627         cgraph_create_virtual_clone): Declare.
5628         (cgraph_function_versioning): Use VEC argument.
5629         (compute_call_stmt_bb_frequency): Update prototype.
5630         (cgraph_materialize_all_clones): New function.
5631         * ipa-cp.c (ipcp_update_cloned_node): Remove.
5632         (ipcp_create_replace_map): Update to VECtors.
5633         (ipcp_update_callgraph): Use virtual clones.
5634         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
5635         (ipcp_update_profiling): Do not update local profiling.
5636         (ipcp_insert_stage): Use VECtors and virtual clones.
5637         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
5638         (clone_of_p): New function.
5639         (cgraph_preserve_function_body_p): Use clone tree.
5640         (cgraph_optimize): Materialize clones.
5641         (cgraph_function_versioning): Update for VECtors.
5642         (save_inline_function_body): Use clone tree.
5643         (cgraph_materialize_clone): New function.
5644         (cgraph_materialize_all_clones): Likewise.
5645         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
5646         * ipa.c: Include gimple.h.
5647         (cgraph_remove_unreachable_nodes): Use clone tree.
5648         * ipa-prop.c (ipa_note_param_call): Update call to
5649         compute_call_stmt_bb_frequencycall.
5650         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
5651         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
5652         (copy_bb): Handle updating of clone tree; add new edge when new call
5653         appears.
5654         (expand_call_inline): Be strict about every call having edge.
5655         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
5656         (delete_unreachable_blocks_update_callgraph): New function.
5657         (tree_function_versioning): Use VECtors; always remove unreachable
5658         blocks and fold conditionals.
5659         * tree-inline.h: Do not include varray.h.
5660         (tree_function_versioning): Remove.
5661         * Makefile.in (GTFILES): Remove tree-inline.c
5662         * passes.c (do_per_function): Do only functions having body.
5663         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
5664         tree.
5665
5666 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5667             Andrew Morrow  <acm@google.com>
5668
5669         PR c/36892
5670         * c-common.c (c_common_attribute_table): Permit deprecated
5671         attribute to take an optional argument.
5672         (handle_deprecated_attribute): If the optional argument to
5673         __attribute__((deprecated)) is not a string ignore the attribute
5674         and emit a warning.
5675
5676         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
5677         * c-typeck.c (build_component_ref): Likewise.
5678         (build_external_ref): Likewise.
5679
5680         * toplev.c (warn_deprecated_use): Add an attribute argument.
5681         Emit the message associated with __attribute__((deprecated)).
5682
5683         * toplev.h (warn_deprecated_use): Updated.
5684
5685         * doc/extend.texi: Document new optional parameter to
5686         __attribute__((deprecated))
5687
5688 2009-05-08  Michael Eager <eager@eagercon.com>
5689
5690         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
5691         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
5692
5693 2009-05-08  Richard Guenther  <rguenther@suse.de>
5694
5695         PR tree-optimization/40062
5696         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
5697         Avoid exponential behavior.
5698
5699 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
5700
5701         PR rtl-optimization/33928
5702         PR 26854
5703         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
5704         process_uses, build_single_def_use_links): New.
5705         (update_df): Update use_def_ref.
5706         (forward_propagate_into): Use get_def_for_use instead of use-def
5707         chains.
5708         (fwprop_init): Call build_single_def_use_links and let it initialize
5709         dataflow.
5710         (fwprop_done): Free use_def_ref.
5711         (fwprop_addr): Eliminate duplicate call to df_set_flags.
5712         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
5713         df_rd_simulate_one_insn): New.
5714         (df_rd_bb_local_compute_process_def): Update head comment.
5715         (df_chain_create_bb): Use the new RD simulation functions.
5716         * df.h (df_rd_simulate_artificial_defs_at_top, 
5717         df_rd_simulate_one_insn): New.
5718         * opts.c (decode_options): Enable fwprop at -O1.
5719         * doc/invoke.texi (-fforward-propagate): Document this.
5720
5721 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
5722
5723         PR c/24581
5724         * c-typeck.c (build_binary_op): Handle arithmetic between one real
5725         and one complex operand specially.
5726         * tree-complex.c (some_nonzerop): Do not identify a real value as
5727         zero if flag_signed_zeros.
5728
5729 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
5730
5731         PR rtl-optimization/33928
5732         * loop-invariant.c (record_use): Fix && vs. || mishap.
5733
5734 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
5735
5736         PR rtl-optimization/33928
5737         * loop-invariant.c (struct use): Add addr_use_p.
5738         (struct def): Add n_addr_uses.
5739         (struct invariant): Add cheap_address.
5740         (create_new_invariant): Set cheap_address.
5741         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
5742         (record_uses): Pass df_ref to record_use.
5743         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
5744         used only as such.
5745
5746 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5747
5748         * config/sh/sh.c: Do not include c-pragma.h.
5749
5750 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5751
5752         * config/spu/spu.c: Remove include of c-common.h.
5753
5754 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
5755
5756         PR c/39037
5757         * c-common.h (mark_valid_location_for_stdc_pragma,
5758         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
5759         clear_float_const_decimal64, float_const_decimal64_p): New.
5760         * c.opt (Wunsuffixed-float-constants): New.
5761         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
5762         unsuffixed float constant, handle new warning.
5763         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
5764         * c-decl.c (c_scope): New flag float_const_decimal64.
5765         (set_float_const_decimal64, clear_float_const_decimal64,
5766         float_const_decimal64_p): New.
5767         (push_scope): Set new flag.
5768         * c-parser.c (c_parser_translation_unit): Mark when it's valid
5769         to use STDC pragmas.
5770         (c_parser_external_declaration): Ditto.
5771         (c_parser_compound_statement_nostart): Ditto.
5772         * c-pragma.c (valid_location_for_stdc_pragma,
5773         mark_valid_location_for_stdc_pragma,
5774         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
5775         handle_pragma_float_const_decimal64): New.
5776         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
5777         * cp/semantics.c (valid_location_for_stdc_pragma_p,
5778         set_float_const_decimal64, clear_float_const_decimal64,
5779         float_const_decimal64_p): New dummy functions.
5780         * doc/extend.texi (Decimal Float): Remove statement that the
5781         pragma, and suffix for double constants, are not supported.
5782         * doc/invoke.texi (Warning Options): List new option.
5783         (-Wunsuffixed-float-constants): New.
5784
5785 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
5786
5787         * config/i386/i386.c: Do not include c-common.h.
5788
5789 2009-05-07  Mark Heffernan  <meheff@google.com>
5790
5791         * doc/invoke.texi (Debugging Options): Document change of debugging
5792         dump location.
5793         * opts.c (decode_options): Make dump_base_name relative to
5794         aux_base_name directory.
5795
5796 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
5797
5798         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
5799         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
5800
5801 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
5802
5803         * Makefile.in (install-plugin): Simplify a bit.
5804
5805 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
5806
5807         * Makefile.in (OBJS-common): Add regcprop.o.
5808         (regcprop.o): New.
5809         * timevar.def (TV_CPROP_REGISTERS): New.
5810         * regrename.c (regrename_optimize): Return 0.
5811         (rest_of_handle_regrename): Delete.
5812         (pass_rename_registers): Point to regrename_optimize.
5813         (struct value_data_entry, struct value_data, 
5814         kill_value_one_regno, kill_value_regno, kill_value,
5815         set_value_regno, init_value_data, kill_clobbered_value,
5816         kill_set_value, kill_autoinc_value, copy_value,
5817         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
5818         replace_oldest_value_reg, replace_oldest_value_addr,
5819         replace_oldest_value_mem, copyprop_hardreg_forward_1,
5820         debug_value_data, validate_value_data): Move...
5821         * regcprop.c: ... here.
5822         (rest_of_handle_cprop): Delete.
5823         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
5824
5825 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
5826
5827         PR middle-end/40057
5828         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
5829         GEN_INT for 1 << bitnum.
5830         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
5831         build_int_cst_type.
5832
5833 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
5834
5835         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
5836         Remove wrong description of "nand" operation.
5837
5838 2009-05-06  Richard Guenther  <rguenther@suse.de>
5839             Adam Nemet  <anemet@caviumnetworks.com>
5840
5841         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
5842         comment.  Add that if LHS is not a gimple register, then RHS1 has
5843         to be a single object (GIMPLE_SINGLE_RHS).
5844
5845 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
5846
5847         * expr.c (get_def_for_expr): Move it up in the file.
5848         (store_field): When expanding a bit-field store, look at the
5849         defining gimple stmt for the masking conversion.
5850
5851 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
5852
5853         PR middle-end/39986
5854         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
5855         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
5856         32-bit memcpy into long.
5857
5858 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
5859
5860         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
5861         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
5862         new_reg_loc_descr.
5863         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
5864         instead of appending DW_OP_deref*.
5865
5866 2009-05-06  Michael Matz  <matz@suse.de>
5867
5868         PR middle-end/40021
5869         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
5870         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
5871
5872 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
5873
5874         * Makefile.in (install-plugin): Fix srcdir handling.
5875
5876 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
5877
5878         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
5879         when processing for not_regs_needed bitmap.
5880         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
5881         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
5882         handling it for rhs. 
5883
5884 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5885
5886         * config/i386/i386.md (unnamed inc/dec peephole): Use
5887         optimize_insn_for_size_p instead of optimize_size.
5888         * config/i386/predicates.md (incdec_operand): Likewise.
5889         (aligned_operand): Likewise.
5890         * config/i386/sse.md (divv8sf3): Likewise.
5891         (sqrtv8sf2): Likewise.
5892
5893 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5894
5895         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
5896
5897         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
5898
5899 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5900
5901         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
5902         ssemodesuffixf2c with avxmodesuffixf2c.
5903
5904 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
5905
5906         PR c/40032
5907         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
5908
5909 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
5910
5911         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
5912         (struct tree_base): Adjust spacing for 8 bit boundaries.
5913         (struct tree_decl_common): Add decl_by_reference_flag bit.
5914         (DECL_BY_REFERENCE): Adjust.
5915         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
5916         print DECL_BY_REFERENCE bit.
5917         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
5918         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
5919         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
5920         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
5921         unconditionally.
5922
5923         PR middle-end/39666
5924         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
5925         range of the type, but default label is missing, add it with one
5926         of the existing labels instead of adding a new label for it.
5927
5928 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
5929
5930         * dwarf.h: Remove.
5931
5932 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
5933
5934         * Makefile.in (enable_plugin, plugin_includedir): New.
5935         (install): Depend on install-plugin.
5936         (PLUGIN_HEADERS): New.
5937         (install-plugin): New.
5938         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
5939
5940 2009-05-05  Richard Guenther  <rguenther@suse.de>
5941
5942         PR tree-optimization/40022
5943         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
5944         the only vuse.
5945         (phivn_valid_p): Fix tuplification error, simplify.
5946         (phiprop_insert_phi): Add dumps.
5947         (propagate_with_phi): Simplify.
5948
5949 2009-05-05  Richard Guenther  <rguenther@suse.de>
5950
5951         PR middle-end/40023
5952         * builtins.c (gimplify_va_arg_expr): Properly build the address.
5953
5954 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
5955
5956         * tree.h (strip_float_extensions): Remove duplicate declaration.
5957         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
5958         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
5959         block_ultimate_origin): Rearrange the declarations line to match the
5960         comment that indicates the .c file which the functions are defined.
5961         (dwarf2out_*, set_decl_rtl): Add comment.
5962         (get_base_address): Adjust comment.
5963         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
5964         declarations line and add comment.
5965         (is_builtin_name): Add blank after function name, for clarity.
5966
5967 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
5968
5969         * attribs.c (decl_attributes): Use %qE for identifiers in
5970         diagnostics.
5971         * cgraphunit.c (verify_cgraph_node): Translate function names to
5972         locale character set in diagnostics.
5973         * coverage.c (get_coverage_counts): Use %qE for identifiers in
5974         diagnostics.
5975         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
5976         Document that functions are named in UTF-8.
5977         * expr.c (expand_expr_real_1): Translate function names to locale
5978         character set in diagnostics.
5979         * gimplify.c (omp_notice_variable, omp_is_private,
5980         gimplify_scan_omp_clauses): Use %qE for identifiers in
5981         diagnostics.
5982         * langhooks.c (lhd_print_error_function): Translate function names
5983         to locale character set.
5984         * langhooks.h (decl_printable_name): Document that return value is
5985         in internal character set.
5986         * stmt.c: Include pretty-print.h
5987         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
5988         diagnostics.
5989         (resolve_operand_name_1): Translate named operand name to locale
5990         character set.
5991         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
5992         diagnostics.
5993         * toplev.c (announce_function): Translate function names to locale
5994         character set.
5995         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
5996         (default_tree_printer): Use pp_identifier or translate identifiers
5997         to locale character set.  Mark "<anonymous>" for translation.
5998         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
5999         for identifiers in diagnostics.
6000         * tree.c (handle_dll_attribute): Use %qE for identifiers in
6001         diagnostics.
6002         * varasm.c (output_constructor): Use %qE for identifiers in
6003         diagnostics.
6004
6005 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
6006
6007         * configure.ac: use ` ` instead of $()
6008         * configure: Regenerate.
6009
6010 2009-05-05  Ben Elliston  <bje@au.ibm.com>
6011
6012         * config/pa/linux-atomic.c: Eliminate conditional include of
6013         errno.h on non-LP64 systems to simplify build requirements.
6014
6015 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
6016
6017         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
6018         diagnostics.
6019         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
6020         and pass value to identifier_to_locale.
6021         (warn_variable_length_array): Make name a tree.
6022         (grokdeclarator): Separate diagnostic texts for named and unnamed
6023         declarators.  Use %qE for named declarators.
6024         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
6025         diagnostics.
6026         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
6027         identifiers in diagnostics.
6028         * c-typeck.c (push_member_name, start_init): Pass identifiers to
6029         identifier_to_locale.  Mark "anonymous" strings for translation.
6030
6031 2009-05-04  Michael Eager <eager@eagercon.com>
6032
6033         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
6034         address for DImode/DFmode only if double-precision FP regs.
6035
6036 2009-05-04  Michael Eager <eager@eagercon.com>
6037
6038         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
6039         TARGET_SINGLE_FLOAT check.
6040
6041 2009-05-04  Michael Eager <eager@eagercon.com>
6042
6043         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
6044
6045 2009-05-04  Michael Eager <eager@eagercon.com>
6046
6047         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
6048         * config/rs6000/t-xilinx: New
6049
6050 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
6051
6052         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
6053         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
6054         * gcc/explow.c (memory_address): Use target hook.
6055         * gcc/targhooks.c (default_legitimize_address): New.
6056         * gcc/targhooks.h (default_legitimize_address): New.
6057         * gcc/target.h (legitimize_address): New.
6058         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
6059         (TARGET_INITIALIZER): Include it.
6060         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
6061
6062         * config/bfin/bfin-protos.h (legitimize_address): Remove.
6063         * config/bfin/bfin.c (legitimize_address): Remove.
6064         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
6065         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
6066         Remove.
6067         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
6068         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
6069
6070         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
6071         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
6072         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
6073         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
6074         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
6075         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
6076         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
6077         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
6078         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
6079         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
6080         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
6081         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
6082         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
6083         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
6084         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
6085         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
6086         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
6087         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
6088         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
6089         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
6090         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
6091         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
6092         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
6093
6094         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
6095         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
6096         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
6097         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
6098         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
6099         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
6100         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
6101         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
6102         (thumb_legitimize_address): Delete.
6103         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
6104         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
6105         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
6106         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
6107         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
6108         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
6109         Delete.
6110         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
6111         Delete.
6112
6113         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
6114         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
6115         * config/m32r/m32r.c (m32r_legitimize_address): New.
6116         * config/m68k/m68k.c (m68k_legitimize_address): New.
6117         * config/score/score.c (score_legitimize_address): Standardize.
6118         * config/score/score3.c (score3_legitimize_address): Standardize.
6119         * config/score/score3.h (score3_legitimize_address): Adjust.
6120         * config/score/score7.c (score7_legitimize_address): Standardize.
6121         * config/score/score7.h (score7_legitimize_address): Adjust.
6122         * config/sh/sh.c (sh_legitimize_address): New.
6123         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
6124
6125         * gcc/config/s390/s390.c (legitimize_address): Rename to...
6126         (s390_legitimize_address): ... this.
6127         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
6128         (sparc_legitimize_address): ... this.
6129         * gcc/config/i386/i386.c (legitimize_address): Rename to...
6130         (ix86_legitimize_address): ... this.
6131         * gcc/config/avr/avr.c (legitimize_address): Rename to...
6132         (avr_legitimize_address): ... this.
6133         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
6134         (mn10300_legitimize_address): ... this.
6135         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
6136         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
6137         (alpha_expand_mov): Adjust call.
6138
6139         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
6140         * config/spu/spu.c (spu_legitimize_address): Likewise.
6141         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
6142         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
6143
6144 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
6145
6146         * intl.c (locale_encoding, locale_utf8): New.
6147         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
6148         * intl.h (locale_encoding, locale_utf8): Declare.
6149         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
6150         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
6151         New.
6152         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
6153         argument.
6154         (pp_tree_identifier): Define to call pp_base_tree_identifier.
6155         (pp_base_tree_identifier): Declare as function.
6156         (identifier_to_locale): Declare.
6157         * Makefile.in (pretty-print.o): Update dependencies.
6158         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
6159
6160 2009-05-04  Richard Guenther  <rguenther@suse.de>
6161
6162         PR middle-end/40015
6163         * builtins.c (fold_builtin_memory_op): Do not decay to element
6164         type if the size matches the whole array.
6165
6166 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
6167
6168         * expmed.c (synth_mult): When trying out a shift, pass the result
6169         of a signed shift.
6170
6171 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
6172
6173         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
6174         (shiftsub1_cost): New.
6175         (init_expmed): Compute shiftsub1_cost.
6176         (synth_mult): Optimize multiplications by constants of the form
6177         -(2^^m-1) for some constant positive integer m.
6178
6179 2009-05-03  Richard Guenther  <rguenther@suse.de>
6180
6181         PR c/39983
6182         * c-typeck.c (array_to_pointer_conversion): Do not built
6183         ADDR_EXPRs of arrays of pointer-to-element type.
6184         * c-gimplify.c (c_gimplify_expr): Revert change fixing
6185         up wrong ADDR_EXPRs after-the-fact.
6186         * c-common.c (strict_aliasing_warning): Strip pointer
6187         conversions for obtaining the original type.
6188         * builtins.c (fold_builtin_memset): Handle array types.
6189         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
6190         and array types
6191
6192 2009-05-03  Richard Guenther  <rguenther@suse.de>
6193
6194         PR middle-end/23329
6195         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
6196         Do not lose casts from array types with unknown extent to array
6197         types with known extent.
6198         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
6199         alias set compatibility.
6200
6201 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6202
6203         * flags.h (extra_warnings): Delete.
6204         * toplev.c (process_options): Handle Wuninitialized here.
6205         * opts.c (extra_warnings): Delete.
6206         (set_Wextra): Delete.
6207         (common_handle_option): -Wextra can be handled automatically.
6208         * c-opts.c (c_common_handle_option): Delete obsolete code.
6209         (c_common_post_options): Simplify comment.
6210         * common.opt (W): Add Var.
6211         (Wextra): Add Var.
6212         (Wuninitialized): Initialize to -1.
6213
6214 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
6215             Richard Guenther  <rguenther@suse.de>
6216
6217         * expr.c (get_def_for_expr): New function.
6218         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
6219         SSA rather than trees.
6220         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
6221         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
6222         
6223 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
6224
6225         * c-common.c (reswords): Add _Imaginary.
6226         * c-common.c (enum rid): Add RID_IMAGINARY.
6227
6228 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
6229
6230         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
6231         Patch by Richard Guenther.
6232
6233 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
6234
6235         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
6236         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
6237         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
6238         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
6239         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
6240         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
6241         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
6242         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
6243         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
6244         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
6245         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
6246         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
6247         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
6248         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
6249         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
6250         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
6251         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
6252         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
6253
6254 2009-05-02  Richard Guenther  <rguenther@suse.de>
6255
6256         PR tree-optimization/39940
6257         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
6258         doing so.
6259
6260 2009-05-02  Richard Guenther  <rguenther@suse.de>
6261
6262         PR middle-end/40001
6263         * tree-ssa.c (execute_update_addresses_taken): Properly check
6264         if we can mark a variable DECL_GIMPLE_REG_P.
6265         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
6266         back to the end of the function.
6267         (is_gimple_reg_type): Remove complex type special casing.
6268         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
6269         if not optimizing.
6270
6271 2009-05-02  Ben Elliston  <bje@au.ibm.com>
6272
6273         * doc/collect2.texi (Collect2): Document search path behaviour
6274         when configured with --with-ld.
6275
6276 2009-05-02  Jan Hubicka  <jh@suse.cz>
6277
6278         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
6279         parameter; update callers.
6280         (coalesce_cost_edge): EH edges are costier because they needs
6281         splitting even if not critical and even more costier when there are
6282         multiple EH predecestors.
6283
6284 2009-05-02  Jan Hubicka  <jh@suse.cz>
6285
6286         * except.c (remove_eh_handler_and_replace): Handle updating after
6287         removing TRY blocks.
6288
6289 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
6290
6291         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
6292
6293 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
6294
6295         * varasm.c: Do not include c-pragma.h.
6296         * attribs.c: Do not incude c-common.h.
6297
6298 2009-05-01  Michael Matz  <matz@suse.de>
6299
6300         * calls.c (initialize_argument_information): Handle SSA names like
6301         decls with a non MEM_P DECL_RTL.
6302
6303 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
6304
6305         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
6306         * ipa-utils.c: Likewise.
6307         * ipa-type-escape.c: Likewise.
6308         * cgraphunit.c Do not include c-common.h.
6309         * ipa-pure-const.c: Likewise.
6310         * tree-if-conv.c: Likewise.
6311         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
6312         * ipa-struct-reorg.c: Likewise.
6313         * tree-nomudflap.c: Likewise.
6314         * tree-ssa-structalias.c: Likewise.
6315
6316 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
6317
6318         * store-motion.c: Many cleanups to make this pass a first-class
6319         citizen instead of an appendix to gcse load motion.  Add TODO list
6320         to make this pass faster/cleaner/better.
6321
6322         (struct ls_expr): Post gcse.c-split cleanups.
6323         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
6324         "stores" field to "avail_stores".
6325         (pre_ldst_mems): Rename to store_motion_mems.
6326         (pre_ldst_table): Rename to store_motion_mems_table.
6327         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
6328         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
6329         (ldst_entry): Rename to st_expr_entry, update users.
6330         (free_ldst_entry): Rename to free_st_expr_entry, update users.
6331         (free_ldst_mems): Rename to free_store_motion_mems, update users.
6332         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
6333         update caller.
6334         (first_ls_expr): Rename to first_st_expr, update users.
6335         (next_ls_expr): Rename to next_st_expr, update users.
6336         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
6337         fields properly for store motion instead of names inherited from load
6338         motion in gcse.c.
6339         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
6340         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
6341         are done with it.
6342
6343         (ae_kill): Rename to st_kill, update users.
6344         (ae_gen): Rename to st_avloc, update users.
6345         (transp): Rename to st_transp, update users.
6346         (pre_insert_map): Rename to st_insert_map, update users.
6347         (pre_delete_map): Rename to st_delete_map, update users.
6348         (insert_store, build_store_vectors, free_store_memory,
6349         one_store_motion_pass): Update for abovementioned changes.
6350
6351         (gcse_subst_count, gcse_create_count): Remove.
6352         (one_store_motion_pass): New statistics counters "n_stores_deleted"
6353         and "n_stores_created", local variables.
6354
6355         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
6356         use for_each_rtx.
6357
6358         (regvec, compute_store_table_current_insn): Remove.
6359         (reg_set_info, reg_clear_last_set): Remove.
6360         (compute_store_table): Use DF caches instead of local dataflow
6361         solvers.
6362
6363 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
6364
6365         * c-objc-common.c (c_tree_printer): Print identifiers with
6366         pp_identifier, not pp_string.  Mark "({anonymous})" for
6367         translation.
6368         * c-pretty-print.c (pp_c_ws_string): New.
6369         (pp_c_cv_qualifier, pp_c_type_specifier,
6370         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
6371         pp_c_storage_class_specifier, pp_c_function_specifier,
6372         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
6373         pp_c_primary_expression, pp_c_postfix_expression,
6374         pp_c_unary_expression, pp_c_shift_expression,
6375         pp_c_relational_expression, pp_c_equality_expression,
6376         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
6377         use pp_string and pp_c_ws_string in place of pp_identifier and
6378         pp_c_identifier for non-identifiers.  Mark English strings for
6379         translation.
6380         * c-pretty-print.h (pp_c_ws_string): Declare.
6381
6382 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
6383             Roland McGrath <roland@redhat.com>
6384
6385         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
6386         (ENABLE_LD_BUILDID): New configuration option.
6387         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
6388         (LINK_BUILDID_SPEC): New macro.
6389         (init_spec): If defined, prepend it between LINK_EH_SPEC and
6390         link_spec.
6391         * doc/install.texi: Document --enable-linker-build-id option.
6392         * configure: Rebuild.
6393         * config.in: Rebuild.
6394
6395 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
6396
6397         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
6398         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
6399         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
6400         MIPS_GP_SAVE_AREA_SIZE.
6401         * config/mips/mips.c (struct mips_frame_info): Update comment
6402         before arg_pointer_offset and hard_frame_pointer_offset.
6403         (mips_compute_frame_info): Update diagram before function: to
6404         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
6405         indicate the position of frame_pointer_rtx with -fstack-protector and
6406         to show args_size.  Don't allocate cprestore area for leaf functions
6407         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
6408         cprestore_size.
6409         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
6410
6411 2009-04-30  Michael Matz  <matz@suse.de>
6412
6413         PR tree-optimization/39955
6414         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
6415
6416 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
6417
6418         * ira.c (setup_cover_and_important_classes):  Use safe macro
6419         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
6420         directly.
6421         * genpreds.c (write_tm_preds_h):  Output suitable definition of
6422         REG_CLASS_FOR_CONSTRAINT.
6423
6424 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
6425
6426         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
6427         instead of an int.
6428         * bitmap.c (bitmap_descriptor): Likewise.
6429         * ggc-common.c (loc_descriptor): Likewise.
6430         * varray.c (varray_descriptor): Likewise.
6431         * vec.c (vec_descriptor): Likewise.
6432
6433 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
6434
6435         * Makefile.in (dce.o): Add $(EXCEPT_H).
6436         * dce.c: Include except.h and delete redundant vector definitions.
6437         (deletable_insn_p): Return false for non-call insns that can throw
6438         if DF is running.
6439
6440 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
6441
6442         * gcse.c (ae_gen): Remove.
6443         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
6444         and make non-static function to make it available in store-motion.c.
6445         Update call sites with search-and-replace.
6446         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
6447         extract_mentioned_regs, extract_mentioned_regs_helper,
6448         find_moveable_store, compute_store_table, load_kills_store, find_loads,
6449         store_killed_in_insn, store_killed_after, store_killed_before,
6450         build_store_vectors, insert_insn_start_basic_block, insert-store,
6451         remove_reachable_equiv_notes, replace_store_insn, delete_store,
6452         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
6453         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
6454         * store-motion.c: ...new file.  Also copy data structures from gcse.c
6455         and clean up to remove parts not used by store motion.
6456         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
6457         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
6458
6459 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6460
6461         PR target/38571
6462         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
6463         when optimizing for size.
6464
6465 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
6466
6467         * gcse.c (gcse_constant_p): Fix typo in last change.
6468
6469 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
6470
6471         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
6472
6473 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
6474
6475         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
6476
6477 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
6478
6479         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
6480         CONST_HIGH_PART result.
6481
6482 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
6483
6484         * config/avr/avr.c (initial_elimination_offset): Rename to
6485         avr_initial_elimination_offset.
6486         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
6487         change return type to bool.
6488         (avr_can_eliminate): New function.
6489         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
6490         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
6491         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
6492         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
6493         avr_initial_elimination_offset.
6494         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
6495         (avr_initial_elimination_offset): Define.
6496
6497 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
6498             Steven Bosscher  <steven@gcc.gnu.org>
6499
6500         PR rtl-optimization/39938
6501         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
6502         * cfgrtl.c: Include insn-attr.h.
6503         (rest_of_pass_free_cfg): New function.
6504         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
6505         * resource.c (init_resource_info): Remove call to df_analyze.
6506
6507 2009-04-29  Richard Guenther  <rguenther@suse.de>
6508
6509         PR target/39943
6510         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
6511         allow conversion to signed integers.
6512
6513 2009-04-29  Richard Guenther  <rguenther@suse.de>
6514
6515         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
6516         shifts of floating point vectors if the shift amount is
6517         a constant multiple of the element size.
6518
6519 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
6520             Michael Matz  <matz@suse.de>
6521
6522         PR middle-end/39927
6523         PR bootstrap/39929
6524         * tree-outof-ssa.c (emit_partition_copy): New function.
6525         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6526         insert_part_to_rtx_on_edge): Perform the partition base var
6527         copy using emit_partition_copy.
6528         (insert_value_copy_on_edge): Convert constants to the right mode.
6529         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
6530         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
6531
6532 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6533
6534         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
6535         scan backwards to try to find a constant to initialize it.
6536
6537         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
6538         insn before the loop_end instruction, don't look past labels.
6539
6540 2009-04-29  Richard Guenther  <rguenther@suse.de>
6541
6542         PR middle-end/39937
6543         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
6544         loose type conversions.
6545         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
6546         stmts only if there are no uses of its definition.
6547
6548 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6549
6550         * config/bfin/bfin.h (splitting_loops): Declare.
6551         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
6552         Reorder bit definitions to be ascending.
6553         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
6554         * config/bfin/bfin.c (splitting_loops): New variable.
6555         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
6556         (struct loop_info): Remove members INIT and LOOP_INIT.
6557         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
6558         the LSETUP sequence.  Allow LC to be loaded from any register, but
6559         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
6560         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
6561         set to 1.
6562         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
6563         of reload_completed.
6564
6565         From Jie Zhang:
6566         * config/bfin/bfin.md (movsi_insn): Refine constraints.
6567
6568 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
6569
6570         * Makefile.in (PLUGIN_VERSION_H): New.
6571         (OBJS-common): Remove plugin-version.o.
6572         (plugin.o): Depend on (PLUGIN_VERSION_H).
6573         (plugin-version.o): Remove.
6574         * configure: Regenerate
6575         * configure.ac: Create plugin-version.h.
6576         * gcc-plugin.h (plugin_gcc_version): Remove.
6577         (plugin_default_version_check): Change signature.
6578         * plugin-version.c: Remove.
6579         * plugin.c: Include plugin-version.h.
6580         (str_plugin_gcc_version_name): Remove.
6581         (try_init_one_plugin): Pass gcc version to plugin_init.
6582         (plugin_default_version_check): Both gcc and plugin versions are now
6583         arguments.
6584
6585 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6586         
6587         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
6588         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
6589         Remove special case testing for last insn of inner loops. Don't fail
6590         if the loop ends with a jump, emit an extra nop instead.
6591
6592         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
6593         DREGS rather than comparing directly.  Remove code that tries to
6594         account for latencies.
6595
6596 2009-04-29  Richard Guenther  <rguenther@suse.de>
6597
6598         PR tree-optimization/39941
6599         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
6600         eliminating an indirect call.
6601
6602 2009-04-29  Richard Guenther  <rguenther@suse.de>
6603
6604         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
6605         parameter.  Allow invariants as base if !require_lvalue.
6606         (verify_gimple_assign_single): Adjust.
6607
6608 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
6609
6610         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
6611         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
6612         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
6613         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
6614         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
6615         a VEC_SELECT.
6616         * config/bfin/bfin.c (bfin_expand_builtin,
6617         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
6618
6619 2009-04-28  Richard Guenther  <rguenther@suse.de>
6620
6621         * tree-vect-loop.c (get_initial_def_for_induction): Use
6622         correct types for pointer increment.
6623
6624 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6625
6626         * toplev.c (print_version): Update GMP version string calculation.
6627
6628 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
6629
6630         PR rtl-optimization/39938
6631         * resource.c (init_resource_info): Add call to df_analyze.
6632
6633 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6634
6635         * config/alpha/alpha.md (usegp): Cast the result of
6636         alpha_find_lo_sum_using_gp to enum attr_usegp.
6637         * config/alpha/alpha.c (override_options): Remove end-of-structure
6638         marker element from cpu_table.  Use array size of cpu_table to handle
6639         -mcpu and -mtune options.
6640         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
6641
6642 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
6643
6644         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
6645         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
6646         tune_32 and tune_64.
6647         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
6648         support on PowerPC.
6649         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
6650         * config/rs6000/option-defaults.h: ... here.  New file.
6651         (OPT_64, OPT_32): Define.
6652         (MASK_64BIT): Define to 0 if not already defined.
6653         (OPT_ARCH64, OPT_ARCH32): Define.
6654         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
6655         and tune_64.
6656
6657 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6658
6659         * config/arm/arm.c (arm_override_options): Emit error on using
6660         fpa with AAPCS.
6661
6662 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6663
6664         PR rtl-optimization/39914
6665         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
6666         registers for allocnos created from user-defined variables only
6667         when not optimizing.
6668
6669 2009-04-28  Richard Guenther  <rguenther@suse.de>
6670
6671         PR middle-end/39937
6672         * fold-const.c (fold_binary): Use distribute_real_division only
6673         on float types.
6674
6675 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
6676
6677         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
6678         add hpux-stdint.h to tm_file.
6679         (hppa[12]*-*-hpux11*): Ditto.
6680         (ia64*-*-hpux*): Ditto.
6681         * config/hpux-stdint.h: New.
6682         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
6683         __STDC_EXT__ for all compiles.
6684         * config/pa/pa-hpux.h: Ditto.
6685         * config/pa/pa-hpux10.h: Ditto.
6686         * config/pa/pa-hpux11.h: Ditto.
6687
6688 2009-04-28  Catherine Moore  <clm@codesourcery.com>
6689
6690         * debug.h (set_name): Add comment.
6691
6692 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
6693
6694         PR target/39929
6695         * config/darwin.c (machopic_gen_offset): Check
6696         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
6697         * config/arm/arm.c (require_pic_register): Likewise.
6698
6699 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
6700
6701         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
6702         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
6703         m32c_promote_prototypes): Delete.
6704
6705 2009-04-28  Michael Matz  <matz@suse.de>
6706
6707         PR middle-end/39922
6708         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
6709         constants.
6710
6711 2009-04-28  Richard Guenther  <rguenther@suse.de>
6712
6713         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
6714
6715 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6716
6717         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
6718         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
6719         * config/arm/arm-tune.md: Regenerate.
6720
6721 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
6722
6723         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
6724         block if there are complex incoming edges.
6725         (sel_merge_blocks): Remove useless assert.
6726         (sel_redirect_edge_and_branch): Check that edge was redirected.
6727         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
6728         (sel_find_rgns): Delete declaration.
6729         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
6730         the region when it is not a preheader.
6731
6732 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6733
6734         PR c/39323
6735         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
6736
6737 2009-04-28  Richard Guenther  <rguenther@suse.de>
6738
6739         * tree.h (SSA_NAME_VALUE): Remove.
6740         (struct tree_ssa_name): Remove value_handle member.
6741         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
6742         array for jump threading.
6743         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
6744         SSA_NAME_VALUEs.
6745         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
6746         * tree-flow.h (threadedge_initialize_values): Declare.
6747         (threadedge_finalize_values): Likewise.
6748         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
6749         (SSA_NAME_VALUE): Define.
6750         (threadedge_initialize_values): New function.
6751         (threadedge_finalize_values): Likewise.
6752         * tree-ssa-dom.c (ssa_name_values): New global variable.
6753         (SSA_NAME_VALUE): Define.
6754         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
6755
6756 2009-04-28  Ira Rosen  <irar@il.ibm.com>
6757
6758         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6759         Use REPORT_VECTORIZED_LOCATIONS instead 
6760         REPORT_VECTORIZED_LOOPS.
6761         * tree-vectorizer.c (vect_verbosity_level): Make static.
6762         (vect_loop_location): Rename to vect_location.
6763         (vect_set_verbosity_level): Update comment.
6764         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
6765         and vect_location.
6766         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
6767         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
6768         instead REPORT_UNVECTORIZED_LOOPS.
6769         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
6770         and vect_loop_def to vect_external_def and vect_internal_def.
6771         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
6772         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
6773         REPORT_UNVECTORIZED_LOCATIONS.
6774         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
6775         and vect_used_in_loop and to vect_unused_in_scope and 
6776         vect_used_in_scope.
6777         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
6778         (vect_verbosity_level): Remove declaration.
6779         (vect_analyze_operations): Likewise.
6780         (vect_analyze_stmt): Declare.
6781         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
6782         REPORT_UNVECTORIZED_LOCATIONS.
6783         (vect_get_loop_niters): Fix indentation.
6784         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
6785         (vect_analyze_loop_operations): New function.
6786         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
6787         vect_analyze_operations.
6788         (vect_is_simple_reduction): Use new names.
6789         (vectorizable_live_operation, vect_transform_loop): Likewise.
6790         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
6791         to specify whether the data references can be a part of interleaving
6792         chain.
6793         (vect_analyze_data_ref_dependence): Use new names.
6794         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
6795         (vect_create_addr_base_for_vector_ref): Remove redundant code.
6796         * tree-vect-patterns.c (widened_name_p): Use new names.
6797         (vect_recog_dot_prod_pattern): Likewise.
6798         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
6799         (process_use, vect_mark_stmts_to_be_vectorized, 
6800         vect_model_simple_cost, vect_model_store_cost,
6801         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
6802         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
6803         vectorizable_operation, vectorizable_type_demotion,
6804         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
6805         vectorizable_condition): Likewise.
6806         (vect_analyze_operations): Split into vect_analyze_loop_operations
6807         and ...
6808         (vect_analyze_stmt): ... new function.
6809         (new_stmt_vec_info): Use new names.
6810         (vect_is_simple_use): Use new names and fix comment.
6811         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
6812         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
6813
6814 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
6815
6816         PR target/39911
6817         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
6818         and integer modes for x87 operands.  Do not ICE for unsupported size,
6819         generate error instead.  Generate error for unsupported operand types.
6820         ['z']: Do not handle HImode memory operands specially.  Warning
6821         for floating-point operands.  Fallthru to 'Z' for unsupported operand
6822         types.  Do not ICE for unsupported size, generate error instead.
6823         (output_387_binary_op): Use %Z to output operands.
6824         (output_fp_compare): Ditto.
6825         (output_387_reg_move): Ditto.
6826
6827 2009-04-28  Ben Elliston  <bje@au.ibm.com>
6828
6829         PR c++/35652
6830         Revert:
6831
6832         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6833
6834         * builtins.c (c_strlen): Do not warn here.
6835         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
6836         * c-common.c (pointer_int_sum): Take an explicit location.
6837         Warn about offsets out of bounds.
6838         * c-common.h (pointer_int_sum): Adjust declaration.
6839
6840 2009-04-27  Ian Lance Taylor  <iant@google.com>
6841
6842         * collect2.c (is_ctor_dtor): Change type of ret field in struct
6843         names to symkind.
6844         * dce.c (run_fast_df_dce): Change type of old_flags to int.
6845         * df-core.c (df_set_flags): Change return type to int.  Change
6846         type of old_flags to int.
6847         (df_clear_flags): Likewise.
6848         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
6849         (df_get_conditional_uses): Likewise.
6850         * df.h (df_set_flags, df_clear_flags): Update declarations.
6851         * dwarf2out.c (struct indirect_string_node): Change type of form
6852         field to enum dwarf_form.
6853         (AT_string_form): Change return type to enum dwarf_form.
6854         * fixed-value.c (fixed_compare): Add cast to enum type.
6855         * fwprop.c (update_df): Change 0 to VOIDmode.
6856         * gensupport.c: Change 0 to UNKNOWN.
6857         * gimple.h (gimple_cond_code): Add cast to enum type.
6858         * haifa-sched.c (reemit_notes): Add cast to enum type.
6859         * hooks.c (hook_int_void_no_regs): Remove function.
6860         * hooks.h (hook_int_void_no_regs): Remove declaration.
6861         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
6862         * predict.c (combine_predictions_for_insn): Add casts to enum type.
6863         * real.c (real_arithmetic): Add cast to enum type.
6864         (real_compare): Likewise.
6865         * target.h (struct gcc_target): Change return type of
6866         branch_target_register_class to enum reg_class.
6867         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
6868         default_branch_target_register_class.
6869         * targhooks.c (default_branch_target_register_class): New function.
6870         * targhooks.h (default_branch_target_register_class): Declare.
6871         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
6872         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
6873         cast to int.
6874         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
6875         ERROR_MARK.
6876         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
6877         vect_uninitialized_def.  Change 0 to ERROR_MARK.
6878         * tree-vect-stmts.c (supportable_widening_operation): Don't
6879         initialize icode1 and icode2.
6880         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
6881         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
6882         and to STD_C89.
6883         (cmn_err_flag_specs): Change 0 to STD_C89.
6884         (cmn_err_char_table): Likewise.
6885         * config/arm/arm.c (get_arm_condition_code): Change type of code
6886         to enum arm_cond_code.
6887         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
6888         (IWMMXT_BUILTIN2): Likewise.
6889         (neon_builtin_type_bits): Don't define typedef.
6890         (neon_builtin_datum): Change type of bits field to int.
6891         (arm_expand_neon_args): Add cast to enum type.
6892         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
6893         TLS_MODEL_NONE.
6894         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
6895         casts to enum type.
6896         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
6897         MIPS_FP_COND_f.
6898         * config/mips/mips.md (jal_macro): Return enum constant.
6899         (single_insn): Likewise.
6900         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
6901         CODE_FOR_nothing.
6902         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6903         casts to enum type.
6904         * config/s390/s390.c (s390_tune_flags): Change type to int.
6905         (s390_arch_flags): Likewise.
6906         (s390_handle_arch_option): Change flags field of struct pta to int.
6907         * config/s390/s390.h (s390_tune_flags): Update declaration.
6908         (s390_arch_flags): Likewise.
6909         * config/sh/sh.c (prepare_move_operands): Compare
6910         tls_symbolic_operand result with enum constant.
6911         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
6912         (sh_expand_prologue): Add cast to enum type.
6913         (sh_expand_epilogue): Likewise.
6914         (tls_symbolic_operand): Change return type to enum tls_model.
6915         (fpscr_set_from_mem): Add cast to enum type.
6916         (legitimize_pic_address): Compare tls_symbolic_operand result with
6917         enum constant.
6918         (sh_target_reg_class): Change return type to enum reg_class.
6919         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
6920         PROCESSOR_xxx.
6921         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
6922         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
6923         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
6924         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
6925         (delayed_branch, tls_call_delay): Likewise.
6926         (eligible_for_sibcall_delay): Likewise.
6927         (eligible_for_return_delay): Likewise. 
6928         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
6929         (spu_expand_builtin_1): Likewise.
6930
6931         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
6932         for all types of conversions.
6933         (output_init_element): Issue -Wc++-compat warning if needed when
6934         initializing a bitfield with enum type.
6935         * c-parser.c (c_parser_expression): Set original_type to
6936         original_type of right hand operand of comman operator.
6937
6938 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6939
6940         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
6941         grammar nits.
6942         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
6943         * doc/cpp.texi (Standard Predefined Macros)
6944         (Implementation-defined behavior): Likewise.
6945         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
6946         * doc/gimple.texi (GIMPLE Exception Handling)
6947         (@code{GIMPLE_ASSIGN}): Likewise.
6948         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
6949         * doc/invoke.texi (Warning Options, Optimize Options)
6950         (AVR Options, Darwin Options): Likewise.
6951         (Optimize Options): Reformulate -fwhole-program description.
6952         * doc/loop.texi (Lambda): Likewise.
6953         * doc/md.texi (Output Template, Define Constraints)
6954         (Standard Names, Insn Splitting): Likewise.
6955         * doc/options.texi (Option properties): Likewise.
6956         * doc/passes.texi (Tree-SSA passes): Likewise.
6957         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
6958         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
6959         (File Names and DBX): Likewise.
6960         * doc/trouble.texi (Incompatibilities): Likewise.
6961
6962 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6963
6964         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
6965         instruction is correct.
6966
6967 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6968
6969         Allow non-constant arguments to conversion intrinsics.
6970         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
6971         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
6972         * spu.c (print_operand): Handle 'v' and 'w'.
6973         (exp2_immediate_p, spu_gen_exp2): Define.
6974         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
6975         spu_convtf_1): Update parameter descriptions.
6976         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
6977         * constraints.md ('v', 'w'): New.
6978         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
6979         Remove.
6980         (i2f, I2F): New define_mode_attr.
6981         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
6982         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
6983         fixuns_truncv4sfv4si2):  Update to use mode attribute.
6984         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
6985         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
6986         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
6987         patterns for combine.
6988
6989 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
6990
6991         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
6992         (cprop, hoist, pre, store_motion): New debug counters.
6993         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
6994         is not an RTL pass anymore.
6995         (pass_profiling): Remove extern decl for pass removed in 2005.
6996         (pass_gcse, pass_jump_bypass): Remove.
6997         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
6998         to 0 for clean state.
6999         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
7000         * cse.c (gate_handle_cse_after_global_opts,
7001         rest_of_handle_cse_after_global_opts): New functions.
7002         (pass_cse_after_global_opts): New pass, does local CSE.
7003         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
7004         (TV_CPROP): New timevar.
7005         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
7006         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
7007         (gcse_main, recompute_all_luids): Remove.
7008         (compute_hash_table_work): Call max_reg_num instead of reading
7009         max_gcse_regno.
7010         (cprop_jump): Don't set run_jump_opt_after_gcse.
7011         (constprop_register): Always allow to alter jumps.
7012         (cprop_insn): Likewise.
7013         (do_local_cprop): Likewise.
7014         (local_cprop_pass): Likewise.  Return non-zero if something changed.
7015         (cprop): Remove function, fold interesting bits into one_cprop_pass.
7016         (find_implicit_sets): Add note about missed optimization opportunity.
7017         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
7018         pass_rtl_cprop execute function.
7019         Don't bother tracking the pass number, each pass gets its own dumpfile
7020         now anyway.
7021         Always allow to alter jumpsand bypass jumps.
7022         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
7023         will just find no suitable set.
7024         (pre_edge_insert): Fix dumping, this function is for PRE only.
7025         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
7026         pass_rtl_pre execute function.
7027         (hoist_code): Return non-zero if something changed.  Keep track of
7028         substitutions and insertions for statistics gathering similar to PRE.
7029         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
7030         called from the pass_rtl_hoist execute function.  Show pass statistics.
7031         (compute_store_table): Use max_reg_num directly instead of using the
7032         formerly global max_gcse_regno.
7033         (build_store_vectors): Likewise.
7034         (replace_store_insn): Fix dumping.
7035         (store_motion): Rename to ...
7036         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
7037         pass, called from the pass_rtl_store_motion execute function.  Keep
7038         track of substitutions and insertions for statistics gathering similar
7039         to PRE.
7040         (bypass_jumps): Remove, fold interesting bits into ...
7041         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
7042         from the pass_rtl_cprop execute function.
7043         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
7044         pass_jump_bypass): Remove.
7045         (gate_handle_gcse, rest_of_handle_gcse): Remove.
7046         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
7047         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
7048         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
7049         (gate_rtl_store_motion, execute_rtl_store_motion,
7050         pass_rtl_store_motion): New.
7051         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
7052         make it clear that -fcse-skip-blocks is a no-op for backward compat.
7053         * passes.c (init_optimization_passes): Remove pass_gcse and
7054         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
7055         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
7056         instead of pass_jump_bypass.
7057
7058 2009-04-27  Richard Guenther  <rguenther@suse.de>
7059
7060         PR middle-end/39928
7061         * gimplify.c (gimplify_expr): If we are required to create
7062         a temporary make sure it ends up as register.
7063
7064 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
7065
7066         PR target/39903
7067         * config/i386/i386.c (construct_container): Don't call
7068         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
7069         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
7070
7071 2009-04-27  Michael Matz  <matz@suse.de>
7072
7073         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
7074         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
7075         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
7076         (dump_replaceable_exprs): Take a bitmap.
7077         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
7078         array.
7079         (expand_gimple_basic_block): Likewise.
7080         * tree-ssa-ter.c (struct temp_expr_table_d): Make
7081         replaceable_expressions member a bitmap.
7082         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
7083         (mark_replaceable): Likewise.
7084         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
7085         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
7086
7087 2009-04-27  Richard Guenther  <rguenther@suse.de>
7088
7089         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
7090         (verify_stmts): Dispatch to gimple/type verification code.
7091         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
7092         issue with call argument types.
7093
7094 2009-04-27  Michael Matz  <matz@suse.de>
7095
7096         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
7097         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
7098         to above.
7099
7100 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
7101             Eric Botcazou  <ebotcazou@adacore.com>
7102
7103         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
7104         a label's basic block.
7105         (mark_target_live_regs): Tidy and rework obsolete comments.
7106         Change back DF problem to LIVE.  If a label starts a basic block,
7107         assume that all registers that used to be live then still are.
7108         (init_resource_info): If a label starts a basic block, set its
7109         BLOCK_FOR_INSN accordingly.
7110         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
7111
7112 2009-04-27  Richard Guenther  <rguenther@suse.de>
7113
7114         * tree-flow-inline.h (function_ann): Remove.
7115         (get_function_ann): Likewise.
7116         * tree-dfa.c (create_function_ann): Remove.
7117         * tree-flow.h (struct static_var_ann_d): Remove.
7118         (struct function_ann_d): Likewise.
7119         (union tree_ann_d): Remove fdecl member.
7120         (function_ann_t): Remove.
7121         (function_ann, get_function_ann, create_function_ann): Remove
7122         declarations.
7123
7124 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
7125
7126         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
7127
7128 2009-04-27  Jan Hubicka  <jh@suse.cz>
7129
7130         * ipa-pure-const.c (struct funct_state_d): New fields
7131         state_previously_known, looping_previously_known; remove
7132         state_set_in_source.
7133         (analyze_function): Use new fields.
7134         (propagate): Avoid assumption that state_set_in_source imply
7135         nonlooping.
7136
7137         * tree-ssa-loop-niter.c (finite_loop_p): New function.
7138         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
7139         * cfgloop.h (finite_loop_p): Declare.
7140
7141 2009-04-26  Michael Matz  <matz@suse.de>
7142
7143         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
7144
7145 2009-04-26  Michael Matz  <matz@suse.de>
7146
7147         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
7148         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
7149         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
7150         pass_mark_used_blocks): Remove.
7151         * tree-optimize.c (pass_free_datastructures,
7152         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
7153         * passes.c (init_optimization_passes): Don't call
7154         pass_mark_used_blocks, remove dead code.
7155
7156 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
7157
7158         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
7159         * tree-ssa-live.h (register_ssa_partition): Likewise.
7160
7161 2009-04-26  Michael Matz  <matz@suse.de>
7162
7163         Expand from SSA.
7164         * builtins.c (fold_builtin_next_arg): Handle SSA names.
7165         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
7166         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
7167         SSA names. 
7168         (compare_pairs): Swap cost comparison.
7169         (coalesce_ssa_name): Don't use change_partition_var.
7170         * tree-nrv.c (struct nrv_data): Add modified member.
7171         (finalize_nrv_r): Set it.
7172         (tree_nrv): Use it to update statements.
7173         (pass_nrv): Require PROP_ssa.
7174         * tree-mudflap.c (mf_decl_cache_locals,
7175         mf_build_check_statement_for): Use make_rename_temp.
7176         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
7177         * alias.c (find_base_decl): Handle SSA names.
7178         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
7179         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
7180         * rtl.h (set_reg_attrs_for_parm): Declare.
7181         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
7182         to "optimized", remove unused locals at finish.
7183         (execute_free_datastructures): Make global, call
7184         delete_tree_cfg_annotations.
7185         (execute_free_cfg_annotations): Don't call
7186         delete_tree_cfg_annotations.
7187
7188         * ssaexpand.h: New file.
7189         * expr.c (toplevel): Include ssaexpand.h.
7190         (expand_assignment): Handle SSA names the same as register variables.
7191         (expand_expr_real_1): Expand SSA names.
7192         * cfgexpand.c (toplevel): Include ssaexpand.h.
7193         (SA): New global variable.
7194         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
7195         (SSAVAR): New macro.
7196         (set_rtl): New helper function.
7197         (add_stack_var): Deal with SSA names, use set_rtl.
7198         (expand_one_stack_var_at): Likewise.
7199         (expand_one_stack_var): Deal with SSA names.
7200         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
7201         before unique numbers.
7202         (expand_stack_vars): Use set_rtl.
7203         (expand_one_var): Accept SSA names, add asserts for them, feed them
7204         to above subroutines.
7205         (expand_used_vars): Expand all partitions (without default defs),
7206         then only the local decls (ignoring those expanded already).
7207         (expand_gimple_cond): Remove edges when jumpif() expands an
7208         unconditional jump.
7209         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
7210         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
7211         SSA name.
7212         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
7213         members of SA; deal with PARM_DECL partitions here; expand
7214         all PHI nodes, free tree datastructures and SA.  Commit instructions
7215         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
7216         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
7217         info and statements at start, collect garbage at finish.
7218         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
7219         (VAR_ANN_PARTITION) Remove.
7220         (change_partition_var): Don't declare.
7221         (partition_to_var): Always return SSA names.
7222         (var_to_partition): Only accept SSA names.
7223         (register_ssa_partition): Only check argument.
7224         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
7225         member.
7226         (delete_var_map): Don't free it.
7227         (var_union): Only accept SSA names, simplify.
7228         (partition_view_init): Mark only useful SSA names as used.
7229         (partition_view_fini): Only deal with SSA names.
7230         (change_partition_var): Remove.
7231         (dump_var_map): Use ssa_name instead of partition_to_var member.
7232         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
7233         basic blocks.
7234         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
7235         (struct _elim_graph): New member const_dests; nodes member vector of
7236         ints.
7237         (set_location_for_edge): New static helper.
7238         (create_temp): Remove.
7239         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
7240         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
7241         (new_elim_graph): Allocate const_dests member.
7242         (clean_elim_graph): Truncate const_dests member.
7243         (delete_elim_graph): Free const_dests member.
7244         (elim_graph_size): Adapt to new type of nodes member.
7245         (elim_graph_add_node): Likewise.
7246         (eliminate_name): Likewise.
7247         (eliminate_build): Don't take basic block argument, deal only with
7248         partition numbers, not variables.
7249         (get_temp_reg): New static helper.
7250         (elim_create): Use it, deal with RTL temporaries instead of trees.
7251         (eliminate_phi): Adjust all calls to new signature.
7252         (assign_vars, replace_use_variable, replace_def_variable): Remove.
7253         (rewrite_trees): Only do checking.
7254         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
7255         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
7256         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
7257         contains_tree_r, MAX_STMTS_IN_LATCH,
7258         process_single_block_loop_latch, analyze_edges_for_bb,
7259         perform_edge_inserts): Remove.
7260         (expand_phi_nodes): New global function.
7261         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
7262         functions, initialize new parameter, remember partitions having a
7263         default def.
7264         (finish_out_of_ssa): New global function.
7265         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
7266         don't reset in_ssa_p here, don't disable TER when mudflap.
7267         (pass_del_ssa): Remove.
7268         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
7269         partition members.
7270         (execute_free_datastructures): Declare.
7271         * Makefile.in (SSAEXPAND_H): New variable.
7272         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
7273         * basic-block.h (commit_one_edge_insertion): Declare.
7274         * passes.c (init_optimization_passes): Move pass_nrv and
7275         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
7276         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
7277         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
7278         (redirect_branch_edge): Deal with super block when expanding, split
7279         out jump patching itself into ...
7280         (patch_jump_insn): ... here, new static helper.
7281
7282 2009-04-26  Michael Matz  <matz@suse.de>
7283
7284         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
7285         beyond num_ssa_names.
7286         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7287         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
7288
7289 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
7290
7291         PR inline-asm/39543
7292         * fwprop.c (forward_propagate_asm): New function.
7293         (forward_propagate_and_simplify): Propagate also into __asm, if it
7294         doesn't increase the number of referenced registers.
7295
7296         PR c/39889
7297         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
7298
7299 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
7300
7301         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
7302         note_nonlocal_vla_type for nonlocal VLAs.
7303         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
7304         contains_remapped_vars, remap_vla_decls): New functions.
7305         (convert_nonlocal_reference_stmt): If not optimizing, call
7306         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
7307         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
7308         if it wasn't found in var_map.
7309         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
7310         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
7311         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
7312         declare_vars.
7313         * gimplify.c (nonlocal_vlas): New variable.
7314         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
7315         referenced VLAs.
7316         (gimplify_body): Create and destroy nonlocal_vlas.
7317
7318         * dwarf2out.c (loc_descr_plus_const): New function.
7319         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
7320         mem_loc_descriptor, loc_descriptor_from_tree_1,
7321         descr_info_loc, gen_variable_die): Use it.
7322
7323         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
7324         !TREE_STATIC VAR_DECLs.
7325         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
7326         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
7327         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
7328         DECL_BY_REFERENCE is valid.
7329         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
7330         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
7331         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
7332         Copy DECL_BY_REFERENCE.
7333         (struct nesting_copy_body_data): New type.
7334         (nesting_copy_decl): New function.
7335         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
7336         if they have variable length.
7337
7338 2009-04-26  Michael Matz  <matz@suse.de>
7339
7340         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
7341         mark new temporaries for renaming.
7342
7343 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
7344
7345         PR c/39581
7346         * c-decl.c (global_bindings_p): Return negative value.
7347         (c_variable_size): New.  Based on variable_size from
7348         stor-layout.c.
7349         (grokdeclarator): Call c_variable_size not variable_size.
7350
7351 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
7352
7353         * config/i386/i386.c (print_operand) ['z']: Fix typo.
7354
7355 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
7356
7357         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
7358         Redefine it to just use mingw/include.
7359         (ASM_SPEC): Rules for -m32 and -m64.
7360         (LINK_SPEC): Use Likewise.
7361         (SPEC_32): New define.
7362         (SPEC_64): Likewise.
7363         (SUB_LINK_SPEC): Likewise.
7364         (MULTILIB_DEFAULTS): New define.
7365         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
7366         Add multilib options.
7367         (MULTILIB_DIRNAMES): Likewise.
7368         (MULTILIB_OSDIRNAMES): Likewise.
7369         (LIBGCC): Likewise.
7370         (INSTALL_LIBGCC): Likewise.
7371
7372 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
7373
7374         PR c/39556
7375         * c-tree.h (enum c_inline_static_type): New.
7376         (record_inline_static): Declare.
7377         * c-decl.c (struct c_inline_static, c_inline_statics,
7378         record_inline_static, check_inline_statics): New.
7379         (pop_file_scope): Call check_inline_statics.
7380         (start_decl): Call record_inline_static instead of pedwarning
7381         directly for static in inline function.
7382         * c-typeck.c (build_external_ref): Call record_inline_static
7383         instead of pedwarning directly for static referenced in inline
7384         function.
7385
7386 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
7387
7388         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
7389         not new but only being rescanned.
7390         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
7391         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
7392         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
7393         record_set_info, compute_set, grealloc): Remove.
7394         (recompute_all_luids): New function.
7395         (gcse_main): Don't compute sets, and don't do related memory
7396         allocations/free-ing.  If something changed before the end of the
7397         pass, update LUIDs using recompute_all_luids.
7398         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
7399         (free_gcse_mem): Don't free it either.
7400         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
7401         Use the df insn LUIDs.
7402         (load_killed_in_block): Likewise.
7403         (compute_hash_table_work): Don't compute reg_set_in_block.
7404         (compute_transp): Use DF_REG_DEF_CHAINs.
7405         (local_cprop_pass): Don't use compute_sets and related functions.
7406         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
7407         Use get_max_uid() instead of max_cuid.
7408         (insert_insn_end_basic_block, pre_insert_copy_insn,
7409         update_ld_motion_stores): Don't try to
7410         keep reg_set tables up to date.
7411         (pre_insert_copies): Use df insn LUIDs.
7412         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
7413         (reg_set_info): Don't use extra bitmap argument.
7414         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
7415         information to compute regs_set_in_block.
7416         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
7417         (bypass_jumps): Don't use compute_sets and friends.
7418
7419 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7420
7421         PR testsuite/39710
7422         * opts.c (undocumented_msg): Do not leave blank even with
7423         ENABLE_CHECKING.
7424
7425 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
7426
7427         * c-decl.c (build_enumerator): Allow values folding to integer
7428         constants but not integer constant expressions with a pedwarn if
7429         pedantic.
7430
7431 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
7432
7433         PR c/39582
7434         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
7435         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
7436         type is an integer constant.
7437
7438 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
7439
7440         PR target/39897
7441         * config/i386/i386.c (print_operand) ['z']: Revert handling of
7442         HImode operands.
7443
7444 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
7445
7446         PR c/39564
7447         * c-decl.c (grokdeclarator): Diagnose declarations of functions
7448         with variably modified return type and no storage class
7449         specifiers, except for the case of nested functions.  Distinguish
7450         extern declarations of functions with variably modified return
7451         types from those of objects with variably modified types.
7452
7453 2009-04-25  Jan Hubicka  <jh@suse.cz>
7454
7455         * tree.c (list_equal_p): New function.
7456         * tree.h (list_equal_p): Declare.
7457         * coretypes.h (edge_def, edge, const_edge, basic_block_def
7458         basic_block_def, basic_block, const_basic_block): New.
7459         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
7460         (redirect_eh_edge): New function.
7461         (make_eh_edge_update_phi): EH edges are not abnormal.
7462         * except.c: Include tree-flow.h.
7463         (list_match): New function.
7464         (eh_region_replaceable_by_p): New function.
7465         (replace_region): New function.
7466         (hash_type_list): New function.
7467         (hash_eh_region): New function.
7468         (eh_regions_equal_p): New function.
7469         (merge_peers): New function.
7470         (remove_unreachable_regions): Verify EH tree when checking;
7471         merge peers.
7472         (copy_eh_region_1): New function.
7473         (copy_eh_region): New function.
7474         (push_reachable_handler): New function.
7475         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
7476         regions without label but with live RESX.
7477         * except.h (redirect_eh_edge_to_label): New.
7478         * tree-flow.h (redirect_eh_edge): New.
7479         * coretypes.h (edge_def, edge, const_edge, basic_block_def
7480         basic_block_def, basic_block, const_basic_block): Remove.
7481         * Makefile.in (except.o): Add dependency on tree-flow.h
7482         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
7483         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
7484         Remove.
7485
7486 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
7487
7488         PR bootstrap/39645
7489         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
7490         on the destination of memcpy.
7491
7492 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
7493
7494         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
7495         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
7496         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
7497
7498 2009-04-25  Jan Hubicka  <jh@suse.cz>
7499
7500         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
7501         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
7502         to be reached by different label than left.
7503         (update_eh_edges): Update comment; remove edge_to_remove if possible
7504         and return true if suceeded.
7505         (cleanup_empty_eh): Accept sharing map; handle shared regions.
7506         (cleanup_eh): Compute sharing map.
7507         * except.c (remove_eh_handler_and_replace): Add argument if we should
7508         update regions.
7509         (remove_unreachable_regions): Update for label sharing.
7510         (label_to_region_map): Likewise.
7511         (get_next_region_sharing_label): New function.
7512         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
7513         prev_try pointers.
7514         (remove_eh_handler): Update.
7515         (remove_eh_region_and_replace_by_outer_of): New function.
7516         * except.h (struct eh_region): Add next_region_sharing_label.
7517         (remove_eh_region_and_replace_by_outer_of,
7518         get_next_region_sharing_label): Declare.
7519         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
7520
7521 2009-04-25  Jan Hubicka  <jh@suse.cz>
7522
7523         * tree-cfg.c (split_critical_edges): Split also edges where we can't
7524         insert code even if they are not critical.
7525
7526 2009-04-25  Jan Hubicka  <jh@suse.cz>
7527
7528         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
7529         (gimple_can_remove_branch_p): EH edges won't remove branch by
7530         redirection.
7531         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
7532         updating of non-abnormal EH edges.
7533         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
7534         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
7535         (split_critical_edges): Split also edges where emitting code on them
7536         will lead to splitting later.
7537
7538 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
7539             H.J. Lu  <hongjiu.lu@intel.com>
7540
7541         PR target/39590
7542         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
7543         the configured assembler supports fildq and fistpq mnemonics.
7544         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
7545         * configure: Regenerated.
7546         * config.in: Ditto.
7547
7548         * config/i386/i386.c (print_operand): Handle 'Z'.
7549         ['z']: Remove handling of special fild/fist suffixes.
7550         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
7551         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
7552         suffix of fild insn.
7553         (*floatsi<mode>2_vector_mixed): Ditto.
7554         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
7555         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
7556         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7557         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
7558         * config/i386/gas.h (GAS_MNEMONICS): Remove.
7559
7560 2009-04-25  Ben Elliston  <bje@au.ibm.com>
7561  
7562         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
7563         the source of a set operation.
7564
7565 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
7566
7567         * target.h (struct gcc_target): Add case_values_threshold field.
7568         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
7569         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
7570         * targhooks.c (default_case_values_threshold): New function.
7571         * targhooks.h (default_case_values_threshold): Declare function.
7572         * stmt.c (expand_case): Use case_values_threshold target hook.
7573         * expr.h (case_values_threshold): Remove declartation.
7574         * expr.c (case_values_threshold): Remove function.
7575         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
7576
7577         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
7578         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
7579         (avr_case_values_threshold): Declare as static.
7580         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
7581
7582         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
7583         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
7584         (mn10300_case_values_threshold): New function.
7585
7586 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7587
7588         * ira.c (setup_cover_and_important_classes): Add enum cast.
7589
7590 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
7591
7592         * genpreds.c (write_enum_constraint_num): Output definition of
7593         CONSTRAINT_NUM_DEFINED_P macro.
7594         * ira.c (setup_cover_and_important_classes): Use
7595         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
7596         
7597 2009-04-24  DJ Delorie  <dj@redhat.com>
7598
7599         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
7600         __SH2A_SINGLE_ONLY__ also.
7601
7602 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
7603
7604         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
7605         (movdf_internal): Ditto.
7606         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
7607         SFmode and DFmode constants.
7608         (ia64_print_operand): Add 'G' format for printing
7609         floating point constants.
7610
7611 2009-04-24  Richard Guenther  <rguenther@suse.de>
7612
7613         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
7614         from unsigned additions.
7615
7616 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
7617
7618         * c-typeck.c (set_init_index): Allow array designators that are
7619         not integer constant expressions with a pedwarn if pedantic.
7620
7621 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
7622
7623         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
7624         zero if no overlap in nonzero bits between the operands.
7625
7626 2009-04-24  Ian Lance Taylor  <iant@google.com>
7627
7628         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
7629         (record_dead_and_set_regs): Likewise.
7630         * df.h (struct df_mw_hardreg): Change flags field to int.
7631         (struct df_base_ref): Likewise.
7632         (struct df): Change changeable_flags field to int.
7633         * df-scan.c (df_defs_record): Change clobber_flags to int.
7634         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
7635         constants rather than #define macros.
7636         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
7637         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
7638         (enum dwarf_calling_convention): Likewise.
7639         (enum dwarf_line_number_x_ops): Likewise.
7640         (enum dwarf_call_frame_info): Likewise.
7641         (enum dwarf_source_language): Likewise.
7642         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
7643         (add_calling_convention_attribute): Likewise.
7644         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
7645         (combine_comparisons): Change compcode to int.  Add cast to enum type.
7646         * genrecog.c (maybe_both_true_2): Change c to int.
7647         (write_switch): Likewise.  Add cast to enum type.
7648         * gimplify.c (gimplify_omp_for): Handle return values from
7649         gimplify_expr using MIN rather than bitwise or.
7650         (gimplify_expr): Add cast to enum type.
7651         * ipa-prop.c (update_jump_functions_after_inlining): Change
7652         IPA_BOTTOM to IPA_JF_UNKNOWN.
7653         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
7654         Add casts to enum type.
7655         (setup_cover_and_important_classes): Change cl to int.  Add casts
7656         to enum type.
7657         (setup_class_translate): Change cl and mode to int.
7658         (ira_init_once): Change mode to int.
7659         (free_register_move_costs): Likewise.
7660         (setup_prohibited_mode_move_regs): Add casts to enum type.
7661         * langhooks.c (add_builtin_function_common): Rework assertion that
7662         value fits bitfield.
7663         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
7664         * omega.c (omega_do_elimination): Avoid math on enum types.
7665         * optabs.c (expand_vec_shift_expr): Remove casts to int.
7666         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
7667         int local to handle integral_argment value.
7668         * regmove.c (try_auto_increment): Change PUT_MODE to
7669         PUT_REG_NOTE_KIND.
7670         * reload.c (push_secondary_reload): Add casts to enum type.
7671         (secondary_reload_class, find_valid_class): Likewise.
7672         * reload1.c (emit_input_reload_insns): Likewise.
7673         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
7674         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
7675         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
7676         constant.
7677         * tree.c (build_common_builtin_nodes): Add casts to enum type.
7678         * tree-complex.c (complex_lattice_t): Typedef to int rather than
7679         enum type.
7680         (expand_complex_libcall): Add casts to enum type.
7681         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
7682         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
7683         with ERROR_MARK, not NUM_TREE_CODES.
7684         (vect_create_epilog_for_reduction): Likewise.
7685         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
7686         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
7687         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
7688         enum machine_mode.
7689         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
7690         vect_unused_in_loop.  Change 0 to loop_vect.
7691         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
7692         * var-tracking.c (get_init_value): Change return type to enum
7693         var_init_status.
7694         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
7695         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
7696         arm_fp_model.
7697         (arm_override_options): Add casts to enum type.
7698         (arm_emit_tls_decoration): Likewise.
7699         * config/i386/i386.c (ix86_function_specific_restore): Add casts
7700         to enum type.
7701         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
7702         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
7703         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
7704         enum type.
7705         * config/s390/s390.c (code_for_builtin_64): Change to array of
7706         enum insn_code.
7707         (code_for_builtin_31): Likewise.
7708         (s390_expand_builtin): Change code_for_builtin to enum insn_code
7709         const *.
7710         * config/sparc/sparc.c (sparc_override_options): Change value
7711         field in struct code_model to enum cmodel.  In initializer change
7712         0 to NULL and add cast to enum type.
7713
7714         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
7715         Change all callers.  Issue a -Wc++-compat warning using
7716         lhs_origtype if necessary.
7717         (convert_for_assignment): Issue -Wc++-compat warnings about
7718         invalid conversions to enum type on assignment.
7719         * c-common.h (build_modify_expr): Update declaration.
7720
7721 2009-04-24  Nick Clifton  <nickc@redhat.com>
7722
7723         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
7724         (function_arg_advance): Likewise.
7725         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
7726         5th alternative.
7727
7728 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7729
7730         * config/s390/constraints.md ('I', 'J'): Fix condition.
7731
7732 2009-04-24  Diego Novillo  <dnovillo@google.com>
7733
7734         * gengtype-parse.c (parse_error): Add newline after message.
7735
7736 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7737
7738         * config/i386/sse.md (avxmodesuffixs): Removed.
7739         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
7740         (*avx_pinsr<ssevecsize>): This.
7741
7742 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
7743
7744         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
7745         follow chains of regs with a single definition, and allow expressions
7746         that are function_invariant_p.
7747         (simple_rhs_p): Allow expressions that are function_invariant_p.
7748
7749 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
7750
7751         PR middle-end/39867
7752         * fold-const.c (fold_cond_expr_with_comparison): When folding
7753         > and >= to MAX, make sure the MAX uses the same type as the
7754         comparison's operands.
7755
7756 2009-04-24  Nick Clifton  <nickc@redhat.com>
7757
7758         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
7759         addressing for DImode accesses.
7760         (frv_print_operand_address): Handle PLUS case.
7761         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
7762
7763 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
7764
7765         PR rtl-optimization/39794
7766         * alias.c (canon_true_dependence): Add x_addr argument.
7767         * rtl.h (canon_true_dependence): Adjust prototype.
7768         * cse.c (check_dependence): Adjust canon_true_dependence callers.
7769         * cselib.c (cselib_invalidate_mem): Likewise.
7770         * gcse.c (compute_transp): Likewise.
7771         * dse.c (scan_reads_nospill): Likewise.
7772         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
7773         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
7774         canon_base_addr of the group, plus optional offset.
7775         (struct group_info): Rename canon_base_mem to
7776         canon_base_addr.
7777         (get_group_info): Set canon_base_addr to canon_rtx of base, not
7778         canon_rtx of base_mem.
7779
7780 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
7781
7782         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
7783         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
7784
7785 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7786
7787         * config/spu/spu-builtins.h: Delete file.
7788
7789         * config/spu/spu.h (enum spu_builtin_type): Move here from
7790         spu-builtins.h.
7791         (struct spu_builtin_description): Likewise.  Add GTY marker.
7792         Do not use enum spu_function_code or enum insn_code.
7793         (spu_builtins): Add extern declaration.
7794
7795         * config/spu/spu.c: Do not include "spu-builtins.h".
7796         (enum spu_function_code, enum spu_builtin_type_index,
7797         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
7798         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
7799         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
7800         unsigned_V2DI_type_node): Move here from spu-builtins.h.
7801         (spu_builtin_types): Make static.  Add GTY marker.
7802         (spu_builtins): Add extern declaration with GTY marker.
7803         Include "gt-spu.h".
7804
7805         * config/spu/spu-c.c: Do not include "spu-builtins.h".
7806         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
7807         Check programmatically whether all parameters are scalar.
7808
7809         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
7810
7811 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
7812
7813         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
7814         assignment from the constructor either if the target is volatile.
7815
7816 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
7817
7818         * config/arm/arm.md (insv): Do not share operands[0].
7819
7820 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
7821
7822         * config/vxlib-tls.c (active_tls_threads): Delete.
7823         (delete_hook_installed): New.
7824         (tls_delete_hook): Don't delete the delete hook.
7825         (tls_destructor): Delete it here.
7826         (__gthread_set_specific): Adjust installing the delete hook.
7827         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
7828         __gthread_leave_tsd_dtor_context.
7829
7830 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
7831
7832         * c-format.c (gcc_tdiag_char_table): Add support for %E.
7833
7834 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
7835
7836         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
7837         enum type.
7838         (alpha_rtx_costs): Ditto.
7839         (emit_unlikely_jump): Use add_reg_note.
7840         (emit_frame_store_1): Ditto.
7841         (alpha_expand_prologue): Ditto.
7842         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
7843         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
7844
7845 2009-04-23  Nick Clifton  <nickc@redhat.com>
7846
7847         * config/v850/v850.md (epilogue): Remove suppressed code.
7848         (return): Rename to return_simple and remove test of frame size.
7849         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
7850         to gen_return_simple.
7851
7852 2009-04-22  Jing Yu  <jingyu@google.com>
7853
7854         PR testsuite/39781
7855         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
7856
7857 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7858
7859         PR C/31499
7860         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
7861         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
7862         value is a VECTOR_CST, the element type is the element type of the
7863         vector.
7864
7865 2009-04-22  DJ Delorie  <dj@redhat.com>
7866
7867         * config/m32c/m32c.h: Update GTY annotations to new syntax.
7868
7869 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
7870
7871         * alias.c (find_base_term): Move around LO_SUM case, so that
7872         CONST falls through into PLUS/MINUS handling.
7873
7874         PR c/39855
7875         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
7876         into 0, use omit_one_operand.
7877
7878 2009-04-23  Ben Elliston  <bje@au.ibm.com>
7879
7880         * config/rs6000/linux-unwind.h (get_regs): Remove type
7881         puns. Change the type of `pc' to an array of unsigned ints and
7882         update all users.  Constify frame24.
7883
7884 2009-04-22  DJ Delorie  <dj@redhat.com>
7885
7886         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
7887         declarations before code.
7888         (current_function_special_page_vector): Likewise.
7889         (m32c_expand_insv): Silence a warning.
7890
7891 2009-04-21  Taras Glek  <tglek@mozilla.com>
7892
7893         * alias.c: Update GTY annotations to new syntax.
7894         * basic-block.h: Likewise.
7895         * bitmap.h: Likewise.
7896         * c-common.h: Likewise.
7897         * c-decl.c: Likewise.
7898         * c-parser.c: Likewise.
7899         * c-pragma.c: Likewise.
7900         * c-tree.h: Likewise.
7901         * cfgloop.h: Likewise.
7902         * cgraph.h: Likewise.
7903         * config/alpha/alpha.c: Likewise.
7904         * config/arm/arm.h: Likewise.
7905         * config/avr/avr.h: Likewise.
7906         * config/bfin/bfin.c: Likewise.
7907         * config/cris/cris.c: Likewise.
7908         * config/darwin.c: Likewise.
7909         * config/frv/frv.c: Likewise.
7910         * config/i386/i386.c: Likewise.
7911         * config/i386/i386.h: Likewise.
7912         * config/i386/winnt.c: Likewise.
7913         * config/ia64/ia64.h: Likewise.
7914         * config/iq2000/iq2000.c: Likewise.
7915         * config/mips/mips.c: Likewise.
7916         * config/mmix/mmix.h: Likewise.
7917         * config/pa/pa.c: Likewise.
7918         * config/pa/pa.h: Likewise.
7919         * config/rs6000/rs6000.c: Likewise.
7920         * config/s390/s390.c: Likewise.
7921         * config/sparc/sparc.c: Likewise.
7922         * config/xtensa/xtensa.c: Likewise.
7923         * cselib.h: Likewise.
7924         * dbxout.c: Likewise.
7925         * dwarf2out.c: Likewise.
7926         * except.c: Likewise.
7927         * except.h: Likewise.
7928         * fixed-value.h: Likewise.
7929         * function.c: Likewise.
7930         * function.h: Likewise.
7931         * gimple.h: Likewise.
7932         * integrate.c: Likewise.
7933         * optabs.c: Likewise.
7934         * output.h: Likewise.
7935         * real.h: Likewise.
7936         * rtl.h: Likewise.
7937         * stringpool.c: Likewise.
7938         * tree-data-ref.c: Likewise.
7939         * tree-flow.h: Likewise.
7940         * tree-scalar-evolution.c: Likewise.
7941         * tree-ssa-address.c: Likewise.
7942         * tree-ssa-alias.h: Likewise.
7943         * tree-ssa-operands.h: Likewise.
7944         * tree.c: Likewise.
7945         * tree.h: Likewise.
7946         * varasm.c: Likewise.
7947         * varray.h: Likewise.
7948         * vec.h: Likewise.
7949         * coretypes.h: Do not define GTY macro if it is already defined.
7950         * doc/gty.texi: Update GTY documentation to new syntax.
7951         * gengtype-lex.l: Enforce attribute-like syntax for GTY
7952         annotations on structs.
7953         * gengtype-parse.c: Likewise.
7954
7955 2009-04-22  Mark Heffernan  <meheff@google.com>
7956
7957         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
7958
7959 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
7960
7961         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
7962         where appropriate.
7963
7964 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
7965
7966         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
7967         the same as a PLUS without a shift.  Increase the cost of a
7968         CONST_INT in MULT.
7969
7970 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7971
7972         * Makefile.in: Update dependencies.
7973         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
7974         * errors.h: Remove bogus comment about compatibility.
7975         (warning): Update declaration.
7976         * genautomata.c: Update all calls to warning.
7977         * gimple.c: Do not include errors.h. Include toplev.h.
7978         * tree-ssa-structalias.c: Do not include errors.h.
7979         * omega.c: Likewise.
7980         * tree-ssa-reassoc.c: Likewise.
7981         * config/spu/spu-c.c: Likewise.
7982         * config/spu/t-spu-elf: Update dependencies.
7983
7984 2009-04-22  Richard Guenther  <rguenther@suse.de>
7985
7986         PR tree-optimization/39824
7987         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
7988         make sure the types are compatible.
7989
7990 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7991
7992         PR c++/14875
7993         * c-common.c (c_parse_error): Take a token_flags parameter.
7994         Use token_type for the token type instead.
7995         Pass token_flags to cpp_type2name.
7996         * c-common.h (c_parse_error): Update declaration.
7997         * c-parser.c (c_parser_error): Pass 0 as token flags.
7998
7999 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
8000
8001         PR rtl-optimization/39580
8002         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
8003         
8004 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8005
8006         * function.c (expand_function_end): Do not emit a jump to the "naked"
8007         return label for fall-through returns.
8008         * except.c (sjlj_emit_function_exit): Always place the call to the
8009         unregister function at the location installed by expand_function_end.
8010
8011 2009-04-22  Richard Guenther  <rguenther@suse.de>
8012
8013         PR tree-optimization/39845
8014         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
8015         (gen_inbound_check): Likewise.
8016
8017 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
8018
8019         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
8020         padding for PPC.
8021         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
8022         * config/vxlib.c (__gthread_once): Add race guard for PPC.
8023
8024 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
8025
8026         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
8027         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
8028         shift counts to avoid out-of-bounds array accesses.
8029
8030 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
8031
8032         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
8033         (Pmode): Move above.
8034
8035 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
8036
8037         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
8038         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
8039         GET_CODE macro.  Use IN_RANGE macro where appropriate.
8040         * config/alpha/alpha.h: Ditto.
8041         * config/alpha/alpha.md: Ditto.
8042         * config/alpha/constraints.md: Ditto.
8043         * config/alpha/predicates.md: Ditto.
8044         
8045 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
8046
8047         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
8048         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8049         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8050         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8051         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8052         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8053         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8054         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8055         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8056         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8057         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8058         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8059         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8060         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8061         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8062         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8063         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8064         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8065         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8066         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8067         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8068         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8069         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8070         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8071         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8072         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8073         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8074
8075 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8076
8077         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
8078         references from comments.
8079         * cfgbuild.c: (count_basic_blocks): Delete.
8080         (find_basic_blocks_1): Delete.
8081         (find_basic_blocks): Delete.
8082         * except.c (finish_eh_generation): Make static.  Move comment from
8083         except.h here.  Remove find_basic_blocks references from comments.
8084         * except.h (finish_eh_generation): Delete.
8085         * basic-block.h (find_basic_blocks): Delete.
8086         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
8087
8088 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
8089
8090         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
8091         (sdbout_parms):  Likewise.
8092
8093 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
8094
8095         * config/sh/sh.c (prepare_cbranch_operands): Use
8096         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
8097         (expand_cbranchdi4): Likewise.
8098         (from_compare): Add cast to enum type.
8099         (expand_cbranchsi4): Use add_reg_note.
8100         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
8101         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
8102         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
8103         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
8104         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
8105         instead of CODE_FOR_nothing.
8106         (cbranchdi4): Likewise.  Fix the order of arguments for
8107         gen_rtx_fmt_ee.
8108         (push_fpscr): Use add_reg_note.
8109         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
8110         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
8111         
8112 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
8113
8114         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
8115         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
8116         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
8117         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
8118         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
8119         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
8120         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
8121         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
8122         config/alpha/x-vms, config/arc/t-arc,
8123         config/arm/README-interworking, config/arm/arm-c.c,
8124         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
8125         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
8126         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
8127         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
8128         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
8129         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
8130         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
8131         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
8132         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
8133         config/cris/t-elfmulti, config/crx/t-crx,
8134         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
8135         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
8136         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
8137         config/h8300/t-h8300, config/i386/athlon.md,
8138         config/i386/darwin-libgcc.10.4.ver,
8139         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
8140         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
8141         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
8142         config/i386/t-linux64, config/i386/t-nwld,
8143         config/i386/t-rtems-i386, config/i386/t-sol2-10,
8144         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
8145         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
8146         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
8147         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
8148         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
8149         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
8150         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
8151         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
8152         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
8153         config/m68k/t-uclinux, config/mcore/t-mcore,
8154         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
8155         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
8156         config/mips/crtn.asm, config/mips/irix-crti.asm,
8157         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
8158         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
8159         config/mips/mips-fixed.md, config/mips/sb1.md,
8160         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
8161         config/mips/t-iris6, config/mips/t-isa3264,
8162         config/mips/t-libgcc-mips16, config/mips/t-linux64,
8163         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
8164         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
8165         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
8166         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
8167         config/mn10300/t-linux, config/mn10300/t-mn10300,
8168         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
8169         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
8170         config/picochip/libgccExtras/clzsi2.asm,
8171         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
8172         config/rs6000/darwin-libgcc.10.4.ver,
8173         config/rs6000/darwin-libgcc.10.5.ver,
8174         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
8175         config/rs6000/t-aix43, config/rs6000/t-aix52,
8176         config/rs6000/t-darwin, config/rs6000/t-fprules,
8177         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
8178         config/rs6000/t-lynx, config/rs6000/t-netbsd,
8179         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
8180         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
8181         config/rs6000/t-rtems, config/rs6000/t-spe,
8182         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
8183         config/score/t-score-elf, config/sh/divcost-analysis,
8184         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
8185         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
8186         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
8187         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
8188         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
8189         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
8190         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
8191         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
8192         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
8193         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
8194         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
8195         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
8196         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
8197         limitx.h, version.c, xcoff.h: Add copyright and license notices.
8198         * config/h8300/genmova.sh: Include copyright and license notices
8199         in generated output.
8200         * config/h8300/mova.md: Regenerate.
8201         * doc/install.texi2html: Include word "Copyright" in copyright
8202         notice and use name "Free Software Foundation, Inc.".
8203         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
8204         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
8205         ChangeLog-2007, ChangeLog-2008: Correct dates.
8206
8207 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
8208
8209         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
8210         NE_EXPR operations as well.
8211         * c-parser.c (c_parser_condition): Do not set location information on
8212         the condition.
8213         (c_parser_conditional_expression): Likewise.
8214         (c_parser_binary_expression): Set location information on operators.
8215         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
8216         TRUTH_NOT_EXPR has been folded.
8217         * fold-const.c (fold_truth_not_expr): Copy location information from
8218         the incoming expression to the outgoing one.
8219         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
8220         recursive calls on the LHS of the operator but pass that of the
8221         operator to recursive calls on the RHS of the operator.  Set it
8222         on the COND_EXPR.
8223         (shortcut_cond_expr): Set the locus of the operator on the second
8224         COND_EXPR and that of the expression on the first in degenerate cases.
8225         Pass the locus of the expression to calls to shortcut_cond_r.
8226         Set the locus of the 'then' block on the associated jump, if any.
8227         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
8228         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
8229         expression to call to gimplify_boolean_expr.
8230
8231 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
8232
8233         * config.gcc: Add additional configuration for
8234         i686-w64-mingw* and x86_64-w64-mingw* triplet.
8235         * config/i386/mingw-w64.h: New mingw-w64 specific header.
8236         (CPP_SPEC): Redefine for allowing -municode option.
8237         (STARTFILE_SPEC): Likewise.
8238         * config/i386/t-mingw-w64: New.
8239         * config/i386/mingw-w64.opt: New.
8240         (municode): Add new target option.
8241         * doc/invoke.texi (municode): Add documentation for new option.
8242
8243 2009-04-21  Ian Lance Taylor  <iant@google.com>
8244
8245         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8246         Correct test for number of arguments.
8247         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8248
8249 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
8250
8251         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
8252         argument of emit_library_call.
8253
8254 2009-04-21  Richard Guenther  <rguenther@suse.de>
8255
8256         PR middle-end/39829
8257         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
8258         inside VIEW_CONVERT_EXPRs.
8259
8260 2009-04-21  Martin Jambor  <mjambor@suse.cz>
8261
8262         * tree-switch-conversion.c (build_constructors): Split a long line.
8263         (constructor_contains_same_values_p): New function.
8264         (build_one_array): Create assigns of constants if possible, do not
8265         call mark_sym_for_renaming, call update_stmt.
8266         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
8267         make_rename_temp.  Do not call mark_symbols_for_renaming, call
8268         update_stmt.
8269         (gen_def_assigns): Do not call mark_symbols_for_renaming or
8270         find_new_referenced_vars, call update_stmt.
8271         (gen_inbound_check): Use create_tmp_var and create ssa names manually
8272         instead of calling make_rename_temp.  Do not call
8273         find_new_referenced_vars or mark_symbols_for_renaming, call
8274         update_stmt.
8275
8276 2009-04-21  Richard Guenther  <rguenther@suse.de>
8277
8278         PR tree-optimization/39827
8279         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
8280         (tree_ssa_phiprop): Pass the correct array size.
8281
8282 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
8283
8284         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
8285
8286 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8287
8288         PR 16202
8289         * c-typeck.c (lvalue_p): Move declaration ...
8290         * c-common.h (lvalue_p): ... to here.
8291         * c-common.c (candidate_equal_p): New.
8292         (add_tlist): Use it.
8293         (merge_tlist): Use it.
8294         (warn_for_collisions_1): Likewise.
8295         (warning_candidate_p): Accept more candidates.
8296         (verify_tree): A warning candidate can be an expression. Use
8297         candidate_equal_p.
8298
8299 2009-04-21  Ben Elliston  <bje@au.ibm.com>
8300
8301         PR target/5267
8302         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8303         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
8304         options.  Remove -mcall-solaris documentation.
8305
8306 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8307
8308         PR c++/13358
8309         * doc/invoke.texi (-Wlong-long): Update description.
8310         * c-lex (interpret_integer): Only warn if there was no previous
8311         overflow and -Wlong-long is enabled.
8312         * c-decl.c (declspecs_add_type): Drop redundant flags.
8313         * c.opt (Wlong-long): Init to -1.
8314         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
8315         and front-end warn_long_long. Wlong-long only depends on other
8316         flags if it is uninitialized.
8317         * c-parser.c (disable_extension_diagnostics): warn_long_long is
8318         the same for CPP and FE.
8319         (restore_extension_diagnostics): Likewise.
8320
8321 2009-04-20  Ian Lance Taylor  <iant@google.com>
8322
8323         Fix enum conversions which are invalid in C++:
8324         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
8325         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
8326         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
8327         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
8328         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
8329         (dbxout_parms): Likewise.
8330         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
8331         (df_clear_flags): Likewise.
8332         * df-problems.c (df_rd_bb_local_compute_process_def): Change
8333         top_flag parameter to int.
8334         (df_chain_create_bb_process_use): Likewise.
8335         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
8336         Remove cast.
8337         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
8338         (df_ref_create_structure, df_def_record_1): Likewise.
8339         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
8340         (df_notes_rescan): Change 0 to VOIDmode in function call.
8341         (df_get_call_refs, df_insn_refs_collect): Likewise.
8342         (df_bb_regs_collect): Likewise.
8343         (df_entry_block_defs_collect): Likewise.
8344         (df_exit_block_uses_collect): Likewise.
8345         * df.h: Update declarations.
8346         * double-int.c (double_int_divmod): Add cast to enum type.
8347         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
8348         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
8349         (based_loc_descr): Likewise.
8350         (loc_descriptor_from_tree_1): Change first_op and second_op to
8351         enum dwarf_location_atom.  Add cast to enum type.
8352         * expmed.c (init_expmed): Change 0 to SET in function call.
8353         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
8354         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
8355         (do_store_flag): Likewise.
8356         * fixed-value.h (struct fixed_value): Change mode to enum
8357         machine_mode.
8358         * function.c (assign_parms): Change 0 to VOIDmode in function call.
8359         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
8360         function call.
8361         (insert_insn_decl, insert_decl, insert_state): Likewise.
8362         (automata_list_finish): Likewise.
8363         * genrecog.c (process_define_predicate): Add cast to enum type.
8364         * gensupport.c (init_predicate_table): Add cast to enum type.
8365         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
8366         function call.
8367         (gimple_build_call_1, gimple_build_label): Likewise.
8368         (gimple_build_goto, gimple_build_asm_1): Likewise.
8369         (gimple_build_switch_1, gimple_build_cdt): Likewise.
8370         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
8371         (enum fallback): Rename from enum fallback_t.
8372         (fallback_t): Typedef as int.
8373         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
8374         GSI_SAME_STMT in function call.
8375         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
8376         enum type.
8377         (setup_reg_class_relations): Likewise.
8378         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
8379         (setup_prohibited_class_mode_regs): Add cast to enum type.
8380         (setup_prohibited_mode_move_regs): Likewise.
8381         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
8382         (record_address_regs): Change i to enum reg_class.
8383         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
8384         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
8385         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
8386         (GET_MODE_2XWIDER_MODE): Likewise.
8387         (GET_CLASS_NARROWEST_MODE): Likewise.
8388         * omp-low.c (expand_omp_for): Add cast to enum type.
8389         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
8390         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
8391         * postreload.c (reload_cse_simplify_operands): Change rclass local
8392         to enum reg_class.
8393         * predict.c (combine_predictions_for_insn): Change best_predictor
8394         and predictor to enum br_predictor.
8395         (combine_predictions_for_bb): Likewise.
8396         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
8397         use SET_PREDICT_EXPR_OUTCOME.
8398         * real.c (real_arithmetic): Change icode to code in function call.
8399         * reginfo.c (init_move_cost): Add casts to enum type.
8400         (init_reg_sets_1, init_fake_stack_mems): Likewise.
8401         * regmove.c (regclass_compatible_p): Change class0 and class1 to
8402         enum reg_class.
8403         * reload.c (find_valid_class): Add casts to enum type.
8404         (push_reload): Change 0 to NO_REGS in function call.
8405         (find_reloads): Change this_alternative to array of enum
8406         reg_class.  Remove some now-unnecessary casts.
8407         (make_memloc): Change 0 to VOIDmode in function call.
8408         * reload1.c (reload): Change 0 to VOIDmode in function call.
8409         (eliminate_regs_1, elimination_effects): Likewise.
8410         (eliminate_regs_in_insn): Likewise.
8411         (emit_input_reload_insns): Add cast to enum type.
8412         (delete_output_reload): Change 0 to VOIDmode in function call.
8413         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
8414         to enum type in function call.
8415         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
8416         (SET_PREDICT_EXPR_OUTCOME): Define.
8417         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
8418         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
8419         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
8420         (dump_function): Likewise.
8421         * tree-dump.h: Update declarations.
8422         * tree-pass.h: Update declarations.
8423         * varasm.c (assemble_integer): Change mclass to enum mode_class.
8424         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
8425         enum type.
8426         (arm_rtx_costs_1): Correct parenthesization.
8427         (arm_rtx_costs): Add casts to enum type.
8428         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
8429         (vfp_emit_fstmd): Use add_rg_note.
8430         (emit_multi_reg_push, emit_sfm): Likewise.
8431         (thumb_set_frame_pointer): Likewise.
8432         (arm_expand_prologue): Likewise.
8433         (arm_regno_class): Change return type to enum reg_class.
8434         (thumb1_expand_prologue): Use add_reg_note.
8435         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
8436         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
8437         in function call.
8438         * config/arm/gentune.sh: Add cast to enum type.
8439         * config/arm/arm-tune.md: Rebuild.
8440         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
8441         (ix86_split_fp_branch, predict_jump): Likewise.
8442         (ix86_expand_multi_arg_builtin): Change sub_code from enum
8443         insn_code to enum rtx_code.
8444         (ix86_builtin_vectorized_function): Add cast to enum type.
8445         * config/i386/i386.md (truncdfsf2): Change slot to enum
8446         ix86_stack_slot.
8447         (truncxf<mode>2, isinf<mode>2): Likewise.
8448         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
8449         enum type.
8450         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
8451         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
8452         (insert_bundle_state): Change 1 to INSERT in function call.
8453         (ia64_add_bundle_selector_before): Likewise.
8454         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
8455         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
8456         (restore_stack_nonlocal): Likewise.
8457         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
8458         function call.
8459         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
8460         function call.
8461         (mips_rtx_costs): Likewise.
8462         (mips_override_options): Add casts to enum type.
8463         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
8464         in function call.
8465         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
8466         (store_reg, set_reg_plus_d): Likewise.
8467         (hppa_expand_prologue, hppa_profile_hook): Likewise.
8468         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8469         cast to enum type.
8470         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
8471         function call.
8472         (emit_unlikely_jump): Use add_reg_note.
8473         (rs6000_emit_allocate_stack): Likewise.
8474         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
8475         (output_toc): Change 1 to INSERT in function call.
8476         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
8477         (rs6000_initialize_trampoline): Likewise.
8478         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
8479         function call.
8480         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
8481         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
8482         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
8483         (save_gprs): Use add_reg_note.
8484         (s390_emit_prologue): Likewise.
8485         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
8486         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
8487         (sparc_fold_builtin): Add cast to enum type.
8488         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
8489         enum insn_code.
8490         (spu_expand_prologue): Use add_reg_note.
8491         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
8492
8493 2009-04-20  Ian Lance Taylor  <iant@google.com>
8494
8495         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
8496         (c_parser_postfix_expression_after_primary): Get VEC for list of
8497         arguments.  Get original types of arguments.  Call
8498         build_function_call_vec.
8499         (cached_expr_list_1, cached_expr_list_2): New static variables.
8500         (c_parser_expr_list): Change return type to VEC *.  Add
8501         p_orig_types parameter.  Change all callers.
8502         (c_parser_release_expr): New static function.
8503         (c_parser_vec_to_tree_list): New static function.
8504         * c-typeck.c (build_function_call): Rewrite to build a VEC and
8505         call build_function_call_vec.
8506         (build_function_call_vec): New function, based on old
8507         build_function_call.
8508         (convert_arguments): Remove nargs and argarray parameters.  Change
8509         values to a VEC.  Add origtypes parameter.
8510         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
8511         (convert_for_assignment): Add origtype parameter.  Change all
8512         callers.  If warn_cxx_compat, check for conversion to an enum
8513         type when calling a function.
8514         (store_init_value): Add origtype parameter.  Change all callers.
8515         (digest_init): Likewise.
8516         (struct init_node): Add origtype field.
8517         (add_pending_init): Add origtype parameter.  Change all callers.
8518         (output_init_element): Likewise.
8519         (output_pending_init_elements): Pass origtype from init_node to
8520         output_init_element.
8521         (process_init_element): Pass origtype from c_expr to
8522         output_init_element.
8523         (c_finish_return): Add origtype parameter.  Change all callers.
8524         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
8525         caller.
8526         (sync_resolve_params): Likewise.
8527         (sync_resolve_return): Change params to first_param.  Change caller.
8528         (resolve_overloaded_builtins): Change params to VEC *.  Change
8529         callers.  Save first parameter around call to build_function_call_vec.
8530         * c-decl.c (finish_decl): Add origtype parameter.  Change all
8531         callers.  Call build_function_call_vec rather than
8532         build_function_call for cleanup.
8533         * c-tree.h: Update declarations.
8534         * c-common.h: Update declarations.
8535         * stub-objc.c (objc_rewrite_function_call): Change parameter from
8536         params to first_param.
8537         * target.h (struct gcc_target): Change resolve_overloaded_builtin
8538         params parameter from tree to void *.
8539         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8540         Change arglist parameter to have type void *, and to be a pointer
8541         to a VEC.
8542         * config/rs6000/rs6000-protos.h
8543         (altivec_resolve_overloaded_builtin): Update declaration.
8544         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
8545         fnargs parameter to have type void *, and to be a pointer to a
8546         VEC.  Call build_function_call_vec instead of
8547         build_function_call.
8548         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
8549
8550 2009-04-20  Joey Ye  <joey.ye@intel.com>
8551             Xuepeng Guo  <xuepeng.guo@intel.com>
8552             H.J. Lu  <hongjiu.lu@intel.com>
8553
8554         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
8555
8556         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
8557         (IX86_LEA_PRIORITY): Likewise.
8558         (distance_non_agu_define): New function.
8559         (distance_agu_use): Likewise.
8560         (ix86_lea_for_add_ok): Likewise.
8561         (ix86_dep_by_shift_count): Likewise.
8562
8563         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
8564         should split for LEA.
8565
8566         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
8567         function.
8568         (ix86_dep_by_shift_count): Likewise.
8569
8570 2009-04-20  Richard Guenther  <rguenther@suse.de>
8571
8572         * expr.c (handled_component_p): Move ...
8573         * tree.h (handled_component_p): ... here.
8574         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
8575         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
8576         and REALPART_EXPR to be in one group.
8577
8578 2009-04-20  Richard Guenther  <rguenther@suse.de>
8579
8580         * basic-block.h (get_all_dominated_blocks): Declare.
8581         * dominance.c (get_all_dominated_blocks): New function.
8582         * tree-cfg.c (get_all_dominated_blocks): Remove.
8583         (remove_edge_and_dominated_blocks): Adjust.
8584         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
8585         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
8586         instead of recursing.
8587
8588 2009-04-20  Doug Kwan  <dougkwan@google.com>
8589
8590         * cgraph.h (cgraph_node_ptr): New type for vector functions.
8591         (struct cgraph_node_set_def): New type.
8592         (cgraph_node_set) New type. Also declare vector functions.
8593         (struct cgraph_node_set_element_def): New type.
8594         (cgraph_node_set_element): Ditto.
8595         (cgraph_node_set_iterator): New iterator type.
8596         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
8597         cgraph_node_set_remove, dump_cgraph_node_set,
8598         debug_cgraph_node_set): New prototypes.
8599         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
8600         cgraph_node_set_size): New inlines.
8601         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
8602         including cgraph.h.
8603         (struct ipa_opt_pass): Add struct cgraph_node_set_def
8604         argument to function 'write_summary'.
8605         * ipa.c: Include ggc.h.
8606         (hash_cgraph_node_set_element,
8607         eq_cgraph_node_set_element, cgraph_node_set_new,
8608         cgraph_node_set_add, cgraph_node_set_remove,
8609         cgraph_node_set_find, dump_cgraph_node_set,
8610         debug_cgraph_node_set): New functions.
8611         * Makefile.in (ipa.o): Add dependency on GGC_H.
8612
8613 2009-04-20  Ira Rosen  <irar@il.ibm.com>
8614
8615         PR tree-optimization/39675
8616         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
8617         check of the return code of vect_schedule_slp. Check that
8618         stmt_vec_info still exists for the statement, before checking its
8619         vectorization type.
8620
8621 2009-04-20  Michael Matz  <matz@suse.de>
8622
8623         * Makefile.in (generated_files): Take out $(simple_generated_c).
8624
8625 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
8626
8627         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
8628         (UINTPTR_TYPE):  Likewise.
8629
8630 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
8631
8632         PR c/37481
8633         * c-typeck.c (digest_init): Check for initializing an array with a
8634         string literal.
8635
8636 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
8637
8638         PR c/19771
8639         * c-semantics.c (pop_stmt_list): Propagate
8640         STATEMENT_LIST_HAS_LABEL to parent statement list.
8641
8642 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
8643
8644         * config/mips/mips.h (mips_tune_attr): New macro.
8645         * config/mips/mips.md (cpu): Use it.
8646
8647 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
8648
8649         PR c/38243
8650         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
8651         declaring a tag.
8652
8653 2009-04-19  Diego Novillo  <dnovillo@google.com>
8654
8655         * toplev.c (compile_file): Move call to coverage_finish ...
8656         * cgraphunit.c (ipa_passes): ... here.
8657         Call cgraph_process_new_functions.
8658         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
8659         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
8660
8661 2009-04-19  Jan Hubicka  <jh@suse.cz>
8662
8663         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
8664         cfun.
8665         (dump_cgraph_node): Dump can throw external flag.
8666         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
8667
8668 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8669
8670         PR c/32061
8671         PR c++/36954
8672         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
8673         * common.opt (Wlogical-op): Move from here...
8674         * c.opt (Wlogical-op): ... to here.
8675         * c-typeck.c (parser_build_binary_op): Update call to
8676         warn_logical_operator.
8677         * c-opts.c (c_common_post_options): Enable warn_logical_op with
8678         extra_warnings.
8679         * c-common.c (warn_logical_op): Update.
8680         * c-common.h (warn_logical_op): Update declaration.
8681
8682 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
8683
8684         * tree.c (protected_set_expr_location): Fix formatting.
8685
8686 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
8687
8688         PR c/27676
8689         * c-typeck.c (readonly_warning): new.
8690         (build_unary_op, build_modify_expr): Use readonly_warning for
8691         storing into something readonly but not const-qualified.
8692
8693 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
8694
8695         PR c/22367
8696         * c-typeck.c (build_unary_op): Check for taking address of
8697         expression of type void.
8698
8699 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
8700
8701         PR c/35210
8702         * c-typeck.c (build_function_call): Check for calling a function
8703         with qualified void return types.  Call require_complete_type when
8704         generating a trap.
8705
8706 2009-04-18  Jan Hubicka  <jh@suse.cz>
8707
8708         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
8709         Set nothrow flag.
8710         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
8711         can_throw_external flag.
8712         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
8713         * ipa-pure-const.c (ignore_edge): New function.
8714         (propagate): Compute order for NOTHROW computation; set NOTHROWs
8715         only over can_throw_external edges.
8716         (local_pure_const): Add nothrow flag.
8717         * ipa-utils.c (searchc): Add ignore_edge callback.
8718         (ipa_utils_reduced_inorder): Add ignore_edge callback.
8719         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
8720         (set_nothrow_function_flags): Update cgraph.
8721         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
8722
8723 2009-04-18  Richard Guenther  <rguenther@suse.de>
8724
8725         PR middle-end/39804
8726         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
8727         (fold_stmt): ... this and ...
8728         (fold_stmt_inplace): ... this.
8729         (fold_stmt_1): Fold references in calls and asms.
8730         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
8731
8732 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8733
8734         * tree-vrp.c (ssa_name_nonzero_p): Remove.
8735         * tree.h: Remove the prototype for ssa_name_nonzero_p.
8736
8737 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8738
8739         * tree.c (function_args_count): Remove.
8740         * tree.h: Remove the prototype for function_args_count.
8741
8742 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8743
8744         * tree-iterator.c (expr_only): Remove.
8745         * tree.h: Remove the prototype for expr_only.
8746
8747 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8748
8749         * reginfo.c (cannot_change_mode_set_regs): Remove.
8750         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
8751
8752 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
8753
8754         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
8755         whether operands 0 and 1 overlaps.
8756
8757 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8758
8759         PR middle-end/36902
8760         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
8761         pointer. Use warning_at instead of warning.
8762         (search_for_addr_array): Likewise.
8763         (check_array_bounds): Likewise.
8764         (check_all_array_refs): Check that the incoming edge is not in the
8765         list of edges to be removed.
8766         (check_all_array_refs): Avoid the temporal pointer.
8767         (vrp_visit_cond_stmt): Fix typo.
8768         (simplify_switch_using_ranges): Handle the case where the switch
8769         index is an integer constant.
8770
8771 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
8772
8773         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
8774
8775 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
8776
8777         * doc/extend.texi, doc/invoke.texi: Fix typos.
8778
8779 2009-04-17  Cary Coutant  <ccoutant@google.com>
8780
8781         * tree-flow-inline.h (get_lineno): Fix inverted test.
8782
8783 2009-04-17  Diego Novillo  <dnovillo@google.com>
8784
8785         * tree-ssa-pre.c (create_expression_by_pieces): Remove
8786         assertion for AVAIL_OUT.
8787
8788 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
8789
8790         PR target/38627
8791         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
8792         * config/sh/linux-atomic.asm: Likewise.
8793
8794 2009-04-17  Diego Novillo  <dnovillo@google.com>
8795
8796         * except.c (debug_eh_tree): New.
8797         (struct eh_region, struct eh_status): Move ...
8798         * except.h: ... here.
8799         (add_type_for_runtime): Declare extern.
8800         (lookup_type_for_runtime): Likewise.
8801         (debug_eh_tree): Declare.
8802         * Makefile.in (GTFILES): List except.h before except.c
8803
8804 2009-04-17  Diego Novillo  <dnovillo@google.com>
8805
8806         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
8807         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8808         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
8809         (find_vars_r): ... here.
8810         * tree-flow.h (find_referenced_vars_in): Declare.
8811         * tree-ssa-pre.c (create_expression_by_pieces): Assert
8812         that AVAIL_OUT exists for BLOCK.
8813         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
8814         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
8815         (tree-parloops.o): Likewise.
8816
8817 2009-04-17  Simon Baldwin  <simonb@google.com>
8818
8819         * toplev.c (default_tree_printer): Add handling for %E format.
8820
8821 2009-04-17  Diego Novillo  <dnovillo@google.com>
8822
8823         * tree-pretty-print.c (dump_generic_node): Add break after
8824         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
8825         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
8826         FUNCTION_TYPE together.  Call print_struct_decl when printing
8827         structures and TDF_SLIM is not given.
8828         (print_struct_decl): Fix logic for detecting recursion.
8829
8830 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
8831
8832         PR 31567
8833         * gcc.c (create_at_file): New.
8834         (compile_input_file_p): New.
8835         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
8836         * main.c (main): Update call to toplev_main.
8837         * toplev.c (toplev_main): Change signature. Call expandargv.
8838         * toplev.h (toplev_main): Change signature.
8839
8840 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8841
8842         * dwarf2out.c (field_byte_offset): Use the type size as the field size
8843         if the latter is not constant.
8844
8845 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
8846
8847         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
8848
8849 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
8850
8851         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
8852         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
8853
8854 2009-04-17  Richard Guenther  <rguenther@suse.de>
8855
8856         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8857         Handle component references view-converting an invariant address.
8858
8859 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
8860
8861         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
8862         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
8863         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
8864         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
8865         Use @deftypevr rather than @deftypevar.
8866
8867 2009-04-17  Richard Guenther  <rguenther@suse.de>
8868
8869         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
8870         (get_prop_source_stmt): Likewise.
8871         (can_propagate_from): Likewise.
8872
8873 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
8874
8875         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
8876         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
8877         (--with-multilib-list): Add default value.
8878         * configure: Regenerate.
8879         * Makefile.in (TM_ENDIAN_CONFIG): Define.
8880         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
8881         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
8882         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
8883         Don't add default cpu to multilib list unnecessarily, but do enable
8884         the relevant compiler option..
8885         Add support for --with-multilib-list=<blank> and
8886         --with-multilib-list=!<somelib> to supress unwanted multilibs.
8887         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
8888         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
8889         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
8890         TM_MULTILIB_CONFIG.
8891         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
8892         (MULTILIB_OSDIRNAMES): New variable.
8893         * config/sh/t-1e: Delete file.
8894         * config/sh/t-mlib-sh1: Delete file.
8895         * config/sh/t-mlib-sh2: Delete file.
8896         * config/sh/t-mlib-sh2a: Delete file.
8897         * config/sh/t-mlib-sh2a-nofpu: Delete file.
8898         * config/sh/t-mlib-sh2a-single: Delete file.
8899         * config/sh/t-mlib-sh2a-single-only: Delete file.
8900         * config/sh/t-mlib-sh2e: Delete file.
8901         * config/sh/t-mlib-sh3e: Delete file.
8902         * config/sh/t-mlib-sh4: Delete file.
8903         * config/sh/t-mlib-sh4-nofpu: Delete file.
8904         * config/sh/t-mlib-sh4-single: Delete file.
8905         * config/sh/t-mlib-sh4-single-only: Delete file.
8906         * config/sh/t-mlib-sh4a: Delete file.
8907         * config/sh/t-mlib-sh4a-nofpu: Delete file.
8908         * config/sh/t-mlib-sh4a-single: Delete file.
8909         * config/sh/t-mlib-sh4a-single-only: Delete file.
8910         * config/sh/t-mlib-sh4al: Delete file.
8911         * config/sh/t-mlib-sh5-32media: Delete file.
8912         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
8913         * config/sh/t-mlib-sh5-64media: Delete file.
8914         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
8915         * config/sh/t-mlib-sh5-compact: Delete file.
8916         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
8917         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
8918         * doc/install.texi (Options specification): Add
8919         --with-multilib-list and --with-endian.
8920
8921 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
8922
8923         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
8924         REVISION_c.
8925         (OBJS-common): Add plugin-version.o.
8926         (plugin-version.o): New.
8927         * gcc-plugin.h (plugin_gcc_version): New.
8928         (plugin_default_version_check): New.
8929         (plugin_init_func, plugin_init): Add version argument.
8930         * plugin-version.c: New.
8931         * plugin.c (str_plugin_gcc_version_name): New.
8932         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
8933         pass it to the init function.
8934         (plugin_default_version_check): New.
8935
8936 2009-04-17  Richard Guenther  <rguenther@suse.de>
8937
8938         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
8939         for decl-vs-decl disambiguation.
8940
8941 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8942
8943         * config/s390/s390.h (s390_tune_attr): New macro definition.
8944         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
8945
8946 2009-04-17  Richard Guenther  <rguenther@suse.de>
8947
8948         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
8949         (fold_stmt_r): Likewise.
8950         (maybe_fold_reference): New function.
8951         (fold_gimple_assign): Handle cases fold_stmt_r did.
8952         (fold_stmt): Do not use fold_stmt_r.
8953         (fold_stmt_inplace): Likewise.
8954
8955 2009-04-17  Richard Guenther  <rguenther@suse.de>
8956
8957         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
8958         (record_equivalences_from_stmt): Remove useless checks and
8959         simplifications.
8960         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
8961         the type is already suitable.
8962
8963 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
8964
8965         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
8966
8967 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
8968
8969         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
8970         (CMPtype): Define as __gcc_CMPtype.
8971
8972 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
8973
8974         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
8975         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
8976
8977 2009-04-17  Richard Guenther  <rguenther@suse.de>
8978
8979         PR tree-optimization/39746
8980         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
8981         special-casing for builtins and static variable use/def.
8982         (call_may_clobber_ref_p_1): Likewise.
8983
8984 2009-04-16  Ian Lance Taylor  <iant@google.com>
8985
8986         * df.h: Include "timevar.h".
8987         (struct df_problem): Change tv_id field to timevar_id_t.
8988         * tree-pass.h: Include "timevar.h".
8989         (struct opt_pass): Change tv_id field to timevar_id_t.
8990         * timevar.h (timevar_id_t): Define TV_NONE.
8991         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
8992         TV_NONE rather than tv_id != 0.
8993         (execute_one_pass): Likewise.
8994         * Makefile.in (DF_H): Add $(TIMEVAR_H).
8995         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
8996         dependencies to $(TREE_PASS_H).
8997         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
8998         to TV_NONE.
8999         (pass_branch_target_load_optimize2): Likewise.
9000         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
9001         (pass_outof_cfg_layout_mode): Likewise.
9002         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
9003         (pass_rebuild_cgraph_edges): Likewise.
9004         (pass_remove_cgraph_callee_edges): Likewise.
9005         * df-core.c (pass_df_initialize_opt): Likewise.
9006         (pass_df_initialize_no_opt): Likewise.
9007         (pass_df_finish): Likewise.
9008         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
9009         * except.c (pass_set_nothrow_function_flags): Likewise.
9010         (pass_convert_to_eh_region_ranges): Likewise.
9011         * final.c (pass_compute_alignments): Likewise.
9012         * function.c (pass_instantiate_virtual_regs): Likewise.
9013         (pass_init_function): Likewise.
9014         (pass_leaf_regs): Likewise.
9015         (pass_match_asm_constraints): Likewise.
9016         * gimple-low.c (pass_lower_cf): Likewise.
9017         (pass_mark_used_blocks): Likewise.
9018         * init-regs.c (pass_initialize_regs): Likewise.
9019         * integrate.c (pass_initial_value_sets): Likewise.
9020         * ira.c (pass_ira): Likewise.
9021         * jump.c (pass_cleanup_barriers): Likewise.
9022         * omp-low.c (pass_expand_omp): Likewise.
9023         (pass_lower_omp): Likewise.
9024         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
9025         * recog.c (pass_split_all_insns): Likewise.
9026         (pass_split_after_reload): Likewise.
9027         (pass_split_before_regstack): Likewise.
9028         (pass_split_before_sched2): Likewise.
9029         (pass_split_for_shorten_branches): Likewise.
9030         * reginfo.c (pass_reginfo_init): Likewise.
9031         (pass_subregs_of_mode_init): Likewise.
9032         (pass_subregs_of_mode_finish): Likewise.
9033         * passes.c (pass_postreload): Likewise.
9034         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
9035         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
9036         (pass_warn_function_return): Likewise.
9037         (pass_warn_function_noreturn): Likewise.
9038         * tree-complex.c (pass_lower_complex): Likewise.
9039         (pass_lower_complex_O0): Likewise.
9040         * tree-if-conv.c (pass_if_conversion): Likewise.
9041         * tree-into-ssa.c (pass_build_ssa): Likewise.
9042         * tree-mudflap.c (pass_mudflap_1): Likewise.
9043         (pass_mudflap_2): Likewise.
9044         * tree-nomudflap.c (pass_mudflap_1): Likewise.
9045         (pass_mudflap_2): Likewise.
9046         * tree-nrv.c (pass_return_slot): Likewise.
9047         * tree-object-size.c (pass_object_sizes): Likewise.
9048         * tree-optimize.c (pass_all_optimizations): Likewise.
9049         (pass_early_local_passes): Likewise.
9050         (pass_all_early_optimizations): Likewise.
9051         (pass_cleanup_cfg): Likewise.
9052         (pass_cleanup_cfg_post_optimizing): Likewise.
9053         (pass_free_datastructures): Likewise.
9054         (pass_free_cfg_annotations): Likewise.
9055         (pass_fixup_cfg): Likewise.
9056         (pass_init_datastructures): Likewise.
9057         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
9058         (pass_late_warn_uninitialized): Likewise.
9059         (pass_update_address_taken): Likewise.
9060         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
9061         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
9062         (pass_cse_sincos): Likewise.
9063         (pass_convert_to_rsqrt): Likewise.
9064         * tree-ssa-structalias.c (pass_build_alias): Likewise.
9065         * tree-stdarg.c (pass_stdarg): Likewise.
9066         * tree-tailcall.c (pass_tail_recursion): Likewise.
9067         (pass_tail_calls): Likewise.
9068         * tree-vect-generic.c (pass_lower_vector): Likewise.
9069         (pass_lower_vector_ssa): Likewise.
9070         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
9071
9072 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
9073
9074         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
9075         XLR entry.
9076         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
9077         Handle -march=xlr.
9078         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
9079         logical and signext.
9080
9081 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
9082
9083         PR target/39767
9084         * config/sh/predicates.md (arith_operand): Check if the operand
9085         of TRUNCATE is a REG.
9086
9087 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9088
9089         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
9090         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
9091
9092 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9093
9094         * tree-iterator.c (tsi_split_statement_list_after,
9095         tsi_split_statement_list_before): Remove.
9096         * tree-iterator.h: Remove the prototypes for
9097         tsi_split_statement_list_after and tsi_split_statement_list_before.
9098
9099 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9100
9101         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
9102         * tree-ssa-propagate.h: Remove the prototype for
9103         stmt_makes_single_load.
9104
9105 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9106
9107         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
9108         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
9109
9110 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9111
9112         * tree-iterator.c (EXPR_LAST_BODY): Remove.
9113
9114 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9115
9116         * except.c (eh_region_outer_p): Remove.
9117         * except.h: Remove the prototype for eh_region_outer_p.
9118
9119 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
9120
9121         * function.c (current_function_assembler_name): Remove.
9122         * function.h: Remove the prototype for
9123         current_function_assembler_name.
9124
9125 2009-04-16  Ian Lance Taylor  <iant@google.com>
9126
9127         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
9128         (add_reg_note): Call alloc_reg_note.
9129         * rtl.h (alloc_reg_note): Declare.
9130         * combine.c (try_combine): Use alloc_reg_note.
9131         (recog_for_combine, move_deaths): Likewise.
9132         (distribute_notes): Use alloc_reg_note and add_reg_note.
9133         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
9134         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
9135         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
9136
9137 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
9138
9139         PR rtl-optimization/39762
9140         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
9141         ira_may_move_out_cost): Add comments about way of their usage.
9142         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
9143
9144         * ira-conflicts.c (process_regs_for_copy): Use function
9145         ira_get_register_move_cost instead of global
9146         ira_register_move_cost.
9147
9148         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
9149         color_pass, move_spill_restore, update_curr_costs): Ditto.
9150
9151         * ira-lives.c (process_single_reg_class_operands): Ditto.
9152
9153         * ira-emit.c (emit_move_list): Ditto.
9154
9155         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
9156         (record_reg_classes): Ditto.  Use functions
9157         ira_get_register_move_cost and ira_get_may_move_cost instead of
9158         global vars ira_register_move_cost, ira_may_move_out_cost and
9159         ira_may_move_in_cost.
9160         (record_address_regs): Don't call ira_init_register_move_cost.
9161         Use function ira_get_may_move_cost instead of global
9162         ira_may_move_in_cost.
9163         (process_bb_node_for_hard_reg_moves): Use function
9164         ira_get_register_move_cost instead of global ira_register_move_cost.
9165         (ira_costs): Don't call ira_init_register_move_cost.
9166
9167 2009-04-16  Richard Guenther  <rguenther@suse.de>
9168
9169         * tree-cfg.c (verify_gimple_assign_binary):
9170         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
9171         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
9172         (create_general_new_stmt): Note that this function is broken.
9173
9174 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
9175
9176         * common.opt (fhelp): Add Var(help_flag).
9177         * gcc-plugin.h (plugin_info): Add help.
9178         * plugin.c (plugin_name_args): Add help.
9179         (register_plugin_info): Set plugin->help.
9180         (print_help_one_plugin): New.
9181         (print_plugins_help): New.
9182         * plugin.h (print_plugins_help): New.
9183         * toplev.c (toplev_main): Call print_plugins_help if needed.
9184
9185 2009-04-16  Richard Guenther  <rguenther@suse.de>
9186
9187         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
9188         (gimple_ior_addresses_taken_1): New function.
9189         (gimple_ior_addresses_taken): Likewise.
9190         * gimple.h (struct gimple_statement_with_ops_base): Remove
9191         addresses_taken member.
9192         (gimple_ior_addresses_taken): Declare.
9193         (gimple_addresses_taken, gimple_addresses_taken_ptr,
9194         gimple_set_addresses_taken): Remove.
9195         * ipa-reference.c (mark_address): New function.
9196         (scan_stmt_for_static_refs): Use it for marking addresses taken.
9197         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
9198         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
9199         (gimple_add_to_addresses_taken): Remove.
9200         (get_tmr_operands): Call mark_address_taken.
9201         (get_asm_expr_operands): Likewise.
9202         (get_expr_operands): Likewise.
9203         (build_ssa_operands): Do not clear the addresses_taken bitmap.
9204         (free_stmt_operands): Do not free it.
9205         * tree-ssa.c (delete_tree_ssa): Likewise.
9206         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
9207
9208 2009-04-16  Richard Guenther  <rguenther@suse.de>
9209
9210         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
9211         (walk_stmt_load_store_ops): Likewise.
9212         * gimple.c (get_base_loadstore): New function.
9213         (walk_stmt_load_store_addr_ops): Likewise.
9214         (walk_stmt_load_store_ops): Likewise.
9215         * ipa-pure-const.c (check_op): Simplify.
9216         (check_load, check_store): New functions.
9217         (check_stmt): Use walk_stmt_load_store_ops.
9218         * ipa-reference.c (mark_load): Adjust signature.
9219         (mark_store): Likewise.
9220         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
9221
9222 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
9223
9224         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
9225         (plugin_info): New.
9226         * opts.c (common_handle_option): Don't call print_version.
9227         * plugin.c (plugin_name_args): Add version.
9228         (register_plugin_info): New.
9229         (register_callback): Handle PLUGIN_INFO.
9230         (try_init_one_plugin): New.
9231         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
9232         if failed to init.
9233         (finalize_one_plugin): New.
9234         (finalize_plugins): New.
9235         (print_one_plugin): New.
9236         (print_plugins_versions): New.
9237         * plugin.h (print_plugins_versions): New.
9238         (finalize_plugins): New.
9239         * toplev.c (compile_file): Don't call initialize_plugins.
9240         (print_version): Call print_plugins_versions.
9241         (toplev_main): Call initialize_plugins. Print version if needed.
9242         Call finalize_plugins.
9243
9244 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
9245
9246         * common.opt (fversion): New.
9247         * gcc.c (print_version): New.
9248         (process_command): Don't print the version. Just set print_version.
9249         (main): Print version. Call subprocesses if print_version and
9250         verbose_flag are set.
9251         * opts.c (common_handle_option): Handle OPT_fversion.
9252
9253 2009-04-16  Richard Guenther  <rguenther@suse.de>
9254             Ira Rosen  <irar@il.ibm.com>
9255
9256         PR tree-optimization/39698
9257         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
9258         type of the reduction variable.  Only generate the def if
9259         it is needed.
9260
9261         * omp-low.c (expand_omp_for_generic): When converting to a pointer
9262         make sure to first convert to an integer of the same precision.
9263         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
9264         the type of the evolution correctly in computing the new
9265         induction variable base.
9266
9267 2009-04-16  Richard Guenther  <rguenther@suse.de>
9268
9269         PR middle-end/39625
9270         * tree-cfg.c (make_blocks): Split statements with to-be
9271         abnormal SSA names on the lhs.
9272
9273 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
9274
9275         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
9276         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
9277         * c-typeck.c (really_start_incremental_init): Likewise.
9278         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
9279         (TARGET_INITIALIZER): Remove it.
9280         * target.h (struct target): Remove vector_opaque_p.
9281         * tree.c (build_opaque_vector_type): New.
9282         * tree.h (TYPE_VECTOR_OPAQUE): New.
9283         (build_opaque_vector_type): Declare.
9284         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
9285         * config/rs6000/rs6000.c (build_opaque_vector_type,
9286         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
9287         (rs6000_init_builtins): Use build_opaque_vector_type for
9288         opaque_V4SI_type_node.
9289
9290 2009-04-15  Catherine Moore  <clm@codesourcery.com>
9291
9292         * debug.h (set_name):  Declare.
9293         * dwarf2out.c (dwarf2out_set_name): Declare.
9294         (dwarf2_debug_hooks): Add set_name.
9295         (find_AT_string): New.
9296         (add_AT_string): Call find_AT_string.
9297         (dwarf2out_set_name): New.
9298         * cp/decl.c (grokdeclarator): Call set_name.
9299         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
9300         * debug.c (do_nothing_debug_hooks):  Likewise.
9301         * dbxout.c (dbx_debug_hooks): Likewise.
9302         * sdbout.c (sdb_debug_hooks): Likewise.
9303
9304 2009-04-15  Michael Eager  <eager@eagercon.com>
9305
9306         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
9307         reg for single-precision FPU.
9308         * config/rs6000/rs6000.md (movsi_internal1): Only for
9309         !TARGET_SINGLE_FPU.
9310         (movsi_internal1_single): New. Add pattern to move SI values to/from
9311         single-precision FP regs.
9312
9313 2009-04-15  Richard Guenther  <rguenther@suse.de>
9314
9315         * omp-low.c (lower_rec_input_clauses): Build correct address
9316         expressions.
9317         (expand_omp_for_generic): Fix multiplication type.
9318         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
9319         (generate_memset_zero): Fix types.
9320         * tree-profile.c (prepare_instrumented_value): Correctly
9321         widen a pointer.
9322
9323 2009-04-15  Ian Lance Taylor  <iant@google.com>
9324
9325         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
9326         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
9327         for -Wall and for -Wc++-compat.
9328         (c_common_post_options): For C++, set warn_enum_compare if not
9329         already set.
9330         * c-tree.h (struct c_expr): Add field original_type.
9331         (build_external_ref): Update declaration.
9332         * c-parser.c (c_parser_braced_init): Set original_type.
9333         (c_parser_initelt): Likewise.
9334         (c_parser_expr_no_commas): Likewise.
9335         (c_parser_conditional_expression): Likewise.
9336         (c_parser_cast_expression): Likewise.
9337         (c_parser_unary_expression): Likewise.  Pull setting of
9338         original_code to top of function.
9339         (c_parser_sizeof_expression): Set original_type.
9340         (c_parser_alignof_expression): Likewise.
9341         (c_parser_postfix_expression): Likewise.  Pull setting of
9342         original_code to top of function.
9343         (c_parser_postfix_expression_after_paren_type): Set original_type.
9344         (c_parser_postfix_expression_after_primary): Likewise.
9345         (c_parser_expression): Likewise.
9346         * c-typeck.c (build_external_ref): Add type parameter.  Change all
9347         callers.
9348         (c_expr_sizeof_expr): Set original_type field.
9349         (parser_build_unary_op): Likewise.
9350         (parser_build_binary_op): Likewise.  Optionally warn about
9351         comparisons of enums of different types.
9352         (digest_init): Set original_type field.
9353         (really_start_incremental_init): Likewise.
9354         (push_init_level, pop_init_level): Likewise.
9355         * doc/invoke.texi (Warning Options): -Wenum-compare now
9356         supported in C.
9357
9358 2009-04-15  Richard Guenther  <rguenther@suse.de>
9359
9360         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
9361         out a necessary conversion.
9362         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
9363         names we didn't value number.
9364         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
9365
9366 2009-04-15  Richard Guenther  <rguenther@suse.de>
9367
9368         PR tree-optimization/39764
9369         * tree-ssa-ccp.c (get_value): Canonicalize value with
9370         canonicalize_float_value.
9371
9372 2009-04-15  Jan Hubicka  <jh@suse.cz>
9373
9374         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
9375         Wrong version of patch.
9376
9377 2009-04-15  Jan Hubicka  <jh@suse.cz>
9378
9379         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
9380
9381 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
9382
9383         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
9384         our distinct integral and vector types.
9385
9386 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
9387
9388         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
9389         * init.c (build_vtbl_address): Remove call to assemble_external.
9390
9391 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
9392
9393         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
9394         output for other floating point modes.
9395
9396 2009-04-14  Diego Novillo  <dnovillo@google.com>
9397
9398         * diagnostic.c (diagnostic_report_diagnostic): Do not
9399         warn about loaded plugins for DK_ERROR and DK_WARNING.
9400         * c-decl.c (declspecs_add_type): Move call to
9401         invoke_plugin_callbacks ...
9402         * c-parser.c (c_parser_declspecs): ... here.
9403         * plugin.c (dump_active_plugins): Tidy output.
9404
9405 2009-04-14  Diego Novillo  <dnovillo@google.com>
9406             Le-Chun Wu  <lcwu@google.com>
9407
9408         * configure.ac: Add --enable-plugin support.
9409         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
9410         * Makefile.in (PLUGIN_H): Define.
9411         Export ENABLE_PLUGIN and GMPINC to site.exp.
9412         Add PLUGINLIBS to link command.
9413         Add/modify dependencies for plugin.o and files including plugin.h.
9414         (plugin.o): New.
9415         * config.in: Regenerate.
9416
9417         * opts.c (common_handle_option): Handle OPT_fplugin_ and
9418         OPT_fplugin_arg_.
9419
9420 2009-04-14  Le-Chun Wu  <lcwu@google.com>
9421
9422         * tree-pass.h (register_one_dump_file): Add a prototype for
9423         register_one_dump_file.
9424         * toplev.c (compile_file): Call initialize_plugins.
9425         (do_compile): Call invoke_plugin_callbacks.
9426         (toplev_main): Call invoke_plugin_callbacks.
9427         * common.opt: Add -fplugin= and -fplugin-arg-.
9428         * gcc-plugin.h: New public header file for plugins to include.
9429         * plugin.c: New source file.
9430         * plugin.h: New internal header file.
9431         * passes.c (register_one_dump_file): Make it external.
9432
9433         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
9434
9435 2009-04-14  Diego Novillo  <dnovillo@google.com>
9436
9437         * doc/plugins.texi: New.
9438         * doc/gccint.texi: Add reference to Plugins chapter.
9439         * doc/invoke.texi: Document -fplugin and -fplugin-arg
9440         * diagnostic.c (diagnostic_report_diagnostic): Warn about
9441         loaded plugins, if any.
9442         * timevar.def (TV_PLUGIN_INIT): Define.
9443         (TV_PLUGIN_RUN): Define.
9444         * plugin.c: Include timevar.h
9445         (plugins_active_p): New.
9446         (dump_active_plugins): New.
9447         (debug_active_plugins): New.
9448
9449 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
9450
9451         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
9452         library paths.
9453         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
9454
9455 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
9456
9457         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
9458         the same as a minus without a shift.
9459
9460 2009-04-14  Nick Clifton  <nickc@redhat.com>
9461
9462         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
9463         comparisons with small integers will always produce a short
9464         branch.
9465
9466 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
9467
9468         Merge:
9469         2008-12-19  Diego Novillo  <dnovillo@google.com>
9470
9471         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
9472
9473 2009-04-14  Richard Guenther  <rguenther@suse.de>
9474
9475         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
9476         verification.
9477         (verify_gimple_assign_binary): Likewise.  Handle shifts and
9478         rotates correctly.
9479         (verify_gimple_phi): Print the mismatched argument position.
9480         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
9481         Fix types.
9482         (vect_update_init_of_dr): Likewise.
9483         * matrix-reorg.c (transform_access_sites): Do what the
9484         comment suggests.
9485         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
9486
9487 2009-04-13  Michael Eager  <eager@eagercon.com>
9488
9489         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
9490         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
9491         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
9492         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9493         remove duplicate config
9494
9495 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9496
9497         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
9498         file_name:line_number type locator of the call site.
9499
9500 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
9501
9502         * genautomata.c: Put blank after comma.
9503         (automaton_decls): New.
9504         (struct unit_usage): Add comments to member next.
9505         (store_alt_unit_usage): Keep the list ordered.
9506         (unit_present_on_list_p, equal_alternatives_p): New.
9507         (check_regexp_units_distribution): Check units distribution
9508         correctness correctly.
9509         (main): Don't write automata if error is found.  Return correct
9510         exit code.
9511
9512         * config/m68k/cf.md (cfv4_ds): Remove.
9513         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
9514         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
9515
9516         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
9517         power4-load-ext, power4-store, power4-store-update,
9518         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
9519         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
9520         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
9521         power4-sqrt, power4-isync): Modify reservation to make correct
9522         unit distribution to automata.
9523
9524         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
9525         power5-store-update, power5-two, power5-three, power5-lmul,
9526         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
9527
9528 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
9529
9530         * except.c (pass_set_nothrow_function_flags): Set name and add
9531         TODO_dump_func.
9532         (set_nothrow_function_flags): Mention in the dump file when
9533         changing a function to nothrow.
9534
9535 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
9536
9537         PR/39066
9538         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
9539         instead of unsigned long.
9540
9541 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9542
9543         * config/arm/arm.c (return_used_this_function): Remove.
9544         (arm_output_function_prologue): Remove use of
9545         return_used_this_function.
9546         (output_return_instruction): Replace use of
9547         return_used_this_function
9548         by cfun->machine->return_used_this_function.
9549         (arm_output_epilogue): Likewise.
9550         (arm_output_function_epilogue): Likewise.
9551         (thumb_unexpanded_epilogue): Likewise.
9552         * config/arm/arm.h (struct machine_function):
9553         New member return_used_this_function.
9554
9555 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
9556
9557         * doc/install.texi: Correct description of default directory for
9558         --with-gxx-include-dir.
9559
9560 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
9561
9562         * fold-const.c (build_range_check): Properly deal with enumeral and
9563         boolean base types.
9564
9565 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
9566
9567         * doc/invoke.texi (max_gcse_passes): Remove documentation.
9568         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
9569         * params.h (MAX_GCSE_PASSES): Remove.
9570         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
9571         in sequence.  Remove ability to run multiple passes.
9572         (bypass_jumps): Report run as third CPROP pass.
9573
9574 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
9575
9576         PR middle-end/39651
9577         * except.c (can_throw_external): Look at each insn in a SEQUENCE
9578         when deciding whether the whole SEQUENCE can throw.
9579
9580 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
9581
9582         PR target/39740
9583         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
9584         offseted label references.
9585
9586 2009-04-11  Jan Hubicka  <jh@suse.cz>
9587
9588         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
9589
9590 2009-04-11  Richard Guenther  <rguenther@suse.de>
9591
9592         PR middle-end/39732
9593         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
9594         return variables as TREE_ADDRESSABLE.
9595
9596 2009-04-11  Richard Guenther  <rguenther@suse.de>
9597
9598         PR tree-optimization/39713
9599         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
9600         reference trees have SSA_NAME operands.
9601
9602 2009-04-11  Richard Guenther  <rguenther@suse.de>
9603
9604         PR c/39712
9605         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
9606         address expressions.
9607
9608 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
9609
9610         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
9611         match changes in Cygwin 1.7
9612         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
9613         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
9614
9615 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
9616
9617         PR tree-optimization/39701
9618         * doc/invoke.texi (Optimization Options): Document change in
9619         meaning and initialization of -fdelete-null-pointer-checks.
9620
9621 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9622
9623         PR middle-end/39701
9624         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
9625
9626         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
9627         here.
9628
9629         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
9630
9631 2009-04-10  Chao-ying Fu  <fu@mips.com>
9632
9633         * doc/tm.texi (Instruction Output): Document
9634         TARGET_ASM_FINAL_POSTSCAN_INSN.
9635         * target.h (final_postscan_insn): New field in asm_out.
9636         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
9637         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
9638         * final.c (final_scan_insn): Call
9639         targetm.asm_out.final_postscan_insn after outputting
9640         an asm macro and a normal instruction.
9641
9642         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
9643         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
9644         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
9645         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
9646         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
9647
9648 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
9649
9650         PR middle-end/39701
9651         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
9652         variables as non-NULL even with -fdelete-null-pointer-checks.
9653
9654 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9655
9656         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
9657
9658 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
9659
9660         PR target/39678
9661         * config/i386/i386.c (classify_argument): Handle SCmode with
9662         (bit_offset % 64) != 0.
9663
9664 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
9665
9666         * doc/invoke.texi (Optimize Options): Add cross-reference to
9667         -Q --help=optimizers examples.
9668
9669 2009-04-10  Ben Elliston  <bje@au.ibm.com>
9670
9671         PR target/36800
9672         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
9673         regalign for the reg == fpr and TDmode case.
9674
9675 2009-04-09  David Ayers  <ayers@fsfe.org>
9676
9677         PR objc/29200
9678         * objc/objc-act.c (warn_with_method): Remove helper function.
9679         (check_duplicates): Call warning and inform directly.
9680         (really_start_method): Likewise.
9681
9682 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
9683
9684         * expmed.c (expand_divmod): Always use a comparison for a division
9685         by a large unsigned integer.
9686
9687         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
9688         for things others than variables or functions as nonzero.
9689
9690 2009-04-09  Nick Clifton  <nickc@redhat.com>
9691
9692         * unwind-compat.c: Change copyright header to refer to version
9693         3 of the GNU General Public License with version 3.1 of the
9694         GCC Runtime Library Exception and to point readers at the
9695         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
9696         * config/alpha/crtfastmath.c: Likewise.
9697         * config/alpha/linux-unwind.h: Likewise.
9698         * config/alpha/qrnnd.asm: Likewise.
9699         * config/alpha/vms-crt0-64.c: Likewise.
9700         * config/alpha/vms-crt0.c: Likewise.
9701         * config/alpha/vms-dwarf2.asm: Likewise.
9702         * config/alpha/vms-dwarf2eh.asm: Likewise.
9703         * config/alpha/vms-psxcrt0-64.c: Likewise.
9704         * config/alpha/vms-psxcrt0.c: Likewise.
9705         * config/alpha/vms_tramp.asm: Likewise.
9706         * config/arc/initfini.c: Likewise.
9707         * config/arc/lib1funcs.asm: Likewise.
9708         * config/arm/bpabi-v6m.S: Likewise.
9709         * config/arm/bpabi.S: Likewise.
9710         * config/arm/bpabi.c: Likewise.
9711         * config/arm/crti.asm: Likewise.
9712         * config/arm/crtn.asm: Likewise.
9713         * config/arm/ieee754-df.S: Likewise.
9714         * config/arm/ieee754-sf.S: Likewise.
9715         * config/arm/lib1funcs.asm: Likewise.
9716         * config/arm/libunwind.S: Likewise.
9717         * config/arm/linux-atomic.c: Likewise.
9718         * config/arm/mmintrin.h: Likewise.
9719         * config/arm/pr-support.c: Likewise.
9720         * config/arm/unaligned-funcs.c: Likewise.
9721         * config/arm/unwind-arm.c: Likewise.
9722         * config/arm/unwind-arm.h: Likewise.
9723         * config/avr/libgcc.S: Likewise.
9724         * config/bfin/crti.s: Likewise.
9725         * config/bfin/crtlibid.s: Likewise.
9726         * config/bfin/crtn.s: Likewise.
9727         * config/bfin/lib1funcs.asm: Likewise.
9728         * config/bfin/linux-unwind.h: Likewise.
9729         * config/cris/arit.c: Likewise.
9730         * config/cris/cris_abi_symbol.c: Likewise.
9731         * config/darwin-64.c: Likewise.
9732         * config/darwin-crt2.c: Likewise.
9733         * config/darwin-crt3.c: Likewise.
9734         * config/darwin.h: Likewise.
9735         * config/dbxelf.h: Likewise.
9736         * config/dfp-bit.c: Likewise.
9737         * config/dfp-bit.h: Likewise.
9738         * config/elfos.h: Likewise.
9739         * config/fixed-bit.c: Likewise.
9740         * config/fixed-bit.h: Likewise.
9741         * config/fp-bit.c: Likewise.
9742         * config/fp-bit.h: Likewise.
9743         * config/fr30/crti.asm: Likewise.
9744         * config/fr30/crtn.asm: Likewise.
9745         * config/fr30/lib1funcs.asm: Likewise.
9746         * config/freebsd-spec.h: Likewise.
9747         * config/frv/cmovd.c: Likewise.
9748         * config/frv/cmovh.c: Likewise.
9749         * config/frv/cmovw.c: Likewise.
9750         * config/frv/frvbegin.c: Likewise.
9751         * config/frv/frvend.c: Likewise.
9752         * config/frv/lib1funcs.asm: Likewise.
9753         * config/glibc-stdint.h: Likewise.
9754         * config/h8300/clzhi2.c: Likewise.
9755         * config/h8300/crti.asm: Likewise.
9756         * config/h8300/crtn.asm: Likewise.
9757         * config/h8300/ctzhi2.c: Likewise.
9758         * config/h8300/fixunssfsi.c: Likewise.
9759         * config/h8300/lib1funcs.asm: Likewise.
9760         * config/h8300/parityhi2.c: Likewise.
9761         * config/h8300/popcounthi2.c: Likewise.
9762         * config/i386/ammintrin.h: Likewise.
9763         * config/i386/att.h: Likewise.
9764         * config/i386/avxintrin.h: Likewise.
9765         * config/i386/biarch64.h: Likewise.
9766         * config/i386/bmmintrin.h: Likewise.
9767         * config/i386/cpuid.h: Likewise.
9768         * config/i386/cross-stdarg.h: Likewise.
9769         * config/i386/crtfastmath.c: Likewise.
9770         * config/i386/crtprec.c: Likewise.
9771         * config/i386/cygming-crtbegin.c: Likewise.
9772         * config/i386/cygming-crtend.c: Likewise.
9773         * config/i386/cygwin.asm: Likewise.
9774         * config/i386/emmintrin.h: Likewise.
9775         * config/i386/gmm_malloc.h: Likewise.
9776         * config/i386/gthr-win32.c: Likewise.
9777         * config/i386/i386.h: Likewise.
9778         * config/i386/immintrin.h: Likewise.
9779         * config/i386/linux-unwind.h: Likewise.
9780         * config/i386/linux64.h: Likewise.
9781         * config/i386/mm3dnow.h: Likewise.
9782         * config/i386/mmintrin-common.h: Likewise.
9783         * config/i386/mmintrin.h: Likewise.
9784         * config/i386/nmmintrin.h: Likewise.
9785         * config/i386/pmm_malloc.h: Likewise.
9786         * config/i386/pmmintrin.h: Likewise.
9787         * config/i386/smmintrin.h: Likewise.
9788         * config/i386/sol2-c1.asm: Likewise.
9789         * config/i386/sol2-ci.asm: Likewise.
9790         * config/i386/sol2-cn.asm: Likewise.
9791         * config/i386/sol2-gc1.asm: Likewise.
9792         * config/i386/tmmintrin.h: Likewise.
9793         * config/i386/unix.h: Likewise.
9794         * config/i386/w32-unwind.h: Likewise.
9795         * config/i386/wmmintrin.h: Likewise.
9796         * config/i386/x86-64.h: Likewise.
9797         * config/i386/x86intrin.h: Likewise.
9798         * config/i386/xmmintrin.h: Likewise.
9799         * config/ia64/crtbegin.asm: Likewise.
9800         * config/ia64/crtend.asm: Likewise.
9801         * config/ia64/crtfastmath.c: Likewise.
9802         * config/ia64/crti.asm: Likewise.
9803         * config/ia64/crtn.asm: Likewise.
9804         * config/ia64/fde-glibc.c: Likewise.
9805         * config/ia64/lib1funcs.asm: Likewise.
9806         * config/ia64/linux-unwind.h: Likewise.
9807         * config/ia64/quadlib.c: Likewise.
9808         * config/ia64/unwind-ia64.c: Likewise.
9809         * config/linux.h: Likewise.
9810         * config/m32c/m32c-lib1.S: Likewise.
9811         * config/m32c/m32c-lib2-trapv.c: Likewise.
9812         * config/m32c/m32c-lib2.c: Likewise.
9813         * config/m32r/initfini.c: Likewise.
9814         * config/m68hc11/larith.asm: Likewise.
9815         * config/m68hc11/m68hc11-crt0.S: Likewise.
9816         * config/m68k/cf.md: Likewise.
9817         * config/m68k/crti.s: Likewise.
9818         * config/m68k/crtn.s: Likewise.
9819         * config/m68k/lb1sf68.asm: Likewise.
9820         * config/m68k/linux-unwind.h: Likewise.
9821         * config/mcore/crti.asm: Likewise.
9822         * config/mcore/crtn.asm: Likewise.
9823         * config/mcore/lib1.asm: Likewise.
9824         * config/mips/linux-unwind.h: Likewise.
9825         * config/mips/loongson.h: Likewise.
9826         * config/mips/mips16.S: Likewise.
9827         * config/mmix/crti.asm: Likewise.
9828         * config/mmix/crtn.asm: Likewise.
9829         * config/pa/fptr.c: Likewise.
9830         * config/pa/hpux-unwind.h: Likewise.
9831         * config/pa/lib2funcs.asm: Likewise.
9832         * config/pa/linux-atomic.c: Likewise.
9833         * config/pa/linux-unwind.h: Likewise.
9834         * config/pa/milli64.S: Likewise.
9835         * config/pa/quadlib.c: Likewise.
9836         * config/pa/stublib.c: Likewise.
9837         * config/picochip/libgccExtras/adddi3.asm: Likewise.
9838         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
9839         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
9840         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
9841         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
9842         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
9843         * config/picochip/libgccExtras/divmod15.asm: Likewise.
9844         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
9845         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
9846         * config/picochip/libgccExtras/longjmp.asm: Likewise.
9847         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
9848         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
9849         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
9850         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
9851         * config/picochip/libgccExtras/setjmp.asm: Likewise.
9852         * config/picochip/libgccExtras/subdi3.asm: Likewise.
9853         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
9854         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
9855         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
9856         * config/rs6000/750cl.h: Likewise.
9857         * config/rs6000/altivec.h: Likewise.
9858         * config/rs6000/biarch64.h: Likewise.
9859         * config/rs6000/crtresfpr.asm: Likewise.
9860         * config/rs6000/crtresgpr.asm: Likewise.
9861         * config/rs6000/crtresxfpr.asm: Likewise.
9862         * config/rs6000/crtresxgpr.asm: Likewise.
9863         * config/rs6000/crtsavfpr.asm: Likewise.
9864         * config/rs6000/crtsavgpr.asm: Likewise.
9865         * config/rs6000/darwin-asm.h: Likewise.
9866         * config/rs6000/darwin-fallback.c: Likewise.
9867         * config/rs6000/darwin-fpsave.asm: Likewise.
9868         * config/rs6000/darwin-ldouble.c: Likewise.
9869         * config/rs6000/darwin-tramp.asm: Likewise.
9870         * config/rs6000/darwin-unwind.h: Likewise.
9871         * config/rs6000/darwin-vecsave.asm: Likewise.
9872         * config/rs6000/darwin-world.asm: Likewise.
9873         * config/rs6000/e500crtres32gpr.asm: Likewise.
9874         * config/rs6000/e500crtres64gpr.asm: Likewise.
9875         * config/rs6000/e500crtres64gprctr.asm: Likewise.
9876         * config/rs6000/e500crtrest32gpr.asm: Likewise.
9877         * config/rs6000/e500crtrest64gpr.asm: Likewise.
9878         * config/rs6000/e500crtresx32gpr.asm: Likewise.
9879         * config/rs6000/e500crtresx64gpr.asm: Likewise.
9880         * config/rs6000/e500crtsav32gpr.asm: Likewise.
9881         * config/rs6000/e500crtsav64gpr.asm: Likewise.
9882         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
9883         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
9884         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
9885         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
9886         * config/rs6000/eabi-ci.asm: Likewise.
9887         * config/rs6000/eabi-cn.asm: Likewise.
9888         * config/rs6000/eabi.asm: Likewise.
9889         * config/rs6000/linux-unwind.h: Likewise.
9890         * config/rs6000/linux64.h: Likewise.
9891         * config/rs6000/paired.h: Likewise.
9892         * config/rs6000/paired.md: Likewise.
9893         * config/rs6000/ppc64-fp.c: Likewise.
9894         * config/rs6000/ppu_intrinsics.h: Likewise.
9895         * config/rs6000/rs6000.h: Likewise.
9896         * config/rs6000/si2vmx.h: Likewise.
9897         * config/rs6000/sol-ci.asm: Likewise.
9898         * config/rs6000/sol-cn.asm: Likewise.
9899         * config/rs6000/spe.h: Likewise.
9900         * config/rs6000/spu2vmx.h: Likewise.
9901         * config/rs6000/sysv4.h: Likewise.
9902         * config/rs6000/tramp.asm: Likewise.
9903         * config/rs6000/vec_types.h: Likewise.
9904         * config/s390/linux-unwind.h: Likewise.
9905         * config/s390/tpf-unwind.h: Likewise.
9906         * config/score/crti.asm: Likewise.
9907         * config/score/crtn.asm: Likewise.
9908         * config/sh/crt1.asm: Likewise.
9909         * config/sh/crti.asm: Likewise.
9910         * config/sh/crtn.asm: Likewise.
9911         * config/sh/divtab-sh4-300.c: Likewise.
9912         * config/sh/divtab-sh4.c: Likewise.
9913         * config/sh/divtab.c: Likewise.
9914         * config/sh/lib1funcs-4-300.asm: Likewise.
9915         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
9916         * config/sh/lib1funcs.asm: Likewise.
9917         * config/sh/lib1funcs.h: Likewise.
9918         * config/sh/linux-atomic.asm: Likewise.
9919         * config/sh/linux-unwind.h: Likewise.
9920         * config/sh/shmedia.h: Likewise.
9921         * config/sh/sshmedia.h: Likewise.
9922         * config/sh/ushmedia.h: Likewise.
9923         * config/sparc/crtfastmath.c: Likewise.
9924         * config/sparc/linux-unwind.h: Likewise.
9925         * config/sparc/sol2-c1.asm: Likewise.
9926         * config/sparc/sol2-ci.asm: Likewise.
9927         * config/sparc/sol2-cn.asm: Likewise.
9928         * config/spu/divmodti4.c: Likewise.
9929         * config/spu/divv2df3.c: Likewise.
9930         * config/spu/float_disf.c: Likewise.
9931         * config/spu/float_unsdidf.c: Likewise.
9932         * config/spu/float_unsdisf.c: Likewise.
9933         * config/spu/float_unssidf.c: Likewise.
9934         * config/spu/mfc_multi_tag_release.c: Likewise.
9935         * config/spu/mfc_multi_tag_reserve.c: Likewise.
9936         * config/spu/mfc_tag_release.c: Likewise.
9937         * config/spu/mfc_tag_reserve.c: Likewise.
9938         * config/spu/mfc_tag_table.c: Likewise.
9939         * config/spu/multi3.c: Likewise.
9940         * config/spu/spu_internals.h: Likewise.
9941         * config/spu/spu_intrinsics.h: Likewise.
9942         * config/spu/spu_mfcio.h: Likewise.
9943         * config/spu/vec_types.h: Likewise.
9944         * config/spu/vmx2spu.h: Likewise.
9945         * config/stormy16/stormy16-lib2.c: Likewise.
9946         * config/svr4.h: Likewise.
9947         * config/sync.c: Likewise.
9948         * config/v850/lib1funcs.asm: Likewise.
9949         * config/vxlib-tls.c: Likewise.
9950         * config/vxlib.c: Likewise.
9951         * config/vxworks-dummy.h: Likewise.
9952         * config/xtensa/crti.asm: Likewise.
9953         * config/xtensa/crtn.asm: Likewise.
9954         * config/xtensa/ieee754-df.S: Likewise.
9955         * config/xtensa/ieee754-sf.S: Likewise.
9956         * config/xtensa/lib1funcs.asm: Likewise.
9957         * config/xtensa/lib2funcs.S: Likewise.
9958         * config/xtensa/linux-unwind.h: Likewise.
9959         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9960         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
9961         * coretypes.h: Likewise.
9962         * crtstuff.c: Likewise.
9963         * defaults.h: Likewise.
9964         * dwarf2.h: Likewise.
9965         * emutls.c: Likewise.
9966         * gbl-ctors.h: Likewise.
9967         * gcov-io.h: Likewise.
9968         * ginclude/float.h: Likewise.
9969         * ginclude/iso646.h: Likewise.
9970         * ginclude/stdarg.h: Likewise.
9971         * ginclude/stdbool.h: Likewise.
9972         * ginclude/stddef.h: Likewise.
9973         * ginclude/stdfix.h: Likewise.
9974         * ginclude/stdint-gcc.h: Likewise.
9975         * ginclude/tgmath.h: Likewise.
9976         * gthr-aix.h: Likewise.
9977         * gthr-dce.h: Likewise.
9978         * gthr-gnat.c: Likewise.
9979         * gthr-gnat.h: Likewise.
9980         * gthr-lynx.h: Likewise.
9981         * gthr-mipssde.h: Likewise.
9982         * gthr-nks.h: Likewise.
9983         * gthr-posix.c: Likewise.
9984         * gthr-posix.h: Likewise.
9985         * gthr-posix95.h: Likewise.
9986         * gthr-rtems.h: Likewise.
9987         * gthr-single.h: Likewise.
9988         * gthr-solaris.h: Likewise.
9989         * gthr-tpf.h: Likewise.
9990         * gthr-vxworks.h: Likewise.
9991         * gthr-win32.h: Likewise.
9992         * gthr.h: Likewise.
9993         * libgcc2.c: Likewise.
9994         * libgcc2.h: Likewise.
9995         * libgcov.c: Likewise.
9996         * tsystem.h: Likewise.
9997         * typeclass.h: Likewise.
9998         * unwind-c.c: Likewise.
9999         * unwind-compat.h: Likewise.
10000         * unwind-dw2-fde-compat.c: Likewise.
10001         * unwind-dw2-fde-darwin.c: Likewise.
10002         * unwind-dw2-fde-glibc.c: Likewise.
10003         * unwind-dw2-fde.c: Likewise.
10004         * unwind-dw2-fde.h: Likewise.
10005         * unwind-dw2.c: Likewise.
10006         * unwind-dw2.h: Likewise.
10007         * unwind-generic.h: Likewise.
10008         * unwind-pe.h: Likewise.
10009         * unwind-sjlj.c: Likewise.
10010         * unwind.inc: Likewise.
10011         * config/arm/neon-gen.ml: Change generated copyright header to
10012         refer to version 3 of the GNU General Public License with
10013         version 3.1 of the GCC Runtime Library Exception and to point
10014         readers at the COPYING3 and COPYING3.RUNTIME files and the
10015         FSF's license web page.
10016         * config/arm/arm_neon.h: Regenerate.
10017
10018 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
10019
10020         * config/cris/cris.md: Change copyright header to refer to version
10021         3 of the GNU General Public License.
10022         * doc/install.texi2html: Change copyright header to refer to version
10023         3 of the GNU General Public License and to point readers at the
10024         COPYING3 file and the FSF's license web page.
10025         * config/vax/linux.h: Likewise.
10026
10027 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
10028
10029         * config/i386/i386.md (cmpcc): New.
10030         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
10031         (sync_compare_and_swap_cc*): Delete.
10032
10033         * config/s390/s390.c (s390_compare_emitted): Remove.
10034         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
10035         s390_compare_emitted used to be handled.  Assert that modes match.
10036         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
10037         refer to sync_compare_and_swap_ccsi.
10038         * config/s390/s390.h (s390_compare_emitted): Remove.
10039         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
10040         instead of s390_compare_emitted.
10041         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
10042         instead of s390_compare_emitted.
10043         * config/s390/s390.md (cmpcc): New.
10044         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
10045         CC_REGNUM, do not pretend it's set.
10046         (sync_compare_and_swap_cc*): Delete.
10047         * config/s390/predicates.md (cc_reg_operand): New.
10048
10049         * expr.c (sync_compare_and_swap_cc): Delete.
10050         * optabs.h (sync_compare_and_swap_cc): Delete.
10051         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
10052         is being used with can_compare_p.
10053         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
10054         (find_cc_set): New.
10055         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
10056         look for a MODE_CC set instead.  Use emit_store_flag.
10057         (expand_compare_and_swap_loop): Likewise, with some additional
10058         complication to avoid a force_reg when useless.  Use
10059         emit_cmp_and_jump_insns.
10060         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
10061         * doc/md.texi (sync_compare_and_swap_cc): Merge with
10062         sync_compare_and_swap documentation.
10063
10064 2009-04-09  Jan Hubicka  <jh@suse.cz>
10065
10066         * except.c (find_prev_try): Break out from ....
10067         (duplicate_eh_regions): ... here; properly update prev_try pointers
10068         when duplication part of tree.
10069         (dump_eh_tree): Improve dumping.
10070         (verify_eh_region): New.
10071         (verify_eh_tree): Use it.
10072
10073 2009-04-06  Richard Guenther  <rguenther@suse.de>
10074
10075         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
10076         &ARRAY addresses by adjusting their types and prepending
10077         a conversion.
10078         * tree-cfg.c (verify_gimple_assign_single): Verify that
10079         addresses are correct.
10080
10081 2009-04-09  Richard Guenther  <rguenther@suse.de>
10082
10083         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
10084         indices into an array reference if possible.
10085         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10086         Fold POINTER_PLUS_EXPR statements with invariant address.
10087
10088 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
10089
10090         PR target/39634
10091         * config.gcc (powerpc64-*-linux*): Always build biarch.
10092
10093 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
10094
10095         PR c/39613
10096         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
10097         it and pedwarn if this results in an INTEGER_CST.
10098
10099 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10100
10101         * doc/install.texi: Update minimum GMP version.  Remove obsolete
10102         text in MPFR section.
10103
10104 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
10105
10106         * dwarf2out.c (class_scope_p): New static inline.
10107         (class_or_namespace_scope_p): Use it.
10108         (gen_variable_die): Use DW_TAG_member tag for static data member
10109         declarations instead of DW_TAG_variable.
10110
10111         PR middle-end/39573
10112         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
10113         variables.
10114
10115 2009-04-08  Richard Guenther  <rguenther@suse.de>
10116
10117         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
10118         valueize random data.
10119
10120 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
10121
10122         * config.gcc (aix tm_file):  Add aix-stdint.h.
10123         (aix tm clause use_gcc_stdint):  Set to wrap.
10124         * config/rs6000/aix-stdint.h:  New file.
10125
10126 2009-04-08  Richard Guenther  <rguenther@suse.de>
10127
10128         PR middle-end/36291
10129         * tree-dfa.c (add_referenced_var): Do not recurse into
10130         global initializers.
10131         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
10132         exposed variables.
10133         (fold_const_aggregate_ref): Likewise.
10134
10135 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
10136
10137         * recog.c (ordered_comparison_operator): New.
10138         * gensupport.c (std_preds): Add it.
10139         * doc/md.texi (Machine-Independent Predicates): Document it.
10140
10141 2009-04-08  Jan Hubicka  <jh@suse.cz>
10142
10143         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
10144         * function.h (rtl_eh): Remove exception_handler_label_map.
10145         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
10146         remove_exception_handler_label, for_each_eh_label_1): Remove.
10147         (rtl_remove_unreachable_regions): Remove.
10148         (convert_from_eh_region_ranges): Do not remove unreachable regions.
10149         (find_exception_handler_labels): Don't build the hashtable.
10150         (maybe_remove_eh_handler): Remove.
10151         (for_each_eh_label): Rewrite to walk the tree.
10152         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
10153         * except.h (maybe_remove_eh_handler): Remove.
10154         * passes.c (init_optimization_passes): Schedule second EH cleanup
10155         before out-of-ssa.
10156         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
10157         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
10158
10159 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
10160
10161         * genoutput.c (validate_optab_operands): New.
10162         (gen_insn, gen_expand): Call it.
10163
10164         * genflags.c (gen_insn): Detect misused iterators.
10165         (main): Pass line_no to gen_insn, exit with status 1 on error.
10166
10167         * genextract.c (line_no): Make global.
10168         (VEC_safe_set_locstr): Change assertion to error message.
10169         (main): Exit with status 1 on error.
10170
10171 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
10172
10173         PR c/39614
10174         PR c/39673
10175         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
10176         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
10177         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
10178         * c-convert.c (convert): Do not call fold on results of conversion
10179         functions when the result is a C_MAYBE_CONST_EXPR.
10180         * c-parser.c (c_parser_postfix_expression): Do not fold condition
10181         of __builtin_choose_expr.
10182         * c-typeck.c (remove_c_maybe_const_expr): New.
10183         (build_unary_op, build_conditional_expr, build_compound_expr,
10184         build_binary_op, c_objc_common_truthvalue_conversion): Call
10185         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
10186         integer operands.
10187
10188 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
10189
10190         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
10191         CODE to produce a new one. Add a prototype to use fold_convert_const
10192
10193 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
10194
10195         PR bootstrap/39660
10196         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
10197         mix declarations and code.
10198
10199 2009-04-08  Ben Elliston  <bje@au.ibm.com>
10200
10201         * gcc.c: Replace `CC' with `GCC' throughout.
10202
10203 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
10204
10205         * doc/invoke.texi: Document Atom support.
10206
10207 2009-04-07  Jason Merrill  <jason@redhat.com>
10208
10209         PR c++/25185
10210         * c-common.h, c-common.c: Add flag_pretty_templates.
10211         * c-opts.c (c_common_handle_option): Set it.
10212         * c.opt: Add -fno-pretty-templates.
10213         * doc/invoke.texi (C++ Dialect Options): Likewise.
10214
10215 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
10216
10217         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
10218         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
10219         (ia64_expand_builtin): Likewise.
10220
10221 2009-04-07  Martin Jambor  <mjambor@suse.cz>
10222
10223         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
10224         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
10225         ADDR_EXPRS are include too.
10226
10227 2009-04-07  Richard Guenther  <rguenther@suse.de>
10228
10229         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
10230         decls are only used if passes as parameters or if they are
10231         local statics and the call is not to a builtin.
10232         (call_may_clobber_ref_p_1): Likewise.
10233
10234 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
10235
10236         * expr.c (do_store_flag): Remove last argument.  Simplify code
10237         to avoid duplication of tests already done by can_compare_p.
10238         (expand_expr_real_1): Adjust caller.
10239
10240 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
10241
10242         * optabs.c (can_compare_p): Test the predicate of a
10243         cbranch and cstore pattern.
10244
10245 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
10246
10247         * expr.c (convert_move): Use emit_store_flag instead of
10248         "emulating" it.
10249
10250 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
10251
10252         * config/i386/i386.c (ix86_compare_emitted): Remove.
10253         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
10254         ix86_compare_op0 like ix86_compare_emitted used to be handled.
10255         * config/i386/i386.h (ix86_compare_emitted): Remove.
10256         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
10257         instead of ix86_compare_emitted.
10258         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
10259
10260 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
10261
10262         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
10263         Add t-sysroot-suffix to tmake_file.
10264         * config/print-sysroot-suffix.sh: New file.
10265         * config/t-sysroot-suffix: New file.
10266
10267 2009-04-07  Ben Elliston  <bje@au.ibm.com>
10268
10269         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
10270         as the latter produces a warning when the target does not support
10271         infinity.
10272
10273 2009-04-07  Ben Elliston  <bje@au.ibm.com>
10274
10275         * dfp.c: Replace type punning assignments with memcpy throughout.
10276         * Makefile.in (dfp.o-warn): Remove.
10277
10278 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
10279
10280         PR target/39634
10281         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
10282         Include soft-fp/t-softfp after rs6000/t-linux64.
10283
10284 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
10285
10286         * stor-layout.c (set_sizetype): Use the full precision of their
10287         machine mode for bitsize types.
10288
10289 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
10290
10291         * config/i386/i386.md: Revert 2 accidental checkins.
10292
10293 2009-04-06  Joey Ye  <joey.ye@intel.com>
10294             Xuepeng Guo  <xuepeng.guo@intel.com>
10295             H.J. Lu  <hongjiu.lu@intel.com>
10296
10297         Atom pipeline model, tuning and insn selection.
10298         * config.gcc (atom): Add atom config options and target.
10299
10300         * config/i386/atom.md: New.
10301
10302         * config/i386/i386.c (atom_cost): New cost.
10303         (m_ATOM): New macro flag.
10304         (initial_ix86_tune_features): Set m_ATOM.
10305         (x86_accumulate_outgoing_args): Likewise.
10306         (x86_arch_always_fancy_math_387): Likewise.
10307         (processor_target): Add Atom cost.
10308         (cpu_names): Add Atom cpu name.
10309         (override_options): Set Atom ISA.
10310         (ix86_issue_rate): New case PROCESSOR_ATOM.
10311         (ix86_adjust_cost): Likewise.
10312
10313         * config/i386/i386.h (TARGET_ATOM): New target macro.
10314         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
10315         (TARGET_OPT_AGU): New target option.
10316         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
10317         (processor_type): Add PROCESSOR_ATOM.
10318
10319         * config/i386/i386.md (cpu): Add new value "atom".
10320         (use_carry, movu): New attr.
10321         (atom.md): Include atom.md.
10322         (adddi3_carry_rex64): Set attr "use_carry".
10323         (addqi3_carry): Likewise.
10324         (addhi3_carry): Likewise.
10325         (addsi3_carry): Likewise.
10326         (*addsi3_carry_zext): Likewise.
10327         (subdi3_carry_rex64): Likewise.
10328         (subqi3_carry): Likewise.
10329         (subhi3_carry): Likewise.
10330         (subsi3_carry): Likewise.
10331         (x86_movdicc_0_m1_rex64): Likewise.
10332         (*x86_movdicc_0_m1_se): Likewise.
10333         (x86_movsicc_0_m1): Likewise.
10334         (*x86_movsicc_0_m1_se): Likewise.
10335         (*adddi_1_rex64): Emit add insn as much as possible.
10336         (*addsi_1): Likewise.
10337         (return_internal): Set atom_unit.
10338         (return_internal_long): Likewise.
10339         (return_pop_internal): Likewise.
10340         (*rcpsf2_sse): Set atom_sse_attr attr.
10341         (*qrt<mode>2_sse): Likewise.
10342         (*prefetch_sse): Likewise.
10343
10344         * config/i386/i386-c.c (ix86_target_macros_internal): New case
10345         PROCESSOR_ATOM.
10346         (ix86_target_macros_internal): Likewise.
10347
10348         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
10349         (*prefetch_sse_rex): Likewise.
10350         (sse_rcpv4sf2): Likewise.
10351         (sse_vmrcpv4sf2): Likewise.
10352         (sse_sqrtv4sf2): Likewise.
10353         (<sse>_vmsqrt<mode>2): Likewise.
10354         (sse_ldmxcsr): Likewise.
10355         (sse_stmxcsr): Likewise.
10356         (*sse_sfence): Likewise.
10357         (sse2_clflush): Likewise.
10358         (*sse2_mfence): Likewise.
10359         (*sse2_lfence): Likewise.
10360         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
10361         (<sse>_movup<ssemodesuffixf2c>): Likewise.
10362         (avx_movdqu<avxmodesuffix>): Likewise.
10363         (avx_lddqu<avxmodesuffix>): Likewise.
10364         (sse2_movntv2di): Change attr "type" to "ssemov".
10365         (sse2_movntsi): Likewise.
10366         (rsqrtv8sf2): Change attr "type" to "sseadd".
10367         (sse3_addsubv2df3): Set attr "atom_unit".
10368         (sse3_h<plusminus_insn>v4sf3): Likewise.
10369         (*sse2_pmaddwd): Likewise.
10370         (*vec_extractv2di_1_rex64): Likewise.
10371         (*vec_extractv2di_1_avx): Likewise.
10372         (sse2_psadbw): Likewise.
10373         (ssse3_phaddwv8hi3): Likewise.
10374         (ssse3_phaddwv4hi3): Likewise.
10375         (ssse3_phadddv4si3): Likewise.
10376         (ssse3_phadddv2si3): Likewise.
10377         (ssse3_phaddswv8hi3): Likewise.
10378         (ssse3_phaddswv4hi3): Likewise.
10379         (ssse3_phsubwv8hi3): Likewise.
10380         (ssse3_phsubwv4hi3): Likewise.
10381         (ssse3_phsubdv4si3): Likewise.
10382         (ssse3_phsubdv2si3): Likewise.
10383         (ssse3_phsubswv8hi3): Likewise.
10384         (ssse3_phsubswv4hi3): Likewise.
10385         (ssse3_pmaddubsw128): Likewise.
10386         (sse3_pmaddubsw: Likewise.
10387         (ssse3_palignrti): Likewise.
10388         (ssse3_palignrdi): Likewise.
10389
10390 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
10391
10392         * doc/install.texi (Specific): Fix two cross-references to MinGW.
10393
10394 2009-04-06  Richard Guenther  <rguenther@suse.de>
10395
10396         PR tree-optimization/28868
10397         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
10398         of which PHI results we inserted.
10399         (insert_into_preds_of_block): Record inserted PHIs.
10400         (eliminate): Eliminate redundant PHI nodes.
10401         (init_pre): Init inserted_phi_names.
10402
10403 2009-04-06  Richard Guenther  <rguenther@suse.de>
10404
10405         PR tree-optimization/39643
10406         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
10407         IMAGPART_EXPRs of complex constants.
10408         (execute_fold_all_builtins): If we folded a call queue
10409         TODO_update_address_taken.
10410
10411 2009-04-06  Jan Hubicka  <jh@suse.cz>
10412
10413         PR middle-end/39659
10414         * except.c (remove_unreachable_regions): Propagate may_contain_throw
10415         flag.
10416
10417 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
10418
10419         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
10420         delay slot.
10421         (ic_invalidate_array): Likewise.
10422
10423 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
10424
10425         * calls.c (emit_library_call_value_1): Fix a problem with parameter
10426         alignment for library calls.
10427
10428 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
10429
10430         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
10431         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
10432         * config/i386/mingw-stdint.h:  New file.
10433
10434 2009-04-05  Richard Guenther  <rguenther@suse.de>
10435
10436         PR tree-optimization/39648
10437         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
10438         our &A vs. &A[0] IL deficiencies.
10439
10440 2009-04-04  Jan Hubicka  <jh@suse.cz>
10441
10442         * except.c (sjlj_find_directly_reachable_regions): Be ready for
10443         removed toplevel regions.
10444         (sjlj_mark_call_sites): Likewise.
10445
10446 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
10447
10448         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
10449         (cygwin tm clause use_gcc_stdint):  Set to wrap.
10450         * config/i386/cygwin-stdint.h:  New file.
10451
10452 2009-04-04  Richard Guenther  <rguenther@suse.de>
10453
10454         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
10455         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
10456         single-argument PHIs if we are in loop-closed SSA form.
10457         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
10458         for the pre-condition.
10459         (slpeel_tree_peel_loop_to_edge): Likewise.
10460         (vect_build_loop_niters): Take an optional sequence to append stmts.
10461         (vect_generate_tmps_on_preheader): Likewise.
10462         (vect_do_peeling_for_loop_bound): Take extra guards for the
10463         pre-condition.
10464         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
10465         the cost model check.
10466         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
10467         guards if we are going to peel.  Do not apply versioning in that case.
10468         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
10469         (vect_do_peeling_for_loop_bound): Likewise.
10470         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
10471         loop bound only record extra pre-conditions, do not apply loop
10472         versioning.
10473
10474 2009-04-04  Richard Guenther  <rguenther@suse.de>
10475
10476         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
10477         renaming code.
10478
10479 2009-04-04  Jan Hubicka  <jh@suse.cz>
10480
10481         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10482         last_basic_block for size of bb->index indexed array.
10483         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
10484         compute_out, link_btr_uses, build_btr_def_use_webs,
10485         build_btr_def_use_webs, migrate_btr_defs): Likewise.
10486
10487 2009-04-04  Jan Hubicka  <jh@suse.cz>
10488
10489         * except.c (remove_eh_handler_and_replace): Break out from ...
10490         (remove_eh_handler): ... here.
10491         (bring_to_root): New function.
10492         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
10493         handled ones, bring others to root of tree.
10494
10495 2009-04-04  Jan Hubicka  <jh@suse.cz>
10496
10497         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
10498         (all_phis_safe_to_merge): New function.
10499         (update_info): New structure.
10500         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
10501         (cleanup_empty_eh): Update SSA if possible.
10502
10503 2009-04-04  Richard Guenther  <rguenther@suse.de>
10504
10505         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
10506         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
10507         (append_vuse): Likewise.
10508
10509 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
10510
10511         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
10512         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
10513         instead of REG_UNSAVED for DW_CFA_undefined.
10514         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
10515         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
10516         outermost frame.
10517
10518 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
10519
10520         PR target/39501
10521         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
10522         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
10523         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
10524
10525 2009-04-04  Richard Guenther  <rguenther@suse.de>
10526
10527         PR tree-optimization/8781
10528         PR tree-optimization/37892
10529         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
10530         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
10531         (valueize_refs): Call it for *& valueizations.
10532         (shared_reference_ops_from_ref): Rename to ...
10533         (valueize_shared_reference_ops_from_ref): ... this and valueize.
10534         (shared_reference_ops_from_call): Rename to ...
10535         (valueize_shared_reference_ops_from_call): ... this and valueize.
10536         (vn_reference_lookup): Update.
10537         (visit_reference_op_call): Likewise.
10538         * tree-ssa-pre.c (phi_translate_1): Fold *&.
10539         (eliminate): Value-replace the call address in call statements.
10540
10541 2009-04-04  Richard Guenther  <rguenther@suse.de>
10542
10543         PR tree-optimization/39636
10544         * tree-ssa-forwprop.c
10545         (forward_propagate_addr_into_variable_array_index): Check for
10546         GIMPLE_ASSIGN before accessing the rhs code.
10547
10548 2009-04-03  Jason Merrill  <jason@redhat.com>
10549
10550         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
10551
10552 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
10553
10554         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
10555         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
10556         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
10557         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
10558         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
10559         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
10560         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
10561         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
10562         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
10563         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
10564         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
10565         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
10566         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
10567         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
10568         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
10569         Use fr_reg_or_fp01_operand instead of fr_register_operand
10570
10571         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
10572         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
10573         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
10574
10575 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
10576
10577         PR rtl-optimization/39607
10578         PR rtl-optimization/39631
10579
10580         Revert:
10581
10582         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
10583         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
10584         instead of DF_LR_OUT.
10585         * ira-lives.c (process_bb_node_lives): Ditto.
10586         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
10587         instead of DF_LR_{OUT,IN}.
10588         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
10589         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
10590
10591 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
10592
10593         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
10594         (execute_lower_omp): Always run but take the short way out if -fopenmp
10595         is not given.
10596         (gate_lower_omp): Remove, forcing the pass manager to always run the
10597         pass and always set PROP_gimple_lomp.
10598         (pass_lower_omp): Remove gate function.
10599         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
10600         PROP_trees.  Instead, require it.
10601         * ipa-cp.c (pass_ipa_cp): Likewise.
10602         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
10603         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
10604         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
10605         and PROP_gimple_leh.
10606
10607 2009-04-03  Richard Guenther  <rguenther@suse.de>
10608
10609         PR middle-end/13146
10610         PR tree-optimization/23940
10611         PR tree-optimization/33237
10612         PR middle-end/33974
10613         PR middle-end/34093
10614         PR tree-optimization/36201
10615         PR tree-optimization/36230
10616         PR tree-optimization/38049
10617         PR tree-optimization/38207
10618         PR tree-optimization/38230
10619         PR tree-optimization/38301
10620         PR tree-optimization/38585
10621         PR middle-end/38895
10622         PR tree-optimization/38985
10623         PR tree-optimization/39299
10624         * tree-ssa-structalias.h: Remove.
10625         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
10626         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
10627         (struct vuse_element_d): Remove.
10628         (struct vuse_vec_d): Likewise.
10629         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
10630         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
10631         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
10632         VUSE_ELEMENT_VAR): Likewise.
10633         (struct voptype_d): Likewise.
10634         (NUM_VOP_FREE_BUCKETS): Likewise.
10635         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
10636         (struct stmt_operands_d): Remove.
10637         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
10638         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
10639         VDEF_NUM, VDEF_VECT): Likewise.
10640         (copy_virtual_operands): Remove.
10641         (operand_build_cmp): Likewise.
10642         (create_ssa_artificial_load_stmt): Likewise.
10643         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
10644         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
10645         vuse_index and mayuse_index members.  Pack and move done and iter_type
10646         members to the front.
10647         (SSA_OP_VMAYUSE): Remove.
10648         (SSA_OP_VIRTUAL_USES): Adjust.
10649         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
10650         (unlink_stmt_vdef): Declare.
10651         (add_to_addressable_set): Remove.
10652         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
10653         (vrp_visit_stmt): Likewise.
10654         * doc/tree-ssa.texi (Alias analysis): Update.
10655         * doc/invoke.texi (max-aliased-vops): Remove docs.
10656         (avg-aliased-vops): Likewise.
10657         * tree-into-ssa.c (syms_to_rename): Remove.
10658         (need_to_update_vops_p): Likewise.
10659         (need_to_initialize_update_ssa_p): Rename to ...
10660         (update_ssa_initialized_fn): ... this.  Track function we are
10661         initialized for.
10662         (symbol_marked_for_renaming): Simplify.
10663         (add_new_name_mapping): Do not set need_to_update_vops_p.
10664         (dump_currdefs): Use SYMS_TO_RENAME.
10665         (rewrite_update_stmt): Always walk all uses/defs.
10666         (dump_update_ssa): Adjust.
10667         (init_update_ssa): Take function argument.  Track what we are
10668         initialized for.
10669         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
10670         (create_new_def_for): Initialize for cfun, assert we are initialized
10671         for cfun.
10672         (mark_sym_for_renaming): Simplify.
10673         (mark_set_for_renaming): Do not initialize update-ssa.
10674         (need_ssa_update_p): Simplify.  Take function argument.
10675         (name_mappings_registered_p): Assert we ask for the correct function.
10676         (name_registered_for_update_p): Likewise.
10677         (ssa_names_to_replace): Likewise.
10678         (release_ssa_name_after_update_ssa): Likewise.
10679         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
10680         (dump_decl_set): Do not print a newline.
10681         (debug_decl_set): Do it here.
10682         (dump_update_ssa): And here.
10683         * tree-ssa-loop-im.c (move_computations): Adjust.
10684         (movement_possibility): Likewise.
10685         (determine_max_movement): Likewise.
10686         (gather_mem_refs_stmt): Likewise.
10687         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
10688         or NAME_MEMORY_TAG.
10689         * tree-complex.c (update_all_vops): Remove.
10690         (expand_complex_move): Adjust.
10691         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
10692         Simplify test for memory referencing statement.  Exclude
10693         non-invariant ADDR_EXPRs.
10694         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
10695         * tree-loop-distribution.c (generate_memset_zero): Adjust.
10696         (rdg_flag_uses): Likewise.
10697         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
10698         related code.
10699         (tree_optimize_tail_calls_1): Also split the
10700         edge from the entry block if we have degenerate PHI nodes in
10701         the first basic block.
10702         * tree.c (init_ttree): Remove memory-tag related code.
10703         (tree_code_size): Likewise.
10704         (tree_node_structure): Likewise.
10705         (build7_stat): Re-write to be build6_stat.
10706         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
10707         (SSA_VAR_P): Adjust.
10708         (struct tree_memory_tag): Remove.
10709         (struct tree_memory_partition_tag): Likewise.
10710         (union tree_node): Adjust.
10711         (build7): Re-write to be build6.
10712         * tree-pass.h (pass_reset_cc_flags): Remove.
10713         (TODO_update_address_taken): New flag.
10714         (pass_simple_dse): Remove.
10715         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
10716         * params.h (MAX_ALIASED_VOPS): Remove.
10717         (AVG_ALIASED_VOPS): Likewise.
10718         * omp-low.c (expand_omp_taskreg): Update SSA form.
10719         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
10720         aliases the lhs in a copy stmt.
10721         * tree-ssa-dse.c (struct address_walk_data): Remove.
10722         (memory_ssa_name_same): Likewise.
10723         (memory_address_same): Likewise.
10724         (get_kill_of_stmt_lhs): Likewise.
10725         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
10726         unused stores.  Look through PHI nodes into post-dominated regions.
10727         (dse_optimize_stmt): Simplify.  Properly remove stores.
10728         (tree_ssa_dse): Compute dominators.
10729         (execute_simple_dse): Remove.
10730         (pass_simple_dse): Likewise.
10731         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
10732         gimple_loaded_syms and gimple_stored_syms computation.
10733         * toplev.c (dump_memory_report): Dump alias and pta stats.
10734         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
10735         (vn_reference_eq): Likewise.
10736         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
10737         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
10738         valueize_vuses): Remove.
10739         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
10740         (get_def_ref_stmt_vuse): ... this.
10741         (vn_reference_lookup_2): New function.
10742         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
10743         walking equivalent vuses.  Simplify.
10744         (vn_reference_lookup): Likewise.
10745         (vn_reference_insert): Likewise.
10746         (vn_reference_insert_pieces): Likewise.
10747         (visit_reference_op_call): Simplify.
10748         (visit_reference_op_load): Likewise.
10749         (visit_reference_op_store): Likewise.
10750         (init_scc_vn): Remove shared_lookup_vuses initialization.
10751         (free_scc_vn): Remove shared_lookup_vuses freeing.
10752         (sort_vuses, sort_vuses_heap): Remove.
10753         (get_ref_from_reference_ops): Export.
10754         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
10755         vector with single vuse pointer.
10756         (vn_reference_lookup_pieces, vn_reference_lookup,
10757         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
10758         (shared_vuses_from_stmt): Remove.
10759         (get_ref_from_reference_ops): Declare.
10760         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
10761         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
10762         memory-tag related code.
10763         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
10764         (likely_value): Add comment, skip static-chain of call statements.
10765         (surely_varying_stmt_p): Adjust.
10766         (gimplify_and_update_call_from_tree): Likewise.
10767         (execute_fold_all_builtins): Do not rebuild alias info.
10768         (gimplify_and_update_call_from_tree): Properly update VOPs.
10769         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
10770         (copy_ref_info): Remove memory-tag related code.
10771         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
10772         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
10773         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
10774         computation.
10775         * tree-ssa-dom.c (gimple_p): Remove typedef.
10776         (eliminate_redundant_computations): Adjust.
10777         (record_equivalences_from_stmt): Likewise.
10778         (avail_expr_hash): Likewise.
10779         (avail_expr_eq): Likewise.
10780         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
10781         (stmt_makes_single_load): Likewise.
10782         (stmt_makes_single_store): Likewise.
10783         * tree-ssa-alias.c: Rewrite completely.
10784         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
10785         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
10786         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
10787         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
10788         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
10789         Remove public functions.
10790         (pass_reset_cc_flags): Remove.
10791         (pass_build_alias): Move ...
10792         * tree-ssa-structalias.c (pass_build_alias): ... here.
10793         * tree-ssa-alias.c (may_be_aliased): Move ...
10794         * tree-flow-inline.h (may_be_aliased): ... here.
10795         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
10796         count_uses_and_derefs): Move ...
10797         * gimple.c: ... here.
10798         * gimple.h (count_uses_and_derefs): Declare.
10799         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
10800         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
10801         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
10802         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
10803         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
10804         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
10805         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
10806         New functions.
10807         * tree-dfa.c (refs_may_alias_p): Move ...
10808         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
10809         * tree-ssa-alias.h: New file.
10810         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
10811         (statement_sink_location): Likewise.
10812         * opts.c (decode_options): Do not adjust max-aliased-vops or
10813         avg-aliased-vops values.
10814         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
10815         (TV_CALL_CLOBBER): Likewise.
10816         (TV_FLOW_SENSITIVE): Likewise.
10817         (TV_FLOW_INSENSITIVE): Likewise.
10818         (TV_MEMORY_PARTITIONING): Likewise.
10819         (TV_ALIAS_STMT_WALK): New timevar.
10820         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
10821         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
10822         (get_address_description): Remove memory-tag related code.
10823         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
10824         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
10825         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
10826         and immediate uses in statements.  Document.
10827         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
10828         (dump_symbols): Remove.
10829         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
10830         * alias.c (get_deref_alias_set): New function split out from ...
10831         (get_alias_set): ... here.
10832         * alias.h (get_deref_alias_set): Declare.
10833         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
10834         type parameter.  Remove restrict pointer handling.  Create a
10835         ref-all pointer in case type-based alias sets do not conflict.
10836         (vect_analyze_data_refs): Remove SMT related code.
10837         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
10838         (vectorizable_load): Likewise.
10839         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
10840         (DR_SYMBOL_TAG, DR_VOPS): Remove.
10841         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
10842         Ignore vops and SMTs.
10843         (dr_analyze_alias): Likewise..
10844         (free_data_ref): Likewise.
10845         (create_data_ref): Likewise.
10846         (analyze_all_data_dependences): Likewise.
10847         (get_references_in_stmt): Adjust.
10848         * tree-flow-inline.h (gimple_aliases_computed_p,
10849         gimple_addressable_vars, gimple_call_clobbered_vars,
10850         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
10851         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
10852         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
10853         gimple_mem_ref_stats): Remove.
10854         (gimple_vop): New function.
10855         (op_iter_next_use): Remove vuses and mayuses cases.
10856         (op_iter_next_def): Remove vdefs case.
10857         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
10858         (clear_and_done_ssa_iter): Do not set removed fields.
10859         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
10860         Assert we are not iterating over vuses or vdefs if not also
10861         iterating over uses or defs.
10862         (op_iter_init_use): Likewise.
10863         (op_iter_init_def): Likewise.
10864         (op_iter_next_vdef): Remove.
10865         (op_iter_next_mustdef): Likewise.
10866         (op_iter_init_vdef): Likewise.
10867         (compare_ssa_operands_equal): Likewise.
10868         (link_use_stmts_after): Handle vuse operand.
10869         (is_call_used): Use is_call_clobbered.
10870         (is_call_clobbered): Global variables are always call clobbered,
10871         query the call-clobbers bitmap.
10872         (mark_call_clobbered): Ignore global variables.
10873         (clear_call_clobbered): Likewise.
10874         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
10875         virtual operands sanity check.
10876         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
10877         Remove.
10878         (TARGET_MEM_REF): Remove TMR_TAG operand.
10879         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
10880         Remove call-clobber related code.
10881         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
10882         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
10883         partitions or escape reason.
10884         (get_single_def_stmt, get_single_def_stmt_from_phi,
10885         get_single_def_stmt_with_phi): Remove.
10886         (dump_referenced_vars): Tidy.
10887         (get_ref_base_and_extent): Allow bare decls.
10888         (collect_dfa_stats): Adjust.
10889         * graphite.c (rename_variables_in_stmt): Adjust.
10890         (graphite_copy_stmts_from_block): Likewise.
10891         (translate_clast): Likewise.
10892         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
10893         (EXPR_DIES): New.
10894         (translate_vuse_through_block): Use the oracle.
10895         (phi_translate_1): Adjust.
10896         (value_dies_in_block_x): Use the oracle.  Cache the outcome
10897         in EXPR_DIES.
10898         (valid_in_sets): Check if the VUSE for
10899         a REFERENCE is available.
10900         (eliminate): Do not remove stmts during elimination,
10901         instead queue and remove them afterwards.
10902         (do_pre): Do not rebuild alias info.
10903         (pass_pre): Run TODO_rebuild_alias before PRE.
10904         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
10905         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
10906         (mark_all_v_defs_stmt): Remove.
10907         (mark_all_v_defs_seq): Adjust.
10908         (sra_replace): Likewise.
10909         (scalarize_use): Likewise.
10910         (scalarize_copy): Likewise.
10911         (scalarize_init): Likewise.
10912         (scalarize_ldst): Likewise.
10913         (todoflags): Remove.
10914         (tree_sra): Do not rebuild alias info.
10915         (tree_sra_early): Adjust.
10916         (pass_sra): Run TODO_update_address_taken before SRA.
10917         * tree-predcom.c (set_alias_info): Remove.
10918         (prepare_initializers_chain): Do not call it.
10919         (mark_virtual_ops_for_renaming): Adjust.
10920         (mark_virtual_ops_for_renaming_list): Remove.
10921         (initialize_root_vars): Adjust.
10922         (initialize_root_vars_lm): Likewise.
10923         (prepare_initializers_chain): Likewise.
10924         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
10925         (may_propagate_copy_into_stmt): Likewise.
10926         (merge_alias_info): Do nothing for now.
10927         (propagate_tree_value_into_stmt): Adjust.
10928         (stmt_may_generate_copy): Likewise.
10929         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
10930         not mark symbols for renaming.
10931         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
10932         with the same statement, make sure to update the new pointed-to one.
10933         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
10934         call statements, do not mark symbols for renaming.
10935         (mark_operand_necessary): Dump something.
10936         (ref_may_be_aliased): New function.
10937         (mark_aliased_reaching_defs_necessary_1): New helper function.
10938         (mark_aliased_reaching_defs_necessary): Likewise.
10939         (mark_all_reaching_defs_necessary_1): Likewise.
10940         (mark_all_reaching_defs_necessary): Likewise.
10941         (propagate_necessity): Do not process virtual PHIs.  For
10942         non-aliased loads mark all reaching definitions as necessary.
10943         For aliased loads and stores mark the immediate dominating
10944         aliased clobbers as necessary.
10945         (visited): New global static.
10946         (perform_tree_ssa_dce): Free visited bitmap after propagating
10947         necessity.
10948         (remove_dead_phis): Perform simple dead virtual PHI removal.
10949         (remove_dead_stmt): Properly unlink virtual operands when
10950         removing stores.
10951         (eliminate_unnecessary_stmts): Schedule PHI removal after
10952         stmt removal.
10953         * tree-ssa-ter.c (is_replaceable_p): Adjust.
10954         (process_replaceable): Likewise.
10955         (find_replaceable_in_bb): Likewise.
10956         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
10957         based on the single gimple vop.
10958         (verify_flow_insensitive_alias_info): Remove.
10959         (verify_flow_sensitive_alias_info): Likewise.
10960         (verify_call_clobbering): Likewise.
10961         (verify_memory_partitions): Likewise.
10962         (verify_alias_info): Likewise.
10963         (verify_ssa): Adjust..
10964         (execute_update_addresses_taken): Export.  Update SSA
10965         manually.  Optimize only when optimizing.  Use a local bitmap.
10966         (pass_update_address_taken): Remove TODO_update_ssa, add
10967         TODO_dump_func.
10968         (pass_update_address_taken): Just use TODO_update_address_taken.
10969         (init_tree_ssa): Do not initialize addressable_vars.
10970         (verify_ssa): Verify new VUSE / VDEF properties.
10971         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
10972         Do not call verify_alias_info.
10973         (delete_tree_ssa): Clear the VUSE, VDEF operands.
10974         Do not free the loaded and stored syms bitmaps.  Reset the escaped
10975         and callused solutions.  Do not free addressable_vars.
10976         Remove memory-tag related code.
10977         (warn_uninitialized_var): Aliases are always available.
10978         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
10979         * lambda-code.c (can_put_in_inner_loop): Adjust.
10980         (can_put_after_inner_loop): Likewise.
10981         (perfect_nestify): Likewise.
10982         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
10983         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
10984         (vectorizable_conversion): Do not mark symbols for renaming.
10985         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
10986         (expand_call_inline): Unlink the calls virtual operands before
10987         replacing it.
10988         (tree_function_versioning): Do not call update_ssa if we are not
10989         updating clones.  Simplify.
10990         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
10991         (propagate_with_phi): Likewise..
10992         * tree-outof-ssa.c (create_temp): Remove memory tag and call
10993         clobber code.  Assert we are not aliased or global.
10994         * tree-flow.h: Include tree-ssa-alias.h
10995         (enum escape_type): Remove.
10996         (struct mem_sym_stats_d): Likewise.
10997         (struct mem_ref_stats_d): Likewise.
10998         (struct gimple_df): Add vop member.  Remove global_var,
10999         call_clobbered_vars, call_used_vars, addressable_vars,
11000         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
11001         escaped and callused members.
11002         (struct ptr_info_def): Remove all members, add points-to solution
11003         member pt.
11004         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
11005         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
11006         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
11007         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
11008         (tree-ssa-alias.o): Likewise.
11009         (toplev.o): Add tree-ssa-alias.h
11010         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
11011         * gimple.c (gimple_set_bb): Fix off-by-one error.
11012         (is_gimple_reg): Do not handle memory tags.
11013         (gimple_copy): Also copy virtual operands.
11014         Delay updating the statement.  Do not reset loaded and stored syms.
11015         (gimple_set_stored_syms): Remove.
11016         (gimple_set_loaded_syms): Likewise.
11017         (gimple_call_copy_skip_args): Copy the virtual operands
11018         and mark the new statement modified.
11019         * tree-ssa-structalias.c (may_alias_p): Remove.
11020         (set_uids_in_ptset): Take the alias set to prune with as
11021         parameter.  Fold in the alias test of may_alias_p.
11022         (compute_points_to_sets): Compute whether a ptr is dereferenced
11023         in a local sbitmap.
11024         (process_constraint): Deal with &ANYTHING on the lhs, reject all
11025         other ADDRESSOF constraints on the lhs.
11026         (get_constraint_for_component_ref): Assert that we don't get
11027         ADDRESSOF constraints from the base of the reference.
11028         Properly generate UNKNOWN_OFFSET for DEREF if needed.
11029         (struct variable_info): Remove collapsed_to member.
11030         (get_varinfo_fc): Remove.
11031         (new_var_info): Do not set collapsed_to.
11032         (dump_constraint): Do not follow cycles.
11033         (dump_constraint_graph): Likewise.
11034         (build_pred_graph): Likewise.
11035         (build_succ_graph): Likewise.
11036         (rewrite_constraints): Likewise.
11037         (do_simple_structure_copy): Remove.
11038         (do_rhs_deref_structure_copy): Remove.
11039         (do_lhs_deref_structure_copy): Remove.
11040         (collapse_rest_of_var): Remove.
11041         (do_structure_copy): Re-implement.
11042         (pta_stats): New global variable.
11043         (dump_pta_stats): New function.
11044         (struct constraint_expr): Make offset signed.
11045         (UNKNOWN_OFFSET): Define special value.
11046         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
11047         (solution_set_expand): New helper function split out from ...
11048         (do_sd_constraint): ... here.
11049         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
11050         (do_ds_constraint): Likewise.
11051         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
11052         and CALLUSED = *CALLUSED.
11053         (set_union_with_increment): Make inc argument signed.
11054         (type_safe): Remove.
11055         (get_constraint_for_ptr_offset): Handle unknown and negative
11056         constant offsets.
11057         (first_vi_for_offset): Handle offsets before start.  Bail
11058         out early for offsets beyond the variable extent.
11059         (first_or_preceding_vi_for_offset): New function.
11060         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
11061         Together with ESCAPED = *ESCAPED this properly computes reachability.
11062         (find_what_var_points_to): New function.
11063         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
11064         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
11065         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
11066         pt_solutions_intersect): New functions.
11067         (compute_call_used_vars): Remove.
11068         (compute_may_aliases): New main entry into PTA computation.
11069         * gimple.h (gimple_p): New typedef.
11070         (struct gimple_statement_base): Remove references_memory_p.
11071         (struct gimple_statement_with_memory_ops_base): Remove
11072         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
11073         members.
11074         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
11075         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
11076         gimple_set_references_memory): Remove.
11077         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
11078         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
11079         New functions.
11080         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
11081         (verify_expr): Allow RESULT_DECL.
11082         (gimple_duplicate_bb): Do not copy virtual operands.
11083         (gimple_duplicate_sese_region): Adjust.
11084         (gimple_duplicate_sese_tail): Likewise.
11085         (mark_virtual_ops_in_region): Remove.
11086         (move_sese_region_to_fn): Do not call it.
11087         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
11088         and pass_simple_dse.
11089         (execute_function_todo): Handle TODO_update_address_taken,
11090         call execute_update_addresses_taken for TODO_rebuild_alias.
11091         (execute_todo): Adjust.
11092         (execute_one_pass): Init dump files early.
11093         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
11094         call-clobbered.
11095         (create_general_new_stmt): Clear vops.
11096         * tree-ssa-reassoc.c (get_rank): Adjust.
11097         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
11098         symbols for renaming.
11099         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
11100         (PARAM_AVG_ALIASED_VOPS): Likewise.
11101         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
11102         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
11103         * tree-ssa-operands.c: Simplify for new virtual operand representation.
11104         (operand_build_cmp, copy_virtual_operands,
11105         create_ssa_artificial_load_stmt, add_to_addressable_set,
11106         gimple_add_to_addresses_taken): Remove public functions.
11107         (unlink_stmt_vdef): New function.
11108
11109 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
11110
11111         * config.gcc (powerpc-*-linux*): Merge variants.
11112
11113 2009-04-02  Chao-ying Fu  <fu@mips.com>
11114             James Grosbach  <james.grosbach@microchip.com>
11115
11116         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
11117         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
11118         cop0_sp_offset.
11119         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
11120         keep_interrupts_masked_p, use_debug_exception_return_p.
11121         (mips_attribute_table): Add interrupt, use_shadow_register_set,
11122         keep_interrupts_masked, use_debug_exception_return.
11123         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
11124         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
11125         New functions.
11126         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
11127         (mips_print_operand): Process COP0 registers to print $0 .. $31
11128         correctly for GAS to process.
11129         (mips_interrupt_extra_call_saved_reg_p): New function.
11130         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
11131         extra registers.
11132         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
11133         (mips_compute_frame_info): Add supports for interrupt context that
11134         includes doubleword accumulators and COP0 registers.
11135         (mips_for_each_saved_acc): New function.
11136         (mips_for_each_saved_gpr_and_fpr): Change the function name from
11137         mips_for_each_saved_reg.
11138         (mips_save_reg): Save accumulators.
11139         (mips_kernel_reg_p): A new for_each_rtx callback.
11140         (mips_expand_prologue): Support interrupt handlers.
11141         (mips_restore_reg): Restore accumulators.
11142         (mips_expand_epilogue): Support interrupt handlers.
11143         (mips_can_use_return_insn): Return false for interrupt handlers.
11144         (mips_epilogue_uses): New function.
11145         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
11146         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
11147         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
11148         cop0_move): New instructions.
11149         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
11150         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
11151         defines.
11152         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
11153         New defines.
11154         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
11155         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
11156         interrupt handlers, we use K0 as the temporary register.
11157         (EPILOGUE_USES): Change to a function call.
11158         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
11159         handlers, we use K0 as the temporary register.
11160
11161         * doc/extend.texi (Function Attributes): Document interrupt,
11162         use_shadow_register_set, keep_interrupts_masked,
11163         use_debug_exception_return for MIPS attributes.
11164
11165 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
11166
11167         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
11168         Remove a number of t-files from tmake_file.
11169         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
11170         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
11171         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11172         target_prototype, not TARGET_PROTOTYPE.
11173         (LINK_OS_GNU_SPEC): Define.
11174         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
11175         and darwin-ldoubdle.c.
11176
11177 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11178
11179         PR driver/39293
11180         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
11181         (cpp_options): Ditto.
11182         (default_compilers): Ditto.
11183         (display_help): Ditto.
11184         (process_command): Ditto.
11185         (do_spec_1): Ditto.
11186         (set_input): Use lbasename instead of duplicate code.
11187         (save_temps_prefix): New static for -save-temps=obj.
11188         (save_temps_length): Ditto.
11189
11190         * doc/invoke.texi (-save-temps=obj): Document new variant to
11191         -save-temps switch.
11192
11193 2009-04-02  Jeff Law  <law@redhat.com>
11194
11195         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
11196         variable.
11197
11198 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11199
11200         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
11201         * configure: Regenerated.
11202
11203 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
11204
11205         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
11206         share the argument list.
11207
11208 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
11209
11210         Merge
11211
11212         2009-02-12  Diego Novillo  <dnovillo@google.com>
11213
11214         * varpool.c (debug_varpool): New.
11215         * cgraph.h (debug_varpool): Declare.
11216
11217 2009-04-02  Jan Hubicka  <jh@suse.cz>
11218
11219         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
11220         pass.
11221
11222 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11223
11224         * config/i386/i386.c (ix86_abi): Move initialization to ...
11225         (override_options): Here.
11226
11227 2009-04-02  Christian Bruel  <christian.bruel@st.com>
11228
11229         * config/sh/sh.c (sh_dwarf_register_span): New function.
11230         (TARGET_DWARF_REGISTER_SPAN): Define.
11231         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
11232
11233 2009-04-02  Ira Rosen  <irar@il.ibm.com>
11234
11235         PR tree-optimization/39595
11236         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
11237         interleaved loads group is not  greater than the SLP group size.
11238
11239 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
11240
11241         * builtins.c (is_builtin_name): New.
11242         (called_as_built_in): Use is_builtin_name.
11243         * tree.h (is_builtin_name): New.
11244         * varasm.c (incorporeal_function_p): Use is_builtin_name
11245
11246 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
11247
11248         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
11249
11250 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
11251
11252         PR c++/26693
11253         * c-decl.c (clone_underlying_type): Move this ...
11254         * c-common.c (set_underlying_type): ... here.
11255         Also, make sure the function properly sets TYPE_STUB_DECL() on
11256         the newly created typedef variant type.
11257         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
11258         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
11259         points.
11260
11261 2009-04-02  Richard Guenther  <rguenther@suse.de>
11262
11263         PR tree-optimization/37221
11264         * tree-flow.h (degenerate_phi_result): Declare.
11265         * tree-ssa-dom.c (degenerate_phi_result): Export.
11266         * tree-scalar-evolution.c (analyze_initial_condition): If
11267         the initial condition is defined by a degenerate PHI node
11268         use the degenerate value.
11269
11270 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
11271
11272         PR rtl-optimization/39588
11273         * combine.c (merge_outer_ops): Do not set the constant when this
11274         is not necessary.
11275         (simplify_shift_const_1): Do not modify it either in this case.
11276
11277 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
11278
11279         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
11280         tuning is deprecated if -mtune value is set to an Itanium1 variant.
11281
11282 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
11283
11284         PR c/29027
11285         * c-lex.c (interpret_float): Default (no suffix) is double.
11286
11287 2009-04-1  Xinliang David Li  <davidxl@google.com>
11288
11289         * config/i386/i386.c (legitimate_constant_p): Recognize
11290         all one vector constant.
11291
11292 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11293
11294         * config/vax/vax.c: Add #includes to silence warnings.
11295         Change #include order to silence two warnings.
11296
11297 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11298
11299         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
11300         (ASM_SPEC): Pass -k to the assembler for PIC code.
11301
11302 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11303
11304         * config.gcc: Add vax-*-linux* to the switch.
11305         * config/vax/linux.h: New file. (TARGET_VERSION,
11306         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
11307
11308 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11309
11310         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
11311         Use predicate macros instead of GET_CODE() == foo.
11312         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
11313         ashlsi3, rotrsi3, <unnamed>): Likewise.
11314
11315 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11316
11317         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
11318         jbbccihi, jbbccisi): Remova trailing whitespace.
11319         * config/vax/constraints.md: Likewise.
11320         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11321         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
11322         * config/vax/predicates.md: Likewise.
11323         * config/vax/vax.c (print_operand_address, vax_output_int_move,
11324         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
11325         * config/vax/vax.h: Likewise.
11326         * config/vax/vax.md (nonlocal_goto): Likewise.
11327
11328 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11329
11330         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
11331         (indirectable_address_p, adjacent_operands_p): Add spaces around
11332         braces.
11333         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
11334
11335 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11336
11337         * config/vax/vax.c (legitimate_constant_address_p,
11338         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
11339         index_term_p, reg_plus_index_p, legitimate_address_p,
11340         vax_mode_dependent_address_p): Update comments to match functions
11341         modified by the recent int->bool conversion.
11342
11343 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11344
11345         * config/vax/builtins.md: Update copyright message.
11346         * config/vax/constraints.md: Likewise.
11347         * config/vax/netbsd-elf.h: Likewise.
11348         * config/vax/predicates.md: Likewise.
11349         * config/vax/vax-protos.h: Likewise.
11350         * config/vax/vax.c: Likewise.
11351         * config/vax/vax.h: Likewise.
11352         * config/vax/vax.md: Likewise.
11353         * config/vax/vax.opt: Likewise.
11354
11355 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
11356
11357         * config/vax/builtins.md (ffssi2, ffssi2_internal,
11358         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
11359         * config/vax/constraints.md (B, R): Likewise.
11360         * config/vax/predicates.md (external_memory_operand,
11361         nonimmediate_addsub_di_operand): Likewise.
11362         * config/vax/vax.c (vax_output_int_add): Likewise.
11363         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
11364         untyped_call): Likewise.
11365
11366 2009-04-01  Matt Thomas  <matt@3am-software.com>
11367
11368         * config/vax/predicates.md: New file.
11369         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
11370         external_const_operand, nonsymbolic_operand, external_memory_operand,
11371         indirect_memory_operand, indexed_memory_operand,
11372         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
11373         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
11374         predicate.
11375         * config/vax/constraints.md: New file.
11376         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
11377         New constraint.
11378         * config/vax/builtins.md: New file.
11379         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
11380         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
11381         jbbccisi): Define.
11382         * config/vax/vax.opt (mqmath): Add option.
11383         * config/vax/vax.md (isfx): Extend with DI.
11384         (VAXintQH, VAXintQHSD): Define.
11385         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
11386         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
11387         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
11388         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
11389         (movdi): Update constraints and use vax_output_int_move().
11390         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
11391         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
11392         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
11393         nonlocal_goto): New.
11394         (mov<mode>): Extend accepted operand types.
11395         (subdi3_old): Rename from subdi3, change update constraints and use
11396         a new implementation.
11397         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
11398         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
11399         MOVE_RATIO, CLEAR_RATIO): Define.
11400         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
11401         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
11402         (PRINT_OPERAND): Redefine using a function instead of inlined code.
11403         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
11404         (split_quadword_operands): Make static and really allow variable
11405         splitting.
11406         (print_operand_address): Update for PIC generation.
11407         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
11408         indexable_address_p, fixup_mathdi_operand,
11409         vax_expand_addsub_di_operands, adjacent_operands_p): New.
11410         (vax_float_literal, legitimate_constant_p,
11411         indirectable_constant_address_p, index_term_p,
11412         reg_plus_index_p): Return bool instead of int.
11413         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
11414         where needed.
11415         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
11416         generation.
11417         (vax_output_conditional_branch): Indent.
11418         (legitimate_constant_address_p, indirectable_constant_address_p,
11419         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
11420         vax_mode_dependent_address_p): Return bool instead of int, update for
11421         PIC generation.
11422         * config/vax/vax-protos.h (legitimate_constant_address_p,
11423         legitimate_constant_p, legitimate_address_p,
11424         vax_mode_dependent_address_p): Change declaration to bool.
11425         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
11426         vax_expand_addsub_di_operands, vax_output_int_subtract,
11427         vax_output_movmemsi): Declare.
11428         (split_quadword_operands, vax_float_literal): Delete declaration.
11429         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
11430         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
11431         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
11432         ASM_OUTPUT_DWARF_PCREL): Define.
11433         (ASM_SPEC): Change definition to allow PIC generation.
11434
11435 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
11436
11437         * doc/sourcebuild.texi: Update front-end requirements.
11438
11439 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
11440
11441         PR target/39226
11442         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
11443         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
11444         (booldi3_internal3): Use boolean_or_operator instead of
11445         boolean_operator.
11446
11447 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
11448
11449         PR c/39605
11450         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
11451         declarator whose size is not an integer constant expression but
11452         folds to an integer constant, then treat it as a constant
11453         subsequently.
11454
11455 2009-04-01  Richard Guenther  <rguenther@suse.de>
11456
11457         * fold-const.c (fold_plusminus_mult_expr): Do not fold
11458         i * 4 + 2 to (i * 2 + 1) * 2.
11459
11460 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
11461
11462         PR c/37772
11463         * c-parser.c (c_parser_asm_statement): Skip until close paren and
11464         return if c_parser_asm_string_literal returned NULL.
11465
11466 2009-04-01  Nick Clifton  <nickc@redhat.com>
11467
11468         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
11469         already defined.
11470         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
11471         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
11472         other typedefs to avoid conflicts with libgcc2.c.  Define labels
11473         to gain 16-bit bit-manipulation functions from libgcc2.c and then
11474         include it.
11475         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
11476         to gain 16-bit trapping arithmetic functions from libgcc2.c and
11477         then include it.
11478
11479 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
11480
11481         * varasm.c (default_function_rodata_section): Declare DOT as
11482         const char*.
11483
11484 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
11485             Andrey Galkin  <agalkin@hypercom.com>
11486
11487         PR/39492
11488         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11489         Make object_name unique for each process.
11490
11491 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
11492
11493         PR other/39591
11494         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
11495         addressable variables in the parallel that could go out of scope while
11496         running queued tasks.
11497
11498 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
11499
11500         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
11501         (CASE_VALUES_THRESHOLD): Redefine.
11502         * config/avr/avr.c (avr_override_options): Remove initialization of
11503         avr_case_values_threshold variable.
11504         (avr_case_values_threshold): Remove variable. Add new function.
11505         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
11506         * config/avr/avr.opt (mno-tablejump): Remove option.
11507         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
11508
11509 2009-04-01  DJ Delorie  <dj@redhat.com>
11510
11511         * varasm.c (default_function_rodata_section): Don't assume
11512         anything about where the first '.' in the section name is.
11513
11514 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
11515
11516         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
11517         rs6000_emit_stack_tie.
11518
11519 2009-03-31  Ian Lance Taylor  <iant@google.com>
11520
11521         * tree-eh.c (tree_remove_unreachable_handlers): Compare
11522         gimple_code with GIMPLE_RESX, not RESX.
11523
11524 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11525
11526         * c-common.c (c_get_ident): New.
11527         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
11528
11529 2009-04-01  Ben Elliston  <bje@au.ibm.com>
11530
11531         * config/rs6000/sysv4.opt (msdata): Improve option description.
11532
11533 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
11534
11535         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
11536         (divdf3_internal_lat): Remove.
11537         (divxf3_internal_lat): Remove.
11538         (divxf3_internal_thr): Remove.
11539         (divxf): Use divxf3_internal.
11540         * config/ia64/div.md (divsf3_internal_lat): New.
11541         (divdf3_internal_lat): New.
11542         (divxf3_internal): New.
11543
11544 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11545
11546         PR c/448
11547         * Makefile.in (USE_GCC_STDINT): Define.
11548         (stmp-int-hdrs): Install stdint.h if applicable.
11549         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
11550         if known.
11551         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
11552         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
11553         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
11554         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11555         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11556         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11557         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11558         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11559         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11560         (c_common_nodes_and_builtins): Initialize
11561         underlying_wchar_type_node.  Do not initialize
11562         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
11563         nodes for new types.
11564         (c_stddef_cpp_builtins): Define macros for new types.
11565         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
11566         Remove.
11567         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
11568         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
11569         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
11570         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
11571         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
11572         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
11573         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
11574         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
11575         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
11576         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
11577         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
11578         int16_type_node, int32_type_node, int64_type_node,
11579         uint8_type_node, uint16_type_node, c_uint32_type_node,
11580         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
11581         int_least32_type_node, int_least64_type_node,
11582         uint_least8_type_node, uint_least16_type_node,
11583         uint_least32_type_node, uint_least64_type_node,
11584         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
11585         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
11586         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
11587         uintptr_type_node): Define.
11588         * c-cppbuiltin.c (builtin_define_constants,
11589         builtin_define_type_minmax): New.
11590         (builtin_define_stdint_macros): Define more macros.
11591         (c_cpp_builtins): Define more limit macros.
11592         (type_suffix): New.
11593         (builtin_define_type_max): Define in terms of
11594         builtin_define_type_minmax.  Remove is_long parameter.  All
11595         callers changed.
11596         * config.gcc (use_gcc_stdint): Define.
11597         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
11598         Add newlib-stdint.h for generic targets.
11599         * config/glibc-stdint.h, config/newlib-stdint.h,
11600         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
11601         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
11602         * config/score/score.h (UINTPTR_TYPE): Define.
11603         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
11604         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
11605         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11606         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11607         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11608         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11609         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11610         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11611         * config/spu/spu.h (STDINT_LONG32): Define.
11612         * configure.ac (use_gcc_stdint): Substitute.
11613         * configure: Regenerate.
11614         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
11615         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
11616         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
11617         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
11618         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
11619         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
11620         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
11621         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
11622         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
11623         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
11624         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
11625         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
11626         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
11627         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
11628         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
11629         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
11630         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
11631         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
11632         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
11633         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
11634         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
11635         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
11636         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
11637         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11638         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11639         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11640         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11641         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11642         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
11643
11644 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
11645
11646         * loop-iv.c (suitable_set_for_replacement): Renamed from
11647         simplify_using_assignment; changed to return bool and to accept new
11648         args DEST and SRC.  Return true iff we find a source/destination pair
11649         that can be used to make a replacement, and fill SRC and DEST if so.
11650         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
11651         changed.
11652         (simplify_using_initial_values): Deal with altered regs here and track
11653         more precisely the effect they have on the validity of our expression.
11654
11655         * loop-iv.c (simplify_using_condition): A condition of the form
11656         (EQ REG CONST) can be used to simply make a substitution.
11657         (simplify_using_initial_values): Keep track of conditions we have seen
11658         and keep using them to simplify new expressions, while applying the
11659         same substitutions to them as to the expression.
11660
11661         * simplify-rtx.c (simplify_relational_operation_1): Simplify
11662         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
11663         GEU/LTU reversed.
11664
11665         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
11666         changed.  Use this when trying to improve the upper bound.
11667         Generate the comparison by using simplify_gen_relational.
11668
11669         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
11670
11671         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
11672         functions.
11673         (simplify_using_assignment, simplify_using_initial_values): Call
11674         replace_in_expr to make replacements.  Call replace_single_def_regs
11675         once on the initial version of the expression.
11676
11677 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11678
11679         PR target/27237
11680         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
11681
11682 2009-03-31  Richard Guenther  <rguenther@suse.de>
11683
11684         PR middle-end/31029
11685         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
11686         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
11687
11688 2009-03-31  Richard Guenther  <rguenther@suse.de>
11689
11690         * tree.h (div_if_zero_remainder): Declare.
11691         * fold-const.c (div_if_zero_remainder): Export.
11692         * tree-ssa-forwprop.c
11693         (forward_propagate_addr_into_variable_array_index): Handle
11694         constant array index addition outside of the variable index.
11695
11696 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11697
11698         PR target/39592
11699         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
11700         define_splits, floatunssi<mode>2): Require x87 conversions from
11701         DImode to be permitted.
11702
11703 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
11704
11705         PR preprocessor/15638
11706         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
11707
11708 2009-03-31  Richard Guenther  <rguenther@suse.de>
11709
11710         PR middle-end/23401
11711         PR middle-end/27810
11712         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
11713         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
11714         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
11715         a separate statement.
11716         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
11717         (lookup_tmp_var): Likewise.
11718         (is_gimple_formal_tmp_or_call_rhs): Remove.
11719         (is_gimple_reg_or_call_rhs): Rename to ...
11720         (is_gimple_reg_rhs_or_call): ... this.
11721         (is_gimple_mem_or_call_rhs): Rename to ...
11722         (is_gimple_mem_rhs_or_call): ... this.
11723         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
11724         DECL_GIMPLE_REG_P only if is_formal is true.
11725         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
11726         for non-proper post-modify expression gimplification.
11727         (gimplify_self_mod_expr): For post-modify expressions gimplify
11728         the lvalue to a minimal lvalue.
11729         (rhs_predicate_for): Remove formal temp case.
11730         (gimplify_modify_expr_rhs): Likewise.
11731         (gimplify_addr_expr): Use is_gimple_reg.
11732         (gimplify_expr): Remove formal temp cases.
11733         (gimple_regimplify_operands): Likewise.
11734         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
11735         and FILTER_EXPR like constants.
11736         * gimple.c (walk_gimple_op): Fix val_only initialization, use
11737         is_gimple_reg.
11738         (is_gimple_formal_tmp_rhs): Remove.
11739         (is_gimple_reg_rhs): Remove special casing.
11740         (is_gimple_mem_rhs): Fix.
11741         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
11742         (is_gimple_formal_tmp_var): Remove.
11743         (is_gimple_formal_tmp_reg): Likewise.
11744         (is_gimple_min_lval): Allow invariant component ref parts.
11745         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
11746         is_gimple_formal_tmp_reg): Remove declarations.
11747         * tree-cfg.c (verify_expr): Verify that variables with address
11748         taken do not have DECL_GIMPLE_REG_P set.
11749         * tree-mudflap.c (mf_build_check_statement_for): Use
11750         force_gimple_operand instead of gimplify_expr.
11751
11752 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
11753
11754         * modulo-sched.c (sms_schedule_by_order): Pass the actual
11755         schedulable rows to compute_split_row.
11756
11757 2009-03-31  Ben Elliston  <bje@au.ibm.com>
11758
11759         PR target/31635
11760         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
11761         OPT_mvrsave.
11762
11763 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
11764
11765         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
11766         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
11767         * configure: Regenerate.
11768         * config.in: Regenerate.
11769         * config/rs6000/rs6000.opt (mtls-markers): Add.
11770         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
11771         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
11772         (tls_ld_aix, tls_ld_sysv): Likewise.
11773         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
11774         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
11775
11776 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
11777
11778         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
11779
11780 2009-03-30  Jan Hubicka  <jh@suse.cz>
11781
11782         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
11783         out of RESX.
11784         (tree_remove_unreachable_handlers): Cleanup EH predecestor
11785         detection and label handling.
11786
11787 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11788
11789         * ira-int.h (ira_allocno): Rename left_conflicts_num to
11790         left_conflicts_size.
11791         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
11792         ALLOCNO_LEFT_CONFLICTS_SIZE.
11793
11794         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
11795         remove_allocno_from_bucket_and_push,
11796         allocno_spill_priority_compare, push_allocnos_to_stack,
11797         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
11798         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
11799         (setup_allocno_left_conflicts_num): Ditto.  Rename to
11800         setup_allocno_left_conflicts_size.
11801         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
11802         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
11803         setup_allocno_left_conflicts_size instead of
11804         setup_allocno_left_conflicts_num.
11805
11806         * ira-build.c (ira_create_allocno): Use
11807         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
11808         ALLOCNO_LEFT_CONFLICTS_NUM.
11809
11810 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
11811
11812         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
11813         instead of DF_LR_OUT.
11814
11815         * ira-lives.c (process_bb_node_lives): Ditto.
11816
11817         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
11818         instead of DF_LR_{OUT,IN}.
11819
11820         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
11821
11822         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
11823
11824 2009-03-30  Jan Hubicka  <jh@suse.cz>
11825
11826         * except.c (label_to_region_map): Fix thinko.
11827
11828 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
11829
11830         PR middle-end/38237
11831         * tree.h (tree_find_value): New declaration.
11832         * tree.c (tree_find_value): New function.
11833         * varasm.c (assemble_external): Avoid duplicate entries on lists.
11834
11835 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
11836
11837         PR debug/39563
11838         * c-decl.c (struct c_binding): Add locus field.
11839         (bind): Add locus argument, set locus field from it.
11840         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
11841         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
11842         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
11843         implicitly_declare, undeclared_variable, lookup_label,
11844         declare_label, c_make_fname_decl, c_builtin_function,
11845         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
11846         bind callers.
11847
11848 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11849
11850         PR target/38781
11851         * config/i386/i386.c (classify_argument): Check total size of
11852         structure.
11853
11854 2009-03-30  Martin Jambor  <mjambor@suse.cz>
11855
11856         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
11857         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
11858         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
11859         respectively.
11860
11861         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
11862         seen_variable_array_ref while also traversing a union.
11863
11864         * tree-inline.c (optimize_inline_calls): Do not call
11865         cgraph_node_remove_callees.
11866         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
11867         (pass_remove_cgraph_callee_edges): New variable.
11868         * passes.c (init_optimization_passes): Add
11869         pass_remove_cgraph_callee_edges after early inlining and before all
11870         late intraprocedural passes.
11871
11872         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
11873
11874 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11875
11876         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
11877         Fix typos in names.
11878
11879 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11880
11881         * combine.c (simplify_comparison): Use have_insn_for.
11882         * dojump.c (do_jump): Likewise.
11883
11884 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11885
11886         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
11887         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
11888         sparc_compare_op0 like sparc_compare_emitted used to be handled.
11889         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
11890         instead of sparc_compare_emitted.
11891         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
11892         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
11893         instead of sparc_compare_emitted.
11894
11895 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11896
11897         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
11898         enter/exit cfglayout mode.
11899         (pass_partition_block): Require it.
11900         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
11901         (combine_instructions): Track basic blocks instead of labels.
11902         (update_cfg_for_uncondjump): New.
11903         (try_combine): Use it.  Update jumps after rescanning.
11904         (pass_combine): Require PROP_cfglayout.
11905         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
11906
11907 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11908
11909         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
11910         Provide/destroy PROP_cfglayout respectively.
11911         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
11912         * tree-pass.h (PROP_cfglayout): New.
11913
11914 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
11915
11916         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
11917         fold_convert_const_fixed_from_fixed,
11918         fold_convert_const_fixed_from_int,
11919         fold_convert_const_fixed_from_real, fold_negate_const): Do not
11920         set TREE_CONSTANT_OVERFLOW.
11921         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
11922         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
11923
11924 2009-03-30  Ira Rosen  <irar@il.ibm.com>
11925
11926         * tree-vect-loop-manip.c: New file.
11927         * tree-vectorizer.c: Update documentation and included files.
11928         (vect_loop_location): Make extern.
11929         (rename_use_op): Move to tree-vect-loop-manip.c
11930         (rename_variables_in_bb, rename_variables_in_loop,
11931         slpeel_update_phis_for_duplicate_loop,
11932         slpeel_update_phi_nodes_for_guard1,
11933         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
11934         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
11935         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
11936         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
11937         find_loop_location): Likewise.
11938         (new_stmt_vec_info): Move to tree-vect-stmts.c.
11939         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
11940         get_vectype_for_scalar_type, vect_is_simple_use,
11941         supportable_widening_operation, supportable_narrowing_operation):
11942         Likewise.
11943         (bb_in_loop_p): Move to tree-vect-loop.c.
11944         (new_loop_vec_info, destroy_loop_vec_info,
11945         reduction_code_for_scalar_code, report_vect_op,
11946         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
11947         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
11948         (vect_supportable_dr_alignment): Likewise.
11949         * tree-vectorizer.h (tree-data-ref.h): Include.
11950         (vect_loop_location): Declare.
11951         Reorganize function declarations according to the new file structure.
11952         * tree-vect-loop.c: New file.
11953         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
11954         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
11955         * tree-vect-data-refs.c: New file.
11956         * tree-vect-patterns.c (timevar.h): Don't include.
11957         * tree-vect-stmts.c: New file.
11958         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
11959         tree-vect-slp.c, tree-vect-loop.c.
11960         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
11961         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
11962         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
11963         (tree-vect-analyze.o): Remove.
11964         (tree-vect-transform.o): Likewise.
11965         (tree-vect-data-refs.o): Add rule.
11966         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
11967         tree-vect-slp.o): Likewise.
11968         (tree-vect-patterns.o): Remove redundant dependencies.
11969         (tree-vectorizer.o): Likewise.
11970         * tree-vect-slp.c: New file.
11971
11972 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11973
11974         * optc-gen.awk: Warn if an option flag has multiple different
11975         help strings.
11976
11977 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
11978
11979         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
11980         -floop-block): Document dependences on PPL, CLooG and Graphite.
11981
11982 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
11983
11984         PR rtl-optimization/323
11985         * c-common.c (c_fully_fold, convert_and_check,
11986         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
11987         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
11988         * c-common.def (EXCESS_PRECISION_EXPR): New.
11989         * c-cppbuiltin.c (builtin_define_float_constants): Define
11990         constants with enough digits for long double.
11991         * c-lex.c (interpret_float): Interpret constant with excess
11992         precision where appropriate.
11993         * c-opts.c (c_common_post_options): Set
11994         flag_excess_precision_cmdline.  Give an error for
11995         -fexcess-precision=standard for C++ for processors where the
11996         option is significant.
11997         * c-parser.c (c_parser_conditional_expression): Handle excess
11998         precision in condition.
11999         * c-typeck.c (convert_arguments): Handle arguments with excess
12000         precision.
12001         (build_unary_op): Move excess precision outside operation.
12002         (build_conditional_expr): Likewise.
12003         (build_compound_expr): Likewise.
12004         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
12005         (build_modify_expr): Handle excess precision in RHS.
12006         (convert_for_assignment): Handle excess precision in converted
12007         value.
12008         (digest_init, output_init_element, process_init_element): Handle
12009         excess precision in initializer.
12010         (c_finish_return): Handle excess precision in return value.
12011         (build_binary_op): Handle excess precision in operands and add
12012         excess precision as needed for operation.
12013         * common.opt (-fexcess-precision=): New option.
12014         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
12015         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12016         For standard excess precision, output explicit conversion to and
12017         truncation from XFmode.
12018         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
12019         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
12020         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
12021         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
12022         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
12023         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
12024         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
12025         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
12026         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
12027         define_splits, sqrt<mode>2): Disable where appropriate for
12028         standard excess precision.
12029         * convert.c (convert_to_real): Do not shorten arithmetic to type
12030         for which excess precision would be used.
12031         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
12032         * doc/invoke.texi (-fexcess-precision=): Document option.
12033         (-mfpmath=): Correct index entry.
12034         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
12035         flag_excess_precision): New.
12036         * langhooks.c (lhd_post_options): Set
12037         flag_excess_precision_cmdline.
12038         * opts.c (common_handle_option): Handle -fexcess-precision=.
12039         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
12040         init_excess_precision): New.
12041         (lang_dependent_init_target): Call init_excess_precision.
12042         * tree.c (excess_precision_type): New.
12043         * tree.h (excess_precision_type): Declare.
12044
12045 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
12046
12047         PR c/35235
12048         * c-typeck.c (build_component_ref): Do not copy qualifiers from
12049         non-lvalue to component.
12050
12051 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
12052
12053         PR preprocessor/34695
12054         * Makefile.in (c-opts.o): Depend on c-tree.h.
12055         * c-common.c: Move down include of diagnostic.h.
12056         (done_lexing, c_cpp_error): New.
12057         * c-common.h (done_lexing): Declare.
12058         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
12059         (parse_in).
12060         * c-opts.c: Include c-tree.h.
12061         (c_common_init_options): Set preprocessor error callback.
12062         (c_common_handle_option): Do not set preprocessor
12063         inhibit_warnings, warnings_are_errors, warn_system_headers,
12064         pedantic_errors or inhibit_warnings flags.
12065         (c_common_post_options): Do not check cpp_errors (parse_in).
12066         (c_common_finish): Do not output dependencies if there were
12067         errors.  Do not check return value of cpp_finish.
12068         * c-ppoutput.c (pp_file_change): Set input_location.
12069         * c-tree.h (c_cpp_error): Declare.
12070         * diagnostic.c (diagnostic_set_info_translated): Also initialize
12071         override_column.
12072         (diagnostic_build_prefix): Check override_column.
12073         * diagnostic.h (diagnostic_info): Add override_column field.
12074         (diagnostic_override_column): Define.
12075
12076 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
12077
12078         * c-common.c (c_expand_expr, c_staticp): Remove.
12079         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
12080         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
12081         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
12082         * c-gimplify.c (gimplify_compound_literal_expr,
12083         optimize_compound_literals_in_ctor): Remove.
12084         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
12085         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
12086         * c-semantics.c (emit_local_var): Remove.
12087
12088         * langhooks-def.h (lhd_expand_expr): Remove.
12089         * langhooks.c (lhd_expand_expr): Remove.
12090         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
12091
12092         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
12093         handling from c-semantics.c; don't call into langhook.
12094         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
12095         * gimplify.c (gimplify_compound_literal_expr,
12096         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
12097         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
12098         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
12099         as was done in c-gimplify.c.
12100         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
12101         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
12102         Move from c-common.h.
12103         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
12104
12105         * tree.c (staticp): Do not call langhook.
12106         * langhooks.c (lhd_staticp): Delete.
12107         * langhooks-def.h (lhd_staticp): Delete prototype.
12108         (LANG_HOOKS_STATICP): Delete.
12109         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
12110
12111         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
12112         instead of DECL_STMTs.
12113
12114 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
12115
12116         PR c/456
12117         PR c/5675
12118         PR c/19976
12119         PR c/29116
12120         PR c/31871
12121         PR c/35198
12122         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
12123         void_type_node.
12124         (fold_call_expr): Return a NOP_EXPR from folding rather than the
12125         contained expression.
12126         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
12127         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
12128         conditional expressions for C.
12129         (decl_constant_value_for_optimization): Move from
12130         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
12131         whether optimizing and that the expression is a VAR_DECL not of
12132         array type instead of doing such checks in the caller.  Do not
12133         check pedantic.  Call gcc_unreachable for C++.
12134         * c-common.def (C_MAYBE_CONST_EXPR): New.
12135         * c-common.h (c_fully_fold, c_save_expr,
12136         decl_constant_value_for_optimization): New prototypes.
12137         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
12138         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
12139         EXPR_INT_CONST_OPERANDS): Define.
12140         * c-convert.c (convert): Strip nops from expression.
12141         * c-decl.c (groktypename): Take extra parameters expr and
12142         expr_const_operands.  Update call to grokdeclarator.
12143         (start_decl): Update call to grokdeclarator.  Add statement for
12144         expressions used in type of decl.
12145         (grokparm): Update call to grokdeclarator.
12146         (push_parm_decl): Update call to grokdeclarator.
12147         (build_compound_literal): Add parameter non_const and build a
12148         C_MAYBE_COSNT_EXPR if applicable.
12149         (grokdeclarator): Take extra parameters expr and
12150         expr_const_operands.  Track expressions used in declaration
12151         specifiers and declarators.  Fold array sizes and track whether
12152         they are constant expressions and whether they are integer
12153         constant expressions.
12154         (parser_xref_tag): Set expr and expr_const_operands fields in
12155         return value.
12156         (grokfield): Update call to grokdeclarator.
12157         (start_function): Update call to grokdeclarator.
12158         (build_null_declspecs): Set expr and expr_const_operands fields in
12159         return value.
12160         (declspecs_add_type): Handle expressions in typeof specifiers.
12161         * c-parser.c (c_parser_declspecs): Set expr and
12162         expr_const_operands fields for declaration specifiers.
12163         (c_parser_enum_specifier): Likewise.
12164         (c_parser_struct_or_union_specifier): Likewise.
12165         (c_parser_typeof_specifier): Likewise.  Update call to
12166         groktypename.  Fold expression as needed.  Return expressions with
12167         type instead of adding statements.
12168         (c_parser_attributes): Update calls to c_parser_expr_list.
12169         (c_parser_statement_after_labels): Fold expression before passing
12170         to objc_build_throw_stmt.
12171         (c_parser_condition): Fold expression.
12172         (c_parser_asm_operands): Fold expression.
12173         (c_parser_conditional_expression): Use c_save_expr.  Update call
12174         to build_conditional_expr.
12175         (c_parser_alignof_expression): Update call to groktypename.
12176         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
12177         original_code.  Fold expression argument of va_arg.  Create
12178         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
12179         argument to va_arg.  Update calls to groktypename.  Fold array
12180         index for offsetof.  Verify that first argument to
12181         __builtin_choose_expr has integer type.
12182         (c_parser_postfix_expression_after_paren_type): Update calls to
12183         groktypename and build_compound_literal.  Handle expressions with
12184         side effects in type name.
12185         (c_parser_postfix_expression_after_primary): Update call to
12186         c_parser_expr_list.  Set original_code for calls to
12187         __builtin_constant_p.
12188         (c_parser_expr_list): Take extra parameter fold_p.  Fold
12189         expressions if requested.
12190         (c_parser_objc_type_name): Update call to groktypename.
12191         (c_parser_objc_synchronized_statement): Fold expression.
12192         (c_parser_objc_receiver): Fold expression.
12193         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
12194         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
12195         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
12196         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
12197         (struct c_typespec): Add elements expr and expr_const_operands.
12198         (struct c_declspecs): Add elements expr and expr_const_operands.
12199         (groktypename, build_conditional_expr, build_compound_literal):
12200         Update prototypes.
12201         (in_late_binary_op): Declare.
12202         * c-typeck.c (note_integer_operands): New function.
12203         (in_late_binary_op): New variable.
12204         (decl_constant_value_for_broken_optimization): Move to c-common.c
12205         and rename to decl_constant_value_for_optimization.
12206         (default_function_array_conversion): Do not strip nops.
12207         (default_conversion): Do not call
12208         decl_constant_value_for_broken_optimization.
12209         (build_array_ref): Do not fold result.
12210         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
12211         result when operand is a VLA.
12212         (c_expr_sizeof_type): Update call to groktypename.  Handle
12213         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
12214         result when operand names a VLA type.
12215         (build_function_call): Update call to build_compound_literal.
12216         Only fold result for calls to __builtin_* functions.  Strip
12217         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
12218         the function designator.
12219         (convert_arguments): Fold arguments.  Update call to
12220         convert_for_assignment.
12221         (build_unary_op): Handle increment and decrement of
12222         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
12223         decrement earlier.  Fold operand of increment and decrement.
12224         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
12225         built for integer operand.  Wrap returns that are INTEGER_CSTs
12226         without being integer constant expressions or that have integer
12227         constant operands without being INTEGER_CSTs.
12228         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
12229         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
12230         result is an integer constant expression or can be used in
12231         unevaluated parts of one and avoid folding and wrap as
12232         appropriate.  Fold operands before possibly doing -Wsign-compare
12233         warnings.
12234         (build_compound_expr): Wrap result for C99 if operands can be used
12235         in integer constant expressions.
12236         (build_c_cast): Update call to digest_init.  Do not ignore
12237         overflow from casting floating-point constants to integers.  Wrap
12238         results that could be confused with integer constant expressions,
12239         null pointer constants or floating-point constants.
12240         (c_cast_expr): Update call to groktypename.  Handle expressions
12241         included in type name.
12242         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
12243         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
12244         Update calls to convert_for_assignment.
12245         (convert_for_assignment): Take new parameter
12246         null_pointer_constant.  Do not strip nops or call
12247         decl_constant_value_for_broken_optimization.  Set
12248         in_late_binary_op for conversions to boolean.
12249         (store_init_value): Update call to digest_init.
12250         (digest_init): Take new parameter null_pointer_constant.  Do not
12251         call decl_constant_value_for_broken_optimization.  pedwarn for
12252         initializers not constant expressions.  Update calls to
12253         convert_for_assignment.
12254         (constructor_nonconst): New.
12255         (struct constructor_stack): Add nonconst element.
12256         (really_start_incremental_init, push_init_level, pop_init_level):
12257         Handle constructor_nonconst and nonconst element.
12258         (set_init_index): Call constant_expression_warning for array
12259         designators.
12260         (output_init_element): Fold value.  Set constructor_nonconst as
12261         applicable.  pedwarn for initializers not constant expressions.
12262         Update call to digest_init.  Call constant_expression_warning
12263         where constant initializers are required.
12264         (process_init_element): Use c_save_expr.
12265         (c_finish_goto_ptr): Fold expression.
12266         (c_finish_return): Fold return value.  Update call to
12267         convert_for_assignment.
12268         (c_start_case): Fold switch expression.
12269         (c_process_expr_stmt): Fold expression.
12270         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
12271         ensure statement expression is not evaluated in constant expression.
12272         (build_binary_op): Track whether results are integer constant
12273         expressions or may occur in such, disable folding and wrap results
12274         as applicable.  Fold operands for -Wsign-compare warnings unless
12275         in_late_binary_op.
12276         (c_objc_common_truthvalue_conversion): Handle results folded to
12277         integer constants that are not integer constant expressions.
12278         * doc/extend.texi: Document when typeof operands are evaluated,
12279         that condition of __builtin_choose_expr is an integer constant
12280         expression, and more about use of __builtin_constant_p in
12281         initializers.
12282
12283 2009-03-29  Richard Guenther  <rguenther@suse.de>
12284
12285         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
12286         propagate addresses of array references.
12287
12288 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
12289
12290         * regmove.c (perhaps_ends_bb_p): Remove.
12291         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
12292         from INSN and check that the main loop stays within that basic block.
12293         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
12294         (regmove_forward_pass): Split out from regmove_optimize.  Use
12295         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
12296         (regmove_backward_pass): Split out from regmove_optimize.  Use
12297         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
12298         (regmove_optimize): Simplify.
12299
12300 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
12301
12302         PR target/39545
12303         * config/i386/i386.c (classify_argument): Ignore flexible array
12304         member in struct and warn ABI change.
12305
12306 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
12307
12308         * config/i386/i386-protos.h (ix86_agi_dependent): New.
12309
12310         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
12311         (ix86_adjust_cost): Updated.
12312
12313 2009-03-29  Jan Hubicka  <jh@suse.cz>
12314
12315         PR middle-end/28850
12316         * tree-pass.h (pass_cleanup_eh): New function.
12317         (remove_unreachable_regions): Break code handling RTL
12318         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
12319         that can not be reached by runtime.
12320         (can_be_reached_by_runtime): New function.
12321         (label_to_region_map): New function.
12322         (num_eh_regions): New function.
12323         (rtl_remove_unreachable_regions): New function.
12324         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
12325         (remove_eh_region): New function.
12326         * except.h: Include sbitmap and vecprim.
12327         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
12328         num_eh_regions): Declare.
12329         * passes.c (init_optimization_passes): Schedule cleanup_eh.
12330         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
12331         * tree-eh.c (tree_remove_unreachable_handlers): New function.
12332         (tree_empty_eh_handler_p): New function.
12333         (cleanup_empty_eh): New function.
12334         (cleanup_eh): New function.
12335         (pass_cleanup_eh): New function.
12336
12337 2009-03-29  Jan Hubicka  <jh@suse.cz>
12338
12339         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
12340         for removed regions.
12341
12342 2009-03-29  Jan Hubicka  <jh@suse.cz>
12343
12344         * except.c (dump_eh_tree): Dump all datastructures.
12345
12346 2009-03-29  Jan Hubicka  <jh@suse.cz>
12347
12348         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
12349         (duplicate_eh_regions_1): Likewise.
12350         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
12351         vector; call EH verification.
12352         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
12353         Be ready for region being removed.
12354
12355 2009-03-29  Jan Hubicka  <jh@suse.cz>
12356
12357         * bitmap.c (bitmap_last_set_bit): New function.
12358         * bitmap.h (bitmap_last_set_bit): Declare.
12359
12360 2009-03-29  David Ayers  <ayers@fsfe.org>
12361
12362         PR objc/27377
12363         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
12364         by calling objc_compare_types and surpress warnings about
12365         incompatible C pointers that are compatible ObjC pointers.
12366
12367 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
12368
12369         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
12370         call initialize_inline_failed.
12371         (initialize_inline_failed): Move it from here ...
12372         * cgraph.c (initialize_inline_failed): ... to here.
12373         (cgraph_create_edge): Call initialize_inline_failed rather than
12374         setting inline_failed directly.
12375
12376 2009-03-29  Ben Elliston  <bje@au.ibm.com>
12377
12378         PR target/32542
12379         * sysv4.opt (msdata): Improve comment.
12380         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
12381         * sysv4.h (SVR4_ASM_SPEC): Likewise.
12382
12383 2009-03-29  Ben Elliston  <bje@au.ibm.com>
12384
12385         PR target/30451
12386         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
12387         load and store attributes.
12388
12389 2009-03-29  Ben Elliston  <bje@au.ibm.com>
12390
12391         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
12392         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
12393         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
12394         * doc/extend.texi (X86 Built-in Functions): Add index entries for
12395         __builtin_infq and __builtin_huge_valq.
12396
12397 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
12398
12399         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
12400         atmega8m1 devices.
12401         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12402         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
12403
12404 2009-03-28  Xinliang David Li  <davidxl@google.com>
12405
12406         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
12407         (do_dbg_cnt): New function.
12408
12409 2009-03-28  Jan Hubicka  <jh@suse.cz>
12410
12411         Merge from pretty-ipa:
12412
12413         2009-03-27  Jan Hubicka  <jh@suse.cz>
12414
12415         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
12416         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
12417         * passes.c (function_called_by_processed_nodes_p): New.
12418         * ipa-pure-const.c (check_call): Fix handling of operands.
12419         (analyze_function): Dump debug output for skipped bodies.
12420         (local_pure_const): Use function_called_by_processed_nodes_p.
12421         * dwarf2out.c (reference_to_unused): Use output.
12422         * passes.c (do_per_function_toporder): Likewise.
12423
12424         2008-11-12  Jan Hubicka  <jh@suse.cz>
12425
12426         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
12427         * ipa-pure-const.c (funct_state_d): Add can throw field; make
12428         state_set_in_source enum
12429         (check_decl): Ignore memory tags; do not set fake looping flags;
12430         dump diagnostics.
12431         (check_operand, check_tree, check_rhs_var, check_lhs_var,
12432         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
12433         (check_call, analyze_function): Rewrite.
12434         (check_stmt): New.
12435         (add_new_function): Update call of analyze_function.
12436         (generate_summary): Add call of analyze_function.
12437         (propagate): Propagate can_throw; handle state_set_in_source correctly.
12438         (local_pure_const): New function.
12439         (pass_local_pure_const): New pass.
12440         * ipa-inline.c (inline_transform): Set after_inlining.
12441         * tree-eh.c (stmt_can_throw_external): New.
12442         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
12443         work with aliasing built.
12444         * tree-flow.h (stmt_can_throw_external): New.
12445         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
12446         and local pure/const pass in early and late optimization queue.
12447
12448 2009-03-28  Martin Jambor  <mjambor@suse.cz>
12449
12450         * fold-const.c (get_pointer_modulus_and_residue): New parameter
12451         allow_func_align.
12452         (fold_binary): Allow function decl aligment consideration is the
12453         second argument is integer constant one.
12454         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
12455         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
12456         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
12457
12458 2009-03-28  Jan Hubicka  <jh@suse.cz>
12459
12460         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
12461         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
12462         * function.h (rtl_data): Add nothrow flag.
12463         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
12464         set DECL_NOTHROW for AVAILABLE functions.
12465
12466 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
12467
12468         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
12469         following vector keyword has expansion starting with pixel or bool
12470         keyword, expand vector to __vector and pixel or bool to __pixel or
12471         __bool.
12472
12473         PR c++/39554
12474         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
12475         warn_if_disallowed_function_p): Removed.
12476         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
12477         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
12478         warning_if_disallowed_function_p.
12479         * flags.h (warn_if_disallowed_function_p,
12480         warn_disallowed_functions): Removed.
12481         * common.opt (Wdisallowed-function-list=): Removed.
12482         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
12483
12484 2009-03-28  Richard Guenther  <rguenther@suse.de>
12485
12486         PR tree-optimization/38723
12487         * tree-ssa-pre.c (compute_avail): Add all default definitions to
12488         the entry block.
12489
12490 2009-03-28  Jan Hubicka  <jh@suse.cz>
12491
12492         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
12493         test introduced by my previous patch.
12494
12495 2009-03-28  Richard Guenther  <rguenther@suse.de>
12496
12497         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
12498         the PHIs value undefined.
12499
12500 2009-03-28  Jan Hubicka  <jh@suse.cz>
12501
12502         * tree-pass.h (pass_fixup_cfg): New pass.
12503         * ipa-inline.c (inline_transform): Set
12504         always_inline_functions_inlined/after_inlining.
12505         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
12506         (pass_fixup_cfg): New pass.
12507         * passes.c (init_optimization_passes): Add fixup_cfg.
12508
12509 2009-03-28  Richard Guenther  <rguenther@suse.de>
12510
12511         PR tree-optimization/38458
12512         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
12513         argument use the arguments copy-of value.
12514
12515 2009-03-28  Richard Guenther  <rguenther@suse.de>
12516
12517         PR tree-optimization/38180
12518         * tree-ssa-ccp.c (get_default_value): Simplify.
12519         (likely_value): Likewise.
12520         (surely_varying_stmt_p): Properly handle VOP case.
12521         (ccp_initialize): Likewise.
12522         (ccp_fold): Handle propagating through *&.
12523         (fold_const_aggregate_ref): Also handle decls.
12524
12525 2009-03-28  Jan Hubicka  <jh@suse.cz>
12526
12527         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
12528         * cgraph.h (cgraph_node): Likewise.
12529         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
12530         (cgraph_reset_node): Use process flag.
12531         (cgraph_mark_functions_to_output): Likewise.
12532         (cgraph_expand_function): Likewise.
12533         (cgraph_expand_all_functions): Likewise.
12534         (cgraph_output_in_order): Likewise.
12535         * dwarf2out.c (reference_to_unused): Likewise.
12536         * passes.c do_per_function_toporder): Likewise.
12537
12538 2009-03-28  Jan Hubicka  <jh@suse.cz>
12539
12540         Bring from lto-branch:
12541
12542         2008-09-03  Doug Kwan  <dougkwan@google.com>
12543
12544         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
12545         enums instead of reason strings.
12546         * cgraph.c (cgraph_create_edge): Same.
12547         (cgraph_inline_failed_string): New function.
12548         * cgraph.h (cgraph_inline_failed_t): New enum type.
12549         (cgraph_inline_failed_string): New prototype.
12550         (struct cgraph_edge): Change type of INLINED_FAILED from constant
12551         char pointer to cgraph_inline_failed_t.
12552         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
12553         (cgraph_default_inline_p): Ditto.
12554         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
12555         to cgraph_inline_failed_t pointer.
12556         * cif-code.def: New file.
12557         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
12558         reason string.
12559         (cgraph_check_inline_limits): Change type of REASON to pointer to
12560         cgraph_inline_failed_t.  Replace reason strings with enums.
12561         (cgraph_default_inline_p): Ditto.
12562         (cgraph_recursive_inlining_p): Ditto.
12563         (update_caller_keys): Change type of FAILED_REASON to
12564         cgraph_inline_failed_t.
12565         (cgraph_set_inline_failed): Change type of REASON to pointer to
12566         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
12567         convert enums to strings for text output.
12568         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
12569         to be of type cgraph_inline_failed_t.  Replace reason strings with
12570         enums.  Call cgraph_inline_failed_string to covert enums
12571         to strings for text output.
12572         (cgraph_decide_inlining): Replace reason strings with enums.
12573         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
12574         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
12575         for text output.
12576         * tree-inline.c (expand_call_inline): Change type of REASON
12577         to cgraph_inline_failed_t.  Replace reason strings with enums.
12578         Call cgraph_inline_failed_string for text output.
12579         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
12580         (cgraph.o): Ditto.
12581
12582 2009-03-28  Jan Hubicka  <jh@suse.cz>
12583
12584         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
12585         cgraph_clone_node): Remove master clone handling.
12586         (cgraph_is_master_clone, cgraph_master_clone): Remove.
12587         * cgraph.h (master_clone): Remove.
12588         (cgraph_is_master_clone, cgraph_master_clone): Remove.
12589         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
12590         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
12591
12592 2009-03-28  Jan Hubicka  <jh@suse.cz>
12593
12594         * cgraph.c (cgraph_function_body_availability): Functions declared
12595         inline are always safe to assume that it is not going to be replaced.
12596
12597 2009-03-28  Richard Guenther  <rguenther@suse.de>
12598
12599         PR tree-optimization/38513
12600         * tree-ssa-pre.c (eliminate): Remove redundant stores.
12601         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12602         EXC_PTR_EXPR and FILTER_EXPR.
12603         (get_ref_from_reference_ops): Likewise.
12604
12605 2009-03-28  Richard Guenther  <rguenther@suse.de>
12606
12607         PR tree-optimization/38968
12608         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
12609         Use FLOOR_MOD_EXPR to compute misalignment.
12610
12611 2009-03-28  Richard Guenther  <rguenther@suse.de>
12612
12613         PR tree-optimization/37795
12614         * tree.h (combine_comparisons): Declare.
12615         * fold-const.c (combine_comparisons): Export.
12616         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
12617         comparisons.
12618         (ifcombine_iforif): Use combine_comparisons.
12619
12620 2009-03-28  Jan Hubicka  <jh@suse.cz>
12621
12622         * tree-eh.c (inlinable_call_p): New function.
12623         (make_eh_edges): Use it.
12624         (verify_eh_edges): Use it.
12625         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
12626         * except.c (reachable_next_level): Add inlinable_function argument
12627         (sjlj_find_directly_reachable_regions): Update.
12628         (add_reachable_handler): Do not set saw_any_handlers.
12629         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
12630         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
12631         Add new inlinable call parameter.
12632         (can_throw_internal, can_throw_external): Update.
12633         * except.h (can_throw_internal_1, can_throw_external_1,
12634         foreach_reachable_handler): Update declaration.
12635
12636 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
12637
12638         * config/arm/t-arm-coff, config/h8300/coff.h,
12639         config/i386/i386-aout.h, config/i386/i386-coff.h,
12640         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
12641         config/pdp11/2bsd.h, config/rs6000/aix41.h,
12642         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
12643         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
12644         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
12645         sys-types.h: Remove.
12646         * Makefile.in: Remove protoize and fixproto support and references
12647         in comments.
12648         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
12649         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
12650         Remove.
12651         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
12652         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
12653         unprotoize$(exeext).
12654         (rest.encap): Don't depend on $(STMP_FIXPROTO)
12655         (.PHONY): Don't depend on proto.
12656         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
12657         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
12658         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
12659         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
12660         build/gen-protos.o, build/scan.o, xsys-protos.h,
12661         build/fix-header$(build_exeext), build/fix-header.o,
12662         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
12663         stmp-install-fixproto): Remove.
12664         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
12665         SYSCALLS.c or fixproto files.
12666         (install-common): Don't install protoize.
12667         (install-headers-tar, install-headers-cpio, install-headers-cp):
12668         Don't depend on $(STMP_FIXPROTO).
12669         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
12670         install fixproto files or write out fixproto settings.
12671         (uninstall): Don't uninstall protoize.
12672         * config.gcc (use_fixproto): Remove.
12673         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
12674         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
12675         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
12676         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
12677         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
12678         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
12679         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
12680         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
12681         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
12682         * config/t-vxworks (STMP_FIXPROTO): Remove.
12683         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
12684         STMP_FIXPROTO): Remove.
12685         * config.in, configure: Regenerate.
12686         * crtstuff.c (gid_t, uid_t): Don't undefine.
12687         * doc/install.texi: Change m68k-coff to m68k-elf in example.
12688         (arm-*-coff, arm-*-aout: Remove target entries.
12689         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
12690         Remove mention of AIX 4.1.
12691         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
12692         * doc/invoke.texi (Running Protoize): Remove.
12693         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
12694         (Protoize Caveats): Remove.
12695         * tsystem.h: Update comments on headers assumed to exist.
12696
12697 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
12698
12699         * genautomata.c: Add a new year to the copyright.  Add a new
12700         reference.
12701         (struct insn_reserv_decl): Add comments for member bypass_list.
12702         (find_bypass): Remove.
12703         (insert_bypass): New.
12704         (process_decls): Use insert_bypass.
12705         (output_internal_insn_latency_func): Output all bypasses with the
12706         same input insn in one switch case.
12707
12708         * rtl.def (define_bypass): Describe bypass choice.
12709         * doc/md.texi (define_bypass): Ditto.
12710
12711 2009-03-27  Richard Guenther  <rguenther@suse.de>
12712
12713         * gimplify.c (mark_addressable): Export.
12714         * tree-flow.h (mark_addressable): Declare.
12715         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
12716         * tree-ssa.c (verify_phi_args): Verify that address taken
12717         variables have TREE_ADDRESSABLE set.
12718
12719 2009-03-27  Richard Guenther  <rguenther@suse.de>
12720
12721         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
12722         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
12723         Do not mark decls TREE_ADDRESSABLE.
12724         (build_fold_addr_expr): Adjust.
12725         (fold_addr_expr): Remove.
12726         (fold_unary): Use build_fold_addr_expr.
12727         (fold_comparison): Likewise.
12728         (split_address_to_core_and_offset): Likewise.
12729         * coverage.c (tree_coverage_counter_addr): Mark the array decl
12730         TREE_ADDRESSABLE.
12731         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
12732         (gimplify_modify_expr_to_memcpy): Mark source and destination
12733         addressable.
12734         * omp-low.c (create_omp_child_function): Mark the object decl
12735         TREE_ADDRESSABLE.
12736         (lower_rec_input_clauses): Mark the var we take the address of
12737         TREE_ADDRESSABLE.
12738         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
12739
12740 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12741
12742         PR middle-end/39315
12743         * cfgexpand.c (expand_one_stack_var_at): Change alignment
12744         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
12745
12746 2009-03-27  Richard Guenther  <rguenther@suse.de>
12747
12748         PR tree-optimization/39120
12749         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
12750         constraints.
12751         (handle_lhs_call): Process return constraints.  Add escape
12752         constraints if necessary.
12753         (handle_const_call): Fill out return constraints.  Make nested
12754         case more precise.  Avoid consttmp if possible.
12755         (handle_pure_call): Fill out return constraints.  Avoid
12756         callused if possible.
12757         (find_func_aliases): Simplify call handling.
12758
12759 2009-03-27  Richard Guenther  <rguenther@suse.de>
12760
12761         PR tree-optimization/39120
12762         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
12763         as a representative.
12764         (solve_graph): Do propagate CALLUSED.
12765         (handle_pure_call): Use a scalar constraint from CALLUSED for
12766         the return value.
12767         (find_what_p_points_to): CALLUSED shall not appear in poins-to
12768         solutions.
12769
12770 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12771
12772         PR c/39323
12773         * c-common.c (handle_aligned_attribute): Properly check alignment
12774         overflow.  Use (1U << i) instead of (1 << i).
12775
12776         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
12777
12778         * expr.h (get_mem_align_offset): Updated.
12779
12780         * tree.h (tree_decl_common): Change align to "unsigned int" and
12781         move it before pointer_alias_set.
12782
12783 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12784             Jakub Jelinek  <jakub@redhat.com>
12785
12786         PR target/38034
12787         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
12788         gr_register_operand with gr_reg_or_0_operand.
12789         (cmpxchg_rel_di): Likewise.
12790         (sync_lock_test_and_set<mode>): Likewise.
12791
12792 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12793
12794         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
12795         (true_regnum): Likewise.
12796
12797         * rtlanal.c (subreg_info): Moved to ...
12798         * rtl.h (subreg_info): Here.  New.
12799         (subreg_get_info): New.
12800
12801         * rtlanal.c (subreg_get_info): Make it extern.
12802
12803 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12804
12805         PR target/39472
12806         * config/i386/i386.c (ix86_abi): New.
12807         (override_options): Handle -mabi=.
12808         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
12809         (ix86_call_abi_override): Likewise.
12810         (init_cumulative_args): Likewise.
12811         (function_arg_advance): Likewise.
12812         (function_arg_64): Likewise.
12813         (function_arg): Likewise.
12814         (ix86_pass_by_reference): Likewise.
12815         (ix86_function_value_regno_p): Likewise.
12816         (ix86_build_builtin_va_list_abi): Likewise.
12817         (setup_incoming_varargs_64): Likewise.
12818         (is_va_list_char_pointer): Likewise.
12819         (ix86_init_machine_status): Likewise.
12820         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
12821         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
12822         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
12823         (ix86_function_abi): Make it static and return enum calling_abi.
12824         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
12825         with ix86_abi.
12826         (ix86_fn_abi_va_list): Updated.
12827
12828         * config/i386/i386.h (ix86_abi): New.
12829         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
12830         (CONDITIONAL_REGISTER_USAGE): Likewise.
12831         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
12832         (machine_function): Likewise.
12833
12834         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
12835         with ix86_abi.
12836         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
12837         (STACK_BOUNDARY): Likewise.
12838         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
12839
12840         * config/i386/i386.opt (mabi=): New.
12841
12842         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
12843         return enum calling_abi.
12844         (ix86_function_type_abi): Likewise.
12845         (ix86_function_abi): Removed.
12846
12847         * doc/invoke.texi: Document -mabi= option for x86.
12848
12849 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12850
12851         * builtins.c (real_dconstp): Delete.
12852         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
12853
12854 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
12855             Jakub Jelinek  <jakub@redhat.com>
12856
12857         PR debug/37959
12858         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
12859         (gen_subprogram_die): When a function is explicit, generate the
12860         DW_AT_explicit attribute.
12861         * langhooks.h (struct lang_hooks_for_decls): Add
12862         function_decl_explicit_p langhook.
12863         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
12864         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
12865
12866 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
12867
12868         * builtins.c (fold_builtin_memory_op): Optimize memmove
12869         into memcpy if we can prove source and destination don't overlap.
12870
12871         * tree-inline.c: Include gt-tree-inline.h.
12872         (clone_fn_id_num): New variable.
12873         (clone_function_name): New function.
12874         (tree_function_versioning): Use it.
12875         * Makefile.in (GTFILES): Add tree-inline.c.
12876
12877 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
12878
12879         * BASE-VER: Change to 4.5.0.
12880
12881 2009-03-27  Xinliang David Li  <davidxl@google.com>
12882
12883         PR tree-optimization/39557
12884         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
12885
12886 2009-03-27  Xinliang David Li  <davidxl@google.com>
12887
12888         PR tree-optimization/39548
12889         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
12890         candidate check.
12891
12892 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12893
12894         * c-common.c (pointer_int_sum): Use %wd on return from
12895         tree_low_cst.
12896
12897 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12898
12899         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
12900         on return from tree_low_cst.
12901
12902 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12903
12904         PR c++/36799
12905         * ginclude/stdarg.h (va_copy): Define also for
12906         __GXX_EXPERIMENTAL_CXX0X__.
12907
12908 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12909
12910         PR c++/35652
12911         * builtins.h (c_strlen): Do not warn here.
12912         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
12913         * c-common.c (pointer_int_sum): Take an explicit location.
12914         Warn about offsets out of bounds.
12915         * c-common.h (pointer_int_sum): Adjust declaration.
12916
12917 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12918
12919         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
12920         markup glitch.
12921
12922 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
12923
12924         PR c++/39554
12925         * opts.c (warn_if_disallowed_function_p): Don't assume
12926         get_callee_fndecl must return non-NULL.
12927
12928 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
12929
12930         PR rtl-optimization/39522
12931         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
12932         when reg_reloaded_valid is set.
12933
12934 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12935
12936         * config/spu/divv2df3.c: New file.
12937         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
12938         (DPBIT_FUNCS): Filter out _div_df.
12939
12940 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
12941
12942         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
12943         a jump insn, count that jump in the distance to the loop start.
12944
12945 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12946
12947         PR target/39523
12948         * config/sh/sh.c (calc_live_regs): Fix condition for global
12949         registers except PIC_OFFSET_TABLE_REGNUM.
12950
12951 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
12952
12953         PR/39518
12954         * doc/invoke.texi (-mconsole): New.
12955         (-mcygwin): New.
12956         (-mno-cygwin): New.
12957         (-mdll): New.
12958         (-mnop-fun-dllimport): New.
12959         (-mthread): New.
12960         (-mwin32): New.
12961         (-mwindows): New.
12962         (sub section "i386 and x86-64 Windows Options"): New.
12963
12964 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
12965
12966         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
12967         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
12968
12969 2009-03-25  Richard Guenther  <rguenther@suse.de>
12970
12971         PR middle-end/39497
12972         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
12973         of -Wno-error.
12974
12975 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
12976
12977         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
12978         neither of haifa/selective schedulers are working.
12979
12980 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12981
12982         * doc/invoke.texi (Debugging Options): Fix description of
12983         -fno-merge-debug-strings.
12984
12985 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
12986
12987         * config/cris/libgcc.ver: New version-script.
12988         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
12989
12990         * configure.ac <GAS features, nop mnemonic>: Add pattern
12991         crisv32-*-* for "nop".
12992         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
12993         * configure: Regenerate.
12994
12995 2009-03-24  Ira Rosen  <irar@il.ibm.com>
12996
12997         PR tree-optimization/39529
12998         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
12999         mark_sym_for_renaming for the tag copied to the new vector
13000         pointer.
13001
13002 2009-03-24  Arthur Loiret  <aloiret@debian.org>
13003
13004         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
13005         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
13006         EXTRA_SPEC_FUNCTIONS.
13007         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
13008         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
13009         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
13010         -march and -mtune options.
13011
13012 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
13013
13014         * config/m68k/t-rtems: Add m5329 multilib.
13015
13016 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
13017             Jakub Jelinek  <jakub@redhat.com>
13018
13019         PR debug/39524
13020         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
13021         nodes.
13022
13023 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13024
13025         PR c/39495
13026         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
13027         instead of c_parser_expression_conv, if original_code isn't one of the
13028         4 allowed comparison codes, fail.
13029
13030 2009-03-23  Richard Guenther  <rguenther@suse.de>
13031
13032         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
13033         * tree.h (struct tree_type): Likewise.
13034         * reload.h (struct insn_chain): Likewise.
13035         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
13036         * function.h (struct function): Likewise.
13037         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
13038
13039 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13040
13041         PR tree-optimization/39516
13042         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
13043
13044 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
13045
13046         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
13047         should be set true if BITS_PER_WORD of target is bigger than 32
13048
13049 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
13050
13051         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
13052         Translate -B-options to -rpath-link.  Correct existing
13053         rpath-link and conditionalize on !nostdlib.
13054
13055 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13056
13057         * doc/extend.texi (Function Attributes, Variable Attributes):
13058         Fix typos.
13059         * doc/invoke.texi (Debugging Options, Optimize Options)
13060         (i386 and x86-64 Options, MCore Options): Likewise.
13061
13062 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
13063
13064         PR debug/37890
13065         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
13066         it for block local namespace aliases.
13067         (gen_decl_die): Pass context_die to gen_namespace_die.
13068
13069 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
13070
13071         PR c/39495
13072         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
13073         minimum or maximum value.
13074
13075 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
13076
13077         * reginfo.c (globalize_reg): Recompute derived reg sets.
13078
13079 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
13080
13081         PR target/39063
13082         * libgcc2.c (mprotect): Do not use signed arguments for
13083         VirtualProtect, use DWORD arguments.  Also fix the 'may
13084         be used uninitialized' warning for the np variable.
13085
13086 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
13087
13088         PR target/39496
13089         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
13090         functions using regparm calling conventions when not optimizing.
13091         (ix86_function_sseregparm): Similarly for sseregparm calling
13092         conventions.
13093
13094 2009-03-19  Li Feng  <nemokingdom@gmail.com>
13095
13096         PR middle-end/39500
13097         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
13098         dependence if the first conflict is after niter iterations.
13099
13100 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
13101
13102         PR middle-end/38609
13103         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
13104         functions with dynamic stack-pointer adjustments.
13105
13106 2009-03-19  Ben Elliston  <bje@au.ibm.com>
13107
13108         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
13109         option; change to -msdata=data.
13110
13111 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13112
13113         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
13114         and -fopenmp.
13115
13116 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
13117
13118         PR target/35180
13119         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
13120
13121 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
13122
13123         * doc/invoke.texi (Code Gen Options): Expand discussion of
13124         -fno-common.
13125
13126 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
13127
13128         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
13129         * matrix-reorg.c (struct matrix_info): Likewise.
13130         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
13131         * rtl.h (struct mem_attrs): Likewise.
13132         * df.h (struct df): Likewise.
13133         * tree-data-ref.h (struct data_dependence_relation): Likewise.
13134         * ira-int.h (struct ira_allocno): Likewise.
13135         * df-scan.c (struct df_collection_rec): Likewise.
13136         * ira.c (struct equivalence): Likewise.
13137         * function.c (struct temp_slot): Likewise.
13138         * cfgloop.h (struct loop): Likewise.
13139
13140         PR debug/39485
13141         * function.c (use_register_for_decl): When not optimizing, disregard
13142         register keyword for variables with types containing methods.
13143
13144 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
13145
13146         PR middle-end/39447
13147         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
13148         (is_simple_operand): Call contains_component_ref_p before calling data
13149         reference analysis that would fail on COMPONENT_REFs.
13150
13151         * tree-vrp.c (search_for_addr_array): Fix formatting.
13152
13153 2009-03-18  Richard Guenther  <rguenther@suse.de>
13154
13155         * tree-vect-transform.c (vect_loop_versioning): Fold the
13156         generated comparisons.
13157         * tree-vectorizer.c (set_prologue_iterations): Likewise.
13158         (slpeel_tree_peel_loop_to_edge): Likewise.
13159
13160 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13161
13162         PR middle-end/37805
13163         * opts.c (print_specific_help): In addition to `undocumented',
13164         accept `separate' and `joined' flags if passed alone.  Describe
13165         output by the first matched one of those.
13166         (common_handle_option): Skip over empty strings.
13167         * gcc.c (display_help): Fix help string for `--help='.
13168         * doc/invoke.texi (Option Summary, Overall Options): With
13169         `--help=', classes and qualifiers can both be repeated, but
13170         only the latter can be negated.  One should not pass only
13171         negated qualifiers.  Fix markup and examples.
13172
13173         Revert
13174         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
13175         PR middle-end/37805
13176         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
13177         and -fhelp=separate.
13178
13179 2009-03-17  Jing Yu  <jingyu@google.com>
13180
13181         PR middle-end/39378
13182         * function.h (struct rtl_data): Move is_thunk from here...
13183         (struct function): ...to here.
13184         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
13185         * varasm.c (assemble_start_function): Change is_thunk from crtl to
13186         cfun.
13187         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
13188         cfun.
13189         (alpha_does_function_need_gp, alpha_start_function): Likewise.
13190         (alpha_output_function_end_prologue): Likewise.
13191         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
13192         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
13193         (rs6000_output_function_epilogue): Likewise.
13194         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
13195
13196 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
13197
13198         PR target/39482
13199         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
13200         from different units in a single alternative.
13201         (*truncdfsf_i387): Ditto.
13202         (*truncxfsf2_mixed): Ditto.
13203         (*truncxfdf2_mixed): Ditto.
13204
13205 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
13206
13207         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
13208         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
13209
13210         PR debug/39474
13211         * tree-ssa-live.c (remove_unused_locals): Don't remove local
13212         unused non-artificial variables when not optimizing.
13213
13214         PR debug/39471
13215         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
13216         DW_TAG_imported_module even if decl is IMPORTED_DECL with
13217         NAMESPACE_DECL in its DECL_INITIAL.
13218
13219         PR middle-end/39443
13220         * optabs.c (set_user_assembler_libfunc): New function.
13221         * expr.h (set_user_assembler_libfunc): New prototype.
13222         * c-common.c: Include libfuncs.h.
13223         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
13224         for memcmp, memset, memcpy, memmove and abort.
13225         * Makefile.in (c-common.o): Depend on libfuncs.h.
13226
13227         PR debug/39412
13228         * dwarf2out.c (gen_inlined_enumeration_type_die,
13229         gen_inlined_structure_type_die, gen_inlined_union_type_die,
13230         gen_tagged_type_instantiation_die): Removed.
13231         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
13232         do nothing.
13233
13234 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
13235
13236         PR testsuite/38526
13237         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
13238         its use.
13239         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
13240         (check-parallel-%): Ditto.
13241         (check-consistency): Ditto.
13242
13243 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
13244
13245         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
13246         local variable rhs by NULL_TREE.
13247
13248 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13249
13250         PR target/39477
13251         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
13252
13253 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13254
13255         PR target/39476
13256         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
13257
13258 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13259
13260         PR target/39473
13261         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
13262         for ms->sysv ABI calls only in 64bit mode.
13263
13264         * config/i386/i386.md (untyped_call): Support 32bit.
13265
13266 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
13267
13268         * doc/extend.texi: Replace x86_65 with x86_64.
13269
13270 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
13271
13272         PR tree-optimization/39455
13273         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
13274         mismatches for POINTER_TYPE_P (type).
13275         (number_of_iterations_le): Likewise.
13276
13277 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
13278
13279         * config/picochip/picochip.c: Removed profiling support.
13280         * config/picochip/picochip.md: Removed profiling instruction.
13281         * config/picochip/picochip.h: Removed profiling builtin.
13282
13283 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * doc/install.texi (--with-host-libstdcxx): Document.
13286
13287 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
13288
13289         PR target/34299
13290         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
13291         generate a warning if the function name does not begin with
13292         "__vector" and the function has either the 'signal' or 'interrupt'
13293         attribute, from here to ...
13294         (avr_declare_function_name): ...here. New function.
13295         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
13296         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
13297
13298 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
13299
13300         PR bootstrap/39454
13301         * cse.c (fold_rtx): Don't modify original const_arg1 when
13302         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
13303         separate variable instead.
13304         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
13305         from out of range shift counts.
13306         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
13307
13308 2009-03-13  Catherine Moore  <clm@codesourcery.com>
13309
13310         * config/i386/x-mingw32 (host-mingw32.o): Replace
13311         diagnostic.h with $(DIAGNOSTIC_H).
13312
13313 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
13314
13315         PR target/39431
13316         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
13317         predicate.
13318         * config/i386/sync.md (sync_compare_and_swap<mode>,
13319         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
13320         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
13321         into a register.
13322         (sync_double_compare_and_swapdi_pic,
13323         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
13324         cmpxchg8b_pic_memory_operand instead of just memory_operand.
13325
13326 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
13327
13328         PR target/39445
13329         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
13330
13331 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
13332
13333         PR target/39327
13334         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
13335         (avx_addsubv4df3): Likewise.
13336         (*avx_addsubv4sf3): Likewise.
13337         (sse3_addsubv4sf3): Likewise.
13338
13339 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
13340
13341         PR target/38824
13342         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
13343
13344 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
13345
13346         PR debug/39432
13347         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
13348         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
13349         registers for allocnos created from user-defined variables.
13350
13351 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13352
13353         PR target/39181
13354         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
13355         of non-integer mode as well.
13356
13357 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
13358
13359         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
13360         for functions for which the parameter types are unknown.
13361
13362 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
13363
13364         PR target/39137
13365         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
13366         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
13367         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
13368         * config/i386/i386.c (ix86_local_alignment): For
13369         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
13370         long long variables on the stack to avoid dynamic realignment.
13371         Allow the first argument to be a decl rather than type.
13372         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
13373
13374 2009-03-11  Nick Clifton  <nickc@redhat.com>
13375
13376         PR target/5362
13377         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
13378         options.
13379         Add description to mno-lsim option.
13380         * config/mcore/mcore.h: Remove comment about deprecated m4align
13381         option.
13382         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
13383         * doc/invoke.texi: Add description of mno-lsim and
13384         mstack-increment options.
13385
13386         * config/fr30/fr30.opt: Document the -mno-lsim option.
13387         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
13388         and -mno-lsim options.
13389
13390 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13391
13392         * fold-const.c (fold_comparison): Only call fold_inf_compare
13393         if the mode supports infinities.
13394
13395 2009-03-11  Jason Merrill  <jason@redhat.com>
13396
13397         PR debug/39086
13398         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
13399         end already did.  Notice GIMPLE_CALL modifications of the result.
13400         Don't copy debug information from an ignored decl or a decl from
13401         another function.
13402
13403 2009-03-10  Richard Guenther  <rguenther@suse.de>
13404             Nathan Froyd  <froydnj@codesourcery.com>
13405
13406         PR middle-end/37850
13407         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
13408         (__divMODE3): Likewise.
13409
13410 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
13411
13412         PR tree-optimization/39394
13413         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
13414         DECL_SIZE_UNIT of variable length FIELD_DECLs.
13415
13416 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13417
13418         * recog.c (verfiy_changes): Disallow renaming of hard regs in
13419         inline asms for register asm ("") declarations.
13420
13421 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
13422
13423         * fold-const.c (fold_unary): Fix comment.
13424
13425 2009-03-07  Jan Hubicka  <jh@suse.cz>
13426
13427         PR target/39361
13428         * tree-inline.c (setup_one_parameter): Do replacement of const
13429         argument by constant in SSA form.
13430
13431 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13432
13433         PR middle-end/38028
13434         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
13435         determine alignment passed to assign_stack_local.
13436         (assign_parms_unsplit_complex): Likewise.
13437         * except.c (sjlj_build_landing_pads): Likewise.
13438
13439 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
13440
13441         PR middle-end/39360
13442         * tree-flow.h (add_referenced_var): Return bool instead of void.
13443         * tree-dfa.c (add_referenced_var): Return result of
13444         referenced_var_check_and_insert call.
13445         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
13446         of referenced_var_check_and_insert.
13447
13448         PR debug/39372
13449         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
13450         (gen_variable_die): Emit DW_AT_location on abstract static variable's
13451         DIE, don't emit it if abstract origin already has it.
13452         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
13453         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
13454
13455 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13456
13457         * genpreds.c (needs_variable): Fix parentheses at variable name
13458         detection.
13459         (write_tm_constrs_h): Indent generated code.
13460
13461 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13462
13463         * doc/extend.texi (Function Attributes): Add documentation
13464         for isr attributes.
13465
13466 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
13467
13468         PR debug/39387
13469         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
13470         take locus from its DECL_SOURCE_LOCATION instead of input_location.
13471
13472 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
13473
13474         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
13475         the loop as bad.
13476
13477 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
13478
13479         PR debug/39379
13480         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
13481         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
13482
13483 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
13484
13485         * config/i386/i386.md (R8_REG, R9_REG): New constants.
13486         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
13487         constants instead of magic numbers.
13488         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
13489         (QI_REG_P): Ditto.
13490         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
13491         (x86_64_ms_abi_int_parameter_registers): Ditto.
13492         (x86_64_int_return_registers): Ditto.
13493         (ix86_maybe_switch_abi): Ditto.
13494         (ix86_expand_call): Ditto for clobbered_registers array.
13495         (ix86_hard_regno_mode_ok): Ditto.
13496         (x86_extended_QIreg_mentioned_p): Ditto.
13497
13498 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
13499
13500         PR tree-optimization/39349
13501         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
13502
13503         * combine.c (gen_lowpart_for_combine): Use omode when generating
13504         clobber.
13505
13506 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
13507
13508         PR rtl-optimization/39235
13509         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
13510
13511 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
13512
13513         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
13514
13515 2009-03-04  Richard Guenther  <rguenther@suse.de>
13516
13517         PR tree-optimization/39362
13518         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
13519         that occur in abnormal PHIs should be varying.
13520
13521 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
13522
13523         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
13524         Extend comments.
13525         (simple_iv):  Take loop as an argument instead of statement.
13526         * tree-scalar-evolution.h (simple_iv): Declaration changed.
13527         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
13528         to simple_iv.
13529         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
13530         Ditto.
13531         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
13532         * matrix-reorg.c (analyze_transpose): Ditto.
13533         * tree-data-ref.c (dr_analyze_innermost): Ditto.
13534         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
13535         * tree-predcom.c (ref_at_iteration): Ditto.
13536         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
13537
13538 2009-03-04  Richard Guenther  <rguenther@suse.de>
13539
13540         PR tree-optimization/39358
13541         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
13542         escaped_id and callused_id.
13543         (solve_graph): Likewise.
13544
13545 2009-03-04  Richard Guenther  <rguenther@suse.de>
13546
13547         PR tree-optimization/39339
13548         * tree-sra.c (try_instantiate_multiple_fields): Make it
13549         no longer ICE on the above.
13550
13551 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
13552
13553         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
13554         that fits within Pmode.
13555
13556 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
13557
13558         PR middle-end/10109
13559         * tm.texi (LIBCALL_VALUE): Update description.
13560
13561 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
13562
13563         PR middle-end/34443
13564         * doc/extend.texi (section): Update description.
13565
13566 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
13567
13568         PR middle-end/39345
13569         * tree-inline.c (remapped_type): New.
13570         (can_be_nonlocal): Call remapped_type instead of remap_type.
13571
13572 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
13573
13574         PR fortran/39354
13575         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
13576         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
13577
13578 2009-03-03  Richard Guenther  <rguenther@suse.de>
13579
13580         PR middle-end/39272
13581         * tree.c (tree_nonartificial_location): New function.
13582         * tree.h (tree_nonartificial_location): Declare.
13583         * builtins.c (expand_builtin_memory_chk): Provide location
13584         of the call location for artificial function pieces.
13585         (maybe_emit_chk_warning): Likewise.
13586         (maybe_emit_sprintf_chk_warning): Likewise.
13587         (maybe_emit_free_warning): Likewise.
13588         * expr.c (expand_expr_real_1): Likewise.
13589
13590 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
13591
13592         PR tree-optimization/39343
13593         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
13594         COMPONENT_REF t has ARRAY_TYPE.
13595
13596 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13597
13598         PR middle-end/39335
13599         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
13600         when the type precision of the induction variable should be
13601         larger than the type precision of nit.
13602         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
13603         * graphite.c (graphite_loop_normal_form): Same.
13604         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
13605
13606 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
13607
13608         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
13609         (*call_1_rex64_ms_sysv): Use named constants instead of magic
13610         numbers to describe clobbered registers.
13611         (*call_value_0_rex64_ms_sysv): Ditto.
13612         * config/i386/mmx.md (mmx_emms): Ditto.
13613         (mmx_femms): Ditto.
13614
13615 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
13616
13617         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
13618         of ABI_64.
13619
13620 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13621
13622         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
13623         (spu_section_type_flags): New function.
13624
13625 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
13626
13627         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
13628         reg_class_contents of FLOAT_REGS into a temporary.
13629
13630 2009-03-02  Richard Guenther  <rguenther@suse.de>
13631             Ira Rosen  <irar@il.ibm.com>
13632
13633         PR tree-optimization/39318
13634         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
13635         information to the vectorized statement.
13636
13637 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
13638
13639         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
13640         variable.  Use defined names instead of magic constants for REX SSE
13641         registers.
13642
13643 2009-03-01  Richard Guenther  <rguenther@suse.de>
13644
13645         PR tree-optimization/39331
13646         * omp-low.c (lower_send_shared_vars): Do not receive new
13647         values for the reference of DECL_BY_REFERENCE parms or results.
13648
13649 2009-03-01  Jan Hubicka  <jh@suse.cz>
13650
13651         PR debug/39267
13652         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
13653         BLOCK_NONLOCALIZED_VAR): New macros.
13654         (tree_block): Add nonlocalized_vars.
13655         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
13656         gen_decl_die): Add origin argument.  Allow generation of die with
13657         origin at hand only.
13658         (gen_member_die, gen_type_die_with_usage, force_decl_die,
13659         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
13660         of gen_*.
13661         (gen_block_die): Fix checking for unused blocks.
13662         (process_scope_var): Break out from .... ; work with origins only.
13663         (decls_for_scope) ... here; process nonlocalized list.
13664         (dwarf2out_ignore_block): Look for nonlocalized vars.
13665         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
13666         vars.
13667         (dump_scope_block): Dump them.
13668         * tree-inline.c (remap_decls): Handle nonlocalized vars.
13669         (remap_block): Likewise.
13670         (can_be_nonlocal): New predicate.
13671         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
13672
13673 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13674
13675         * configure: Regenerate.
13676
13677 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13678
13679         * optc-gen.awk: No need to duplicate option flags twice.
13680         Reuse help texts for duplicate options which do not have any.
13681
13682         * gcc.c (display_help): Document --version.
13683
13684         * gcc.c (main): If print_help_list and verbose_flag, ensure
13685         driver output comes before subprocess output.
13686
13687         * optc-gen.awk: Assign all remaining fields to help string,
13688         space-separated, for multi-line help in *.opt.
13689
13690         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
13691         -Wno-pedantic-ms-format is for MinGW targets only.
13692
13693         * doc/options.texi (Option file format): Fix bad indentation,
13694         restoring dropped sentence.
13695
13696 2009-02-28  Jan Hubicka  <jh@suse.cz>
13697
13698         * tree-inline.c (tree_function_versioning): Output debug info.
13699
13700 2009-02-28  Jan Hubicka  <jh@suse.cz>
13701
13702         PR debug/39267
13703         * tree-inline.c (setup_one_parameter): Do not copy propagate
13704         arguments when not optimizing.
13705
13706 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
13707
13708         PR target/39327
13709         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
13710         (avx_addsubv4df3): Likewise.
13711         (*avx_addsubv4sf3): Likewise.
13712         (sse3_addsubv4sf3): Likewise.
13713         (*avx_addsubv2df3): Likewise.
13714         (sse3_addsubv2df3): Likewise.
13715         (avx_unpckhps256): Correct item selectors.
13716         (avx_unpcklps256): Likewise.
13717         (avx_unpckhpd256): Likewise.
13718         (avx_unpcklpd256): Likewise.
13719
13720 2009-02-28  Jan Hubicka  <jh@suse.cz>
13721
13722         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
13723         static vars.
13724         (copy_arguments_for_versioning): If var is declared don't declare it.
13725         (tree_function_versioning): First setup substitutions and then copy
13726         args.
13727
13728 2009-02-27  Jan Hubicka  <jh@suse.cz>
13729
13730         PR debug/39267
13731         * cgraph.h (varpool_output_debug_info): Remove.
13732         * cgraphunit.c (varpool_output_debug_info): Remove.
13733         * dwarf2out.c (deferred_locations_struct): New struct
13734         (deferred_locations): New type.
13735         (deferred_locations_list): New static var.
13736         (deffer_location): New function.
13737         (gen_variable_die): Use it.
13738         (decls_for_scope): Output info on local static vars.
13739         (dwarf2out_finish): Process deferred locations.
13740         * varpool.c (varpool_output_debug_info): Remove.
13741
13742 2009-02-27  Jan Hubicka  <jh@suse.cz>
13743
13744         PR debug/39267
13745         * tree.h (TREE_PROTECTED): Fix comment.
13746         (BLOCK_HANDLER_BLOCK): Remove.
13747         (struct tree_block): Remove handler_block add body_block.
13748         (inlined_function_outer_scope_p): New.
13749         (is_body_block): Remove.
13750         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
13751         * dwarf2out.c (is_inlined_entry_point): Remove.
13752         (add_high_low_attributes): Use inlined_function_outer_scope_p.
13753         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
13754         code.
13755         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
13756         * gimplify.c (gimplify_expr): Gimplify body blocks.
13757         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
13758         block with multiple subblocks.
13759         (dump_scope_block): Prettier output; dump more flags and info.
13760         (dump_scope_blocks): New.
13761         (remove_unused_locals): Use dump_scope_blocks.
13762         * tree-flow.h (dump_scope_blocks): Declare.
13763         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
13764         * stmt.c (is_body_block): Remove.
13765         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
13766         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
13767
13768 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
13769
13770         PR middle-end/39308
13771         * graphite.c (graphite_loop_normal_form): Do not call
13772         number_of_iterations_exit from a gcc_assert.
13773
13774 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13775
13776         * config/s390/s390.c (s390_swap_cmp): Look for conditional
13777         jumps if COND is NULL.
13778         (find_cond_jump): New function.
13779         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
13780         * config/s390/s390.md: Remove z10_cobra attribute value.
13781
13782 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
13783
13784         * config/alpha/alpha.h (alpha_expand_mov): Return false if
13785         force_const_mem returns NULL_RTX.
13786
13787 2009-02-26  Jan Hubicka  <jh@suse.cz>
13788
13789         PR debug/39267
13790         * cgraph.h (varpool_output_debug_info): Remove.
13791         * cgraphunit.c (varpool_output_debug_info): Remove.
13792         * dwarf2out.c (deferred_locations_struct): New struct
13793         (deferred_locations): New type.
13794         (deferred_locations_list): New static var.
13795         (deffer_location): New function.
13796         (gen_variable_die): Use it.
13797         (decls_for_scope): Output info on local static vars.
13798         (dwarf2out_finish): Process deferred locations.
13799         * varpool.c (varpool_output_debug_info): Remove.
13800
13801 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
13802
13803         PR rtl-optimization/39241
13804         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
13805         to subreg_offset_representable_p.
13806
13807 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
13808
13809         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
13810         execute function prototype.  Get f and nregs from max_reg_num
13811         and get_insns.  Remove the first backward pass as it's dead,
13812         guard the forward pass by flag_expensive_optimizations.
13813         (rest_of_handle_regmove): Delete.
13814         (pass_regmove): Replace it with regmove_optimize.
13815
13816 2009-02-25  Martin Jambor  <mjambor@suse.cz>
13817
13818         PR tree-optimization/39259
13819         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
13820         calls_alloca function flags.
13821         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
13822         calls are detected.
13823
13824 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
13825
13826         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
13827         flags_set_1_rtx, flags_set_1_set): Delete.
13828         (regmove_optimize): Do not call mark_flags_life_zones.
13829
13830 2009-02-24  Julian Brown  <julian@codesourcery.com>
13831
13832         PR target/35965
13833         * config/arm/arm.c (require_pic_register): Only set
13834         cfun->machine->pic_reg once per function.
13835
13836 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
13837
13838         * doc/invoke.texi (Link Options): Document an easier way to pass
13839         options that take arguments to the GNU linker using -Xlinker and -Wl.
13840
13841 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
13842
13843         PR target/33785
13844         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
13845
13846 2009-02-24  Richard Guenther  <rguenther@suse.de>
13847
13848         PR debug/39285
13849         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
13850
13851 2009-02-24  Richard Guenther  <rguenther@suse.de>
13852             Zdenek Dvorak  <ook@ucw.cz>
13853
13854         PR tree-optimization/39233
13855         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
13856         from converting them to a generic type.
13857
13858 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
13859
13860         PR tree-optimization/39260
13861         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
13862         contains a condition with a real type.
13863         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
13864
13865 2009-02-23  Jason Merrill  <jason@redhat.com>
13866
13867         PR c++/38880
13868         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
13869         narrowing_initializer_constant_valid_p.
13870         (narrowing_initializer_constant_valid_p): Don't return
13871         null_pointer_node for adding a pointer to itself.
13872
13873 2009-02-23  Jan Hubicka  <jh@suse.cz>
13874
13875         PR c/12245
13876         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
13877         resizing.
13878
13879 2009-02-23  Jan Hubicka  <jh@suse.cz>
13880
13881         PR tree-optimization/37709
13882         * tree.c (block_ultimate_origin): Move here from dwarf2out.
13883         * tree.h (block_ultimate_origin): Declare.
13884         * dwarf2out.c (block_ultimate_origin): Move to tree.c
13885         * tree-ssa-live.c (remove_unused_scope_block_p):
13886         Eliminate blocks containig no instructions nor live variables nor
13887         nested blocks.
13888         (dump_scope_block): New function.
13889         (remove_unused_locals): Enable removal of dead blocks by default;
13890         enable dumping at TDF_DETAILS.
13891
13892 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
13893
13894         * config/i386/i386.c (classify_argument): Don't allow COImode
13895         and OImode.
13896         (function_arg_advance_32): Don't allow OImode.
13897         (function_arg_32): Likewise.
13898         (function_value_32): Likewise.
13899         (return_in_memory_32): Likewise.
13900         (function_arg_64): Remove OImode comment.
13901
13902 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
13903
13904         PR target/39261
13905         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13906         ix86_expand_vector_set for V4DImode in 64bit mode only.
13907         (ix86_expand_vector_init_one_var): Likewise.
13908
13909 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
13910
13911         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
13912
13913 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
13914
13915         PR bootstrap/39257
13916         * loop-iv.c: Revert last change.
13917         * emit-rtl.c: Likewise.
13918
13919 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
13920
13921         PR target/39256
13922         * config/i386/i386.c (type_natural_mode): Remove an extra
13923         space in the warning message.
13924         (function_value_32): Handle 32-byte vector modes.
13925         (return_in_memory_32): Likewise.
13926
13927 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
13928
13929         * loop-iv.c (truncate_value): New function.
13930         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
13931         of lowpart_subreg.
13932         (lowpart_subreg): Move to...
13933         * emit-rtl.c: ...here.
13934
13935 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
13936
13937         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
13938         accidental and undocumented change at revision 140860.
13939
13940 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
13941
13942         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
13943         take gimple_seq * arguments.
13944         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
13945         types_compatible_p langhook.
13946
13947 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
13948             Joseph Myers  <joseph@codesourcery.com>
13949
13950         * config/arm/arm.c (arm_builtin_va_list): New function.
13951         (arm_expand_builtin_va_start): Likewise.
13952         (arm_gimplify_va_arg_expr): Likewise.
13953         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
13954         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
13955         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
13956         (va_list_type): New variable.
13957         (arm_mangle_type): Mangle va_list_type appropriately.
13958
13959 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
13960
13961         PR middle-end/39157
13962         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
13963         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
13964         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
13965         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
13966         parameter to 1000 for -O1 by default.
13967         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
13968         parameter.
13969         * loop-invariant.c: Include params.h.
13970         (move_loop_invariants): Don't call move_single_loop_invariants on
13971         very large loops.
13972
13973 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
13974
13975         * calls.c (emit_library_call_value_1): Use slot_offset instead of
13976         offset when calculating bounds for indexing stack_usage_map.  Fixes
13977         a buffer overflow with certain target setups.
13978
13979 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
13980
13981         PR target/39240
13982         * calls.c (expand_call): Clear try_tail_call if caller and callee
13983         disagree in promotion of function return value.
13984
13985 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
13986
13987         PR target/39175
13988         * c-common.c (c_determine_visibility): If visibility changed and
13989         DECL_RTL has been already set, call make_decl_rtl to update symbol
13990         flags.
13991
13992 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
13993
13994         PR c++/39188
13995         * varasm.c (assemble_variable): Don't check DECL_NAME when
13996         globalizing a variable.
13997
13998 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
13999
14000         PR c/38483
14001         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
14002         expression before any __builtin_trap call.
14003         * c-typeck.c (build_function_call): Convert and check function
14004         arguments before generating a call to a trap.  Evaluate the
14005         function arguments before the trap.
14006
14007 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
14008
14009         PR target/39228
14010         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
14011         (UNSPEC_FXAM_MEM): New unspec.
14012         (fxam<mode>2_i387_with_temp): New insn and split pattern.
14013         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
14014         memory using fxam<mode>2_i387_with_temp to remove excess precision.
14015
14016 2009-02-19  Richard Guenther  <rguenther@suse.de>
14017
14018         PR tree-optimization/39207
14019         PR tree-optimization/39074
14020         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
14021         storedanything_tree): New.
14022         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
14023         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
14024         (build_succ_graph): Add edges from STOREDANYTHING to all
14025         non-direct nodes.
14026         (init_base_vars): Initialize STOREDANYTHING.
14027         (compute_points_to_sets): Free substitution info after
14028         building the succ graph.
14029         (ipa_pta_execute): Likewise.
14030
14031         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
14032         field.
14033         (do_ds_constraint): Do not add to special var or non-pointer
14034         field solutions.
14035         (type_could_have_pointers): Split out from ...
14036         (could_have_pointers): ... here.  For arrays use the element type.
14037         (create_variable_info_for): Initialize may_have_pointers.
14038         (new_var_info): Likewise.
14039         (handle_lhs_call): Make the HEAP variable unknown-sized.
14040         (intra_create_variable_infos): Use a type with pointers for
14041         PARM_NOALIAS, make it unknown-sized.
14042
14043 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14044
14045         PR target/39224
14046         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
14047
14048 2009-02-18  Jason Merrill  <jason@redhat.com>
14049
14050         PR target/39179
14051         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
14052         value if DECL_EXTERNAL.
14053         * tree-sra.c (sra_walk_gimple_assign): Likewise.
14054         * target.h (gcc_target::binds_local_p): Clarify "module".
14055         * tree.h (TREE_PUBLIC): Clarify "module".
14056
14057 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
14058
14059         PR target/38891
14060         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
14061         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
14062
14063 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
14064
14065         PR target/39082
14066         * c.opt (Wabi): Support C and ObjC.
14067         (Wpsabi): New.
14068
14069         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
14070
14071         * config/i386/i386.c (classify_argument): Warn once about the ABI
14072         change when passing union with long double.
14073
14074         * doc/invoke.texi: Update -Wabi for warning psABI changes.
14075
14076 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
14077
14078         PR c/35447
14079         * c-parser.c (c_parser_compound_statement): Always enter and leave
14080         a scope.
14081
14082 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14083
14084         PR target/34587
14085         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
14086
14087 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
14088
14089         PR tree-optimization/36922
14090         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
14091         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
14092         Likewise.
14093
14094 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
14095
14096         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
14097         to 0 for EABI64.
14098
14099 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
14100
14101         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
14102
14103 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
14104
14105         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
14106         tree sharing.
14107
14108 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
14109             Richard Sandiford  <rdsandiford@googlemail.com>
14110
14111         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
14112         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
14113         (loongson_biadd): ...this.
14114
14115 2009-02-17  Richard Guenther  <rguenther@suse.de>
14116
14117         PR tree-optimization/39202
14118         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
14119         a var make sure to follow existing collapses.
14120
14121 2009-02-17  Richard Guenther  <rguenther@suse.de>
14122
14123         PR middle-end/39214
14124         * langhooks.c (lhd_print_error_function): Check for NULL block.
14125
14126 2009-02-17  Richard Guenther  <rguenther@suse.de>
14127
14128         PR tree-optimization/39204
14129         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
14130         of the PHI arg.
14131
14132 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
14133
14134         * config/soft-fp/double.h: Update from glibc CVS.
14135
14136 2009-02-17  Richard Guenther  <rguenther@suse.de>
14137
14138         PR tree-optimization/39207
14139         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
14140         strict-aliasing warnings for pointers pointing to NULL.
14141
14142 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
14143
14144         PR c/35446
14145         * c-parser.c (c_parser_braced_init): Call pop_init_level when
14146         skipping until next close brace.
14147
14148 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
14149
14150         PR target/37049
14151         * config/i386/i386.c (ix86_expand_push): Set memory alignment
14152         to function argument boundary.
14153
14154 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
14155
14156         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
14157         in the lea_add. Reload eventually constraints it properly.
14158         * config/picochip/constraints.md: Remove the target constraint
14159         "b", since it is not needed anymore.
14160
14161 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
14162
14163         * gthr-dce.h: Uglify function parameter and local variable names.
14164         * gthr-gnat.h: Likewise.
14165         * gthr-mipssde.h: Likewise.
14166         * gthr-nks.h: Likewise.
14167         * gthr-posix95.h: Likewise.
14168         * gthr-posix.h: Likewise.
14169         * gthr-rtems.h: Likewise.
14170         * gthr-single.h: Likewise.
14171         * gthr-solaris.h: Likewise.
14172         * gthr-tpf.h: Likewise.
14173         * gthr-vxworks.h: Likewise.
14174         * gthr-win32.h: Likewise.
14175
14176 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
14177
14178         PR target/39196
14179         * config/i386/i386.md: Restrict the new peephole2 to move
14180         between MMX/SSE registers.
14181
14182 2009-02-15  Richard Guenther  <rguenther@suse.de>
14183
14184         Revert
14185         2009-02-13  Richard Guenther  <rguenther@suse.de>
14186
14187         * configure.ac: Enable LFS.
14188         * configure: Re-generate.
14189         * config.in: Likewise.
14190
14191 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14192
14193         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
14194         spu_srqwbyte, spu_srqwbytebc): Define.
14195         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
14196         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
14197         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
14198         "shrqby_<mode>"): New insn-and-split patterns.
14199         * config/spu/spu.c (expand_builtin_args): Determine and return
14200         number of operands using spu_builtin_description data.
14201         (spu_expand_builtin_1): Use it.
14202
14203 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
14204
14205         PR target/38056
14206         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
14207         TARGET_CONST_GP.
14208
14209 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
14210
14211         PR target/39149
14212         * config/i386/i386.c (override_options): Correct warning
14213         messages for -malign-loops, -malign-jumps and -malign-functions.
14214
14215 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
14216
14217         PR target/39152
14218         * config/i386/i386.md: Restrict the new peephole2 to move
14219         between the general purpose registers.
14220
14221 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
14222
14223         PR target/39162
14224         * config/i386/i386.c (type_natural_mode): Add a new argument.
14225         Return the original mode and warn ABI change if vector size is 32byte.
14226         (function_arg_advance): Updated.
14227         (function_arg): Likewise.
14228         (ix86_function_value): Likewise.
14229         (ix86_return_in_memory): Likewise.
14230         (ix86_sol10_return_in_memory): Likewise.
14231         (ix86_gimplify_va_arg): Likewise.
14232         (function_arg_32): Don't warn ABX ABI change here.
14233         (function_arg_64): Likewise.
14234
14235 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
14236
14237         * loop-iv.c (implies_p): In the final case, test that operands 0
14238         of the two comparisons match.
14239
14240         * config/bfin/bfin.c (find_prev_insn_start): New function.
14241         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
14242         (find_next_insn_start): Move.
14243
14244 2009-02-13  Richard Guenther  <rguenther@suse.de>
14245
14246         * configure.ac: Enable LFS.
14247         * configure: Re-generate.
14248         * config.in: Likewise.
14249
14250 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
14251
14252         PR c/35444
14253         * c-parser.c (c_parser_parms_list_declarator): Discard pending
14254         sizes on syntax error after some arguments have been parsed.
14255
14256 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
14257
14258         * doc/invoke.texi (-fira): Remove.
14259
14260 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
14261
14262         * caller-save.c: Replace regclass.c with reginfo.c in comments.
14263         * recog.c: Likewise.
14264         * rtl.h: Likewise.
14265
14266 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
14267
14268         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
14269         (umul_ppmm): Likewise.
14270         (count_leading_zeros): Likewise.
14271         (count_trailing_zeros): Likewise.
14272         (UMUL_TIME): Likewise.
14273
14274 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
14275
14276         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
14277         soft-fp/t-softfp to tmake_file.
14278
14279         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
14280         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
14281         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
14282         IA64_BUILTIN_INFQ]: New.
14283         (ia64_init_builtins): Initialize __builtin_infq,
14284         __builtin_fabsq and __builtin_copysignq if not HPUX.
14285         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
14286         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
14287
14288         * config/ia64/lib1funcs.asm (__divtf3): Define only if
14289         SHARED is defined.
14290         (__fixtfti): Likewise.
14291         (__fixunstfti): Likewise.
14292         (__floattitf): Likewise.
14293
14294         * config/ia64/libgcc-glibc.ver: New.
14295         * config/ia64/t-fprules-softfp: Likewise.
14296         * config/ia64/sfp-machine.h: Likewise.
14297
14298         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
14299         (LIBGCC2_TF_CEXT): Likewise.
14300         (TF_SIZE): Likewise.
14301         (TARGET_INIT_LIBFUNCS): Likewise.
14302
14303         * config/ia64/t-glibc (SHLINB_MAPFILES):
14304         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
14305
14306 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
14307
14308         * config/i386/i386.c (construct_container): Rewrite processing
14309         BLKmode with X86_64_SSE_CLASS.
14310
14311 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
14312
14313         PR target/39152
14314         * config/i386/i386.md: Replace simplify_replace_rtx with
14315         replace_rtx in the new peephole2.
14316
14317 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
14318
14319         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
14320         loop unrolling do not happen at -O2.
14321
14322 2009-02-12  Michael Matz  <matz@suse.de>
14323
14324         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
14325
14326 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
14327
14328         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
14329         for -g3.
14330
14331 2009-02-12  Ben Elliston  <bje@au.ibm.com>
14332
14333         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
14334         patterns when updating the back chain.  Missed in the 2009-02-10
14335         change.
14336
14337 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
14338
14339         * doc/extend.texi (Decimal Floating Types): Update identifier of
14340         draft TR and list of missing support.
14341
14342 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
14343
14344         PR middle-end/39154
14345         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
14346         bit to variable length decl's flags, add it also to its
14347         pointer replacement variable.
14348
14349 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
14350             Jakub Jelinek  <jakub@redhat.com>
14351
14352         PR target/39118
14353         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
14354         (memory_blockage): New expander.
14355         (*memory_blockage): New insn pattern.
14356         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
14357         instead of general blockage at the end of function prologue when
14358         frame pointer is used to access red zone area.  Do not emit blockage
14359         when profiling, it is emitted in generic code.
14360         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
14361         function epilogue when frame pointer is used to access red zone area.
14362
14363 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
14364
14365         PR target/38824
14366         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
14367         by arithmetic with memory operands.
14368         * config/i386/predicates.md (commutative_operator): New.
14369
14370 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
14371
14372         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
14373         bulleted lists.
14374
14375 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
14376
14377         * alias.h (record_alias_subset): Declare.
14378         * alias.c (record_alias_subset): Make global.
14379
14380 2009-02-10  Nick Clifton  <nickc@redhat.com>
14381
14382         * tree-parloops.c: Change license to GPLv3.
14383         * ipa-struct-reorg.c: Change license to GPLv3.
14384         * ipa-struct-reorg.h: Change license to GPLv3.
14385
14386 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
14387
14388         PR c/39084
14389         * c-decl.c (start_struct): Return NULL on error.
14390
14391 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
14392
14393         PR middle-end/39124
14394         * cfgloopmanip.c (remove_path): Call remove_bbs after
14395         cancel_loop_tree, not before it.
14396
14397         PR target/39139
14398         * function.h (struct function): Add has_local_explicit_reg_vars bit.
14399         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
14400         VAR_DECLs were seen.
14401         * tree-ssa-live.c (remove_unused_locals): Recompute
14402         cfun->has_local_explicit_reg_vars.
14403         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
14404         copies or clearings if cfun->has_local_explicit_reg_vars.
14405
14406 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
14407
14408         PR target/39118
14409         * config/i386/i386.c (expand_prologue): Emit blockage at the end
14410         of function prologue when frame pointer is used to access
14411         red zone area.
14412
14413 2009-02-10  Richard Guenther  <rguenther@suse.de>
14414
14415         PR middle-end/39127
14416         * gimplify.c (gimple_regimplify_operands): Always look if
14417         we need to create a temporary.
14418
14419 2009-02-10  Richard Guenther  <rguenther@suse.de>
14420
14421         PR tree-optimization/39132
14422         * tree-loop-distribution.c (todo): New global var.
14423         (generate_memset_zero): Trigger TODO_rebuild_alias.
14424         (tree_loop_distribution): Return todo.
14425
14426 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
14427
14428         PR target/39119
14429         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
14430         (x86_64_reg_class_name): Removed.
14431         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
14432         first one isn't X86_64_SSE_CLASS or any other ones aren't
14433         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
14434         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
14435         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
14436         and 3 X86_64_SSEUP_CLASS.
14437         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
14438         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
14439
14440 2009-02-10  Ben Elliston  <bje@au.ibm.com>
14441
14442         * config/rs6000/rs6000.md (allocate_stack): Always use an update
14443         form instruction to update the stack back chain word, even if the
14444         user has disabled the generation of update instructions.
14445         (movdi_<mode>_update_stack): New.
14446         (movsi_update_stack): Likewise.
14447         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
14448         always use an update form instruction to update the stack back
14449         chain word.
14450
14451 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
14452
14453         PR middle-end/38953
14454         * graphite.c (if_region_set_false_region): After moving a region in
14455         the false branch of a condition, remove the empty dummy basic block.
14456         (gloog): Remove wrong fix for PR38953.
14457
14458 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14459
14460         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
14461         generation due to implicit sign extension.
14462
14463 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
14464
14465         PR middle-end/38981
14466         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
14467         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
14468
14469 2009-02-09  Richard Guenther  <rguenther@suse.de>
14470
14471         PR middle-end/35202
14472         * convert.c (convert_to_real): Disable (float)fn((double)x)
14473         to fnf(x) conversion if errno differences may occur and
14474         -fmath-errno is set.
14475
14476 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
14477
14478         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
14479         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14480         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14481
14482 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
14483
14484         PR c/35434
14485         * c-common.c (handle_alias_attribute): Disallow attribute for
14486         anything not a FUNCTION_DECL or VAR_DECL.
14487
14488 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
14489
14490         PR c/39035
14491         * real.c (do_compare): Special-case compare of zero against
14492         decimal float value.
14493
14494 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
14495
14496         PR c/36432
14497         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
14498         as indicating flexible array members unless the field itself is
14499         being declarared as the incomplete array.
14500
14501 2009-02-06  Jan Hubicka  <jh@suse.cz>
14502
14503         PR tree-optimization/38844
14504         * ipa-inline.c (try_inline): Stop inlining recursion when edge
14505         is already inlined.
14506
14507 2009-02-06  Richard Guenther  <rguenther@suse.de>
14508
14509         PR middle-end/38977
14510         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
14511         fork because we may expand it as __gcov_fork.
14512
14513 2009-02-06  Nick Clifton  <nickc@redhat.com>
14514
14515         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
14516
14517 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
14518
14519         PR tree-optimization/35659
14520         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
14521         vn_phi_eq): Shortcut if hashcode does not match.
14522         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
14523         NULL operands.
14524         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
14525         and avoid iterative_hash_expr.
14526         (FOR_EACH_VALUE_ID_IN_SET): New.
14527         (value_id_compare): Remove.
14528         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
14529         sort expressions by value id.
14530
14531 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
14532
14533         PR target/38991
14534         * config/sh/predicates.md (general_movsrc_operand): Don't check
14535         the subreg of system registers here.
14536
14537 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
14538
14539         PR c++/39106
14540         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
14541         on the copied decl.
14542
14543 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
14544
14545         PR rtl-optimization/39110
14546         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
14547         addresses, not aligned ones.
14548
14549 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
14550             Richard Guenther  <rguenther@suse.de>
14551
14552         PR tree-optimization/39100
14553         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
14554         comment says and add edges.
14555
14556 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
14557
14558         PR c/35435
14559         * c-common.c (handle_tls_model_attribute): Ignore attribute for
14560         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
14561
14562 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
14563
14564         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
14565         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
14566         register_bb_in_sese, new_sese, free_sese): Moved.
14567         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
14568         outermost_loop_in_scop, build_scop_iteration_domain,
14569         expand_scalar_variables_ssa_name, get_vdef_before_scop,
14570         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
14571         Use loop_in_sese_p instead of loop_in_scop_p.
14572         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
14573         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
14574         (scopdet_basic_block_info): Fix bug in scop detection.
14575         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
14576         eq_loop_to_cloog_loop): Remove.
14577         (nb_loops_around_loop_in_scop, nb_loop
14578         ref_nb_loops): Moved here...
14579         * graphite.h (ref_nb_loops): ... from here.
14580         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
14581         (loop_domain_dim, loop_iteration_vector_dim): Remove.
14582         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
14583         * testsuite/gcc.dg/graphite/scop-19.c: New
14584
14585 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
14586             Hans-Peter Nilsson  <hp@axis.com>
14587
14588         PR rtl-optimization/37889
14589         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
14590         Move offset handling from PLUS to before the switch.  Use new
14591         arguments when considering SYMBOL_REFs too.
14592         (rtx_addr_can_trap_p): Pass dummy offset and size.
14593         (enum may_trap_p_flags): Remove.
14594         (may_trap_p_1): Pass size from MEM_SIZE.
14595
14596         PR rtl-optimization/38921
14597         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
14598         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
14599         * rtlanal.c (may_trap_after_code_motion_p): Delete.
14600         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
14601
14602 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
14603
14604         AVX Programming Reference (January, 2009)
14605         * config/i386/sse.md (*vpclmulqdq): New.
14606
14607 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
14608
14609         PR tree-optimization/38977
14610         PR gcov-profile/38292
14611         * calls.c (special_function_p): Disregard __builtin_ prefix.
14612
14613 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
14614
14615         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
14616         non-indexable addresses even before reload.
14617
14618 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
14619
14620         PR c/29129
14621         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
14622         as having variable size.  Do not give an error for unnamed
14623         parameters with [*] declarators.  Give a warning for type names
14624         with [*] declarators and mark them as variable size.
14625         * c-parser.c (c_parser_sizeof_expression): Do not give an error
14626         for sizeof applied to [*] type names.
14627
14628 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14629
14630         PR C++/36607
14631         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
14632
14633 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
14634
14635         * gcc.c (process_command): Update copyright notice dates.
14636         * gcov.c (print_version): Likewise.
14637         * gcov-dump.c (print_version): Likewise.
14638         * mips-tfile.c (main): Likewise.
14639         * mips-tdump.c (main): Likewise.
14640
14641 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
14642
14643         PR c/35433
14644         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
14645         for composite type involving a zero-length array type.
14646
14647 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
14648
14649         PR target/35318
14650         * function.c (match_asm_constraints_1): Skip over
14651         initial optional % in the constraint.
14652
14653         PR inline-asm/39059
14654         * c-parser.c (c_parser_postfix_expression): If fixed point is not
14655         supported, don't accept FIXED_CSTs.
14656         * c-decl.c (finish_declspecs): Error if fixed point is not supported
14657         and _Sat is used without _Fract/_Accum.  Set specs->type to
14658         integer_type_node for cts_fract/cts_accum if fixed point is not
14659         supported.
14660
14661 2009-02-02  Catherine Moore  <clm@codesourcery.com>
14662
14663         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
14664
14665 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
14666
14667         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
14668         (ABI_HAS_64BIT_SYMBOLS): Use it.
14669         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
14670
14671 2009-02-02  Paul Brook  <paul@codesourcery.com>
14672
14673         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
14674
14675 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
14676
14677         PR inline-asm/39058
14678         * recog.h (asm_operand_ok): Add constraints argument.
14679         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
14680         recurse on matching constraint.
14681         (check_asm_operands): Pass constraints as 3rd argument to
14682         asm_operand_ok.  Don't look up matching constraint here.
14683         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
14684         to asm_operand_ok.
14685
14686 2009-02-02  Ben Elliston  <bje@au.ibm.com>
14687
14688         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
14689         TARGET_NARROW_VOLATILE_BITFIELD macro names.
14690
14691 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14692
14693         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
14694         information.  Remove some obsolete information.  Reorganize.
14695
14696         * config/pa/fptr.c: Revert license to GPL 2.
14697         * config/pa/milli64.S: Likewise.
14698
14699 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
14700
14701         PR target/38904
14702         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
14703         LIBRARY name in, instead of hard-coding it.
14704         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
14705         extra target make frag to tmake_files according to EH model.
14706         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
14707         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
14708         frags that define makefile variable EH_MODEL appropriately.
14709         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
14710         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
14711         to "-sjlj" according to type of EH configured.
14712         (LIBGCC_SONAME):  Concatenate it to shared library base name.
14713         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
14714         to "_sjlj" according to type of EH configured.
14715         (LIBGCC_SONAME):  Concatenate it to shared library base name.
14716         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
14717         (SHLIB_LINK):  Add missing semicolon to if-else construct.
14718         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
14719         string value of "pe_dll" command-line option.
14720         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
14721         (SHLIB_SONAME):  Use it when overriding t-cygming default.
14722         (SHLIB_IMPLIB):  Override t-cygming default.
14723         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
14724         string value of "pe_dll" command-line option.
14725
14726 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
14727
14728         PR target/38952
14729         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
14730         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
14731
14732 2009-01-31  Richard Guenther  <rguenther@suse.de>
14733
14734         PR tree-optimization/38937
14735         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
14736         computing the transitive closure.
14737
14738 2009-01-30  Richard Guenther  <rguenther@suse.de>
14739
14740         PR tree-optimization/39041
14741         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
14742         Propagate variable indices only if the types match for this stmt.
14743
14744 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
14745
14746         PR target/39013
14747         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
14748         inline but never defined.
14749
14750 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
14751
14752         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
14753         (*insv_h_di_reg_extimm): New insn.
14754         (*insv_l<mode>_reg_extimm): New insn.
14755
14756 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14757
14758         * config/picochip/picochip.c (flag_conserve_stack): set
14759         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
14760         fconserve-stack. Reduce call-overhead used by inliner.
14761
14762 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14763
14764         PR/38157
14765         * common.opt (flag_conserve_stack): Initialised to zero.
14766
14767 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
14768
14769         PR/39002
14770         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
14771         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
14772         method.
14773
14774 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
14775
14776         * ira-color.c (allocno_reload_assign): Update comments.
14777         * regmove.c (regmove_optimize): Likewise.
14778
14779         * ra.h: Removed.
14780
14781 2009-01-29  Robert Millan  <rmh@aybabtu.com>
14782
14783         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
14784         * config/i386/kopensolaris-gnu.h: New file.  Undefine
14785         `MD_UNWIND_SUPPORT'.
14786         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
14787
14788 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
14789
14790         PR tree-optimization/39007
14791         * tree-loop-distribution.c (generate_builtin): Use
14792         recompute_dominator to compute the immediate dominator of the
14793         basic block just after the loop.
14794
14795 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14796
14797         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
14798         (ASM_OUTPUT_DWARF_PCREL): Define.
14799
14800 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
14801
14802         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
14803         * doc/passes.texi: Remove entries about regclass, local-alloc, and
14804         global.  Modify entries about regmove and IRA.
14805
14806         * ra-conflict.c: Remove the file.
14807
14808         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
14809
14810         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
14811         (pass_regclass_init): Rename to pass_reginfo_init.
14812
14813         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
14814
14815         * toplev.h (flag_ira): Remove.
14816
14817         * caller-save.c (setup_save_areas): Remove flag_ira.
14818
14819         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
14820
14821         * global.c: Remove the file.
14822
14823         * opts.c (decode_options): Remove flag_ira.
14824
14825         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
14826
14827         * regmove.c: Modify file description.
14828         (find_use_as_address, try_auto_increment): Define them only if
14829         AUTO_INC_DEC is defined.
14830         (replacement_quality, replace_in_call_usage, fixup_match_1,
14831         stable_and_no_regs_but_for_p): Remove.
14832         (reg_set_in_bb): Make it static.
14833         (regmove_optimize): Remove flag_ira and code which worked for
14834         !flag_ira.
14835
14836         * local-alloc.c: Remove the file.
14837
14838         * common.opt (fira): Remove.
14839
14840         * ira.c: Include except.h.
14841         (eliminable_regset): Move from global.c.
14842         (mark_elimination): Ditto.  Remove flag_ira.
14843         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
14844         equiv_mem_modified, validate_equiv_mem_from_store,
14845         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
14846         contains_replace_regs, memref_referenced_p, memref_used_between_p,
14847         no_equiv, recorded_label_ref): Move from local-alloc.c.
14848         (update_equiv_regs): Ditto.  Make it static.
14849         (print_insn_chain, print_insn_chains): Move it from global.c.
14850         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
14851         (build_insn_chain): Ditto.  Make it static.
14852         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
14853         Rename to init_live_subregs.
14854         (gate_ira): Remove flag_ira.
14855
14856         * regclass.c: Rename reginfo.c.  Change file description.
14857         (FORBIDDEN_INC_DEC_CLASSES): Remove.
14858         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
14859         (init_reg_sets_1): Remove code for evaluation of
14860         reg_class_superclasses and losing_caller_save_reg_set.
14861         (init_regs): Remove init_reg_autoinc.
14862         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
14863         ok_for_base_p_nonstrict): Remove.
14864         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
14865         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
14866         corresponding entries.
14867         (dump_regclass, record_operand_costs, scan_one_insn,
14868         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
14869         record_address_regs, auto_inc_dec_reg_p): Remove.
14870         (gt-regclass.h): Rename to gt-reginfo.h.
14871
14872         * rtl.h (dump_global_regs, retry_global_alloc,
14873         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
14874
14875         * Makefile.in (RA_H): Remove.
14876         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
14877         Rename regclass.o to reginfo.o.
14878         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
14879         gt-reginfo.h.
14880         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
14881         (GTFILES): Rename regclass.c to reginfo.c.
14882
14883         * passes.c (init_optimization_passes): Remove pass_local_alloc and
14884         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
14885
14886         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
14887         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
14888         Remove flag_ira.
14889         (finish_spills): Ditto.  Remove code for !flag_ira.
14890
14891 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
14892
14893         PR middle-end/35854
14894         * doc/invoke.texi (rtl debug options): Complete rewrite.
14895         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
14896         to auto_inc_dec".
14897         * mode-switching.c (pass_mode_switching): Rename pass from
14898         "mode-sw" to "mode_sw".
14899         * except.c (pass_convert_to_eh_ranges): Rename pass from
14900         "eh-ranges" to "eh_ranges".
14901         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
14902         to "subreg1".
14903
14904
14905 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
14906             Alexander Monakov  <amonakov@ispras.ru>
14907
14908         PR middle-end/38857
14909         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
14910         register.
14911         (move_exprs_to_boundary): Change return type and pass through
14912         should_move from move_op.  Relax assert.  Update usage ...
14913         (schedule_expr_on_boundary): ... here.  Use should_move instead of
14914         cant_move.
14915         (move_op_orig_expr_found): Indicate that insn was disconnected from
14916         stream.
14917         (code_motion_process_successors): Do not call after_merge_succs
14918         callback if original expression was not found when traversing any of
14919         the branches.
14920         (code_motion_path_driver): Change return type.  Update prototype.
14921         (move_op): Update comment.  Add a new parameter (should_move).  Update
14922         prototype.  Set *should_move based on indication provided by
14923         move_op_orig_expr_found.
14924
14925 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
14926
14927         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
14928         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
14929         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
14930         * config/rs6000/rs6000.c (rs6000_override_options): Default
14931         avoid-indexed-addresses on for Power6, off for everything else.
14932         (avoiding_indexed_address_p): New function.
14933         (rs6000_legitimize_address): Use it.
14934         (rs6000_legitimate_address): Likewise.
14935         * config/rs6000/rs6000.md (movXX_updateX): Likewise
14936
14937 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
14938
14939         PR tree-optimization/38997
14940         * tree-loop-distribution.c (generate_memset_zero): Use
14941         POINTER_PLUS_EXPR for a pointer addition.
14942
14943 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14944
14945         * config/s390/s390.md (bswap<mode>2): New pattern added.
14946
14947 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
14948
14949         * config/s390/s390.md (*tls_load_31): Added type attribute.
14950
14951 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
14952
14953         * config/s390/s390.md: Fix a few comments.
14954
14955 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
14956
14957         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
14958         (*tm<mode>_full): Fixed z10prop attribute.
14959         (*tst<mode>_extimm): Fixed z10prop attribute.
14960         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
14961         (*tstqiCCT_cconly): Fixed z10prop attribute.
14962         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
14963         (*movsi_larl): Fixed z10prop attribute.
14964         (*movsi_zarch): Fixed z10prop attribute.
14965         (*movsi_eas): Fixed z10prop attribute.
14966         (*movhi): Fixed z10prop attribute.
14967         (*movqi): Fixed z10prop attribute.
14968         (*movstrictqi): Fixed z10prop attribute.
14969         (*mov<mode>): Fixed z10prop attribute.
14970         (*movcc): Fixed z10prop attribute.
14971         (*sethighpartdi_64): Fixed z10prop attribute.
14972         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
14973         (*negdi2_sign_cc): Fixed z10prop attribute.
14974         (*negdi2_sign): Fixed z10prop attribute.
14975         (*absdi2_sign_cc): Fixed z10prop attribute.
14976         (*absdi2_sign): Fixed z10prop attribute.
14977         (*negabsdi2_sign_cc): Fixed z10prop attribute.
14978         (*negabsdi2_sign): Fixed z10prop attribute.
14979         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
14980         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
14981         (doloop_si64): Fixed z10prop attribute.
14982         (doloop_si31): Fixed z10prop attribute.
14983         (doloop_long): Fixed z10prop attribute.
14984         (indirect_jump): Fixed z10prop attribute.
14985         (nop): Fixed z10prop attribute.
14986         (main_base_64): Fixed z10prop attribute.
14987         (reload_base_64): Fixed z10prop attribute.
14988
14989 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
14990
14991         PR rtl-optimization/38740
14992         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
14993         if !optimize.
14994         * config/mips/mips.c (mips_reorg): Likewise.
14995
14996 2009-01-28  Richard Guenther  <rguenther@suse.de>
14997
14998         PR tree-optimization/38926
14999         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
15000         with the correct value id to a value.
15001         (do_regular_insertion): Use the value number of edoubleprime
15002         for the value number of the expr.
15003
15004         Revert
15005         2008-08-21  Richard Guenther  <rguenther@suse.de>
15006
15007         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
15008         a PHI ask VN if it is already available.
15009         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
15010         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
15011
15012 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
15013
15014         PR middle-end/38934
15015         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
15016         set to varying whenever max has TREE_OVERFLOW set, similarly
15017         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
15018
15019 2009-01-28  Richard Guenther  <rguenther@suse.de>
15020
15021         PR middle-end/38908
15022         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
15023         uninitialized aggregate uses in call arguments.
15024
15025 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
15026
15027         PR tree-optimization/38984
15028         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
15029         the nothing_id variable if -fno-delete-null-pointer-checks.
15030
15031 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
15032
15033         PR target/38988
15034         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
15035         (set_got_offset_rex64): Ditto.
15036
15037 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
15038
15039         PR target/38941
15040         * doc/extend.texi: Improve local variable with asm reg.
15041
15042 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
15043
15044         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
15045         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
15046         was not supplied then set warn_packed_bitfield_compat to the
15047         default value of 1.
15048         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
15049         against 1.
15050
15051 2009-01-27  Richard Guenther  <rguenther@suse.de>
15052
15053         PR tree-optimization/38503
15054         * cfgexpand.c (expand_gimple_basic_block): Ignore
15055         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
15056         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
15057         variables that cannot have TBAA applied.
15058         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
15059         statements.
15060
15061 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
15062
15063         PR middle-end/38969
15064         * calls.c (initialize_argument_information): Do not wrap complex
15065         arguments in SAVE_EXPR.
15066
15067 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
15068
15069         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
15070         (INSTALL_LIBGCC): Revert typo commit.
15071
15072 2009-01-26  Richard Guenther  <rguenther@suse.de>
15073
15074         PR tree-optimization/38745
15075         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
15076         from special handling.
15077
15078 2009-01-26  Richard Guenther  <rguenther@suse.de>
15079
15080         PR tree-optimization/38745
15081         * tree-ssa.c (execute_update_addresses_taken): Do not include
15082         variables that cannot possibly be a register in not_reg_needs.
15083         Do not clear TREE_ADDRESSABLE on vars that may not become
15084         registers.
15085         * tree-ssa.c (update_alias_info_1): Include those in the set
15086         of addressable vars.
15087
15088 2009-01-26  Richard Guenther  <rguenther@suse.de>
15089
15090         PR middle-end/38851
15091         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
15092         * tree-ssa-dse.c: Include langhooks.h
15093         (execute_simple_dse): Remove stores with zero size.
15094
15095 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
15096
15097         PR c/38957
15098         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
15099         as PLUS_EXPR.
15100
15101 2009-01-24  Julian Brown  <julian@codesourcery.com>
15102
15103         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
15104         config/arm/linux-atomic.c.
15105         * config/arm/linux-atomic.c: New.
15106
15107 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
15108
15109         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
15110         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
15111         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
15112
15113 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15114
15115         PR c/38938
15116         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
15117         properly.
15118
15119 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
15120
15121         PR tree-optimization/38953
15122         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
15123         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
15124         (gloog): Split the exit of the scop when the scop exit is a loop exit.
15125         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
15126         changed the CFG.
15127
15128 2009-01-24  Paul Brook  <paul@codesourcery.com>
15129
15130         * config/arm/neon.md (neon_type): Move to arm.md.
15131         (neon_mov<VSTRUCT>): Add neon_type attribute.
15132         * config/arm/arm.md (neon_type): Move to here.
15133         (conds): Add "unconditioal" and use as default for NEON insns.
15134
15135 2009-01-24  Ben Elliston  <bje@au.ibm.com>
15136
15137         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
15138         void *' warning from -Wc++-compat.
15139         * Makefile.in (dominance.o-warn): Remove.
15140
15141 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
15142
15143         PR tree-optimization/38932
15144         * fold-const.c (fold_unary_ignore_overflow): New.
15145         * tree.h (fold_unary_ignore_overflow): Declare.
15146         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
15147         * tree-ssa-sccvn.c (visit_reference_op_load,
15148         simplify_unary_expression): Likewise.
15149
15150 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
15151
15152         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
15153         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
15154         regardless of their type.
15155         * c-common.c (handle_packed_attribute): Don't ignore packed on
15156         bitfields.
15157         * c.opt (Wpacked-bitfield-compat): New warning option.
15158         * stor-layout.c (place_field): Warn if offset of a field changed.
15159         * doc/extend.texi (packed): Mention the ABI change.
15160         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
15161         (Warning Options): Add it to the list.
15162
15163 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15164
15165         * c-opts.c (c_common_post_options): Fix a typo in comments.
15166
15167 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
15168
15169         PR middle-end/38615
15170         * gimplify.c (gimplify_init_constructor): Fix promotion of const
15171         variables to static.
15172         * doc/invoke.texi (-fmerge-all-constants): Update description.
15173
15174 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
15175
15176         PR target/38931
15177         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
15178         (*movdi_1_rex64): Use type "mmx" for alternative 5.
15179
15180 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
15181
15182         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
15183         a word boundary.
15184         (LOCAL_ALIGNMENT): Similarly.
15185
15186 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
15187             Joseph Myers  <joseph@codesourcery.com>
15188
15189         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
15190         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
15191         * config/arm/arm-tune.md: Regenerate.
15192         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
15193         -march=iwmmxt2.
15194
15195 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
15196
15197         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
15198         version number to five.
15199
15200 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
15201
15202         PR c++/38930
15203         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
15204         * c-common.c (set_underlying_type): Likewise.
15205         (is_typedef_decl ): Likewise
15206         * tree.h: Likewise
15207         (set_underlying_type): Likewise.
15208         (is_typedef_type): Likewise.
15209
15210 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
15211
15212         PR middle-end/38587
15213         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
15214         crossing setjmps.
15215
15216 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
15217
15218         PR bootstrap/37660
15219         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
15220         (LIBGCC_SPEC):  Don't define.
15221         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
15222
15223 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
15224
15225         PR rtl-optimization/38879
15226         * alias.c (base_alias_check): Unaligned access via AND address can
15227         alias all surrounding object types except those with sizes equal
15228         or wider than the size of unaligned access.
15229
15230 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
15231
15232         PR c++/26693
15233         * c-decl.c (clone_underlying_type): Move this ...
15234         * c-common.c (set_underlying_type): ... here.
15235         Also, make sure the function properly sets TYPE_STUB_DECL() on
15236         the newly created typedef variant type.
15237         (is_typedef_decl ): New entry point.
15238         * tree.h: Added a new member member_types_needing_access_check to
15239         struct tree_decl_non_common.
15240         (set_underlying_type): New entry point.
15241         (is_typedef_type): Likewise.
15242
15243 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
15244
15245         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
15246         Check whether two instructions have memory references that
15247         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
15248         are helper functions for traversing.
15249         * alias.h (insn_alias_sets_confilict_p): New prototypes.
15250         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
15251         not to draw dependency edge for instructions with non-conflicting
15252         alias sets.
15253
15254 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
15255
15256         PR other/38758
15257         * longlong.h: Update copyright years.  Use soft-fp license notice.
15258         Sync __clz_tab declaration with glibc.
15259
15260 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
15261
15262         PR target/30687
15263         * doc/extend.texi (syscall_linkage): New.
15264         (version_id): Modify.
15265
15266 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15267             Richard Guenther  <rguenther@suse.de>
15268
15269         PR tree-optimization/38747
15270         PR tree-optimization/38748
15271         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
15272         conversion if the base address is an indirect reference and the
15273         aliasing sets could cause issues.
15274
15275 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
15276
15277         * common.opt (fgraphite, fgraphite-identity): Add comment for
15278         explaining why these options are not documented.
15279
15280 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
15281
15282         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
15283         gimple_call_lhs is NULL.
15284
15285 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15286
15287         PR target/38868
15288         * emit-rtl.c (adjust_address_1): Make sure memref is never
15289         overwritten.
15290
15291 2009-01-20  Ben Elliston  <bje@au.ibm.com>
15292
15293         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
15294         const qualifier from arg parameter. Remove unnecessary cast to char *.
15295         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
15296         const qualifier from arg 2.
15297
15298 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
15299
15300         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
15301
15302 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
15303
15304         PR c/38869
15305         * rtl.h (reinit_regs): New prototype.
15306         * regclass.c: Include ira.h.
15307         (reinit_regs): New.
15308         * Makefile.in (regclass.o): Add ira.h.
15309         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
15310
15311 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
15312
15313         PR target/38736
15314         * c-common.c (handle_aligned_attribute): Use
15315         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
15316         default alignment value.
15317
15318         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
15319
15320         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
15321         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
15322
15323         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
15324         __BIGGEST_ALIGNMENT__.
15325
15326         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
15327
15328 2009-01-18  Richard Guenther  <rguenther@suse.de>
15329
15330         PR tree-optimization/38819
15331         * tree-flow.h (operation_could_trap_helper_p): Declare.
15332         * tree-eh.c (operation_could_trap_helper_p): Export.
15333         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
15334         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
15335         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
15336         are about to insert a possibly trapping instruction and fail
15337         in this case.
15338
15339 2009-01-18  Andreas Schwab  <schwab@suse.de>
15340
15341         * doc/install.texi (Configuration): Remove obsolete paragraph
15342         about use of --with-gnu-ld with --with-gnu-as.
15343
15344 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
15345
15346         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
15347         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
15348         Follow spelling conventions.
15349
15350 2009-01-18  Ben Elliston  <bje@au.ibm.com>
15351
15352         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
15353         C++ warning about implicit conversion from void * to struct
15354         bitmap_head_def *.
15355         (bitmap_obstack_free): Likewise for bitmap_element *.
15356         * Makefile.in (bitmap.o-warn): Remove.
15357
15358 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
15359
15360         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
15361
15362 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
15363             Tobias Grosser  <tobi.grosser@amd.com>
15364
15365         * graphite.c (graphite_trans_scop_block): Do not block single
15366         nested loops.
15367
15368 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
15369
15370         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
15371         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
15372         test with assertion.
15373
15374 2009-01-16  Richard Guenther  <rguenther@suse.de>
15375
15376         PR tree-optimization/38835
15377         PR middle-end/36227
15378         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
15379         and INT + PTR -> (INT)(PTR p+ INT) folding.
15380         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
15381
15382 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
15383
15384         PR target/38554
15385         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
15386         the subreg from a lowpart subreg if it is also casting the value.
15387
15388 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15389             Tobias Grosser  <tobi.grosser@amd.com>
15390
15391         * graphite.c (compare_prefix_loops): New.
15392         (build_scop_canonical_schedules): Rewritten.
15393         (graphite_transform_loops): Move build_scop_canonical_schedules
15394         after build_scop_iteration_domain.
15395
15396 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15397             Tobias Grosser  <tobi.grosser@amd.com>
15398
15399         * graphite.c (add_conditions_to_domain): Add the loops to
15400         the dimension of the iteration domain.  Do copy the domain
15401         only when it exists.
15402         (build_scop_conditions_1): Do not call add_conditions_to_domain.
15403         (add_conditions_to_constraints): New.
15404         (can_generate_code_stmt, can_generate_code): Removed.
15405         (gloog): Do not call can_generate_code.
15406         (graphite_transform_loops): Call add_conditions_to_constraints
15407         after building the iteration domain.
15408
15409 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
15410
15411         PR tree-optimization/38789
15412         * tree-ssa-threadedge.c
15413         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
15414         __builtin_constant_p.
15415
15416 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
15417
15418         * dce.c (delete_unmarked_insns): Reversed the order that insns are
15419         examined before deleting them.
15420
15421 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
15422
15423         * function.c (aggregate_value_p): Correctly extract the function
15424         type from CALL_EXPR_FN lookup.
15425
15426 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
15427
15428         * config/picochip/picochip.c (picochip_override_options): Revert
15429         CFI asm flag disable commited previously.
15430
15431 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
15432             Tobias Grosser  <tobi.grosser@amd.com>
15433             Jan Sjodin  <jan.sjodin@amd.com>
15434
15435         * graphite.c (scan_tree_for_params): On substractions negate
15436         all the coefficients of the term.
15437         (clast_to_gcc_expression_red): New.  Handle reduction expressions
15438         of more than two operands.
15439         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
15440         (get_vdef_before_scop): Handle also the case of default definitions.
15441
15442 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
15443
15444         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
15445         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
15446         Also use them when walking CALL_INSN_FUNCTION_USAGE.
15447
15448 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
15449             Joey Ye  <joey.ye@intel.com>
15450
15451         PR middle-end/37843
15452         * cfgexpand.c (expand_stack_alignment): Don't update stack
15453         boundary nor check incoming stack boundary here.
15454         (gimple_expand_cfg): Update stack boundary and check incoming
15455         stack boundary here.
15456
15457 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
15458
15459         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
15460
15461 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
15462
15463         PR rtl-optimization/38245
15464         * calls.c (expand_call): Add stack arguments to
15465         CALL_INSN_FUNCTION_USAGE even for pure calls (when
15466         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
15467         in regs and partially in memory or BLKmode arguments.
15468         (emit_library_call_value_1): Add stack arguments to
15469         CALL_INSN_FUNCTION_USAGE even for pure calls (when
15470         ACCUMULATE_OUTGOING_ARGS).
15471         * dce.c: Include tm_p.h.
15472         (find_call_stack_args): New function.
15473         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
15474         argument.
15475         (mark_insn): Call find_call_stack_args for CALL_Ps.
15476         (prescan_insns_for_dce): Walk insns backwards in bb rather than
15477         forwards.  Allocate and free arg_stores bitmap if needed, pass it
15478         down to deletable_insn_p, don't mark stores set in arg_stores
15479         bitmap, clear the bitmap at the beginning of each bb.
15480         * Makefile.in (dce.o): Depend on $(TM_P_H).
15481
15482 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
15483
15484         PR target/22599
15485         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
15486         to make sure the insn is a conditional test (bug 22599).  Reformat a
15487         few long lines.
15488
15489 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
15490
15491         PR middle-end/38431
15492         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
15493         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
15494         (gloog): Do not call cleanup_tree_cfg.
15495         (graphite_transform_loops): Call cleanup_tree_cfg after all
15496         scops have been code generated.
15497
15498 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
15499         * doc/gty.texi (Invoking the garbage collector): Added new node
15500         and section documenting ggc_collect.
15501
15502 2009-01-14  Richard Guenther  <rguenther@suse.de>
15503
15504         PR tree-optimization/38826
15505         PR middle-end/38477
15506         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
15507         initialization notes only if we actually emitted a warning.
15508         (intra_create_variable_infos): Add constraints for a result decl
15509         that is passed by hidden reference.
15510         (build_pred_graph): Mark all related variables non-direct on
15511         address-taking.
15512
15513 2009-01-14  Nick Clifton  <nickc@redhat.com>
15514
15515         * ira-conflicts.c: Include addresses.h for the definition of
15516         base_reg_class.
15517         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
15518         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
15519
15520 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
15521
15522         PR target/38811
15523         * Makefile.in (ira-lives.o): Add except.h.
15524
15525         * ira-lives.c: Include except.h.
15526         (process_bb_node_lives): Process can_throw_internal.
15527
15528 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
15529
15530         PR rtl-optimization/38774
15531         * combine.c (simplify_set): When undoing cc_use change, don't do
15532         PUT_CODE on the newly created comparison, but instead put back the
15533         old comparison.
15534
15535 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
15536
15537         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
15538         values.  Remove duplicate arm8 entry.
15539
15540 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
15541
15542         PR tree-optimization/38786
15543         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
15544         the SSA_NAME case of expand_scalar_variables_expr.
15545         Set the type of an expression to the type of its assign statement.
15546         (expand_scalar_variables_expr): Also gather the scalar computation
15547         used to index the memory access.  Do not pass loop_p.
15548         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
15549         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
15550         the gimple_stmt_iterator where it inserts new code.
15551         Do not pass loop_p.
15552         (copy_bb_and_scalar_dependences): Do not pass loop_p.
15553         (translate_clast): Update call to copy_bb_and_scalar_dependences.
15554
15555 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
15556
15557         * graphite.h (debug_value): Removed.
15558         * graphite.c (debug_value): Removed.
15559
15560 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
15561
15562         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
15563         ldrd/strd with two 32-bit instructions.
15564
15565 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
15566
15567         * config/arm/arm.c (struct processors): Pass for speed down into
15568         cost helper functions.
15569         (const_ok_for_op): Handle COMPARE and inequality nodes.
15570         (arm_rtx_costs_1): Rewrite.
15571         (arm_size_rtx_costs): Update prototype.
15572         (arm_rtx_costs): Pass speed down to helper functions.
15573         (arm_slowmul_rtx_costs): Rework cost calculations.
15574         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
15575         (arm_9e_rtx_costs): Likewise.
15576
15577 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
15578
15579         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
15580         relocations of local symbols wider than UNITS_PER_WORD are not valid.
15581         (alpha_legitimize_address): Do not split local symbols wider than
15582         UNITS_PER_WORD into HIGH/LO_SUM parts.
15583
15584 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
15585
15586         PR bootstrap/38580
15587         * gcc.c (process_command): Replace call to execvp with calls
15588         to pex_one and exit.
15589
15590 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
15591
15592         PR target/29141
15593         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
15594         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
15595         variant for devices with 3-byte PC.
15596         (__tablejump_elpm__): New.
15597
15598 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
15599
15600         PR c/32041
15601         * c-parser.c (c_parser_postfix_expression): Allow `->' in
15602         offsetof member-designator, handle it as `[0].'.
15603
15604 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15605
15606         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
15607         function when not using named sections on targets with named sections
15608         if branch distance is less than 262132.
15609
15610 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
15611
15612         * combine.c (combine_instructions):  Recompute
15613         optimize_this_for_speed_p  for each BB in the main combine loop.
15614
15615 2009-01-12  Tomas Bily  <tbily@suse.cz>
15616
15617         PR middlend/38385
15618         * tree-loop-distribution.c (prop_phis): New function.
15619         (generate_builtin): Call prop_phis.
15620         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
15621
15622 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
15623
15624         PR tree-optimization/38807
15625         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
15626         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
15627
15628 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
15629
15630         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
15631         subreg of op0 to the original op0.
15632
15633 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
15634
15635         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
15636
15637 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
15638
15639         PR debug/7055
15640         * mips-tfile.c (parse_def): Fix parsing of def strings
15641         starting with digits.
15642
15643 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
15644
15645         PR target/38695
15646         * config/arm/arm.c (arm_is_long_call_p): Don't call
15647         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
15648
15649 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
15650
15651         * regrename.c (regrename_optimize): Fix dumping.
15652         (find_oldest_value_reg): Preserve REG_POINTER.
15653         (copy_hardreg_forward_1): Likewise.
15654
15655 2009-01-09  Diego Novillo  <dnovillo@google.com>
15656
15657         * gimple.h (struct gimple_statement_base) <uid>: Document
15658         the restrictions on its use.
15659         (gimple_uid): Tidy.
15660         (gimple_set_uid): Tidy.
15661
15662 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
15663
15664         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
15665         zero guard even if align_bytes != 0 and count is smaller than
15666         size_needed.
15667
15668 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
15669
15670         PR rtl-optimization/38495
15671         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
15672         (add_range_and_copies_from_move_list): Print all added ranges.
15673         Add ranges to memory optimized destination.
15674
15675 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
15676
15677         PR target/38686
15678         PR target/38708
15679         * config/i386/i386.c (override_options): Reject
15680         -mstringop-strategy=rep_8byte with -m32.
15681         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
15682         to 1.  Do count comparison against epilogue_size_needed at compile
15683         time even when count_exp was constant forced into register.  For
15684         size_needed don't jump to epilogue, instead just avoid aligning
15685         and invoke the body algorithm.  If need_zero_guard, add zero guard
15686         even if count is non-zero, but smaller than size_needed + number of
15687         bytes that could be stored for alignment.
15688         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
15689         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
15690         but smaller than size_needed + number of bytes that could be stored
15691         for alignment.  Compare size_needed with epilogue_size_needed instead
15692         of desired_align - align, don't adjust size_needed, pass
15693         epilogue_size_needed to the epilogue expanders.
15694
15695         PR c/35742
15696         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
15697
15698 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15699
15700         * pa.c (last_address): Change to unsigned.
15701         (update_total_code_bytes): Change argument to unsigned.  Don't
15702         check if insn addresses are set.
15703         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
15704         addresses are not set.
15705         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
15706
15707 2009-01-09  Nick Clifton  <nickc@redhat.com>
15708
15709         * config/sh/symbian.c: Replace uses of DECL_INLINE with
15710         DECL_DECLARED_INLINE_P.
15711
15712 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
15713
15714         PR middle-end/38347
15715         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
15716         GET_MODE (op0) in operand_subword_force calls.
15717
15718         PR middle-end/38771
15719         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
15720         fold_convert arg0 operands to TREE_TYPE (op0) first.
15721
15722 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
15723
15724         * params.def (ira-max-conflict-table-size): Decrease default value
15725         to 1000.
15726
15727 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
15728
15729         PR tree-optimization/37031
15730         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
15731         on parameter_set.
15732         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
15733         allocate it using gc instead of heap, use VEC_quick_push instead of
15734         VEC_safe_push.
15735         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
15736         instead of heap, use VEC_quick_push instead of VEC_safe_push.
15737         * tree-data-ref.h (struct access_matrix): Change matrix to gc
15738         allocated vector from heap allocated.
15739         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
15740         * tree-loop-linear.c (linear_transform_loops): Allocate nest
15741         vector only after perfect_loop_nest_depth call.
15742
15743 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
15744             Jan Sjodin  <jan.sjodin@amd.com>
15745
15746         PR tree-optimization/38559
15747         * graphite.c (debug_value, copy_constraint,
15748         swap_constraint_variables, scale_constraint_variable, ): New.
15749         (get_lower_bound, get_upper_bound): Removed.
15750         (graphite_trans_bb_strip_mine): Clean up this code that works
15751         only for constant number of iterations.  Fully copy upper and
15752         lower bound constraints, not only the constant part of them.
15753         * graphite.h (debug_value): Declared.
15754
15755 2009-01-08  Ira Rosen  <irar@il.ibm.com>
15756
15757         PR tree-optimization/37194
15758         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
15759         Don't add the cost of cost model guard in prologue to scalar
15760         outside cost in case of known number of iterations.
15761
15762 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
15763             Alan Modra  <amodra@bigpond.net.au>
15764
15765         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
15766         non-word-aligned REG+CONST addressing.
15767
15768 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
15769
15770         PR target/38706
15771         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
15772         free_after_compilation when outputting a thunk.
15773         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
15774         Do not call free_after_compilation here.
15775
15776 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
15777
15778         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
15779         (ix86_valid_target_attribute_inner_p): Ditto.
15780
15781 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
15782
15783         PR tree-optimization/38492
15784         PR tree-optimization/38498
15785         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
15786         * tree-chrec.h (scev_is_linear_expression): Declared.
15787         * graphite.c (graphite_cannot_represent_loop_niter): New.
15788         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
15789         (graphite_loop_normal_form): Use gcc_assert.
15790         (scan_tree_for_params): Use CASE_CONVERT.
15791         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
15792         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
15793         Use gcc_assert.  Discard scops that contain unhandled cases.
15794         (build_scop_conditions): Return a boolean status for unhandled cases.
15795         (strip_mine_profitable_p): Print the loop number, not its depth.
15796         (is_interchange_valid): Pass the depth of the loop nest, don't
15797         recompute it wrongly.
15798         (graphite_trans_bb_block): Same.
15799         (graphite_trans_bb_block): Print tentative of loop blocking.
15800         (graphite_trans_scop_block): Do not print that the loop has been
15801         blocked.
15802         (graphite_transform_loops): Do not handle scops that contain condition
15803         scalar phi nodes.
15804
15805 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15806
15807         AVX Programming Reference (December, 2008)
15808         * config/i386/avxintrin.h (_mm256_stream_si256): New.
15809         (_mm256_stream_pd): Likewise.
15810         (_mm256_stream_ps): Likewise.
15811
15812         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
15813         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
15814         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
15815         (bdesc_special_args): Add __builtin_ia32_movntdq256,
15816         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
15817         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
15818         (ix86_expand_special_args_builtin): Likewise.
15819
15820         * config/i386/sse.md (AVXMODEDI): New.
15821         (avx_movnt<mode>): Likewise.
15822         (avx_movnt<mode>): Likewise.
15823         (<sse>_movnt<mode>): Remove AVX support.
15824         (sse2_movntv2di): Likewise.
15825
15826 2009-01-07  Richard Guenther  <rguenther@suse.de>
15827
15828         PR middle-end/38751
15829         * fold-const.c (extract_muldiv): Remove obsolete comment.
15830         (fold_plusminus_mult_expr): Undo MINUS_EXPR
15831         to PLUS_EXPR canonicalization for the canonicalization.
15832
15833 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
15834
15835         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
15836         hosted cross-compilers generating less efficient code.
15837
15838 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
15839
15840         * function.h (rtl_data): Add a dbr_scheduled_p field.
15841         * reorg.c (dbr_schedule): Set it.
15842         (gate_handle_delay_slots): Check it.
15843         * config/mips/mips.c (mips_base_delayed_branch): Delete.
15844         (mips_reorg): Check flag_delayed_branch instead of
15845         mips_base_delayed_branch.
15846         (mips_override_options): Don't set mips_base_delayed_branch
15847         or flag_delayed_branch.
15848
15849 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
15850
15851         PR rtl-optimization/38426.
15852         * ira.c (ira): Set current_function_is_leaf earlier.
15853
15854 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
15855
15856         PR rtl-optimization/38722
15857         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
15858         too early, only set a flag and modify after last possible
15859         undo_all point.
15860
15861 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
15862
15863         PR c/34252
15864         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
15865         * real.c (decimal_single_format): Correct values of emin and emax.
15866         (decimal_double_format): Ditto.
15867         (decimal_quad_format): Ditto.
15868         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
15869         computation of DECnn_MIN and DECnn_MAX for corrected values of
15870         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
15871         __DECnn_MIN__, and adjust its computation for the corrected value
15872         of emin.
15873
15874 2009-01-06  Jan Hubicka  <jh@suse.cz>
15875
15876         PR target/38744
15877         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
15878
15879 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15880
15881         * doc/contrib.texi (Contributors): Slightly adjust the end note.
15882         Add Robert Clark to the list of testers.
15883
15884 2009-01-06  Jan Hubicka  <jh@suse.cz>
15885             Kai Tietz  <kai.tietz@onevision.com>
15886
15887         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
15888         * config/i386/i386.c (ix86_expand_call): Add clobbers.
15889
15890 2009-01-06  Jan Hubicka  <jh@suse.cz>
15891             Kai Tietz  <kai.tietz@onevision.com>
15892
15893         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
15894         for w64 ABI.
15895         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
15896         (ix86_nsaved_regs): Count only general purpose regs.
15897         (ix86_nsaved_sseregs): New.
15898         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
15899         to 16 for w64; compute padding and size of sse reg save area.
15900         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
15901         general purpose regs.
15902         (ix86_emit_save_sse_regs_using_mov): New.
15903         (ix86_expand_prologue): Save SSE regs if needed.
15904         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
15905         (ix86_emit_restore_sse_regs_using_mov): New.
15906         (ix86_expand_epilogue): Save SSE regs if needed.
15907
15908 2009-01-06  Jan Hubicka  <jh@suse.cz>
15909             Kai Tietz  <kai.tietz@onevision.com>
15910
15911         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
15912         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
15913         functions when accumulate outgoing args is off.
15914
15915 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
15916
15917         PR bootstrap/38742
15918         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
15919         before using pseudos_have_intersected_live_ranges_p.
15920
15921         * ira-int.h (ira_assert): Always define.
15922
15923 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
15924
15925         AVX Programming Reference (December, 2008)
15926         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
15927         (_mm256_permute2_pd): Likewise.
15928         (_mm_permute2_ps): Likewise.
15929         (_mm256_permute2_ps): Likewise.
15930         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
15931         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
15932
15933         * config/i386/i386.c (ix86_builtins): Remove
15934         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
15935         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
15936         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
15937         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
15938         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
15939         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
15940         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
15941         __builtin_ia32_vpermil2ps256.
15942         (ix86_init_mmx_sse_builtins): Updated.
15943         (ix86_expand_args_builtin): Likewise.
15944
15945 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15946
15947         * pa.c (output_call): Relocate non-jump insns in the delay slot of
15948         long absolute calls when generating PA 2.0 code.
15949
15950 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
15951
15952         PR rtl-optimization/38583
15953         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
15954
15955         * params.def (ira-max-conflict-table-size): New.
15956
15957         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
15958
15959         * ira.h (ira_conflicts_p): New external definition.
15960
15961         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
15962         table.  Report this.  Return result of building.
15963         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
15964         building conflict table.
15965
15966         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
15967         (ira_color): Use ira_conflicts_p.
15968
15969         * global.c: Include ira.h.
15970         (pseudo_for_reload_consideration_p, build_insn_chain): Use
15971         ira_conflicts_p.
15972
15973         * Makefile.in (global.o): Add ira.h.
15974
15975         * ira-build.c (mark_all_loops_for_removal,
15976         propagate_some_info_from_allocno): New.
15977         (remove_unnecessary_allocnos): Call
15978         propagate_some_info_from_allocno.
15979         (remove_low_level_allocnos): New.
15980         (remove_unnecessary_regions): Add parameter.  Call
15981         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
15982         parameter to remove_unnecessary_regions.
15983         (ira_build): Remove all regions but root if the conflict table was
15984         not built.  Update conflict hard regs for allocnos crossing calls.
15985
15986         * ira.c (ira_conflicts_p): New global.
15987         (ira): Define and use ira_conflicts_p.
15988
15989         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
15990         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
15991         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
15992
15993 2009-01-06  Ben Elliston  <bje@au.ibm.com>
15994
15995         * gengtype-lex.l (YY_NO_INPUT): Define.
15996
15997 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15998
15999         PR c/34911
16000         * c-common.c (handle_vector_size_attribute): Also reject
16001         BOOLEAN_TYPE types.
16002
16003 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
16004
16005         PR tree-optimization/38492
16006         * graphite.c (rename_map_elt, debug_rename_elt,
16007         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
16008         rename_map_elt_info, eq_rename_map_elts,
16009         get_new_name_from_old_name, bb_in_sese_p): Moved around.
16010         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
16011         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
16012         (sese_build_livein_liveouts): New.
16013         (new_sese, free_sese): New.
16014         (new_scop): Call new_sese.
16015         (free_scop): Call free_sese.
16016         (rename_variables_from_edge, rename_phis_end_scop): Removed.
16017         (register_old_new_names): Renamed register_old_and_new_names.
16018         (register_scop_liveout_renames, add_loop_exit_phis,
16019         insert_loop_close_phis, struct igp,
16020         default_liveout_before_guard, add_guard_exit_phis,
16021         insert_guard_phis, copy_renames): New.
16022         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
16023         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
16024         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
16025         (scop_adjust_phis_for_liveouts): New.
16026         (gloog): Call scop_adjust_phis_for_liveouts.
16027
16028         * graphite.h (struct sese): Documented.  Added fields liveout,
16029         num_ver and livein.
16030         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
16031         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
16032         (struct scop): Added field liveout_renames.
16033         (SCOP_LIVEOUT_RENAMES): New.
16034
16035 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16036
16037         PR tree-optimization/38510
16038         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
16039         (translate_clast): Call recompute_all_dominators before
16040         graphite_verify.
16041         (gloog): Call recompute_all_dominators before graphite_verify.
16042
16043 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16044             Jan Sjodin  <jan.sjodin@amd.com>
16045
16046         PR tree-optimization/38500
16047         * graphite.c (create_sese_edges): Call fix_loop_structure after
16048         splitting blocks.
16049
16050 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
16051
16052         * config.gcc: Add m32r*-*-rtems*.
16053         * config/m32r/rtems.h: New file.
16054
16055 2009-01-05  Ben Elliston  <bje@au.ibm.com>
16056
16057         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
16058         (.po.pox): Likewise.
16059         (po/gcc.pot): Likewise.
16060
16061 2009-01-04  David S. Miller  <davem@davemloft.net>
16062
16063         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
16064         (STARTING_FRAME_OFFSET): Always set to zero.
16065
16066 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
16067
16068         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
16069         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
16070         fixed-point types, and vectors of the same.
16071
16072 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
16073
16074         * config/mips/sync.md (*mb_barrier): Rename to...
16075         (*memory_barrier): ...this.
16076
16077 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
16078
16079         * doc/extend.texi (Function Attributes): Move @cindex after @item
16080         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
16081         and put in alphabetical order. Fix 'target' name and put in order.
16082         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
16083         typos.
16084
16085 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
16086
16087         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
16088         (memory_barrier): Expand as unspec instead of unspec_volatile.
16089         Remove mem:BLK from insn operands.  Use Pmode scratch register.
16090         (*memory_barrier): Define as unspec instead of unspec_volatile.
16091         Use (match_dup 0) as input operand.
16092
16093         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
16094         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
16095         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
16096         scratch register.  Remove operand 1.
16097         (*stbar): Define as unspec instead of unspec_volatile.
16098         Use (match_dup 0) as input operand, remove (const_int 8).
16099         (*membar): Define as unspec instead of unspec_volatile.
16100         Use (match_dup 0) as input operand, remove input operand 2.
16101
16102         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
16103         (memory_barrier): Expand as unspec instead of unspec_volatile.
16104         Remove mem:BLK from insn operands.  Use Pmode scratch register.
16105         (*memory_barrier): Define as unspec instead of unspec_volatile.
16106         Use (match_dup 0) as input operand.
16107
16108         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
16109         Remove mem:BLK from insn operands.  Use Pmode scratch register.
16110         Set volatile flag on operand 0.
16111         (*memory_barrier): New insn pattern.
16112
16113         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
16114         insn operands.
16115         (*memory_barrier): Use (match_dup 0) as input operand.
16116
16117         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
16118         Remove mem:BLK from insn operands.  Use Pmode scratch register.
16119         Set volatile flag on operand 0.
16120         (*mb_internal): New insn pattern.
16121
16122         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
16123
16124 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
16125
16126         PR middle-end/38586
16127         * function.c (struct temp_slot): Move to the section of the file
16128         that deals with temp slots.  Remove field 'address'.
16129         (temp_slot_address_table): New hash table of address -> temp slot.
16130         (struct temp_slot_address_entry): New struct, items for the table.
16131         (temp_slot_address_compute_hash, temp_slot_address_hash,
16132         temp_slot_address_eq, insert_temp_slot_address): Support functions
16133         for the new table.
16134         (find_temp_slot_from_address): Rewrite to use the new hash table.
16135         (remove_unused_temp_slot_addresses): Remove addresses of temp
16136         slots that have been made available.
16137         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
16138         worker function for remove_unused_temp_slot_addresses.
16139         (assign_stack_temp_for_type): Don't clear the temp slot address list.
16140         Add the temp slot address to the address -> temp slot map.
16141         (update_temp_slot_address): Update via insert_temp_slot_address.
16142         (free_temp_slots): Call remove_unused_temp_slot_addresses.
16143         (pop_temp_slots): Likewise.
16144         (init_temp_slots): Allocate the address -> temp slot map, or empty
16145         the map if it is already allocated.
16146         (prepare_function_start): Initialize temp slot processing.
16147
16148 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
16149
16150         PR middle-end/38584
16151         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
16152         Calculate the size of all stack vars assuming no packing of stack
16153         vars will happen, replacing a quadratic algorithm with a linear one.
16154
16155 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
16156
16157         PR target/38707
16158         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
16159         can't be used.
16160
16161 2009-01-03  Diego Novillo  <dnovillo@google.com>
16162
16163         * doc/contrib.texi: Update contributions.
16164
16165 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
16166
16167         PR c++/38705
16168         * builtins.c (fold_builtin_memory_op): Give up if either operand
16169         is volatile.  Set srctype or desttype to non-qualified version
16170         of the other type.
16171
16172         PR c/38700
16173         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
16174         and FUNCTION_DECLs.
16175
16176 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
16177
16178         PR rtl-optimization/35805
16179         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
16180         problem if fast dce is able to remove any instructions.
16181         * dce.c (dce_process_block): Fix dump message.
16182
16183 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
16184
16185         PR 33649
16186         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
16187
16188 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
16189
16190         PR middle-end/38690
16191         * tree-flow.h (op_code_prio, op_prio): New prototypes.
16192         * tree-pretty-print.c (op_code_prio): New function.
16193         (op_prio): No longer static.  Use op_code_prio.
16194         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
16195         Use op_prio and op_code_prio to determine if () should be
16196         printed around operand(s) or not.
16197
16198         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
16199         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
16200         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
16201         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
16202         pp_character instead of pp_string for single letter printing.
16203
16204 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
16205
16206         * doc/extend.texi: Fix '#pragma GCC option' typo.
16207
16208 2009-01-02  Richard Guenther  <rguenther@suse.de>
16209
16210         * doc/install.texi (--enable-checking): Mention different
16211         default for stage1.
16212         (--enable-stage1-checking): Document.
16213
16214 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
16215
16216         PR middle-end/30142
16217         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
16218         case to be an error.
16219
16220 2009-01-02  Ben Elliston  <bje@au.ibm.com>
16221
16222         * config/fp-bit.h (pack_d): Constify argument.
16223         * config/fp-bit.c (makenan): Constify return type. Remove casts.
16224         (isnan): Constify argument.
16225         (isinf): Likewise.
16226         (iszero): Likewise.
16227         (pack_d): Likewise.
16228         (_fpadd_parts): Constify return type.
16229         (_fpmul_parts): Likewise.
16230         (_fpdiv_parts): Likewise.
16231
16232 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
16233
16234         PR c/36489
16235         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
16236         warn about overwriting initializer with side-effects or
16237         -Woverride-init if !IMPLICIT.
16238         (output_init_element): Likewise.  Pass IMPLICIT down to
16239         add_pending_init.
16240         (process_init_element): Add IMPLICIT argument.  Pass it down
16241         to output_init_element.
16242         (push_init_element, pop_init_level, set_designator): Adjust
16243         process_init_element callers.
16244         (set_nonincremental_init, set_nonincremental_init_from_string):
16245         Adjust add_pending_init callers.
16246         (output_pending_init_elements): Adjust output_init_element callers.
16247         * c-tree.h (process_init_element): Adjust prototype.
16248         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
16249         process_init_element callers.
16250
16251 \f
16252 Copyright (C) 2009 Free Software Foundation, Inc.
16253
16254 Copying and distribution of this file, with or without modification,
16255 are permitted in any medium without royalty provided the copyright
16256 notice and this notice are preserved.