OSDN Git Service

0af8e976e9239d787cba8e70d7beadb96c3ce6ee
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
2             Richard Guenther  <rguenther@suse.de>
3
4         PR target/46737
5         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
6         (bfin_reorder_loops): Change type of index to intptr_t.
7
8 2010-12-07  Richard Guenther  <rguenther@suse.de>
9
10         PR tree-optimization/46726
11         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
12
13 2010-12-07  Richard Guenther  <rguenther@suse.de>
14
15         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
16         virtual operands.
17
18 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
19
20         * c-parser.c (c_parser_typeof_specifier): Removed special
21         treatment of objc_volatilized attribute for Objective-C.
22
23 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
24
25         * ira.c (update_equiv_regs): Prohibit move insns if
26         pressure-sensitive scheduling was done.
27
28 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
29
30         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
31         of c_process_expr_stmt() for the iterating and collection
32         expressions of an Objective-C fast enumeration loop.
33
34 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
35
36         PR debug/45997
37         * dwarf2out.c (modified_type_die): If both is_const_type and
38         is_volatile_type is set, start with DW_TAG_const_type or
39         DW_TAG_volatile_type depending on where we get qualified type
40         in the recursive call.
41
42         PR target/43897
43         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
44         as a store into that register.
45
46         PR tree-optimization/46528
47         PR debug/46338
48         * profile.c (branch_prob): Make sure last is never set to a debug
49         stmt.
50
51         PR debug/46771
52         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
53         on DEBUG_INSNs.
54
55         PR rtl-optimization/46777
56         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
57         also barrier after tablejump.
58
59 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
60             Richard Henderson  <rth@redhat.com>
61
62         PR target/46740
63         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
64
65 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
66
67         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
68         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
69
70 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
71
72         PR target/46735
73         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
74         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
75         (int12_operand, int_2word_operand, uint16_operand): Likewise.
76         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
77         (uint5_operand, uint4_operand): Likewise.
78         * config/frv/frv.h (IN_RANGE_P): Delete.
79         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
80         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
81         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
82         (CONST_OK_FOR_P): Likewise.
83         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
84         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
85         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
86         (*movsicc_internal2_float, casesi): Likewise.
87         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
88         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
89         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
90         (frv_split_cond_move, frv_rtx_costs): Likewise.
91
92         PR target/46739
93         * config/mmix/mmix.c (mmix_intval): Split shift count.
94
95 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
96
97         * config/i386/i386.c (m_COREI7): New.
98         (initial_ix86_tune_features): Turn on
99         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
100         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
101
102 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
103
104         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
105
106         * config/i386/driver-i386.c (host_detect_local_cpu): Support
107         Sandy Bridge.
108
109         * config/i386/i386.c (override_options): Handle "corei7-avx".
110
111         * doc/invoke.texi: Document corei7-avx.
112
113 2010-12-06  Richard Guenther  <rguenther@suse.de>
114
115         PR tree-optimization/46806
116         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
117         coalesce different types.
118
119 2010-12-06  Richard Guenther  <rguenther@suse.de>
120
121         PR tree-optimization/46785
122         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
123         call statements as operand definition.
124
125 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
126
127         * doc/tm.texi.in: Fix typo.
128         * doc/tm.texi: Regenerate.
129
130 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
131
132         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
133         last change.
134
135 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
136
137         * c-family/c-common.h: Removed the declarations of all the objc_
138         callbacks, and moved them into c-objc.h.  Removed
139         objc_ivar_visibility_kind and moved it into c-objc.h.
140         * c-family/c-objc.h: New file.
141         * c-family/c-common.c: Include c-objc.h.
142         * c-family/c-format.c: Same change.
143         * c-family/stub-objc.c: Same change.
144         * c-decl.c: Include c-family/c-objc.h.
145         * c-parser.c: Same change.      
146         * c-typeck.c: Same change.
147         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
148         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
149         (c-parser.o): same change.
150         (c-typeck.o): Same change.
151         (c-family/c-format.o): Same change.
152         (c-family/stub-objc.o): Same change.
153         (c-family/c-common.o): Same change.
154         (PLUGIN_HEADERS): Added c-family/c-objc.h.
155         
156 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
157
158         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
159         --with-dwarf2 option.
160
161 2010-12-03  Jan Hubicka  <jh@suse.cz>
162
163         * lto-streamer-in.c (input_cfg): Fix pasto.
164
165 2010-12-03  Jan Hubicka  <jh@suse.cz>
166
167         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
168         and functions with user asm defined names.
169         (varpool_externally_visible_p): Do not localize vars with user
170         asm defined names.
171
172 2010-12-03  Jan Hubicka  <jh@suse.cz>
173
174         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
175         to prevent mangling with lto frontend.
176
177 2010-12-03  Jan Hubicka  <jh@suse.cz>
178
179         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
180         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
181
182 2010-12-03  Jan Hubicka  <jh@suse.cz>
183
184         PR tree-optimization/46760
185         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
186         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
187         * lto-cgraph.c (lto_output_edge): Fix assert.
188         (lto_output_node): Output count_materialization_scale.
189         (output_profile_summary): Output only runs and sum_max.
190         (input_node): Input count_materialization_scale.
191         (input_profile_summary): Read data into file specific gcov summary.
192         (merge_profile_summaries): New function.
193         (input_cgraph): Update call of input_profile_summary;
194         call merge_profile_summaries.
195         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
196         rescale counts at read in.
197         (intput_bb): Likewise.
198         (input_function): Update call of input_bb.
199         (lto_read_body): Update call of input_cfg.
200         * lto-streamer.h: Inlclude gcov-io.h
201         (lto_file_decl_data): Add gcov_ctr_summary.
202
203 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
204
205         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
206         (Cond Exec Macros): ... to this.
207         * doc/tm.texi: Regenerate.
208
209 2010-12-03  Jason Merrill  <jason@redhat.com>
210
211         PR debug/46123
212         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
213         a declaration DIE.
214
215 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
216
217         * config/arm/arm.c (arm_legitimate_index_p): Split
218         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
219         slightly larger constants in the latter case.
220         (thumb2_legitimate_index_p): Likewise.
221
222 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
223
224         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
225         * gcc.c (cc1_options): Add %{Qy:}.
226
227 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
228
229         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
230         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
231         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
232
233 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
234
235         PR rtl-optimization/45354
236         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
237         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
238         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
239         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
240
241 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
242
243         * basic-block.h (struct edge_prediction): Remove forward
244         declaration.
245         * tree-flow.h (struct edge_prediction): Move from here...
246         * predict.c (struct edge_prediction): ...to here.
247         * cselib.h (struct elt_list): Move from here...
248         * cselib.c (struct elt_list): ...to here.
249
250 2010-12-02  Ian Lance Taylor  <iant@google.com>
251
252         * gcc.c (default_compilers): Add entry for ".go".
253         * common.opt: Add -static-libgo as a driver option.
254         * doc/install.texi (Configuration): Mention libgo as an option for
255         --enable-shared.  Mention go as an option for --enable-languages.
256         * doc/invoke.texi (Overall Options): Mention .go as a file name
257         suffix.  Mention go as a -x option.
258         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
259         language.
260         * doc/sourcebuild.texi (Top Level): Mention libgo.
261         * doc/standards.texi (Standards): Add section on Go language.
262         Move references for other languages into their own section.
263         * doc/contrib.texi (Contributors): Mention that I contributed the
264         Go frontend.
265
266 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
267
268         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
269         (const_call_expr_arg_iterator_d): Likewise.
270         (expanded_location): Likewise.
271         * c-tree.h (struct c_arg_tag_d): Likewise.
272         * dwarf2out.c (struct cfa_loc): Likewise.
273         (struct skeleton_chain_struct): Likewise.
274         * except.c (struct ttypes_filter): Likewise.
275         * cselib.h (struct cselib_val_struct): Likewise.
276         (elt_loc_list): Likewise.
277         (elt_list): Likewise.
278         * varasm.c (struct addr_const): Likewise.
279         * tree-flow.h (struct edge_prediction): Likewise.
280         (struct int_tree_map): Likewise.
281         (struct _edge_var_map): Likewise.
282
283 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
284
285         PR target/46768
286         * config/i386/i386.c (initial_ix86_tune_features): Turn on
287         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
288
289 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
290
291         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
292
293 2010-12-02  Ian Lance Taylor  <iant@google.com>
294
295         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
296         header files unordered_map, tr1/unordered_map, and ext/hash_map.
297         * configure, config.in: Rebuild.
298
299 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
300
301         PR target/46685
302         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
303         (sparc_expand_move): Call it to decide whether to emit the special
304         mov{si,di}_pic_label_ref patterns.
305         (sparc_legitimize_pic_address): Call it to decide whether to emit
306         the regular PIC sequence for labels.  Fix long line.
307         (sparc_file_end): Set is_thunk for the PIC helper.
308
309 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
310
311         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
312         for a non-shared type.
313
314 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
315
316         PR middle-end/45297
317         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
318         with MEM_REFs as POINTER_PLUS_EXPR.
319
320 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
321
322         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
323         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
324         mentioning /lib/elf.
325
326 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
327
328         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
329         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
330         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
331         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
332         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
333         * config/sol2.h (LINK_SPEC): Remove %{b}.
334         * config/svr4.h (LINK_SPEC): Remove %{b}.
335
336 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
337
338         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
339         * config/i386/linux.h (LINK_SPEC): Cut long comment.
340         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
341         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
342         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
343         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
344         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
345         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
346         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
347         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
348         %{v:%{!V:-V}}.
349
350 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
351
352         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
353         -ftraditional.
354
355 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
356
357         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
358         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
359         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
360         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
361         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
362         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
363         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
364         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
365         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
366         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
367         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
368         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
369         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
370         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
371         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
372         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
373         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
374         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
375
376 2010-12-02  Paul Koning  <ni1d@arrl.net>
377
378         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
379         opcodes if CC_NO_OVERFLOW is set.
380         (notice_update_cc_on_set): Correct setting of CC0 as a side
381         effect; set CC_NO_OVERFLOW for cases where C flag is not
382         meaningful.
383
384 2010-12-02  Ian Lance Taylor  <iant@google.com>
385
386         * doc/install.texi (Configuration): Update default for
387         --with-boot-ldflags.
388
389 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
390
391         PR c/45062
392         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
393         !funcdef_flag.
394
395 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
396
397         PR tree-optimization/45199
398         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
399         (stores_zero_from_loop): Call
400         mem_write_stride_of_same_size_as_unit_type_p.
401         * tree-data-ref.h (stride_of_unit_type_p): New.
402         * tree-loop-distribution.c (generate_memset_zero): Simplified.
403         Call stride_of_unit_type_p.
404         (build_rdg_partition_for_component): Do not call
405         rdg_flag_similar_memory_accesses when
406         flag_tree_loop_distribute_patterns is set.
407
408 2010-12-02  Richard Guenther  <rguenther@suse.de>
409
410         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
411         sign-changing conversions for induction detection.
412
413 2010-12-02  Richard Guenther  <rguenther@suse.de>
414
415         PR tree-optimization/46723
416         * tree-vect-loop.c (get_initial_def_for_induction): Strip
417         conversions from the induction evolution and apply it to
418         the result instead.
419         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
420         assigns for induction defs.
421
422 2010-12-02  Richard Guenther  <rguenther@suse.de>
423
424         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
425         the case we need to split the edge and not the block.
426
427 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
428
429         DFA model for Core 2 and Core i7 scheduling.
430
431         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
432         * config/i386/i386.c (ix86_option_override_internal): Update entries
433         for Core 2 and Core i7.
434         (ix86_issue_rate): Set issue rate to 3 [be realistic].
435         * config/i386/i386.md: Include "core2.md".
436         (define_attr cpu): Add "corei7".
437
438 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
439
440         Define tuning for Core 2 and Core i7.
441
442         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
443         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
444         (m_CORE2): Replace with m_CORE2_{32,64}.
445         (m_CORE2I7{,_32,_64}): New macros.
446         (m_GENERIC32, m_GENERIC64): Update.
447         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
448         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
449         set m_CORE2I7_64 iff m_GENERIC64.
450         (processor_target_table): Use generic costs for Core 2 and Core i7.
451         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
452         (ix86_issue_rate): Remove entry for Core 2.
453         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
454         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
455         (TARGET_CORE2): Update.
456         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
457         (PROCESSOR_CORE2): Remove.
458
459 2010-12-02  Richard Guenther  <rguenther@suse.de>
460
461         * lto-streamer.h (LTO_major_version): Bump to 2.
462
463 2010-12-02  Richard Guenther  <rguenther@suse.de>
464
465         PR lto/44871
466         * gimple.c (canonical_type_hash_cache): New hashtable.
467         (gimple_type_hash): Make a wrapper around ...
468         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
469         (gimple_canonical_type_hash): Likewise.
470         (gtc_visit): Take a gtc_mode argument.
471         (gimple_types_compatible_p_1): Likewise. Do not compare struct
472         tag names or field names when computing canonical types.
473         (gimple_types_compatible_p): Adjust.
474         (visit): Take a gtc_mode argument.
475         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
476         names or field names when computing hashes of canonical types.
477         (gimple_register_canonical_type): Use gimple_canonical_type_hash
478         for the hash.
479         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
480         (free_gimple_type_tables): Free canonical_type_hash_cache.
481
482 2010-12-02  Richard Guenther  <rguenther@suse.de>
483             Ira Rosen  <irar@il.ibm.com>
484
485         PR tree-optimization/46663
486         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
487         FUNCTION_DECL exists and that it's a builtin.
488
489 2010-12-02  Jie Zhang  <jie@codesourcery.com>
490
491         PR middle-end/46674
492         * varasm.c (compute_visible_aliases): Handle user set
493         assembler name.
494
495 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
496
497         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
498         thinko regarding setting -mno-<xxx> debug switches.
499         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
500
501 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
502
503         * intl.c: Don't include tm.h.
504         * Makefile.in (intl.o): Don't depend on $(TM_H).
505
506 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
507
508         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
509         unused warning.
510         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
511
512 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
513
514         * graphite-sese-to-poly.c (analyze_drs): Removed.
515         (build_scop_drs): Do not call analyze_drs.
516         (analyze_drs_in_stmts): New.
517         (insert_stmts): New.
518         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
519         (insert_out_of_ssa_copy_on_edge): Same.
520         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
521         (rewrite_phi_out_of_ssa): Same.
522         (rewrite_cross_bb_scalar_dependence): Same.
523         (split_reduction_stmt): Move data references in the new basic blocks.
524         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
525
526 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
527
528         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
529
530 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
531
532         PR middle-end/45297
533         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
534         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
535         * graphite-poly.h (new_poly_bb): Update declaration.
536         (gbb_from_bb): Moved here...
537         (pbb_from_bb): New.
538         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
539         Removed.
540         (graphite_stmt_p): Removed.
541         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
542         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
543         new_poly_bb.
544         (build_scop_bbs_1): Do not pass in sbitmap reductions.
545         (build_scop_bbs): Same.
546         (gbb_from_bb): ... from here.
547         (add_conditions_to_constraints): Moved up.
548         (analyze_drs): New.
549         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
550         not contain data references.
551         (new_pbb_from_pbb): New.
552         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
553         block is split.
554         (rewrite_close_phi_out_of_ssa): Update call to
555         insert_out_of_ssa_copy_on_edge.
556         (rewrite_reductions_out_of_ssa): Now static.
557         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
558         (split_pbb): New.
559         (split_reduction_stmt): Call split_pbb.
560         (translate_scalar_reduction_to_array): Pass in the scop, do not
561         pass in the sbitmap reductions.
562         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
563         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
564         (rewrite_commutative_reductions_out_of_ssa): Same.
565         (build_poly_scop): Call build_scop_bbs,
566         rewrite_commutative_reductions_out_of_ssa,
567         rewrite_reductions_out_of_ssa, and
568         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
569         before scop_to_lst.
570         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
571         Removed declaration.
572         (rewrite_reductions_out_of_ssa): Same.
573         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
574         (build_scop_bbs): Same.
575         * graphite.c (graphite_transform_loops): Do not initialize reductions.
576         Do not call build_scop_bbs,
577         rewrite_commutative_reductions_out_of_ssa,
578         rewrite_reductions_out_of_ssa, and
579         rewrite_cross_bb_scalar_deps_out_of_ssa.
580         * sese.h (struct gimple_bb): Add field pbb.
581         (GBB_PBB): New.
582
583 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
584
585         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
586         New.
587         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
588         handle_scalar_deps_crossing_scop_limits.
589         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
590         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
591
592 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
593
594         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
595         when replacing a constant in an ADDR_EXPR.
596
597 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
598
599         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
600         for the stride.
601         (lst_do_strip_mine): Same.
602         (scop_do_strip_mine): Same.
603         * graphite-poly.c (apply_poly_transforms): Update call to
604         scop_do_strip_mine.
605         * graphite-poly.h (scop_do_strip_mine): Update declaration.
606
607 2010-12-01  Jan Hubicka  <jh@suse.cz>
608
609         * tree.c (build_common_builtin_nodes): Do not initialize
610         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
611         * builtins.c (expand_builtin_profile_func): Remove.
612         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
613         BUILT_IN_PROFILE_FUNC_EXIT.
614         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
615         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
616         * gimplify.c (gimplify_function_tree): Reorganize code calling
617         profiling functions.
618
619 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
620
621         * opts.c: Expand comment on tm.h include.
622
623 2010-12-01  Yao Qi  <yao@codesourcery.com>
624
625         * config/arm/predicates.md ("vfp_register_operand"): Return true for
626         VFP_D0_D7_REGS classes.
627
628 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
629
630         * common.opt (flag_stack_check): New Variable entry.
631         (fcompare-debug-second): Use Var.
632         * flags.h (flag_compare_debug, flag_stack_check): Remove.
633         * opts.c (flag_compare_debug): Remove.
634         (common_handle_option): Don't handle OPT_fcompare_debug_second.
635         Set opts->x_flag_stack_check for OPT_fstack_check_.
636         * toplev.c (flag_stack_check): Remove.
637
638 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
639
640         * common.opt (main_input_filename, main_input_basename,
641         main_input_baselength): New Variable entries.  From toplev.c.
642         * final.c (output_quoted_string): Move from toplev.c.
643         * output.h (output_quoted_string): Move from toplev.h.
644         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
645         access main_input_filename, main_input_baselength and
646         main_input_basename.
647         * targhooks.c: Include intl.h and opts.h.
648         (option_affects_pch_p, default_get_pch_validity): Move from
649         toplev.c.
650         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
651         Move from toplev.h.
652         * toplev.c (main_input_filename, main_input_basename,
653         main_input_baselength): Move to common.opt.
654         (output_quoted_string): Move to final.c.
655         (warn_deprecated_use): Move to tree.c.
656         (option_affects_pch_p, default_get_pch_validity,
657         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
658         * toplev.h (skip_leading_substring): Move to tree-dump.c.
659         (warn_deprecated_use): Move to tree.h.
660         (output_quoted_string): Move to output.h.
661         (main_input_filename, main_input_basename, main_input_baselength):
662         Move to common.opt.
663         (default_get_pch_validity, default_pch_valid_p): Move to
664         targhooks.c.
665         * tree-dump.c (skip_leading_substring): Move from toplev.h.
666         * tree.c (warn_deprecated_use): Move from toplev.c.
667         * tree.h (warn_deprecated_use): Move from toplev.h.
668         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
669         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
670         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
671         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
672         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
673         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
674         config/mcore/mcore.c, config/mep/mep.c,
675         config/microblaze/microblaze.c, config/mips/mips.c,
676         config/mmix/mmix.c, config/mn10300/mn10300.c,
677         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
678         config/picochip/picochip.c, config/s390/s390.c,
679         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
680         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
681         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
682         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
683         varasm.c, xcoffout.c: Don't include toplev.h.
684         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
685         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
686         varasm.o, xcoffout.o): Update dependencies.
687         * config/arm/t-arm (arm.o): Update dependencies.
688         * config/spu/t-spu-elf (spu.o): Update dependencies.
689
690 2010-12-01  Richard Guenther  <rguenther@suse.de>
691
692         PR tree-optimization/46730
693         * value-prof.c (gimple_ic): Always generate a separate merge BB.
694
695 2010-11-30  Ian Lance Taylor  <iant@google.com>
696
697         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
698         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
699         * config/i386/linux64.h (ASM_SPEC): Likewise.
700         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
701         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
702         * config/i386/vxworks.h (ASM_SPEC): Likewise.
703         * config/i386/x86-64.h (ASM_SPEC): Likewise.
704         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
705         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
706
707 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
708
709         * c-decl.c (finish_function): Call objc_finish_function in
710         Objective-C.
711         * c-typeck.c (convert_for_assignment): Do not call
712         objc_type_quals_match().
713
714 2010-11-30  Richard Guenther  <rguenther@suse.de>
715
716         PR tree-optimization/46722
717         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
718         operands as arguments.
719         (execute_optimize_widening_mul): Also handle power of two as
720         multiplication.
721
722 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
723
724         PR middle-end/46709
725         * cgraphunit.c (process_function_and_variable_attributes): Fix
726         cut'n'pasteo.
727
728 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
729
730         * hwint.c:  New.  Extracted from toplev.c.
731         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
732         Move from toplev.h.
733         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
734         Move to hwint.c.
735         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
736         Move to hwint.h.
737         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
738         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
739         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
740         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
741         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
742         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
743         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
744         tree-vrp.c: Don't include toplev.h.
745         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
746         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
747         toplev.h in generated output.
748         * Makefile.in (OBJS-common): Add hwint.o.
749         Dependencies for above files changed to remove toplev.h.
750         (hwint.o): New.
751         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
752         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
753         toplev.h.
754         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
755         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
756
757 2010-11-30  Richard Guenther  <rguenther@suse.de>
758
759         PR tree-optimization/46717
760         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
761         call.  Manually create EH edges for the direct call and update
762         target PHI nodes.
763
764 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
765
766         * diagnostic-core.h: Include bversion.h.
767         * toplev.h: Don't include input.h or bversion.h.
768         (parse_optimize_options): Don't declare here.
769         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
770         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
771         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
772         config/host-darwin.c, config/i386/host-cygwin.c,
773         config/i386/host-mingw32.c, config/i386/msformat-c.c,
774         config/i386/netware.c, config/i386/nwld.c,
775         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
776         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
777         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
778         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
779         config/score/score3.c, config/score/score7.c,
780         config/sh/symbian-base.c, config/sh/symbian-c.c,
781         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
782         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
783         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
784         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
785         graphite-blocking.c, graphite-clast-to-gimple.c,
786         graphite-dependences.c, graphite-flattening.c,
787         graphite-interchange.c, graphite-poly.c,
788         graphite-scop-detection.c, graphite.c, haifa-sched.c,
789         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
790         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
791         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
792         lto-opts.c, lto-section-in.c, lto-section-out.c,
793         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
794         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
795         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
796         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
797         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
798         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
799         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
800         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
801         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
802         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
803         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
804         include toplev.h.
805         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
806         toplev.h.  Dependencies for above files and c-family files changed
807         to remove $(TOPLEV_H) or toplev.h.
808         (C_TREE_H): Don't include $(TOPLEV_H).
809         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
810         bversion.h.
811         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
812         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
813         config/t-darwin, config/t-sol2,
814         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
815         Dependencies for above files changed to remove $(TOPLEV_H) or
816         toplev.h.
817
818 2010-11-30  Richard Guenther  <rguenther@suse.de>
819
820         PR lto/44986
821         * gcc.c (main): Use the first input with a compiler as infile
822         for link spec processing.
823
824 2010-11-30  Richard Guenther  <rguenther@suse.de>
825
826         PR lto/45949
827         * cgraphunit.c (ipa_passes): Stop after errors from
828         small IPA passes.
829
830 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
831
832         * gcc-plugin.h: Include coretypes.h.
833         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
834
835 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
836
837         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
838         * ggc-none.c (ggc_internal_alloc_zone_stat)
839         (ggc_internal_cleared_alloc_zone_stat): New.
840
841 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
842
843         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
844         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
845         (rs6000_emit_prologue): Don't set PIC register if
846         TARGET_SINGLE_PIC_BASE.
847         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
848         * doc/invoke.texi (msingle-pic-base): Document.
849
850 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
851
852         PR driver/46712
853         * exec-tool.in (id): New.
854         Check and export LT_RCU_$id instead of LT_RCU.
855
856 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
857
858         PR tree-optimization/46675
859         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
860         in offset calculation.
861
862 2010-11-29  Jan Hubicka  <jh@suse.cz>
863
864         * collect2.c (main): Do not imply verbose output with
865         LTO and linker plugin.
866
867 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
868
869         * dwarf2out.c (print_die): Print the address of the current DIE or
870         of any DIE referenced by the current one.
871
872 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
873
874         PR debug/46101
875         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
876         function.
877         (scope_die_for, gen_type_die_for_member): Replace uses of
878         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
879
880 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
881
882         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
883         (darwin_asm_declare_object_name): Correct spelling.
884         (darwin_output_aligned_bss): Likewise.
885
886 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
887             Mike Stump  <mrs@gcc.gnu.org>
888
889         PR target/26427
890         PR target/33120
891         PR testsuite/35710
892         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
893         (ASM_OUTPUT_LOCAL): Likewise.
894         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
895         (darwin_output_aligned_bss): Likewise.
896         (darwin_asm_output_aligned_decl_local): Likewise.
897         (darwin_asm_output_aligned_decl_common): Likewise.
898         (darwin_use_anchors_for_symbol_p): Likewise.
899         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
900         (TARGET_ASM_OUTPUT_ANCHOR): Define.
901         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
902         (DARWIN_SECTION_ANCHORS): Set to 1.
903         * config/darwin.c (emit_aligned_common): New var.
904         (darwin_init_sections): Check that the Darwin private zero-size section
905         marker is in range.
906         (darwin_text_section): Check for zero-sized objects.
907         (darwin_mergeable_string_section): Likewise.
908         (darwin_mergeable_constant_section): Likewise.
909         (machopic_select_section): Adjust to check for zero-sized objects.
910         Assert that OBJC meta data are non-zero sized.
911         (darwin_asm_declare_object_name): New.
912         (darwin_asm_declare_constant_name): Adjust for zero-sized
913         object sections.
914         (BYTES_ZFILL): Define.
915         (darwin_emit_weak_or_comdat): New.
916         (darwin_emit_local_bss): New.
917         (darwin_emit_common): New.
918         (darwin_output_aligned_bss): New.
919         (darwin_asm_output_aligned_decl_common): New.
920         (darwin_asm_output_aligned_decl_local): New.
921         (darwin_file_end): Disable subsections_via_symbols when section
922         anchoring is active.
923         (darwin_asm_output_anchor): Re-enable.
924         (darwin_use_anchors_for_symbol_p): New.
925         (darwin_override_options): Check for versions that can emit
926         aligned common.  Update usage of flags to current.
927         * config/darwin-sections.def: Update comments and flags for
928         non-anchor sections.  zobj_const_section, zobj_data_section,
929         zobj_bss_section, zobj_const_data_section: New.
930         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
931         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
932         (L2_MAX_OFILE_ALIGNMENT): Define.
933         (ASM_OUTPUT_ALIGNED_BSS): Define.
934         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
935         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
936         (SECTION_NO_ANCHOR): Define.
937         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
938         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
939
940 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
941
942         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
943         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
944         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
945         Conditionally define.
946         (GET_ENVIRONMENT): Poison.
947         * configure.ac: Don't test for mincore.
948         * configure: Regenerate.
949         * config.in: Regenerate.
950         * collect2-aix.c: Don't include <sys/mman.h>.
951         * collect2.c: Don't include <signal.h>.
952         (SIGCHLD): Don't define.
953         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
954         * config/alpha/alpha.c: Include "splay-tree.h" instead of
955         <splay-tree.h>.
956         * config/arm/arm.c (arm_target_help): Use getenv instead of
957         GET_ENVIRONMENT.
958         * config/avr/driver-avr.c: Don't include <stdlib.h>.
959         * config/frv/frv.c: Don't include <ctype.h>.
960         * config/host-darwin.c: Don't include <sys/mman.h>.
961         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
962         (MAP_FAILED): Don't define.
963         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
964         * config/host-solaris.c: Don't include <sys/mman.h>.
965         * config/i386/cygming.h: Don't include <stdio.h>.
966         * config/i386/driver-i386.c: Don't include <stdlib.h>.
967         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
968         * config/iq2000/iq2000.c: Don't include <signal.h>.
969         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
970         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
971         * config/mep/mep-pragma.c: Don't include <stdio.h>.
972         * config/microblaze/microblaze.c: Don't include <signal.h>.
973         * config/mips/mips.c: Don't include <signal.h>.
974         * config/rs6000/host-darwin.c: Don't include <signal.h>.
975         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
976         * defaults.h (GET_ENVIRONMENT): Don't define.
977         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
978         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
979         (SIGCHLD, MAP_FAILED, kill): Don't define.
980         (process_command): Use getenv instead of GET_ENVIRONMENT.
981         * genhooks.c: Don't include <string.h>.
982         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
983         <sys/types.h>.
984         (MAP_FAILED): Don't define.
985         * ggc-page.c Don't include <sys/mman.h>.
986         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
987         * ggc-zone.c: Don't include <sys/mman.h>.
988         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
989         * graph.c: Include "config.h" instead of <config.h>.
990         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
991         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
992         (SIGCHLD, kill): Don't define.
993         * mips-tfile.c: Don't include <signal.h>.
994         * opts.c: Don't include <signal.h> or <sys/resource.h>.
995         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
996         * passes.c: Don't include <signal.h>, <sys/resource.h> or
997         <sys/times.h>.
998         * sparseset.h: Don't include <assert.h>.
999         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1000         * tlink.c: Don't include "libiberty.h".
1001         * toplev.c: Don't include <signal.h> or <sys/times.h>.
1002         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1003         * tree-switch-conversion.c: Don't include <signal.h>.
1004         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1005
1006 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1007
1008         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1009         c_parser_objc_try_catch_finally_statement for consistency with the
1010         C++ parser.  Parse @catch(...) and pass NULL_TREE to
1011         objc_begin_catch_clause() in that case.  Improved error recovery.
1012         Reorganized code to be almost identical to
1013         cp_parser_objc_try_catch_finally_statement.
1014
1015 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
1016
1017         PR tree-optimization/46621
1018         * gimple.h: Don't include tm.h or hard-reg-set.h .
1019         * Makefile.in (GIMPLE_H): Remove $(TM_H).
1020
1021         PR bootstrap/44756
1022         * cppbuiltin.c: Include target.h .
1023         (define_builtin_macros_for_type_sizes):
1024         Use targetm.float_words_big_endian.
1025
1026 2010-11-27  Jan Hubicka  <jh@suse.cz>
1027
1028         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1029         and output cold_text_section_label.
1030         (dwarf2out_init): Don't do that there.
1031         (dwarf2out_finish): Handle cold section end label only if cold
1032         section was used.
1033
1034 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1035
1036         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1037         VLA variables.
1038
1039 2010-11-27  Richard Guenther  <rguenther@suse.de>
1040
1041         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1042         (gimple_assign_ssa_name_copy_p): Likewise.
1043         (gimple_assign_unary_nop_p): Use is_gimple_assign.
1044         (is_gimple_cast): Remove.
1045         (gimple_assign_single_p): Move ...
1046         * gimple.h (gimple_assign_single_p): ... here.
1047         (is_gimple_cast): Remove.
1048         (gimple_assign_rhs_code): Simplify.
1049         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1050         instead of is_gimple_cast.
1051         * ipa-type-escape.c (look_for_casts): Likewise.
1052
1053 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
1054
1055         * doc/options.texi (Enum, EnumValue): Document new record types.
1056         (Enum): Document new option flag.
1057         * opt-functions.awk
1058         * optc-gen.awk: Handle enumerated option arguments.
1059         * opth-gen.awk: Handle enumerated option arguments.
1060         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1061         enum_value_to_arg): New.
1062         (decode_cmdline_option): Handle enumerated arguments.
1063         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1064         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1065         * opts.c (print_filtered_help, print_specific_help): Take
1066         lang_mask arguments.
1067         (print_filtered_help): Handle printing values of enumerated
1068         options.  Print possible arguments for enumerated options.
1069         (print_specific_help): Update call to print_filtered_help.
1070         (common_handle_option): Update calls to print_specific_help.  Use
1071         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
1072         handle OPT_ffp_contract_, OPT_fexcess_precision_,
1073         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1074         OPT_fira_region_ here.
1075         * opts.h (enum cl_var_type): Add CLVC_ENUM.
1076         (struct cl_option): Add var_enum.
1077         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1078         struct cl_enum, cl_enums, cl_enums_count): New.
1079         (CL_ERR_ENUM_ARG): Define.
1080         (CL_ERR_NEGATIVE): Update value.
1081         (enum_value_to_arg): Declare.
1082         * common.opt (flag_ira_algorithm, flag_ira_region,
1083         flag_fp_contract_mode, flag_excess_precision_cmdline,
1084         default_visibility, flag_tls_default): Remove Variable entries.
1085         (help_enum_printed): New Variable.
1086         (fdiagnostics-show-location=): Use Enum.  Add associated
1087         SourceInclude, Enum and EnumValue entries.
1088         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1089         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
1090         associated Enum and EnumValue entries.
1091
1092 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
1093
1094         PR target/46623
1095         * config/microblaze/microblaze.c (microblaze_block_move_straight):
1096         Use XALLOCAVEC.
1097         (microblaze_option_override): Don't use C++ style comments.
1098         (save_restore_insns): Remove unused variable base_offset.
1099         (microblaze_expand_prologue): Remove unused variable insn.
1100         (microblaze_secondary_reload): Adjust type to match target.h .
1101         (microblaze_elf_in_small_data_p): Move declarations to start of block.
1102         (microblaze_expand_move): Likewise.
1103         * config/microblaze/microblaze.h (LARGE_INT):
1104         Avoid signed / unsigned comparisons.
1105         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1106         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1107         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
1108
1109 2010-11-26  Michael Matz  <matz@suse.de>
1110
1111         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1112
1113         * passes.c (init_optimization_passes): Remove superfluous
1114         copy-prop pass.
1115
1116 2010-11-26  Richard Guenther  <rguenther@suse.de>
1117
1118         PR lto/46648
1119         * gimple.c (gtc_visit): Do not return true for members of an
1120         SCC still being processed but the current lattice value of
1121         the member.  Treat SCC members comparison state as lattice,
1122         starting at equal, eventually dropping to unequal.
1123         (gimple_types_compatible_p_1): Likewise.
1124
1125 2010-11-26  Richard Guenther  <rguenther@suse.de>
1126
1127         PR middle-end/46559
1128         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1129         for location list processing.
1130
1131 2010-11-26  Richard Guenther  <rguenther@suse.de>
1132
1133         PR lto/46560
1134         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1135         flags manually.
1136
1137 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1138
1139         * config/s390/s390.c (print_operand_address): Replace assert with
1140         error message.
1141         (print_operand): Replace assertions, gcc_unreachable and
1142         fatal_insn with error messages.
1143
1144 2010-11-26  Richard Guenther  <rguenther@suse.de>
1145
1146         PR tree-optimization/46665
1147         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1148
1149 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
1150
1151         * config/arm/arm.c (arm_option_override): enable loop array
1152         prefetching at -O3 for suitable targets, and configure params.
1153         * config/arm/arm-protos.h (struct tune_params): Add fields for
1154         configuring loop array prefetching.
1155
1156 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
1157
1158         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1159
1160 2010-11-26  Richard Guenther  <rguenther@suse.de>
1161
1162         PR tree-optimization/46664
1163         * tree-affine.c (aff_combination_to_tree): Add rest last.
1164
1165 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1166
1167         PR target/33637
1168         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1169         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1170         * configure: Regenerated.
1171         * exec-tool.in: Not quoting command, may have extra arguments.
1172
1173 2010-11-26  Richard Guenther  <rguenther@suse.de>
1174
1175         PR tree-optimization/46528
1176         PR debug/46338
1177         * profile.c (branch_prob): Do not split blocks based on locations
1178         from debug statements.
1179
1180 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
1181
1182         PR middle-end/46647
1183         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1184         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
1185
1186         PR bootstrap/45700
1187         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1188         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1189         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1190         build6_loc): Define.
1191         * fold-const.c (protected_set_expr_location_unshare): New inline.
1192         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1193         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1194         pedantic_omit_one_operand_loc, omit_two_operands_loc,
1195         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1196         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1197         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1198         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1199         instead of buildN followed by SET_EXPR_LOCATION or
1200         protected_set_expr_location.
1201         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1202         Use buildN_stat_loc instead of buildN_stat followed by
1203         SET_EXPR_LOCATION.
1204
1205 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
1206
1207         * Makefile.in (s-tm-texi): Remove spurous tab.
1208
1209 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1210
1211         PR debug/46258
1212         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1213         debug stmts.
1214
1215 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1216
1217         * toplev.c (finalize): Add no_backend parameter.  Don't finish
1218         passes when preprocessing only.  Adjust...
1219         (do_compile): ... caller.
1220
1221 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1222
1223         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1224         flag_unsafe_math_optimizations.
1225         (negsf2): Likewise.
1226         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1227         to negate a multiply if !flag_signed_zeros is true.
1228
1229 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1230
1231         * gengtype-state.c (read_state_structures): Initialize "previous".
1232
1233 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1234             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1235
1236         * gengtype-state.c: Add new file.
1237
1238         * gengtype.c (type count): New variable.
1239         (new_structure, find_param_structure, create_pointer)
1240         (create_array): Use it to set state_number in types.
1241         (dump_everything): Improve comment.
1242         (main): Call read_state and write_state. Print type_count.
1243
1244         * gengtype.h (type_lineloc): New function.
1245         (read_state, write_state): New declarations.
1246
1247         * Makefile.in (GENGTYPE_FLAGS): New variable.
1248         (s-gtype): Run gengtype twice and generate gtype.state.
1249         (build/gengtype-state.o): New rule.
1250         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1251         (mostlyclean): Update comment.  Remove gtype.state.
1252
1253 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1254
1255         PR middle-end/46637
1256         * combine.c (try_combine): When substing i2dest for i2src, pass
1257         1 as last argument even if
1258         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1259
1260 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1261
1262         PR middle-end/46647
1263         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1264         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1265
1266 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1267
1268         * target.def (supports_split_stack, except_unwind_info): Take
1269         gcc_options parameters.
1270         * targhooks.c (default_except_unwind_info,
1271         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1272         gcc_options parameters.
1273         * targhooks.h (default_except_unwind_info,
1274         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1275         prototypes.
1276         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1277         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1278         Document that hooks must not be modified.
1279         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1280         * doc/tm.texi: Regenerate.
1281         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1282         &global_options to targetm.except_unwind_info.
1283         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1284         dwarf2out_begin_prologue, dwarf2out_frame_init,
1285         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1286         &global_options to targetm.except_unwind_info.
1287         * except.c (init_eh, finish_eh_generation,
1288         gate_convert_to_eh_region_ranges,
1289         output_one_function_exception_table): Pass &global_options to
1290         targetm.except_unwind_info.
1291         * expr.c (build_personality_function): Pass &global_options to
1292         targetm.except_unwind_info.
1293         * function.c (expand_function_end): Pass &global_options to
1294         targetm.except_unwind_info.
1295         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1296         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1297         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1298         and targetm.supports_split_stack.  Remove assertions about opts
1299         and opts_set.
1300         (common_handle_option): Remove assertions about opts, opts_set and dc.
1301         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1302         &global_options to targetm.except_unwind_info.
1303         * tree.c (build_common_builtin_nodes: Pass &global_options to
1304         targetm.except_unwind_info.
1305         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1306         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1307         thumb1_expand_prologue, thumb1_output_function_prologue,
1308         arm_unwind_emit, arm_output_fn_unwind): Update calls to
1309         arm_except_unwind_info.
1310         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1311         parameter.
1312         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1313         parameter.
1314         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1315         ia64_reorg, ia64_asm_unwind_emit): Update calls to
1316         ia64_except_unwind_info.
1317         * config/pa/pa.c (pa_option_override): Pass &global_options to
1318         targetm.except_unwind_info.
1319         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1320         Remove prototype.
1321
1322 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
1323
1324         * cgraphunit.c (process_function_and_variable_attributes):
1325         Mark dllexport-ed function/variables as needed.
1326         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1327         as externally visible.
1328
1329 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1330
1331         PR rtl-optimization/46585
1332         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1333         (vinsn_init): Skip computation of dependencies for local NOPs.
1334         (vinsn_delete): Don't try to free regsets for local NOPs.
1335         (setup_nop_and_exit_insns): Change definition of nop_pattern.
1336
1337 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1338
1339         PR rtl-optimization/46602
1340         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1341         (tidy_control_flow): Here.
1342
1343 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
1344             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1345
1346         PR bootstrap/45888
1347         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1348         Fix target.def pathname in timestamp comparison.
1349
1350 2010-11-24  Richard Henderson  <rth@redhat.com>
1351
1352         * config/ia64/predicates.md (pmpyshr_operand): New.
1353         * config/ia64/ia64.c (ia64_expand_unpack): New.
1354         (ia64_expand_widen_mul_v4hi): New.
1355         (ia64_expand_widen_sum): Update for pattern renames.
1356         (ia64_expand_dot_prod_v8qi): Likewise.
1357         * config/ia64/ia64-protos.h: Update.
1358         * config/ia64/vect.md (vecwider): New mode attribute.
1359         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1360         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1361         (pmpyshr2, pmpyshr2_u): New.
1362         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1363         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1364         (mulv2si3): New.
1365         (vec_pack_ssat_v4hi): Rename from pack2_sss.
1366         (vec_pack_usat_v4hi): Rename from *pack2_uss.
1367         (vec_pack_ssat_v2si): Rename from pack4_sss.
1368         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1369         vec_select operation.
1370         (vec_interleave_highv8qi): Similarly.
1371         (mux1_alt): Rename from *mux1_alt.
1372         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1373         (vec_interleave_lowv4hi): Rename from unpack2_l.
1374         (vec_interleave_highv4hi): Rename from unpack2_h.
1375         (mix2_r): Rename from *mix2_r.
1376         (mix2_l): Similarly.
1377         (vec_extract_evenodd_helper): New.
1378         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1379         (vec_interleave_lowv2si): Rename from *unpack4_l.
1380         (vec_interleave_highv2si): Rename from *unpack4_h.
1381         (vec_extract_evenv2si, vec_extract_oddv2si): New.
1382         (vec_interleave_lowv2sf): Rename from fmix_r.
1383         (vec_interleave_highv2sf): Rename from *fmix_l.
1384         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1385         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1386         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1387         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1388
1389 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1390
1391         * targhooks.c (default_except_unwind_info): Remove
1392         MUST_USE_SJLJ_EXCEPTIONS case.
1393         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1394         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1395         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1396         * doc/tm.texi: Regenerate.
1397         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1398
1399 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1400
1401         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1402         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1403         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1404         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1405         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1406
1407 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1408
1409         PR target/46519
1410         * config/i386/i386.c (ix86_expand_call): Don't check
1411         TREE_THIS_VOLATILE.
1412
1413 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1414
1415         PR target/46519
1416         * config/i386/i386.c (upper_128bits_state): New.
1417         (block_info_def): Remove upper_128bits_set and done.  Add state,
1418         referenced, count, processed and rescanned.
1419         (check_avx256_stores): Updated.
1420         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1421         Call note_stores only if needed.  Set referenced and count.
1422         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
1423         (rescan_move_or_delete_vzeroupper): New.
1424         (move_or_delete_vzeroupper):  Process and rescan all all basic
1425         blocks instead of predecessor blocks of all exit points.
1426         (ix86_option_override_internal): Enable vzeroupper optimization
1427         only for -fexpensive-optimizations and not optimizing for size.
1428         (use_avx256_p): Removed.
1429         (init_cumulative_args): Don't set use_avx256_p.
1430         (ix86_function_arg): Likewise.
1431         (ix86_expand_move): Likewise.
1432         (ix86_expand_vector_move_misalign): Likewise.
1433         (ix86_local_alignment): Likewise.
1434         (ix86_minimum_alignment): Likewise.
1435         (ix86_expand_epilogue): Don't check use_avx256_p when generating
1436         vzeroupper.
1437         (ix86_expand_call): Likewise.
1438
1439         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1440         and use_avx256_p.  Add rescan_vzeroupper_p.
1441
1442 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1443
1444         * toplev.c: Include <signal.h>.
1445
1446 2010-11-24  Richard Guenther  <rguenther@suse.de>
1447
1448         PR lto/43218
1449         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1450         conflicting function signatures as non-inlineable.
1451
1452 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1453
1454         PR rtl-optimization/46614
1455         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1456          (deps_analyze_insn): Mark JUMP_INSNs in
1457         last_pending_memory_flush that weren't added through
1458         flush_pending_lists with NON_FLUSH_JUMP_KIND.
1459         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1460         on INSN_LIST instead of JUMP_P check on its operand.
1461         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1462
1463 2010-11-24  Richard Guenther  <rguenther@suse.de>
1464
1465         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1466
1467 2010-11-24  Richard Guenther  <rguenther@suse.de>
1468
1469         PR lto/46606
1470         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1471         a FIELD_DECL that is type correct issue a warning and fixup
1472         with a VIEW_CONVERT_EXPR.
1473
1474 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1475
1476         * doc/invoke.texi (Options for Debugging Your Program or GCC):
1477         Explain static numbering of dump files.
1478
1479 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1480
1481         * common.opt (user_vect_verbosity_level): New Variable entry.
1482         (ftree-vectorizer-verbose=): Mark as UInteger.
1483         * flag-types.h (enum vect_verbosity_levels): Move from enum
1484         verbosity_levels in tree-vectorizer.h.
1485         * opts.c: Don't include tree.h.
1486         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
1487         gcc_options parameter; take integer option argument.
1488         (common_handle_option): Update call to vect_set_verbosity_level.
1489         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1490         (vect_set_verbosity_level): Move to opts.c.
1491         (vect_verbosity_level, vect_print_dump_info): Update for change of
1492         enum name.
1493         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1494         (vect_print_dump_info): Update for change of enum name.
1495         * tree.h (vect_set_verbosity_level): Remove.
1496         * Makefile.in (opts.o): Update dependencies.
1497
1498 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1499
1500         PR middle-end/46629
1501         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1502         instead of insn with any_condjump_p.
1503
1504 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
1505
1506         * config/mips/loongson.md: Change the description comment of the file
1507         and update the copyright years.
1508         (define_insn "<u>div<mode>3): Add loongson3a support.
1509         (define_insn "<u>mod<mode>3"): Likewise.
1510         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1511         mul<mode>3_mul3_loongson.
1512         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1513         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1514
1515 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1516
1517         * common.opt (initial_max_fld_align, flag_debug_asm,
1518         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1519         flag_print_asm_name, graph_dump_format, help_printed,
1520         help_columns, flag_opts_finished): New Variable entries.
1521         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1522         frandom-seed=): Mark deferred.
1523         (fsched-verbose=): Use UInteger and Var.
1524         * flags.h (set_struct_debug_option, flag_print_asm_name,
1525         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1526         graph_dump_format): Don't declare here.
1527         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1528         * opts-global.c: Include dbgcnt.h and debug.h.
1529         (decode_options): Pass location to finish_options.
1530         (handle_common_deferred_options): Check flag_dump_all_passed.
1531         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1532         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
1533         OPT_fstack_limit.
1534         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1535         (set_struct_debug_option): Add location_t parameter.  Update
1536         recursive call.  Use error_at.
1537         (default_options_optimization): Use error_at.
1538         (finish_options): Add location_t parameter.  Use
1539         opts->x_flag_opts_finished instead of first_time_p.  Use
1540         opts->x_optimize instead of optimize.  Use error_at.  Pass
1541         location to inform.
1542         (print_filtered_help): Use opts->x_help_printed to track what
1543         options have been printed.
1544         (print_specific_help): Use opts->x_help_columns to track number of
1545         columns.
1546         (common_handle_option): Pass locations and gcc_options pointers to
1547         more functions.  Use warning_at instead of fnotice and warning.
1548         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1549         OPT_fdebug_prefix_map_.  Use error_at.  Set
1550         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1551         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
1552         OPT_fsched_verbose_.
1553         (handle_param): Add location_r parameter.  Use error_at.
1554         (set_debug_level): Add location_r parameter.  Use error_at and
1555         warning_at.
1556         (setup_core_dumping): Add diagnostic_context parameter.
1557         (decode_d_option): Add gcc_options, location_t and
1558         diagnostic_context parameters and use them instead of global
1559         state.  Use warning_at.
1560         (enable_warning_as_error): Use error_at.
1561         * opts.h (finish_options): Update prototype.
1562         (set_struct_debug_option): Declare here.
1563         * rtl.h (fix_sched_param): Remove.
1564         * stor-layout.c (initial_max_fld_align): Remove.
1565         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
1566         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
1567         (process_options): Set maximum_field_alignment.
1568         * tree.h (initial_max_fld_align) Don't declare here.
1569         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1570
1571 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1572
1573         * flag-types.h (struct visibility_flags): Don't declare here.
1574         * flags.h (strip_off_ending, fast_math_flags_set_p,
1575         fast_math_flags_struct_set_p): Declare here.
1576         (visibility_options): Don't declare here.
1577         * opts-common.c (option_enabled, get_option_state): Move from
1578         opts.c.
1579         * opts-global.c: Include diagnostic.h instead of
1580         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
1581         and toplev.h.
1582         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1583         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1584         print_ignored_options, unknown_option_callback,
1585         post_handling_callback, lang_handle_option, add_input_filename,
1586         read_cmdline_options, initial_lang_mask, init_options_once,
1587         decode_cmdline_options_to_array_default_mask,
1588         set_default_handlers, decode_options): Move from opts.c.
1589         (print_ignored_options): Use warning_at instead of saving and
1590         restoring input_location.
1591         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
1592         instead of expr.h.  Don't include langhooks.h, except.h or
1593         lto-streamer.h.  Add more comments on includes.
1594         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
1595         toplev.c.
1596         (visibility_options): Move to c-family/c-common.c.
1597         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1598         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1599         print_ignored_options, unknown_option_callback,
1600         post_handling_callback, lang_handle_option, add_input_filename,
1601         read_cmdline_options, initial_lang_mask, init_options_once,
1602         decode_cmdline_options_to_array_default_mask,
1603         set_default_handlers, decode_options): Move to opts-global.c.
1604         (target_handle_option, default_options_optimization,
1605         finish_options, common_handle_option): Remove static.
1606         (option_enabled, get_option_state): Move to opts-common.c.
1607         * opts.h (common_handle_option, target_handle_option,
1608         finish_options, default_options_optimization): Declare.
1609         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
1610         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
1611         opts.c.
1612         * toplev.h (strip_off_ending, decode_d_option,
1613         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
1614         declare here.
1615         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1616
1617 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1618
1619         PR driver/42690
1620         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
1621         options, replace by call of pass-through-libs spec function to process
1622         link_gcc_c_sequence spec.
1623         (lto_libgcc_spec): Delete variable.
1624         (static_specs[]): Remove related entry.
1625         (static_spec_functions[]): Add new entry for pass-through-libs.
1626         (main): Don't generate deleted lto_libgcc_spec.
1627         (pass_through_libs_spec_func): New function to implement the new
1628         pass-through-libs spec function.
1629         * doc/invoke.texi (pass-through-libs): Document new spec function.
1630
1631 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1632
1633         * doc/options.texi (Warning, Optimization): Document.
1634
1635 2010-11-23  Jan Hubicka  <jh@suse.cz>
1636
1637         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
1638         (tree_decl_with_vis): Add implicit_section_name_p.
1639         * targhooks.h (default_function_section): Declare.
1640         * target.def (function_section): New hook.
1641         * defaults.h (HOT_TEXT_SECTION_NAME,
1642         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1643         * predict.c (choose_function_section): Remove.
1644         (estimate_bb_frequencies): Do not use choose_function_section.
1645         * coretypes.h (enum node_frequency): Move here from cgraph.h
1646         * cgraph.h (enum node_frequency): Remove.
1647         * varasm.c (initialize_cold_section_name, unlikely_text_section,
1648         unlikely_text_section_p): Remove.
1649         (named_subsection_entry): New structure.
1650         (get_text_section): New function.
1651         (default_function_section): New function.
1652         (function_section_1): Break out from ...; handle profile info.
1653         (function_section): ... here.
1654         (unlikely_text_section): Remove.
1655         (unlikely_text_section_p): Use function_section_1.
1656         (assemble_start_function): Do not initialize cold section.
1657         (default_section_type_flags): Do not special case cold subsection.
1658         (switch_to_section): Likewise.
1659         * output.h (get_text_section): Define.
1660         * config/i386/winnt.c: Do not special case cold section.
1661         * config/darwin-protos.h (darwin_function_section): Declare.
1662         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
1663         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1664         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
1665         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1666         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
1667         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
1668         * config/darwin.c (machopic_select_section): Use
1669         darwin_function_section.
1670         (darwin_function_section): New function.
1671         * config/darwin.h (HOT_TEXT_SECTION_NAME,
1672         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1673         (TARGET_ASM_FUNCTION_SECTION): Define.
1674         * system.h (HOT_TEXT_SECTION_NAME,
1675         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
1676
1677 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1678
1679         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
1680         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
1681
1682 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
1683
1684         PR middle-end/46499
1685         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
1686         following unconditional jumps.
1687
1688 2010-11-23  Richard Guenther  <rguenther@suse.de>
1689
1690         * doc/md.texi (386 constraints): Clarify A constraint documentation.
1691
1692 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1693             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1694
1695         * gengtype.c (enum typekind, struct options)
1696         (struct nested_ptr_data, struct pair, NUM_PARAM)
1697         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
1698         Move to gengtype.h.
1699         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
1700         Remove static, add zero state_number.
1701         (typedefs, structures, param_structs, variables): Remove static.
1702         (create_option): Remove.
1703         (create_string_option, create_type_option, create_nested_option):
1704         New functions.
1705         (create_nested_ptr_option): Use create_nested_option.
1706         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
1707         new create*option functions.
1708         (process_gc_options): Adjust for discriminated option.
1709         (output_mangled_typename): Handle TYPE_NONE.
1710         (walk_type): Test option kinds.
1711         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
1712         (write_func_for_structure, write_type, write_local, write_root)
1713         (write_roots, note_def_vec, dump_options): Adjust for
1714         discriminated option.
1715
1716         * gengtype.h (typedefs, structures, param_structs, variables
1717         enum typekind): Move from gengtype.c
1718         (enum option_kind): New discriminating enumeration.
1719         (struct options): Becomes discriminated.
1720         (struct nested_ptr_data): Nove from gengtype.c
1721         (create_string_option, create_type_option, create_nested_option)
1722         (create_nested_ptr_option): New functions
1723         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1724         (UNION_OR_STRUCT_P): Move from gengtype.c
1725
1726         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1727         discriminated options.
1728
1729 2010-11-23  Richard Guenther  <rguenther@suse.de>
1730
1731         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1732         twice.  Avoid re-allocating the ops vector all the time.
1733
1734 2010-11-23  Richard Guenther  <rguenther@suse.de>
1735
1736         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1737         is_gimple_min_invariant, group tree code checks to allow
1738         combining them.
1739         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1740         of is_gimple_reg.
1741
1742 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1743
1744         * config.gcc (sparc*-*-*): Reorder.
1745
1746 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1747
1748         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1749         Remove ENABLE_CHECKING around DBGPRINTF.
1750
1751 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1752
1753         * common.opt (exit_after_options, write_symbols, debug_info_level,
1754         use_gnu_debug_info_extensions): New Variable entries.
1755         (fprofile-dir=): Use Var.
1756         * flag-types.h (enum debug_info_level): Rename to enum
1757         debug_info_levels.
1758         * flags.h (write_symbols, debug_info_level,
1759         use_gnu_debug_info_extensions): Remove declarations.
1760         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1761         (set_struct_debug_option): Make static variables const.
1762         (use_gnu_debug_info_extensions): Remove.
1763         (set_debug_level, print_filtered_help, print_specific_help,
1764         fast_math_flags_set_p): Take gcc_options parameters and use them
1765         in place of global variables.
1766         (print_filtered_help): Make new_help non-static.
1767         (print_specific_help): Update call to print_filtered_help.
1768         (common_handle_option): Update calls to print_specific_help.  Use
1769         gcc_options structure for more settings.  Make --help table
1770         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1771         set_debug_level.
1772         * toplev.c (profile_data_prefix): Remove.
1773         * toplev.h (profile_data_prefix, exit_after_options): Remove
1774         declarations.
1775         (fast_math_flags_set_p): Update prototype.
1776         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1777         Update call to fast_math_flags_set_p.
1778
1779 2010-11-22  Richard Henderson  <rth@redhat.com>
1780
1781         PR target/46434
1782         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1783         return the address register extracted.
1784         (crx_decompose_address): Update the extracted address register.
1785
1786 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1787
1788         PR driver/43335
1789         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1790
1791 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1792
1793         PR target/46608
1794         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1795         * config/picochip/picochip-protos.h: Don't include "target.h" .
1796         (picochip_secondary_reload): Don't declare.
1797
1798         PR target/46613
1799         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1800         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1801         static.
1802
1803 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1804
1805         PR bootstrap/46609
1806         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1807         (source_dot_c_frul): Likewise.
1808
1809 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1810
1811         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1812
1813 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1814
1815         PR bootstrap/44970
1816         * Makefile.in (fwprop.o) Add sparseset.h.
1817         * fwprop.c: Include sparseset.h
1818         (struct find_occurrence_data, find_occurrence_callback,
1819         find_occurrence): Remove.
1820         (active_defs, active_defs_check, register_active_defs,
1821         update_df_init, update_uses): New.
1822         (update_df): Rewrite.
1823         (try_fwprop_subst, forward_propagate_asm): Add calls to
1824         update_df_init and update_df.
1825         (fwprop_init): Allocate active_defs and active_defs_check.
1826         (fwprop_done): Free them.
1827         (fwprop, fwprop_addr): Adjust comments.
1828         * df.h (df_uses_create): Declare.
1829         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1830         (df_ref_create): Return result of df_ref_create_structure directly.
1831         (df_ref_create_structure): Call df_install_ref_incremental when
1832         no collection_rec is passed.
1833         (df_ref_record): Do not create multiword hard reg info when no
1834         collection_rec is passed.
1835         (df_uses_create): New.
1836
1837 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1838
1839         PR middle-end/43057
1840         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1841         setting location.
1842
1843 2010-11-22  Richard Guenther  <rguenther@suse.de>
1844
1845         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1846         MEM_REFs, preserve volatileness.
1847         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1848         addresses.
1849
1850 2010-11-22  Richard Guenther  <rguenther@suse.de>
1851
1852         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1853
1854 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1855
1856         PR rtl-optimization/45652
1857         * alias.c (get_reg_base_value): New.
1858         * rtl.h (get_reg_base_value): Add prototype.
1859         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1860         non-null REG_BASE_VALUE for renaming.
1861
1862 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1863             Basile Starynkevitch  <basile@starynkevitch.net>
1864
1865         * gengtype.c: Include xregex.h and obstack.h
1866         Added comments about role of get_output_file_with_visibility and
1867         our regexpr machinery.
1868         (frul_actionrout_t, struct file_rule_st): New.
1869         (hader_dot_h_frul, source_dot_c_frul): New functions.
1870         (NULL_REGEX,  NULL_FRULACT): New.
1871         (files_rules): New.
1872         (matching_file_name_substitute): New function.
1873         (get_output_file_with_visibility): Updated comments and rewritten
1874         to use the new files_rules machinery.
1875
1876         * Makefile.in (XREGEX_H): Added variable.
1877         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1878
1879 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1880
1881         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1882
1883 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1884
1885         * target.def (conditional_register_usage): Define.
1886         * reginfo.c (init_reg_sets_1): Call
1887         targetm.conditional_register_usage.
1888         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1889         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1890         for making it a hook.
1891         * doc/tm.texi: Regenerate.
1892         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1893         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1894         New function.
1895         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1896         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1897         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1898         New function.
1899         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1900         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1901         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1902         New function.
1903         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1904         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1905         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1906         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1907         (bfin_conditional_register_usage): ...here.  New function.
1908         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1909         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1910         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1911         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1912         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1913         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1914         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1915         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1916         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1917         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1918         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1919         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1920         New function.
1921         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1922         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1923         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1924         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1925         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1926         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1927         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1928         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1929         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1930         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1931         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1932         New function.
1933         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1934         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1935         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1936         Delete.
1937         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1938         static.
1939         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1940         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1941         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1942         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1943         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1944         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1945         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1946         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1947         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1948         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1949         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1950         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1951         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1952         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1953         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1954         ...here.  New function.
1955         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1956         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1957         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1958         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1959         New function.
1960         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1961         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1962         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1963         New function.
1964         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1965         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1966         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1967         Delete.
1968         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1969         static.
1970         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1971         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1972         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1973         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1974         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1975         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1976         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1977         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1978         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1979         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1980         * config/score/score.c (score_conditional_register_usage): ...here.
1981         New function.
1982         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1983         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1984         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1985         New function.
1986         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1987         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1988         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
1989         New function.
1990         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1991         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
1992         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
1993         * config/spu/spu.c (spu_conditional_register_usage): Make static.
1994         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1995         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1996         * config/v850/v850.c (v850_conditional_register_usage): ...here.
1997         New function.
1998         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1999
2000 2010-11-21  Jan Hubicka  <jh@suse.cz>
2001             Dominique d'Humieres <dominiq@lps.ens.ft>
2002
2003         PR target/46510
2004         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2005         finalize external decls.
2006
2007 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * system.h (strerror): Poison.
2010
2011 2010-11-21  Richard Henderson  <rth@redhat.com>
2012
2013         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2014         for infq/huge_valq.
2015
2016 2010-11-21  Richard Henderson  <rth@redhat.com>
2017
2018         PR rtl-optimization/46571
2019         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2020         (compute_hash_table_work): Use NONDEBUG_INSN_P.
2021
2022 2010-11-21  Paul Koning  <ni1d@arrl.net>
2023
2024         * config/mips/pdp11.md (negsi2): Fix wrong code.
2025
2026 2010-11-21  Paul Koning  <ni1d@arrl.net>
2027
2028         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2029         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2030
2031 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2032
2033         * config/mips/mips.c (machine_function): Rename load_label_length to
2034         load_label_num_insns.
2035         (mips_load_label_length): Rename to...
2036         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
2037         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
2038
2039 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2040
2041         PR target/46533
2042         * config/alpha/predicates.md (direct_call_operand): Return false
2043         for !TARGET_SMALL_TEXT targets.
2044
2045 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2046
2047         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2048         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2049         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2050         * doc/tm.texi: Regenerate.
2051         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2052         HANDLE_PRAGMA_WEAK): Poison.
2053         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2054         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2055         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2056         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2057         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2058         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2059         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2060         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2061         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2062         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2063         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2064         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2065         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2066         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2067         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2068         (HANDLE_PRAGMA_WEAK): Don't undefine.
2069         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2070         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2071         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2072         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2073         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2074         (HANDLE_PRAGMA_WEAK): Don't undefine.
2075         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2076         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2077         (HANDLE_PRAGMA_PACK): Don't undefine.
2078         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2079         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2080         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2081         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2082         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2083         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2084         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2085         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2086         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2087         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2088         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2089         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2090         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2091         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2092         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2093         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2094         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2095
2096 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2097
2098         PR target/31100
2099         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2100         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2101         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2102
2103 2010-11-20  Jan Hubicka  <jh@suse.cz>
2104
2105         * cgraph.c (ld_plugin_symbol_resolution_names): New.
2106         (dump_cgraph_node): Dump resolution.
2107         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2108         (cgraph_comdat_can_be_unshared_p): Dclare.
2109         * lto-streamer-out.c (produce_symtab): Use
2110         cgraph_comdat_can_be_unshared_p.
2111         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2112         (cgraph_comdat_can_be_unshared_p): New function based on logic
2113         in cgraph_externally_visible_p.
2114         (cgraph_externally_visible_p): Use it.
2115         (varpool_externally_visible_p): Virtual tables can be unshared.
2116         * varpool.c (dump_varpool_node): Dump resolution.
2117
2118 2010-11-20  Jan Hubicka  <jh@suse.cz>
2119
2120         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2121
2122 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2123
2124         PR other/46202
2125         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2126         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2127         shell quoting.
2128         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2129         (install-strip): New target.
2130         (STRIPPROG): New variable, exported if STRIP is set.
2131         * doc/install.texi (Final install): Minor markup and code style
2132         fixes.  Document install-strip target.
2133
2134 2010-11-20  Paul Koning  <ni1d@arrl.net>
2135
2136         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2137         pdp11_regno_reg_class): New functions.
2138         * config/pdp11/pdp11.md (define_constants): Add register numbers.
2139         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2140         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2141         functions.
2142         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2143         frame pointer and argument pointer pseudo-registers.
2144         (ARG_POINTER_REGNUM): Define.
2145         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2146         argument pointer.
2147         (FIRST_PARM_OFFSET): Update for argument pointer.
2148         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2149         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2150         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2151         frame pointer and argument pointer.
2152
2153 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
2154
2155         PR debug/46561
2156         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2157         when looking for immediate uses.
2158
2159         PR tree-optimization/45830
2160         * stmt.c (expand_switch_using_bit_tests_p): New function.
2161         (expand_case): Use it.
2162         * tree.h (expand_switch_using_bit_tests_p): New prototype.
2163         * tree-switch-conversion.c (struct switch_conv_info): Add
2164         bit_test_uniq, bit_test_count and bit_test_bb fields.
2165         (check_range): Fix a comment.
2166         (check_process_case): Compute bit_test_uniq and bit_test_count.
2167         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2168         allocation.
2169         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2170         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2171         (array_value_type): New function.
2172         (build_one_array): Use it, if it returned different type,
2173         fold_convert all constructor fields and convert back to the
2174         wider type in the generated code.
2175         (process_switch): Initialize bit_test_uniq, bit_test_count and
2176         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
2177         returned true.
2178
2179 2010-11-19  Michael Matz  <matz@suse.de>
2180
2181         PR tree-optimization/46077
2182         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2183
2184 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
2185
2186         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2187         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2188         function.
2189         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2190
2191 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2192
2193         * mode-switching.c (optimize_mode_switching): Use
2194         FOR_BB_INSNS instead of open-coded loop.
2195         * cfgrtl.c (redirect_branch_edge): Ditto.
2196
2197 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
2198
2199         PR target/46436
2200         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2201         to accomodate 32 bit HOST_WIDE_INT.
2202         (m68hc11_emit_logical): Remove unused variable insn.
2203         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2204         this_insn_uses_iy before use.
2205
2206         PR target/46434
2207         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2208
2209 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2210
2211         PR c/46547
2212         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2213         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2214
2215 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2216
2217         * doc/extend.texi (Function attributes): Document PowerPC target
2218         attributes that are supported.
2219         (Pragmas): Document that PowerPC now supports target pragmas.
2220
2221         * doc/options.texi (TargetVariable): Document TargetVariable,
2222         HeaderInclude, and SourceInclude.
2223
2224         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2225         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2226         -ffp-contract=off.
2227
2228         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2229         SourceInclude directives.  Fix a cut+paste error with target save
2230         enum variables.  Sort enums in the structures after ints and
2231         before shorts.
2232         * opth-gen.awk: Ditto.
2233
2234         * configure.ac: Add support for HeaderInclude and SourceInclude option
2235         directives to add the appropriate files to the dependency lists.
2236         * configure: Regenerate.
2237         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2238         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2239         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2240         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2241         (gcc-options.o): Ditto.
2242         * opt-include.awk: New awk script to handle HeaderInclude and
2243         TargetInclude.
2244
2245         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2246         gets saved in the target options.
2247         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2248         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2249         (-mprototype): Ditto.
2250         (-mbit-word): ditto.
2251         (-mregnames): Ditto.
2252         (-msecure-plt): Ditto.
2253         (-mbss-plt): Ditto.
2254         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2255         (-mpowerpc-gfxopt): Ditto.
2256         (-mmfcrf): Ditto.
2257         (-mpopcntb): Ditto.
2258         (-mfprnd): Ditto.
2259         (-mcmpb): Ditto.
2260         (-mmmfpgpr): Ditto.
2261         (-maltivec): Ditto.
2262         (-mhard-dfp): Ditto.
2263         (-mmulhw): Ditto.
2264         (-mdlmzb): Ditto.
2265         (-mmultiple): Ditto.
2266         (-mstring): Ditto.
2267         (-mpopcntd): Ditto.
2268         (-mfriz): Ditto.
2269         (-mvsx): Ditto.
2270         (-mno-update): Ditto.
2271         (-mavoid-indexed-addresses): Ditto.
2272         (-mtls-markers): Ditto.
2273         (-msched-epilog): Ditto.
2274         (-msched-prolog): Ditto.
2275         (-maix-struct-return): Ditto.
2276         (-msvr4-struct-return): Ditto.
2277         (-mxl-compat): Ditto.
2278         (-mrecip-precision): Ditto.
2279         (-mfp-in-toc): Ditto.
2280         (-msum-in-toc): Ditto.
2281         (-mvrsave): Ditto.
2282         (-mblock-move-inline-limit=): Ditto.
2283         (-misel): Ditto.
2284         (-mpaired): Ditto.
2285         (-mlongcall): Ditto.
2286         (-mgen-cell-microcode): Ditto.
2287         (-mwarn-cell-microcode): Ditto.
2288         (-mwarn-altivec-long): Ditto.
2289         (-mprioritize-restricted-insns=): Ditto.
2290         (-msingle-float): Ditto.
2291         (-mdouble-float): Ditto.
2292         (-msimple-fpu): Ditto.
2293         (-mxilinx-fpu): Ditto.
2294         * config/rs6000/aix64.opt (-mpe): Ditto.
2295
2296         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2297         (rs6000_cpu): Move variable to be a target variable.  Rename
2298         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
2299         -mdebug=<xxx> variables into a single int.
2300         (rs6000_always_hint): Ditto.
2301         (rs6000_sched_groups): Ditto.
2302         (rs6000_align_branch_targets): Ditto.
2303         (rs6000_sched_costly_dep): Ditto.
2304         (rs6000_sched_insert_nops): Ditto.
2305         (rs6000_long_double_type_size): Ditto.
2306         (rs6000_ieeequad): Ditto.
2307         (rs6000_altivec_abi): Ditto.
2308         (rs6000_spe): Ditto.
2309         (rs6000_spe_abi): Ditto.
2310         (rs6000_float_gprs): Ditto.
2311         (rs6000_darwin64_abi): Ditto.
2312         (can_override_loop_align): Ditto.
2313         (rs6000_sdata): Ditto.
2314         (rs6000_tls_size): Ditto.
2315         (rs6000_current_abi): Ditto.
2316         (rs6000_traceback): Ditto.
2317         (rs6000_alignment_flags): Ditto.
2318         (rs6000_current_cmodel): Ditto.
2319         (rs6000_recip_control): Ditto.
2320         (rs6000_cpu_index): Ditto.
2321         (rs6000_tune_index): Ditto.
2322         (rs6000_debug): Ditto.
2323         (rs6000_target_flags_explict): Ditto.
2324
2325         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2326         declaration.
2327
2328         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2329         cmodel.  Change all uses.
2330
2331         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2332         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
2333         Rename cmodel to rs6000_current_cmodel.
2334         (rs6000_sched_groups): Ditto.
2335         (rs6000_align_branch_targets): Ditto.
2336         (rs6000_sched_costly_dep): Ditto.
2337         (rs6000_sched_insert_nops): Ditto.
2338         (rs6000_long_double_type_size): Ditto.
2339         (rs6000_ieeequad): Ditto.
2340         (rs6000_altivec_abi): Ditto.
2341         (rs6000_spe): Ditto.
2342         (rs6000_spe_abi): Ditto.
2343         (rs6000_float_gprs): Ditto.
2344         (rs6000_darwin64_abi): Ditto.
2345         (can_override_loop_align): Ditto.
2346         (rs6000_sdata): Ditto.
2347         (rs6000_tls_size): Ditto.
2348         (rs6000_current_abi): Ditto.
2349         (rs6000_traceback): Ditto.
2350         (rs6000_alignment_flags): Ditto.
2351         (rs6000_current_cmodel): Ditto.
2352         (rs6000_recip_control): Ditto.
2353         (rs6000_cpu_index): Ditto.
2354         (rs6000_tune_index): Ditto.
2355         (rs6000_debug): Ditto.
2356         (rs6000_target_flags_explict): Ditto.
2357         (rs6000_sched_insert_nops_str): Make static.
2358         (rs6000_sched_costly_dep_str): Ditto.
2359         (rs6000_recip_name): Ditto.
2360         (rs6000_abi_name): Ditto.
2361         (rs6000_sdata_name): Ditto.
2362         (enum rs6000_traceback_name): Move to rs6000-opts.h.
2363         (rs6000_parse_tls_size_option): Delete.
2364         (rs6000_valid_attribute_p): New function for target attributes and
2365         pragmas.
2366         (rs6000_function_specific_save): Ditto.
2367         (rs6000_function_specific_restore): Ditto.
2368         (rs6000_function_specific_print): Ditto.
2369         (rs6000_can_inline_p): Ditto.
2370         (rs6000_set_current_function): Ditto.
2371         (rs6000_inner_target_options): Ditto.
2372         (rs6000_debug_target_options): Ditto.
2373         (rs6000_pragma_target_parse): Ditto.
2374         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2375         attributes and pragmas.
2376         (TARGET_OPTION_SAVE): Ditto.
2377         (TARGET_OPTION_RESTORE): Ditto.
2378         (TARGET_OPTION_PRINT): Ditto.
2379         (TARGET_CAN_INLINE_P): Ditto.
2380         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2381         (POWER_MASKS): Move to file level scope from the
2382         rs6000_option_override_internal function.
2383         (POWERPC_MASKS): Ditto.
2384         (ISA_*_MASKS): Ditto.
2385         (struct rs6000_ptt): Ditto.
2386         (processor_target_table): Ditto.
2387         (rs6000_cpu_name_lookup): Map cpu name to an index in
2388         processor_target_table.
2389         (rs6000_debug_reg_global): Print more information on processor
2390         options for -mdebug=reg.
2391         (rs6000_init_hard_regno_mode_ok): Add support for target
2392         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
2393         Allow -mdebug=val1,val2.  Rename cmodel variable.
2394         (rs6000_option_override_internal): Ditto.
2395         (rs6000_option_override): Ditto.
2396         (rs6000_handle_option): Ditto.
2397         (rs6000_conditional_register_usage): Add debug trace message.
2398         (struct rs6000_opt_mask): New for target attribute/pragma support.
2399         (rs6000_opt_masks): Ditto.
2400         (struct rs6000_opt_var): Ditto.
2401         (rs6000_opt_vars): Ditto.
2402         (rs6000_previous_function): Ditto.
2403
2404         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2405         wasn't already included.
2406         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2407         (enum processor_type): Ditto.
2408         (rs6000_cpu): Ditto.
2409         (enum fpu_type_t): Ditto.
2410         (fpu_type): Ditto.
2411         (enum rs6000_dependence_cost): Ditto.
2412         (enum rs6000_nop_insertion): Ditto.
2413         (enum group_termination): Ditto.
2414         (rs6000_long_double_type_size): Ditto.
2415         (rs6000_ieeequad): Ditto.
2416         (rs6000_altivec_abi): Ditto.
2417         (rs6000_spe_abi): Ditto.
2418         (rs6000_spe): Ditto.
2419         (rs6000_float_gprs): Ditto.
2420         (rs6000_alignment_flags): Ditto.
2421         (rs6000_sched_insert_nops): Ditto.
2422         (enum rs6000_vector): Ditto.
2423         (enum rs6000_abi): Ditto.
2424         (rs6000_current_opt): Ditto.
2425         (rs6000_debug_*): Delete.
2426         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2427         (TARGET_DEBUG*): Ditto.
2428
2429         * config/rs6000/rs6000-opts.h: New header file to define the enums
2430         that are used in target variables that are now defined in rs6000.opt.
2431
2432         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2433         rs6000-opts.h.
2434         (rs6000_sdata): Ditto.
2435         (rs6000_abi_name): Delete.
2436         (rs6000_sdata_name): Ditto.
2437         (rs6000_tls_size_string): Ditto.
2438
2439 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2440
2441         * common.opt (debug_struct_ordinary, debug_struct_generic): New
2442         Variable entries.
2443         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2444         should_emit_struct_debug): Move from opts.c.
2445         * flag-types.h (enum debug_struct_file): Move from opts.c.
2446         * flags.h (should_emit_struct_debug): Remove.
2447         (base_of_path): Declare.
2448         (set_struct_debug_option): Add gcc_options parameter.
2449         * optc-gen.awk, opth-gen.awk: Handle array variables.
2450         * opts.c (enum debug_struct_file, debug_struct_ordinary,
2451         debug_struct_generic): Remove.
2452         (set_struct_debug_option): Add gcc_options parameter.
2453         (base_of_path): Remove static.
2454         (main_input_basename, main_input_baselength, matches_main_base,
2455         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2456         Remove.
2457         * toplev.c (main_input_basename, main_input_baselength): Define
2458         here.
2459         * toplev.h (main_input_basename, main_input_baselength): Declare
2460         here.
2461
2462 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2463
2464         * common.opt (flag_instrument_functions_exclude_functions,
2465         flag_instrument_functions_exclude_files): New Variable definitions.
2466         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2467         * gimplify.c (char_p): Declare type and vectors.
2468         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
2469         * opts.c (flag_instrument_functions_exclude_functions,
2470         flag_instrument_functions_exclude_files): Remove.
2471         (add_comma_separated_to_vector): Take void **.
2472         (flag_instrument_functions_exclude_p): Move to gimplify.c.
2473         (common_handle_option): Use options structure for
2474         -finstrument-functions-exclude- options.
2475
2476 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2477
2478         * doc/options.texi (Var): Document effects of Defer.
2479         (Defer): Document.
2480         * opt-functions.awk (var_type, var_set): Handle deferred options.
2481         * opts-common.c (set_option): Handle CLVC_DEFER.
2482         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2483         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2484         fstack-limit-symbol=): Mark as deferred.
2485         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2486         plugin.h.
2487         (print_filtered_help): Don't report state of CLVC_DEFER options.
2488         (common_handle_option): Move code for OPT_fcall_used_,
2489         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2490         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2491         OPT_fstack_limit_symbol_ to opts-global.c.
2492         (option_enabled, get_option_state): Handle CLVC_DEFER.
2493         * opts.h: Include vec.h.
2494         (enum cl_var_type): Add CLVC_DEFER.
2495         (cl_deferred_option): Define type and vectors.
2496         (handle_common_deferred_options): Declare.
2497         * opts-global.c: New.
2498         * toplev.c (toplev_main): Call handle_common_deferred_options
2499         * Makefile.in (OPTS_H): Include $(VEC_H).
2500         (OBJS-common): Include opts-global.o.
2501         (opts.o): Update dependencies.
2502         (opts-global.o): Add dependencies.
2503
2504 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2505
2506         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2507         to objc_declare_protocols.
2508
2509 2010-11-19  Richard Guenther  <rguenther@suse.de>
2510
2511         PR lto/45789
2512         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2513         IDENTIFIERs do not stream TREE_TYPE.
2514         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2515
2516 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2517
2518         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2519
2520 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
2521
2522         PR target/45870
2523         * dwarf2out.c (const_ok_for_output_1): Don't complain about
2524         non-delegitimized TLS UNSPECs.
2525
2526 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
2527             Ian Lance Taylor  <iant@google.com>
2528
2529         * config/darwin-c.c (darwin_additional_format_types): Export.
2530
2531 2010-11-18  Paul Koning  <ni1d@arrl.net>
2532
2533         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2534         pointer.
2535
2536 2010-11-18  Paul Koning  <ni1d@arrl.net>
2537
2538         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2539         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2540         * config/pdp11/pdp11.opt (-mabshi): Delete.
2541
2542 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
2543
2544         * resource.h (struct resources): Fix typo in the comment.
2545
2546 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2547
2548         PR target/46546
2549         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2550
2551 2010-11-18  Richard Henderson  <rth@redhat.com>
2552
2553         PR middle-end/46515
2554         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2555         maybe_copy_epilogue_insn; handle prologue insns as well.
2556         * rtl.h, cfglayout.c: Update for rename.
2557         * recog.c (peep2_attempt): Copy prologue/epilogue data for
2558         RTX_FRAME_RELATED_P insns.
2559
2560 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
2561
2562         PR middle-end/46534
2563         * builtins.c (fold_builtin_printf): Don't copy and modify string
2564         before build_string_literal, instead modify what
2565         build_string_literal returned.
2566
2567 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2568
2569         PR c/33193
2570         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
2571         REALPART_EXPR and IMAGPART_EXPR.
2572
2573 2010-11-18  Richard Guenther  <rguenther@suse.de>
2574
2575         PR tree-optimization/46172
2576         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
2577         function.
2578         (slpeel_tree_peel_loop_to_edge): Call it.
2579
2580 2010-11-18  Jeff Law  <law@redhat.com>
2581
2582         PR middle-end-optimization/46297
2583         * postreload.c (reload_combine_note_store): Deal with embedded
2584         side effects in MEM expressions.
2585
2586 2010-11-18  Richard Guenther  <rguenther@suse.de>
2587
2588         PR lto/45089
2589         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
2590         when checking is not enabled.
2591
2592 2010-11-18  Richard Guenther  <rguenther@suse.de>
2593
2594         PR lto/46525
2595         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
2596         type leaders.
2597         (gimple_register_canonical_type): Also cache the canoncial type
2598         for non type leaders.
2599
2600 2010-11-18  Richard Guenther  <rguenther@suse.de>
2601
2602         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
2603
2604 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
2605
2606         PR middle-end/46518
2607         * sel-sched-ir.c (init_expr): Use the correct type for
2608         target_available.
2609         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
2610
2611 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2612
2613         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
2614         as well as -mrelocatable at the same time.
2615
2616 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
2617
2618         PR target/46422
2619         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
2620         Call the clz builtin.
2621
2622 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
2623             Steve Ellcey  <sje@cup.hp.com>
2624
2625         PR middle-end/31490
2626         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2627         if section attribute used.
2628
2629 2010-11-17  Jan Hubicka  <jh@suse.cz>
2630
2631         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
2632         expand errno setting variant when optimizing for size.
2633
2634 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2635
2636         * postreload.c (reload_combine): Call control_flow_insn_p only once.
2637         Reverse backward loop.  Fix formatting issues.
2638
2639 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
2640
2641         * c-parser.c (c_token_is_qualifier,
2642         c_parser_next_token_is_qualifier): New.
2643         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
2644         Improve error message on specs->tagdef_seen_p.
2645         (c_parser_struct_or_union_specifier): Improve error recovery.
2646         (c_parser_declspecs): Move exit condition on C_ID_ID early.
2647         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
2648         using c_parser_next_token_is_qualifier; extend it to cover
2649         a ctsk_tagdef typespec and !typespec_ok in general.
2650
2651 2010-11-17  Richard Guenther  <rguenther@suse.de>
2652
2653         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
2654         (gimple_mod_pow2_value_transform): Likewise.
2655         (gimple_mod_subtract_transform): Likewise.
2656
2657 2010-11-17  Richard Guenther  <rguenther@suse.de>
2658
2659         PR lto/46504
2660         * gimple.c (gimple_register_canonical_type): Make sure to only
2661         make type leaders canonical types.
2662
2663 2010-11-17  Michael Matz  <matz@suse.de>
2664
2665         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
2666         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
2667         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
2668         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
2669         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
2670         (pass_build_ssa): ... but here.
2671         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
2672         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
2673         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
2674         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
2675         * predict.c (rebuild_frequencies): Ditto.
2676         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
2677         * emit-rtl.c (verify_rtl_sharing): Ditto.
2678         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
2679         * tree-ssa-live.c (remove_unused_locals): Ditto.
2680         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
2681         * tree-ssa.c (pass_early_warn_uninitialized,
2682         execute_update_addresses_taken, pass_update_address_taken): Ditto.
2683         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2684         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
2685         * passes.c (pass_postreload, execute_todo): Ditto.
2686         * tree-ssanames.c (pass_release_ssa_names): Ditto.
2687
2688 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2689
2690         * doc/invoke.texi (-dy): Remove.
2691         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
2692         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
2693         * langhooks.c (lhd_do_nothing_i): Remove.
2694         * langhooks.h (lang_hooks.parse_file): Take no arguments.
2695         * toplev.c (set_yydebug): Remove.
2696         (compile_file): Update call to lang_hooks.parse_file.
2697         (decode_d_option): Don't handle -dy.
2698
2699 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2700
2701         PR rtl-optimization/46440
2702         * combine.c (update_cfg_for_uncondjump): When changing
2703         an indirect jump into unconditional jump, remove BARRIERs
2704         from bb's footer.
2705
2706 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2707
2708         * opts.c (target_handle_option): Do not assert that loc ==
2709         UNKNOWN_LOCATION.
2710
2711 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2712             Richard Guenther  <rguenther@suse.de>
2713
2714         PR middle-end/45838
2715         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2716         call_may_clobber_ref_p_1): Return true for __sync_* and some
2717         OpenMP builtins that act as threading barriers.
2718
2719 2010-11-17  Richard Guenther  <rguenther@suse.de>
2720
2721         PR tree-optimization/46498
2722         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2723
2724 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2725
2726         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2727         (xtensa_function_arg_boundary): ...this.
2728         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2729         thinko in declaration.
2730         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2731         number of parameters to picochip_function_arg_boundary.
2732         (picochip_arg_advance): Likewise.
2733
2734 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2735
2736         PR target/46512
2737         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2738         under check for type.
2739
2740 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2741
2742         * ifcvt.c (dead_or_predicable): Fix typo.
2743
2744 2010-11-16  Richard Henderson  <rth@redhat.com>
2745
2746         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2747         * config/s390/s390.opt (mfused-madd): Remove.
2748         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2749         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2750         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2751         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2752
2753 2010-11-16  Richard Henderson  <rth@redhat.com>
2754
2755         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2756         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2757         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2758         (*altivec_vmaddfp_1): Remove.
2759         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2760         (altivec_mulv4sf3): Expand to FMA directly.
2761         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2762         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2763         * config/rs6000/paired.md (paired_madds0): Use FMA.
2764         (paired_madds1): Likewise.
2765         (*paired_madd): Rename from paired_madd; use FMA.
2766         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2767         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2768         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2769         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2770         (rs6000_emit_madd): Use fma_optab.
2771         (rs6000_emit_msub): Use fms_optab.
2772         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2773         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2774         (*fmasf4_fpr): Rename from fmasf4_fpr.
2775         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2776         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2777         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2778         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2779         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2780         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2781         (*fmadf4_fpr): Rename from fmadf4_fpr.
2782         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2783         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2784         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2785         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2786         (fmasf4, fmadf4): Macroize into...
2787         (fma<FMA_F>4): ... here.
2788         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2789         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2790         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2791         TARGET_FUSED_MADD.
2792         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2793         (*vsx_fmadd<mode>4_1): Remove.
2794         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2795         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2796         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2797         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2798         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2799         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2800         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2801
2802 2010-11-16  Richard Henderson  <rth@redhat.com>
2803
2804         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2805         (fmasf4, fnmadf4, fnmasf4): Likewise.
2806         (unnamed plus+mult insns and splitters): Delete.
2807
2808 2010-11-16  Richard Henderson  <rth@redhat.com>
2809
2810         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2811         (fnma<VSF>4): Rename from fnms_<VSF>.
2812         (fms<VSF>4): Rename from fms_<VSF>.
2813         (fma<VDF>4): Rename from fma_<VDF>.
2814         (fms<VDF>4): Rename from fms_<VDF>.
2815         (nfma<VDF>4): Rename from fnma_<VDF>.
2816         (nfms<VDF>4): Rename from fnms_<VDF>.
2817         (fnma<VDF>4, fnms<VDF>4): New expanders.
2818         (floatunsdisf2): Update for the renames.
2819         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2820         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2821
2822 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2823
2824         PR rtl-optimization/46490
2825         * combine.c (expand_compound_operation): Fix thinko.
2826
2827 2010-11-16  Richard Henderson  <rth@redhat.com>
2828
2829         PR target/46470
2830         * recog.c (peep2_attempt): Convert frame-related info when possible.
2831         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2832         (peephole2_optimize): Allow peep2_attempt to fail.
2833
2834 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2835
2836         PR rtl-optimization/46315
2837         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2838         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2839         extracted from...
2840         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2841         (remove_reg_equal_equiv_notes_for_defs): ...this.
2842         (delete_unmarked_insns): Adjust to above renaming.
2843         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2844         referring to registers set in the insns being moved, if any.
2845
2846         * df-core.c (df_ref_dump): New function extracted from...
2847         (df_refs_chain_dump): ...here.  Call it.
2848         (df_regs_chain_dump): Likewise.
2849         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2850         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2851
2852 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2853
2854         PR rtl-optimization/46395
2855         * postreload.c (reload_combine): Invalidate register use
2856         information on all control flow insns.
2857
2858         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2859         LABEL_REF in UNSPEC operand.
2860
2861 2010-11-16  Jan Hubicka  <jh@suse.cz>
2862
2863         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2864         when !flag_toplevel_reorder do not remove unless variable is
2865         COMDAT or ARTIFICIAL.
2866         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2867         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2868         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2869         * varpool.c (decide_is_variable_needed): Do not handle visibility
2870         issues.
2871         (varpool_finalize_decl): Likewise.
2872         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2873         update outdated comment on DECL_RTL_SET_P check.
2874
2875 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2876
2877         * config/sol2.h (NM_FLAGS): Define.
2878         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2879         * doc/tm.texi: Update.
2880
2881 2010-11-16  Nick Clifton  <nickc@redhat.com>
2882
2883         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2884         (msubsf4): Rename to fmssf4, and use fma.
2885         (nmaddsf4): Rename to fnmasf4 and use fma.
2886         (nmsubsf4): Rename to fnmssf4 and use fma.
2887
2888 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2889
2890         PR target/44762
2891         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2892         (score3_in_small_data_p, score3_function_value): Likewise.
2893         (score3_trampoline_init): Use LCT_NORMAL.
2894         (score3_print_operand): Initialize code as UNKNOWN.
2895         * config/score/predicates.md (score_load_multiple_operation):
2896         Remove unused variable.
2897         (score_store_multiple_operation): Likewise.
2898         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2899         (score7_in_small_data_p, score7_function_value): Likewise.
2900         (score7_trampoline_init): Use LCT_NORMAL.
2901         (score7_print_operand): Initialize code as UNKNOWN.
2902         * config/score/score3.h (score3_return_in_memory): Update prototype.
2903         (score3_in_small_data_p, score3_function_value): Likewise.
2904         * config/score/score-protos.h (score_function_value): Likewise.
2905         * config/score/score7.h (score7_return_in_memory): Update prototype.
2906         (score7_in_small_data_p, score7_function_value): Likewise.
2907         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2908         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2909         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2910         (score_function_epilogue, score_in_small_data_p): Likewise.
2911         (score_option_override, score_asm_trampoline_template): Likewise.
2912         (score_trampoline_init, score_print_operand): Likewise.
2913         (score_print_operand_address, score_prologue): Likewise.
2914         (score_epilogue, score_call, score_call_value): Likewise.
2915         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2916         (score_function_arg_advance): Likewise. Make static.
2917         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2918         (score_function_arg, score_legitimate_address_p): Make static.
2919         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2920         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2921         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2922         Allow (W) == HOST_BITS_PER_WIDE_INT.
2923
2924         PR java/46386
2925         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2926         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2927
2928 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2929
2930         * config/arc/arc.c: Delete pasto.
2931         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2932
2933 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2934
2935         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2936         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2937         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2938         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2939         (mn10300_preferred_reload_class,
2940         mn10300_preferred_output_reload_class): New functions.
2941
2942 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2943
2944         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2945         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2946         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2947         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2948
2949 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2950
2951         * builtins.c (std_gimplify_va_arg_expr): Use
2952         targetm.calls.function_arg_boundary.
2953         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2954         * calls.c (struct arg_data): Update comment.
2955         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2956         * target.def (function_arg_boundary): Define.
2957         * targhooks.h (default_function_arg_boundary): Declare.
2958         * targhooks.c (default_function_arg_boundary): Define.
2959         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2960         TARGET_FUNCTION_ARG_BOUNDARY.
2961         (FUNCTION_ARG_BOUNDARY): Delete.
2962         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2963         * doc/tm.texi: Regenerate.
2964         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2965         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2966         * config/arc/arc.c (arc_function_arg_boundary): Define.
2967         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2968         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2969         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2970         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2971         (arm_function_arg_boundary): Define.
2972         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2973         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2974         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2975         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2976         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2977         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2978         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2979         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2980         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2981         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2982         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2983         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2984         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2985         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2986         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
2987         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
2988         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2989         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
2990         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
2991         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
2992         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2993         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
2994         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
2995         * config/mips/mips.c (mips_function_arg_boundary): Make static.
2996         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2997         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
2998         * config/pa/pa.c (pa_function_arg_boundary): Define.
2999         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3000         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3001         * config/picochip/picochip-protos.h
3002         (picochip_get_function_arg_boundary): Delete.
3003         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3004         Rename to...
3005         (picochip_function_arg_boundary): ...this.  Make static.
3006         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3007         (picochip_arg_advance): Adjust.
3008         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3009         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3010         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3011         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3012         (rs6000_function_arg_boundary): ...this.  Make static.
3013         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3014         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3015         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3016         * config/rx/rx.c (rx_function_arg_boundary): Define.
3017         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3018         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3019         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3020         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3021         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3022         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3023         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3024         (xtensa_function_arg_boundary): ...this.  Make static.
3025         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3026
3027 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3028
3029         * expr.c (alignment_for_piecewise_move): New function.
3030         (widest_int_mode_for_size): New function.
3031         (move_by_pieces, move_by_pieces_ninsns): Call them.
3032         (can_store_by_pieces, store_by_pieces_1): Likewise.
3033
3034 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3035
3036         * gcc.c (char_p): Define.  Define a VEC of it.
3037         (n_linker_options, n_assembler_options, n_preprocessor_options):
3038         Delete.
3039         (linker_options, assembler_options, preprocessor_options): Convert
3040         to a VEC.
3041         (add_preprocessor_option): Adjust.
3042         (add_assembler_option): Adjust.
3043         (add_linker_option): Adjust.
3044         (do_specs_vec): New function.
3045         (do_spec_1): Call it.  Adjust for new types.
3046
3047 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3048
3049         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3050         (sreal.o, statistics.o, stringpool.o): Likewise.
3051
3052 2010-11-16  Richard Guenther  <rguenther@suse.de>
3053
3054         PR tree-optimization/44545
3055         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3056         statements are not reassociatable.
3057         (reassociate_bb): Likewise.
3058
3059 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3060
3061         * bitmap.c: Delete unnecessary includes.
3062         * ebitmap.c: Likewise.
3063         * et-forest.c: Likewise.
3064         * sreal.c: Likewise.
3065         * statistics.c: Likewise.
3066         * stringpool.c: Likewise.
3067         * double-int.c: Add comment for inclusion of tm.h.
3068
3069 2010-11-16  Richard Guenther  <rguenther@suse.de>
3070
3071         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3072         (visit_nary_op): ... this.
3073         (visit_binary_op): Remove.
3074         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3075
3076 2010-11-16  Richard Guenther  <rguenther@suse.de>
3077
3078         PR middle-end/45172
3079         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3080
3081 2010-11-16  Nick Clifton  <nickc@redhat.com>
3082
3083         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3084         record is packed.
3085
3086 2010-11-15  Richard Henderson  <rth@redhat.com>
3087
3088         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3089         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3090         DOT_PROD_EXPR.
3091
3092 2010-11-15  Richard Henderson  <rth@redhat.com>
3093
3094         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3095         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
3096         fma rtx_code.
3097
3098 2010-11-15  Richard Henderson  <rth@redhat.com>
3099
3100         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3101         and *mulsubsf4 respectively.  Use fma rtx_code.
3102
3103 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
3104
3105         * gcc.c: Include "vec.h".
3106         (argbuf): Make into a VEC.
3107         (argbuf_length, argbuf_index): Remove.
3108         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3109         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3110         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3111         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3112         (gcc.o): Depend on $(VEC_H).
3113
3114 2010-11-15  Richard Henderson  <rth@redhat.com>
3115
3116         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3117         via FMA if unsafe math.
3118         (insert_var_expansion_initialization): Handle FMA.
3119         (combine_var_copies_in_loop_exit): Likewise.
3120
3121 2010-11-15  Richard Henderson  <rth@redhat.com>
3122
3123         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3124         * config/ia64/ia64.opt: Remove mfused-madd.
3125         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3126         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3127         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3128         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3129         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3130         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3131         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3132         (fmav2sf4): Rename from fpma; use FMA code.
3133         (fmsv2sf4): Rename from fpms; use FMA code.
3134         (fnmav2sf4): Rename from *fpnma; use FMA code.
3135         * config/ia64/ia64.md (MODE_SDF): New iterator.
3136         (suffix): New mode attribute.
3137         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3138         (fmssf4): Rename from *fmssf4.
3139         (fnmasf4): Rename from *nfmasf4.
3140         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3141         (*nmadddf4, *nmadddf4_truncsf): Remove.
3142         (fmsdf4): Rename from *fmsdf4.
3143         (fnmadf4): Rename from *nfmadf4.
3144         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3145         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3146         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3147         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3148         (fmsxf4): Rename from *fmsxf4.
3149         (fnmaxf4): Rename from *nfmaxf4.
3150         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3151         (*fnmaxf_trunc_<MODE_SDF>): New.
3152
3153 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3154
3155         PR tree-optimization/46461
3156         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3157         a gimple val.
3158
3159 2010-11-15  Ian Lance Taylor  <iant@google.com>
3160
3161         * godump.c: New file.
3162         * common.opt (fdump-go-spec=): New option.
3163         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3164         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3165         (TYPE_SYMTAB_IS_DIE): Define.
3166         (struct tree_type): Change GTY for symtab field to use
3167         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3168         to pick the union field.
3169         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3170         (dump_go_spec_init): Declare.
3171         * toplev.c (process_options): Handle flag_dump_go_spec.
3172         * debug.c: Include "tree.h".
3173         (do_nothing_debug_hooks): Set tree_type_symtab_field.
3174         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3175         * dbxout.c (dbx_debug_hooks): Likewise.
3176         (xcoff_debug_hooks): Likewise.
3177         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3178         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
3179         SDB_DEBUGGING_INFO is not defined.
3180         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3181         (Overall Options): Document -fdump-go-spec.
3182         * Makefile.in (OBJS-common): Add godump.o.
3183         (debug.o): Add dependency on $(TREE_H).
3184         (godump.o): New target.
3185         (GTFILES): Add $(srcdir)/godump.c.
3186
3187 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3188
3189         PR debug/46095
3190         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3191         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3192         style < 0, add REG_FRAME_RELATED_EXPR.
3193
3194         PR debug/46387
3195         * rtl.h (vt_equate_reg_base_value): New prototype.
3196         * alias.c (vt_equate_reg_base_value): New function.
3197         * var-tracking.c (vt_init_cfa_base): Use it.
3198
3199 2010-11-15  Jan Hubicka  <jh@suse.cz>
3200             Diego Novillo  <dnovillo@google.com>
3201
3202         PR lto/41528
3203         * doc/lto.texi: Add.
3204         * doc/gccint.texi: Add reference to lto.texi.
3205         * doc/invoke.texi: Update user documentation for LTO.
3206         Move internal flags to lto.texi
3207
3208 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3209
3210         * c-typeck.c (build_unary_op): Use
3211         objc_build_incr_expr_for_property_ref to build the pre/post
3212         increment/decrement of an Objective-C property ref, and skip the
3213         lvalue_or_else check in that case.
3214
3215 2010-11-15  Martin Jambor  <mjambor@suse.cz>
3216
3217         PR tree-optimization/46349
3218         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3219         (contains_vce_or_bfcref_p): Likewise.
3220         (sra_modify_assign): Use them.
3221
3222 2010-11-15  Richard Guenther  <rguenther@suse.de>
3223
3224         PR tree-optimization/46467
3225         * tree-ssa-structalias.c (do_structure_copy): Properly treat
3226         variables without subvars.
3227
3228 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
3229
3230         * config/picochip/picochip.c (file header): Picochip name change.
3231         * config/picochip/picochip.md (file header): Likewise.
3232         * config/picochip/predicates.md (file header): Likewise.
3233         * config/picochip/dfa_space.md (file header): Likewise.
3234         * config/picochip/dfa_speed.md (file header): Likewise.
3235         * config/picochip/picochip.h(file header): Likewise.
3236         * config/picochip/constraints.md (file header): Likewise.
3237         * config/picochip/picochip-protos.h (file header): Likewise.
3238         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3239         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3240         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3241         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3242         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3243         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3244         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3245         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3246         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3247         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3248         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3249         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3250         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3251         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3252
3253 2010-11-15  Richard Guenther  <rguenther@suse.de>
3254
3255         PR bootstrap/46474
3256         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3257
3258 2010-11-15  Nick Clifton  <nickc@redhat.com>
3259
3260         * config/stormy16/stormy16.c (direct_return): Do not generate a
3261         direct return for interrupt handlers.
3262
3263 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
3264
3265         * Makefile.in (tm.texi): Replace with rule for:
3266         ($(srcdir)/doc/tm.texi).
3267         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3268         $(srcdir)/doc/tm.texi .
3269         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3270         tm.texi .
3271
3272         PR target/46427
3273         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3274
3275         PR bootstrap/45444
3276         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3277         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3278
3279         PR target/46432
3280         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3281
3282 2010-11-15  Richard Guenther  <rguenther@suse.de>
3283
3284         PR lto/44150
3285         * lto-opts.c (lto_write_options): Write -fexceptions even if
3286         not set by the user.
3287
3288 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3289
3290         PR c/46462
3291         * c-decl.c (declspecs_add_type): Make variables with error types
3292         integers.
3293         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3294         do not start a declaration before an Objective-C foreach.
3295         (c_parser_declaration_or_fndef): Improve recovery after unknown
3296         type name.
3297         (c_parser_for_statement): Hoist entrance of "foreach context"
3298         before ifs, add corresponding reset where it was missing.  Do
3299         not set objc_could_be_foreach_context for C.
3300
3301 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
3302
3303         PR tree-optimization/45722
3304         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3305         this is a reference to a component.
3306         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3307         (ipa_note_param_call): Adjust comment.
3308
3309 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
3310
3311         * config/mips/mips.c (machine_function): Remove
3312         initialized_mips16_gp_pseudo_p.
3313         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3314         detect whether a pseudo has already been created.  Unconditionally
3315         create a new one if not.
3316         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3317         expanding to rtl.  Create a new pseudo otherwise, if allowed.
3318
3319 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
3320
3321         PR target/43440
3322         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3323         * tm.texi: Regenerated.
3324         * output.h (decode_reg_name_and_count): Declare.
3325         * varasm.c (decode_reg_name_and_count): New function.
3326         (decode_reg_name): Reimplement using decode_reg_name_and_count.
3327         * reginfo.c (fix_register): Use decode_reg_name_and_count and
3328         iterate over all regs used.
3329         * stmt.c (expand_asm_operands): Likewise.
3330         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3331         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3332         multiple machine registers.
3333
3334 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3335
3336         * stor-layout.c (place_union_field): Do not put location information
3337         on offset expressions.
3338         (place_field): Likewise.
3339         (finalize_record_size): Likewise on size expressions.
3340         (finalize_type_size): Likewise.
3341         (layout_type): Likewise.
3342
3343 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
3344
3345         PR debug/42889
3346         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
3347         * df-core.c (df_set_bb_dirty_nonrl): Remove.
3348         * df.h (df_set_bb_dirty_nonlr): Likewise.
3349
3350 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
3351
3352         * config/mips/mips.md (call_internal): Pass curr_insn to
3353         mips_split_call.
3354         (call_internal_direct): Ditto.
3355         (call_value_internal): Ditto.
3356         (call_value_internal_direct): Ditto.
3357         (call_value_multiple_internal): Ditto.
3358         * config/mips/mips.c (mips_split_call): Do not copy
3359         CALL_INSN_FUNCTION_USAGE here.
3360
3361 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
3362
3363         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
3364         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
3365         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
3366         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
3367         (TUNE_LOONGSON_3A): Define.
3368         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
3369         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
3370         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
3371         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
3372         (mips_rtx_cost_data): Add Loongson-3A.
3373
3374 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
3375
3376         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
3377         switches.
3378
3379 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
3380
3381         * dwarf2out.c (macinfo_entry): New struct.
3382         (output_comp_unit): Emit the section start label here and flag that we
3383         will emit an info section.
3384         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
3385         emitting directly.
3386         (dwarf2out_end_source_file): Likewise.
3387         (dwarf2out_define): Likewise.
3388         (dwarf2out_undef): Likewise.
3389         (output_macinfo): New.
3390         (dwarf2out_init): Do not emit debug section switches here, allocate a
3391         vec for macinfo, when required.
3392         (dwarf2out_finish): First switch to debug_abbrev_section here.
3393         debug_line_section,  debug_macinfo_section, Likewise.
3394         Check that the pubtypes table has at least one unpruned entry before
3395         trying to emit it.
3396
3397 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3398
3399         PR c/20385
3400         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
3401         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
3402         token lookahead.
3403         (c_parser_compound_statement_nostart, c_parser_label,
3404         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
3405         (c_parser_declaration_or_fndef): Detect the case now matched by
3406         c_parser_next_tokens_start_declaration, give error and correct it.
3407
3408 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3409
3410         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
3411         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
3412         with typespec_kind.
3413         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
3414         (shadow_tag_warned, check_compound_literal_type): Adjust
3415         uses of tag_defined_p.
3416         (declspecs_add_type): Set typespec_kind.
3417         * c-parser.c (c_parser_declaration_or_fndef,
3418         c_parser_declspecs, c_parser_struct_declaration,
3419         c_parser_parameter_declaration, c_parser_type_name,
3420         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
3421         of type_seen_p.
3422         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
3423         tag_defined_p, pass ctsk_firstref through.
3424
3425 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3426
3427         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
3428         (struct format_wanted_type): Replace field "name" with "kind", add
3429         "format_start" and "format_length".
3430         (check_format_info_main): Fill in new fields.  Fill in
3431         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
3432         after the final NUL outside the while loop.  Do not include
3433         width and precision modifiers in the format_start/format_length
3434         of the main format.
3435         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
3436         arguments.  Compute WANTED_TYPE first so that format_type_warning
3437         can be called for missing arguments.  Adjust calls to
3438         format_type_warning.
3439         (format_type_warning): Fetch as much information as possible
3440         from format_wanted_type.  Adjust printing now that every
3441         warning has a "descr", as well as for missing argument warnings
3442         and to include % sign for format specifiers.
3443
3444 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
3445
3446         PR rtl-optimization/46204
3447         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
3448         Update all callers.  Do not recompute topological order.  Adjust
3449         fallthrough edges following a degenerate conditional jump.
3450
3451 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3452
3453         * opts-common.c (control_warning_option): New.
3454         * opts.c (set_default_handlers): New.
3455         (decode_options): Use set_default_handlers and
3456         control_warning_option.
3457         (common_handle_option): Update call to enable_warning_as_error.
3458         (enable_warning_as_error): Take gcc_options parameters.  Use
3459         control_warning_option.
3460         * opts.h (set_default_handlers, control_warning_option): Declare.
3461
3462 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3463
3464         * Makefile.in (OPTS_H): Define.
3465         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
3466         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
3467         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
3468         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
3469         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
3470         * gcc.c (driver_handle_option): Take location_t parameter.
3471         (process_command, do_self_spec): Update calls to
3472         read_cmdline_option.
3473         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
3474         * langhooks.c (lhd_handle_option): Take location_t parameter.
3475         * langhooks.h (handle_option): Take location_t parameter.
3476         * lto-opts.c (lto_reissue_options): Update call to set_option.
3477         * opts-common.c (handle_option): Make static.  Take location_t
3478         parameter and pass it to other functions.
3479         (handle_generated_option): Take location_t parameter and pass it
3480         to other functions.
3481         (read_cmdline_option): Take location_t parameter and pass it to
3482         other functions.  Use warning_at and error_at.
3483         (set_option): Take location_t parameter and pass it to other
3484         functions.
3485         * opts.c (common_handle_option): Take location_t parameter and
3486         pass it to other functions.
3487         (enable_warning_as_error): Make static.  Take location_t parameter
3488         and pass it to other functions.
3489         (lang_handle_option): Take location_t parameter and pass it to
3490         other functions.
3491         (target_handle_option): Take location_t parameter.
3492         (read_cmdline_options, maybe_default_option,
3493         maybe_default_options, default_options_optimization,
3494         decode_options): Take location_t parameter and pass it to other
3495         functions.
3496         * opts.h: Include input.h.
3497         (struct cl_option_handler_func, decode_options, set_option,
3498         handle_generated_option, read_cmdline_option): Take location_t
3499         parameters.
3500         (handle_option, enable_warning_as_error): Remove.
3501         * toplev.c (toplev_main): Update call to decode_options.
3502
3503 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
3504
3505         * graphite-cloog-util.c (oppose_constraint,
3506         cloog_matrix_to_ppl_constraint,
3507         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
3508         CLooG isl uses unsigned integers.  This triggered a warning.
3509
3510 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3511
3512         PR target/46438
3513         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
3514         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
3515         (xtensa_function_arg_1): De-constify cum.
3516         (xtensa_expand_prologue): Use add_reg_note.
3517
3518         PR target/46435
3519         * config/cris/cris.c (saved_regs_mentioned): Delete.
3520         (cris_reload_address_legitimized): Cast itype to enum reload_type.
3521         Remove unused variable op0p.
3522         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
3523         (cris_emit_movem_store): Use add_reg_note.
3524
3525         PR bootstrap/46456
3526         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
3527
3528 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3529
3530         * function.c (expand_function_end): Set the locator of the prologue on
3531         the stack checking insns.
3532
3533 2010-11-12  Richard Henderson  <rth@redhat.com>
3534
3535         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
3536         * config/xtensa/xtensa.opt (mfused-madd): Remove.
3537         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3538         MASK_FUSED_MADD.
3539         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
3540         (fnmasf4): Rename from mulsubsf3; use fma.
3541
3542 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3543             Richard Henderson  <rth@redhat.com>
3544
3545         PR target/46428
3546         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
3547         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
3548         comparison.
3549
3550 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
3551
3552         * opts-common.c (decode_cmdline_option): Initialize separate_args.
3553
3554 2010-11-12  Jan Hubicka  <jh@suse.cz>
3555
3556         * doc/invoke.texi (early-inlining-insns): Update default.
3557         * params.def (early-inlining-insns): Default to 10.
3558
3559 2010-11-12  Olivier Hainque  <hainque@adacore.com>
3560
3561         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
3562
3563 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3564
3565         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
3566         (SUPPORTS_INIT_PRIORITY): Define.
3567
3568 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3569
3570         PR target/46430
3571         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
3572         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
3573         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3574         (avr_device_to_devicelib): Likewise.
3575         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
3576         into block.
3577         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
3578         (zero_extendhidi2, zero_extendsidi2): Likewise.
3579         * config/avr/avr.c (avr_num_arg_regs): Constify type.
3580         (avr_return_addr_rtx): De-constify tem.
3581         (avr_rotate_bytes): Move declarations to start of block.
3582         Don't use variable length array.  Put nested if/else into block.
3583
3584         PR rtl-optimization/46433
3585         * var-tracking.c: Include tm_p.h .
3586
3587         PR bootstrap/44756
3588         PR build/44767
3589         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
3590         should be unsigned.
3591         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
3592         * doc/tm.texi: Regenerate.
3593
3594         PR target/46412
3595         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
3596         * config/bfin/bfin.c: Include sel-sched.h .
3597         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
3598         (expand_interrupt_handler_prologue): Remove unused variable insn.
3599         (bfin_load_pic_reg): Likewise.
3600         (bfin_rtx_costs): Make code / outer_code variables of type
3601         enum rtx_code, copied from re-named parameters.
3602         (bfin_local_alignment): Change align argument and return type
3603         to unsigned.
3604         (bfin_adjust_cost): Remove unused variable insn_type.
3605         Declare variables at start of block.
3606         (struct loop_info): Rename to...
3607         (struct loop_info_d).
3608         (workaround_rts_anomaly): Change type of icode to int.
3609         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
3610         with int-typed variable.
3611         (note_np_check_stores): Likewise.
3612         (trapping_loads_p): Remove unused variable pat.
3613         (bfin_expand_binop_builtin): Use expand_normal.
3614         (bfin_expand_unop_builtin): Likewise.
3615         (bfin_expand_builtin): Likewise.  Set tmode before use.
3616
3617         PR middle-end/44769
3618         * final.c (split_double): Don't use BITS_PER_WORD directly in
3619         shift count.
3620
3621         PR target/46431
3622         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
3623         assignment.
3624
3625         PR target/46450
3626         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
3627         Use add_reg_note.
3628         (xstormy16_function_arg): Dereference cum.
3629         (xstormy16_expand_builtin): Use expand_normal.
3630         Change type of omode to enum machine_mode.
3631         (combine_bnp): Rename and to and_insn.
3632
3633         PR target/46437
3634         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
3635         localreg.
3636
3637 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3638
3639         PR debug/46375
3640         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
3641
3642 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3643
3644         PR lto/46376
3645         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
3646
3647 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
3648
3649         PR c/44782
3650         * common.opt (fmax-errors=): New option.
3651         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
3652         * diagnostic.h (struct diagnostic_context): Add max_errors field.
3653         * diagnostic.c (diagnostic_initialize): Initialize it.
3654         (diagnostic_action_after_output): Exit if more than max_errors
3655         have been output.
3656         * doc/invoke.texi (Warning Options): Add -fmax-errors.
3657         (-fmax-errors): Document.
3658
3659 2010-11-11  Richard Henderson  <rth@redhat.com>
3660
3661         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
3662
3663 2010-11-11  Richard Henderson  <rth@redhat.com>
3664
3665         * config/fused-madd.opt: New file.
3666         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
3667         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
3668         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3669         * config/i386/i386.opt (mfused-madd): Remove.
3670         * config/i386/sse.md (split_fma): Remove.
3671         (split_fms, split_fnma, split_fnms): Remove.
3672
3673 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
3674
3675         PR target/46088
3676         * config/i386/i386.md (*ashl<mode>3_cconly,
3677         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
3678         change nonimmediate_operand predicate to register_operand.
3679
3680 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
3681
3682         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
3683
3684 2010-11-11  Jan Hubicka  <jh@suse.cz>
3685
3686         * opts.c (finish_options): Do not error on -flto-partition alone.
3687
3688         * doc/invoke.texi (-fwhopr): Merge into -flto section.
3689         (-flto-partition): Document none.
3690         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
3691         * lto-wrapper.c: Update comment.
3692         (run_gcc): Update LTO option parsing.
3693         * opts.c (finish_options): add support -flto-partition=none
3694         (common_handle_option): Remove fwhopr.
3695         * common.opt: Turn fwhopr into flto.
3696         * collect2.c (main): Update option handling.
3697         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
3698         * ipa-split.c (execute_split_functions): Remove flag_whopr.
3699         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
3700         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
3701         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
3702
3703 2010-11-11  Jan Hubicka  <jh@suse.cz>
3704
3705         PR tree-optimize/40436
3706         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
3707         (eliminated_by_inlining_prob): ... this one; return 50% probability
3708         for SRA.
3709         (estimate_function_body_sizes): Update use of
3710         eliminated_by_inlining_prob; estimate static function size
3711         for 2 instructions.
3712
3713 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
3714
3715         PR target/44749
3716         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
3717         declare.  Change type of argument four to type int.
3718         (mep_secondary_input_reload_class): Returns enum reg_class.
3719         (mep_secondary_output_reload_class): Likewise.
3720         (mep_function_value): Change types of arguments to cont_tree.
3721         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
3722         argument four to type int.
3723         (mep_secondary_input_reload_class): Returns enum reg_class.
3724         (mep_secondary_output_reload_class): Likewise.
3725         (mep_function_value): Change types of arguments to cont_tree.
3726         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
3727         mep_regno_reg_class to enum reg_class.
3728
3729 2010-11-11  Richard Henderson  <rth@redhat.com>
3730
3731         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
3732         that the target has the exact fma operation that we matched.
3733
3734 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3735
3736         * reginfo.c (fix_register): Avoid inserting English word in
3737         diagnostic sentence.  Use %qs for quoting and %'.
3738
3739 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3740
3741         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3742         Intel processor family 6, model 0x2c.
3743
3744 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3745
3746         * opts.c (warning_as_error_callback,
3747         register_warning_as_error_callback): Remove.
3748         (enable_warning_as_error): Don't use warning_as_error_callback.
3749         * opts.h (register_warning_as_error_callback): Remove.
3750
3751 2010-11-11  Richard Henderson  <rth@redhat.com>
3752
3753         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
3754         in between the MULT and the PLUS/MINUS.
3755
3756 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3757
3758         PR middle-end/46388
3759         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
3760         BLKmode mode for it.
3761         (expand_expr_real_1): Similarly for op0.
3762
3763 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3764
3765         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
3766         Document optional target selector.
3767
3768 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3769
3770         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
3771         assembling high and low parts of size if not using 32-bit HWINT; else
3772         use DECL_SIZE_UNITS, not DECL_SIZE.
3773
3774 2010-11-11  Martin Jambor  <mjambor@suse.cz>
3775
3776         PR tree-optimization/46383
3777         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
3778         offsets.
3779         (compute_complex_ancestor_jump_func): Likewise.
3780         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
3781
3782 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3783
3784         PR debug/46150
3785         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
3786         true if expr1->hash != expr2->hash.
3787
3788 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3789
3790         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
3791         diagnostics with lowercase letters.
3792         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
3793         lowercase letters.
3794         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
3795         diagnostic.
3796         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3797         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
3798         lowercase letters.
3799         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3800         Remove trailing ' ' from diagnostic.
3801         * config/avr/avr.c (print_operand_address): Start diagnostic with
3802         a lowercase letter and remove trailing '.'.
3803         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
3804         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
3805         with lowercase letters.  Use %' in diagnostics.  Remove trailing
3806         '.' from diagnostics.
3807         (bfin_handle_longcall_attribute): Use %' in diagnostic.
3808         * config/cris/cris.c (cris_split_movdx,
3809         cris_expand_pic_call_address): Start diagnostics with lowercase
3810         letters.
3811         (cris_asm_output_label_ref): Use %' in diagnostic.
3812         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
3813         letter.
3814         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
3815         lowercase letter.
3816         * config/darwin-c.c (version_as_macro): Start diagnostic with a
3817         lowercase letter.
3818         * config/darwin-driver.c (darwin_default_min_version): Use %' in
3819         diagnostic.
3820         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
3821         diagnostic.
3822         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3823         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
3824         diagnostics.
3825         * config/i386/i386.c (ix86_option_override_internal): Write
3826         diagnostic as a single sentence without trailing '.'.  Use %' in
3827         diagnostics.
3828         (ix86_function_sseregparm, classify_argument): Start diagnostics
3829         with lowercase letters.
3830         (ix86_expand_prologue): Use %' in diagnostic.
3831         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
3832         diagnostic.
3833         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
3834         lowercase letter.
3835         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
3836         diagnostic.
3837         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3838         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
3839         '`' in help text.
3840         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
3841         lowercase letter.
3842         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
3843         lowercase letters.
3844         * config/microblaze/microblaze.c (microblaze_handle_option):
3845         Remove trailing '.' from diagnostic.
3846         (print_operand): Start diagnostic with a lowercase letter.
3847         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
3848         lowercase letters.  Avoid '`' in diagnostics.
3849         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
3850         lowercase letters.  Avoid '`' in diagnostics.
3851         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
3852         lowercase letters.  Avoid '`' in diagnostics.
3853         * config/picochip/picochip.c (picochip_option_override,
3854         picochip_emit_save_register, picochip_function_arg,
3855         picochip_output_label, picochip_output_internal_label,
3856         picochip_asm_output_opcode, picochip_output_cbranch,
3857         picochip_output_compare, picochip_output_branch,
3858         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
3859         diagnostics. Start diagnostics with lowercase letters.  Use %' in
3860         diagnostics.
3861         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
3862         "SPE" capitalization.  Start diagnostic with a lowercase letter.
3863         (rs6000_handle_option): Start diagnostics with lowercase letters.
3864         (def_builtin): Remove trailing '.' from diagnostic.
3865         (rs6000_savres_routine_name): Start diagnostic with a lowercase
3866         letter.
3867         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
3868         diagnostic.
3869         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
3870         lowercase letter.
3871         * config/s390/s390.c (s390_option_override) Start diagnostics with
3872         lowercase letters.  Use %' in diagnostic.
3873         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
3874         lowercase letters.
3875         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
3876         diagnostic.
3877         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
3878         diagnostic.
3879         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
3880         diagnostic.
3881         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3882         * config/spu/spu.c (spu_option_override): Start diagnostics with
3883         lowercase letters.  Use %qs for quoting in diagnostics.
3884         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
3885         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
3886         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
3887         from diagnostic.
3888         * convert.c (convert_to_integer, convert_to_vector): Use %' in
3889         diagnostics.
3890         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
3891         letter and use "cannot" spelling.
3892         * expmed.c (extract_fixed_bit_field): Start diagnostic with
3893         lowercase letter and format as a single sentence without '.'.
3894         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
3895         Use %' in diagnostics.
3896         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3897         Use %' in diagnostics.
3898         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3899         Use %' in diagnostics.
3900         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
3901         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
3902         with lowercase letters and remove tailing '.' and '\n'.
3903         * lto-cgraph.c (input_profile_summary): Start diagnostic with
3904         lowercase letter and remove trailing '.'.
3905         (input_cgraph): Start diagnostics with lowercase letters and
3906         remove trailing '\n'.
3907         * opts.c (finish_options, common_handle_option): Start diagnostics
3908         with lowercase letters and remove trailing '.'.  Fix typo in
3909         diagnostic.
3910         * passes.c (position_pass): Start diagnostic with lowercase letter.
3911         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
3912         register_callback, try_init_one_plugin): Start diagnostics with
3913         lowercase letters.
3914         * reload1.c (spill_failure): Use %' in diagnostic.
3915         (gen_reload): Start diagnostic with a lowercase letter.
3916         * stor-layout.c (place_field): Start diagnostic with a lowercase
3917         letter.
3918         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
3919         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
3920         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
3921         Start diagnostics with lowercase letters, remove trailing '.' and
3922         use %' in diagnostics.
3923         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
3924         (verify_ssa): Don't split diagnostic across two error calls.
3925         Spell out "number" and use %' in diagnostic.
3926         * value-prof.c (visit_hist, check_counter): Start diagnostics with
3927         lowercase letters.
3928
3929 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
3930
3931         PR middle-end/46419
3932         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
3933         (_mm_cvtpu16_ps): Ditto.
3934
3935 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3936
3937         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
3938         warn_larger_than, larger_than_size, warn_frame_larger_than,
3939         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
3940         default_visibility, flag_tls_default): New Variable declarations.
3941         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
3942         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
3943         (v): Declare as Common and document here.
3944         * flags.h (default_visibility, flag_generate_lto,
3945         warn_larger_than, larger_than_size, warn_frame_larger_than,
3946         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
3947         flag_shlib, flag_excess_precision_cmdline): Remove.
3948         (set_Wstrict_aliasing): Update prototype.
3949         * gcc.c (verbose_flag): Remove.
3950         (driver_handle_option): Add diagnostic_context parameter.  Don't
3951         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
3952         incrementing it.
3953         * opts-common.c (handle_option): Pass dc to handler.
3954         * opts.c (warn_larger_than, larger_than_size,
3955         warn_frame_larger_than, frame_larger_than_size,
3956         default_visibility): Remove.
3957         (common_handle_option): Add diagnostic_context parameter.
3958         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
3959         gcc_options parameters.
3960         (lang_handle_option, target_handle_option, read_cmdline_options,
3961         decode_options): Add diagnostic_context parameters.
3962         (finish_options): Access option state through opts pointer where
3963         possible.
3964         (common_handle_option): Access option state through opts pointer
3965         where possible.  Do not set local static variable verbose.  Do not
3966         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
3967         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
3968         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
3969         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
3970         OPT_fwhopr_.  Do not explicitly set .opt file variables for
3971         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
3972         (set_Wstrict_aliasing): Add gcc_options parameter.
3973         * opts.h (struct cl_option_handler_func): Add diagnostic_context
3974         parameter to handler.
3975         (decode_options): Add diagnostic_context parameter.
3976         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
3977         asm_file_name, flag_generate_lto, flag_gen_aux_info,
3978         aux_info_file_name, flag_shlib, flag_tls_default,
3979         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
3980         (toplev_main): Pass global_dc to decode_options.
3981         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
3982         aux_info_file_name, asm_file_name): Remove.
3983         * tree.h (flag_tls_default): Remove.
3984
3985 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3986
3987         PR target/45986
3988         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
3989         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
3990
3991 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3992
3993         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
3994         (x86_64-*-*): Likewise.
3995         * config/i386/cpuid.h: Define TBM bit.
3996         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3997         and set has_tbm.
3998         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3999         isa_flag for TBM.
4000         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
4001         (OPTION_MASK_ISA_TBM_UNSET): New.
4002         (ix86_handle_option): Handle -mtbm.
4003         (isa_opts): Add -mtbm.
4004         (enum pta_flags): Add PTA_TBM.
4005         (ix86_option_override_internal): Add TBM support.
4006         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
4007         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
4008         (IX86_BUILTIN_BEXTRI64): Likewise.
4009         (bdesc_args): Add TBM intrinsics.
4010         (ix86_expand_builtin): Add TBM specific case.
4011         * config/i386/i386.h (TARGET_TBM): New for TBM.
4012         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
4013         (tbm_bextri_<mode>): Likewise.
4014         (*tbm_blcfill_<mode>): Likewise.
4015         (*tbm_blci_<mode>): Likewise.
4016         (*tbm_blcic_<mode>): Likewise.
4017         (*tbm_blcmsk_<mode>): Likewise.
4018         (*tbm_blcs_<mode>): Likewise.
4019         (*tbm_blsfill_<mode>): Likewise.
4020         (*tbm_blsic_<mode>): Likewise.
4021         (*tbm_t1mskc_<mode>): Likewise.
4022         (*tbm_tzmsk_<mode>): Likewise.
4023         * config/i386/i386.opt: Add -mtbm.
4024         * config/i386/tbmintrin.h (__bextri_u32): New.
4025         (__blcfill_u32): Likewise.
4026         (__blci_u32): Likewise.
4027         (__blcic_u32): Likewise.
4028         (__blcmsk_u32): Likewise.
4029         (__blcs_u32): Likewise.
4030         (__blsfill_u32): Likewise.
4031         (__blsic_u32): Likewise.
4032         (__t1mskc_u32): Likewise.
4033         (__tzmsk_u32): Likewise.
4034         (__bextri_u64): Likewise.
4035         (__blcfill_u64): Likewise.
4036         (__blci_u64): Likewise.
4037         (__blcic_u64): Likewise.
4038         (__blcmsk_u64): Likewise.
4039         (__blcs_u64): Likewise.
4040         (__blsfill_u64): Likewise.
4041         (__blsic_u64): Likewise.
4042         (__t1mskc_u64): Likewise.
4043         (__tzmsk_u64): Likewise.
4044         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
4045         * doc/invoke.texi: Document -mtbm.
4046         * doc/extend.texi: Document TBM built-in functions.
4047
4048 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
4049
4050         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
4051         (x86_64-*-*): Likewise.
4052         * config/i386/cpuid.h: Define BMI bit.
4053         * config/i386/driver-i386.c (host_detect_local_cpu): Define
4054         and set has_bmi.
4055         * config/i386/i386-c.c (ix86_target_macros_internal): Check
4056         isa_flag for BMI.
4057         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
4058         (OPTION_MASK_ISA_BMI_UNSET): New.
4059         (ix86_handle_option): Handle -mbmi.
4060         (isa_opts): Add -mbmi.
4061         (enum pta_flags): Add PTA_BMI.
4062         (ix86_option_override_internal): Add BMI support.
4063         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
4064         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
4065         (IX86_BUILTIN_BEXTR64): Likewise.
4066         (IX86_BUILTIN_CTZS): Likewise.
4067         (bdesc_args): Add BMI intrinsics.
4068         (ix86_expand_args_builtin): Add BMI specific cases.
4069         * config/i386/i386.h (TARGET_BMI): New for BMI.
4070         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
4071         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
4072         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
4073         (UNSPEC_TZCNT): Likewise.
4074         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
4075         (bmi_andn_<mode>): New for BMI.
4076         (bmi_bextr_<mode>): Likewise.
4077         (bmi_blsi_<mode>): Likewise.
4078         (bmi_blsmsk_<mode>): Likewise.
4079         (bmi_blsr_<mode>): Likewise.
4080         * config/i386/i386.opt: Add -mbmi.
4081         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
4082         * config/i386/bmiintrin.h (__lzcnt_u16): New.
4083         (__tzcnt_u16): Likewise.
4084         (__andn_u32): Likewise.
4085         (__bextr_u32): Likewise.
4086         (__blsi_u32): Likewise.
4087         (__blsmsk_u32): Likewise.
4088         (__blsr_u32): Likewise.
4089         (__lzcnt_u32): Likewise.
4090         (__tzcnt_u32): Likewise.
4091         (__andn_u64): Likewise.
4092         (__bextr_u64): Likewise.
4093         (__blsi_u64): Likewise.
4094         (__blsmsk_u64): Likewise.
4095         (__blsr_u64): Likewise.
4096         (__lzcnt_u64): Likewise.
4097         (__tzcnt_u64): Likewise.
4098         * doc/invoke.texi: Document -mbmi and -mno-bmi.
4099         * doc/extend.texi: Document BMI built-in functions.
4100
4101 2010-11-10  Jan Hubicka  <jh@suse.cz>
4102
4103         PR tree-optimize/46228
4104         * doc/invoke.texi (comdat-sharing-probability): Document.
4105         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
4106         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
4107
4108 2010-11-10  Jan Hubicka  <jh@suse.cz>
4109
4110         PR tree-optimize/46228
4111         * cgraph.c (cgraph_propagate_frequency): Fix typo.
4112
4113 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
4114
4115         PR tree-optimization/46414
4116         * tree-inline.c (estimate_move_cost): Check preferred vector
4117         mode for vector type.
4118
4119 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4120
4121         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
4122
4123 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
4124
4125         PR tree-optimization/45971
4126         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
4127         for phi nodes analyzable by scev.
4128
4129 2010-11-10  Richard Guenther  <rguenther@suse.de>
4130
4131         PR tree-optimization/44964
4132         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
4133
4134 2010-11-10  Martin Jambor  <mjambor@suse.cz>
4135
4136         PR tree-optimization/46351
4137         PR tree-optimization/46377
4138         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
4139         aggregate bit-fields.
4140
4141 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4142
4143         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4144         * doc/tm.texi: Regenerate.
4145         * opts-common.c (tm.h): Don't include.
4146         (target_option_translations): Remove.
4147         (decode_cmdline_options_to_array): Don't handle translating options.
4148         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
4149         * config/darwin-driver.c: Don't condition includes on
4150         CROSS_DIRECTORY_STRUCTURE.
4151         (darwin_default_min_version): Make static.
4152         (darwin_driver_init): New.  Call darwin_default_min_version if not
4153         CROSS_DIRECTORY_STRUCTURE.
4154         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4155         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
4156         (ASM_SPEC): Add %{static}.
4157         (darwin_default_min_version): Don't declare.
4158         (darwin_driver_init): Declare.
4159         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
4160         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
4161         * config/darwin.opt (all_load, allowable_client,
4162         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
4163         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
4164         exported_symbols_list, filelist, findirect-virtual-calls,
4165         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
4166         framework, fterminated-vtables, gfull, gused, image_base, init,
4167         install_name, multi_module, multiply_defined,
4168         multiply_defined_unused, no_dead_strip_inits_and_terms,
4169         seg_addr_table, seg_addr_table_filename, segaddr,
4170         segs_read_only_addr, segs_read_write_addr, single_module,
4171         umbrella, unexported_symbols_list, weak_reference_mismatches,
4172         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
4173         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
4174         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
4175         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
4176         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
4177         (ASM_SPEC): Add %{static}.
4178         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4179         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4180         (DRIVER_SELF_SPECS): Handle options formerly in
4181         TARGET_OPTION_TRANSLATE_TABLE.
4182         * config/mep/mep.opt (mfar): New.
4183         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4184         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
4185         TARGET_OPTION_TRANSLATE_TABLE.
4186         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
4187         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4188         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
4189         ffix-and-continue, findirect-data): New.
4190         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4191         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
4192         (mnofpu): Define mask and use Report here.
4193
4194 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4195
4196         * config/s390/s390.c (s390_emit_prologue): Report the stack
4197         size if -fstack-usage is used.
4198
4199 2010-11-10  Richard Guenther  <rguenther@suse.de>
4200
4201         PR tree-optimization/46398
4202         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
4203
4204 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
4205
4206         PR target/44760
4207         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
4208         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
4209         GP_REG_OR_PSEUDO_STRICT_P.
4210         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
4211         unexpected alternative.
4212         (*movsf_internal): Likewise.
4213         (indirect_jump): Replace call to non-existant function with call to
4214         internal_error.
4215         (tablejump): Likewise.
4216         * config/iq2000/iq2000.c: Include df.h .
4217         (iq2000_function_arg_advance): Use CONST_CAST2.
4218         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
4219         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
4220         a non-zero function address.
4221         (iq2000_initial_elimination_offset): Add gcc_unreachable for
4222         unexpected value of FROM.
4223         (symbolic_expression_p): Delete.
4224         (iq2000_function_value): Constify func.
4225         (expand_one_builtin): Use expand_normal.
4226         (iq2000_print_operand): Don't print VALUE if calculating it failed.
4227
4228         PR rtl-optimization/44764
4229         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
4230
4231         PR target/46407
4232         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
4233         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
4234         with ATTRIBUTE_UNUSED.
4235         (valid_psw_flag): Constify parameter which.
4236         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
4237
4238         PR target/46415
4239         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
4240         (mmix_dbx_register_number): Likewise.
4241         * config/mmix/mmix.c: Include df.h .
4242         (mmix_local_alignment): Change argument basic_align and return type
4243         to unsigned.
4244         (mmix_dbx_register_number): Change argument and return type to
4245         unsigned.
4246         (mmix_expand_prologue): Use add_reg_note.
4247
4248         PR target/46417
4249         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
4250         (spu_split_store): Use aform.
4251         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
4252
4253 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4254
4255         PR/46268
4256         * doc/gty.texi (GTY Options): Clarify that variable_size produces
4257         allocators taking size in bytes, compare with length option.  Add
4258         size calculation example.
4259         (Invoking the garbage collector): Ensure that sentences are
4260         followed by two spaces.  Describe that pointer fields must be
4261         initialized at ggc_collect call.
4262         (Troubleshooting): New section.
4263
4264 2010-11-09  Jan Hubicka  <jh@suse.cz>
4265
4266         PR tree-optimization/40436
4267         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
4268         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
4269         normal instructions; be sure bultin is not implemented in this file;
4270         compute non-zero return cost.
4271         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
4272         * tree-inline.h (eni_weights_d): Add return cost.
4273
4274 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
4275
4276         * c-parser.c (c_parser_struct_declaration): Handle declaration
4277         specifiers followed by CPP_CLOSE_BRACE.
4278
4279 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4280
4281         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
4282         split occurs before reload, and we allocate memory at the time of
4283         the split, not during expansion.  Add attributes.
4284         (floatsi<mode>2_lfiwax_mem): Ditto.
4285         (floatunssi<mode>2_lfiwzx): Ditto.
4286         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4287         (floatsidf2): Ditto.
4288         (floatunssisf2): Ditto.
4289         (floatunssidf2): Ditto.
4290         (fix_trunc<mode>si2): Ditto.
4291         (fix_trunc<mode>si2_stfiwx): Ditto.
4292         (fix_trunc<mode>si2_internal): Ditto.
4293         (fix_trunc<mode>si2): Ditto.
4294         (fix_trunc<mode>di2): Ditto.
4295         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4296         (floatsisf2): Ditto.
4297         (floatdidf2_mem): Ditto.
4298         (floatunsdidf2_mem): Ditto.
4299         (floatunsdidf2): Ditto.
4300         (floatdisf2_internal1): Ditto.
4301         (floatdisf2_mem): Ditto.
4302         (floatunsdisf2_mem): Ditto.
4303         (floatsi<mode>2_lfiwax_mem2): Delete.
4304         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4305         (fix_trunc<mode>si2_mem): Ditto.
4306         (fixuns_trunc<mode>si2_mem): Ditto.
4307         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
4308         type operations to reduce copying the values to multiple memory slots.
4309         (roundu32<mode>2_fprs): Ditto.
4310
4311         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
4312         PRE_INC, PRE_DEC, PRE_MODIFY.
4313         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
4314
4315         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
4316         Delete prototype.
4317
4318 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4319
4320         PR target/43808
4321         * cfgexpand.c (partition_stack_vars): Call
4322         update_alias_info_with_stack_vars unconditionally.
4323         (update_alias_info_with_stack_vars): Allow unused
4324         unreferenced vars when not optimizing.
4325
4326 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
4327
4328         PR tree-optimization/46036
4329         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
4330         add_to_dst_predicate_list.
4331
4332 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4333
4334         PR debug/46171
4335         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
4336         earlier.
4337         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
4338         argument, call dead_debug_reset when adding REG_UNUSED note.
4339         (dead_debug_reset): New function.
4340         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
4341         df_create_unused_note callers.
4342
4343 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
4344
4345         * config/fr30/fr30.c: Include "df.h".
4346
4347 2010-11-09  Richard Guenther  <rguenther@suse.de>
4348
4349         PR tree-optimization/46355
4350         * tree-loop-distribution.c (tree_loop_distribution): Do not
4351         distribute loops without a single exit.
4352
4353 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4354
4355         PR rtl-optimization/46237
4356         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
4357         saved hard regs if they might get partially clobbered.
4358
4359 2010-11-09  Paul Koning  <ni1d@arrl.net>
4360
4361         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
4362
4363 2010-11-09  Richard Guenther  <rguenther@suse.de>
4364
4365         PR tree-optimization/46177
4366         * tree-loop-distribution.c (prop_phis): Remove.
4367         (generate_builtin): Re-use the old loop exit edge to avoid
4368         needing to update PHI nodes.
4369
4370 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
4371
4372         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
4373         type of args_size to unsigned HOST_WIDE_INT.
4374
4375         PR target/44755
4376         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
4377         * config/t-pnt16-warn: New file.
4378         * config/picochip/picochip.c (picochip_emit_stack_allocate):
4379         Use add_reg_note.
4380         (picochip_emit_save_register): Likewise.
4381         (picochip_emit_restore_register): Remove variable insn.
4382         (picochip_legitimize_address): Don't use C++ style comments.
4383         (picochip_legitimize_reload_address): Likewise.
4384         (reorder_var_tracking_notes): Remove variable vliw_start.
4385         (picochip_reorg): Cast first arguemnt to emit_note_after to
4386         enum insn_note.
4387         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
4388         (picochip_expand_builtin_3op): Likewise.
4389         (picochip_expand_builtin_2opvoid): Likewise.
4390         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
4391         (picochip_expand_array_testport): Likewise.
4392         (picochip_init_builtins): Remove unused variables.
4393         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
4394         to unsigned long, and output it as such.
4395         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
4396         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
4397         (schedType): Cast result of picochip_schedule_type to
4398         enum attr_schedType.
4399
4400         PR target/44759
4401         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
4402         conditional to type of S.
4403         (mn10300_function_arg): Remove unused variable align.
4404         (mn10300_arg_partial_bytes): Likewise.
4405         * config/mn10300/mn10300.md (attribute cpu): Cast value to
4406         enum attr_cpu.
4407
4408 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4409
4410         PR bootstrap/46392
4411         * gengtype-parse.c (type): Call get_input_file_name to get file name.
4412
4413 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4414
4415         * tree.h (contains_placeholder_p): Fix comment.
4416         (type_contains_placeholder_p): Adjust comment.
4417         * tree.c (contains_placeholder_p): Fix comment.
4418         (type_contains_placeholder_1): Do not recurse on pointed-to types and
4419         adjust comment.
4420         (type_contains_placeholder_p): Add comment.
4421
4422 2010-11-09  Paul Koning  <ni1d@arrl.net>
4423
4424         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
4425         output of byte values.
4426
4427 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4428
4429         PR middle-end/46360
4430         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
4431         not in SSA mode.
4432
4433 2010-11-09  Richard Guenther  <rguenther@suse.de>
4434
4435         PR middle-end/46221
4436         * varasm.c (compute_visible_aliases): New function.
4437         (remove_unreachable_alias_pairs): Aliases make a target available
4438         even though we reclaimed the cgraph node.
4439         (finish_aliases_1): Likewise.
4440         * Makefile.in (varasm.o): Add pointer-set.h dependency.
4441
4442 2010-11-09  Nick Clifton  <nickc@redhat.com>
4443
4444         * config/mn10300/mn10300-modes.def: New file.
4445
4446 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
4447             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4448
4449         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
4450         (plugin_files, get_file_basename, get_file_realbasename)
4451         (get_file_langdir, error_at_line, gt_files, this_file)
4452         (system_h_file, read_input_list, create_field_all)
4453         (get_file_srcdir_relative_path, get_file_basename)
4454         (get_file_langdir, get_file_gtfilename)
4455         (get_output_file_with_visibility, get_output_file_name)
4456         (struct flist, put_mangled_filename, walk_type)
4457         (put_mangled_filename, finish_root_table, write_roots): Use
4458         input_file-s.
4459         (lang_dir_names, num_lang_dirs): Remove static.
4460         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
4461         (main): Use input_file-s.
4462
4463         * gengtype.h: (struct input_file_st, input_file): New type.
4464         (struct fileloc): Use it.
4465         (gt_files, num_gt_files, this_file, system_h_file)
4466         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
4467         (get_input_file_name): New function.
4468         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
4469         use input_file.
4470         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
4471         (get_output_file_name): Ditto.
4472
4473         * gengtype-lex.l (yybegin): Use input_file.
4474
4475         * gengtype-parse.c (parse_error): Use input_file.
4476
4477 2010-11-08  Xinliang David Li  <davidxl@google.com>
4478
4479         PR tree-optimization/46316
4480         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
4481         * double-int.h (double_int_mul_with_sign): New function.
4482         * double-int.c (double_int_mul_with_sign): New function.
4483
4484 2010-11-08  Paul Koning  <ni1d@arrl.net>
4485
4486         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
4487
4488 2010-11-08  Paul Koning  <ni1d@arrl.net>
4489
4490         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
4491
4492 2010-11-08  Paul Koning  <ni1d@arrl.net>
4493
4494         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
4495         to 8 bits.
4496
4497 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4498
4499         PR target/46378
4500         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4501         turn on ISA 2.04 rounding instructions for power5.
4502
4503         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
4504         not ISA 2.02.
4505
4506         PR target/45585
4507         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
4508         in FPR registers.
4509         (movdi_low_st): Ditto.
4510
4511 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
4512             Richard Henderson  <rth@redhat.com>
4513
4514         PR target/44758
4515         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
4516         (attribute acc_group): Cast value to enum attr_acc_group.
4517         (*movdi_nodouble+6): Use gen_int_mode.
4518         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
4519         if RTX_CODE is defined or not.
4520         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
4521         struct frv_io.
4522         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
4523         (frv_frame_access, frv_expand_prologue): Remove unused variables.
4524         (frv_expand_block_clear): Likewise.
4525         (frv_trampoline_init): Use LCT_NORMAL.
4526         (struct frv_packet_group): New struct, broken out of type of
4527         frv_packet.
4528         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
4529         use cast in loop counter increment.
4530         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
4531         assigning to io->type.
4532         (bdesc_set): Use rtx_code UNKNOWN in initializer.
4533         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
4534         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
4535         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
4536         (frv_read_argument): Use expand_normal.
4537
4538         PR target/44757
4539         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
4540         lm32_legitimate_constant_p.
4541         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4542         * config/lm32/lm32.c (gen_int_relational): Make new block for
4543         LE / LT / LEU / LTU case.  Declare variables at start of block.
4544         (lm32_block_move_inline): Use XALLOCAVEC.
4545
4546 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4547
4548         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
4549
4550 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
4551
4552         * gengtype (get_output_file_for_structure): Ensure type is union
4553         or struct.
4554         (write_splay_tree_allocator_def): Use
4555         get_output_file_with_visibility.
4556
4557 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4558
4559         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
4560         to defined values in case of an error.
4561         (s390_option_override): Skip further processing if the -march
4562         parameter wasn't recognized.
4563
4564 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
4565
4566         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
4567         assert that REG is a hard register number before using it as an index.
4568
4569         PR bootstrap/46358
4570         * config/i386/i386.c (ix86_expand_split_stack_prologue):
4571         Avoid warnings when HOST_WIDE_INT is 32 bit.
4572
4573 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4574
4575         PR target/46208
4576         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
4577         (sparc_promote_prototypes): Likewise.
4578         (sparc_promote_function_mode): Promote in 32-bit mode as well.
4579         (sparc_return_in_memory): Remove superfluous parentheses.
4580         (sparc_struct_value_rtx): Fix long lines.
4581         (sparc_function_value_1): Promote in 32-bit mode as well.
4582
4583 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
4584
4585         PR rtl-optimization/45352
4586         * sel-sched.c (find_best_expr): Do not set pneed_stall when
4587         the variable_issue hook is not implemented.
4588         (fill_insns): Remove dead variable stall_iterations.
4589         (init_seqno_1): Force EBB start for resetting sched cycles on any
4590         successor blocks of the rescheduled region.
4591         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
4592         (reset_sched_cycles_in_current_ebb): Add debug printing.
4593         New variable issued_insns.  Advance state when we have issued
4594         issue_rate insns.
4595
4596 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
4597
4598         * gengtype (main): Get here's position using POS_HERE macro for
4599         do*typedef calls.
4600
4601 2010-11-07  Ian Lance Taylor  <iant@google.com>
4602
4603         PR target/46089
4604         * config/i386/i386.c (split_stack_fn_large): New static variable.
4605         (ix86_expand_split_stack_prologue): Handle large model.
4606
4607 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
4608
4609         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
4610         all possible addressing modes.
4611
4612 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
4613
4614         PR tree-optimization/46346
4615         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
4616
4617 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
4618
4619         * config/mips/mips.c: Revert previous patch.
4620         * config/mips/mips.md: Likewise.
4621
4622 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
4623
4624         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
4625         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
4626         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
4627         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
4628         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
4629         to use FMA.
4630         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
4631         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
4632         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
4633         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
4634
4635 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
4636
4637         PR c/43384
4638         * c-decl.c (lookup_label): Labels can only be referenced in a
4639         function's scope.
4640         (store_parm_decls_oldstyle): Skip erroneous parameters.
4641
4642 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
4643
4644         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4645         LIBCALL_VALUE): Remove macros.
4646         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4647         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4648         (fr30_function_value_regno_p, fr30_function_value,
4649         fr30_libcall_value): New functions.
4650
4651 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
4652
4653         PR middle-end/46314
4654         * target.def (generate_internal_label): New asm_out hook.
4655         * output.h (default_generate_internal_label): Declare.
4656         * varasm.c (default_generate_internal_label): Define.
4657
4658 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4659
4660         PR target/44981
4661         * doc/extend.tex (format): Document NSString extension.
4662         (format_arg): Likewise.
4663         (Darwin Format Checks): New section.
4664         * doc/tm.texi: Document string object hooks (generated).
4665         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
4666         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
4667         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
4668         * target.def (objc_construct_string_object): Rename, amend
4669         documentation.
4670         (string_object_ref_type_p): New hook.
4671         (check_string_object_format_arg): New hook.
4672         * c-parser.c (c_parser_attributes): Allow objective-c class names as
4673         attribute identifiers.
4674         * config/darwin-c.c (darwin_cfstring_ref_p): New.
4675         (darwin_check_cfstring_format_arg): New.
4676         (darwin_additional_format_types): New.
4677         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
4678         (darwin_check_cfstring_format_arg): New.
4679         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
4680         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
4681         (TARGET_N_FORMAT_TYPES): New.
4682         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
4683
4684 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4685             Pascal Obry  <obry@adacore.com>
4686
4687         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
4688         in 64-bit mode and 17 otherwise.
4689
4690 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4691
4692         PR debug/45939
4693         * var-tracking.c (emit_note_insn_var_location): Make sure that
4694         call related var location notes come before the normal ones.
4695
4696 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4697
4698         PR target/46326
4699         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
4700         in the last change.
4701
4702 2010-11-05  Ian Lance Taylor  <iant@google.com>
4703
4704         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
4705
4706 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4707
4708         PR c/44772
4709         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
4710         pointer_set_contains if DECL_NAME is NULL.
4711
4712 2010-11-05  Ian Lance Taylor  <iant@google.com>
4713
4714         PR target/46084
4715         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
4716         request enough additional space for alignment, and force alignment.
4717
4718 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
4719
4720         * config/i386/i386.c (legitimate_pic_address_disp_p):
4721         Handle UNSPEC_PCREL.
4722         (ix86_legitimate_address_p): Likewise.
4723         (legitimize_pic_address): Likewise.
4724         (output_pic_addr_const): Likewise.
4725         (ix86_delegitimize_address): Likewise.
4726         (ix86_find_base_term): Likewise.
4727         (memory_address_length): Likewise.
4728         (x86_output_mi_thunk): Handle special case x64
4729         for non local binding.
4730         * config/i386/i386.md (UNSPEC_PCREL): New.
4731         * config/i386/winnt.c (i386_pe_binds_local_p):
4732         Allow weak symbol for x64 windows with non-local binding.
4733
4734 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4735
4736         PR target/45670
4737         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
4738         instead of EXPAND_NORMAL for base expansion.
4739
4740 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
4741
4742         * config.gcc: Support --with-fpmath=avx for x86.
4743         * config/i386/avxmath.h: New.
4744         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
4745
4746 2010-11-05  Ian Lance Taylor  <iant@google.com>
4747
4748         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
4749         * gengtype.c (walk_type): Don't recognize descbits option.
4750
4751 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
4752
4753         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
4754         WORD_SWITCH_TAKES_ARG): Remove.
4755         * doc/options.texi (Args): Document.
4756         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
4757         * doc/tm.texi: Regenerate.
4758         * opt-functions.awk (switch_flags): Handle Args.
4759         * opts-common.c: Update comment on tm.h include.
4760         (decode_cmdline_option): Handle options with multiple arguments.
4761         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
4762         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
4763         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4764         CL_COMMON): Update values.
4765         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
4766         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
4767         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
4768         sectobjectsymbols, sectorder, segcreate, segprot): New.
4769
4770 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4771             Uros Bizjak  <ubizjak@gmail.com>
4772
4773         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
4774         256bit AVX register is used.
4775         (ix86_expand_vector_move_misalign): Likewise.
4776         (ix86_expand_vector_move): Replace use_avx256_p with
4777         VALID_AVX256_REG_MODE.
4778
4779 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
4780
4781          PR target/44750
4782         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
4783         change.  Set $@-warn.o to -Wno-error.
4784
4785         PR bootstrap/44756
4786         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
4787         comparing it to a signed value.
4788
4789         PR middle-end/44766
4790         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
4791         PR bootstrap/44770
4792         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
4793         to i.
4794
4795         PR target/44754
4796         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
4797         (m32c_function_arg).  Add comma between arguments two and three.
4798         (m32c_promote_prototypes): Remove declaration.
4799         (current_function_special_page_vector): Likewise.
4800         (m32c_regno_reg_class): Change return type to enum reg_class.
4801         (m32c_pushm_popm): Use add_reg_note.
4802         (m32c_push_rounding): Change return type to unsigned int.
4803         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
4804         enum reload_type.
4805         (m32c_insert_attributes): Constify variable name.
4806         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
4807         (m32c_prepare_shift): Remove variable lref.
4808         (m32c_expand_movcc): Remove variable cmp.
4809         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
4810         (m32c_compare_redundant): Remove variable op2.
4811         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
4812         (m32c_pragma_memregs): Assign the number to target_memregs.
4813         (m32c_pragma_address): Remove variable var_str.
4814         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
4815         enum reg_class.
4816         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
4817         * config/m32c/bitops.md (andsi3): Add default case to switch.
4818         (iorsi3, xorsi3): Likewise.
4819         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
4820         * config/m32c/jump.md (call, call_value): Likewise.
4821         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
4822         (m32c_regno_reg_class): Likewise.
4823         (current_function_special_page_vector): Declare.
4824
4825 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4826
4827         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
4828
4829         PR tree-optimization/46099
4830         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
4831         if it is NULL and uid wasn't found in the hash table.  Just fold the
4832         result if it is NULL otherwise.  Insert other potentially needed
4833         stmts right before current stmt instead of on the entry edge.
4834         (struct elv_data): Add gsi and reset fields.
4835         (eliminate_local_variables_1): Adjust caller.  If take_address_of
4836         failed for debug stmt, set dta->reset and return.
4837         (eliminate_local_variables_stmt): Change STMT argument for GSI,
4838         pass GSI through to the callback, handle resetting of debug stmts.
4839         (eliminate_local_variables): Adjust caller.  Process debug stmts
4840         in second phase.
4841
4842         PR middle-end/43690
4843         * gimplify.c (gimplify_asm_expr): If a "m" input is a
4844         {pre,post}{in,de}crement, fail.
4845
4846         PR debug/46307
4847         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
4848         * tree-pretty-print.c (dump_generic_node): Likewise.
4849         (op_code_prio): Likewise.
4850         * cfgexpand.c (expand_debug_expr): Likewise.
4851
4852 2010-11-04  Paul Koning  <ni1d@arrl.net>
4853
4854         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
4855         constraints.
4856
4857 2010-11-04  Chao-ying Fu  <fu@mips.com>
4858
4859         * configure.ac: Test assembler support for DSP Rev1 mult.
4860         * configure: Regenerate.
4861         * config.in: Regenerate.
4862         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
4863         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
4864         (CODE_FOR_mips_multu): New define.
4865         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
4866         dspr2_32 to dsp_32.
4867         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
4868         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
4869         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
4870         New define_expand patterns.
4871         * config/mips/constraints.md (ka): Update the constraint to test
4872         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
4873         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
4874         mips_multu): Delete.
4875         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
4876         Change target constraint to "ka".
4877         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
4878         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
4879         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4880         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
4881         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4882         (<u>maddsidi4): Likewise.
4883         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
4884         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
4885
4886 2010-11-04  Paul Koning  <ni1d@arrl.net>
4887
4888         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
4889
4890 2010-11-04  Paul Koning  <ni1d@arrl.net>
4891
4892         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
4893
4894 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4895
4896         Fixed using the Objective-C 2.0 dot-syntax with class names.
4897         * c-parser.c (c_parser_next_token_starts_declspecs): In
4898         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
4899         (c_parser_next_token_starts_declaration): Same.
4900         (c_parser_postfix_expression): Parse the Objective-C 2.0
4901         dot-syntax with a class name.
4902
4903 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
4904
4905         * final.c (compute_alignments): Compute/free loop info all the time.
4906         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
4907         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
4908         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
4909         * config/rs6000/rs6000.c (cfgloop.h): Include.
4910         (can_override_loop_align): New.
4911         (rs6000_option_override_internal): Set it.
4912         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
4913         (rs6000_loop_align): New function.
4914         (rs6000_loop_align_max_skip): Likewise.
4915
4916 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4917
4918         PR driver/45703
4919         * collect2.c (main): Print --help output to stdout.  Do not
4920         exit right away, so ld --help is appended.  Add empty lines
4921         to separate output suitably.
4922
4923 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
4924
4925         PR tree-optimization/46233
4926         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
4927         after calling analyze_function, not before.
4928
4929         PR target/46234
4930         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
4931         instead of build_va_arg_indirect_ref.
4932         * config/spu/spu.c (spu_va_start): Likewise.
4933         * config/s390/s390.c (s390_va_start): Likewise.
4934
4935 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
4936
4937         PR middle-end/46292
4938         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
4939         if the innermode is not vector mode, determine the mode of a subreg
4940         by using mode_for_size of inner_size.
4941
4942 2010-11-04  Richard Guenther  <rguenther@suse.de>
4943
4944         PR rtl-optimization/46183
4945         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
4946         (execute_rtl_pre): Likewise.
4947         (execute_rtl_hoist): Likewise.
4948
4949 2010-11-04  Richard Guenther  <rguenther@suse.de>
4950
4951         PR tree-optimization/46068
4952         * ipa-split.c (consider_split): Remove gcc_unreachable.
4953
4954 2010-11-04  Richard Guenther  <rguenther@suse.de>
4955
4956         * tree-nested.c (build_addr): Use build_fold_addr_expr.
4957
4958 2010-11-04  Richard Guenther  <rguenther@suse.de>
4959
4960         PR tree-optimization/45991
4961         * gimplify.c (force_gimple_operand_1): Use the provded test
4962         function in the initial test.
4963
4964 2010-11-04  Jeff Law  <law@redhat.com>
4965
4966         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
4967         of readonly memory equivalances for const/pure calls.
4968
4969 2010-11-04  Richard Guenther  <rguenther@suse.de>
4970
4971         PR tree-optimization/45733
4972         * tree-vect-stmts.c (reverse_vec_elements): Honor the
4973         permute builtins function return type.
4974
4975 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
4976
4977         PR middle-end/44765
4978         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
4979         as an index, check it is not INVALID_REGNUM.
4980
4981         PR bootstrap/44756
4982         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
4983         unsignedp.
4984         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
4985
4986         PR bootstrap/44756
4987         * function.c (thread_prologue_and_epilogue_insns): Add
4988         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
4989
4990         PR bootstrap/44756
4991         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
4992
4993         PR target/44750
4994         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
4995         (pdp11_preferred_reload_class): Rename class to rclass.
4996         (pdp11_preferred_output_reload_class): Likewise.
4997         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
4998         ALL_COMPILERFLAGS .
4999         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
5000
5001         PR bootstrap/44756
5002         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
5003         iteration variables to enum machine_mode.
5004
5005         PR target/44751
5006         * config/h8300/h8300.c: Include df.h.
5007         (push, pop): Use add_reg_note.
5008         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
5009         (compute_a_shift_cc): Likewise.
5010         (expand_a_shift): Argument code has type enum rtx_code.
5011         (struct shift_insn): Member cc_valid has type enum attr_cc.
5012         (struct shift_info) <cc_inline, cc_special>: Likewise.
5013         enum attr_cc.
5014         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
5015         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
5016
5017 2010-11-04  Ira Rosen  <irar@il.ibm.com>
5018
5019         PR tree-optimization/46213
5020         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
5021         MINUS_EXPR only if the first operand is reduction operand.
5022
5023 2010-11-04  Richard Guenther  <rguenther@suse.de>
5024             Richard Henderson  <rth@redhat.com>
5025
5026         * tree.def (FMA_EXPR): New tree code.
5027         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
5028         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
5029         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
5030         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
5031         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5032         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
5033         (execute_optimize_widening_mul): Call it.  Reorganize to allow
5034         dead stmt removal.  Move TODO flags ...
5035         (pass_optimize_widening_mul): ... here.
5036         * flag-types.h (enum fp_contract_mode): New enum.
5037         * common.opt (flag_fp_contract_mode): New variable.
5038         (-ffp-contract): New option.
5039         * opts.c (common_handle_option): Handle it.
5040         * doc/invoke.texi (-ffp-contract): Document.
5041         * tree.h (fold_fma): Declare.
5042         * builtins.c (fold_fma): New function.
5043         (fold_builtin_fma): Likewise.
5044         (fold_builtin_3): Call it for fma.
5045         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
5046         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
5047         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
5048         New expanders.
5049         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
5050         named patterns.
5051         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
5052         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
5053         (fms_optab, fnma_optab, fnms_optab): New defines.
5054         * gimplify.c (gimplify_expr): Handle binary truth expressions
5055         explicitly.  Handle FMA_EXPR.
5056         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
5057         operations.
5058
5059 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5060             Richard Guenther  <rguenther@suse.de>
5061
5062         * passes.c (init_optimization_passes): Move veclower after SSA.
5063         * tree-vect-generic.c (uniform_vector_p): New function.
5064         (expand_vector_operations_1): Handle conversion.
5065         (pass_lower_vector): Update SSA form.
5066
5067 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
5068
5069         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
5070         plugin capabilities.
5071         * configure: Regenerate.
5072
5073 2010-11-03  Xinliang David Li  <davidxl@google.com>
5074
5075         PR target/46200
5076         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
5077         Adjust cbase if the use stmt is after iv update.
5078
5079 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5080
5081         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
5082
5083 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5084
5085         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
5086         comment.  Pass true to the last argument of output_stack_adjust.
5087
5088 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5089
5090         PR target/46295
5091         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
5092         if 256bit AVX register is used.
5093
5094 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5095
5096         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
5097         xsmindp/xsmaxdp on VSX for single precision min/max.
5098         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
5099         (vsx_sminsf3): Ditto.
5100
5101 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5102
5103         * combine.c (try_combine): Fix formatting issues, improve comments and
5104         fix a pasto.
5105
5106 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5107
5108         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
5109         of the result before building binary expressions.
5110
5111 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5112
5113         PR rtl-optimization/45865
5114         * Makefile.in (df-problems.o): Revert revision 164552.
5115         * basic-block.h (enum bb_flags): Likewise.
5116         * cfgcleanup.c (block_was_dirty): Likewise.
5117         (try_forward_edges): Likewise.
5118         (try_crossjump_bb): Likewise.
5119         (try_head_merge_bb): Likewise.
5120         (try_optimize_cfg): Likewise.
5121         (cleanup_cfg): Likewise.
5122         * df-core.c (df_set_bb_dirty): Likewise.
5123         * df-problems.c: Likewise.
5124         (df_simulate_find_uses): Likewise.
5125         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
5126         (find_memory, find_memory_store): Likewise.
5127         (can_move_insns_across): Likewise.
5128         * df.h (can_move_insns_across): Likewise.
5129         * ifcvt.c (find_memory): Likewise.
5130         (dead_or_predicable): Likewise.
5131
5132 2010-11-03  Richard Guenther  <rguenther@suse.de>
5133
5134         PR middle-end/46288
5135         * predict.c (strip_predict_hints): Simply DCE builtin expect if
5136         the result is unused.
5137
5138 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5139
5140         PR tree-optimization/46009
5141         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
5142         cond_if_else_store_replacement if bb1 and bb2 have the same
5143         single successor.
5144         (cond_store_replacement): Use gimple_assign_single_p, don't
5145         check if rhs is SSA_NAME or invariant.  Call release_defs for
5146         assign.
5147         (cond_if_else_store_replacement): New function.
5148
5149 2010-11-03  Richard Guenther  <rguenther@suse.de>
5150
5151         * opts.c (finish_options): Properly check for all WHOPR
5152         flags before complaining about -flto-partition.
5153
5154 2010-11-04  Alan Modra  <amodra@gmail.com>
5155
5156         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
5157         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
5158         TARGET_SECURE_PLT.
5159         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
5160         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
5161         on input, "r" on output.
5162
5163 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
5164
5165         Implemented -fobjc-std=objc1 flag.
5166         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
5167         option.
5168         * doc/standards.texi (Standards): Updated the section on
5169         Objective-C; mention support for Objective-C 2.0 features and the
5170         new -fstd-objc=objc1 flag to disable them.
5171
5172 2010-11-03  Richard Guenther  <rguenther@suse.de>
5173
5174         PR middle-end/46241
5175         * dwarf2out.c (scope_die_for): Properly detect global scope.
5176
5177 2010-11-03  Richard Guenther  <rguenther@suse.de>
5178
5179         PR tree-optimization/46190
5180         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5181         Properly compute peel iterations.
5182
5183 2010-11-03  Richard Guenther  <rguenther@suse.de>
5184
5185         PR tree-optimization/46286
5186         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
5187         re-allocated vector data.
5188
5189 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5190
5191         PR target/46285
5192         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
5193         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
5194         is completed.
5195
5196 2010-11-03  Richard Guenther  <rguenther@suse.de>
5197
5198         PR tree-optimization/46217
5199         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
5200         flag matches.
5201         (execute_update_addresses_taken): Likewise.
5202
5203 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
5204
5205         PR bootstrap/44335
5206         * targhooks.c (targhook_words_big_endian): New function.
5207         (targhook_float_words_big_endian): Likewise.
5208         * targhooks.h (targhook_words_big_endian): Declare.
5209         (targhook_float_words_big_endian): Likewise.
5210         * target.def (words_big_endian, float_words_big_endian): New hooks.
5211
5212 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5213
5214         PR tree-optimization/46165
5215         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
5216         a normal call into noreturn call.
5217
5218 2010-11-03  Richard Guenther  <rguenther@suse.de>
5219
5220         PR middle-end/46251
5221         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
5222         not INDIRECT_REFs.
5223
5224 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5225
5226         PR tree-optimization/46107
5227         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
5228         if cfg_hook_duplicate_loop_to_header_edge failed.
5229
5230 2010-11-03  Ian Lance Taylor  <iant@google.com>
5231
5232         PR lto/46273
5233         * config.gcc: Don't set lto_binary_reader.
5234         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5235         (Configuration): Mention --disable-lto.  Remove --with-libelf
5236         paragraph.
5237
5238 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5239
5240         PR debug/46252
5241         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
5242         prev_real_insn.
5243         * gcse.c (insert_insn_end_basic_block): Likewise.
5244
5245         PR rtl-optimization/46034
5246         PR rtl-optimization/46212
5247         PR rtl-optimization/46248
5248         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
5249         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
5250         before i0dest -> i0src substitution and pass 1 instead of 0 as last
5251         argument to subst on i2pat.
5252
5253 2010-11-02  Ian Lance Taylor  <iant@google.com>
5254
5255         * configure.ac: Use AC_SYS_LARGEFILE.
5256         * configure: Rebuild.
5257         * config.in: Rebuild.
5258
5259 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5260
5261         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
5262         fold_convert.
5263         * c-typeck.c (build_function_call_vec): Likewise.
5264         * cfgexpand.c (expand_debug_expr): Likewise.
5265         * cgraphunit.c (assemble_thunk): Likewise.
5266         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5267         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
5268         (fold_binary_loc, fold_ternary_loc): Likewise.
5269         * gimple-fold.c (get_symbol_constant_value): Likewise.
5270         * gimple-low.c (lower_builtin_setjmp): Likewise.
5271         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
5272         * gimplify.c (gimplify_init_constructor): Likewise.
5273         * lambda.h (build_linear_expr): Likewise.
5274         * omp-low.c (omp_reduction_init): Likewise.
5275         * tree-inline.c (remap_ssa_name): Likewise.
5276         * tree-object-size.c (compute_object_sizes): Likewise.
5277         * tree-sra.c (init_subtree_with_zero): Likewise.
5278         (sra_ipa_modify_assign): Likewise.
5279         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
5280         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
5281         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
5282         (undistribute_ops_list): Likewise.
5283         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5284         * tree-vect-stmts.c (vectorizable_call): Likewise.
5285         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
5286         (build_zero_cst): Handle more cases directly.  Update comment.
5287
5288 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5289
5290         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
5291         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
5292
5293         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
5294         and call ix86_split_call_vzeroupper instead of
5295         ix86_split_call_pop_vzeroupper.
5296         (*call_pop_1_vzeroupper): Likewise.
5297         (*sibcall_pop_1_vzeroupper): Likewise.
5298         (*call_value_pop_0_vzeroupper): Likewise.
5299         (*call_value_pop_1_vzeroupper): Likewise.
5300         (*sibcall_value_pop_1_vzeroupper): Likewise.
5301
5302 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5303
5304         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
5305
5306 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
5307
5308         * basic-block.h (insert_insn_end_bb_new): Delete.
5309         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
5310
5311 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
5312             H.J. Lu  <hongjiu.lu@intel.com>
5313
5314         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
5315         (ix86_split_call_pop_vzeroupper): Likewise.
5316
5317         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
5318         (ix86_expand_call): Conditionally decorate calls with
5319         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
5320         (ix86_split_call_vzeroupper): New.
5321         (ix86_split_call_pop_vzeroupper): Likewise.
5322
5323         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
5324         (*call_pop_0_vzeroupper): New insn_and_split pattern.
5325         (*call_pop_1_vzeroupper): Likewise.
5326         (*sibcall_pop_1_vzeroupper): Likewise.
5327         (*call_0_vzeroupper): Likewise.
5328         (*call_1_vzeroupper): Likewise.
5329         (*sibcall_1_vzeroupper): Likewise.
5330         (*call_1_rex64_vzeroupper): Likewise.
5331         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
5332         (*call_1_rex64_large_vzeroupper): Likewise.
5333         (*sibcall_1_rex64_vzeroupper): Likewise.
5334         (*call_value_pop_0_vzeroupper): Likewise.
5335         (*call_value_pop_1_vzeroupper): Likewise.
5336         (*sibcall_value_pop_1_vzeroupper): Likewise.
5337         (*call_value_0_vzeroupper): Likewise.
5338         (*call_value_0_rex64_vzeroupper): Likewise.
5339         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
5340         (*call_value_1_vzeroupper): Likewise.
5341         (*sibcall_value_1_vzeroupper): Likewise.
5342         (*call_value_1_rex64_vzeroupper): Likewise.
5343         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
5344         (*call_value_1_rex64_large_vzeroupper): Likewise.
5345         (*sibcall_value_1_rex64_vzeroupper): Likewise.
5346
5347 2010-11-02  Ian Lance Taylor  <iant@google.com>
5348
5349         PR lto/46273
5350         * config.gcc: Revert last patch: set lto_binary_reader.
5351
5352 2010-11-02  Richard Guenther  <rguenther@suse.de>
5353
5354         PR tree-optimization/46149
5355         * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
5356         non-indirect MEM_REF variants.
5357
5358 2010-11-02  Richard Guenther  <rguenther@suse.de>
5359
5360         PR tree-optimization/46216
5361         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5362         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
5363
5364 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5365
5366         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
5367         (*-*-osf*): Likewise.
5368         * configure: Regenerate.
5369
5370 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5371
5372         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
5373         for Intel Core 2 and Core i7.
5374
5375 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
5376
5377         Model decoder of Core 2/i7 for multipass scheduling.
5378
5379         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
5380         New type to hold target-specific data for multipass scheduling.
5381         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5382         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
5383         Core 2/i7.
5384         (core2i7_secondary_decoder_max_insn_size,)
5385         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
5386         New static variables.
5387         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
5388         ([_]ix86_first_cycle_multipass_data): New static variable.
5389         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
5390         Implement targetm.sched hooks.
5391         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
5392         of ...
5393         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
5394         Implement new targetm.sched hooks.
5395         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
5396         targetm.sched hook to install multipass scheduling hooks on demand.
5397
5398         * doc/tm.texi.in: Document new targetm.sched hooks.
5399         * doc/tm.texi: Regenerate.
5400
5401         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5402         (first_cycle_multipass_data_t): New typedef.
5403         (struct choice_entry: target_data): New field.
5404         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
5405         to allow target model restrictions not represented in DFA.
5406         (choose_ready, schedule_block): Update.
5407         (sched_extend_ready_list, sched_finish_ready_list): Call new target
5408         hooks to initialize target-specific data for multipass scheduling.
5409         * sched-int.h (max_issue): Update declaration.
5410         * sel-sched.c (choose_best_insn): Update.
5411         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
5412         (first_cycle_multipass_{init, fini}): Define and document new
5413         targetm.sched hooks.
5414
5415 2010-11-02  Richard Guenther  <rguenther@suse.de>
5416
5417         PR tree-optimization/46184
5418         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
5419         input vector type from the reduction operand as well.
5420
5421 2010-11-02  Richard Guenther  <rguenther@suse.de>
5422
5423         PR tree-optimization/46177
5424         * tree-loop-distribution.c (prop_phis): Use
5425         mark_virtual_phi_result_for_renaming.
5426
5427 2010-11-02  Martin Jambor  <mjambor@suse.cz>
5428
5429         PR middle-end/46120
5430         * tree.c (get_binfo_at_offset): Bail out on artificial
5431         fields.  Identify primary bases according to their offsets.
5432
5433 2010-11-02  Martin Jambor  <mjambor@suse.cz>
5434
5435         PR tree-optimization/45875
5436         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
5437         (gimple_get_relevant_ref_binfo): Detect primary bases according to
5438         their field offset.
5439
5440 2010-11-02  Ian Lance Taylor  <iant@google.com>
5441
5442         * doc/install.texi (Configuration): Note in two places that Java
5443         is not enabled by default.
5444
5445 2010-11-02  Ian Lance Taylor  <iant@google.com>
5446
5447         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5448         (Configuration): Mention --disable-lto.  Remove --with-libelf
5449         paragraph.
5450
5451 2010-11-02  Ian Lance Taylor  <iant@google.com>
5452
5453         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
5454         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
5455         LIBELFINC.  Remove HAVE_libelf.
5456         * config.gcc: Don't set lto_binary_reader.
5457         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
5458         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
5459         (LIBS): Remove $(LIBELFLIBS).
5460         (INCLUDES): Remove $(LIBELFINC).
5461         * configure: Rebuild.
5462         * config.in: Rebuild.
5463
5464 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5465
5466         * config/microblaze/microblaze-protos.h (function_arg): Delete.
5467         (function_arg_advance): Delete.
5468         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
5469         (FUNCTION_ARG): Delete.
5470         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
5471         (microblaze_function_arg_advance): ...this.  Make static.  Take a
5472         const_tree and a bool.
5473         (function-arg): Rename to...
5474         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
5475         and a bool.
5476         (microblaze_expand_prologue): Call targetm.calls.function_arg and
5477         targetm.calls.function_arg_advance.
5478         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5479
5480 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
5481
5482         Merge from FSF "apple/trunk" branch.
5483
5484         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
5485         * config/darwin.opt: .. to here.
5486         (matt-stubs): New option.
5487         * config/i386/darwin.opt: Delete.
5488         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
5489         (MACHO_DYNAMIC_NO_PIC_P): New.
5490         (MACHOPIC_INDIRECT): New.
5491         (MACHOPIC_PURE): New.
5492         * config/i386/darwin.h (DARWIN_X86) Define to 1.
5493         (MACHOPIC_ATT_STUB): New.
5494         (CC1_SPEC): Do not remove mdynamic-no-pic.
5495         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
5496         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
5497         (FUNCTION_PROFILER): Correct over-length line.
5498         (SUBTARGET_OVERRIDE_OPTIONS): New.
5499         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
5500         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
5501         (legitimate_constant_p): Handle mdynamic-no-pic.
5502         (ix86_legitimate_address_p): Likewise.
5503         (ix86_legitimize_address): Likewise.
5504         (ix86_expand_move): Likewise.
5505         (machopic_output_stub): Update for ATT-style stubs and
5506         mdynamic-no-pic.
5507         * config/darwin-protos.h (machopic_symbol_defined_p): New.
5508         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
5509         TARGET_DYNAMIC_NO_PIC: Remove.
5510         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
5511         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
5512         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
5513         Remove handling of mdynamic-no-pic.
5514         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
5515         Define if required.
5516         (machopic_symbol_defined_p): Do not try to use current_function_decl
5517         when generating _get_pc thunks within stubs.
5518         (machopic_indirect_data_reference): Rework for direct conditionals
5519         rather than #ifdefs, add x86 mdynamic-no-pic
5520         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
5521         defined value.
5522         (darwin_override_options): Handle mdynamic-no-pic here.
5523         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
5524         (machopic_lazy_symbol_ptr3_section): New.
5525         (machopic_picsymbol_stub2_section): New.
5526         (machopic_picsymbol_stub3_section): New.
5527         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
5528         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
5529         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5530         Moved common definition from x86 and rs6000.
5531         (MACHO_DYNAMIC_NO_PIC_P): Override value.
5532         (MACHOPIC_INDIRECT): Likewise.
5533         (MACHOPIC_PURE): Likewise.
5534         * config.gcc (x86-darwin-*): Remove darwin.opt.
5535
5536 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
5537
5538         PR debug/46255
5539         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
5540         instead of gsi_last_bb.
5541
5542 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5543             Maxim Kuvyrkov  <maxim@codesourcery.com>
5544
5545         * config/i386/i386.c (cpu_names): Add "corei7".
5546         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
5547
5548 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5549             Maxim Kuvyrkov  <maxim@codesourcery.com>
5550
5551         Tune alignment for Intel Core i7
5552
5553         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
5554         (enum processor_type): Update comment.  Add entries for Core i7.
5555         * config/i386-c.c (ix86_target_macros_internal): Update.
5556         * config/i386.c (m_COREI7{_32,_64}): New macros.
5557         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
5558         (processor_target_table): Tune alignment for Core i7.
5559         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
5560
5561         * doc/invoke.texi: Document "corei7" option value.
5562
5563 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5564             Maxim Kuvyrkov  <maxim@codesourcery.com>
5565             H.J. Lu  <hjl.tools@gmail.com>
5566
5567         Basic support for Intel Core i7
5568
5569         * i386.c (ix86_option_override_internal): Add entry for corei7, use
5570         generic tuning.  Use generic32 when compiling for 32-bit ABI.
5571
5572 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
5573
5574         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
5575         sections and call darwin_asm_dwarf_section() to handle them.
5576         (darwin_asm_dwarf_section): New.
5577         (darwin_file_start): Remove code emitting dwarf section symbols.
5578
5579 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
5580
5581         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
5582         explicitly disable stack protection when building libgcc.
5583         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
5584
5585 2010-11-01  Jason Merrill  <jason@redhat.com>
5586
5587         * fold-const.c (fold_indirect_ref_1): Handle folding
5588         POINTER_PLUS_EXPR to ARRAY_REF.
5589
5590 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
5591
5592         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
5593         (sh_delegitimize_address): New function.
5594
5595 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
5596
5597         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
5598         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
5599         (CC1_SPEC): Don't handle -target.
5600         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
5601         options.
5602         * config/darwin.opt (Zallowable_client, Zbundle_loader,
5603         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
5604         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
5605         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
5606         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
5607         Zweak_reference_mismatches, client_name, compatibility_version,
5608         current_version, dylinker_install_name, pagezero_size,
5609         read_only_relocs, seg1addr, segs_read_only_addr,
5610         segs_read_write_addr, sub_library, sub_umbrella): New.
5611         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
5612         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
5613         * config/freebsd.opt: New.
5614         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
5615         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
5616         * config/rpath.opt: New.
5617         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
5618         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
5619         Use rpath.opt.
5620
5621 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
5622
5623         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
5624         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
5625         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
5626         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
5627         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
5628         Document that options in .opt files do not need to be included.
5629         * doc/tm.texi: Regenerate.
5630         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
5631         * opts-common.c: Update comment on tm.h include.
5632         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
5633         * system.h (SWITCH_TAKES_ARG): Poison.
5634         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
5635         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
5636         in darwin.opt.
5637         (LINK_COMMAND_SPEC_A): Don't include %{x}.
5638         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5639         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
5640         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
5641         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5642         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
5643         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
5644         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
5645         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
5646         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5647         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
5648         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
5649         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
5650         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
5651         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
5652         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
5653         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
5654         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
5655         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
5656         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
5657         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
5658         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
5659         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
5660         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5661
5662 2010-11-01  Paul Koning  <ni1d@arrl.net>
5663
5664         * config/pdp11/pdp11.md: Use iterators.
5665         (addqi3, subqi3, iorsi3, xorsi3): Delete.
5666
5667 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
5668
5669         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
5670         GCC_INSN_FLAGS_H.
5671         * libgcov.c (__gcov_indirect_call_profiler): Set
5672         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
5673         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
5674
5675 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
5676
5677         PR tree-optimization/46259
5678
5679         Revert:
5680         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5681         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5682         build_vector_from_val.
5683
5684 2010-11-01  DJ Delorie  <dj@redhat.com>
5685
5686         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
5687         as well as an assertion.
5688
5689 2010-11-01  Paul Koning  <ni1d@arrl.net>
5690
5691         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
5692         complex modes in memory.
5693
5694 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
5695
5696         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
5697
5698 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
5699
5700         PR target/45250
5701         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
5702         (cfa_base_offset): New variable.
5703         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
5704         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
5705         is NULL.
5706         (vt_init_cfa_base): Initialize cfa_base_offset.
5707
5708 2010-11-01  Alan Modra  <amodra@gmail.com>
5709
5710         PR target/46030
5711         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
5712         and savres_strategy.
5713         (stack_info): New file scope var.
5714         (rs6000_init_machine_status): Init stack_info.
5715         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
5716         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5717         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
5718         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
5719         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
5720         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
5721         (rs6000_savres_strategy): Rewrite.
5722         (rs6000_stack_info): Use "stack_info" in place of local "info".
5723         Return cached stack info when reload_completed unless ENABLE_CHECKING
5724         in which case confirm newly calculated stack info matches old info.
5725         Delay calculation of lr_save_p, set it for out of line gp save/restore
5726         as well as fp.  Call rs6000_savres_strategy from here..
5727         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
5728         (rs6000_output_function_prologue): Use info->savres_strategy to
5729         determine whether fp save/restore externs need to be emitted.
5730
5731 2010-10-31  Jason Merrill  <jason@redhat.com>
5732
5733         * tree.h (EXPR_LOC_OR_HERE): New macro.
5734         * builtins.c (c_strlen): Use it.
5735         * c-decl.c (build_enumerator): Likewise.
5736         * gimplify.c (internal_get_tmp_var): Likewise.
5737         (shortcut_cond_expr): Likewise.
5738         (gimplify_one_sizepos): Likewise.
5739
5740 2010-10-31  Richard Henderson  <rth@redhat.com>
5741
5742         * config/i386/cygming.h (TARGET_SEH): New.
5743         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
5744         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
5745         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
5746         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
5747         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
5748         (ASM_DECLARE_FUNCTION_SIZE): New.
5749         * config/i386/i386-protos.h: Update.
5750         * config/i386/i386.c (ix86_option_override_internal): Enable
5751         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
5752         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
5753         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
5754         (ix86_compute_frame_layout): For SEH, disable
5755         use_fast_prologue_epilogue, move frame pointer to the end of
5756         the frame.  Initialize hfp_save_offset.
5757         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
5758         at end of prologue for SEH.
5759         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
5760         emit blockage at beginning of epilogue.
5761         (ix86_expand_binary_operator): After reload, emit LEA if needed.
5762         (ix86_output_call_insn): New.
5763         * config/i386/i386.h (TARGET_SEH): New.
5764         (struct machine_function): Add member seh.
5765         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
5766         * config/i386/winnt.c (struct seh_frame_state): New.
5767         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
5768         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
5769         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
5770         i386_pe_start_function, i386_pe_end_function): New.
5771
5772         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
5773         as CFA_STORE in rules 12 and 13.
5774
5775 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
5776
5777         PR tree-optimization/46142
5778         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
5779         accommodate third function argument.
5780
5781 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5782
5783         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
5784
5785 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5786
5787         * fold-const.c (build_zero_vector): Use build_vector_from_val.
5788         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
5789         (get_initial_def_for_reduction): Likewise.
5790         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5791         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
5792         * tree.c (build_one_cst): Likewise.
5793         (build_vector_from_val): Use types_compatible_p for assert.
5794
5795 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5796
5797         * emit-rtl.c (mark_used_flags): New function.
5798         (set_used_flags, reset_used_flags): Call it.
5799
5800 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
5801
5802         PR middle-end/44569
5803         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
5804         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
5805
5806 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         PR target/46195
5809         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
5810         (ix86_compat_aligned_value_p): This.
5811         (ix86_old_function_arg_boundary): Renamed to ...
5812         (ix86_compat_function_arg_boundary): This.  Updated.
5813         (ix86_contains_aligned_value_p): New.
5814         (ix86_function_arg_boundary): Align long double parameters on
5815         stack to 4byte in 32bit.
5816
5817 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
5818
5819         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5820         * c-parser.c (c_parser_objc_at_property_declaration): Removed
5821         parsing of RID_COPIES and RID_IVAR.  Updated call to
5822         objc_add_property_declaration.
5823         * c-typecheck.c (build_component_ref): Call
5824         objc_maybe_build_component_ref instead of objc_build_setter_call.
5825         Use objc_is_property_ref to improve Objective-C checks.
5826         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
5827         of objc_build_getter_call.
5828
5829 2010-10-29  Paul Koning  <ni1d@arrl.net>
5830
5831         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
5832         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
5833         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
5834         (REG_OK_STRICT): Move description.
5835
5836 2010-10-29  Paul Koning  <ni1d@arrl.net>
5837
5838         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
5839
5840 2010-10-29  Paul Koning  <ni1d@arrl.net>
5841
5842         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
5843
5844 2010-10-29  Paul Koning  <ni1d@arrl.net>
5845
5846         PR/41822
5847         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
5848
5849 2010-10-29  Richard Henderson  <rth@redhat.com>
5850
5851         PR rtl-opt/46226
5852         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
5853         for asm goto.
5854
5855 2010-10-29  Paul Koning  <ni1d@arrl.net>
5856
5857         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
5858         register to register move.
5859
5860 2010-10-29  Paul Koning  <ni1d@arrl.net>
5861
5862         * config/pdp11/pdp11.c (print_operand_address): Correct handling
5863         of integer constant addresses, delete vax-only logic.
5864
5865 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5866
5867         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
5868         a conditional expression.
5869
5870 2010-10-29  Paul Koning  <ni1d@arrl.net>
5871
5872         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
5873         instruction encoding.
5874
5875 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5876             Andrew Pinski  <pinskia@gmail.com>
5877
5878         * tree.h (build_vector_from_val): Declare.
5879         * tree.c (build_vector_from_val): New function.
5880         * c-typeck.c (build_binary_op): Handle vector shifting.
5881         * doc/extend.texi: Description of the vector shifting operation.
5882
5883 2010-10-29  Paul Koning  <pkoning@equallogic.com>
5884
5885         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
5886         pdp11_secondary_memory_needed): Declare.
5887         * config/pdp11/predicates.md (float_operand): New predicate.
5888         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
5889         (cbranchdf4, movdf): Change predicate.
5890         (movsf): Handle FPU register case.
5891         (truncdfsf2, extendsfdf2): Add FPU register case.
5892         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
5893         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
5894         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5895         (pdp11_register_move_cost): Update cost matrix.
5896         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
5897         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
5898         pdp11_secondary_memory_needed): New function.
5899         (pdp11_return_in_memory): Add other float types.
5900         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
5901         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
5902         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
5903         REGISTER_MOVE_COST): Delete.
5904         (BASE_RETURN_VALUE_REG): Add other float types.
5905
5906 2010-10-29  Nick Clifton  <nickc@redhat.com>
5907
5908         * doc/invoke.texi: Document -mam34 and -mtune options.
5909         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
5910         (mn10300_tune_cpu): New variable.
5911         (mn10300_handle_option): Handle -mam34 and -mtune options.
5912         (mn10300_option_override): Convert tune string into tune cpu variable.
5913         (mn10300_legitimate_constant_p): Delete unused local variable.
5914         (is_load_insn): New function.
5915         (is_store_insn): New function.
5916         (mn10300_adjust_schedule_cost): New function.
5917         (TARGET_SCHED_ADJUST_COST): Define.
5918         * config/mn10300/mn10300.opt (mam34): New option.
5919         (mtune): New option.
5920         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
5921         (enum processor_type): Add AM34.
5922         (TARGET_AM34): Define.
5923         * config/mn10300/mn10300.md (attr cpu): Add am34.
5924         Add pipeline description.
5925         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
5926         Remove unneeded alternatives.  Add timing attribute.
5927         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
5928         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
5929         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
5930         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
5931         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
5932         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
5933         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
5934         float_conditional_branch, jump, indirect_jump, tablejump,
5935         call_internal, call_value_internal, zero_extendqisi2_am33,
5936         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
5937         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
5938         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
5939         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
5940         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
5941         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
5942         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
5943         return_internal_regs, store_movm, return, call_next_insn):
5944         Add timing attribute.
5945         (am33_subsi3): Add missing clobber of CC_REG.
5946         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
5947         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
5948         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
5949         extendqisi2): Fix predicates.
5950         (call_internal, call_internal_value): Separate alternatives.
5951         * config/mn10300/t-mn10300: Add AM34 multilib.
5952
5953 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
5954
5955         * config/sh/sh.c (sh_promote_function_mode): Use
5956         default_promote_function_mode if !sh_promote_prototypes.
5957
5958 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
5959
5960         * recog.c (split_all_insns): Remove dead code.
5961
5962 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5963
5964         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5965
5966 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5967
5968         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5969         (FUNCTION_ARG_ADVANCE): Delete.
5970         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
5971         functions.
5972         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
5973         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5974         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5975
5976 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5977
5978         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
5979         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5980         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5981         Take a const_tree and a bool.
5982         (mcore_function_arg_advance): New function.
5983         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5984
5985 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5986
5987         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
5988         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5989         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5990         Take a const_tree and a bool.
5991         (mcore_function_arg_advance): New function.
5992         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5993
5994 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5995
5996         * config/h8300/h8300-protos.h (function_arg): Delete.
5997         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5998         * config/h8300/h8300.c (function_arg): Rename to...
5999         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
6000         a bool.
6001         (h8300_function_arg_advance): New function.
6002         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6003
6004 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6005
6006         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
6007         to...
6008         * config/arc/arc.c (arc_function_arg): ...here and...
6009         (arc_function_arg_advance): ...here.  New functions.
6010         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6011
6012 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6013
6014         * config/crx/crx-protos.h (crx_function_arg): Delete.
6015         (crx_function_arg_advance): Delete.
6016         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6017         * config/crx/crx.c (crx_function_arg): Make static.  Take a
6018         const_tree and a bool.
6019         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
6020         (enough_regs_for_param): Take a const_tree.
6021         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6022
6023 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6024
6025         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
6026         (m68hc11_function_arg_advance): Delete.
6027         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
6028         (FUNCTION_ARG_ADVANCE): Delete.
6029         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
6030         Take a const_tree and a bool.
6031         (m68hc11_function_arg_advance): Likewise.
6032         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6033
6034 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6035
6036         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
6037         (xstormy16_function_arg_advance): Delete.
6038         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
6039         (FUNCTION_ARG_ADVANCE): Delete.
6040         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
6041         Take a const_tree and a bool.
6042         (xstormy16_function_arg_advance): Likewise.  Return void, updating
6043         the CUM parameter instead.
6044         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6045
6046 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6047
6048         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
6049         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6050         (MOXIE_FUNCTION_ARG_SIZE): Move to...
6051         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
6052         (moxie_function_arg): Make static.  Take a const_tree and a bool.
6053         (moxie_function_arg_advance): New function.
6054         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6055
6056 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6057
6058         * config/mn10300/mn10300-protos.h (function_arg): Delete.
6059         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
6060         (FUNCTION_ARG_ADVANCE): Delete.
6061         * config/mn10300/mn10300.c (function_arg): Rename to...
6062         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
6063         and a bool.
6064         (mn10300_function_arg_advance): New function.
6065         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6066
6067 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6068
6069         * config/iq2000/iq2000-protos.h (function_arg): Delete.
6070         (function_arg_advance): Delete.
6071         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6072         * config/iq2000/iq2000.c (function_arg): Rename to...
6073         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
6074         a bool.
6075         (function_arg_advance): Rename to...
6076         (iq2000_function_arg_advance): ...this.  Make static.  Take a
6077         const_tree and a bool.
6078         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
6079         iq2000_function_arg.
6080         (iq2000_pass_by_reference): Call iq2000_function_arg).
6081         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6082
6083 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6084
6085         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
6086         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6087         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
6088         const_tree.
6089         (fr30_function_arg): New function.
6090         (fr30_function_arg_advance): New function.
6091         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6092
6093 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6094
6095         * config/frv/frv-protos.h (frv_function_arg): Delete.
6096         (frv_function_arg_advance): Delete.
6097         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6098         * config/frv/frv.c (frv_function_arg): Rename to...
6099         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
6100         (frv_function_arg, frv_function_incoming_arg): New functions.
6101         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
6102         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6103         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6104
6105 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
6106
6107         PR target/46153
6108         * config/i386/sse.md (sse_movhlps_exp): Use destination
6109         returned from ix86_fixup_binary_operands to expand insn.
6110         (sse_movlhps_exp): Ditto.
6111         (sse_loadhps_exp): Ditto.
6112         (sse_loadlps_exp): Ditto.
6113         (sse2_loadhpd_exp): Ditto.
6114         (sse2_loadlpd_exp): Ditto.
6115
6116 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
6117
6118         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
6119         constants in thumb2.
6120
6121 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
6122
6123         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
6124         arithmetics in masking operations.
6125         (contains_muldiv): Likewise.
6126         (try_combine): Likewise.
6127         (find_split_point): Likewise.
6128         (combine_simplify_rtx): Likewise.
6129         (simplify_if_then_else): Likewise.
6130         (simplify_set): Likewise.
6131         (expand_compound_operation): Likewise.
6132         (expand_field_assignment): Likewise.
6133         (make_extraction): Likewise.
6134         (extract_left_shift): Likewise.
6135         (make_compound_operation): Likewise.
6136         (force_to_mode): Likewise.
6137         (make_field_assignment): Likewise.
6138         (reg_nonzero_bits_for_combine): Likewise.
6139         (simplify_shift_const_1): Likewise.
6140         (simplify_comparison): Likewise.
6141
6142 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
6143
6144         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
6145         (ia64_function_arg_advance): Delete.
6146         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6147         (FUNCTION_ARG_ADVANCE): Delete.
6148         * config/ia64/ia64.c (ia64_function_arg): Rename to...
6149         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
6150         bool arguments.
6151         (ia64_function_arg, ia64_function_incoming_arg): New functions.
6152         (ia64_function_arg_advance): Make static.  Take a const_tree and
6153         a bool.
6154         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6155         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6156
6157 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
6158
6159         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
6160         (TARGET_GET_RAW_ARG_MODE): New.
6161         * doc/tm.texi: Regenerate.
6162         * target.def (get_raw_result_mode): New.
6163         (get_raw_arg_mode): New.
6164         * targhooks.c (default_get_reg_raw_mode): New.
6165         * targhooks.h (default_get_reg_raw_mode): New.
6166         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
6167         (apply_result_size): Ditto.
6168         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
6169         (TARGET_GET_RAW_RESULT_MODE): Define.
6170         (TARGET_GET_RAW_ARG_MODE): Ditto.
6171
6172 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6173
6174         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
6175         for newer Solaris 10 release.
6176         (sparc_fallback_frame_state): Likewise.
6177
6178 2010-10-27  Jason Merrill  <jason@redhat.com>
6179
6180         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
6181         variables sooner.
6182
6183 2010-10-27  Jie Zhang  <jie@codesourcery.com>
6184             Maxim Kuvyrkov  <maxim@codesourcery.com>
6185
6186         * haifa-sched.c (ISSUE_POINTS): Remove.
6187         (max_issue): Don't issue more than issue_rate instructions.
6188
6189 2010-10-27  Ian Lance Taylor  <iant@google.com>
6190
6191         PR target/46197
6192         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
6193         (split_stack_return): Replace UNSPEC_STACK_CHECK with
6194         UNSPECV_SPLIT_STACK_RETURN.
6195
6196 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6197
6198         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
6199
6200         * config/i386/i386.c (block_info): New.
6201         (BLOCK_INFO): Likewise.
6202         (call_avx256_state): Likewise.
6203         (check_avx256_stores): Likewise.
6204         (move_or_delete_vzeroupper_2): Likewise.
6205         (move_or_delete_vzeroupper_1): Likewise.
6206         (move_or_delete_vzeroupper): Likewise.
6207         (use_avx256_p): Likewise.
6208         (function_pass_avx256_p): Likewise.
6209         (flag_opts): Add -mvzeroupper.
6210         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
6211         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
6212         is disabled.
6213         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
6214         generate vzeroupper.
6215         (init_cumulative_args): Add an int to indicate caller.  Set
6216         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
6217         based on return type.
6218         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
6219         caller_pass_avx256_p based on argument type.
6220         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
6221         is used, but not returned by caller.
6222         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
6223         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
6224         is used.
6225         (ix86_minimum_alignment): Likewise.
6226         (ix86_expand_special_args_builtin): Set target to
6227         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
6228         (ix86_reorg): Run the vzeroupper optimization if needed.
6229
6230         * config/i386/i386.h (ix86_args): Add caller.
6231         (INIT_CUMULATIVE_ARGS): Updated.
6232         (machine_function): Add use_vzeroupper_p, use_avx256_p,
6233         caller_pass_avx256_p, caller_return_avx256_p,
6234         callee_pass_avx256_p and callee_return_avx256_p.
6235
6236         * config/i386/i386.opt (-mvzeroupper): New.
6237
6238         * config/i386/predicates.md (vzeroupper_operation): Removed.
6239
6240         * config/i386/sse.md (avx_vzeroupper): Removed.
6241         (*avx_vzeroupper): Removed.
6242         (avx_vzeroupper): New.
6243
6244         * doc/invoke.texi: Document -mvzeroupper.
6245
6246 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6247
6248         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
6249         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
6250         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6251
6252 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6253             Olivier Hainque  <hainque@adacore.com>
6254
6255         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
6256         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
6257         fs->signal_frame instead.
6258
6259 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6260
6261         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
6262         parsing of RID_COPIES and RID_IVAR.
6263
6264 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6265
6266         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
6267         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
6268         Do not use objc_set_property_attr, but use local variables
6269         instead.  Detect repeated usage of setter, getter and ivar
6270         attributes.  Improved error processing when a setter name does not
6271         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
6272         that the token is a keyword.  Updated call to
6273         objc_add_property_declaration.
6274
6275 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6276
6277         * c-parser.c (c_parser_objc_at_property): Renamed to
6278         c_parser_objc_at_property_declaration.  Updated calls to
6279         objc_add_property_variable, now objc_add_property_declaration.
6280         Code rewritten to be much more robust in recovering from syntax
6281         errors.  Added comments.
6282         (c_parser_objc_property_attrlist): Removed.
6283         (c_parser_external_declaration): Updated calls to
6284         c_parser_objc_at_property, now
6285         c_parser_objc_at_property_declaration.
6286         (c_parser_objc_methodprotolist): Same change.
6287
6288 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6289
6290         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
6291
6292 2010-10-26  Jan Hubicka  <jh@suse.cz>
6293
6294         * ipa.c (process_references): Enqueue all referenced nodes;
6295         mark as reachable only non-external nodes.
6296         (cgraph_remove_unreachable_nodes): All referenced nodes should
6297         be enqueued; remove bogues node->needed check.
6298
6299 2010-10-26  Jan Hubicka  <jh@suse.cz>
6300
6301         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
6302         to represent OMP.
6303
6304 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6305
6306         * config/i386/i386.md (split_stack_return): Replace
6307         unspec_volatile with unspec.
6308
6309 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
6310
6311         * doc/install.texi: Fix typo in --with-sysroot description.
6312
6313 2010-10-26  Jan Hubicka  <jh@suse.cz>
6314
6315         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6316         Use info provided by linker plugin.
6317
6318 2010-10-26  Jason Merrill  <jason@redhat.com>
6319
6320         * varasm.c (constructor_static_from_elts_p): Don't require a
6321         CONSTRUCTOR to have elements to be suitable for static
6322         initialization.  Allow ARRAY_TYPE as well.
6323
6324 2010-10-26  Jan Hubicka  <jh@suse.cz>
6325
6326         PR middle-end/45736
6327         * cgraph.c (cgraph_set_readonly_flag): Rename to...
6328         (cgraph_set_const_flags) ... this one; get also looping argument;
6329         clear constructor/destructor flags.
6330         (cgraph_set_pure_flag): Likewise.
6331         (cgraph_set_looping_const_or_pure_flag): Remove.
6332         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
6333         to optimize away static ctors/dtors; it does not work on inline clones;
6334         external functions can always be rmeoved.
6335         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
6336         inline clones; in LTO external functions always can go.
6337         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
6338         (cgraph_mark_address_taken_node): Assert that we are not taking
6339         address of inline clone.
6340         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
6341         external functions.
6342         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
6343         address taken.
6344         (ipcp_initialize_node_lattices): Only local functions can be
6345         handled without cloning.
6346         * cgraph.h (cgraph_set_readonly_flag,
6347         cgraph_set_looping_const_or_pure_flag): Remove.
6348         (cgraph_set_const_flag): Declare.
6349         (cgraph_set_pure_flag): Update.
6350         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
6351         flags setting code.
6352         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
6353         look at inline clones; fix handling of external definitions.
6354         (cgraph_postorder): Do not look at inline clones in the first pass.
6355         (function_and_variable_visibility): Drop constructors/destructor
6356         flags at pure and const functions.
6357         * tree-profile.c (tree_profiling): Update.
6358         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
6359         address taken; external functions do not account to whole program size.
6360         (cgraph_decide_inlining): Likewise; do not try to inline
6361         functions already inlined.
6362
6363 2010-10-26  Jie Zhang  <jie@codesourcery.com>
6364
6365         * doc/invoke.texi: Improve documentation of
6366         -fstrict-volatile-bitfields.
6367
6368 2010-10-26  Ira Rosen  <irar@il.ibm.com>
6369
6370         PR tree-optimization/46167
6371         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
6372         is basic block for the statement.
6373
6374 2010-10-26  Paul Koning  <ni1d@arrl.net>
6375
6376         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
6377         current definition of struct_real_format.
6378
6379 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6380
6381         PR target/44948
6382         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
6383         (ix86_function_arg_boundary): Always align parameters on stack
6384         in 64bit and align parameters with alignment >= 16byte on stack
6385         in 32bit.  Warn alignment change.
6386
6387 2010-10-26  Ian Lance Taylor  <iant@google.com>
6388
6389         PR middle-end/45687
6390         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
6391         offset.
6392
6393 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
6394
6395         Implement opaque-enum-specifiesr for C++0x
6396         * tree.h (ENUM_IS_OPAQUE): New.
6397         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
6398
6399 2010-10-26  Jie Zhang  <jie@codesourcery.com>
6400
6401         * stor-layout.c (layout_decl): Use the field's type to
6402         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
6403         * config/arm/arm.c (arm_override_options): Default to
6404         -fstrict-volatile-bitfields.
6405
6406 2010-10-25  Paul Koning  <ni1d@arrl.net>
6407
6408         * config/pdp11/pdp11.md: Add define_constants for register
6409         numbers, branch offset limits.
6410         * config/pdp11/pdp11.c: Use named constants instead of numbers.
6411         * config/pdp11.pdp11.h: Ditto.
6412
6413 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6414
6415         * configure.ac: Use $cpu_type instead of $target to define the nop.
6416         * configure: Regenerate.
6417
6418 2010-10-25  Jie Zhang  <jie@codesourcery.com>
6419
6420         * combine.c (try_combine): If insns need to be kept around, check that
6421         they can be copied in the merged instruction.
6422
6423 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6424
6425         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
6426         has been modified.
6427         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
6428         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
6429         it has been modified.
6430
6431 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6432
6433         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
6434
6435 2010-10-24  Paul Koning  <ni1d@arrl.net>
6436
6437         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
6438         * config/pdp11/pdp11.c (output_jump): Ditto.
6439
6440 2010-10-24  Ian Lance Taylor  <iant@google.com>
6441
6442         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
6443
6444 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6445
6446         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
6447         least one insn with a locus corresponding to an edge's goto_locus,
6448         disregard non-fallthru edges to the exit block and merge the blocks
6449         created for the same goto_locus.
6450
6451 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
6452
6453         * gcc.c (n_switches_alloc_debug_check): New.
6454         (set_option_handlers): New.
6455         (process_command): Use set_option_handlers.
6456         (do_self_spec): Pass spec-generated options through option handlers.
6457         (main): Also save and restore n_switches_alloc when swapping
6458         switch arrays.
6459
6460 2010-10-23  Richard Henderson  <rth@redhat.com>
6461
6462         PR target/46144
6463         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
6464         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
6465         Honor matching operands when splitting to XOR.
6466
6467 2010-10-23  Ian Lance Taylor  <iant@google.com>
6468
6469         * tree-vrp.c (extract_range_from_binary_expr): If
6470         flag_non_call_exceptions don't eliminate division by zero.
6471         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6472
6473 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
6474
6475         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
6476         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
6477         __ORDER_PDP_ENDIAN__.
6478         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6479         (struct DWstruct): Define based on __BYTE_ORDER__.
6480         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6481         (struct INTstruct): Define based on __BYTE_ORDER__.
6482         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6483         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
6484         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
6485         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6486         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6487         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6488         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6489         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6490         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6491         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6492         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6493         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6494         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6495         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6496         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6497         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6498         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6499         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6500         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6501         * doc/tm.texi: Regenerate.
6502         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
6503         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
6504
6505 2010-10-23  Jie Zhang  <jie@codesourcery.com>
6506
6507         PR rtl-optimization/37360
6508         * config/mips/mips.c (cached_can_issue_more): New local variable.
6509         (mips_sched_reorder_1): New.
6510         (mips_sched_reorder): Use mips_sched_reorder_1.
6511         (mips_sched_reorder2): New.
6512         (mips_variable_issue): Set cached_can_issue_more.
6513         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
6514         instead of mips_sched_reorder.
6515
6516         Revert:
6517         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
6518         PR rtl-optimization/37360
6519         * haifa-sched.c (max_issue): Do not assert that we never issue more
6520         insns than issue_rate.  Add comment.
6521
6522 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
6523
6524         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
6525         location info of the expression.
6526
6527 2010-10-22  DJ Delorie  <dj@redhat.com>
6528
6529         * doc/extend.texi (Named Address Spaces): Document the M32C named
6530         address space.
6531
6532         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
6533         __far address space.
6534         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
6535         "__far" address space for R8C and M16C processor variants.
6536         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
6537         (far_addr_space_p): New.
6538         (encode_pattern_1): Add sign and zero extend support.
6539         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
6540         (m32c_extra_constraint_p2): Add SF constraint.
6541         (m32c_legitimate_address_p): Support __far addresses.
6542         (m32c_addr_space_pointer_mode): New.
6543         (m32c_addr_space_address_mode): New.
6544         (m32c_addr_space_legitimate_address_p): New.
6545         (m32c_addr_space_legitimize_address): New.
6546         (m32c_addr_space_subset_p): New.
6547         (m32c_addr_space_convert): New.
6548         (conversions): Add __far operand patterns.
6549         (m32c_prepare_move): Force constants into registers for __far moves.
6550         (m32c_split_move): __far moves are always split.
6551         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
6552         * config/m32c/mov.md (mov<mode>_far_op1): New.
6553         (mov<mode>_far_op2): New.
6554         (movqi_op): Add __far (SF) support.
6555         (movhi_op): Likewise.
6556         (movsi_splittable): Split A1A0 also.
6557
6558 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
6559             Andrew Pinski  <pinskia@gmail.com>
6560
6561         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
6562         * doc/extend.texi: New paragraph
6563
6564 2010-10-22  Paul Koning  <ni1d@arrl.net>
6565
6566         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
6567
6568 2010-10-22  DJ Delorie  <dj@redhat.com>
6569
6570         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
6571
6572 2010-10-22  Paul Koning  <ni1d@arrl.net>
6573
6574         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
6575
6576 2010-10-22  Richard Henderson  <rth@redhat.com>
6577
6578         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
6579         cases for __builtin_fma and __builtin_fmaf.
6580
6581 2010-10-22  Richard Henderson  <rth@redhat.com>
6582
6583         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
6584         NEG+USE for vectors as well.
6585         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
6586         and splitter.
6587
6588 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6589
6590         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
6591         SWITCH_CURTAILS_COMPILATION): Remove.
6592         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
6593         * doc/tm.texi: Regenerate.
6594         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
6595
6596 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
6597
6598         * config/i386/bdver1.md: New file.
6599         * config/i386/i386.md (include "bdver1.md"): Invoke the
6600         pipeline description for bdver1.
6601         (x86_sahf_1): Add "bdver1_decode" attribute.
6602         (*cmpfp_i_mixed): Likewise.
6603         (*cmpfp_i_sse): Likewise.
6604         (*cmpfp_i_i387): Likewise.
6605         (*cmpfp_iu_mixed): Likewise.
6606         (*cmpfp_iu_sse): Likewise.
6607         (*cmpfp_iu_387): Likewise.
6608         (*swap<mode>,*swap<mode>_1): Likewise.
6609         (fixuns_trunc<mode>hi2): Likewise.
6610         (fix_trunc<mode>si_sse): Likewise.
6611         (x86_fnstcw_1): Likewise.
6612         (x86_fldcw_1): Likewise.
6613         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
6614         (*floatsi<mode>2_vector_mixed): Likewise.
6615         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
6616         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
6617         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
6618         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
6619         (*floatsi<mode>2_vector_sse): Likewise.
6620         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
6621         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
6622         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
6623         (*mul<mode>3_1): Likewise.
6624         (*mulsi3_1_zext): Likewise.
6625         (*mulhi3_1): Likewise.
6626         (*mulqi3_1): Likewise.
6627         (*<u>mul<mode><dwi>3_1): Likewise.
6628         (*<u>mulqihi3_1): Likewise.
6629         (*<s>muldi3_highpart_1): Likewise.
6630         (*<s>mulsi3_highpart_1): Likewise.
6631         (*<s>mulsi3_highpart_zext): Likewise.
6632         (x86_64_shld): Likewise.
6633         (x86_shld): Likewise.
6634         (x86_64_shrd): Likewise.
6635         (x86_shrd): Likewise.
6636         (sqrtxf2): Likewise.
6637         (sqrt_extend<mode>xf2_i387): Likewise.
6638         (*sqrt<mode>2_sse): Likewise.
6639         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
6640         (sse_cvtsi2ssq): Likewise.
6641         (sse_cvtss2si): Likewise.
6642         (sse_cvtss2si_2): Likewise.
6643         (sse_cvtss2siq): Likewise.
6644         (sse_cvtss2siq_2): Likewise.
6645         (sse_cvttss2si): Likewise.
6646         (sse_cvttss2siq): Likewise.
6647         (sse2_cvtpi2pd): Likewise.
6648         (sse2_cvttpd2pi): Likewise.
6649         (sse2_cvtsi2sd): Likewise.
6650         (sse2_cvtsi2sdq): Likewise.
6651         (sse2_cvtsd2si): Likewise.
6652         (sse2_cvtsd2si_2): Likewise.
6653         (sse2_cvtsd2siq): Likewise.
6654         (sse2_cvtsd2siq_2): Likewise.
6655         (sse2_cvttsd2si): Likewise.
6656         (sse2_cvttsd2siq): Likewise.
6657         (*sse2_cvtpd2dq): Likewise.
6658         (*sse2_cvttpd2dq): Likewise.
6659         (sse2_cvtsd2ss): Likewise.
6660         (sse2_cvtss2sd): Likewise.
6661         (*sse2_cvtpd2ps): Likewise.
6662         (sse2_cvtps2pd): Likewise.
6663
6664 2010-10-22  Richard Guenther  <rguenther@suse.de>
6665
6666         PR middle-end/46137
6667         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
6668         remove the virtual operands if they are not needed.
6669
6670 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
6671
6672         * config/i386/i386.c (processor_costs bdver1_cost): Update
6673         insn costs and architectural parameters for bdver1.
6674
6675 2010-10-22  Richard Guenther  <rguenther@suse.de>
6676
6677         * gimple.h (gimple_register_canonical_type): Declare.
6678         * gimple.c (gimple_canonical_types): New global hashtable.
6679         (struct gimple_type_leader_entry_s): New type.
6680         (gimple_type_leader): New global cache.
6681         (gimple_lookup_type_leader): New function.
6682         (gtc_visit): Query the proper cache.
6683         (gimple_types_compatible_p): Likewise.
6684         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
6685         (gimple_canonical_type_eq): New function.
6686         (gimple_register_canonical_type): Likewise.
6687         (print_gimple_types_stats): Adjust for gimple_canonical_types.
6688         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
6689         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
6690         gimple_types_compatible_p for LTO.
6691
6692 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
6693
6694         PR target/46098
6695         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6696         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6697         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6698         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6699         (<sse>_movu<ssemodesuffix>): New expander.
6700         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6701         (avx_movdqu<avxmodesuffix>): New expander.
6702         (*sse2_movdqu): Rename from sse2_movdqu.
6703         (sse2_movdqu): New expander.
6704
6705 2010-10-22  Richard Guenther  <rguenther@suse.de>
6706
6707         PR tree-optimization/45720
6708         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
6709         Handle negative step.
6710         (vect_enhance_data_refs_alignment): Likewise.
6711         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
6712         (vect_create_cond_for_align_checks): Likewise.
6713         (vect_create_cond_for_alias_checks): Likewise.
6714
6715 2010-10-22  Ira Rosen  <irar@il.ibm.com>
6716
6717         PR tree-optimization/46126
6718         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
6719         vectorizable_shift in case of basic block vectorization.
6720
6721 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6722
6723         * target.h (enum opt_levels, struct default_options): New.
6724         * target.def (handle_ofast): Remove hook.
6725         (target_option.optimization): Change to
6726         target_option.optimization_table.
6727         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
6728         TARGET_OPTION_OPTIMIZATION_TABLE.
6729         (CAN_DEBUG_WITHOUT_FP): Remove.
6730         * doc/tm.texi: Regenerate.
6731         * opts.c (maybe_default_option, maybe_default_options,
6732         default_options_table): New.
6733         (default_options_optimization): Take extra parameters.  Don't
6734         assert that global_options and global_options_set are in use.  Use
6735         maybe_default_options.
6736         (decode_options): Pass extra parameters to
6737         default_options_optimization.
6738         * common.opt (falign-loops): Use value 0 with Var.
6739         (frerun-cse-after-loop, ftree-ter): Remove Init.
6740         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
6741         TARGET_OPTION_OPTIMIZATION): Remove.
6742         * targhooks.c (empty_optimization_table): New.
6743         * targhooks.h (empty_optimization_table): Declare.
6744         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
6745         * config/alpha/alpha.c (alpha_option_optimization_table,
6746         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6747         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
6748         * config/arm/arm.c (arm_option_optimization: Change to
6749         arm_option_optimization_table.
6750         (TARGET_OPTION_OPTIMIZATION): Change to
6751         TARGET_OPTION_OPTIMIZATION_TABLE.
6752         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
6753         * config/avr/avr.c (avr_option_optimization_table,
6754         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6755         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
6756         * config/cris/cris.c (cris_option_optimization): Change to
6757         cris_option_optimization_table.
6758         (TARGET_OPTION_OPTIMIZATION): Change to
6759         TARGET_OPTION_OPTIMIZATION_TABLE.
6760         * config/crx/crx.c (crx_option_optimization): Change to
6761         crx_option_optimization_table.
6762         (TARGET_OPTION_OPTIMIZATION): Change to
6763         TARGET_OPTION_OPTIMIZATION_TABLE.
6764         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6765         * config/fr30/fr30.c (fr30_option_optimization_table,
6766         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6767         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
6768         * config/frv/frv.c (frv_option_optimization_table,
6769         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6770         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
6771         * config/h8300/h8300.c (h8300_option_optimization): Change to
6772         h8300_option_optimization_table.
6773         (TARGET_OPTION_OPTIMIZATION): Change to
6774         TARGET_OPTION_OPTIMIZATION_TABLE.
6775         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6776         * config/i386/i386.c (ix86_option_optimization): Change to
6777         ix86_option_optimization_table.
6778         (TARGET_OPTION_OPTIMIZATION): Change to
6779         TARGET_OPTION_OPTIMIZATION_TABLE.
6780         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6781         as initializer.
6782         * config/ia64/ia64.c (ia64_option_optimization): Change to
6783         ia64_option_optimization_table.
6784         (TARGET_OPTION_OPTIMIZATION): Change to
6785         TARGET_OPTION_OPTIMIZATION_TABLE.
6786         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
6787         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
6788         initializer.
6789         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6790         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6791         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6792         * config/lm32/lm32.c (lm32_option_optimization_table,
6793         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6794         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
6795         * config/m32r/m32r.c (m32r_option_optimization): Change to
6796         m32r_option_optimization_table.
6797         (TARGET_OPTION_OPTIMIZATION): Change to
6798         TARGET_OPTION_OPTIMIZATION_TABLE.
6799         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
6800         CAN_DEBUG_WITHOUT_FP): Remove.
6801         * config/mcore/mcore.c (mcore_option_optimization): Change to
6802         mcore_option_optimization_table.
6803         (TARGET_OPTION_OPTIMIZATION): Change to
6804         TARGET_OPTION_OPTIMIZATION_TABLE.
6805         * config/mep/mep.c (mep_option_optimization): Change to
6806         mep_option_optimization_table.
6807         (TARGET_OPTION_OPTIMIZATION): Change to
6808         TARGET_OPTION_OPTIMIZATION_TABLE.
6809         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
6810         * config/microblaze/microblaze.c
6811         (microblaze_option_optimization_table,
6812         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6813         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
6814         * config/mips/mips.c (mips_option_optimization_table,
6815         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6816         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
6817         * config/mmix/mmix.c (mmix_option_optimization): Change to
6818         mmix_option_optimization_table.
6819         (TARGET_OPTION_OPTIMIZATION): Change to
6820         TARGET_OPTION_OPTIMIZATION_TABLE.
6821         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
6822         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6823         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6824         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6825         * config/pa/pa.c (pa_option_optimization_table,
6826         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6827         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6828         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
6829         pdp11_option_optimization_table.
6830         (TARGET_OPTION_OPTIMIZATION): Change to
6831         TARGET_OPTION_OPTIMIZATION_TABLE.
6832         * config/picochip/picochip.c (picochip_option_optimization_table,
6833         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6834         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
6835         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
6836         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6837         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6838         * config/rx/rx.c (rx_option_optimization_table,
6839         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6840         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6841         * config/s390/s390.c (s390_option_optimization): Change to
6842         s390_option_optimization_table.
6843         (s390_option_override): Update comment.
6844         (TARGET_OPTION_OPTIMIZATION): Change to
6845         TARGET_OPTION_OPTIMIZATION_TABLE.
6846         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
6847         * config/score/score.c (score_option_optimization_table,
6848         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6849         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
6850         * config/sh/sh.c (sh_option_optimization): Change to
6851         sh_option_optimization_table.
6852         (TARGET_OPTION_OPTIMIZATION): Change to
6853         TARGET_OPTION_OPTIMIZATION_TABLE.
6854         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
6855         (sh_option_override, expand_block_move, multcosts, find_barrier,
6856         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
6857         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
6858         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
6859         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
6860         instead of TARGET_SMALLCODE.
6861         * config/sh/sh.opt (mspace): Make into an alias for -Os.
6862         * config/sparc/sparc.c (sparc_option_optimization_table,
6863         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6864         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
6865         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6866         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6867         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
6868         * config/v850/v850.c (v850_option_optimization): Change to
6869         v850_option_optimization_table.
6870         (TARGET_OPTION_OPTIMIZATION): Change to
6871         TARGET_OPTION_OPTIMIZATION_TABLE.
6872         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
6873         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
6874         xtensa_option_optimization_table.
6875         (TARGET_OPTION_OPTIMIZATION): Change to
6876         TARGET_OPTION_OPTIMIZATION_TABLE.
6877         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6878
6879 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
6880
6881         Based on the CFString implementation in FSF apple/trunk branch.
6882
6883         * target.def (objc_construct_string): New Hook.
6884         * doc/tm.texi (objc_construct_string): Document.
6885         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
6886         * config/t-darwin: Amend build rules for darwin.o.
6887         * config/darwin.opt: Add cfstrings flags.
6888         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
6889         (darwin_objc_construct_string): New.
6890         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
6891         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
6892         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
6893         (darwin_fold_builtin): Likewise.
6894         (darwin_build_constant_cfstring): Likewise.
6895         (darwin_objc_construct_string): Likewise.
6896         (darwin_cfstring_p): Likewise.
6897         (darwin_enter_string_into_cfstring_table): Likewise.
6898         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
6899         * config/darwin.c (darwin_running_cxx): New var.
6900         (machopic_select_section): Return cfstring_constant_object_section.
6901         (darwin_override_options): Set darwin_running_cxx.
6902         (add_builtin_field_decl): New.
6903         (darwin_init_cfstring_builtins): New.
6904         (darwin_build_constant_cfstring): New.
6905         (darwin_fold_builtin): New.
6906         (cfstring_hash): New.
6907         (cfstring_eq): New.
6908         (darwin_enter_string_into_cfstring_table): New.
6909         * config/darwin-sections.def (cfstring_constant_object_section): New.
6910         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
6911         (TARGET_OBJC_CONSTRUCT_STRING): Define.
6912
6913 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6914
6915         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
6916         TYPE_STUB_DECL instead of TREE_CHAIN.
6917         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
6918         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
6919         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
6920         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
6921         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
6922         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
6923         Likewise.
6924         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
6925
6926 2010-10-22  Jie Zhang  <jie@codesourcery.com>
6927
6928         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
6929         (copy_blkmode_from_reg): Likewise.
6930         (read_complex_part): Likewise.
6931         (expand_expr_real_1): Calculate packedp and pass it to
6932         extract_bit_field.
6933         * expr.h (extract_bit_field): Update declaration.
6934         * calls.c (store_unaligned_arguments_into_pseudos): Update call
6935         to extract_bit_field.
6936         * expmed.c (extract_fixed_bit_field): Update calls to
6937         extract_fixed_bit_field.
6938         (store_split_bit_field): Likewise.
6939         (extract_bit_field_1): Add new argument packedp.
6940         (extract_bit_field): Add new argument packedp.
6941         (extract_fixed_bit_field): Add new argument packedp and let
6942         packed attribute override volatile.
6943         * stmt.c (expand_return): Update call to extract_bit_field.
6944
6945 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6946
6947         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
6948
6949 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6950
6951         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
6952         of gcc_checking_assert.
6953         * sel-sched.c (code_motion_process_successors): Likewise.
6954
6955 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6956
6957         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
6958         when stopping because of a different locus on edge or insn.
6959         (try_optimize_cfg): Add comment.
6960         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
6961         block is a forwarder block, propagate locus on the edge.
6962         (cfg_layout_merge_blocks): Likewise.
6963
6964 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
6965
6966         PR target/45946
6967         * config/i386/i386.md (*pushti2): New insn pattern.
6968         (pushti2 splitter): New insn splitter.
6969         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
6970         DWI mode iterator.
6971
6972 2010-10-21  Paul Koning  <ni1d@arrl.net>
6973
6974         * config/pdp11/pdp11-protos.md (arith_operand,
6975         const_immediate_operand, expand_shift_operand,
6976         immediate15_operand): Delete
6977         * config/pdp11/pdp11.c: Ditto.
6978         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
6979         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
6980         EXTRA_CONSTRAINT): Delete.
6981         * config/pdp11/pdp11.md (various): Use standard constraints
6982         instead of removed ones.
6983         * config/pdp11/constraints.md: New file.
6984         * config/pdp11/predicates.md: New file.
6985
6986 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
6987
6988         PR c/45834
6989         * alias.c (true_dependence_1): Remove obsolete check for QImode.
6990         (may_alias_p): Ditto.
6991
6992 2010-10-21  Martin Jambor  <mjambor@suse.cz>
6993
6994         PR tree-optimization/45875
6995         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
6996
6997 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6998
6999         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
7000         variables.
7001         (create_new_def_for): Likewise.
7002
7003 2010-10-21  Nick Clifton  <nickc@redhat.com>
7004
7005         * config/mn10300/mn10300.c: Fold code to 80-character width.
7006         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7007         MEM, CONST_INT and CONST_DOUBLE.
7008         (targetm): Move initialization to end of file.
7009         (print_operand): Rename to mn10300_print_operand.
7010         (print_operand_address): Rename to mn10300_print_operand_address.
7011         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
7012         (expand_prologue): Rename to mn10300_expand_prologue.
7013         (expand_epilogue): Rename to mn10300_expand_epilogue.
7014         (initial_offset): Rename to mn10300_initial_offset.
7015         (function_arg): Rename to mn10300_function_arg.
7016         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
7017         (symbolic_operand): Rename to mn10300_symbolic_operand.
7018         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
7019         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
7020         * config/mn10300/mn10300-protos.h: Update prototypes.
7021         * config/mn10300/mn10300.h: Fold code to 80-character width.
7022         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7023         MEM, CONST_INT and CONST_DOUBLE.
7024         (CPP_SPEC): Move to...
7025         (TARGET_CPU_CPP_BUILTINS): ... here.
7026         * config/mn10300/mn10300.md: Fold code to 80-character width.
7027         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7028         MEM, CONST_INT and CONST_DOUBLE.
7029
7030 2010-10-21  Ira Rosen  <irar@il.ibm.com>
7031
7032         PR tree-optimization/46049
7033         PR tree-optimization/46052
7034         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
7035         (vect_get_slp_defs): Add arguments.
7036         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
7037         operands to vect_get_slp_defs.
7038         (vectorizable_reduction): Fix comment, pass scalar operands to
7039         vect_get_slp_defs.
7040         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
7041         type to determine number of units in the created vector.
7042         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
7043         (vectorizable_conversion): Fix comment.
7044         (vectorizable_shift): New function.
7045         (vectorizable_operation): Move code that handles shifts to
7046         vectorizable_shift.
7047         (vectorizable_type_demotion): Fix comment, pass scalar operands to
7048         vect_get_slp_defs.
7049         (vectorizable_type_promotion, vectorizable_store): Likewise.
7050         (vectorizable_condition): Fix comment.
7051         (vect_analyze_stmt): Call vectorizable_shift.
7052         (vect_transform_stmt): Likewise.
7053         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
7054         Use it as the operand to create vectors for, except reduction
7055         initial definition and store.  Use operands type.
7056         (vect_get_slp_defs): Add new arguments.  Pass them to
7057          vect_get_constant_vectors.
7058
7059 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7060
7061         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
7062         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
7063         * cfghooks.c (fixup_reorder_chain): Likewise.
7064         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
7065         * cgraph.c (cgraph_add_thunk): Likewise.
7066         (cgraph_create_edge_1): Likewise.
7067         (cgraph_create_virtual_clone): Likewise.
7068         * ddg.c (add_cross_iteration_register_deps): Likewise.
7069         * dwarf2out.c (modified_type_die): Likewise.
7070         * emit-rtl.c (set_mem_alias_set): Likewise.
7071         * ggc-zone.c (zone_allocate_marks): Likewise.
7072         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
7073         * gimple.c (iterative_hash_gimple_type): Likewise.
7074         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
7075         (create_single_exit_edge): Likewise.
7076         * haifa-sched.c (choose_ready): Likewise.
7077         * lto-streamer-in.c (input_gimple_stmt): Likewise.
7078         * passes.c (execute_todo): Likewise.
7079         * sched-ebb.c (begin_schedule_ready): Likewise.
7080         * sel-sched.c (code_motion_process_successors): Likewise.
7081         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
7082         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
7083         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
7084         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
7085         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
7086         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
7087         (ssa_conflicts_add): Likewise.
7088         * tree-ssa-copy.c (replace_exp): Likewise.
7089         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
7090         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
7091         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7092         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
7093         (compute_antic): Likewise.
7094         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
7095         (add_dependence): Likewise.
7096         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
7097         * tree-vrp.c (supports_overflow_infinity): Likewise.
7098         (make_overflow_infinity, negative_overflow_infinity): Likewise.
7099         (avoid_overflow_infinity, register_new_assert_for): Likewise.
7100         (process_assert_insertions_for): Likewise.
7101         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
7102         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
7103         (intersect_loc_chains, variable_merge_over_cur): Likewise.
7104
7105 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7106
7107         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
7108         * reload1.c (has_nonexceptional_receiver): Likewise.
7109         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
7110         (create_new_def_for): Likewise.
7111         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7112         (merge_phi_nodes): Likewise.
7113         (has_abnormal_incoming_edge_p): Delete.
7114
7115 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7116
7117         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
7118
7119 2010-10-21  Richard Guenther  <rguenther@suse.de>
7120             Michael Matz  <matz@suse.de>
7121
7122         PR tree-optimization/45764
7123         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7124         Adjust initial misalignment for negative DR_STEP.
7125         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
7126         do not have the same alignment over the whole iteration domain.
7127
7128 2010-10-21  Richard Guenther  <rguenther@suse.de>
7129
7130         PR tree-optimization/46111
7131         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
7132
7133 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7134
7135         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
7136
7137 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7138
7139         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
7140         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
7141
7142 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7143
7144         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
7145         signal_frame.
7146         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
7147
7148 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7149
7150         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
7151         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
7152
7153 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
7154
7155         * basic-block.h (find_fallthru_edge): Define.
7156         * cfgcleanup.c (merge_blocks_move): Use it.
7157         (try_crossjump_bb): Likewise.
7158         * cfglayout.c (fixup_reorder_chains): Likewise.
7159         (fixup_fallthru_exit_predecessor): Likewise.
7160         * cfgrtl.c (rtl_split_edge): Likewise.
7161         (rtl_verify_flow_info): Likewise.
7162         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7163         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
7164         * ifcvt.c (block_fallthru): Likewise.
7165         * reload1.c (fixup_abnormal_edges): Likewise.
7166         * sched-ebb.c (being_schedule_ready): Likewise.
7167         (schedule_ebb): Likwise.
7168         * sched-rgn.c (find_single_block_region): Likewise.
7169         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
7170         * tree-complex.c (expand_complex_move): Likewise.
7171         * sched-int.h (find_fallthru_edge): Rename to...
7172         (find_fallthru_edge_from): ...this.
7173         * haifa-sched.c (find_fallthru_edge): Rename to...
7174         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
7175         (init_before_recovery): Call find_fallthru_edge_from.
7176         * sel-sched-ir.c (merge_fences): Likewise.
7177         * sel-sched.c (in_fallthru_bb_p): Likewise.
7178         (move_cond_jump): Likewise.
7179
7180 2010-10-20  Paul Koning  <ni1d@arrl.net>
7181
7182         * config/pdp11/pdp11.md (various): Fix conditions on a number of
7183         insn to check for target 11/40 or higher.
7184
7185 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7186
7187         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
7188         bool instead of a tree.
7189         (c_parser_objc_method_decl): Added bool argument.  Updated call to
7190         objc_build_method_signature.
7191         (c_parser_objc_method_definition): Do not call
7192         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
7193         c_parser_objc_method_decl and objc_start_method_definition.
7194         (c_parser_objc_methodproto): Do not call objc_set_method_type.
7195         Updated calls to c_parser_objc_method_type,
7196         c_parser_objc_method_decl and objc_add_method_declaration.
7197
7198 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
7199
7200         PR tree-optimization/45919
7201         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
7202         array members.
7203
7204         PR tree-optimization/46066
7205         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
7206         instead of gsi_last_bb.
7207
7208 2010-10-20  DJ Delorie  <dj@redhat.com>
7209
7210         * config/m32c/m32c.c (m32c_option_override): Always disable
7211         function-cse in 16-bit mode.  Indirect calls are always worse than
7212         direct calls as there is no 16-bit indirect call opcode.
7213         (m32c_override_options_after_change): New, likewise.
7214
7215 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
7216
7217         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
7218         emitting the conditional move in the inner mode of the SUBREG.
7219
7220 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
7221
7222         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
7223         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
7224         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7225         (ia64_preferred_reload_class): Make static.  Change rclass argument
7226         and result types from enum reg_class to reg_class_t.
7227
7228 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
7229
7230         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
7231         call for single operand expression.
7232
7233 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7234
7235         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
7236         if there is a call statement to pure or const function in the block.
7237
7238 2010-10-20  Paul Koning  <pkoning@equallogic.com>
7239
7240         Fix several build errors for pdp11 target.
7241         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
7242         (cbranchdf4): Conditional on TARGET_FPU.
7243         (movdf): Ditto; correct alternatives check.
7244         (movmemhi): Fix predicate and constraint.
7245         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
7246
7247 2010-10-20  Richard Guenther  <rguenther@suse.de>
7248
7249         PR lto/45667
7250         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
7251         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
7252         (verify_gimple_assign_single): Disable ADDR_EXPR type check
7253         when in LTO.
7254
7255 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7256
7257         PR fortran/42169
7258         * ira-emit.c (store_can_be_removed_p): Return false instead of
7259         gcc_unreachable.
7260
7261 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
7262
7263         * fold-const.c (fold_binary_loc): New transformation.
7264
7265 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7266
7267         PR target/46085
7268         * config/i386/sse.md (reduc_splus_v8sf): Updated.
7269         (reduc_splus_v4df): Likewise.
7270
7271 2010-10-20  Richard Guenther  <rguenther@suse.de>
7272
7273         PR tree-optimization/45860
7274         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
7275         conditional store replacement for non-register type stores.
7276
7277 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7278
7279         * stor-layout.c (skip_simple_constant_arithmetic): New function.
7280         (self_referential_size): Use it instead of skip_simple_arithmetic.
7281
7282 2010-10-20  Olivier Hainque  <hainque@adacore.com>
7283
7284         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
7285         If the current function calls eh_return, claim live all registers
7286         that we need to check for liveness otherwise.
7287
7288 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7289
7290         * c-decl.c (c_write_global_declarations): Call
7291         objc_write_global_declarations when compiling Objective-C.
7292         * c-lang.c (finish_file): Removed.
7293
7294 2010-10-19  DJ Delorie  <dj@redhat.com>
7295
7296         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
7297         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
7298         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7299         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7300         * doc/tm.texi: Regenerate.
7301         * targhooks.h (default_label_align_after_barrier_max_skip,
7302         default_loop_align_max_skip, default_label_align_max_skip,
7303         default_jump_align_max_skip): Declare.
7304         * target.def (label_align_after_barrier_max_skip): New.
7305         (loop_align_max_skip): New.
7306         (label_align_max_skip): New.
7307         (jump_align_max_skip): New.
7308         * system.h (poison): Add those macros to the list.
7309         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
7310         (LOOP_ALIGN_MAX_SKIP): Remove.
7311         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
7312         (JUMP_ALIGN_MAX_SKIP): Remove.
7313         (default_label_align_after_barrier_max_skip): New.
7314         (default_loop_align_max_skip): New.
7315         (default_label_align_max_skip): New.
7316         (default_jump_align_max_skip): New.
7317         (compute_alignments): Use the new hooks.
7318         (shorten_branches): Likewise.
7319
7320 2010-10-19  Richard Henderson  <rth@redhat.com>
7321
7322         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
7323         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
7324         (fma4i_fmadd_<mode>): New.
7325         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
7326         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
7327         standard fma patterns.
7328         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
7329         enable for FMA.
7330         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7331         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7332         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
7333
7334 2010-10-19  Paul Koning  <pkoning@equallogic.com>
7335
7336         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
7337         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
7338
7339 2010-10-19  Richard Henderson  <rth@redhat.com>
7340
7341         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
7342         (fmadf4, *fmsdf4, *nfmadf4): New.
7343         (fmaxf4, *fmsxf4, *nfmaxf4): New.
7344
7345 2010-10-19  Michael Eager  <eager@eagercon.com>
7346
7347         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
7348         Use sjlj unwind info for exceptions.
7349
7350 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
7351
7352         PR fortran/43414
7353         * dwarf2out.c (add_calling_convention_attribute): Flag main
7354         Fortran subroutine with DW_AT_main_subprogram.
7355
7356 2010-10-19  Nick Clifton  <nickc@redhat.com>
7357
7358         * config/rx/rx.c (rx_function_value): Small integer types are
7359         promoted to SImode.
7360         (rx_promote_function_mode): New function.
7361         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7362
7363 2010-10-19  Nick Clifton  <nickc@redhat.com>
7364
7365         * config/mep/mep.c (mep_print_operand): Use
7366         targetm.strip_name_encoding.
7367         (mep_output_aligned_common): Likewise.
7368
7369 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
7370
7371         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
7372
7373 2010-10-18  Richard Henderson  <rth@redhat.com>
7374
7375         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
7376         (fma (neg a) (neg b) c) and (fma a (neg b) c).
7377
7378 2010-10-18  Richard Henderson  <rth@redhat.com>
7379
7380         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
7381         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
7382         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
7383         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
7384         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
7385         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
7386         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
7387         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
7388         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
7389         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
7390         (bdesc_multi_arg): Remove the corresponding builtins.
7391         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
7392         (UNSPEC_FMA4_FMSUBADD): Remove.
7393         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
7394         * config/i386/sse.md (FMA4MODEF4): Remove.
7395         (FMAMODE): Add.
7396         (fma<mode>4): New expander.
7397         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
7398         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
7399         (*fma4i_fmsub_<mode>): Similarly.
7400         (*fma4i_fnmadd_<mode>): Similarly.
7401         (*fma4i_fnmsub_<mode>): Similarly.
7402         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
7403         with the first operand.
7404         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
7405         of explicit arithmetic.  Macroize with AVXMODEF2P.
7406         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
7407         (xop_frcz<mode>2): Macroize with FMAMODE.
7408         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
7409         the first operand.
7410         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
7411         extra negations.
7412         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
7413         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
7414         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
7415         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
7416         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
7417         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
7418         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
7419         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
7420
7421 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
7422
7423         PR rtl-optimization/45966
7424         * combine.c (try_combine): If added_sets_2, deal with the case
7425         where i0 feeds i1 and i1 feeds i2.
7426
7427 2010-10-18  Jan Hubicka  <jh@suse.cz>
7428
7429         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
7430         preserve flags before trying to guess on visibility.
7431         (varpool_externally_visible_p): New function.
7432         (function_and_variable_visibility): Use it.
7433
7434 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7435
7436         Implemented parsing @synthesize and @dynamic for Objective-C.
7437         * c-parser.c (c_parser_external_declaration): Recognize
7438         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7439         (c_parser_objc_at_synthesize_declaration): New.
7440         (c_parser_objc_at_dynamic_declaration): New.
7441
7442 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7443
7444         * c-parser.c (c_parser_objc_class_declaration): After finding an
7445         error, parse the whole declaration then reset parser->error.
7446
7447 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7448
7449         PR target/46041
7450         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
7451         * builtins.c (mode_has_fma): Ditto.
7452
7453 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
7454
7455         PR target/36898
7456         PR middle-end/43760
7457         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
7458
7459 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
7460
7461         * config/i386/i386.c (ix86_option_override_internal): Define and
7462         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
7463         default.
7464         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7465         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
7466
7467 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7468
7469         Merge from 'apple/trunk' branch on FSF servers.
7470         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
7471         following Objective-C change:
7472
7473         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
7474
7475         Radar 4301047
7476         * c-parse.in (objc_quals): Build objc qualifier list same way
7477         as gcc-3.3
7478
7479 2010-10-18  Jan Hubicka  <jh@suse.cz>
7480
7481         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
7482         function_and_variable_visibility): Revert accidental commit.
7483
7484 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7485
7486         Merge from 'apple/trunk' branch on FSF servers.
7487         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
7488         the following Objective-C change:
7489
7490         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
7491
7492         Radar 4204796
7493         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
7494         'volatilized' type used in a typeof operator.
7495
7496 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
7497
7498         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
7499         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
7500         rewrite modelled on gimple_purge_dead_eh_edges.
7501         (gimple_purge_all_dead_abnormal_call_edges): New function.
7502         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
7503         directly instead of through gimple_purge_dead_abnormal_call_edges.
7504         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
7505         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
7506         removed AB side-effects from one of its statements.
7507         (init_pre): Initialize need_ab_cleanup.
7508         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
7509         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
7510
7511 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
7512
7513         PR c/46015
7514         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
7515         on computed goto argument.
7516
7517 2010-10-18  Richard Guenther  <rguenther@suse.de>
7518
7519         PR tree-optimization/45967
7520         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
7521         (could_have_pointers): Likewise.
7522         (handle_rhs_call, handle_const_call, handle_pure_call,
7523         find_func_aliases, intra_create_variable_infos): Remove calls to them.
7524         (struct fieldoff): Add must_have_pointers field.
7525         (type_must_have_pointers): New function.
7526         (field_must_have_pointers): Likewise.
7527         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
7528         Adjust field merging.
7529         (create_function_info_for): May-have-pointers of varinfo is
7530         almost always true.
7531         (create_variable_info_for_1): Likewise.
7532
7533 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
7534
7535         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
7536         of operands to vec_concat.
7537
7538 2010-10-18  Richard Guenther  <rguenther@suse.de>
7539
7540         PR lto/44950
7541         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
7542         also clear references to entries of it.
7543
7544 2010-10-18  Andi Kleen  <ak@linux.intel.com>
7545
7546         PR other/43448
7547         * gccbug.in: Remove.
7548         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
7549         (doc, distclean, install-common): Remove reference to gccbug.
7550         * configure: Regenerate.
7551         * configure.ac (all_outputs): Remove gccbug.
7552         * doc/configfiles.texi: Remove references to gccbug.
7553         * doc/sourcebuild.texi: Dito.
7554
7555 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
7556
7557         PR middle-end/46019
7558         * fold-const.c (fold_binary_loc): If integer_pow2p has
7559         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
7560
7561 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
7562             Jeremie Salvucci  <jeremie.salvucci@free.fr>
7563
7564         * gengtype.c (verbosity_level): Add variable.
7565         (set_gc_used): Count variables for verbosity.
7566         (close_output_files): Backing up files, counting written ones
7567         verbosily.
7568         (write_types): Count emitted functions for verbosity. Added
7569         debug messages.
7570         (write_enum_defn): Count structures for verbosity. Added debug
7571         messages.
7572         (gengtype_long_options): Add "verbose" & "backupdir".
7573         (print_usage): Ditto.
7574         (main): Verbose display of parsed files.
7575
7576         * gengtype.h (verbosity_level): Add declaration.
7577
7578 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
7579
7580         * gengtype.c (parse_program_options): Add allocation of
7581         plugin_files, and correct test on nb_plugin_files.
7582
7583 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7584
7585         Merge from 'apple/trunk' branch on FSF servers.
7586
7587         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
7588
7589         Radar 4133425
7590         * c-decl.c (undeclared_variable): Issue diagnostic on
7591         private 'ivar' access.
7592
7593 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
7594
7595         PR target/46051
7596         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
7597         generated sequence to match *avx_vperm2f128<mode>_nozero.
7598         (vec_interleave_lowv4df): Ditto.
7599         (vec_interleave_highv8sf): Ditto.
7600         (vec_interleave_lowv8sf): Ditto.
7601
7602 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
7603
7604         * libgcov.c (create_file_directory): Enable it for win32 case.
7605         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
7606         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
7607         (GCOV_PREFIX_SKIP): Likewise.
7608
7609 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7610
7611         * doc/objc.texi (GNU Objective-C runtime API): New section.
7612         (Modern GNU Objective-C runtime API): New section.
7613         (Traditional GNU Objective-C runtime API): New section.
7614         (Executing code before main): Mention that this section is
7615         specific to the GNU Objective-C runtime.
7616         (Garbage Collection): Same.
7617
7618 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
7619
7620         * c-parser.c (c_parser_for_statement): Move initialization of
7621         cond and incr before if.
7622
7623 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
7624
7625         * target.def (preferred_output_reload_class): New hook.
7626         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
7627         * doc/tm.texi: Regenerate.
7628         * targhooks.c (default_preferred_output_reload_class): New function.
7629         * targhooks.h (default_preferred_output_reload_class): Declare.
7630         * reload.c (find_dummy_reload): Change rclass argument type from
7631         enum reg_class to reg_class_t. Change this_alternative array type
7632         from enum reg_class to reg_class_t.
7633         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
7634         (push_reload): Change preferred_class variable type to reg_class_t.
7635         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
7636         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
7637         argument type from enum reg_class to reg_class_t. Use
7638         HARD_REGISTER_NUM_P predicate.
7639         * recog.h (reg_fits_class_p): Update prototype.
7640
7641         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7642         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
7643         Remove.
7644         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
7645         static. Change regclass argument and result types from enum reg_class
7646         to reg_class_t.
7647         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7648
7649 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
7650
7651         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
7652         visibility enum, and handle @package.
7653
7654 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7655
7656         * doc/objc.texi (What you can and what you cannot do in +load):
7657         Document that sending messages to constant string objects in +load
7658         is not guaranteed to work.
7659
7660 2010-10-16  Jan Hubicka  <jh@suse.cz>
7661
7662         PR middle-end/44206
7663         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
7664         existence of refrences before removing the function.
7665
7666 2010-10-16  Jan Hubicka  <jh@suse.cz>
7667
7668         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
7669         only_called_at_startup and only_called_at_exit.
7670         (cgraph_propagate_frequency): Compute only_called_at_startup and
7671         only_called_at_exit.
7672         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
7673         only_called_at_exit.
7674         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
7675         flags.
7676         * predict.c (compute_function_frequency): Initialize the new flags.
7677
7678 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7679
7680         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
7681         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
7682         on the bounds of its domain.
7683         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
7684
7685 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
7686
7687         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
7688         * config/avr/avr-protos.h (preferred_reload_class): Remove.
7689         * config/avr/avr.c (preferred_reload_class): Remove.
7690         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
7691         * config/pa/pa.c (emit_move_sequence): Update comment
7692         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
7693         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
7694         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
7695         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
7696         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
7697         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
7698         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
7699         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
7700         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
7701         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
7702         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
7703         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
7704         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
7705
7706 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
7707
7708         * opts.c (set_fast_math_flags,
7709         set_unsafe_math_optimizations_flags): Make static.
7710         * toplev.h (set_fast_math_flags,
7711         set_unsafe_math_optimizations_flags): Remove prototypes.
7712
7713 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
7714
7715         * config/arm/arm.c (arm_option_optimization): Set
7716         flag_section_anchors to 1 not 2.
7717         * config/i386/i386.c (ix86_option_override_internal): Check
7718         global_options_set.x_flag_zee and
7719         global_options_set.x_flag_omit_frame_pointer.
7720         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
7721         flag_zee to 2.
7722         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7723         global_options_set.x_flag_omit_frame_pointer.
7724         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
7725         opts->x_flag_section_anchors to 1 not 2.
7726         * config/sh/sh.c (sh_option_optimization): Don't set
7727         flag_schedule_insns to 2.
7728         (sh_option_override): Check
7729         global_options_set.x_flag_schedule_insns.
7730         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
7731
7732 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
7733
7734         * configure.ac: Make sure inhibit_libc remains false for mingw targets
7735         as cross.
7736         * configure: Regenerated.
7737
7738 2010-10-15  Xinliang David Li  <davidxl@google.com>
7739
7740         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
7741         function.
7742         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
7743         into a recursive function.
7744
7745 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
7746
7747         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
7748         (*movdfcc_1): ditto.
7749
7750 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7751
7752         * target.def (target_option.init_struct): New hook.
7753         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
7754         * doc/tm.texi: Regenerate.
7755         * hooks.c (hook_void_gcc_optionsp): New.
7756         * hooks.h (hook_void_gcc_optionsp): Declare.
7757         * langhooks-def.h (lhd_init_options_struct): Remove.
7758         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
7759         * langhooks.c (lhd_init_options_struct): Remove.
7760         * opts.c (init_options_struct): Also call
7761         targetm.target_option.init_struct.
7762         * config/i386/i386.c (ix86_option_init_struct,
7763         TARGET_OPTION_INIT_STRUCT): New.
7764         (ix86_option_optimization): Move some settings to
7765         ix86_option_init_struct.
7766         * config/pdp11/pdp11.c (pdp11_option_init_struct,
7767         TARGET_OPTION_INIT_STRUCT): New.
7768         (pdp11_option_optimization): Move some settings to
7769         pdp11_option_init_struct.
7770         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
7771         rs6000_option_init_struct.  Use options structure pointer.
7772         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7773         * config/s390/s390.c (s390_option_init_struct,
7774         TARGET_OPTION_INIT_STRUCT): New.
7775         (s390_option_optimization): Don't set
7776         flag_asynchronous_unwind_tables here.
7777         * config/sh/sh.c (sh_option_init_struct,
7778         TARGET_OPTION_INIT_STRUCT): New.
7779         (sh_option_optimization): Don't set flag_finite_math_only here.
7780         * config/spu/spu.c (spu_option_optimization): Replace by
7781         spu_option_optimization.  Use options structure pointer.
7782         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7783
7784 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7785
7786         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
7787
7788         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
7789         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
7790         (Standard names): Document fma.
7791
7792         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
7793         __FP_FAST_FMAF, __FP_FAST_FMAL.
7794
7795         * builitns.c (expand_builtin_mathfn_ternary): New function for
7796         expanding ternary math functions, like fma.
7797         (expand_builtin): Call it for the fma builtins.
7798
7799         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
7800         ops at present.
7801
7802         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
7803         vectorizable functions to support vectorizing fma.
7804
7805         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7806         Handle fma builtins.
7807
7808         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
7809         (UNSPEC_VSX_MSUB): Ditto.
7810         (UNSPEC_VSX_NMADD): Ditto.
7811         (UNSPEC_VSX_NMSUB): Ditto.
7812         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
7813         of UNSPEC. Renumber combiner patterns.
7814         (vsx_fmsub<mode>4*): Ditto.
7815         (vsx_fnmadd<mode>4*): Ditto.
7816         (vsx_fnmsub<mode>4*): Ditto.
7817
7818         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
7819         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
7820         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
7821         (altivec_vmaddfp_1): Ditto.
7822         (altivec_vmaddfp_2): Ditto.
7823         (atlivec_mulv4sf3): Ditto.
7824         (altivec_vnmsubfp): Ditto.
7825         (altivec_vnmsubfp_1): Ditto.
7826         (altivec_vnmsubfp_2): Ditto.
7827         (altivec_vnmsubfp_3): Delete.
7828
7829         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
7830         (fmasf4_fpr): Ditto.
7831         (fmssf4_fpr): Ditto.
7832         (fnmasf4_fpr): Ditto.
7833         (fnmssf4_fpr): Ditto.
7834         (fmadf4): Ditto.
7835         (fmadf4_fpr): Ditto.
7836         (fmsdf4_fpr): Ditto.
7837         (fnmadf4_fpr): Ditto.
7838         (fnmsdf4_fpr): Ditto.
7839
7840         * optabs.h (OTI_fma): Add fma optab.
7841         (fma_optab): Ditto.
7842
7843         * genopinit.c (optabs): Set fma optab.
7844
7845         * rtl.def (FMA): Add FMA rtl.
7846
7847         * tree.h (mode_has_fma): New function to return if MODE supports a
7848         fast multiply and add instruction.
7849         * builtins.c (mode_has_fma): Ditto.
7850
7851 2010-10-15  Jan Hubicka  <jh@suse.cz>
7852
7853         * lto-streamer-out.c (write_symbol): Use pointer set of seen
7854         objects instead of bitmap.
7855         (produce_symtab): Likewise; output defined symbols first.
7856
7857 2010-10-15  Jie Zhang  <jie@codesourcery.com>
7858
7859         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
7860         Option Summary and Index.
7861
7862 2010-10-15  Richard Guenther  <rguenther@suse.de>
7863
7864         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
7865         for automatic variables again.
7866
7867 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7868
7869         * doc/extend.texi (Variable Length): Don't refer to VLAs not
7870         conforming to C99.
7871
7872 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7873
7874         * config/rx/rx.c (rx_option_optimization): Change to
7875         rx_override_options_after_change.  Don't change
7876         flag_lto_compression_level.  Don't check for changes to whether
7877         FPU instructions can be used.  Check and set only
7878         flag_finite_math_only, not other fast-math flags.
7879         (rx_option_override): Call rx_override_options_after_change.
7880         (TARGET_OPTION_OPTIMIZATION): Remove.
7881         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7882
7883 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7884
7885         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
7886         disable section anchors for lang_hooks.name[4] != 'O'.
7887
7888 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * config/frv/frv.c (frv_option_optimization,
7891         TARGET_OPTION_OPTIMIZATION): Remove.
7892         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
7893
7894 2010-10-15  Michael Matz  <matz@suse.de>
7895
7896         * cgraphunit.c (clone_of_p): Define unconditionally.
7897
7898 2010-10-15  Richard Guenther  <rguenther@suse.de>
7899
7900         PR lto/45957
7901         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
7902
7903 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
7904
7905         * ifcvt.c (find_active_insn_before): New function.
7906         (find_active_insn_after): New function.
7907         (cond_exec_process_if_block): Use new functions to replace
7908         prev_active_insn() and next_active_insn().
7909
7910 2010-10-14  Yao Qi  <yao@codesourcery.com>
7911
7912         PR target/45447
7913         * config/arm/arm.c (arm_build_builtin_va_list): Assign
7914         va_list_name to TYPE_STUB_DECL (va_list_type).
7915
7916 2010-10-14  Jan Hubicka  <jh@suse.cz>
7917
7918         PR middle-end/45621
7919         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
7920         redirected to clone, be happy.
7921         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
7922         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
7923         former_clone_of unconditionally.
7924
7925 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7926
7927         Merge from FSF apple 'trunk' branch.
7928         2006 Fariborz Jahanian  <fjahanian@apple.com>
7929
7930         Radars 4436866, 4505126, 4506903, 4517826
7931         * c-parser.c (c_parser, objc_property_attr_context) New flag.
7932         (c_lex_one_token): Handle property attributes.
7933         (c_parser_external_declaration): Handle @property.
7934         (c_parser_declaration_or_fndef): Warn on invalid attributes before
7935         @alias, @class, @end and @property objc keywords.
7936         (c_parser_objc_methodprotolist): Handle @property.
7937         (c_parser_objc_property_attrlist): New.
7938         (c_parser_objc_at_property): New.
7939         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
7940         (build_modify_expr): Likewise.
7941
7942 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7943
7944         PR tree-optimization/46008
7945         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
7946
7947 2010-10-14  Richard Guenther  <rguenther@suse.de>
7948
7949         PR tree-optimization/44913
7950         * tree-data-ref.c (disjoint_objects_p): Remove.
7951         (dr_may_alias_p): Simplify.  Only hand the base object to
7952         the alias-oracle.
7953         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7954         some more trees, bail out instead of asserting.
7955         (ptr_derefs_may_alias_p): Likewise.  Export.
7956         (refs_may_alias_p_1): Handle STRING_CSTs.
7957         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
7958
7959 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7960
7961         PR c/45969
7962         * c-typeck.c (build_binary_op): Don't try to compute a semantic
7963         type with excess precision for boolean operations.
7964
7965 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7966             Basile Starynkevitch  <basile@starynkevitch.net>
7967
7968         * gengtype.c:  Include getopt.h and version.h.
7969
7970         (lang_bitmap, struct outf, outf_p)
7971         (get_output_file_with_visibility, oprintf): Definitions moved to
7972         gengtype.h
7973         (output_files, header_file, srcdir, srcdir_len, this_file)
7974         (do_dump): No more static variables.
7975         (do_debug): New.
7976         (dbgprint_count_type_at): Added new function.
7977         (gengtype_long_options): New.
7978         (print_usage, print_version, parse_program_options): New.
7979         (main): Call parse_program_options, and removed old option
7980         handling code.  Added some debug output.
7981
7982         * gengtype.h:  Updated copyright year.
7983         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
7984         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
7985         Moved from gengtype.c to here.
7986         (do_debug, read_state_filename, write_state_filename): New variables.
7987         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
7988
7989         * Makefile.in:
7990         (REVISION): Always defined.
7991         (version.o): Removed ifdef REVISION_c.
7992         (s-gtype): Pass arguments to build/gengtype program.
7993         (build/version.o): Added building rule.
7994         (build/gengtype$(build_exeext)): Added build/version.o.
7995
7996 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7997
7998         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
7999         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
8000         __strong macros.
8001
8002 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
8003
8004         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
8005         may_trap_or_fault_p instead of may_trap_p predicate.
8006         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
8007         (substitute_placeholder_in_expr): Likewise.
8008         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
8009         flag on MEM_REF nodes.
8010         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
8011         flags on INDIRECT_REF nodes.
8012
8013 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
8014
8015         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
8016         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
8017         (arm*-*-eabi*) <tm_file>: Likewise.
8018         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
8019         (frv-*-*linux*) <tm_file>: Likewise.
8020         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
8021         and associated helper macros.
8022         * config/frv/frv-abi.h: Delete.
8023
8024 2010-10-14  Richard Guenther  <rguenther@suse.de>
8025
8026         PR lto/44561
8027         * tree.def (NULLPTR_TYPE): New tree code.
8028         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
8029         * dwarf2out.c (is_base_type): Likewise.
8030         (gen_type_die_with_usage): Likewise.
8031         * sdbout.c (plain_type_1): Likewise.
8032         * tree.c (build_int_cst_wide): Likewise.
8033         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
8034
8035 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
8036
8037         * params.c (params_finished): New.
8038         (add_params): Assert !params_finished.
8039         (finish_params): New.
8040         (set_param_value_internal): Take params and params_set
8041         parameters.  Assert params_finished.
8042         (set_param_value, maybe_set_param_value): Take params and
8043         params_set parameters.  Update calls to set_param_value_internal.
8044         (set_default_param_value): Assert !params_finished.  Don't use
8045         set_param_value_internal.
8046         (default_param_value, init_param_values): New.
8047         * params.h (struct param_info): Change value to default_value.
8048         Remove set.
8049         (set_param_value, maybe_set_param_value): Add params and
8050         params_set parameters.
8051         (PARAM_VALUE): Get parameters from global_options.
8052         (PARAM_SET_P): Remove.
8053         (finish_params, default_param_value, init_param_values): New.
8054         * common.opt (param_values): New Variable.
8055         * config/arm/arm.c (arm_option_override): Pass extra arguments to
8056         maybe_set_param_value.
8057         * config/i386/i386.c (ix86_option_override_internal): Pass extra
8058         arguments to maybe_set_param_value.
8059         * config/picochip/picochip.c (picochip_option_override): Pass
8060         extra arguments to maybe_set_param_value.
8061         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
8062         extra arguments to maybe_set_param_value.
8063         * config/s390/s390.c (s390_option_override): Use
8064         maybe_set_param_value instead of set_param_value.  Pass extra
8065         arguments to maybe_set_param_value.
8066         * config/sparc/sparc.c (sparc_option_override): Pass extra
8067         arguments to maybe_set_param_value.
8068         * config/spu/spu.c (spu_option_override): Pass extra arguments to
8069         maybe_set_param_value.
8070         * opts.c (handle_param): Take opts and opts_set parameters.
8071         Update call to set_param_value.
8072         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
8073         initial_loop_invariant_max_bbs_in_loop): Remove.
8074         (init_options_once): Don't set them.
8075         (init_options_struct): Initialize parameters structures.
8076         (default_options_optimization): Use default_param_value when
8077         restoring defaults.  Update calls to maybe_set_param_value.
8078         (finish_options): Update calls to maybe_set_param_value.
8079         (common_handle_option): Update calls to handle_param and
8080         set_param_value.
8081         * toplev.c (DEFPARAM): Update definition for changes to param_info.
8082         (general_init): Call finish_params.
8083
8084 2010-10-14  Nick Clifton  <nickc@redhat.com>
8085
8086         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
8087         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
8088         (FIRST_PSEUDO_REGISTER): Increase by one.
8089         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
8090         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
8091         (MODES_TIEABLE): Call mn10300_modes_tieable.
8092         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
8093         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
8094         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
8095         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
8096         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
8097         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8098         (mn10300_cc_status_mdep): Delete.
8099         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
8100         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
8101         the combine-stack-adjust pass.
8102         (print_operand): Use the mode of the comparison operation to
8103         select the comparison suffix.
8104         (notice_update_cc): Delete.
8105         (mn10300_secondary_reload_class): Remove test for stack pointer
8106         based arithmetic.
8107         (output_tst): Rename to mn10300_output_cmp.
8108         (impossible_plus_operand): Move into predicates.md.
8109         (mn10300_legitimize_address): Make static.
8110         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
8111         constant pic operands.
8112         (mn10300_legitimate_constant_p): New function.
8113         (mn10300_case_values_threshold): Make static.
8114         (mn10300_hard_regno_mode_ok): New function.
8115         (mn10300_modes_tieable): New function.
8116         (mn10300_select_cc_mode): New function.
8117         * config/mn10300/predicates.md (impossible_plus_operand): Define.
8118         * config/mn10300/mn10300-protos.h: Tidy.
8119         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
8120         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
8121         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
8122         with clobbers or sets of CC_REG.
8123         (CC_REG): Define.
8124         (mov*): Remove use of CLR instruction.
8125         (cbranch_si4_<code>): New pattern/split.
8126         (integer_conditional_branch): New pattern.
8127         (cbranch_sf4_<code>): New pattern/split.
8128         (float_conditional_branch): New pattern.
8129         (casesi): Use addsi3 pattern instead of movsi pattern to add and
8130         move a value at the same time.
8131         (cc0 peepholes): Remove.
8132
8133 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8134
8135         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
8136         on RTX_FRAME_RELATED_P insns and the insn to which
8137         NOTE_INSN_EPILOGUE_BEG is attached.
8138         * sched-vis.c (print_value): Allow NULL value.
8139
8140 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8141
8142         PR rtl-optimization/45570
8143         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
8144         assert that we are pipelining outer loops.  Allow returning
8145         zero predecessors.
8146
8147 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8148
8149         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
8150         (tidy_control_flow): Tidy vertical space.
8151         (sel_remove_bb): New variable idx.  Use it to remember the basic
8152         block index before deleting the block.
8153         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
8154         (sel_merge_blocks): ... here.
8155         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
8156
8157 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
8158
8159         * cse.c (is_dead_reg): Change into inline function that is not
8160         called through for_each_rtx.
8161         (set_live_p): Adjust caller.
8162         (insn_live_p): Don't reset DEBUG_INSNs here.
8163         (struct dead_debug_insn_data): New data.
8164         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
8165         (delete_trivially_dead_insns): If there is just one setter for the
8166         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
8167         and add DEBUG_INSN for it right before the removed setter and
8168         use the DEBUG_EXPR instead of the dead pseudo.
8169
8170 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
8171
8172         * et-forest.c (et_nca): Return NULL immediately when
8173         the dominance forest has disjoint components.
8174
8175 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
8176
8177         * ira.c (setup_class_hard_regs): Fix typo in indexing
8178         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
8179
8180 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
8181
8182         * graph.c (inbb): New variable.
8183         (start_bb): Set inbb to 1 if output is inside of a building block.
8184         (end_bb): Check if output is inside of a building block.
8185
8186 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8187
8188         PR rtl-optimization/45912
8189         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
8190         regno of registers instead of their index to compute the alignment.
8191
8192 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
8193
8194         * config/i386/i386.c (ix86_build_const_vector): Check vector
8195         mode instead of scalar mode.
8196         (ix86_build_signbit_mask): Likewise.
8197         (ix86_expand_fp_absneg_operator): Updated.
8198         (ix86_expand_copysign): Likewise.
8199         (ix86_expand_int_vcond): Likewise.
8200         (ix86_emit_swdivsf): Likewise.
8201         (ix86_sse_copysign_to_positive): Likewise.
8202         (ix86_expand_sse_fabs): Likewise.
8203         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
8204         * config/i386/sse.md (copysign<mode>3): Likewise.
8205         (sse2_cvtudq2ps): Likewise.
8206         (vec_unpacku_float_hi_v4si): Likewise.
8207         (vec_unpacku_float_lo_v4si): Likewise.
8208
8209         * config/i386/i386.c (ix86_builtins): Add
8210         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
8211         (bdesc_args): Likewise.
8212         (ix86_builtin_vectorized_function): Support
8213         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
8214         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
8215         and IX86_BUILTIN_CVTPS2DQ256.
8216         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
8217
8218         * config/i386/sse.md (STORENT_MODE): New.
8219         (VEC_FLOAT_MODE): Likewise.
8220         (VEC_EXTRACT_MODE): Likewise.
8221         (*avx_cvtdq2pd256_2): Likewise.
8222         (vec_pack_trunc_v4df): Likewise.
8223         (vec_interleave_highv8sf): Likewise.
8224         (vec_interleave_lowv8sf): Likewise.
8225         (storent<mode>): Macroized.
8226         (<code><mode>2: absneg): Likewise.
8227         (copysign<mode>3): Likewise.
8228         (vec_extract<mode>): Likewise.
8229
8230         PR target/44180
8231         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
8232         for V8SFmode.
8233
8234 2010-10-13  Richard Guenther  <rguenther@suse.de>
8235             H.J. Lu  <hongjiu.lu@intel.com>
8236
8237         * config/i386/sse.md (reduc_splus_v8sf): Add.
8238         (reduc_splus_v4df): Likewise.
8239         (vec_unpacks_hi_v8sf): Likewise.
8240         (vec_unpacks_lo_v8sf): Likewise.
8241         (*avx_cvtps2pd256_2): Likewise.
8242         (vec_unpacks_float_hi_v8si): Likewise.
8243         (vec_unpacks_float_lo_v8si): Likewise.
8244         (vec_interleave_highv4df): Likewise.
8245         (vec_interleave_lowv4df): Likewise.
8246
8247 2010-10-13  Richard Guenther  <rguenther@suse.de>
8248
8249         PR objc/45878
8250         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
8251         alone if there are no virtual methods.
8252
8253 2010-10-13  Richard Henderson  <rth@redhat.com>
8254
8255         * expr.c (build_personality_function): Take parameter LANG instead
8256         of parameter NAME.  Build the name based on the lang prefix and the
8257         unwind method in use.
8258         * tree.c (lhd_gcc_personality): Update call to
8259         build_personality_function.
8260
8261 2010-10-13  Richard Guenther  <rguenther@suse.de>
8262
8263         PR objc/45878
8264         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
8265
8266 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8267
8268         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
8269         Canonicalize input operands of ASM_OPERANDS insns.
8270
8271 2010-10-13  Richard Guenther  <rguenther@suse.de>
8272
8273         PR tree-optimization/45788
8274         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
8275         EH update until fixup-cfg.
8276
8277 2010-10-13  Julian Brown  <julian@codesourcery.com>
8278
8279         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
8280         from CORE_REGS and GENERAL_REGS classes.
8281         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
8282         final constraint for register preferencing.
8283
8284 2010-10-13  Richard Guenther  <rguenther@suse.de>
8285
8286         PR tree-optimization/45970
8287         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
8288         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
8289         (stmt_kills_ref_p): Likewise.
8290         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
8291
8292 2010-10-13  Richard Guenther  <rguenther@suse.de>
8293
8294         PR tree-optimization/45982
8295         * tree-ssa-structalias.c (make_constraints_to): New function.
8296         (make_constraint_to): Implement in terms of make_constraints_to.
8297         (find_func_aliases): Properly make return values of pure/const
8298         functions escape if they assign to sth that is not a pointer.
8299
8300 2010-10-13  Richard Guenther  <rguenther@suse.de>
8301
8302         PR middle-end/45874
8303         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8304         Fixup the CFG when EH was fixed up.
8305
8306 2010-10-13  Ira Rosen  <irar@il.ibm.com>
8307
8308         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
8309         Use operand's type for POINTER_PLUS_EXPR.
8310
8311 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
8312
8313         * c-parser.c (c_parser_for_statement): Initialize incr.
8314
8315 2010-10-12  Xinliang David Li  <davidxl@google.com>
8316
8317         PR tree-optimization/45972
8318         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
8319         with too many arguments.
8320
8321 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
8322
8323         PR fortran/45636
8324         * tree-ssa-forwprop.c: Include expr.h.
8325         (constant_pointer_difference, simplify_builtin_call): New functions.
8326         (tree_ssa_forward_propagate_single_use_vars): Call
8327         simplify_builtin_call on builtin calls.
8328
8329 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
8330
8331         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
8332         (*adddi3_extend_sp32): Likewise.
8333         (*subdi3_insn_sp32): Likewise.
8334         (*subdi3_extend_sp32): Likewise.
8335         (*negdi2_sp32): Use negative test for consistency.
8336
8337 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
8338
8339         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
8340         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8341         * config/fixed-bit.h: Likewise.
8342         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8343         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8344         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
8345         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
8346         (DF_SIZE): Likewise.
8347         * doc/tm.texi: Regenerate.
8348
8349 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
8350
8351         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
8352         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
8353         (*isel_reversed_unsigned_<mode>): New.
8354         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
8355         as valid comparisons and adjust operands and output appropriately.
8356         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
8357
8358 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
8359
8360         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
8361         DATA_ALIGNMENT and add COND parameter. Update comments above.
8362         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
8363         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
8364
8365 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8366
8367         PR bootstrap/45958
8368         * exec-tool.in: Support '-plugin' as the second option to the linker.
8369
8370 2010-10-12  Richard Henderson  <rth@redhat.com>
8371
8372         PR middle-end/45962
8373         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
8374         (expand_stack_vars): Assert large base allocated when used.
8375
8376 2010-10-12  Richard Guenther  <rguenther@suse.de>
8377
8378         * tree-ssa-structalias.c (get_constraint_for_1): Constants
8379         only point to nonlocal, not anything.
8380
8381 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
8382
8383         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
8384         unwind info for exceptions.
8385
8386 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8387
8388         PR testsuite/45851
8389         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
8390         Document optional target selector.
8391
8392 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
8393
8394         * flag-types.h: New.
8395         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
8396         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
8397         options.h.
8398         (OPTIONS_H): Define.
8399         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
8400         of options.h.
8401         * configure.ac (tm_include_list): Include options.h not flags.h.
8402         * configure: Regenerate.
8403         * flags.h: Include flag-types.h.  Include options.h at top of file
8404         again.
8405         (enum debug_info_type, enum debug_info_level, enum
8406         debug_info_usage, enum symbol_visibility, struct visibility_flags,
8407         enum ira_algorithm, enum ira_region, enum excess_precision, enum
8408         graph_dump_types, enum stack_check_type,
8409         enum warn_strict_overflow_code): Move to flag-types.h
8410         * opth-gen.awk: Include flag-types.h in options.h.
8411
8412 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
8413
8414         * expr.c (store_expr): Share code for STRING_CST and
8415         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
8416         check if target is a MEM.
8417
8418         * rtl.h: Include hashtab.h.
8419         (iterative_hash_rtx): New prototype.
8420         * rtl.c (iterative_hash_rtx): New function.
8421         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
8422         (output_loc_list): Return immediately if emitted is set, set it.
8423         (hash_loc_operands, hash_locs, hash_loc_list,
8424         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
8425         optimize_location_lists_1, optimize_location_lists): New function.
8426         (dwarf2out_finish): Call optimize_location_lists.
8427         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
8428
8429 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8430
8431         PR testsuite/45974
8432         Revert:
8433         * Makefile.in ($(lang_checks_parallel))
8434         ($(lang_checks_parallelized)): Use single quotes for
8435         $(RUNTESTFLAGS), to allow passing quoted content.
8436
8437 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8438
8439         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
8440         actual_oldval.  Use __builtin_expect.
8441         (SUBWORD_VAL_CAS): Likewise.
8442
8443 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
8444
8445         * recog.c (nonmemory_operand): Call immediate_operand for
8446         CONSTANT_P operands.
8447
8448 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
8449
8450         * config/i386/i386.md (movmem<mode>): Macroize expander from
8451         movmem{si,di} using SWI48 mode iterator.
8452         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
8453         *strmovsi_rex_1 using P mode iterator.
8454         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
8455         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
8456         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
8457         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
8458         (setmem<mode>): Macroize expander from setmem{si,di} using
8459         SWI48 mode iterator.
8460         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
8461         *strsetsi_rex_1 using P mode iterator.
8462         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
8463         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
8464         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
8465         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
8466         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
8467         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
8468         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
8469         mode iterator.
8470         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
8471         *strlenqi_rex_1 using P mode iterator.
8472
8473 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
8474
8475         PR bootstrap/45445
8476         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
8477         static functions.
8478         (mark_ref_live, mark_ref_dead): Use them.
8479         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
8480         Save the original reg, and use the new functions.
8481         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
8482         changed.
8483         (check_and_make_def_conflict): Save the original reg.
8484
8485 2010-10-11  Martin Jambor  <mjambor@suse.cz>
8486
8487         PR middle-end/45699
8488         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
8489         thunks.
8490
8491 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8492
8493         * Makefile.in ($(lang_checks_parallel))
8494         ($(lang_checks_parallelized)): Use single quotes for
8495         $(RUNTESTFLAGS), to allow passing quoted content.
8496
8497         PR bootstrap/35855
8498         * opt-functions.awk (BEGIN): New section.
8499         (lower, upper, digit, alnum): New variables.
8500         (static_var, opt_sanitized_name): Use alnum instead of character
8501         classes, for non-C locale.
8502         * optc-gen.awk: Likewise.
8503         * opth-gen.awk: Likewise.
8504
8505 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
8506
8507         * target.def (preferred_reload_class): New hook.
8508         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
8509         * doc/tm.texi: Regenerate.
8510         * targhooks.c (default_preferred_reload_class): New function.
8511         * targhooks.h (default_preferred_reload_class): Declare.
8512         * reload.c (find_dummy_reload): Change preferred_class variable type
8513         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
8514         target hook.
8515         (find_reloads): Change goal_alternative array type from int to
8516         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
8517         (push_reload, find_reloads_address_part): Use
8518         TARGET_PREFERRED_RELOAD_CLASS target hook.
8519         * reload1.c (emit_input_reload_insns): Ditto.
8520         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
8521         hook. Change rclass argument and secondary_class variable types from
8522         'enum reg_class' to reg_class_t.
8523
8524         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
8525         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
8526         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
8527         Change regclass argument and result types from enum reg_class to
8528         reg_class_t.
8529         (TARGET_PREFERRED_RELOAD_CLASS): Define.
8530
8531 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8532
8533         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
8534         in masking operations.
8535         (simplify_const_unary_operation): Likewise.
8536         (simplify_binary_operation_1): Likewise.
8537         (simplify_const_binary_operation): Likewise.
8538         (simplify_const_relational_operation): Likewise.
8539         (simplify_ternary_operation): Likewise.
8540         (simplify_immed_subreg): Likewise.
8541
8542 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8543
8544         PR middle-end/45862
8545         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
8546         (TARGET_SUPPORTS_WEAK): New.
8547         * doc/tm.texi: Regenerate.
8548         * defaults.h (SUPPORTS_WEAK): Update comment.
8549         (TARGET_SUPPORTS_WEAK): New.
8550         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
8551         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
8552         SUPPORTS_WEAK.
8553         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
8554         make_decl_one_only): Likewise.
8555         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
8556         TARGET_SUPPORTS_WEAK.
8557         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
8558         instead of SUPPORTS_WEAK.
8559
8560 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8561
8562         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
8563
8564 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
8565
8566         * vec.h (VEC_qsort): Define.
8567         * dbxout.c (output_used_types): Use it.
8568         * df-scan.c (df_sort_and_compress_refs): Likewise.
8569         (df_sort_and_compress_mws): Likewise.
8570         * genautomata.c (uniq_sort_alt_states): Likewise.
8571         (evaluate_equiv_classes): Likewise.
8572         (output_trans_table): Likewise.
8573         (output_state): Likewise.
8574         * gimplify.c (compare_case_labels): Likewise.
8575         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
8576         * ipa.c (build_cdtor_fns): Likewise.
8577         * lto.c (lto_wpa_write_files): Likewise.
8578         * sel-sched.c (fill_vec_av_set): Likewise.
8579         * tree-predcom.c (determine_roots_comp): Likewise.
8580         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
8581         (splice_param_accesses): Likewise.
8582         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
8583         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8584         (reassociate_bb): Likewise.
8585         * tree-ssa-sccvn.c (sort_scc): Likewise.
8586         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
8587
8588 2010-10-11  Ian Lance Taylor  <iant@google.com>
8589
8590         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
8591         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
8592         TREE_THIS_NOTRAP when appropriate.
8593         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
8594         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
8595         newly created MEM_REF.
8596
8597 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
8598
8599         Nathan Froyds patch to hooks FUNCTION_ARG etc.
8600         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
8601         (picochip_incoming_function_arg): Delete.
8602         (picochip_arg_advance): Delete.
8603         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
8604         (FUNCTION_INCOMING_ARG): Delete.
8605         (FUNCTION_ARG_ADVANCE): Delete.
8606         * config/picochip/picochip.c (picochip_function_arg): Take a
8607         const_tree and a bool.
8608         (picochip_incoming_function_arg): Likewise.
8609         (picochip_arg_advance): Likewise.
8610         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8611         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8612
8613 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8614
8615         PR middle-end/45955
8616         * ipa.c (build_cdtor): Delete endless loop.
8617
8618 2010-10-07  Andi Kleen  <ak@linux.intel.com>
8619
8620         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
8621         checksum-options.
8622         (checksum-options): Add.
8623         (cc1-dummy): Remove.
8624         (cc1-checksum): Change to run checksum over object files
8625         and options only.
8626         * dummy-checksum.c: Remove.
8627         * genchecksum.c: Update copyright.
8628         (usage): Allow multiple arguments.
8629         (BLOCKSIZE): Add.
8630         (dosum): Change for incremental checksum. Remove C output.
8631         (main): Iterate over all argument files. Add C output.
8632
8633 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
8634
8635         * params.c (set_param_value_internal): New.
8636         (set_param_value): Use set_param_value_internal.
8637         (maybe_set_param_value, set_default_param_value): New.
8638         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
8639         (maybe_set_param_value, set_default_param_value): Declare.
8640         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
8641         * config/i386/i386.c (ix86_option_override_internal): Use
8642         maybe_set_param_value.
8643         * config/ia64/ia64.c (ia64_option_default_params,
8644         TARGET_OPTION_DEFAULT_PARAMS): New.
8645         (ia64_option_optimization): Move some code to
8646         ia64_option_default_params.
8647         * config/picochip/picochip.c (picochip_option_override): Use
8648         maybe_set_param_value.
8649         * config/rs6000/rs6000.c (rs6000_option_default_params,
8650         TARGET_OPTION_DEFAULT_PARAMS): New.
8651         (rs6000_option_override_internal): Use maybe_set_param_value.
8652         (rs6000_option_optimization): Move some code to
8653         rs6000_option_default_params.
8654         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
8655         * config/sh/sh.c (sh_option_default_params,
8656         TARGET_OPTION_DEFAULT_PARAMS): New.
8657         (sh_option_optimization): Move some code to sh_option_default_params.
8658         * config/sparc/sparc.c (sparc_option_override): Use
8659         maybe_set_param_value.
8660         * config/spu/spu.c (spu_option_default_params,
8661         TARGET_OPTION_DEFAULT_PARAMS): New.
8662         (spu_option_optimization): Move some code to spu_option_default_params.
8663         (spu_option_override): Use maybe_set_param_value.
8664         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
8665         * doc/tm.texi: Regenerate.
8666         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
8667         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
8668         compiler_params.
8669         (default_options_optimization): Use maybe_set_param_value.
8670         (finish_options): Use maybe_set_param_value.
8671         * target.def (target_option.default_params): New hook.
8672         * toplev.c (general_init): Call targetm.target_option.default_params.
8673
8674 2010-10-11  Ira Rosen  <irar@il.ibm.com>
8675
8676         PR tree-optimization/45902
8677         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
8678         vector type for constants, unless it's a pointer.
8679
8680 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8681
8682         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
8683
8684 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
8685
8686         PR target/45870
8687         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
8688         (ix86_delegitimize_address): Use it.
8689
8690 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
8691
8692         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
8693
8694 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
8695
8696         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
8697         to cum struct in the call to function_arg_advance.
8698         (alpha_function_arg_advance): Mark named as unused.
8699
8700 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
8701
8702         * config/mips/mips.c (mips_handle_option): Make "value" with
8703         ATTRIBUTE_UNUSED.
8704
8705 2010-10-09  Richard Henderson  <rth@redhat.com>
8706
8707         PR rtl-opt/33721
8708         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
8709         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
8710         required_align, tidy the code a bit.  Emit split_stack code in the
8711         right place.  Mark the return value with the alignment properly.
8712         * expr.h (allocate_dynamic_stack_space): Update decl.
8713         * builtins.c (expand_builtin_apply): Update call to
8714         allocate_dynamic_stack_space.
8715         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
8716         * calls.c (initialize_argument_information): Update call to
8717         allocate_dynamic_stack_space.
8718         (expand_call): Likewise.
8719
8720         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
8721         Don't update_stack_alignment here.
8722         (alloc_stack_frame_space): Make ALIGN unsigned.
8723         (stack_var_cmp): Sort by alignment too.
8724         (partition_stack_vars): Don't merge large and small alignment vars.
8725         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
8726         Take care when BASE is not virtual_stack_vars_rtx.
8727         (expand_stack_vars): Allocate dynamic stack space for large
8728         alignment variables.
8729         (expand_one_stack_var): Update all to expand_one_stack_var_at.
8730         (defer_stack_allocation): True for large alignment vars.
8731         (update_stack_alignment): Merge into ...
8732         (expand_one_var): ... here.
8733         (gimple_expand_cfg): Place code from expand_stack_vars.
8734
8735 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8736
8737         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8738         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
8739         (pdp11_function_arg_advance): New function.
8740         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8741
8742 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8743
8744         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
8745         * libgcc2.c: Likewise.
8746
8747 2010-10-09  Richard Guenther  <rguenther@suse.de>
8748
8749         PR lto/45956
8750         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
8751         Properly check if a decl is an automatic var.
8752
8753 2010-10-09  Richard Guenther  <rguenther@suse.de>
8754
8755         PR lto/45947
8756         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
8757
8758 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8759
8760         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
8761         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8762         * config/mmix/mmix.c (mmix_function_arg): Rename to...
8763         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
8764         bool arguments.
8765         (mmix_function_arg): New function.
8766         (mmix_function_incoming_arg): New function.
8767         (mmix_function_arg_advance): New function.
8768         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8769         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8770
8771 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8772
8773         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8774         * config/vax/vax.c (vax_function_arg): New function.
8775         (vax_function_arg_advance): New function.
8776         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8777
8778 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8779
8780         * config/pa/pa-protos.h (function_arg): Delete.
8781         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8782         * config/pa/pa.c (function_arg): Rename to...
8783         (pa_function_arg): ...this.  Make static.  Take a const_tree and
8784         a bool.
8785         (pa_function_arg_advance): New function.
8786         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8787
8788 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8789
8790         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8791         * config/m68k/m68k.c (m68k_function_arg): New function.
8792         (m68k_function_arg_advance): New function.
8793         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8794
8795 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8796
8797         * config/avr/avr-protos.h (function_arg): Delete.
8798         (function_arg_advance): Delete.
8799         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8800         * config/avr/avr.c (function_arg): Rename to...
8801         (avr_function_arg): ...this.  Make static.  Take a const_tree and
8802         a bool.
8803         (function_arg_advance): Rename to...
8804         (avr_function_arg_advance): ...this.  Make static.  Take a
8805         const_tree and a bool.
8806         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8807
8808 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8809
8810         * config/alpha/alpha-protos.h (function_arg): Delete.
8811         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8812         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
8813         * config/alpha/alpha.c (function_arg): Rename to...
8814         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
8815         a bool.  Delete TARGET_ABI_UNICOSMK code.
8816         (alpha_function_arg_advance): New function.
8817         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8818
8819 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8820
8821         * config/mep/mep-protos.h (mep_function_arg): Delete.
8822         (mep_function_arg_advance): Delete.
8823         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8824         * config/mep/mep.c (mep_function_arg): Make static.  Take a
8825         const_tree and a bool.
8826         (mep_function_arg_advance): Likewise.
8827         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8828
8829 2010-10-09  Richard Guenther  <rguenther@suse.de>
8830
8831         PR tree-optimization/45945
8832         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
8833
8834 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
8835
8836         PR tree-optimization/45612
8837         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
8838         Test LABEL_DECLs as well.  Fix formatting issues.
8839         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
8840         whose label is present in NON_SSA_VARS.
8841         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
8842         as well.  Fix formatting issues.
8843         (visit_bb): Fix typos and formatting issue.
8844
8845 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8846
8847         PR tree-optimization/45950
8848         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
8849         before initializing vno->op.
8850
8851 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
8852
8853         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
8854         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
8855
8856 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8857
8858         PR target/45913
8859         * config/i386/i386.c (ix86_binary_operator_ok): Support
8860         "andhi/andsi/anddi" as a zero-extending move.
8861
8862 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8863
8864         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
8865         into a temporary array.
8866
8867 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
8868
8869         PR tree-optimization/45903
8870         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
8871         of {A,L}SHIFTRT of MEM.
8872
8873 2010-10-08  Richard Guenther  <rguenther@suse.de>
8874
8875         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8876         Re-construct BLOCK_VARS.
8877         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
8878         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8879         * tree.c (free_lang_data_in_block): Remove.
8880         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
8881         Do not touch the BLOCK tree.
8882         * expr.c (expand_expr_real_1): Allow externals.
8883
8884 2010-10-08  Richard Guenther  <rguenther@suse.de>
8885
8886         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
8887         Do not output BLOCK_SUBBLOCKS.
8888         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
8889         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
8890         Re-construct BLOCK_SUBBLOCKS of parent block.
8891         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
8892         for BINFO_BASE_ACCESSES.
8893
8894 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
8895
8896         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
8897         (TREE_H): Include $(FLAGS_H) instead of options.h.
8898         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
8899         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8900         * common.opt (flag_complex_method, flag_evaluation_order,
8901         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
8902         Variable declarations.
8903         * configure.ac (tm_include_list): Include flags.h instead of options.h.
8904         * configure: Regenerate.
8905         * flags.h: Condition out contents for target libraries.  Include
8906         options.h at end of file.
8907         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
8908         flag_evaluation_order, flag_warn_unused_result): Remove.
8909         * gcc.c (main): Intialize global_options with global_options_init.
8910         * langhooks-def.h (lhd_init_options_struct): Declare.
8911         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8912         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
8913         * langhooks.c (lhd_init_options_struct): New.
8914         * langhooks.h (struct lang_hooks): Add init_options_struct.
8915         Update comment on init_options.
8916         * optc-gen.awk: Generate initializer for global_options_init, not
8917         global_options.
8918         * opth-gen.awk: Condition out structure declarations for target
8919         libraries.  Declare global_options_init.
8920         * opts-common.c: Include flags.h instead of options.h.
8921         * opts.c (flag_warn_unused_result): Remove.
8922         (read_cmdline_options): Take gcc_options parameters.  Pass them to
8923         read_cmdline_option.
8924         (initial_lang_mask, initial_min_crossjump_insns,
8925         initial_max_fields_for_field_sensitive,
8926         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
8927         (init_options_once): New.  Split out of decode_options.
8928         (init_options_struct): New.  Split out of decode_options.
8929         (decode_cmdline_options_to_array_default_mask): New.
8930         (default_options_optimization): New.  Split out of decode_options.
8931         (decode_options): Move most code to other functions.  Update call
8932         to read_cmdline_options.
8933         (finish_options): New.  Split out of decode_options.
8934         * opts.h (decode_options): Add gcc_options parameters.
8935         (init_options_once, init_options_struct,
8936         decode_cmdline_options_to_array_default_mask): New.
8937         * toplev.c (flag_complex_method, flag_ira_algorithm,
8938         flag_ira_region, flag_evaluation_order): Remove.
8939         (general_init): Use global_options_init for initial flag values
8940         for global_dc.
8941         (toplev_main): Call init_options_once, init_options_struct,
8942         lang_hooks.init_options_struct,
8943         decode_cmdline_options_to_array_default_mask and
8944         lang_hooks.init_option before decode_options.  Update arguments to
8945         decode_options.
8946         * tree.h: Include flags.h instead of options.h.
8947
8948 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8949
8950         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8951
8952 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8953
8954         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
8955         Delete.
8956         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8957         (FUNCTION_INCOMING_ARG): Delete.
8958         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
8959         (function_arg_slotno): Likewise.  Take bool arguments.
8960         (sparc_arg_partial_bytes): Update call to it.
8961         (function_arg): Rename to...
8962         (sparc_function_arg_1): ...this.  Take bool arguments.
8963         (sparc_function_arg, sparc_function_incoming_arg): New functions.
8964         (function_arg_advance): Rename to...
8965         (sparc_function_arg_advance): ...this.  Take bool argument.
8966         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
8967         (TARGET_FUNCTION_INCOMING_ARG): Define.
8968
8969 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8970
8971         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
8972         Delete.
8973         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8974         * config/bfin/bfin.c (function_arg_advance): Rename to...
8975         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
8976         and bool arguments.
8977         (function_arg): Rename to...
8978         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
8979         arguments.
8980         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8981
8982 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8983
8984         * config/score/score-protos.h (score_function_arg): Delete.
8985         (score_function_arg_advance): Delete.
8986         * config/score/score3.h (score3_function_arg_advance): Take a
8987         const_tree and a bool.
8988         (score3_function_arg): Likewise.
8989         * config/score/score7.h (score7_function_arg_advance): Likewise.
8990         (score7_function_arg): Likewise.
8991         * config/score/score3.c (score3_classify_arg): Likewise.
8992         (score3_function_arg_advance, score3_function_arg): Likewise.
8993         * config/score/score7.c (score7_classify_arg): Likewise.
8994         (score7_function_arg_advance, score7_function_arg): Likewise.
8995         * config/score/score.c (score_function_arg_advance): Likewise.
8996         (score_function_arg): Likewise.  De-const-ify `cum' argument.
8997         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8998
8999 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9000
9001         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
9002         (s390_function_arg): Delete.
9003         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9004         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
9005         (s390_function_arg_integer): Likewise.
9006         (s390_function_arg_advance): Make static.  Take a const_tree and
9007         a bool.
9008         (s390_function_arg): Likewise.
9009         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9010
9011 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9012
9013         * config/spu/spu-protos.h (spu_function_arg): Delete.
9014         * config/spu/spu.h (FUNCTION_ARG): Delete.
9015         (FUNCTION_ARG_ADVANCE): Move code to ...
9016         * config/spu/spu.c (spu_function_arg_advance): New function.
9017         (spu_function_arg): Make static.  Take a const_tree and a bool.
9018         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
9019         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9020
9021 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9022
9023         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9024
9025 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9026
9027         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
9028         (init_vn_nary_op_from_op): New function.
9029         (init_vn_nary_op_from_stmt): New function.
9030         (vn_nary_op_lookup_1): New function.
9031         (sizeof_vn_nary_op): New function.
9032         (alloc_vn_nary_op_noinit): New function.
9033         (alloc_vn_nary_op): New function.
9034         (vn_nary_op_insert_into): New function.
9035         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
9036         (vn_nary_op_lookup): Likewise.
9037         (vn_nary_op_lookup_stmt): Likewise.
9038         (vn_nary_op_insert_pieces): Likewise.
9039         (vn_nary_op_insert): Likewise.
9040         (vn_nary_op_insert_stmt): Likewise.
9041         (copy_nary): Likewise.
9042         (set_value_id_for_result): New function.
9043         (set_hashtable_value_ids): Call it.
9044
9045 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9046
9047         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9048         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
9049
9050 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9051
9052         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
9053         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9054
9055 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
9056
9057         PR debug/45656
9058         * cse.c (cse_extended_basic_block): Preserve cc0 info across
9059         debug isnsn.  Skip them when searching for cc0 setter.
9060         (set_live_p): Skip debug insns when searching for cc0 user.
9061
9062 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
9063
9064         PR debug/45673
9065         PR debug/45604
9066         PR debug/45419
9067         PR debug/45408
9068         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
9069         type of MEM_REFs to INTEGER_CSTs.
9070
9071 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
9072
9073         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
9074         m68hc11_print_operand_address.
9075
9076 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
9077
9078         * builtins.c (rewrite_call_expr): Move code to...
9079         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
9080         (rewrite_call_expr_array): New function.
9081         (fold_builtin_sprintf_chk_1): New function.
9082         (fold_builtin_sprintf_chk): Call it.
9083         (gimple_fold_builtin_sprintf_chk): Likewise.
9084         (fold_builtin_snprintf_chk_1): New function.
9085         (fold_builtin_snprintf_chk): Call it.
9086         (gimple_fold_builtin_snprintf_chk): Likewise.
9087         (gimple_rewrite_call_expr): Delete.
9088
9089 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9090
9091         * config.host: Update copyright year.
9092
9093 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9094
9095         * config.host (host_lto_plugin_soname): New shell variable.
9096         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
9097         * config.in: Regenerate.
9098         * configure: Regenerate.
9099         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
9100         LTO plugin shared library.
9101
9102 2010-10-07  Richard Henderson  <rth@redhat.com>
9103
9104         * target.h (enum unwind_info_type): Move ...
9105         * coretypes.h: ... here.
9106
9107 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
9108
9109         * doc/objc.texi (Fast enumeration protocol): Mention that
9110         'unsigned int' can also be used instead of 'unsigned long' in
9111         countByEnumeratingWithState:objects:count:.
9112
9113 2010-10-07  Martin Jambor  <mjambor@suse.cz>
9114
9115         * tree-sra.c (struct access): New field grp_assignment_write.
9116         (dump_access): Dump grp_assignment_write.
9117         (build_accesses_from_assign): Set grp_assignment_write.
9118         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
9119         (mark_read_status): Renamed to mark_rw_status, individual values
9120         renamed too.
9121         (analyze_access_subtree): Changed type of mark_write to
9122         mark_read_status.  Fixed propagating of mark_read and
9123         mark_write.  Changed benefit estimate.  Updated comment.
9124
9125 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
9126
9127         PR Tree-Vect/45847
9128         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
9129         check for vectype_out returned by get_vectype_for_scalar_type().
9130
9131 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
9132
9133         PR target/45805
9134         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
9135         constraint, add register specifier in instruction template.
9136         (neon_vec_pack_trunc_<mode>): Likewise.
9137         (neon_vec_<US>mult_<mode>): Add register specifier to
9138         instruction template.
9139
9140 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9141
9142         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
9143         cygwin2.o.
9144         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
9145         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
9146         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
9147         (cygwin2.o): Likewise.
9148         * config/i386/cygwin1.c: Delete file.
9149         * config/i386/cygwin2.c: Likewise.
9150         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
9151         make all {%!mno-cygwin} ones unconditional.
9152         (STARTFILE_SPEC): Likewise.
9153         (REAL_LIBGCC_SPEC): Likewise.
9154         (LIB_SPEC): Likewise.
9155         (CXX_WRAP_SPEC): Likewise.
9156         (LINK_SPEC): Likewise.
9157         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
9158         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
9159         (cygwin_gplusplus_include_dir): Delete now-unused array.
9160         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
9161         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
9162         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
9163         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
9164         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
9165         (cygwin_local_include_dir): Delete now-unused array.
9166         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
9167         (cygwin_cross_include_dir): Delete now-unused array.
9168         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
9169         (cygwin_tool_include_dir): Delete now-unused array.
9170         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
9171         (cygwin_standard_include_dir): Delete now-unused array.
9172         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
9173         (GEN_CVT_ARRAY): Delete now-unused macro definition.
9174         (cvt_to_mingw): Delete now-unused array.
9175         (mingw_scan): Remove prototype of deleted function.
9176         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
9177         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
9178         * doc/invoke.texi (-mcygwin): Don't document removed option.
9179         (-mno-cygwin): Likewise.
9180
9181 2010-10-07  Richard Guenther  <rguenther@suse.de>
9182
9183         * machmode.h (mode_for_vector): Declare.
9184         * stor-layout.c (mode_for_vector): New function, split out from ...
9185         (layout_type): ... here.
9186         * tree-vectorizer.h (current_vector_size): Declare.
9187         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
9188         mask vector type is available.
9189         (get_vectype_for_scalar_type): Rename to ...
9190         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
9191         size argument.
9192         (get_vectype_for_scalar_type): New wrapper around
9193         get_vectype_for_scalar_type_and_size using current_vector_size.
9194         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
9195         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
9196         of vect_analyze_loop here.
9197         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
9198         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
9199         to autodetect.
9200         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
9201         V8SF to V8SI conversion builtin.
9202
9203 2010-10-07  Richard Guenther  <rguenther@suse.de>
9204
9205         * target.def (autovectorize_vector_sizes): New target hook.
9206         * targhooks.c (default_autovectorize_vector_sizes): New function.
9207         * targhooks.h (default_autovectorize_vector_sizes): Declare.
9208         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
9209         Document.
9210         * doc/tm.texi: Update.
9211         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
9212         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9213
9214 2010-10-07  Richard Guenther  <rguenther@suse.de>
9215
9216         * target.def (units_per_simd_word): Rename to ...
9217         (preferred_simd_mode): ... this.  Return mode instead of size.
9218         * targhooks.c (default_units_per_simd_word): Rename to ...
9219         (default_preferred_simd_mode): ... this.  Return word_mode.
9220         * targhooks.h (default_preferred_simd_mode): Declare.
9221         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
9222         (arm_preferred_simd_mode): ... this.  Re-implement.
9223         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
9224         (ix86_preferred_simd_mode): ... this.  Re-implement.
9225         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
9226         (sparc_preferred_simd_mode): ... this.  Re-implement.
9227         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
9228         (mips_preferred_simd_mode): ... this.  Re-implement.
9229         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
9230         (rs6000_preferred_simd_mode): ... this.  Re-implement.
9231         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
9232         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
9233         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
9234         * doc/tm.texi: Update.
9235
9236 2010-10-07  Richard Guenther  <rguenther@suse.de>
9237
9238         PR middle-end/45869
9239         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
9240         of pointers.
9241
9242 2010-10-07  Alan Modra  <amodra@gmail.com>
9243
9244         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
9245         rather than sign extension by hand.
9246
9247 2010-10-07  Jan Hubicka  <jh@suse.cz>
9248
9249         PR middle-end/45926
9250         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
9251
9252 2010-10-07  Richard Guenther  <rguenther@suse.de>
9253
9254         PR bootstrap/45914
9255         * configure.ac: Fix typo.
9256         * configure: Regenerated.
9257
9258 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9259
9260         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
9261         define_builtin_std where it's unnecessary.
9262         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
9263
9264 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
9265
9266         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
9267         * doc/tm.texi.in: Regenerate.
9268         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
9269         * targhooks.c (default_class_likely_spilled_p): Don't use the
9270         CLASS_LIKELY_SPILLED_P macro.
9271
9272         * config/arm/arm.md: Update comment.
9273
9274 2010-10-06  Jan Hubicka  <jh@suse.cz>
9275
9276         * ipa.c (cgraph_remove_unreachable_nodes): External references can
9277         always be removed.
9278         (cgraph_externally_visible_p): We can not bring local comdats that
9279         are known to linker; fix handling of internal visibility.
9280         (function_and_variable_visibility): Likewise.
9281
9282 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9283
9284         PR rtl-optimization/45394
9285         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
9286         (struct rtx_subst_pair): Remove AFTER field.
9287         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
9288         (propagate_for_debug): Remove MOVE parameter and adjust.
9289         (try_combine): In the special case where I2 is a PARALLEL, combine only
9290         destinations of SETs and set I2SRC to the I2 source.
9291         Adjust calls to propagate_for_debug throughout.
9292         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
9293         insns.
9294
9295 2010-10-06  Olivier Hainque  <hainque@adacore.com>
9296
9297         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
9298         switch on insn codes as sequence of ifs.
9299
9300 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
9301
9302         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
9303         be UI_NONE for picochip.
9304         (picochip_option_override): Do not disable exception flags.
9305         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
9306         Declare.
9307
9308 2010-10-06  Richard Guenther  <rguenther@suse.de>
9309
9310         * Makefile.in (regmove.o): Depend on $(TARGET_H).
9311
9312 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9313
9314         Implemented fast enumeration for Objective-C.
9315         * c-parser.c (objc_could_be_foreach_context): New.
9316         (c_lex_one_token): Recognize RID_IN keyword in a potential
9317         Objective-C foreach context.
9318         (c_parser_declaration_or_fndef): Added parameter.  Accept
9319         Objective-C RID_IN keyword as terminating a declaration; in that
9320         case, return the declaration in the new parameter.
9321         (c_parser_extenral_declaration): Updated calls to
9322         c_parser_declaration_or_fndef.
9323         (c_parser_declaration_or_fndef): Same change.
9324         (c_parser_compound_statement_nostart): Same change.
9325         (c_parser_label): Same change.
9326         (c_parser_objc_methodprotolist): Same change.
9327         (c_parser_omp_for_loop): Same change.
9328         (c_parser_for_statement): Detect and parse Objective-C foreach
9329         statements.
9330         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
9331         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
9332         fast enumeration parsing code to turn off the c99 error but still
9333         perform checks on the loop declarations.
9334         * c-tree.h (check_for_loop_decls): Updated declaration.
9335         * doc/objc.texi: Document fast enumeration.
9336
9337 2010-10-06  Nick Clifton  <nickc@redhat.com>
9338
9339         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
9340         (MDR_REGNUM): Define.
9341         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
9342         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
9343         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
9344         (REGISTER_NAMES): Add MDR.
9345         (DWARF2_DEBUGGING_INFO): Define to 1.
9346         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9347         (F): New function.  Sets RTX_FRAME_RELATED_P.
9348         (mn10300_gen_multiple_store): Use F.
9349         (expand_prologue): Use F.  Use gen_movsf() to push floating
9350         point registers.
9351         (expand_epilogue): Use gen_movsf() to pop floating point registers.
9352         (mn10300_option_override): Disable combine stack adjust pass.
9353
9354 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
9355
9356         PR target/45901
9357         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
9358         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
9359
9360 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
9361
9362         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
9363         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
9364         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
9365         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
9366         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
9367         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
9368         BUILT_IN_TOUPPER): Mark as leaf.
9369
9370         PR middle-end/45838
9371         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9372         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9373         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9374         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9375         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
9376         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
9377         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
9378
9379 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
9380
9381         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
9382         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9383         (m68hc11_class_likely_spilled_p): New function.
9384
9385 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
9386
9387         * c-parser.c (c_parser_objc_method_definition): Updated comment.
9388
9389 2010-10-05  Jan Hubicka  <jh@suse.cz>
9390
9391         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
9392         Document.
9393         * opts.c (decode_options): Handle lto partitions.
9394         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
9395         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
9396
9397 2010-10-05  Jan Hubicka  <jh@suse.cz>
9398
9399         * cgraphunit.c (assemble_function): Output thunks and aliases before
9400         the function itself.
9401
9402 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
9403
9404         * config/picochip/picochip.c (picochip_option_override): Disable
9405         exception flags for picochip.
9406
9407 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
9408
9409         * opts-common.c (handle_option, handle_generated_option,
9410         read_cmdline_option, set_option): Add diagnostic_context
9411         parameter.  Update calls among these functions.
9412         (set_option): Don't use global_dc.
9413         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
9414         (decode_options): Pass global_dc to enable_warning_as_error.
9415         (common_handle_option): Pass global_dc to enable_warning_as_error.
9416         (enable_warning_as_error): Add diagnostic_context parameter.
9417         Document parameters.  Don't use global_dc.  Pass
9418         diagnostic_context parameter to handle_generated_option.
9419         * opts.h (set_option, handle_option, handle_generated_option,
9420         read_cmdline_option, enable_warning_as_error): Add
9421         diagnostic_context parameter.
9422         * Makefile.in (lto-opts.o): Update dependencies.
9423         * coretypes.h (struct diagnostic_context, diagnostic_context):
9424         Declare here.
9425         * diagnostic.h (diagnostic_context): Don't declare typedef here.
9426         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
9427         * langhooks-def.h (struct diagnostic_context): Don't declare here.
9428         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
9429         using diagnostic_context typedef.
9430         * langhooks.c (lhd_initialize_diagnostics): Declare using
9431         diagnostic_context typedef.
9432         * langhooks.h (struct diagnostic_context): Don't declare here.
9433         (initialize_diagnostics, print_error_function): Declare using
9434         diagnostic_context typedef.
9435         * lto-opts.c: Include diagnostic.h.
9436         (lto_reissue_options): Pass global_dc to set_option.  Pass
9437         DK_UNSPECIFIED not 0.
9438         * plugin.c (plugins_internal_error_function): Declare using
9439         diagnostic_context typedef.
9440         * plugin.h (struct diagnostic_context): Don't declare here.
9441         (plugins_internal_error_function): Declare using
9442         diagnostic_context typedef.
9443
9444 2010-10-05  Olivier Hainque  <hainque@adacore.com>
9445             Nicolas Roche  <roche@adacore.com>
9446
9447         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
9448         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
9449
9450 2010-10-05  Ira Rosen  <irar@il.ibm.com>
9451
9452         PR tree-optimization/45752
9453         * tree-vect-slp.c (vect_get_mask_element): Remove static
9454         variables, make them function arguments.
9455         (vect_transform_slp_perm_load): Pass new arguments to
9456         vect_get_mask_element.
9457
9458 2010-10-05  Richard Guenther  <rguenther@suse.de>
9459
9460         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
9461         (gimple_mod_pow2): Likewise.
9462         (gimple_mod_subtract): Likewise.
9463         (gimple_ic): Likewise.
9464         (gimple_stringop_fixed_value): Likewise.
9465         * tree-profile.c (tree_init_edge_profiler): Mark profile
9466         functions nothrow and leaf.
9467         (add_abnormal_goto_call_edges): Remove.
9468         (tree_gen_edge_profiler): Work on SSA form.
9469         (tree_gen_ic_profiler): Likewise.  Simplify.
9470         (do_tree_profiling): Update SSA form.
9471         (pass_tree_profile): Remove.
9472         (do_tree_profiling): Likewise.
9473         (gate_tree_profile_ipa): New function.
9474         (pass_ipa_tree_profile): New.
9475         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
9476         state of instrumented functions.
9477         * passes.c (init_optimization_passes): Remove early non-SSA
9478         inlining.  Move profiling after early optimizations.
9479         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
9480         (pass_ipa_early_inline): Likewise.
9481         * tree-pass.h (pass_ipa_early_inline): Remove.
9482         (pass_tree_profile): Likewise.
9483         (pass_ipa_tree_profile): Declare.
9484
9485 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9486             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
9487
9488         * config/s390/s390.c (z196_cost): New.
9489         (s390_handle_arch_option): Add -march=z196.
9490         (s390_option_override): Use the new cost function and use the z10
9491         defaults also for z196.
9492         (legitimate_reload_constant_p): Adjust comment.
9493         (legitimate_reload_fp_constant_p): New function.
9494         (s390_preferred_reload_class): Distingiush between FP and Int constants.
9495         (preferred_la_operand_p): Avoid la with index on z196.
9496         (s390_adjust_priority): Trigger also for z196.
9497         (s390_issue_rate): Issue rate for z196 is 3.
9498         (s390_z10_fix_long_loop_prediction): Rename to ...
9499         (s390_fix_long_loop_prediction): ... this.
9500         (s390_reorg): Apply the z10 adjustments also for z196.
9501         (s390_loop_unroll_adjust): Do this also for z196.
9502         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
9503         (enum processor_flags): Add PF_Z196.
9504         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
9505         (TARGET_CPU_Z196, TARGET_Z196): New macros.
9506         * config.gcc: Enable z196 for --with-arch.
9507         * config/s390/2817.md: New file.
9508         * config/s390/2084.md: New type for multiply and add.
9509         * config/s390/2097.md: Likewise.
9510         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
9511         (UNSPECV_ATOMIC_OP): New constants.
9512         (fmadddf, fmaddsf): New values for type attribute.
9513         (z196prop): New insn attribute.
9514         (cpu, cpu_facility): Add z196.
9515         (ATOMIC_Z196): New code iterator.
9516         (noxa): New code attribute.
9517         (gk): New mode attribute.
9518         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
9519         Support load zero for fp constants.
9520         (fixuns_truncdddi2, fixuns_trunctddi2)
9521         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
9522         for z196.
9523         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
9524         (popcounthi2, popcountqi2): New expander.
9525         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
9526         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
9527         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
9528         insn definition.
9529         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
9530         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
9531         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
9532         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
9533         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
9534         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
9535         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
9536         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
9537         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
9538         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
9539         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
9540         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
9541         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
9542         Support new z196 instructions.
9543
9544 2010-10-05  Richard Guenther  <rguenther@suse.de>
9545
9546         PR middle-end/45877
9547         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
9548         case where gimplification optimizes away the stmt.
9549
9550 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
9551
9552         PR debug/45849
9553         * var-tracking.c (strip_pointer_flags): New function.
9554         (emit_note_insn_var_location): If rtx_equal_p check failed,
9555         retry on locations simplified with simplify_replace_fn_rtx
9556         and strip_pointer_flags as its callback.
9557
9558 2010-10-04  Jan Hubicka  <jh@suse.cz>
9559
9560         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
9561         (can_refer_decl_in_current_unit_p): ... this one; reverse return
9562         value; handle comdats too.
9563         (canonicalize_constructor_val): Use it; handle function_decls
9564         correctly.
9565         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9566         * gimple.c (get_base_address): Accept all kinds of decls.
9567
9568 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9569
9570         * flags.h (g_switch_value, g_switch_set): Remove.
9571         * opts.c (g_switch_value, g_switch_set): Remove.
9572         * config/g.opt (G): Add Var(g_switch_value).
9573         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
9574         (alpha_option_override): Check global_options_set.x_g_switch_value
9575         instead of g_switch_set.
9576         (alpha_in_small_data_p): Remove cast in comparison with
9577         g_switch_value.
9578         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
9579         g_switch_value to unsigned HOST_WIDE_INT.
9580         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
9581         with g_switch_value.
9582         (frv_handle_option): Don't handle -G here.
9583         (frv_option_override): Check global_options_set.x_g_switch_value
9584         instead of g_switch_set.  Don't modify g_switch_set.
9585         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
9586         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
9587         g_switch_value to unsigned HOST_WIDE_INT.
9588         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
9589         (ia64_option_override): Check global_options_set.x_g_switch_value
9590         instead of g_switch_set.
9591         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
9592         Remove.
9593         (lm32_in_small_data_p): Remove cast in comparison with
9594         g_switch_value.
9595         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
9596         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
9597         HOST_WIDE_INT.
9598         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
9599         (m32r_init): Check global_options_set.x_g_switch_value instead of
9600         g_switch_set.
9601         (m32r_in_small_data_p): Remove cast in comparison with
9602         g_switch_value.
9603         (m32r_file_start): Format g_switch_value with %d.
9604         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
9605         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
9606         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
9607         handle -G here.
9608         (microblaze_option_override): Check
9609         global_options_set.x_g_switch_value instead of g_switch_set.
9610         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
9611         (mips_option_override): Check global_options_set.x_g_switch_value
9612         instead of g_switch_set.
9613         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
9614         (rs6000_file_start): Format g_switch_value with %d.
9615         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
9616         comparisons with g_switch_value.
9617         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
9618         global_options_set.x_g_switch_value instead of g_switch_set.
9619         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9620         global_options_set.x_g_switch_value instead of g_switch_set.
9621         * config/score/score.c (score_handle_option): Don't handle -G here.
9622         * config/score/score3.c (score3_option_override): Check
9623         global_options_set.x_g_switch_value instead of g_switch_set.
9624         * config/score/score7.c (score7_option_override): Check
9625         global_options_set.x_g_switch_value instead of g_switch_set.
9626
9627 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
9628
9629         * common.opt (fira-coalesce): Remove.
9630
9631         * doc/invoke.texi (flag_ira_coalesce): Remove.
9632
9633         * ira-color.c (allocno_coalesced_p): Move before
9634         copy_freq_compare_func.
9635         processed_coalesced_allocno_bitmap): Ditto.
9636         (update_conflict_hard_regno_costs): Don't use
9637         ALLOCNO_FIRST_COALESCED_ALLOCNO.
9638         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
9639         (assign_hard_reg): Assume no coalesced allocnos.
9640         (get_coalesced_allocnos_attributes): Remove.
9641         (bucket_allocno_compare_func): Assume no coalesced allocnos.
9642         (push_allocno_to_stack): Ditto.
9643         (remove_allocno_from_bucket_and_push): Use
9644         ira_print_expanded_allocno instead of print_coalesced_allocno.
9645         (push_allocnos_to_stack): Assume uncoalesced allocnos.
9646         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
9647         all_conflicting_hard_regs.
9648         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
9649         (setup_allocno_left_conflicts_size): Ditto.
9650         (put_allocno_into_bucket): Ditto.
9651         (copy_freq_compare_func): Remove.
9652         (copy_freq_compare_func, merge_allocnos): Move before
9653         coalesced_pseudo_reg_freq_compare.
9654         coalesced_allocno_conflict_p): Ditto.
9655         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
9656         parameter.  Assume it true.
9657         (color_allocnos): Assume uncoalesced allocnos.  Use
9658         ira_print_expanded_allocno instead of print_coalesced_allocno.
9659         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
9660         parameter.
9661
9662         * ira.c: Remove comment about coalescing.
9663
9664 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9665
9666         * config/mips/mips.h (target_flags_explicit): Declare for
9667         GENERATOR_FILE.
9668
9669 2010-10-04  Andi Kleen  <ak@linux.intel.com>
9670
9671         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
9672         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
9673
9674 2010-10-04  Matthias Klose  <doko@ubuntu.com>
9675
9676         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
9677         multilib osdirname if it exists.
9678         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
9679
9680 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
9681
9682         PR middle-end/45876
9683         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
9684         arg0's type or its unsigned counterpart as utype.  Convert
9685         arg1 to utype unconditionally.
9686
9687 2010-10-04  Julian Brown  <julian@codesourcery.com>
9688
9689         * expr.c (expand_assignment): Add assertion to prevent emitting
9690         null rtx for movmisalign pattern.
9691         (expand_expr_real_1): Likewise.
9692         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
9693         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
9694         (arm_vector_alignment_reachable): New.
9695         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
9696         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
9697         (arm_print_operand): Include alignment qualifier in %A.
9698         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
9699         (movmisalign<mode>): New expander.
9700         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
9701         insn patterns.
9702
9703 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9704
9705         * optc-gen.awk: Define global_options_set.  Don't define
9706         target_flags_explicit.
9707         * opth-gen.awk: Declare global_options_set.  Define
9708         target_flags_explicit as macro.
9709         * opts-common.c (handle_option): Take opts_set and generated_p
9710         parameters.
9711         (handle_generated_option, read_cmdline_option, set_option): Take
9712         opts_set parameter.
9713         (set_option): Use opts_set instead of hardcoding target_flags and
9714         target_flags_explicit.
9715         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
9716         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
9717         flag_value_profile_transformations_set, flag_peel_loops_set,
9718         flag_branch_probabilities_set, flag_inline_functions_set,
9719         flag_ipa_cp_set, flag_ipa_cp_clone_set,
9720         flag_predictive_commoning_set, flag_unswitch_loops_set,
9721         flag_gcse_after_reload_set): Remove.
9722         (common_handle_option, lang_handle_option, target_handle_option):
9723         Take opts_set parameter.  Assert that it is &global_options_set.
9724         (common_handle_option): Don't set _set variables.  Check opts_set
9725         instead of such variables.
9726         (enable_warning_as_error): Pass &global_options_set to
9727         handle_generated_option.
9728         * opts.h (cl_option_handler_func.handler, set_option,
9729         handle_option, handle_generated_option, read_cmdline_option): Add
9730         opts_set parameters.
9731         (handle_option): Add generated_p parameter.
9732         * config/i386/i386.c (ix86_function_specific_save,
9733         ix86_function_specific_restore): Updat for renaming of
9734         target_flags_explicit field.
9735         * config/i386/i386.opt (target_flags_explicit): Rename to
9736         ix86_target_flags_explicit.
9737         * config/ia64/ia64.c (ia64_override_options_after_change): Check
9738         global_options_set.x_flag_selective_scheduling and
9739         global_options_set.x_flag_selective_scheduling2, not
9740         sel_sched_switch_set.
9741         * flags.h (sel_sched_switch_set,
9742         flag_speculative_prefetching_set): Remove.
9743         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
9744         that it is &global_options_set.
9745         (process_command): Pass &global_options_set to read_cmdline_option.
9746         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
9747         set_option.
9748         * toplev.c (target_flags_explicit): Remove.
9749
9750 2010-10-04  Jan Hubicka  <jh@suse.cz>
9751
9752         PR middle-end/45871
9753         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
9754         use get_ref_base_and_offset to handle references.
9755         (fold_const_aggregate_ref): Update.
9756
9757 2010-10-04  Martin Jambor  <mjambor@suse.cz>
9758
9759         PR tree-optimization/45572
9760         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
9761         ipa_check_create_node_params.
9762         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
9763
9764 2010-10-04  Yao Qi  <yao@codesourcery.com>
9765
9766         * doc/passes.texi: Clean up.
9767
9768 2010-10-03  Ian Lance Taylor  <iant@google.com>
9769
9770         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
9771         referring to a field using a typedef name.
9772         (find_anonymous_field_with_type): New static function.
9773         (convert_to_anonymous_field): New static function.
9774         (convert_for_assignment): If -fplan9-extensions, permit converting
9775         pointer to struct to pointer to anonymous field.
9776         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
9777         (is_duplicate_field): New static function.
9778         (detect_field_duplicates_hash): If -fplan9-extensions, check for
9779         typedef names duplicating field names.
9780         (detect_field_duplicates): Likewise.
9781         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
9782         (C Dialect Options): Document -fplan9-extensions.
9783         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
9784
9785 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9786
9787         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
9788         revision 164914.
9789         (vect_create_data_ref_ptr): Likewise.
9790         * tree-vect-stmts.c (vectorizable_store): Likewise.
9791         (perm_mask_for_reverse): Likewise.
9792         (reverse_vec_elements): Likewise.
9793         (vectorizable_load): Likewise.
9794
9795 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9796
9797         * cppbuiltin.c: New file.
9798         * cppbuiltin.h: New file.
9799         * Makefile.in: Take into account cppbuiltin.{h,c}.
9800
9801 2010-10-03  Andi Kleen  <ak@linux.intel.com>
9802
9803         * lto-cgraph.c (input_cgraph): Check for missing sections.
9804
9805 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
9806
9807         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
9808         to nonimmediate_operand.  Force operand 2 to register when allowed.
9809         (*<shiftrt_insn><mode>3_mask): Ditto.
9810         (*<rotate_insn><mode>3_mask): Ditto.
9811
9812 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9813
9814         PR tree-optimization/45720
9815         PR tree-optimization/45764
9816         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9817         Don't accept backwards consecutive accesses.
9818         (vect_create_data_ref_ptr): Disallow negative steps.
9819
9820         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
9821         (perm_mask_for_reverse): Removed.
9822         (reverse_vec_elements): Likewise.
9823         (vectorizable_load): Don't handle negative steps.
9824
9825 2010-10-02  Jan Hubicka  <jh@suse.cz>
9826
9827         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
9828         call destination is known.
9829
9830 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9831
9832         PR target/45820
9833         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
9834         earlier.
9835
9836 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9837
9838         * doc/install.texi (Configuration): Document build_configargs,
9839         host_configargs, target_configargs.
9840
9841 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
9842
9843         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
9844         (*<shiftrt_insn><mode>3_mask): Ditto.
9845         (*<rotate_insn><mode>3_mask): Ditto.
9846
9847 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
9848
9849         PR tree-optimization/44716
9850         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9851         (HOT_TEXT_SECTION_NAME): Define.
9852
9853 2010-10-01  Nick Clifton  <nickc@redhat.com>
9854
9855         * common.opt: Add -fcombine-stack-adjustments.
9856         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
9857         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
9858         flag_combine_stack_adjustments.
9859         * doc/invoke.texi: Document the new option.
9860
9861 2010-10-01  Richard Guenther  <rguenther@suse.de>
9862
9863         PR tree-optimization/45854
9864         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
9865
9866 2010-10-01  Anthony Green  <green@moxielogic.com>
9867
9868         * config.gcc: Fix moxie-*-rtems* configuration.
9869
9870 2010-10-01  Richard Guenther  <rguenther@suse.de>
9871
9872         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
9873         (gen_decl_die): Likewise.
9874
9875 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9876
9877         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
9878         to the function code for SPU MD builtins.
9879         (spu_expand_builtin): Update.
9880         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
9881
9882 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9883
9884         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
9885         sjlj_except_unwind_info.
9886
9887 2010-10-01  Tristan Gingold  <gingold@adacore.com>
9888
9889         * configure.ac: Define the nop insn for avr*-*-*
9890         * configure: Regenerate.
9891
9892 2010-10-01  Alan Modra  <amodra@gmail.com>
9893
9894         PR target/45807
9895         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
9896         extend toc_restore_insn.
9897
9898 2010-09-30  Richard Guenther  <rguenther@suse.de>
9899
9900         PR tree-optimization/43959
9901         * function.c (gimplify_parameters): Use create_tmp_reg instead of
9902         create_tmp_var.
9903
9904 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
9905
9906         * config/sh/sh.c (sh_expand_prologue): Set
9907         current_function_static_stack_size.
9908
9909 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9910
9911         * configure.ac: Check for Solaris 8 ld with .hidden support.
9912         * configure: Regenerate.
9913
9914 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9915
9916         PR middle-end/45758
9917         * graphite.c (graphite_initialize): Call scev_reset.
9918
9919 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9920
9921         * sese.h (scev_analyzable_p): Return false for real or floating
9922         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
9923
9924 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9925
9926         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
9927         and ps.
9928         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
9929         domain.
9930         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
9931         Do not allocate ub_expr, it is passed in initialized.
9932
9933 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9934
9935         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
9936         (build_cloog_prog): Dump CLooG input file when
9937         flag_graphite_dump_cloog is set.  This is disabled on trunk.
9938         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
9939
9940 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9941
9942         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
9943         verify_dominators for CDI_POST_DOMINATORS.
9944         * sese.h: Remove comment about CDI_POST_DOMINATORS.
9945         (recompute_all_dominators): Remove call to free_dominance_info
9946         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
9947         for CDI_POST_DOMINATORS.
9948
9949 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9950
9951         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
9952         over pbb_dim_iter_domain.
9953
9954 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9955
9956         * graphite-flattening.c: Fix comments.
9957
9958 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9959
9960         * Makefile.in (OBJS-common): Add graphite-flattening.o.
9961         (graphite-flattening.o): New rule.
9962         * common.opt (floop-flatten): New flag.
9963         * doc/invoke.texi (-floop-flatten): Documented.
9964         * graphite-flattening.c: New.
9965         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
9966         * graphite-poly.h (flatten_all_loops): Declared.
9967         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
9968         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
9969         is set, also set flag_graphite.
9970
9971 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9972
9973         * graphite-poly.c (cloog_checksum): New.
9974         * graphite-poly.h (cloog_checksum): Declared.
9975
9976 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9977
9978         * graphite-poly.c (pbb_number_of_iterations): Removed.
9979         (pbb_number_of_iterations_at_time): Correctly compute the number
9980         of iterations in the transformed loop.
9981         * graphite-poly.h (pbb_number_of_iterations): Removed.
9982
9983 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9984
9985         * graphite-poly.h (lst_update_scattering_seq): Removed.
9986         (lst_update_scattering): Correctly handle outermost loop dewey
9987         renumbering.
9988
9989 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9990
9991         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
9992         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
9993         * graphite-poly.h (lst_niter_for_loop): New.
9994
9995 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9996
9997         * graphite-poly.c (apply_poly_transforms): Do not abort when the
9998         transform read from disk is not legal.  Call fatal_error instead.
9999
10000 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10001
10002         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
10003         (print_scop_header): Removed.  Inlined in the only call place...
10004         (print_scop): ... here.
10005
10006 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10007
10008         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
10009
10010 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10011
10012         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
10013
10014 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10015
10016         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
10017         (dot_deps_stmt): Same.
10018         * graphite-poly.c (dot_lst): Same.
10019
10020 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10021
10022         * graphite-blocking.c (scop_do_strip_mine): Do not call
10023         graphite_legal_transform.
10024         (scop_do_block): Same.
10025
10026 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
10027
10028         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
10029         description.
10030
10031 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10032
10033         * tree-scalar-evolution.c (instantiate_array_ref): New.
10034         (instantiate_scev_r): Also handle ARRAY_REFs.
10035
10036 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10037
10038         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10039         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
10040         RESULT_DECL, and FIELD_DECL.  Return false for an
10041         SSA_NAME_IS_DEFAULT_DEF.
10042         (compute_scalar_evolution_in_loop): Do not further analyze the
10043         scalar evolution when no_evolution_in_loop_p returns true.
10044
10045 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10046
10047         * tree-chrec.h (evolution_function_is_affine_p): Do not check
10048         whether CHREC_LEFT is invariant.  A function is affine when
10049         CHREC_RIGHT is invariant.
10050
10051 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10052
10053         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
10054         is_gimple_reg.
10055         (rewrite_degenerate_phi): Same.
10056         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
10057
10058 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
10059
10060         * graphite-scop-detection.c (graphite_can_represent_scev,
10061         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
10062         graphite_can_represent_loop): Remove outermost_loop.
10063
10064 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10065
10066         PR middle-end/45229
10067         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
10068         handle GIMPLE_CALLs with no LHS.
10069
10070 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10071
10072         * graphite-poly.c (init_graphite_out_file): New.
10073         (init_graphite_in_file): New.
10074         (apply_poly_transforms): Updated to enable reading and writing of
10075         multiple scop files.
10076
10077 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
10078
10079         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
10080         redundant checks.
10081
10082 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10083
10084         * graphite-clast-to-gimple.c (precision_for_value): Adjust
10085         computation of precision by 1.
10086
10087 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10088
10089         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
10090         (openscop_read_polyhedron_matrix): New.
10091         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
10092         (openscop_read_N_int): Same.
10093         * graphite-poly.c (openscop_read_N_int): New.
10094         (openscop_read_one_int): New.
10095         (openscop_read_N_string): New.
10096         (openscop_read_one_string): New.
10097         (openscop_read_powerset_matrix): New.
10098         (graphite_read_transforms): Remove.
10099         (graphite_read_scatt): New.
10100         (graphite_read_scop_file): New.
10101         (apply_poly_transforms): Updated to call graphite_read_scop_file.
10102
10103 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10104
10105         * graphite-poly.c: Change include order.
10106
10107 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10108
10109         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
10110         (cloog_matrix_nrows): New.
10111
10112 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10113
10114         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
10115         from matrix lines.
10116         * graphite-poly.c (openscop_print_scattering_function_1): Same.
10117         (print_scattering_function_1): Same.
10118         (openscop_print_pbb_domain): Same.
10119         (openscop_print_scop_context): Same.
10120         (print_scop_context): Same.
10121
10122 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
10123
10124         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
10125         (openscop_print_pdr_polyhedron): Print pph.
10126
10127 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10128
10129         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
10130         priority signed types.
10131
10132 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10133
10134         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
10135         the call to lang_hooks.types.type_for_size.  Call
10136         build_nonstandard_integer_type.
10137
10138 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10139
10140         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
10141         (openscop_print_polyhedron_matrix): New.
10142         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
10143         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
10144         (openscop_print_pdr_powerset): New.
10145         (openscop_print_powerset_matrix): New.
10146         (openscop_print_scattering_function_1): New.
10147         (print_scattering_function): Add support for scattering names and
10148         OpenScop format.
10149         (graphite_write_transforms): Remove.
10150         (print_pdr_access_layout): Updated to support OpenScop format.
10151         (print_pdr): Same.
10152         (openscop_print_pbb_domain): New.
10153         (print_pbb_body): Added a parameter to allow indicating that pbb_body
10154         is not provided.
10155         (print_pbb): Updated to call the new print_pbb_body.
10156         (openscop_print_scop_context): New.
10157         (print_scop_header): New.
10158         (print_scop): Updated to call print_scop_header.
10159         * graphite-poly.h: Document OpenScop format.
10160
10161 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
10162
10163         * config/cris/m32c.c (cris_memory_move_cost): New.
10164         (cris_register_move_cost): Make static. Change arguments type from
10165         enum reg_class to reg_class_t.
10166         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10167         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10168         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
10169
10170 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
10171
10172         PR target/45843
10173         * config/i386/i386.c (ix86_gimplify_va_arg): Use
10174         INTVAL (XEXP (slot, 1)) as prev_size.
10175
10176 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
10177
10178         PR target/45837
10179         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
10180         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
10181         defined.
10182         * config/rs6000/option-defaults.h (toplevel): Change #if
10183         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
10184         global option changes.
10185
10186 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
10187
10188         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
10189
10190         PR tree-optimization/31261
10191         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
10192         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
10193
10194 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10195
10196         PR bootstrap/45796
10197         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
10198         special-casing for generators and turn into ...
10199         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
10200         rule, for better error messages in case of toplevel dependency errors.
10201         (genprog): Add hooks, rename to ...
10202         (genprogerr): ... this, and let genprog also contain check,
10203         checksum, condmd.
10204         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
10205         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
10206         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
10207
10208 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
10209             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10210
10211         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
10212         for GMP, MPFR and MPC.
10213
10214 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10215
10216         * config/sparc/sparc.opt (mimpure-text): Move ...
10217         * config/sol2.opt: ... here.  Correct description.
10218         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
10219         * doc/invoke.texi (Option Summary, SPARC Options): Move
10220         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
10221         (Option Summary, Solaris 2 Options): ... here.
10222         (Submodel Options, Solaris 2 Options): New menu entry.
10223         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
10224         (Solaris 2 Options): ... here.
10225
10226 2010-09-30  Michael Eager  <eager@eagercon.com>
10227
10228         * extend.texi (interrupt_handler): Add MicroBlaze to list.
10229         (save_volatiles): Describe option for MicroBlaze.
10230         * invoke.texi: Add MicroBlaze Options.
10231         * contrib.texi: Add acknowledgment.
10232         * md.texi: Add MicroBlaze d and z constraints.
10233         * install.texi: Add microblaze-*-elf.
10234         * configure.ac: Add microblaze-*-* to target list.
10235         * configure: Regenerate.
10236         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
10237         * config/microblaze/microblaze-protos.h: New.
10238         * config/microblaze/crti.s: New.
10239         * config/microblaze/predicates.md: New.
10240         * config/microblaze/linux.h: New.
10241         * config/microblaze/microblaze.md: New.
10242         * config/microblaze/constraints.md: New.
10243         * config/microblaze/crtn.s: New.
10244         * config/microblaze/microblaze.opt: New.
10245         * config/microblaze/microblaze-c.c: New.
10246         * config/microblaze/t-microblaze: New.
10247         * config/microblaze/microblaze.c: New.
10248         * config/microblaze/microblaze.h: New.
10249
10250 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
10251
10252         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
10253         parse @optional/@required and set the flags as appropriate.
10254
10255 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
10256
10257         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
10258
10259 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * opt-functions.awk (static_var): Update comment.
10262         (var_ref): Return offsetof expression or -1, not variable address.
10263         * optc-gen.awk: Generate structure field initializers instead of
10264         static variables.  Expect -1 for missing variables instead of null
10265         pointer.  Add gcc_options parameters to generated functions.
10266         * opth-gen.awk: Generate structure fields for static variables.
10267         Add gcc_options parameters to generated functions.
10268         * common.opt (optimize, optimize_size): Add variables.
10269         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
10270         &global_options to cl_target_option_restore.
10271         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
10272         &global_options to cl_optimization_restore, cl_target_option_save
10273         and cl_target_option_restore.
10274         (ix86_set_current_function): Pass &global_options to
10275         cl_target_option_restore.
10276         * config/pdp11/pdp11.h (optimize): Remove.
10277         * config/rs6000/rs6000.h (optimize): Remove.
10278         * config/sh/sh.h (optimize): Remove.
10279         * config/xtensa/xtensa.h (optimize): Remove.
10280         * coretypes.h (struct gcc_options): Declare.
10281         * diagnostic.c (diagnostic_initialize): Initialize
10282         context->option_state.
10283         (diagnostic_report_diagnostic): Pass option_state to
10284         option_enabled hook.
10285         * diagnostic.h (diagnostic_context.option_enabled): Add void *
10286         parameter.
10287         (diagnostic_context.option_state): New field.
10288         * final.c (final_start_function, final, final_scan_insn): Rename
10289         optimize parameter to optimize_p.
10290         * flags.h (optimize, optimize_size): Remove.
10291         * function.c (invoke_set_current_function_hook): Pass
10292         &global_options to cl_optimization_restore.
10293         * gcc.c (driver_handle_option): Take gcc_options parameter.
10294         Assert that it is &global_options.
10295         (process_command): Pass &global_options to read_cmdline_option.
10296         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
10297         option_enabled.
10298         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
10299         &global_options to set_option.
10300         * opts-common.c (handle_option, handle_generated_option,
10301         read_cmdline_option, set_option): Take explicit gcc_options
10302         parameters.  Use option_flag_var.
10303         (option_flag_var): New.
10304         * opts.c (common_handle_option, lang_handle_option,
10305         target_handle_option): Take gcc_options parameter.  Assert that it
10306         is &global_options.
10307         (read_cmdline_options): Pass &global_options to read_cmdline_option.
10308         (print_filtered_help): Use option_flag_var.  Pass &global_options
10309         to option_enabled.
10310         (common_handle_option): Use option_flag_var.
10311         (option_enabled): Take opts parameter.  Use option_flag_var.
10312         (get_option_state): Take gcc_options parameter.  Use
10313         option_flag_var.  Pass gcc_options parameter to option_enabled.
10314         (enable_warning_as_error): Pass &global_options to
10315         handle_generated_option.
10316         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
10317         (cl_option_handler_func.handler): Take gcc_options parameter.
10318         (option_enabled, get_option_state, set_option, handle_option,
10319         handle_generated_option, read_cmdline_option): Take gcc_options
10320         parameters.
10321         * toplev.c (optimize, optimize_size): Remove.
10322         (print_switch_values): Pass &global_options to option_enabled.
10323         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
10324         to get_option_state.
10325         (general_init): Initialize global_dc->option_state.
10326         * tree.c (build_optimization_node): Pass &global_options to
10327         cl_optimization_save.
10328         (build_target_option_node): Pass &global_options to
10329         cl_target_option_save.
10330
10331 2010-09-30  Martin Jambor  <mjambor@suse.cz>
10332
10333         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
10334         zero sized bit-fields.
10335
10336 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
10337
10338         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
10339         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
10340         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
10341         (c_parser_objc_class_declaration): Same change.
10342         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
10343         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10344         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
10345         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
10346         and RID_AT_PUBLIC instead of RID_PUBLIC.
10347         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
10348         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10349
10350 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
10351
10352         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
10353         Add links to current providers of packages for Solaris and IRIX.
10354
10355 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10356
10357         Merge from 'apple/trunk' branch on FSF servers.
10358         * c-parser.c: Applied change originally in c-parse.in.
10359
10360         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
10361
10362         Radar 4281748
10363         * c-decl.c (start_decl): Check for redeclaration of class name.
10364         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
10365
10366 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
10367
10368         * config/ia64/ia64.c (ia64_builtin_decl): New.
10369         (TARGET_BUILTIN_DECL): Define.
10370         (ia64_builtins): New.
10371         (ia64_init_builtins): Save decls in ia64_builtins.
10372
10373 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
10374
10375         PR target/40457
10376         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
10377         (move2add_use_add3_insn): Likewise.
10378         (reload_cse_move2add): Likewise.
10379         * rtlanal.c (get_full_rtx_cost): New function.
10380         * rtl.h (struct full_rtx_costs): New.
10381         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
10382         costs_add_n_insns): New inline functions.
10383         (get_full_rtx_cost): Declare.
10384
10385         PR c/45054
10386         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
10387         invariants.  Check for reg_equiv_invariant.
10388         (reload): Assert that spilled_pseudos is empty when returning.
10389
10390 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
10391
10392         * config/i386/mingw32.h (TARGET_64BIT): replaced by
10393         TARGET_64BIT_DEFAULT in #if check.
10394
10395 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
10396
10397         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
10398
10399 2010-09-29  Mike Stump  <mikestump@comcast.net>
10400
10401         * config/darwin.h (flag_mkernel): Remove.
10402         (flag_apple_kext): Likewise.
10403
10404 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10405             Jack Howarth  <howarth@bromo.med.uc.edu>
10406
10407         * config/darwin.opt (undefined): Add.
10408
10409 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10410
10411         PR testsuite/45664
10412         * configure.ac: Add --enable-indirect-function option.
10413         * config.gcc: Add default_gnu_indirect_function.
10414         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
10415         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
10416         * varasm.c (do_assemble_alias): Adjust for macro name change.
10417         * configure: Rebuilt.
10418         * doc/install.texi: Document --enable-indirect-function.
10419
10420 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10421
10422         * doc/options.texi (Variable, Var, Init): Update documentation
10423         without reference to VarExists.
10424         (VarExists): Remove.
10425         * common.opt, config/i386/i386.opt, config/linux.opt,
10426         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
10427         Don't use VarExists.
10428
10429 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10430
10431         * optc-gen.awk: Generate global_options initializer instead of
10432         individual variables.  Add x_ prefix to names of structure members.
10433         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
10434         names of structure members.
10435         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10436         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
10437         * doc/tm.texi: Regenerate.
10438         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10439         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10440         * c-parser.c (disable_extension_diagnostics,
10441         restore_extension_diagnostics): Update names of cpp_options members.
10442         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10443         * common.opt (fcompare-debug-second): Don't use Var.
10444         * config/alpha/alpha.h (target_flags): Remove.
10445         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10446         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10447         * config/bfin/bfin.h (target_flags): Remove.
10448         * config/cris/cris.h (target_flags): Remove.
10449         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
10450         cl_target_option members.
10451         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
10452         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
10453         ix86_can_inline_p): Update names of cl_target_option members.
10454         * config/i386/i386.h (ix86_isa_flags): Remove.
10455         * config/lm32/lm32.h (target_flags): Remove.
10456         * config/mcore/mcore.h (mcore_stack_increment): Remove.
10457         * config/mcore/mcore.md (addsi3): Remove extern declaration of
10458         flag_omit_frame_pointer.
10459         * config/mep/mep.h (target_flags): Remove.
10460         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10461         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10462         * config/mmix/mmix.h (target_flags): Remove.
10463         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
10464         flag_expensive_optimizations): Remove.
10465         * config/s390/s390.h (flag_pic): Remove.
10466         * config/score/score-conv.h (target_flags): Remove.
10467         * config/sh/sh.h (sh_fixed_range_str): Remove.
10468         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
10469         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
10470         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10471         * diagnostic.c (diagnostic_initialize): Update names of
10472         diagnostic_context members.
10473         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
10474         warn_system_headers.
10475         (diagnostic_report_warnings_p): Update for new names.
10476         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
10477         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
10478         HARD_FRAME_POINTER_IS_ARG_POINTER.
10479         * flags.h (flag_compare_debug): Declare.
10480         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10481         * opts.c (flag_compare_debug): Define.
10482         (common_handle_option): Update names of diagnostic_context
10483         members.  Handle -fcompare-debug-second.
10484         (fast_math_flags_struct_set_p): Update names of cl_optimization
10485         members.
10486         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10487         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10488         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10489         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10490         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10491         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10492         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
10493         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10494         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10495
10496 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
10497
10498         * config/picochip/picochip.c (picochip_output_internal_label):
10499         This function can now be called for debug CFI labels, which can come
10500         in the middle of a vliw instruction.  Postpone until end of vliw.
10501
10502 2010-09-29  Richard Guenther  <rguenther@suse.de>
10503
10504         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
10505         (DECL_FILE_SCOPE_P): Use it.
10506         (TYPE_FILE_SCOPE_P): New macro.
10507
10508 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10509
10510         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
10511         a CPP_NAME which is a reserved word, clearly separate cases for
10512         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
10513
10514 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10515
10516         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
10517         token->value with the canonical spelling.  Do exactly like C and
10518         C++ and leave it as it is.
10519
10520 2010-09-28  Richard Henderson  <rth@redhat.com>
10521
10522         * config/alpha/alpha.c (alpha_builtins): New.
10523         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
10524         (alpha_builtin_function): New.
10525         (alpha_add_builtins, alpha_init_builtins): Use it.
10526
10527 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
10528
10529         * doc/standards.texi (Standards): Expanded the section on
10530         Objective-C and Objective-C++.
10531
10532 2010-09-28  DJ Delorie  <dj@redhat.com>
10533
10534         PR target/45800
10535         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
10536         volatile MEMs.
10537
10538 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
10539
10540         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
10541         attributes on methods.
10542          (c_parser_objc_method_definition): Handle attributes.
10543         (c_parser_objc_methodproto): Likewise.
10544         (c_parser_objc_maybe_method_attributes): New.
10545         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
10546         missing definition, similar to that in ObjC++.
10547
10548 2010-09-28  Richard Henderson  <rth@redhat.com>
10549
10550         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
10551         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
10552         (CONFIG_SJLJ_EXCEPTIONS): Remove.
10553         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
10554         (STACK_CHECK_PROTECT): Likewise.
10555         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
10556         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
10557         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
10558         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
10559         (dwarf2out_assembly_start): Likewise.
10560         * except.c (init_eh): Use targetm.except_unwind_info.
10561         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
10562         (output_one_function_exception_table): Likewise.
10563         * final.c: Unconditionally include dwarf2out.h.
10564         (final_start_function): Unconditionally call dwarf2out routines.
10565         (final_end_function, final_scan_insn): Likewise.
10566         * function.c (expand_function_end): Use targetm.except_unwind_info.
10567         * opts.c (decode_options): Use targetm.except_unwind_info.
10568         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
10569         * target.def (debug_unwind_info, except_unwind_info): New.
10570         * target.h (enum unwind_info_type): New.
10571         * targhooks.c (default_debug_unwind_info): New.
10572         (default_except_unwind_info): New.
10573         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
10574         * targhooks.h: Declare them.
10575         * tree-tailcall.c: Include "target.h"
10576         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
10577         * Makefile.in (tree-tailcall.o): Update.
10578         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
10579         (lhd_gcc_personality): Likewise.
10580
10581         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
10582         (TARGET_EXCEPT_UNWIND_INFO): New.
10583         (DWARF2_UNWIND_INFO): Update.
10584         (TARGET_DEBUG_UNWIND_INFO): New.
10585         * doc/tm.texi: Rebuild.
10586
10587         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
10588         targetm.except_unwind_info.
10589
10590         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
10591         (arm_except_unwind_info): New.
10592         (arm_compute_func_type): Use it.
10593         (arm_expand_prologue, thumb_pushpop): Likewise.
10594         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
10595         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
10596         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
10597         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
10598         (DWARF2_UNWIND_INFO): Remove.
10599         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
10600         (ARM_EABI_UNWIND_TABLES): Remove.
10601
10602         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
10603         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
10604         (ia64_except_unwind_info): New.
10605         (ia64_output_function_prologue): Use it.
10606         (ia64_add_bundle_selector_before): Likewise.
10607         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
10608         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
10609         (TARGET_UNWIND_INFO): Remove.
10610
10611         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
10612
10613 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
10614
10615         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
10616         (c_parser_objc_protocol_definition): Likewise.
10617         (c_parser_external_declaration): Provide dummy attribute arguments.
10618         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
10619         (c_parser_objc_class_definition): Handle attributes.
10620         (c_parser_objc_protocol_definition): Likewise.
10621
10622 2010-09-28  Tobias Burnus  <burnus@net-b.de>
10623
10624         PR fortran/40569
10625         PR fortran/40568
10626         * toplev.h (save_decoded_options, save_decoded_options_count):
10627         New global variables.
10628         * toplev.c (save_decoded_options, save_decoded_options_count):
10629         Export variables.
10630
10631 2010-09-28  Ian Lance Taylor  <iant@google.com>
10632
10633         * config/i386/i386.c (ix86_supports_split_stack): Test
10634         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
10635
10636 2010-09-28  Ian Lance Taylor  <iant@google.com>
10637
10638         PR target/45815
10639         * opts.c (decode_options): Don't test whether the target supports
10640         split stack if flag_split_stack == 0.
10641
10642 2010-09-28  Jan Hubicka  <jh@suse.cz>
10643
10644         * builtin-attrs.def (ATTR_LEAF): New attribute.
10645         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
10646         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
10647         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
10648         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
10649         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
10650         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
10651         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
10652         * sync-builtins.def: Annotate all builtins by leaf.
10653         * omp-builtins.def: Annotate all builtins by leaf.
10654         * builtins.def: Annotate relevant builtins with leaf attribute.
10655         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10656         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
10657         leaf.
10658
10659 2010-09-28  Jan Hubicka  <jh@suse.cz>
10660
10661         * tree-ssa-ccp.c (fold_ctor_reference): New function.
10662         (fold_const_aggregate_ref): Use it.
10663         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
10664         into external static.
10665
10666 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10667
10668         PR target/44452
10669         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
10670         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
10671         (ix86_solaris_return_in_memory): Remove.
10672         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
10673         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
10674         (TARGET_SUBTARGET_DEFAULT): Redefine.
10675         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
10676         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
10677         (TARGET_SUBTARGET_DEFAULT): Redefine.
10678         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
10679         -mvect8-ret-in-mem.
10680         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
10681
10682 2010-09-29  Alan Modra  <amodra@gmail.com>
10683
10684         PR target/45807
10685         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
10686         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
10687         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
10688         Delete.
10689         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
10690         (rs6000_emit_prologue): Don't just create frame save info for r2,
10691         actually save r2.
10692
10693 2010-09-28  Richard Henderson  <rth@redhat.com>
10694
10695         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
10696         when 8 bytes are requested.
10697
10698 2010-09-28  Tristan Gingold  <gingold@adacore.com>
10699
10700         * config/avr/avr.c (expand_prologue): Set
10701         current_function_static_stack_size.
10702
10703 2010-09-28  Tristan Gingold  <gingold@adacore.com>
10704
10705         * config/alpha/alpha.md: Change the initial condition of the
10706         probing loop.
10707
10708 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
10709
10710         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
10711         Split from *avx_<maxmin:code><mode>3.
10712         (*avx_<smaxmin:code><mode>3): Ditto.
10713         * config/i386/i386.md (maxmin): Remove code iterator.
10714
10715 2010-09-27  Ian Lance Taylor  <iant@google.com>
10716
10717         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
10718         requires assembler support for CFI directives.
10719
10720 2010-09-27  Richard Henderson  <rth@redhat.com>
10721
10722         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
10723
10724 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10725
10726         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
10727         that AFTER is not in the range FROM..TO, inclusive.
10728
10729 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10730             Bernd Schmidt  <bernds@codesourcery.com>
10731
10732         PR rtl-optimization/45792
10733         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
10734         If not all insns are to be merged, for each edge, stash the
10735         next candidate after the to-be-merged insns before doing the
10736         merge, and use them for the retry at the new insertion point.
10737         Handle CC0 targets when retrying.
10738
10739 2010-09-27  Ian Lance Taylor  <iant@google.com>
10740
10741         * common.opt (fsplit-stack): New option.
10742         * opts.c (decode_options): Set flag_split_stack to final value.
10743         * target.def (supports_split_stack): New hook.
10744         * gcc.c (STACK_SPLIT_SPEC): Define.
10745         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
10746         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
10747         (Code Gen Options): Document -fsplit-stack.
10748         * doc/extend.texi (Function Attributes): Mention no_split_stack.
10749         (Function Attributes): Document no_split_stack.
10750         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
10751         TARGET_SUPPORTS_SPLIT_STACK.
10752         * doc/tm.texi: Rebuild.
10753         * function.c (thread_prologue_and_epilogue_insns): If
10754         flag_split_stack, add split stack prologue.
10755         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
10756         * varasm.c (saw_no_split_stack): New static variable.
10757         (assemble_start_function): Set saw_no_split_stack if the function
10758         has the no_split_stack attribute.
10759         (file_end_indicate_split_stack): New function.
10760         * output.h (file_end_indicate_split_stack): Declare.
10761         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
10762         and function.
10763         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
10764         routines.
10765         * config/i386/i386.c (ix86_option_override_internal): Don't set
10766         expand_builtin_va_start to NULL if -fsplit-stack.
10767         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
10768         -fsplit-stack.
10769         (ix86_va_start): If -fsplit-stack, get overflow pointer from
10770         scratch register set by prologue.
10771         (ix86_code_end): If -fsplit-stack, call
10772         file_end_indicate_split_stack.
10773         (ix86_supports_split_stack): New static function.
10774         (SPLIT_STACK_AVAILABLE): Define.
10775         (split_stack_prologue_scratch_regno): New static function.
10776         (split_stack_fn): New static variable.
10777         (ix86_expand_split_stack_prologue): New function.
10778         (ix86_live_on_entry): New static function.
10779         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
10780         (output_pic_addr_const): Likewise.
10781         (i386_asm_output_addr_const_extra): Likewise.
10782         (ix86_expand_call): Change return type to rtx.  Return the new
10783         call instruction.
10784         (TARGET_SUPPORTS_SPLIT_STACK): Define.
10785         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10786         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
10787         (split_stack_prologue, split_stack_return): New insns.
10788         (split_stack_space_check): New insn.
10789         * config/i386/i386.h (struct machine_function): Add
10790         split_stack_varargs_pointer field.
10791         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
10792         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10793         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10794         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10795         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
10796         Declare.
10797         (ix86_expand_call): Update declaration.
10798
10799 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10800
10801         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
10802         code.  Added byref, which was missing in the list of codes.
10803         Explain that enumeration values are encoded as the integer type
10804         that the compiler uses to store them.  Explain and make examples
10805         of how 'const' interacts with pointers, and the complication of
10806         the encoding of 'const char *'.
10807         (Legacy type encoding): New subsection, explaining that GCC emits
10808         incorrect type encodings for the NeXT runtime for compatibility
10809         reasons.
10810         (@@encode): New subsection, explaining @encode and particularly
10811         that protocol qualifiers are not recognized inside an @encode()
10812         expression.
10813         (Method signatures): New subsection, explaining how method
10814         signatures are encoded.
10815
10816 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10817
10818         Merge from 'apple/trunk' branch on FSF servers.  Removed small
10819         change in build_conditional_expr that had been added when fixing
10820         PR objc/27377 and which did the same check in a less complete way.
10821
10822         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
10823
10824         Radar 4229905
10825         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
10826         looking for objective-c common pointer types.
10827
10828         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
10829
10830         Radar 4154928
10831         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
10832         use their ObjC common type.
10833
10834 2010-09-27  Richard Guenther  <rguenther@suse.de>
10835
10836         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
10837
10838 2010-09-27  Jie Zhang  <jie@codesourcery.com>
10839
10840         * print-tree.c (print_node): Print in-constant-pool.
10841
10842 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
10843
10844         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
10845         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
10846         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
10847         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
10848
10849 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10850
10851         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
10852         from pro_epilogue_adjust_stack_<mode>_{1,2}.
10853         (pro_epilogue_adjust_stack_<mode>_add): Rename from
10854         pro_epilogue_adjust_stack_<mode>_3.
10855         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
10856         renamed pro_epilogue_adjust_stack_{si,di}_add.
10857         (ix86_expand_prologue): Use indirect functions.  Update for renamed
10858         pro_epilogue_adjust_stack_{si,di}_sub.
10859
10860 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10861
10862         * config/i386/i386.md (movmsk_df): New insn.
10863         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
10864         sequence for TARGET_SSE_MATH.
10865
10866 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
10867
10868         * config/mips/mips.c (mips_builtin_decls): Declare.
10869         (mips_init_builtins): Store function declarations in
10870         mips_builtin_decls.
10871         (mips_builtin_decl): New function.
10872         (TARGET_BUILTIN_DECL): Define.
10873
10874 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
10875             Richard Henderson  <rth@redhat.com>
10876
10877         * config/i386/cygwin.asm: Include auto-host.h.
10878         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
10879         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
10880         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
10881         alignment code from the 64-bit path.  Use gas local labels.
10882         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
10883         from _di_2.  Remove the useless constant integer argument.
10884         (pro_epilogue_adjust_stack_<mode>_3): New.
10885         (allocate_stack_worker_probe_<mode>): Macroize from
10886         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
10887         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
10888         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
10889         (__chkstk_ms): New function.
10890         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
10891         * config/i386/t-interix: Likewise.
10892         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
10893         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
10894         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
10895         * configure, config.in: Rebuild.
10896
10897 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
10898
10899         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
10900         statements because of the return slot optimization.
10901
10902 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
10903
10904         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
10905         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
10906         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10907         (class_likely_spilled_p): Rename to...
10908         (avr_class_likely_spilled_p): ...this. Make static. Change argument
10909         type to reg_class_t.
10910
10911 2010-09-24  Jan Hubicka  <jh@suse.cz>
10912
10913         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
10914         (lto_symtab_resolve_symbols): Set it.
10915         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
10916         store resolution field in cgraph/varpool.
10917         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
10918         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
10919         (cgraph_dump_node): Drop used_from_object_file.
10920         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
10921         (cgraph_function_body_availability): Use decl_replaceable_p.
10922         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
10923         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
10924         cgraph_used_from_object_file_p.
10925         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
10926         cgraph_used_from_object_file_p.
10927         (resolution_used_from_other_file_p): New functoin.
10928         (cgraph_used_from_object_file_p): New predicate.
10929         * cgraph.h: Include plugin-api.h
10930         (struct cgraph_local_info): Remove used_from_object_file.
10931         (struct cgraph_node): Add resolution field.
10932         (struct varpool_node): Likewise; remove used_from_object_file;
10933         reove const_value_known.
10934         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
10935         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
10936         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10937         varpool_used_from_object_file_p): Declare.
10938         (varpool_get_node, varpool_extra_name_alias): Update prototype.
10939         * tree.h (DECL_REPLACEABLE_P): Remove.
10940         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
10941         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
10942         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
10943         input_overwrite_node, input_node, input_varpool_node): Stream
10944         resolution.
10945         * expr.c (expand_expr_real_1): Use const_value_known_p
10946         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
10947         const_value_known.
10948         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
10949         (function_and_variable_visibility): Set resolution for local vars
10950         and functions; use varpool_used_from_object_file_p.
10951         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
10952         static functions.
10953         (default_binds_local_p_1): Use resolutoin info.
10954         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
10955         * varpool.c (varpool_get_node): Constify.
10956         (const_value_known_p): Do not use vnode->const_value_known;
10957         use decl_replaceable_p.
10958         (varpool_finalize_decl): Do not set const_value_known.
10959         (cgraph_variable_initializer_availability): Use decl_replaceable_p
10960         (varpool_extra_name_alias): Return new node.
10961         (varpool_used_from_object_file_p): New function.
10962
10963 2010-09-24  Richard Henderson  <rth@redhat.com>
10964
10965         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
10966         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
10967         (do_spill): Use REG_CFA_OFFSET.
10968         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
10969         as appropriate.
10970         (ia64_expand_epilogue): Likewise.
10971         (process_set): Split into ...
10972         (process_cfa_adjust_cfa): this,
10973         (process_cfa_register): this,
10974         (process_cfa_offset): and this new function.
10975         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
10976         instead of REG_FRAME_RELATED_EXPR.
10977
10978 2010-09-24  Olivier Hainque  <hainque@adacore.com>
10979
10980         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
10981
10982 2010-09-24  Jan Hubicka  <jh@suse.cz>
10983
10984         * doc/extend.texi: (attribute leaf): Document.
10985         * tree.c (local_define_builtin): Handle ECF_LEAF.
10986         (build_common_builtin_nodes): Set ECF_LEAF where needed.
10987         * tree.h (ECF_LEAF): New.
10988         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
10989         overwrittable and unavailable functions.
10990         (ipa_init): Put all_module_statics into optimization_summary_obstack.
10991         (copy_global_bitmap): Do not copy all_module_statics.
10992         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
10993         (propagate): Handle overwritable and unavailable leaf functions;
10994         initialize global info for overwritable and unavailable leaf functions;
10995         do not free all module statics.
10996         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
10997         local statics.
10998         * calls.c (flags_from_decl_or_type): Handle leaf.
10999         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
11000         abnormal gotos.
11001
11002 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
11003
11004         * gengtype.c: Reindented.
11005         * gengtype.h: Reindented.
11006         * gengtype-parse.c: Reindented.
11007
11008 2010-09-24  Jan Hubicka  <jh@suse.cz>
11009
11010         PR tree-optimization/45738
11011         PR tree-optimization/45741
11012         * expr.c (string_constant): Allow CONST_DECL too;
11013         check that DECL_INITIAL is set.
11014         * varpool.c (const_value_known_p): Only look into VAR_DECL
11015         and CONST_DECL.
11016
11017 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
11018
11019         * common.opt (undef): New.
11020
11021 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
11022
11023         PR middle-end/45234
11024         * rtl.h (enum global_rtl_index): Add
11025         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
11026         (LAST_VIRTUAL_POINTER_REGISTER): Define.
11027         (virtual_preferred_stack_boundary_rtx,
11028         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
11029         (LAST_VIRTUAL_REGISTER): Increase by one.
11030         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
11031         instead of LAST_VIRTUAL_REGISTER.
11032         * function.c (instantiate_new_reg): Handle
11033         virtual_preferred_stack_boundary_rtx.
11034         * emit-rtl.c (init_virtual_regs): Handle
11035         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11036         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
11037         * explow.c (round_push): If crtl->preferred_stack_boundary
11038         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
11039         virtual_preferred_stack_boundary_rtx alignment instead of
11040         crtl->preferred_stack_boundary alignment.
11041         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
11042         macros.  Never decrease crtl->preferred_stack_boundary,
11043         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
11044         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
11045         stack_pointer_delta in dynamic allocation, even when size
11046         is constant.
11047         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
11048         macro.
11049         * print-rtl.c (print_rtx): Handle
11050         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11051         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
11052         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
11053         * config/frv/frv.c (frv_emit_movsi): Likewise.
11054         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
11055         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
11056         Likewise.
11057
11058         Revert:
11059         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11060
11061         PR middle-end/45234
11062         * calls.c (expand_call): Make sure that all variable sized
11063         adjustments are multiple of preferred stack boundary after
11064         stack alignment.
11065
11066 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
11067             Dominique Dhumieres  <dominiq@lps.ens.fr>
11068
11069         PR bootstrap/45751
11070         * config/darwin-driver.c (darwin_default_min_version):
11071         Adjust size passed to memcpy in two places.
11072
11073 2010-09-24  Richard Guenther  <rguenther@suse.de>
11074
11075         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
11076         Make sure to not call set_type_context with error_mark_node.
11077         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
11078
11079 2010-09-24  Richard Guenther  <rguenther@suse.de>
11080
11081         * Makefile.in (OBJS-onestep): Remove.
11082         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
11083         (libbackend.a): Remove onestep support.
11084         (libbackend.o): Remove.
11085         * configure.ac (--enable-intermodule): Remove.
11086         * configure: Regenerate.
11087
11088 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
11089
11090         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
11091         reaching the end of a block if it occurs at a DEBUG_INSN.
11092
11093 2010-09-09  Tristan Gingold  <gingold@adacore.com>
11094
11095         PR target/44242
11096         * config/vms/vms-crt0-64.c: Removed.
11097         * config/vms/vms-crt0.c: Removed.
11098         * config/vms/vms-psxcrt0-64.c: Removed.
11099         * config/vms/vms-psxcrt0.c: Removed.
11100         * config/vms/vms-ucrt0.c: New file.
11101         * config/vms/t-vms64: Removed.
11102         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
11103         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
11104         * config.gcc (alpha-dec-vms): Use t-vms.
11105
11106 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11107
11108         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
11109         underfull hbox in DVI output.
11110         (-fobjc-class-cxx-cdtors): Same change.
11111         (-fobjc-exceptions): Tidied up documentation.  Explain what the
11112         option does, but moved the (lenghty) description of the exception
11113         syntax into objc.texi.
11114         (-fobjc-gc): Explain that the option is not useful with the GNU
11115         runtime.
11116         (-fzero-link): Explain that the GNU runtime always works in
11117         "zero-link" mode.
11118         * doc/objc.texi: All sections: simplified @node declarations
11119         removing specification of next, previous, up node.
11120         (Objective-C): Updated introduction.
11121         (Garbage Collection): Updated.  The bohem-gc library is now
11122         included in gcc itself.  Mention that this section only applies to
11123         the GNU Objective-C runtime.
11124         (compatibility_alias): Small tidy up.
11125         (Exceptions): New section mostly containing text previously in the
11126         description of the -fobjc-exception command-line option.
11127         (Synchronization): Same.
11128
11129 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
11130
11131         * config/i386/i386.md (ix86_code_end): Move the initialization of
11132         xops array near the consumer.  Use AX_REG and SP_REG instead of
11133         numerical constants.
11134
11135 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11136
11137         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
11138         method [methodname]' for an Objective-C method instead of the less
11139         satisfactory 'too many arguments to function' (with no method name).
11140
11141 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
11142
11143         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
11144         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
11145         (execute_update_addresses_taken): Remove parameter.  Execute the
11146         optimization unconditionally.
11147         * passes.c (execute_function_todo): Call execute_update_addresses_taken
11148         unconditionally if TODO_rebuild_alias is set, else only when optimizing
11149         if TODO_update_address_taken is set.
11150
11151 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
11152
11153         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11154         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
11155         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11156         (arm_output_addr_const_extra): Make static.
11157
11158 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
11159
11160         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
11161         define as unspec_volatile.
11162         ("nops"): Define as unspec_volatile. Use fputs to write to
11163         asm_out_file directly.  Output NOPs on separate lines using while loop.
11164         * config/i386/i386.c (ix86_code_end): Use fputs to write to
11165         asm_out_file directly.  Output NOPs on separate lines using while loop.
11166
11167 2010-09-23  Richard Guenther  <rguenther@suse.de>
11168
11169         PR tree-optimization/45565
11170         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
11171         Make sure to adjust the fndecl before replacing the stmt.
11172
11173 2010-09-23  Richard Guenther  <rguenther@suse.de>
11174
11175         PR middle-end/45750
11176         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
11177         gimplifying MEM_REF.
11178
11179 2010-09-23  Alan Modra  <amodra@gmail.com>
11180
11181         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
11182         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
11183
11184 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
11185
11186         PR rtl-optimization/44374
11187         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
11188         * df-core.c (df_set_bb_dirty): Set it.
11189         * ifcvt.c (find_memory): Remove function.
11190         (dead_or_predicable): Use can_move_insns_across.
11191         * df.h (can_move_insns_across): Declare function.
11192         * cfgcleanup.c (block_was_dirty): New static variable.
11193         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
11194         than df_get_bb_dirty.
11195         (try_head_merge_bb): New static function.
11196         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
11197         is set.
11198         * df-problems.c: Include "target.h"
11199         (df_simulate_find_uses): New static function.
11200         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
11201         (find_memory, find_memory_store): New static functions.
11202         (can_move_insns_across): New function.
11203         * Makefile.in (df-problems.o): Update dependencies.
11204
11205 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11206
11207         PR java/44095
11208         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
11209         is specified and the suffix of the file isn't ".c".
11210         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11211
11212 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11213
11214         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
11215         * doc/cppopts.texi: Fix markup of index entry.
11216         * doc/extend.texi (Constructing Calls): Fix markup of
11217         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
11218         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
11219         (Vague Linkage, C++ Attributes): Fix markup of index entries and
11220         keywords.
11221         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
11222         avoid long lines.
11223         (C Dialect Options, C++ Dialect Options, Warning Options)
11224         (Debugging Options, Spec Files, Darwin Options)
11225         (i386 and x86-64 Options, MIPS Options)
11226         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
11227         index entries, avoid abbreviations, allow URLs to wrap, avoid
11228         long lines, avoid overlong pages from long @itemx lists.
11229         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
11230         * doc/standards.texi (Standards): Likewise.
11231         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
11232
11233 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11234
11235         * opts-common.c (prune_options): Make static.  Work with decoded
11236         options.
11237         (decode_cmdline_options_to_array): Call prune_options.  Don't
11238         resize option array here.
11239         * opts.h (prune_options): Remove prototype.
11240         * gcc.c (process_command): Take decoded options; don't call
11241         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
11242         (main): Call decode_cmdline_options_to_array here instead of
11243         prune_options.  Update call to process_command.
11244         * config/darwin-driver.c: Include opts.h.
11245         (darwin_default_min_version): Work with decoded options.  Don't
11246         handle -b or -V here.
11247         * config/darwin.h (darwin_default_min_version): Update prototype.
11248         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
11249         darwin_default_min_version.
11250         * config/i386/cygwin.h (mingw_scan): Update prototype.
11251         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
11252         * config/i386/cygwin1.c: Include opts.h.
11253         (mingw_scan): Work with decoded options.
11254         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
11255         * config/t-darwin (darwin-driver.o): Update dependencies.
11256
11257 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11258
11259         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
11260         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
11261         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
11262         -force-link, -force-link=, -language, -language=,
11263         -library-directory, -library-directory=, -no-canonical-prefixes,
11264         -no-standard-libraries, -no-warnings, -optimize, -output,
11265         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
11266         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
11267         -print-file-name=, -print-libgcc-file-name,
11268         -print-multi-directory, -print-multi-lib,
11269         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
11270         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
11271         -profile, -save-temps, -shared, -specs, -specs=, -static,
11272         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
11273         symbolic): New.
11274         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
11275         * gcc.c (A Short Introduction to Adding a Command-Line Option):
11276         Remove comment.
11277         (cc1_options): Correct specs for passing down --help,
11278         --target-help and --help=*.  Add spec for passing down --version.
11279         (struct option_map, option_map, target_option_translations,
11280         translate_options): Remove.
11281         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
11282         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
11283         OPT_fhelp_ and OPT_ftarget_help.
11284         (process_command): Don't call translate_options.  Call
11285         decode_cmdline_options_to_array before checking for
11286         -no-canonical-prefixes using decoded options.
11287         * opts-common.c (tm.h): Update comment on #include.
11288         (find_opt): Allow abbreviations of long options.
11289         (struct option_map, option_map): New.
11290         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
11291         and -mno handling.
11292         (target_option_translations): New.
11293         (decode_cmdline_options_to_array): Handle
11294         TARGET_OPTION_TRANSLATE_TABLE in driver.
11295         * opts.c (common_handle_option): Don't handle OPT_fhelp,
11296         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
11297
11298 2010-09-22  Richard Guenther  <rguenther@suse.de>
11299
11300         * tree-inline.c (optimize_inline_calls): Schedule cleanups
11301         only if we inlined something.  Block compaction and conditional
11302         folding are done by cfg cleanup.  Schedule update-address-taken.
11303         (tree_function_versioning): Remove redundant call to number_blocks.
11304         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
11305         folding is done by cfg cleanup.
11306         * passes.c (init_optimization_passes): Remove update-address-taken
11307         pass after IPA inlining.
11308
11309 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11310
11311         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
11312         to update conditions. Fix reg_mode[] check.
11313
11314 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
11315
11316         * config/picochip/picochip.md (movhicc): Use expand to check whether
11317         movhicc is available and split it after reload.
11318
11319 2010-09-22  Richard Guenther  <rguenther@suse.de>
11320
11321         * tree-ssanames.c (release_dead_ssa_names): Do not remove
11322         callee edges here.
11323         * passes.c (init_optimization_passes): Remove early CFG cleanup.
11324         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
11325         (pass_cleanup_cfg): Likewise.
11326         (execute_fixup_cfg): Cleanup.
11327         * tree-pass.h (pass_cleanup_cfg): Remove.
11328
11329 2010-09-22  Martin Jambor  <mjambor@suse.cz>
11330
11331         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
11332         builtins if it is true.
11333         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
11334         parameter.
11335
11336 2010-09-22  Martin Jambor  <mjambor@suse.cz>
11337
11338         * tree-sra.c (struct access): New field grp_no_warning.
11339         (create_access_replacement): Set TREE_NO_WARNING according to
11340          grp_no_warning.
11341         (create_artificial_child_access): Use build_ref_for_model and set
11342         grp_no_warning if build_user_friendly_ref_for_offset fails.
11343         (propagate_subaccesses_across_link): Likewise.
11344
11345 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11346
11347         PR target/35664
11348         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
11349         ('f'): Likewise.
11350
11351 2010-09-22  Tristan Gingold  <gingold@adacore.com>
11352
11353         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
11354
11355 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
11356
11357         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
11358         * config/i386/i386.c (decide_alg): Update for rename.
11359
11360 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
11361
11362         PR rtl-optimization/45739
11363         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
11364         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
11365
11366 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
11367
11368         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
11369         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
11370         Remove.
11371         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
11372         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11373
11374 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11375
11376         PR objc/23710
11377         * c-parser.c (c_parser_objc_method_definition): Check the return
11378         value of objc_start_method_definition and if false is returned,
11379         parse the method definition but emit no code.
11380
11381 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11382
11383         PR objc/25965
11384         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
11385         call objc_get_interface_ivars ().
11386
11387 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
11388
11389         PR target/45694
11390         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
11391         static chain-register is used for 64-bit.
11392
11393 2010-09-21  Richard Guenther  <rguenther@suse.de>
11394
11395         * dwarf2out.c (is_cu_die): New function.
11396         (add_pubtype): Use it.
11397         (gen_subprogram_die): Likewise.
11398         (gen_struct_or_union_type_die): Likewise.
11399         (dwarf2out_finish): Likewise.
11400         (comp_unit_die): Rename to ...
11401         (single_comp_unit_die): ... this.
11402         (comp_unit_die): New function lazily constructing and
11403         returning single_comp_unit_die.
11404         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
11405         base_type_die, subrange_type_die, modified_type_die,
11406         lower_bound_default, add_bound_info, add_prototyped_attribute,
11407         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
11408         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
11409         force_decl_die, gen_namespace_die, dwarf2out_decl,
11410         dwarf2out_start_source_file, dwarf2out_end_source_file,
11411         prune_unused_types, dwarf2out_finish): Use it.
11412         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
11413         the global list of translation-unit decls.
11414         (dwarf2out_init): Do not create single_comp_unit_die here.
11415         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
11416
11417 2010-09-21  Richard Guenther  <rguenther@suse.de>
11418
11419         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
11420         for bool for C++.
11421
11422 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
11423
11424         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
11425         (qhs_extenddi_cstr): Likewise.
11426         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
11427         them for the source operand.
11428
11429 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
11430
11431         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
11432         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
11433         (ix86_split_ashr): Ditto.
11434         (ix86_split_lshr): Ditto.
11435
11436 2010-09-21  Richard Guenther  <rguenther@suse.de>
11437
11438         PR tree-optimization/45580
11439         * tree-ssa-propagate.c (substitute_and_fold): Always replace
11440         regular uses.
11441         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
11442         virtuals fold the call into a regular indirect one.
11443
11444 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11445
11446         PR rtl-optimization/42775
11447         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
11448         scheduling is enabled.
11449
11450 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11451
11452         PR rtl-optimization/45728
11453         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
11454         gen_lowpart_common first and if that fails, force_reg first
11455         before calling gen_lowpart.
11456
11457         PR middle-end/45678
11458         * cfgexpand.c (expand_one_stack_var_at): Use
11459         crtl->max_used_stack_slot_alignment as max_align, instead
11460         of maximum of that and PREFERRED_STACK_BOUNDARY.
11461         Don't call update_stack_alignment.
11462
11463 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11464
11465         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
11466         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
11467         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
11468         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
11469         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
11470         (build_nonstandard_integer_type): Likewise.
11471         (build_range_type_1): New function, built from...
11472         (build_range_type): ...this.  Call build_range_type_1.
11473         (build_nonshared_range_type): New function.
11474         (build_array_type_1): New function, built from...
11475         (build_array_type: ...this.  Call build_array_type_1.
11476         (build_nonshared_array_type): New function.
11477         * tree.h (build_nonshared_range_type): Declare.
11478         (build_nonshared_array_type): Likewise.
11479
11480 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
11481
11482         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
11483         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11484         (arm_class_likely_spilled_p): New function.
11485
11486 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
11487
11488         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
11489         indirect functions.
11490         (ix86_split_ashl): Ditto.
11491         (ix86_split_ashr): Ditto.
11492         (ix86_split_lshr): Ditto.
11493         (ix86_adjust_counter): Ditto.
11494
11495 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
11496
11497         * c-family/c-common.h (constant_string_class): Documented with
11498         comment identical to the one already in c-common.c.
11499
11500 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11501
11502         * dwarf2out.c (any_cfis_emitted): New static variable.
11503         (add_fde_cfi): Set it.
11504         (dwarf2out_frame_debug): Clear it before processing,
11505         if it is set afterwards, flush any queued reg saves.
11506
11507         PR debug/45124
11508         * dwarf2out.c (add_accessibility_attribute): Assume
11509         DW_ACCESS_private as the default for dwarf_version > 2
11510         and DW_TAG_class_type parent.
11511         (gen_inheritance_die): Assume DW_ACCESS_public as the default
11512         for dwarf_version > 2 and parent other than DW_TAG_class_type.
11513
11514 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
11515
11516         PR target/45726
11517         * arm.md (arm_movt): Only enable on machines with MOVT.
11518
11519 2010-09-20  Jie Zhang  <jie@codesourcery.com>
11520
11521         * config/arm/arm.c (arm_address_offset_is_imm): New.
11522         (arm_early_store_addr_dep): New.
11523         (arm_early_load_addr_dep): New.
11524         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
11525         (arm_early_load_addr_dep): Declare.
11526         (arm_address_offset_is_imm): Declare.
11527         * config/arm/cortex-m4.md: New file.
11528         * config/arm/cortex-m4-fpu.md: New file.
11529         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
11530         (attr generic_sched): Exclude cortexm4.
11531         (attr generic_vfp): Exclude cortexm4.
11532
11533 2010-09-20  Richard Guenther  <rguenther@suse.de>
11534
11535         PR middle-end/45704
11536         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
11537
11538 2010-09-20  Jan Hubicka  <jh@suse.cz>
11539
11540         PR tree-optimize/45605
11541         * cgraph.h (const_value_known_p): Declare.
11542         (varpool_decide_const_value_known): Remove.
11543         * tree-ssa-ccp.c (get_base_constructor): Use it.
11544         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
11545         * expr.c (string_constant): Likewise.
11546         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
11547         * ipa.c (ipa_discover_readonly_nonaddressable_var,
11548         function_and_variable_visibility): Likewise.
11549         * gimplify.c (gimplify_call_expr): Likewise.
11550         * gimple-fold.c (get_symbol_constant_value): Likewise.
11551         * varpool.c (varpool_decide_const_value_known): Replace by...
11552         (const_value_known_p): ... this one; handle other kinds of DECLs
11553         too and work for automatic vars.
11554         (varpool_finalize_decl): Use const_value_known_p.
11555
11556 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
11557
11558         PR target/45726
11559         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
11560
11561 2010-09-20  Richard Guenther  <rguenther@suse.de>
11562
11563         PR tree-optimization/45705
11564         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
11565
11566 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11567
11568         PR rtl-optimization/45695
11569         * combine.c (try_combine): When splitting a two set pattern,
11570         make sure the pattern which will be put into i2 doesn't use REGs
11571         or MEMs set by insns in between i2 and i3.
11572
11573 2010-09-19  Jan Hubicka  <jh@suse.cz>
11574
11575         PR lto/44246
11576         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
11577         processing same node twice.
11578
11579 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
11580
11581         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
11582         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11583         (bfin_class_likely_spilled_p): New function
11584
11585 2010-09-19  Ira Rosen  <irar@il.ibm.com>
11586
11587         PR tree-optimization/45714
11588         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
11589         created in vectorizable_call instead of the original statement in
11590         def stmt updates.
11591
11592 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
11593
11594         * config/i386/i386-protos.h (split_double_mode): New prototype.
11595         (split_di, split_ti): Remove prototypes.
11596         * config/i386/i386.c (split_double_mode): New function.
11597         (split_di, split_ti): Remove.
11598         (ix86_expand_branch): Use split_double_mode.
11599         (ix86_split_to_parts): Ditto.
11600         (ix86_split_ashl): Ditto.
11601         (ix86_split_ashr): Ditto.
11602         (ix86_split_lshr): Ditto.
11603         (ix86_force_to_memory): Ditto.
11604         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
11605
11606 2010-09-18  Jan Hubicka  <jh@suse.cz>
11607
11608         PR tree-optimization/45453
11609         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
11610         virtual functions are reachable.
11611         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
11612         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
11613         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
11614         when modifying function.
11615
11616 2010-09-18  Jan Hubicka  <jh@suse.cz>
11617
11618         PR tree-optimization/45605
11619         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
11620         * gimple-fold.c (static_object_in_other_unit_p): New function.
11621         (canonicalize_constructor_val): Use it.
11622         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
11623         returning NULL.
11624         (gimple_fold_obj_type_ref_known_binfo): Use
11625         static_object_in_other_unit_p.
11626
11627 2010-09-18  Richard Guenther  <rguenther@suse.de>
11628
11629         PR tree-optimization/45709
11630         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
11631         insertions until after all PHI nodes of the block are processed.
11632
11633 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
11634
11635         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
11636
11637 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
11638
11639         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
11640
11641 2010-09-18  Richard Guenther  <rguenther@suse.de>
11642
11643         PR tree-optimization/45709
11644         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
11645
11646 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
11647
11648         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
11649         (dot_deps_stmt): Same.
11650         * graphite-poly.c (dot_lst): Same.
11651         * graphite-scop-detection.c (dot_all_scops): Same.
11652         (dot_scop): Same.
11653
11654 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
11655
11656         Revert:
11657         2009-12-16  Ben Elliston  <bje@au.ibm.com>
11658
11659         * tree-data-ref.c (dot_rdg_1): Added back.
11660         (dot_rdg): Same.  Added "#if 0" around system call.
11661
11662 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11663             Richard Henderson  <rth@redhat.com>
11664
11665         * config/i386/i386.c (initial_ix86_tune_features): Add
11666         X86_TUNE_PAD_SHORT_FUNCTION.
11667         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
11668         (ix86_count_insn): New.
11669         (ix86_pad_short_function): Likewise.
11670         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
11671
11672         * config/i386/i386.h (ix86_tune_indices): Add
11673         X86_TUNE_PAD_SHORT_FUNCTION.
11674         (TARGET_PAD_SHORT_FUNCTION): New.
11675
11676         * config/i386/i386.md (UNSPEC_NOPS): New.
11677         (nops): Likewise.
11678
11679 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11680
11681         PR middle-end/45234
11682         * calls.c (expand_call): Make sure that all variable sized
11683         adjustments are multiple of preferred stack boundary after
11684         stack alignment.
11685
11686 2010-09-17  DJ Delorie  <dj@redhat.com>
11687
11688         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
11689         passed an invalid value, print an error instead of ICEing.
11690         (valid_psw_flag): New.
11691         (rx_expand_builtin): Call it for setpsw/clrpsw.
11692         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
11693
11694         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
11695         (bitclr_in_memory): Likewise.
11696         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
11697
11698 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11699
11700         PR middle-end/45678
11701         * cfgexpand.c (update_stack_alignment): New.
11702         (get_decl_align_unit): Use it.
11703         (expand_one_stack_var_at): Call update_stack_alignment.
11704
11705 2010-09-17  Richard Guenther  <rguenther@suse.de>
11706
11707         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
11708         Properly copy the read string.
11709
11710 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
11711
11712         * doc/options.texi (Variable): Document.
11713         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
11714         generate target_flags declarations explicitly.  Don't define
11715         VarExists variables for the driver.
11716         * common.opt (target_flags): New Variable record.
11717         (flag_dump_unnumbered, flag_dump_unnumbered_links,
11718         flag_var_tracking, flag_var_tracking_assignments,
11719         flag_var_tracking_assignments_toggle): Don't mark variables with
11720         VarExists.
11721         * config/i386/i386.c (ix86_isa_flags): Don't define here.
11722         * config/i386/i386.opt (ix86_isa_flags): Define here.
11723         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
11724         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
11725         VarExists.
11726         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
11727         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
11728         Only define for generator programs.
11729         * rtlanal.c (target_flags): Remove.
11730         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
11731         flag_var_tracking_assignments_toggle): Remove.
11732
11733 2010-09-17  Michael Matz  <matz@suse.de>
11734
11735         PR tree-optimization/43432
11736         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11737         Accept backwards consecutive accesses.
11738         (vect_create_data_ref_ptr): If step is negative generate
11739         decreasing IVs.
11740         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
11741         (perm_mask_for_reverse, reverse_vec_elements): New functions.
11742         (vectorizable_load): Handle loads with negative steps when easily
11743         possible.
11744
11745 2010-09-03  Jan Hubicka  <jh@suse.cz>
11746
11747         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
11748
11749 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
11750
11751         * config/v850/v850.c (v850_function_value_regno_p): Make static.
11752         Adjust comments. Declare.
11753         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11754         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
11755
11756 2010-09-17  Richard Guenther  <rguenther@suse.de>
11757
11758         * common.opt (combine): Remove.
11759         * gcc.c (default_compilers): Remove specs testing combine.
11760         The C compilers no longer can combine.
11761         (option_map): Remove -combine.
11762         (display_help): Remove -combine.
11763         (driver_handle_option): Remove OPT_combine handling.
11764         (compile_input_file_p): Remove.
11765         (do_spec): Remove code concerning combine.
11766         (main): Likewise.
11767         * doc/invoke.texi: Remove traces of -combine.
11768         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
11769
11770 2010-09-17  Richard Guenther  <rguenther@suse.de>
11771
11772         PR middle-end/45678
11773         * builtins.c (fold_builtin_memory_op): Always properly adjust
11774         alignment of memory accesses.
11775
11776 2010-09-16  Jan Hubicka  <jh@suse.cz>
11777
11778         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
11779         processing clone.
11780
11781 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
11782
11783         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
11784
11785         * config/i386/i386.c (predict_jump): Add prototype.
11786         (flag_opts): Add -m8bit-idiv.
11787         (ix86_split_idivmod): New.
11788
11789         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
11790         Add 2 splitters for SI/DI mode divide.
11791         (divmod<mode>4_1): New pattern.
11792         (udivmod<mode>4_1): Likewise.
11793         (testdi_ccno_1): Likewise.
11794
11795         * config/i386/i386.opt (m8bit-idiv): New.
11796
11797         * doc/invoke.texi: Document -m8bit-idiv.
11798
11799 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
11800
11801         PR bootstrap/45680
11802         * config/i386/i386.c (min_insn_size): Moved out of the
11803         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
11804
11805 2010-09-16  Jan Hubicka  <jh@suse.cz>
11806
11807         * lto-cgraph.c (lto_output_node): Fix handling of clones.
11808         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
11809         unreachable clones with reachable clones.
11810         * tree-inline.c (copy_bb): Fix sanity checking when producing
11811         unreachable clone.
11812
11813 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
11814
11815         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
11816         (TARGET_MEMORY_MOVE_COST): Define.
11817         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
11818
11819 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
11820
11821         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
11822         maybe_tidy_empty_bb.
11823
11824         Revert:
11825         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
11826         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11827
11828 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11829
11830         * target.def (target_option.optimization): New hook.
11831         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
11832         TARGET_OPTION_OPTIMIZATION hook.
11833         * doc/tm.texi: Regenerate.
11834         * hooks.c (hook_void_int_int): New.
11835         * hooks.h (hook_void_int_int): Declare.
11836         * opts.c: Don't include tm_p.h.
11837         (decode_options): Use targetm.target_option.optimization instead
11838         of OPTIMIZATION_OPTIONS.
11839         * system.h (OPTIMIZATION_OPTIONS): Poison.
11840         * config/arm/arm-protos.h (arm_optimization_options): Remove.
11841         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
11842         (arm_optimization_options): Rename to arm_option_optimization.
11843         Make static.
11844         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
11845         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
11846         (cris_option_optimization): New.
11847         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
11848         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
11849         (crx_option_optimization): New.
11850         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
11851         * config/frv/frv-protos.h (frv_optimization_options): Remove.
11852         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
11853         (frv_optimization_options): Rename to frv_option_optimization.
11854         Make static.
11855         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
11856         * config/h8300/h8300.c (h8300_option_optimization): New.
11857         (TARGET_OPTION_OPTIMIZATION): Define.
11858         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
11859         * config/i386/i386-protos.h (optimization_options): Remove.
11860         * config/i386/i386.c (optimization_options): Rename to
11861         ix86_option_optimization.  Make static.
11862         (TARGET_OPTION_OPTIMIZATION): Define.
11863         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
11864         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
11865         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
11866         (ia64_optimization_options): Rename to ia64_option_optimization.
11867         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
11868         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
11869         commented-out definition.
11870         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
11871         instead of OPTIMIZATION_OPTIONS.
11872         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
11873         (m32r_option_optimization): New.
11874         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
11875         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
11876         Remove.
11877         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
11878         (mcore_option_optimization): New.
11879         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
11880         * config/mep/mep-protos.h (mep_optimization_options): Remove.
11881         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
11882         (mep_optimization_options): Rename to mep_option_optimization.
11883         Make static.  Take unused level and size parameters.
11884         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
11885         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
11886         (mmix_option_optimization): New.
11887         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
11888         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
11889         (pdp11_option_optimization): New.
11890         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
11891         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
11892         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
11893         (optimization_options): Rename to rs6000_option_optimization.
11894         Make static.
11895         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
11896         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
11897         * config/rx/rx.c (rx_set_optimization_options): Rename to
11898         rx_option_optimization.  Make static.  Take unused level and size
11899         parameters.
11900         (TARGET_OPTION_OPTIMIZATION): Define.
11901         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
11902         * config/s390/s390-protos.h (optimization_options): Remove.
11903         * config/s390/s390.c (optimization_options): Rename to
11904         s390_option_optimization.  Make static.  Don't mark size parameter
11905         unused.
11906         (TARGET_OPTION_OPTIMIZATION): Define.
11907         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
11908         * config/sh/sh-protos.h (sh_optimization_options): Remove.
11909         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
11910         (sh_optimization_options): Rename to sh_option_optimization.  Make
11911         static.  Don't mark parameters unused.
11912         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
11913         * config/spu/spu-protos.h (spu_optimization_options): Remove.
11914         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
11915         (spu_optimization_options): Rename to spu_option_optimization.
11916         Make static.
11917         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
11918         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
11919         (v850_option_optimization): New.
11920         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
11921         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
11922         (xtensa_option_optimization): New.
11923         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
11924
11925 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11926
11927         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
11928         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
11929         * doc/tm.texi: Regenerate.
11930         * system.h (OVERRIDE_OPTIONS): Poison.
11931         * target.def (override): Default to hook_void_void.
11932         * targhooks.c (default_target_option_override): Remove.
11933         * genmodes.c, machmode.def: Update comments mentioning
11934         OVERRIDE_OPTIONS.
11935         * config/alpha/alpha-modes.def: Update comment mentioning
11936         alpha_override_options.
11937         * config/alpha/alpha-protos.h (override_options): Remove.
11938         * config/alpha/alpha.c (override_options): Rename to
11939         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
11940         (TARGET_OPTION_OVERRIDE): Define.
11941         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
11942         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
11943         of OVERRIDE_OPTIONS.
11944         * config/arc/arc-protos.h (arc_init): Remove.
11945         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
11946         (arc_init): Rename to arc_option_override.  Make static.
11947         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
11948         (OVERRIDE_OPTIONS): Remove.
11949         * config/arm/arm-protos.h (arm_override_options): Remove.
11950         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
11951         (arm_override_options): Rename to arm_option_override.  Make
11952         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11953         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
11954         * config/arm/arm.md: Update comment referring to arm_override_options.
11955         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11956         instead of OVERRIDE_OPTIONS.
11957         * config/avr/avr-protos.h (avr_override_options): Remove.
11958         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
11959         (avr_override_options): Rename to avr_option_override.  Make static.
11960         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
11961         * config/bfin/bfin-protos.h (override_options): Remove (twice).
11962         * config/bfin/bfin.c (override_options): Rename to
11963         bfin_option_override.  Make static.
11964         (TARGET_OPTION_OVERRIDE): Define.
11965         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
11966         * config/cris/cris-protos.h (cris_override_options): Remove.
11967         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
11968         (cris_override_options): Rename to cris_option_override.  Make static.
11969         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
11970         * config/frv/frv-protos.h (frv_override_options): Remove.
11971         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
11972         (frv_override_options): Rename to frv_option_override.  Make static.
11973         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
11974         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
11975         * config/h8300/h8300.c (h8300_init_once): Rename to
11976         h8300_option_override.  Make static.
11977         (TARGET_OPTION_OVERRIDE): Define.
11978         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
11979         * config/i386/i386-protos.h (override_options): Remove.
11980         * config/i386/i386.c (override_options): Rename to
11981         ix86_option_override_internal.  Make static.  Comments referring
11982         to this function and callers changed.
11983         (ix86_option_override): New.
11984         (TARGET_OPTION_OVERRIDE): Define.
11985         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
11986         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
11987         * config/ia64/ia64.c (ia64_file_start): Update comment referring
11988         to ia64_override_options.
11989         * config/iq2000/iq2000-protos.h (override_options): Remove.
11990         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
11991         (override_options): Rename to iq2000_option_override.  Make static.
11992         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
11993         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
11994         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
11995         (lm32_override_options): Rename to lm32_option_override.  Make static.
11996         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
11997         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
11998         (m32r_option_override): New.
11999         (m32r_init): Update comment.
12000         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
12001         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
12002         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
12003         (m68hc11_override_options): Rename to m68hc11_option_override.
12004         Make static.  Return void.
12005         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
12006         * config/m68k/m68k-protos.h (override_options): Remove.
12007         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
12008         (override_options): Rename to m68k_option_override.  Make static.
12009         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
12010         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
12011         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
12012         (mcore_override_options): Rename to mcore_option_override.  Make
12013         static.
12014         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
12015         * config/mep/mep-protos.h (mep_override_options): Remove.
12016         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
12017         (mep_override_options): Rename to mep_option_override.  Make static.
12018         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
12019         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
12020         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
12021         (mmix_override_options): Rename to mmix_option_override.  Make static.
12022         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
12023         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
12024         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
12025         (mn10300_override_options): Rename to mn10300_option_override.
12026         Make static.
12027         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
12028         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
12029         * config/moxie/moxie.c (moxie_override_options): Rename to
12030         moxie_option_override.  Make static.
12031         (TARGET_OPTION_OVERRIDE): Define.
12032         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
12033         * config/picochip/picochip-protos.h (picochip_override_options):
12034         Remove.  Update comment referring to picochip_override_options.
12035         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
12036         (picochip_override_options): Rename to picochip_option_override.
12037         Make static.  Update comment and definition of
12038         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
12039         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
12040         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12041         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12042         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12043         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12044         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12045         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
12046         instead of OVERRIDE_OPTIONS.
12047         * config/rs6000/rs6000-modes.def: Update comment referring to
12048         rs6000_override_options.
12049         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
12050         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
12051         (rs6000_override_options): Rename to
12052         rs6000_option_override_internal.  Make static.  Commented
12053         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
12054         (rs6000_option_override): New.
12055         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
12056         instead of OVERRIDE_OPTIONS.
12057         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12058         * config/s390/s390-protos.h (override_options): Remove.
12059         * config/s390/s390.c (override_options): Rename to
12060         s390_option_override.  Make static.
12061         (TARGET_OPTION_OVERRIDE): Define.
12062         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
12063         * config/score/score-protos.h (score_override_options): Remove.
12064         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
12065         (score_override_options): Rename to score_option_override.  Make
12066         static.
12067         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
12068         Update comment referring to override_options.
12069         * config/score/score3.c (score3_override_options): Rename to
12070         score3_option_override.
12071         * config/score/score3.h (score3_override_options): Rename to
12072         score3_option_override.
12073         * config/score/score7.c (score7_override_options): Rename to
12074         score7_option_override.
12075         * config/score/score7.h (score7_override_options): Rename to
12076         score7_option_override.
12077         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
12078         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
12079         (sparc_override_options): Rename to sparc_option_override.  Make
12080         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
12081         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
12082         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12083         instead of OVERRIDE_OPTIONS.
12084         * config/spu/spu-protos.h (spu_override_options): Remove.
12085         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
12086         (spu_override_options): Rename to spu_option_override.  Make
12087         static.
12088         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
12089         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
12090         OVERRIDE_OPTIONS.
12091         * config/vax/vax-protos.h (override_options): Remove.
12092         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
12093         (override_options): Rename to vax_option_override.  Make static.
12094         Call SUBTARGET_OVERRIDE_OPTIONS.
12095         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
12096         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
12097         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
12098         * config/xtensa/xtensa-protos.h (override_options): Remove.
12099         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
12100         (override_options): Rename to xtensa_option_override.  Make static.
12101         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
12102
12103 2010-09-16  Richard Guenther  <rguenther@suse.de>
12104
12105         PR tree-optimization/45623
12106         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
12107         (get_constraint_for_component_ref): If computing a constraint
12108         for the rhs handle type punning through unions.
12109         (get_constraint_for_address_of): Adjust.
12110         (get_constraint_for_1): Likewise.
12111         (get_constraint_for): Likewise.
12112         (get_constraint_for_rhs): New function.
12113         (do_structure_copy): Adjust.
12114         (make_constraint_to): Likewise.
12115         (handle_const_call): Likewise.
12116         (find_func_aliases): Likewise.
12117         (process_ipa_clobber): Likewise.
12118         (create_variable_info_for): Likewise.
12119
12120 2010-09-16  Ira Rosen  <irar@il.ibm.com>
12121
12122         * tree-vectorizer.c: Fix documentation.
12123         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
12124         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
12125         is_pattern_stmt_p, is_loop_header_bb_p,
12126         stmt_vinfo_set_inside_of_loop_cost,
12127         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
12128         known_alignment_for_access_p): Likewise.
12129         * tree-vect-loop.c: Fix documentation.
12130         (vect_get_cost): Start function name from new line.
12131         * tree-vect-data-refs.c: Fix documentation.
12132         * tree-vect_stmts.c: Likewise.
12133         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
12134         (vectorizable_store): Free vec_oprnds if allocated.
12135         (vectorizable_condition): Initialize several variables to avoid
12136         warnings.
12137         * tree-vect-slp.c: Fix documentation.
12138
12139 2010-09-16  Richard Guenther  <rguenther@suse.de>
12140
12141         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
12142         is TS_TRANSLATION_UNIT_DECL.
12143         (initialize_tree_contains_struct): Adjust.
12144         (all_translation_units): New global vector.
12145         (build_translation_unit_decl): New function.
12146         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
12147         (struct tree_translation_unit_decl): New.
12148         (all_translation_units): Declare.
12149         (union tree_node): Add translation_unit_decl member.
12150         (build_translation_unit_decl): Declare.
12151         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
12152         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
12153         New function.
12154         (pack_value_fields): Call it.
12155         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
12156         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
12157         (lto_output_tree_pointers): Call it.
12158         * lto-streamer-in.c (lto_input_tree_ref): Handle references
12159         to TRANSLATION_UNIT_DECL.
12160         (unpack_ts_translation_unit_decl_value_fields): New function.
12161         (unpack_value_fields): Call it.
12162         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
12163         (lto_input_tree_pointers): Call it.
12164         * lto-streamer.c (check_handled_ts_structures): Adjust.
12165         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
12166         * c-decl.c (all_translation_units): Remove.
12167         (pop_scope): Use build_translation_unit_decl.
12168         (collect_all_refs): Adjust.
12169         (for_each_global_decl): Likewise.
12170         (c_write_global_declarations): Likewise.
12171
12172 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
12173
12174         PR bootstrap/45686
12175         * fold-const.c (fold_checksum_tree): Change slot from const void **
12176         to void **, use CONST_CAST_TREE to store into *slot.
12177
12178 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
12179
12180         * config/i386/i386.md: Remove unneeded empty conditions and
12181         preparation statements from expanders.
12182         * config/i386/mmx.md: Ditto.
12183         * config/i386/sse.md: Ditto.
12184
12185 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
12186
12187         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
12188
12189 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12190
12191         PR rtl-optimization/45593
12192         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
12193         insns that were in delay slots as stand-alone insns.
12194
12195 2010-09-15  Ian Lance Taylor  <iant@google.com>
12196
12197         * incpath.c (remove_duplicates): If name is not a directory, issue
12198         a warning rather than an error.
12199
12200 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12201
12202         PR middle-end/45644
12203         * tree-sra.c (create_access): Check for bit-fields directly.
12204
12205 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
12206
12207         PR tree-optimization/45633
12208         * tree-cfg.c (verify_gimple_assign_binary): Allow
12209         MINUS_EXPR with lhs and rhs1 pointer vector and
12210         rhs2 sizetype vector.
12211         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
12212         or vector pointer use TER to optimize pointer subtraction.
12213
12214 2010-09-15  Jie Zhang  <jie@codesourcery.com>
12215
12216         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
12217         fcmpd to fcmps.
12218
12219 2010-09-15  Ian Lance Taylor  <iant@google.com>
12220
12221         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
12222
12223 2010-09-15  Ian Lance Taylor  <iant@google.com>
12224
12225         * function.c (get_arg_pointer_save_area): Set
12226         arg_pointer_save_area_init to true.
12227
12228 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12229
12230         * tree-sra.c (generate_subtree_copies): Updated comment.
12231         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
12232         obtained from the statement iterator instead.
12233         (load_assign_lhs_subreplacements): Removed parameters lhs and
12234         right_offset, which is obtained from top_racc instead.  Parameter lacc
12235         is now expected to be the root of the processed tree rather than root's
12236         first child.  Updated all callers.
12237
12238 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12239
12240         * config/pdp11/pdp11.c (register_move_cost): Rename to
12241         pdp11_register_move_cost.
12242         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
12243         pdp11_register_move_cost.
12244         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
12245         pdp11_register_move_cost instead of register_move_cost.
12246
12247 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
12248
12249         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
12250         pattern for vmovn. Expansion in case of non
12251         -mvectorize-with-neon-quad.
12252         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
12253         non- -mvectorize-with-neon-quad case.
12254         (move_lo_quad_<mode>): New expansion to vmov into low part.
12255         (move_hi_quad_<mode>): New expansion to vmov into high part.
12256         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
12257         (move_lo_quad_v4sf): Likewise.
12258         (move_lo_quad_v8hi): Likewise.
12259         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
12260         low part.
12261         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
12262         high part.
12263         * config/arm/iterators.md (ANY128): New mode iterator.
12264         (V_narrow_pack): New mode attribute.
12265         (V_HALF): Add attribute.
12266         (V_DOUBLE): Add attribute.
12267         (V_mode_nunits): Add attribute.
12268
12269 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12270
12271         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
12272         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
12273
12274 2010-09-15  Olivier Hainque  <hainque@adacore.com>
12275             Jose Ruiz  <ruiz@adacore.com>
12276
12277         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
12278         * config/alpha/osf5-unwind.h: New file.
12279
12280 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12281
12282         PR bootstrap/45672
12283         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
12284         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12285         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12286
12287 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12288
12289         * c-lang.h (struct lang_type): Add variable_size GTY option.
12290
12291 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12292
12293         PR bootstrap/45672
12294         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12295
12296 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12297
12298         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
12299         result isn't used in memory address.
12300
12301 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12302
12303         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
12304         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
12305         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12306         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12307         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12308         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12309
12310         * target.def: Add units_per_simd_word to vectorize.
12311
12312         * targhooks.c (default_units_per_simd_word): New.
12313         * targhooks.h (default_units_per_simd_word): Likewise.
12314         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
12315         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12316         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
12317         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12318         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12319         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12320         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12321         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12322
12323         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
12324         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
12325
12326         * tree-vect-stmts.c: Don't include "tm_p.h".
12327         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
12328         with targetm.vectorize.units_per_simd_word.
12329
12330         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
12331
12332         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
12333
12334         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
12335         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12336
12337         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
12338         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
12339
12340         * doc/tm.texi: Regenerated.
12341
12342 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12343
12344         * tree-vect-stmts.c: Include "tm_p.h".
12345
12346         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
12347         out of RTX_CODE.
12348
12349 2010-09-14  Martin Jambor  <mjambor@suse.cz>
12350
12351         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
12352         location of generated statement.  Changed all callers.
12353         (build_ref_for_model): New parameter loc which used to set location of
12354         all generated expressions.  Changed all callers.
12355         (generate_subtree_copies): Likewise.
12356         (init_subtree_with_zero): Likewise.
12357         (sra_modify_expr): Set locations of all generated statements and
12358         expressions to the location the original statement.
12359         (handle_unscalarized_data_in_subtree): Likewise.
12360         (load_assign_lhs_subreplacements): Likewise.
12361         (sra_modify_constructor_assign): Likewise.
12362         (sra_modify_assign): Likewise.
12363
12364 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
12365
12366         PR target/45277
12367         PR target/45363
12368         PR target/45407
12369         * doc/install.texi (sparc*-*-*): New section.
12370         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
12371
12372 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
12373
12374         PR middle-end/45567
12375         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
12376         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
12377         (expand_builtin): Adjust caller.
12378         (expand_builtin_unop): Only use subtarget if it has the right mode.
12379
12380 2010-09-14  Tristan Gingold  <gingold@adacore.com>
12381
12382         * configure.ac (plugins): Fix typos.
12383         * configure: Regenerate.
12384
12385 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
12386
12387         PR debug/45660
12388         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
12389         gen_type_die for function/method return type.
12390
12391 2010-09-14  Ira Rosen  <irar@il.ibm.com>
12392
12393         PR tree-optimization/45470
12394         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12395         can throw an exception.
12396         * tree-vect-stmts.c (vectorizable_call): Likewise.
12397
12398 2010-09-14  DJ Delorie  <dj@redhat.com>
12399
12400         PR target/44749
12401         * config/mep/mep-protos.h (mep_save_register_info,
12402         mep_reinit_regs, mep_init_regs): Declare.
12403
12404         * config/mep/mep.c: Move all target definitions to the end of the
12405         file to avoid the need for duplicate declarations.
12406         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
12407         (mep_reorg_erepeat): Remove unused variables.
12408         (mep_expand_builtin): Likewise.
12409
12410         * config/mep/mep-pragma.c: Don't include rtl.h.
12411         (INVALID_REGNUM): New.
12412         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
12413         functions.
12414         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
12415         Avoid enum/integer math.
12416
12417 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
12418
12419         PR target/44749
12420         * config/mep/t-mep (GTM_H): Add insn-constants.h.
12421         * config/mep/mep.c (mep_conditional_register_usage): Take no
12422         parameters.
12423         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
12424         prototype.
12425         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
12426         call to mep_conditional_register_usage.
12427
12428 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12429
12430         PR debug/43937
12431         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
12432         the DECL as well.
12433
12434 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
12435
12436         PR rtl-optimization/45617
12437         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
12438         even if low N bits of X aren't known to be zero.
12439
12440 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
12441
12442         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
12443
12444         * config/i386/i386.c (initial_ix86_tune_features): Add
12445         X86_TUNE_VECTORIZE_DOUBLE.
12446         (ix86_units_per_simd_word): New.
12447
12448         * config/i386/i386.h (ix86_tune_indices): Add
12449         X86_TUNE_VECTORIZE_DOUBLE.
12450         (TARGET_VECTORIZE_DOUBLE): New.
12451         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
12452
12453 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
12454
12455         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
12456         (new_temp_expr_table): Allocate call_cnt vector.
12457         (free_temp_expr_table): Free it.
12458         (process_replaceable): Add call_cnt parm and set in vector.
12459         (find_replaceable_in_bb): Skip replacement if def/use span a call.
12460         (debug_ter): Dump call_cnt value, remove stderr uses.
12461
12462 2010-09-13  Jan Hubicka  <jh@suse.cz>
12463
12464         * tree.c (build_zero_cst): New.
12465         * tree.h (build_zero_cst): Declare.
12466         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
12467         (get_base_constructor): Break out from ...
12468         (fold_const_aggregate_ref): Here; handle empty constructors.
12469
12470 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12471
12472         * config/arm/arm.md: (define_attr "conds"): Update comment.
12473         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
12474         conds attribute to clob.
12475         (arm_sync_compare_and_swapsi): Likewise.
12476         (arm_sync_compare_and_swap<mode>): Likewise.
12477         (arm_sync_lock_test_and_setsi): Likewise.
12478         (arm_sync_lock_test_and_set<mode>): Likewise.
12479         (arm_sync_new_<sync_optab>si): Likewise.
12480         (arm_sync_new_nandsi): Likewise.
12481         (arm_sync_new_<sync_optab><mode>): Likewise.
12482         (arm_sync_new_nand<mode>): Likewise.
12483         (arm_sync_old_<sync_optab>si): Likewise.
12484         (arm_sync_old_nandsi): Likewise.
12485         (arm_sync_old_<sync_optab><mode>): Likewise.
12486         (arm_sync_old_nand<mode>): Likewise.
12487
12488 2010-09-13  Olivier Hainque  <hainque@adacore.com>
12489
12490         * fwprop.c (forward_propagate_and_simplify): Only attach a
12491         REG_EQUAL note to an insn if the destination is a register.
12492         * gcse.c (try_replace_reg): Likewise.
12493
12494 2010-09-13  Richard Guenther  <rguenther@suse.de>
12495
12496         PR tree-optimization/45611
12497         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
12498         (copy_ref_info): Likewise.
12499
12500 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
12501
12502         PR debug/45604
12503         PR debug/45419
12504         PR debug/45408
12505         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12506         types of MEM_REF pointer types to the same type.
12507
12508 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
12509
12510         PR rtl-optimization/41087
12511         * ifcvt.c (noce_get_condition): Don't allow conditions with
12512         side-effects.
12513
12514 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
12515
12516         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12517         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
12518         * config/frv/frv.c (frv_register_move_cost): Make static. Change
12519         arguments type to reg_class_t. Add mode argument.
12520         (frv_memory_move_cost): New.
12521         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
12522
12523 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
12524
12525         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
12526         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
12527
12528 2010-09-10  Jan Hubicka  <jh@suse.cz>
12529
12530         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
12531
12532 2010-09-10  Richard Guenther  <rguenther@suse.de>
12533
12534         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
12535         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
12536         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
12537         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
12538         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
12539
12540 2010-09-10  Richard Guenther  <rguenther@suse.de>
12541
12542         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
12543         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
12544         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
12545         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
12546
12547 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12548
12549         PR middle-end/45634
12550         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
12551         of string folding is of integral type.
12552
12553 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
12554
12555         * doc/invoke.texi (-x): Fix typo.
12556
12557 2010-09-10  Richard Guenther  <rguenther@suse.de>
12558
12559         PR debug/44115
12560         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
12561         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12562         Output DECL_DEBUG_EXPR.
12563         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12564         Input DECL_DEBUG_EXPR.
12565
12566 2010-09-10  Richard Guenther  <rguenther@suse.de>
12567
12568         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
12569         (build_index_type): Implement in terms of build_range_type.
12570         (build_range_type): Do not allow NULL_TREE type, improve
12571         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
12572         if we didn't hash.
12573         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
12574         create a distinct copy of the type.
12575
12576 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
12577
12578         * configure: Regenerated.
12579         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
12580
12581 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12582
12583         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
12584         * config/arm/cortex-a9-neon.md: New and partially generated.
12585         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
12586
12587 2010-09-10  Richard Guenther  <rguenther@suse.de>
12588
12589         * tree.h (build_index_2_type): Remove.
12590         * tree.c (build_index_2_type): Remove.
12591
12592 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
12593
12594         PR bootstrap/45630
12595         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
12596         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
12597         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
12598
12599 2010-09-10  Martin Jambor  <mjambor@suse.cz>
12600
12601         PR tree-optimization/44972
12602         * tree-sra.c: Include toplev.h.
12603         (build_ref_for_offset): Entirely reimplemented.
12604         (build_ref_for_model): New function.
12605         (build_user_friendly_ref_for_offset): New function.
12606         (analyze_access_subtree): Removed build_ref_for_offset check.
12607         (propagate_subaccesses_across_link): Likewise.
12608         (create_artificial_child_access): Use
12609         build_user_friendly_ref_for_offset.
12610         (propagate_subaccesses_across_link): Likewise.
12611         (ref_expr_for_all_replacements_p): Removed.
12612         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
12613         (sra_modify_expr): Use build_ref_for_model.
12614         (load_assign_lhs_subreplacements): Likewise.
12615         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
12616         checks for return values of build_ref_for_offset.
12617         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
12618         build_ref_for_offset.
12619         * ipa-prop.h: Include gimple.h
12620         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
12621         (ipa_analyze_indirect_call_uses): Update comment.
12622         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
12623         (IPA_PROP_H): Likewise.
12624
12625 2010-09-10  Martin Jambor  <mjambor@suse.cz>
12626
12627         PR tree-optimization/44972
12628         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
12629         calling build_ref_for_offset.
12630
12631 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12632
12633         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
12634         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
12635         * config/arm/arm-tune.md: Regenerate.
12636         * doc/invoke.texi (ARM Options): Document it.
12637
12638 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
12639
12640         * config/i386/i386.c: Include sched-int.h.
12641         (TARGET_SCHED_DISPATCH): Defined.
12642         (TARGET_SCHED_DISPATCH_DO): Defined.
12643         (DISPATCH_WINDOW_SIZE): Defined.
12644         (MAX_DISPATCH_WINDOWS): Defined.
12645         (MAX_INSN): Defined.
12646         (MAX_IMM): Defined.
12647         (MAX_IMM_SIZE): Defined.
12648         (MAX_IMM_32): Defined.
12649         (MAX_IMM_64): Defined.
12650         (MAX_LOAD): Defined.
12651         (MAX_STORE): Defined.
12652         (BIG): Defined.
12653         (dispatch_group): New.
12654         (num_allowable_groups): New.
12655         (group_name): New.
12656         (sched_insn_info_s): New.
12657         (dispatch_windows_s): New.
12658         (imm_info_s): New.
12659         (dispatch_window_list): New.
12660         (dispatch_window_list1): New.
12661         (get_mem_group): New.
12662         (is_cmp): New.
12663         (dispatch_violation): New.
12664         (is_branch): New.
12665         (is_prefetch): New.
12666         (init_window): New.
12667         (allocate_window): New.
12668         (init_dispatch_sched): New.
12669         (is_end_basic_block): New.
12670         (process_end_window): New.
12671         (allocate_next_window): New.
12672         (find_constant_1): New.
12673         (find_constant): New.
12674         (get_num_immediates): New.
12675         (has_immediate): New.
12676         (get_insn_path): New.
12677         (get_insn_group): New.
12678         (count_num_restricted): New.
12679         (fits_dispatch_window): New.
12680         (add_insn_window): New.
12681         (add_to_dispatch_window): New.
12682         (debug_dispatch_window_file): New.
12683         (debug_dispatch_window): New.
12684         (debug_insn_dispatch_info_file): New.
12685         (debug_ready_dispatch): New.
12686         (do_dispatch): New.
12687         (has_dispatch): New.
12688         * config/i386/i386.h (debug_ready_dispatch): Declared.
12689         (debug_dispatch_window): Declared.
12690         * config/i386/i386.opt (mdispatch-scheduler): New flag.
12691         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
12692         (TARGET_SCHED_DISPATCH_DO): New.
12693         * doc/tm.texi: Regererated.
12694         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
12695         ready_remove_first_dispatch
12696         (schedule_block): Call targetm.sched.dispatch and
12697         targetm.sched.dispatch_do.
12698         (sched_init): Call targetm.sched.dispatch and
12699         targetm.sched.dispatch_do.
12700         (ready_remove_first_dispatch): New.
12701         (number_in_ready): New.
12702         (get_ready_element): New.
12703         * hooks.c (hook_bool_rtx_int_false): New.
12704         (hook_void_rtx_int): New.
12705         * hooks.h (hook_bool_rtx_int_false): Declared.
12706         (hook_void_rtx_int): Declared.
12707         * sched-int.h (IS_DISPATCH_ON): Defined.
12708         (IS_CMP): Defined.
12709         (DISPATCH_VIOLATION): Defined.
12710         (FITS_DISPATCH_WINDOW): Defined.
12711         (DISPATCH_INIT): Defined.
12712         (ADD_TO_DISPATCH_WINDOW): Defined.
12713         (get_ready_element): Declared.
12714         (number_in_ready): Declared.
12715         * target.def (dispatch): Defined.
12716         (dispatch_do): Defined.
12717
12718 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12719
12720         PR middle-end/45312
12721         * reload1.c (merge_assigned_reloads): Remove.
12722         (reload_as_needed): Don't call it.
12723
12724 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
12725
12726         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
12727         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12728         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12729
12730 2010-09-09  Matthias Klose  <doko@ubuntu.com>
12731
12732         PR bootstrap/43847
12733         * configure.ac (--enable-plugin): Enhance for cross builds.
12734         * configure: Regenerate.
12735
12736 2010-09-09  Jan Hubicka  <jh@suse.cz>
12737
12738         PR tree-optimization/45598
12739         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
12740         string folding is of integral type.
12741
12742 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12743
12744         * configure.ac (gnu_indirect_function): New test.
12745         * configure: Rebuilt.
12746         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
12747         * defaults.h (IFUNC_ASM_TYPE): Provide default.
12748
12749         * doc/extend.texi (Function Attributes): Document ifunc.
12750         * varasm.c (do_assemble_alias): Deal with ifuncs too.
12751
12752 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12753
12754         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
12755         epilogue instruction move.
12756
12757 2010-09-09  Jan Hubicka  <jh@suse.cz>
12758
12759         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
12760         command line to allow more partitions than input files.
12761
12762 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12763
12764         PR middle-end/44554
12765         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
12766
12767 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12768
12769         PR middle-end/40386
12770         * ira.c (pseudo_for_reload_consideration_p): Don't use
12771         flag_ira_share_spill_slots.
12772
12773 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12774
12775         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
12776         point zero operands that fit into a single GPR.
12777         (s390_preferred_reload_class): Ensure we only return general-purpose
12778         register classes.
12779         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
12780         floating-point zero operands into GPRs.
12781         ("*mov<mode>_64"): Likewise.
12782         ("mov<mode>"): Likewise using lhi.
12783
12784 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12785
12786         * config/s390/s390.c (s390_symref_operand_p): Return false for
12787         literal pool references.
12788         (s390_check_qrst_address): Update caller.
12789
12790 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
12791
12792         * config/i386/predicates.md (ext_register_operand): Check that
12793         SUBREG_REG is really a register before looking for REGNO.
12794         (reg_not_xmm0_operand): Handle SUBREGs correctly.
12795         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
12796
12797 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
12798
12799         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
12800         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
12801         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
12802         * print-rtl.c (print_rtx): Likewise.
12803         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12804         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
12805         for ADDR_EXPR with non-addressable object.
12806         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
12807         (struct dw_val_struct): Add v.val_decl_ref.
12808         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
12809         Handle DW_OP_GNU_implicit_pointer.
12810         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
12811         (get_ref_die_offset_label): New function.
12812         (implicit_ptr_descriptor): New function.
12813         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
12814         (loc_descriptor): Likewise.
12815         (gen_variable_die): Put even definitions into decl_die_table.
12816         (resolve_addr_in_expr): Resolve still unresolved
12817         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
12818         return false.
12819         (dwarf2out_finish): Call output_location_lists after outputting
12820         .debug_info and .debug_abbrev instead of before.
12821
12822 2010-09-09  Roland McGrath  <roland@redhat.com>
12823
12824         * dwarf2out.c (DWARF_REF_SIZE): Define.
12825         (size_of_loc_descr): Use it for DW_OP_call_ref.
12826
12827 2010-09-09  Alan Modra  <amodra@gmail.com>
12828
12829         * doc/invoke.text: Reinstate mcmodel=medium.
12830         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12831         CMODEL_MEDIUM as default.
12832         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
12833         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
12834         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
12835         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
12836
12837 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12838
12839         PR target/45250
12840         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
12841         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
12842         (builtin_longjmp): Likewise.
12843         (allocate_stack): Use hard_frame_pointer_rtx instead of
12844         frame_pointer_rtx.
12845         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
12846         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
12847         (pa_can_eliminate): Likewise.
12848         (TARGET_INTERNAL_ARG_POINTER): Define.
12849         (TARGET_CAN_ELIMINATE): Define.
12850         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
12851         pointer.
12852         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
12853         (pa_internal_arg_pointer, pa_can_eliminate,
12854         pa_initial_elimination_offset): New.
12855         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
12856         (HARD_FRAME_POINTER_REGNUM): Set to register three.
12857         (INITIAL_FRAME_POINTER_OFFSET): Delete.
12858         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
12859         Define.
12860         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
12861         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
12862         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
12863         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
12864         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
12865         new soft frame pointer.
12866         * config/pa/pa64-regs.h: Likewise.
12867
12868 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12869
12870         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
12871         numerical constant.
12872         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
12873
12874 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12875
12876         PR debug/45531
12877         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
12878
12879 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12880
12881         PR debug/45419
12882         PR debug/45408
12883         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12884         qualifiers in otherwise equal MEM_REF pointer types.
12885         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
12886         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
12887
12888 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12889
12890         PR target/44392
12891         * config/arm/arm.md (bswapsi2): Handle condition correctly
12892         for armv6 and optimize_size.
12893
12894 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12895
12896         PR other/18555
12897         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
12898
12899 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12900
12901         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
12902         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
12903         ix86_expand_strlen, legitimate_pic_address_disp_p,
12904         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
12905         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
12906         ix86_check_movabs, ix86_secondary_memory_needed): Change function
12907         prototype to bool.
12908         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
12909         return_in_memory_ms_64, ix86_check_movabs,
12910         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
12911         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
12912         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
12913         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
12914         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
12915         ix86_secondary_memory_needed): Change to bool.  Return
12916         "true" and "false" values.
12917         * config/i386/i386.md: Return "true" and "false" values.
12918
12919 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12920
12921         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12922         run_expensive_tests.
12923
12924 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12925
12926         * toplev.c (output_stack_usage): Use lbasename instead of basename.
12927
12928 2010-09-08  Martin Jambor  <mjambor@suse.cz>
12929
12930         PR other/45443
12931         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
12932         at -O3.
12933
12934 2010-09-08  Richard Guenther  <rguenther@suse.de>
12935
12936         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
12937         (visit): Adjust.
12938         (iterative_hash_gimple_type): Likewise.
12939         (gimple_type_hash): Likewise.
12940         (gimple_register_type): Likewise.
12941         (print_gimple_types_stats): Likewise.
12942         (free_gimple_type_tables): Likewise.
12943
12944 2010-09-08  Michael Matz  <matz@suse.de>
12945
12946         PR tree-optimization/43430
12947         * tree-vect-stmts.c (vectorizable_condition): Support multiple
12948         copies for conditional statements if it's not part of a reduction.
12949
12950 2010-09-08  Michael Matz  <matz@suse.de>
12951
12952         PR tree-optimization/33244
12953         * tree-ssa-sink.c (statement_sink_location): Don't sink into
12954         empty loop latches.
12955
12956 2010-09-08  Richard Guenther  <rguenther@suse.de>
12957
12958         PR tree-optimization/45578
12959         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
12960         Be more careful when transfering alignment information to
12961         the new induction variable.
12962         (copy_ref_info): Likewise.
12963
12964 2010-09-08  Richard Guenther  <rguenther@suse.de>
12965
12966         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
12967         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
12968
12969 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
12970
12971         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
12972         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
12973
12974 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
12975
12976         PR doc/45587
12977         * doc/md.texi: Fixed modes on several standard pattern names.
12978
12979 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
12980
12981         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
12982         (ashl<mode>3): ...this.
12983         (loongson_psra<V_suffix>): Rename to...
12984         (ashr<mode>3): ...this.
12985         (loongson_psrl<V_suffix>): Rename to...
12986         (lshr<mode>3): ...this.
12987         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
12988         (CODE_FOR_loongson_psllw): Define.
12989         (CODE_FOR_loongson_psrlh): Define.
12990         (CODE_FOR_loongson_psrlw): Define.
12991         (CODE_FOR_loongson_psrah): Define.
12992         (CODE_FOR_loongson_psraw): Define.
12993
12994 2010-09-07  Richard Henderson  <rth@redhat.com>
12995
12996         * tree-vect-data-refs.c: Include tm_p.h.
12997         * Makefile.in (tree-vect-data-refs.o): Update deps.
12998         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
12999         Move delarations outside #ifdef RTX_CODE.
13000
13001 2010-09-07  Richard Henderson  <rth@redhat.com>
13002
13003         * final.c (rest_of_handle_final): Unconditionally do
13004         output_function_exception_table before assemble_end_function.
13005
13006 2010-09-07  Jan Hubicka  <jh@suse.cz>
13007
13008         * tree-inline.c (tree_inlinable_function_p): Do not test
13009         DECL_REPLACEABLE_P.
13010         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
13011         update_callee_keys, cgraph_decide_inlining): Test function availability.
13012         * cif-code.def (OVERWRITABLE): New code.
13013
13014 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
13015             Jack Howarth  <howarth@bromo.med.uc.edu>
13016
13017         PR target/36502
13018         PR target/42313
13019         PR target/44651
13020         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
13021         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
13022         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
13023         MAX macro.
13024
13025 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13026
13027         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
13028         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
13029
13030 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13031
13032         * config.gcc: Don't append t-android for Android targets.
13033
13034         * config/t-android: Removed.
13035
13036 2010-09-07  Richard Henderson  <rth@redhat.com>
13037
13038         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
13039         * doc/tm.texi.in: Add doc marker.
13040         * doc/tm.texi: Rebuild.
13041         * except.c (switch_to_exception_section): Always build.
13042         (output_one_function_exception_table): Move section switch,
13043         personality output, and label output ...
13044         (output_function_exception_table): ... here.  Use the new
13045         personality hook.
13046
13047         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
13048         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
13049         TARGET_ASM_INIT_SECTIONS): New.
13050         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
13051         make static.
13052         (TARGET_ASM_UNWIND_EMIT): Update to match.
13053         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
13054
13055         * config/arm/arm.c (arm_asm_emit_except_personality): New.
13056         (arm_asm_init_sections): New.
13057         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
13058
13059 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13060
13061         * config/arm/arm.md: Remove unused variable.
13062
13063 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
13064
13065         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13066         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
13067         (m32r_memory_move_cost): New function.
13068
13069 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13070
13071         * config.gcc: Append t-android for Android targets.
13072
13073         * config/t-android: New.
13074
13075 2010-09-07  Richard Henderson  <rth@redhat.com>
13076
13077         * target.def (unwind_emit_before_insn): New hook.
13078         * doc/tm.texi.in: Add @hook marker for it.
13079         * doc/tm.texi: Rebuild.
13080         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
13081
13082 2010-09-07  Martin Jambor  <mjambor@suse.cz>
13083
13084         PR fortran/43665
13085         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
13086         are any type attributes.
13087
13088 2010-09-07  Jan Hubicka  <jh@suse.cz>
13089
13090         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
13091         array_ref_low_bound in string access folding.
13092
13093 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
13094
13095         PR target/45206
13096         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
13097         eh_return fixup sequence.
13098
13099 2010-09-07  Jan Hubicka  <jh@suse.cz>
13100
13101         * gimple-fold.c (maybe_fold_reference): Verify that operand is
13102         gimple_min_invariant.
13103
13104 2010-09-07  Richard Guenther  <rguenther@suse.de>
13105
13106         PR middle-end/45569
13107         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
13108         nor CONSTRUCTOR can trap.
13109         * tree-complex.c (update_complex_assignment): Update EH info.
13110
13111 2010-09-07  Richard Guenther  <rguenther@suse.de>
13112
13113         PR middle-end/45569
13114         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
13115         * passes.c (execute_function_todo): Do not verify anything if
13116         we saw errors.
13117
13118 2010-09-07  Richard Guenther  <rguenther@suse.de>
13119
13120         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
13121
13122 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
13123
13124         PR target/43137
13125         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
13126         New define_mode_attrs.
13127         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
13128         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
13129         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
13130         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
13131         Remove pool_range attribute.
13132         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
13133         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
13134         pool_range and neg_pool_range attributes.
13135         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
13136         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
13137         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
13138
13139 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13140
13141         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
13142         check glibc.
13143
13144 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13145
13146         PR target/22152
13147         * config/i386/mmx.md (*mov<mode>_internal_rex64,
13148         *mov<mode>_internal_avx, *mov<mode>_internal,
13149         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
13150         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
13151
13152 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
13153
13154         * c-typeck.c (do_warn_double_promotion): Remove.
13155         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
13156         Objective-C++ too.
13157
13158 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
13159
13160         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
13161         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
13162         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
13163         argument type to reg_class_t. Change result type to bool.
13164         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13165
13166 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
13167
13168         PR libobjc/19850
13169         * gthr-posix.h (__gthread_objc_thread_detach): Use
13170         _objc_thread_attribs when detaching a thread.
13171         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
13172
13173 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13174
13175         PR target/45524
13176         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
13177         * configure: Regenerated.
13178
13179 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13180
13181         * combine.c (try_combine): Set subst_low_luid to i0.
13182
13183 2010-09-06  Richard Guenther  <rguenther@suse.de>
13184
13185         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
13186         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
13187         (build_aligned_type): Declare.
13188         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
13189         (check_aligned_type): New function.
13190         (build_aligned_type): Likewise.
13191         * expr.c (expand_assignment): Handle misaligned stores via
13192         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
13193         (expand_expr_real_1): Likewise.
13194         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
13195         * tree-vect-stmts.c (vectorizable_store): Do not build
13196         MISALIGNED_INDIRECT_REF but initialize alignment information.
13197         (vectorizable_load): Likewise.
13198         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
13199         handling.
13200         * cfgexpand.c (expand_debug_expr): Likewise.
13201         * dwarf2out.c (loc_list_from_tree): Likewise.
13202         * fold-const.c (maybe_lvalue_p): Likewise.
13203         (operand_equal_p): Likewise.
13204         (build_fold_addr_expr_with_type_loc): Likewise.
13205         * gimplify.c (gimplify_addr_expr): Likewise.
13206         (gimplify_expr): Likewise.
13207         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13208         (verify_gimple_assign_single): Likewise.
13209         * tree-dump.c (dequeue_and_dump): Likewise.
13210         (tree_could_trap_p): Likewise.
13211         * tree-predcom.c (ref_at_iteration): Likewise.
13212         * tree-pretty-print.c (dump_generic_node): Likewise.
13213         (op_code_prio): Likewise.
13214         (op_symbol_code): Likewise.
13215         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
13216         * tree-ssa-loop-im.c (for_each_index): Likewise.
13217         (gen_lsm_tmp_name): Likewise.
13218         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13219         (find_interesting_uses_address): Likewise.
13220         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13221         * tree-ssa-operands.c (get_expr_operands): Likewise.
13222         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13223         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13224         (ao_ref_init_from_vn_reference): Likewise.
13225         * tree.c (staticp): Likewise.
13226         (build1_stat): Likewise.
13227         (reference_alias_ptr_type): Likewise.
13228         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13229         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
13230         MISALIGNED_INDIRECT_REF handling.
13231
13232 2010-09-06  Richard Guenther  <rguenther@suse.de>
13233
13234         PR tree-optimization/45534
13235         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
13236         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
13237         on the target.
13238         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
13239         valid on the target.
13240
13241 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13242
13243         * configure.ac: Quote argument of AC_MSG_WARN.
13244         * configure: Regenerate.
13245
13246 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
13247
13248         * sel-sched.c (move_cond_jump): Correct arguments to
13249         maybe_tidy_empty_bb.
13250         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13251
13252 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
13253
13254         PR rtl-optimization/44919
13255         * sel-sched.c (move_cond_jump): Remove assert, check that
13256         the several blocks case can only happen with mutually exclusive
13257         insns instead.  Rewrite the movement code to support moving through
13258         several basic blocks.
13259
13260 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13261
13262         * config/i386/i386.md (iptrsize): New mode attribute.
13263         (tp_seg): Ditto.
13264         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
13265         mode iterator.
13266         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
13267         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
13268         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
13269         (stack_tls_protect_set_<mode>): Ditto from
13270         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
13271         of thread base pointer load.
13272         (stack_tls_protect_test_<mode>): Ditto from
13273         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
13274         of thread base pointer load.
13275         (stack_protect_set): Rewrite using indirect functions.
13276         (stack_protect_test): Ditto.
13277         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
13278         (ix86_print_operand): Handle '@'.
13279
13280 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
13281
13282         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
13283         MINUS_EXPR.
13284
13285 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
13286
13287         * doc/invoke.texi: Document -Wdouble-promotion.
13288         * c-typeck.c (convert_arguments): Check for implicit conversions
13289         from float to double.
13290         (do_warn_double_promotion): New function.
13291         (build_conditional_expr): Use it.
13292         (build_binary_op): Likewise.
13293
13294 2010-09-05  Richard Guenther  <rguenther@suse.de>
13295
13296         PR tree-optimization/45535
13297         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13298         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
13299         dereferencing it.
13300         (indirect_refs_may_alias_p): Likewise.
13301
13302 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
13303
13304         * config/sh/sh.c (sh_option_override): Make static.
13305         Adjust comments.  Declare.
13306         (sh_function_value_regno_p): Likewise.
13307         (sh_register_move_cost): Modify the arguments, make static.
13308         Adjust comments.  Declare.
13309         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
13310         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13311         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
13312         REGISTER_MOVE_COST): Delete.
13313         * config/sh/sh-protos.h (sh_override_options): Delete.
13314         (sh_register_move_cost): Delete.
13315         (sh_function_value_regno_p): Delete.
13316
13317 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
13318
13319         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
13320         m32r_function_value_regno_p): New functions.
13321         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13322         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
13323         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
13324         FUNCTION_VALUE_REGNO_P): Remove.
13325
13326 2010-09-04  Jan Hubicka  <jh@suse.cz>
13327
13328         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
13329         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
13330         fold_read_from_constant_string.
13331
13332         * gimple.h (canonicalize_constructor_val): Declare.
13333         * gimple-fold.c (canonicalize_constructor_val): New function.
13334         (get_symbol_constant_value):Use it.
13335         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
13336
13337 2010-09-04  Jan Hubicka  <jh@suse.cz>
13338
13339         * tree-switch-conversion.c (build_one_array): Set constructor to be
13340         static.
13341         * varpool.c (varpool_finalize_decl): Compute const_value_known.
13342
13343 2010-09-04  Richard Guenther  <rguenther@suse.de>
13344
13345         PR bootstrap/45519
13346         * tree-flow.h (force_gimple_operand_1): Declare.
13347         (force_gimple_operand_gsi_1): Likewise.
13348         * gimplify.c (force_gimple_operand_1): New worker taking a
13349         gimple predicate for ...
13350         (force_gimple_operand): ... which now wraps it.
13351         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
13352         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
13353         last change.
13354         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
13355         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
13356         (create_mem_ref): Likewise.
13357
13358 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
13359
13360         * config/i386/predicates.md (sse_reg_operand): New predicate.
13361         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
13362         predicate for operand 1.
13363         (XFmode push splitter): Use fp_register_operand predicate
13364         for operand 1.
13365         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
13366         (SF-DF float_extend push splitter): Add reload_completed insn
13367         predicate.
13368         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
13369         MODEF mode macro.  Add reload_completed insn predicate.
13370
13371 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
13372
13373         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
13374         (struct df_extract_ref): Remove.
13375         (union df_ref_d): Remove extract_ref member.
13376         (df_ref_create): Remove last three arguments.
13377         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
13378         * df-scan.c (df_ref_record): Remove last three arguments, do not
13379         pass them to df_ref_create_structure.
13380         (df_uses_record): Remove first and last three arguments.  Replace
13381         first argument with DF_REF_REGULAR, adjust calls to remove the
13382         width, offset and mode.  Always call recursively on the second
13383         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
13384         (df_ref_create_structure): Remove first argument.
13385         (struct df_scan_problem_data): Remove ref_extract_pool.
13386         (df_scan_free_internal): Do not free it.
13387         (df_scan_alloc): Do not allocate it.
13388         (df_ref_create): Remove last three arguments, do not pass them to
13389         df_ref_create_structure.
13390         (df_free_ref): Remove DF_REF_EXTRACT case.
13391         (df_notes_rescan): Adjust call to df_uses_record.
13392         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
13393         Remove DF_REF_EXTRACT case.
13394         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
13395         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
13396         and SUBREG definitions.
13397         (df_get_conditional_uses): Remove references to width/offset/mode,
13398         adjust call to df_ref_create_structure.
13399         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
13400         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
13401         calls to df_uses_record and df_ref_record.
13402         * fwprop.c (update_df): Remove references to width/offset/mode,
13403         adjust call to df_ref_create.
13404
13405 2010-09-03  Jan Hubicka  <jh@suse.cz>
13406
13407         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
13408         (build_cdtor_fns): Update use of build_cdtor.
13409
13410 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
13411
13412         * doc/options.texi (SeparateAlias): Document.
13413         * opt-functions.awk (switch_flags): Handle SeparateAlias.
13414         * opth-gen.awk: Generate enumeration names for options marked
13415         SeparateAlias, but not for those marked Ignore.
13416         * opts-common.c (generate_canonical_option): Don't output separate
13417         argument for options marked CL_SEPARATE_ALIAS.
13418         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
13419         * opts.h (CL_SEPARATE_ALIAS): New.
13420         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13421         CL_COMMON): Adjust definitions.
13422         * config/i386/darwin.opt, config/mips/sde.opt: New.
13423         * common.opt (fdump-final-insns): New.
13424         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13425         i386/darwin.opt.
13426         (mips*-sde-elf*): Add mips/sde.opt.
13427         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
13428         -mno-data-in-code and -mcode-xonly here.
13429         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
13430         * gcc.c (option_map): Add "j" to --dump entry.
13431         (translate_options): Don't translate -d to -foutput-class-dir= here.
13432
13433 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
13434
13435         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
13436         DR_IS_WRITE.
13437         (compute_all_dependences): Same.
13438         (create_rdg_edge_for_ddr): Same.
13439         * tree-data-ref.h (DR_IS_WRITE): New.
13440         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
13441         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
13442         (write_memrefs_written_at_least_once): Same.
13443         * tree-predcom.c (suitable_component_p): Same.
13444         (determine_roots_comp): Same.
13445         (execute_load_motion): Same.
13446         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
13447         (vect_enhance_data_refs_alignment): Same.
13448         (vect_analyze_group_access): Same.
13449
13450 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
13451
13452         PR testsuite/42843
13453         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
13454         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
13455
13456 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
13457
13458         * dwarf2out.c (file scope): Remove #if0'd code.
13459         (gen_subprogram_die): Same.
13460
13461 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
13462
13463         PR middle-end/45484
13464         * dwarf2out.c (flush_queued_reg_saves): Rename to...
13465         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
13466         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
13467         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
13468         * config/i386/i386.c (output_set_got): Call it.
13469
13470 2010-09-03  Michael Matz  <matz@suse.de>
13471
13472         PR middle-end/45415
13473         * tree-sra.c (sra_modify_assign): If we modify the statement,
13474         say so.
13475
13476         * tree-ssa.c (verify_ssa): Check number of operands and links
13477         per statement to agree.
13478
13479 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
13480             Iain Sandoe  <iains@gcc.gnu.org>
13481
13482         PR target/45476
13483         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
13484         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
13485         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13486
13487 2010-09-03  Richard Guenther  <rguenther@suse.de>
13488
13489         * lto-streamer-out.c (output_function): Output function
13490         start and end loci.
13491         * lto-streamer-in.c (input_function): Input function start
13492         and end loci.
13493
13494 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13495
13496         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
13497         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
13498         * configure: Regenerate.
13499         * aclocal.m4: Regenerate.
13500
13501 2010-09-03  Jan Hubicka  <jh@suse.cz>
13502
13503         PR lto/44812
13504         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
13505         on functions/variables in other partition.
13506
13507 2010-09-03  Jan Hubicka  <jh@suse.cz>
13508
13509         * cgraph.h (struct varpool_node): Add const_value_known.
13510         (varpool_decide_const_value_known): Declare.
13511         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
13512         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
13513         (input_varpool_node): Restore const_value_known.
13514         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
13515         initializer folding.
13516         * ipa.c (ipa_discover_readonly_nonaddressable_var,
13517         function_and_variable_visibility): Compute const_value_known.
13518         * gimple-fold.c (get_symbol_constant_value): Use varpool for
13519         initializer folding.
13520         * varpool.c (varpool_decide_const_value_known): New function.
13521
13522 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
13523
13524         * config/i386/i386.md: Remove empty preparation statements
13525         from splitters.
13526
13527 2010-09-03  Jan Hubicka  <jh@suse.cz>
13528
13529         * passes.c (rest_of_decl_compilation): Do not add local vars into
13530         varpool.
13531         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
13532         static or extern vars are in varpool.
13533         (varpool_finalize_decl): Sanity check that only static vars are
13534         finalized.
13535
13536 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
13537
13538         PR debug/45500
13539         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
13540         not just generic vectors with BLKmode.
13541
13542 2010-09-03  Richard Guenther  <rguenther@suse.de>
13543
13544         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
13545         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
13546         * tree.h (TMR_SYMBOL): Remove.
13547         (TMR_BASE, TMR_OFFSET): Adjust.
13548         (TMR_INDEX2): New.
13549         * alias.c (ao_ref_from_mem): Use TMR_BASE.
13550         * builtins.c (get_object_alignment): Merge TMR_BASE and
13551         TMR_SYMBOL handling.
13552         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
13553         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
13554         handling.  Also allow TARGET_MEM_REF as base address.
13555         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
13556         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
13557         base.  Gimplify TMR_INDEX2.
13558         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
13559         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13560         (get_addr_base_and_unit_offset): Likewise.
13561         * tree-eh.c (tree_could_trap_p): Likewise.
13562         * tree-pretty-print.c (dump_generic_node): Likewise.
13563         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
13564         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
13565         base to index2.
13566         (get_address_description): Reconstruct addres description
13567         from merged TMR_BASE and TMR_INDEX2.
13568         (maybe_fold_tmr): Fold propagated addresses.
13569         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
13570         MEM_REF and TARGET_MEM_REF paths.
13571         (indirect_refs_may_alias_p): Likewise.
13572         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
13573         instead of TMR_SYMBOL.
13574         * tree-ssa-operands.c (get_tmr_operands): Simplify.
13575         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
13576         according to changes ...
13577         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
13578         Split TARGET_MEM_REF into two fields plus the base.
13579         * tree.c (mem_ref_offset): Simplify.
13580         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
13581         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
13582         Strip NOPs when folding MEM_REF addresses.
13583         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
13584         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
13585         (fold_gimple_assign): ... not here.
13586
13587 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
13588
13589         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
13590         * config/mips/mips.c (mips_shift_truncation_mask): New function.
13591         (TARGET_SHIFT_TRUNCATION_MASK): Define.
13592
13593 2010-09-02  Richard Henderson  <rth@redhat.com>
13594
13595         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
13596         instead of readelf in the test.
13597         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
13598         in the .debug_frame section for coff targets.
13599         * configure: Rebuild.
13600
13601 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
13602
13603         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
13604         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
13605         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13606         (m32c_class_likely_spilled_p): Make static. Change argument type to
13607         reg_class_t. Change result type to bool.
13608
13609 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13610
13611         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
13612         to convert (double)(long) into a single FRIZ instruction or not
13613         when -ffast-math is used.
13614
13615         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
13616         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
13617         or FRIZ instruction if -ffast-math.
13618         * config/rs6000/rs6000.md (friz): Ditto.
13619
13620         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
13621
13622 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13623
13624         * opth-gen.awk (quote, comma): Remove unused variables.
13625
13626 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
13627
13628         * arm.c (arm_override_options): Correct fall-back code to use
13629         SUBTARGET_CPU_DEFAULT.
13630
13631 2010-09-02  Julian Brown  <julian@codesourcery.com>
13632
13633         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
13634         unspecs.
13635         (vcond<mode>, vcondu<mode>): New expanders.
13636         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
13637         comparisons with zero.
13638         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
13639         * config/arm/constraints.md (Dz): New constraint.
13640
13641 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
13642
13643         * target.def (class_likely_spilled_p): New hook.
13644         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
13645         * doc/tm.texi: Regenerate.
13646         * targhooks.c (default_class_likely_spilled_p): New function.
13647         * targhooks.h (default_class_likely_spilled_p): Declare.
13648         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
13649         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
13650         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
13651         Use fixed_reg_set instead of fixed_regs.
13652         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
13653         * calls.c (avoid_likely_spilled_reg): Ditto.
13654         * ira-conflicts.c (ira_build_conflicts): Ditto.
13655         * ira.c (update_equiv_regs): Ditto.
13656         * mode-switching.c (create_pre_exit): Ditto.
13657         * regmove.c (find_matches): Ditto.
13658         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
13659         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
13660         (small_register_class_p): New inline function.
13661         (push_secondary_reload, find_reusable_reload, find_reloads): Use
13662         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
13663
13664         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
13665         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
13666         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13667
13668 2010-09-02  Richard Guenther  <rguenther@suse.de>
13669
13670         PR tree-optimization/44937
13671         PR tree-optimization/45412
13672         * ipa-split.c (split_function): Properly remove PHI nodes.
13673
13674 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13675
13676         * opts.h (struct cl_option): Add warn_message field.
13677         (struct cl_decoded_option): Add warn_message field.
13678         * doc/options.texi (Ignore, Warn): Document.
13679         * opt-functions.awk (needs_state_p): Don't consider aliases or
13680         ignored options to need state saved.
13681         * optc-gen.awk: Handle Warn and Ignore.
13682         * opth-gen.awk: Output OPT_SPECIAL_ignore.
13683         * opts-common.c (decode_cmdline_option): Set warn_message field.
13684         Handle ignored options.
13685         (decode_cmdline_options_to_array, generate_option,
13686         generate_option_input_file): Set warn_message field.
13687         (read_cmdline_option): Generate warnings from warn_message field.
13688         Handle ignored options.
13689         * common.opt (Wunreachable-code, fargument-alias,
13690         fargument-noalias, fargument-noalias-global,
13691         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
13692         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
13693         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
13694         ftree-salias): Mark Ignore.
13695         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
13696         -mintel-syntax and -mno-intel-syntax here.
13697         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
13698         using Warn.
13699         * opts.c (common_handle_option): Don't handle options marked as
13700         ignored.
13701         (enable_warning_as_error): Handle ignored options.
13702
13703 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13704
13705         PR driver/44076
13706         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
13707         alias_target fields.
13708         * opt-functions.awk (opt_sanitized_name): Don't handle
13709         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
13710         * optc-gen.awk: Generate alias fields.
13711         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
13712         Don't generate such constants for aliases.
13713         * opts-common.c (generate_canonical_option): New.
13714         (decode_cmdline_option): Handle aliases.  Use
13715         generate_canonical_option for known options instead of copying the
13716         input option text.
13717         * doc/options.texi (Alias): Document.
13718         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
13719         fstack-check, specs): Mark as aliases.
13720         * gcc.c (driver_handle_option): Canonicalize -L options to joined
13721         arguments.
13722         (driver_handle_option): Don't handle OPT_specs.
13723         * opts.c (common_handle_option): Don't handle options marked as
13724         aliases.
13725         (enable_warning_as_error): Handle aliases.
13726         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
13727         OPT_Wlarger_than_eq.
13728         * tree-optimize.c (tree_rest_of_compilation): Use
13729         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
13730
13731 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13732
13733         * config/i386/i386.md (nonmemory_operand): New mode attribute.
13734         (push memory peephole2): Macroize peepholes using SWI mode iterator.
13735         (move immediate to memory peephole2): Macroize peepholes using
13736         SWI124 mode iterator.
13737         (non-pairable NOT peephole2): Macroize peepholes using SWI124
13738         mode iterator.
13739         (simple lea add peephole2): Macroize peepholes using SWI48
13740         mode iterator.
13741         (simple lea mult peephole2): Ditto.
13742         (imul by 3,5,9 to lea peephole2): Ditto.
13743         (mov $-1, reg peephole2): Macroize peepholes using SWI248
13744         mode iterator.
13745         (imul $32bit_imm,mem,reg peephole2): Ditto.
13746         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
13747
13748 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
13749
13750         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
13751
13752 2010-09-02  Olivier Hainque  <hainque@adacore.com>
13753
13754         PR middle-end/44763
13755         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
13756         (allocno_priority_compare_func): Use it instead of a straight
13757         difference computation over priorities.
13758
13759 2010-09-02  Andi Kleen  <ak@linux.intel.com>
13760
13761         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
13762
13763 2010-09-02  Ira Rosen  <irar@il.ibm.com>
13764
13765         * tree-vectorizer.h (get_later_stmt): New function.
13766         (vect_analyze_data_ref_dependences): Add argument.
13767         * tree-vect-loop.c (vect_analyze_loop): Update call to
13768         vect_analyze_data_ref_dependences.
13769         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
13770         New function.
13771         (vect_analyze_data_ref_dependence): Add argument for basic block
13772         dependencies. Check dependencies in basic block vectorization.
13773         (vect_analyze_data_ref_dependences): Add argument and update call to
13774         vect_analyze_data_ref_dependences.
13775         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
13776         (vect_bb_vectorizable_with_dependencies): New.
13777         (vect_slp_analyze_bb): Check dependencies in basic block.
13778         (vect_schedule_slp_instance): Insert stores before the last store in
13779         SLP instance.
13780
13781 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13782
13783         PR target/45476
13784         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
13785         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13786
13787 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
13788
13789         PR middle-end/45458
13790         * bb-reorder.c (add_labels_and_missing_jumps): Treat
13791         bbs ending with throwing insns like blocks ending with a call.
13792         (fix_up_fall_thru_edges): Likewise.
13793
13794 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
13795
13796         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
13797         (m32c_function_arg_advance): Delete.
13798         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13799         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
13800         comments.  Take a const_tree and a bool.  Declare.
13801         (m32c_function_arg_advance): Likewise.
13802         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13803
13804 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13805
13806         PR target/45476
13807         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
13808         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
13809         * config/i386/mingw32.h: ... here.
13810
13811 2010-09-01  Andi Kleen  <ak@linux.intel.com>
13812
13813         PR lto/45475
13814         * lto-streamer-in.c (lto_input_ts_target_option): Add.
13815         (lto_input_tree_pointers): Call lto_input_ts_target_option.
13816         * lto-streamer-out (lto_output_ts_target_option): Add.
13817         (lto_output_tree_pointers): Call lto_output_ts_target_option.
13818
13819 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
13820
13821         PR/target 45452
13822         * config/i386/cygwin.h: Change order of specified import libraries.
13823         * config/i386/mingw32.h: Likewise.
13824         * config/i386/t-cygwin: Likewise.
13825         * config/i386/t-mingw32: Likewise.
13826         * config/i386/t-mingw-w32: Likewise.
13827         * config/i386/t-mingw-w64: Likewise.
13828
13829 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13830
13831         * config/arm/neon-schedgen.ml (core): New type.
13832         (allCores): List of supported cores.
13833         (availability_table): Add supported cores.
13834         (collate_bypasses): Accept core as a parameter.
13835         (worst_case_latencies_and_bypasses): Accept core as a parameter.
13836         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
13837         and coreStr to get tune attribute and prefix for functional units.
13838         (emit_bypasses): Accept core name and use it.
13839         (calculate_per_core_availability_table): New.
13840         (filter_core): New.
13841         (calculate_core_availability_table): New.
13842         (main): Use calculate_core_availablity_table.
13843         * config/arm/cortex-a8-neon.md: Update copyright year.
13844         Regenerated from ml file and merged in.
13845         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
13846         cortex_a8_neon_mrc.
13847
13848 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
13849
13850         * Makefile.in (tree-switch-conversion.o): Update dependencies.
13851
13852 2010-09-01  Richard Guenther  <rguenther@suse.de>
13853
13854         * alias.c (ao_ref_from_mem): Adjust.
13855         * builtins.c (get_object_alignment): Likewise.
13856         * cfgexpand.c (expand_debug_expr): Likewise.
13857         * gimple.c (get_base_address): Likewise.
13858         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13859         (get_addr_base_and_unit_offset): Likewise.  Fix for
13860         both TMR_SYMBOL and TMR_BASE being set.
13861         * tree-eh.c (tree_could_trap_p): Likewise.
13862         * gimplify.c (gimplify_expr): Do not attempt to gimplify
13863         TMR_SYMBOL.  Always gimplify TMR_BASE.
13864         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13865         TMR_BASE if there is a TMR_SYMBOL.
13866         * tree-pretty-print.c (dump_generic_node): Adjust.
13867         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13868         (tree_mem_ref_addr): Likewise.
13869         (create_mem_ref_raw): Likewise.
13870         (move_fixed_address_to_symbol): Likewise.
13871         (create_mem_ref): Likewise.
13872         (dump_mem_address): Likewise.
13873         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
13874         Fix for both TMR_SYMBOL and TMR_BASE being set.
13875         (indirect_refs_may_alias_p): Likewise.
13876         * tree-ssa-operands.c (get_tmr_operands): Adjust.
13877         * tree.def (TARGET_MEM_REF): Adjust documentation.
13878
13879 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13880
13881         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
13882         Rename from X86_TUNE_ADD_ESP_4.
13883         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
13884         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
13885         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
13886         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
13887         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
13888         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
13889         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
13890         * config/i386/i386.c (initial_ix86_tune_features)
13891         <X86_TUNE_SINGLE_POP>: Invert members.
13892         <X86_TUNE_DOUBLE_POP>: Ditto.
13893         <X86_TUNE_SINGLE_PUSH>: Ditto.
13894         <X86_TUNE_DOUBLE_PUSH>: Ditto.
13895         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
13896         No longer exported.
13897         (push peephole2 patterns): Macroize peepholes using P mode iterator.
13898         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
13899         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
13900         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
13901
13902 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
13903
13904         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
13905         a volatile LHS if the constructor has only one element.
13906
13907 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
13908
13909         PR bootstrap/45321
13910         * tree.c (stdarg_p): Make fntype parameter const.
13911         * tree.h (stdarg_p): Likewise.
13912         (function_args_iterator): Remove unused fntype field.
13913         (function_args_iter_init): Do not initialize fntype
13914         field.  Make fntype parameter const.
13915
13916 2010-09-01  Richard Guenther  <rguenther@suse.de>
13917
13918         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
13919         estimate.
13920         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
13921         (execute_vrp): Compute number of iteration estimates.
13922         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
13923         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
13924         * tree-data-ref.c (estimated_loop_iterations): Adjust.
13925         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
13926         Infer loop bounds from undefined behavior based on a new parameter.
13927         (estimate_numbers_of_iterations): Likewise.
13928         (scev_probably_wraps_p): Adjust.
13929         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
13930
13931 2010-09-01  Nick Clifton  <nickc@redhat.com>
13932
13933         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
13934         where appropriate.
13935         (xstormy16_legitimate_address_p): Use true and false instead of 1
13936         and 0.
13937         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
13938         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
13939         magic constant 2.
13940         (xstormy16_expand_call): Fix comment at start of function.
13941
13942 2010-09-01  Nick Clifton  <nickc@redhat.com>
13943
13944         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
13945         when pushing accumulator register.
13946         (rx_get_stack_layout): Always save call clobbered registers inside
13947         interrupt handlers.
13948         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
13949
13950 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13951
13952         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
13953         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13954
13955         * libgcc-std.ver (GCC_4.6.0): Define version.
13956
13957 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13958
13959         * tree-nested.c (convert_all_function_calls): Iterate until after the
13960         sum of static chains in the nest doesn't change.
13961
13962 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
13963
13964         * config/m32c/m32c.c (classes_intersect): Remove.
13965         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
13966         reg_classes_intersect_p instead of classes_intersect.
13967         (class_can_hold_mode): Change arguments type from enum reg_class to
13968         reg_class_t.  Use reg_class_contents instead of class_contents.
13969         (m32c_register_move_cost): Make static. Change arguments type from
13970         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
13971         classes_intersect. Use reg_class_contents instead of class_contents.
13972         (m32c_memory_move_cost): Make static. Change arguments type from
13973         enum reg_class to reg_class_t.
13974         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13975         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13976         * config/m32c/m32c-protos.h (m32c_register_move_cost,
13977         m32c_memory_move_cost): Remove.
13978
13979 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13980
13981         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
13982         (arm_function_arg): Delete.
13983         (arm_needs_doubleword_align): Take a const_tree.
13984         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13985         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
13986         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
13987         (arm_function_arg): Make static.  Take a const_tree and a bool.
13988         (arm_function_arg_advance): Likewise.
13989         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13990
13991 2010-08-31  Andi Kleen  <ak@linux.intel.com>
13992
13993         * common.opt (fwhopr=): Update for -fwhopr=jobserver
13994         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
13995         * lto-wrapper.c (run_gcc): Add jobserver mode.
13996         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
13997         argument.
13998
13999 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
14000
14001         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
14002         (popsi1): Ditto.
14003         (*popdi1_epilogue): Ditto.
14004         (*popsi1_epilogue): Ditto.
14005         (popsi, popdi peephole2 patterns): Update peepholes for changed
14006         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
14007
14008         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
14009         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
14010
14011         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
14012         (override_options): Do not initialize removed ix86_gen_pop1.
14013         (gen_pop): New static function.
14014         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
14015         (release_scratch_register_on_entry): Ditto.
14016         (ix86_restore_reg_using_pop): Ditto.
14017         (ix86_expand_epilogue): Ditto.
14018
14019 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
14020
14021         PR middle-end/45461
14022         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
14023
14024 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14025
14026         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
14027         semicolons.
14028
14029 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14030
14031         * doc/extend.texi: Fix documentation of the return value of
14032         __builtin_choose_expr.
14033
14034 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14035
14036         * config/v850/v850-protos.h (function_arg): Delete.
14037         * config/v850/v850.h (FUNCTION_ARG): Delete.
14038         (FUNCTION_ARG_ADVANCE): Move code to...
14039         * config/v850/v850.c (v850_function_arg_advance): ...here.
14040         (v850_function_arg): Make static.  Take a const_tree and a bool.
14041         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14042
14043 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14044
14045         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
14046         these...
14047         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14048         ...and these...
14049         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
14050         ..to here..
14051         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14052         ...and here.
14053         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14054
14055 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14056
14057         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
14058         Delete.
14059         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14060         * config/rx/rx.c (rx_function_arg_size): Make static.
14061         (rx_function_arg): Likewise.
14062         (rx_function_arg_advance): New function.
14063         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14064
14065 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
14066
14067         * config/arm/arm.c (arm_override_options): Remove superfluous test.
14068         Fix indentation.
14069
14070 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
14071
14072         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
14073         (dwarf2out_decl) <CONST_DECL>: Likewise.
14074
14075 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
14076
14077         Stack usage support
14078         * common.opt (-fstack-usage): New option.
14079         * doc/invoke.texi (Debugging options): Document it.
14080         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
14081         allocate_dynamic_stack_space.
14082         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
14083         and propagate it to allocate_dynamic_stack_space.
14084         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
14085         * calls.c (initialize_argument_information): Pass TRUE as 4th
14086         argument to allocate_dynamic_stack_space.
14087         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
14088         to 1 when pushing a variable-sized argument onto the stack.  Pass
14089         TRUE as 4th argument to allocate_dynamic_stack_space.
14090         Update current_function_pushed_stack_size.
14091         (emit_library_call_value_1): Likewise.
14092         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
14093         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
14094         attempt to find an upper bound.  Remove redundant code for the
14095         SETJMP_VIA_SAVE_AREA case.
14096         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
14097         * function.h (struct stack_usage): New structure.
14098         (current_function_static_stack_size): New macro.
14099         (current_function_dynamic_stack_size): Likewise.
14100         (current_function_pushed_stack_size): Likewise.
14101         (current_function_dynamic_alloc_count): Likewise.
14102         (current_function_has_unbounded_dynamic_stack_size): Likewise.
14103         (current_function_allocates_dynamic_stack_space): Likewise.
14104         (struct function): Add new field 'su'.
14105         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
14106         add the value of the dynamic offset to the dynamic stack usage.
14107         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
14108         for variable-sized objects.
14109         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
14110         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
14111         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
14112         BUILT_IN_ALLOCA for variable-sized objects.
14113         * output.h (output_stack_usage): Declare.
14114         * toplev.c (stack_usage_file): New file pointer.
14115         (output_stack_usage): New function.
14116         (open_auxiliary_file): Likewise.
14117         (lang_dependent_init): Open file if flag_stack_usage is set.
14118         (finalize): Close file if stack_usage_file is not null.
14119         * tree.h (ALLOCA_FOR_VAR_P): New macro.
14120         * config/alpha/alpha.c (compute_frame_size): New function.
14121         (alpha_expand_prologue): Use it.
14122         (alpha_start_function): Likewise.
14123         (alpha_expand_epilogue): Likewise.  Set stack usage info.
14124         * config/i386/i386.c (ix86_expand_prologue): Likewise.
14125         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14126         * config/mips/mips.c (mips_expand_prologue): Likewise.
14127         * config/pa/pa.c (hppa_expand_prologue): Likewise.
14128         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14129         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14130
14131 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
14132
14133         PR tree-optimization/45427
14134         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
14135         Handle the case that the exit is never taken correctly.
14136         (number_of_iterations_ne): Pass exit_must_be_taken to
14137         number_of_iterations_ne_max.
14138
14139 2010-08-30  Catherine Moore  <clm@codesourcery.com>
14140
14141         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
14142         Infer -mdspr2 for the the 74K.
14143
14144 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
14145
14146         PR debug/45419
14147         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
14148
14149         PR middle-end/45423
14150         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
14151         and TRUTH_{AND,OR,XOR}_EXPR.
14152         * c-parser.c (c_parser_omp_atomic): Handle boolean
14153         {PRE,POST}_{INC,DEC}REMENT.
14154
14155 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
14156
14157         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
14158         (function_arg): Delete.
14159         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14160         (FUNCTION_INCOMING_ARG): Delete.
14161         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
14162         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
14163         and a bool.
14164         (function_arg): Rename to...
14165         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
14166         a bool.
14167         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
14168         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14169         (TARGET_FUNCTION_INCOMING_ARG): Define.
14170
14171 2010-08-30  Richard Guenther  <rguenther@suse.de>
14172
14173         PR tree-optimization/21602
14174         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
14175         using points-to information.
14176
14177 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
14178
14179         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
14180
14181 2010-08-30  Richard Guenther  <rguenther@suse.de>
14182
14183         PR tree-optimization/45449
14184         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
14185         variables.
14186
14187 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
14188
14189         * opts.h (CL_ERR_NEGATIVE): Define.
14190         * opts.c (unknown_option_callback): Don't postpone warnings for
14191         options marked with CL_ERR_NEGATIVE.
14192         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
14193         for negative versions of CL_REJECT_NEGATIVE options.
14194
14195 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
14196
14197         * config/i386/i386.md (zero_extendsidi2_1): Rename from
14198         zero_extendsidi2_32.
14199         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
14200         using SWI12 mode iterator.
14201         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
14202         to define_insn_and_split pattern.
14203         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
14204         using SWI24 mode iterator.
14205         (*zero_extendqi<mode>2_and): Macroize insn from
14206         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
14207         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
14208         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
14209         SWI24 mode iterator.
14210         (*zero_extendqi<mode>2_movzbl): Ditto from
14211         *zero_extendqi{hi,si}2_movzbl.
14212         (extendsidi2_1): Rename from extendsidi2_32.
14213         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
14214         SWI12 mode iterator.
14215
14216 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
14217
14218         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
14219         general purpose registers.
14220         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
14221         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
14222         with general purpose registers and memory operands.  Add associated
14223         CCImode post-reload splitter.
14224         * config/ia64/div.md: Change BImode to CCImode throughout.
14225
14226 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
14227
14228         * config/ia64/ia64.md (cstorebi4): Fix thinko.
14229
14230 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
14231
14232         * config/picochip/picochip.c (reorder_var_tracking_notes): This
14233         function was dropping debug insns which caused PR45299.
14234
14235 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
14236
14237         * config/i386/sse.md (extsuffix): New code attribute.
14238         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
14239         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
14240         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
14241         and sse4_1_zero_extendv4qiv4si2.
14242         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
14243         and sse4_1_zero_extendv2qiv2di2.
14244         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
14245         and sse4_1_zero_extendv4hiv4si2.
14246         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
14247         and sse4_1_zero_extendv2hiv2di2.
14248         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
14249         and sse4_1_zero_extendv2siv2di2
14250
14251         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
14252         using any_extend code iterator.
14253         (*avx_<s>mulv8hi3_highpart): Macroize insn from
14254         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
14255         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
14256
14257         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
14258         gen_sse4_1_sign_extend* functions.
14259         (struct builtin_description bdesc_args): Ditto.
14260
14261 2010-08-27  Xinliang David Li  <davidxl@google.com>
14262
14263         PR/45422
14264         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
14265         (iv_ca_set_no_cp): Update used inv expr count.
14266         (iv_ca_set_cp): Ditto.
14267         (iv_ca_new): Initialize new member.
14268         (iv_ca_free): Free memory.
14269
14270 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14271
14272         * config/sh/sh-protos.h (sh_function_arg): Delete.
14273         (sh_function_arg_advance): Delete.
14274         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14275         (PASS_IN_REG_P): Eliminate cast.
14276         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
14277         const_tree and a bool.
14278         (sh_function_arg): Likewise.
14279         (sh_output_mi_thunk): Call sh_function_arg_advance) and
14280         sh_function_arg.
14281         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14282
14283 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
14284             Kaz Kojima  <kkojima@gcc.gnu.org>
14285
14286         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
14287         when possible.
14288         (sh_expand_epilogue): Likewise.
14289         * config/sh/sh.md (movml_push_banked): New insn.
14290         (movml_pop_banked): Likewise.
14291
14292 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
14293
14294         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
14295         gen_regexp_oneof, gen_regexp_sequence): Use the string found
14296         in vector element 0 rather than the original string when there's
14297         only one element.
14298         (gen_regexp): Remove extra semicolon.
14299
14300         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
14301         thumb2_movsf_vfp): Set attribute "insn".
14302         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
14303         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
14304         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14305         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
14306         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
14307         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
14308         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
14309         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
14310         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
14311         if_not_arith, if_arith_not, cond_move_not): Likewise.
14312
14313 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14314
14315         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
14316         New declaration.
14317         (rs6000_allocate_stack_temp): Ditto.
14318         (rs6000_expand_convert_si_to_sfdf): Ditto.
14319
14320         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
14321         line.  Update the options set if power6 or power7 server/embedded
14322         type options are used.  If we give a warning for no vsx under
14323         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
14324         (rs6000_allocate_stack_temp): New function to allocate a stack
14325         tempoary and adjust the address so it meets either REG+OFFSET or
14326         REG+REG addressing requirements.
14327         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
14328         that they can be used with the LFIWAX/LFIWZX instrucitons.
14329         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
14330         converting signed/unsigned SImode to either SFmode/DFmode.
14331
14332         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
14333         whether certain instructions can be generated.
14334         (TARGET_FCTIDZ): Ditto.
14335         (TARGET_STFIWX): Ditto.
14336         (TARGET_LFIWAX): Ditto.
14337         (TARGET_LFIWZX): Ditto.
14338         (TARGET_FCFIDS): Ditto.
14339         (TARGET_FCFIDU): Ditto.
14340         (TARGET_FCFIDUS): Ditto.
14341         (TARGET_FCTIDUZ): Ditto.
14342         (TARGET_FCTIWUZ): Ditto.
14343
14344         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
14345         (UNSPEC_FCTID): Ditto.
14346         (UNSPEC_LFIWAX): Ditto.
14347         (UNSPEC_LFIWZX): Ditto.
14348         (UNSPEC_FCTIWUZ): Ditto.
14349         (rreg): Use correct constraints.
14350         (SI_CONVERT_FP): New mode attribute for floating point conversion
14351         tests.
14352         (E500_CONVERT): Ditto.
14353         (lfiwax): New insns for converting from integer to floating point
14354         utilizing newer instructions.  Attempt to optimize conversions
14355         that come from memory so that we don't load the value into a GPR,
14356         spill it to the stack and reload it into a FPR.
14357         (floatsi<mode>2_lfiwax): Ditto.
14358         (floatsi<mode>2_lfiwax_mem): Ditto.
14359         (floatsi<mode>2_lfiwax_mem2): Ditto.
14360         (lfiwzx): Ditto.
14361         (floatunssi<mode>2_lfiwzx): Ditto.
14362         (floatunssi<mode>2_lfiwzx_mem): Ditto.
14363         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
14364         (floatdidf2_mem): Ditto.
14365         (floatunsdidf2_fcfidu): Ditto.
14366         (floatunsdidf2_mem): Ditto.
14367         (floatunsdisf2): Ditto.
14368         (floatunsdisf2_fcfidus): Ditto.
14369         (floatunsdisf2_mem): Ditto.
14370         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
14371         Use FCFID on 32-bit hosts that support it.
14372         (floatsidf2_internal): Ditto.
14373         (floatunssisf2): Ditto.
14374         (floatunssidf2): Ditto.
14375         (floatunssidf2_internal): Ditto.
14376         (floatsisf2): Ditto.
14377         (floatdidf2): Ditto.
14378         (floatdidf2_fpr): Ditto.
14379         (floatunsdidf2): Ditto.
14380         (floatdisf2): Ditto.
14381         (floatdisf2_fcfids): Ditto.
14382         (floatdisf2_internal1): Ditto.
14383         (fixuns_truncsfsi2): Delete, merge into common pattern for both
14384         SF/DF.  Add power7 support.
14385         (fix_truncsfsi2): Ditto.
14386         (fixuns_truncdfsi2): Ditto.
14387         (fixuns_truncdfdi2): Ditto.
14388         (fix_truncdfsi2): Ditto.
14389         (fix_truncdfsi2_internal): Ditto.
14390         (fix_truncdfsi2_internal_gfxopt): Ditto.
14391         (fix_truncdfsi2_mfpgpr): Ditto.
14392         (fctiwz): Ditto.
14393         (btruncdf2): Ditto.
14394         (btruncdf2_fpr): Ditto.
14395         (btructsf2): Ditto.
14396         (ceildf2): Ditto.
14397         (ceildf2_fpr): Ditto.
14398         (ceilsf2): Ditto.
14399         (floordf2): Ditto.
14400         (floordf2_fpr): Ditto.
14401         (floorsf2): Ditto.
14402         (rounddf2): Ditto.
14403         (rounddf2_fpr): Ditto.
14404         (roundsf2): Ditto.
14405         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
14406         (fix_trunc<mode>di2): Ditto.
14407         (fixuns_trunc<mode>si2): Ditto.
14408         (fixuns_trunc<mode>di2): Ditto.
14409         (fctiwz_<mode>): Ditto.
14410         (btrunc<mode>2): Ditto.
14411         (btrunc<mode>2_fpr): Ditto.
14412         (ceil<mode>2): Ditto.
14413         (ceil<mode>2_fpr): Ditto.
14414         (floor<mode>2): Ditto.
14415         (float<mode>2_fpr): Ditto.
14416         (round<mode>2): Ditto.
14417         (round<mode>2_fpr): Ditto.
14418         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
14419         (fixuns_trunc<mode>si2_stfiwx): Ditto.
14420         (fix_truncdfsi2_internal): Ditto.
14421         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
14422         converted value on stack, loaded into GPR, and then stored into
14423         the final destination.
14424         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
14425         FCTIDZ.
14426         (lrint<mode>di2): New insn, provide the lrint builtin functions.
14427         (ftruncdf2): Delete, unused.
14428         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
14429
14430         * config/rs6000/vsx.md (toplevel): Update copyright year.
14431         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
14432         (VSr3): Ditto.
14433
14434 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
14435             Jeremie Salvucci  <jeremie.salvucci@free.fr>
14436
14437         * gengtype.c (output_type_enum): Test the right union member.
14438
14439 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
14440
14441         PR target/41484
14442         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
14443         operands for operand 1.
14444         (sse4_1_extendv4qiv4si2): Ditto.
14445         (sse4_1_extendv2qiv2di2): Ditto.
14446         (sse4_1_extendv4hiv4si2): Ditto.
14447         (sse4_1_extendv2hiv2di2): Ditto.
14448         (sse4_1_extendv2siv2di2): Ditto.
14449         (sse4_1_zero_extendv8qiv8hi2): Ditto.
14450         (sse4_1_zero_extendv4qiv4si2): Ditto.
14451         (sse4_1_zero_extendv2qiv2di2): Ditto.
14452         (sse4_1_zero_extendv4hiv4si2): Ditto.
14453         (sse4_1_zero_extendv2hiv2di2): Ditto.
14454         (sse4_1_zero_extendv2siv2di2): Ditto.
14455         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
14456         (*sse4_1_extendv4qiv4si2): Ditto.
14457         (*sse4_1_extendv2qiv2di2): Ditto.
14458         (*sse4_1_extendv4hiv4si2): Ditto.
14459         (*sse4_1_extendv2hiv2di2): Ditto.
14460         (*sse4_1_extendv2siv2di2): Ditto.
14461         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
14462         (*sse4_1_zero_extendv4qiv4si2): Ditto.
14463         (*sse4_1_zero_extendv2qiv2di2): Ditto.
14464         (*sse4_1_zero_extendv4hiv4si2): Ditto.
14465         (*sse4_1_zero_extendv2hiv2di2): Ditto.
14466         (*sse4_1_zero_extendv2siv2di2): Ditto.
14467
14468 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14469
14470         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
14471         (mips_function_arg): Delete.
14472         (mips_function_arg_boundary): Take a const_tree.
14473         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
14474         (mips_arg_info): Likewise.
14475         (mips_setup_incoming_varargs): Call mips_function_arg_advance
14476         instead of FUNCTION_ARG_ADVANCE.
14477         (mips_function_arg_advance): Adjust prototype.  Make static.
14478         (mips_function_arg): Likewise.
14479         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14480         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
14481
14482 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14483
14484         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14485         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
14486         (function_arg): Delete.
14487         (function_arg_boundary): Take a const_tree.
14488         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
14489         (rs6000_spe_function_arg): Likewise.
14490         (rs6000_parm_start): Likewise.
14491         (rs6000_arg_size): Likewise.
14492         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
14493         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
14494         (rs6000_mixed_function_arg): Likewise.
14495         (function_arg): Rename to...
14496         (rs6000_function_arg): ...this.
14497         (function_arg_advance): Rename to...
14498         (rs6000_function_arg_advance_1): ...this
14499         (rs6000_function_arg_advance): New function.  Call it.
14500         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
14501         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
14502         (rs6000_function_value): Likewise.
14503         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14504
14505 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14506
14507         * config/arm/arm.md (enabled): Test the value of arch_enabled
14508         rather than just using it.
14509
14510 2010-08-27  Olivier Hainque  <hainque@adacore.com>
14511             Eric Botcazou  <ebotcazou@adacore.com>
14512
14513         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
14514         cover all the possible offsets from this base.
14515         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
14516
14517 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
14518
14519         PR tree-optimization/44485
14520         * calls.c (flags_from_decl_or_type): For const or pure
14521         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
14522         together with ECF_CONST resp. ECF_PURE.
14523         * builtins.c (expand_builtin): Use flags_from_decl_or_type
14524         instead of querying flags directly.
14525         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
14526         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
14527
14528 2010-08-26  Richard Guenther  <rguenther@suse.de>
14529
14530         PR tree-optimization/45255
14531         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
14532         and externals are also invariant.
14533
14534 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
14535
14536         PR rtl-optimization/44858
14537         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
14538         newi2pat, make sure they don't affect newpat.
14539
14540         PR rtl-optimization/45400
14541         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
14542         SUBREG_REG if both modes are of MODE_INT class.
14543
14544 2010-08-25  Julian Brown  <julian@codesourcery.com>
14545
14546         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
14547         * config/arm/arm.md (generic_sched): No for Cortex-A5.
14548         (generic_vfp): Likewise.
14549         (cortex-a5.md): Include.
14550         * config/arm/cortex-a5.md: New.
14551
14552 2010-08-25  Richard Guenther  <rguenther@suse.de>
14553
14554         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
14555         * gimple.c (gimple_get_alias_set): Remove special handling
14556         for pointers.
14557
14558 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
14559
14560         PR middle-end/45355
14561         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
14562         dead_or_set_p when computing i0_feeds_i2_n.
14563
14564         * combine.c (find_split_point): Undo canonicalization of multiply-add
14565         to (minus x (mult)) when it seems likely that this will increase the
14566         chances of a split.
14567
14568 2010-08-25  Richard Guenther  <rguenther@suse.de>
14569
14570         PR lto/44562
14571         * lto-streamer.c (lto_record_common_node): Do not mess with
14572         TYPE_CANONICAL when not in lto.
14573         * gimple.c (gimple_register_type): Likewise.
14574
14575 2010-08-25  Richard Guenther  <rguenther@suse.de>
14576
14577         PR tree-optimization/45316
14578         * tree-ssa-pre.c (eliminate): Properly clean EH info.
14579
14580 2010-08-25  Richard Guenther  <rguenther@suse.de>
14581
14582         PR tree-optimization/45393
14583         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
14584         and clean EH info.  Avoid SSA update.
14585         (execute_cse_sincos): Cleanup the CFG if it has changed.
14586
14587 2010-08-25  Richard Guenther  <rguenther@suse.de>
14588
14589         PR middle-end/45379
14590         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
14591         TARGET_MEM_REF in alignment computation.
14592
14593 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
14594
14595         PR tree-optimization/45059
14596         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
14597         type conversions from newop{1,2}.  Assert t is a comparison and
14598         newop{1,2} after the stripping are gimple vals.
14599
14600 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
14601
14602         * config/arm/iterators.md (VU, SE, V_widen_l): New.
14603         (V_unpack, US): New.
14604         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
14605         (vec_unpack<US>_lo_<mode>): Likewise.
14606         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
14607         (neon_vec_unpack<US>_lo_<mode>): Likewise.
14608         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
14609         (vec_widen_<US>mult_hi_<mode>): Likewise.
14610         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
14611         (neon_vec_<US>mult_hi_<mode>"): Likewise.
14612         (neon_unpack<US>_<mode>): Widening move intermediate step for
14613         vectorizing without -mvectorize-with-neon-quad.
14614         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
14615         for vectorizing without -mvectorize-with-neon-quad.
14616         * config/arm/predicates.md (vect_par_constant_high): Check for
14617         high-half lanes of a vector.
14618         (vect_par_constant_low): Check for low-half lanes of a vector.
14619
14620 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14621
14622         * tree-if-conv.c (struct ifc_dr): New.
14623         (IFC_DR): New.
14624         (DR_WRITTEN_AT_LEAST_ONCE): New.
14625         (DR_RW_UNCONDITIONALLY): New.
14626         (memref_read_or_written_unconditionally): Use the cached values
14627         when possible.
14628         (write_memref_written_at_least_once): Same.
14629         (if_convertible_loop_p): Initialize and free DR->aux fields.
14630
14631 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14632
14633         * gimple.c (gimple_could_trap_p_1): Not static anymore.
14634         Pass an extra bool parameter include_mem.
14635         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
14636         (gimple_assign_rhs_could_trap_p): Same.
14637         * gimple.h (gimple_could_trap_p_1): Declared.
14638         * tree-data-ref.h (same_data_refs_base_objects): New.
14639         (same_data_refs): New.
14640         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
14641         (write_memrefs_written_at_least_once): New.
14642         (ifcvt_memrefs_wont_trap): New.
14643         (operations_could_trap): New.
14644         (ifcvt_could_trap_p): New.
14645         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
14646         Gets a vector of data refs.
14647         (if_convertible_stmt_p): Same.
14648         (if_convertible_loop_p_1): New.
14649         (if_convertible_loop_p): Call if_convertible_loop_p_1.
14650
14651 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14652
14653         * common.opt (ftree-loop-if-convert-stores): New flag.
14654         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
14655         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
14656         the created statement before GSI.
14657         (if_convertible_phi_p): Allow virtual phi nodes when
14658         flag_loop_if_convert_stores is set.
14659         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
14660         Do not handle types that do not match is_gimple_reg_type.
14661         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
14662         when flag_loop_if_convert_stores is set, as LHS can contain
14663         memory refs.
14664         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
14665         to if_convertible_gimple_assign_stmt_p.
14666         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
14667         (replace_phi_with_cond_gimple_assign_stmt): Renamed
14668         predicate_scalar_phi.  Do not handle virtual phi nodes.
14669         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
14670         Call predicate_scalar_phi.
14671         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
14672         just after the labels for flag_loop_if_convert_stores, otherwise
14673         insert the predicate in the end of the BB.
14674         (predicate_mem_writes): New.
14675         (combine_blocks): Call predicate_all_scalar_phis.  When
14676         flag_loop_if_convert_stores is set, call predicate_mem_writes.
14677         (tree_if_conversion): Call mark_sym_for_renaming when
14678         flag_loop_if_convert_stores is set.
14679         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
14680         flag_loop_if_convert_stores is set.
14681
14682 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
14683
14684         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
14685         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
14686         (pa_function_value): Make static.
14687         (override_options): Rename to...
14688         (pa_option_override): ...this. Make static.
14689         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
14690         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
14691         TARGET_OPTION_OVERRIDE): Define.
14692         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
14693         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
14694         Remove.
14695         * config/pa/pa-protos.h (override_options): Remove.
14696
14697 2010-08-24  Richard Guenther  <rguenther@suse.de>
14698
14699         PR middle-end/45379
14700         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
14701         if addr->index is NULL or zero.
14702         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
14703         TARGET_MEM_REF more properly.
14704         (indirect_ref_may_alias_decl_p): Likewise.
14705         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
14706         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
14707
14708 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
14709
14710         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
14711         (m32c_override_options): Rename to...
14712         (m32c_option_override): ...this. Make static.
14713         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
14714         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
14715         Remove.
14716         * config/m32c/m32c-protos.h (m32c_override_options,
14717         m32c_function_value_regno_p): Remove.
14718
14719 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14720
14721         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
14722         Fix a typo in a previous commit.
14723
14724 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
14725
14726         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
14727         Pre-initialize innerloop_iters to one.
14728
14729 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14730
14731         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
14732         existing static function global.
14733
14734         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
14735         is changed to global.
14736
14737         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
14738         may_be_nonaddressable_p on base, and don't collect this reference
14739         if the address of the base could not be taken.
14740
14741 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14742
14743         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
14744         enable the compiler to autovectorize mathmetical functions for
14745         power7 using the Mathematical Acceleration Subsystem library.
14746
14747         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
14748         handle which vector math library we have.
14749         (rs6000_override_options): Add -mveclibabi=mass support.
14750         (rs6000_builtin_vectorized_libmass): New function to handle auto
14751         vectorizing math functions that are in the MASS library.
14752         (rs6000_builtin_vectorized_function): Call it.
14753
14754         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14755         -mveclibabi=mass.
14756
14757 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14758
14759         PR boehm-gc/34544
14760         * gthr-posix.h (__gthread_active_init): Delete.
14761         (__gthread_active_p): Do activity check here.
14762         Don't include errno.h on hppa-hpux.  Update comment.
14763         * gthr-posix95.h (__gthread_active_init): Delete.
14764         (__gthread_active_p): Do activity check here.
14765         Don't include errno.h on hppa-hpux.  Update comment.
14766         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
14767         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
14768         add -lpthread when -mt or -pthread is specified.
14769         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
14770         (LINK_GCC_C_SEQUENCE_SPEC): Define.
14771         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
14772         (stublib.c, pthread_default_stacksize_np-stub.o,
14773         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
14774         $(T)libgcc_stub.a): Add methods.
14775         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
14776         (stublib.c, pthread_default_stacksize_np-stub.o,
14777         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
14778         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14779         pthread_mutex_unlock): New stubs.
14780
14781 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
14782
14783         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
14784         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
14785         options.
14786         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
14787         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
14788         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
14789         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
14790         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
14791         "-l".
14792         * cppspec.c: Include opts.h.
14793         (lang_specific_driver): Use cl_decoded_option structures.
14794         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
14795         * doc/tm.texi: Regenerate.
14796         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
14797         (driver_handle_option): Allow driver options needing no special
14798         processing.
14799         (process_command): Decode options before call to
14800         lang_specific_driver.  Pass decoded options to
14801         lang_specific_driver.
14802         * gcc.h (lang_specific_driver): Update prototype.
14803         * gccspec.c: Include opts.h.
14804         (lang_specific_driver): Use cl_decoded_option structures.
14805         * opts-common.c (option_ok_for_language, generate_option,
14806         generate_option_input_file): New.
14807         (decode_cmdline_option): Use option_ok_for_language.
14808         (decode_cmdline_options_to_array): Use generate_option_input_file.
14809         (handle_generated_option): Use generate_option.
14810         * opts.h (generate_option, generate_option_input_file): Declare.
14811
14812 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
14813
14814         * config/mips/mips.c (mips_override_options): Rename to...
14815         (mips_option_override): ...this. Make static.
14816         (TARGET_OPTION_OVERRIDE): Define.
14817         (mips_in_small_data_p): Update comment.
14818         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
14819         (FIXED_REGISTERS): Update comment.
14820         * config/mips/mips-protos.h (mips_override_options): Remove.
14821
14822 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14823
14824         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
14825
14826 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14827
14828         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
14829         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
14830
14831 2010-08-20  Jan Hubicka  <jh@suse.cz>
14832
14833         * tree-pass.h (pass_ipa_cdtor_merge): New function.
14834         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
14835         heap allocated.
14836         (record_cdtor_fn): Move to ipa.c; do not test for
14837         have_ctors_dtors.
14838         (build_cdtor): Move to ipa.c; add code avoiding construction
14839         when target have ctors/dtors and there is only one ctor/dtor at given
14840         priority.
14841         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
14842         sort; reverse order of constructors.
14843         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
14844         (cgraph_finalize_function): Do not call record_cdtor_fn.
14845         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
14846         (cgraph_build_static_cdtor): Move to ipa.c.
14847         * ipa.c: Include target.h and tree-iterator.h.
14848         (cgraph_build_static_cdtor, static_ctors, static_dtors,
14849         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
14850         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
14851         pass_ipa_cdtor_merge): New.
14852         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
14853         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
14854         bounds access.
14855
14856 2010-08-20  Jan Hubicka  <jh@suse.cz>
14857
14858         PR c++/45307
14859         PR c++/17736
14860         * cgraph.h (cgraph_only_called_directly_p,
14861         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
14862         static cdtors.
14863         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
14864         are not needed.
14865         (cgraph_finalize_function): Static cdtors are reachable.
14866         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
14867
14868 2010-08-20  Jan Hubicka  <jh@suse.cz>
14869
14870         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
14871         flag_wpa.
14872         * lto-streamer-out.c (lto_output): Likewise.
14873         * passes.c (ipa_write_optimization_summaries): Initialize statement
14874         uids.
14875
14876 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14877
14878         * tree.h (alias_diag_flags): New enum.
14879         (alias_pair): Add an 'emitted_diags' field.
14880         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
14881         (assemble_alias): Initialize emitted_diags of new pairs.
14882
14883 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
14884
14885         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14886         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14887         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14888         (STACK_CHECK_PROTECT): Define.
14889         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
14890         (output_probe_stack_range): Likewise.
14891         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
14892         builtin stack checking is enabled.
14893         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
14894         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14895         (probe_stack_range): New insn.
14896
14897 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14898
14899         PR target/45336
14900         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
14901         short first.
14902
14903         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
14904         char first.
14905
14906 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14907
14908         PR target/45336
14909         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
14910         to cover zero extension into 64-bit register.
14911         (*sse2_pextrw): Likewise.
14912         (*sse4_1_pextrd_zext): New insn.
14913
14914 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14915
14916         revert r163410, partially revert r163267.
14917         * config/rs6000/darwin.h (LIB_SPEC): Remove.
14918         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
14919         Darwin versions.
14920
14921 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14922
14923         PR middle-end/44974
14924         * builtins.c (expand_builtin): Don't optimize away
14925         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
14926
14927 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
14928
14929         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
14930         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
14931         alternative 1 of operand 2.
14932
14933 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14934             Paolo Bonzini  <bonzini@gnu.org>
14935
14936         * simplify-rtx.c (simplify_unary_operation_1): Optimize
14937         (sign_extend (zero_extend (...)) and
14938         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
14939
14940 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14941
14942         PR rtl-optimization/45353
14943         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
14944         after bb_note is a BARRIER.
14945
14946 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14947
14948         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
14949         linking libgcc.a.
14950
14951 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14952             Michael Matz  <matz@suse.de>
14953
14954         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
14955
14956 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14957
14958         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
14959         (ggc_mark_roots): ...here.
14960
14961 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14962
14963         * vec.h (FOR_EACH_VEC_ELT): Define.
14964         * c-decl.c: Use it.
14965         * cfgloop.c: Likewise.
14966         * cfgloopmanip.c: Likewise.
14967         * cgraph.c: Likewise.
14968         * cgraphunit.c: Likewise.
14969         * combine.c: Likewise.
14970         * config/bfin/bfin.c: Likewise.
14971         * config/mips/mips.c: Likewise.
14972         * config/rs6000/rs6000.c: Likewise.
14973         * dbxout.c: Likewise.
14974         * df-scan.c: Likewise.
14975         * dominance.c: Likewise.
14976         * dse.c: Likewise.
14977         * dwarf2out.c: Likewise.
14978         * except.c: Likewise.
14979         * expr.c: Likewise.
14980         * function.c: Likewise.
14981         * gcse.c: Likewise.
14982         * genattr.c: Likewise.
14983         * ggc-common.c: Likewise.
14984         * gimplify.c: Likewise.
14985         * graphite-blocking.c: Likewise.
14986         * graphite-clast-to-gimple.c: Likewise.
14987         * graphite-dependences.c: Likewise.
14988         * graphite-interchange.c: Likewise.
14989         * graphite-poly.c: Likewise.
14990         * graphite-scop-detection.c: Likewise.
14991         * graphite-sese-to-poly.c: Likewise.
14992         * graphite.c: Likewise.
14993         * haifa-sched.c: Likewise.
14994         * ifcvt.c: Likewise.
14995         * implicit-zee.c: Likewise.
14996         * ipa-prop.c: Likewise.
14997         * ipa-struct-reorg.c: Likewise.
14998         * ipa.c: Likewise.
14999         * ira-build.c: Likewise.
15000         * ira-color.c: Likewise.
15001         * ira-emit.c: Likewise.
15002         * lambda-code.c: Likewise.
15003         * loop-invariant.c: Likewise.
15004         * loop-unroll.c: Likewise.
15005         * lower-subreg.c: Likewise.
15006         * lto-cgraph.c: Likewise.
15007         * lto-opts.c: Likewise.
15008         * lto-streamer-in.c: Likewise.
15009         * lto-streamer-out.c: Likewise.
15010         * lto-streamer.c: Likewise.
15011         * lto-symtab.c: Likewise.
15012         * matrix-reorg.c: Likewise.
15013         * opts.c: Likewise.
15014         * predict.c: Likewise.
15015         * print-tree.c: Likewise.
15016         * sdbout.c: Likewise.
15017         * sel-sched-dump.c: Likewise.
15018         * sel-sched-ir.c: Likewise.
15019         * sel-sched.c: Likewise.
15020         * sese.c: Likewise.
15021         * stor-layout.c: Likewise.
15022         * tree-cfg.c: Likewise.
15023         * tree-cfgcleanup.c: Likewise.
15024         * tree-chrec.c: Likewise.
15025         * tree-data-ref.c: Likewise.
15026         * tree-emutls.c: Likewise.
15027         * tree-inline.c: Likewise.
15028         * tree-into-ssa.c: Likewise.
15029         * tree-loop-distribution.c: Likewise.
15030         * tree-loop-linear.c: Likewise.
15031         * tree-mudflap.c: Likewise.
15032         * tree-outof-ssa.c: Likewise.
15033         * tree-parloops.c: Likewise.
15034         * tree-predcom.c: Likewise.
15035         * tree-pretty-print.c: Likewise.
15036         * tree-scalar-evolution.c: Likewise.
15037         * tree-ssa-live.c: Likewise.
15038         * tree-ssa-loop-im.c: Likewise.
15039         * tree-ssa-loop-ivcanon.c: Likewise.
15040         * tree-ssa-loop-ivopts.c: Likewise.
15041         * tree-ssa-loop-manip.c: Likewise.
15042         * tree-ssa-loop-niter.c: Likewise.
15043         * tree-ssa-loop-prefetch.c: Likewise.
15044         * tree-ssa-phiprop.c: Likewise.
15045         * tree-ssa-pre.c: Likewise.
15046         * tree-ssa-reassoc.c: Likewise.
15047         * tree-ssa-sccvn.c: Likewise.
15048         * tree-ssa-structalias.c: Likewise.
15049         * tree-ssa.c: Likewise.
15050         * tree-vect-data-refs.c: Likewise.
15051         * tree-vect-loop-manip.c: Likewise.
15052         * tree-vect-loop.c: Likewise.
15053         * tree-vect-patterns.c: Likewise.
15054         * tree-vect-slp.c: Likewise.
15055         * tree-vect-stmts.c: Likewise.
15056         * tree-vrp.c: Likewise.
15057         * tree.c: Likewise.
15058         * value-prof.c: Likewise.
15059         * var-tracking.c: Likewise.
15060         * varasm.c: Likewise.
15061         * vmsdbgout.c: Likewise.
15062
15063 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
15064             Richard Guenther  <richard.guenther@gmail.com>
15065
15066         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
15067         copy the src value and return a copy.
15068         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
15069         (C++ Volatiles): Adjust to describe C++ semantics only.
15070
15071 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
15072
15073         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
15074         be zero or nonzero.
15075         * doc/tm.texi: Regenerate.
15076         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
15077         * df-scan.c (df_get_exit_block_use_set), reginfo.c
15078         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
15079         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
15080         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
15081         to 1.
15082
15083 2010-08-20  Olivier Hainque  <hainque@adacore.com>
15084
15085         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
15086         an extra nop past a sibling call at the very end.
15087
15088 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
15089
15090         PR bootstrap/45350
15091         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
15092         a comment.
15093
15094 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
15095
15096         * target.def (function_arg, function_incoming_arg): Remove const
15097         qualifier on CUMULATIVE_ARGS parameter.
15098         * targhooks.h (default_function_arg, default_function_incoming_arg):
15099         Likewise.
15100         * targhooks.c (default_function_arg, default_function_incoming_arg):
15101         Likewise.
15102         * config/i386/i386.c (ix86_function_arg): Likewise.
15103
15104 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
15105
15106         PR target/45336
15107         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
15108         SIGN_EXTENDs or ZERO_EXTENDs.
15109
15110 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
15111
15112         PR target/42172
15113         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
15114         Take its cost into account if nonnull.
15115         (insn_a_feeds_b): New static function.
15116         (combine_instructions): Look for four-insn combinations.
15117         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
15118         them into account when computing all_adjacent and looking for other
15119         uses.
15120         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
15121         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
15122         (try_combine): New arg I0.  Handle four-insn combinations.
15123         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
15124         like ELIM_I1.
15125
15126 2010-08-19  Jason Merrill  <jason@redhat.com>
15127
15128         PR c++/45307
15129         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
15130         if ctor is empty.
15131         (gimplify_modify_expr_rhs): Adjust.
15132
15133 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
15134
15135         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
15136         bitmap_bit_p.
15137         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
15138         * dominance.c (iterate_fix_dominators): Likewise.
15139         * dse.c (set_usage_bits): Likewise.
15140         (set_position_unneeded, record_store): Likewise.
15141         * gimple-fold.c (get_maxval_strlen): Likewise.
15142         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
15143         * ipa-inline.c (update_caller_keys): Likewise.
15144         * ipa-split.c (verify_non_ssa_vars): Likewise.
15145         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
15146         (close_type_exposed_parameter, close_type_full_escape): Likewise.
15147         (close_addressof_down): Likewise.
15148         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
15149         (setup_allocno_left_conflicts_size): Likewise.
15150         (ira_reassign_conflict_allocnos): Likewise.
15151         (ira_reassign_pseudos): Likewise.
15152         * ira-emit.c (change_loop): Likewise.
15153         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
15154         * lto-streamer-out.c (write_symbol): Likewise.
15155         * predict.c (expr_expected_value_1): Likewise.
15156         * regstat.c (regstat_bb_compute_ri): Likewise.
15157         * sel-sched.c (create_block_for_bookkeeping): Likewise.
15158         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
15159         * stmt.c (expand_case): Likewise.
15160         * tree-eh.c (emit_eh_dispatch): Likewise.
15161         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
15162         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
15163         Likewise.
15164         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
15165         (rdg_build_components): Likewise.
15166         * tree-object-size.c (collect_object_sizes_for): Likewise.
15167         * tree-sra.c (convert_callers): Likewise.
15168         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
15169         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
15170         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
15171
15172 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
15173
15174         * config/i386/i386.md (*lea_1): Use P mode iterator.
15175         (lea add splitter): Also handle DImode operands.
15176         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
15177         predicate.  Do not use ix86_lea_for_add_ok.
15178         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
15179         (lea ashift splitter): Also handle DImode operands.
15180         (DImode lea ashift splitter): Remove splitter.
15181
15182 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
15183
15184         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
15185         ix86_binary_operator_ok.
15186
15187 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
15188
15189         PR rtl-optimization/44691
15190         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
15191         is not a register.
15192
15193 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
15194
15195         PR target/45070
15196         * config/arm/arm.c (arm_output_epilogue): Ensure that return
15197          value of size 1-3 is handled correctly.
15198
15199 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
15200
15201         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
15202         type for the conditional has wide enough range.
15203
15204 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
15205
15206         PR target/45327
15207         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
15208         ix86_binary_operator_ok.
15209
15210 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
15211
15212         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
15213         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
15214         code to output insn mnemonic.  Fix comment.
15215         (*addsi_1_zext): Add r-r-0 alternative 1.
15216         <TYPE_LEA>: Split insn to lea.
15217         <default>: Handle alternative 1.
15218         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
15219         multi-level if_then_else RTX to set "type" attribute.
15220         <default>: Handle alternative 2.
15221         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
15222         Use cond RTX instead of multi-level if_then_else RTX to set
15223         "type" attribute.
15224         <default>: Handle alternatives 2 and 4.
15225         (lea splitters): Update calls to ix86_lea_for_add_ok.
15226
15227         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
15228         argument.
15229         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
15230
15231 2010-08-18  Richard Guenther  <rguenther@suse.de>
15232
15233         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
15234         use operand helpers.
15235
15236 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
15237
15238         PR middle-end/45292
15239         * optabs.c (expand_bool_compare_and_swap): Expand pending
15240         pops before trying the optab.
15241
15242 2010-08-18  Yao Qi  <yao@codesourcery.com>
15243
15244         PR target/45094
15245         * config/arm/arm.c (output_move_double): Fix typo generating
15246         instructions ('ldr'->'str').
15247
15248 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15249
15250         PR rtl-optimization/42575
15251         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
15252         live ranges.
15253
15254 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15255
15256         * config/arm/arm-protos.h (arm_expand_sync): New.
15257         (arm_output_memory_barrier, arm_output_sync_insn): New.
15258         (arm_sync_loop_insns): New.
15259         * config/arm/arm.c (FL_ARCH7): New.
15260         (FL_FOR_ARCH7): Include FL_ARCH7.
15261         (arm_arch7): New.
15262         (arm_print_operand): Support %C markup.
15263         (arm_legitimize_sync_memory): New.
15264         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
15265         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
15266         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
15267         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
15268         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
15269         (arm_process_output_sync_insn, arm_output_sync_insn): New.
15270         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
15271         * config/arm/arm.h (struct arm_sync_generator): New.
15272         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
15273         (TARGET_HAVE_MEMORY_BARRIER): New.
15274         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
15275         * config/arm/arm.md: Include sync.md.
15276         (UNSPEC_MEMORY_BARRIER): New.
15277         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
15278         (VUNSPEC_SYNC_OP):New.
15279         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
15280         (sync_result, sync_memory, sync_required_value): New attributes.
15281         (sync_new_value, sync_t1, sync_t2): Likewise.
15282         (sync_release_barrier, sync_op): Likewise.
15283         (length): Add logic to length attribute defintion to call
15284         arm_sync_loop_insns when appropriate.
15285         * config/arm/sync.md: New file.
15286
15287 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15288
15289         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
15290         ENABLE_TREE_CHECKING.
15291         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
15292         and GCC >= 4.3.
15293
15294 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
15295
15296         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
15297         or optimizing for size, always avoid lea if possible.
15298
15299         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
15300
15301 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
15302
15303         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
15304         Dunmmy function with NULL return unless the target is
15305         OSX >= 10.6 (Darwin10).
15306
15307 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
15308
15309         * gcc.c (spec_function): Add remove-outfile.
15310         (remove_outfile_spec_function): New function.
15311         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
15312         * invoke.texi (replace-outfile): Document.
15313
15314 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
15315
15316         PR target/45296
15317         * reginfo.c (globalize_reg): Reject stack registers.
15318
15319 2010-08-17  Richard Guenther  <rguenther@suse.de>
15320
15321         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
15322         list of conditional equivalences.
15323         (free_all_edge_infos): Adjust.
15324         (record_equivalences_from_incoming_edge): Likewise.
15325         (record_cond): Likewise.
15326         (build_and_record_new_cond): Likewise.
15327         (record_conditions): Likewise.
15328         (dom_opt_leave_block): Likewise.
15329
15330 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
15331
15332         * doc/invoke.texi (ms-extension): Add documentation.
15333
15334 2010-08-17  Richard Guenther  <rguenther@suse.de>
15335
15336         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
15337
15338 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
15339
15340         PR c/40563
15341         * c-decl.c (diagnose_uninitialized_cst_member): New function.
15342         (finish_decl): Use it to issue a -Wc++-compat warning about
15343         uninitialized const field in struct or union.
15344
15345         (finish_struct): Use strip_array_types.
15346
15347 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15348
15349         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
15350         functions.
15351         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
15352         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
15353         call block_nreverse here.
15354         (blocks_nreverse): Rename decl temporary to block.
15355
15356 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
15357
15358         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
15359         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
15360         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
15361         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
15362         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
15363         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
15364         thumb2_iorsi3): Delete.
15365         (orsi_notsi_si): No longer a named pattern.
15366         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
15367         * config/arm/predicates.md (shift_amount_operand): New.
15368         (mult_operator): New.
15369         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
15370         attr enabled): New.
15371         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
15372         arch matches t2.
15373         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
15374         (not_shiftsi_compare0): Likewise, renamed from
15375         arm_notsi_shiftsi_compare0.
15376         (not_shiftsi_compare0_scratch): Likweise, renamed from
15377         arm_notsi_shiftsi_compare0_scratch.
15378         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
15379         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
15380         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
15381         so that the register alternative is disabled when the shift_operator
15382         is MULT.  Use "M" as the constraint for constants.
15383         (arith_shiftsi splitter): Enable for TARGET_32BIT.
15384         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
15385         constraint for constants.
15386         (arith_shiftsi_compare0_scratch): Likewise.
15387         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
15388         Handle Thumb2 alternative.
15389
15390 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
15391
15392         * doc/options.texi (NoDriverArg): Document.
15393         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
15394         -MDX and -MMDX.
15395         * opt-functions.awk (switch_flags): Handle NoDriverArg.
15396         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
15397         marking for CL_NO_DRIVER_ARG options when in the driver.
15398         * opts.h (CL_NO_DRIVER_ARG): Define.
15399         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
15400         CL_COMMON): Update values.
15401
15402 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
15403
15404         * common.opt: Add driver options.
15405         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
15406         * doc/options.texi (Driver, RejectDriver): Document.
15407         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
15408         print_prog_name, print_multi_directory, print_sysroot,
15409         print_multi_os_directory, print_multi_lib,
15410         print_sysroot_headers_suffix, report_times, combine_flag,
15411         use_pipes, wrapper_string): Remove.
15412         (save_switch, driver_unknown_option_callback,
15413         driver_wrong_lang_callback, driver_post_handling_callback,
15414         driver_handle_option): New.
15415         (spec_lang, last_language_n_infiles): Make file-scope static
15416         instead of local to process_command.
15417         (process_command): Use decode_cmdline_options_to_array and
15418         read_cmdline_option for option processing.  Compute have_c in
15419         prescan of decoded options.
15420         * opt-functions.awk (switch_flags): Handle Driver and
15421         RejectDriver.
15422         (var_type, var_type_struct): Handle Separate options as generating
15423         const char * variables.
15424         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
15425         CL_TARGET to be passed by caller if required.
15426         (decode_cmdline_options_to_array): Update comment.
15427         * opts.c (complain_wrong_lang): Handle options only valid for the
15428         driver.
15429         (decode_options): Update call to decode_cmdline_options_to_array.
15430         (print_filtered_help): Ignore driver-only options.
15431         (print_specific_help): Ignore CL_DRIVER.
15432         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
15433         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
15434         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
15435         Update values.
15436
15437 2010-08-16  Richard Guenther  <rguenther@suse.de>
15438
15439         * tree-cfg.c (verify_types_in_gimple_reference): Verify
15440         TARGET_MEM_REF a bit.
15441         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
15442         (create_mem_ref_raw): Always create TMR_OFFSET, store the
15443         alias pointer type via it.
15444         (copy_mem_ref_info): Adjust.
15445         (maybe_fold_tmr): Likewise.
15446         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
15447         (reference_alias_ptr_type): Likewise.
15448         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
15449         adjust documentation of TMR_OFFSET operand.
15450         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
15451         use the alias pointer type.
15452         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
15453         initialize mem attrs but the TMR itself.
15454         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
15455         similar to MEM_REF.
15456         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
15457         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
15458         (unshare_and_remove_ssa_names): Likewise.
15459         (copy_ref_info): Adjust.
15460         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
15461         TARGET_MEM_REF case.
15462         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
15463         at TMR_ORIGINAL.
15464         * tree.h (TMR_ORIGINAL): Remove.
15465         * gimple.c (get_base_address): For TARGET_MEM_REF with a
15466         symbol return that.
15467         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
15468         with a symbol.
15469         (get_addr_base_and_unit_offset): Likewise.
15470         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
15471         TARGET_MEM_REFs.
15472         (indirect_ref_may_alias_decl_p): Likewise.
15473         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
15474
15475 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
15476
15477         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
15478         with GCC version 4.6, the default setting (when not optimizing
15479         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
15480         been changed to -fomit-frame-pointer.
15481
15482 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
15483
15484         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
15485         Darwin10.  Do not link libgcc.a for Darwin >= 9.
15486
15487 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
15488
15489         * doc/invoke.texi (Warning Options): Fix terminology and markup
15490         in the description of how unknown warning options are handled.
15491
15492 2010-08-15  Ira Rosen  <irar@il.ibm.com>
15493
15494         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
15495         in basic blocks.
15496         (vect_supportable_dr_alignment): Check alignment for basic blocks.
15497         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
15498         data references.
15499         (vect_bb_vectorization_profitable_p): New function.
15500         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
15501         check if it's worthwhile to vectorize the basic block.
15502
15503 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
15504
15505         * reload.h (register_move_cost, memory_move_secondary_cost,
15506         secondary_reload_class): Adjust prototype.
15507         * rtl.h (reg_class_subset_p): Adjust prototype.
15508         * reload.c (secondary_reload_class): Change arguments type from
15509         enum reg_class to reg_class_t. Change result type to reg_class_t.
15510         * reginfo.c (register_move_cost, reg_class_subset_p): Change
15511         arguments type from enum reg_class to reg_class_t.
15512         (memory_move_secondary_cost): Change arguments type from
15513         enum reg_class to reg_class_t. Change type of saved_flags to
15514         reg_class_t.
15515
15516         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15517         Remove macros.
15518         (mips_cost): Remove.
15519         (struct mips_rtx_cost_data): Moved to mips.c.
15520         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
15521         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
15522         (mips_cost): Make static.
15523         (mips_canonicalize_move_class): Change argument type to reg_class_t.
15524         Change result type to reg_class_t.
15525         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
15526         type from enum reg_class to reg_class_t.
15527         (mips_register_move_cost): Make static. Change arguments
15528         type from enum reg_class to reg_class_t.
15529         (mips_memory_move_cost): New function.
15530         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15531
15532 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
15533
15534         PR rtl-optimization/43358
15535         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
15536         of a single hard register, using simplify_subreg_regno to decide
15537         what that register should be.
15538
15539 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
15540
15541         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
15542         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
15543         (loongson_pmull<V_suffix>): Rename to...
15544         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
15545
15546 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
15547
15548         * configure.ac: Enable -fomit-frame-pointer on darwin
15549         which support dwarf2.
15550         * config/i386/i386.c (override_options): Same.
15551
15552 2010-08-13  Jie Zhang  <jie@codesourcery.com>
15553
15554         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
15555
15556 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
15557
15558         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
15559         -MMD.
15560
15561 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
15562
15563         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
15564         up dot_prod pattern searching if a stmt is outside the loop.
15565
15566 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15567             Uros Bizjak  <ubizjak@gmail.com>
15568
15569         * config.gcc: Handle --enable-frame-pointer.
15570
15571         * configure.ac: Add --enable-frame-pointer.
15572         * configure: Regenerated.
15573
15574         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
15575         (override_options): If not configured with --enable-frame-pointer,
15576         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
15577         optimizing for size), -fasynchronous-unwind-tables and
15578         -maccumulate-outgoing-args by default.
15579
15580 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
15581
15582         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
15583
15584         PR middle-end/45262
15585         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
15586         -a overflows.  Normalize the range.
15587
15588 2010-08-12  Richard Guenther  <rguenther@suse.de>
15589
15590         PR tree-optimization/45232
15591         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
15592         for types with undefined overflow.
15593         (reassociate_bb): Allow re-associating of bit and min/max
15594         operations for types with undefined overflow.
15595         * tree-ssa-forwprop.c (associate_plusminus): New function.
15596         (tree_ssa_forward_propagate_single_use_vars): Call it.
15597
15598 2010-08-12  Richard Guenther  <rguenther@suse.de>
15599
15600         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
15601         * tree-ssa-alias.c (get_ptr_info): Move ...
15602         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
15603         align and misalign fields conservatively.
15604         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
15605         derive alignment information.
15606         (evaluate_stmt): Derive alignment information from memory
15607         allocation functions.
15608         * tree.h (get_pointer_alignment): Make unsigned.
15609         * builtins.c (get_object_alignment): Use alignment information we
15610         have computed for pointers.
15611         (get_pointer_alignment): Likewise.  Make conservative, return
15612         and unsigned value.
15613         (expand_builtin_strlen): Adjust.
15614         (expand_builtin_memcmp): Likewise.
15615         (expand_builtin_strcmp): Likewise.
15616         (expand_builtin_strncmp): Likewise.
15617         (get_builtin_sync_mem): Use at least mode alignment.
15618         (fold_builtin_memset): Adjust.
15619         (fold_builtin_memory_op): Likewise.
15620         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
15621         information also dump pointer alignment knowledge.
15622         (dump_gimple_stmt): Likewise.
15623
15624 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
15625
15626         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
15627         (EMPTY_FIELD_BOUNDARY): Remove.
15628         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
15629
15630 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
15631
15632         PR debug/45259
15633         * caller-save.c (save_call_clobbered_regs): Only swap notes with
15634         DEBUG_INSNs if n_regs_saved.
15635
15636 2010-08-12  Wei Guozhi  <carrot@google.com>
15637
15638         PR target/44999
15639         * config/arm/arm.md (andsi3): Change to zero extension if possible.
15640         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
15641
15642 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
15643
15644         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
15645
15646         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
15647
15648 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15649
15650         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
15651         the case removed in the previous patch, when the only phi argument
15652         is defined in the same loop as the phi node itself.  Handle it
15653         separately from the invariant case by both propagating it outside
15654         the region and replacing the phi node with an assign.
15655
15656 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15657
15658         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
15659         constant phi nodes with one argument are is_gimple_min_invariant
15660         and SSA_NAME_IS_DEFAULT_DEF.
15661
15662 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15663
15664         * graphite-cloog-util.c (oppose_constraint):
15665         Extend loop counter's value range (CLOOG_ORG).
15666         (cloog_matrix_to_ppl_constraint): Same.
15667         (new_Constraint_System_from_Cloog_matrix): Same.
15668         * graphite-cloog-compat.h (matrix_num_type): New.
15669
15670 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15671
15672         * graphite.c (graphite_initialize): Do not initialize
15673         CLooG and initialize the Parma Polyhedra Library
15674         manually when using CLOOG_ORG.
15675         (graphite_finalize): Do not finalize CLooG and finalize
15676         the Parma Polyhedra Library manually when using CLOOG_ORG.
15677         * graphite-cloog-compat.h (cloog_initialize): Hide function
15678         when using CLOOG_ORG.
15679         (cloog_finalize): Same.
15680
15681 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15682
15683         * graphite-clast-to-gimple.c (free_scattering): Change
15684         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
15685         (CLOOG_ORG).
15686         (build_cloog_prog): Same.
15687         * graphite-cloog-compat.h (cloog_domain): Removed.
15688         (cloog_scattering): New.
15689         (cloog_set_domain): Removed.
15690         (cloog_set_scattering): New.
15691         (cloog_next_domain): Removed.
15692         (cloog_next_scattering): New.
15693         (cloog_set_next_domain): Removed.
15694         (cloog_set_next_scattering): New.
15695         (CloogScatteringList): New.
15696         (CloogScattering): New.
15697         (cloog_scattering_free): New.
15698         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
15699         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
15700         New.
15701
15702 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15703
15704         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
15705         CloogState.
15706         (set_cloog_options): Same.
15707         (print_clast_stmt): Same.
15708         (scop_to_clast): Same.
15709         (print_generated_program): Same.
15710         (gloog): Same.
15711         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
15712         (scop_to_clast): Extend with CloogState.
15713         * graphite-cloog-util.c: Include graphite-cloog-compat.h
15714         (new_Cloog_Domain_from_ppl_Polyhedron):
15715         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
15716         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
15717         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15718         * graphite-cloog-util.h (build_cloog_prog): Same.
15719         * graphite-cloog-copat.h (build_cloog_prog): New.
15720         (CloogState): New.
15721         (cloog_state_malloc): New.
15722         (cloog_state_free): New.
15723         (cloog_loop_malloc): New.
15724         (cloog_options_malloc): New.
15725         (cloog_statement_alloc): New.
15726         (cloog_domain_from_cloog_matrix): New.
15727         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
15728         (new_Cloog_Domain_from_ppl_Polyhedron): New.
15729
15730 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15731
15732         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
15733         type of NAME now depends on used CLooG version.
15734         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
15735         (gcc_type_for_clast_expr): Same.
15736         (print_clast_stmt): Replace pprint with clast_pprint.
15737         * graphite-cloog-compat.h: Provide compatibility macros for
15738         CLooG Legacy.
15739         (clast_name_p): New.
15740         (clast_expr_term): New.
15741         (clast_expr_red): New.
15742         (clast_expr_bin): New.
15743         (clast_pprint): New.
15744
15745 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15746
15747         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
15748         compatible to newer CLooG releases (CLOOG_ORG).
15749         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
15750         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
15751         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
15752         (build_cloog_prog) : New.
15753         (cloog_program_extract_scalars): New.
15754         (cloog_program_scatter): New.
15755
15756 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15757
15758         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
15759         conditionally (CLOOG_ORG).
15760         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
15761         (cloog_statement_usr): New.
15762         (cloog_domain): Same.
15763         (cloog_set_domain): Same.
15764         (cloog_next_domain): Same.
15765         (cloog_set_next_domain): Same.
15766         (cloog_program_nb_scattdims): Same.
15767         (cloog_program_set_nb_scattdims): Same.
15768         (cloog_program_names): Same.
15769         (cloog_program_set_names): Same.
15770         (cloog_program_set_context): Same.
15771         (cloog_program_set_loop): Same.
15772         (cloog_program_blocklist): Same.
15773         (cloog_program_set_blocklist): Same.
15774         (cloog_program_scaldims): Same.
15775         (cloog_program_set_scaldims): Same.
15776         (cloog_names_nb_parameters): Same.
15777         (cloog_names_set_nb_parameters): Same.
15778         (cloog_names_parameters): Same.
15779         (cloog_names_set_parameters): Same.
15780         (cloog_names_set_nb_iterators): Same.
15781         (cloog_names_set_iterators): Same.
15782         (cloog_names_set_nb_scattering): Same.
15783         (cloog_names_set_scattering): Same.
15784         (cloog_statement_set_usr): Same.
15785         (cloog_loop_set_next): Same.
15786         (cloog_loop_set_domain): Same.
15787         (cloog_loop_set_block): Same.
15788         (cloog_block_list_next): Same.
15789         (cloog_block_list_set_next):
15790         (cloog_block_list_set_block): Same.
15791
15792 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15793
15794         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
15795         a bool.
15796         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
15797         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
15798         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
15799         when something has been changed.
15800         (rewrite_commutative_reductions_out_of_ssa): Same.
15801
15802 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15803
15804         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
15805         handle the case when def is in the sese region.
15806         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
15807         for invariant expressions.
15808         (rewrite_cross_bb_phi_deps): Removed.
15809         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
15810         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
15811         rewrite_cross_bb_phi_deps.
15812
15813 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15814
15815         * graphite-sese-to-poly.c
15816         (rewrite_commutative_reductions_out_of_ssa_loop): Call
15817         scev_analyzable_p only on is_gimple_reg
15818
15819 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15820
15821         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
15822         (rewrite_close_phi_out_of_ssa): Propagate constant values or
15823         parametric expressions outside the scop region.
15824         (rewrite_cross_bb_scalar_deps): Same.
15825         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
15826
15827 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15828
15829         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
15830         SSA_NAME_DEF_STMT only on SSA_NAMEs.
15831
15832 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15833
15834         * tree-scalar-evolution.c (instantiate_scev_name): Do not
15835         instantiate default definitions.
15836
15837 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
15838             Sebastian Pop  <sebastian.pop@amd.com>
15839
15840         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
15841         (loop_exits_from_bb_p): New.
15842         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
15843         (loop_exits_from_bb_p): Declared.
15844         * graphite-scop-detection.c (scopdet_basic_block_info): Call
15845         loop_exits_to_bb_p.
15846
15847 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15848
15849         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
15850         extra parameter for the region.  Call scev_analyzable_p.
15851         (rewrite_reductions_out_of_ssa): Update call to
15852         rewrite_close_phi_out_of_ssa.
15853         (rewrite_cross_bb_phi_deps): Same.
15854         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
15855         parameter for the region.  Call scev_analyzable_p.
15856         (rewrite_commutative_reductions_out_of_ssa): Update call to
15857         rewrite_commutative_reductions_out_of_ssa_loop.
15858
15859 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15860
15861         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
15862
15863 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15864
15865         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
15866         SSA scalar phi nodes that can be scev_analyzable_p.
15867
15868 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15869
15870         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
15871         handle SSA_NAME_IS_DEFAULT_DEF.
15872
15873 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15874
15875         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
15876
15877 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15878
15879         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
15880         case non close-phi nodes with one argument.
15881
15882 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15883
15884         * sese.h (scev_analyzable_p): Scevs could be expressions without
15885         chrecs and still be scev_analyzable_p.
15886
15887 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15888
15889         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15890
15891 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15892
15893         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
15894         * cfgloop.h (struct loop): Remove single_iv field.
15895         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
15896         (scop_canonicalize_loops): Removed.
15897         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
15898         over all the loop phi nodes in loop->header.
15899         (build_poly_scop): Remove use of scop_canonicalize_loops.
15900
15901 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15902
15903         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
15904         handle GIMPLE_CALL.
15905
15906 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15907
15908         * tree-chrec.c (chrec_apply): Should only apply to the specified
15909         variable.  Also handle multivariate chains of recurrences that
15910         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
15911
15912 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15913
15914         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
15915         (debug_clast_name_indexes_1): Removed.
15916         (debug_clast_name_indexes): Removed.
15917         (pbb_to_depth_to_oldiv): Removed.
15918         (build_iv_mapping): Replace the use of rename_map with iv_map.
15919         (translate_clast_user): Remove uses of rename_map.  Allocate and
15920         free iv_map.
15921         (translate_clast_for_loop): Remove uses of rename_map.
15922         (translate_clast_for): Same.
15923         (translate_clast_guard): Same.
15924         (translate_clast): Same.
15925         (gloog): Same.
15926         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
15927         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
15928         * sese.c (set_rename): Now static.
15929         (rename_variables_in_stmt): Removed.
15930         (rename_uses): New.
15931         (is_parameter): Removed.
15932         (is_iv): Removed.
15933         (expand_scalar_variables_call): Removed.
15934         (expand_scalar_variables_ssa_name): Removed.
15935         (expand_scalar_variables_expr): Removed.
15936         (expand_scalar_variables_stmt): Removed.
15937         (expand_scalar_variables): Removed.
15938         (rename_variables): Removed.
15939         (remove_condition): Removed.
15940         (get_true_edge_from_guard_bb): Removed.
15941         (get_false_edge_from_guard_bb): Removed.
15942         (struct igp): Removed.
15943         (default_before_guard): Removed.
15944         (convert_for_phi_arg): Removed.
15945         (add_guard_exit_phis): Removed.
15946         (insert_guard_phis): Removed.
15947         (graphite_copy_stmts_from_block): Now also uses iv_map and a
15948         region.  Do not copy conditions.  Do not copy induction variables.
15949         Call rename_uses.
15950         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
15951         the translated statement.  Use the iv_map for the induction
15952         variable renaming.
15953         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15954         (set_rename): Removed declaration.
15955         (scev_analyzable_p): ...here.
15956         * tree-chrec.c (chrec_apply_map): New.
15957         * tree-chrec.h (chrec_apply_map): Declared.
15958
15959 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15960
15961         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
15962         insert_loop_close_phis.
15963         * sese.c (name_defined_in_loop_p): Removed.
15964         (expr_defined_in_loop_p): Removed.
15965         (alive_after_loop): Removed.
15966         (close_phi_not_yet_inserted_p): Removed.
15967         (struct alep): Removed.
15968         (add_loop_exit_phis): Removed.
15969         (insert_loop_close_phis): Removed.
15970
15971 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15972
15973         * graphite-cloog-util.c
15974         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
15975         * graphite-poly.c
15976         (psct_scattering_dim_for_loop_depth): Same.
15977
15978 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15979
15980         * graphite-cloog-util.h: Added cloog.h.
15981         * graphite-blocking.c: Removed cloog.h.
15982         * graphite-dependences.c: Same.
15983         * graphite-interchange.c: Same.
15984         * graphite-poly.c: Same.
15985         * graphite-ppl.c: Same.
15986         * graphite-scop-detection.c: Same.
15987         * graphite-sese-to-poly.c:
15988         Removed cloog.h.
15989         Removed graphite-clast-to-gimple.h.
15990         (check_poly_representation): Removed (unused).
15991         * graphite-sese-to-poly.h
15992         (check_poly_representation): Removed (unused).
15993
15994 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15995
15996         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
15997         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
15998         (graphite-cloog-util.o): New.
15999         (graphite-ppl.o): Added graphite-cloog-util.h.
16000         * graphite-clast-to-gimple.c:
16001         Added graphite-cloog-util.h to include statements.
16002         * graphite-cloog-util.c: New.
16003         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
16004         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16005         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16006         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16007         (insert_constraint_into_matrix): Same.
16008         (ppl_Constrain_System_number_of_constraints): Same.
16009         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16010         (oppose_constraint): Same.
16011         (cloog_matrix_to_ppl_constraint): Same.
16012         (new_Constraint_System_from_Cloog_Matrix): Same.
16013         * graphite-cloog-util.h: New.
16014         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
16015         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16016         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16017         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16018         (insert_constraint_into_matrix): Same.
16019         * graphite-ppl.c:
16020         Added graphite-cloog-util.h to include statements.
16021         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
16022         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16023         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16024         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16025         (insert_constraint_into_matrix): Same.
16026         (ppl_Constrain_System_number_of_constraints): Same.
16027         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16028         (oppose_constraint): Same.
16029         (cloog_matrix_to_ppl_constraint): Same.
16030         (new_Constraint_System_from_Cloog_Matrix): Same.
16031         * graphite-ppl.h:
16032         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
16033         graphite-cloog-util.h.
16034         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16035         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16036         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16037         (insert_constraint_into_matrix): Same.
16038
16039 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16040
16041         * graphite-clast-to-gimple.c
16042         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
16043         (precision_for_interval): Same.
16044         (gcc_type_for_interval): Same.
16045         (compute_type_for_level): Same.
16046         * graphite-interchange.c
16047         (lst_interchange_profitable_p): Same.
16048         * graphite-poly.c
16049         (psct_scattering_dim_for_loop_depth): Same.
16050         * graphite-ppl.c
16051         (ppl_max_for_le_pointset): Same.
16052         (ppl_min_for_le_pointset): Same.
16053
16054 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16055
16056         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
16057         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
16058
16059 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16060
16061         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
16062         rewrite_close_phi_out_of_ssa.
16063
16064 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16065
16066         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
16067
16068 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16069
16070         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
16071         rename_map.
16072         * sese.c (debug_rename_map): Same.
16073         (get_rename): Same.
16074         (set_rename): Same.
16075         (rename_variables_in_stmt): Same.
16076         (expand_scalar_variables_call): Same.
16077         (expand_scalar_variables_ssa_name): Same.
16078         (expand_scalar_variables_expr): Same.
16079         (expand_scalar_variables_stmt): Same.
16080         (expand_scalar_variables): Same.
16081         (rename_variables): Same.
16082         (graphite_copy_stmts_from_block): Same.
16083         (copy_bb_and_scalar_dependences): Same.
16084
16085 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16086
16087         * graphite-clast-to-gimple.c (copy_renames): Removed.
16088         (translate_clast_for): Do not call copy_renames.
16089         (translate_clast_guard): Same.
16090
16091 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16092
16093         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
16094         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
16095         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
16096         before rewrite_cross_bb_scalar_deps.
16097
16098 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16099
16100         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
16101         Early return in when flag_associative_math is not set.
16102
16103 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16104
16105         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
16106         of SSA copies on edges except for loop->latch.
16107
16108 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16109
16110         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
16111         Split out of rewrite_reductions_out_of_ssa.
16112         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
16113         Declared.
16114         * graphite.c (graphite_transform_loops): Call it.
16115
16116 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16117
16118         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
16119
16120 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
16121
16122         * dbgcnt.def (graphite_scop): New counter.
16123         * graphite.c: Include dbgcnt.h.
16124         (graphite_transform_loops): Use new counter to limit transformations.
16125         * Makefile.in (graphite.o): Depend on DBGCNT_H.
16126
16127 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16128
16129         * passes.c (init_optimization_passes): Add pass_graphite.
16130         Schedule a pass_copy_prop before pass_graphite_transforms.
16131         * timevar.def (TV_GRAPHITE): Declared.
16132         * tree-pass.h (pass_graphite): Declared.
16133         * tree-ssa-loop.c (pass_graphite): New.
16134
16135 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16136
16137         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
16138         Remove calls to rename_nb_iterations and rename_sese_parameters.
16139         * graphite-clast-to-gimple.h (gloog): Update declaration.
16140         * graphite.c (graphite_transform_loops): Update call to gloog.
16141         * sese.c (rename_variables_in_expr): Removed.
16142         (rename_nb_iterations): Removed.
16143         (rename_sese_parameters): Removed.
16144         * sese.h (rename_nb_iterations): Removed.
16145         (rename_sese_parameters): Removed.
16146
16147 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16148
16149         * graphite-clast-to-gimple.c (gloog): Remove call to
16150         sese_adjust_liveout_phis.
16151         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
16152         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
16153         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
16154         rewrite_phi_out_of_ssa.
16155         * sese.c (get_vdef_before_sese): Removed.
16156         (sese_adjust_vphi): Removed.
16157         (sese_adjust_liveout_phis): Removed.
16158         * sese.h (sese_adjust_liveout_phis): Removed.
16159
16160 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16161
16162         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
16163         argument for the place after which to insert the out of SSA copy.
16164         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
16165         (rewrite_phi_out_of_ssa): Same.
16166         (rewrite_cross_bb_scalar_deps): Same.
16167         (insert_copyout): Removed.
16168         (insert_copyin): Removed.
16169         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
16170         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
16171         insert_copyin.
16172
16173 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16174
16175         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
16176         (rewrite_reductions_out_of_ssa): Same.
16177         (rewrite_commutative_reductions_out_of_ssa): Same.
16178         (build_poly_scop): Do not call these functions.
16179         * graphite-sese-to-poly.h (build_poly_scop): Declared.
16180         (rewrite_reductions_out_of_ssa): Declared.
16181         (rewrite_commutative_reductions_out_of_ssa): Declared.
16182         * graphite.c (graphite_transform_loops): Call on every scop
16183         rewrite_commutative_reductions_out_of_ssa before calling
16184         rewrite_reductions_out_of_ssa and build_scop_bbs.
16185
16186 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16187
16188         * graphite-dependences.c (dot_deps): Make system call to dotty run
16189         in background.
16190         (dot_deps_stmt): Same.
16191         * graphite-poly.c (dot_lst): Same.
16192
16193 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16194
16195         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
16196         phi_arg_in_outermost_loop.
16197         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
16198         (remove_invariant_phi): Same.
16199
16200 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
16201
16202         * target.def (output_addr_const_extra): New hook.
16203         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
16204         * doc/tm.texi: Regenerate.
16205         * targhooks.c (default_asm_output_addr_const_extra): New function.
16206         * targhooks.h (default_asm_output_addr_const_extra): Declare.
16207         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
16208         target hook.
16209
16210         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16211         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
16212         * config/i386/i386.h (output_addr_const_extra): Rename to...
16213         (i386_asm_output_addr_const_extra): ...this. Make static.
16214         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16215
16216 2010-08-11  Richard Henderson  <rth@redhat.com>
16217
16218         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
16219
16220 2010-08-11  Nick Clifton  <nickc@redhat.com>
16221
16222         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
16223         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
16224         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16225         stormy16-lib2-cmpsi.c.
16226
16227         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
16228         -O2.
16229
16230 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
16231
16232         * opts.h (struct cl_option_handler_func): Make handler take
16233         cl_decoded_option structure as parameter, not individual elements.
16234         (struct cl_option_handlers): Make callbacks take cl_decoded_option
16235         structure as parameter, not individual elements.
16236         (handle_option): Take cl_decoded_option structure as parameter,
16237         not individual elements.
16238         (handle_generated_option): Declare.
16239         * opts-common.c (handle_option): Take cl_decoded_option structure
16240         as parameter, not individual elements.  Update calls to callback
16241         and handler functions.
16242         (handle_generated_option): New.
16243         (read_cmdline_option): Update calls to callback functions and
16244         handle_option.
16245         * opts.c (common_handle_option, complain_wrong_lang,
16246         unknown_option_callback, post_handling_callback,
16247         lang_handle_option, target_handle_option): Take cl_decoded_option
16248         structure as parameter, not individual elements.
16249         (lang_handle_option, target_handle_option, common_handle_option):
16250         Assert option has at most one argument.
16251         (enable_warning_as_error): Call handle_generated_option instead of
16252         handle_option.  Do not pass -Werror argument as argument of
16253         generated option.
16254
16255 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16256
16257         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16258         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16259         (SUBWORD_BOOL_CAS): Likewise.
16260         (SUBWORD_SYNC_OP): Likewise.
16261         (SUBWORD_TEST_AND_SET): Likewise.
16262         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16263         (SUBWORD_SYNC_OP): Likewise.
16264         (OP_AND_FETCH_WORD): Likewise.
16265
16266 2010-08-10  Xinliang David Li  <davidxl@google.com>
16267
16268         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
16269         compute max/min offset in address.
16270
16271 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
16272
16273         * ira-live.c: Include sbitmap.h.
16274         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
16275         Compress live ranges even more.
16276
16277 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16278
16279         * coverage.c (ctr_labels): Delete.
16280
16281 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16282
16283         PR bootstrap/45177
16284         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
16285         test here from arm_gen_load_multiple_1.
16286         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
16287         multiple_operation_profitable_p.
16288
16289 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16290
16291         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
16292         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
16293
16294 2010-08-10  Richard Henderson  <rth@redhat.com>
16295
16296         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
16297         after saving registers.  Assert that SSE registers are only saved
16298         with a sufficiently aligned frame.
16299         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
16300         remove stack_realign_fp handling.
16301         (ix86_expand_prologue): Save int registers before stack_realign_fp,
16302         and do not mark the stack alignment as frame related.
16303         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
16304
16305         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
16306         saves when re-aligning the stack.
16307
16308 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16309
16310         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
16311         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
16312         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
16313
16314 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16315
16316         * dwarf2out.c (struct die_struct): Move die_tag to the end.
16317
16318 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
16319
16320         * config/arm/iterators.md: New file.
16321         * config/arm/arm.md: Include iterators.md.
16322         (QHSI): Move to new file.
16323         (LTUGEU, cnb, optab, ior_xor): Likewise.
16324         * config/arm/iwmmxt.md (VMMX): Move to new file.
16325         (VSHFT, MMX_char): Likewise.
16326         * config/arm/neon.md (VD): Move to new file.
16327         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
16328         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
16329         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
16330         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
16331         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
16332         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
16333         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
16334         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
16335         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
16336         (Is_d_reg, V_mode_nunits): Likewise.
16337         * config/arm/vec-common.md (VALL): Move to new file.
16338         (VALLW, VINT, VINTW): Likewise.
16339
16340 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16341
16342         PR middle-end/45182
16343         * combine.c (make_compound_operation): Don't try to convert
16344         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
16345
16346 2010-08-10  Richard Guenther  <rguenther@suse.de>
16347
16348         * tree.h (get_object_alignment): Adjust prototype.
16349         * builtins.c (get_object_alignment): Return unsigned int,
16350         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
16351         and TARGET_MEM_REF properly.
16352         (get_pointer_alignment): Adjust.
16353         * emit-rtl.c (get_mem_align_offset): Adjust comment.
16354         (set_mem_attributes_minus_bitpos): Adjust.
16355         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
16356
16357 2010-08-10  Richard Guenther  <rguenther@suse.de>
16358
16359         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
16360         (copy_prop_visit_assignment): Simplify.
16361         (copy_prop_visit_stmt): Also visit assignments from
16362         constants.
16363         (copy_prop_visit_phi_node): Use operand_equal_p.
16364
16365 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16366
16367         * ipa-split.c (find_split_points): Free stack.
16368
16369 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16370
16371         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
16372         * tree.c (tree_node_kind): Delete corresponding entries.
16373
16374 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16375
16376         * alias.c (may_alias_p): Remove unused ret.
16377
16378 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
16379
16380         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
16381         alias_sets_conflict_p.
16382         (walk_mems_1): Moved from alias.c.
16383         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
16384         in alias.c.
16385         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
16386         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
16387         * alias.c (walk_mems_2): Moved to ddg.c.
16388         (walk_mems_1): Ditto.
16389         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
16390         to ddg.c.
16391         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
16392         disambiguation.
16393         *(may_alias_p): New function to check whether two memory expression
16394         may alias or not. Currently used in buidling inter-iteration memory
16395         dependence.
16396         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
16397         (insn_alias_sets_conflict_p): Removed
16398         *rtl.h (may_alias_p): New function prototype.
16399
16400 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16401
16402         * tree.c (nreverse): Assert that we don't have a BLOCK.
16403
16404 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16405
16406         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
16407         * config/arm/arm.c (arm_get_pcs_model): Likewise.
16408         * config/avr/avr.c (init_cumulative_args): Likewise.
16409         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16410         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16411         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
16412         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
16413         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
16414         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16415         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
16416         * dwarf2out.c (gen_subprogram_die): Likewise.
16417         * function.c (allocate_struct_function): Likewise.
16418         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
16419         (deserves_ellipsis): Delete.
16420
16421 2010-08-09  Richard Guenther  <rguenther@suse.de>
16422
16423         * tree-ssa-copy.c (cached_last_copy_of): Remove.
16424         (valueize_val): New function.
16425         (get_last_copy_of): Remove.
16426         (set_copy_of_val): Simplify.
16427         (dump_copy_of): Likewise.
16428         (copy_prop_visit_cond_stmt): Use valueize_val.
16429         (copy_prop_visit_phi_node): Properly handle unvisited names.
16430         Drop code managing copy-of chains.
16431         (init_copy_prop): Adjust.
16432         (fini_copy_prop): Likewise.
16433         (execute_copy_prop): Remove obsolete comment.
16434
16435 2010-08-09  Richard Guenther  <rguenther@suse.de>
16436
16437         PR middle-end/44632
16438         * function.c (gimplify_parameters): Do not clear addressable
16439         bit of the original parameter.
16440
16441 2010-08-09  Richard Guenther  <rguenther@suse.de>
16442
16443         PR middle-end/45212
16444         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
16445         alignment from MEM_REF offset only if we took it from the
16446         base object.
16447
16448 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
16449
16450         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
16451
16452 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16453
16454         * c-tree.h (build_arg_info): Declare.
16455         * c-decl.c (build_arg_info): Define.
16456         (get_parm_info): Call it.  Delete initialization code.
16457         * c-parser.c (c_parser_parms_declarator): Likewise.
16458         (c_parser_parms_list_declaractor): Likewise.
16459
16460 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16461
16462         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
16463         (struct c_arg_info): Change type of tags field.
16464         * c-decl.c (grokdeclarator): Update for changed type of tags field.
16465         (get_parm_info): Likewise.
16466         (store_parm_decls_newstyle): Likewise.
16467
16468 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16469
16470         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
16471         (branch_island_list): Delete.
16472         (branch_islands): Declare.
16473         (add_compiler_branch_island): Adjust for branch_islands instead of
16474         branch_island_list.
16475         (macho_branch_islands): Likewise.
16476         (no_previous_def): Likewise.
16477         (get_prev_label): Likewise.
16478
16479 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16480
16481         PR boehm-gc/34544
16482         * gthr-posix.h (__gthread_start): Delete.
16483         (__gthread_active_init): Use pthread_default_stacksize_np instead of
16484         pthread_create to determine if hpux pthreads are active.
16485         * gthr-posix95.h (__gthread_start): Delete.
16486         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
16487
16488 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
16489
16490         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
16491         _WIN64 not expanded.
16492
16493 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
16494             H.J. Lu  <hongjiu.lu@intel.com>
16495
16496         PR target/45213
16497         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
16498         to output 32bit SFmode immediate as 8 byte sign extended value.
16499
16500 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16501
16502         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16503         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16504         (SUBWORD_BOOL_CAS): Likewise.
16505         (SUBWORD_SYNC_OP): Likewise.
16506         (SUBWORD_TEST_AND_SET): Likewise.
16507         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16508         (SUBWORD_SYNC_OP): Likewise.
16509         (OP_AND_FETCH_WORD): Likewise.
16510
16511 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16512
16513         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
16514         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
16515         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
16516         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
16517         generic part.
16518         (cortex_a9_sched_adjust_cost): New function.
16519         (xscale_sched_adjust_cost): New function.
16520         * config/arm/arm-protos.h (struct tune_params): New field
16521         sched_adjust_cost.
16522         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
16523
16524 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
16525
16526         PR target/44942
16527         * config/sparc/sparc.c (function_arg_advance): Always take into account
16528         the padding, if any.
16529
16530 2010-08-06  Richard Guenther  <rguenther@suse.de>
16531
16532         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
16533         (dump_lattice_value): Dump it.
16534         (get_default_value): Adjust.
16535         (get_constant_value): Likewise.
16536         (set_value_varying): Likewise.
16537         (set_lattice_value): Make sure to not go up the lattice
16538         with bitwise constant values.
16539         (get_value_for_expr): Handle ADDR_EXPRs.
16540         (value_to_double_int): New function.
16541         (get_value_from_alignment): Likewise.
16542         (do_dbg_cnt): Adjust.
16543         (ccp_lattice_meet): Handle partially constant values.
16544         (bit_value_unop_1): New function.
16545         (bit_value_binop_1): Likewise.
16546         (bit_value_unop): Likewise.
16547         (bit_value_binop): Likewise.
16548         (evaluate_stmt): Track partially constant values if
16549         flag_tree_bit_ccp is set.
16550         (ccp_fold_stmt): Dump if we folded a predicate.
16551         (ccp_visit_stmt): Adjust.
16552         * common.opt (ftree-bit-ccp): New flag.
16553         * doc/invoke.texi (ftree-bit-ccp): Document.
16554         * opts.c (decode_options): Enable bit-CCP at -O1.
16555
16556 2010-08-06  Alan Modra  <amodra@gmail.com>
16557
16558         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
16559         and -mrelocatable-lib description.
16560
16561 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
16562
16563         From Martin Thuresson  <martint@google.com>
16564         * postreload.c (reload_cse_simplify_operands): Use
16565         SET_REGNO_RAW instead of SET_REGNO.
16566         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
16567         SET_REGNO.
16568         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
16569         instead of SET_REGNO.
16570         * rtl.h (SET_REGNO_RAW): New macro.
16571
16572 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
16573
16574         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
16575         computations.  Fix formatting issues.
16576         (num_sign_bit_copies1): Likewise.
16577         (canonicalize_condition): Likewise.
16578
16579 2010-08-05  Richard Henderson  <rth@redhat.com>
16580
16581         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
16582         (floor_log2): Use clz_hwi.
16583         (exact_log2): Use ctz_hwi.
16584         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
16585         * builtins.c (fold_builtin_bitop): Use them.
16586         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16587         * combine.c (get_pos_from_mask): Use ctz_hwi.
16588         * double-int.c (double_int_ctz): Likewise.
16589         * explow.c (force_reg): Likewise.
16590         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
16591
16592 2010-08-05  Richard Henderson  <rth@redhat.com>
16593
16594         PR target/45189
16595         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
16596         the alignment constant is properly sign-extended.
16597
16598 2010-08-05  Richard Guenther  <rguenther@suse.de>
16599
16600         * expr.c (store_expr): Use emit_block_move only if both
16601         source and target are MEMs.  Use store_bit_field if only
16602         the target is a MEM.
16603
16604 2010-08-05  Richard Henderson  <rth@redhat.com>
16605
16606         PR debug/45188
16607         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
16608         (INCOMING_RETURN_ADDR_RTX): Likewise.
16609         (dwarf2out_do_frame): Remove conditional compilation.
16610         (dwarf2out_frame_init): Likewise.
16611
16612 2010-08-05  Nicolas Setton  <setton@adacore.com>
16613
16614         * gcov.c (flag_display_progress): New static variable.
16615         (main): Display progress info on standard output if requested.
16616         (options): Add -d/--display-progress.
16617         (print_usage): Print them.
16618         (process_args): Handle them.
16619         * doc/gcov.texi: Document them.
16620
16621 2010-08-05  Martin Jambor  <mjambor@suse.cz>
16622
16623         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
16624         (ipcp_insert_stage): Redirect only edges not flagged with
16625         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
16626         discovered constants.
16627
16628 2010-08-05  Martin Jambor  <mjambor@suse.cz>
16629
16630         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
16631         (struct ipa_param_descriptor): New fields types and
16632         cannot_devirtualize.
16633         (ipa_param_cannot_devirtualize_p): New function.
16634         (ipa_param_types_vec_empty): Likewise.
16635         (ipa_make_edge_direct_to_target): Declare.
16636         * ipa-cp.c: Fixed first stage driver name in initial comment,
16637         described devirtualization there too.
16638         (ipcp_analyze_node): Call ipa_analyze_params_uses.
16639         (ipcp_print_all_lattices): Print devirtualization info.
16640         (ipa_set_param_cannot_devirtualize): New function.
16641         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
16642         lattice to BOTTOM.
16643         (ipcp_init_stage): Merged into...
16644         (ipcp_generate_summary): ...its caller.
16645         (ipcp_change_tops_to_bottom): Also process type lists.
16646         (ipcp_add_param_type): New function.
16647         (ipcp_copy_types): Likewise.
16648         (ipcp_propagate_types): Likewise.
16649         (ipcp_propagate_stage): Also propagate types.
16650         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
16651         Also return true if propagated types require it.
16652         (ipcp_update_callgraph): Dump redirection info.
16653         (ipcp_process_devirtualization_opportunities): New function.
16654         (ipcp_const_param_count): Include known type information.
16655         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
16656         on new node.  Fixed formatting.
16657         * ipa-prop.c (make_edge_direct_to_target): Renamed to
16658         ipa_make_edge_direct_to_target and changed all callers.  Made
16659         externally visible.
16660         (ipa_node_duplication_hook): Duplicate types vector.
16661         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
16662         redirect outgoing calls for which we can't get a decl from the
16663         statement.  Check that we can get a decl from the call statement.
16664         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16665         ipa_analyze_params_uses only when ipa-cp is disabled.
16666         * tree-inline.c (get_indirect_callee_fndecl): Removed.
16667         (expand_call_inline): Do not call get_indirect_callee_fndecl.
16668         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
16669         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
16670
16671 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
16672
16673         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
16674         temporary. Emit move from temporary to accum, so REG_EQUAL note will
16675         be attached to this insn in correct mode.
16676
16677 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
16678
16679         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
16680         using REGNO of base_reg directly.
16681
16682 2010-08-05  Jie Zhang  <jie@codesourcery.com>
16683
16684         PR tree-optimization/45144
16685         * tree-sra.c (type_consists_of_records_p): Return false
16686         if the record contains bit-field.
16687
16688 2010-08-04  Richard Henderson  <rth@redhat.com>
16689
16690         * config/i386/i386.c (struct ix86_frame): Remove padding and
16691         to_allocate members.
16692         (ix86_compute_frame_layout): Don't store them.
16693         (ix86_can_use_return_insn_p): Use a more direct and more obviously
16694         correct condition for the position of the stack pointer.
16695         (ix86_expand_prologue): Compute remaining stack allocation based
16696         on the ultimate stack pointer offset.
16697         (ix86_expand_epilogue): Use more obvious expressions testing for
16698         the stack pointer already pointing to the saved registers.
16699
16700         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
16701         duplication deconstructing the frame pointer.  Simplify
16702         deallocation of the local stack frame.
16703
16704         * reg-notes.def (CFA_EXPRESSION): New.
16705         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16706         (dwarf2out_frame_debug_cfa_expression): New.
16707         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
16708
16709         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
16710         * config/i386/i386.c (ix86_expand_prologue): Set it.
16711         (ix86_expand_epilogue): Clear it.
16712         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
16713         context, add REG_CFA_EXPRESSION notes.
16714
16715         * config/i386/i386.h (struct machine_frame_state): Rename from
16716         machine_cfa_state.  Add members tracking SP and FP regardless
16717         of the current CFA register.
16718         (ix86_cfa_state): Remove.
16719         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
16720         and sse_reg_save_offset members.
16721         (ix86_compute_frame_layout): Set them.
16722         (gen_push): Increment sp_offset too.
16723         (choose_baseaddr_len, choose_baseaddr): New.
16724         (ix86_emit_save_reg_using_mov): New.
16725         (ix86_emit_save_regs_using_mov): Use it.
16726         (ix86_emit_save_sse_regs_using_mov): Likewise.
16727         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
16728         compare vs the saved red_zone_offset.
16729         (pro_epilogue_adjust_stack): Adjust sp_offset.
16730         (ix86_adjust_stack_and_probe): Likewise.
16731         (ix86_expand_prologue): Set up, use, and validate the new
16732         frame_state_info members.  Use gen_frame_mem.
16733         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
16734         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
16735         new frame_state_info members.
16736         (ix86_emit_leave): Likewise.
16737         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
16738         out-of-range stack pointer offsets here.
16739         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16740         (ix86_expand_epilogue): Use and validate the new frame_state_info
16741         members.  Break up and simplify the logic selecting the
16742         restore_regs_via_mov code path.  Ensure that there will be no
16743         out-of-range stack pointer offsets.
16744
16745         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
16746
16747         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
16748         argument name to reflect the expected tree; fix indentation.
16749         (ix86_asm_output_function_label): Output the entire 32-bit
16750         ms_hook here as bytes ...
16751         (ix86_expand_prologue): ... not here as insns.  Attach the
16752         unwind info for the ms_hook to a blockage insn.
16753         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
16754         (ix86_ms_bitfield_layout_p): Fix indentation.
16755         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
16756
16757         * config/i386/i386.c (ix86_using_red_zone): New.
16758         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
16759         ix86_expand_prologue, ix86_force_to_memory): Use it.
16760
16761         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
16762         saving the int registers.
16763
16764         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
16765         and DWARF2_UNWIND_INFO conditional compilation.
16766
16767 2010-08-04  Richard Henderson  <rth@redhat.com>
16768
16769         PR debug/45171
16770         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
16771         an is_naming_typedef_decl.
16772
16773 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
16774
16775         PR rtl-optimization/45162
16776         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
16777         * dce.c (word_dce_process_block): Likewise.
16778
16779 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
16780
16781         PR target/44583
16782         * config/ia64/constraints.md (Z): New.
16783         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
16784         (xfreg_or_signed_fp01_operand): New.
16785         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
16786         with fr_reg_or_signed_fp01_operand and constraint G with Z.
16787         (subsf3): Ditto.
16788         (*maddsf4): Ditto.
16789         (*msubsf4): Ditto.
16790         (adddf3): Ditto.
16791         (adddf3_trunc): Ditto.
16792         (subdf3): Ditto.
16793         (*subdf3_trunc): Ditto.
16794         (*madddf4): Ditto.
16795         (*madddf4_trunc): Ditto.
16796         (*msubdf4): Ditto.
16797         (*msubdf4_trunc): Ditto.
16798         (addxf3): Replace xfreg_or_fp01_operand with
16799         xfreg_or_signed_fp01_operand and constraint G with Z.
16800         (*addxf3_truncsf): Ditto.
16801         (*addxf3_truncdf): Ditto.
16802         (subxf3): Ditto.
16803         (*subxf3_truncsf): Ditto.
16804         (*subxf3_truncdf): Ditto.
16805         (*maddxf4): Ditto.
16806         (*maddxf4_truncsf): Ditto.
16807         (*maddxf4_truncdf): Ditto.
16808         (*msubxf4): Ditto.
16809         (*msubxf4_truncsf): Ditto.
16810         (*msubxf4_truncdf): Ditto.
16811
16812 2010-08-04  Richard Guenther  <rguenther@suse.de>
16813
16814         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
16815         if either alias-set is zero.
16816
16817 2010-08-04  Richard Guenther  <rguenther@suse.de>
16818
16819         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
16820         * tree-ssa-ccp.c: ... here.
16821         * tree-ssa-copy.c: ... and here.
16822         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
16823         value_range_t): Move ...
16824         * tree-vrp.c: ... here.
16825         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
16826         (substitute_and_fold): Adjust prototype.
16827         * tree-ssa-propagate.c (replace_uses_in): Adjust.
16828         (replace_phi_args_in): Likewise.
16829         (substitute_and_fold): Take callback to query lattice instead
16830         of pointer to lattice.  Replace SSA name defs with lattice
16831         values first.
16832         * tree-ssa-ccp.c (ccp_finalize): Adjust.
16833         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
16834         (get_value): New function.
16835         (fini_copy_prop): Adjust.
16836         * tree-vrp.c (vrp_finalize): Adjust.
16837
16838 2010-08-04  Richard Guenther  <rguenther@suse.de>
16839
16840         PR middle-end/45176
16841         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
16842         points-to set for original MEM_REF.
16843
16844 2010-08-04  Richard Guenther  <rguenther@suse.de>
16845
16846         * tree-ssa-ccp.c (get_constant_value): New function.
16847         (get_rhs_assign_op_for_ccp): Remove.
16848         (valueize_op): New function.
16849         (ccp_fold): Use get_constant_value and valueize_op.
16850         (fold_const_aggregate_ref): Likewise.
16851         (ccp_fold_stmt): Likewise.
16852         (visit_assignment): Simplify.
16853
16854 2010-08-04  Richard Guenther  <rguenther@suse.de>
16855
16856         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
16857         * double-int.h (double_int_ctz): Declare.
16858         * double-int.c (double_int_ctz): New function.
16859
16860 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
16861
16862         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
16863         Define.
16864         picochip_expand_movmemhi : Expand movmem pattern.
16865         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
16866         Declare.
16867         * config/picochip/picochip.md (movmemhi) : New pattern.
16868
16869 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16870
16871         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
16872
16873 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
16874
16875         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
16876         NEG as operand of a MULT by merging it with the other operand.
16877         * combine.c (make_compound_operation): Use trunc_int_for_mode when
16878         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
16879         MULT.
16880         * config/arm/constraints.md (M): Examine only 32 bits of a
16881         HOST_WIDE_INT.
16882         * config/arm/predicates.md (power_of_two_operand): Likewise.
16883
16884 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16885
16886         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
16887         non-NOTE insns.
16888
16889 2010-08-03  Jan Hubicka  <jh@suse.cz>
16890
16891         * ipa-split.c (struct split_point): Add split_part_set_retval.
16892         (find_retval): Forward declare.
16893         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
16894         (consider_split): Compute current->split_part_set_retval.
16895         (visit_bb): Do not look into return value.
16896         (split_function): Handle !split_part_set_retval
16897
16898 2010-08-03  Martin Jambor  <mjambor@suse.cz>
16899
16900         * tree-sra.c (completely_scalarize_record): New parameter REF, create
16901         its own access->expr intead of using build_ref_for_offset.
16902
16903 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
16904
16905         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
16906         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
16907         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
16908         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
16909         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
16910         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
16911         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
16912         DEFAULT_SWITCH_TAKES_ARG.
16913         * config/rx/rx.opt (-patch=): Remove option.
16914         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
16915         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
16916         * doc/invoke.texi (RX Options): Remove -patch=.
16917         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
16918         (option_map): Remove --profile-blocks, --quiet and --silent.
16919
16920 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16921
16922         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
16923         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
16924         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
16925         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16926         Update calls to ix86_expand_compare and ix86_expand_branch.
16927         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
16928         ix86_expand_compare.
16929         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
16930         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16931         Make static.
16932         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
16933         and ix86_compare_op1.  Update calls to ix86_expand_compare.
16934         (ix86_expand_int_movcc): Ditto.
16935         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
16936         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
16937         (ix86_expand_setcc): Ditto.
16938         (ix86_expand_compare): Remove prototype.
16939         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
16940         ix86_compare_op0 and ix86_compare_op1.  Update calls
16941         to ix86_expand_branch to directly pass operands[1] and operands[2].
16942         (cbranchxf4): Ditto.
16943         (cbranch<MODEF:mode>4): Ditto.
16944         (cbranchcc4): Ditto.
16945         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
16946         Update calls to ix86_expand_setcc to directly pass operands[2] and
16947         operands[3].
16948         (cstorexf4): Ditto.
16949         (cstore<MODEF:mode>4): Ditto.
16950         (cstorecc4): Ditto.
16951
16952 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16953
16954         PR target/45063
16955         * caller-save.c (save_call_clobbered_regs): Remove regs from
16956         hard_regs_saved when they are set.
16957
16958 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16959
16960         PR target/41089
16961         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16962         as volatile.
16963
16964 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
16965
16966         * common.opt (ftree-loop-distribute-patterns): New.
16967         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
16968         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
16969         at -O3.
16970         * tree-data-ref.c (stores_zero_from_loop): New.
16971         * tree-data-ref.h (stores_zero_from_loop): Declared.
16972         * tree-loop-distribution.c (tree_loop_distribution): Call
16973         stores_zero_from_loop.
16974         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
16975
16976 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16977
16978         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
16979         into account.
16980
16981         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
16982         * config/arm/arm.c (thumb1_code): New variable.
16983         (arm_override_options): Set it.
16984         (thumb1_final_prescan_insn): Keep track of condition code status.
16985         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
16986         jumps that depend on them.
16987         * config/arm/arm.h (thumb1_code): Declare variable.
16988         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
16989         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
16990         thumb1_cc_mode.
16991         (CC_STATUS_INIT): New macro.
16992         * config/arm/constraints.md (Pd): New constraint.
16993         * config/arm/predicates.md (noov_comparison_operator): New predicate.
16994         * config/arm/arm.md (is_thumb1): New define_attr.
16995         (conds): Set default to "clob" when generating Thumb1 code.
16996         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
16997         code are set.  Use two-operand assembly syntax.
16998         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
16999         pattern.
17000         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
17001         codes are set.  Use two-operand assembly syntax.
17002         (zero_extendhisi splitter): Remove constraints.
17003         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
17004         thumb1_movsf_insn): Set conds attribute as appropriate.
17005         (cbranchsi4_insn): Use condition code status from struct
17006         machine_function to determine whether the comparison can be eliminated.
17007         Discourage the alternative using high registers.
17008         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
17009         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
17010         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
17011         subsi3_cbranch): Delete.
17012         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
17013         one subtract and one cbranch insn.
17014
17015         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
17016         thumb2_movdf_soft_insn): Delete patterns.
17017         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
17018         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
17019         (pool_range, neg_pool_range): Use them to define defaults.
17020         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
17021         and allow for TARGET_32BIT.
17022
17023         PR target/40457
17024         * config/arm/arm.h (arm_regs_in_sequence): Declare.
17025         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
17026         load_multiple_sequence, store_multiple_sequence): Delete
17027         declarations.
17028         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
17029         declarations.
17030         * config/arm/ldmstm.md: New file.
17031         * config/arm/arm.c (arm_regs_in_sequence): New array.
17032         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
17033         CHECK_REGS.  All callers changed.
17034         If SAVED_ORDER is nonnull, copy the computed order into it.
17035         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
17036         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
17037         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
17038         If SAVED_ORDER is nonnull, copy the computed order into it.
17039         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
17040         like REGS.  Handle Thumb mode.
17041         (arm_gen_load_multiple_1): New function, broken out of
17042         arm_gen_load_multiple.
17043         (arm_gen_store_multiple_1): New function, broken out of
17044         arm_gen_store_multiple.
17045         (arm_gen_multiple_op): New function, with code from
17046         arm_gen_load_multiple and arm_gen_store_multiple moved here.
17047         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
17048         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
17049         changed.
17050         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
17051         * config/arm/predicates.md (commutative_binary_operator): New.
17052         (load_multiple_operation, store_multiple_operation): Handle more
17053         variants of these patterns with different starting offsets.  Handle
17054         Thumb-1.
17055         * config/arm/arm.md: Include "ldmstm.md".
17056         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
17057         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
17058         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
17059         peepholes): Delete.
17060         * config/arm/ldmstm.md: New file.
17061         * config/arm/arm-ldmstm.ml: New file.
17062
17063         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
17064         if statement which adds extra costs to frame-related expressions.
17065
17066 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17067
17068         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
17069
17070 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
17071
17072         PR target/45142
17073         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
17074         alternative 2.
17075         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
17076         split V4SI operands.
17077
17078 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
17079
17080         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17081         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
17082         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
17083         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17084
17085 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
17086
17087         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
17088         LOCAL_INCLUDE_DIR.
17089
17090 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17091
17092         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
17093         used in the call to optab_for_tree_code.  Fix the second
17094         is_widening_mult_p call.  Check that both unwidened operands
17095         have the same sign.
17096
17097 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
17098
17099         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
17100
17101 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
17102
17103         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17104
17105 2010-07-30  DJ Delorie  <dj@redhat.com>
17106
17107         * config/rx/predicates.md (rx_constshift_operand): New.
17108         * config/rx/rx.md (zs_cond): New.
17109         (cbranchsi4): Remove mode.
17110         (*cbranchsi4_<code>): Likewise.
17111         (*tstbranchsi4_<code>): New.
17112         (*tstbranchsi4r_<code>): New.
17113         (*tstbranchsi4m_eq): New.
17114         (*tstbranchsi4m_ne): New.
17115         (cbranchsf4): Remove mode.
17116         (*cbranchsf4_<code>): Likewise.
17117
17118 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
17119
17120         * rtlanal.c (simplify_subreg_regno): Don't treat
17121         HARD_FRAME_POINTER_REGNUM specially.
17122
17123 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
17124
17125         * common.opt (-G): Don't define option here.
17126         * config/g.opt: New.
17127         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
17128         rs6000/powerpc and score targets.
17129         * opts.c (common_handle_option): Don't handle -G here.
17130         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
17131         * config/frv/frv.c (frv_handle_option): Handle -G.
17132         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
17133         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
17134         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
17135         * config/mips/mips.c (mips_handle_option): Handle -G.
17136         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
17137         * config/score/score.c (score_handle_option): Handle -G.
17138
17139 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
17140
17141         * config/mmix/mmix.c: Include basic-block.h.
17142
17143 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
17144
17145         PR debug/45055
17146         PR rtl-optimization/45137
17147         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
17148         prototypes.
17149         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
17150         New functions.
17151         * combine.c (next_nonnote_nondebug_insn): Removed.
17152         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
17153         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
17154         * sched-deps.c (sched_analyze_insn): Likewise.
17155         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
17156         * rtlanal.c (canonicalize_condition): Likewise.
17157         * postreload.c (reload_combine_recognize_pattern): Likewise.
17158         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
17159
17160 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
17161
17162         * config/i386/i386.md (int_cond): Remove code iterator.
17163         (fp_cond): Ditto.
17164         (cbranch<mode>4): Use ordered_comparison_operator predicate
17165         for operator0.
17166         (cstore<mode>4): Ditto for operator1.
17167         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
17168         (add<mode>cc): ditto.
17169
17170 2010-07-30  Richard Guenther  <rguenther@suse.de>
17171
17172         PR middle-end/45141
17173         * expr.c (expand_expr_real_1): Check for not handled base address.
17174
17175 2010-07-30  Richard Guenther  <rguenther@suse.de>
17176
17177         * ipa-prop.c (ipa_modify_formal_parameters): Use
17178         build_distinct_type_copy.
17179
17180 2010-07-30  Anthony Green  <green@moxielogic.com>
17181
17182         * config/moxie/rtems.h: New file.
17183         * config.gcc: Add moxie-rtems support.
17184
17185 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17186
17187         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
17188         df flags as in run_fast_df_dce.
17189
17190 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
17191
17192         Revert:
17193         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17194
17195         * rtl.def (NOTE): Swap operands 4 and 5.
17196         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
17197         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
17198         Adjust accordingly.
17199         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
17200
17201 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
17202
17203         PR debug/45110
17204         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
17205         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
17206         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
17207         formal parameters.
17208         (gen_decl_die): Change return type to dw_die_ref, return what
17209         gen_formal_parameter_die returned.
17210
17211 2010-07-29  Martin Jambor  <mjambor@suse.cz>
17212
17213         * dbgcnt.def (eipa_sra): New counter.
17214         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
17215
17216 2010-07-29  Xinliang David Li  <davidxl@google.com>
17217
17218         PR bootstrap/45119
17219         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
17220         in revision 162652.
17221
17222 2010-07-29  Richard Guenther  <rguenther@suse.de>
17223
17224         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
17225         (TV_TREE_STORE_CCP): Likewise.
17226         (TV_TREE_REDPHI): Likewise.
17227
17228 2010-07-29  Richard Guenther  <rguenther@suse.de>
17229
17230         * double-int.h (double_int_and_not): New function.
17231         * combine.c (try_combine): Use it.
17232         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
17233
17234 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17235
17236         PR rtl-optimization/42575
17237         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
17238         Argument AU removed.  All callers changed.  Ignore artificial refs.
17239         Use return value of df_word_lr_simulate_defs to decide whether an insn
17240         is necessary.
17241         (fast_dce): Rename arg to WORD_LEVEL.
17242         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
17243         static.
17244         (pass_fast_rtl_byte_dce): Delete.
17245         * dce.h (run_word_dce): Declare.
17246         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
17247         All callers changed.  Simplify code to only deal with two-word regs.
17248         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
17249         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
17250         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
17251         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
17252         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
17253         (df_word_lr_mark_ref): Declare.
17254         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
17255         df_word_lr_simulate_uses): Declare or rename from byte variants.
17256         (df_byte_lr_simulate_artificial_refs_at_top,
17257         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17258         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
17259         declarations.
17260         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
17261         (enum df_mm): Delete.
17262         * df-byte-scan.c: Delete file.
17263         * df-problems.c (df_word_lr_problem_data): Renamed from
17264         df_byte_lr_problem_data, all members deleted except for
17265         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
17266         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
17267         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17268         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
17269         df_byte_lr_confluence_0): Delete functions.
17270         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
17271         callers changed.
17272         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
17273         Don't initialize members that were deleted, don't try to discover data
17274         about registers.  Ignore hard regs.
17275         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
17276         (df_word_lr_mark_ref): New function.
17277         (df_word_lr_bb_local_compute): Renamed from
17278         df_byte_bb_lr_local_compute; all callers changed.  Use
17279         df_word_lr_mark_ref.  Assert that artificial refs don't include
17280         pseudos.  Ignore hard registers.
17281         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
17282         Assert that exit block uses don't contain pseudos.
17283         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
17284         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
17285         callers changed.  Ignore hard regs.
17286         (df_word_lr_transfer_function): Renamed from
17287         df_byte_lr_transfer_function; all callers changed.
17288         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
17289         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
17290         changed.
17291         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
17292         callers changed.
17293         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
17294         confluence operator 0 set to NULL.
17295         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
17296         callers changed.
17297         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
17298         Return bool, true if bitmap changed or insn otherwise necessary.
17299         All callers changed.  Simplify using df_word_lr_mark_ref.
17300         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
17301         all callers changed.  Simplify using df_word_lr_mark_ref.
17302         * lower-subreg.c: Include "dce.h"
17303         (decompose_multiword_subregs): Call run_word_dce if df available.
17304         * Makefile.in (lower-subreg.o): Adjust dependencies.
17305         (df-byte-scan.o): Delete.
17306         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
17307
17308 2010-07-29  Richard Guenther  <rguenther@suse.de>
17309
17310         * tree.c (build_vector): Assert that the vector constant
17311         has enough elements.
17312         (build_vector_from_ctor): Pad with trailing zeros.
17313
17314 2010-07-29  Richard Guenther  <rguenther@suse.de>
17315
17316         PR tree-optimization/45120
17317         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17318         Handle offset in DEREFs properly.
17319         (get_constraint_for_1): Handle MEM_REF offset properly.
17320
17321 2010-07-29  Richard Guenther  <rguenther@suse.de>
17322
17323         PR middle-end/45034
17324         * convert.c (convert_to_integer): Always use an unsigned
17325         type for narrowed negate and bitwise not.
17326
17327 2010-07-29  Ira Rosen  <irar@il.ibm.com>
17328
17329         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
17330         to outer loop when creating reduction epilogue for double reduction,
17331         and switch back to the inner loop when updating the phi nodes.
17332         Update uses of outer loop exit phi nodes in double reduction (instead
17333         of uses of reduction).
17334
17335 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
17336
17337         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
17338         popcount on power7 and parity on power6 systems.
17339         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
17340         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
17341         instructions.
17342
17343         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
17344         (UNSPEC_PARITY): Ditto.
17345         (SFDF): New iterator for SF/DF.
17346         (rreg2): New mode attribute for floating register constraint.
17347         (TARGET_FLOAT): New mode attribute for whether single/double float
17348         is supported.
17349         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
17350         pattern.
17351         (parity<mode>2_cmpb): New insn for parity on power6 and newer
17352         machines.
17353         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
17354         pattern.  Add support for fcpsgn instruction added in power6.
17355         (copysignsf3): Delete.
17356         (copysigndf3): Delete.
17357         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
17358         instead of if_then_else in RTL to avoid problems with -0.
17359
17360         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
17361         of if_then_else to mirror scalar code.
17362         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
17363         rs6000.md.
17364
17365         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
17366         instead of if_then_else.
17367
17368 2010-07-28  Xinliang David Li  <davidxl@google.com>
17369
17370         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
17371         (dump_cand): Dump var_before/after.
17372         (htab_inv_expr_eq): New function.
17373         (htab_inv_expr_hash): New function.
17374         (tree_ssa_iv_optimize_init): Support pseudo invariants.
17375         (add_candidate_1): consider base type precision.
17376         (set_use_iv_cost): New parameter.
17377         (adjust_setup_cost): Use profile information.
17378         (get_address_cost): Do not hard code width in computing address
17379         offset limits.
17380         (compare_aff_trees): New function.
17381         (get_loop_invariant_expr_id): New function.
17382         (get_computation_cost_at): New parameter and use profile information.
17383         (get_computation_cost): New parameter.
17384         (determine_use_iv_cost_generic): Pass new parameter.
17385         (determine_use_iv_cost_address): Ditto.
17386         (determine_use_iv_cost_condition): Ditto.
17387         (autoinc_possible_for_pair): Ditto.
17388         (determine_use_iv_costs): More dumps.
17389         (iv_ca_get_num_inv_exprs): New function.
17390         (iv_ca_recount_cost): Consider loop invariants in register pressure
17391         cost.
17392         (iv_ca_add_use): New parameter.
17393         (iv_ca_dump): Better dumping.
17394         (iv_ca_extend): New parameter.
17395         (try_add_cand_for): Attempt to get better partial solution.
17396         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
17397         (create_new-ivs): More dumps.
17398         (rewrite_use_compare): Ditto.
17399         (free_loop_data): More cleanup.
17400         (treee_ssa_iv_optimize_finalize): Ditto.
17401
17402 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
17403
17404         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
17405         * config/i386/i386.c (ix86_profile_before_prologue): New.
17406         (override_options): Add special handling for -mfentry.
17407         (ix86_function_regparm): Likewise.
17408         (ix86_function_sseregparm): Likewise.
17409         (ix86_frame_pointer_required): Likewise.
17410         (ix86_expand_prologue): Check for ms_hook_prologue.
17411         (x86_function_profiler): Adjust mcount output.
17412         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
17413         * config/i386/i386.opt (mfentry): New.
17414         * doc/invoke.texi (mfentry): Add documentation.
17415         * doc/tm.texi: Regenerated..
17416         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
17417         * final.c (final_start_function): Replace macro
17418         PROFILE_BEFORE_PROLOGUE by target hook.
17419         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17420         * target.def (profile_before_prologue): New hook.
17421         * targhooks.c (default_profile_before_prologue): New.
17422         * targhooks.h (default_profile_before_prologue): New.
17423
17424 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
17425
17426         PR debug/45105
17427         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
17428
17429         PR debug/45103
17430         * dwarf2out.c (dwarf2out_var_location): Always consider
17431         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
17432
17433 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17434
17435         PR rtl-optimization/45107
17436         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
17437
17438 2010-07-28  Richard Guenther  <rguenther@suse.de>
17439
17440         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
17441         (set_lattice_value): Do not query an old default value.
17442         (get_value_for_expr): New function.  Properly canonicalize
17443         float values.
17444         (ccp_visit_phi_node): Use it.
17445
17446 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
17447
17448         * config/arm/arm.c (arm_pcs_default): Remove static.
17449         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
17450         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
17451         (arm_pcs_default): Declare.
17452
17453 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
17454
17455         * config/rs6000/rs6000.c (rs6000_override_options):
17456         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
17457         ... to darwin_rs6000_override_options.
17458         (rs6000_return_in_memory): Update preceding comment for darwin
17459         64 bit ABI.  Use TARGET_MACHO inline.
17460         (rs6000_darwin64_struct_check_p): New.
17461         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
17462         (function_arg): Likewise.
17463         (rs6000_arg_partial_bytes): Likewise.
17464         (rs6000_function_value): Likewise.
17465
17466 2010-07-28  Andi Kleen  <ak@linux.intel.com>
17467
17468         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
17469
17470 2010-07-28  Richard Guenther  <rguenther@suse.de>
17471
17472         PR middle-end/44903
17473         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
17474         targets try harder to not generate unaligned accesses.
17475
17476 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17477
17478         PR rtl-optimization/45101
17479         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
17480         for gcse-las.
17481
17482 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17483
17484         PR tree-optimization/44885
17485         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
17486         with non-aliased component.
17487
17488 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
17489
17490         * config/darwin-driver.c (SWITCH_TAKES_ARG,
17491         WORD_SWITCH_TAKES_ARG): Remove.
17492         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
17493         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
17494         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
17495         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
17496         definitions from gcc.c.
17497         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
17498         defaults.h.
17499         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
17500         Move to defaults.h.
17501         * opts-common.c: Include tm.h.
17502         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
17503         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
17504         Handle more than one argument.  Set canonical_option_num_elements.
17505         (decode_cmdline_options_to_array): Set
17506         canonical_option_num_elements and trailing elements of
17507         canonical_option.
17508         * opts.h (struct cl_decoded_option): Allow four elements in
17509         canonical_option.  Add field canonical_option_num_elements.
17510         * Makefile.in (opts-common.o): Update dependencies.
17511
17512 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17513
17514         PR middle-end/44790
17515         PR middle-end/44993
17516         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
17517         sure the base has address_mode before adding the offset.
17518
17519 2010-07-27  Xinliang David Li  <davidxl@google.com>
17520
17521         * tree-flow.h (create_mem_ref): Add one new parameter.
17522         * tree-ssa-address.c (create_mem_ref): New parameter.
17523         (addr_to_parts): Ditto.
17524         (move_variant_to_index): New function.
17525         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
17526
17527 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17528
17529         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
17530         4 and 5.
17531         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
17532         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
17533         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
17534         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
17535         CODE_LABELs and NOTEs.
17536         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
17537         * combine.c (try_combine): Likewise.
17538         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17539         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
17540
17541 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17542
17543         * coretypes.h (struct cl_option_handlers): Declare.
17544         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
17545         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
17546         * langhooks-def.h (lhd_handle_option): Declare.
17547         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
17548         * langhooks.c (lhd_handle_option): New.
17549         * langhooks.h (struct lang_hooks): Update prototype and return
17550         value type of handle_option hook.
17551         * optc-gen.awk: Generate target_flags_explicit definition for the
17552         driver.
17553         * opts-common.c: Include diagnostic.h.
17554         (handle_option): Move from opts.c.  Update prototype and return
17555         value type.  Use handlers structure.
17556         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
17557         handlers structure.
17558         (set_option): Move from opts.c.
17559         * opts.c (common_handle_option): Update prototype and return value
17560         type.  Update calls to handle_option and enable_warning_as_error.
17561         (unknown_option_callback, post_handling_callback,
17562         lang_handle_option, target_handle_option): New.
17563         (handle_option, read_cmdline_option): Move to opts-common.c.
17564         (read_cmdline_options): Update prototype.  Update call to
17565         read_cmdline_option.
17566         (decode_options): Initialize and use handlers structure.
17567         (set_option): Move to opts-common.c.
17568         (enable_warning_as_error): Update prototype.  Update call to
17569         handle_option.
17570         * opts.h (struct cl_option_handler_func, struct
17571         cl_option_handlers): New.
17572         (handle_option, enable_warning_as_error): Update prototypes.
17573         (read_cmdline_option): Declare.
17574         * Makefile.in (opts-common.o): Update dependencies.
17575
17576 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17577
17578         * config/arm/arm.c (params.h): Include.
17579         (arm_override_options): Tune gcse-unrestricted-cost.
17580         * config/arm/t-arm (arm.o): Define dependencies.
17581
17582 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17583
17584         PR target/42495
17585         PR middle-end/42574
17586         * basic-block.h (get_dominated_to_depth): Declare.
17587         * dominance.c (get_dominated_to_depth): New function, use
17588         get_all_dominated_blocks as a base.
17589         (get_all_dominated_blocks): Use get_dominated_to_depth.
17590
17591         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
17592         (hoist_exprs): Remove.
17593         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
17594         (compute_code_hoist_vbeinout): Add debug print outs.
17595         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
17596
17597         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
17598         quadratic behavior.
17599         * params.h (MAX_HOIST_DEPTH): New macro.
17600         * doc/invoke.texi (max-hoist-depth): Document.
17601
17602 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17603
17604         PR rtl-optimization/40956
17605         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
17606         constants.
17607
17608 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17609
17610         PR target/42495
17611         PR middle-end/42574
17612         * config/arm/arm.c (legitimize_pic_address): Use
17613         gen_calculate_pic_address pattern to emit calculation of PIC address.
17614         (will_be_in_index_register): New function.
17615         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
17616         (thumb1_legitimate_address_p): Use it provided !strict_p.
17617         * config/arm/arm.md (calculate_pic_address): New expand and split.
17618
17619 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17620
17621         PR target/42495
17622         PR middle-end/42574
17623         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
17624         * config/arm/arm.md (define_split "J", define_split "K"): Make
17625         IRA/reload friendly.
17626
17627 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17628
17629         * gcse.c (insert_insn_end_basic_block): Update signature, remove
17630         unused checks.
17631         (pre_edge_insert, hoist_code): Update.
17632
17633 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17634
17635         PR target/42495
17636         PR middle-end/42574
17637         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
17638
17639 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17640
17641         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
17642
17643 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17644
17645         PR rtl-optimization/40956
17646         PR target/42495
17647         PR middle-end/42574
17648         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
17649         for hoisting.
17650         (hoist_code): Count occurences in current block too.
17651
17652 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17653
17654         * gcse.c (struct expr:max_distance): New field.
17655         (doing_code_hoisting_p): New static variable.
17656         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
17657         simple expressions, don't change behavior for PRE.  Set max_distance.
17658         (insert_expr_in_table): Set new max_distance field.
17659         (hash_scan_set): Update.
17660         (hoist_expr_reaches_here_p): Stop search after max_distance
17661         instructions.
17662         (find_occr_in_bb): New static function.  Use it in ...
17663         (hoist_code): Calculate sizes of basic block before any changes are
17664         done.  Pass max_distance to hoist_expr_reaches_here_p.
17665         (one_code_hoisting_pass): Set doing_code_hoisting_p.
17666
17667         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
17668         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
17669         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
17670         macros.
17671         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
17672         Document.
17673
17674 2010-07-27  Jeff Law  <law@redhat.com>
17675             Maxim Kuvyrkov  <maxim@codesourcery.com>
17676
17677         * gcse.c (compute_transpout, transpout): Remove, move logic
17678         to prune_expressions.
17679         (compute_pre_data): Move pruning of trapping expressions ...
17680         (prune_expressions): ... here.  New static function.
17681         (compute_code_hoist_data): Use it.
17682         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
17683
17684 2010-07-27  Xinliang David Li  <davidxl@google.com>
17685
17686         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
17687         (rewrite_use_address): Adjust iv update position when needed.
17688
17689 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17690
17691         * dbgcnt.def (hoist_insn): New debug counter.
17692         * gcse.c (hoist_code): Use it.
17693
17694 2010-07-27  Xinliang David Li  <davidxl@google.com>
17695
17696         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
17697         (niter_for_single_dom_exit): Passes additional parameter.
17698         (iv_period): Fix comments.
17699         (may_eliminate_iv): Handles multiple exit loops properly.
17700         (free_tree_niter_desc): New function.
17701         (free_loop_data): Frees up loop iteration descriptors.
17702
17703 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17704
17705         PR target/44542
17706         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
17707         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
17708         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
17709         (expand_one_var): Don't consider DECL_ALIGN for variables for
17710         which expand_one_stack_var_at has been already called.
17711
17712         PR testsuite/44701
17713         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
17714         constraints on IA-64.
17715
17716 2010-07-27  Jie Zhang  <jie@codesourcery.com>
17717
17718         PR target/44290
17719         Revert:
17720         2010-07-23  Jie Zhang  <jie@codesourcery.com>
17721
17722         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17723         false if ! tree_versionable_function_p.
17724
17725 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17726
17727         * dwarf2out.c (add_data_member_location_attribute): Use
17728         add_AT_unsigned instead of add_AT_int if offset is non-negative.
17729
17730 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17731
17732         * postreload.c (try_replace_in_use): New static function.
17733         (reload_combine_recognize_const_pattern): Use it here.  Allow
17734         substituting into a final add insn, and substituting into a memory
17735         reference in an insn that sets the reg.
17736
17737 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17738
17739         * common.opt (o): Add MissingArgError.
17740         * doc/options.texi (MissingArgError): Document.
17741         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
17742         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
17743         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
17744         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
17745         * langhooks.h (struct lang_hooks): Remove missing_argument.
17746         * optc-gen.awk: Handle MissingArgError and output new structure
17747         field initializers.
17748         * opts.c (read_cmdline_option): Use missing_argument_error field
17749         instead of missing_argument langhook.
17750         * opts.h (struct cl_option): Add missing_argument_error field.
17751         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
17752
17753 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17754
17755         PR target/29090
17756         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
17757         Darwin64 ABI, for zero-sized objects.
17758
17759 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17760
17761         PR target/35491
17762         PR target/29090
17763
17764         Merge from Apple local 4.2.1.
17765         2005-05-11  Stan Shebs  <shebs@apple.com>
17766         Fix 64-bit varargs for Darwin (Radar 4028089).
17767         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
17768         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
17769         Add argument, add case for 8-byte register half-filled with a float.
17770         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
17771         single-precision floats specially.
17772
17773 2010-07-27  Ira Rosen  <irar@il.ibm.com>
17774
17775         PR tree-optimization/44152
17776         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
17777         complex numbers for further check.
17778         (vect_supported_load_permutation_p): Check nodes with
17779         complex numbers.
17780
17781 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17782
17783         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
17784         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
17785         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
17786         (LANG_HOOKS_INITIALIZER): Add new hooks.
17787         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
17788         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
17789         and complain_wrong_lang_p.  Update init_options prototype.
17790         * c-objc-common.c (c_initialize_diagnostics): First call
17791         c_common_initialize_diagnostics.
17792         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
17793         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
17794         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
17795         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
17796         (hook_uint_void_0): New.
17797         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
17798         (hook_uint_void_0): New.
17799         * opts-common.c (decode_cmdline_option,
17800         decode_cmdline_options_to_array): Also fill in canonical_option field.
17801         * opts.c (complain_wrong_lang): Use langhook to determine whether
17802         to complain instead of special-casing LTO.
17803         (decode_options): Separate lang_mask determination with
17804         option_lang_mask hook from call of init_options hook.
17805         * opts.h (struct cl_decoded_option): Add canonical_option.
17806
17807 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17808
17809         PR tree-optimization/45083
17810         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
17811
17812 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17813
17814         * postreload.c (reload_combine_recognize_const_pattern): Move test
17815         for limiting the insn movement to the right scope.
17816
17817         PR rtl-optimization/45051
17818         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
17819         than reg_mentioned_p.
17820
17821 2010-07-26  Richard Henderson  <rth@redhat.com>
17822
17823         PR target/44132
17824         * tree-emutls.c: New file.
17825         * Makefile.in (OBJS-common): Add it.
17826         * tree-pass.h (pass_ipa_lower_emutls): Declare.
17827         * passes.c (init_optimization_passes): Add it.
17828
17829         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
17830         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
17831         * expr.c (emutls_var_address): Delete.
17832         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
17833         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
17834         (emutls_finish): Delete.
17835         * toplev.c (compile_file): Don't call it.
17836         * tree.h (emutls_decl): Delete.
17837         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
17838         (emutls_finish, emutls_finalize_control_var): Delete.
17839         (emutls_object_type): Move to tree-emutls.c.
17840         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
17841         default_emutls_var_fields, get_emutls_object_type,
17842         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
17843         default_emutls_var_init): Likewise.
17844         (get_variable_section): Don't special case emutls.
17845         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
17846         default_elf_select_section, default_unique_section,
17847         default_encode_section_info): Likewise.
17848         * varpool.c (decide_is_variable_needed): Likewise.
17849         * gimple-iterator.c (update_call_edge_frequencies): New
17850         (gsi_insert_on_edge_immediate): Use it.
17851         (gsi_insert_seq_on_edge_immediate): Likewise.
17852         (gsi_commit_one_edge_insert): Likewise.
17853
17854         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
17855         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
17856         (x86_64_elf_unique_section): Likewise.
17857
17858 2010-07-26  Jan Hubicka  <jh@suse.cz>
17859
17860         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
17861         GTY((skip)).
17862
17863 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
17864
17865         * target.def (output_source_filename): New hook.
17866         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
17867         * doc/tm.texi: Regenerate.
17868         * toplev.c (output_file_directive) Remove function.
17869         * toplev.h (output_file_directive) Remove.
17870         * output.h (default_asm_output_source_filename,
17871         output_file_directive): Declare.
17872         * varasm.h (default_asm_output_source_filename,
17873         output_file_directive): New functions.
17874
17875         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17876         * config/mips/mips-protos.h (mips_output_filename): Remove.
17877         * config/mips/mips.c (mips_output_filename): Make Static.
17878         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17879
17880 2010-07-26  Richard Guenther  <rguenther@suse.de>
17881
17882         PR tree-optimization/43784
17883         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
17884         if the destination is used by the call.
17885
17886 2010-07-26  Richard Guenther  <rguenther@suse.de>
17887
17888         PR middle-end/45073
17889         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
17890         SSA updating on being in SSA form.
17891
17892 2010-07-26  Richard Guenther  <rguenther@suse.de>
17893
17894         PR middle-end/45056
17895         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
17896
17897 2010-07-26  Richard Guenther  <rguenther@suse.de>
17898
17899         PR tree-optimization/45071
17900         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
17901         adjust op->opcode.
17902
17903 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
17904
17905         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
17906         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
17907         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
17908         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
17909         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
17910         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
17911         save_r31, return_r31, save_interrupt, return_interrupt,
17912         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
17913         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
17914         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
17915         new ABI requirements.
17916         (save_r6_r9, L_callt_save_r6_r9): Remove.
17917         * config/v850/predicates.md (even_reg_operand, disp23_operand,
17918         const_float_1_operand const_float_0_operand): New Predicates.
17919         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
17920         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
17921         * config/v850/t-v850: Update multilibs for new target variants.
17922         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
17923         * config/v850/t-v850e: Likewise.
17924         * config/v850/v850.c (v850_issue_rate): New.
17925         (v850_strict_argument_naming): New.
17926         (function_arg): Modify to generate a different ABI.
17927         (print_operand): Update case 'z' to support float modes.
17928         (output_move_single): Modify to generate appropriate and better
17929         assembly.
17930         (v850_float_z_comparison_operator, v850_select_cc_mode,
17931         v850_float_nz_comparison_operator,  v850_gen_float_compare,
17932         v850_gen_compare): New functions to support comparison of float values.
17933         (ep_memory_offset): Add support for V850E2 targets.
17934         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
17935         (INTERRUPT_REGPARM_NUM): Remove.
17936         (compute_register_save_size): Add extra case to save/restore long call.
17937         (use_prolog_function): New function to support prologue.
17938         (expand_prologue): Add support for V850E2 targets and modified
17939         as per the current ABI requirements.
17940         (expand_epilogue): Likewise.
17941         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
17942         (construct_save_jarl): Likewise.
17943         (construct_dispose_instruction): Update as per the current ABI
17944         requirements.
17945         (construct_prepare_instruction): Likewise.
17946         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
17947         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
17948         (CPP_SPEC): Updated to support v850e2 targets.
17949         (STRICT_ALIGNMENT): Modified.
17950         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
17951         (FIXED_REGISTERS): Likewise.
17952         (CALL_USED_REGISTERS): Likewise.
17953         (CONDITIONAL_REGISTER_USAGE): Updated.
17954         (HARD_REGNO_MODE_OK): Updated.
17955         (reg_class): Updated to add even registers.
17956         (REG_CLASS_NAMES): Likewise.
17957         (REG_CLASS_CONTENTS): Likewise.
17958         (REGNO_REG_CLASS): Updated for CC registers.
17959         (REG_CLASS_FROM_LETTER): Added support for even registers.
17960         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
17961         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
17962         ARG_POINTER_REGNUM): Updated.
17963         (FUNCTION_ARG_ADVANCE): Define.
17964         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
17965         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
17966         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
17967         (GO_IF_LEGITIMATE_ADDRESS): Updated.
17968         (SELECT_CC_MODE): Define.
17969         (REGISTER_NAMES): Updated to add psw and fcc registers.
17970         (ADDITIONAL_REGISTER_NAMES): Updated.
17971         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
17972         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
17973         * config/v850/v850.md (define_constants): Define new constants.
17974         (type): Update store,bit1,macc,div,fpu and single attributes.
17975         (cpu): New attribute.
17976         (cc): Add set_z attribute.
17977         (unsign23byte_load, sign23byte_load, unsign23hword_load,
17978         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
17979         23word_store): New instructions for 23-bit displacement load and store.
17980         (movqi_internal, movhi_internal): Update the attributes.
17981         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
17982         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
17983         the attributes.
17984         (v850_tst1): Modified using CC_REGNUM.
17985         (tstsi): Remove.
17986         (cmpsi): Modified as define_expand from define_insn.
17987         (cmpsi_insn, cmpsf, cmpdf): New instructions.
17988         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
17989         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
17990         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
17991         one_cmplsi2): Clobber the CC_REGNUM register.
17992         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
17993         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
17994         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
17995         (setf_insn, set_z_insn, set_nz_insn): New instructions for
17996         v850e2v3 target.
17997         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
17998         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
17999         targets.
18000         (sasf_1, sasf_2): Remove.
18001         (sasf): New instruction.
18002         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
18003         targets. CC_REGNUM register is clobbered and attributes are
18004         updated.
18005         (branch_z_normal, branch_z_invert, branch_nz_normal,
18006         branch_nz_invert): New branch related instructions.
18007         (jump): Updated the attributes.
18008         (switch): Update to support new targets. CC_REGNUM register is
18009         clobbered and attributes are updated.
18010         (call_internal_short, call_internal_long, call_value_internal_short,
18011         call_value_internal_long): Updated the attributes.
18012         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
18013         clobbered and attributes are updated.
18014         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
18015         Update to support new targets. CC_REGNUM register is clobbered.
18016         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
18017         instructions.
18018         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
18019         are updated.
18020         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
18021         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
18022         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
18023         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
18024         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
18025         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
18026         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
18027         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
18028         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
18029         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
18030         point instructions defined for V850e2v3 target.
18031         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
18032         Add support for V850E2 targets and CC_REGNUM register is clobbered.
18033         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
18034         support for new targets.
18035         * config/v850/v850-modes.def: New file.
18036         * config/v850/v850.opt(mstrict-align): Remove.
18037         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
18038         mv850e2v3): New command line options for V850.
18039         * config.gcc: Update the newly added files.
18040         * doc/invoke.texi: Update the newly added command line options for
18041         V850 target.
18042
18043 2010-07-26  Richard Guenther  <rguenther@suse.de>
18044
18045         PR tree-optimization/45052
18046         * ipa-pure-const.c (check_stmt): Check volatileness.
18047
18048 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18049
18050         PR target/44707
18051         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
18052         * config/sparc/sparc.c: Include reload.h.
18053         (legitimize_tls_address): Rename into...
18054         (sparc_legitimize_tls_address): ...this.
18055         (legitimize_pic_address): Rename into...
18056         (sparc_legitimize_pic_address): ...this.
18057         (sparc_expand_move): Adjust to above renaming.
18058         (sparc_tls_referenced_p): Likewise.
18059         (sparc_legitimize_tls_address): Likewise.
18060         (sparc_legitimize_pic_address): Likewise.
18061         (sparc_legitimize_address): Likewise.
18062         (sparc_output_mi_thunk): Likewise.
18063         (sparc_legitimize_reload_address): New global function.  Recognize
18064         (lo_sum (high ...) ...) patterns generated by earlier passes.
18065         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
18066
18067 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18068
18069         PR target/44484
18070         * config/sparc/predicates.md (memory_reg_operand): Delete.
18071         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
18072         (*sync_compare_and_swap): Encode the address form in the pattern.
18073         (*sync_compare_and_swapdi_v8plus): Likewise.
18074
18075 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
18076
18077         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
18078         Streamline paragraph on compatibility with the system compiler.
18079
18080 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
18081
18082         PR middle-end/45035
18083         * alias.c (true_dependence_1): Fix thinko in merge of old
18084         true_dependence and canon_true_dependence.
18085
18086 2010-07-23  Jan Hubicka  <jh@suse.cz>
18087
18088         * lto-streamer-out.c (write_symbol): Fix visibilities of external
18089         references.
18090
18091 2010-07-23  Le-Chun Wu  <lcwu@google.com>
18092
18093         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
18094         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
18095         and an unnecessary assignment.
18096         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
18097         self-assign warning.
18098         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
18099         unnecessary self-init.
18100
18101 2010-07-23  Richard Guenther  <rguenther@suse.de>
18102
18103         PR lto/43071
18104         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
18105         for -flto and -fwhopr.
18106
18107 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
18108
18109         PR target/41943
18110         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
18111         (stmp-int-hdrs): Prefix/postfix headers by include_next.
18112         * config.gcc (user_headers_inc_next_pre): New.
18113         (user_headers_inc_next_post): Likewise.
18114         (*-w64-mingw*): Use for float.h post-fixing, and for
18115         stddef.h/stdarg.h pre-fixing by include_next.
18116         * configure.ac (user_headers_inc_next_post): New.
18117         (user_headers_inc_next_pre): New.
18118         * configure: Regenerated.
18119
18120 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18121
18122         * configure.ac: Don't disable TLS on Solaris 8/9 by default
18123         Set tga_func for Solaris 2/x86 resp. SPARC.
18124         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
18125         (LIB_THREAD_LDFLAGS_SPEC): Define.
18126         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
18127         * configure: Regenerate.
18128         * config.in: Regenerate.
18129         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
18130         -pthread, -threads, LIB_TLS_SPEC with -pthread.
18131         * doc/install.texi (Specific, *-*-solaris2*): Document use of
18132         alternate thread libraries on Solaris 8.
18133         Document TLS patch requirements.
18134         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
18135         Document tls.
18136
18137         PR target/18788
18138         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
18139         -shared.
18140
18141 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
18142
18143         * tree.h (struct tree_base): Add nameless_flag bitfield.
18144         (TYPE_NAMELESS, DECL_NAMELESS): Define.
18145         * omp-low.c (create_omp_child_function, scan_omp_parallel,
18146         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
18147         DECL_ARTIFICIAL where needed.
18148         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
18149         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
18150         has DECL_NAMELESS set.
18151
18152 2010-07-23  Martin Jambor  <mjambor@suse.cz>
18153
18154         PR tree-optimization/44915
18155         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
18156         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
18157         (analyze_function): Likewise.
18158
18159 2010-07-23  Martin Jambor  <mjambor@suse.cz>
18160
18161         PR tree-optimization/44914
18162         * tree-sra.c (sra_modify_function_body): Return true if CFG was
18163         changed, add purging dead eh edges.
18164         (ipa_sra_modify_function_body): Return true if CFG was changed,
18165         simplify purging dead eh edges.
18166         (modify_function): Return true if CFG was changed.
18167         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
18168         was changed.
18169         (ipa_early_sra): Likewise.
18170
18171 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18172
18173         PR target/44290
18174         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
18175         if "naked".
18176         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18177         false if ! tree_versionable_function_p.
18178
18179 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
18180
18181         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
18182         * ipa-pure-const.c (special_builtlin_state): Remove
18183         BUILT_IN_ARGS_INFO case.
18184         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
18185         * builtins.c (expand_builtin): Likewise.
18186         (expand_builtin_args_info): Remove.
18187         * doc/tm.texi (__builtin_args_info): Remove.
18188         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
18189         * doc/tm.text.in: Likewise.
18190
18191 2010-07-23  Richard Guenther  <rguenther@suse.de>
18192
18193         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
18194         (lto_symtab_merge_decls_2): Likewise.
18195         * tree-ssa.c (useless_type_conversion_p): Likewise.
18196         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18197         * gimple.c (gtc_visited2, gtc_ob2): Remove.
18198         (struct type_pair_d): Make same_p an array indexed by mode.
18199         Update comment.
18200         (lookup_type_pair): Update initialization.
18201         (struct sccs): Adjust same_p type.
18202         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
18203         Adjust.
18204         (print_gimple_types_stats): Likewise.
18205         * gimple.h (enum gtc_mode): New.
18206         (gimple_types_compatible_p): Adjust prototype.
18207
18208 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
18209
18210         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
18211         again after processing insn.
18212
18213 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18214
18215         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
18216         proper words when !tree_versionable_function_p.
18217
18218 2010-07-23  Richard Guenther  <rguenther@suse.de>
18219
18220         PR tree-optimization/45037
18221         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
18222
18223 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18224
18225         * doc/extend.texi: Remove IP2K from the description of naked attribute.
18226         Add MCORE instead.
18227
18228 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18229
18230         PR lto/44992
18231         * lto-opts.c (lto_write_options): Add NULL file_data argument to
18232         lto_get_section_name.
18233         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18234         * lto-streamer-out.c (produce_asm): Likewise.
18235         (copy_function): Likewise.
18236         (produce_symtab): Likewise.
18237         (produce_asm_for_decls): Likewise.
18238         * lto-streamer.c (lto_get_section_name): Add file_data argument.
18239         Rewrite to add random postfix to LTO sections.
18240         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
18241         (lto_get_section_name): Add file_data argument to prototype.
18242
18243 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18244
18245         * lto-section-in.c (lto_section_name): Synchronize names
18246         with lto_get_section_name.
18247
18248 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18249
18250         * lto-opts.c (lto_read_file_options): Check for missing section.
18251
18252 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18253
18254         * ira.c (check_allocation): Correctly handle the case where an allocno
18255         with two objects was allocated to a single reg.
18256
18257 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
18258
18259         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
18260         (is_widening_mult_p): Likewise.
18261         (convert_to_widen): Use them.
18262         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
18263         well as integer ones.
18264
18265 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
18266
18267         * alias.c (true_dependence_1): New function, merged version of
18268         true_dependence and canon_true_dependence.
18269         (true_dependence): Simplify.
18270         (canon_true_dependence): Simplify.
18271
18272 2010-07-22  Richard Henderson  <rth@redhat.com>
18273
18274         PR target/45027
18275         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
18276         of V4SFmode for the SSE saves; increase stack alignment if needed.
18277         (ix86_gimplify_va_arg): Don't increase stack alignment here.
18278
18279 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
18280
18281         PR bootstrap/45028
18282         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
18283         call cprop_find_used_regs again via note_uses.
18284
18285 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
18286
18287         * alias.c (get_alias_set): Fix formatting issues.
18288
18289 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
18290
18291         PR middle-end/44878
18292         * stmt.c (expand_value_return):  Call promote_function_mode with
18293         a for_return argument of 2 when returning by reference.
18294
18295 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
18296
18297         PR debug/45024
18298         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
18299         unit DIE if we can find the scope DIE.
18300
18301 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18302
18303         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
18304         changed.  Initialize OBJECT_SUBWORD.
18305         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
18306         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
18307         all callers changed.
18308         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
18309         (finish_allocno): Likewise.
18310         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
18311         (remove_low_level_allocnos): Likewise.
18312         (update_bad_spill_attribute): Likewise.
18313         (setup_min_max_allocno_live_range_point): Likewise.
18314         (sort_conflict_id_map): Likewise.
18315         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
18316         (ior_hard_reg_conflicts): New function.
18317         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
18318         (compress_conflict_vecs): Iterate over objects, not allocnos.
18319         (ira_add_live_range_to_object): New function.
18320         (object_range_compare_func): Renamed from allocno_range_compare_func.
18321         All callers changed.
18322         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
18323         subobjects, widen the min/max range of the lowest-order object to
18324         potentially include all other such low-order objects.
18325         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
18326         (check_allocation): Likewise.  Use more fine-grained tests for register
18327         conflicts.
18328         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
18329         allocno subobjects.
18330         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
18331         choices about which bits to set in each set.  Don't use
18332         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
18333         using the multiple sets we computed.
18334         (push_allocno_to_stack): Iterate over allocno subobjects.
18335         (all_conflicting_hard_regs_coalesced): New static function.
18336         (setup_allocno_available_regs_num): Use it.
18337         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
18338         subobjects.
18339         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
18340         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18341         by ALLOCNO_NUM_OBJECTS.
18342         (calculate_spill_cost): Likewise.
18343         (color_pass): Express if statement in a more normal way.
18344         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
18345         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
18346         (setup_slot_coalesced_allocno_live_ranges): Likewise.
18347         (allocno_reload_assign): Likewise.
18348         (ira_reassign_pseudos): Likewise.
18349         (fast_allocation): Likewise.
18350         * ira-conflicts.c (build_conflict_bit_table): Likewise.
18351         (print_allocno_conflicts): Likewise.
18352         (ira_build_conflicts): Likewise.
18353         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
18354         callers changed.  Test subword 0 of each allocno for conflicts.
18355         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
18356         callers changed.  Iterate over allocno subobjects.
18357         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
18358         * ira-int.h (struct ira_allocno): New member: num_objects.
18359         Rename object to objects and change it into an array.
18360         (ALLOCNO_OBJECT): Add new argument N.
18361         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
18362         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
18363         (ior_hard_reg_conflicts): Declare.
18364         (ira_add_live_range_to_object): Declare.
18365         (ira_allocno_object_iterator): New.
18366         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
18367         (FOR_EACH_ALLOCNO_OBJECT): New macro.
18368         * ira-lives.c (objects_live): Renamed from allocnos_live; all
18369         uses changed.
18370         (allocnos_processed): New sparseset.
18371         (make_object_born): Renamed from make_allocno_born; take an
18372         ira_object_t argument.  All callers changed.
18373         (make_object_dead): Renamed from make_allocno_dead; take an
18374         ira_object_t argument.  All callers changed.
18375         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
18376         All callers changed.
18377         (mark_pseudo_regno_live): Iterate over allocno subobjects.
18378         (mark_pseudo_regno_dead): Likewise.
18379         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
18380         functions.
18381         (mark_ref_live): Detect subword accesses and call
18382         mark_pseudo_regno_subword_live as appropriate.
18383         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
18384         (process_bb_nodes_live): Deal with object-related updates first; set
18385         and test bits in allocnos_processed to avoid computing allocno
18386         statistics more than once.
18387         (create_start_finish_chains): Iterate over objects, not allocnos.
18388         (print_object_live_ranges): New function.
18389         (print_allocno_live_ranges): Use it.
18390         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
18391         and objects_live.
18392
18393 2010-07-22  Richard Guenther  <rguenther@suse.de>
18394
18395         PR lto/42451
18396         * gimple.c (gtc_next_dfs_num): New global.
18397         (struct sccs): Make value a union, add integer same_p member.
18398         (gtc_visit): New function.
18399         (gimple_types_compatible_p_1): New function, split out from ...
18400         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
18401         (iterative_hash_gimple_type): Adjust for sccs change.
18402
18403 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18404
18405         PR tree-optimization/44891
18406         * tree-sra.c: Include gimple-pretty-print.h.
18407         (replace_uses_with_default_def_ssa_name): Renamed to
18408         get_repl_default_def_ssa_name, return the new SSA name instead of
18409         replacing the old one.
18410         (sra_modify_assign): Dump a message when removing a load, if the LHS
18411         is an SSA_NAME, do not do any propagation, just set the RHS to a
18412         default definition SSA NAME, type convert if necessary.
18413         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
18414
18415 2010-07-22  Richard Guenther  <rguenther@suse.de>
18416
18417         PR tree-optimization/45017
18418         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
18419         TYPE_PRECISION of integral types in addition to size.
18420
18421 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
18422
18423         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
18424         when no C library is specified.
18425
18426 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18427
18428         * ipa-prop.h (struct ipa_node_params): Updated comment.
18429         (struct ipa_edge_args): Likewise.
18430         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
18431
18432 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18433
18434         * cgraphunit.c (verify_edge_count_and_frequency): New function.
18435         (verify_cgraph_node): Verify frequencies of indirect edges.
18436         * tree-inline.c (tree_function_versioning): Update frequencies of
18437         indirect edges.
18438
18439 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18440
18441         PR target/43698
18442         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
18443         Set *arm_rev to be predicable.
18444
18445 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
18446
18447         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
18448         (LINK_COMMAND_SPEC_A): New.
18449         (DSYMUTIL): New.
18450         (DSYMUTIL_SPEC): New.
18451         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
18452         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
18453
18454 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
18455
18456         * calls.c (load_register_parameters): Move check for zero
18457         sized items so that only the call to
18458         mem_overlaps_already_clobbered_arg_p () is protected.
18459
18460 2010-07-22  Jan Hubicka  <jh@suse.cz>
18461
18462         * ipa-pure-const.c (varying_state): Break out from ...
18463         (get_function_state): ... here; always return varying_state
18464         when state would be NULL otherwise.
18465         (remove_node_data): Do not free varying state.
18466
18467 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18468
18469         PR bootstrap/44970
18470         PR middle-end/45009
18471         * postreload.c: Include "target.h".
18472         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
18473         into account.
18474         (fixup_debug_insns): Don't copy the rtx.
18475         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
18476         Don't copy when replacing.  Call fixup_debug_insns in the case where
18477         we merged one add with another.
18478         (reload_combine_recognize_pattern): Fail if there aren't any uses.
18479         Try harder to determine whether we're picking a valid index register.
18480         Don't set store_ruid for an insn we're going to scan in the
18481         next iteration.
18482         (reload_combine): Remove unused code.
18483         (reload_combine_note_use): When updating use information for
18484         an old insn, ignore a use that occurs after store_ruid.
18485         * Makefile.in (postreload.o): Update dependencies.
18486
18487         * function.c (record_hard_reg_sets): Restrict the previous change
18488         to cases where the incoming nominal mode is the same as the
18489         incoming promoted mode and everything happens in MODE_INT.
18490
18491 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
18492
18493         PR debug/45015
18494         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
18495         ASM_OPERANDS_OUTPUT_IDX.
18496         (adjust_insn): For inline asm with multiple sets ensure first
18497         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
18498         the insn.
18499
18500 2010-07-21  Richard Henderson  <rth@redhat.com>
18501
18502         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
18503         comparison for avoiding xmm register saves.  Emit the xmm register
18504         saves explicitly.
18505         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
18506         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
18507         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
18508         Remove patterns and the associated splitters.
18509
18510 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
18511
18512         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
18513         and imagine parts of a complex, so that they can have the same
18514         base and fall into the same group.
18515
18516 2010-07-21  Richard Guenther  <rguenther@suse.de>
18517
18518         PR lto/45018
18519         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
18520         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
18521         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
18522
18523 2010-07-21  Martin Jambor  <mjambor@suse.cz>
18524
18525         PR tree-optimization/44900
18526         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
18527         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
18528
18529 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
18530
18531         PR middle-end/44738
18532         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
18533
18534 2010-07-21  Richard Guenther  <rguenther@suse.de>
18535
18536         PR middle-end/45013
18537         * tree-ssa.c (useless_type_conversion_p): Dispatch to
18538         gimple_types_compatible_p only when in lto.
18539         * gimple.c (gimple_types_compatible_p): Use canonical types
18540         to speed up comparison.
18541
18542 2010-07-21  Richard Guenther  <rguenther@suse.de>
18543
18544         * tree-flow.h (referenced_var): Move define ...
18545         * tree-flow-inline.h (referenced_var): ... here as an inline
18546         function.  Assert here ...
18547         * tree-dfa.c (referenced_var_lookup): ... instead of here.
18548         * tree-ssa.c (maybe_optimize_var): Check if the variable
18549         is in referenced vars.
18550         (execute_update_addresses_taken): Remove old broken check.
18551         * gimple-pretty-print.c (pp_points_to_solution): Use
18552         referenced_var_lookup.
18553         * tree-into-ssa.c (dump_decl_set): Likewise.
18554
18555 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
18556
18557         PR debug/45003
18558         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
18559         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
18560         ZERO_EXTEND here.
18561
18562 2010-07-20  Richard Henderson  <rth@redhat.com>
18563
18564         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
18565
18566 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
18567
18568         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
18569         computing the sum of the stack pointer and a large constant.
18570         * config/arm/constraints.md (M): Remove superfluous parentheses.
18571         (Pc): New constraint.
18572
18573 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
18574
18575         PR debug/45006
18576         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
18577         operand's type if exp is tcc_unary class tree.
18578
18579 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
18580
18581         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
18582         Reverse sense of if_then_else condition.
18583
18584 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
18585
18586         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
18587         * config/rs6000/rs6000.c (rs6000_override_options): Set
18588         rs6000_block_move_inline_limit appropriately.
18589         (expand_block_move): Use rs6000_block_move_inline_limit.
18590         * doc/invoke.texi (mblock-move-inline-limit): Document.
18591
18592 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
18593
18594         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
18595         FROM and TO.  All callers changed.  Don't look for tracked uses,
18596         just scan the RTL for DEBUG_INSNs and substitute.
18597         (reload_combine_recognize_pattern): Call fixup_debug_insns.
18598         (reload_combine): Ignore DEBUG_INSNs.
18599
18600 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
18601
18602         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
18603         depth to 8 from 5.
18604
18605         PR debug/45003
18606         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
18607         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
18608         instead of the result's type.
18609
18610 2010-07-20  Richard Guenther  <rguenther@suse.de>
18611
18612         PR tree-optimization/44977
18613         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
18614         SSA form.
18615
18616 2010-07-20  Richard Guenther  <rguenther@suse.de>
18617
18618         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
18619         (lto_symtab_merge_decls_2): Likewise.
18620         * gimple.h (gimple_types_compatible_p): Declare.
18621         * gimple.c (gimple_queue_type_fixup): Remove.
18622         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
18623         (gimple_compatible_complete_and_incomplete_type_p): New function.
18624         (gimple_types_compatible_p): Adjust.
18625         (gimple_register_type): Remove type fixup code.
18626         (print_gimple_types_stats): Adjust.
18627         (free_gimple_type_tables): Likewise.
18628         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
18629         * tree-ssa.c (useless_type_conversion_p): Likewise.
18630
18631 2010-07-20  Richard Guenther  <rguenther@suse.de>
18632
18633         PR middle-end/44971
18634         PR middle-end/44988
18635         * tree-ssa.c (maybe_optimize_var): New function split out from ...
18636         (execute_update_addresses_taken): ... here.
18637         (non_rewritable_mem_ref_base): Likewise.
18638         (execute_update_addresses_taken): Do not iterate over all referenced
18639         vars but just all local decls and parms.
18640         Properly check call and asm arguments and rewrite call arguments.
18641
18642 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
18643
18644         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
18645         to top level.
18646         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
18647         definitions ...
18648         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
18649         New macro.
18650         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
18651
18652 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
18653
18654         * gengtype.c (start_root_entry): New function, split out from
18655         write_root.  Check whether V is null and raise an error if so.
18656         (write_field_root): Check for V being null.  Don't raise an error here;
18657         set V to null instead.
18658         (write_root): Update comment above function.  Use start_root_entry.
18659
18660 2010-07-19  Xinliang David Li  <davidxl@google.com>
18661
18662         PR testsuite/44932
18663         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
18664         def edges.
18665         (find_uninit_use): Add dump.
18666         (is_use_properly_guarded): Ditto.
18667         (warn_uninitialized_phi): Ditto.
18668         (execute_late_warn_uninitialized): Ditto.
18669
18670 2010-07-19  Richard Guenther  <rguenther@suse.de>
18671
18672         PR middle-end/44941
18673         * expr.c (emit_block_move_hints): Move zero size check first.
18674         Move asserts to more useful places.
18675         * calls.c (load_register_parameters): Check for zero size.
18676
18677 2010-07-19  Richard Henderson  <rth@redhat.com>
18678
18679         * tree-optimize.c (execute_all_early_local_passes): New.  Change
18680         cgraph_state here ...
18681         (execute_early_local_optimizations): ... not here.  Remove.
18682         (pass_early_local_passes, pass_all_early_optimizations): Update.
18683
18684 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
18685
18686         * postreload.c (reload_combine_closest_single_use): Ignore the
18687         number of uses for DEBUG_INSNs.
18688         (fixup_debug_insns): New static function.
18689         (reload_combine_recognize_const_pattern): Use it.  Don't let the
18690         main loop be affected by DEBUG_INSNs.
18691         Really disallow moving adds past a jump insn.
18692         (reload_combine_recognize_pattern): Don't update use_ruid here.
18693         (reload_combine_note_use): Do it here.
18694         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
18695
18696 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
18697
18698         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
18699         of a loop.
18700         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
18701
18702 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
18703
18704         * config/i386/darwin.h: Define darwin_emit_branch_islands.
18705         (TARGET_MACHO_BRANCH_ISLANDS): New.
18706         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
18707         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
18708         default value.
18709         * config/i386/i386.c (output_pic_addr_const): Do not emit
18710         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
18711         (x86_output_mi_thunk): Adjust symbol creation.
18712         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
18713         Remove out of date comment.
18714         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
18715         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18716         (DARWIN_GENERATE_ISLANDS): Ditto.
18717         (output_call):  Do not emit branch islands unless
18718         darwin_emit_branch_islands is set.
18719         * config/darwin.c: Declare darwin_emit_branch_islands.
18720         (machopic_indirect_data_reference): Do not emit unless
18721         darwin_emit_branch_islands is set.
18722         (darwin_override_options): Set darwin_emit_branch_islands
18723         where it is needed.
18724         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18725
18726 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18727
18728         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18729         sse_runtime, sse2_runtime.
18730
18731 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
18732
18733         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
18734         low half of a single-register SCmode return value before ORing
18735         it with the high half.
18736         * config/mips/mips16.S (MERGE_GPRf): Likewise.
18737
18738 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18739
18740         PR target/44805
18741         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
18742         on all targets.
18743
18744 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
18745
18746         PR target/42235
18747         * postreload.c (reload_cse_move2add): Return bool, true if anything.
18748         changed.  All callers changed.
18749         (move2add_use_add2_insn): Likewise.
18750         (move2add_use_add3_insn): Likewise.
18751         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
18752         reload_combine.
18753         (RELOAD_COMBINE_MAX_USES): Bump to 16.
18754         (last_jump_ruid): New static variable.
18755         (struct reg_use): New members CONTAINING_MEM and RUID.
18756         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
18757         (reload_combine_split_one_ruid, reload_combine_split_ruids,
18758         reload_combine_purge_insn_uses, reload_combine_closest_single_use
18759         reload_combine_purge_reg_uses_after_ruid,
18760         reload_combine_recognize_const_pattern): New static functions.
18761         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
18762         is true for our reg and that we have available index regs.
18763         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
18764         callers changed.  Use them to initialize fields in struct reg_use.
18765         (reload_combine): Initialize last_jump_ruid.  Be careful when to
18766         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
18767         Call reload_combine_recognize_const_pattern.
18768         (reload_combine_note_store): Update REAL_STORE_RUID field.
18769
18770 2010-07-16  Jason Merrill  <jason@redhat.com>
18771
18772         * Makefile.in (opts-common.o): Depend on options.h.
18773
18774 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18775
18776         * tree.c (build_common_builtin_nodes): Use build_function_type_list
18777         instead of build_function_type.
18778         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
18779         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
18780
18781 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18782
18783         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
18784         do all the work.
18785         (rs6000_emit_int_cmove): Use function pointers for insn generation.
18786         Don't force values into registers unnecessarily.
18787         (output_isel): Assert that we're not given conditions we can't handle.
18788         Delete corresponding code.
18789         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
18790         scc_comparison_operator constraint.  Permit 0 for the consequent
18791         operand.  Permit any GPR for the alternative operand.
18792         (isel_unsigned_<mode>): Likewise.
18793
18794 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
18795
18796         PR target/44942
18797         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
18798         argument to const_tree.
18799         * config/i386/i386.c (function_arg_advance): If padding needs to be
18800         inserted before argument, increment cum->words by number of padding
18801         words as well.
18802         (contains_aligned_value_p): Change argument to const_tree.
18803         (ix86_function_arg_boundary): Change second argument to const_tree.
18804
18805 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
18806
18807         PR target/42235
18808         * function.c (record_hard_reg_sets): New static function.
18809         (assign_parm_setup_reg): If an optab for extending exists and the
18810         generated code clobbbers no hard regs, emit the insn directly and
18811         create a REG_EQUIV note.
18812
18813 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18814
18815         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
18816         TREE_CHAIN.
18817         * c-typeck.c (push_init_level): Likewise.
18818         (process_init_element): Likewise.
18819
18820 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
18821
18822         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
18823         (integer_three_node): Add.
18824         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
18825         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
18826         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
18827         of call build_int_cst.
18828         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
18829         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
18830         (find_interesting_uses_address): Ditto.
18831         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
18832         * tree-eh.c (lower_eh_constructs_2): Ditto.
18833         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
18834         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
18835         * expmed.c (expand_divmod): Ditto.
18836         * tree-mudflap.c (mx_register_decls): Ditto.
18837         * varasm.c (array_size_for_constructor): Ditto.
18838         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
18839         * c-parser.c (c_parser_postfix_expression): Ditto.
18840
18841 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18842
18843         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
18844         New static variables.
18845         (reload_combine_recognize_pattern): New static function, broken out
18846         of reload_combine.
18847         (reload_combine): Use it.  Only initialize first_index_reg and
18848         last_index_reg once.
18849
18850 2010-07-15  Richard Henderson  <rth@redhat.com>
18851
18852         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
18853         when done.
18854
18855 2010-07-15  Jan Hubicka  <jh@suse.cz>
18856
18857         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
18858         comdats for broken gold.
18859         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
18860
18861 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18862
18863         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
18864
18865 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18866
18867         * tree.h (DECL_CHAIN): Define.
18868         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
18869         * c-decl.c: Likewise.
18870         * c-parser.c: Likewise.
18871         * c-typeck.c: Likewise.
18872         * cfgexpand.c: Likewise.
18873         * cgraph.c: Likewise.
18874         * cgraphunit.c: Likewise.
18875         * combine.c: Likewise.
18876         * config/alpha/alpha.c: Likewise.
18877         * config/arm/arm.c: Likewise.
18878         * config/frv/frv.c: Likewise.
18879         * config/i386/i386.c: Likewise.
18880         * config/i386/winnt-cxx.c: Likewise.
18881         * config/ia64/ia64.c: Likewise.
18882         * config/iq2000/iq2000.c: Likewise.
18883         * config/mep/mep.c: Likewise.
18884         * config/mips/mips.c: Likewise.
18885         * config/pa/som.h: Likewise.
18886         * config/rs6000/rs6000.c: Likewise.
18887         * config/s390/s390.c: Likewise.
18888         * config/sh/sh.c: Likewise.
18889         * config/sh/symbian-cxx.c: Likewise.
18890         * config/sparc/sparc.c: Likewise.
18891         * config/spu/spu.c: Likewise.
18892         * config/stormy16/stormy16.c: Likewise.
18893         * config/vxworks.c: Likewise.
18894         * config/xtensa/xtensa.c: Likewise.
18895         * coverage.c: Likewise.
18896         * dbxout.c: Likewise.
18897         * dwarf2out.c: Likewise.
18898         * emit-rtl.c: Likewise.
18899         * expr.c: Likewise.
18900         * function.c: Likewise.
18901         * gimple-low.c: Likewise.
18902         * gimple-pretty-print.c: Likewise.
18903         * gimplify.c: Likewise.
18904         * integrate.c: Likewise.
18905         * ipa-inline.c: Likewise.
18906         * ipa-prop.c: Likewise.
18907         * ipa-split.c: Likewise.
18908         * ipa-struct-reorg.c: Likewise.
18909         * ipa-type-escape.c: Likewise.
18910         * langhooks.c: Likewise.
18911         * lto-cgraph.c: Likewise.
18912         * omp-low.c: Likewise.
18913         * stor-layout.c: Likewise.
18914         * tree-cfg.c: Likewise.
18915         * tree-complex.c: Likewise.
18916         * tree-dfa.c: Likewise.
18917         * tree-dump.c: Likewise.
18918         * tree-inline.c: Likewise.
18919         * tree-mudflap.c: Likewise.
18920         * tree-nested.c: Likewise.
18921         * tree-object-size.c: Likewise.
18922         * tree-pretty-print.c: Likewise.
18923         * tree-sra.c: Likewise.
18924         * tree-ssa-live.c: Likewise.
18925         * tree-ssa-loop-niter.c: Likewise.
18926         * tree-ssa-math-opts.c: Likewise.
18927         * tree-ssa-reassoc.c: Likewise.
18928         * tree-ssa-sccvn.c: Likewise.
18929         * tree-ssa-structalias.c: Likewise.
18930         * tree-tailcall.c: Likewise.
18931         * tree-vrp.c: Likewise.
18932         * tree.c: Likewise.
18933         * var-tracking.c: Likewise.
18934         * varasm.c: Likewise.
18935
18936 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18937
18938         PR target/44877
18939         * config/spu/spu.c (spu_expand_builtin_1): Allow references
18940         (as well as pointers) as argument to mask_for_load builtins.
18941
18942 2010-07-15  Richard Guenther  <rguenther@suse.de>
18943
18944         PR tree-optimization/44946
18945         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
18946         with accessing only padding properly.
18947
18948 2010-07-15  Jan Hubicka  <jh@suse.cz>
18949
18950         * ipa.c (function_and_variable_visibility): Variables marked as used
18951         should not be localized.
18952
18953 2010-07-15  Jan Hubicka  <jh@suse.cz>
18954
18955         * cgraph.c: Include lto-streamer.h
18956         (change_decl_assembler_name): Work when assembler name hash is at place.
18957         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
18958         be sure to rename it to avoid name clash.
18959         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
18960         Localize hidden symbols only when locally defined.
18961
18962 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
18963
18964         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
18965
18966 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
18967             Kevin F. Quinn  <kevquinn@gentoo.org>
18968
18969         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
18970         * common.opt: Add -Wtrampolines.
18971         * doc/invoke.texi: Add -Wtrampolines.
18972
18973 2010-07-15  Jie Zhang  <jie@codesourcery.com>
18974
18975         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
18976         cortex_a8_issue_ls.
18977
18978 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
18979
18980         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
18981         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
18982
18983 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18984
18985         * config/spu/spu.c (reg_names): Remove prototype.
18986         (call_used_regs): Likewise.
18987
18988 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18989
18990         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
18991         "unused" with attribute "used".
18992         (__JCR_END__): Likewise.
18993         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
18994         "used" attribute.
18995         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
18996
18997 2010-07-14  Richard Guenther  <rguenther@suse.de>
18998
18999         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
19000         (maybe_fixup_decls): Likewise.
19001         (input_gimple_stmt): Do not fixup anything.
19002         * lto-streamer-out.c (output_gimple_stmt): Make sure all
19003         non-automatic variable uses are wrapped inside a MEM_REF.
19004
19005 2010-07-14  Richard Henderson  <rth@redhat.com>
19006
19007         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
19008         for functions.
19009         * varasm.c (assemble_variable): Remove early exit for functions;
19010         assert that we're given a variable.
19011
19012 2010-07-14  Jie Zhang  <jie@codesourcery.com>
19013
19014         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
19015         cortex_a8_default when neon_type is not none.
19016
19017 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19018
19019         * lower-subreg.c (subreg_context): New static bitmap.
19020         (decompose_multiword_subregs): Allocate and free it.
19021         (find_decomposable_subregs): Set a bit in it for a register that
19022         occurs in a subreg that changes mode but not size.
19023         (can_decompose_p): Test it instead of non_decomposable_context.
19024
19025 2010-07-14  Richard Guenther  <rguenther@suse.de>
19026
19027         PR tree-optimization/44824
19028         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
19029         is_gimple_mem_ref_addr.
19030         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
19031         non-decl_address_invariant_p addresses.
19032
19033 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19034
19035         * reload.c (find_reloads): Revert code to penalize small register
19036         classes that was brought in with the IRA merge.
19037
19038 2010-07-14  Richard Guenther  <rguenther@suse.de>
19039
19040         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
19041         as base of ARRAY_REFs.
19042
19043 2010-07-14  Richard Guenther  <rguenther@suse.de>
19044
19045         PR middle-end/44930
19046         * tree-pretty-print.c (do_niy): Do not print a newline.
19047
19048 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19049
19050         * ira-int.h (struct ira_object): New.
19051         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
19052         (struct ira_allocno): Remove members min, max,
19053         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
19054         conflict_allocnos_num and conflict_vec_p.  Add new member object.
19055         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
19056         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
19057         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
19058         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
19059         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
19060         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
19061         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
19062         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
19063         an ira_object_t rather than ira_allocno_t.  All uses changed.
19064         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19065         contains a vector of ira_object_t; all uses changed.
19066         (ira_objects_num): Declare variable.
19067         (ira_create_allocno_object): Declare function.
19068         (ira_conflict_vector_profitable_p): Adjust prototype.
19069         (ira_allocate_conflict_vec): Renamed from
19070         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
19071         (ira_allocate_object_conflicts): Renamed from
19072         ira_allocate_allocno_conflicts; first arg now ira_object_t.
19073         (struct ira_object_iterator): New.
19074         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
19075         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
19076         to conflict_vec_p.  All uses changed.
19077         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
19078         Changed to take into account that conflicts are now tracked for
19079         objects.
19080         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
19081         Args changed to accept ira_object_t.  All uses changed.
19082         (allocnos_conflict_p): New static function.
19083         (collected_conflict_objects): Renamed from collected_allocno_objects;
19084         now a vector of ira_object_t.  All uses changed.
19085         (build_conflict_bit_table): Changed to take into account that
19086         conflicts are now tracked for objects.
19087         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
19088         (print_allocno_conflicts, ira_build_conflicts): Likewise.
19089         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
19090         setup_allocno_left_conflicts_size, allocno_reload_assign,
19091         fast_allocation): Likewise.
19092         * ira-lives.c (make_hard_regno_born, make_allocno_born)
19093         process_single_reg_class_operands, process_bb_node_lives): Likewise.
19094         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
19095         Likewise.
19096         * ira-build.c (ira_objects_num): New variable.
19097         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19098         contains a vector of ira_object_t; all uses changed.
19099         (ira_object_id_map_vec): Corresponding change.
19100         (object_pool): New static variable.
19101         (initiate_allocnos): Initialize it.
19102         (finish_allocnos): Free it.
19103         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
19104         New functions.
19105         (ira_create_allocno): Don't set members that were removed.
19106         (ira_set_allocno_cover_class): Don't change conflict hard regs.
19107         (merge_hard_reg_conflicts): Changed to take into account that
19108         conflicts are now tracked for objects.
19109         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
19110         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
19111         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
19112         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
19113         setup_min_max_conflict_allocno_ids, ):  Likewise.
19114         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
19115         to ira_object_t; all callers changed.
19116         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
19117         to ira_object_t, all callers changed.
19118         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
19119         to ira_object_t, all callers changed.
19120         (conflict_check, curr_conflict_check_tick): Renamed from
19121         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
19122         changed.
19123         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
19124         arg changed to ira_object_t, all callers changed.
19125         (create_cap_allocno): Call ira_create_allocno_object.
19126         (finish_allocno): Free the corresponding object.
19127         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
19128         callers changed.  Adjusted for dealing with objects.
19129         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
19130         dealing with objects.
19131         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
19132
19133         * ira-int.h (struct live_range): Rename allocno member to object
19134         and change type to ira_object_t.
19135         (struct ira_object): New member live_ranges.
19136         (struct ira_allocno): Remove member live_ranges.
19137         (ALLOCNO_LIVE_RANGES): Remove.
19138         (OBJECT_LIVE_RANGES): New macro.
19139         (ira_create_live_range, ira_copy_live_range_list,
19140         ira_merge_live_range_list, ira_live_ranges_intersect_p,
19141         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
19142         * ira-build.c (ira_create_object): Initialize live ranges here.
19143         (ira_create_allocno): Not here.
19144         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
19145         changed to ira_object_t, all callers changed.
19146         (copy_live_range): Rename from copy_allocno_live_range, all callers
19147         changed.
19148         (ira_copy_live_range_list): Rename from
19149         ira_copy_allocno_live_range_list, all callers changed.
19150         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
19151         all callers changed.
19152         (ira_live_ranges_intersect_p): Rename from
19153         ira_allocno_live_ranges_intersect_p, all callers changed.
19154         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
19155         callers changed.
19156         (ira_finish_live_range_list): Rename from
19157         ira_finish_allocno_live_range_list, all callers changed.
19158         (change_object_in_range_list): Rename from change_allocno_in_range_list,
19159         last arg changed to ira_object_t, all callers changed.
19160         (finish_allocno): Changed to expect live ranges in the allocno's object.
19161         (move_allocno_live_ranges, copy_allocno_live_ranges,
19162         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
19163         ira_flattening, ira_build): Likewise.
19164         * ira-color.c (allocnos_have_intersected_live_ranges_p,
19165         slot_coalesced_allocno_live_ranges_intersect,
19166         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
19167         * ira-conflicts.c (build_conflict_bit_table): Likewise.
19168         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
19169         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
19170         make_allocno_dead, create_start_finish_chains,
19171         remove_some_program_points_and_update_live_ranges,
19172         ira_debug_live_range_list): Likewise.
19173
19174         * ira-int.h (ira_object_conflict_iterator): Rename from
19175         ira_allocno_conflict_iterator.
19176         (ira_object_conflict_iter_init): Rename from
19177         ira_allocno_conflict_iter_init, second arg changed to
19178         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
19179         FOR_EACH_ALLOCNO_CONFLICT.
19180         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
19181         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
19182         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
19183         * ira-conflicts.c (print_allocno_conflicts): Likewise.
19184
19185 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
19186
19187         PR other/44874
19188         * tree-dump.c (dump_options): Add enumerate_locals entry.
19189         Add TDF_NOID exclusion to all entry.
19190         * tree-dump.h (dump_enumerated_decls): Declare.
19191         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
19192         Don't display type uid.
19193         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
19194         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
19195         * tree-ssa-live.c: Include gimple.h.
19196         (numbered_tree_d): New struct.
19197         (numbered_tree): New typedef.
19198         (DEF_VEC_O (numbered_tree): New.
19199         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
19200         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
19201         (dump_enumerated_decls): Likewise.
19202         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
19203         debug info and flag_dump_final_insns, call dump_enumerated_decls.
19204         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
19205         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
19206
19207 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
19208
19209         * expmed.h (MAX_BITS_PER_WORD): Move to...
19210         * defaults.h (MAX_BITS_PER_WORD): ...here.
19211
19212 2010-07-13  DJ Delorie  <dj@redhat.com>
19213
19214         * config/h8300/h8300.c (h8300_init_once): Default to
19215         -fstrict_volatile_bitfields.
19216
19217         * config/sh/sh.c (sh_override_options): Default to
19218         -fstrict_volatile_bitfields.
19219
19220         * config/rx/rx.c (rx_option_override): New.
19221
19222         * config/m32c/m32c.c (m32c_override_options): Default to
19223         -fstrict_volatile_bitfields.
19224
19225 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
19226
19227         * tree.h (build_function_call_expr): Delete.
19228         (build_call_expr_loc_array): New function.
19229         (build_call_expr_loc_vec): New function.
19230         * tree-flow.h (struct omp_region): Change type of ws_args field
19231         to a VEC.
19232         * builtins.c (build_function_call_expr): Delete.
19233         (build_call_expr_loc_array): New function.
19234         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
19235         (build_call_expr): Likewise.
19236         (build_call_expr_loc_vec): New function.
19237         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
19238         build_function_call_expr.
19239         * expr.c (emutls_var_address): Likewise.
19240         * varasm.c (emutls_common_1): Likewise.
19241         * omp-low.c (expand_omp_atomic_mutex): Likewise.
19242         (expand_omp_taskreg): Adjust for new type of region->ws_args.
19243         (get_ws_args_for): Return a VEC instead of a tree.
19244         (expand_parallel_call): Call build_call_expr_loc_vec instead of
19245         build_function_call_expr.
19246         * stor-layout.c (self_referential_size): Likewise.
19247
19248 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19249
19250         PR testsuite/44701
19251         * recog.c (constrain_operands): Allow side-effects in memory
19252         operands if either < or > constraint is used, rather than if
19253         both < and > is used.
19254
19255 2010-07-13  Richard Guenther  <rguenther@suse.de>
19256
19257         PR middle-end/44911
19258         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
19259         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
19260         without name.
19261
19262 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
19263
19264         PR target/44761
19265         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
19266         to variable emited.
19267         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
19268         * config/sh/sh.md (symGOT_load): Likewise.
19269         (symDTPOFF2reg): Likewise.
19270         (symTPOFF2reg): Likewise.
19271
19272 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19273
19274         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
19275         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
19276
19277 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19278
19279         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
19280         explanation.
19281         Find ucontext_t * on Solaris 11.
19282         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
19283         Handle new Solaris 11 __sighndlr patterns.
19284
19285 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19286
19287         PR debug/44901
19288         * vec.h (VEC_block_remove): Fix comment.
19289         * tree-ssa-live.c (remove_unused_locals): Don't use
19290         VEC_unordered_remove on local_decls, instead replace a single
19291         vector element in each iteration if at least one element had
19292         to be removed and VEC_truncate at the end.
19293         * omp-low.c (expand_omp_taskreg): Likewise.
19294
19295 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19296
19297         * c-decl.c (finish_function): Fix typo in comment.
19298
19299 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
19300
19301         PR bootstrap/44921
19302         * postreload.c (move2add_use_add3_insn): Silence gcc warning
19303         on min_regno.
19304
19305 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
19306
19307         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
19308         (simplify_stmt_using_ranges): Use it.
19309
19310 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19311
19312         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
19313         member.  Do not mark as GTY(()).
19314         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
19315         (spu_builtin_decls): New static variable.
19316         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
19317         (spu_init_builtins): Likewise.
19318         (spu_builtin_mul_widen_even): Likewise.
19319         (spu_builtin_mul_widen_odd): Likewise.
19320         (spu_builtin_mask_for_load): Likewise.
19321         (spu_builtin_vec_perm): Likewise.
19322         * config/spu/spu-c.c: Include "target.h".
19323         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
19324         of using spu_builtins[].fndecl.
19325
19326 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19327
19328         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
19329         imply -minterlink-mips16.
19330
19331 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19332
19333         * config/mips/mips.h (mips16_globals): Declare.
19334         (SWITCHABLE_TARGET): Define.
19335         * config/mips/mips.c: Include target-globals.h.
19336         (mips16_globals): New variable.
19337         (mips_set_mips16_mode): Use save_target_globals and
19338         restore_target_globals instead of target_reinit.
19339
19340 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19341
19342         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
19343         to say that the function can be called more than once.
19344         * target-globals.c (save_target_globals): Call init_reg_sets.
19345
19346 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19347
19348         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
19349         * bb-reorder.h: New file.
19350         * bb-reorder.c (default_target_bb_reorder): New variable.
19351         (this_target_bb_reorder): New conditional variable.
19352         (uncond_jump_length): Redefine as a macro.
19353         * target-globals.h (this_target_bb_reorder): Declare.
19354         (target_globals): Add a bb_reorder field.
19355         (restore_target_globals): Copy the bb_reorder field to
19356         this_target_bb-reorder.
19357         * target-globals.c: Include bb-reorder.h.
19358         (default_target_globals): Initialize the bb_reorder field.
19359         (save_target_globals): Likewise.
19360
19361 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19362
19363         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
19364         * gcse.h: New file.
19365         * gcse.c: Include gcse.h.
19366         (default_target_gcse): New variable.
19367         (this_target_gcse): New conditional variable.
19368         (can_copy): Redefine as a macro.
19369         (can_copy_init_p): New macro.
19370         (can_copy_p): Remove can_copy_init_p.
19371         * target-globals.h (this_target_gcse): Declare.
19372         (target_globals): Add a gcse field.
19373         (restore_target_globals): Copy the gcse field to this_target_gcse.
19374         * target-globals.c: Include gcse.h.
19375         (default_target_globals): Initialize the gcse field.
19376         (save_target_globals): Likewise.
19377
19378 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19379
19380         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
19381         and x_ira_prohibited_mode_move_regs_initialized_p.
19382         (ira_prohibited_mode_move_regs): Redefine as a macro.
19383         * ira.c (ira_prohibited_mode_move_regs): Delete.
19384         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
19385
19386 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19387
19388         * reload.h (target_reload): Add x_cached_reg_save_code and
19389         x_cached_reg_restore_code.
19390         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
19391         Redefine as macros.
19392
19393 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19394
19395         * Makefile.in (target-globals.o): Depend on builtins.h.
19396         * builtins.h: New file.
19397         * builtins.c: Include builtins.h.
19398         (default_target_builtins): New variable.
19399         (this_target_builtins): New conditional variable.
19400         (apply_args_mode, apply_result_mode): Redefine as macros.
19401         * target-globals.h (this_target_builtins): Declare.
19402         (target_globals): Add a builtins field.
19403         (restore_target_globals): Copy the builtins field to
19404         this_target_builtins.
19405         * target-globals.c: Include builtins.h.
19406         (default_target_globals): Initialize the builtins field.
19407         (save_target_globals): Likewise.
19408
19409 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19410
19411         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
19412         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
19413         from expmed.c.
19414         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
19415         (alg_hash, alg_hash_used_p): New macros.
19416         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
19417         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
19418         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
19419
19420 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19421
19422         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
19423         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
19424         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
19425         (this_op_costs, costs_classes): Redefine as macros.
19426         (record_reg_classes): Don't take op_costs as a parameter.
19427         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
19428         (scan_one_insn): Update call to record_operand_costs.
19429
19430 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19431
19432         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
19433         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
19434         (target_ira_int): New structure.
19435         (default_target_ira_int): Declare.
19436         (this_target_ira_int): Declare as a variable or define as a macro.
19437         (ira_reg_mode_hard_regset, ira_register_move_cost)
19438         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
19439         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
19440         (prohibited_class_mode_regs, ira_important_classes_num)
19441         (ira_important_classes, ira_reg_class_intersect)
19442         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
19443         (ira_reg_class_union): Redefine as macros.
19444         * ira.h (target_ira): New structure.
19445         (default_target_ira): Declare.
19446         (this_target_ira): Declare as a variable or define as a macro.
19447         (ira_available_class_regs, ira_hard_regno_cover_class)
19448         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
19449         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
19450         (ira_class_hard_regs_num): Redefine as macros.
19451         * ira.c (default_target_ira, default_target_ira_int): New variables.
19452         (this_target_ira, this_target_ira_int): New conditional variables.
19453         (ira_reg_mode_hard_regset, ira_memory_move_cost)
19454         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
19455         (ira_class_subset_p): Delete.
19456         (no_unit_alloc_regs): Redefine as a macro.
19457         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
19458         (ira_class_hard_regs_num, ira_class_hard_reg_index)
19459         (ira_available_class_regs): Delete.
19460         (alloc_reg_class_subclasses): Redefine as a macro.
19461         (ira_reg_class_cover_size, ira_reg_class_cover)
19462         (ira_important_classes_num, ira_important_classes)
19463         (ira_important_class_nums, ira_class_translate): Delete.
19464         (cover_class_order): Document the variable's lifetime.
19465         (reorder_important_classes): Don't set ira_important_class_nums.
19466         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
19467         (ira_reg_class_super_classes, ira_reg_class_union)
19468         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
19469         Delete.
19470         (setup_reg_class_nregs): Don't set ira_max_regs.
19471         (prohibited_class_mode_regs): Delete.
19472         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
19473         (target_globals): Add ira and ira_int fields.
19474         (restore_target_globals): Copy the ira field to this_target_ira
19475         and the ira_int field to this_target_ira_int.
19476         * target-globals.c: Include ira-int.h.
19477         (default_target_globals): Initialize the ira and ira_int fields.
19478         (save_target_globals): Likewise.
19479
19480 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19481
19482         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
19483         * cfgloop.h (target_cfgloop): New structure.
19484         (default_target_cfgloop): Declare.
19485         (this_target_cfgloop): Declare as a variable or define as a macro.
19486         (target_avail_regs, target_clobbered_regs, target_res_regs)
19487         (target_reg_cost, target_spill_cost): Redefine as macros.
19488         * cfgloopanal.c (default_target_cfgloop): New variable.
19489         (this_target_cfgloop): New conditional variable.
19490         (target_avail_regs, target_clobbered_regs, target_res_regs)
19491         (target_reg_cost, target_spill_cost): Delete.
19492         * target-globals.h (this_target_cfgloop): Declare.
19493         (target_globals): Add a cfgloop field.
19494         (restore_target_globals): Copy the cfgloop field to
19495         this_target_cfgloop.
19496         * target-globals.c: Include cfgloop.h.
19497         (default_target_globals): Initialize the cfgloop field.
19498         (save_target_globals): Likewise.
19499
19500 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19501
19502         * regs.h (target_regs): Add x_direct_load, x_direct_store and
19503         x_float_extend_from_mem.
19504         (direct_load, direct_store, float_extend_from_mem): New macros.
19505         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
19506
19507 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19508
19509         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
19510         (target-globals.o): Depend on $(LIBFUNCS_H).
19511         * libfuncs.h: Include hashtab.h.
19512         (libfunc_entry): Moved from optabs.c.
19513         (target_libfuncs): New structure.
19514         (default_target_libfuncs): Declare.
19515         (this_target_libfuncs): Declare as a variable or define as a macro.
19516         (libfunc_table): Redefine as a macro.
19517         * optabs.c (default_target_libfuncs): New variable.
19518         (this_target_libfuncs): New conditional variable.
19519         (libfunc_table): Delete.
19520         (libfunc_entry): Moved to optabs.h.
19521         (libfunc_hash): Redefine as a macro.
19522         (hash_libfunc, eq_libfunc): Fix comments.
19523         (init_optabs): Use libfunc_hash to detect cases where the function
19524         has already been called.  Clear the hash table instead of
19525         recreating it.
19526         * target-globals.h (this_target_libfuncs): Declare.
19527         (target_globals): Add a libfuncs field.
19528         (restore_target_globals): Copy the libfuncs field to
19529         this_target_libfuncs.
19530         * target-globals.c: Include libfuncs.h.
19531         (default_target_globals): Initialize the libfuncs field.
19532         (save_target_globals): Likewise.
19533
19534 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19535
19536         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
19537         in all dependency lists.
19538
19539 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19540
19541         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
19542         * optabs.h (target_optabs): New structure.
19543         (default_target_optabs): Declare.
19544         (this_target_optabs): Declare as a variable or define as a macro.
19545         (optab_table, convert_optab_table, direct_optab_table): Redefine
19546         as macros.
19547         * optabs.c (default_target_optabs): New variable.
19548         (this_target_optabs): New conditional variable.
19549         (optab_table, convert_optab_table, direct_optab_table): Delete.
19550         * target-globals.h (this_target_optabs): Declare.
19551         (target_globals): Add a optabs field.
19552         (restore_target_globals): Copy the optabs field to
19553         this_target_optabs.
19554         * target-globals.c: Include expr.h and optabs.h.
19555         (default_target_globals): Initialize the optabs field.
19556         (save_target_globals): Likewise.
19557
19558 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19559
19560         * flags.h (target_flagstate): Add x_flag_excess_precision.
19561         (flag_excess_precision): Redefine as a macro.
19562         * toplev.c (flag_excess_precision): Delete.
19563
19564 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19565
19566         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
19567         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
19568         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
19569         (no_caller_save_reg_set): Redefine as a macro.
19570         * reload.h (target_reload): Add x_caller_save_initialized_p and
19571         x_regno_save_mode.
19572         (caller_save_initialized_p): Redefine as a macro.
19573         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
19574         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
19575         (regno_save_mode): Redefine as a macro.
19576
19577 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19578
19579         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
19580         * expmed.h: New file.
19581         * expmed.c (default_target_costs): New variable.
19582         (this_target_costs): New conditional variable.
19583         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
19584         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
19585         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
19586         * target-globals.h (this_target_expmed): Declare.
19587         (target_globals): Add a expmed field.
19588         (restore_target_globals): Copy the expmed field to
19589         this_target_expmed.
19590         * target-globals.c: Include expmed.h.
19591         (default_target_globals): Initialize the expmed field.
19592         (save_target_globals): Likewise.
19593
19594 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19595
19596         * Makefile.in (target-globals.o): Depend on reload.h.
19597         * reload.h (target_reload): New structure.
19598         (default_target_reload): Declare.
19599         (this_target_reload): Declare as a variable or define as a macro.
19600         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
19601         * reload1.c (default_target_reload): New variable
19602         (this_target_reload): New conditional variable.
19603         (indirect_symref_ok, double_reg_address_ok): Delete.
19604         (spill_indirect_levels): Redefine as a macro.
19605         * target-globals.h (this_target_reload): Declare.
19606         (target_globals): Add a reload field.
19607         (restore_target_globals): Copy the reload field to
19608         this_target_reload.
19609         * target-globals.c: Include hard-reg-set.h.
19610         (default_target_globals): Initialize the reload field.
19611         (save_target_globals): Likewise.
19612
19613 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19614
19615         * rtl.h (target_rtl): Add x_static_reg_base_value.
19616         * alias.c (static_reg_base_value): Redefine as a macro.
19617
19618 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19619
19620         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
19621         (GTFILES): Remove reginfo.c.
19622         * rtl.h (target_rtl): Add x_top_of_stack.
19623         (top_of_stack): New macro.
19624         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
19625         (top_of_stack): Delete.
19626
19627 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19628
19629         * regs.h (target_regs): Add x_hard_regs_of_mode,
19630         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
19631         x_may_move_out_cost and x_last_mode_for_init_move_cost.
19632         (have_regs_of_mode, contains_reg_of_mode, move_cost)
19633         (may_move_in_cost, may_move_out_cost): Redefine as macros.
19634         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
19635         (may_move_in_cost, may_move_out_cost): Delete.
19636         (last_mode_for_init_move_cost): Redefine as a macro.
19637
19638 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19639
19640         * hard-reg-set.h (target_hard_regs): New structure.
19641         (default_target_hard_regs): Declare.
19642         (this_target_hard_regs): Declare as a variable or define as a macro.
19643         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
19644         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
19645         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
19646         (reg_class_size, reg_class_subclasses, reg_class_subunion)
19647         (reg_class_superunion, reg_names): Redefine as macros.
19648         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
19649         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
19650         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
19651         (reg_class_contents, reg_class_size, reg_class_subclasses)
19652         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
19653         (default_target_hard_regs): New variable
19654         (this_target_hard_regs, initial_call_really_used_regs)
19655         (initial_reg_alloc_order): New conditional variables.
19656         (initial_reg_names): New variable.
19657         (init_reg_sets): Assert that initial_call_really_used_regs,
19658         initial_reg_alloc_order and initial_reg_names
19659         are all the same size as their variable counterparts.  Use them to
19660         initialize those counterparts.
19661         * target-globals.h (this_target_hard_regs): Declare.
19662         (target_globals): Add a hard_regs field.
19663         (restore_target_globals): Copy the hard_regs field to
19664         this_target_hard_regs.
19665         * target-globals.c: Include hard-reg-set.h.
19666         (default_target_globals): Initialize the hard_regs field.
19667         (save_target_globals): Likewise.
19668
19669 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19670
19671         * Makefile.in (target-globals.o): Depend on $(RTL_H).
19672         * rtl.h (target_rtl): New structure.
19673         (default_target_rtl): Declare.
19674         (this_target_rtl): Declare as a variable or define as a macro.
19675         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
19676         Redefine as macros.
19677         * emit-rtl.c (default_target_rtl): New variable.
19678         (this_target_rtl): New conditional variable.
19679         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
19680         (return_address_pointer_rtx): Delete.
19681         (initial_regno_reg_rtx): New macro.
19682         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
19683         (init_emit_regs): Likewise.
19684         * target-globals.h (this_target_rtl): Declare.
19685         (target_globals): Add a rtl field.
19686         (restore_target_globals): Copy the rtl field to this_target_rtl.
19687         * target-globals.c: Include rtl.h.
19688         (default_target_globals): Initialize the rtl field.
19689         (save_target_globals): Likewise.
19690
19691 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19692
19693         * Makefile.in (target-globals.o): Depend on $(REGS_H).
19694         * regs.h (target_reg_modes): New structure.
19695         (default_target_reg_modes): Declare.
19696         (this_target_reg_modes): Declare as a variable or define as a macro.
19697         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
19698         * reginfo.c (default_target_reg_modes): New variable.
19699         (this_target_reg_modes): New conditional variable.
19700         (hard_regno_nregs, reg_raw_mode): Delete.
19701         * target-globals.h (this_target_regs): Declare.
19702         (target_globals): Add a regs field.
19703         (restore_target_globals): Copy the regs field to this_target_regs.
19704         * target-globals.c: Include regs.h.
19705         (default_target_globals): Initialize the regs field.
19706         (save_target_globals): Likewise.
19707
19708 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19709
19710         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
19711         * doc/tm.texi: Regenerate.
19712         * Makefile.in (OBJS-common): Add target-globals.o.
19713         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
19714         and target-globals.h.
19715         (target-globals.o): New rule.
19716         (GTFILES): Include $(srcdir)/target-globals.h.
19717         * defaults.h (SWITCHABLE_TARGET): Define.
19718         * gengtype.c (open_base_files): Add target-globals.h to the
19719         list of includes.
19720         * target-globals.h: New file.
19721         * target-globals.c: Likewise.
19722
19723         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
19724         * flags.h (target_flag_state): New structure.
19725         (default_target_flag_state): Declare.
19726         (this_target_flag_state): Declare as a variable or define as a macro.
19727         (align_loops_log): Redefine as a macro.
19728         (align_loops_max_skip, align_jumps_log): Likewise.
19729         (align_jumps_max_skip, align_labels_log): Likewise.
19730         (align_labels_max_skip, align_functions_log): Likewise.
19731         * toplev.c (default_target_flag_state): New variable.
19732         (this_target_flag_state): New conditional variable.
19733         (align_loops_log): Delete.
19734         (align_loops_max_skip, align_jumps_log): Likewise.
19735         (align_jumps_max_skip, align_labels_log): Likewise.
19736         (align_labels_max_skip, align_functions_log): Likewise.
19737         * target-globals.h (this_target_flag_state): Declare.
19738         (target_globals): Add a flag_state field.
19739         (restore_target_globals): Copy the flag_state field to
19740         this_target_flag_state.
19741         * target-globals.c: Include flags.h.
19742         (default_target_globals): Initialize the flag_state field.
19743         (save_target_globals): Likewise.
19744
19745 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19746
19747         * postreload.c (reg_symbol_ref[]): New.
19748         (move2add_use_add2_insn): New.
19749         (move2add_use_add3_insn): New.
19750         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
19751         (move2add_note_store): Likewise.
19752
19753 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
19754
19755         PR rtl-optimization/44752
19756         * genautomata.c (main): Don't emit an empty file even if there
19757         is no automaton.
19758
19759 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19760
19761         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
19762         ix86_solaris_return_in_memory.
19763         * config/i386-protos.h: Reflect this.
19764         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19765         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19766         Move ...
19767         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
19768
19769 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19770
19771         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
19772         align the stack when it's going to be saved.
19773
19774 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19775
19776         PR pch/14940
19777         * config/host-solaris.c (mmap_fixed): New function.
19778         (sol_gt_pch_get_address): Use it.
19779         (sol_gt_pch_use_address): Likewise.
19780
19781 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19782
19783         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19784         pentiumpro on Solaris 8 and 9/x86.
19785         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
19786         Document SSE/SSE2 support.
19787         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
19788
19789 2010-07-12  Andi Kleen  <ak@linux.intel.com>
19790
19791         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
19792         instead of gcc_assert to print better error message for multiple
19793         prevailing defs.
19794
19795 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
19796
19797         * config/i386/i386.c (ix86_asm_output_function_label): Change format
19798         string placeholder from 0x%x to %#x.
19799         (ix86_code_end): Use putc to output '\n'.
19800         (ix86_print_operand) <case ';'>: Use putc to output ';'.
19801
19802 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
19803
19804         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
19805         in directive -export.
19806
19807 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
19808
19809         * reginfo.h (reg_classes_intersect_p): Change arguments type to
19810         reg_class_t.
19811         * rtl.h (reg_classes_intersect_p): Adjust prototype.
19812
19813         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19814         Remove macros.
19815         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
19816         rs6000_memory_move_cost): Remove
19817         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
19818         TARGET_MEMORY_MOVE_COST): Define.
19819         (rs6000_register_move_cost): Make static. Change arguments type from
19820         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
19821         (rs6000_memory_move_cost): Make static. Change arguments type from
19822         'enum reg_class' to reg_class_t.
19823
19824 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
19825
19826         PR middle-end/42505
19827         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
19828         lookup code into....
19829         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
19830         new functions.
19831         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
19832         * cfgloopanal.c (target_clobbered_regs): Define.
19833         (init_set_costs): Initialize target_clobbered_regs.
19834         (estimate_reg_pressure_cost): Add call_p argument.  When true,
19835         adjust the number of available registers to exclude the
19836         call-clobbered registers.
19837         * cfgloop.h (target_clobbered_regs): Declare.
19838         (estimate_reg_pressure_cost): Adjust declaration.
19839         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
19840         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
19841         (determine_set_costs): Dump target_clobbered_regs.
19842         (loop_body_includes_call): New function.
19843         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
19844         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
19845         call_p flag through.
19846         (best_gain_for_invariant): Likewise.
19847         (find_invariants_to_move): Likewise.
19848         (move_single_loop_invariants): Likewise, using already-computed
19849         has_call field.
19850
19851 2010-07-10  Richard Guenther  <rguenther@suse.de>
19852             Joern Rennecke  <joern.rennecke@embecosm.com>
19853
19854         PR debug/44832
19855         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
19856         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
19857         unless they have DECL_IGNORED_P set.
19858
19859 2010-07-10  Richard Guenther  <rguenther@suse.de>
19860
19861         PR lto/44889
19862         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
19863         helper function.
19864         (gimple_types_compatible_p): Similar to pointed-to
19865         types allow and merge a mix of complete and incomplete aggregate.
19866         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
19867         (iterative_hash_gimple_type): Adjust for that.
19868
19869 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
19870
19871         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
19872
19873 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
19874
19875         PR objc/44140
19876         * config/darwin.c (output_objc_section_asm_op): Save and restore
19877         section when outputting ObjC section list.
19878
19879 2010-07-09  Jan Hubicka  <jh@suse.cz>
19880
19881         * lto-streamer-out.c (produce_symtab): Do not write alias
19882         cgraph/varpool nodes.
19883
19884 2010-07-09  Jan Hubicka  <jh@suse.cz>
19885
19886         * tree-inline.c (declare_return_variable): Fix ICE while
19887         inlining DECL_BY_VALUE function not in SSA form
19888
19889 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
19890
19891         PR tree-optimization/44576
19892         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
19893         New.  Pull out from is_loop_prefetching_profitable to implement
19894         the trip count to ahead ratio heuristic.
19895         (mem_ref_count_reasonable_p): New.  Pull out from
19896         is_loop_prefetching_profitable to implement the instruction to
19897         memory reference ratio heuristic.  Also consider not reasonable if
19898         the memory reference count is above a threshold (to avoid
19899         explosive compilation time.
19900         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
19901         is_loop_prefetching_profitable to implement the instruction to
19902         prefetch ratio heuristic.
19903         (is_loop_prefetching_profitable): Removed.
19904         (loop_prefetch_arrays): Distribute the cost analysis across the
19905         function to allow early exit of the prefetch analysis.
19906         is_loop_prefetching_profitable is splitted into three functions,
19907         with each one called as early as possible.
19908         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
19909         number of memory references in a loop is considered too many.
19910
19911 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19912
19913         * reload.c (find_reloads): Don't clear badop if we have a winreg
19914         alternative, but not win, and the class only has fixed regs.
19915         * hard-reg-set.h (class_only_fixed_regs): Declare.
19916         * reginfo.c (class_only_fixed_regs): New array.
19917         (init_reg_sets_1): Initialize it.
19918         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
19919         discourage alternatives using the stack pointer.
19920
19921         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
19922
19923         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
19924
19925         * config/arm/arm.md (cbranchqi4): Fix array size.
19926         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
19927         calculating length.
19928
19929 2010-07-09  Richard Guenther  <rguenther@suse.de>
19930
19931         * gimple.c (struct type_fixup_s): New struct and VEC type.
19932         (gimple_register_type_fixups): New static global.
19933         (gimple_queue_type_fixup): New function.
19934         (gimple_types_compatible_p): Queue type fixups instead of
19935         applying them here.
19936         (gimple_register_type): Apply queued fixups for the
19937         canonical type.  Empty the type fixup queue.
19938
19939 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19940
19941         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
19942         * configure: Regenerate.
19943         * config.in: Ditto.
19944
19945 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19946             Denys Vlasenko  <dvlasenk@redhat.com>
19947             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19948
19949         PR tree-optimization/28632
19950         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
19951         (extract_range_from_binary_expr): Further optimize
19952         BIT_AND_EXPR and BIT_IOR_EXPR.
19953
19954 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
19955
19956         * tree-if-conv.c (fold_or_predicates): New.
19957         (add_to_predicate_list): Call it.
19958
19959 2010-07-09  Richard Guenther  <rguenther@suse.de>
19960
19961         PR middle-end/44890
19962         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
19963         if base is a pointer.
19964         * tree-cfg.c (verify_expr): Update MEM_REF checking.
19965
19966 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19967
19968         PR target/44877
19969         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
19970         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
19971         builtin mask for load/store builtins.
19972
19973 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19974
19975         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
19976         for "lock addl".
19977         * configure: Regenerate.
19978         * config/i386/i386.c (ix86_print_operand) <case ';'>:
19979         Remove TARGET_MACHO.
19980
19981 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
19982
19983         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
19984         default ISA flags.
19985         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
19986
19987 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
19988
19989         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
19990
19991 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19992
19993         * config/picochip/picochip.md (commsTestPort): Emit more
19994         efficient sequence for tstport instruction.
19995
19996 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19997
19998         * config/i386/i386.c (ix86_veclib_handler): Make static.
19999
20000 2010-07-09  Richard Guenther  <rguenther@suse.de>
20001
20002         PR tree-optimization/44852
20003         * tree-ssa-alias.c: Include toplev.h for exact_log2.
20004         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
20005         in MEM_REF.
20006         (indirect_refs_may_alias_p): Likewise.
20007         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
20008
20009 2010-07-09  Richard Guenther  <rguenther@suse.de>
20010
20011         PR tree-optimization/44882
20012         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
20013         sets do conflict.
20014         (vectorizable_load): Likewise.
20015
20016 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
20017
20018         PR target/40657
20019         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
20020         All callers changed.
20021         Handle the case when we're called for the epilogue.
20022         (thumb_unexpanded_epilogue): Use it.
20023         (thumb1_expand_epilogue): Likewise.
20024
20025 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
20026
20027         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
20028         both ranges are range_int_cst_p with non-negative minimum,
20029         try harder to derive smaller range.
20030
20031 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20032
20033         * genrecog.c: Include diagnostic-core.h before toplev.h.
20034         * genoutput.c: Likewise.
20035         * genextract.c: Likewise.
20036         * genautomata.c: Likewise.
20037         * genemit.c: Likewise.
20038         * genpeep.c: Likewise.
20039         * genattrtab.c: Likewise.
20040         * genconditions.c: Likewise.
20041         * genpreds.c: Likewise.
20042
20043 2010-07-08  Andi Kleen  <ak@linux.intel.com>
20044
20045         * lto-section-in.c (lto_section_name): Add missing comma.
20046
20047 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
20048
20049         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
20050         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
20051         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
20052         (ia64_override_options): Rename to...
20053         (ia64_option_override): ... this one. Make static.
20054
20055 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20056
20057         PR middle-end/44843
20058         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
20059         pointed-to type of the offset in a MEM_REF to compute the alignment.
20060
20061 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
20062
20063         * final.c (final_scan_insn): Replace
20064         TARGET_UNWIND_INFO macro check by unwind_emit
20065         hook NULL check.
20066         * targhooks.c (default_unwind_emit): Removed.
20067         * targhooks.h (default_unwind_emit): Likewise.
20068         * target.def (unwind_emit): Set default value to NULL.
20069
20070         * config/i386/i386-protos.h (ix86_asm_output_function_label):
20071         New prototype.
20072         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
20073         for NULL fntype argument and allow 64-bit targets.
20074         (ix86_asm_output_function_label): New function.
20075         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
20076         (ix86_handle_fndecl_attribute): Likewise.
20077         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
20078         * doc/doc/tm.texi: Regenerated.
20079         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
20080         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
20081         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
20082         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
20083         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20084         * config/elfos.h: Likewise.
20085         * config/i386/cygming.h: Likewise.
20086         * config/netbsd-aout.h: Likewise.
20087         * config/openbsd.h: Likewise.
20088         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
20089         by ix86_asm_output_function_label function call.
20090         * varasm.c (assemble_start_function): Use
20091         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20092
20093 2010-07-08  Jan Hubicka  <jh@suse.cz>
20094
20095         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
20096         New function.
20097         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
20098         Declare.
20099         * ipa-cp.c (ipcp_estimate_growth): Use it.
20100         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
20101         Likewise.
20102
20103 2010-07-08  Jan Hubicka  <jh@suse.cz>
20104
20105         * tree-inline.c (declare_return_variable): Allocate annotation for new
20106         temporary.
20107
20108 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
20109
20110         PR tree-optimization/44710
20111         * tree-if-conv.c (parse_predicate): New.
20112         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
20113         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
20114
20115 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
20116
20117         * common.opt (ftree-loop-if-convert): New flag.
20118         * doc/invoke.texi (ftree-loop-if-convert): Documented.
20119         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
20120         when flag_tree_loop_if_convert is set.
20121
20122 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
20123
20124         * config/i386/i386.c: Use short syntax for function calls
20125         through function pointers.
20126         * config/i386/i386.md: Ditto.
20127
20128 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20129
20130         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
20131
20132 2010-07-08  Richard Guenther  <rguenther@suse.de>
20133
20134         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
20135         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
20136
20137 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
20138
20139         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
20140         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
20141         (loc_list_from_tree): Likewise.
20142         (output_loc_operands): Handle outputting DW_OP_const[48]u
20143         with loc->dtprel set.
20144         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
20145
20146 2010-07-08  Jan Hubicka  <jh@suse.cz>
20147
20148         * ipa.c: Include pointer-set.h
20149         (cgraph_externally_visible_p): New attribute ALIASED;
20150         when in LTO, hidden symbols are local unless they are aliased.
20151         (function_and_variable_visibility): Compute aliased nodes;
20152         handle LTO and hidden symbol on functions and vars.
20153         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
20154         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
20155
20156 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20157
20158         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20159         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20160         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20161         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20162         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20163         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
20164         (ix86_gen_probe_stack_range): Likewise.
20165         (override_options): Set them.
20166         (ix86_target_stack_probe): New function.
20167         (ix86_compute_frame_layout): Force use of push instructions to
20168         save registers if stack checking with probes is enabled.
20169         (get_scratch_register_on_entry): New function.
20170         (release_scratch_register_on_entry): Likewise.
20171         (ix86_adjust_stack_and_probe): Likewise.
20172         (output_adjust_stack_and_probe): Likewise.
20173         (ix86_emit_probe_stack_range): Likewise.
20174         (output_probe_stack_range): Likewise.
20175         (ix86_expand_prologue): Emit stack checking code if static built-in
20176         stack checking is enabled.
20177         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
20178         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
20179         (output_adjust_stack_and_probe): Likewise.
20180         (output_probe_stack_range): Likewise.
20181         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20182         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
20183         TARGET_STACK_PROBE.
20184         (allocate_stack_worker_64): Likewise.
20185         (allocate_stack): Likewise.
20186         (adjust_stack_and_probe): New insn.
20187         (probe_stack_range): Likewise.
20188
20189 2010-07-08  Richard Guenther  <rguenther@suse.de>
20190
20191         PR tree-optimization/44831
20192         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
20193         a MEM_REF preserving TBAA info of the original dereference.
20194         Dereference the original pointer if the address is not invariant.
20195         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
20196         at least one invariant address that we are going to dereference.
20197
20198 2010-07-08  Richard Guenther  <rguenther@suse.de>
20199
20200         PR tree-optimization/44861
20201         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
20202         information when building MEM_REFs.
20203         (vectorizable_load): Likewise.
20204         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
20205
20206 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20207
20208         * config/sol2-c.c: Do not include diagnostic-core.h.
20209
20210 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20211
20212         PR bootstrap/44768
20213         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
20214         with respect to current_function_decl. Pass decl of the function.
20215         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
20216         * ipa-inline.c (compute_inline_parameters): Pass decl to
20217         estimated_stack_frame_size.
20218
20219 2010-07-08  Richard Guenther  <rguenther@suse.de>
20220
20221         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20222         New function.
20223         (valueize_refs): Call it.
20224
20225 2010-07-08  Richard Guenther  <rguenther@suse.de>
20226
20227         PR rtl-optimization/44838
20228         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
20229         SSA form do not use pointer equivalence.
20230
20231 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20232
20233         * dwarf2out.c (AT_linkage_name): Delete.
20234         (add_linkage_attr): New function.
20235         (add_linkage_name): Call it to emit the linkage attribute.
20236         (dwarf2out_finish): Likewise.
20237         (move_linkage_attr): Explicitly accept both attribute variants.
20238
20239 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20240
20241         * toplev.h: Do not include diagnostic-core.h.
20242         Include diagnostic-core.h in every file that includes toplev.h.
20243         * c-tree.h: Do not include toplev.h.
20244         * pretty-print.h: Update comment.
20245         * Makefile.in: Update dependencies.
20246         * alias.c: Include diagnostic-core.h in every file that includes
20247         toplev.h.
20248         * attribs.c: Likewise.
20249         * auto-inc-dec.c: Likewise.
20250         * bb-reorder.c: Likewise.
20251         * bt-load.c: Likewise.
20252         * caller-save.c: Likewise.
20253         * calls.c: Likewise.
20254         * cfg.c: Likewise.
20255         * cfganal.c: Likewise.
20256         * cfgbuild.c: Likewise.
20257         * cfgcleanup.c: Likewise.
20258         * cfghooks.c: Likewise.
20259         * cfgloop.c: Likewise.
20260         * combine.c: Likewise.
20261         * config/alpha/alpha.c: Likewise.
20262         * config/arc/arc.c: Likewise.
20263         * config/arm/arm.c: Likewise.
20264         * config/arm/pe.c: Likewise.
20265         * config/avr/avr.c: Likewise.
20266         * config/bfin/bfin.c: Likewise.
20267         * config/cris/cris.c: Likewise.
20268         * config/crx/crx.c: Likewise.
20269         * config/darwin-c.c: Likewise.
20270         * config/darwin.c: Likewise.
20271         * config/fr30/fr30.c: Likewise.
20272         * config/frv/frv.c: Likewise.
20273         * config/h8300/h8300.c: Likewise.
20274         * config/host-darwin.c: Likewise.
20275         * config/i386/i386.c: Likewise.
20276         * config/i386/netware.c: Likewise.
20277         * config/i386/nwld.c: Likewise.
20278         * config/i386/winnt-cxx.c: Likewise.
20279         * config/i386/winnt-stubs.c: Likewise.
20280         * config/i386/winnt.c: Likewise.
20281         * config/ia64/ia64-c.c: Likewise.
20282         * config/ia64/ia64.c: Likewise.
20283         * config/iq2000/iq2000.c: Likewise.
20284         * config/lm32/lm32.c: Likewise.
20285         * config/m32c/m32c-pragma.c: Likewise.
20286         * config/m32c/m32c.c: Likewise.
20287         * config/m32r/m32r.c: Likewise.
20288         * config/m68hc11/m68hc11.c: Likewise.
20289         * config/m68k/m68k.c: Likewise.
20290         * config/mcore/mcore.c: Likewise.
20291         * config/mep/mep-pragma.c: Likewise.
20292         * config/mep/mep.c: Likewise.
20293         * config/mmix/mmix.c: Likewise.
20294         * config/mn10300/mn10300.c: Likewise.
20295         * config/moxie/moxie.c: Likewise.
20296         * config/pa/pa.c: Likewise.
20297         * config/pdp11/pdp11.c: Likewise.
20298         * config/picochip/picochip.c: Likewise.
20299         * config/rs6000/rs6000-c.c: Likewise.
20300         * config/rs6000/rs6000.c: Likewise.
20301         * config/rx/rx.c: Likewise.
20302         * config/s390/s390.c: Likewise.
20303         * config/score/score.c: Likewise.
20304         * config/score/score3.c: Likewise.
20305         * config/score/score7.c: Likewise.
20306         * config/sh/sh.c: Likewise.
20307         * config/sh/symbian-base.c: Likewise.
20308         * config/sh/symbian-c.c: Likewise.
20309         * config/sh/symbian-cxx.c: Likewise.
20310         * config/sol2-c.c: Likewise.
20311         * config/sol2.c: Likewise.
20312         * config/sparc/sparc.c: Likewise.
20313         * config/spu/spu.c: Likewise.
20314         * config/stormy16/stormy16.c: Likewise.
20315         * config/v850/v850-c.c: Likewise.
20316         * config/v850/v850.c: Likewise.
20317         * config/vax/vax.c: Likewise.
20318         * config/vxworks.c: Likewise.
20319         * config/xtensa/xtensa.c: Likewise.
20320         * convert.c: Likewise.
20321         * cse.c: Likewise.
20322         * cselib.c: Likewise.
20323         * dbgcnt.c: Likewise.
20324         * dbxout.c: Likewise.
20325         * ddg.c: Likewise.
20326         * dominance.c: Likewise.
20327         * emit-rtl.c: Likewise.
20328         * explow.c: Likewise.
20329         * expmed.c: Likewise.
20330         * fixed-value.c: Likewise.
20331         * fold-const.c: Likewise.
20332         * fwprop.c: Likewise.
20333         * gcse.c: Likewise.
20334         * ggc-common.c: Likewise.
20335         * ggc-page.c: Likewise.
20336         * ggc-zone.c: Likewise.
20337         * gimple-low.c: Likewise.
20338         * gimplify.c: Likewise.
20339         * graph.c: Likewise.
20340         * haifa-sched.c: Likewise.
20341         * ifcvt.c: Likewise.
20342         * implicit-zee.c: Likewise.
20343         * integrate.c: Likewise.
20344         * ira-build.c: Likewise.
20345         * ira-color.c: Likewise.
20346         * ira-conflicts.c: Likewise.
20347         * ira-costs.c: Likewise.
20348         * ira-lives.c: Likewise.
20349         * ira.c: Likewise.
20350         * lists.c: Likewise.
20351         * loop-doloop.c: Likewise.
20352         * loop-iv.c: Likewise.
20353         * lto-opts.c: Likewise.
20354         * lto-symtab.c: Likewise.
20355         * main.c: Likewise.
20356         * modulo-sched.c: Likewise.
20357         * optabs.c: Likewise.
20358         * params.c: Likewise.
20359         * plugin.c: Likewise.
20360         * postreload-gcse.c: Likewise.
20361         * postreload.c: Likewise.
20362         * predict.c: Likewise.
20363         * profile.c: Likewise.
20364         * real.c: Likewise.
20365         * regcprop.c: Likewise.
20366         * reginfo.c: Likewise.
20367         * regmove.c: Likewise.
20368         * reorg.c: Likewise.
20369         * resource.c: Likewise.
20370         * rtl.c: Likewise.
20371         * rtlanal.c: Likewise.
20372         * sched-deps.c: Likewise.
20373         * sched-ebb.c: Likewise.
20374         * sched-rgn.c: Likewise.
20375         * sdbout.c: Likewise.
20376         * sel-sched-dump.c: Likewise.
20377         * sel-sched-ir.c: Likewise.
20378         * simplify-rtx.c: Likewise.
20379         * stmt.c: Likewise.
20380         * stor-layout.c: Likewise.
20381         * store-motion.c: Likewise.
20382         * targhooks.c: Likewise.
20383         * tree-cfg.c: Likewise.
20384         * tree-cfgcleanup.c: Likewise.
20385         * tree-dump.c: Likewise.
20386         * tree-eh.c: Likewise.
20387         * tree-inline.c: Likewise.
20388         * tree-nomudflap.c: Likewise.
20389         * tree-object-size.c: Likewise.
20390         * tree-optimize.c: Likewise.
20391         * tree-outof-ssa.c: Likewise.
20392         * tree-phinodes.c: Likewise.
20393         * tree-profile.c: Likewise.
20394         * tree-ssa-ccp.c: Likewise.
20395         * tree-ssa-coalesce.c: Likewise.
20396         * tree-ssa-live.c: Likewise.
20397         * tree-ssa-loop-niter.c: Likewise.
20398         * tree-ssa-loop-prefetch.c: Likewise.
20399         * tree-ssa-loop.c: Likewise.
20400         * tree-ssa-structalias.c: Likewise.
20401         * tree-ssa-uninit.c: Likewise.
20402         * tree-ssa.c: Likewise.
20403         * tree-vect-data-refs.c: Likewise.
20404         * tree-vect-loop-manip.c: Likewise.
20405         * tree-vect-loop.c: Likewise.
20406         * tree-vect-patterns.c: Likewise.
20407         * tree-vect-stmts.c: Likewise.
20408         * tree-vrp.c: Likewise.
20409         * varasm.c: Likewise.
20410         * vec.c: Likewise.
20411         * web.c: Likewise.
20412         * xcoffout.c: Likewise.
20413
20414 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
20415
20416         * gengtype.c (write_field_root): New function.
20417         (write_root): Use it.
20418
20419 2010-07-07  Wei Guozhi  <carrot@google.com>
20420
20421         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20422         of lowest bits to lshift/compare): Add a missing line.
20423
20424 2010-07-07  Wei Guozhi  <carrot@google.com>
20425
20426         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20427         of lowest bits to lshift/compare): New.
20428
20429 2010-07-07  Tom Tromey  <tromey@redhat.com>
20430
20431         * doc/tm.texi: Update.
20432         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
20433         Add @hook.
20434         * target.def (want_debug_pub_sections): New hook.
20435         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
20436         * dwarf2out.c (add_pubname_string): Check
20437         targetm.want_debug_pub_sections.
20438         (add_pubname): Likewise.
20439         (add_pubtype): Likewise.
20440
20441 2010-07-07  Jie Zhang  <jie@codesourcery.com>
20442
20443         * genautomata.c (output_automata_list_min_issue_delay_code):
20444         Correctly decompress min_issue_delay.
20445
20446 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
20447
20448         PR rtl-optimization/44404
20449         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
20450         possible, use reg_overlap_mentioned_p instead.
20451
20452 2010-07-07  Duncan Sands  <baldrick@free.fr>
20453
20454         PR middle-end/41355
20455         * tree.c (build_function_type_skip_args): Copy the original type using
20456         build_distinct_type_copy rather than copy_node.
20457
20458 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20459
20460         PR target/44850
20461         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
20462         revision 161876.
20463         (ix86_expand_prologue): Likewise.
20464         (ix86_handle_fndecl_attribute): Likewise.
20465         (ix86_asm_declare_function_name): Likewise.
20466         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20467         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20468         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
20469         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
20470         * doc/extend.texi: Likewise.
20471
20472 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20473
20474         PR target/44844
20475         * config/i386/i386.md (rdrand<mode>): Changed to expand to
20476         retry if the carry flag isn't valid.
20477         (rdrand<mode>_1): New.
20478
20479 2010-07-07  Richard Guenther  <rguenther@suse.de>
20480
20481         PR middle-end/44790
20482         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
20483         for expanding the constant offset for MEM_REFs.
20484
20485 2010-07-07  Richard Guenther  <rguenther@suse.de>
20486
20487         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
20488         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
20489         * gimple.h (is_gimple_operand): Remove.
20490         * gimple.c (is_gimple_operand): Likewise.
20491         (walk_gimple_op): Fix wi->val_only setting for calls.
20492         * tree-cfg.c (verify_gimple_call): Fix argument validation.
20493         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
20494         invalid gimple calls.
20495
20496 2010-07-06  Jan Hubicka  <jh@suse.cz>
20497
20498         * lto-cgraph.c (output_cgraph): Add missing declaration.
20499
20500 2010-07-06  Jan Hubicka  <jh@suse.cz>
20501
20502         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
20503         partition.
20504
20505 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
20506
20507         * doc/gimple.texi (GIMPLE_DEBUG): Document.
20508         * doc/rtl.texi (Debug Information): New node.
20509         (NOTE_INSN_VAR_LOCATION): Document.
20510         (debug_insn): Likewise.
20511         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
20512
20513 2010-07-07  Jan Hubicka  <jh@suse.cz>
20514
20515         With parts by Richard Guenther.
20516
20517         PR middle-end/44813
20518         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
20519         for functions passed by reference.
20520         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
20521         in memory when passed by reference.
20522         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
20523         beggining.
20524         * ipa-split.c (split_function): Cleanup way return value is passed;
20525         handle SSA DECL_BY_REFERENCE retvals.
20526         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
20527         DECL_BY_REFERENCE is set.
20528         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
20529         find_what_p_points_to): Handle RESULT_DECL.
20530         * tree-inline.c (declare_return_variable): Get new entry_block argument;
20531         when passing by reference ensure that RESULT_DECL is gimple_val.
20532         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
20533         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
20534
20535 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
20536
20537         PR rtl-optimization/44787
20538         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
20539         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
20540
20541 2010-07-06  Jan Hubicka  <jh@suse.cz>
20542
20543         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
20544         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
20545         with body can prevail.
20546         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
20547         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
20548         * cgraph.c (cgraph_get_node_or_alias): New function.
20549         * cgraph.h (cgraph_get_node_or_alias): Declare.
20550
20551 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
20552
20553         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
20554         support.
20555         (ix86_expand_prologue): Likewise.
20556         (ix86_handle_fndecl_attribute): Likewise.
20557         (ix86_asm_declare_function_name): New function for
20558         ASM_DECLARE_FUNCTION_NAME.
20559         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
20560         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
20561         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
20562         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
20563         * doc/extend.texi: Adjust documentation about ms_hook_prologue
20564         attribute.
20565
20566 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20567
20568         * config/i386/i386.md (immediate_operand): New mode attribute.
20569
20570         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
20571         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
20572         using P mode iterator.
20573         (pro_epilogue_adjust_stack_di_2): Rename from
20574         pro_epilogue_adjust_stack_rex64_2.
20575
20576         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
20577
20578 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20579
20580         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
20581         through gen_mov_insv_1 function pointer.
20582         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
20583         gen_truncxf<mode>2 through gen_truncxf function pointer.
20584         (remainder<mode>3): Ditto.
20585         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
20586         (allocate_stack): Call gen_allocate_stack_worker_64 or
20587         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
20588         function pointer.
20589         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
20590         function pointer.
20591
20592 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20593
20594         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
20595         operand constraint instead of <r><i>m.
20596
20597 2010-07-06  Richard Guenther  <rguenther@suse.de>
20598
20599         PR middle-end/44828
20600         * convert.c (convert_to_integer): Watch out for overflowing
20601         MULT_EXPR as well.
20602
20603 2010-07-05  Jan Hubicka  <jh@suse.cz>
20604
20605         * lto-streamer.c (write_symbol_vec): Rename to ...
20606         (write_symbol) ... this one; write only symbol given and when
20607         present in cache. Sanity check that what is defined is present
20608         in cgraph/varpool with body/finalized decl.
20609         (write_symbols_of_kind): Remove.
20610         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
20611         pairs to produce symtab.
20612         (produce_asm_for_decls): Update call of produce_symtab; don't do so
20613         when doing WPA streaming.
20614
20615 2010-07-05  Jan Hubicka  <jh@suse.cz>
20616
20617         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
20618         function is still available to fold into.
20619
20620 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20621
20622         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
20623         * function.h (struct_function): Change type of local_decls field
20624         to a VEC.
20625         (add_local_decl): New function.
20626         (FOR_EACH_LOCAL_DECL): New macro.
20627         * cfgexpand.c (init_vars_expansion): Adjust for new type of
20628         cfun->local_decls.
20629         (estimated_stack_frame_size): Likewise.
20630         (expand_used_vars): Likewise.
20631         * cgraphbuild.c (build_cgraph_edges): Likewise.
20632         * function.c (instantiate_decls_1): Likewise.
20633         * ipa-struct-reorg.c (build_data_structure): Likewise.
20634         * ipa-type-escape.c (analyze_function): Likewise.
20635         * lto-streamer-in.c (input_function): Likewise.
20636         * lto-streamer-out.c (output_function): Likewise.
20637         * tree-ssa-live.c (remove_unused_locals): Likewise.
20638         * tree.c (free_lang_data_in_decl): Likewise.
20639         (find_decls_types_in_node): Likewise.
20640         * omp-low.c (remove_exit_barrier): Likewise.
20641         (expand_omp_taskreg): Likewise.
20642         (list2chain): Rename to...
20643         (vec2chain): ...this.  Adjust.
20644         * cgraphunit.c (assemble_thunk): Call add_local_decl.
20645         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
20646         * gimple-low.c (record_vars_into): Likewise.
20647         * tree-inline.c (remap_decls): Likewise.
20648         (declare_return_variable): Likewise.
20649         (declare_inline_vars): Likewise.
20650         (copy_forbidden): Adjust for new type of cfun->local_decls.
20651         (add_local_variables): New function.
20652         (expand_call_inline): Call it.
20653         (tree_function_versioning): Likewise.
20654
20655 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
20656
20657         AVX Programming Reference (June, 2010)
20658         * config/i386/cpuid.h (bit_F16C): New.
20659         (bit_RDRND): Likewise.
20660         (bit_FSGSBASE): Likewise.
20661
20662         * config/i386/i386-builtin-types.def: Add
20663         "DEF_FUNCTION_TYPE (UINT16)", function types for
20664         float16 <-> float conversions and
20665         "DEF_FUNCTION_TYPE (VOID, UINT64)".
20666
20667         * config/i386/i386-c.c (ix86_target_macros_internal): Support
20668         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
20669         OPTION_MASK_ISA_F16C.
20670
20671         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
20672         (OPTION_MASK_ISA_RDRND_SET): Likewise.
20673         (OPTION_MASK_ISA_F16C_SET): Likewise.
20674         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
20675         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
20676         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
20677         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
20678         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
20679         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
20680         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
20681         (override_options): Handle them.
20682         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
20683         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
20684         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
20685         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
20686         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
20687         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
20688         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
20689         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
20690         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
20691         (bdesc_args): Likewise.
20692         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
20693         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
20694         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
20695         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
20696         Handle non-memory store.
20697
20698         * config/i386/i386.h (TARGET_FSGSBASE): New.
20699         (TARGET_RDRND): Likewise.
20700         (TARGET_F12C): Likewise.
20701
20702         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
20703         (UNSPEC_VCVTPS2PH): Likewise.
20704         (UNSPECV_RDFSBASE): Likewise.
20705         (UNSPECV_RDGSBASE): Likewise.
20706         (UNSPECV_WRFSBASE): Likewise.
20707         (UNSPECV_WRGSBASE): Likewise.
20708         (UNSPECV_RDRAND): Likewise.
20709         (rdfsbase<mode>): Likewise.
20710         (rdgsbase<mode>): Likewise.
20711         (wrfsbase<mode>): Likewise.
20712         (wrgsbase<mode>): Likewise.
20713         (rdrand<mode>): Likewise.
20714
20715         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
20716
20717         * config/i386/immintrin.h (_rdrand_u16): New.
20718         (_rdrand_u32): Likewise.
20719         (_readfsbase_u32): Likewise.
20720         (_readfsbase_u64): Likewise.
20721         (_readgsbase_u32): Likewise.
20722         (_readgsbase_u64): Likewise.
20723         (_writefsbase_u32): Likewise.
20724         (_writefsbase_u64): Likewise.
20725         (_writegsbase_u32): Likewise.
20726         (_writegsbase_u64): Likewise.
20727         (_rdrand_u64): Likewise.
20728         (_cvtsh_ss): Likewise.
20729         (_mm_cvtph_ps): Likewise.
20730         (_mm256_cvtph_ps): Likewise.
20731         (_cvtss_sh): Likewise.
20732         (_mm_cvtps_ph): Likewise.
20733         (_mm256_cvtps_ph): Likewise.
20734
20735         * config/i386/sse.md (vcvtph2ps): New.
20736         (*vcvtph2ps_load): Likewise.
20737         (vcvtph2ps256): Likewise.
20738         (vcvtps2ph): Likewise.
20739         (*vcvtps2ph): Likewise.
20740         (*vcvtps2ph_store): Likewise.
20741         (vcvtps2ph256): Likewise.
20742
20743         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
20744
20745         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
20746
20747 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20748
20749         PR bootstrap/44512
20750         * genenums.c (main): Output include of insn-constants.h
20751         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
20752
20753 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
20754
20755         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
20756         (override_options): Initialize it.
20757         (ix86_expand_prologue): Use it.
20758
20759 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20760
20761         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
20762
20763 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20764
20765         * double-int.h (fit_double_type): Remove declaration.
20766         * double-int.c (fit_double_type): Remove function.
20767         * tree.h (int_fits_type_p): Adjust prototype.
20768         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
20769         instead of fit_double_type.
20770         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
20771         instead of fit_double_type and build_int_cst_wide.
20772         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
20773         instead of fit_double_type and build_int_cst_wide.
20774         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
20775         of fit_double_type.
20776
20777 2010-07-05  Jan Hubicka  <jh@suse.cz>
20778
20779         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
20780         in_other_partition.
20781         * lto-cgraph.c (referenced_from_other_partition_p,
20782         reachable_from_other_partition_p): Use in_other_partition flags.
20783         (output_node, output_varpool_node): COMDAT nodes always have private
20784         copies and thus are never used from other partition.
20785
20786 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20787
20788         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20789         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
20790         * config/ia64/ia64.c Include reload.h.
20791         (ia64_memory_move_cost): New function.
20792         (TARGET_MEMORY_MOVE_COST): Define.
20793         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
20794         memory_move_cost.
20795
20796 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
20797
20798         PR middle-end/42505
20799         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
20800         comments about cost model.
20801         (try_add_cand_for):  Add second strategy for choosing initial set
20802         based on original IVs, controlled by ORIGINALP argument.
20803         (get_initial_solution): Add ORIGINALP argument.
20804         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
20805         (find_optimal_iv_set): Try two different strategies for choosing
20806         the IV set, and return the one with lower cost.
20807
20808 2010-07-05  Richard Guenther  <rguenther@suse.de>
20809
20810         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
20811
20812 2010-07-05  Richard Guenther  <rguenther@suse.de>
20813
20814         * tree.c (reference_alias_ptr_type): New function.
20815         * tree.h (reference_alias_ptr_type): Declare.
20816         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
20817         allow non-TARGET_MEM_REF new refs.
20818         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
20819         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
20820         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
20821         (create_mem_ref): Get alias pointer type.  Adjust calls to
20822         create_mem_ref_raw.
20823         (maybe_fold_tmr): Likewise.
20824         * tree-flow.h (create_mem_ref): Adjust prototype.
20825
20826 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20827
20828         PR c++/44808
20829         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
20830         *from_p is VAR_DECL.
20831
20832 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20833
20834         * tree.h (build_call_list): Remove.
20835         * tree.c (build_call_list): Remove.
20836
20837 2010-07-05  Richard Guenther  <rguenther@suse.de>
20838
20839         * double-int.h (double_int_sub): Declare.
20840         * double-int.c (double_int_sub): New function.
20841         * dwarf2out.c (field_byte_offset): Use it.
20842         * fixed-value.c (do_fixed_add): Likewise.
20843         (do_fixed_multiply): Likewise.
20844         (do_fixed_divide): Likewise.
20845         * tree-predcom.c (add_ref_to_chain): Likewise.
20846         (determine_roots_comp): Likewise.
20847         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20848
20849 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20850
20851         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
20852         implementations.
20853
20854 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
20855
20856         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
20857         * arm-modes.def (CC_NOTB): Don't define.
20858         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
20859         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
20860         (LTUGEU): New code_iterator.
20861         (cnb, optab): New corresponding code_attrs.
20862         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
20863         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
20864         using LTUGEU.
20865         (addsi3_carryin_shift_<optab>): Likewise.
20866         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
20867         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
20868         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
20869         (subsi3_compare): Renamed from subsi3_compare0_c.
20870         Change CC_NOTB to CC.
20871         (arm_subsi3_insn): Allow constants for operand 0.
20872         (compare_scc peephole for eq case): New.
20873         (compare_scc splitters): Change CC_NOTB to CC.
20874
20875 2010-07-05  Richard Guenther  <rguenther@suse.de>
20876
20877         * tree-ssa-loop-im.c (for_each_index): Do not handle
20878         ALIGN_INDIRECT_REF.
20879         (gen_lsm_tmp_name): Likewise.
20880         * tree-dump.c (dequeue_and_dump): Likewise.
20881         * tree-pretty-print.c (dump_generic_node): Likewise.
20882         (op_code_prio): Likewise.
20883         (op_symbol_code): Likewise.
20884         * tree.c (staticp): Likewise.
20885         (build1_stat): Likewise.
20886         * tree.h (INDIRECT_REF_P): Likewise.
20887         * fold-const.c (maybe_lvalue_p): Likewise.
20888         (operand_equal_p): Likewise.
20889         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
20890         (ao_ref_init_from_vn_reference): Likewise.
20891         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
20892         (find_interesting_uses_address): Likewise.
20893         * dwarf2out.c (loc_list_from_tree): Likewise.
20894         * gimplify.c (gimplify_expr): Likewise.
20895         * tree-eh.c (tree_could_trap_p): Likewise.
20896         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20897         * cfgexpand.c (expand_debug_expr): Likewise.
20898         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20899         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
20900         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
20901         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
20902         * tree-ssa-operands.c (get_expr_operands): Likewise.
20903         * expr.c (safe_from_p): Likewise.
20904         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
20905         * tree-vect-data-refs.c (vect_setup_realignment): Build
20906         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
20907         * tree-vect-stmts.c (vectorizable_load): Likewise.
20908         * tree.def (ALIGN_INDIRECT_REF): Remove.
20909
20910 2010-07-05  Richard Guenther  <rguenther@suse.de>
20911
20912         PR tree-optimization/44784
20913         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
20914         for inserted stmts.
20915         (find_or_generate_expression): Fix SCCVN insertion check.
20916
20917 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
20918
20919         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
20920         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20921         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
20922         directives.
20923
20924 2010-07-05  Ira Rosen  <irar@il.ibm.com>
20925
20926         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
20927         statements that are not vectorized.
20928         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
20929         in INSIDE_COST.
20930
20931 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
20932
20933         PR bootstrap/44820
20934         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
20935
20936 2010-07-05  Richard Guenther  <rguenther@suse.de>
20937
20938         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
20939         RESULT_DECLs properly.
20940
20941 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
20942
20943         PR rtl-optimization/44695
20944         * config/i386/i386.md (extract_code): Removed.
20945         (<u>divmodqi4): Likewise.
20946         (divmodqi4): New.
20947         (udivmodqi4): Likewise.
20948         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
20949         (udivmodhiqi3): Likewise.
20950
20951 2010-07-04  Jan Hubicka  <jh@suse.cz>
20952
20953         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
20954
20955 2010-07-04  Jan Hubicka  <jh@suse.cz>
20956
20957         * cgraphunit.c (init_cgraph): Only initialize dump file if it
20958         is not already initialized.
20959
20960 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20961
20962         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
20963         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
20964         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
20965         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
20966         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
20967         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
20968         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
20969         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
20970         (sync_new_nand_optab): Redefine as macros.
20971         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
20972         Delete.
20973         (direct_optab_index): New enum.
20974         (direct_optab_d): New structure.
20975         (direct_optab): New typedef.
20976         (direct_optab_table): Declare.
20977         (direct_optab_handler, set_direct_optab_handler): New functions.
20978         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
20979         (sync_lock_release_optab): New macros.
20980         * optabs.c (direct_optab_table): New variable.
20981         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
20982         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
20983         cmpstr_optab and cmpstrn_optab.
20984         (emit_conditional_move): Likewise for movcc_optab.
20985         (can_conditionally_move_p): Likewise for movcc_gen_code.
20986         (init_insn_codes): Clear direct_optab_table.
20987         (init_optabs): Don't initialize the new "direct optabs" here.
20988         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
20989         vcond_gen_code.
20990         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
20991         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
20992         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
20993         (expand_sync_operation): Likewise other sync_*_optabs.
20994         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
20995         to sync_compare_and_swap_optab.
20996         (expand_sync_lock_test_and_set): Use direct_optab_handler for
20997         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
20998         to the names of both.
20999         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
21000         cmpstr_optab and cmpstrn_optab.
21001         (expand_builtin_lock_release): Likewise sync_lock_release.
21002         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
21003         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
21004         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
21005         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
21006         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
21007         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
21008         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
21009         (sync_lock_test_and_set, sync_lock_release): Delete.
21010         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
21011         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
21012         * genopinit.c (optabs): Use set_direct_optab_handler for the new
21013         macro optabs.
21014         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
21015         the "optab" local variable.  Use direct_optab_handler for optab and
21016         sync_compare_and_swap_optab.
21017         * reload1.c (reload_in_optab, reload_out_optab): Delete.
21018         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
21019         reload_in_optab and reload_out_optab.
21020         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21021         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
21022         * config/pa/pa.c (pa_secondary_reload): Likewise.
21023         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
21024         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
21025         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
21026         (VMSupportsCS8_builtin): Likewise.
21027
21028 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21029
21030         * optabs.h (optab_handlers): Change type of insn_code to int.
21031         (optab_handler, set_optab_handler, convert_optab_handler)
21032         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
21033         CODE_FOR_nothing".
21034         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
21035         (init_insn_codes): Zero both the above arrays.
21036         (init_optabs): Never call init_insn_codes first time around.
21037
21038 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21039
21040         * optabs.h (optab_handler, convert_optab_handler): Turn into
21041         inline functions that return an insn code.
21042         (set_optab_handler, set_convert_optab_handler): New functions.
21043         * builtins.c: Replace optab_handler(X)->insn_code with
21044         optab_handler or set_optab_handler thoughout.  Likewise
21045         convert_optab_handler(X)->insn_code with convert_optab_handler
21046         and set_convert_optab_handler.
21047         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
21048         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
21049         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
21050         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
21051         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
21052         config/spu/spu.c: Likewise.
21053
21054 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21055
21056         PR target/44531
21057         * config.gcc (sh*-*-*): Use regular expressions instead of
21058         the 'i' modifier for sed substitutions.
21059
21060 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
21061
21062         * gimple.c (gimple_body): Comments added.
21063
21064 2010-07-04  Richard Guenther  <rguenther@suse.de>
21065
21066         PR middle-end/44809
21067         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
21068         of an INDIRECT_REF.
21069
21070 2010-07-04  Richard Guenther  <rguenther@suse.de>
21071
21072         PR tree-optimization/44479
21073         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
21074         extra SSA name copy statements which preserves points-to
21075         information.
21076         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21077         Copy points-to information for all pointers.  Properly handle
21078         MEM_REFs.
21079         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
21080         copy statements.
21081         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
21082         dependency.
21083
21084 2010-07-04  Richard Guenther  <rguenther@suse.de>
21085
21086         PR middle-end/44785
21087         * tree-inline.c (initialize_inlined_parameters): Do not
21088         re-use pointer-map slot over remap_type call.
21089
21090 2010-07-04  Richard Guenther  <rguenther@suse.de>
21091
21092         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
21093
21094 2010-07-04  Richard Guenther  <rguenther@suse.de>
21095
21096         PR tree-optimization/44656
21097         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
21098         again after value-replacing in the defintions lhs.
21099
21100 2010-07-04  Ira Rosen  <irar@il.ibm.com>
21101             Revital Eres  <eres@il.ibm.com>
21102
21103         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
21104         Document new arguments.
21105         * doc/tm.texi: Regenerate.
21106         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
21107         Handle unaligned store.
21108         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
21109         * target.def (builtin_vectorization_cost): Add new arguments.
21110         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
21111         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
21112         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
21113         (vect_vfa_segment_size): Fix indentation.
21114         * tree-vectorizer.h (struct _vect_peel_info): New.
21115         (struct _vect_peel_extended_info): New.
21116         (struct _loop_vec_info): Add new field for peeling hash table and a
21117         macro for its access.
21118         (VECT_MAX_COST): Define.
21119         (vect_get_load_cost): Declare.
21120         (vect_get_store_cost, vect_get_known_peeling_cost,
21121         vect_get_single_scalar_iteraion_cost): Likewise.
21122         (vect_supportable_dr_alignment): Add new argument.
21123         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
21124         field.
21125         (destroy_loop_vec_info): Free peeling hash table.
21126         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
21127         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
21128         vect_analyze_slp. Fix indentation.
21129         (vect_get_single_scalar_iteraion_cost): New function.
21130         (vect_get_known_peeling_cost): Likewise.
21131         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
21132         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
21133         statement. Move outside cost calculation inside unknown peeling case.
21134         Call vect_get_known_peeling_cost for known amount of peeling.
21135         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
21136         reference to the print message of forced alignment.
21137         (vect_verify_datarefs_alignment): Update call to
21138         vect_supportable_dr_alignment.
21139         (vect_get_data_access_cost): New function.
21140         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
21141         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
21142         vect_peeling_hash_choose_best_peeling): Likewise.
21143         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
21144         to store all the accesses in the loop and find best possible access to
21145         align using peeling for known alignment case. For unknown alignment
21146         check if stores are preferred or if peeling is worthy.
21147         (vect_find_same_alignment_drs): Analyze pairs of loads too.
21148         (vect_supportable_dr_alignment): Add new argument and check aligned
21149         accesses according to it.
21150         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
21151         (cost_for_stmt): Call vect_get_stmt_cost.
21152         (vect_model_simple_cost): Likewise.
21153         (vect_model_store_cost): Call vect_get_stmt_cost. Call
21154         vect_get_store_cost to calculate the cost of the statement.
21155         (vect_get_store_cost): New function.
21156         (vect_model_load_cost): Call vect_get_stmt_cost. Call
21157         vect_get_load_cost to calculate the cost of the statement.
21158         (vect_get_load_cost): New function.
21159         (vectorizable_store): Update call to vect_supportable_dr_alignment.
21160         (vectorizable_load): Likewise.
21161         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
21162         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
21163         arguments. Handle unaligned store.
21164         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
21165         (rs6000_builtin_support_vector_misalignment): Return true for word and
21166         double word alignments for VSX.
21167         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
21168         vect_supportable_dr_alignment and builtin_vectorization_cost.
21169
21170 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21171
21172         PR target/44597
21173         * config/pa/predicates.md (prefetch_cc_operand): Remove.
21174         (prefetch_nocc_operand): Likewise.
21175         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
21176         (prefetch_20): New insn.
21177         (prefetch_cc): Remove.
21178         (prefetch_nocc): Likewise.
21179
21180 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21181
21182         * expr.c (vector_mode_valid_p): Move to c-common.c.
21183         * expr.h (vector_mode_valid_p): Do not declare here.
21184         * system.h: Poison GCC_EXPR_H in front-ends.
21185         * Makefile.in: Update dependencies.
21186
21187 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21188
21189         PR target/44705
21190         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
21191
21192 2010-07-03  Jan Hubicka  <jh@suse.cz>
21193
21194         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
21195         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
21196         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
21197         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
21198         Likewise.
21199
21200         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
21201         Update timevars.V
21202         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
21203         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
21204         TV_IPA_LTO_DECL_OUT): New.
21205         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
21206
21207 2010-07-03  Jan Hubicka  <jh@suse.cz>
21208
21209         * ipa-inline.c (update_edge_key): Break out from ...
21210         update_callers_keys): ... here;
21211         (update_callee_keys): Update only the edges from caller to callee.
21212         (update_all_calle_keys): Do what update_calle_keys did.
21213         (decide_inlining_of_small_functions): Avoid recomputing of all
21214         callees when badness increase.
21215
21216 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21217
21218         * config/arm/arm.c (arm_attr_length_move_neon): New.
21219         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
21220         * config/arm/neon.md (define_mode_attr V_slen): Remove.
21221         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
21222         to compute length attribute.
21223
21224 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21225
21226         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
21227         as predicate for operand 1 and remove its constraint.
21228         * config/arm/predicates.md (vfp_register_operand): New.
21229         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
21230         (*push_fp_multi): Likewise.
21231
21232 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
21233
21234         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
21235
21236 2010-07-03  Jan Hubicka  <jh@suse.cz>
21237
21238         * config/i386/i386.c (override_options): Revert accidental commit.
21239
21240 2010-07-02  Le-Chun Wu  <lcwu@google.com>
21241
21242         PR c++/44128
21243         * doc/invoke.texi: Update documentation of -Wshadow.
21244
21245 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
21246             Julian Brown  <julian@codesourcery.com>
21247             Sandra Loosemore  <sandra@codesourcery.com>
21248
21249         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
21250         comparisons.  Adjust to take both operands.
21251         (arm_select_cc_mode): Handle DImode comparisons.
21252         (arm_gen_compare_reg): Generate a scratch register for DImode
21253         comparisons which require one.  Use xor for Thumb equality checks.
21254         (arm_const_double_by_immediates): New.
21255         (arm_print_operand): Allow 'Q' and 'R' for constants.
21256         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
21257         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
21258         arm_canonicalize_comparison.
21259         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
21260         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
21261         prototype.
21262         (arm_const_double_by_immediates): Declare.
21263         * config/arm/constraints.md (Di): New constraint.
21264         * config/arm/predicates.md (arm_immediate_di_operand)
21265         (arm_di_operand, cmpdi_operand): New.
21266         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
21267         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
21268         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
21269         (cstoredi4): Handle non-Cirrus also.
21270
21271 2010-07-02  Julian Brown  <julian@codesourcery.com>
21272             Sandra Loosemore  <sandra@codesourcery.com>
21273
21274         PR target/43703
21275         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
21276         (smax<mode>3): Disable for NEON float modes when
21277         flag_unsafe_math_optimizations is false.
21278         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
21279         (*mul<mode>3_neon)
21280         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
21281         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
21282         for NEON float modes when flag_unsafe_math_optimizations is false.
21283         (quad_halves_<code>v4sf): Only enable if
21284         flag_unsafe_math_optimizations is true.
21285         * doc/invoke.texi (ARM Options): Add note about floating point
21286         vectorization requiring -funsafe-math-optimizations.
21287
21288 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21289             Julian Brown  <julian@codesourcery.com>
21290
21291         * config/arm/neon.md (UNSPEC_VABA): Delete.
21292         (UNSPEC_VABAL): Delete.
21293         (UNSPEC_VABS): Delete.
21294         (UNSPEC_VMUL_N): Delete.
21295         (adddi3_neon): New.
21296         (subdi3_neon): New.
21297         (mul<mode>3add<mode>_neon): Make the pattern named.
21298         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
21299         (neon_vadd<mode>): Replace with define_expand, and move the remaining
21300         unspec parts...
21301         (neon_vadd<mode>_unspec): ...to this.
21302         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
21303         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
21304         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
21305         (neon_vaba<mode>): Rewrite in terms of vabd.
21306         (neon_vabal<mode>): Rewrite in terms of vabdl.
21307         (neon_vabs<mode>): Rewrite without unspec.
21308         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
21309         (*arm_subdi3): Likewise.
21310         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
21311         No_op attribute to disable assembly output checks.
21312         * config/arm/arm_neon.h: Regenerated.
21313         * doc/arm-neon-intrinsics.texi: Regenerated.
21314
21315 2010-07-02  Jan Hubicka  <jh@suse.cz>
21316
21317         * ipa-split.c (split_function): For aggregate values, set the return
21318         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
21319         *<retval> = fncall.part ().
21320         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
21321
21322 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21323
21324         * config/arm/neon.md (UNSPEC_VAND): Delete.
21325         (UNSPEC_VBIC): Delete.
21326         (UNSPEC_VCLZ): Delete.
21327         (UNSPEC_VCNT): Delete.
21328         (UNSPEC_VEOR): Delete.
21329         (UNSPEC_VORN): Delete.
21330         (UNSPEC_VORR): Delete.
21331         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
21332         core registers too.
21333         (anddi3_neon): Likewise.
21334         (orndi3_neon): Likewise.
21335         (bicdi3_neon): Likewise.
21336         (xordi3_neon): Likewise.
21337         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
21338         rid of unspec and handle unused operand.
21339         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
21340         * config/arm/predicates.md (imm_for_neon_logic_operand):
21341         Require TARGET_NEON.
21342         (imm_for_neon_inv_logic_operand): Likewise.
21343         * config/arm/arm.md (define_split for logical_binary_operator):
21344         Disable for NEON registers.
21345         (anddi3): Add new define_expand, and rename the insn.  Disable
21346         this insn for NEON, where anddi3_neon now applies.
21347         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
21348         (iordi3): As for anddi3.
21349         (xordi3): Likewise.
21350         * config/arm/neon.ml (Vand): Split DImode variants and mark them
21351         as No_op to disable testing for exact instruction match.
21352         (Vorr): Likewise.
21353         (Veor): Likewise.
21354         (Vbic): Likewise.
21355         (Vorn): Likewise.
21356         * config/arm/arm_neon.h: Regenerated.
21357         * doc/arm-neon-intrinsics.texi: Regenerated.
21358
21359 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21360
21361         * expr.h (emit_stack_probe): Declare.
21362         * explow.c (emit_stack_probe): Make global.
21363         (anti_adjust_stack_and_probe): Fix comments.
21364         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21365         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21366         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21367         * config/sparc/sparc.c: Include except.h.
21368         (sparc_emit_probe_stack_range): New function.
21369         (output_probe_stack_range): Likewise.
21370         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
21371         built-in stack checking is enabled.
21372         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
21373         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21374         (probe_stack_range): New insn.
21375
21376 2010-07-02  Richard Guenther  <rguenther@suse.de>
21377
21378         PR target/43958
21379         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
21380         for argument alignment.
21381
21382 2010-07-02  Jan Hubicka  <jh@suse.cz>
21383
21384         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
21385         walk backwards from entry_bb to check only those basic block of header
21386         that might lead to execution of split part.
21387         (consider_split) ... here.
21388         (find_return_bb): Allow assignment in return BB.
21389         (find_retval): New.
21390         (split_function): Fix name of cloned function; take care of updating
21391         return value in return_bb containing move.
21392
21393 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
21394
21395         PR target/44771
21396         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
21397         used variable insn.
21398
21399 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21400
21401         * implicit-zee.c (combine_reaching_defs): Fix long lines.
21402         (is_set_with_extension_DI): Delete.
21403         (struct zero_extend_info): New structure.
21404         (add_removable_zero_extend): New function.
21405         (find_removable_zero_extends): Use note_stores to find SETs.
21406         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
21407
21408 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
21409
21410         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
21411         is_miss_rate_acceptable. Pull total_positions computation
21412         out of the loops.  Early return if miss_positions exceeds
21413         the acceptable threshold.
21414         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
21415         is_miss_rate_acceptable after renaming of compute_miss_rate.
21416
21417 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
21418
21419         PR middle-end/44576
21420         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
21421         of 1000) for miss rate if the address diference is greater than or
21422         equal to the cache line size (the two reference will never hit the
21423         same cache line).
21424
21425 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
21426
21427         PR target/42835
21428         * config/arm/arm-modes.def (CC_NOTB): New mode.
21429         * config/arm/arm.c (get_arm_condition_code): Handle it.
21430         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
21431         * config/arm/arm.md (subsi3_compare0_c): New pattern.
21432         (compare_scc): Now a define_and_split.  Add a number of extra
21433         splitters before it.
21434
21435         PR target/42172
21436         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
21437         and ZERO_EXTEND.
21438         (arm_rtx_costs_1): Likewise.
21439         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
21440         * config/arm/arm.md (is_arch6): New attribute.
21441         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
21442         extendqisi2): Tighten the code somewhat, avoiding invalid
21443         RTL to occur in the expander patterns.
21444         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
21445         (thumb1_zero_extendhisi2_v6): Delete.
21446         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
21447         (thumb1_extendhisi2_v6): Delete.
21448         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
21449         (thumb1_extendqisi2_v6): Delete.
21450         (zero_extendhisi2 for register input splitter): New.
21451         (zero_extendqisi2 for register input splitter): New.
21452         (thumb1_extendhisi2 for register input splitter): New.
21453         (extendhisi2 for register input splitter): New.
21454         (extendqisi2 for register input splitter): New.
21455         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
21456         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
21457         and add support for a register alternative requiring a split.
21458         (thumb1_zero_extendqisi2): Likewise.
21459         (arm_zero_extendqisi2): Likewise.
21460         (arm_extendhisi2): Likewise.
21461         (arm_extendqisi2): Likewise.
21462
21463 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21464
21465         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
21466         instead of an unspec.
21467         (neon_expand_vector_init): Likewise.
21468         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
21469         (UNSPEC_VDUP_LANE): Delete.
21470         (UNSPEC VDUP_N): Delete.
21471         (UNSPEC_VGET_HIGH): Delete.
21472         (UNSPEC_VGET_LANE): Delete.
21473         (UNSPEC_VGET_LOW): Delete.
21474         (UNSPEC_VMVN): Delete.
21475         (UNSPEC_VSET_LANE): Delete.
21476         (V_double_vector_mode): New.
21477         (vec_set<mode>_internal): Make code emitted match that for the
21478         corresponding intrinsics.
21479         (vec_setv2di_internal): Likewise.
21480         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
21481         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
21482         (neon_vset_lane<mode>): Combine double and quad patterns and
21483         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
21484         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
21485         (neon_vdup_n<mode>): Rewrite RTL without unspec.
21486         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
21487         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
21488         with neon_vdup_lanev2di, adjusting the pattern from the latter
21489         to be predicable for consistency.
21490         (neon_vdup_lane<mode>_internal): New.
21491         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
21492         to avoid using an unspec.
21493         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
21494         (neon_vdup_lanev2di): Turn into a define_expand.
21495         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
21496         (neon_vget_high<mode>): Replace with....
21497         (neon_vget_highv16qi): New pattern using canonical RTL.
21498         (neon_vget_highv8hi): Likewise.
21499         (neon_vget_highv4si): Likewise.
21500         (neon_vget_highv4sf): Likewise.
21501         (neon_vget_highv2di): Likewise.
21502         (neon_vget_low<mode>): Replace with....
21503         (neon_vget_lowv16qi): New pattern using canonical RTL.
21504         (neon_vget_lowv8hi): Likewise.
21505         (neon_vget_lowv4si): Likewise.
21506         (neon_vget_lowv4sf): Likewise.
21507         (neon_vget_lowv2di): Likewise.
21508
21509         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
21510         test for this emitting vmov.
21511         (Vset_lane): Likewise.
21512         (Vdup_n): Likewise.
21513         (Vmov_n): Likewise.
21514
21515         * doc/arm-neon-intrinsics.texi: Regenerated.
21516
21517 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21518
21519         * config/arm/neon.md (vec_extractv2di): Correct error in register
21520         numbering to reconcile with neon_vget_lanev2di.
21521
21522 2010-07-02  Richard Guenther  <rguenther@suse.de>
21523
21524         * tree-ssa-structalias.c (pt_solution_set_var): New function.
21525         * tree-ssa-alias.h (pt_solution_set_var): Declare.
21526         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
21527         points-to information.
21528
21529 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
21530
21531         * config/s390/s390.c (override_options): Adopt prefetching
21532         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
21533
21534 2010-07-02  Jan Hubicka  <jh@suse.cz>
21535
21536         * df-problems.c (df_kill_notes): Do not collect dead  notes.
21537         (df_set_note): Just call add_reg_note.
21538         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
21539         df_create_unused_note): Do not deal with lists of old notes.
21540         (df_note_bb_compute): Likewise.
21541
21542 2010-07-02  Richard Guenther  <rguenther@suse.de>
21543
21544         * tree-ssa-structalias.c (find_func_aliases): Handle
21545         pointer alignment via BIT_AND_EXPR.
21546         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
21547
21548 2010-07-02  Richard Guenther  <rguenther@suse.de>
21549
21550         * tree-data-ref.c (initialize_data_dependence_relation): Handle
21551         mismatching number of dimensions properly.
21552
21553 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21554
21555         PR target/44707
21556         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
21557         (lo_sum (high ...) ...) patterns generated by earlier passes.
21558
21559 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21560
21561         * doc/install.texi (Prerequisites): Document Perl requirement on
21562         Solaris 2.
21563         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
21564
21565 2010-07-02  Richard Guenther  <rguenther@suse.de>
21566
21567         PR middle-end/44777
21568         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
21569
21570 2010-07-02  Jan Hubicka  <jh@suse.cz>
21571
21572         PR middle-end/44706
21573         * predict.c (predict_paths_for_bb): Handle case when control dependence
21574         BB has only abnormal edges.
21575
21576 2010-07-02  Richard Guenther  <rguenther@suse.de>
21577
21578         PR tree-optimization/44748
21579         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
21580         the embedded conversion in MEM_REFs.
21581
21582 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
21583
21584         * reload.c: Include toplev.h.
21585         * recog.c:  Likewise.
21586         * Makefile.in: Adjust dependencies.
21587
21588 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
21589
21590         PR debug/44694
21591         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
21592         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
21593
21594 2010-07-01  Richard Guenther  <rguenther@suse.de>
21595
21596         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
21597         types for offsets.
21598
21599 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
21600
21601         PR target/44732
21602         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
21603         Fix argument types.
21604
21605 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
21606
21607         PR target/44727
21608         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21609         Make sure operand 0 dies.
21610
21611 2010-07-01  Richard Guenther  <rguenther@suse.de>
21612
21613         PR middle-end/42834
21614         PR middle-end/44468
21615         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
21616         * doc/generic.texi (References to storage): Document MEM_REF.
21617         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
21618         (print_call_name): Likewise.
21619         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
21620         (build_simple_mem_ref_loc): New function.
21621         (mem_ref_offset): Likewise.
21622         * tree.h (build_simple_mem_ref_loc): Declare.
21623         (build_simple_mem_ref): Define.
21624         (mem_ref_offset): Declare.
21625         * fold-const.c: Include tree-flow.h.
21626         (operand_equal_p): Handle MEM_REF.
21627         (build_fold_addr_expr_with_type_loc): Likewise.
21628         (fold_comparison): Likewise.
21629         (fold_unary_loc): Fold
21630         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
21631         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
21632         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
21633         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
21634         (ptr_deref_may_alias_ref_p_1): Likewise.
21635         (ao_ref_base_alias_set): Properly differentiate base object for
21636         offset and TBAA.
21637         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
21638         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
21639         (indirect_refs_may_alias_p): Likewise.
21640         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
21641         chasing code.
21642         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
21643         (call_may_clobber_ref_p_1): Likewise.
21644         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
21645         * expr.c (expand_assignment): Handle MEM_REF.
21646         (store_expr): Handle MEM_REFs from STRING_CSTs.
21647         (store_field): If expanding a MEM_REF of a non-addressable
21648         decl use bitfield operations.
21649         (get_inner_reference): Handle MEM_REF.
21650         (expand_expr_addr_expr_1): Likewise.
21651         (expand_expr_real_1): Likewise.
21652         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
21653         * alias.c (ao_ref_from_mem): Handle MEM_REF.
21654         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
21655         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
21656         (dr_analyze_indices): Likewise.
21657         (dr_analyze_alias): Likewise.
21658         (object_address_invariant_in_loop_p): Likewise.
21659         * gimplify.c (mark_addressable): Handle MEM_REF.
21660         (gimplify_cond_expr): Build MEM_REFs.
21661         (gimplify_modify_expr_to_memcpy): Likewise.
21662         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
21663         (gimple_fold_indirect_ref): Adjust.
21664         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
21665         * tree.def (MEM_REF): New tree code.
21666         * tree-dfa.c: Include toplev.h.
21667         (get_ref_base_and_extent): Handle MEM_REF.
21668         (get_addr_base_and_unit_offset): New function.
21669         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
21670         * gimple-fold.c (may_propagate_address_into_dereference): Handle
21671         MEM_REF.
21672         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
21673         accesses if the array has just one dimension.  Remove always true
21674         parameter.  Do not require type compatibility here.
21675         (maybe_fold_offset_to_component_ref): Remove.
21676         (maybe_fold_stmt_indirect): Remove.
21677         (maybe_fold_reference): Remove INDIRECT_REF handling.
21678         Fold back to non-MEM_REF.
21679         (maybe_fold_offset_to_address): Simplify.  Deal with type
21680         mismatches here.
21681         (maybe_fold_reference): Likewise.
21682         (maybe_fold_stmt_addition): Likewise.  Also handle
21683         &ARRAY + I in addition to &ARRAY[0] + I.
21684         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
21685         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
21686         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
21687         * tree-ssa.c (useless_type_conversion_p): Make most pointer
21688         conversions useless.
21689         (warn_uninitialized_var): Handle MEM_REF.
21690         (maybe_rewrite_mem_ref_base): New function.
21691         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
21692         to SSA form.
21693         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
21694         INDIRECT_REF handling.
21695         (copy_tree_body_r): Handle MEM_REF.
21696         * gimple.c (is_gimple_addressable): Adjust.
21697         (is_gimple_address): Likewise.
21698         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
21699         invariant base are invariant.
21700         (is_gimple_min_lval): Adjust.
21701         (is_gimple_mem_ref_addr): New function.
21702         (get_base_address): Handle MEM_REF.
21703         (count_ptr_derefs): Likewise.
21704         (get_base_loadstore): Likewise.
21705         * gimple.h (is_gimple_mem_ref_addr): Declare.
21706         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
21707         * tree-cfg.c (verify_address): New function, split out from ...
21708         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
21709         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
21710         INDIRECT_REFs.
21711         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
21712         INDIRECT_REF.  Allow conversions.
21713         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
21714         a register does not change its size.
21715         (verify_types_in_gimple_reference): Verify MEM_REF.
21716         (verify_gimple_assign_single): Disallow INDIRECT_REF.
21717         Handle MEM_REF.
21718         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
21719         New.
21720         (mark_address_taken): Handle MEM_REF.
21721         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
21722         (get_asm_expr_operands): Pass opf_not_non_addressable.
21723         (get_expr_operands): Handle opf_[not_]non_addressable.
21724         Handle MEM_REF.  Remove INDIRECT_REF handling.
21725         * tree-vrp.c (check_array_ref): Handle MEM_REF.
21726         (search_for_addr_array): Likewise.
21727         (check_array_bounds): Likewise.
21728         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
21729         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
21730         (ref_always_accessed_p): Likewise.
21731         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
21732         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
21733         Handle MEM_REF.
21734         * cgraphbuild.c (mark_load): Properly check for NULL result
21735         from get_base_address.
21736         (mark_store): Likewise.
21737         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
21738         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
21739         handling for MEM_REF.
21740         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
21741         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
21742         * builtins.c (stabilize_va_list_loc): Use the function ABI
21743         valist type if we couldn't canonicalize the argument type.
21744         Always dereference with the canonical va-list type.
21745         (maybe_emit_free_warning): Handle MEM_REF.
21746         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
21747         memmove to memcpy.
21748         * builtins.c (fold_builtin_memory_op): Use ref-all types
21749         for all memcpy foldings.
21750         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
21751         (build_outer_var_ref): Likewise.
21752         (scan_omp_1_op): Likewise.
21753         (lower_rec_input_clauses): Likewise.
21754         (lower_lastprivate_clauses): Likewise.
21755         (lower_reduction_clauses): Likewise.
21756         (lower_copyprivate_clauses): Likewise.
21757         (expand_omp_atomic_pipeline): Likewise.
21758         (expand_omp_atomic_mutex): Likewise.
21759         (create_task_copyfn): Likewise.
21760         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
21761         Remove old union trick.  Initialize constant offsets.
21762         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
21763         INDIRECT_REF.  Init base_alias_set properly.
21764         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
21765         (vn_reference_fold_indirect): Adjust for MEM_REFs.
21766         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
21767         for ARRAY_REFs.
21768         (may_insert): Remove.
21769         (visit_reference_op_load): Do not test may_insert.
21770         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
21771         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
21772         a field to store the constant offset this op applies.
21773         (run_scc_vn): Adjust prototype.
21774         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
21775         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
21776         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
21777         bother about volatile qualifiers on pointers.
21778         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
21779         * tree-ssa-loop-ivopts.c
21780         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
21781         (strip_offset_1): Likewise.
21782         (find_interesting_uses_address): Replace INDIRECT_REF handling with
21783         MEM_REF handling.
21784         (get_computation_cost_at): Likewise.
21785         * ipa-pure-const.c (check_op): Handle MEM_REF.
21786         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
21787         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
21788         and constants.
21789         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
21790         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
21791         (eliminate_local_variables_1): Likewise.
21792         (create_call_for_reduction_1): Likewise.
21793         (create_loads_for_reductions): Likewise.
21794         (create_loads_and_stores_for_name): Likewise.
21795         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
21796         (ssa_accessed_in_tree): Handle MEM_REF.
21797         (ssa_accessed_in_assign_rhs): Likewise.
21798         (update_type_size): Likewise.
21799         (analyze_accesses_for_call_stmt): Likewise.
21800         (analyze_accesses_for_assign_stmt): Likewise.
21801         (transform_access_sites): Likewise.
21802         (transform_allocation_sites): Likewise.
21803         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
21804         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
21805         not handle INDIRECT_REF.
21806         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
21807         (cond_store_replacement): Likewise.
21808         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21809         MEM_REF, no not handle INDIRECT_REFs.
21810         (insert_into_preds_of_block): Properly initialize avail.
21811         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
21812         for ARRAY_REFs.  Properly handle reference lookups that
21813         require a bit re-interpretation.
21814         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
21815         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
21816         (build_ref_for_offset_1): Remove.
21817         (build_ref_for_offset): Build MEM_REFs.
21818         (gate_intra_sra): Disable for now.
21819         (sra_ipa_modify_expr): Handle MEM_REF.
21820         (ipa_early_sra_gate): Disable for now.
21821         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
21822         MEM_REF handling.
21823         (disqualify_base_of_expr): Likewise.
21824         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
21825         MEM_REF handling.
21826         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
21827         Use mem_ref_offset.  Remove bogus folding.
21828         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
21829         (make_fancy_name_1): Add support for MEM_REF.
21830         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
21831         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
21832         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
21833         (compute_complex_ancestor_jump_func): Likewise.
21834         (ipa_analyze_virtual_call_uses): Likewise.
21835         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
21836         INDIRECT_REF folding with more generalized MEM_REF folding.
21837         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
21838         (forward_propagate_addr_into_variable_array_index): Also handle
21839         &ARRAY + I in addition to &ARRAY[0] + I.
21840         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
21841         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
21842         creates assignments with overlap.
21843         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
21844         (get_frame_field): Likewise.
21845         (get_nonlocal_debug_decl): Likewise.
21846         (convert_nonlocal_reference_op): Likewise.
21847         (struct nesting_info): Add mem_refs pointer-set.
21848         (create_nesting_tree): Allocate it.
21849         (convert_local_reference_op): Insert to be folded mem-refs.
21850         (fold_mem_refs): New function.
21851         (finalize_nesting_tree_1): Perform defered folding of mem-refs
21852         (free_nesting_tree): Free the pointer-set.
21853         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
21854         (vectorizable_load): Likewise.
21855         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
21856         (propagate_with_phi): Likewise.
21857         * tree-object-size.c (addr_object_size): Handle MEM_REFs
21858         instead of INDIRECT_REFs.
21859         (compute_object_offset): Handle MEM_REF.
21860         (plus_stmt_object_size): Handle MEM_REF.
21861         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
21862         for &MEM_REF.
21863         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
21864         (symbol_marked_for_renaming): Likewise.
21865         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
21866         (fold-const.o): Add $(TREE_FLOW_H).
21867         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
21868         (find_func_clobbers): Likewise.
21869         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
21870         (decompose_access): Likewise.
21871         (replace_field_acc): Likewise.
21872         (replace_field_access_stmt): Likewise.
21873         (insert_new_var_in_stmt): Likewise.
21874         (get_stmt_accesses): Likewise.
21875         (reorg_structs_drive): Disable.
21876         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
21877         (ix86_canonical_va_list_type): Likewise.
21878
21879 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21880
21881         PR other/44566
21882         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
21883         * target.def (struct gcc_target): Replace enum reg_class with
21884         reg_class_t in hook argument / return types.
21885         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
21886         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
21887         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
21888         * targhooks.h (default_branch_target_register_class): Likewise.
21889         (default_ira_cover_classes, default_secondary_reload): Likewise.
21890         (default_memory_move_cost, default_register_move_cost): Likewise.
21891         * targhooks.c (default_branch_target_register_class): Likewise.
21892         (default_ira_cover_classes, default_secondary_reload): Likewise.
21893         (default_memory_move_cost, default_register_move_cost): Likewise.
21894         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
21895         * bt-load.c (branch_target_load_optimize): Likewise.
21896         * ira.c (setup_cover_and_important_classes): Likewise.
21897         * ira-costs.c (copy_cost): Likewise.
21898         * reload1.c (emit_input_reload_insns): Likewise.
21899         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21900         * config/frv/frv.c (frv_secondary_reload): Likewise.
21901         * config/s390/s390.c (s390_secondary_reload): Likewise.
21902         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
21903         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
21904         (ix86_register_move_cost): Likewise.
21905         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
21906         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
21907         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
21908         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
21909         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
21910         (rs6000_ira_cover_classes): Likewise.
21911         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
21912         * config/picochip/picochip-protos.h (picochip_secondary_reload):
21913         Likewise.
21914         * config/pa/pa.c (pa_secondary_reload): Likewise.
21915         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
21916         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
21917         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
21918         * doc/tm.texi: Regenerate.
21919
21920 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
21921
21922         PR bootstrrap/44726
21923         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
21924         use.
21925         (build_alias_set_optimal_p): Likewise.
21926         (build_base_obj_set_for_drs): Likewise.
21927
21928 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21929
21930         * target.def: Remove comment about licensing problems of function
21931         declarations.
21932
21933         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
21934         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
21935         * doc/tm.texi: Regenerate.
21936
21937         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
21938         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
21939
21940         * target.def (enum_va_list_p): Use DEFHOOK.
21941         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
21942         Rename ptype to ptree.
21943         * doc/tm.texi: Regenerate.
21944
21945         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
21946         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
21947         * doc/tm.texi: Regenerate.
21948
21949         * target.def (memory_move_cost): Use DEFHOOK.
21950         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
21951         Rename regclass AKA class to rclass.
21952         * doc/tm.texi: Regenerate.
21953
21954         * target.def (pragma_parse): Use DEFHOOK.
21955         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
21956         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
21957         * doc/tm.texi: Regenerate.
21958
21959         * target.def (pass_by_reference): Use DEFHOOK.
21960         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
21961         * doc/tm.texi: Regenerate.
21962
21963         * target.def (resolve_overloaded_builtin): Rename params to arglist.
21964         Use DEFHOOK.
21965         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
21966         * doc/tm.texi: Regenerate.
21967
21968         * target.def (return_pops_args): Use DEFHOOK.
21969         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
21970         Rename stack-size to size.
21971         * doc/tm.texi: Regenerate.
21972
21973         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
21974         last-sched_cycle to last_clock, cur_cycle to clock.
21975         * doc/tm.texi.in: Use @hook.
21976         * doc/tm.texi: Regenerate.
21977
21978         * target.def (print_operand, print_operand_address): Update comment.
21979         (print_operand_punct_valid_p): Likewise.
21980
21981 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21982
21983         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
21984         to rtl.h.
21985         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
21986         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
21987         * rtl-error.h: New.
21988         * regrename.c: Do not include toplev.h. Include rtl-error.h.
21989         * rtl-error.c: Likewise.
21990         * reload.c: Likewise.
21991         * recog.c:  Likewise.
21992         * sel-sched.c: Likewise.
21993         * function.c: Likewise.
21994         * reg-stack.c: Likewise.
21995         * cfgrtl.c: Likewise.
21996         * reload1.c: Likewise.
21997         * final.c: Include rtl-error.
21998         * Makefile.in: Adjust dependencies.
21999
22000 2010-06-30  Jan Hubicka  <jh@suse.cz>
22001
22002         PR middle-end/PR44706
22003         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
22004         to return the value.
22005
22006 2010-06-30  Michael Matz  <matz@suse.de>
22007
22008         PR bootstrap/44699
22009         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
22010         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
22011         a gimple reg, attach the original VDEF to the last store in the
22012         sequence.
22013
22014 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
22015
22016         PR other/44034
22017         * config/darwin.c (darwin_override_options): Use renamed
22018         targetm.asm_out.emit_unwind_label.
22019
22020 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
22021
22022         PR tree-optimization/39799
22023         * tree-inline.c (remap_ssa_name): Initialize variable only if
22024         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22025
22026 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
22027
22028         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
22029
22030 2010-06-30  Richard Guenther  <rguenther@suse.de>
22031
22032         PR target/44722
22033         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
22034         against oscillation with reverse peephole2.
22035
22036 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22037
22038         PR target/44721
22039         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22040         Fix last commit.
22041
22042 2010-06-30  Nick Clifton  <nickc@redhat.com>
22043
22044         * config/rx/rx-modes.def: New file.
22045         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
22046         (CC_REGNUM): Define.
22047         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
22048         register.
22049         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
22050         (SELECT_CC_MODE): Define.
22051         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
22052         (reg:CC CC_REG) instead of (cc0).
22053         (attr "cc"): Delete.
22054         (cbranchsi4): Do not split compare and branch here. Instead move
22055         it to...
22056         (cbranchsi4_<code>): ... here.  New patterns.
22057         (cmpsi): Call rx-compare_redundant to find out if it is necessary
22058         to emit the compare instruction.
22059         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
22060         cc_status flags.
22061         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
22062         FIRST_PSEUDO_REGNUM.
22063         (rx_expand_prologue, rx_expand_epilogue): Likewise.
22064         (rx_notice_update_cc): Delete.
22065         (rx_cc_modes_compatible): New function.
22066         (flags_needed_for_conditional): New function.
22067         (flags_from_mode): New function.
22068         (rx_compare_redundant): New function - scans backwards through
22069         insn list to find out if condition flags are already set correctly.
22070         (TARGET_CC_MODES_COMPATIBLE): Define.
22071         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
22072
22073         * config/rx/rx.h (BRANCH_COST): Define.
22074         (REGISTER_MOVE_COST): Define.
22075         * config/rx/predicates (rx_source_operand): Allow all constant types.
22076         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
22077         (tstsi4): New pattern.
22078         * config/rx/rx.c (rx_memory_move_cost): Define.
22079         (TARGET_MEMORY_MOVE_COST): Define.
22080
22081 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22082
22083         * tree.h (block_may_fallthru): Declare here.
22084         * tree-flow.h (block_may_fallthru): Do not declare here.
22085         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
22086         bitmap.h
22087         * Makefile.in (c-typeck.o): Update dependencies.
22088
22089 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
22090
22091         PR debug/44694
22092         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
22093         * cselib.c (cfa_base_preserved_regno): New static variable.
22094         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
22095         of REGNO (cfa_base_preserved_val->locs->loc).
22096         (cselib_preserve_cfa_base_value): Add regno argument, set
22097         cfa_base_preserved_regno to it.
22098         (cselib_invalidate_regno): Allow removal of registers other than
22099         cfa_base_preserved_regno from cfa_base_preserved_val.
22100         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
22101         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
22102         of MEM addresses, if not on LHS.
22103         (reverse_op): Don't add reverse ops for cfa_base_rtx.
22104         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
22105
22106 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
22107
22108         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
22109         static variables.
22110         (peep2_buf_position): New static function.
22111         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
22112         peephole2_optimize): Use it.
22113         (peep2_attempt, peep2_update_life): New static functions, broken out
22114         of peephole2_optimize.
22115         (peep2_fill_buffer): New static function.
22116         (peephole2_optimize): Change the main loop to try to fill the buffer
22117         with the maximum number of insns before matching them against
22118         peepholes.  Use a forward scan.  Remove special case for targets with
22119         conditional execution.
22120         * genrecog.c (change_state): Delete dead code.
22121         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22122         Rewrite so as not to expect the second insn to have had a peephole
22123         applied yet.
22124
22125 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22126
22127         * genhooks.c (emit_findices): Cast field precision to int.
22128         (emit_documentation): Likewise.
22129
22130 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
22131
22132         PR tree-optimization/43801
22133         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
22134         if old_decl was DECL_ONE_ONLY.
22135
22136         PR debug/44668
22137         * dwarf2out.c (add_accessibility_attribute): New function.
22138         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
22139         instead of adding DW_AT_accessibility manually.
22140         (gen_enumeration_type_die, gen_struct_or_union_type_die,
22141         gen_typedef_die): Use it.
22142
22143 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22144
22145         * vmsdbgout.c (full_name): Just output the file name if not native.
22146
22147 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22148
22149         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
22150         (funcnam_table): New static table.
22151         (funcnum_table): New static table.
22152         (write_rtnbeg): Write value saved in funcnum_table.
22153         (write_rtnend): Write value saved in funcnum_table.
22154         (vmsdbgout_begin_function): Save current function info in
22155         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
22156         (vmsdbgout_finish): Iterate over funcnum_table.
22157
22158 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22159
22160         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
22161         (vmsdbgout_type_decl): Declare
22162         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
22163         (FUNC_EPILOGUE_LABEL): New macro
22164         (vmsdbgout_begin_epilogue): New function.
22165         (vmsdbgout_type_decl): New function.
22166
22167 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22168
22169         * vmsdbg.h: Update copyright.
22170
22171 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22172
22173         * vmsdbg.h (DST_K_TBG): New DST constant.
22174         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
22175         (write_modbeg): Cast module_language to avoid warning.
22176         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
22177
22178 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22179
22180         PR other/44034
22181         * target.def, doc/tm.texi.in, genhooks.c: New files.
22182         * target.h: Instead of defining individual hook members,
22183         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
22184         include target.def.
22185         * target-def.h: Instead of defining individual hook initializers,
22186         include target-hooks-def.h.
22187         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
22188         targetm.live_on_entry -> targetm.extra_live_on_entry
22189         targetm.sched.md_finish ->targetm.sched.finish
22190         targetm.sched.md_init -> targetm.sched.init
22191         targetm.sched.md_init_global -> targetm.sched.init_global
22192         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
22193         targetm.asm_out.except_table_label ->
22194           targetm.asm_out.emit_except_table_label
22195         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
22196         targetm.target_help -> targetm.help
22197         targetm.vectorize.builtin_support_vector_misalignment ->
22198           targetm.vectorize.support_vector_misalignment
22199         targetm.file_start_app_off -> targetm.asm_file_start_app_off
22200         targetm.file_start_file_directive ->
22201          targetm.asm_file_start_file_directive
22202         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
22203         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
22204         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
22205         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
22206           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
22207         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
22208           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
22209         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
22210         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
22211         * Makefile.in (TARGET_H): Depend on target.def.
22212         (TARGET_DEF_H): Depend on target-hooks-def.h.
22213         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
22214         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
22215         * doc/tm.texi: Regenerate.
22216
22217         * Makefile.in (s-tm-texi): Remove stray tab / rule.
22218
22219         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
22220         (targetm.sched.init): Likewise.
22221
22222 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22223
22224         PR bootstrap/44713
22225         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
22226         (function_arg_advance_32): Const-ify TYPE parameter.
22227         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
22228         (ix86_function_arg_advance): Change type of NAMED to bool.
22229         (function_arg_32): Const-ify CUM and TYPE parameters.
22230         (function_arg_64): Likewise.  Change type of NAMED to bool.
22231         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
22232         to bool.
22233         (ix86_function_arg): Change type of NAMED to bool.
22234         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
22235         last argument as a bool.
22236
22237 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22238
22239         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
22240         (OVERRIDE_OPTIONS): Add note of obsolescence.
22241         Replace references with references to TARGET_OPTION_OVERRIDE.
22242         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
22243          the macro).
22244         * targhooks.c (default_target_option_override): New function.
22245         * targhooks.h (default_target_option_override): Declare.
22246         * target.h (struct gcc_target): Add override member to
22247         target_option member.
22248         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
22249         targetm.target_option.override call.
22250         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
22251         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
22252
22253 2010-06-29  Jan Hubicka  <jh@suse.cz>
22254
22255         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
22256
22257 2010-06-29  Jan Hubicka  <jh@suse.cz>
22258
22259         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
22260         unreachable.
22261         (rebuild_frequencies): New function.
22262         * predict.h (rebuild_frequencies): Declare.
22263         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
22264         entry block and edge reaching new_entry.
22265         (tree_function_versioning): When doing partial cloning, rebuild
22266         frequencies when done.
22267         * passes.c (execute_function_todo): Use rebild_frequencies.
22268
22269 2010-06-29  Richard Guenther  <rguenther@suse.de>
22270
22271         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
22272         * tree-flow.h (enum noalias_state): Remove.
22273         (struct var_ann_d): Remove noalias_state member.
22274
22275 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
22276
22277         PR target/43902
22278         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
22279         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
22280         (maddhidi4): Likewise.
22281
22282         Revert parts of the change for PR25130.
22283         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22284         MEM_ALIAS_SET.
22285
22286 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22287
22288         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
22289         targetm.calls.function_incoming_arg, and
22290         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
22291         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
22292         * target.h (struct gcc_target): Add function_arg_advance,
22293         function_arg, and function_incoming_arg fields.
22294         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
22295         (TARGET_FUNCTION_INCOMING_ARG): Define.
22296         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
22297         and TARGET_FUNCTION_INCOMING_ARG.
22298         * targhooks.h (default_function_arg_advance): Declare.
22299         (default_function_arg, default_function_incoming_arg): Declare.
22300         * targhooks.c (default_function_arg_advance): New function.
22301         (default_function_arg, default_function_incoming_arg): New function.
22302         * config/i386/i386.c (function_arg_advance): Rename to...
22303         (ix86_function_arg_advance): ...this.  Make static.
22304         (function_arg): Rename to...
22305         (ix86_function_arg): ...this.  Make static.
22306         (TARGET_FUNCTION_ARG_ADVANCE): Define.
22307         (TARGET_FUNCTION_ARG): Define.
22308         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
22309         (FUNCTION_ARG): Delete.
22310         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
22311         (function_arg): Delete prototype.
22312
22313 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22314
22315         * reginfo.c (init_reg_sets_1): Adjust comments.
22316         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
22317         * calls.c (prepare_call_address): Likewise.
22318         (emit_call_1): Use targetm.calls.return_pops_args.
22319         (expand_call): Likewise.
22320         * function.c (assign_parms): Likewise.
22321         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
22322         * target.h (struct gcc_target) [struct calls]: Add
22323         return_pops_args field.
22324         * targhooks.h (default_return_pops_args): Declare.
22325         * targhooks.c (default_return_pops_args): Define.
22326         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
22327         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
22328         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
22329         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
22330         documentation.
22331         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
22332         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
22333         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
22334         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
22335         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
22336         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
22337         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
22338         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
22339         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
22340         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
22341         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
22342         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
22343         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
22344         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
22345         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
22346         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
22347         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
22348         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
22349         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
22350         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
22351         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
22352         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
22353         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
22354         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
22355         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
22356         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
22357         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
22358         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
22359         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
22360         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
22361         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
22362         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
22363         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
22364         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
22365         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
22366         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
22367         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
22368         * config/i386/i386.c (ix86_return_pops_args): Make static.
22369         Constify arguments.
22370         (TARGET_RETURN_POPS_ARGS): Define.
22371         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
22372         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
22373         (TARGET_RETURN_POPS_ARGS): Define.
22374         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
22375         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
22376         (TARGET_RETURN_POPS_ARGS): Define.
22377
22378 2010-06-29  Richard Guenther  <rguenther@suse.de>
22379
22380         PR middle-end/44667
22381         * tree-inline.c (initialize_inlined_parameters): Make sure
22382         to remap the inlined parameter variable substitutions types.
22383
22384 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
22385
22386         PR rtl-optimization/44659
22387         * combine.c (make_compound_operation) <SUBREG>: Do not return the
22388         result of force_to_mode if it partially re-expanded the compound.
22389
22390 2010-06-28  Jan Hubicka  <jh@suse.cz>
22391
22392         PR middle-end/44671
22393         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
22394         RESULT_DECL.
22395
22396 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
22397
22398         * double-int.h (force_fit_type_double): Remove declaration.
22399         * double-int.c (force_fit_type_double): Move to tree.c.
22400         * tree.h (force_fit_type_double): Declare.
22401         * tree.h (force_fit_type_double): Moved from double-int.c. Use
22402         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
22403         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
22404         * convert.c (convert_to_pointer): Adjust call to
22405         force_fit_type_double.
22406         * tree-vrp.c (extract_range_from_assert,
22407         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
22408         * fold-const.c: Update comment.
22409         (int_const_binop, fold_convert_const_int_from_int,
22410         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
22411         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
22412         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
22413         round_up_loc): Adjust call to force_fit_type_double.
22414
22415 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22416
22417         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
22418
22419 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22420
22421         * tree-sra.c (convert_callers): New parameter, change fndecls of
22422         recursive calls.
22423         (modify_function): Pass the old decl to convert_callers.
22424
22425 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22426
22427         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
22428         ipa_check_create_node_params and ipa_initialize_node_params with
22429         checking asserts they are not necessary.
22430
22431 2010-06-28  Jan Hubicka  <jh@suse.cz>
22432
22433         PR tree-optimization/44687
22434         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
22435
22436 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22437
22438         PR c++/44535
22439         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
22440         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
22441         instead of BINFO_BASE_BINFO.
22442
22443 2010-06-28  Michael Matz  <matz@suse.de>
22444
22445         PR middle-end/44592
22446         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
22447         proper VDEF chain for intermediate stores in the sequence.
22448
22449 2010-06-28  Jan Hubicka  <jh@suse.cz>
22450
22451         PR tree-optimization/44357
22452         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
22453         uninlinable functions.
22454
22455 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22456
22457         * config.gcc (powerpc*-*-*): Handle titan.
22458         * config/rs6000/rs6000.c (titan_cost): New costs.
22459         (rs6000_override_options): Add "titan" to processor_target_table.
22460         Add Titan to branch alignment logic.
22461         Correctly set rs6000_cost for titan.
22462         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
22463         * config/rs6000/titan.md: New file.
22464         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
22465
22466 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22467
22468         * tree-browser.c (TB_history_stack): Convert to a VEC.
22469         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
22470         (TB_history_prev): Likewise.
22471
22472 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22473
22474         * vec.h (vec_heap_free): Add parentheses around free.
22475
22476 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
22477
22478         * system.h: Poison GCC_EXCEPT_H for front-end files.
22479
22480         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
22481         langhook.
22482         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
22483         Define to NULL by default.
22484         * except.h: Define GCC_EXCEPT_H.
22485         (doing_eh): Remove prototype.
22486         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
22487         (lang_protect_cleanup_actions): Remove.
22488         * except.c (lang_protect_cleanup_actions): Remove.
22489         (doing_eh): Remove.
22490         (gen_eh_region): Don't check doing_eh here.
22491         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
22492         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
22493         instead of lang_protect_cleanup_actions.
22494         * omp-low.c (maybe_catch_exception): Likewise.
22495         * Makefile.in: Update dependencies.
22496
22497 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
22498
22499         * cgraph.h (struct varpool_node): new used_from_object_file flag.
22500         (struct cgraph_local_info): new used_from_object_file flag.
22501         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
22502         (cgraph_clone_node): initialize used_from_object_file.
22503         (cgraph_create_virtual_clone): initialize used_from_object_file.
22504         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
22505         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
22506         when compiling with -fwhole-program.
22507         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
22508         internal resolver.
22509         * ipa.c (function_and_variable_visibility): Set externally_visible
22510         flag of varpool_node if used_from_object_file flag is set.
22511         (cgraph_externally_visible_p): check used_from_object_file flag.
22512         * doc/invoke.texi (-fwhole-program option): Change description of
22513         externally_visible attribute accordingly.
22514         * doc/extend.texi (externally_visible): Ditto.
22515
22516 2010-06-27  Jan Hubicka  <jh@suse.cz>
22517
22518         * params.def (max-inline-insns-auto): Default to 40.
22519         * doc/invoke.texi (max-inline-insns-auto): Document the change.
22520
22521 2010-06-27  Jan Hubicka  <jh@suse.cz>
22522
22523         PR middle-end/44671
22524         PR middle-end/44686
22525         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
22526         signature change.
22527         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
22528         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
22529
22530 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
22531
22532         * target.h (struct gcc_target): Add register_move_cost field.
22533         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
22534         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
22535         * targhooks.c (default_register_move_cost): New function.
22536         * targhooks.h (default_register_move_cost): Declare function.
22537         * defaults.h (REGISTER_MOVE_COST): Delete.
22538         * ira-int.h (ira_register_move_cost): Update comment.
22539         * ira.c (ira_register_move_cost): Update comment.
22540         * reload.h (register_move_cost): Declare.
22541         * reginfo.c (register_move_cost): New function.
22542         (move_cost): Update comment.
22543         (init_move_cost, memory_move_secondary_cost): Replace
22544         REGISTER_MOVE_COST with register_move_cost.
22545         * postreload.c (reload_cse_simplify_set): (Ditto.).
22546         * reload.c (find_valid_class, find_reloads): (Ditto.).
22547         * reload1.c (choose_reload_regs): (Ditto.).
22548         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
22549         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
22550         * doc/md.texi (can_create_pseudo_p): Update documentation.
22551
22552         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
22553         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
22554         * config/i386/i386.h (ix86_memory_move_cost): Make static.
22555         (TARGET_MEMORY_MOVE_COST): Define.
22556
22557         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
22558         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
22559         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
22560         (TARGET_MEMORY_MOVE_COST): Define.
22561
22562 2010-06-27  Richard Guenther  <rguenther@suse.de>
22563
22564         PR tree-optimization/44683
22565         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
22566         false edge from the inverted condition.
22567
22568 2010-06-27  Richard Guenther  <rguenther@suse.de>
22569
22570         PR middle-end/44684
22571         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
22572         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
22573         for register LHS.  Or non-store assignments.
22574
22575 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
22576
22577         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
22578         (sparc_emit_set_const64): Likewise.  Remove disabled code.
22579         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
22580         (sparc_emit_set_const64): Likewise.
22581
22582 2010-06-26  Catherine Moore  <clm@codesourcery.com>
22583
22584         * config/mips/mips.md (alu_type): New attribute.
22585         (type): Infer type from alu_type.
22586         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
22587         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
22588         *subsi3_extended, negsi2, negdi2, *low<mode>,
22589         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
22590         xor<mode>3, *nor<mode>3,
22591         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
22592         *zero_extendhi_truncqi):  Set alu_type instead of type.
22593
22594 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
22595
22596         * config/alpha/alpha.c (alpha_need_linkage): Adjust
22597         splay_tree_new_ggc call.
22598         (alpha_use_linkage): Likewise.
22599
22600 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
22601
22602         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
22603         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
22604         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
22605         (static_specs): Remove switches_need_spaces.
22606         (process_command, do_self_spec): Hardcode handling "-o" instead of
22607         checking switches_need_spaces.
22608         * system.h (SWITCHES_NEED_SPACES): Poison.
22609
22610 2010-06-26  Richard Guenther  <rguenther@suse.de>
22611
22612         PR tree-optimization/44393
22613         * tree-loop-distribution.c (generate_loops_for_partition): Fix
22614         stmt removal and VOP renaming.
22615         (generate_memset_zero): Remove redundant stmt updating.
22616         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
22617         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
22618
22619 2010-06-26  Jan Hubicka  <jh@suse.cz>
22620
22621         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
22622         edges comming from header are equivalent.
22623         (visit_bb): Handle PHIs correctly.
22624         * tree-inline.c (copy_phis_for_bb): Be able to copy
22625         PHI from entry edge.
22626         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
22627
22628 2010-06-26  Richard Guenther  <rguenther@suse.de>
22629
22630         PR middle-end/44674
22631         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
22632         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
22633
22634 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
22635
22636         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
22637         add_infile, alloc_switch): New.
22638         (process_command): Remove variable lang_n_infiles.  Process
22639         options in a single pass.  Use new functions for allocating
22640         infiles and switches arrays.  Properly skip operands of
22641         -Xpreprocessor and -Xassembler.
22642
22643 2010-06-26  Jan Hubicka  <jh@suse.cz>
22644
22645         PR middle-end/44671
22646         * cgraphunit.c (cgraph_function_versioning): Remove wrong
22647         cgraph_make_decl_local call; fix typo copying RTL data.
22648
22649 2010-06-25  DJ Delorie  <dj@redhat.com>
22650
22651         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
22652         (m32c_output_aligned_common): Likewise.
22653         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22654         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22655         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
22656         (m32c_register_pragmas): Register it.
22657         * config/m32c/m32c.c (m32c_get_pragma_address): New.
22658         (m32c_insert_attributes): Set #pragma address decls volatile.
22659         (pragma_entry_eq): New.
22660         (pragma_entry_hash): New.
22661         (m32c_note_pragma_address): New.
22662         (m32c_get_pragma_address): New.
22663         (m32c_output_aligned_common): New.
22664         * doc/extend.texi: Document the new pragma.
22665
22666         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
22667         also.
22668         * config/m32c/predicates.md (m32c_any_operand): Check the code
22669         instead of memory_operand so as to allow matching volatile MEMs.
22670         (m32c_nonimmediate_operand): Likewise.
22671         (mra_operand): Allow volatiles.
22672
22673 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
22674
22675         PR debug/44610
22676         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
22677         address if the offset is unknown.
22678
22679 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
22680
22681         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
22682         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
22683         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
22684         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
22685         to ia64_start_function. Invoke it.
22686         * config/ia64/ia64.c (ia64_start_function): Call new function
22687         dwarf2out_vms_debug_main_pointer.
22688
22689 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22690
22691         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
22692         statements computing the true predicate.
22693
22694 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22695
22696         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
22697         to boolean_true_node.
22698         (reset_bb_predicate): New.
22699         (predicate_bbs): Call reset_bb_predicate.
22700
22701 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22702
22703         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
22704         (tree_if_conversion): Returns true when something has been changed.
22705         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
22706         changed something.
22707
22708 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22709
22710         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
22711         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
22712         * tree-if-conv.c: Include dbgcnt.h.
22713         (tree_if_conversion): Use if_conversion_tree to count the number of
22714         if-convertible loops.
22715
22716 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
22717
22718         * common.opt (fprefetch-loop-arrays): Re-define
22719         -fprefetch-loop-arrays as a tri-state option with the initial
22720         value of -1.
22721         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
22722         pass only when flag_prefetch_loop_arrays > 0.
22723         * toplev.c (process_options): Note that, with tri-states,
22724         flag_prefetch_loop_arrays>0 means prefetching is enabled.
22725         * config/i386/i386.c (override_options): Enable prefetching at -O3
22726         for a set of CPUs that sw prefetching is helpful.
22727         (software_prefetching_beneficial_p): New.  Return TRUE if software
22728         prefetching is beneficial for the given CPU.
22729
22730 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22731
22732         PR rtl-optimization/44326
22733         * implicit-zee.c (find_removable_zero_extends): Replace
22734         INSN_P with NONDEBUG_INSN_P.
22735
22736 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22737
22738         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
22739         (struct ipa_node_params): Removed the modification_analysis_done flag.
22740         (ipa_is_param_modified): Removed.
22741         (ipa_analyze_node): Declare.
22742         (ipa_compute_jump_functions): Remove declaration.
22743         (ipa_count_arguments): Likewise.
22744         (ipa_detect_param_modifications): Likewise.
22745         (ipa_analyze_params_uses): Likewise.
22746         * ipa-prop.c (struct param_analysis_info): New type.
22747         (visit_store_addr_for_mod_analysis): Removed.
22748         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
22749         moved down in the file.
22750         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
22751         (ipa_count_arguments): Made static.
22752         (mark_modified): New function.
22753         (is_parm_modified_before_call): New function.
22754         (compute_pass_through_member_ptrs): New parameter parms_info, call
22755         is_parm_modified_before_call instead of ipa_is_param_modified.
22756         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
22757         it to compute_pass_through_member_ptrs.
22758         (ipa_compute_jump_functions): New parameter parms_info, pass it to
22759         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
22760         on the callee if it is analyzed.  Made static.
22761         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
22762         is_parm_modified_before_call instead of ipa_is_param_modified.
22763         (ipa_analyze_call_uses): New parameter parms_info, pass it to
22764         ipa_analyze_indirect_call_uses.
22765         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
22766         ipa_analyze_call_uses.
22767         (ipa_analyze_params_uses): New parameter parms_info, pass it to
22768         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
22769         (ipa_analyze_node): New function.
22770         (ipa_print_node_params): Do not dump the modified flag.
22771         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
22772         it.  Do not stream the modified parameter flag.
22773         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
22774         it.  Do not stream the modified parameter flag.
22775         * ipa-cp.c (ipcp_analyze_node): Removed.
22776         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
22777         with only a call to ipa_analyze_node.
22778         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
22779         node with only a call to ipa_analyze_node.
22780
22781 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22782
22783         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
22784
22785 2010-06-25  Jan Hubicka  <jh@suse.cz>
22786
22787         * tree-pass.h (pass_split_functions): Declare.
22788         * opts.c (decode_options): Enable function splitting at -O2
22789         * timevar.def (TV_IPA_FNSPLIT): New macro.
22790         * ipa-split.c: New file.
22791         * common.opt (-fpartial-inlining): New flag.
22792         * Makefile.in (ipa-split.o): New object file.
22793         * passes.c (init_optimization_passes): Add ipa-split.
22794         * params.def (partial-inlining-entry-probability): New parameters.
22795         * doc/invoke.texi (-fpartial-inlining): New.
22796
22797 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22798
22799         PR 44665
22800         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
22801         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
22802         (gimplify_expr): Likewise.
22803
22804 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22805
22806         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
22807         statements instead of bailing out on them.
22808         (ipa_analyze_indirect_call_uses): Do not require that loads from the
22809         parameter are in the same BB as the condition.  Update comments.
22810
22811 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
22812
22813         PR middle-end/43866
22814         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
22815         true or always false, return NULL_TREE.
22816         (tree_unswitch_single_loop): Optimize conditions even when reaching
22817         max-unswitch-level parameter.  If num > 0, optimize first all conditions
22818         using entry checks, then do still reachable block discovery and consider
22819         only conditions in still reachable basic blocks in the loop.
22820
22821         PR tree-optimization/44539
22822         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
22823         the call doesn't have LHS, but has VDEF.
22824
22825 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22826
22827         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
22828         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
22829         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
22830         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
22831         * system.h (MODIFY_TARGET_NAME): Poison.
22832
22833 2010-06-25  Alan Modra  <amodra@gmail.com>
22834
22835         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
22836         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
22837         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22838         CMODEL_LARGE as default.
22839         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
22840         (offsettable_ok_by_alignment): Delete.
22841         (rs6000_emit_move): Remove mcmodel=medium optimization.
22842
22843 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22844
22845         With large parts from Jim Wilson:
22846         PR target/43902
22847         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
22848         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22849         * optabs.c (optab_for_tree_code): Likewise.
22850         (expand_widen_pattern_expr): Likewise.
22851         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
22852         out of execute_optimize_widening_mul.
22853         (convert_plusminus_to_widen): New function.
22854         (execute_optimize_widening_mul): Use the two new functions.
22855         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
22856         Remove code to generate widening multiply-accumulate.  Add support
22857         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22858         * gimple-pretty-print.c (dump_ternary_rhs): New function.
22859         (dump_gimple_assign): Call it when appropriate.
22860         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
22861         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
22862         (expand_gimple_stmt_1): Likewise.
22863         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
22864         WIDEN_MULT_MINUS_EXPR.
22865         * tree-ssa-operands.c (get_expr_operands): Likewise.
22866         * tree-inline.c (estimate_operator_cost): Likewise.
22867         * gimple.c (extract_ops_from_tree_1): Renamed from
22868         extract_ops_from_tree.  Add new arg for a third operand; fill it.
22869         (gimple_build_assign_stat): Support operations with three operands.
22870         (gimple_build_assign_with_ops_stat): Likewise.
22871         (gimple_assign_set_rhs_from_tree): Likewise.
22872         (gimple_assign_set_rhs_with_ops_1): Renamed from
22873         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
22874         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
22875         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
22876         WIDEN_MULT_MINUS_EXPR.
22877         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
22878         (extract_ops_from_tree_1): Adjust declaration.
22879         (gimple_assign_set_rhs_with_ops_1): Likewise.
22880         (gimple_build_assign_with_ops): Pass NULL for last operand.
22881         (gimple_build_assign_with_ops3): New macro.
22882         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
22883         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
22884         functions.
22885         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
22886         (verify_gimple_assign): Call it.
22887         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
22888         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
22889         functions for dealing with three-operand statements.
22890         * tree.c (commutative_ternary_tree_code): New function.
22891         * tree.h (commutative_ternary_tree_code): Declare it.
22892         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
22893         ternary statements.
22894         (gimple_assign_nonzero_warnv_p): Likewise.
22895         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
22896         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
22897         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
22898         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
22899         (struct hashtable_expr): New member ternary in the union.
22900         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
22901         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
22902         (iterative_hash_hashable_expr): Likewise.
22903         (print_expr_hash_elt): Handle EXPR_TERNARY.
22904         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
22905         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
22906         statements.  Handle GIMPLE_TERNARY_RHS.
22907
22908 2010-06-25  Jan Hubicka  <jh@suse.cz>
22909
22910         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
22911
22912 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
22913
22914         PR c/44517
22915         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
22916         parameters are not good.
22917         (c_parser_parameter_declaration): Error unknown type name if the type
22918         name can't start declaration specifiers.
22919
22920 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22921
22922         * gcc.c (translate_options): Don't mention +e in comment.
22923         (process_command): Don't handle +e specially.
22924
22925 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22926
22927         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
22928
22929         * ira-build.c (merge_hard_reg_conflicts): New function.
22930         (create_cap_allocno, copy_info_to_removed_store_destinations,
22931         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
22932         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
22933         (remove_unnecessary_allocnos, remove_low_level_allocnos)
22934         copy_nifo_to_removed_store_destination): Use them.
22935         * ira-lives.c (make_hard_regno_born): New function, split out of
22936         make_regno_born.
22937         (make_allocno_born): Likewise.
22938         (make_hard_regno_dead): New function, split out of make_regno_dead.
22939         (make_allocno_dead): Likewise.
22940         (inc_register_pressure): New function, split out of set_allocno_live.
22941         (dec_register_pressure): New function, split out of clear_allocno_live.
22942         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
22943         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
22944         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
22945         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
22946         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
22947         mark_pseudo_regno_live.
22948         (process_bb_node_lives): Use mark_pseudo_regno_live,
22949         make_hard_regno_born and make_allocno_dead.
22950         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
22951         set_allocno_live, clear_allocno_live): Delete functions.
22952
22953         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
22954         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
22955         functions.
22956         (ira_flattening): Use ira_parent_allocno.
22957         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
22958         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
22959
22960         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
22961         statement.
22962
22963         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
22964         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
22965         minmax_set_iter_cond, minmax_set_iter_next,
22966         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
22967         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
22968         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
22969         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
22970         uses changed.
22971
22972         * ira-int.h (struct live_range, live_range_t): Renamed from struct
22973         ira_allocno_live_range and allocno_live_range_t; all uses changed.
22974         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
22975         All uses changed.
22976
22977 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
22978
22979         * thumb2.md (thumb2_tlobits_cbranch): Delete.
22980         (peephole2 to convert zero_extract/compare of single bit to
22981          lshift/compare): New.
22982
22983 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
22984
22985         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
22986         recursive call and call to 'int_const_binop'.
22987         (build_range_check, fold_cond_expr_with_comparison, unextend,
22988         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
22989         multiple_of_p): Adjust call to const_binop.
22990
22991 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
22992
22993         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
22994         determine size of XFmode operand.
22995         (XFmode extended DFmode push splitter): Ditto.
22996         (XFmode extended SFmode push splitter): Ditto.
22997
22998 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22999
23000         PR target/44588
23001         * config/i386/i386.md (extract_code): New.
23002         (<u>divmodqi4): Likewise.
23003         (divmodhiqi3): Likewise.
23004         (udivmodhiqi3): Likewise.
23005         (<u>divqi3): Remvoved.
23006
23007 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
23008
23009         PR middle-end/44492
23010         * recog.h (struct recog_data): Add is_asm field.
23011         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
23012         present in constraints of inline-asm operand and memory operand
23013         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
23014         (extract_insn): Initialize recog_data.is_asm.
23015         * doc/md.texi (Constraints): Document operand side-effect rules.
23016
23017 2010-06-24  Andi Kleen  <ak@linux.intel.com>
23018
23019         * c-parser.c (c_parser_conditional_expression): Call
23020         warn_for_omitted_condop.
23021         * doc/invoke.texi: Document omitted condop warning.
23022
23023 2010-06-24  Nick Clifton<nickc@redhat.com>
23024
23025         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
23026         insn in the sequence is a jump insn before setting its label.
23027
23028 2010-06-24  Alan Modra  <amodra@gmail.com>
23029
23030         * collect2.c (main): Match exactly --version and --help.
23031
23032 2010-06-24  DJ Delorie  <dj@redhat.com>
23033
23034         * config/m32c/m32c-pragma.c: Don't include rtl.h.
23035
23036 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
23037
23038         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
23039         using X87MODEF mode iterator.
23040         (pushsf splitter): Macroize splitter using P mode iterator.
23041         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
23042         mode iterator.
23043
23044         (*movxf_internal): Rename from *movxf_integer.
23045         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
23046         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
23047         (*movdf_internal): Rename from *movdf_integer.
23048         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
23049         (*movsf_internal): Rename from *movdf_1.
23050
23051 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
23052
23053         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
23054         (const_gimple_seq_node): Removed typedefs.
23055
23056         * gimple.h (gimple_seq_node_d, gimple_seq_node)
23057         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
23058
23059 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23060
23061         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
23062         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
23063         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
23064         and CODE_FOR_vec_extract_lo_v4df.
23065
23066         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
23067         Changed to define_insn_and_split.
23068         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
23069         (vec_extract_lo_v16hi): Likewise.
23070         (vec_extract_lo_v32qi): Likewise.
23071         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
23072         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
23073
23074 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
23075
23076         PR target/44640
23077         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
23078         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
23079         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
23080         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
23081         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
23082
23083         PR target/44640
23084         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
23085
23086         PR other/44644
23087         * df-core.c (struct df): Rename to df_d.
23088         * df.h (struct df): Likewise.
23089         * dse.h (struct df): Remove forward declaration.
23090         * recog.h (struct insn_data): Rename to:
23091         (struct_insn_data_d).  Adjusted all users.
23092
23093 2010-06-23  Arnaud Charlet  <charlet@adacore.com
23094
23095         PR ada/22220
23096         * doc/install.texi: Update requirements to build GNAT.
23097
23098 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
23099
23100         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
23101         enum type.
23102         (m68k_sched_attr_opx_type): Remove unreachable return.
23103         (m68k_sched_attr_opy_type): Likewise.
23104         (m68k_sched_attr_size): Likewise.
23105         (sched_get_opxy_mem_type): Likewise.
23106         (m68k_sched_attr_op_mem): Likewise.
23107
23108 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
23109
23110         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
23111         new statement and adjust VDEF only if necessary.  Remove superfluous
23112         call to maybe_clean_or_replace_eh_stmt.
23113         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
23114         copy the flags.
23115         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
23116         * tree-inline.c (copy_bb): ...and not there.
23117
23118 2010-06-22  Cary Coutant  <ccoutant@google.com>
23119
23120         * dwarf2out.c (is_nested_in_subprogram): New function.
23121         (should_move_die_to_comdat): Use it.
23122         (copy_ancestor_tree): Don't mark DIEs here.
23123         (copy_decls_walk): Start walk from root of newly-added tree;
23124         mark DIEs here instead.
23125
23126 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23127
23128         * config/i386/i386.md (unit): Also check sseishft1.
23129
23130 2010-06-22  Jan Hubicka  <jh@suse.cz>
23131
23132         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
23133         enabled.
23134
23135 2010-06-22  Jan Hubicka  <jh@suse.cz>
23136
23137         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
23138         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
23139         Return true if something changed.
23140         * df.h (df_confluence_function_n): Return bool.
23141         * df-core.c (df_worklist_propagate_forward,
23142         df_worklist_propagate_backward): Track changes and ages.
23143         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
23144         track ages.
23145         * dse.c (dse_confluence_n): Return always true.
23146
23147 2010-06-22  Jan Hubicka  <jh@suse.cz>
23148
23149         * bitmap.c (bitmap_clear_bit): Micro optimize.
23150
23151 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
23152
23153         * config/i386/i386.md (SWI1248x): New mode iterator.
23154         (SWI48x): Ditto.
23155         (SWI12): Ditto.
23156         (SWI24): Ditto.
23157
23158         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
23159         SWI1248x mode iterator.
23160         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
23161         using SWI124 mode iterator.
23162         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
23163         mode iterator.
23164         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
23165         *pushdi2_prologue_rex64 using P mode iterator.
23166         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
23167         using SWI48 mode iterator.
23168         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
23169         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
23170         using SWI1248x mode iterator.
23171         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
23172         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
23173         SWI48 mode iterator.
23174         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
23175         iterator.
23176         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
23177         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
23178         SWI12 mode iterator.
23179         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
23180         SWI12 mode iterator.
23181         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
23182         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
23183         SWI24 mode iterator.
23184         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
23185         SWI48 mode iterator.
23186         (mov<mode>_insn_1): New expander.
23187         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
23188         using SWI48x mode iterator.
23189
23190         (*movoi_internal_avx): Rename from *movoi_internal.
23191         (*movti_internal_rex64): Rename from *movti_rex64.
23192         (*movti_internal_sse): Rename from *movti_sse.
23193         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
23194         (*movdi_internal): Rename from *movdi_2.
23195         (*movsi_internal): Rename from *movsi_1.
23196         (*movhi_internal): Rename from *movhi_1.
23197         (*movqi_internal): Rename from *movqi_1.
23198
23199         (insv): Update the call to gen_movsi_insv_1 for rename.
23200         * config/i386/i386.c (promote_duplicated_reg): Ditto.
23201
23202 2010-06-22  Jan Hubicka  <jh@suse.cz>
23203
23204         * passes.c (execute_function_todo): Move call of statistics_fini_pass
23205         to ...
23206         (execute_todo) ... this one.
23207
23208 2010-06-22  Alan Modra  <amodra@gmail.com>
23209
23210         PR target/44364
23211         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23212         * caller-save.c (insert_restore, insert_save): Use non-validate
23213         form of adjust_address.
23214
23215 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23216
23217         PR target/39690
23218         * config/pa/pa.c (override_options): Disable
23219         -freorder-blocks-and-partition.
23220
23221 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
23222
23223         PR target/44615
23224         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
23225
23226         * config/i386/i386.md (type): Add sseishft1
23227
23228         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
23229         (ppro_insn_load): Likewise.
23230         (ppro_insn_store): Likewise.
23231         (ppro_insn_both): Likewise.
23232
23233         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
23234         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
23235         for type.
23236         (*vec_extractv2di_1_avx): Likewise.
23237         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
23238         type.  Remove atom_unit.
23239         (*vec_extractv2di_1_sse2): Likewise.
23240
23241 2010-06-21  DJ Delorie  <dj@redhat.com>
23242
23243         * diagnostic.h (diagnostic_classification_change_t): New.
23244         (diagnostic_context): Add history and push/pop list.
23245         (diagnostic_push_diagnostics): Declare.
23246         (diagnostic_pop_diagnostics): Declare.
23247         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
23248         from pragmas in a history chain instead of the global table.
23249         (diagnostic_push_diagnostics): New.
23250         (diagnostic_pop_diagnostics): New.
23251         (diagnostic_report_diagnostic): Scan history chain to find state
23252         of diagnostics as of the diagnostic location.
23253         * opts.c (set_option): Pass UNKNOWN_LOCATION to
23254         diagnostic_classify_diagnostic.
23255         (enable_warning_as_error): Likewise.
23256         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
23257         use in the history chain.
23258         * doc/extend.texi: Document pragma GCC diagnostic changes.
23259
23260 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
23261
23262         * dwarf2out.c (add_linkage_name): New function.  Don't add
23263         anything to DW_TAG_member DIEs.
23264         (add_name_and_src_coords_attributes): Use it.
23265         (gen_variable_die): Call it for C++ static data members if
23266         specification is DW_TAG_member.
23267
23268         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
23269         C++ char16_t and char32_t.
23270
23271         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
23272         * genattrtab.c: Include vecprim.h.
23273         (cached_attrs, cached_attr_count, attrs_seen_once,
23274         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
23275         attrs_cached_after): New variables.
23276         (find_attrs_to_cache): New function.
23277         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
23278         (write_test_expr): Add attrs_cached argument, return it too,
23279         attempt to cache non-const attributes used more than once in
23280         a single case handling.
23281         (write_attr_get): Use find_attrs_to_cache, for caching candidates
23282         emit cached_* variables.  Adjust write_attr_set callers.
23283         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
23284         to find attributes that should be cached in this block.  Adjust
23285         write_test_expr callers.
23286         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
23287         callers.
23288         (make_automaton_attrs): Adjust write_test_expr caller.
23289
23290         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
23291         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
23292         (make_automaton_attrs): If find_tune_attr returns non-NULL,
23293         write separate internal_dfa_insn_code_* and insn_default_latency_*
23294         functions for each attribute's value and emit init_sched_attrs
23295         function and function pointers.
23296         * genattr.c (const_attrs, reservations): New variables.
23297         (gen_attr): Add const attributes to const_attrs vector.
23298         (check_tune_attr, find_tune_attr): New functions.
23299         (main): Add reservations to reservations vector.  If find_tune_attr
23300         returns true, add prototype for init_sched_attrs and make
23301         internal_dfa_insn_code and insn_default_latency function pointers,
23302         otherwise define init_sched_attrs as dummy macro.
23303         * cfgexpand.c: Include insn-attr.h.
23304         (gimple_expand_cfg): Call init_sched_attrs.
23305
23306         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
23307
23308         PR target/44575
23309         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
23310         va_arg from a set of register save slots into a temporary,
23311         if the container is bigger than type size, do the copying
23312         using smaller mode or using memcpy.
23313
23314         PR bootstrap/44426
23315         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
23316         prototype.
23317         (sel_print_to_dot): Remove macro.
23318         (sel_print): Likewise.  New prototype.
23319         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
23320         (sel_print): New function.
23321
23322 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23323
23324         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
23325         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
23326
23327 2010-06-21  Nick Clifton  <nickc@redhat.com>
23328
23329         * config/rx/rx.h (PTRDIFF_TYPE): Define.
23330         (SMALL_REGISTER_CLASS): Define (to zero).
23331         (PRINT_OPERAND): Delete.
23332         (PRINT_OPERAND_ADDRESS): Delete.
23333         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
23334         (rx_print_operand_address): Delete prototype.
23335         * config/rx/rx.c (rx_print_operand): Make static.
23336         Allow %H and %L to handle CONST_DOUBLEs.
23337         (rx_print_operand_address): Make static.
23338         (rx_gen_move_template): Rename local variable 'template' to
23339         out_template.
23340         (rx_function_arg): Do not pass unknown sized objects in registers.
23341         (TARGET_PRINT_OPERAND): Define.
23342         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23343
23344 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
23345
23346         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
23347
23348 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
23349
23350         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
23351         stack-alignment for simple leaf-functions.
23352
23353 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
23354
23355         * doc/install.texi: Document bootstrap-lto.
23356
23357 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
23358
23359         PR debug/44248
23360         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
23361         (input_function): Drop them here, if VTA is disabled.
23362
23363 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
23364
23365         PR target/44546
23366         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
23367         New predicate.
23368         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
23369         ix86_swapped_fp_comparsion_operator instead of
23370         ix86_fp_comparison_operator.
23371
23372         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
23373         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
23374         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
23375         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
23376         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
23377         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
23378
23379 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
23380
23381         PR other/32998
23382         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
23383         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
23384         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
23385         (decode_cmdline_option): Update for this return value.  Set
23386         orig_option_with_args_text field.  Set arg field for unknown
23387         options.  Make static.
23388         (decode_cmdline_options_to_array): New.
23389         (prune_options): Update handling of find_opt return value.
23390         * opts.c (read_cmdline_option): Take decoded option.  Return void.
23391         (read_cmdline_options): Take decoded options.
23392         (decode_options): Add parameters for decoded options.  Use
23393         decode_cmdline_options_to_array.  Use decoded options for -O
23394         scan.  Use integral_argument for -O parameters.  Update call to
23395         read_cmdline_options.
23396         (enable_warning_as_error): Update handling of find_opt return value.
23397         * opts.h: Update comment on unknown options.
23398         (struct cl_decoded_option): Update comments on opt_index and arg.
23399         Add orig_option_with_args_text.
23400         (decode_cmdline_option): Remove.
23401         (decode_cmdline_options_to_array): Declare.
23402         (decode_options): Update prototype.
23403         * toplev.c (save_argv): Remove.
23404         (save_decoded_options, save_decoded_options_count): New.
23405         (read_integral_parameter): Remove.
23406         (print_switch_values): Use decoded options.
23407         (toplev_main): Don't set save_argv.  Update call to decode_options.
23408         * toplev.h (read_integral_parameter): Remove.
23409         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
23410
23411 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
23412
23413         PR target/44072
23414         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
23415         immediate.
23416         * constraints.md (Pw, Px): New constraints.
23417         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
23418
23419 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
23420
23421         * config/i386/sse.md (fma4modesuffixf4): Removed.
23422         (ssemodesuffixf2s): Likewise.
23423         (ssemodesuffixf4): Likewise.
23424         (ssemodesuffixf2c): Likewise.
23425         (ssescalarmodesuffix2s): Likewise.
23426         (avxmodesuffixf2c): Likewise.
23427         (ssemodesuffix): New.
23428         (ssescalarmodesuffix): Likewise.
23429         Update patterns with ssemodesuffix and ssescalarmodesuffix.
23430
23431 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
23432
23433         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
23434
23435 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23436
23437         * stor-layout.c (debug_rli): Remove unused local variables.
23438
23439 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
23440
23441         PR rtl-optimization/40900
23442         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
23443         original expression for later reuse.
23444         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
23445         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
23446
23447 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
23448
23449         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
23450         double_int_fits_in_uhwi_p): Implement as static inline.
23451         (double_int_xor): New inline function.
23452         (double_int_lrotate, double_int_rrotate, double_int_max,
23453         double_int_umax, double_int_smax, double_int_min, double_int_umin,
23454         double_int_smin): Declare.
23455         (lrotate_double, rrotate_double): Remove declaration.
23456         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
23457         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
23458         (double_int_lrotate, double_int_rrotate, double_int_max,
23459         double_int_umax, double_int_smax, double_int_min, double_int_umin,
23460         double_int_smin): New function.
23461         * fold-const.c (int_const_binop): Clean up, use double_int_*
23462         functions.
23463         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
23464         double_int_* and immed_double_int_const functions.
23465
23466 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
23467
23468         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
23469         * function.c (types_used_by_cur_var_decl): Likewise.
23470         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
23471
23472 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
23473
23474         * tree.h (record_layout_info): Change type of pending_statics field
23475         to a VEC.
23476         * stor-layout.c (start_record_layout): Store NULL into
23477         pending_statics.
23478         (debug_rli): Call debug_vec_tree instead of debug_tree.
23479         (place_field): Likewise.
23480         (finish_record_layout): Likewise.
23481
23482 2010-06-18  Alan Modra  <amodra@gmail.com>
23483
23484         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
23485
23486 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23487
23488         PR target/43740
23489         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
23490         for SET source operand from SET destination operand.
23491
23492 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
23493
23494         PR rtl-optimization/39871
23495         * reload1.c (init_eliminable_invariants): For flag_pic, disable
23496         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
23497         (function_invariant_p): Rule out a plus of frame or arg pointer with
23498         a SYMBOL_REF.
23499         * ira.c (find_reg_equiv_invariant_const): Likewise.
23500
23501 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
23502
23503         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
23504         print_operand_address and puts to output the operand for CONST.
23505
23506 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
23507
23508         PR debug/44572
23509         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
23510         hook.
23511
23512 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23513
23514         * v850-protos.h (print_operand): Delete.
23515         (print_operand_address): Delete.
23516         * v850.h (PRINT_OPERAND): Delete.
23517         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23518         (PRINT_OPERAND_ADDRESS): Delete.
23519         * v850.c (print_operand_address): Rename to...
23520         (v850_print_operand_address): ...this.  Make static. Call
23521         v850_print_operand.
23522         (print_operand): Rename to...
23523         (v850_print_operand): ...this.  Make static.  Call
23524         v850_print_operand_address.
23525         (v850_print_operand_punct_valid_p): New function.
23526         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23527         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23528
23529 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23530
23531         * config/sh/sh-protos.h (print_operand): Delete.
23532         (print_operand_address): Delete.
23533         * config/sh/sh.h (PRINT_OPERAND): Delete.
23534         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23535         (PRINT_OPERAND_ADDRESS): Delete.
23536         * config/sh/sh.c (sh_print_operand_address): Make static.
23537         (sh_print_operand): Make static.  Call sh_print_operand_address
23538         and sh_print_operand.
23539         (sh_print_operand_punct_valid_p): New function.
23540         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23541         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23542
23543 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23544
23545         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
23546         (mcore_print_operand_address): Delete.
23547         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
23548         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23549         (PRINT_OPERAND_ADDRESS): Delete.
23550         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
23551         (mcore_print_operand): Make static.
23552         (mcore_print_operand_punct_valid_p): New function.
23553         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
23554         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23555
23556 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23557
23558         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
23559         (print_operand_address): Delete.
23560         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
23561         (PRINT_OPERAND_ADDRESS): Delete.
23562         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
23563         static.
23564         (m68hc11_print_operand): Make static.
23565         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23566
23567 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23568
23569         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
23570         (m32r_print_operand_address): Delete.
23571         * config/m32r/m32r.h (m32r_punct_chars): Delete.
23572         (PRINT_OPERAND): Delete.
23573         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23574         (PRINT_OPERAND_ADDRESS): Delete.
23575         * config/m32r/m32r.c (m32r_punct_chars): Make static.
23576         (m32r_print_operand_address): Make static.
23577         (m32r_print_operand): Make static.
23578         (m32r_print_operand_punct_valid_p): New function.
23579         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23580         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23581
23582 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23583
23584         * config/iq2000/iq2000-protos.h (print_operand): Delete.
23585         (print_operand_address): Delete.
23586         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
23587         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23588         (PRINT_OPERAND_ADDRESS): Delete.
23589         (iq2000_print_operand_punct): Delete.
23590         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
23591         (iq2000_print_operand_address): Make static.
23592         (iq2000_print_operand): Make static.
23593         (iq2000_print_operand_punct_valid_p): New function.
23594         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23595         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23596
23597 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23598
23599         * config/frv/frv-protos.h (frv_print_operand): Delete.
23600         (frv_print_operand_address): Delete.
23601         * config/frv/frv.h (PRINT_OPERAND): Delete.
23602         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23603         (PRINT_OPERAND_ADDRESS): Delete.
23604         * config/frv/frv.c (frv_print_operand_address): Make static.
23605         (frv_print_operand): Make static.
23606         (frv_print_operand_punct_valid_p): New function.
23607         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23608         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23609
23610 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23611
23612         * tree.h (vec_member): Declare.
23613         * tree.c (vec_member): Define.
23614
23615 2010-06-17  Richard Guenther  <rguenther@suse.de>
23616
23617         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
23618         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
23619
23620 2010-06-17  Richard Guenther  <rguenther@suse.de>
23621
23622         * tree-inline.c (declare_return_variable): Remove bogus code.
23623
23624 2010-06-17  Richard Guenther  <rguenther@suse.de>
23625
23626         * gimplify.c (gimplify_bind_expr): Always promote complex
23627         and vector variables to registers if possible.
23628
23629 2010-06-17  Richard Guenther  <rguenther@suse.de>
23630
23631         * expr.c (get_inner_reference): Use double_int for bit_offset
23632         calculation.
23633
23634 2010-06-16  DJ Delorie  <dj@redhat.com>
23635
23636         * common.opt (-fstrict-volatile-bitfields): new.
23637         * doc/invoke.texi: Document it.
23638         * fold-const.c (optimize_bit_field_compare): For volatile
23639         bitfields, use the field's type to determine the mode, not the
23640         field's size.
23641         * expr.c (expand_assignment): Likewise.
23642         (get_inner_reference): Likewise.
23643         (expand_expr_real_1): Likewise.
23644         * expmed.c (store_fixed_bit_field): Likewise.
23645         (extract_bit_field_1): Likewise.
23646         (extract_fixed_bit_field): Likewise.
23647
23648 2010-06-16  Richard Guenther  <rguenther@suse.de>
23649
23650         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
23651
23652 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
23653
23654         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
23655         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
23656         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
23657         * debug.c: Likewise.
23658         * sdbout.c: Likewise.
23659         * vmsdbgout.c: Likewise.
23660         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
23661         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
23662         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
23663         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
23664         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
23665         * dwarf2out.c (dw_fde_struct): New fields
23666         dw_fde_vms_{end,begin}_prologue.
23667         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
23668         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
23669         (dwarf2out_vms_end_prologue): New function.
23670         (dwarf2out_vms_begin_epilogue): New function.
23671         (dw_val_struct): New value dw_val_class_vms_delta.
23672         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
23673         begin_epilogue for VMS.
23674         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
23675         new static functions.
23676         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
23677         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
23678         static functions.
23679         (print_die): New case dw_val_class_vms_delta.
23680         (attr_checksum): Likewise.
23681         (same_dw_val_p: Likewise.
23682         (size_of_die): Likewise.
23683         (value_format): Likewise.
23684         (output_die): Likewise.
23685         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
23686         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
23687         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
23688         dwarf2out_cfi_begin_epilogue
23689         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
23690
23691 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
23692
23693         * config/cris/cris-protos.h (cris_print_operand): Delete.
23694         (cris_print_operand_address): Delete.
23695         * config/cris/cris.h (PRINT_OPERAND): Delete.
23696         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23697         (PRINT_OPERAND_ADDRESS): Delete.
23698         * config/cris/cris.c (cris_print_operand_address): Make static.
23699         (cris_print_operand): Make static.
23700         (cris_print_operand_punct_valid_p): New function.
23701         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23702         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23703
23704 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
23705
23706         * config/arm/arm-protos.h (arm_print_operand): Delete.
23707         (arm_print_operand_address): Delete.
23708         * config/arm/arm.h (PRINT_OPERAND): Delete.
23709         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23710         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
23711         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
23712         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
23713         (arm_print_operand): Make static.
23714         (arm_print_operand_punct_valid_p): New function.
23715         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23716         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23717
23718 2010-06-16  Nick Clifton  <nickc@redhat.com>
23719
23720         * config/rx/constraints.md (NEGint4): New constraint.
23721         * config/rx/rx.md (attr cc): Add set_zsc.
23722         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
23723         initialised.
23724         (cmpsf): Likewise.
23725         (call_internal): Clobber the cc0 register.
23726         (call_value_internal): Likewise.
23727         (cstoresi4): Likewise.
23728         (movsieq): Likewise.
23729         (movsine): Likewise.
23730         (addsi3): Add alternative to handle small negative constants.
23731         (sunsi3): Likewise.
23732         (addsi3): Do not set the O bit in the cc0 register.
23733         (adddi3): Likewise.
23734         (subsi3): Likewise.
23735         (subdi3): Likewise.
23736         (andsi3): Reorder alternatives to prefer shorter forms.
23737         (mulsi3): Likewise.
23738         (iorsi3): Likewise.
23739         (negsi2): Note that the cc0 flags are set.
23740         (rotlsi3): Note that only the Z and S bits are set in cc0.
23741         (lshrsi3): Likewise.
23742         (ashlsi3): Likewise.
23743         (subsf3): Use %Q for the MEM operand.
23744         (fix_truncsfsi2): Likewise.
23745         (floatsisf2): Likewise.
23746         (bitset): Remove early clobber from destination.
23747         (bitset_in_memory): Likewise.
23748         (lrintsf2): Clobber the cc0 register.
23749         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
23750         (rx_print_operand): Handle %N.
23751
23752 2010-06-16  Jan Hubicka  <jh@suse.cz>
23753
23754         * df-core.c (df_compact_blocks): Free problem_temps vector.
23755
23756 2010-06-16  Martin Jambor  <mjambor@suse.cz>
23757
23758         PR tree-optimization/43905
23759         * tree-sra.c: Include tree-inline.h.
23760         (create_abstract_origin): Removed.
23761         (modify_function): Version the call graph node instead of creating
23762         abstract origins and dealing with same_body aliases.
23763         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
23764         function is versionable.
23765         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
23766
23767 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
23768
23769         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
23770         (CHOOSE_DYNAMIC_LINKER): Update.
23771
23772 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
23773
23774         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
23775         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
23776         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
23777         *prefetch_3dnow_rex.
23778
23779 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
23780
23781         * target.h (struct asm_out):Add declare_constant_name field.
23782         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23783         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
23784         * output.h (default_asm_declare_constant_name): Declare.
23785         (assemble_label): Update prototype.
23786         * varasm.c (assemble_constant_contents): Use
23787         targetm.asm_out.declare_constant_name target hook.
23788         (assemble_label): Add 'file' argument.
23789         (default_asm_declare_constant_name): New function.
23790         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
23791         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
23792         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
23793
23794         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
23795         * config/darwin.c (darwin_asm_declare_constant_name): New function.
23796         (machopic_output_indirection): Update assemble_label argument list.
23797         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
23798         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23799
23800 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
23801
23802         PR middle-end/44391
23803         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23804         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
23805
23806 2010-06-15  Richard Guenther  <rguenther@suse.de>
23807
23808         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
23809
23810 2010-06-15  Paul Brook  <paul@codesourcery.com>
23811
23812         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
23813         hard-float ABI.
23814
23815 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
23816
23817         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
23818         don't get a vector type for output.
23819
23820 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
23821
23822         PR fortran/44536
23823         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
23824         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
23825         (LANG_HOOKS_DECLS): Add it.
23826         * gimplify.c (omp_notice_variable): Call
23827         lang_hooks.decls.omp_report_decl.
23828
23829 2010-06-15  Martin Jambor  <mjambor@suse.cz>
23830
23831         PR lto/44464
23832         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
23833         on the newly dead SSA name.
23834
23835 2010-06-15  Alan Modra  <amodra@gmail.com>
23836
23837         * doc/invoke.texi: Add mcmodel to powerpc options.
23838         * configure.ac: Add HAVE_LD_LARGE_TOC test.
23839         * configure: Regenerate.
23840         * config.in: Regenerate.
23841         * config/rs6000/linux64.opt (mcmodel): New.
23842         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
23843         (TARGET_CMODEL, SET_CMODEL): Define.
23844         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
23845         select CMODEL_MEDIUM default.
23846         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
23847         (TARGET_CMODEL): Define default.
23848         * config/rs6000/rs6000.c (cmodel): New variable.
23849         (rs6000_explicit_options): Add cmodel field.
23850         (rs6000_handle_option): Handle -mcmodel.
23851         (create_TOC_reference): Add largetoc_reg param.  Generate high,
23852         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
23853         (rs6000_delegitimize_address): Recognise new toc reference rtl
23854         and minimal-toc rtl.
23855         (rs6000_legitimize_reload_address): Handle new toc references.
23856         (print_operand_address): Handle legitimate_constant_pool_address_p
23857         match before lo_sum.
23858         (rs6000_eliminate_indexed_memrefs): Tidy.
23859         (rs6000_emit_move): Tweak threshold for inlining constants.
23860         Keep rs6000_emit_allocate_stack large stack frame offsets
23861         loaded into r0 inline.
23862         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
23863         (tocrel_base, tocrel_offset): New variables.
23864         (toc_relative_expr_p): Set them here.
23865         (print_operand_address): Skip over any offset on constant pool address.
23866         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
23867         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
23868         (offsettable_ok_by_alignment): New function.
23869         (rs6000_emit_move): Address suitably aligned local symbol_refs
23870         relative to the toc pointer for -mcmodel=medium.
23871         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
23872         strict param.  Allow lo_sum version of addressing.  Verify reg
23873         used for -mminimal-toc and -mcmodel != small.  Update all callers.
23874         * config/rs6000/constraints.md: Update for above change.
23875         * config/rs6000/predicates.md: Likewise.
23876         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
23877         code.
23878         (tls_gd): Split for -mcmodel=medium/large.
23879         (tls_gd_high, tls_gd_low): New.
23880         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
23881         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
23882         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
23883         (largetoc_high, largetoc_low): New.
23884         (cmptf_internal2): Add clobber.
23885         * config/rs6000/rs6000-protos.h: Update.
23886
23887 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
23888
23889         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
23890         true if no prefetch is going to be generated for a given group.
23891         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
23892         estimate the prefetch_count.
23893         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
23894         prefetch count by considering the unroll_factor and prefetch_mod
23895         for is_loop_prefetching_profitable.
23896
23897 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
23898
23899         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
23900         anything if the argument is not a MEM.
23901
23902 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23903
23904         PR debug/43650
23905         PR debug/44181
23906         PR debug/44247
23907         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
23908         debug stmts.
23909         (canonicalize_loop_ivs): Likewise.
23910
23911 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23912
23913         PR debug/43656
23914         * haifa-sched.c (setup_insn_reg_pressure_info,
23915         update_register_pressure): Reject debug insns.
23916         (ready_sort): Don't setup reg pressure for debug insns.
23917         (schedule_insn): Don't update reg pressure for debug insns.
23918
23919 2010-06-14  Richard Guenther  <rguenther@suse.de>
23920
23921         * lto-streamer.c (cached_bp): Remove.
23922         (bitpack_delete): Likewise.
23923         (bitpack_create): Likewise.
23924         (bp_get_next_word): Likewise.
23925         (bp_pack_value, bp_unpack_value): Move ...
23926         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
23927         Re-implement.
23928         (struct bitpack_d): Likewise.
23929         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
23930         New inline functions.
23931         * lto-streamer-out.c (lto_output_bitpack): Remove.
23932         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23933         (pack_value_fields): Adjust.
23934         (lto_write_tree): Likewise.
23935         (output_gimple_stmt): Likewise.
23936         (output_function): Likewise.
23937         * lto-streamer-in.c (input_gimple_stmt): Adjust.
23938         (input_function): Likewise.
23939         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23940         (lto_input_bitpack): Remove.
23941         (lto_materialize_tree): Adjust.
23942         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
23943         * lto-cgraph.c (lto_output_edge): Adjust.
23944         (lto_output_node): Likewise.
23945         (lto_output_varpool_node): Likewise.
23946         (lto_output_ref): Likewise.
23947         (input_node): Likewise.
23948         (input_varpool_node): Likewise.
23949         (input_ref): Likewise.
23950         (input_edge): Likewise.
23951         (output_node_opt_summary): Likewise.
23952         (input_node_opt_summary): Likewise.
23953         * ipa-pure-const.c (pure_const_write_summary): Likewise.
23954         (pure_const_read_summary): Likewise.
23955         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
23956         (ipa_read_indirect_edge_info): Likewise.
23957         (ipa_write_node_info): Likewise.
23958         (ipa_read_node_info): Likewise.
23959
23960 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23961
23962         PR target/44534
23963         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
23964         (vec_extract_lo_v16hi): Likewise.
23965         (vec_extract_lo_v32qi): Likewise.
23966
23967 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23968
23969         PR bootstrap/44426
23970         * tree.h (build_call_expr): Don't define as vararg macro, instead
23971         add a prototype.
23972         * builtins.c (build_call_nofold): Remove.
23973         (expand_builtin_int_roundingfn, expand_builtin_pow,
23974         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
23975         expand_builtin_memset_args, expand_builtin_strcmp,
23976         expand_builtin_strncmp, expand_builtin_memory_chk): Use
23977         build_call_nofold_loc instead of build_call_nofold.
23978         (build_call_expr): New function.
23979
23980         PR tree-optimization/44508
23981         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
23982         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
23983         don't eliminate trivially dead stmts.
23984         * tree-vrp.c (vrp_finalize): Pass false as last argument
23985         to substitute_and_fold.
23986         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
23987         to substitute_and_fold.
23988         * tree-ssa-ccp.c (ccp_finalize): Likewise.
23989
23990         PR bootstrap/44509
23991         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
23992
23993 2010-06-14  Ira Rosen  <irar@il.ibm.com>
23994
23995         PR tree-optimization/44507
23996         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
23997         to build initial vector for BIT_AND_EXPR.
23998         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
23999
24000 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
24001
24002         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
24003         adjust z10prop set_attr.
24004
24005 2010-06-13  Jan Hubicka  <jh@suse.cz>
24006
24007         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
24008         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
24009         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
24010         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
24011         datastructure checks into checking asserts.
24012         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
24013         * tree-ssa-sccvn.c (VN_INFO): Likewise.
24014         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
24015         df_ref_create_structure): Likewise.
24016         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
24017         pool_free): Use gcc_checking_assert.
24018         * alias.c (get_alias_set): Likewise.
24019         * var-tracking.c (variable_htab_free, shared_hash_copy,
24020         canonicalize_values_mark, variable_merge_over_cur): Likewise.
24021         * lto-streamer.c (bp_unpack_value): Likewise.
24022
24023 2010-06-13  Richard Guenther  <rguenther@suse.de>
24024
24025         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
24026         Do not stream but initialize TYPE_CANONICAL to NULL.
24027         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
24028         * gimple.c (gimple_types_compatible_p): Disregard
24029         TYPE_STRUCTURAL_EQUALITY_P.
24030         (gimple_register_type): Use TYPE_CANONICAL as cache.
24031         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
24032         before registering common types.
24033         * config/i386/i386.c (ix86_function_arg_boundary): Do not
24034         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
24035         * tree.h (TYPE_CANONICAL): Clarify documentation.
24036
24037 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
24038
24039         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24040         LIBCALL_VALUE): Remove macros.
24041         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
24042         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24043         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24044         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
24045         (ia64_function_value): Make static. Handle receiving the function
24046         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
24047
24048 2010-06-12  Jan Hubicka  <jh@suse.cz>
24049
24050         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
24051         at correct place.
24052
24053 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
24054
24055         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
24056
24057 2010-06-12  Jan Hubicka  <jh@suse.cz>
24058
24059         * df-core.c (df_clear_bb_info): New function.
24060         (df_set_blocks): bb_info is always allocated.
24061         (df_get_bb_info): Use block_info_elt_size.
24062         (df_set_bb_info): Likewise.
24063         (df_compact_blocks): Update for new block_info.
24064         (grow_bb_info): New function.
24065         * df-problems.c (df_grow_bb_info): Move to df-core.c
24066         (df_rd_set_bb_info): Remove.
24067         (df_rd_free_bb_info): Do not free block pool.
24068         (df_rd_alloc): Do not create pool, use check for
24069         obstack presence instead of NULL pointer for new blocks.
24070         (df_rd_free): DO not free alloc pool; clear block_info.
24071         (problem_RD): Add size of block info structure.
24072         (df_lr_set_bb_info): Remove.
24073         (df_lr_free_bb_info): Do not free block pool.
24074         (df_lr_alloc): Do not create pool, use check for
24075         obstack presence instead of NULL pointer for new blocks.
24076         (df_lr_free): DO not free alloc pool; clear block_info.
24077         (problem_LR): Add size of block info structure.
24078         (df_live_set_bb_info): Remove.
24079         (df_live_free_bb_info): Do not free block pool.
24080         (df_live_alloc): Do not create pool, use check for
24081         obstack presence instead of NULL pointer for new blocks.
24082         (df_live_free): DO not free alloc pool; clear block_info.
24083         (problem_LIVE): Add size of block info structure.
24084         (problem_CHAIN): Add size of block info structure.
24085         (df_byte_lr_set_bb_info): Remove.
24086         (df_byte_lr_free_bb_info): Do not free block pool.
24087         (df_byte_lr_alloc): Do not create pool, use check for
24088         obstack presence instead of NULL pointer for new blocks.
24089         (df_byte_lr_free): DO not free alloc pool; clear block_info.
24090         (problem_BYTE_LR): Add size of block info structure.
24091         (problem_NOTE): Add size of block info structure.
24092         (df_byte_MD_set_bb_info): Remove.
24093         (df_byte_MD_free_bb_info): Do not free block pool.
24094         (df_byte_MD_alloc): Do not create pool, use check for
24095         obstack presence instead of NULL pointer for new blocks.
24096         (df_byte_MD_free): DO not free alloc pool; clear block_info.
24097         (problem_BD): Add size of block info structure.
24098         * df-scan.c (df_scan_free_internal): Free block pool.
24099         (df_scan_set_bb_info): Remove.
24100         (df_scan_free_bb_info): Check for artificial_defs instead
24101         of bb_info being non-NULL.
24102         (df_scan_alloc): DO not create df_scan_block pool.
24103         (problem_SCAN): Set size of block info.
24104         (df_bb_refs_record): Do not allocate bb_info.
24105         * df.h (df_problem): Add block_info_elt_size.
24106         (struct dataflow): Change block_info to void *.
24107         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
24108         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
24109         in-line structures.
24110
24111 2010-06-12  Jan Hubicka  <jh@suse.cz>
24112
24113         PR tree-optimize/44485
24114         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
24115         containing use of return value of noreturn function.
24116
24117 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
24118
24119         * targhooks.c (default_function_value): Don't use
24120         FUNCTION_OUTGOING_VALUE.
24121         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
24122         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
24123
24124 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
24125
24126         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
24127         Add crtfastmath.o to extra_parts.
24128         * config/mips/crtfastmath.c: New.
24129         * config/mips/linux.h (ENDFILE_SPEC): New.
24130
24131 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
24132
24133         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
24134         old_type in parameter.
24135         (gcc_type_for_value): Update call to gcc_type_for_interval.
24136         (compute_type_for_level_1): Renamed compute_type_for_level.
24137         Update call to gcc_type_for_interval.
24138
24139 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
24140
24141         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
24142         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
24143
24144 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
24145
24146         * opts-common.c: Include options.h.
24147         (integral_argument): Move from opts.c.
24148         (decode_cmdline_option): New.  Based on read_cmdline_option.
24149         * opts.c (integral_argument): Move to opts-common.c.
24150         (read_cmdline_option): Move most contents to
24151         decode_cmdline_option.  Use %qs in diagnostics.
24152         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
24153         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
24154         decode_cmdline_option): New.
24155
24156 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24157
24158         PR target/44481
24159         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
24160         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
24161         (partiysi2_cmp): Ditto.
24162         (*partiyhi2_cmp): Ditto.
24163         (*parityqi2_cmp): Remove.
24164
24165 2010-06-11  Jan Hubicka  <jh@suse.cz>
24166
24167         * bitmap.h (bmp_iter_next_bit): New.
24168         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
24169
24170 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
24171             Eric Botcazou  <ebotcazou@adacore.com>
24172
24173         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
24174         computed cost.
24175
24176 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24177
24178         * config/i386/i386.md (unspec): New define_c_enum.
24179         (unspecv): Ditto.
24180
24181 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
24182
24183         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
24184
24185 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
24186
24187         PR middle-end/44483
24188         * tree-if-conv.c (bb_predicate_s): New struct.
24189         (bb_predicate_p): New.
24190         (bb_has_predicate): New.
24191         (bb_predicate): New.
24192         (set_bb_predicate): New.
24193         (bb_predicate_gimplified_stmts): New.
24194         (set_bb_predicate_gimplified_stmts): New.
24195         (add_bb_predicate_gimplified_stmts): New.
24196         (init_bb_predicate): New.
24197         (free_bb_predicate): New.
24198         (is_predicated): Use bb_predicate.
24199         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
24200         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
24201         before processing their successors.
24202         (clean_predicate_lists): Removed.
24203         (find_phi_replacement_condition): Use bb_predicate.
24204         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
24205         computations.
24206         (insert_gimplified_predicates): New.
24207         (combine_blocks): Call insert_gimplified_predicates.
24208         (tree_if_conversion): Call free_bb_predicate instead of
24209         clean_predicate_lists.
24210
24211 2010-10-11  Paul Brook  <paul@codesourcery.com>
24212
24213         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
24214         * config/arm/arm.c (all_architectures): Change v7e-m default to
24215         cortexm4.
24216         * config/arm/arm-cores.def: Add cortex-m4.
24217         * config/arm/arm-tune.md: Regenerate.
24218
24219 2010-06-11  Jan Hubicka  <jh@suse.cz>
24220
24221         * ipa-pure-const.c (special_builtlin_state): New function.
24222         (check_call): Use it instead of special casign BUILT_IN_RETURN.
24223         (propagate_pure_const): Use it.
24224
24225 2010-06-11  Jan Hubicka  <jh@suse.cz>
24226
24227         * df-problems.c (df_live_scratch): Convert to bitmap_head.
24228         (df_live_alloc): Initialize df_live_scratch when initializing
24229         problem_data.
24230         (df_live_transfer_function): Update uses of df_live_scratch.
24231         (df_live_free): Free problem_data; clear df_live_scratch before
24232         releasing the obstack.
24233         (df_md_free): Free problem data.
24234
24235 2010-06-11  Jan Hubicka  <jh@suse.cz>
24236
24237         * doc/invoke.texi (Wsuggest-attribute): Document.
24238         (Wmissing-noreturn): Remove.
24239         * ipa-pure-const.c (warn_function_noreturn): New function.
24240         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
24241         warn_missing_noreturn.
24242         * common.opt (Wsuggest-attribute=noreturn): New.
24243         * tree-flow.h (warn_function_noreturn): Declare.
24244         * tree-cfg.c (execute_warn_function_noreturn): Use
24245         warn_function_noreturn.
24246         (gate_warn_function_noreturn): New.
24247         (pass_warn_function_noreturn): Update.
24248
24249 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24250
24251         * c-typeck.c (handle_warn_cast_qual): Add loc
24252         parameter. Improve warning message.
24253         (build_c_cast): Pass location to handle_warn_cast_qual.
24254
24255 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24256
24257         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
24258         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
24259         insn mnemonic.
24260         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
24261
24262 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
24263
24264         Fix bootstap on mips
24265         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
24266         be naming typedefs.
24267
24268 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
24269
24270         * system.h (helper_const_non_const_cast): New inline for
24271         gcc version <= 4.0.
24272         (CONST_CAST2): For gcc version <= 4.0 use
24273         new helper to do const/non-const casting.
24274
24275 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24276
24277         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
24278         * Makefile.in (OBJS-common): Include insn-enums.o.
24279         (insn-enums.o): New rule.
24280         (simple_generated_c): Add insn-enums.c.
24281         (build/genenums.o): New rule.
24282         (genprogmd): Add "enums".
24283         * genconstants.c (print_enum_type): Declare a C string array
24284         for each enum.
24285         * genenums.c: New file.
24286         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
24287         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
24288         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
24289
24290 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24291
24292         * doc/md.texi (define_enum_attr): Document.
24293         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
24294         * read-md.h (lookup_enum_type): Declare.
24295         * read-md.c (lookup_enum_type): New function.
24296         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
24297         * genattrtab.c (attr_desc): Add an enum_name field.
24298         (evaluate_eq_attr): Take the associated attribute as argument.
24299         Get the enum prefix from the enum_name field, if defined.
24300         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
24301         (simplify_test_exp): Pass attr to evaluate_eq_attr.
24302         (add_attr_value): New function, split out from...
24303         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
24304         (write_test_expr): Pass attr to evaluate_eq_attr.
24305         (write_attr_get): Use the enum_name as the enum tag, if defined.
24306         (write_attr_valueq): Use the enum_name as a prefix, if defined.
24307         (find_attr): Initialize enum_name.
24308         (main): Handle DEFINE_ENUM_ATTR.
24309         * gensupport.c (process_rtx): Likewise.
24310         * config/mips/mips.h (mips_tune_attr): Delete.
24311         * config/mips/mips.md (cpu): Use define_attr_enum.
24312
24313 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24314
24315         * doc/md.texi (define_c_enum, define_enum): Document.
24316         * read-md.h (md_constant): Add a parent_enum field.
24317         (enum_value, enum_type): New structures.
24318         (upcase_string, traverse_enum_types): Declare.
24319         * read-md.c (enum_types): New variable.
24320         (upcase_string, add_constant): New functions.
24321         (handle_constants): Don't create the hash table here.
24322         Use add_constant.
24323         (traverse_md_constants): Don't check for a null md_constants.
24324         (decimal_string, handle_enum, traverse_enum_types): New functions.
24325         (read_md_files): Initialize md_constants and md_enums.
24326         * genconstants.c (print_md_constant): Ignore info argument.
24327         Only print constants that belong to no enum.
24328         (print_enum_type): New function.
24329         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
24330         for each defined enum type.
24331         * config/mips/mips.md (processor): New define_enum.
24332         (unspec): New define_c_enum.
24333         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
24334         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
24335         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
24336         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
24337         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
24338         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
24339         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
24340         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
24341         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
24342         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
24343         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
24344         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
24345         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
24346         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
24347         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
24348         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
24349         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
24350         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
24351         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
24352         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
24353         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
24354         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
24355         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24356         (UNSPEC_RDDSP): Move to mips-dsp.md.
24357         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
24358         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
24359         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
24360         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
24361         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
24362         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
24363         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
24364         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
24365         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
24366         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
24367         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
24368         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
24369         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
24370         Moved to mips-dspr2.md.
24371         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
24372         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
24373         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
24374         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
24375         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
24376         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
24377         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24378         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24379         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24380         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24381         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24382         UNSPEC_LOONGSON_PSADBH)
24383         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24384         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24385         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
24386         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24387         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24388         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24389         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
24390         (cpu): Update comment.
24391         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
24392         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
24393         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
24394         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
24395         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
24396         UNSPEC_LOONGSON_PCMPEQ)
24397         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
24398         UNSPEC_LOONGSON_PINSR_0)
24399         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24400         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24401         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24402         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24403         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24404         UNSPEC_LOONGSON_PSADBH)
24405         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24406         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24407         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
24408         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24409         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24410         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24411         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
24412         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
24413         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
24414         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
24415         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
24416         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
24417         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
24418         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
24419         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
24420         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
24421         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
24422         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
24423         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
24424         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
24425         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
24426         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
24427         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
24428         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
24429         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
24430         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
24431         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24432         (UNSPEC_RDDSP): Moved from mips.md.
24433         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
24434         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
24435         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
24436         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
24437         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
24438         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
24439         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
24440         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
24441         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
24442         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
24443         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
24444         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
24445         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
24446         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
24447         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
24448         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
24449         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
24450         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
24451         (UNSPEC_SCC): Moved from mips.md.
24452         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
24453         "processor_type" to "processor".
24454         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
24455         * config/mips/mips.h (processor_type): Delete.
24456         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
24457         "processor_type" to "processor".
24458
24459 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24460
24461         * configure.ac (tm_include_list): Add insn-constants.h.
24462         * configure: Regenerate.
24463         * Makefile.in (GTM_H): Move insn-constants.h here from...
24464         (TM_H): ...here.
24465         * mkconfig.sh: Remove special handling for insn-constants.h.
24466
24467 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24468
24469         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
24470         (BUILD_MD): ...this new variable.
24471         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
24472         that include the old contents of simple_generated_h and
24473         simple_generated_c.
24474         (simple_generated_h, simple_generated_c): Include them.  Add
24475         insn-constants.h.
24476         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
24477         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
24478         Remove these dependencies from the main rule and include
24479         insn-conditions.md in the command line only if it appears
24480         in the dependency list.
24481         (insn-constants.h, s-constants): Delete.
24482         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
24483         or gensupport.h.
24484         (build/genmddeps.o): Likewise.
24485         (genprogrtl): New variable that contains everything from genprogmd
24486         except mddeps and constants.
24487         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
24488         depend on $(BUILD_MD)
24489         (genprog): New variable.  Make these programs depend on
24490         $(BUILD_ERRORS).
24491         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
24492         (main): Use read_md_files instead of init_rtx_reader_args.
24493         * genconstants.c: As for genmddeps.c.
24494         * read-md.h (read_skip_construct): Declare.
24495         * read-md.c (read_skip_construct): New function.
24496         (handle_file): Allow a null handle_directive, skipping the
24497         construct if so.
24498         (parse_include): Update the comment accordingly.
24499
24500 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24501
24502         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
24503         * genmddeps.c: Include read-md.h.
24504         (main): Call init_rtx_reader_args instead of init_md_reader_args.
24505         * genattr.c (main): Likewise.
24506         * genattrtab.c (main): Likewise.
24507         * genautomata.c (main): Likewise.
24508         * gencodes.c (main): Likewise.
24509         * genconditions.c (main): Likewise.
24510         * genconfig.c (main): Likewise.
24511         * genconstants.c (main): Likewise.
24512         * genemit.c (main): Likewise.
24513         * genextract.c (main): Likewise.
24514         * genflags.c (main): Likewise.
24515         * genopinit.c (main): Likewise.
24516         * genoutput.c (main): Likewise.
24517         * genpeep.c (main): Likewise.
24518         * genrecog.c (main): Likewise.
24519         * genpreds.c (main): Likewise.
24520         * gensupport.h (in_fname): Move to read-md.h.
24521         (init_md_reader_args_cb): Rename to...
24522         (init_rtx_reader_args_cb): ...this and return a bool.
24523         (init_md_reader_args): Rename to...
24524         (init_rtx_reader_args): ...this and return a bool.
24525         (include_callback): Move to read-md.h.
24526         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
24527         (file_name_list, first_dir_md_include): Move to read-md.c
24528         (first_bracket_include): Delete unused variable.
24529         (last_dir_md_include): Move to read-md.c.
24530         (process_include): Delete, moving code to read-md.c:handle_include.
24531         (process_rtx): Don't handle INCLUDE.
24532         (save_string): Delete.
24533         (rtx_handle_directive): New function.
24534         (init_md_reader_args_cb): Rename to...
24535         (init_rtx_reader_args_cb): ...this and return a boolean success value.
24536         Use read_md_args.
24537         (init_md_reader_args): Rename to...
24538         (init_rtx_reader_args): ...this and return a boolean success value.
24539         * rtl.def (INCLUDE): Delete.
24540         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
24541         argument.
24542         * read-rtl.c (read_conditions): Don't gobble ')' here.
24543         (read_mapping): Likewise.
24544         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
24545         Handle top-level non-rtx constructs here rather than in read_rtx_1.
24546         Store the whole queue in *X.  Remove call to init_md_reader.
24547         (read_rtx_1): Rename to...
24548         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
24549         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
24550         here.
24551         (read_nested_rtx): New function.  Handle (nil) here rather than
24552         in read_rtx_code.
24553         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
24554         gobble ')' here.
24555         * read-md.h (directive_handler_t): New type.
24556         (in_fname, include_callback): Moved from read-md.h.
24557         (read_constants, init_md_reader): Delete.
24558         (read_md_files): Declare.
24559         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
24560         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
24561         from gensupport.c.
24562         (read_constants): Rename to...
24563         (handle_constants): ...this.  Don't gobble ')' here.
24564         (handle_include, handle_file, handle_toplevel_file)
24565         (parse_include): New functions, mostly taken from gensupport.c.
24566         (init_md_reader): Subsume into...
24567         (read_md_files): ...this new function.
24568
24569 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24570
24571         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
24572         (unread_char): Decrement read_md_lineno after putting back '\n'.
24573         * read-md.c (fatal_with_file_and_line): Push back any characters
24574         that we decide not to add to the context.
24575         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
24576         fatal_expected_char in cases where '/' ends a line (for example).
24577         (read_name): Don't increment read_md_lineno here.
24578         (read_escape): Likewise.
24579         (read_quoted_string): Likewise.
24580         (read_braced_string): Likewise.
24581
24582 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24583
24584         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
24585         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
24586         * genconstants.c: Include read-md.h.
24587         * read-rtl.c (md_constants): Move to read-md.c.
24588         (md_name): Move to read-md.h.
24589         (initialize_iterators): Use leading_string_hash instead of def_hash
24590         and leading_string_eq_p instead of def_name_eq_p.
24591         (read_name): Move to read-md.c.
24592         (def_hash, def_name_eq_p): Delete.
24593         (read_constants, traverse_md_constants): Move to read-md.c.
24594         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
24595         * read-md.h: Include hashtab.h.
24596         (md_name): Moved from read-rtl.c.
24597         (md_constant): Moved from read-md.h.
24598         (leading_string_hash, leading_string_eq_p, read_name)
24599         (read_constants, traverse_md_constants): Declare.
24600         * read-md.c (md_constants): Moved from read-rtl.c.
24601         (leading_string_hash, leading_string_eq_p): New functions.
24602         (read_name, read_constants, traverse_md_constants): Moved from
24603         read-rtl.c.
24604
24605 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24606
24607         * read-rtl.c (md_name): New structure.
24608         (read_name): Take an md_name instead of a buffer pointer.
24609         Use the "string" field instead of strcpy when expanding constants.
24610         (read_constants): Remove the tmp_char argument.  Update the calls
24611         to read_name, using two local name buffers instead of the tmp_char
24612         argument.  Merge the constant-creation code.
24613         (read_conditions): Remove the tmp_char argument.  Update the calls
24614         to read_name, using a local name buffer instead of the tmp_char
24615         argument.
24616         (read_mapping): Replace tmp_char variable with a local name buffer.
24617         Update the calls to read_name.
24618         (read_rtx_1): Likewise.  Update the calls to read_constants and
24619         read_conditions.
24620
24621 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24622
24623         * Makefile.in (build/read-md.o): Depend on errors.h.
24624         * read-md.h (error_with_line): Declare.
24625         * read-md.c: Include errors.h.
24626         (message_with_line_1): New function, extracted from...
24627         (message_with_line): ...here.
24628         (error_with_line): New function.
24629         * genattrtab.c: If a call to message_with_line is followed by
24630         "have_error = 1;", replace both statements with a call to
24631         error_with_line.
24632         * genoutput.c: Likewise.
24633         * genpreds.c: Likewise.
24634         * genrecog.c: If a call to message_with_line is followed by
24635         "error_count++;", replace both statements with a call to
24636         error_with_line.
24637         (errorcount): Delete.
24638         (main): Don't check it.
24639         * gensupport.c: If a call to message_with_line is followed by
24640         "errors = 1;", replace both statements with a call to error_with_line.
24641         (errors): Delete.
24642         (process_define_cond_exec): Check have_error instead of errors.
24643         (init_md_reader_args_cb): Likewise.  Don't set errors.
24644
24645 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24646
24647         * read-md.h (read_md_file): Declare.
24648         (read_char, unread_char): New functions.
24649         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
24650         (read_quoted_string, read_string): Remove FILE * argument.
24651         * read-md.c (read_md_file): New variable.
24652         (read_md_filename, read_md_lineno): Update comments and remove
24653         unnecessary initialization.
24654         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
24655         (read_escape, read_quoted_string, read_braced_string, read_string):
24656         Remove FILE * argument.  Update calls accordingly, using read_char
24657         and unread_char instead of getc and ungetc.
24658         * rtl.h (read_rtx): Remove FILE * argument.
24659         * read-rtl.c (iterator_group): Remove FILE * argument from
24660         "find_builtin".
24661         (iterator_traverse_data): Remove "infile" field.
24662         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
24663         (add_mapping, read_name, read_constants, read_conditions)
24664         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
24665         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
24666         Remove file arguments from all calls, using read_char and unread_char
24667         instead of getc and ungetc.
24668         * gensupport.c (process_include): Preserve read_md_file around
24669         the include.  Set read_md_file to the handle of the included file.
24670         Update call to read_rtx.
24671         (init_md_reader_args_cb): Set read_md_file to the handle of the file
24672         and remove local FILE *.  Update calls to read_rtx.
24673
24674 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24675
24676         * read-md.h (read_rtx_lineno): Rename to...
24677         (read_md_lineno): ...this.
24678         (read_rtx_filename): Rename to...
24679         (read_md_filename): ...this.
24680         (copy_rtx_ptr_loc): Rename to...
24681         (copy_md_ptr_loc): ...this.
24682         (print_rtx_ptr_loc): Rename to...
24683         (print_md_ptr_loc): ...this.
24684         * read-md.c: Likewise.  Update references after renaming.
24685         (string_obstack): Replace RTL with MD in comment.
24686         (set_rtx_ptr_loc): Rename to...
24687         (set_md_ptr_loc): ...this.
24688         (get_rtx_ptr_loc): Rename to...
24689         (get_md_ptr_loc): ...this.
24690         * genconditions.c: Update references after renaming.
24691         * genemit.c: Likewise.
24692         * genoutput.c: Likewise.
24693         * genpreds.c: Likewise.
24694         * gensupport.c: Likewise.
24695         * read-rtl.c: Likewise.
24696
24697 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24698
24699         * Makefile.in (READ_MD_H): New variable.
24700         (BUILD_RTL): Add build/read-md.o.
24701         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
24702         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
24703         (build/genattrtab.o, build/genconditions.o build/genemit.o)
24704         (build/genextract.o, build/genflags.o, build/genoutput.o)
24705         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
24706         (build/read-md.o): New rule.
24707         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
24708         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
24709         * coretypes.h: ...here.
24710         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
24711         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
24712         * genattr.c: Include read-md.h.
24713         * genattrtab.c: Likewise.
24714         * genconditions.c: Likewise.
24715         * genemit.c: Likewise.
24716         * genextract.c: Likewise.
24717         * genflags.c: Likewise.
24718         * genoutput.c: Likewise.
24719         * genpreds.c: Likewise.
24720         * genrecog.c: Likewise.
24721         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
24722         (join_c_conditions, print_c_condition, read_rtx_filename)
24723         (read_rtx_lineno): Move to read-md.h.
24724         * read-rtl.c: Include read-md.h.
24725         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
24726         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
24727         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
24728         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
24729         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
24730         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
24731         (read_braced_string, read_string): Move to read-md.c.
24732         (read_rtx): Move some initialization to init_md_reader and call
24733         init_md_reader here.
24734         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
24735         Move to read-md.h.
24736         * gensupport.c: Include read-md.h.
24737         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
24738         * read-md.h, read-md.c: New files.
24739
24740 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
24741
24742         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24743         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24744         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
24745         * config/moxie/moxie.c (moxie_function_value): Make static.
24746         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
24747         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24748
24749 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24750
24751         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
24752         * dbgcnt.def (tree_sra): New counter.
24753         * tree-sra.c: Include dbgcnt.h.
24754         (gate_intra_sra): Check tree_sra debug counter.
24755
24756 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24757
24758         PR tree-optimization/44258
24759         * tree-sra.c (build_access_subtree): Return false iff there is a
24760         partial overlap.
24761         (build_access_trees): Likewise.
24762         (analyze_all_variable_accesses): Disqualify candidates if
24763         build_access_trees returns true for them.
24764
24765 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
24766
24767         PR debug/41371
24768         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
24769         tail-recurse into canonical node.  Fast-forward over
24770         non-canonical VALUEs.
24771
24772 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
24773
24774         PR boostrap/44470
24775         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
24776         (*addsi_1_zext) <TYPE_LEA>: Likewise.
24777         (add lea splitter): Likewise.
24778         (add_zext lea splitter): Likewise.
24779
24780 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
24781
24782         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
24783
24784 2010-06-10  Jan Hubicka  <jh@suse.cz>
24785
24786         * df-problems.c (df_live_problem_data): Add live_bitmaps.
24787         (df_live_alloc): Initialize problem data and live_osbtacks.
24788         (df_live_finalize): Remove obstack, problem data; do not
24789         clear all bitmaps.
24790         (df_live_top_dump, df_live_bottom_dump): Do not dump old
24791         data when not allocated.
24792         (df_live_verify_solution_start): Do not allocate problem data.
24793         (df_live_verify_solution_end): Check if out is allocated.
24794         (struct df_md_problem_data): New structure.
24795         (df_md_alloc): Allocate problem data.
24796         (df_md_free): Free problem data; do not clear bitmaps.
24797
24798 2010-06-10  Jan Beulich  <jbeulich@novell.com>
24799
24800         PR bootstrap/37304
24801         * configure.ac: Replace $() with ${} when intending to expand
24802         variables rather than invoking commands.
24803         * configure: Re-generate.
24804
24805 2010-06-10  Jan Hubicka  <jh@suse.cz>
24806
24807         PR rtl-optimization/44460
24808         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
24809         TYPE_NEEDS_CONSTRUCTING sanity check.
24810
24811 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
24812
24813         * doc/include/fdl.texi: Move to GFDL version 1.3.
24814
24815         * doc/cpp.texi: Move to GFDL version 1.3.
24816         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
24817         * doc/gccint.texi: Move to GFDL version 1.3.
24818         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
24819         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
24820         * doc/invoke.texi: Move to GFDL version 1.3.
24821
24822 2010-06-09  Jan Hubicka  <jh@suse.cz>
24823
24824         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
24825         Break out from ...
24826         (propagate) ... here; swap the order.
24827
24828 2010-06-09  Jan Hubicka  <jh@suse.cz>
24829
24830         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
24831         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
24832         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
24833         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
24834
24835 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24836
24837         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
24838         Do not the gather memory reference in the outer loop if the step
24839         is not a constant.
24840
24841 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24842
24843         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
24844         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
24845         8 to 4.  Minor change of the related comments.
24846
24847 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24848
24849         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
24850         the scev analysis when the variable is not used outside the loop
24851         in a close phi node: call compute_overall_effect_of_inner_loop.
24852
24853 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24854
24855         * graphite-sese-to-poly.c (single_pred_cond): Renamed
24856         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
24857         (build_sese_conditions_before): Renamed call to single_pred_cond.
24858         (build_sese_conditions_after): Same.
24859
24860 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24861
24862         * graphite-poly.h: Fix comments and indentation.
24863         * graphite-sese-to-poly.c: Same.
24864         (build_sese_conditions_before): Compute stmt and gbb only when needed.
24865         * tree-chrec.c: Fix comments and indentation.
24866         (tree-ssa-loop-niter.c): Same.
24867
24868 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
24869
24870         PR rtl-optimization/42461
24871         * dce.c (deletable_insn_p): Return true for const or pure calls again.
24872         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
24873
24874 2010-06-09  Jan Hubicka  <jh@suse.cz>
24875
24876         * bitmap.c (bitmap_and): Walk array forward.
24877         (bitmap_and_compl_into): Likewise.
24878         (bitmap_xor): Likewise.
24879         (bitmap_xor_into):  Likewise.
24880         (bitmap_equal_p): Likewise.
24881         (bitmap_intersect_p): Likewise.
24882         (bitmap_intersect_compl_p): Likewise.
24883         (bitmap_ior_and_into): Likewise.
24884         (bitmap_elt_copy): Likewise.
24885         (bitmap_and_compl): Likewise.
24886         (bitmap_elt_ior): Likewise.
24887
24888 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
24889
24890         * opts-common.c (prune_options): Ensure replacement argv array
24891         is correctly terminated by a NULL entry.
24892
24893 2010-06-09  Jan Hubicka  <jh@suse.cz>
24894
24895         * cgraph.h (varpool_first_static_initializer,
24896         varpool_next_static_initializer): Make checking only when
24897         checking enabled.
24898         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
24899         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
24900         gcc_assert to gcc_checking_assert.
24901         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
24902         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
24903         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
24904         op_iter_init_phiuse, op_iter_init_phidef,
24905         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
24906         gcc_checking_assert.
24907         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
24908         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
24909         partition_is_global, live_on_entry, live_on_exit,
24910         live_merge_and_clear): Likewise.
24911         * system.h (gcc_checking_assert): New macro.
24912         * gimple.h (set_bb_seq): Use gcc_checking_assert.
24913
24914 2010-06-09  Jason Merrill  <jason@redhat.com>
24915
24916         * Makefile.in (TAGS): Collect tags info from c-family.
24917
24918 2010-06-09  Jan Hubicka  <jh@suse.cz>
24919
24920         * gimple.h (gcc_gimple_checking_assert): New macro.
24921         (gimple_set_def_ops, gimple_set_use_ops,
24922         gimple_set_vuse, gimple_set_vdef,
24923         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
24924         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
24925         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
24926         gimple_asm_output_op, gimple_asm_output_op_ptr,
24927         gimple_asm_set_output_op, gimple_asm_clobber_op,
24928         gimple_asm_set_clobber_op, gimple_asm_label_op,
24929         gimple_asm_set_label_op, gimple_try_set_kind,
24930         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
24931         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
24932         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
24933         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
24934         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
24935         gimple_omp_for_set_initial, gimple_omp_for_final,
24936         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
24937         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
24938         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
24939         conditional with ENABLE_GIMPLE_CHECKING.
24940         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
24941
24942 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
24943
24944         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
24945         (get_computation_cost_at): Use it.
24946         (determine_use_iv_cost_condition): Likewise.
24947         (determine_iv_cost): Likewise.
24948
24949 2010-06-09  Richard Guenther  <rguenther@suse.de>
24950
24951         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
24952         replace constants.
24953
24954 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
24955
24956         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
24957
24958 2010-06-09  Martin Jambor  <mjambor@suse.cz>
24959
24960         PR tree-optimization/44423
24961         * tree-sra.c (dump_access): Dump also grp_assignment_read.
24962         (analyze_access_subtree): Pass negative allow_replacements to children
24963         if the current type is scalar.
24964
24965 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24966
24967         PR testsuite/42843
24968         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
24969         * doc/plugins.texi (Plugin license check): Update information
24970         on type of plugin_is_GPL_compatible.
24971         * Makefile.in (PLUGINCC): Define as $(COMPILER).
24972         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
24973
24974 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
24975
24976         * config/arm/arm.c (thumb2_reorg): New function.
24977         (arm_reorg): Call it.
24978         * config/arm/thumb2.md (define_peephole2 for flag clobbering
24979         arithmetic operations): Delete.
24980
24981 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
24982
24983         PR target/44067
24984         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
24985         e500v2 target.
24986
24987 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24988
24989         PR plugins/44459
24990         * gcc-plugin.h: Encapsulate all declarations in extern "C".
24991
24992 2010-06-08  Jan Hubicka  <jh@suse.cz>
24993
24994         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
24995         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
24996
24997 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
24998
24999         PR tree-optimization/39874
25000         PR middle-end/28685
25001         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
25002         Declare.
25003         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
25004         same_bool_result_p): New.
25005         (and_var_with_comparison, and_var_with_comparison_1,
25006         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
25007         (or_var_with_comparison, or_var_with_comparison_1,
25008         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
25009         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
25010         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
25011         of combine_comparisons.
25012         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
25013
25014 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
25015
25016         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25017         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25018         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
25019         pdp11_function_value_regno_p): New functions.
25020         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25021         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25022
25023 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
25024
25025         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
25026         Thumb-2 in the MINUS case.
25027
25028 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25029
25030         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
25031
25032         * doc/gty.texi (GTY Options): Document typed GC allocation and
25033         variable_size GTY option.
25034
25035         * ggc-internal.h: New.
25036
25037         * ggc.h: Update copyright year.
25038         (digit_string): Move to stringpool.c.
25039         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
25040         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
25041         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
25042         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
25043         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
25044         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
25045         (ggc_force_collect, ggc_get_size, ggc_statistics)
25046         (ggc_print_common_statistics): Move to ggc-internal.h.
25047         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
25048         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
25049         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
25050         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
25051         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
25052         (ggc_alloc_zone_pass_stat): Remove.
25053         (ggc_internal_alloc_stat, ggc_internal_alloc)
25054         (ggc_internal_cleared_alloc_stat): New.
25055         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
25056         (ggc_internal_vec_alloc_stat)
25057         (ggc_internal_cleared_vec_alloc_stat)
25058         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
25059         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
25060         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
25061         (ggc_cleared_alloc_ptr_array_two_args): New.
25062         (htab_create_ggc, splay_tree_new_ggc): Redefine.
25063         (ggc_splay_alloc): Change the type of the first argument to
25064         enum gt_types_enum.
25065         (ggc_alloc_string): Make macro.
25066         (ggc_alloc_string_stat): New.
25067         (ggc_strdup): Redefine.
25068         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
25069         (ggc_alloc_rtvec_sized): New.
25070         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
25071         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
25072         (ggc_internal_cleared_alloc_zone_stat)
25073         (ggc_internal_zone_alloc_stat)
25074         (ggc_internal_zone_cleared_alloc_stat)
25075         (ggc_internal_zone_vec_alloc_stat)
25076         (ggc_alloc_zone_rtx_def_stat)
25077         (ggc_alloc_zone_tree_node_stat)
25078         (ggc_alloc_zone_cleared_tree_node_stat)
25079         (ggc_alloc_cleared_gimple_statement_d_stat): New.
25080
25081         * ggc-common.c: Include ggc-internal.h.
25082         (ggc_internal_cleared_alloc_stat): Rename from
25083         ggc_alloc_cleared_stat.
25084         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
25085         (ggc_calloc): Remove.
25086         (ggc_cleared_alloc_htab_ignore_args): New.
25087         (ggc_cleared_alloc_ptr_array_two_args): New.
25088         (ggc_splay_alloc): Add obj_type parameter.
25089         (init_ggc_heuristics): Formatting fixes.
25090
25091         * ggc-none.c: Update copyright year.
25092         (ggc_alloc_stat): Rename to ggc_alloc_stat.
25093         (ggc_alloc_cleared_stat): Rename to
25094         ggc_internal_cleared_alloc_stat.
25095         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25096
25097         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
25098         Remove references to ggc_alloc in comments.
25099         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
25100         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
25101         (new_ggc_zone, destroy_ggc_zone): Remove.
25102         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25103
25104         * ggc-zone.c: Include ggc-internal.h.  Remove references to
25105         ggc_alloc in comments.
25106         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
25107         (ggc_internal_alloc_zone_pass_stat): New.
25108         (ggc_internal_cleared_alloc_zone_stat): New.
25109         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
25110         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
25111         (new_ggc_zone, destroy_ggc_zone): Remove.
25112
25113         * stringpool.c: Update copyright year.  Include ggc-internal.h
25114         (digit_vector): Make static.
25115         (digit_string): Moved from ggc.h.
25116         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
25117         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
25118
25119         * Makefile.in (GGC_INTERNAL_H): New.
25120         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
25121         $(GGC_INTERNAL_H) to dependencies.
25122
25123         * gengtype.c: Update copyright year.
25124         (walk_type): Accept variable_size GTY option.
25125         (USED_BY_TYPED_GC_P): New macro.
25126         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
25127         whitespace at the end of strings.
25128         (get_type_specifier, variable_size_p): New functions.
25129         (alloc_quantity, alloc_zone): New enums.
25130         (write_typed_alloc_def): New function.
25131         (write_typed_struct_alloc_def): Likewise.
25132         (write_typed_typed_typedef_alloc_def): Likewise.
25133         (write_typed_alloc_defns): Likewise.
25134         (output_typename, write_splay_tree_allocator_def): Likewise.
25135         (write_splay_tree_allocators): Likewise.
25136         (main): Call write_typed_alloc_defns and
25137         write_splay_tree_allocators.
25138
25139         * lto-streamer.h (lto_file_decl_data_ptr): New.
25140
25141         * passes.c (order): Define using cgraph_node_ptr.
25142
25143         * strinpool.c (struct string_pool_data): Declare nested_ptr using
25144         ht_identifier_ptr.
25145
25146         * gimple.h (union gimple_statement_d): Likewise.
25147
25148         * rtl.h (struct rtx_def): Likewise.
25149         (struct rtvec_def): Likewise.
25150
25151         * tree.h (union tree_node): Likewise.
25152
25153         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
25154
25155         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
25156
25157         * tree-scalar-evolution.c (scev_initialize): Likewise.
25158
25159         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
25160
25161         * dwarf2asm.c (dw2_force_const_mem): Likewise.
25162
25163         * omp-low.c (lower_omp_critical): Likewise.
25164
25165         * bitmap.h (struct bitmap_head_def): Update comment to not
25166         reference ggc_alloc.
25167
25168         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
25169
25170         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
25171
25172         * ipa-prop.c (duplicate_ggc_array): Rename to
25173         duplicate_ipa_jump_func_array.  Use typed GC allocation.
25174         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
25175
25176         * gimple.c (gimple_alloc_stat): Use
25177         ggc_alloc_cleared_gimple_statement_d_stat.
25178
25179         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
25180
25181         * tree.c (make_node_stat): Use
25182         ggc_alloc_zone_cleared_tree_node_stat.
25183         (make_tree_vec_stat): Likewise.
25184         (build_vl_exp_stat): Likewise.
25185         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
25186         (make_tree_binfo_stat): Likewise.
25187         (tree_cons_stat): Likewise.
25188
25189         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
25190         (shallow_copy_rtx_stat): Likewise.
25191         (make_node_stat): Likewise.
25192
25193         * lto-symtab.c: Fix comment.
25194
25195         * tree-cfg.c (create_bb): Update comment to not reference
25196         ggc_alloc_cleared.
25197         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
25198
25199         * varpool.c (varpool_node): Use typed GC allocation.
25200         (varpool_extra_name_alias): Likewise.
25201
25202         * varasm.c (emutls_decl): Likewise.
25203         (get_unnamed_section): Likewise.
25204         (get_noswitch_section): Likewise.
25205         (get_section): Likewise.
25206         (get_block_for_section): Likewise.
25207         (build_constant_desc): Likewise.
25208         (create_constant_pool): Likewise.
25209         (force_const_mem): Likewise.
25210
25211         * tree.c (build_vl_exp_stat): Likewise.
25212         (build_real): Likewise.
25213         (build_string): Likewise.
25214         (decl_debug_expr_insert): Likewise.
25215         (decl_value_expr_insert): Likewise.
25216         (type_hash_add): Likewise.
25217         (build_omp_clause): Likewise.
25218
25219         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
25220
25221         * tree-ssa.c (init_tree_ssa): Likewise.
25222
25223         * tree-ssa-structalias.c (heapvar_insert): Likewise.
25224
25225         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25226
25227         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25228
25229         * tree-ssa-alias.c (get_ptr_info): Likewise.
25230
25231         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25232
25233         * tree-phinodes.c (allocate_phi_node): Likewise.
25234
25235         * tree-iterator.c (tsi_link_before): Likewise.
25236         (tsi_link_after): Likewise.
25237
25238         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25239
25240         * tree-dfa.c (create_var_ann): Likewise.
25241
25242         * tree-cfg.c (create_bb): Likewise.
25243
25244         * toplev.c (alloc_for_identifier_to_locale): Likewise.
25245         (general_init): Likewise.
25246
25247         * stringpool.c (stringpool_ggc_alloc): Likewise.
25248         (gt_pch_save_stringpool): Likewise.
25249
25250         * sese.c (if_region_set_false_region): Likewise.
25251
25252         * passes.c (do_per_function_toporder): Likewise.
25253
25254         * optabs.c (set_optab_libfunc): Likewise.
25255         (set_conv_libfunc): Likewise.
25256
25257         * lto-symtab.c (lto_symtab_register_decl): Likewise.
25258
25259         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25260         (input_eh_region): Likewise.
25261         (input_eh_lp): Likewise.
25262         (make_new_block): Likewise.
25263         (unpack_ts_real_cst_value_fields): Likewise.
25264
25265         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25266
25267         * lto-cgraph.c (input_node_opt_summary): Likewise.
25268
25269         * loop-init.c (loop_optimizer_init): Likewise.
25270
25271         * lambda.h (lambda_vector_new): Likewise.
25272
25273         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
25274
25275         * ira.c (update_equiv_regs): Likewise.
25276
25277         * ipa.c (cgraph_node_set_new): Likewise.
25278         (cgraph_node_set_add): Likewise.
25279         (varpool_node_set_new): Likewise.
25280         (varpool_node_set_add): Likewise.
25281
25282         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
25283         (duplicate_ipa_jump_func_array): Likewise.
25284         (ipa_read_node_info): Likewise.
25285
25286         * ipa-cp.c (ipcp_create_replace_map): Likewise.
25287
25288         * integrate.c (get_hard_reg_initial_val): Likewise.
25289
25290         * gimple.c (gimple_alloc_stat): Likewise.
25291         (gimple_build_omp_for): Likewise.
25292         (gimple_seq_alloc): Likewise.
25293         (gimple_copy): Likewise.
25294
25295         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
25296         (gsi_insert_after_without_update): Likewise.
25297
25298         * function.c (add_frame_space): Likewise.
25299         (insert_temp_slot_address): Likewise.
25300         (assign_stack_temp_for_type): Likewise.
25301         (allocate_struct_function): Likewise.
25302         (types_used_by_var_decl_insert): Likewise.
25303
25304         * except.c (init_eh_for_function): Likewise.
25305         (gen_eh_region): Likewise.
25306         (gen_eh_region_catch): Likewise.
25307         (gen_eh_landing_pad): Likewise.
25308         (add_call_site): Likewise.
25309
25310         * emit-rtl.c (get_mem_attrs): Likewise.
25311         (get_reg_attrs): Likewise.
25312         (start_sequence): Likewise.
25313         (init_emit): Likewise.
25314
25315         * dwarf2out.c (new_cfi): Likewise.
25316         (queue_reg_save): Likewise.
25317         (dwarf2out_frame_init): Likewise.
25318         (new_loc_descr): Likewise.
25319         (find_AT_string): Likewise.
25320         (new_die): Likewise.
25321         (add_var_loc_to_decl): Likewise.
25322         (clone_die): Likewise.
25323         (clone_as_declaration): Likewise.
25324         (break_out_comdat_types): Likewise.
25325         (new_loc_list): Likewise.
25326         (loc_descriptor): Likewise.
25327         (add_loc_descr_to_each): Likewise.
25328         (add_const_value_attribute): Likewise.
25329         (tree_add_const_value_attribute): Likewise.
25330         (add_comp_dir_attribute): Likewise.
25331         (add_name_and_src_coords_attributes): Likewise.
25332         (lookup_filename): Likewise.
25333         (store_vcall_insn): Likewise.
25334         (dwarf2out_init): Likewise.
25335
25336         * dbxout.c (dbxout_init): Likewise.
25337
25338         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25339
25340         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25341
25342         * config/score/score7.c (score7_output_external): Likewise.
25343
25344         * config/score/score3.c (score3_output_external): Likewise.
25345
25346         * config/s390/s390.c (s390_init_machine_status): Likewise.
25347
25348         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25349         (rs6000_init_machine_status): Likewise.
25350         (output_toc): Likewise.
25351
25352         * config/pa/pa.c (pa_init_machine_status): Likewise.
25353         (get_deferred_plabel): Likewise.
25354
25355         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25356
25357         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25358
25359         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25360
25361         * config/mep/mep.c (mep_init_machine_status): Likewise.
25362         (mep_note_pragma_flag): Likewise.
25363
25364         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25365
25366         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25367
25368         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25369
25370         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25371         (i386_pe_maybe_record_exported_symbol): Likewise.
25372
25373         * config/i386/i386.c (get_dllimport_decl): Likewise.
25374         (ix86_init_machine_status): Likewise.
25375         (assign_386_stack_local): Likewise.
25376
25377         * config/frv/frv.c (frv_init_machine_status): Likewise.
25378
25379         * config/darwin.c (machopic_indirection_name): Likewise.
25380
25381         * config/cris/cris.c (cris_init_machine_status): Likewise.
25382
25383         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25384
25385         * config/avr/avr.c (avr_init_machine_status): Likewise.
25386
25387         * config/arm/arm.c (arm_init_machine_status): Likewise.
25388
25389         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25390         (alpha_need_linkage): Likewise.
25391         (alpha_use_linkage): Likewise.
25392
25393         * cgraph.c (cgraph_allocate_node): Likewise.
25394         (cgraph_create_edge_1): Likewise.
25395         (cgraph_create_indirect_edge): Likewise.
25396         (cgraph_add_asm_node): Likewise.
25397
25398         * cfgrtl.c (init_rtl_bb_info): Likewise.
25399
25400         * cfgloop.c (alloc_loop): Likewise.
25401         (rescan_loop_exit): Likewise.
25402
25403         * cfg.c (init_flow): Likewise.
25404         (alloc_block): Likewise.
25405         (unchecked_make_edge): Likewise.
25406
25407         * c-parser.c (c_parse_init): Likewise.
25408         (c_parse_file): Likewise.
25409
25410         * c-decl.c (bind): Likewise.
25411         (record_inline_static): Likewise.
25412         (push_scope): Likewise.
25413         (make_label): Likewise.
25414         (lookup_label_for_goto): Likewise.
25415         (finish_struct): Likewise.
25416         (finish_enum): Likewise.
25417         (c_push_function_context): Likewise.
25418
25419         * bitmap.c (bitmap_element_allocate): Likewise.
25420         (bitmap_gc_alloc_stat): Likewise.
25421
25422         * alias.c (record_alias_subset): Likewise.
25423         (init_alias_analysis): Likewise.
25424
25425 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
25426
25427         * fold-const.c (fold_comparison): Remove redundant parenthesis.
25428         * tree-inline.c (expand_call_inline): Pass translated return value of
25429         cgraph_inline_failed_string to diagnostic function.
25430
25431 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
25432             Shujing Zhao  <pearly.zhao@oracle.com>
25433
25434         PR c/37724
25435         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
25436         implicit bad conversions is initialization.
25437         (error_init): Use gmsgid instead of msgid for argument name and change
25438         the call for error.
25439         (pedwarn_init): Use gmsgid instead of msgid for argument name and
25440         change the call for pedwarn.
25441         (warning_init): Use gmsgid instead of msgid for argument name and
25442         change the call for warning.
25443
25444 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
25445
25446         * config/mips/mips-protos.h (mips_print_operand): Delete.
25447         (mips_print_operand_address): Delete.
25448         * config/mips/mips.h (mips_print_operand_punct): Delete.
25449         (PRINT_OPERAND): Delete.
25450         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25451         (PRINT_OPERAND_ADDRESS): Delete.
25452         * config/mips/mips.c (mips_print_operand_punct): Make static.
25453         (mips_print_operand_address): Make static.
25454         (mips_print_operand): Make static.  Call
25455         mips_print_operand_punct_valid_p.
25456         (mips_print_operand_punct_valid_p): New function.
25457         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25458         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25459
25460 2010-06-07  Jan Hubicka  <jh@suse.cz>
25461
25462         PR middle-end/44454
25463         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
25464         are allocated.
25465
25466 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
25467
25468         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
25469         name of RECORD.
25470
25471 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25472
25473         * doc/sourcebuild.texi (Effective-Target Keywords, Other
25474         attributes): Document gas.
25475
25476 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
25477
25478         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
25479         <TYPE_LEA>: Split instruction.
25480         <default>: Remove alternative 2 handling.
25481         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
25482         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
25483         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
25484
25485         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
25486         (ashift_zext lea splitter): Use DImode for multiplication.
25487
25488         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
25489         to generate addition.
25490
25491 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
25492
25493         * common.opt (fira-verbose): Use Var.
25494         (fpcc-struct-return): Use Init instead of VarExists.
25495         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
25496         toplev.c.
25497         * flags.h (flag_signed_char, flag_short_enums,
25498         flag_pcc_struct_return, flag_ira_verbose,
25499         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
25500         * toplev.c (flag_detailed_statistics, flag_signed_char,
25501         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
25502         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
25503         * toplev.h (flag_crossjumping, flag_if_conversion,
25504         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
25505         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
25506         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
25507         flag_cprop_registers, time_report, flag_ira_loop_pressure,
25508         flag_ira_coalesce, flag_ira_move_spills,
25509         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
25510
25511 2010-06-07  Jan Hubicka  <jh@suse.cz>
25512
25513         * df-core.c (df_analyze_problem): Do verification after allocation.
25514
25515         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
25516         (df_lr_alloc): Initialize problem data; move bitmaps to
25517         lr_bitmaps obstack.
25518         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
25519         (df_lr_verify_solution_start): Do not initialize problem data;
25520         allocate bitmaps in lr_bitmaps.
25521         (df_lr_verify_solution_end): Do not free problem data.
25522
25523 2010-06-07  Jan Hubicka  <jh@suse.cz>
25524
25525         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
25526         if caller is noreturn.
25527         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
25528         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
25529         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
25530         * ipa-pure-const.c (check_decl): Add IPA parameter.
25531         (state_from_flags): New function.
25532         (better_state, worse_state): New functions.
25533         (check_call): When in IPA mode, do not care about callees.
25534         (check_load, check_store): Update.
25535         (check_ipa_load, check_ipa_store): New.
25536         (check_stmt): When in IPA mode, use IPA checkers.
25537         (analyze_function): Use state_from_flags.
25538         (propagate): Check indirect edges and references.
25539
25540 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
25541
25542         PR rtl-optimization/44404
25543         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
25544         of count_occurrences to see if it's safe to modify mem_insn.
25545
25546 2010-06-07  Richard Guenther  <rguenther@suse.de>
25547
25548         * gimplify.c (gimplify_cleanup_point_expr): For empty body
25549         and EH-only cleanup drop the cleanup instead of inserting it
25550         unconditionally.
25551
25552 2010-06-07  Ira Rosen  <irar@il.ibm.com>
25553
25554         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
25555         documentation.
25556         * targhooks.c (default_builtin_vectorization_cost): New function.
25557         * targhooks.h (default_builtin_vectorization_cost): Declare.
25558         * target.h (enum vect_cost_for_stmt): Define.
25559         (builtin_vectorization_cost): Change argument and comment.
25560         * tree-vectorizer.h: Remove cost model macros.
25561         * tree-vect-loop.c: Include target.h.
25562         (vect_get_cost): New function.
25563         (vect_estimate_min_profitable_iters): Replace cost model macros with
25564         calls to vect_get_cost.
25565         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
25566         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
25567         default implementation.
25568         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
25569         calls to target hook builtin_vectorization_cost.
25570         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
25571         Likewise.
25572         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
25573         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
25574         implementation to return costs.
25575         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
25576         * config/spu/spu.h: Remove vectorizer cost model macros.
25577         * config/i386/i386.h: Likewise.
25578         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
25579         a call to target hook builtin_vectorization_cost.
25580
25581 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
25582
25583         PR target/44319
25584         * config/i386/i386.c (override_options): Turn zee pass on for level 2
25585         and above and defer till target is known.
25586         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
25587         turn off otherwise.
25588
25589 2010-05-25  Jan Hubicka  <jh@suse.cz>
25590
25591         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
25592         (df_compact_blocks): Likewise.
25593         * df.h (struct df): Turn hardware_regs_used,
25594         regular_block_artificial_uses, eh_block_artificial_uses,
25595         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
25596         bitmap_head.
25597         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
25598         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
25599         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
25600         df_scan_blocks, df_insn_delete, df_insn_rescan,
25601         df_insn_rescan_debug_internal, df_insn_rescan_all,
25602         df_process_deferred_rescans, df_process_deferred_rescans,
25603         df_notes_rescan, df_get_call_refs, df_get_call_refs,
25604         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
25605         df_record_entry_block_defs, df_record_exit_block_uses,
25606         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
25607         df_scan_verify): Update.
25608
25609 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
25610
25611         PR c++/44188
25612         * c-common.c (is_typedef_decl): Move this definition ...
25613         * tree.c (is_typedef_decl): ... here.
25614         (typdef_variant_p): Move definition here from cp/tree.c.
25615         * c-common.h (is_typedef_decl): Move this declaration ...
25616         * tree.h (is_typedef_decl): ... here.
25617         (typedef_variant_p): Move declaration here from cp/cp-tree.h
25618         * dwarf2out.c (is_naming_typedef_decl): New function.
25619         (gen_tagged_type_die): Split out of ...
25620         (gen_type_die_with_usage): ... this function. When an anonymous
25621         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
25622         is emitted for the typedef.
25623         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
25624         anonymous tagged types.
25625
25626 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25627
25628         PR c/20000
25629         * c-decl.c (grokdeclarator): Delete warning.
25630
25631 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25632
25633         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
25634         newly built CALL_EXPR.
25635         * tree-profile.c (tree_profiling): Don't profile functions produced
25636         for built-in stuff.
25637
25638 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
25639
25640         PR bootstrap/44427
25641         PR bootstrap/44428
25642         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
25643         endianness-independent.
25644
25645 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
25646
25647         * c-common.c: Move to c-family/.
25648         * c-common.def: Likewise.
25649         * c-common.h: Likewise.
25650         * c-cppbuiltin.c: Likewise.
25651         * c-dump.c: Likewise.
25652         * c-format.c: Likewise.
25653         * c-format.h : Likewise.
25654         * c-gimplify.c: Likewise.
25655         * c-lex.c: Likewise.
25656         * c-omp.c: Likewise.
25657         * c.opt: Likewise.
25658         * c-opts.c: Likewise.
25659         * c-pch.c: Likewise.
25660         * c-ppoutput.c: Likewise.
25661         * c-pragma.c: Likewise.
25662         * c-pragma.h: Likewise.
25663         * c-pretty-print.c: Likewise.
25664         * c-pretty-print.h: Likewise.
25665         * c-semantics.c: Likewise.
25666         * stub-objc.c: Likewise.
25667
25668         * gengtype.c (get_file_langdir): Special-case files in c-family/.
25669         (get_output_file_with_visibility): Fix name for c-common.h.
25670         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
25671
25672         * c-tree.h: Update include path for moved files.
25673         * c-lang.c: Likewise.
25674         * c-lang.h: Likewise.
25675         * c-parser.c: Likewise.
25676         * c-convert.c: Likewise.
25677         * c-decl.c: Likewise.
25678         * c-objc-common.c: Likewise.
25679         * configure.ac: Make sure c-family/ exists in the build directory.
25680         * configure: Regenerate.
25681         * Makefile.in: Update paths for moved files.  Regroup files per
25682         location and update dependencies.  Move generated_files down after
25683         ALL_GTFILES_H.
25684
25685         * config/spu/spu-c.c: Update paths for moved files.
25686         * config/mep/mep-pragma.c: Likewise.
25687         * config/darwin-c.c: Likewise.
25688         * config/i386/msformat-c.c: Likewise.
25689         * config/i386/i386-c.c: Likewise.
25690         * config/avr/avr-c.c: Likewise.
25691         * config/sol2-c.c: Likewise.
25692         * config/ia64/ia64-c.c: Likewise.
25693         * config/rs6000/rs6000-c.c: Likewise.
25694         * config/arm/arm.c: Likewise.
25695         * config/arm/arm-c.c: Likewise.
25696         * config/h8300/h8300.c: Likewise.
25697         * config/v850/v850-c.c: Likewise.
25698
25699         * config/t-darwin: Fix dependencies for moved files.
25700         * config/t-sol2: Fix dependencies for moved files.
25701         * config/mep/t-mep: Fix dependencies for moved files.
25702         * config/ia64/t-ia64: Fix dependencies for moved files.
25703         * config/rs6000/t-rs6000: Fix dependencies for moved files.
25704         * config/v850/t-v850: Fix dependencies for moved files.
25705         * config/v850/t-v850e: Fix dependencies for moved files.
25706
25707         * config/m32c/m32c-pragma.c
25708
25709         * po/exgettext: Look in c-family/ also.
25710
25711 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
25712
25713         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
25714         (mark_control_dependent_edges_necessary): Call it instead of marking
25715         the last statement manually.
25716         (propagate_necessity): Likewise.
25717
25718 2010-06-05  Jan Hubicka  <jh@suse.cz>
25719
25720         * basic-block.h (compute_dominance_frontiers): Updated.
25721         (compute_idf): Likewise.
25722
25723         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
25724         for dominance frontiers.
25725         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
25726         (insert_updated_phi_nodes_for): Likewise.
25727         (update_ssa): Likewise.
25728         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25729         (compute_dominance_frontiers): Likewise.
25730         (compute_idf): Likewise.
25731         * df-problems.c (df_md_local_compute): Likewise.
25732
25733 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
25734
25735         * target.h (struct gcc_target): Add memory_move_cost field.
25736         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
25737         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
25738         * targhooks.c (default_memory_move_cost): New function.
25739         * targhooks.h (default_memory_move_cost): Declare function.
25740         * reload.h (memory_move_cost): Declare.
25741         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25742         * reginfo.c (memory_move_cost): New function.
25743         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25744         * ira.h (ira_memory_move_cost): Update comment.
25745         * ira.c (ira_memory_move_cost): Update comment.
25746         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
25747         with memory_move_cost.
25748         * postreload.c (reload_cse_simplify_set): (Ditto.).
25749         * reload1.c (choose_reload_regs): (Ditto.).
25750         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
25751         (MEMORY_MOVE_COST):  Revise documentation.
25752
25753         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
25754         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
25755         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
25756         type of 'in' argument to bool.
25757         (TARGET_MEMORY_MOVE_COST): Define.
25758
25759 2010-06-05  Jan Hubicka  <jh@suse.cz>
25760
25761         * ipa-pure-const.c (propagate): Fix typo in handling of functions
25762         that cannot return.  Be more careful when merging the results with
25763         previously known ones.
25764
25765 2010-06-05  Matthias Klose  <doko@ubuntu.com>
25766
25767         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
25768         function to add the -iplugindir option.
25769         (find_plugindir_spec_function): Add new declaration and function.
25770         (static_spec_func): Use it for "find-plugindir".
25771
25772 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
25773
25774         PR c++/44361
25775         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
25776         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
25777         statement expression.
25778
25779 2010-06-05  Jan Hubicka  <jh@suse.cz>
25780
25781         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
25782         (df_rd_problem_data): Convert sparse_invalidated_by_call,
25783         dense_invalidated_by_call to bitmap head.
25784         (df_rd_alloc, df_rd_bb_local_compute_process_def,
25785         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
25786         df_rd_start_dump, df_lr_verify_transfer_functions,
25787         df_live_verify_transfer_functions, df_chain_create_bb,
25788         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
25789         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
25790         df_simulate_one_insn_forwards, df_md_alloc,
25791         df_md_bb_local_compute_process_def,
25792         df_md_bb_local_compute_process_def, df_md_local_compute,
25793         df_md_transfer_function df_md_free): Update.
25794
25795 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
25796
25797         PR c/44322
25798         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
25799         target type for ADDR_EXPR; require no changes to qualifiers except
25800         for function types.
25801         * c-tree.h (c_build_type_variant): Remove.
25802
25803 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25804
25805         * genautomata.c (get_excl_set): Do work per element, not per char.
25806         (check_presence_pattern_sets): Similar.
25807         (check_absence_pattern_sets): Similar.
25808
25809 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25810
25811         * genautomata.c (curr_state_pass_num): Delete.
25812         (min_issue_delay_pass_states): Delete.
25813         (min_issue_delay): Delete.
25814         (initiate_min_issue_delay_pass_states): Delete.
25815         (output_min_issue_delay_table): Compute min_issue_delay_vect
25816         using a breadth-first search variant.
25817         (output_tables): Don't call initiate_min_issue_delay_pass_states.
25818
25819 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
25820
25821         PR boostrap/44421
25822         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
25823         (df_byte_lr_bb_local_compute): Likewise.
25824
25825 2010-06-03  Jason Merrill  <jason@redhat.com>
25826
25827         Implement noexcept operator (5.3.7)
25828         * c-common.c (c_common_reswords): Add noexcept.
25829         * c-common.h (enum rid): Add RID_NOEXCEPT.
25830
25831 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
25832
25833         * config/darwin-driver.c (darwin_default_min_version): Use
25834         GCC-specific formats in diagnostics.
25835         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
25836         diagnostics.
25837         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
25838         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
25839         eval_spec_function, handle_braces, process_brace_body, main,
25840         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
25841         getenv_spec_function, compare_version_strings,
25842         version_compare_spec_function): Use GCC-specific formats in
25843         diagnostics.
25844
25845 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25846
25847         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
25848         that operand 0 and operand 1 are equal.
25849         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
25850         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
25851         and operand 1 are equal.
25852         <default>: Ditto.  Remove ??? comment.
25853         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
25854         and operand 1 are equal.
25855         <default>: Ditto.  Remove ??? comment.
25856         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
25857         are equal.
25858         (*add<mode>_4) <default>: Ditto.
25859         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
25860
25861 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
25862
25863         * config/i386/i386-protos.h (ix86_print_operand): Declare.
25864         * config/i386/i386.c (ix86_print_operand): Make non-static.
25865         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
25866         * output.h (output_operand): Declare.
25867         * final.c (output_operand): Make non-static.
25868
25869 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
25870
25871         PR rtl-optimization/44013
25872         * sched-deps.c (add_dependence_list_and_free): Don't free lists
25873         when processing debug insns.
25874
25875         PR debug/41371
25876         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
25877         recursing.  Check that recursion is bounded.  Rename inner var
25878         to avoid hiding incoming argument.
25879
25880 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25881
25882         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
25883         operands[2] == 255.
25884         (*addqi_3): Ditto.
25885         (*addqi_4): Ditto.
25886         (*addqi_5): Ditto.
25887         (*addqi_ext_1_rex64): Ditto.
25888         (*addqi_ext_1): Ditto.
25889
25890         (*addqi_4): Check for incdec_operand in QImode.
25891
25892         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
25893         using SWI mode iterator.
25894         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
25895         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
25896         mode iterator.
25897         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
25898         using SWI mode iterator.
25899
25900 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25901
25902         PR c/25880
25903         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
25904         * c-format.c (gcc_diag_flag_specs): Add hash.
25905         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
25906         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
25907         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
25908         pp_c_cv_qualifiers. Handle qualifiers spelling here.
25909         (pp_c_type_qualifier_list): Call the function above.
25910         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
25911         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
25912         (WARN_FOR_QUALIFIERS): New macro.
25913         (convert_for_assignment): Use it.
25914
25915 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
25916
25917         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
25918
25919 2010-06-04  Jan Hubicka  <jh@suse.cz>
25920
25921         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
25922         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
25923         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
25924         DF_BYTE_LR_OUT): Update for embedded bitmaps.
25925         * fwprop.c (single_def_use_enter_block): Likewise.
25926         * ddg.c (create_ddg_dep_from_intra_loop_link,
25927         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
25928         * loop-iv.c (latch_dominating_def): Likewise.
25929         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
25930         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
25931         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
25932         df_rd_transfer_function, df_rd_top_dump,
25933         df_rd_bottom_dump): Update.
25934         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
25935         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
25936         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
25937         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
25938         df_lr_verify_solution_start, df_lr_verify_solution_end,
25939         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
25940         df_live_free_bb_info, df_live_alloc, df_live_reset,
25941         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
25942         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
25943         df_live_verify_solution_start, df_live_verify_solution_end,
25944         df_live_verify_transfer_functions, df_chain_create_bb,
25945         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
25946         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25947         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25948         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
25949         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
25950         df_byte_lr_transfer_function, df_byte_lr_top_dump,
25951         df_byte_lr_bottom_dump, df_create_unused_note,
25952         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
25953         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
25954         df_md_transfer_function, df_md_init, df_md_confluence_0,
25955         df_md_confluence_n,
25956         df_md_top_dump, df_md_bottom_dump): Update.
25957         (struct df_lr_problem_data): Embedd bitmap headers.
25958
25959 2010-06-04  Jan Hubicka  <jh@suse.cz>
25960
25961         * dce.c (dce_process_block): Do not re-scan already marked
25962         instructions.
25963
25964 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
25965
25966         PR rtl-optimization/39871
25967         PR rtl-optimization/40615
25968         PR rtl-optimization/42500
25969         PR rtl-optimization/42502
25970         * ira.c (init_reg_equiv_memory_loc: New function.
25971         (ira): Call it twice.
25972         * reload.h (calculate_elim_costs_all_insns): Declare.
25973         * ira-costs.c: Include "reload.h".
25974         (regno_equiv_gains): New static variable.
25975         (init_costs): Allocate it.
25976         (finish_costs): Free it.
25977         (ira_costs): Call calculate_elim_costs_all_insns.
25978         (find_costs_and_classes): Take estimated elimination costs
25979         into account.
25980         (ira_adjust_equiv_reg_cost): New function.
25981         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
25982         * reload1.c (init_eliminable_invariants, free_reg_equiv,
25983         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
25984         (elim_bb): New static variable.
25985         (reload): Move code out of here into init_eliminable_invariants and
25986         free_reg_equiv.  Call them.
25987         (calculate_elim_costs_all_insns): New function.
25988         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
25989         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
25990         but call note_reg_elim_costly if we turned a valid memory address
25991         into an invalid one.
25992         * Makefile.in (ira-costs.o): Depend on reload.h.
25993
25994 2010-06-04  Julian Brown  <julian@codesourcery.com>
25995
25996         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
25997         for pool ranges.
25998
25999 2010-06-04  Richard Guenther  <rguenther@suse.de>
26000
26001         PR lto/41584
26002         * cgraph.h (struct varpool_node): Add lto_file_data field.
26003         * lto-cgraph.c (input_varpool_node): Initialize it.
26004
26005 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
26006
26007         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
26008         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
26009         predicate in "type" attribute calculation.
26010         (*addsi_1_zext): Ditto.
26011         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
26012         (*addsi_2_zext): Ditto.
26013         (*add<mode>_3): Ditto.
26014         (*addsi_3_zext): Ditto.
26015         (*add<mode>_5): Ditto.
26016
26017 2010-06-03  Jan Hubicka  <jh@suse.cz>
26018
26019         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
26020         of bitmap_bit_p.
26021         * cfganal.c (compute_dominance_frontiers_1): Likewise.
26022
26023 2010-06-03  Jan Hubicka  <jh@suse.cz>
26024
26025         * df-problems.c (df_create_unused_note, df_note_bb_compute):
26026         micro-optimize the checks when to add new note.
26027
26028 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
26029
26030         * final.c (output_asm_insn): Call
26031         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
26032         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
26033         (output_address): Call targetm.asm_out.print_operand_address.
26034         Update comments.
26035         * target.h (struct gcc_target): Add print_operand,
26036         print_operand_address, and print_operand_punct_valid_p fields.
26037         * targhooks.h (default_print_operand): Declare.
26038         (default_print_operand_address): Declare.
26039         (default_print_operand_punct_valid_p): Declare.
26040         * targhooks.c (default_print_operand): Define.
26041         (default_print_operand_address): Define.
26042         (default_print_operand_punct_valid_p): Define.
26043         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
26044         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
26045         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
26046         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
26047         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
26048         * vmsdbgout.c (addr_const_to_string): Update comment.
26049         * config/i386/i386.c (print_operand): Rename to...
26050         (ix86_print_operand): ...this.  Make static.
26051         (print_operand_address): Rename to...
26052         (ix86_print_operand_address): ...this.  Make static.  Call
26053         ix86_print_operand instead of PRINT_OPERAND.
26054         (ix86_print_operand_punct_valid_p): New function.
26055         (TARGET_PRINT_OPERAND): Define.
26056         (TARGET_PRINT_OPERAND_ADDRESS): Define.
26057         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26058         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
26059         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26060         (PRINT_OPERAND): Delete.
26061         (PRINT_OPERAND_ADDRESS): Delete.
26062         * config/i386/i386-protos.h (print_operand): Delete prototype.
26063         (print_operand_address): Delete prototype.
26064
26065 2010-06-03  Richard Guenther  <rguenther@suse.de>
26066
26067         PR tree-optimization/44403
26068         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26069         Preserve pointer qualifiers.
26070         (vect_create_data_ref_ptr): Likewise.
26071
26072 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
26073
26074         PR c++/44294
26075         * defaults.h (MAX_FIXED_MODE_SIZE): New.
26076
26077         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
26078
26079 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
26080
26081         PR debug/44375
26082         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
26083         return false if merging the bbs would lead to goto_locus
26084         location being lost from the IL.
26085
26086 2010-06-03  Jan Hubicka  <jh@suse.cz>
26087             Jakub Jelinek  <jakub@redhat.com>
26088
26089         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
26090         set->regs[i] is NULL or has just one entry.
26091
26092 2010-06-03  Jan Hubicka  <jh@suse.cz>
26093
26094         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
26095         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
26096
26097 2010-06-03  Paul Brook  <paul@codesourcery.com>
26098
26099         * config/arm/arm.c (FL_TUNE): Define.
26100         (arm_default_cpu, arm_cpu_select): Remove.
26101         (all_cores): Populate core field.
26102         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
26103         (arm_find_cpu): New function.
26104         (arm_handle_option): Lookup cpu/architecture names.
26105         (arm_override_options): Cleanup mcpu/march/mtune handling.
26106         (arm_file_start): Ditto.
26107
26108 2010-06-03  Alan Modra  <amodra@gmail.com>
26109
26110         PR target/44169
26111         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
26112         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
26113         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
26114         (rs6000_emit_load_toc_table): Likewise.
26115
26116 2010-06-02  Jan Hubicka  <jh@suse.cz>
26117
26118         * passes.c (init_optimization_passes): Put ipa reference
26119         after ipa pure-const.
26120
26121 2010-06-02  Jan Hubicka  <jh@suse.cz>
26122
26123         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
26124         calls_read_all and calls_write_all.
26125         (get_reference_optimization_summary): Fix formatting.
26126         (is_proper_for_analysis): Check that decl is not readonly.
26127         (propagate_bits): Check CONST/PURE/noreturn flags.
26128         (ipa_init): Move all_module_statics to optimization_summary_obstack.
26129         (analyze_function): Ignore indirect edges.
26130         (copy_global_bitmap): For all module statics, do nothing.
26131         (generate_summary): Do not print calls_read_all/calls_write_all.
26132         (read_write_all_from_decl): Take node as argument; check
26133         cgraph_node_cannot_return.
26134         (propagate): Reorganize read_all/write_all computation;
26135         check indirect edges; check ecf flags; use all_module_statics
26136         in the results; do not free all_module_statics.
26137         (stream_out_bitmap): Handle all_module_statics.
26138         (ipa_reference_write_optimization_summary): Likewise; use
26139         varpool/cgraph encoders to get boundaries.
26140         (ipa_reference_read_optimization_summary): Read in all_module_statics;
26141         use it when possible.
26142
26143 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26144
26145         PR target/44218
26146         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
26147         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
26148
26149         * doc/extend.texi (powerpc builtins): Document vec_recip,
26150         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
26151
26152         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
26153         (rs6000_emit_swrsqrt): Ditto.
26154         (rs6000_emit_swdivsf): Delete.
26155         (rs6000_emit_swdivdf): Ditto.
26156         (rs6000_emit_swrsqrtsf): Ditto.
26157
26158         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
26159         describe the reciprocal estimate support for each type.
26160         (recip_options): Map -mrecip=<opt> into option bits.
26161         (gen_2arg_fn_t): New typedef for binary rtx gen function.
26162         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
26163         reciprocal estimate instructions.
26164         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
26165         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
26166         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
26167         cost information if -mdebug=cost or -mdebug=reg.
26168         (rs6000_override_options): Set -mrecip-precision for power6, and
26169         power7 machines.  If -mvsx or -mdfp, enable various options that
26170         came in previous instruction set ISAs, unless the option was
26171         explicitly disabled by the command line option.  Parse
26172         -mrecip=<opt> options.
26173         (rs6000_builtin_vectorized_function): Add support for vectorizing
26174         the reciprocal estimate builtins and expansions.
26175         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
26176         (bdesc_2arg): Add reciprocal estimate builtins.
26177         (bdesc_1arg): Add reciprocal square root estimate builtins.
26178         (rs6000_expand_builtin): Rewrite to use a switch statement,
26179         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
26180         (rs6000_init_builtins): Create declarations for reciprocal
26181         estimate builtins.
26182         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
26183         sized, prefer traditional floating point registers, if integer
26184         vector types, prefer altivec registers.  Don't actually look at
26185         the memory address any more.
26186         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
26187         builtins.
26188         (rs6000_load_constant_and_splat): New helper function to load up
26189         the constant for reciprocal estimate instructions.
26190         (rs6000_emit_madd): New helper function for generating
26191         multiply/add type instructions, based on the current switches.
26192         (rs6000_emit_msub): Ditto.
26193         (rs6000_emit_mnsub): Ditto.
26194         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
26195         replace a divide with a reciprocal estimate and fixup, adding
26196         support for machines with high precision and vectors.
26197         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
26198         low precision machines.
26199         (rs6000_emit_swdiv): New common function to be called to replace a
26200         division with reciprocal estimate and fixup.
26201         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
26202         for double and vector types.  Add support for high precision machines.
26203
26204         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
26205         the reciprocal estimate instructions can be generated.
26206         (TARGET_FRE): Ditto.
26207         (TARGET_FRSQRTES): Ditto.
26208         (TARGET_FRSQRTE): Ditto.
26209         (RS6000_RECIP_*): New macros for reciprocal estimate support.
26210
26211         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
26212         square root estimate on vectors.
26213         (re<mode>2): New insn for reciprocal division estimate on vectors.
26214
26215         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
26216         New builtin.
26217         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
26218         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
26219         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
26220         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
26221         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
26222         (RS6000_BUILTIN_RSQRT): Ditto.
26223         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
26224         floating point builtin.
26225
26226         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26227         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
26228         __RECIP_PRECISION__ based on the command line switches.
26229         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
26230
26231         * config/rs6000/rs6000.opt (-mrecip): Document add support for
26232         replacing division instructions with reciprocal estimate and fixup.
26233         (-mrecip=<opt>): New option.
26234         (-mrecip-precision): Ditto.
26235
26236         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
26237         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
26238         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
26239         precision scalar.
26240
26241         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
26242         (UNSPEC_VREFP): Ditto.
26243         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
26244         conterparts with regard to support of -mno-fused-madd and -ffast-math.
26245         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
26246         reciprocal estimate instructions to be generated.
26247         (altivec_vrefp): Ditto.
26248
26249         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
26250         estimate support.
26251         (rreg): New mode attribute for reciprocal estimate support.
26252         (recip<mode>3): New insn for division using reciprocal estimate
26253         and fixup builtins.
26254         (divide define_split): New define_split to convert floating point
26255         division to use reciprocal estimate if the user used the
26256         appropriate options and the split is run when we can add new
26257         pseudo registers for the fixup.
26258         (rsqrt<mode>2): New insn for reciprocal square root support.
26259         (recipsf3): Move into recip<mode>3.
26260         (recipdf3): Ditto.
26261         (fres): Use TARGET_FRES.
26262         (rsqrtsf2): Move into rsqrt<mode>2.
26263         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
26264         (copysignsf3): Add support for VSX.
26265         (fred): Use TARGET_FRE.
26266         (fred_fpr): Ditto.
26267         (rsqrtdf_internal1): New function for frsqrte instruciton.
26268
26269         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
26270         (vec_rsqrt): Ditto.
26271
26272 2010-06-03  Richard Guenther  <rguenther@suse.de>
26273
26274         PR middle-end/44291
26275         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
26276         (set_user_assembler_libfunc): Likewise.
26277
26278 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26279
26280         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
26281         defaults.h.
26282         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
26283         to defaults.h
26284         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
26285         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
26286         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
26287         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
26288         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
26289         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
26290         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
26291         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
26292         * defaults.h: Updated for above mentioned changes.
26293
26294 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
26295
26296         * c-common.c: Remove header include of tm_p.h.
26297         * Makefile.in (c-common.o): Remove TM_P_H dependency.
26298
26299 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
26300
26301         * tree.h (struct tree_decl_map): New type.
26302         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
26303         (tree_decl_map_hash): New prototype.
26304         (debug_expr_for_decl, value_expr_for_decl): Change into
26305         tree_decl_map hashtab from tree_map.
26306         (init_ttree): Adjust initialization.
26307         (tree_decl_map_hash): New function.
26308         (decl_debug_expr_lookup, decl_debug_expr_insert,
26309         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
26310
26311 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26312
26313         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
26314         linker emulations.
26315         * configure: Regenerate.
26316         * config.in: Regenerate.
26317
26318         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
26319         (X86_64_EMULATION): Define.
26320         (TARGET_LD_EMULATION): Use them.
26321
26322         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
26323         (SPARC64_EMULATION): Define.
26324         (LINK_ARCH_SPEC): Use them.
26325
26326 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26327
26328         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
26329         smallest_mode_for_size for computing the precision types of new
26330         graphite IVs.  Do not call lang_hooks.types.type_for_size.
26331
26332 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26333
26334         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
26335         information.
26336         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
26337
26338 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26339
26340         PR middle-end/44363
26341         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
26342         return false instead.
26343
26344 2010-06-02  Jan Hubicka  <jh@suse.cz>
26345
26346         PR middle-end/44295
26347         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
26348         create new cgraph node to check callee.
26349
26350 2010-06-02  Richard Guenther  <rguenther@suse.de>
26351
26352         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
26353
26354 2010-06-02  Richard Guenther  <rguenther@suse.de>
26355
26356         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
26357         (lto_wrapper_cleanup): ... this.  Do not exit.
26358         (fatal): Adjust.  Exit here.
26359         (fatal_perror): Likewise.
26360         (fatal_signal): New function.
26361         (main): Set up signal handlers to cleanup temporary files.
26362         * Makefile.in (lto-wrapper.o): Adjust dependencies.
26363
26364 2010-06-02  Richard Guenther  <rguenther@suse.de>
26365
26366         PR tree-optimization/44377
26367         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
26368
26369 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26370
26371         * config/s390/2097.md (z10_fhex): Remove insn reservation.
26372         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
26373         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
26374         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
26375         instruction.
26376         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
26377
26378 2010-06-02  Jan Hubicka  <jh@suse.cz>
26379
26380         * bitmap.c (bitmap_descriptor): Add search_iter.
26381         (bitmap_find_bit): Increment it.
26382         (print_statistics): Print it.
26383
26384 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
26385
26386         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
26387         instead of gimple_build_call_vec.  Delete unnecessary local variable.
26388
26389 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26390
26391         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
26392         change from yesterday.
26393
26394 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26395
26396         * c-ada-spec.c: Clean up redundant includes.
26397
26398 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
26399
26400         * gimplify.c: Do not include except.h and optabs.h.
26401         (gimplify_body): Do not initialize RTL profiling.
26402         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
26403         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
26404         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
26405         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
26406         langhooks.h.
26407
26408         * tree-pretty-print.h: Include pretty-print.h.
26409         * gimple-pretty-print.h: Include pretty-print.h.
26410
26411         * tree-pretty-print.c: Do not include diagnostic.h.
26412         * tree-vrp.c: Likewise.
26413         * tree-tailcall.c: Likewise
26414         * tree-scalar-evolution.c: Likewise
26415         * tree-ssa-dse.c: Likewise
26416         * tree-chrec.c: Likewise
26417         * tree-ssa-sccvn.c: Likewise
26418         * tree-ssa-copyrename.c: Likewise
26419         * tree-nomudflap.c: Likewise
26420         * tree-call-cdce.c: Likewise
26421         * tree-stdarg.c: Likewise
26422         * tree-ssa-math-opts.c: Likewise
26423         * tree-nrv.c: Likewise
26424         * tree-ssa-sink.c: Likewise
26425         * tree-browser.c: Likewise
26426         * tree-ssa-loop-ivcanon.c: Likewise
26427         * tree-ssa-loop.c: Likewise
26428         * tree-parloops.c: Likewise
26429         * tree-ssa-address.c: Likewise
26430         * tree-ssa-ifcombine.c: Likewise
26431         * tree-if-conv.c: Likewise
26432         * tree-data-ref.c: Likewise
26433         * tree-affine.c: Likewise
26434         * tree-ssa-phiopt.c: Likewise
26435         * tree-ssa-coalesce.c: Likewise
26436         * tree-ssa-pre.c: Likewise
26437         * tree-ssa-live.c: Likewise
26438         * tree-predcom.c: Likewise
26439         * tree-ssa-forwprop.c: Likewise
26440         * tree-ssa-dce.c: Likewise
26441         * tree-ssa-ter.c: Likewise
26442         * tree-ssa-loop-prefetch.c: Likewise
26443         * tree-optimize.c: Likewise
26444         * tree-ssa-phiprop.c: Likewise
26445         * tree-object-size.c: Likewise
26446         * tree-outof-ssa.c: Likewise
26447         * tree-ssa-structalias.c: Likewise
26448         * tree-switch-conversion.c: Likewise
26449         * tree-ssa-reassoc.c: Likewise
26450         * tree-ssa-operands.c: Likewise
26451         * tree-vectorizer.c: Likewise
26452         * tree-vect-data-refs.c: Likewise
26453         * tree-vect-generic.c: Likewise
26454         * tree-vect-stmts.c: Likewise
26455         * tree-vect-patterns.c: Likewise
26456         * tree-vect-slp.c: Likewise
26457         * tree-vect-loop.c: Likewise
26458         * tree-ssa-loop-ivopts.c: Likewise
26459         * tree-ssa-loop-im.c: Likewise
26460         * tree-ssa-loop-niter.c: Likewise
26461         * tree-ssa-loop-unswitch.c: Likewise
26462         * tree-ssa-loop-manip.c: Likewise
26463         * tree-ssa-loop-ch.c: Likewise
26464         * tree-dump.c: Likewise
26465         * tree-complex.c: Likewise
26466
26467         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
26468         * tree-ssa-uninit.c: Likewise
26469         * tree-ssa-threadupdate.c: Likewise
26470         * tree-ssa-uncprop.c: Likewise
26471         * tree-ssa-ccp.c: Likewise
26472         * tree-ssa-dom.c: Likewise
26473         * tree-ssa-propagate.c: Likewise
26474         * tree-ssa-alias.c: Likewise
26475         * tree-dfa.c: Likewise
26476         * tree-cfgcleanup.c: Likewise
26477         * tree-sra.c: Likewise
26478         * tree-ssa-copy.c: Likewise
26479         * tree-ssa.c: Likewise
26480         * tree-profile.c: Likewise
26481         * tree-cfg.c: Likewise
26482         * tree-ssa-threadedge.c: Likewise
26483         * tree-vect-loop-manip.c: Likewise
26484
26485         * tree-inline.c: Do not include diagnostic.h and expr.h.
26486         Include rtl.h.
26487         (copy_decl_for_dup_finish): Do not use NULL_RTX.
26488
26489         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
26490         * tree-loop-distribution.c: Likewise.
26491
26492 2010-06-01  Jan Hubicka  <jh@suse.cz>
26493
26494         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
26495
26496 2010-06-01  Jan Hubicka  <jh@suse.cz>
26497
26498         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
26499         remove return value.
26500         (split_bbs_on_noreturn_calls) .... here.
26501         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
26502         * tree-flow.h (fixup_noreturn_call): New.
26503
26504 2010-06-01  Jan Hubicka  <jh@suse.cz>
26505
26506         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
26507
26508 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
26509
26510         * tree.h (build_nt_call_list): Delete.
26511         * tree.c (build_nt_call_list): Delete.
26512
26513 2010-06-01  Jan Hubicka  <jh@suse.cz>
26514
26515         * fwprop.c: Make emit-rtl.h include last.
26516         * rtlanal.c: Include emit-rtl.h.
26517         * genautomata.c: Output emit-rtl include into insn-automata.c
26518         * df-scan.c: Include emit-rtl.h.
26519         * haifa-sched.c: Indlude emit-rtl.h.
26520         * mode-switching.c: Indlude emit-rtl.h.
26521         * graph.c: Indlude emit-rtl.h.
26522         * sel-sched.c: Include emit-rtl.h.
26523         * sel-sched-ir.c: Include emit-rtl.h.
26524         * ira-build.c: Include emit-rtl.h.
26525         * emit-rtl.c (first_insn, last_insn): Remove defines.
26526         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
26527         Move to emit-rtl.h.
26528         (set_new_first_and_last_insn, get_last_insn_anywhere,
26529         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
26530         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
26531         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
26532         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
26533         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
26534         Use accessor functions.
26535         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
26536          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
26537         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
26538         mem_expr_equal_p): Move here from rtl.h.
26539         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
26540         Move here from emit-rtl.c; make inline.
26541         * cfglayout.h: Include emit-rtl.h.
26542         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
26543          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
26544         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
26545         mem_expr_equal_p, get_insns, set_first-insn,
26546         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
26547         * reg-stack.c: Include emit-rtl.h.
26548         * dce.c: Likewise.
26549
26550 2010-06-01  Jan Hubicka  <jh@suse.cz>
26551
26552         * cgraph.h (tree_function_versioning): Update prototype.
26553         (cgraph_function_versioning): Update prototype.
26554         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
26555         bitmap.
26556         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
26557         (cgraph_materialize_clone, save_inline_function_body): Update use of
26558         tree_function_versioning.
26559         * tree-inline.c (copy_bb): Look for previous copied block to link
26560         after; fix debug output.
26561         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
26562         (copy_body): Likewise.
26563         (expand_call_inline): Update use of copy_body.
26564         (tree_function_versioning): Update use of copy body; accept
26565         blocks_to_copy and new_entry.
26566
26567 2010-06-01  Jan Hubicka  <jh@suse.cz>
26568
26569         * gegenrtl.c: Remove unnecesary prototypes.
26570         (gendecl): Remove.
26571         (gendef): Produce static inline.
26572         (gencode): Remove.
26573         (main): Do not decode parameters; generate header only.
26574         * Makefile.in (genrtl.c): Remove.
26575
26576 2010-06-01  Jan Hubicka  <jh@suse.cz>
26577
26578         * tree-switch-conversion.c (build_one_array): Make it readonly.
26579
26580 2010-06-01  Richard Guenther  <rguenther@suse.de>
26581
26582         * optabs.c (init_optabs): Guard all accesses to reinit.
26583         * ipa-pure-const.c (propagate): Fix another typo.
26584         * opts.c (common_handle_option): Split assignment to bool.
26585         * c-opts.c (c_common_handle_option): Likewise.
26586
26587 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
26588             Matthew Gingell  <gingell@adacore.com>
26589
26590         * doc/invoke.texi: Mention -fdump-ada-spec.
26591         * tree-dump.c (dump_files): Add ada-spec.
26592         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
26593         * tree-pass.h (tree_dump_index): Add TDI_ada.
26594         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
26595         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
26596         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
26597         * c-decl.c: Include c-ada-spec.h.
26598         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
26599         functions.
26600         (c_write_global_declarations): Add handling of -fdump-ada-spec.
26601         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
26602         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
26603         * c-ada-spec.h, c-ada-spec.c: New files.
26604
26605 2010-06-01  Richard Guenther  <rguenther@suse.de>
26606
26607         PR lto/43853
26608         * ipa-pure-const.c (get_function_state): Hand back varying state
26609         if we do not have one.
26610         (has_function_state): New function.
26611         (duplicate_node_data): Adjust.
26612         (remove_node_data): Likewise.
26613         (pure_const_write_summary): Likewise.
26614         (propagate): Likewise.  Fix typo.
26615
26616 2010-06-01  Jan Hubicka  <jh@suse.cz>
26617
26618         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
26619         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
26620         (execute_all_ipa_transforms): Do not play with the states.
26621
26622 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
26623
26624         * config/arm/t-linux-androideabi: New.
26625         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
26626
26627 2010-06-01  Jan Hubicka  <jh@suse.cz>
26628
26629         * tree-inline.c (estimate_num_insns): For stdarg functions look
26630         into call statement to count cost of argument passing.
26631
26632 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
26633
26634         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
26635         argument for fprintf.
26636         (ix86_output_addr_diff_elt): Likewise.
26637         (x86_function_profiler): Likewise.
26638         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
26639         (LPREFIX): Likewise.
26640         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
26641
26642 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
26643
26644         PR target/44338
26645         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
26646         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
26647         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
26648         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
26649         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
26650         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
26651         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
26652         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
26653         TARGET_FUSED_MADD.
26654
26655 2010-05-31  Jan Hubicka  <jh@suse.cz>
26656
26657         * tree.h (tree_range_check_failed): Declare noreturn.
26658
26659 2010-05-31  Jan Hubicka  <jh@suse.cz>
26660
26661         * gimple.c (gimple_call_builtin_p): New function.
26662         * gimple.h (gimple_call_builtin_p): Declare.
26663         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
26664         to exit.
26665         (execute_warn_function_return): BUILT_IN_RETURN is return.
26666         (split_critical_edges): Return edges are not critical.
26667         (is_ctrl_altering_stmt): Builtin_in_return is altering.
26668         (gimple_verify_flow_info): Handle built_in_return.
26669         (execute_warn_function_return): Handle built_in_return.
26670         * ipa-pure-const.c (check_call): Ignore builtin_return.
26671
26672 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
26673
26674         PR middle-end/44337
26675         * expr.c (expand_assignment): Don't store anything for out-of-bounds
26676         array accesses with non-MEM.
26677
26678         PR tree-optimization/44182
26679         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
26680         newly needs to end a bb is followed by debug stmts, instead return
26681         true from the function at the end.
26682         (maybe_move_debug_stmts_to_successors): New function.
26683         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
26684
26685 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
26686
26687         PR target/44161
26688         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
26689
26690 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
26691
26692         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
26693         for nested functions in non-optimized compilation.
26694
26695 2010-05-31  Richard Guenther  <rguenther@suse.de>
26696
26697         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
26698
26699 2010-05-30  Jan Hubicka  <jh@suse.cz>
26700
26701         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
26702
26703 2010-05-30  Richard Guenther  <rguenther@suse.de>
26704
26705         PR lto/42975
26706         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
26707         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
26708         no longer needed.
26709
26710 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
26711
26712         * config/darwin.c (output_objc_section_asm_op): Add comment.
26713         (name_needs_quotes): Add '_' to list of valid comment chars.
26714         (machopic_output_function_base_name): Remove unneeded quotes.
26715         (darwin_encode_section_info): Adjust asm whitespace.
26716         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
26717         (ASM_OUTPUT_LOCAL): Ditto.
26718         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
26719         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
26720         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
26721
26722 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
26723
26724         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
26725         RS6000_OUTPUT_BASENAME unconditionally.
26726         (rs6000_output_function_epilogue): Likewise.
26727
26728 2010-05-30  Jan Hubicka  <jh@suse.cz>
26729
26730         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
26731         nodes.
26732
26733 2010-05-30  Richard Guenther  <rguenther@suse.de>
26734
26735         * tree-cfg.c (verify_gimple_assign_single): Implement
26736         verification for COND_EXPR rhs.
26737
26738 2010-05-30  Jan Hubicka  <jh@suse.cz>
26739
26740         * cgraph.h (cgraph_dump_file): Declare.
26741         * cgraphunit.c (cgraph_dump_file): Export.
26742         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
26743
26744 2010-05-30  Jan Hubicka  <jh@suse.cz>
26745
26746         * dwarf2out.c (reference_to_unused,
26747         premark_types_used_by_global_vars_helper): Avoid creation of new
26748         varpool nodes.
26749
26750 2010-05-30  Jan Hubicka  <jh@suse.cz>
26751
26752         * cgraph.h (cgraph_node_cannot_return,
26753         cgraph_edge_cannot_lead_to_return): New functions.
26754         * cgraph.c (cgraph_node_cannot_return,
26755         cgraph_edge_cannot_lead_to_return): Use them.
26756         * ipa-pure-const.c (pure_const_names): New static var.
26757         (check_call): Handle calls not leading to return.
26758         (pure_const_read_summary): Dump info read.
26759         (propagate): Dump info about propagation process; ignore side effects
26760         of functions not leading to exit; fix handling of pure functions.
26761
26762 2010-05-30  Jan Hubicka  <jh@suse.cz>
26763
26764         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
26765         for tail call epilogues.
26766
26767 2010-05-30  Jan Hubicka  <jh@suse.cz>
26768
26769         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
26770         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
26771         dump files.
26772
26773 2010-05-29  Jan Hubicka  <jh@suse.cz>
26774
26775         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
26776         node; remove references in node we no longer keep in cgrpah but need
26777         body of.
26778
26779 2010-05-29  Jan Hubicka  <jh@suse.cz>
26780
26781         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
26782
26783 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26784
26785         PR target/44165
26786         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
26787
26788 2010-05-29  Jan Hubicka  <jh@suse.cz>
26789
26790         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
26791         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
26792         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
26793         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
26794         debug_names_replaced_by, debug_update_ssa): Likewise.
26795         * sbitmap.c (debug_sbitmap): Likewise.
26796         * genrecog.c (debug_decision, debug_decision_list): Likewise.
26797         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
26798         debug_tree_chain): Likewise.
26799         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
26800         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
26801         * optabs.c (debug_optab_libfuncs): Likewise.
26802         (verify_loop_closed_ssa): Likewise.
26803         * value-prof.c (verify_histograms): Likewise.
26804         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
26805         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
26806         * cfghooks.c (verify_flow_info): Likewise.
26807         * fold-const.c (debug_fold_checksum): Likewise.
26808         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
26809         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
26810         Likewise.
26811         * omega.c (debug_omega_problem): Likewise.
26812         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
26813         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
26814         * dominance.c (verify_dominators, debug_dominance_info,
26815         debug_dominance_tree): Likewise.
26816         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
26817         * df_regno_debug, df_ref_debug,
26818         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
26819         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
26820         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
26821         * sel-sched.c (debug_state): Likewise.
26822         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
26823         Likewise.
26824         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
26825         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
26826         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
26827         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
26828         Likewise.
26829         * c-pretty-print.c (debug_c_tree): Likewise.
26830         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
26831         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
26832         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
26833         * ebitmap.c (debug_ebitmap): Likewise.
26834         * function.c (debug_find_var_in_block_tree): Likewise.
26835         * print-rtl.c (debug_rtx): Likewise.
26836         (debug_rtx_count): Likewise.
26837         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
26838         * stor-layout.c (debug_rli): Likewise.
26839         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
26840         * tree-data-ref.c (debug_data_references,
26841         debug_data_dependence_relations, debug_data_reference,
26842         debug_data_dependence_relation, debug_rdg_vertex,
26843         debug_rdg_component, debug_rdg): Likewise.
26844         * tree-affine.c (debug_aff): Likewise.
26845         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
26846         Likewise.
26847         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
26848         * emit-rtl.c (verify_rtl_sharing): Likewise.
26849         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
26850         debug_value_expressions): Likewise.
26851         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
26852         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
26853         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
26854         * cfglayout.c (verify_insn_chain): Likewise.
26855         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
26856         debug_clast_stmt, debug_generated_program): Likewise.
26857         * ggc-page.c (debug_print_page_list): Likewise.
26858         * tree-ssa-ter.c (debug_ter): Likewise.
26859         * graphite-dependences.c (debug_pddr): Likewise.
26860         * sched-deps.c (debug_ds): Likewise.
26861         * tree-ssa.c (verify_ssa): Likewise.
26862         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
26863         debug_scattering_functions, debug_iteration_domains, debug_pdr,
26864         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
26865         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
26866         * tree-inline.c (debug_find_tree): Likewise.
26867         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
26868         debug_ppl_powerset_matrix): Likewise.
26869         * var-tracking.c (debug_dv): Likewise.
26870         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
26871         * cfgloop.c (verify_loop_structure): Likewise.
26872         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
26873         * c-common.c (verify_sequence_points): Likewise.
26874         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
26875         debug_candidates, debug_rgn_dependencies): Likewise.
26876         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
26877         * debug_constraint_graph, debug_solution_for_var,
26878         debug_sa_points_to_info): Likewise.
26879         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
26880         Likewie.
26881         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
26882         debug_loops, debug_loop, debug_loop_num): Likewise.
26883         * passes.c (debug_pass): Likewise.
26884         (dump_properties): Likewise; add cfglayout property.
26885         (debug_properties): Likewise.
26886         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
26887         * varpool.c (debug_varpool): Likewise.
26888         * regcprop.c (debug_value_data): Likewise.
26889         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
26890         debug_immediate_uses_for): Likewise.
26891
26892 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26893
26894         PR bootstrap/44315
26895         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
26896         Filter out insn-flags.h.
26897
26898 2010-05-29  Jan Hubicka  <jh@suse.cz>
26899
26900         * cgraph.h (struct varpool_node_set_def,
26901         struct cgraph_node_set_def): Remove unused AUX pointer.
26902         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
26903         VEC_empty macro.
26904
26905 2010-05-29  Jan Hubicka  <jh@suse.cz>
26906
26907         PR middle-end/44324
26908         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
26909
26910 2010-05-29  Richard Guenther  <rguenther@suse.de>
26911
26912         * lto-streamer.c (cached_bp): New global variable.
26913         (bitpack_create): Return the cached bitpack, if available.
26914         (bitpack_delete): Clear and cache the bitpack, if appropriate.
26915         (bp_pack_value): Remove redundant asserts.
26916
26917 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26918
26919         PR middle-end/44306
26920         * tree-if-conv.c (is_true_predicate): New.
26921         (is_predicated): Use is_true_predicate.
26922         (add_to_predicate_list): Same.  Do not use unshare_expr.
26923         (add_to_dst_predicate_list): Same.
26924
26925 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26926
26927         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
26928         field on edges.
26929         (predicate_bbs): Same.
26930         (clean_predicate_lists): Same.
26931         (find_phi_replacement_condition): Do not AND the predicate from
26932         edge->aux.
26933
26934 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26935
26936         PR bootstrap/44315
26937         * Makefile.in (build/gencondmd.o): Add a missing `\'.
26938
26939 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26940
26941         PR target/44261
26942         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
26943         (negdf2): Adjust expander pattern and use negdf2_slow.
26944         (negsf2): Likewise.
26945
26946 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
26947
26948         * basic-block.h (struct control_flow_graph): Move last_label_uid field
26949         up.
26950         * df.h (struct df_base_ref): Move regno field up.
26951         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
26952         * expr.h (struct separate_ops): Move location field up.
26953         * optabs.h (struct optab_d): Move libcall_basename field down.
26954         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
26955         * config/i386/i386.h (struct machine_function): Convert call_abi field
26956         into a bitfield.  Move cfa field to the end of the structure.
26957
26958 2010-05-29  Jan Hubicka  <jh@suse.cz>
26959
26960         * varpool.c (varpool_get_node): Fix lookup.
26961
26962 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26963
26964         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
26965         RTL specific prototypes with #ifdef RTX_CODE.
26966         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
26967         * config/spu/t-spu-elf: Fix dependencies.
26968
26969         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
26970
26971 2010-05-29  Mike Stump  <mikestump@comcast.net>
26972
26973         PR bootstrap/44315
26974         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
26975         TM_H when building to avoid dependency loops.
26976
26977 2010-05-29  Jan Hubicka  <jh@suse.cz>
26978
26979         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
26980         refs and body; not the whole node for masters of materialized clones.
26981
26982 2010-05-29  Mike Stump  <mikestump@comcast.net>
26983
26984         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
26985
26986 2010-05-29  Jan Hubicka  <jh@suse.cz>
26987
26988         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
26989         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
26990         use of clone_function_name.
26991         * cgraph.h (cgraph_create_virtual_clone,
26992         cgraph_function_versioning): update prototypes.
26993         (clone_function_name): Declare.
26994         * ipa-cp.c (ipcp_insert_stage): Update call of
26995         cgraph_create_virtual_clone.
26996         * omp-low.c (create_omp_child_function_name): Use
26997         cgraph_create_virtual_clone.
26998         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
26999         (cgraph_function_versioning): Take SUFFIX argument; produce new name
27000         and make decl local.
27001
27002 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27003
27004         * vec.h: Include statistics.h
27005         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
27006         with VEC_H.
27007
27008 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27009
27010         * c-lex.c: Do not include c-tree.h.
27011         * c-pretty-print.c: Likewise.
27012         * c-opts.c: Likewise.
27013         * c-gimplify.c: Likewise.
27014         * c-common.c: Likewise.
27015         * c-dump.c: Likewise.  Include c-common.h.
27016
27017 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27018
27019         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
27020         before including diagnostic-core.h.
27021         (c_cpp_error): New prototype moved from c-tree.h.
27022         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
27023         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
27024         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
27025         (c_cpp_error): Prototype moved to c-common.h.
27026         * Makefile.in: Update dependency for C_COMMON_H.
27027
27028 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27029
27030         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
27031         * c-common.c (c_register_addr_space): Remove here.
27032         * c-decl.c (c_register_addr_space): Re-add here.
27033
27034 2010-05-28  Mike Stump  <mikestump@comcast.net>
27035
27036         * config/darwin-c.c: Remove c-tree.h include.
27037
27038 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27039
27040         * gcc.c: Include diagnostic.h.
27041         (error_count): Remove.  All users changed to use errorcount.
27042         (programname): Remove.  All users changed to use progname.
27043         (fancy_abort, internal_error, fatal_error, error, warning, inform,
27044         fnotice): Remove.
27045         (execute): Don't include "Internal error" and bug reporting
27046         information in argument of internal_error call.
27047         (process_command): Don't increment error_count after calling
27048         perror_with_name.
27049         (input_filename): Rename to gcc_input_filename.  All users
27050         changed.
27051         (main): Call diagnostic_initialize.  Register delete_temp_files
27052         with atexit.  Use seen_error to test for errors.
27053         * gcc.h: Include diagnostic-core.h.
27054         (fatal_error, error, warning): Remove.
27055         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
27056         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
27057         (gcc.o): Update dependencies.
27058
27059 2010-05-28  Jeff Law  <law@redhat.com>
27060
27061         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
27062         functions.
27063         * ira.h (ira_bad_reload_regno): Declare
27064         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
27065
27066         * ira-color.c (update_curr_costs): Free updated hard reg costs.
27067         (ira_reassign_conflict_allocnos): Remove bogus asserts.
27068         (allocno_reload_assign): Likewise.
27069
27070 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
27071
27072         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
27073         build1_stat.
27074
27075 2010-05-28  Richard Guenther  <rguenther@suse.de>
27076
27077         PR lto/44312
27078         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
27079         Stream fixed-point constants mode.
27080         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
27081         and TYPE_PRECISION.
27082         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
27083         Stream fixed-point constants mode.
27084         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
27085         and TYPE_PRECISION.
27086
27087 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27088
27089         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
27090         only place it was called from.
27091         (number_of_latch_executions): Do not return chrec_dont_know when the
27092         may_be_zero is a runtime condition: instead, return a COND_EXPR
27093         including the may_be_zero condition.
27094         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
27095         of nb_iterations.
27096         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
27097         COND_EXPRs.
27098
27099 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27100
27101         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
27102         generate COND_EXPRs for degenerate_phi_result.
27103
27104 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27105
27106         PR middle-end/44293
27107         * tree-if-conv.c (if_convertible_loop_p): Check the
27108         if-convertibility of phi nodes in non predicated BBs.
27109
27110 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27111
27112         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
27113
27114 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27115
27116         PR driver/15303
27117         * gcc.c (inform, warning, inform): New functions.
27118         (fatal_ice): Rename to internal_error; change cmsgid parameter to
27119         gmsgid.  All callers changed.
27120         (notice): Rename to fnotice; add parameter fp.  All callers changed.
27121         (fatal_error): Rename to fatal_signal.  All users changed.
27122         (fatal): Rename to fatal_error; change cmsgid parameter to
27123         gmsgid.  All callers changed.
27124         (process_command): Use warning instead of error for warnings.
27125         (end_going_arg): Don't use _() around argument of error.
27126         (do_spec_1): Use inform for message from %n specs.  Use warning
27127         instead of error for warnings.
27128         (main): Use inform for comparison messages.  Use warning for
27129         message about unused linker input.
27130         (error): Increment error_count.  Print "error: ".
27131         * gcc.h (fatal): Change to fatal_error.
27132         (warning): Declare.
27133         * config/darwin-driver.c (darwin_default_min_version): Use warning
27134         instead of fprintf for warnings.
27135         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
27136
27137 2010-05-28  Julian Brown  <julian@codesourcery.com>
27138
27139         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
27140         (*thumb2_addsi3_compare0_scratch): New.
27141         * config/arm/constraints.md (Pv): New.
27142         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
27143         for ARM mode only.
27144         (*addsi3_compare0_scratch): Likewise.
27145
27146 2010-05-28  Jan Hubicka  <jh@suse.cz>
27147
27148         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
27149         check.
27150         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
27151         only on local statics.
27152
27153 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
27154
27155         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
27156
27157 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
27158
27159         PR bootstrap/44314
27160         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
27161         (OPTION_GLIBC): Define.
27162
27163 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27164
27165         PR debug/41048
27166         * dwarf2out.c (double_int_type_size_in_bits): New function.
27167         (round_up_to_align): Change first argument and return value to
27168         double_int.
27169         (field_byte_offset): Work internally on double_ints.
27170
27171         PR target/43636
27172         * builtins.c (expand_movstr): Use a temporary pseudo instead
27173         of target even when target is not NULL and not const0_rtx, but
27174         fails movstr predicate.
27175         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
27176
27177 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27178
27179         * final.c (rest_of_clean_state): Use %m in errors instead of
27180         strerror (errno).
27181         * gengtype.c (read_input_list, close_output_files): Use xstrerror
27182         instead of strerror.
27183         * toplev.c (process_options): Use %m in errors instead of strerror
27184         (errno).
27185         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
27186         (errno).
27187
27188 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
27189
27190         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
27191         (ix86_canonical_va_list_type): Make static.  Add declaration.
27192         (ix86_enum_va_list): Make static.  Reindent.
27193         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
27194         (ix86_canonical_va_list_type): Ditto.
27195         (ix86_enum_va_list): Ditto.
27196
27197 2010-05-28  Richard Guenther  <rguenther@suse.de>
27198
27199         * lto-wrapper.c (run_gcc): With -save-temps generate a
27200         user-visible ltrans filename.  Fixup ltrans unit numbering.
27201
27202 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
27203
27204         * c-common.c (c_common_nodes_and_builtins): Replace use
27205         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
27206         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
27207         to ix86_enum_va_list.
27208         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
27209         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
27210         (TARGET_ENUM_VA_LIST_P): Add hook description.
27211         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
27212         * target.h (gcc_target): Add enum_va_list hook.
27213
27214         PR bootstrap/44299
27215         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
27216         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
27217         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
27218
27219 2010-05-28  Alan Modra  <amodra@gmail.com>
27220
27221         PR target/44266
27222         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
27223         emit_library_call machinery to set up __tls_get_addr calls.
27224
27225 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27226
27227         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
27228
27229 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
27230
27231         Revert fix for PR c++/44188
27232         * c-common.c (is_typedef_decl): Revert the moving of  this
27233         definition ...
27234         * tree.c (is_typedef_decl): ... here.
27235         (typdef_variant_p): Revert the moving of this  definition
27236         here from cp/tree.c.
27237         * c-common.h (is_typedef_decl): Revert the moving of this
27238         declaration ...
27239         * tree.h (is_typedef_decl): ... here.
27240         (typedef_variant_p): Revert the moving of this  declaration here
27241         from cp/cp-tree.h
27242         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
27243         (gen_tagged_type_die): Revert the splitting out of ...
27244         (gen_type_die_with_usage): ... this function. Revert the anonymous
27245         tagged type handling.
27246         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
27247         typedefs naming anonymous tagged types.
27248
27249 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27250
27251         * config/rs6000/rs6000-modes.def (PSImode): Delete.
27252
27253 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27254
27255         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
27256         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
27257         throughout.
27258         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
27259         "xer" to "ca".
27260         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
27261         XER_REGS to CA_REGS throughout.
27262         * config/rs6000/rs6000.h: Same.
27263         (ADDITIONAL_REGISTER_NAMES): Add "xer".
27264         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
27265         that mode_iterator "P" is the size for arithmetic carries as well.
27266         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
27267
27268 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27269
27270         PR bootstrap/44255
27271         * combine.c (struct rtx_subst_pair): Define unconditionally.
27272         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
27273         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
27274         Call make_compound_operation on pair->to.
27275         (propagate_for_debug): Don't call make_compound_operation here.
27276         Always use simplify_replace_fn_rtx.
27277
27278 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
27279
27280         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
27281         * config/xtensa/xtensa.c (override_options): Check
27282           TARGET_FORCE_NO_PIC and set flag_pic.
27283         * config/xtensa/xtensa.opt: Document -mforce-no-pic
27284
27285 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27286
27287         PR bootstrap/44299
27288         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
27289         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
27290
27291 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27292
27293         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
27294         toplev.h.
27295         * diagnostic.c: Don't include toplev.h.
27296         (progname): Define.  Moved from toplev.c.
27297         (seen_error): New function.
27298         * diagnostic.h: Include diagnostic-core.h.
27299         (diagnostic_t, emit_diagnostic): Don't declare here.
27300         * toplev.c (progname): Move to toplev.c.
27301         (emit_debug_global_declarations, compile_file, finalize,
27302         do_compile, toplev_main): Use seen_error.
27303         * toplev.h: Include diagnostic-core.h.
27304         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
27305         internal_error, warning, warning_at, error, error_n, error_at,
27306         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
27307         verbatim, fnotice, progname): Move to diagnostic-core.h.
27308         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
27309         (expand_builtin_expect): Use seen_error.
27310         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
27311         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
27312         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
27313         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
27314         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
27315         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
27316         errorcount for errors.
27317         * c-opts.c (c_common_finish): Use seen_error.
27318         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27319         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
27320         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
27321         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
27322         (get_coverage_counts): Use seen_error.
27323         * dwarf2out.c (dwarf2out_finish): Use seen_error.
27324         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
27325         gimplify_body): Use seen_error.
27326         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
27327         * ipa-pure-const.c (gate_pure_const): Use seen_error.
27328         * ipa-reference.c (gate_reference): Use seen_error.
27329         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
27330         * lambda-code.c: Include diagnostic-core.h instead of
27331         diagnostic.h.
27332         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27333         * lto-compress.c: Include diagnostic-core.h instead of
27334         diagnostic.h.
27335         * lto-section-in.c: Include diagnostic-core.h instead of
27336         diagnostic.h.
27337         * lto-streamer-out.c: Include diagnostic-core.h instead of
27338         diagnostic.h.
27339         * lto-streamer.c: Include diagnostic-core.h instead of
27340         diagnostic.h.
27341         (gate_lto_out): Use seen_error.
27342         * matrix-reorg.c: Include diagnostic-core.h instead of
27343         diagnostic.h.
27344         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
27345         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
27346         (gate_expand_omp, lower_omp_1): Use seen_error.
27347         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
27348         (rest_of_decl_compilation, rest_of_type_compilation,
27349         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
27350         * tree-cfg.c (label_to_block_fn): Use seen_error.
27351         * tree-inline.c (optimize_inline_calls): Use seen_error.
27352         * tree-mudflap.c (mudflap_finish_file): Use
27353         seen_error.
27354         * tree-optimize.c (gate_all_optimizations,
27355         gate_all_early_local_passes, gate_all_early_optimizations): Use
27356         seen_error.
27357         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
27358         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
27359         (varpool_remove_unreferenced_decls,
27360         varpool_assemble_pending_decls): Use seen_error.
27361         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
27362         (TOPLEV_H, DIAGNOSTIC_H): Update.
27363         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
27364         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
27365         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
27366         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
27367         coverage.o, lambda-code.o): Update dependencies.
27368
27369 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
27370
27371         PR c++/44188
27372         * c-common.c (is_typedef_decl): Move this definition ...
27373         * tree.c (is_typedef_decl): ... here.
27374         (typdef_variant_p): Move definition here from cp/tree.c.
27375         * c-common.h (is_typedef_decl): Move this declaration ...
27376         * tree.h (is_typedef_decl): ... here.
27377         (typedef_variant_p): Move declaration here from cp/cp-tree.h
27378         * dwarf2out.c (is_naming_typedef_decl): New function.
27379         (gen_tagged_type_die): Split out of ...
27380         (gen_type_die_with_usage): ... this function. When an anonymous
27381         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
27382         is emitted for the typedef.
27383         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
27384         anonymous tagged types.
27385
27386 2010-05-27  Jason Merrill  <jason@redhat.com>
27387
27388         * print-tree.c (debug_vec_tree): New fn.
27389         (print_vec_tree): New fn.
27390         * tree.h: Declare them.
27391         * gdbinit.in (pvt): New command.
27392
27393         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
27394
27395         * gdbinit.in (pdd): New command.
27396
27397 2010-05-27  Jan Hubicka  <jh@suse.cz>
27398
27399         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
27400         (update_caller_keys): Return early if there are no callers;
27401         only update fibheap when decresing the key.
27402         (update_callee_keys): Avoid recursion.
27403         (decide_inlining_of_small_functions): When badness does not match;
27404         re-insert into fibheap.
27405
27406 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
27407
27408         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
27409         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
27410         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
27411         (ALL_HOST_OBJS): Now a union of the above two.
27412         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
27413         all files in ALL_HOST_FRONTEND_OBJS.
27414         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
27415
27416         * c-common.c: Pretend to be a backend file by undefining
27417         IN_GCC_FRONTEND (still need rtl.h here).
27418
27419 2010-05-27  Jan Hubicka  <jh@suse.cz>
27420
27421         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
27422         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
27423
27424 2010-05-27  Jan Hubicka  <jh@suse.cz>
27425
27426         * sched-ebb.c: Rename struct deps to struct deps_desc.
27427         * ddg.c: Likewise.
27428         * sel-sched-ir.c: Likewise.
27429         * sched-deps.c: Likewise.
27430         * sched-int.h: Likewise.
27431         * sched-rgn.c: Likewise.
27432
27433 2010-05-27  Jon Beniston  <jon@beniston.com>
27434
27435         PR 43726
27436         * config/lm32/lm32.h: Remove definition of
27437         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
27438
27439 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27440
27441         PR lto/44230
27442         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
27443
27444 2010-05-27  Richard Guenther  <rguenther@suse.de>
27445
27446         PR tree-optimization/44284
27447         * tree-vect-stmts.c (vectorizable_assignment): Handle
27448         sign-changing conversions as simple copy.
27449
27450 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27451
27452         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
27453         Bionic C library.
27454         (__gthread_active_p): Check for pthread_create if compiling against
27455         Bionic C library.
27456
27457 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27458
27459         Support compilation for Android platform.  Reimplement -mandroid.
27460
27461         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
27462         (*android*): Set ANDROID_DEFAULT.
27463         (arm*-*-linux*): Include linux-android.h.
27464         (arm*-*-eabi*): Don't include previous -mandroid implementation.
27465         * config/arm/eabi.h: Remove, move Android-specific parts ...
27466         * config/linux-android.h: ... here.  New file.
27467         * config/arm/eabi.opt: Rename to ...
27468         * config/linux-android.opt: ... this.
27469         (mandroid): Allow -mno-android option.  Initialize based on
27470         ANDROID_DEFAULT.
27471         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
27472         Move logic to corresponding LINUX_TARGET_* macros.
27473         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
27474         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
27475         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
27476         Android definitions.
27477         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
27478         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
27479         Document.
27480
27481 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27482
27483         Add support for Bionic C library
27484
27485         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
27486         macro.
27487         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
27488         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
27489
27490         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
27491         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
27492         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
27493         to support multiple C libraries.  Handle Bionic.
27494         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
27495         (BIONIC_DYNAMIC_LINKER64): Define.
27496         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
27497         Update.
27498         (TARGET_HAS_SINCOS): Enable for Bionic.
27499
27500         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
27501         the last option specified on command line take effect.
27502         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
27503         (mbionic): New.
27504         (mglibc, muclibc): Update.
27505
27506         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
27507         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
27508         DEFAULT_LIBC.
27509
27510         * doc/invoke.texi (-mglibc, -muclibc): Update.
27511         (-mbionic): Document.
27512
27513 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27514
27515         * c-common.h (c_register_addr_space): Add prototype.
27516         (ADDR_SPACE_KEYWORD): Remove.
27517         * c-common.c (c_register_addr_space): New function.
27518         (c_addr_space_name): Reimplement.
27519         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
27520
27521         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
27522         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
27523
27524         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
27525         Remove TARGET_ADDR_SPACE_KEYWORDS.
27526
27527 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27528
27529         * input.c: New file.
27530         * input.h (main_input_filename): Move declaration to toplev.h.
27531         * toplev.c (input_location, line_table): Move to input.c
27532         * toplev.h (main_input_filename): Move declaration from input.h.
27533         * tree.c (expand_location): Move to input.c.
27534         * Makefile.in (OBJS-common): Add input.o.
27535         (input.o): Add dependencies.
27536
27537 2010-05-27  Richard Guenther  <rguenther@suse.de>
27538
27539         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
27540         for non-existant files.
27541         (fork_execute): Mark args_name file as deleted.
27542
27543 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27544
27545         PR bootstrp/44287
27546         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
27547         (narrow_signed_type): Likewise.
27548
27549 2010-05-26  Jan Hubicka  <jh@suse.cz>
27550
27551         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
27552         edge only when checking is enabled; check using former_clone_of;
27553         check inline clones too.
27554         (cgraph_materialize_clone): Record former_clone_of pointer.
27555         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
27556         combining redirections; dump args_to_skip bitmap
27557         (cgraph_materialize_all_clones): Do no redirection here.
27558         * ipa-inline.c (inline_transform): Do redirection here.
27559         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
27560         cheking only).
27561
27562 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27563
27564         * config/avr/avr-c.c: Do not include regs.h.
27565         Include cpplib.h for cpp_define and tree.h for c-common.h.
27566         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
27567         * config/avr/t-avr: Fix dependencies for avr-c.o.
27568
27569 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27570
27571         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
27572         string instead of SYMBOL_REF rtx.
27573         * rtl.h (set_stack_check_libfunc): Move prototype from here...
27574         * libfuncs.h: ...to here.  Adjust for explow.c change.
27575
27576 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27577
27578         * pretty-print.c: Don't include ggc.h.
27579         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
27580         (identifier_to_locale): Use them for allocation.
27581         * pretty-print.h (identifier_to_locale_alloc,
27582         identifier_to_locale_free): Declare.
27583         * toplev.c (alloc_for_identifier_to_locale): New.
27584         (general_init): Set identifier_to_locale_alloc and
27585         identifier_to_locale_free.
27586         * Makefile.in (pretty-print.o): Update dependencies.
27587
27588 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
27589
27590         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
27591         pointer types if they have different alignment or mode.
27592
27593 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
27594
27595         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27596         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27597         * config/sparc/sparc-protos.h (function_value): Remove declaration.
27598         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
27599         sparc_function_value_regno_p): New functions.
27600         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27601         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27602         (function_value): Rename to...
27603         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
27604         argument to 'outgoing'.
27605         (function_arg_record_value, function_arg_union_value,
27606         function_arg_vector_value): Update comment.
27607
27608 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
27609
27610         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
27611         (fde_needed_for_eh_p): New predicate.
27612         (output_call_frame_info): Use it throughout to decide whether FDEs
27613         are needed for EH purpose.
27614         (dwarf2out_begin_prologue): Reorder assignments.
27615
27616 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27617
27618         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
27619         special case loop->header.
27620         (is_predicated): New.
27621         (if_convertible_loop_p): Call it.
27622
27623 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27624
27625         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
27626         iterator in parameter.  Do not generate code during the analysis.
27627         (tree_if_convert_cond_stmt): Removed.
27628         (tree_if_convert_stmt): Removed.
27629         (predicate_bbs): New.
27630         (if_convertible_loop_p): Call predicate_bbs.
27631         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
27632         now contains all the analysis part.
27633
27634 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27635
27636         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
27637         statements in the analysis part.
27638         (tree_if_convert_stmt): Update comment.
27639         (remove_conditions_and_labels): New.
27640         (combine_blocks): Call remove_conditions_and_labels.
27641         (tree_if_conversion): Update comment.
27642
27643 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27644
27645         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
27646         than 2 predecessors or more than 2 successors.
27647
27648 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27649
27650         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
27651         of loops in which the data dependence analysis fails.
27652
27653 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27654
27655         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
27656         CDI_POST_DOMINATORS.
27657         (tree_if_conversion): Same.
27658
27659 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27660
27661         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
27662
27663 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27664
27665         * tree-if-conv.c: Update copyright years.  Fix comments.
27666         Fix indentation.
27667
27668 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
27669
27670         * builtin-types.def (BT_INT128): New primitive type.
27671         (BT_UINT128): Likewise.
27672         * c-common.c (c_common_r): Add __int128 keyword.
27673         (c_common_type_for_size): Handle __int128.
27674         (c_common_type_for_mode): Likewise.
27675         (c_common_signed_or_unsigned_type): Likewise.
27676         (c_common_nodes_and_builtins): Add builtin type
27677         if target supports 128-bit integer scalar.
27678         * c-common.h (enum rid): Add RID_INT128.
27679         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
27680         if target supports 128-bit integer scalar.
27681         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
27682         (finish_declspecs): Likewise.
27683         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
27684         (c_token_starts_declspecs): Likewise.
27685         (c_parser_declspecs): Likewise.
27686         (c_parser_attributes): Likewise.
27687         (c_parser_objc_selector): Likewise.
27688         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
27689         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
27690         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
27691         * tree.c (make_or_reuse_type): Likewise.
27692         (make_unsigned_type): Likewise.
27693         (build_common_tree_nodes_2): Likewise.
27694         * tree.h (enum integer_type_kind): Add itk_int128 and
27695         itk_unsigned_int128.
27696         (int128_integer_type_node): New define.
27697         (int128_unsigned_type_node): New define.
27698         * doc/extend.texi: Add documentation about __int128 type.
27699
27700 2010-05-26  Richard Guenther  <rguenther@suse.de>
27701
27702         * tree-ssa-sccvn.c (copy_nary): Adjust.
27703         (copy_phis): Rename to ...
27704         (copy_phi): ... this.  Adjust.
27705         (copy_references): Rename to ...
27706         (copy_reference): ... this.  Adjust.
27707         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
27708         result into the valid table.
27709
27710 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27711
27712         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
27713         insn-config.h, insn-codes.h, recog.h, and optabs.h.
27714
27715 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27716
27717         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
27718
27719 2010-05-26  Richard Guenther  <rguenther@suse.de>
27720
27721         * opts.c (common_handle_option): Handle OPT_Ofast.
27722
27723 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27724
27725         * diagnostic.c: Don't include opts.h.
27726         (permissive_error_option): Define.
27727         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
27728         for classify_diagnostic.  Don't use memset for
27729         classify_diagnostic.  Initialize new and recently added fields.
27730         (diagnostic_classify_diagnostic): Use context->n_opts instead of
27731         N_OPTS.
27732         (diagnostic_report_diagnostic): Pass context parameter to
27733         diagnostic_report_warnings_p.  Use option_enabled and option_name
27734         hooks from context.
27735         (emit_diagnostic): Use permissive_error_option.
27736         (permerror): Likewise.
27737         * diagnostic.h: Don't include options.h.
27738         (struct diagnostic_context): Add n_opts, opt_permissive,
27739         inhibit_warnings, warn_system_headers, option_enabled and
27740         option_name fields.  Change classify_diagnostic to a pointer.
27741         * opts-diagnostic.h: New file.
27742         * opts.c: Include opts-diagnostic.h.
27743         (common_handle_option): Set global_dc fields for -Wfatal-errors,
27744         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
27745         (option_name): New function.
27746         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
27747         (c_common_handle_option): Set global_dc->permissive for
27748         -fpermissive.
27749         * c-common.c (c_cpp_error): Save and restore
27750         global_dc->warn_system_headers, not variable warn_system_headers.
27751         * toplev.c: Include opts-diagnostic.h.
27752         (general_init): Update call to diagnostic_initialize.  Set
27753         global_dc->show_column, global_dc->option_enabled and
27754         global_dc->option_name.
27755         (process_options): Don't set global_dc fields here.
27756         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
27757         (diagnostic.o, opts.o, toplev.o): Update dependencies.
27758
27759 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27760
27761         * config/picochip/picochip.md (movsi): Split a movsi from a
27762         const after reload.
27763
27764 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27765
27766         * ggc-zone.c: Update copyright year.
27767         (poison_region): Mark memory for Valgrind as undefined before
27768         memset () call and inaccessible afterwards.
27769         (ggc_pch_total_size): Change type of i to int.
27770
27771 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27772
27773         * ggc-common.c (ggc_free_overhead): Allow empty slot.
27774
27775 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27776
27777         * ggc-common.c: Update copyright year.
27778         (ggc_rlimit_bound): Remove prototype.  Compile only if
27779         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
27780         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
27781         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
27782         (ggc_min_heapsize_heuristic): Likewise.
27783
27784 2010-05-26  Richard Guenther  <rguenther@suse.de>
27785
27786         PR rtl-optimization/44164
27787         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
27788         no-common access-path disambiguation.
27789         (indirect_ref_may_alias_decl_p): Adjust.
27790         (indirect_refs_may_alias_p): Likewise.
27791         (refs_may_alias_p_1): Likewise.
27792
27793 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27794
27795         * c-typeck.c: Do not include expr.h.
27796
27797 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27798
27799         * rtl.h (decl_default_tls_model): Move prototype from here...
27800         * output.h: ...to here.
27801         * c-decl.c: Do not include rtl.h.
27802         * c-pragma.c: Likewise.
27803         * c-parser.c: Likewise.
27804         * c-gimplify.c: Likewise.  And also not hard-reg-set.
27805         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
27806         FIXME note for it.  Add a FIXME note for expr.h.
27807         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
27808         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
27809         defined.
27810
27811 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
27812
27813         PR target/44199
27814         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
27815         or total_size is larger than red zone size for non-V4 ABI, emit a
27816         stack_tie resp. frame_tie insn before stack pointer restore.
27817         * config/rs6000/rs6000.md (frame_tie): New insn.
27818
27819 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
27820
27821         * function.h (struct function): Add can_throw_non_call_exceptions bit.
27822         * lto-streamer-in.c (input_function): Stream it in.
27823         * lto-streamer-out.c (output_function): Stream it out.
27824         * function.c (allocate_struct_function): Set it.
27825         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
27826         for flag_non_call_exceptions.
27827         * cfgbuild.c (control_flow_insn_p): Likewise.
27828         (make_edges): Likewise.
27829         * cfgexpand.c (expand_stack_alignment): Likewise.
27830         * combine.c (distribute_notes): Likewise.
27831         * cse.c (cse_extended_basic_block): Likewise.
27832         * except.c (insn_could_throw_p): Likewise.
27833         * gcse.c (simple_mem): Likewise.
27834         * ipa-pure-const.c (check_call): Likewise.
27835         (check_stmt ): Likewise.
27836         * lower-subreg.c (lower-subreg.c): Likewise.
27837         * optabs.c (emit_libcall_block): Likewise.
27838         (prepare_cmp_insn): Likewise.
27839         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
27840         * postreload.c (rest_of_handle_postreload): Likewise.
27841         * reload1.c (reload_as_needed): Likewise.
27842         (emit_input_reload_insns): Likewise.
27843         (emit_output_reload_insns): Likewise.
27844         (fixup_abnormal_edges): Likewise.
27845         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
27846         * store-motion.c (find_moveable_store): Likewise.
27847         * tree-eh.c (stmt_could_throw_p): Likewise.
27848         (tree_could_throw_p): Likewise.
27849         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27850         * config/arm/arm.c (arm_expand_prologue): Likewise.
27851         (thumb1_expand_prologue): Likewise.
27852         * config/rx/rx.md (cbranchsf4): Likewise.
27853         (cmpsf): Likewise.
27854         * config/s390/s390.c (s390_emit_prologue): Likewise.
27855         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
27856         (inline_forbidden_into_p): New predicate.
27857         (expand_call_inline): Use it to forbid inlining.
27858         (tree_can_inline_p): Likewise.
27859
27860 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27861
27862         * config/i386/i386-c.c: Do not include rtl.h.
27863         * config/i386/t-i386: Update dependencies.
27864
27865 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27866
27867         * attribs.c: Do not include rtl.h.
27868         * Makefile.in: Update dependencies.
27869
27870 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
27871
27872         * double-int.h (double_int_and): New.
27873         * combine.c (try_combine): Clean up, use double_int_* and
27874         immed_double_int_const functions.
27875
27876 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27877
27878         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
27879         stderr to /dev/null instead of grep -q.
27880         * configure: Regenerate.
27881
27882 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27883
27884         * Makefile.in (EXCEPT_H): Fix typo.
27885
27886 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
27887
27888         * ira-build.c (update_conflict_hard_reg_costs): New.
27889         (ira_build): Call update_conflict_hard_reg_costs.
27890
27891 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27892
27893         PR debug/41371
27894         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
27895         ENABLE_CHECKING.
27896         (intersect_loc_chains): Walk the s2var's loc_chain together
27897         with s1node chain as long as the locations are equal, don't
27898         call find_loc_in_1pdv in that case.
27899
27900         PR debug/42801
27901         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
27902         (copy_bind_expr): ... instead of here.
27903         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
27904         if the block hasn't been remapped.
27905         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
27906         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
27907
27908 2010-05-25  Richard Guenther  <rguenther@suse.de>
27909
27910         PR middle-end/44069
27911         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
27912         out-of-bounds array accesses.
27913
27914 2010-05-25  Richard Guenther  <rguenther@suse.de>
27915
27916         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
27917         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
27918         (run_gcc): Re-organize to make cleanup easier.
27919
27920 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27921
27922         * config/s390/s390.c (optimization_options): Fix and move the
27923         flag_prefetch_loop_arrays override ...
27924         (override_options): ... here.
27925
27926 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
27927
27928         * diagnostic.c: Don't include plugin.h.
27929         (diagnostic_report_diagnostic): Don't handle plugins specially
27930         here.  Pass context to internal_error callback.
27931         * diagnostic.h (struct diagnostic_context): Add context parameter
27932         to internal_error callback.
27933         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
27934         * plugin.h (struct diagnostic_context): Declare.
27935         (warn_if_plugins, plugins_internal_error_function): Declare.
27936         * toplev.c (general_init): Set global_dc->internal_error.
27937         * Makefile.in (diagnostic.o): Update dependencies.
27938
27939 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
27940
27941         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
27942         * config/rs6000/t-darwin64: New.
27943         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
27944         build crt2.
27945
27946 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
27947
27948         PR 44203
27949         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
27950         match the original (and intended) behaviour before r159557.  This
27951         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
27952         in two ways.
27953
27954 2010-05-25  Richard Guenther  <rguenther@suse.de>
27955
27956         * doc/invoke.texi: Document -Ofast.
27957         * target.h (struct gcc_target): Add handle_ofast.
27958         * target-def.h (TARGET_HANDLE_OFAST): Add.
27959         (TARGET_INITIALIZER): Adjust.
27960         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
27961         * common.opt (Ofast): Add.
27962
27963 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27964
27965         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
27966         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
27967
27968 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27969
27970         PR target/43610
27971         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
27972         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
27973         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
27974         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
27975
27976 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27977
27978         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
27979         DW_OP_minus with negated offset instead of DW_OP_plus.
27980         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
27981
27982 2010-05-25  Wei Guozhi  <carrot@google.com>
27983
27984         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
27985         tst instruction and a new alternative.
27986         * config/arm/constraints.md (Pu): New constraint.
27987
27988 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
27989
27990         * function.c (assign_stack_local_1): Initialize variable
27991         to avoid warning when bootstrapping at -O3.
27992
27993 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
27994
27995         * configure.ac (all_lang_makefiles): Remove everything related to it.
27996         * configure: Regenerate.
27997         * Makefile.in: Fix reference to ada Make-lang.in.
27998         Remove support for LANG_MAKEFILES.
27999
28000 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
28001             Sandra Loosemore  <sandra@codesourcery.com>
28002
28003         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
28004         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
28005         description.  Add arm_neon_fp16_ok.
28006         (Add Options): Add arm_neon and arm_neon_fp16.
28007
28008 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
28009
28010         * diagnostic.c: Don't include flags.h.
28011         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
28012         context parameters.  Check flags in the context passed as a parameter.
28013         (diagnostic_build_prefix): Add context parameter.  Check
28014         show_column flag in context.
28015         (diagnostic_action_after_output): Check fatal_errors flag in context.
28016         (diagnostic_report_current_module): Check show_column flag in context.
28017         (default_diagnostic_starter): Update call to
28018         diagnostic_build_prefix.
28019         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
28020         (emit_diagnostic): Pass context to permissive_error_kind.
28021         (permerror): Pass context to permissive_error_kind.
28022         * diagnostic.h (struct diagnostic_context): Add show_column,
28023         pedantic_errors, permissive and fatal_errors fields.
28024         (diagnostic_build_prefix): Update prototype.
28025         * langhooks.c
28026         * toplev.c (process_options): Set flags in global_dc from
28027         flag_show_column, flag_pedantic_errors, flag_permissive,
28028         flag_fatal_errors.
28029         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
28030         to diagnostic_build_prefix.
28031         * Makefile.in (diagnostic.o): Update dependencies.
28032
28033 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
28034
28035         * config/i386/ia32intrin.h (__crc32q): Define only if
28036         __SSE4_2__ is defined.
28037
28038 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
28039
28040         PR target/44132
28041         PR middle-end/43602
28042         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
28043         DECL_VISIBILITY_SPECIFIED.
28044         (emutls_decl): Set DECL_PRESERVE_P and copy
28045         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
28046         (emutls_finalize_control_var): New callback.
28047         (emutls_finish): Finalize emutls control variables.
28048         * toplev.c (compile_file): Move the call to emutls_finish ()
28049         before varpool_assemble_pending_decls ().
28050
28051 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
28052
28053         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
28054         added to the preprocessor condition.
28055
28056 2010-05-24  Paul Brook  <paul@codesourcery.com>
28057
28058         * gengtype-lex.l: Add HARD_REG_SET.
28059         * expr.c (expand_expr_real_1): Record writes to hard registers.
28060         * function.c (rtl_data): Add asm_clobbers.
28061         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
28062         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
28063         Use crtl->asm_clobbers.
28064
28065 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28066
28067         * doc/makefile.texi (Makefile): Mention stages 'profile'
28068         and 'feedback' for profiledbootstrap.
28069
28070 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
28071
28072         PR target/44245
28073         * config/i386/i386.c (def_builtin): Properly check
28074         OPTION_MASK_ISA_64BIT.
28075
28076 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
28077
28078         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
28079         typedefs with different but compatible types.  Allow duplicate
28080         typedefs with the same type except for pedantic non-C1X, but give
28081         warning for variably modified types.
28082         * c-typeck.c (tagged_types_tu_compatible_p,
28083         function_types_compatible_p, type_lists_compatible_p,
28084         comptypes_internal): Add parameter different_types_p; set
28085         *different_types_p for different but compatible types.  All
28086         callers changed.
28087         (comptypes_check_different_types): New.
28088         * c-tree.h (comptypes_check_different_types): Declare.
28089
28090 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
28091
28092         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
28093         * jump.c: Include basic-block.h.
28094         * profile.c: Likewise.
28095         * tree-profile.c: Likewise.
28096         * coverage.c: Likewise.
28097         * basic-block.h (optimize_function_for_size_p): Move to function.h.
28098         (optimize_function_for_speed_p): Likewise.
28099         * function.h (optimize_function_for_size_p,
28100         optimize_function_for_speed_p): Moved here from basic-block.h.
28101         * Makefile.in: Update dependencies.
28102
28103 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28104
28105         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
28106         before calling make; allow override through $MAKE.
28107         * doc/invoke.texi (Optimize Options): Document override.
28108
28109 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
28110
28111         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
28112         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28113         (rs6000_mode_dependent_address_ptr): Make static.
28114         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28115         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
28116         Remove.
28117
28118 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
28119
28120         PR target/43869
28121         * config/i386/i386.c: Make sure that the correct regparm is passed.
28122
28123 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
28124
28125         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
28126         * sbitmap.c: ...to here to internalize sbitmap element access.
28127         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
28128         Explain why basic-block.h is included.
28129         * function.h: Include tm.h for CUMULATIVE_ARGS.
28130         * Makefile.in: Update dependencies.
28131
28132 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
28133
28134         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
28135         New core types.
28136         * sbitmap.h (struct sbitmap_def): Do not typedef here.
28137         * sbitmap.c: Include sbitmap.h.
28138         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
28139         hard-reg-set.h.  Split everything related to regsets out from here...
28140         * regset.h: ...to here.  New file.
28141         * df.h: Include regset.h and sbitmap.h.
28142         * tree-flow.h: Likewise.
28143         * cfgloop.h: Likewise.
28144         * except.h: Do not include sbitmap.h.  Include hashtab.h.
28145         * cgraph.h: Include vec.h and function.h.
28146         * reload.h (struct insn_chain): Change types of live_throughout
28147         and dead_or_set from regset_head to bitmap_head.
28148         (compute_use_by_pseudos): Be defined also if regset.h is not included.
28149         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
28150         spilled_regs from regset_head to bitmap_head to avoid dependency
28151         in regset.h.
28152         * sel-sched-ir.h: Include regset.h.
28153         * reload.c: Include df.h before reload.h.
28154         * caller-save.c: Likewise.
28155         * reload1.c: Likewise.
28156         * ira.c: Likewise.
28157         (mark_elimination): Update type of r to bitmap, consistent with
28158         DF_LR_IN.
28159         * dominance.c: Include bitmap.h.
28160         * modulo-sched.c: Include df.h.
28161         * cfganal.c: Include bitmap.h and sbitmap.h.
28162         * cfgbuild.c: Include sbitmap.h.
28163         * lcm.c: Include sbitmap.h.
28164         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
28165         * domwalk.c: Include sbitmap.h, exclude ggc.h.
28166         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
28167         * cselib.c: Include bitmap.h.
28168         * tree-optimize.c: Include regset.h.
28169         * stmt.c: Include bitmap.h.
28170         * Makefile.in: Update dependencies.
28171
28172 2010-05-22  Jan Hubicka  <jh@suse.cz>
28173
28174         * cgraph.h (struct varpool_node): Add same_comdat_group.
28175         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
28176         pointer.
28177         (output_varpool): Update call of lto_output_varpool_node.
28178         (input_varpool): Read same_comdat_group pointer.
28179         (input_varpool_1): Fixup same_comdat_group pointer.
28180         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
28181         group is needed, all are.
28182         * varpool.c (varpool_remove_node): Remove node from same comdat group
28183         linklist too.
28184         (varpool_analyze_pending_decls): Walk same comdat groups.
28185
28186 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
28187
28188         * rtl.h (union rtunion_def): Remove rt_bit member.
28189         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
28190         * print-rtl (print_rtx): Do not print the member.
28191         * gengtype.c (adjust_field_rtx_def): Do not handle it.
28192         * gengenrtl.c (type_from_format): Likewise.
28193         (accessor_from_format): Likewise.
28194
28195 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
28196
28197         * dbgcnt.c: Include toplev.h instead of errors.h.
28198         * ira-emit.c: Don't include errors.h.
28199         * ira.c: Include toplev.h instead of errors.h.
28200         * lto-compress.c: Include toplev.h instead of errors.h.
28201         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
28202         ira.o, dbgcnt.o): Update dependencies.
28203
28204 2010-05-22  Richard Guenther  <rguenther@suse.de>
28205
28206         * gimple.c (gimple_types_compatible_p): Check type qualifications
28207         before merging pointer to complete and pointer to incomplete type.
28208         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
28209         we use our own resolution algorithm.  The gold linker plugin
28210         doesn't do the job we want it to do here.
28211
28212 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
28213
28214         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28215         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28216         (sparc_mode_dependent_address_p): New function.
28217
28218 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28219
28220         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
28221
28222         * timevar.c: Do not include any core headers.
28223         (timevar_print): De-i18n-ize.
28224         (print_time): Likewise.
28225         * timevar.h (timevar_push, timevar_pop): Make inline functions.
28226
28227 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
28228
28229         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
28230         langhooks-def.h.
28231         (diagnostic_initialize): Initialize x_data not last_function.
28232         (diagnostic_report_current_function): Move to tree-diagnostic.c.
28233         (default_diagnostic_starter): Call
28234         diagnostic_report_current_module not
28235         diagnostic_report_current_function.
28236         (diagnostic_report_diagnostic): Initialize x_data not
28237         abstract_origin.
28238         (verbatim): Likewise.
28239         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
28240         x_data.
28241         (struct diagnostic_context): Change last_function to x_data.
28242         (diagnostic_auxiliary_data): Replace with
28243         diagnostic_context_auxiliary_data and
28244         diagnostic_info_auxiliary_data.
28245         (diagnostic_last_function_changed, diagnostic_set_last_function,
28246         diagnostic_report_current_function): Move to tree-diagnostic.h.
28247         (print_declaration, dump_generic_node, print_generic_stmt,
28248         print_generic_stmt_indented, print_generic_expr,
28249         print_generic_decl, debug_c_tree, dump_omp_clauses,
28250         print_call_name, debug_generic_expr, debug_generic_stmt,
28251         debug_tree_chain, default_tree_printer): Move to
28252         tree-pretty-print.h.
28253         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
28254         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
28255         gimple-pretty-print.h.
28256         * pretty-print.c: Don't include tree.h
28257         (pp_base_format): Don't handle %K here.
28258         (pp_base_tree_identifier): Move to tree-pretty-print.c.
28259         * pretty-print.h (text_info): Change abstract_origin to x_data.
28260         (pp_tree_identifier, pp_unsupported_tree,
28261         pp_base_tree_identifier): Move to tree-pretty-print.h.
28262         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
28263         tree-pretty-print.h: New files.
28264         * tree-pretty-print.c: Include tree-pretty-print.h.
28265         (percent_K_format): New.  Moved from pretty-print.c.
28266         (pp_base_tree_identifier): Move from pretty-print.c.
28267         * c-objc-common.c: Include tree-pretty-print.h.
28268         (c_tree_printer): Handle %K here.
28269         * langhooks.c: Include tree-diagnostic.h.
28270         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
28271         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
28272         (default_tree_printer): Handle %K using percent_K_format.
28273         (general_init): Use default_tree_diagnostic_starter.
28274         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
28275         (free_lang_data): Use default_tree_diagnostic_starter.
28276         * c-pretty-print.c: Include tree-pretty-print.h.
28277         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28278         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28279         * dwarf2out.c: Include tree-pretty-print.h.
28280         * except.c: Include tree-pretty-print.h.
28281         * gimple-pretty-print.c: Include tree-pretty-print.h and
28282         gimple-pretty-print.h.
28283         * gimplify.c: Include tree-pretty-print.h.
28284         * graphite-poly.c: Include tree-pretty-print.h and
28285         gimple-pretty-print.h.
28286         * ipa-cp.c: Include tree-pretty-print.h.
28287         * ipa-inline.c: Include gimple-pretty-print.h.
28288         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28289         * ipa-pure-const.c: Include gimple-pretty-print.h.
28290         * ipa-struct-reorg.c: Include tree-pretty-print.h and
28291         gimple-pretty-print.h.
28292         * ipa-type-escape.c: Include tree-pretty-print.h.
28293         * print-rtl.c: Include tree-pretty-print.h.
28294         * print-tree.c: Include gimple-pretty-print.h.
28295         * sese.c: Include tree-pretty-print.h.
28296         * tree-affine.c: Include tree-pretty-print.h.
28297         * tree-browser.c: Include tree-pretty-print.h.
28298         * tree-call-cdce.c: Include gimple-pretty-print.h.
28299         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28300         * tree-chrec.c: Include tree-pretty-print.h.
28301         * tree-data-ref.c: Include tree-pretty-print.h and
28302         gimple-pretty-print.h.
28303         * tree-dfa.c: Include tree-pretty-print.h.
28304         * tree-if-conv.c: Include tree-pretty-print.h and
28305         gimple-pretty-print.h.
28306         * tree-inline.c: Include tree-pretty-print.h.
28307         * tree-into-ssa.c: Include tree-pretty-print.h and
28308         gimple-pretty-print.h.
28309         * tree-nrv.c: Include tree-pretty-print.h.
28310         * tree-object-size.c: Include tree-pretty-print.h and
28311         gimple-pretty-print.h.
28312         * tree-outof-ssa.c: Include tree-pretty-print.h and
28313         gimple-pretty-print.h.
28314         * tree-parloops.c: Include tree-pretty-print.h and
28315         gimple-pretty-print.h.
28316         * tree-predcom.c: Include tree-pretty-print.h and
28317         gimple-pretty-print.h.
28318         * tree-scalar-evolution.c: Include tree-pretty-print.h and
28319         gimple-pretty-print.h.
28320         * tree-sra.c: Include tree-pretty-print.h.
28321         * tree-ssa-address.c: Include tree-pretty-print.h.
28322         * tree-ssa-alias.c: Include tree-pretty-print.h.
28323         * tree-ssa-ccp.c: Include tree-pretty-print.h and
28324         gimple-pretty-print.h.
28325         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
28326         * tree-ssa-copy.c: Include tree-pretty-print.h and
28327         gimple-pretty-print.h.
28328         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
28329         * tree-ssa-dce.c: Include tree-pretty-print.h and
28330         gimple-pretty-print.h.
28331         * tree-ssa-dom.c: Include tree-pretty-print.h and
28332         gimple-pretty-print.h.
28333         * tree-ssa-dse.c: Include gimple-pretty-print.h.
28334         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
28335         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
28336         * tree-ssa-live.c: Include tree-pretty-print.h and
28337         gimple-pretty-print.h.
28338         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
28339         gimple-pretty-print.h.
28340         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
28341         gimple-pretty-print.h.
28342         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
28343         gimple-pretty-print.h.
28344         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
28345         gimple-pretty-print.h.
28346         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
28347         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
28348         * tree-ssa-operands.c: Include tree-pretty-print.h and
28349         gimple-pretty-print.h.
28350         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
28351         gimple-pretty-print.h.
28352         * tree-ssa-pre.c: Include tree-pretty-print.h and
28353         gimple-pretty-print.h.
28354         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
28355         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
28356         gimple-pretty-print.h.
28357         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
28358         gimple-pretty-print.h.
28359         * tree-ssa-sink.c: Include gimple-pretty-print.h.
28360         * tree-ssa-ter.c: Include tree-pretty-print.h and
28361         gimple-pretty-print.h.
28362         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
28363         * tree-ssa.c: Include tree-pretty-print.h and
28364         gimple-pretty-print.h.
28365         * tree-stdarg.c: Include gimple-pretty-print.h.
28366         * tree-switch-conversion.c: Include gimple-pretty-print.h.
28367         * tree-tailcall.c: Include tree-pretty-print.h and
28368         gimple-pretty-print.h.
28369         * tree-vect-data-refs.c: Include tree-pretty-print.h and
28370         gimple-pretty-print.h.
28371         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
28372         gimple-pretty-print.h.
28373         * tree-vect-loop.c: Include tree-pretty-print.h and
28374         gimple-pretty-print.h.
28375         * tree-vect-patterns.c: Include gimple-pretty-print.h.
28376         * tree-vect-slp.c: Include tree-pretty-print.h and
28377         gimple-pretty-print.h.
28378         * tree-vect-stmts.c: Include tree-pretty-print.h and
28379         gimple-pretty-print.h.
28380         * tree-vectorizer.c: Include tree-pretty-print.h.
28381         * tree-vrp.c: Include tree-pretty-print.h and
28382         gimple-pretty-print.h.
28383         * value-prof.c: Include tree-pretty-print.h and
28384         gimple-pretty-print.h.
28385         * var-tracking.c: Include tree-pretty-print.h.
28386         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
28387         (tree-diagnostic.o): New dependencies.
28388         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
28389         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
28390         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
28391         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
28392         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
28393         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
28394         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
28395         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
28396         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
28397         tree-ssa-address.o, tree-ssa-loop-niter.o,
28398         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
28399         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
28400         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
28401         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
28402         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
28403         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
28404         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
28405         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
28406         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
28407         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
28408         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
28409         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
28410         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
28411         tree-switch-conversion.o, var-tracking.o, value-prof.o,
28412         cfgexpand.o, pretty-print.o): Update dependencies.
28413
28414 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
28415
28416         * tree-ssa-structalias.c: Remove tm_p.h from include.
28417
28418 2010-05-21  Jeff Law  <law@redhat.com>
28419
28420         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
28421
28422 2010-05-21  Jason Merrill  <jason@redhat.com>
28423
28424         * tree-eh.c (cleanup_is_dead_in): New.
28425         (lower_try_finally): Don't generate a dead cleanup region.
28426         (lower_cleanup): Likewise.
28427
28428 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
28429
28430         PR debug/44223
28431         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
28432         unchain each use from the cyclic next_regno_use chain first.
28433
28434 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28435
28436         * real: Do not include gmp.h, mpfr.h, and mpc.h.
28437         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
28438         (real_value_negate, real_value_abs): New prototypes.
28439         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
28440         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
28441         new include file for interface between MPFR and REAL_VALUE_TYPE.
28442         * real.c: Include realmpfr.h.
28443         (real_arithmetic2): Remove legacy function.
28444         (real_value_negate): New.
28445         (real_value_abs): New.
28446         (mfpr_from_real, real_from_mpfr): Move from here...
28447         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
28448         * builtins.c: Include realmpfr.h.
28449         * fold-const.c: Include realmpfr.h.
28450         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
28451         (fold_negate_const): Likewise.
28452         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
28453         * toplev.c: Include realmpfr.h.
28454         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
28455         and real_value_negate.
28456         * fixed-value.c (check_real_for_fixed_mode): Likewise.
28457         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
28458         (vfp3_const_double_index): Likewise.
28459         (arm_print_operand): Likewise.
28460         * Makefile.in: Update dependencies.
28461
28462 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28463
28464         * config/s390/s390.c (override_options): Increase the default
28465         of max-completely-peel-times.
28466
28467 2010-05-21  Julian Brown  <julian@codesourcery.com>
28468             Mark Mitchell  <mark@codesourcery.com>
28469
28470         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
28471         sibling calls for Thumb-1.
28472         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
28473         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
28474         Thumb-2.
28475         (*call_insn, *call_value_insn): Don't use for Thumb-2.
28476         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
28477         for Thumb-2.
28478         (return): New expander.
28479         (*arm_return): New name for ARM return insn.
28480         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
28481
28482 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
28483
28484         * config.gcc (sparc64-*-rtems*): New target.
28485
28486 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
28487
28488         * tree.c (build_function_decl_skip_args): Fix grammar.
28489         (build_function_type_list_1): Fix typos, adjust formatting.
28490
28491 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28492
28493         * tree.h: Include real.h and fixed-value.h as basic datatypes.
28494         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
28495         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
28496         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
28497         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
28498         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
28499         tree-pretty-print.c, tree-loop-distribution.c,
28500         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
28501         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
28502         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
28503         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
28504         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
28505         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
28506         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
28507         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
28508         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
28509         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
28510         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
28511         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
28512         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
28513         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
28514         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
28515         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
28516         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
28517         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
28518         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
28519         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
28520         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
28521         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
28522         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
28523         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
28524         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
28525         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
28526         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
28527         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
28528         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
28529         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
28530         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
28531         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
28532         config/score/score7.c, config/score/score.c, config/arm/arm.c,
28533         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
28534         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
28535         config/bfin/bfin.c: Clean up redundant includes.
28536         * Makefile.in: Update accordingly.
28537
28538 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
28539
28540         PR middle-end/44204
28541         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
28542         statement has no arguments.
28543
28544 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
28545
28546         PR/44139
28547         * varasm.c (emutls_decl): Merge attributes to new decl.
28548
28549 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
28550
28551         PR middle-end/44101
28552         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
28553         around the uniquized constructor if its type requires a conversion.
28554
28555 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
28556
28557         PR debug/44205
28558         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
28559         at -O0 goto_locus of any of the incoming edges differs from
28560         goto_locus of outgoing edge, or gimple_location of any of the
28561         labels differs.
28562
28563 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
28564
28565         * ira.c (ira_non_ordered_class_hard_regs): Define.
28566         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
28567         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
28568         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
28569         cost of unaligned hard regs when allocating multi-reg pseudos.
28570
28571 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
28572
28573         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
28574         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
28575         for TARGET_NO_FLOAT.
28576         * config/mips/mips.c (mips_file_start): Expand conditional expression
28577         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
28578         (mips_override_options): Move -mno-float override -msoft-float and
28579         -mhard-float.
28580         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
28581         Condition(TARGET_SUPPORTS_NO_FLOAT).
28582         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
28583         __mips_no_float here.
28584         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
28585         (TARGET_SUPPORTS_NO_FLOAT): Define.
28586         * config/mips/sdemtk.opt: Delete.
28587
28588 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
28589
28590         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
28591
28592 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
28593
28594         PR target/43733
28595         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
28596         * configure: Regenerate.
28597         * config.in: Regenerate.
28598         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
28599         instead of sahf only for 64bit targets.
28600
28601 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
28602
28603         PR debug/44178
28604         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
28605         setup_ref_regs for DEBUG_INSNs.
28606
28607 2010-05-20  Jan Hubicka  <jh@suse.cz>
28608
28609         PR middle-end/44197
28610         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
28611
28612 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
28613
28614         PR bootstrap/43870
28615         * df-scan.c (df_ref_compare): Stabilize sort.
28616
28617 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
28618
28619         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
28620         argument.  Don't use DW_OP_piece if offset is non-zero,
28621         put offset into second DW_OP_bit_piece argument.
28622         (dw_sra_loc_expr): Adjust callers.  For memory expressions
28623         compute offset.
28624
28625 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
28626
28627         PR target/44202
28628         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
28629         settings for 16-bit-constant "addo" alternative.
28630
28631 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
28632
28633         * config/mips/mips-dsp.md (add<DSPV:mode>3,
28634         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
28635
28636         PR target/43764
28637         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
28638         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
28639         Use it.
28640
28641 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
28642
28643         * diagnostic.c (FLOAT, FFS): Don't undefine.
28644         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
28645         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
28646         include ordering.
28647
28648 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
28649
28650         * combine.c (propagate_for_debug): Call make_compound_operation
28651         on the source value.
28652         (try_combine): When implementing a split chosen by find_split_point,
28653         either copy i2src or set it to null.  Assert that i2src is not null
28654         before substituting into CALL_INSN_FUNCTION_USAGE.
28655
28656 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
28657
28658         * double-int.h (double_int_ior): New function.
28659         * tree.h (build_int_cst_wide_type): Remove.
28660         * tree.c (build_int_cst_wide_type): Remove.
28661         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
28662         of build_int_cst_wide_type.
28663         * stor-layout.c (set_sizetype): (Ditto.).
28664         * dojump.c (do_jump): Use build_int_cstu instead of
28665         build_int_cst_wide_type.
28666
28667 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28668
28669         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
28670         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
28671         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
28672         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
28673         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
28674         propagate the 'data' argument to copy_tree_r.
28675         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
28676         Propagate 'data' argument to walk_tree.
28677         (copy_if_shared): New function.
28678         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
28679         (unmark_visited): New function.
28680         (unshare_body): Call copy_if_shared instead of doing it manually.
28681         (unvisit_body): Call unmark_visited instead of doing it manually.
28682
28683 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
28684
28685         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
28686         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
28687         * hooks.c: Likewise.
28688         * target-def.h (TARGET_FOLD_BUILTIN): Define to
28689         hook_tree_tree_int_treep_bool_null.
28690         * target.h (struct gcc_target): Update signature of fold_builtin
28691         field.
28692         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
28693         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
28694         instead of the call expression.
28695         (fold_builtin_call_array): Pass n and argarray directly.
28696         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
28697         consing a list.
28698         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
28699         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
28700         `i' and use it in place of `arity'.
28701         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
28702         Dereference `args' directly.
28703         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
28704
28705 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28706
28707         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28708         3dnow, sse3, sse2.
28709         (Directives): Document optional dg-require-effective-target
28710         selector.
28711
28712 2010-05-19  Richard Guenther  <rguenther@suse.de>
28713
28714         PR lto/44196
28715         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
28716
28717 2010-05-19  Richard Guenther  <rguenther@suse.de>
28718
28719         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
28720         * common.opt (fwhopr=): New.
28721         * opts.c (common_handle_option): Handle OPT_fwhopr.
28722         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
28723         * collect2.c (main): Match -fwhopr*.
28724         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
28725         Execute ltrans stage in parallel when jobs is bigger than 1.
28726
28727 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28728
28729         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
28730         pentiumpro on Solaris 8/x86 with Sun as.
28731         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
28732         hidden alias bug.
28733         (gcc_cv_as_ix86_quad): Check for .quad directive.
28734         * configure: Regenerate.
28735         * config.in: Regenerate.
28736         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
28737
28738 2010-05-19  Martin Jambor  <mjambor@suse.cz>
28739
28740         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
28741         also for indirect edges.  Actual printing moved...
28742         (ipa_print_node_jump_functions_for_edge): ...here.
28743         (ipa_compute_jump_functions): Renamed to
28744         ipa_compute_jump_functions_for_edge and made static.
28745         (ipa_compute_jump_functions): New function.
28746         (make_edge_direct_to_target): Check if the number of arguments on
28747         the newly direct edge is the same as the number of parametrs of
28748         the callee.
28749         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
28750         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
28751         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
28752         analysis functions unconditionally, call the new
28753         ipa_analyze_params_uses on the node instead of every edge.
28754
28755 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
28756
28757         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
28758         to tree.
28759         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
28760         also checks for a constant int vs.  non-constant but
28761         loop-invariant steps.
28762         (find_or_create_group): Change the sort algorithm to only consider
28763         steps that are constant ints.
28764         (idx_analyze_ref): Adopt code to handle a tree instead of a
28765         HOST_WIDE_INT for step.
28766         (gather_memory_references_ref): Handle tree instead of int and be
28767         prepared to see a NULL_TREE.
28768         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
28769         prefetches if the step cannot be calculated at compile time.
28770         (issue_prefetch_ref): Issue prefetches for non-constant but
28771         loop-invariant steps.
28772
28773 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28774
28775         Revert:
28776         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28777
28778         * tree.h (build_call_list): Remove.
28779         * tree.c (build_call_list): Remove.
28780
28781 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28782
28783         * tree.h (build_call_list): Remove.
28784         * tree.c (build_call_list): Remove.
28785
28786 2010-05-18  Jan Hubicka  <jh@suse.cz>
28787
28788         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
28789
28790 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
28791
28792         PR rtl-optimization/43332
28793         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
28794
28795 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
28796
28797         * tree.h (build_int_cstu): Implement as static inline.
28798         * tree.c (build_int_cstu): Remove function.
28799         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
28800         sign extended.
28801
28802 2010-05-18  Richard Guenther  <rguenther@suse.de>
28803
28804         PR lto/44143
28805         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
28806         (debug): Initialize from -save-temps.
28807         (collect_execute): Print command-line when verbose.
28808         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
28809         for ltrans invocation.  Produce -dumpbase flag again.
28810         (process_args): Remove.
28811         (main): Simplify.
28812         * collect2.c (maybe_run_lto_and_relink): Only pass object
28813         files to lto-wrapper.
28814         * gcc.c (LINK_COMMAND_SPEC): Likewise.
28815
28816 2010-05-18  Jan Hubicka  <jh@suse.cz>
28817
28818         * opts.c (decode_options): Do not disable whopr at ipa_cp.
28819         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
28820
28821 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28822
28823         PR lto/44184
28824         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
28825         in a GIMPLE_ASM.
28826         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
28827         in a GIMPLE_ASM.
28828
28829 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
28830
28831         PR debug/41371
28832         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
28833         rtx_equal_p inline.
28834
28835 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28836
28837         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
28838         lto-macho as lto_binary_reader.
28839
28840         * darwin.c (darwin_asm_named_section): Do not add assembler comment
28841         after .section directive; just print it before the directive instead.
28842
28843 2010-05-17  Jan Hubicka  <jh@suse.cz>
28844
28845         * cgraph.c (cgraph_create_virtual_clone): Only check
28846         versionable_function_p when not in wpa and checking is enabled.
28847         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
28848         there are no more functions to materialize.
28849
28850 2010-05-17  Jan Hubicka  <jh@suse.cz>
28851
28852         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
28853         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
28854         New functions.
28855         (output_cgraph): Call output_cgraph_opt_summary.
28856         (input_cgrpah): Call input_cgraph_opt_summary.
28857         (output_cgraph_opt_summary_p, output_node_opt_summary,
28858         input_node_opt_summary, input_cgraph_opt_section): New functions.
28859         * lto-section-in.c (lto_section_name): Add cgraphopt.
28860         * tree-inline.c (tree_function_versioning): Handle parm_num.
28861         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
28862         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
28863
28864 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28865
28866         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
28867         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
28868         the insn to prefetch ratio heuristic to loops with known trip count.
28869
28870 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28871
28872         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
28873         (schedule_prefetches): Do not generate a prefetch if the unroll factor
28874         is far from what is required by the prefetch.
28875
28876 2010-05-17  Jan Hubicka  <jh@suse.cz>
28877
28878         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
28879         (ipcp_estimate_growth): Likewise.
28880         (ipcp_const_param_count): Likewise.
28881         (ipcp_insert_stage): Likewise.
28882         * ipa-prop.c (visit_load_for_mod_analysis): New function.
28883         (visit_store_addr_for_mod_analysis): Set used flag.
28884         (ipa_detect_param_modifications): Set used flag for SSE params;
28885         update use of walk_stmt_load_store_addr_ops.
28886         (ipa_print_node_params): Print used flag.
28887         (ipa_write_node_info): Stream used flag.
28888         (ipa_read_node_info): Likewise.
28889         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
28890         (ipa_is_param_used): New function.
28891         (lto_ipa_fixup_call_notes): Remove unused declaration.
28892
28893 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28894
28895         PR target/44074
28896         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
28897         * configure: Regenerate.
28898         * config.in: Regenerate.
28899         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
28900         !HAVE_AS_IX86_REP_LOCK_PREFIX.
28901         Don't emit whitespace.
28902         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
28903         (*rep_movsi): Likewise.
28904         (*rep_movsi_rex64): Likewise.
28905         (*rep_movqi): Likewise.
28906         (*rep_movqi_rex64): Likewise.
28907         (*rep_stosdi_rex64): Likewise.
28908         (*rep_stossi): Likewise.
28909         (*rep_stossi_rex64): Likewise.
28910         (*rep_stosqi): Likewise.
28911         (*rep_stosqi_rex64): Likewise.
28912         (*cmpstrnqi_nz_1): Use {%;} after repz.
28913         (*cmpstrnqi_nz_rex_1): Likewise.
28914         (*cmpstrnqi_1): Likewise.
28915         (*cmpstrnqi_rex_1): Likewise.
28916         (*strlenqi_1): Use {%;} after repnz.
28917         (*strlenqi_rex_1): Likewise.
28918         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
28919         (*sync_compare_and_swap<mode>): Likewise.
28920         (sync_double_compare_and_swap<mode>): Likewise.
28921         (*sync_double_compare_and_swapdi_pic): Likewise.
28922         (sync_old_add<mode>): Likewise.
28923         (sync_add<mode>): Likewise.
28924         (sync_sub<mode>): Likewise.
28925         (sync_<code><mode>): Likewise.
28926
28927 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28928
28929         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
28930         otr_token and polymorphic.
28931         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
28932         (cgraph_clone_edge): Copy the above fields.
28933         * tree.c (get_binfo_at_offset): New function.
28934         * tree.h (get_binfo_at_offset): Declare.
28935         * ipa-prop.h (enum jump_func_type): Added known_type jump function
28936         type, reordered items, updated comments.
28937         (union jump_func_value): Added base_type field, reordered fields.
28938         (enum ipa_lattice_type): Moved down in the file.
28939         (struct ipa_param_descriptor): New field polymorphic.
28940         (ipa_is_param_polymorphic): New function.
28941         * ipa-prop.c: Include gimple.h and gimple-fold.h.
28942         (ipa_print_node_jump_functions): Print known type jump functions.
28943         (compute_complex_pass_through): Renamed to...
28944         (compute_complex_assign_jump_func): this.
28945         (compute_complex_ancestor_jump_func): New function.
28946         (compute_known_type_jump_func): Likewise.
28947         (compute_scalar_jump_functions): Create known type and complex ancestor
28948         jump functions.
28949         (ipa_note_param_call): New parameter polymorphic, set the corresponding
28950         flag in the call note accordingly.
28951         (ipa_analyze_call_uses): Renamed to...
28952         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
28953         variable var only in the block where it is used.
28954         (ipa_analyze_virtual_call_uses): New function.
28955         (ipa_analyze_call_uses): Likewise.
28956         (combine_known_type_and_ancestor_jfs): Likewise.
28957         (update_jump_functions_after_inlining): Implemented handling of a
28958         number of new jump function types combination.
28959         (print_edge_addition_message): Removed.
28960         (make_edge_direct_to_target): New function.
28961         (try_make_edge_direct_simple_call): Likewise.
28962         (try_make_edge_direct_virtual_call): Likewise.
28963         (update_call_notes_after_inlining): Renamed to...
28964         (update_indirect_edges_after_inlining): this.  Moved edge creation for
28965         indirect calls to try_make_edge_direct_simple_call, also calls
28966         try_make_edge_direct_virtual_call for virtual calls.
28967         (ipa_print_node_params): Changed the header message.
28968         (ipa_write_jump_function): Stream also known type jump functions.
28969         (ipa_read_jump_function): Likewise.
28970         (ipa_write_indirect_edge_info): Stream new fields in
28971         cgraph_indirect_call_info.
28972         (ipa_read_indirect_edge_info): Likewise.
28973         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
28974         GIMPLE_FOLD_H.
28975
28976 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28977
28978         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
28979
28980 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28981
28982         * tree.h (CALL_EXPR_ARGS): Delete.
28983         (call_expr_arglist): Delete.
28984         * tree.c (call_expr_arglist): Delete.
28985         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
28986         targetm.fold_builtin.
28987         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
28988         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
28989         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
28990         arglist parameter.  Use CALL_EXPR_ARG.
28991         (picochip_expand_builtin_3op): Likewise.
28992         (picochip_expand_builtin_2opvoid): Likewise.
28993         (picochip_expand_array_get): Likewise.
28994         (picochip_expand_array_put): Likewise.
28995         (picochip_expand_array_testport): Likewise.
28996         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
28997         rather than arglist.
28998         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
28999         CALL_EXPR_ARGS.
29000         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
29001         than TREE_VALUE and TREE_CHAIN.
29002         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
29003         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
29004         the arglist.
29005
29006 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
29007
29008         PR bootstrap/42347
29009         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
29010         to have no fallthru edge.
29011
29012         PR middle-end/44102
29013         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
29014         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
29015         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
29016         add BARRIER after previous bb if needed.
29017
29018 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
29019
29020         * tree.c (build_function_type_list_1): Remove bogus assert condition.
29021
29022 2010-05-17  Alan Modra  <amodra@gmail.com>
29023
29024         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
29025         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
29026         with copy_reg rtx param.
29027         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
29028         Correct cases where code for ABI_V4 did not initialise the reg
29029         used to access frame.  Also leave frame_reg_rtx as sp for large
29030         frames that save no regs.
29031
29032 2010-05-17  Martin Jambor  <mjambor@suse.cz>
29033
29034         PR middle-end/44133
29035         * tree-sra.c (create_access_replacement): New parameter rename, mark
29036         the replaement for renaming only when it is true.
29037         (get_access_replacement): Pass true in the rename parameter of
29038         create_access_replacement.
29039         (get_unrenamed_access_replacement): New function.
29040         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
29041         replacement declaration from it.
29042
29043 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
29044
29045         * function.c (try_fit_stack_local, add_frame_space): New static
29046         functions.
29047         (assign_stack_local_1): Use them.  Look for opportunities to use
29048         space previously wasted on alignment.
29049         * function.h (struct frame_space): New.
29050         (struct rtl_data): Add FRAME_SPACE_LIST member.
29051         * reload1.c (something_was_spilled): New static variable.
29052         (alter_reg): Set it.
29053         (reload): Test it in addition to testing if the frame size changed.
29054
29055 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
29056
29057         * config/s390/s390.c: Define sane prefetch settings and activate
29058         flag_prefetch_loop_arrays on -O3.
29059         * config/s390/s390.h: Declare that read can use write prefetch.
29060
29061 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
29062
29063         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
29064         build.
29065
29066 2010-05-16  Jan Hubicka  <jh@suse.cz>
29067
29068         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
29069         function body; do not check stdarg field of struct function.
29070
29071 2010-05-16  Jan Hubicka  <jh@suse.cz>
29072
29073         * cgraph.c (dump_cgraph_node): Dump versionable flag.
29074         * cgraph.h (cgraph_local_info): Add versionable flag.
29075         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
29076         (ipcp_versionable_function_p): Use it.
29077         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29078         versionable flag.
29079
29080 2010-05-16  Jan Hubicka  <jh@suse.cz>
29081
29082         * cgraph.c (cgraph_clone_node): Take decl argument and insert
29083         clone into hash when it is different from orig.
29084         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
29085         * cgraph.h (cgraph_clone_node): Update prototype.
29086         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
29087         (lto_cgraph_encoder_delete): Delete body map.
29088         (lto_cgraph_encoder_size): Move to header.
29089         (lto_cgraph_encoder_encode_body_p,
29090         lto_set_cgraph_encoder_encode_body): New.
29091         (lto_output_node): Do not take written_decls argument; output clone_of
29092         pointer.
29093         (add_node_to): Add include_body_argument; call
29094         lto_set_cgraph_encoder_encode_body on master of the clone.
29095         (add_references): Update use of add_node_to.
29096         (compute_ltrans_boundary): Likewise.
29097         (output_cgraph): Do not create written_decls bitmap.
29098         (input_node): Take nodes argument; stream in clone_of correctly.
29099         (input_cgraph_1): Update use of input_node.
29100         * lto-streamer-out.c (lto_output): Use encoder info to decide
29101         what bodies to output.
29102         * ipa-inline.c (cgraph_clone_inlined_nodes,
29103         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
29104         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
29105         (lto_cgraph_encoder_size): Define here.
29106         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
29107         Declare.
29108
29109 2010-05-16  Richard Guenther  <rguenther@suse.de>
29110
29111         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
29112         -fipa-type-escape.
29113         * ipa-type-escape.c (gate_type_escape_vars): Run when
29114         -fipa-struct-reorg runs.
29115         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
29116         * common.opt (fipa-type-escape): Remove.
29117
29118 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
29119
29120         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
29121         (decode_options): Likewise.
29122         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
29123
29124 2010-05-16  Jan Hubicka  <jh@suse.cz>
29125
29126         * ipa.c (function_and_variable_visibility): Also bring local all
29127         aliases.
29128
29129 2010-05-16  Richard Guenther  <rguenther@suse.de>
29130
29131         * alias.c (nonoverlapping_memrefs_p): Remove use of
29132         IPA type-escape information.
29133
29134 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
29135
29136         * c-common.c (c_common_reswords): Add _Static_assert for C.
29137         * c-parser.c (c_token_starts_declaration,
29138         c_parser_next_token_starts_declaration,
29139         c_parser_static_assert_declaration_no_semi,
29140         c_parser_static_assert_declaration): New.
29141         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
29142         Handle static assertions if static_assert_ok.
29143         (c_parser_external_declaration, c_parser_declaration_or_fndef,
29144         c_parser_compound_statement_nostart, c_parser_label,
29145         c_parser_for_statement, c_parser_objc_methodprotolist,
29146         c_parser_omp_for_loop): All callers of
29147         c_parser_declaration_or_fndef changed.
29148         (c_parser_struct_declaration): Handle static assertions.
29149         (c_parser_compound_statement_nostart): Use
29150         c_parser_next_token_starts_declaration and
29151         c_token_starts_declaration to detect start of declarations.
29152         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
29153         Likewise.
29154
29155 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
29156
29157         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
29158         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29159         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29160         TARGET_FUNCTION_VALUE_REGNO_P): Define.
29161         (mmix_function_outgoing_value): Rename to...
29162         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
29163         (mmix_function_value_regno_p): Make static.
29164         (mmix_libcall_value): New function.
29165         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
29166         mmix_function_value_regno_p): Remove declaration.
29167
29168 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
29169
29170         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
29171         BUILT_IN_ALLOCA if stack checking is enabled.
29172
29173 2010-05-16  Richard Guenther  <rguenther@suse.de>
29174
29175         * var-tracking.c (vars_copy_1): Inline ...
29176         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
29177         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
29178         (variable_merge_over_cur): Adjust.  Merge asserts.
29179         (variable_merge_over_src): Likewise.
29180         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
29181         (variable_post_merge_new_vals): Merge asserts.
29182         (variable_post_merge_perm_vals): Likewise.
29183         (find_mem_expr_in_1pdv): Likewise.
29184         (dataflow_set_different_value): Remove.
29185         (onepart_variable_different_p): Merge asserts.
29186         (variable_different_p): Likewise.
29187         (dataflow_set_different_1): Inline ...
29188         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
29189         (emit_notes_for_differences_1): Merge asserts.
29190
29191 2010-05-16  Richard Guenther  <rguenther@suse.de>
29192
29193         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
29194         * optabs.c (libfunc_decl_hash): Likewise.
29195         * varasm.c (emutls_decl): Likewise.
29196
29197 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
29198
29199         * c-decl.c: Don't include gimple.h.
29200         (merge_decls): Do not copy gimple_body.
29201
29202 2010-05-15  Jason Merrill  <jason@redhat.com>
29203
29204         * c.opt: Add -fnothrow-opt.
29205
29206 2010-05-15  Jan Hubicka  <jh@suse.cz>
29207
29208         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
29209         analyzed.
29210         * passes.c (ipa_write_summaries): Write all analyzed nodes.
29211
29212 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
29213
29214         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
29215         * Makefile.in: Add it.
29216         Fix all other Makefile dependencies for changes below.
29217         * tree.h: Include it instead of defining VEC primitives here.
29218         * gimple.h: Likewise.
29219         * rtl.h: Likewise.
29220         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
29221         * except.h: Include vecir.h, break dependence on tree.h.
29222
29223         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
29224         Move from here...
29225         * tree-iterator.c: ...to here.
29226         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
29227
29228         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
29229         tm_p.h.
29230         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
29231         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
29232         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
29233         tree-mudflap.h, and target.h.
29234         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
29235         predict.h, tree-inline.h, gimple.h, and langhooks.h.
29236         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
29237         Add FIXME for why gimple.h is still included (should be unnecessary
29238         since GCC 4.5 gimplification unit-at-a-time).
29239         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
29240         * c-pragma.c: Add FIXME for why function.h needs to be included just
29241         for cfun, at front-end level.
29242         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
29243         Do not include ggc.h, but include vecprim.h for VEC(char).
29244         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
29245         Explain why target.h is included.
29246         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
29247         Explain why gimple.h is included.
29248         * c-ppoutput.c: Do not include tm.h.
29249         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
29250         * c-parses.c: Explain why rtl.h is included, and that this (and only
29251         this) is also why tm.h must be included.
29252         Do not include except.h.
29253         * c-lang.c: Do not include ggc.h.
29254
29255 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
29256
29257         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
29258
29259 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
29260
29261         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
29262         unions by default if those structs and unions have no tags.  Do
29263         not condition anonymous struct and unions handling on flag_iso.
29264         Allow anonymous structs and unions for C1X.
29265         (finish_struct): Do not diagnose lack of named fields when
29266         anonymous structs and unions present for C1X.  Accept flexible
29267         array members in structure with anonymous structs or unions but no
29268         directly named fields.
29269         * doc/extend.texi (Unnamed Fields): Update.
29270
29271 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
29272
29273         * gimple.h (compare_field_offset): Rename into...
29274         (gimple_compare_field_offset): ...this.
29275         * gimple.c (compare_field_offset): Rename into...
29276         (gimple_compare_field_offset): ...this.  Compare the full access if
29277         the offset is self-referential.
29278         (gimple_types_compatible_p): Adjust for above renaming.
29279         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
29280         DECL_NONADDRESSABLE_P flag of fields before merging them.
29281
29282 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
29283
29284         * tree.h (ctor_to_list): Delete.
29285         * tree.c (ctor_to_list): Delete.
29286
29287 2010-05-15  Jan Hubicka  <jh@suse.cz>
29288
29289         * ipa-reference.c: Include toplev.h
29290         (is_proper_for_analysis): Only add to all_module_statics
29291         if it is allocated.
29292         (write_node_summary_p, stream_out_bitmap,
29293         ipa_reference_write_optimization_summary,
29294         ipa_reference_read_optimization_summary): New.
29295         (struct ipa_opt_pass_d pass_ipa_reference): Add
29296         optimization summary streaming.
29297         * lto-cgraph.c (referenced_from_this_partition_p,
29298         reachable_from_this_partition_p): New functions.
29299         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
29300         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
29301         * opts.c (decode_options): Enable ipa_reference.
29302         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
29303         * lto-streamer.h (referenced_from_this_partition_p,
29304         reachable_from_this_partition_p): Declare.
29305
29306 2010-05-15  Richard Guenther  <rguenther@suse.de>
29307
29308         PR tree-optimization/44038
29309         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
29310         taking the address of a V_C_E of a constant.
29311
29312 2010-05-14  Jan Hubicka  <jh@suse.cz>
29313
29314         * tree.h (memory_identifier_string): Remove.
29315         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
29316         (ipa_reference_global_vars_info_d): Remove statics_not_read and
29317         statics_not_written.
29318         (ipa_reference_optimization_summary_d): New structure.
29319         (ipa_reference_optimization_summary_t): New type and vector.
29320         (ipa_reference_vars_info_d): Embedd structures instead of using
29321         pointers.
29322         (reference_vars_to_consider): Remove out of GGC space.
29323         (module_statics_escape): Remove.
29324         (global_info_obstack): Rename to ...
29325         (optimization_summary_obstack): ... this one.
29326         (initialization_status_t): Remove.
29327         (memory_identifier_string): Remove.
29328         (get_reference_vars_info): Fix indenting.
29329         (set_reference_vars_info): Likewise.
29330         (get_reference_optimization_summary): New.
29331         (set_reference_optimization_summary): New.
29332         (get_global_reference_vars_info): Remove.
29333         (ipa_reference_get_read_global): Remove.
29334         (ipa_reference_get_written_global): Remove.
29335         (ipa_reference_get_not_read_global): Update.
29336         (ipa_reference_get_not_written_global): Update.
29337         (is_proper_for_analysis): Outlaw addressable.
29338         (propagate_bits): Update for new datastructures.
29339         (analyze_variable): Remove.
29340         (init_function_info): Update for new datastructures.
29341         (clean_function_local_data): Remove.
29342         (clean_function): Remove.
29343         (copy_global_bitmap): Use optimizations_summary_obstack.
29344         (duplicate_node_data): Duplicate optimization summary only.
29345         (remove_node_data): Remove optimization summary only.
29346         (generate_summary): Do not analyze variables; do not compute
29347         module_statics_escape; do not prune solutions by it.
29348         (read_write_all_from_decl): Fix typos in comments.
29349         (propagate): Doscover readonly and nonaddressable first;
29350         update for new datastructures; share global bitmaps.
29351         * ipa-reference.h (ipa_reference_get_read_global,
29352         ipa_reference_get_written_global): Remove.
29353         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
29354         * Makefile.in: Remove ipa-refereference from GT files.
29355
29356 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
29357
29358         PR debug/44112
29359         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
29360         for all SYMBOL_REF_DECLs.
29361
29362 2010-05-14  Jan Hubicka  <jh@suse.cz>
29363
29364         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
29365         (varpool_all_refs_explicit_p): New inline function.
29366         * ipa-reference.c: Update comment.
29367         (module_statics_written): Remove.
29368         (get_static_decl): Remove.
29369         (ipa_init): Do not initialize module_statics_written.
29370         (analyze_function): Likewise.
29371         (generate_summary): Likewise; do not compute module_statics_readonly
29372         and do not update variable flags.
29373         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
29374         * ipa.c: Inlucde flags.h
29375         (cgraph_local_node_p): New.
29376         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
29377         promote functions to local.
29378         (ipa_discover_readonly_nonaddressable_vars): New function.
29379         (function_and_variable_visibility): Use cgraph_local_node_p.
29380         * varpool.c (varpool_finalize_decl): Set force_output for
29381         DECL_PRESERVE_P vars.
29382
29383 2010-05-14  Jan Hubicka  <jh@suse.cz>
29384
29385         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
29386
29387 2010-05-14  Richard Guenther  <rguenther@suse.de>
29388
29389         PR tree-optimization/44119
29390         * tree-ssa-pre.c (eliminate): Properly mark replacement of
29391         a PHI node necessary.
29392
29393 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
29394
29395         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
29396
29397 2010-05-14  Jason Merrill  <jason@redhat.com>
29398
29399         PR c++/44127
29400         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
29401         (gimple_call_set_nothrow): New.
29402         * gimple.c (gimple_build_call_from_tree): Call it.
29403         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
29404
29405         PR c++/44127
29406         * gimplify.c (gimplify_seq_add_stmt): No longer static.
29407         * gimple.h: Declare it.
29408         * gimple.c (gimple_build_eh_filter): No ops.
29409
29410 2010-05-14  Jan Hubicka  <jh@suse.cz>
29411
29412         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
29413         nodes already in queue.
29414         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
29415         re-enqueueing node.
29416
29417 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
29418
29419         PR debug/44136
29420         * cfgexpand.c (expand_debug_expr): If non-memory op0
29421         has BLKmode, return NULL.
29422
29423 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
29424
29425         * config.gcc: Add support for --with-cpu option for bdver1.
29426         * config/i386/i386.h (TARGET_BDVER1): New macro.
29427         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
29428         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29429         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
29430         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29431         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
29432         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
29433         (processor_type): Add PROCESSOR_BDVER1.
29434         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
29435         processor_type in config/i386/i386.h.
29436         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
29437         movaps <reg, reg> instead of movapd <reg, reg> when replacing
29438         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
29439         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
29440         to emit packed xor instead of packed double/packed integer
29441         xor for SSE and AVX when moving a zero value.
29442         * config/i386/sse.md: Add check for
29443         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
29444         movapd/movdqa for SSE and AVX.
29445         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
29446         single logical operations i.e and, or and xor instead of packed double
29447         logical operations for SSE and AVX.
29448         * config/i386/i386-c.c (ix86_target_macros_internal):
29449         Add PROCESSOR_BDVER1.
29450         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
29451         (has_fma4, has_xop): New.
29452         * config/i386/i386.c (bdver1_cost): New variable.
29453         (m_BDVER1): New macro.
29454         (m_AMD_MULTIPLE): Add m_BDVER1.
29455         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
29456         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
29457         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
29458         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
29459         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
29460         x86_tune_sse_partial_reg_dependency,
29461         x86_tune_sse_unaligned_load_optimal,
29462         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
29463         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
29464         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
29465         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
29466         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
29467         Enable/disable for bdver1.
29468         (processor_target_table): Add bdver1_cost.
29469         (cpu_names): Add bdver1.
29470         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
29471          processor_alias_table.
29472         (ix86_expand_vector_move_misalign): Change.
29473         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
29474         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
29475         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
29476         of movupd/movdqu for SSE and AVX.
29477         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
29478         (ix86_tune_adjust_cost): Add code for bdver1.
29479         (standard_sse_constant_opcode): Add check for
29480         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
29481         of packed double xor for SSE and AVX.
29482
29483 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
29484
29485         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
29486         result to unsigned.
29487
29488 2010-05-14  Tristan Gingold  <gingold@adacore.com>
29489
29490         * toplev.c (default_debug_hooks): Remove this variable.
29491         (process_options): Remove assignments to default_debug_hooks.
29492
29493 2010-05-14  Martin Jambor  <mjambor@suse.cz>
29494
29495         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
29496         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
29497         * langhooks.h (struct lang_hooks_for_decls): Removed field
29498         fold_obj_type_ref.
29499         * tree.c (free_lang_data): Remove assignment to
29500         lang_hooks.fold_obj_type_ref.
29501         * tree.def (OBJ_TYPE_REF): Update comment.
29502
29503 2010-05-14  Richard Guenther  <rguenther@suse.de>
29504
29505         PR tree-optimization/44124
29506         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
29507
29508 2010-05-14  Alan Modra  <amodra@gmail.com>
29509
29510         PR target/44075
29511         * config/rs6000/rs6000.c (struct machine_function): Reorder
29512         fields for better packing.  Add lr_save_state.
29513         (rs6000_ra_ever_killed): Return lr_save_state if set.
29514         (rs6000_emit_eh_reg_restore): Set lr_save_state.
29515
29516 2010-05-13  Jan Hubicka  <jh@suse.cz>
29517
29518         * varpool.c (decide_is_variable_needed): Drop code checking
29519         TREE_SYMBOL_REFERENCED.
29520
29521 2010-05-13  Jan Hubicka  <jh@suse.cz>
29522
29523         * final.c (output_addr_const): Do not call mark_decl_referenced.
29524         * cgraphunit.c (process_function_and_variable_attributes): Use
29525         mark_needed_node dirrectly.
29526         (assemble_thunk): Do not call mark_decl_referenced.
29527
29528 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
29529
29530         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
29531
29532 2010-05-13  Jeff Law  <law@redhat.com>
29533
29534         * ira-conflicts.c (print_allocno_conflicts): New function broken out
29535         from...
29536         (print_conflicts): Call print_allocno_conflicts.
29537
29538 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
29539
29540         PR debug/44104
29541         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
29542         if it is NULL.
29543
29544 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
29545
29546         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
29547         t-mingw-w64 or t-mingw-w32 for multilib configuration.
29548         * config/i386/t-mingw-w32: New.
29549         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
29550
29551 2010-05-13  Martin Jambor  <mjambor@suse.cz>
29552
29553         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
29554         gimple-fold.c).
29555         * gimple-fold.c (get_base_binfo_for_type): New function.
29556         (gimple_get_relevant_ref_binfo): Likewise.
29557         (gimple_fold_obj_type_ref_known_binfo): Likewise.
29558         (gimple_fold_obj_type_ref): Likewise.
29559         (fold_gimple_call): Simplify condition for folding virtual calls
29560         and call gimple_fold_obj_type_ref.
29561         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
29562         (gimple_fold_obj_type_ref_known_binfo): Likewise.
29563
29564 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
29565
29566         * config/rs6000/rs6000-protos.h
29567         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
29568         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
29569         (rs6000_debug_mode_dependent_address)
29570         (rs6000_mode_dependent_address_ptr): Likewise.
29571
29572 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
29573
29574         PR debug/43983
29575         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
29576         by SRA.
29577         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
29578         * tree-sra.c (create_access_replacement): Call unshare_expr before
29579         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
29580         * dwarf2out.c: Include tree-flow.h.
29581         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
29582         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
29583         Handle DW_OP_bit_piece.
29584         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
29585         construct_piece_list, adjust_piece_list): New functions.
29586         (add_var_loc_to_decl): Handle SRA optimized variables.
29587         Adjust for var_loc_note to loc field renaming.
29588         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
29589         in VAR_LOCATION note.
29590         (new_loc_descr_op_bit_piece): New function.
29591         (dw_sra_loc_expr): New function.
29592         (dw_loc_list): Use it.  Don't handle the last range after the
29593         loop, handle it inside of the loop.  Adjust for var_loc_note
29594         to loc field renaming.
29595         (add_location_or_const_value_attribute): Only special case
29596         single entry loc lists if loc is NOTE_P.  Adjust for
29597         var_loc_note to loc field renaming.
29598         (dwarf2out_var_location): Don't set newloc->var_loc_note
29599         and newloc->next here.
29600
29601 2010-05-12  Jan Hubicka  <jh@suse.cz>
29602
29603         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
29604         flag.
29605         * cgraph.h (cgraph_only_called_directly_p,
29606         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
29607         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
29608         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
29609         (assemble
29610         * ipa.c (cgraph_remove_unreachable_nodes): Use
29611         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
29612         flags.
29613         * tree-inline.c (copy_bb): Check address_taken flag.
29614         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
29615         externally_visible flag.
29616
29617 2010-05-12  Jason Merrill  <jason@redhat.com>
29618
29619         PR bootstrap/44048
29620         PR target/44099
29621         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
29622         * sdbout.c (plain_type_1): Likewise.
29623         * dwarf2out.c (is_base_type): Likewise.
29624         (gen_type_die_with_usage): Likewise.  Generate
29625         DW_TAG_unspecified_type for any LANG_TYPE.
29626
29627 2010-05-12  Jan Hubicka  <jh@suse.cz>
29628
29629         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
29630         indrect edges too.
29631         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
29632         (cgraph_clone_edge): Update.
29633         (cgraph_node_remove_callees): Remove indirect calls too.
29634         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
29635         (cgraph_create_indirect_edge): Update prototype.
29636         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
29637         is_proper_for_analysis.
29638         (add_new_function, visited_nodes, function_insertion_hook_holder,
29639         get_local_reference_vars_info, mark_address_taken, mark_address,
29640         mark_load, mark_store, check_asm_memory_clobber, check_call,
29641         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
29642         (ipa_init): Do not initialize visited_nodes;
29643         function_insertion_hook_holder.
29644         (analyze_variable): Rewrite.
29645         (analyze_function): Rewrite.
29646         (copy_local_bitmap): Remove.
29647         (duplicate_node_dat): Do not duplicate local info.
29648         (generate_summary): Simplify to only walk cgraph.
29649         (write_node_summary_p, ipa_reference_write_summary,
29650         ipa_reference_read_summary): Remove.
29651         (propagate): Do not remove function insertion;
29652         generate summary.
29653         (pass_ipa_reference): NULLify summary handling fields.
29654         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
29655         (input_edge): Input ecf_flags.
29656         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
29657         (update_indirect_edges_after_inlining): Ignore edges with unknown
29658         param.
29659
29660 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
29661
29662         * implicit-zee.c: New file.
29663         * tree-pass.h (pass_implicit_zee): Declare.
29664         * passes.c (init_optimization_passes): Add zee pass.
29665         * common.opt (fzee): New flag.
29666         * timevar.def (TV_ZEE): Define.
29667         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
29668         and beyond.
29669         * Makefile.in (implicit-zee.o): Add new build file.
29670
29671 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29672             Nathan Froyd  <froydnj@codesourcery.com>
29673
29674         * c-common.c (sync_resolve_params): Remove write-only variable.
29675
29676 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
29677
29678         * target.h (struct gcc_target): Add mode_dependent_address_p field.
29679         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
29680         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
29681         * targhooks.c (default_mode_dependent_address_p): New function.
29682         * targhooks.h (default_mode_dependent_address_p): Declare function.
29683         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
29684         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
29685         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
29686         target hook. Change return type to bool.
29687         * recog.h (mode_dependent_address_p): Change return type to bool.
29688
29689 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29690             Nathan Froyd  <froydnj@codesourcery.com>
29691
29692         * tree-mudflap.c (build_function_type_0, build_function_type_1,
29693         build_function_type_2, build_function_type_3): Remove.
29694         (mudflap_init): Use build_function_type_list.
29695
29696 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29697             Nathan Froyd  <froydnj@codesourcery.com>
29698
29699         * coverage.c (build_fn_info_value): Call build_constructor instead of
29700         build_constructor_from_list.
29701         (build_ctr_info_value): Likewise.
29702         (build_gcov_info): Likewise.
29703
29704 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
29705
29706         * tree.c (build_constructor): Compute TREE_CONSTANT for the
29707         resultant constructor.
29708         (build_constructor_single): Don't set TREE_CONSTANT.
29709         (build_constructor_from_list): Don't compute TREE_CONSTANT.
29710
29711 2010-05-12  Jan Hubicka  <jh@suse.cz>
29712
29713         * cgraph.h (struct varpool_node): Add aux.
29714         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
29715         * varpool.c (varpool_remove_node): Do not remove initializer.
29716         (varpool_reset_queue): Export.
29717         (varpool_finalize_decl): Volatile vars are forced to be output.
29718         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
29719         replaced decl.
29720         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
29721         process_references, varpool_can_remove_if_no_refs): New functions.
29722         (cgraph_remove_unreachable_nodes): Handle variables too.
29723
29724 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
29725
29726         PR target/44088
29727         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
29728
29729 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
29730
29731         PR middle-end/44085
29732         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
29733         change value of ORT_TASK.
29734         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
29735         (omp_notice_threadprivate_variable): New function.
29736         (omp_notice_variable): Call it for threadprivate variables.
29737         If enclosing ctx is a task, print enclosing task rather than
29738         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
29739         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
29740         if task has untied clause.
29741
29742         PR debug/42278
29743         * dwarf2out.c (base_type_die): Don't add name attribute here.
29744         (modified_type_die): Instead of sizetype use
29745         its underlying original type.  If a DW_TAG_base_type doesn't
29746         have name added, add __unknown__.
29747         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
29748         always call force_type_die instead.
29749
29750 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
29751
29752         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
29753         for __stack_chk_guard.
29754
29755 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29756
29757         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
29758         don't call start_source_file debug hook here...
29759         (finish_options): ... but here, after outputting predefined and
29760         command line defines and undefs.
29761
29762         PR middle-end/44071
29763         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
29764         no fallthru edge.
29765         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
29766         optimizing away empty bb with no successors, move over its
29767         footer chain to fallthru predecessor.
29768         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
29769         (rtl_split_edge): For asm goto call patch_jump_insn even if
29770         splitting fallthru edge.
29771
29772         PR c++/44059
29773         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
29774         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
29775         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
29776         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
29777         on DW.ref.* decls.
29778
29779         PR c++/44062
29780         * c-parser.c (c_parser_expression): Mark LHS of a comma
29781         expression as read if it is a decl, handled component or
29782         COMPOUND_EXPR with that on the RHS.
29783         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
29784         if it is a decl or handled component.
29785
29786 2010-05-11  Jan Hubicka  <jh@suse.cz>
29787
29788         * lto-symtab.c (lto_symtab_free): New function.
29789         * lto-streamer.h (lto_symtab_free): Declare.
29790
29791 2010-05-11  Jan Hubicka  <jh@suse.cz>
29792
29793         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
29794         that if function is needed it is reachable.
29795         (lto_output_node): See if it the function is reachable or referenced.
29796         (output_cgraph): Update call of lto_output_node.
29797         * lto-streamer.h (reachable_from_other_partition_p): Declare.
29798
29799 2010-05-11  Jan Hubicka  <jh@suse.cz>
29800
29801         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
29802         Mark as used.
29803
29804 2010-05-11  Jan Hubicka  <jh@suse.cz>
29805
29806         PR tree-optimize/44063
29807         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
29808         queue.
29809         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
29810         limits.
29811         (estimate_function_body_sizes): Compute sizes even when disregarding.
29812
29813 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
29814
29815         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
29816
29817 2010-05-11  Jan Hubicka  <jh@suse.cz>
29818
29819         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
29820         into every boundary.
29821
29822 2010-05-11  Jan Hubicka  <jh@suse.cz>
29823
29824         * matrix-reorg.c (matrix_reorg): Rebuild edges.
29825
29826 2010-05-11  Jan Hubicka  <jh@suse.cz>
29827
29828         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
29829         lto_streamer_cache_delete): Put nodes into heap.
29830         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
29831         heap.
29832
29833 2010-05-11  Jan Hubicka  <jh@suse.cz>
29834
29835         * cgraphbuild.c (cgraph_rebuild_references): New.
29836         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
29837         out extern inlines.
29838         * cgraph.h (cgraph_rebuild_references): Declare.
29839         * tree-inline.c (tree_function_versioning): Use it.
29840         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
29841
29842 2010-05-11  Jan Hubicka  <jh@suse.cz>
29843
29844         * cgraph.c: Include ipa-utils.h
29845         (cgraph_create_virtual_clone): Update references.
29846         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
29847
29848 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29849
29850         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
29851         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
29852         cache size.
29853
29854 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29855
29856         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
29857
29858 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29859
29860         * gcc.c (execute): For -### don't quote arguments that
29861         contain just alphanumerics and _/-. characters.
29862         * doc/invoke.texi: Document that change for -###.
29863
29864         PR debug/44023
29865         * df-problems.c (struct dead_debug): Add to_rescan field.
29866         (dead_debug_init): Clear to_rescan field.
29867         (dead_debug_finish): Rescan all debug insns in to_rescan
29868         bitmap and free the bitmap.
29869         (dead_debug_insert_before): Instead of rescanning debug insns
29870         immediately queue their rescanning until dead_debug_finish.
29871         (df_note_bb_compute): After dead_debug_add do continue instead
29872         of break.
29873
29874 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
29875
29876         PR debug/44028
29877         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
29878         clear also INSN_REG_USE_LIST.
29879
29880 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29881
29882         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
29883
29884 2010-05-10  Jan Hubicka  <jh@suse.cz>
29885
29886         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
29887         commited change.
29888
29889 2010-05-10  Jan Hubicka  <jh@suse.cz>
29890
29891         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
29892         Allocate encoders.
29893         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
29894         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
29895         (lto_streamer_cache_create): Init alloc pool.
29896         (lto_streamer_cache_delete): Free alloc pool.
29897         * lto-streamer.h: Include alloc pool.
29898         (lto_streamer_cache_d): Use alloc pool.
29899         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
29900
29901 2010-05-10  Jan Hubicka  <jh@suse.cz>
29902
29903         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
29904         * cgraphbuild.c: Include except.h
29905         (record_type_list, record_eh_tables): New function.
29906         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
29907
29908 2010-05-10  Jan Hubicka  <jh@suse.cz>
29909
29910         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
29911         __frame_dummy_init_array_entry, force_to_data): Attribute as used
29912         rather than unused.
29913
29914 2010-05-10  Michael Matz  <matz@suse.de>
29915
29916         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
29917         (can_reassociate_p): Use FLOAT_TYPE_P.
29918         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
29919         (vect_force_simple_reduction): ... this.
29920         * tree-parloops.c (gather_scalar_reductions): Use
29921         vect_force_simple_reduction.
29922         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
29923         vect_is_simple_reduction, add modify argument, if true rewrite
29924         "a-b" into "a+(-b)".
29925         (vect_is_simple_reduction, vect_force_simple_reduction): New
29926         functions.
29927         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
29928
29929 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
29930             Vladimir Makarov  <vmakarov@redhat.com>
29931
29932         PR rtl-optimization/44012
29933         * ira-build.c (remove_unnecessary_allocnos): Nullify
29934         regno_allocno_map of the removed allocno.
29935
29936 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29937
29938         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
29939         to /dev/null.
29940         * configure: Regenerate.
29941
29942 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29943
29944         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
29945         unused.
29946         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
29947         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
29948         support in Sun ld.
29949         * configure: Regenerate.
29950
29951 2010-05-10  Richard Guenther  <rguenther@suse.de>
29952
29953         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
29954         marked if the entry identifier is marked.
29955
29956 2010-05-10  Richard Guenther  <rguenther@suse.de>
29957
29958         * c-common.c (struct c_common_attributes): Add fnspec attribute.
29959         (handle_fnspec_attribute): New function.
29960         * gimple.h (gimple_call_return_flags): Declare.
29961         (gimple_call_arg_flags): Likewise.
29962         * gimple.c (gimple_call_arg_flags): New function.
29963         (gimple_call_return_flags): Likewise.
29964         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
29965         New argument flags.
29966         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
29967         return value flags.
29968         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
29969         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
29970         main work to ...
29971         (make_heapvar_for): ... this new function.
29972         (handle_rhs_call): Handle fnspec attribute argument specifiers.
29973         (handle_lhs_call): Likewise.
29974         (find_func_aliases): Adjust.
29975
29976 2010-05-10  Richard Guenther  <rguenther@suse.de>
29977
29978         PR tree-optimization/44050
29979         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
29980
29981 2010-05-10  Wei Guozhi  <carrot@google.com>
29982
29983         PR target/42879
29984         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
29985
29986 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29987
29988         PR c/10676
29989         * c-typeck.c (lookup_field): Take a type directly.  Update
29990         recursive calls.
29991         (build_component_ref): Update call to lookup_field.
29992         (set_init_label): Use lookup_field to find initialized field.
29993         Handle returned list of fields like a sequence of designators.
29994
29995 2010-05-09  Richard Guenther  <rguenther@suse.de>
29996
29997         PR middle-end/44024
29998         * fold-const.c (tree_single_nonzero_warnv_p): Properly
29999         handle &FUNCTION_DECL.
30000
30001 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
30002
30003         PR c/4784
30004         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
30005         structures and unions recursively.
30006         (detect_field_duplicates): Move duplicate detection with a hash to
30007         detect_field_duplicates_hash.  Always use a hash if anonymous
30008         structures or unions are present.
30009         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
30010         give errors.
30011
30012 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
30013
30014         PR target/44046
30015         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
30016         detect Atom, Core 2 and Core i7.
30017
30018 2010-05-09  Richard Guenther  <rguenther@suse.de>
30019
30020         * gcc.c (store_arg): Handle temporary file deletion for
30021         joined arguments.
30022
30023 2010-05-09  Richard Guenther  <rguenther@suse.de>
30024
30025         PR middle-end/44043
30026         * ipa-inline.c (estimate_function_body_sizes): Return after
30027         disregarding inline limits.
30028
30029 2010-05-09  Richard Guenther  <rguenther@suse.de>
30030
30031         * gcc.c (store_arg): Revert last change.
30032
30033 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
30034
30035         PR middle-end/28685
30036         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
30037         (optimize_ops_list): Call it.
30038
30039 2010-05-08  Richard Guenther  <rguenther@suse.de>
30040
30041         PR tree-optimization/44030
30042         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
30043         NECESSARY flag if we propagate from a inserted expression.
30044
30045 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
30046
30047         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
30048         domain types as equal if they are both PLACEHOLDER_EXPRs.
30049
30050 2010-05-08  Richard Guenther  <rguenther@suse.de>
30051
30052         * lto-wrapper.c (run_gcc): Remove linker output from
30053         command line for LTRANS invocation.
30054
30055 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
30056
30057         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
30058         lto-macho as lto_binary_reader.
30059         * target.h (struct gcc_target): New hooks lto_start and lto_end.
30060         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
30061         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
30062         in lto_start and lto_end calls.
30063         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
30064         magic numbers.
30065         (scan_prog_file): Update is_elf_or_coff call.
30066         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
30067
30068         * collect2.c (main): Fix enum comparison.
30069
30070         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
30071         Add prototypes.
30072         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
30073         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
30074         and TARGET_ASM_LTO_END.
30075         * darwin.c: Include obstack.h and lto-streamer.h.
30076         (lto_section_names_offset, lto_section_names_obstack,
30077         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
30078         global variables.
30079         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
30080         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
30081         to a temporary file.
30082         (darwin_asm_lto_end): New function.  Restore asm_out_file.
30083         (darwin_asm_named_section): For LTO sections, replace the name with
30084         the offset of the section name in a string table, and build this
30085         table.
30086         (darwin_file_start): Initialize global vars for LTO support.
30087         (darwin_file_end): If output to asm_out_file was redirected, append it
30088         to the proper asm_out_file here.  Add the section names section.
30089
30090 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
30091
30092         * c-pragma.c (pending_weak_d, pending_weak): New.
30093         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
30094         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
30095         handle_pragma_weak): Update the uses of pending_weaks.
30096
30097 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30098
30099         PR documentation/44016
30100         * doc/standards.texi (Standards): Link to unversioned
30101         cxx0x_status.html page.
30102
30103 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
30104
30105         PR target/43708
30106         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
30107         in addition to TREE_USED, to avoid "set but unused" warnings.
30108
30109 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30110
30111         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
30112         (is_loop_prefetching_profitable): Do not insert prefetches
30113         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
30114         times the prefetch ahead distance.
30115
30116 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30117
30118         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
30119         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
30120         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
30121         the unroll_factor.
30122
30123 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30124
30125         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
30126         a diagnostic info when the insn-to-mem ratio is too small.
30127
30128 2010-05-07  Richard Guenther  <rguenther@suse.de>
30129
30130         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
30131         the linker plugin.
30132         (store_arg): Queue temp_filename for deletion instead of
30133         the whole argument.
30134
30135 2010-05-07  Richard Guenther  <rguenther@suse.de>
30136
30137         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
30138         (run_gcc): Handle LTRANS phase invocation.
30139         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
30140
30141 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
30142
30143         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
30144         this is also meaningful on PARM_DECLs and RESULT_DECLs.
30145
30146 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30147
30148         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
30149
30150 2010-05-07  Richard Guenther  <rguenther@suse.de>
30151
30152         PR tree-optimization/44020
30153         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
30154         code when PRE is not yet initialized.
30155
30156 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30157
30158         * config/mips/dbxmdebug.h: Remove.
30159         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
30160
30161 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
30162
30163         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
30164         with null pointer and also warn about ordered comparison of zero with
30165         pointer if -Wextra.
30166
30167 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
30168
30169         * graphite-blocking.c
30170         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
30171         * graphite-clast-to-gimple.c
30172         (clast_to_gcc_expression): Same.
30173         (precision_for_value): Same.
30174         (precision_for_interval): Same.
30175         (gcc_type_for_interval): Same.
30176         (graphite_create_new_guard): Same.
30177         (compute_bounds_for_level): Same.
30178         (graphite_create_new_loop_guard): Same.
30179         * graphite-interchange.c
30180         (build_linearized_memory_access): Same.
30181         (pdr_stride_in_loop): Same.
30182         (memory_strides_in_loop_1): Same.
30183         (memory_strides_in_loop): Same.
30184         (extend_scattering): Same.
30185         (psct_scattering_dim_for_loop_depth): Same.
30186         (pbb_number_of_iterations): Same.
30187         * graphite-poly.h
30188         (debug_iteration_domains): Same.
30189         * graphite-ppl.c
30190         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
30191         (ppl_set_inhomogeneous_gmp): Same.
30192         (ppl_strip_loop): Same.
30193         (ppl_lexico_compare_linear_expressions): Same.
30194         (ppl_read_polyhedron_matrix): Same.
30195         (ppl_max_for_le_pointset): Same.
30196         * graphite-ppl.h
30197         (ppl_read_polyhedron_matrix): Same.
30198         (tree_int_to_gmp): Same.
30199         (gmp_cst_to_tree): Same.
30200         (ppl_set_inhomogeneous): Same.
30201         (ppl_set_inhomogeneous_tree): Same.
30202         (ppl_set_coef): Same.
30203         (ppl_set_coef_tree): Same.
30204         * graphite-sese-to-poly.c
30205         (build_pbb_scattering_polyhedrons): Same.
30206         (build_scop_scattering): Same.
30207         (scan_tree_for_params_right_scev): Same.
30208         (scan_tree_for_params): Same.
30209         (find_params_in_bb): Same.
30210         (find_scop_parameters): Same.
30211         (add_upper_bounds_from_estimated_nit): Same.
30212         (build_loop_iteration_domains): Same.
30213         (add_condition_to_domain): Same.
30214         (pdr_add_memory_accesses): Same.
30215
30216 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
30217
30218         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
30219         CLooG's value_* macros to their respective mpz_* counterparts.
30220         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
30221         (graphite_create_new_loop_guard): Same.
30222         * graphite-interchange.c (build_linearized_memory_access): Same.
30223         (pdr_stride_in_loop): Same.
30224         (memory_strides_in_loop_1): Same.
30225         (1st_interchange_profitable_p): Same.
30226         * graphite-poly.c (extend_scattering): Same.
30227         (psct_scattering_dim_for_loop_depth): Same.
30228         (pbb_number_of_iterations): Same.
30229         (pbb_number_of_iterations_at_time): Same.
30230         * graphite-poly.h (new_1st_loop): Same.
30231         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
30232         (oppose_constraint): Same.
30233         (insert_constraint_into_matrix): Same.
30234         (ppl_set_inhomogeneous_gmp): Same.
30235         (ppl_set_coef_gmp): Same.
30236         (ppl_strip_loop): Same.
30237         (ppl_lexico_compare_linear_expressions): Same.
30238         (ppl_max_for_le_pointset): Same.
30239         (ppl_min_for_le_pointset): Same.
30240         (ppl_build_realtion): Same.
30241         * graphite-ppl.h (gmp_cst_to_tree): Same.
30242         (ppl_set_inhomogeneous): Same.
30243         (ppl_set_inhomogeneous_tree): Same.
30244         (ppl_set_coef): Same.
30245         (ppl_set_coef_tree): Same.
30246         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30247         (build_scop_scattering): Same.
30248         (add_value_to_dim): Same.
30249         (scan_tree_for_params_right_scev): Same.
30250         (scan_tree_for_params_int): Same.
30251         (scan_tree_for_params): Same.
30252         (find_params_in_bb): Same.
30253         (find_scop_parameters): Same.
30254         (add_upper_bounds_from_estimated_nit): Same.
30255         (build_loop_iteration_domains): Same.
30256         (create_linear_expr_from_tree): Same.
30257         (add_condition_to_domain): Same.
30258         (pdr_add_memory_accesses): Same.
30259
30260 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
30261             Jason Merrill  <jason@redhat.com>
30262
30263         * c-common.c (c_common_reswords): Add nullptr.
30264         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
30265         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
30266         (gen_type_die_with_usage): Likewise.
30267         * dbxout.c (dbxout_type): Likewise.
30268         * sdbout.c (plain_type_1): Likewise.
30269
30270 2010-05-06  Jason Merrill  <jason@redhat.com>
30271
30272         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
30273         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
30274         ret appropriately.
30275         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
30276
30277         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
30278         stripping WITH_SIZE_EXPR.
30279         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
30280         change.
30281
30282 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30283
30284         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
30285         list of obsolete configurations.
30286         Disabled check for obsolete configurations.
30287         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
30288         Removed support for previous versions.
30289         * config/mips/iris.h: Removed.
30290         * config/mips/iris5.h: Removed.
30291         * config/mips/iris6.h: Merged old iris.h contents.
30292         (TARGET_IRIX): Removed.
30293         (DRIVER_SELF_SPECS): Removed mabi=32.
30294         (IDENT_ASM_OP): Removed undef.
30295         (STARTFILE_SPEC): Removed mabi=32.
30296         (ENDFILE_SPEC): Likewise.
30297         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
30298         (MACHINE_TYPE): Update for IRIX 6.5.
30299         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
30300         TARGET_IRIX by TARGET_IRIX6.
30301         (mips_file_start): Likewise.
30302         (mips_output_external): Remove IRIX 5/6 O32 support.
30303         (mips_output_function_prologue): Likewise.
30304         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
30305         TARGET_IRIX6.
30306         (TARGET_CPU_CPP_BUILTINS): Likewise.
30307         (TARGET_IRIX): Removed.
30308         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
30309         (MULTILIB_DIRNAMES): Removed 32.
30310         (MULTILIB_OSDIRNAMES): Removed ../lib.
30311         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
30312         (Specific, mips-sgi-irix5): Document removal.
30313         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
30314         Remove references to older IRIX 6 releases and the O32 ABI.
30315
30316 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
30317
30318         PR bootstrap/43994
30319         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
30320         instead of DF_REF_REAL_REG.
30321
30322 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
30323
30324         PR target/43888
30325         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
30326         handling to still return true for x64 targets.
30327
30328 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
30329
30330         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
30331
30332 2010-05-06  Jan Hubicka  <jh@suse.cz>
30333
30334         PR tree-optimization/43791
30335         * ipa-inline.c (update_caller_keys): Remove bogus
30336         disregard_inline_limits check.
30337
30338 2010-05-06  Michael Matz  <matz@suse.de>
30339
30340         PR tree-optimization/43984
30341         * tree-ssa-pre.c (inserted_phi_names): Remove.
30342         (inserted_exprs): Change to bitmap.
30343         (create_expression_by_pieces): Set bits, don't append to vector.
30344         (insert_into_preds_of_block): Don't handle inserted_phi_names.
30345         (eliminate): Don't look at inserted_phi_names, remove deleted
30346         insns from inserted_exprs.
30347         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
30348         (init_pre, fini_pre): Allocate and free bitmaps.
30349         (execute_pre): Insert insns on edges before elimination.
30350
30351 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
30352
30353         * tree.c (initializer_zerop): Handle STRING_CST.
30354
30355 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30356
30357         PR 40989
30358         * doc/invoke.texi (Wimplicit): Document as C only.
30359         * opts.c (common_handle_option): Add argument kind.
30360         (handle_option): Rename as read_cmdline_option. Factor out code to...
30361         (handle_option): ... here. New.
30362         (handle_options): Rename as read_cmdline_options.
30363         (decode_options): Update call.
30364         (set_option): Use option index instead of option pointer. Classify
30365         diagnostics correctly.
30366         (enable_warning_as_error): Call handle_option.
30367         * opts.h (set_option): Update declaration.
30368         (handle_option): Declare.
30369         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
30370         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
30371         * c-opts.c (set_Wimplicit): Delete.
30372         (c_family_lang_mask): New static constant.
30373         (c_common_handle_option): Add argument kind. Use handle_option
30374         instead of set_Wimplicit.
30375         (c_common_post_options): warn_implicit and warn_implicit_int
30376         are disabled by default.
30377         * c-common.c (warn_implicit): Do not define here.
30378         * c-common.h (warn_implicit): Do not declare here.
30379         (c_common_handle_option): Update declaration.
30380         * lto-opts.c (lto_reissue_options): Update call to set_option.
30381
30382 2010-05-06  Richard Guenther  <rguenther@suse.de>
30383
30384         PR tree-optimization/43571
30385         * domwalk.c (walk_dominator_tree): Walk the dominator
30386         sons in more optimal order.
30387
30388 2010-05-06  Richard Guenther  <rguenther@suse.de>
30389
30390         PR tree-optimization/43934
30391         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
30392         (stmt_cost): Likewise.
30393         (extract_true_false_args_from_phi): New helper.
30394         (determine_max_movement): For PHI nodes verify we can hoist them
30395         and compute their cost.
30396         (determine_invariantness_stmt): Handle PHI nodes.
30397         (move_computations_stmt): Likewise.  Hoist PHI nodes in
30398         if-converted form using COND_EXPRs.
30399         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
30400         (tree_ssa_lim): Likewise.
30401         * tree-flow.h (tree_ssa_lim): Adjust prototype.
30402         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
30403
30404 2010-05-06  Richard Guenther  <rguenther@suse.de>
30405
30406         PR tree-optimization/43987
30407         * tree-ssa-structalias.c (could_have_pointers): For possibly
30408         address-taken variables force pointers to be recorded.
30409         (create_variable_info_for_1): Likewise.
30410         (push_fields_onto_fieldstack): Pass in wheter all fields
30411         must have pointers.
30412         (find_func_aliases): Query types instead of vars whether
30413         they contain pointers where appropriate.
30414
30415 2010-05-06  Jan Hubicka  <jh@suse.cz>
30416
30417         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
30418         (record_reference, mark_address, mark_load, mark_store): Record
30419         references.
30420         (record_references_in_initializer): Update call of record_references.
30421         (rebuild_cgraph_edges): Remove all references before rebuiding.
30422         * cgraph.c (cgraph_create_node): Clear ref list.
30423         (cgraph_remove_node): Remove references.
30424         (dump_cgraph_node): Dump references.
30425         (cgraph_clone_node): Clone references.
30426         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
30427         (struct cgraph_node, varpool_node): Add ref_lst.
30428         * ipa-ref.c: New file.
30429         * ipa-ref.h: New file.
30430         * ipa-ref-inline.h: New file.
30431         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
30432         (referenced_from_other_partition_p): New function.
30433         (lto_output_varpool_node): Take set arugment; call
30434         referenced_from_other_partition.
30435         (lto_output_ref): New.
30436         (add_references): New.
30437         (output_refs): New.
30438         (output_cgraph): Compute boundary based on references; output refs.
30439         (output_varpool): Accept cgraph_node_set argument.
30440         (input_ref): New.
30441         (input_refs): New.
30442         (input_cgraph): Call input_refs.
30443         * lto-section-in.c (lto_section_name): Add refs.
30444         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
30445         (ipa-ref.o): New file.
30446         * varpool.c (varpool_node): Clear ipa ref list.
30447         (varpool_remove_node): Remove references.
30448         (dump_varpool_node): Dump references.
30449         (varpool_assemble_decl): Only compile finalized ones.
30450         (varpool_extra_name_alias): Initialize ref list.
30451         * lto-streamer.c (lto-get_section_name): Add .refs section.
30452         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
30453         (referenced_from_other_partition_p): Declared.
30454
30455 2010-05-06  Ira Rosen  <irar@il.ibm.com>
30456
30457         PR tree-optimization/43901
30458         * tree-vect-stmts.c (vectorizable_call): Assert that vector
30459         type is not NULL if it's transformation phase, and return
30460         FALSE if it's analysis.
30461         (vectorizable_conversion, vectorizable_operation,
30462         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
30463
30464 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30465
30466         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
30467         Delete.
30468         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
30469         New define.
30470         * config/mips/mips-protos.h
30471         (mips_small_register_classes_for_mode_p): Delete prototype.
30472
30473 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
30474
30475         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
30476         * config/arm/arm.c (multiple_operation_profitable_p,
30477         compute_offset_order): New static functions.
30478         (load_multiple_sequence, store_multiple_sequence): Use them.
30479         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
30480         memory offsets, not register numbers.
30481         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
30482
30483 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
30484
30485         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
30486         (get_pending_sizes, put_pending_size, put_pending_sizes):
30487         Update the uses of pending_sizes.
30488         * c-decl.c (store_parm_decls): Likewise.
30489         * c-tree.h (struct c_arg_info): Likewise.
30490         * tree.h: Update the prototype for get_pending_sizes and
30491         put_pending_sizes.
30492
30493 2010-05-05  Jason Merrill  <jason@redhat.com>
30494
30495         PR debug/43370
30496         * c-common.c (handle_aligned_attribute): Respect
30497         ATTR_FLAG_TYPE_IN_PLACE.
30498
30499         PR testsuite/43758
30500         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
30501         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
30502         (TARGET_INITIALIZER): Use it.
30503         * c-common.c (attribute_takes_identifier_p): Call it.
30504         * c-common.h: Update prototype.
30505         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
30506         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
30507
30508 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
30509
30510         PR debug/43950
30511         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
30512         DW_ID_down_case for Fortran compilation units.
30513
30514 2010-05-05  Jan Hubicka  <jh@suse.cz>
30515
30516         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
30517         handle aliases.
30518
30519 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
30520
30521         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
30522         a variable-sized RESULT_DECL.
30523
30524 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
30525
30526         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
30527
30528 2010-05-05  Jason Merrill  <jason@redhat.com>
30529
30530         PR c++/43787
30531         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
30532         returns GS_OK.
30533         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
30534
30535 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
30536             Jakub Jelinek  <jakub@redhat.com>
30537
30538         PR debug/43478
30539         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
30540         (dead_debug_init, dead_debug_finish): New functions.
30541         (dead_debug_add, dead_debug_insert_before): Likewise.
30542         (df_note_bb_compute): Initialize a dead_debug object, add dead
30543         debug uses to it, insert debug bind insns before death insns,
30544         reset debug insns that refer to pending uses at the end.
30545         * rtl.h (make_debug_expr_from_rtl): New prototype.
30546         * varasm.c (make_debug_expr_from_rtl): New function.
30547
30548 2010-05-05  Jan Hubicka  <jh@suse.cz>
30549
30550         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
30551         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
30552         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
30553         lto_varpool_encoder_deref, lto_varpool_encoder_size,
30554         lto_varpool_encoder_encode_initializer_p,
30555         lto_set_varpool_encoder_encode_initializer): New functions.
30556         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
30557         call output_varpool.
30558         (input_varpool_node): Do not always set analyzed.
30559         (input_cgraph_1): Return vector of cgraph nodes.
30560         (input_varpool_1): Return vector of varpools.
30561         (input_cgraph): Free the vectors.
30562         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
30563         output only initializers needed.
30564         (lto_output): Only call output_cgraph.
30565         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
30566         * lto-section-out.c (lto_new_out_decl_state): Initialize
30567         state->varpool_node_encoder.
30568         * lto-streamer.h (lto_varpool_encoder_d): New.
30569         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
30570         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
30571         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
30572         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
30573         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
30574         Declare.
30575         (output_varpool, input_varpool): Remove declarations.
30576
30577 2010-05-05  Jan Hubicka  <jh@suse.cz>
30578
30579         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
30580         with body can prevail.
30581
30582 2010-05-05  Jan Hubicka  <jh@suse.cz>
30583
30584         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
30585         size.
30586
30587 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30588
30589         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
30590
30591         * gengtype.h (erro_at_line): Constify pos argument.
30592
30593         * gengtype.c: Include hashtab.h.
30594         (enum gc_used): Document GC_MAYBE_POINTED_TO.
30595         (error_at_line): Constify pos argument.
30596         (do_typedef): Initialize p->opt field.
30597         (get_file_gtfilename): Fix comment typo.
30598         (struct walk_type_data): Constify line field.
30599         (get_output_file_for_structure): New function.
30600         (write_local_func_for_structure): Constify orig_s argument.
30601         Use get_output_file_for_structure.
30602         (write_func_for_structure): Use get_output_file_for_structure.
30603         (INDENT): New define.
30604         (dump_pair, dump_type, dump_type_list, dump_typekind)
30605         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
30606         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
30607         functions.
30608         (seen_types): New variable.
30609         (main): New variable do_dump.  Process "-d" command line option.
30610         Call dump_everything if dump requested.
30611
30612 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
30613
30614         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
30615         in a temporary instead of invoking the macro multiple times.
30616         (track_expr_p): Likewise.
30617
30618 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
30619
30620         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
30621         per new semantics.
30622         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
30623         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
30624         conditions for printing notes.
30625         * common.opt (-Wcoverage-mismatch): Allow negative, default to
30626         true, update documentation.
30627         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
30628
30629 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
30630
30631         PR c/43981
30632         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
30633         on dimen.
30634
30635 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
30636
30637         PR target/43799
30638         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
30639         (*sse_prologue_save_insn1): Likewise.
30640         (SSE prologue save splitter): Likewise.
30641
30642 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
30643
30644         * tree.c (free_lang_data_in_one_sizepos): New inline function.
30645         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
30646         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
30647         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
30648         all decls.  Call it on DECL_FIELD_OFFSET of fields.
30649         (find_decls_types_r): Follow DECL_VALUE_EXPR.
30650         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
30651
30652 2010-05-04  Martin Jambor  <mjambor@suse.cz>
30653
30654         * tree-sra.c (build_access_from_expr_1): The first parameter type
30655         changed to simple tree.
30656         (build_access_from_expr): Likewise, gsi parameter was eliminated.
30657         (scan_assign_result): Renamed to assignment_mod_result, enum elements
30658         renamed as well.
30659         (build_accesses_from_assign): Removed all parameters except for a
30660         simple gimple statement.  Now returns a simple bool.
30661         (scan_function): All non-analysis parts moved to separate functions
30662         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
30663         parameters and updated both callers.
30664         (sra_modify_expr): Removed parameter data.
30665         (sra_modify_function_body): New function.
30666         (perform_intra_sra): Call sra_modify_function_body to modify the
30667         function body.
30668         (replace_removed_params_ssa_names): Parameter data changed into
30669         adjustments vector.
30670         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
30671         changed the parameter dont_convert to convert with the opposite
30672         meaning.
30673         (sra_ipa_modify_assign): Parameter data changed into adjustments
30674         vector, return value changed to bool.
30675         (ipa_sra_modify_function_body): New function.
30676         (sra_ipa_reset_debug_stmts): Updated a comment.
30677         (modify_function): Use ipa_sra_modify_function_body to modify function
30678         body.
30679
30680 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
30681
30682         PR middle-end/43671
30683         * alias.c (true_dependence): Handle the same VALUE in x and mem.
30684         (canon_true_dependence): Likewise.
30685         (write_dependence_p): Likewise.
30686
30687 2010-05-04  Jan Hubicka  <jh@suse.cz>
30688
30689         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
30690         * cgraphbuild.c: Include ipa-utils.h
30691         (record_reference_ctx): New struct.
30692         (record_reference): Simplify to work on initializers; not statements.
30693         (mark_address, mark_load, mark_store): New.
30694         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
30695         walk PHI nodes too.
30696         (record_references_in_initializer): Update use of record_reference.
30697         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
30698         walk PHI nodes too.
30699
30700 2010-05-04  Jan Hubicka  <jh@suse.cz>
30701
30702         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
30703         node will be removed anyway.
30704         (lto_varpool_replace_node): Allow also unanalyzed nodes;
30705         relink aliases of node into prevailing node.
30706         * varpool.c (varpool_remove_node): Remove aliases properly;
30707         when removing node, remove all its aliases too; remove DECL_INITIAL
30708         of removed node; ggc_free the varpool node.
30709
30710 2010-05-04  Richard Guenther  <rguenther@suse.de>
30711
30712         PR tree-optimization/43879
30713         * tree-ssa-structalias.c (alias_get_name): Use
30714         DECL_ASSEMBLER_NAME if available.
30715         (create_function_info_for): Return the varinfo node.
30716         (ipa_pta_execute): Associate same-body aliases and extra names
30717         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
30718
30719 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30720
30721         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
30722
30723 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
30724
30725         PR bootstrap/43964
30726         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
30727         only if HONOR_REG_ALLOC_ORDER is not defined.
30728
30729 2010-05-04  Richard Guenther  <rguenther@suse.de>
30730
30731         PR tree-optimization/43949
30732         * tree-vrp.c (extract_range_from_binary_expr): Only handle
30733         TRUNC_MOD_EXPR.
30734
30735 2010-04-26  Jason Merrill  <jason@redhat.com>
30736
30737         * c.opt (-fstrict-enums): New.
30738         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
30739
30740 2010-05-03  David Ung  <davidu@mips.com>
30741             James E. Wilson  <wilson@codesourcery.com>
30742
30743         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
30744         emit the trap instruction before the divide for TUNE_74K.
30745
30746 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
30747
30748         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
30749         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
30750         based on the above, for new target hook.
30751
30752         * hooks.c (hook_bool_mode_true): New generic hook.
30753         * hooks.h (hook_bool_mode_true): Add prototype.
30754
30755         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
30756         target hook.
30757         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
30758         target hook, set to hook_bool_mode_false.
30759         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
30760         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
30761         with targetm.small_register_classes_for_mode_p.
30762         (find_reusable_reload): Likewise.
30763         (combine_reloads): Likewise.
30764         * reload1.c (reload_as_needed): Likewise.
30765         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
30766         * ifcvt.c (noce_process_if_block, check_cond_move_block,
30767         dead_or_predicable): Likewise.
30768         * regmove.c (optimize_reg_copy_1): Likewise.
30769         * calls.c (prepare_call_address): Likewise.
30770         (precompute_register_parameters): Likewise.
30771
30772         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
30773         hook definition.
30774         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
30775         implementation of the hook that considers all register classes
30776         small except for SH64.
30777         (sh_override_options): Use the new hook.
30778         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
30779         Add prototype.
30780
30781         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
30782         hook definition.
30783         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
30784         implementation of the hook that considers all register classes
30785         small for THUMB1.
30786         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
30787         Add prototype.
30788
30789         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
30790         hook definition.
30791         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
30792         implementation of the hook that considers all register classes
30793         small for MIPS16.
30794         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
30795         Add prototype.
30796
30797         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
30798         hook definition.
30799         * config/m32c/m32c.h: Likewise.
30800         * config/pdp11/pdp11.h: Likewise.
30801         * config/avr/avr.h: Likewise.
30802         * config/xtensa/xtensa.h: Likewise.
30803         * config/m68hc11/m68hc11.h: Likewise.
30804         * config/mn10300/mn10300.h: Likewise.
30805         * config/mcore/mcore.h: Likewise.
30806         * config/h8300/h8300.h: Likewise.
30807         * config/bfin/bfin.h: Likewise.
30808
30809         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
30810         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
30811
30812 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
30813
30814         * double-int.h (tree_to_double_int): Remove macro.
30815         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
30816         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30817         (tree_to_double_int): New function.
30818         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
30819         Move ...
30820         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30821
30822 2010-05-03  Richard Guenther  <rguenther@suse.de>
30823
30824         PR tree-optimization/43971
30825         * tree-ssa-structalias.c (get_constraint_for_1): Fix
30826         constraints in the !flag_delete_null_pointer_checks case.
30827
30828 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
30829
30830         PR debug/43972
30831         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
30832         result mode matches original rtl mode.
30833
30834 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
30835
30836         PR target/43888
30837         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
30838
30839 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30840
30841         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
30842         when processing flag options.
30843
30844 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30845
30846         * gcov-iov.c (main): Change format string placeholder
30847         from %#08x to 0x%08x.
30848         * genchecksum.c (dosum): Change format string placeholder
30849         from %#02x to 0x%02x.
30850
30851 2010-05-02  Richard Guenther  <rguenther@suse.de>
30852
30853         PR tree-optimization/43879
30854         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
30855
30856 2010-05-02  Bruno Haible  <bruno@clisp.org>
30857
30858         * doc/extend.texi (Function Attributes): Fix a typo.
30859
30860 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30861
30862         Revert:
30863         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
30864         placeholder from 0x%x to %#x.
30865         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30866         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30867         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30868         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30869         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30870         * config/i386/i386.c (ix86_target_string): Ditto.
30871         * config/i386/i386.c (output_pic_addr_const): Ditto.
30872         (print_operand): Ditto.
30873
30874 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30875
30876         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
30877         placeholder from 0x%x to %#x.
30878         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
30879         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
30880         (ASM_OUTPUT_DEBUG_DATA): Ditto.
30881         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
30882         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
30883         * optc-gen.awk: Ditto.
30884         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
30885         (HOST_WIDE_INT_PRINT_HEX): Ditto.
30886         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
30887         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30888
30889 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30890
30891         * target.h (struct calls): Add function_value_regno_p field.
30892         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
30893         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
30894         * targhooks.c (default_function_value_regno_p): New function.
30895         * targhooks.h (default_function_value_regno_p): Declare function.
30896         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
30897         * builtins.c. (apply_result_size): (Ditto.).
30898         * combine.c. (likely_spilled_retval_p): (Ditto.).
30899         * mode-switching.c. Include 'target.h'.
30900         (create_pre_exit): Use function_value_regno_p hook.
30901         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
30902         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
30903         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
30904
30905         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
30906         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
30907         (ix86_function_value_regno_p): Declare as static, change argument
30908         type to const unsigned int.
30909         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
30910
30911 2010-05-01  Richard Guenther  <rguenther@suse.de>
30912
30913         PR tree-optimization/43949
30914         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
30915         types.
30916         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
30917
30918 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30919
30920         * rtl.h (CONST_DOUBLE_P): Define.
30921         (rtx_to_double_int): Declare.
30922         * emit-rtl.c (rtx_to_double_int): New function.
30923         * dwarf2out.c (insert_double): New function.
30924         (loc_descriptor, add_const_value_attribute): Clean up, use
30925         rtx_to_double_int and insert_double functions.
30926
30927 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
30928
30929         * doc/extend.texi (Inline): Add missing return keyword to examples.
30930         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
30931         "command-line".
30932
30933 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
30934
30935         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
30936         the variable part of the offset as well.  Use highest_pow2_factor for
30937         all alignment checks.
30938
30939 2010-04-30  Richard Guenther  <rguenther@suse.de>
30940
30941         PR tree-optimization/43879
30942         * tree-ssa-structalias.c (type_could_have_pointers): Functions
30943         can have pointers.
30944
30945 2010-04-30  Jan Hubicka  <jh@suse.cz>
30946
30947         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
30948         varpool.
30949         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
30950
30951 2010-04-30  Jan Hubicka  <jh@suse.cz>
30952
30953         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
30954         New.
30955         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
30956         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
30957         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
30958         cgraph_node_set_needs_ltrans_p): Remove.
30959
30960 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30961
30962         * sdbout.c: Include vec.h, do not include varray.h.
30963         (deferred_global_decls, sdbout_global_decl,
30964         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
30965         * toplev.c: Do not include varray.h.
30966         (dump_memory_report): Do not dump VARRAY statistics.
30967         * gengtype.c (open_base_file): Ignore varray.h.
30968         * Makefile.in: Update for abovementioned changes.
30969         Remove all traces of varray.c and varray.h.
30970         * varray.c: Remove file.
30971         * varray.h: Remove file.
30972
30973 2010-04-30  Jan Hubicka  <jh@suse.cz>
30974
30975         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
30976         references.
30977
30978 2010-04-30  Jan Hubicka  <jh@suse.cz>
30979
30980         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
30981         needed.
30982
30983 2010-04-30  Richard Guenther  <rguenther@suse.de>
30984
30985         * tree-ssa-structalias.c (get_constraint_for_1): Generate
30986         constraints for CONSTRUCTOR.
30987
30988 2010-04-30  Richard Guenther  <rguenther@suse.de>
30989
30990         PR lto/43946
30991         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
30992         first after all lowering passes.
30993
30994 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30995
30996         * toplev.c: Include varray.h for statistics dumping.
30997         * tree.h: Do not declare varray_head_tag.
30998         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
30999         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
31000         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
31001         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
31002         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
31003         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
31004         c-common.c, c-common.h, reg-stack.c, basic-block.h,
31005         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
31006         include varray.h.
31007         * Makefile.in: Update for abovementioned changes.
31008
31009 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
31010
31011         PR debug/43942
31012         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
31013
31014 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
31015
31016         * config/picochip/picochip.c (picochip_legitimize_address): Define.
31017         Use this function to do machine-specific conversion.
31018         (picochip_legitimize_reload_address): Likewise.
31019         (picochip_legitimate_address_p): Check valid base register only if
31020         strict.
31021         (picochip_check_conditional_copy): Check for modw only if opnd is
31022         register.
31023         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
31024         to call the function in c.
31025         * config/picochip/picochip-protos.h
31026         (picochip_legitimize_reload_address): Define.
31027         * config/picochip/picochip.md (supported_compare1): Define.
31028
31029 2010-04-30  Jan Hubicka  <jh@suse.cz>
31030
31031         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
31032         (cgraph_global_info): Remove inlined.
31033         (LTO_cgraph_tag_names): Remove.
31034         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
31035         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
31036         simplify cgraph tags and document.
31037         (lto_output_node): Use only LTO_cgraph_unavail_node and
31038         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
31039         for_functions_valid, global info, process and output flags.
31040         (input_overwrite_node): Initialize estimated stack size and
31041         estimated growth.  Do not read flags we no longer store.
31042         (input_node): Likewise do not read info no longer stored.
31043         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
31044         flag.
31045
31046 2010-04-30  Richard Guenther  <rguenther@suse.de>
31047
31048         PR tree-optimization/43879
31049         * tree-ssa-structalias.c (get_constraint_for_1): Properly
31050         handle non-zero initializers.
31051
31052 2010-04-30  Richard Guenther  <rguenther@suse.de>
31053
31054         * builtins.c (fold_builtin_1): Delete free (0).
31055
31056 2010-04-29  Jan Hubicka  <jh@suse.cz>
31057
31058         * gengtype.c (open_base_files): Add lto-streamer.h
31059         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
31060         (pass_ipa_cp): GGC collect.
31061         * toplev. (compile_file): Do not output symbols.
31062         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
31063         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
31064         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
31065         * lto-section-in.c: Include ggc.h
31066         (lto_new_in_decl_state): Alloc in GGC.
31067         (lto_delete_in_decl_state): Likewise.
31068         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
31069         Collect.
31070
31071 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
31072
31073         PR target/42895
31074         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
31075         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
31076         (HONOR_REG_ALLOC_ORDER): Describe new macro.
31077         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
31078         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
31079         account only if HONOR_REG_ALLOC_ORDER is not defined.
31080         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
31081         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
31082
31083 2010-04-29  Jon Grant  <04@jguk.org>
31084
31085         * collect2.c (vflag): Change type from int to bool.
31086         (debug): Likewise.
31087         (helpflag): New global bool.
31088         (main): Set vflag and debug with boolean, not integer truth values.
31089         Accept new "--help" option and output usage text if found.
31090         * collect2.h (vflag): Update prototype.
31091         (debug): Likewise.
31092
31093 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
31094
31095         PR bootstrap/43936
31096         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
31097
31098 2010-04-29  Richard Guenther  <rguenther@suse.de>
31099
31100         PR bootstrap/43935
31101         * plugin.h (invoke_plugin_callbacks): Annotate arguments
31102         with ATTRIBUTE_UNUSED.
31103
31104 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
31105
31106         PR target/43921
31107         * config/i386/i386.c (get_some_local_dynamic_name): Replace
31108         INSN_P with NONDEBUG_INSN_P.
31109         (distance_non_agu_define): Likewise.
31110         (distance_agu_use): Likewise.
31111
31112 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
31113
31114         From Dominique d'Humieres  <dominiq@lps.ens.fr>
31115         PR bootstrap/43858
31116         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
31117         test_set.
31118
31119 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
31120
31121         * plugin.h (invoke_plugin_callbacks): New inline function.
31122         * plugin.c (flag_plugin_added): New global flag.
31123         (add_new_plugin): Initialize above flag.
31124         (invoke_plugin_callbacks): Rename to ...
31125         (invoke_plugin_callbacks_full): ... this.
31126
31127 2010-04-28  Jan Hubicka  <jh@suse.cz>
31128
31129         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
31130         (lto_varpool_replace_node): New.
31131         (lto_symtab_resolve_symbols): Resolve varpool nodes.
31132         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
31133         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
31134         * cgraph.h (varpool_node_ptr): New type.
31135         (varpool_node_ptr): New vector.
31136         (varpool_node_set_def): New structure.
31137         (varpool_node_set): New type.
31138         (varpool_node_set): New vector.
31139         (varpool_node_set_element_def): New structure.
31140         (varpool_node_set_element, const_varpool_node_set_element): New types.
31141         (varpool_node_set_iterator): New type.
31142         (varpool_node): Add prev pointers, add used_from_other_partition,
31143         in_other_partition.
31144         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
31145         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
31146         varpool_get_node, varpool_remove_node): Declare.
31147         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
31148         varpool_node_set_size): New inlines.
31149         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
31150         * tree-pass.h (varpool_node_set_def): Forward declare.
31151         (ipa_opt_pass_d): Summary writting takes vnode sets too.
31152         (ipa_write_optimization_summaries): Update prototype.
31153         * ipa-cp.c (ipcp_write_summary): Update.
31154         * ipa-reference.c (ipa_reference_write_summary): Update.
31155         * lto-cgraph.c (lto_output_varpool_node): New static function.
31156         (output_varpool): New function.
31157         (input_varpool_node): New static function.
31158         (input_varpool_1): New function.
31159         (input_cgraph): Input varpool.
31160         * ipa-pure-const.c (pure_const_write_summary): Update.
31161         * lto-streamer-out.c (lto_output): Update, output varpool too.
31162         (write_global_stream): Kill WPA hack.
31163         (produce_asm_for_decls): Update.
31164         (output_alias_pair_p): Handle variables.
31165         (output_unreferenced_globals): Output only needed partition of varpool.
31166         * ipa-inline.c (inline_write_summary): Update.
31167         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
31168         cgraph.
31169         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
31170         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
31171         varpool_node_set_new, varpool_node_set_add,
31172         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
31173         debug_varpool_node_set): New functions.
31174         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
31175         (execute_one_pass): Process new decls too.
31176         (ipa_write_summaries_2): Pass around vsets.
31177         (ipa_write_summaries_1): Likewise.
31178         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
31179         to add.
31180         (ipa_write_optimization_summaries_1): Pass around vsets.
31181         (ipa_write_optimization_summaries): Likewise.
31182         * varpool.c (varpool_get_node): New.
31183         (varpool_node): Update doubly linked lists.
31184         (varpool_remove_node): New.
31185         (dump_varpool_node): More dumping.
31186         (varpool_enqueue_needed_node): Update doubly linked lists.
31187         (decide_is_variable_needed): Kill ltrans hack.
31188         (varpool_finalize_decl): Kill lto hack.
31189         (varpool_assemble_decl): Skip decls in other partitions.
31190         (varpool_assemble_pending_decls): Update doubly linkes lists.
31191         (varpool_empty_needed_queue): Likewise.
31192         (varpool_extra_name_alias): Likewise.
31193         * lto-streamer.c (lto_get_section_name): Add vars section.
31194         * lto-streamer.h (lto_section_type): Update.
31195         (output_varpool, input_varpool): Declare.
31196
31197 2010-04-28  Mike Stump  <mikestump@comcast.net>
31198
31199         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
31200
31201 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31202
31203         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
31204         record or union type with RECORD_OR_UNION_TYPE_P predicate.
31205         (lto_input_ts_type_tree_pointers): Likewise.
31206         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
31207         (lto_output_ts_type_tree_pointers): Likewise.
31208
31209 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31210
31211         Uniquization of constants at the Tree level
31212         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
31213         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
31214         bit to the end.
31215         (tree_output_constant_def): Declare.
31216         * gimplify.c (gimplify_init_constructor): When using block copy, first
31217         uniquize the constant constructor on the RHS.
31218         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
31219         DECL_IN_CONSTANT_POOL flag.
31220         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
31221         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
31222         constant pool.
31223         (assemble_variable): Deal with symbols belonging to the tree constant
31224         pool.
31225         (get_constant_section): Add ALIGN parameter and simplify.
31226         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
31227         (assemble_constant_contents): Use the expression of the VAR_DECL.
31228         (output_constant_def_contents): Use the alignment of the VAR_DECL.
31229         (tree_output_constant_def): New global function.
31230         (mark_constant): Use the expression of the VAR_DECL.
31231         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
31232         its expression.
31233         (output_object_block): Likewise and assemble the expression.
31234
31235 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31236
31237         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
31238         hash_tree, eq_tree): New tree hash table.
31239         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
31240         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
31241         lto_orig_address_remove): Reimplement.
31242
31243 2010-04-28  Xinliang David Li  <davidxl@google.com>
31244
31245         PR c/42643
31246         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
31247         (compute_uninit_opnds_pos): New function.
31248         (is_non_loop_exit_postdominating): New function.
31249         (compute_control_dep_chain): New function.
31250         (find_pdom): New function.
31251         (convert_control_dep_chain_into_preds): New function.
31252         (find_predicates): New function.
31253         (find_control_equiv_block): New function.
31254         (collect_phi_def_edges): New function.
31255         (find_def_preds): New function.
31256         (find_dom): New function.
31257         (dump_predicates): New function.
31258         (get_cmp_code): New function.
31259         (is_value_included_in): New function.
31260         (find_matching_predicate_in_rest_chains): New function.
31261         (use_pred_not_overlap_with_undef_path_pred): New function.
31262         (is_use_properly_guarded): New function.
31263         (normalize_cond_1): New function.
31264         (is_and_or_or): New function.
31265         (normalize_cond): New function.
31266         (is_gcond_subset_of): New function.
31267         (is_subset_of_any): New function.
31268         (is_or_set_subset_of): New function.
31269         (is_and_set_subset_of): New function.
31270         (is_norm_cond_subset_of): New function.
31271         (is_pred_expr_subset_of): New function.
31272         (is_pred_chain_subset_of): New function.
31273         (is_included_in): New function.
31274         (is_superset_of): New function.
31275         (find_uninit_use): New function.
31276         (warn_uninitialized_phi): New function.
31277         (compute_possibly_undefined_names): New function.
31278         (ssa_undefined_value_p): New function.
31279         (execute_late_warn_uninitialized): New function.
31280         * tree-ssa.c (ssa_undefined_value_p): Removed.
31281         (warn_uninit): Changed to extern.
31282         (warn_uninitialized_phi): Removed.
31283         (warn_uninitialized_vars): Changed to extern.
31284         (execute_late_warn_uninitialized): Removed
31285         * tree-flow.h: Add new prototypes.
31286         * timevar.def: Add new time variable.
31287         * Makefile.in: Add new build file.
31288
31289 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
31290
31291         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
31292         type if available.
31293
31294 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31295
31296         PR target/22224
31297         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
31298
31299 2010-04-28  Martin Jambor  <mjambor@suse.cz>
31300
31301         * cgraph.h (struct cgraph_node): New field indirect_calls.
31302         (struct cgraph_indirect_call_info): New type.
31303         (struct cgraph_edge): Removed field indirect_call. New fields
31304         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
31305         (cgraph_create_indirect_edge): Declare.
31306         (cgraph_make_edge_direct): Likewise.
31307         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
31308         * ipa-prop.h (struct ipa_param_call_note): Removed.
31309         (struct ipa_node_params): Removed field param_calls.
31310         (ipa_create_all_structures_for_iinln): Declare.
31311         * cgraph.c: Described indirect edges and uids in initial comment.
31312         (cgraph_add_edge_to_call_site_hash): New function.
31313         (cgraph_edge): Search also among the indirect edges, use
31314         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
31315         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
31316         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
31317         site hash.
31318         (initialize_inline_failed): Assign a reason to indirect edges.
31319         (cgraph_create_edge_1): New function.
31320         (cgraph_create_edge): Moved some functionality to
31321         cgraph_create_edge_1.
31322         (cgraph_create_indirect_edge): New function.
31323         (cgraph_edge_remove_callee): Add an assert checking for
31324         non-indirectness.
31325         (cgraph_edge_remove_caller): Special-case indirect edges.
31326         (cgraph_remove_edge): Likewise.
31327         (cgraph_set_edge_callee): New function.
31328         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
31329         (cgraph_make_edge_direct): New function.
31330         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
31331         the declaration of the call statement matches.
31332         (cgraph_node_remove_callees): Special-case indirect edges.
31333         (cgraph_clone_edge): Likewise.
31334         (cgraph_clone_node): Clone also the indirect edges.
31335         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
31336         indirect_call, dump count of indirect_calls edges.
31337         * ipa-prop.c (iinlining_processed_edges): New variable.
31338         (ipa_note_param_call): Create indirect edges instead of
31339         creating notes.  New parameter node.
31340         (ipa_analyze_call_uses): New parameter node, pass it on to
31341         ipa_note_param_call.
31342         (ipa_analyze_stmt_uses): Likewise.
31343         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
31344         (print_edge_addition_message): Work on edges rather than on notes.
31345         (update_call_notes_after_inlining): Likewise, renamed to
31346         update_indirect_edges_after_inlining.
31347         (ipa_create_all_structures_for_iinln): New function.
31348         (ipa_free_node_params_substructures): Do not free notes.
31349         (ipa_edge_duplication_hook): Propagate bits within
31350         iinlining_processed_edges bitmap.
31351         (ipa_node_duplication_hook): Do not duplicate notes.
31352         (free_all_ipa_structures_after_ipa_cp): Renamed to
31353         ipa_free_all_structures_after_ipa_cp.
31354         (free_all_ipa_structures_after_iinln): Renamed to
31355         ipa_free_all_structures_after_iinln.
31356         (ipa_write_param_call_note): Removed.
31357         (ipa_read_param_call_note): Removed.
31358         (ipa_write_indirect_edge_info): New function.
31359         (ipa_read_indirect_edge_info): Likewise.
31360         (ipa_write_node_info): Do not stream notes, do stream information
31361         in indirect edges.
31362         (ipa_read_node_info): Likewise.
31363         (lto_ipa_fixup_call_notes): Removed.
31364         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
31365         * ipa-inline.c (pass_ipa_inline): Likewise.
31366         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
31367         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
31368         * tree-inline.c (copy_bb): Removed an unnecessary double check for
31369         is_gimple_call.
31370         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
31371         edges.
31372         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
31373         (output_cgraph): Stream also indirect edges.
31374         (lto_output_edge): Added capability to stream indirect edges.
31375         (input_edge): Likewise.
31376         (input_cgraph_1): Likewise.
31377         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
31378         of indirect edges.
31379
31380 2010-04-28  Richard Guenther  <rguenther@suse.de>
31381
31382         PR tree-optimization/43879
31383         PR tree-optimization/43909
31384         * tree-ssa-structalias.c (struct variable_info): Add
31385         only_restrict_pointers flag.
31386         (new_var_info): Initialize it.  Increment stats.total_vars here.
31387         (create_function_info_for): Do not increment stats.total_vars here.
31388         (get_function_part_constraint): Fix build with C++.
31389         (insert_into_field_list): Remove.
31390         (push_fields_onto_fieldstack): Properly merge fields.
31391         (create_variable_info_for): Split and simplify.
31392         (create_variable_info_for_1): New piece.
31393         (intra_create_variable_infos): Properly make restrict constraints
31394         from parameters.
31395
31396 2010-04-28  Richard Guenther  <rguenther@suse.de>
31397
31398         PR c++/43880
31399         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
31400
31401 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31402             Jan Hubicka  <hubicka@ucw.cz>
31403
31404         * doc/invoke.texi (-Wsuggest-attribute=const,
31405         -Wsuggest-attribute=pure): Document.
31406         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
31407         (function_always_visible_to_compiler_p,
31408         suggest_attribute, warn_function_pure, warn_function_const):
31409         New functions.
31410         (check_call): Improve debug info.
31411         (analyze_function): Do not check availability.
31412         (add_new_function): Check availability.
31413         (propagate): Output warnings.
31414         (skip_function_for_local_pure_const): New function.
31415         (local_pure_const): Use it; output warnings.
31416         * common.opt (Wsuggest-attribute=const,
31417         Wsuggest-attribute=pure): New.
31418
31419 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
31420
31421         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
31422         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
31423         or DW_CFA_def_cfa_offset{,_sf}.
31424
31425 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31426
31427         * tree.h: Fix truncated long macros.
31428
31429 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
31430
31431         * collect2.c (TARGET_64BIT): Redefine to target's default.
31432         * tlink.c: Likewise.
31433         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
31434         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
31435         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
31436         for underscoring __USER_LABEL_PREFIX__.
31437         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
31438         (SUB_LINK_ENTRY32): New.
31439         (SUB_LINK_ENTRY64): New.
31440         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
31441         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
31442         (SUB_LINK_ENTRY64): New.
31443         (SUB_LINK_ENTRY): New.
31444         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
31445         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
31446         x64 target is choosen.
31447         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
31448         * configure: Regenerated.
31449         * configure.ac (leading-mingw64-underscores): Option added.
31450
31451 2010-04-27  Jan Hubicka  <jh@suse.cz>
31452
31453         * doc/invoke.texi (-fipa-profile): Document.
31454         * opts.c (decode_options): Enable ipa-profile at -O1.
31455         * timevar.def (TV_IPA_PROFILE): Define.
31456         * common.opt (fipa-profile): Add.
31457         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
31458         flag for clones.
31459         (cgraph_propagate_frequency): Handle only local ones.
31460         * tree-pass.h (pass_ipa_profile): Declare.
31461         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
31462         (pass_ipa_profile): Use TV_IPA_PROFILE.
31463         * ipa.c (ipa_profile): New function.
31464         (gate_ipa_profile): Likewise.
31465         (pass_ipa_profile): New global variable.
31466         * passes.c (pass_ipa_profile): New.
31467
31468 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
31469
31470         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
31471
31472 2010-04-27  Martin Jambor  <mjambor@suse.cz>
31473
31474         PR middle-end/43812
31475         * ipa.c (dissolve_same_comdat_group_list): New function.
31476         (function_and_variable_visibility): Call
31477         dissolve_same_comdat_group_list when comdat group contains external or
31478         newly local nodes.
31479         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
31480         lists are circular and that they contain only DECL_ONE_ONLY nodes.
31481
31482 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31483
31484         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
31485         (const_hash_1) <VECTOR_CST>: New case.
31486         (compare_constant) <VECTOR_CST>: Likewise.
31487         <ADDR_EXPR>: Deal with LABEL_REFs.
31488         (copy_constant) <VECTOR_CST>: New case.
31489
31490 2010-04-27  Jan Hubicka  <jh@suse.cz>
31491
31492         * cgraph.c (cgraph_propagate_frequency): New function.
31493         * cgraph.h (cgraph_propagate_frequency): Declare.
31494         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
31495         cgraph_propagate_frequency.
31496
31497 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
31498
31499         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
31500
31501 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
31502
31503         PR target/40657
31504         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
31505         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
31506         here to determine which regs to push and how much stack to reserve.
31507
31508 2010-04-27  Jie Zhang  <jie@codesourcery.com>
31509
31510         * doc/gimple.texi (gimple_statement_with_ops): Remove
31511         addresses_taken field.
31512         (gimple_statement_with_memory_ops): Likewise.
31513
31514 2010-04-27  Jan Hubicka  <jh@suse.cz>
31515
31516         * tree-inline.c (eni_inlining_weights): Remove.
31517         (estimate_num_insns): Special case more builtins.
31518
31519 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
31520
31521         PR c/32207
31522         * c-typeck.c (build_binary_op): Move forward check for comparison
31523         pointer with null pointer constant and adjust the diagnostic message.
31524
31525 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
31526
31527         PR lto/42776
31528         * configure.ac (gcc_cv_as_section_has_align): Set if installed
31529         binutils supports extended .section directive needed by LTO, or
31530         warn if older binutils found.
31531         (LTO_BINARY_READER): New AC_SUBST'd variable.
31532         (LTO_USE_LIBELF): Likewise.
31533         * config.gcc (lto_binary_reader): New target-specific configure
31534         variable.
31535         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
31536         (LTO_USE_LIBELF): Likewise.
31537         * configure: Regenerate.
31538
31539         * collect2.c (is_elf): Rename from this ...
31540         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
31541          object files in addition to ELF-formatted ones.
31542         (scan_prog_file): Caller updated.  Also allow for LTO info marker
31543         symbol to be prefixed or not by an extra underscore.
31544
31545         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
31546         * config/i386/winnt.c: Also #include lto-streamer.h
31547         (i386_pe_asm_named_section): Specify 1-byte section alignment for
31548         LTO named sections.
31549         (i386_pe_asm_output_aligned_decl_common): Add comment.
31550         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
31551
31552 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
31553
31554         PR target/43889
31555         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
31556         Add missing earlyclobber for second alternative.
31557
31558 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
31559
31560         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
31561         bits for artificial defs at the top of the block.
31562         * fwprop.c (single_def_use_enter_block): Don't call it.
31563
31564 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
31565
31566         PR 43715
31567         * configure.ac: Use "$gcc_cv_nm -g" on darwin
31568         instead of "$gcc_cv_objdump -T".
31569         Use "-undefined dynamic_lookup" on darwin.
31570         * configure: Regenerate.
31571
31572 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
31573
31574         PR c/43893
31575         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
31576
31577 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
31578
31579         * c-parser.c (struct c_token): Move location field up.
31580         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
31581         (struct c_declspecs): Convert typespec_word, storage_class, and
31582         default_int_p into bitfields.
31583         (struct c_declarator): Move loc field up.
31584
31585 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
31586
31587         * cfgloop.h (struct loop): Move can_be_parallel field up.
31588         * ipa-prop.h (struct ip_node_params): Move bitfields up.
31589         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
31590         down.
31591         (struct iv_cand): Convert pos field into a bitfield.
31592         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
31593         field up.
31594         (struct _stmt_vec_info): Shuffle fields for better packing.
31595
31596 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
31597
31598         * varasm.c (IN_NAMED_SECTION): Remove guard.
31599         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
31600         (IN_NAMED_SECTION_P): ...this.
31601         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
31602         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
31603
31604 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
31605
31606         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
31607         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
31608         of shadowing it.  Fix comments.
31609
31610 2010-04-26  Jan Hubicka  <jh@suse.cz>
31611
31612         * cgraph.c (cgraph_create_node): Set node frequency to normal.
31613         (cgraph_clone_node): Copy function frequency.
31614         * cgraph.h (node_frequency): New enum
31615         (struct cgraph_node): Add.
31616         * final.c (rest_of_clean_state): Update.
31617         * lto-cgraph.c (lto_output_node): Output node frequency.
31618         (input_overwrite_node): Input node frequency.
31619         * tre-ssa-loop-ivopts (computation_cost): Update.
31620         * lto-streamer-out.c (output_function): Do not output function
31621         frequency.
31622         * predict.c (maybe_hot_frequency_p): Update and handle functions
31623         executed once.
31624         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
31625         attribute lookup.
31626         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
31627         (compute_function_frequency): Set noreturn functions to be executed
31628         once.
31629         (choose_function_section): Update.
31630         * lto-streamer-in.c (input_function): Do not input function frequency.
31631         * function.c (allocate_struct_function): Do not initialize function
31632         frequency.
31633         * function.h (function_frequency): Remove.
31634         (struct function): Remove function frequency.
31635         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
31636         (try_update): Update.
31637         * tree-inline.c (initialize_cfun): Do not update function frequency.
31638         * passes.c (pass_init_dump_file): Update.
31639         * i386.c (ix86_compute_frame_layout): Update.
31640         (ix86_pad_returns): Update.
31641
31642 2010-04-26  Jie Zhang  <jie@codesourcery.com>
31643
31644         PR tree-optimization/43833
31645         * tree-vrp.c (range_int_cst_p): New.
31646         (range_int_cst_singleton_p): New.
31647         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
31648         when both operands are constants.  Use range_int_cst_p in
31649         BIT_IOR_EXPR case.
31650
31651 2010-04-26  Jan Hubicka  <jh@suse.cz>
31652
31653         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
31654
31655 2010-04-26  Richard Guenther  <rguenther@suse.de>
31656
31657         PR lto/43080
31658         * gimple.c (gimple_decl_printable_name): Deal gracefully
31659         with a NULL DECL_NAME.
31660
31661 2010-04-26  Richard Guenther  <rguenther@suse.de>
31662
31663         PR lto/42425
31664         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
31665         if emitting debug information and it is either a function
31666         or a namespace decl.
31667
31668 2010-04-26  Ira Rosen  <irar@il.ibm.com>
31669
31670         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
31671         determine if the statement is vectorizable, and a macro to access it.
31672         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31673         Skip statements that can't be vectorized. If the analysis fails,
31674         mark the statement as unvectorizable if vectorizing basic block.
31675         (vect_compute_data_refs_alignment): Likewise.
31676         (vect_verify_datarefs_alignment): Skip statements marked as
31677         unvectorizable. Add print.
31678         (vect_analyze_group_access): Skip statements that can't be
31679         vectorized. If the analysis fails, mark the statement as
31680         unvectorizable if vectorizing basic block.
31681         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
31682         * tree-vect-stmts.c (vectorizable_store): Fix the number of
31683         generated stmts for SLP.
31684         (new_stmt_vec_info): Initialize the new field.
31685         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
31686         statements marked as unvectorizable.
31687
31688 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
31689
31690         * c-common.c (flag_isoc1x): New.
31691         (flag_isoc99): Update comment.
31692         * c-common.h (flag_isoc1x): New.
31693         (flag_isoc99): Update comment.
31694         * c-cppbuiltin.c (builtin_define_float_constants): Also define
31695         __<type>_DECIMAL_DIG__.
31696         * c-opts.c (set_std_c1x): New.
31697         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
31698         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
31699         * c.opt (-std=c1x, -std=gnu1x): New options.
31700         * doc/cpp.texi: Mention -std=c1x.
31701         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
31702         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
31703         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
31704         * doc/standards.texi: Mention C1X.
31705         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
31706         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
31707         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
31708         Define for C1X.
31709
31710 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
31711
31712         * config/i386/gmon-sol2.c (_mcleanup): Change format string
31713         placeholder from 0x%x to %#x.
31714         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
31715         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
31716         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
31717         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
31718         * config/i386/i386.c (ix86_target_string): Ditto.
31719         (output_pic_addr_const): Ditto.
31720         (print_operand): Ditto.
31721
31722 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
31723
31724         * combine.c (find_split_point): Add third argument.  Use it
31725         to find nested multiply-accumulate instructions.  Adjust calls.
31726         (try_combine): Adjust call to find_split_point.
31727
31728 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
31729
31730         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
31731
31732 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
31733
31734         PR tree-optimization/41442
31735         * fold-const.c (merge_truthop_with_opposite_arm): New function.
31736         (fold_binary_loc): Call it.
31737
31738 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31739
31740         * toplev.c (general_init): Set default for fdiagnostics-show-option.
31741         * opts.c (common_handle_option): Allow disabling it.
31742         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
31743
31744 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
31745
31746         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
31747         between modes if both types are integral.
31748
31749 2010-04-23  Richard Guenther  <rguenther@suse.de>
31750
31751         PR tree-optimization/43572
31752         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
31753
31754 2010-04-23  Richard Guenther  <rguenther@suse.de>
31755
31756         PR lto/43455
31757         * tree-inline.c (tree_can_inline_p): Also check compatibility
31758         of return types.
31759
31760 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31761
31762         PR tree-optimization/43846
31763         * tree-sra.c (struct access): New flag grp_assignment_read.
31764         (build_accesses_from_assign): Set grp_assignment_read.
31765         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
31766         (enum mark_read_status): New type.
31767         (analyze_access_subtree): Propagate grp_assignment_read, create
31768         accesses also if both direct_read and root->grp_assignment_read.
31769
31770 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31771
31772         PR middle-end/43835
31773         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
31774         function does not have type attributes.
31775
31776 2010-04-23  Richard Guenther  <rguenther@suse.de>
31777
31778         PR lto/42653
31779         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
31780         of FUNCTION_DECLs.
31781
31782 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31783
31784         * sese.h (create_if_region_on_edge): Remove.
31785
31786         * sese.c (create_if_region_on_edge): Make static.
31787
31788         * tree-inline.c: Do not include ggc.h.
31789
31790         * expr.c: Do not include ggc.h.
31791
31792         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
31793         dependencies.
31794
31795 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
31796
31797         PR target/43744
31798         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31799         in the middle of insns for casesi_worker_2.
31800
31801 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
31802
31803         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
31804
31805 2010-04-22  Ira Rosen  <irar@il.ibm.com>
31806
31807         PR tree-optimization/43842
31808         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
31809         loop unrolling in update of exit phis. Fix comment.
31810         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
31811         least two reduction statements in the loop before starting SLP
31812         analysis.
31813
31814 2010-04-22  Nick Clifton  <nickc@redhat.com>
31815
31816         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
31817
31818 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
31819
31820         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
31821         to simplify a + ~a.
31822
31823 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31824
31825         * tree-parloops.c (loop_parallel_p): New argument
31826         parloop_obstack.  Pass it down.
31827         (parallelize_loops): New variable parloop_obstack.  Initialize it,
31828         pass it down, free it.
31829
31830         * tree-loop-linear.c (linear_transform_loops): Pass down
31831         lambda_obstack.
31832
31833         * tree-data-ref.h (lambda_compute_access_matrices): New argument
31834         of type struct obstack *.
31835
31836         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
31837         scratch_obstack.  Initialize it, pass down, free it.
31838
31839         * lambda.h (lambda_loop_new): Remove.
31840         (lambda_matrix_new, lambda_matrix_inverse)
31841         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
31842         argument of type struct obstack *.
31843
31844         * lambda-trans.c (lambda_trans_matrix_new): New argument
31845         lambda_obstack.  Pass it down, use obstack allocation for ret.
31846         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
31847         it down.
31848
31849         * lambda-mat.c (lambda_matrix_get_column)
31850         (lambda_matrix_project_to_null): Remove.
31851         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
31852         allocation for mat.
31853         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
31854         lambda_obstack.
31855
31856         * lambda-code.c (lambda_loop_new): New function.
31857         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
31858         (lambda_compute_auxillary_space, lambda_compute_target_space)
31859         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
31860         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
31861         (build_access_matrix): New argument lambda_obstack.  Use obstack
31862         allocation for am.
31863         (lambda_compute_step_signs, lambda_compute_access_matrices): New
31864         argument lambda_obstack.  Pass it down.
31865
31866 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31867
31868         * optabs.h (expand_widening_mult): Declare.
31869
31870 2010-04-22  Richard Guenther  <rguenther@suse.de>
31871
31872         PR tree-optimization/43845
31873         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
31874         lookup the CALL_EXPR function and arguments.
31875
31876 2010-04-22  Nick Clifton  <nickc@redhat.com>
31877
31878         * config/stormy16/stormy16.c
31879         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
31880         * config/stormy16/stormy16.h: Tidy up formatting.
31881         (DONT_USE_BUILTIN_SETJMP): Remove definition.
31882         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
31883         (ineqbranchsi): Delete pattern.
31884         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
31885         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
31886         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
31887         stormy16-lib2-ucmpsi2.c.
31888
31889 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31890
31891         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
31892         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
31893         extra set merge_set_noclobber, and use it to relax the final test
31894         slightly.
31895         * df.h (df_simulate_find_noclobber_defs): Declare.
31896         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
31897         conditional defs.
31898         (df_simulate_find_noclobber_defs): New function.
31899
31900 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
31901
31902         * config/i386/i386.md: Use {} around multi-line preparation statements.
31903
31904 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31905
31906         * c-tree.h (push_init_level, pop_init_level, set_init_index)
31907         (process_init_element): New argument of type struct obstack *.
31908
31909         * c-typeck.c (push_init_level, pop_init_level, set_designator)
31910         (set_init_index, set_init_label, set_nonincremental_init)
31911         (set_nonincremental_init_from_string, find_init_member)
31912         (output_init_element, output_pending_init_elements)
31913         (process_init_element): New argument braced_init_obstack.  Pass it
31914         down.
31915         (push_range_stack, add_pending_init): New argument
31916         braced_init_obstack.  Use obstack allocation.
31917
31918         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
31919         braced_init_obstack.  Pass it down.
31920         (c_parser_braced_init): New variables ret, braced_init_obstack.
31921         Initialize obstack, pass it down and finally free it.
31922
31923 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31924
31925         PR middle-end/29274
31926         * tree-pass.h (pass_optimize_widening_mul): Declare.
31927         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
31928         gate_optimize_widening_mul): New static functions.
31929         (pass_optimize_widening_mul): New.
31930         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
31931         <case MULT_EXPR>: Remove support for widening multiplies.
31932         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
31933         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
31934         simplify_gen_unary rather than directly building extensions.
31935         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
31936         WIDEN_MULT_EXPR.
31937         * expmed.c (expand_widening_mult): New function.
31938         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
31939
31940 2010-04-21  Jan Hubicka  <jh@suse.cz>
31941
31942         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
31943         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
31944         * lto-wpa-fixup.c: Remove.
31945         * Makefile.in (lto-wpa-fixup.o): Remove.
31946         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
31947         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
31948         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
31949
31950 2010-04-21  Jan Hubicka  <jh@suse.cz>
31951
31952         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
31953         add write_optimization_summary, read_optimization_summary.
31954         (ipa_write_summaries_of_cgraph_node_set): Remove.
31955         (ipa_write_optimization_summaries): Declare.
31956         (ipa_read_optimization_summaries): Declare.
31957         * ipa-cp.c (pass_ipa_cp): Update.
31958         * ipa-reference.c (pass_ipa_reference): Update.
31959         * ipa-pure-const.c (pass_ipa_pure_const): Update.
31960         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
31961         Update.
31962         * ipa-inline.c (pass_ipa_inline): Update.
31963         * ipa.c (pass_ipa_whole_program): Update.
31964         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
31965         * passes.c (ipa_write_summaries_1): Do not test wpa.
31966         (ipa_write_optimization_summaries_1): New.
31967         (ipa_write_optimization_summaries): New.
31968         (ipa_read_summaries): Do not test ltrans.
31969         (ipa_read_optimization_summaries_1): New.
31970         (ipa_read_optimization_summaries): New.
31971
31972 2010-04-21  Jan Hubicka  <jh@suse.cz>
31973
31974         * lto-cgraph.c (lto_output_node): Do not output comdat groups
31975         for boundary nodes.
31976         (output_cgraph): Do not arrange comdat groups for boundary nodes.
31977
31978 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31979
31980         PR debug/40040
31981         * dwarf2out.c (add_name_and_src_coords_attributes): Add
31982         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
31983
31984 2010-04-21  Jan Hubicka  <jh@suse.cz>
31985
31986         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
31987
31988 2010-04-21  Jan Hubicka  <jh@suse.cz>
31989
31990         * varpool.c (decide_is_variable_needed): Variable is always needed
31991         during ltrans.
31992
31993 2010-04-21  Jan Hubicka  <jh@suse.cz>
31994
31995         * opts.c (decode_options): Enable pure-const pass for whopr.
31996
31997 2010-04-21  Jan Hubicka  <jh@suse.cz>
31998
31999         * cgraph.c (dump_cgraph_node): Dump also assembler name.
32000         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
32001         at WPA dumping.
32002         (cgraph_decide_inlining): Do not expect callee to be removed in all
32003         cases.
32004
32005 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
32006
32007         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
32008
32009 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
32010
32011         * config/i386/i386.md (x86_shrd): Add athlon_decode and
32012         amdfam10_decode attributes.
32013
32014 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32015
32016         PR middle-end/43570
32017         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
32018         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
32019         (lower_copyprivate_clauses): Use private var in outer
32020         context instead of original var.  Make sure the types
32021         are correct for VLAs.
32022
32023 2010-04-21  Richard Guenther  <rguenther@suse.de>
32024
32025         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
32026         to non-pointer objects.
32027
32028 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32029
32030         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
32031         last chain entry if it starts with the still current label.
32032         (add_location_or_const_value_attribute): Check that
32033         loc_list->first->next is NULL instead of comparing ->first with ->last.
32034         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
32035         to add_var_loc_to_decl.
32036
32037         * dwarf2out.c (output_call_frame_info): For dw_cie_version
32038         >= 4 add also address size and segment size fields into CIE header.
32039
32040         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
32041         long as address size is the same as sizeof (void *) and
32042         segment size is 0.
32043         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
32044         address size or segment size is unexpected, return DW_EH_PE_omit.
32045         (classify_object_over_fdes): If get_cie_encoding returned
32046         DW_EH_PE_omit, return -1.
32047         (init_object): If classify_object_over_fdes returned -1,
32048         pretend there were no FDEs at all.
32049
32050 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
32051
32052         * config/i386/i386.md (bswap<mode>2): Macroize expander from
32053         bswap{si,di}2 using SWI48 mode iterator.
32054         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
32055         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
32056         set modrm attribute of bswap insn to 0 and remove length attribute.
32057         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
32058         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
32059         set mode attribute to <MODE> and remove length attribute.
32060
32061 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
32062
32063         PR rtl-optimization/43520
32064         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
32065         zero available registers.
32066
32067 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32068
32069         * builtins.c (fold_builtin_cproj): Fold more cases.
32070
32071 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32072
32073         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
32074         (fold_builtin_1): Fold builtin cproj.
32075         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
32076         Use ATTR_CONST_NOTHROW_LIST.
32077
32078 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
32079
32080         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
32081         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
32082         ffsi2_no_cmove for !TARGET_CMOVE.
32083         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
32084         (ffssi2): Remove expander.
32085         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
32086         mode iterator.
32087         (ctz<mode>2): Ditto from ctz{si,di}2.
32088         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
32089         mode iterator.
32090         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
32091         mode iterator.
32092
32093 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
32094
32095         * dwarf2out.c (AT_linkage_name): Define.
32096         (clone_as_declaration): Handle DW_AT_linkage_name.
32097         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
32098         of DW_AT_MIPS_linkage_name.
32099         (move_linkage_attr): Likewise.
32100         (dwarf2out_finish): Likewise.
32101
32102 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
32103
32104         PR middle-end/41952
32105         * fold-const.c (fold_comparison): New folding rule.
32106
32107 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
32108
32109         * double-int.h (double_int_setbit): Declare.
32110         * double-int.c (double_int_setbit): New function.
32111         * rtl.h (immed_double_int_const): Declare.
32112         * emit-rtl.c (immed_double_int_const): New function.
32113         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
32114         and immed_double_int_const functions.
32115         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
32116         expand_copysign_bit): (Ditto.).
32117         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
32118         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
32119         * dojump.c (prefer_and_bit_test): (Ditto.).
32120         * expr.c (convert_modes, reduce_to_bit_field_precision,
32121         const_vector_from_tree): (Ditto.).
32122         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32123
32124 2010-04-20  Jan Hubicka  <jh@suse.cz>
32125
32126         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
32127         (dump_cgraph_node): Dump new flags.
32128         * cgraph.h (struct cgraph_node): Add flags
32129         reachable_from_other_partition and in_other_partition.
32130         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
32131         other partition can not be removed.
32132         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
32133         the other partition must be output; silence sanity checking on
32134         leaking functions bodies from other paritition.
32135         * lto-cgraph.c (reachable_from_other_partition_p): New function.
32136         (lto_output_node): Output new flags; do not sanity check that inline
32137         clones are output; drop lto_forced_extern_inline_p code; do not mock
32138         visibility flags at partition boundaries.
32139         (add_node_to): New function.
32140         (output_cgraph): Use it to sort functions so masters appear before
32141         clones.
32142         (input_overwrite_node): Input new flags.
32143         * passes.c (ipa_write_summaries): Do not call
32144         lto_new_extern_inline_states.
32145         * lto-section-out.c (forced_extern_inline,
32146         lto_new_extern_inline_states lto_delete_extern_inline_states,
32147         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
32148         * lto-streamer.h (lto_new_extern_inline_states,
32149         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
32150         lto_forced_extern_inline_p): Kill.
32151
32152 2010-04-20  Richard Guenther  <rguenther@suse.de>
32153
32154         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
32155         from vars that can have pointers.
32156         (process_constraint): Dump useless constraints.
32157
32158 2010-04-20  Richard Guenther  <rguenther@suse.de>
32159
32160         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
32161         (dump_sa_points_to_info): Remove asserts.
32162         (init_base_vars): nothing_id isn't an escape point nor does it
32163         have pointers.
32164
32165 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
32166
32167         * tree.h (TYPE_REF_IS_RVALUE): Define.
32168         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
32169         should_move_die_to_comdat, prune_unused_types_walk): Handle
32170         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
32171         (modified_type_die, gen_reference_type_die): Emit
32172         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
32173         if TYPE_REF_IS_RVALUE and -gdwarf-4.
32174
32175 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32176
32177         PR target/43635
32178         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
32179         calls for -fpic -m31 if they have been sibcall optimized.
32180
32181 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
32182
32183         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
32184         ar.lc fixed and call-used.
32185
32186         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
32187
32188 2010-04-19  Jan Hubicka  <jh@suse.cz>
32189
32190         * opts.c (decode_options): Disable whpr incompatible passes.
32191         * lto/lto.c (lto_1_to_1_map): Skip clones.
32192         (read_cgraph_and_symbols): Do not mark everything as needed.
32193         (do_whole_program_analysis): Do map only after optimizing;
32194         set proper cgraph_state; use passmanager.
32195
32196 2010-04-19  DJ Delorie  <dj@redhat.com>
32197
32198         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
32199         POINTER_PLUS_EXPR and fix them.
32200
32201 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
32202
32203         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
32204         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
32205         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
32206         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
32207         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
32208         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
32209         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
32210         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
32211         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
32212         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
32213         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
32214
32215 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
32216
32217         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
32218         (check_cond_move_block): Likewise.
32219         (cond_move_process_if_block): Likewise.
32220         (noce_find_if_block): Improve formatting.
32221         (find_if_header): Pass 0 to memset and tweak conditions.
32222         (cond_exec_find_if_block): Fix long lines and tweak conditions.
32223
32224 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32225
32226         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
32227         for -gdwarf-4.
32228
32229         PR middle-end/43337
32230         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
32231         with non-local decl doesn't need chain.
32232
32233 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32234
32235         * ira-color.c (allocno_reload_assign): Avoid accumulating
32236         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
32237
32238 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32239
32240         * gimple.h (create_tmp_reg): Declare.
32241         * gimplify.c (create_tmp_reg): New function.
32242         (gimplify_return_expr): Use create_tmp_reg.
32243         (gimplify_omp_atomic): Likewise.
32244         (gimple_regimplify_operands): Likewise.
32245         * tree-dfa.c (make_rename_temp): Likewise.
32246         * tree-predcom.c (predcom_tmp_var): Likewise.
32247         (reassociate_to_the_same_stmt): Likewise.
32248         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
32249         (get_replaced_param_substitute): Likewise.
32250         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
32251         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
32252         * tree-ssa-pre.c (get_representative_for): Likewise.
32253         (create_expression_by_pieces): Likewise.
32254         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
32255         (create_tailcall_accumulator): Likewise.
32256
32257 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32258
32259         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
32260         new_stmt.
32261         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
32262
32263 2010-04-19  Richard Guenther  <rguenther@suse.de>
32264
32265         PR tree-optimization/43796
32266         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
32267         from SCEV in the lattice.
32268         (vrp_visit_phi_node): Dump change.
32269
32270 2010-04-19  Richard Guenther  <rguenther@suse.de>
32271
32272         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
32273         * configure: Re-generated.
32274
32275 2010-04-19  Richard Guenther  <rguenther@suse.de>
32276
32277         PR tree-optimization/43783
32278         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
32279         constant ARRAY_REF operands two and three if possible.
32280
32281 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
32282
32283         PR target/43766
32284         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
32285
32286 2010-04-19  Jie Zhang  <jie@codesourcery.com>
32287
32288         PR target/43662
32289         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
32290
32291 2010-04-19  Ira Rosen  <irar@il.ibm.com>
32292
32293         PR tree-optimization/37027
32294         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
32295         and macro to access it.
32296         (vectorizable_reduction): Add argument.
32297         (vect_get_slp_defs): Likewise.
32298         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
32299         statements for possible use in SLP.
32300         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
32301         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
32302         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
32303         add new argument.
32304         (vectorizable_reduction): Likewise.
32305         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
32306         vect_get_slp_defs.
32307         (vectorizable_type_demotion, vectorizable_type_promotion,
32308         vectorizable_store): Likewise.
32309         (vect_analyze_stmt): Update call to vectorizable_reduction.
32310         (vect_transform_stmt): Likewise.
32311         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
32312         (vect_build_slp_tree): Fix indentation. Check that there are no loads
32313         from different interleaving chains in same node.
32314         (vect_slp_rearrange_stmts): New function.
32315         (vect_supported_load_permutation_p): Allow load permutations for
32316         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
32317         inside SLP nodes if necessary.
32318         (vect_analyze_slp_instance): Handle reductions.
32319         (vect_analyze_slp): Try to build SLP instances originating from groups
32320         of reductions.
32321         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
32322         (vect_get_constant_vectors): Create initial vectors for reductions
32323         according to reduction code. Add new argument.
32324         (vect_get_slp_defs): Add new argument, pass it to
32325         vect_get_constant_vectors.
32326         (vect_schedule_slp_instance): Remove SLP tree root statements.
32327
32328 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32329
32330         * tree.h (ENUM_IS_SCOPED): Define.
32331         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
32332         for ENUM_IS_SCOPED enums.
32333
32334 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
32335
32336         * fold-const.c (fold_comparison): Use ssizetype.
32337         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
32338         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
32339         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
32340         * tree-object-size.c (compute_object_sizes): Use size_type_node.
32341
32342         * tree.h (initialize_sizetypes): Remove parameter.
32343         (build_common_tree_nodes): Remove second parameter.
32344         * stor-layout.c (initialize_sizetypes): Remove parameter.
32345         Always create an unsigned type.
32346         (set_sizetype): Assert that the passed type is unsigned and simplify.
32347         * tree.c (build_common_tree_nodes): Remove second parameter.
32348         Adjust call to initialize_sizetypes.
32349         * c-decl.c (c_init_decl_processing): Remove second argument in call to
32350         build_common_tree_nodes.
32351
32352 2010-04-18  Matthias Klose  <doko@ubuntu.com>
32353
32354         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
32355
32356 2010-04-18  Ira Rosen  <irar@il.ibm.com>
32357
32358         PR tree-optimization/43771
32359         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
32360         load permutation doesn't have gaps.
32361
32362 2010-04-18  Jan Hubicka  <jh@suse.cz>
32363
32364         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
32365         (sse_prologue_save_insn expander): Use new pattern.
32366         (sse_prologue_save_insn1): New pattern and splitter.
32367         (sse_prologue_save_insn): Update to deal also with 64bit aligned
32368         blocks.
32369         * i386.c (setup_incoming_varargs_64): Do not compute jump
32370         destination here.
32371         (ix86_gimplify_va_arg): Update alignment needed.
32372         (ix86_local_alignment): Do not align all local arrays to 128bit.
32373
32374 2010-04-17  Jan Hubicka  <jh@suse.cz>
32375
32376         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
32377
32378 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32379
32380         * arm.md (negdi2): Remove redundant code to force values into a
32381         register.
32382
32383 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32384
32385         * arm/bpabi.S: Add EABI alignment attributes to objects.
32386         * arm/bpabi-v6m.S: Likewise.
32387         * arm/crti.asm: Likewise.
32388         * arm/crtn.asm: Likewise.
32389         * arm/lib1funcs.asm: Likewise.
32390         * arm/libunwind.S: Likewise.
32391
32392 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32393
32394         * arm-protos.h (tune_params): New structure.
32395         * arm.c (current_tune): New variable.
32396         (arm_constant_limit): Delete.
32397         (struct processors): Add pointer to the tune parameters.
32398         (arm_slowmul_tune): New tuning option.
32399         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
32400         (all_cores): Adjust to pick up the tuning model.
32401         (arm_constant_limit): New function.
32402         (arm_override_options): Select the appropriate tuning model.  Delete
32403         initialization of arm_const_limit.
32404         (arm_split_constant): Use the new constant-limit model.
32405         (arm_rtx_costs): Pick up the current tuning model.
32406         * arm.md (is_strongarm, is_xscale): Delete.
32407         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
32408         for Xscale variant architectures.
32409         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
32410
32411 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32412
32413         * config/arm/arm.c (arm_gen_constant): Remove unused variable
32414         can_shift.
32415         (arm_rtx_costs_1): Remove unused variable extra_cost.
32416         (arm_unwind_emit_set): Use variable offset.
32417         (thumb1_output_casesi): Remove unused variable flags.
32418
32419 2010-04-16  Jeff Law  <law@redhat.com>
32420
32421         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
32422         needing assignment rather than doing a two-phase assignment.  Remove
32423         unused variable 'm'.
32424
32425 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32426
32427         PR bootstrap/43767
32428         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
32429
32430 2010-04-16  Doug Kwan  <dougkwan@google.com>
32431
32432         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
32433         (next_operand_entry_id): New static variable.
32434         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
32435         (add_to_ops_vec): Assigned unique ID to operand entry.
32436         (struct oecount_s): New field ID.
32437         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
32438         (undistribute_ops_list): Assign unique IDs to oecounts.
32439         (init_reassoc): reset next_operand_entry_id.
32440
32441 2010-04-16  Doug Kwan  <dougkwan@google.com>
32442
32443         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
32444         missing left parenthesis.
32445
32446 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
32447
32448         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
32449         *btdi_rex64 using SWI48 mode iterator.
32450         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
32451         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
32452         *jcc_btdi_mask_rex64.
32453
32454 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
32455
32456         * double-int.h (tree_to_double_int): Convert to macro.
32457         * double-int.c (tree_to_double_int): Remove.
32458
32459 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32460
32461         PR debug/43762
32462         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
32463         with want_address 2 and in case a single element list might be
32464         possible, call it again with want_address 0.
32465
32466 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32467
32468         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
32469         case 'W' print operands for HI mode.
32470         * config/h8300/h8300.h (Y0, Y2) : New constraints.
32471         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
32472         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
32473         * config/h8300/predicate.md (bit_register_indirect_operand): New.
32474
32475         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
32476
32477         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
32478         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
32479         #xx:3 and #xx:4 mode.
32480
32481         * config/h8300/h8300.md (inverted load with HImode dest): Add
32482         support for H8300SX.
32483
32484         * config/h8300/predicate.md (bit_operand): Allow immediate values that
32485         satisfy 'U' constraint.
32486
32487 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32488
32489         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
32490         * configure: Regenerate.
32491         * config.in: Regenerate.
32492         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
32493         works.
32494
32495 2010-04-16  Richard Guenther  <rguenther@suse.de>
32496
32497         * tree.h (struct tree_decl_minimal): Move pt_uid ...
32498         (struct tree_decl_common): ... here.
32499         (DECL_PT_UID): Adjust.
32500         (SET_DECL_PT_UID): Likewise.
32501         (DECL_PT_UID_SET_P): Likewise.
32502
32503 2010-04-16  Richard Guenther  <rguenther@suse.de>
32504
32505         PR tree-optimization/43572
32506         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
32507         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
32508         * tree-flow.h (is_call_clobbered): Remove.
32509         * tree-flow-inline.h (is_call_clobbered): Likewise.
32510         * tree-dfa.c (dump_variable): Do not dump call clobber state.
32511         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
32512         (execute_return_slot_opt): Adjust.
32513         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
32514         check for call clobbered vars here.
32515         (find_tail_calls): Move tailcall verification to the
32516         proper place.
32517
32518 2010-04-16  Diego Novillo  <dnovillo@google.com>
32519
32520         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
32521
32522 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
32523
32524         PR target/40603
32525         * config/arm/arm.md (cbranchqi4): New pattern.
32526         * config/arm/predicates.md (const0_operand,
32527         cbranchqi4_comparison_operator): New predicates.
32528
32529 2010-04-16  Richard Guenther  <rguenther@suse.de>
32530
32531         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
32532         (dump_gimple_stmt): Likewise.
32533
32534 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
32535
32536         * recog.h (struct recog_data): New field is_operator.
32537         (struct insn_operand_data): New field is_operator.
32538         * recog.c (extract_insn): Set recog_data.is_operator.
32539         * genoutput.c (output_operand_data): Emit code to set the
32540         is_operator field.
32541         * reload.c (find_reloads): Use it rather than testing for an
32542         empty constraint string.
32543
32544         PR target/41514
32545         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
32546         If the previous insn is a cbranchsi4_insn with the same arguments,
32547         omit the compare instruction.
32548
32549         * config/arm/arm.md (addsi3_cbranch): If destination is a high
32550         register, inputs must be low registers and we need a low register
32551         scratch.  Handle alternative 2 like alternative 3.
32552
32553 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32554
32555         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
32556         don't call get_addr on both.  If one expression is a VALUE and
32557         the other a REG, check VALUE's locs if the REG isn't among them.
32558
32559 2010-04-16  Christian Bruel  <christian.bruel@st.com>
32560
32561         * config/sh/sh.h (sh_frame_pointer_required): New function.
32562         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
32563         (flag_omit_frame_pointer) Set.
32564         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
32565         (rounded_frame_size): Adjust size with outgoing_args_size.
32566         (sh_set_return_address): Must return from stack pointer.
32567         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
32568         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
32569         (ACCUMULATE_OUTGOING_ARGS): Define.
32570         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
32571         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
32572
32573 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
32574
32575         PR target/43471
32576         * config/sh/sh.c (sh_legitimize_reload_address): Use
32577         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
32578         Remove a unneeded check for offset_base.
32579
32580 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
32581
32582         * configure: Regenerated.
32583
32584 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32585
32586         * config/s390/s390.c (s390_call_save_register_used): Switch back
32587         to HARD_REGNO_NREGS.
32588
32589 2010-04-15  Richard Guenther  <rguenther@suse.de>
32590
32591         * alias.c (alias_set_subset_of): Handle alias-set zero
32592         child properly.
32593
32594 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
32595             Julian Brown  <julian@codesourcery.com>
32596
32597         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
32598         alternatives according to use of high and low regs.
32599         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
32600         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
32601         optimizing for size on Thumb-2.
32602
32603 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
32604
32605         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
32606
32607 2010-04-15  Richard Guenther  <rguenther@suse.de>
32608
32609         * tree-ssa-structalias.c (struct variable_info): Add
32610         is_fn_info flag.
32611         (new_var_info): Initialize it.
32612         (dump_constraints): Support printing last added constraints.
32613         (debug_constraints): Adjust.
32614         (dump_constraint_graph): Likewise.
32615         (make_heapvar_for): Check for NULL cfun.
32616         (get_function_part_constraint): New function.
32617         (get_fi_for_callee): Likewise.
32618         (find_func_aliases): Properly implement IPA PTA constraints.
32619         (process_ipa_clobber): New function.
32620         (find_func_clobbers): Likewise.
32621         (insert_into_field_list_sorted): Remove.
32622         (create_function_info_for): Properly allocate vars for IPA mode.
32623         Do not use insert_into_field_list_sorted.
32624         (create_variable_info_for): Properly generate constraints for
32625         global vars in IPA mode.
32626         (dump_solution_for_var): Always dump the solution.
32627         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
32628         (find_what_var_points_to): Adjust.
32629         (pt_solution_set): Change.
32630         (pt_solution_ior_into): New function.
32631         (pt_solution_empty_p): Export.
32632         (pt_solution_includes_global): Adjust.
32633         (pt_solution_includes_1): Likewise.
32634         (pt_solutions_intersect_1): Likewise.
32635         (dump_sa_points_to_info): Check some invariants.
32636         (solve_constraints): Move constraint dumping ...
32637         (compute_points_to_sets): ... here.
32638         (ipa_pta_execute): ... and here.
32639         (compute_may_aliases): Do not re-compute points-to info
32640         locally if IPA info is available.
32641         (ipa_escaped_pt): New global var.
32642         (ipa_pta_execute): Properly implement IPA PTA.
32643         * tree-into-ssa.c (dump_decl_set): Support dumping
32644         decls not in referenced-vars.
32645         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
32646         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
32647         (dump_points_to_solution): Likewise.
32648         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
32649         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
32650         (remap_gimple_stmt): Reset call clobber/use information if necessary.
32651         (copy_decl_to_var): Copy DECL_PT_UID.
32652         (copy_result_decl_to_var): Likewise.
32653         * tree.c (make_node_stat): Initialize DECL_PT_UID.
32654         (copy_node_stat): Copy it.
32655         * tree.h (DECL_PT_UID): New macro.
32656         (SET_DECL_PT_UID): Likewise.
32657         (DECL_PT_UID_SET_P): Likewise.
32658         (struct tree_decl_minimal): Add pt_uid member.
32659         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
32660         (pt_solution_empty_p): Declare.
32661         (pt_solution_set): Adjust.
32662         (ipa_escaped_pt): Declare.
32663         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
32664         * gimple-pretty-print.c (pp_points_to_solution): New function.
32665         (dump_gimple_call): Dump call clobber/use information.
32666         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
32667         * tree-pass.h (TDF_ALIAS): New dump option.
32668         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
32669         * doc/invoke.texi (-fipa-pta): Update documentation.
32670
32671 2010-04-15  Richard Guenther  <rguenther@suse.de>
32672
32673         * Makefile.in (OBJS-common): Add gimple-fold.o.
32674         (gimple-fold.o): New rule.
32675         * tree.h (maybe_fold_offset_to_reference,
32676         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
32677         prototypes ...
32678         * gimple.h: ... here.
32679         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
32680         may_propagate_address_into_dereference): Move prototypes ...
32681         * gimple.h: ... here.
32682         * tree-ssa-ccp.c (get_symbol_constant_value,
32683         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
32684         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
32685         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
32686         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
32687         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
32688         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
32689         gimplify_and_update_call_from_tree): Move ...
32690         * gimple-fold.c: ... here.  New file.
32691         (ccp_fold_builtin): Rename to ...
32692         (gimple_fold_builtin): ... this.
32693         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
32694
32695 2010-04-15  Richard Guenther  <rguenther@suse.de>
32696
32697         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
32698         fit_double_type, force_fit_type_double, add_double_with_sign,
32699         neg_double, mul_double_with_sign, lshift_double, rshift_double,
32700         lrotate_double, rrotate_double, div_and_round_double): Move ...
32701         * double-int.c: ... here.
32702         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
32703         add_double, neg_double, mul_double_with_sign, mul_double,
32704         lshift_double, rshift_double, lrotate_double, rrotate_double,
32705         div_and_round_double): Move prototypes ...
32706         * double-int.h: ... here.
32707
32708 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
32709
32710         PR target/43742
32711         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
32712         matching constraints to ensure inputs match the output.
32713
32714 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
32715
32716         PR target/43742
32717         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
32718         in an input-only operand.
32719
32720 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
32721
32722         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
32723         (double_int_not, double_int_lshift, double_int_rshift): Declare.
32724         (double_int_negative_p): Convert to static inline function.
32725         * double-int.c (double_int_lshift, double_int_lshift): New functions.
32726         (double_int_negative_p): Remove.
32727         * tree.h (lshift_double, rshift_double):
32728         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
32729         * fold-const.c (fold_convert_const_int_from_real,
32730         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
32731         (lshift_double): Change type of arith argument to bool.
32732         (rshift_double): Change type of arith argument to bool. Correct
32733         comment.
32734         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32735
32736 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
32737
32738         PR target/21803
32739         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
32740         at the start and end of the then/else blocks, and omit them from the
32741         conversion.
32742         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
32743         argument; all callers changed.  Pass zero to old_insns_match_p instead.
32744         (flow_find_head_matching_sequence): New function.
32745         (old_insns_match_p): Check REG_EH_REGION notes for calls.
32746         * basic-block.h (flow_find_cross_jump,
32747         flow_find_head_matching_sequence): Declare functions.
32748
32749 2010-04-14  Jason Merrill  <jason@redhat.com>
32750
32751         PR c++/36625
32752         * c-common.c (attribute_takes_identifier_p): New fn.
32753         * c-common.h: Declare it.
32754
32755 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32756
32757         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
32758         splitter condition.
32759         (*udivmod<mode>4): Ditto.
32760
32761 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32762
32763         * config/i386/i386.md (maxmin_int): Rename code attribute from
32764         maxminiprefix and update all users.
32765         (maxmin_float): Ditto from maxminfprefix.
32766         (logic): Ditto from logicprefix.
32767         (absneg_mnemonic): Ditto from absnegprefix.
32768         * config/i386/mmx.md: Update all users of maxminiprefix,
32769         maxminfprefix and logicprefix for rename.
32770         * config/i386/sse.md: Ditto.
32771         * config/i386/sync.md (sync_<code><mode>): Update for
32772         logicprefix rename.
32773
32774 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32775
32776         PR 42966
32777         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
32778         warnings converted to errors.
32779
32780 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32781
32782         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
32783         used insn_type variable.
32784         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
32785         to avoid set-but-not-used warning.
32786
32787 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32788
32789         * df-core.c (df_ref_debug): Change format string placeholder
32790         from 0x%x to %#x.
32791         * dwarf2asm.c (dw2_asm_output_data_raw,
32792         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
32793         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
32794         * dwarf2out.c (output_cfi, output_cfi_directive,
32795         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
32796         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
32797         Ditto.
32798         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
32799         * print-rtl.c (print_rtx): Ditto.
32800
32801 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32802
32803         PR middle-end/42694
32804         * builtins.c (expand_builtin_pow_root): New function to expand pow
32805         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
32806         series of sqrt and cbrt calls under -ffast-math.
32807         (expand_builtin_pow): Call it.
32808
32809 2010-04-14  Michael Matz  <matz@suse.de>
32810
32811         PR tree-optimization/42963
32812         * tree-cfg.c (touched_switch_bbs): New static variable.
32813         (group_case_labels_stmt): New function broken out from ...
32814         (group_case_labels): ... here, use the above.
32815         (start_recording_case_labels): Allocate touched_switch_bbs.
32816         (end_recording_case_labels): Deallocate it, call
32817         group_case_labels_stmt.
32818         (gimple_redirect_edge_and_branch): Remember index of affected BB.
32819
32820 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32821
32822         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
32823         from insn template.
32824
32825 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32826
32827         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
32828
32829 2010-04-13  Jan Hubicka  <jh@suse.cz>
32830
32831         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
32832         of optimized out static functions.
32833         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
32834         cost computation.  Also sanity check for overflows.
32835         (update_caller_keys): Update cgraph_edge_badness call; properly
32836         update fibheap and sanity check that it is up to date.
32837         (add_new_edges_to_heap): Update cgraph_edge_badness.
32838         (cgraph_decide_inlining_of_small_function): Likewise;
32839         add sanity checking that badness in heap is up to date;
32840         improve dumping of reason; Update badness of calls to the
32841         offline copy of function currently inlined; dump badness
32842         of functions not inlined because of unit growth limits.
32843
32844 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32845
32846         PR middle-end/32628
32847         * c-common.c (pointer_int_sum): Disregard overflow that occured only
32848         because of sign-extension change when converting to sizetype here...
32849         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
32850
32851         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
32852         the folding to constants.  Remove redundant final conversion.
32853         (fold_binary) <associate>: Do not associate if the re-association of
32854         constants alone overflows.
32855         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
32856         to the end of the list.
32857         (multiple_of_p) <COND_EXPR>: New case.
32858
32859 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32860
32861         * opt-functions.awk (opt_sanitized_name): New.
32862         (opt_enum): New.
32863         * optc-gen.awk: Use it
32864         * opth-gen.awk: Use it.
32865
32866 2010-04-13  Martin Jambor  <mjambor@suse.cz>
32867
32868         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
32869         (sra_modify_assign): Delete stmts loading dead data even if racc has no
32870         children.  Call replace_uses_with_default_def_ssa_name to handle
32871         SSA_NAES on lhs.
32872
32873 2010-04-13  Michael Matz  <matz@suse.de>
32874
32875         PR middle-end/43730
32876         * builtins.c (expand_builtin_interclass_mathfn): Also create
32877         a register if the predicate doesn't match.
32878
32879 2010-04-13  Diego Novillo  <dnovillo@google.com>
32880
32881         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
32882         * c-pch.c: Include timevar.h.
32883         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
32884         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
32885         * ggc-common.c: Include timevar.h.
32886         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
32887         * timevar.def (TV_PCH_SAVE): Define.
32888         (TV_PCH_CPP_SAVE): Define.
32889         (TV_PCH_PTR_REALLOC): Define.
32890         (TV_PCH_PTR_SORT): Define.
32891         (TV_PCH_RESTORE): Define.
32892         (TV_PCH_CPP_RESTORE): Define.
32893
32894 2010-04-13  Michael Matz  <matz@suse.de>
32895
32896         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
32897         into MINUS_EXPRs.
32898         (can_reassociate_p): New function.
32899         (break_up_subtract_bb, reassociate_bb): Use it.
32900
32901 2010-04-13  Richard Guenther  <rguenther@suse.de>
32902
32903         PR bootstrap/43737
32904         * builtins.c (c_readstr): Fix assert.
32905
32906 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
32907
32908         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
32909         when generating cltd insn.
32910
32911         (*ashl<mode>3_1): Remove special handling for register operand 2.
32912         (*ashlsi3_1_zext): Ditto.
32913         (*ashlhi3_1): Ditto.
32914         (*ashlhi3_1_lea): Ditto.
32915         (*ashlqi3_1): Ditto.
32916         (*ashlqi3_1_lea): Ditto.
32917         (*<shiftrt_insn><mode>3_1): Ditto.
32918         (*<shiftrt_insn>si3_1_zext): Ditto.
32919         (*<shiftrt_insn>qi3_1_slp): Ditto.
32920         (*<rotate_insn><mode>3_1): Ditto.
32921         (*<rotate_insn>si3_1_zext): Ditto.
32922         (*<rotate_insn>qi3_1_slp): Ditto.
32923
32924 2010-04-13  Richard Guenther  <rguenther@suse.de>
32925
32926         * tree-ssa-structalias.c (callused_id): Remove.
32927         (call_stmt_vars): New.
32928         (get_call_vi): Likewise.
32929         (lookup_call_use_vi): Likewise.
32930         (lookup_call_clobber_vi): Likewise.
32931         (get_call_use_vi): Likewise.
32932         (get_call_clobber_vi): Likewise.
32933         (make_transitive_closure_constraints): Likewise.
32934         (handle_const_call): Adjust to do per-call call-used handling.
32935         (handle_pure_call): Likewise.
32936         (find_what_var_points_to): Remove general callused handling.
32937         (init_base_vars): Likewise.
32938         (init_alias_vars): Initialize call_stmt_vars.
32939         (compute_points_to_sets): Process call-used and call-clobbered
32940         vars for call statements.
32941         (delete_points_to_sets): Free call_stmt_vars.
32942
32943 2010-04-13  Richard Guenther  <rguenther@suse.de>
32944
32945         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32946         Only add RW dependence for dependence distance zero.
32947         Adjust maximal vectorization factor according to dependences.
32948         Move alignment handling ...
32949         (vect_find_same_alignment_drs): ... here.  New function.
32950         (vect_analyze_data_ref_dependences): Adjust.
32951         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
32952         (vect_analyze_data_refs): Adjust minimal vectorization factor
32953         according to data references.
32954         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
32955         dependences before determining the vectorization factor.
32956         Analyze alignment after determining the vectorization factor.
32957         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
32958         dependences before alignment.
32959         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
32960         Adjust prototype.
32961         (vect_analyze_data_refs): Likewise.
32962         (MAX_VECTORIZATION_FACTOR): New define.
32963
32964 2010-04-13  Duncan Sands  <baldrick@free.fr>
32965
32966         * except.h (lang_eh_type_covers): Remove.
32967         * except.c (lang_eh_type_covers): Likewise.
32968
32969 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32970             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32971
32972         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
32973         * config/s390/s390.c: Replace UNTIS_PER_WORD with
32974         UNITS_PER_LONG where it is ABI relevant.
32975         (s390_return_addr_rtx): Likewise.
32976         (s390_back_chain_rtx): Likewise.
32977         (s390_frame_area): Likewise.
32978         (s390_frame_info): Likewise.
32979         (s390_initial_elimination_offset): Likewise.
32980         (save_gprs): Likewise.
32981         (s390_emit_prologue): Likewise.
32982         (s390_emit_epilogue): Likewise.
32983         (s390_function_arg_advance): Likewise.
32984         (s390_function_arg): Likewise.
32985         (s390_va_start): Likewise.
32986         (s390_gimplify_va_arg): Likewise.
32987         (s390_function_profiler): Likewise.
32988         (s390_optimize_prologue): Likewise.
32989         (s390_rtx_costs): Likewise.
32990         (s390_secondary_reload): Likewise.
32991         (s390_promote_function_mode): Likewise.
32992         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
32993         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
32994         registers available.
32995         (s390_unwind_word_mode): New function.
32996         (s390_function_value): Split 64 bit values into register pair if
32997         used as return value.
32998         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
32999         function call parameters.  Handle parallels.
33000         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
33001         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
33002         (DWARF_CIE_DATA_ALIGNMENT): New macro.
33003         (s390_expand_setmem): Remove unused variable src_addr.
33004         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
33005         deal with 64 bit registers.
33006         * config/s390/s390.h: Define __zarch__ predefined macro.
33007         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
33008         (UNITS_PER_LONG): New macro.
33009         * libjava/include/s390-signal.h: Define extended ucontext
33010         structure containing the upper halfs of the 64 bit registers.
33011
33012 2010-04-13  Simon Baldwin  <simonb@google.com>
33013
33014         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
33015
33016 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
33017
33018         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
33019         rvalue on the RHS if the LHS is of a non-renamable type.
33020         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
33021
33022 2010-04-13  Matthias Klose  <doko@ubuntu.com>
33023
33024         * gcc.c (cc1_options): Handle -iplugindir before processing
33025         the cc1 spec. Only add -iplugindir once.
33026         (cpp_unique_options): Add -iplugindir option if -fplugin* options
33027         found.
33028         * common.opt (iplugindir): Remove `Separate' property, initialize.
33029         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
33030         option.
33031         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
33032         (distclean): Remove plugin dir.
33033         * doc/invoke.texi: Document -iplugindir.
33034
33035 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
33036
33037         * doc/plugins.texi (Loading Plugins): Document short
33038         -fplugin=foo option.
33039         (Plugin API): Mention default_plugin_dir_name function.
33040
33041         * gcc.c (find_file_spec_function): Add new declaration.
33042         (static_spec_func): Use it for "find-file".
33043         (find_file_spec_function): Add new function.
33044         (cc1_options): Add -iplugindir option if -fplugin* options found.
33045
33046         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
33047
33048         * plugin.c (add_new_plugin): Updated comment, and handle short
33049         plugin name.
33050         (default_plugin_dir_name): Added new function.
33051
33052         * common.opt (iplugindir): New option to set the plugin directory.
33053
33054 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
33055
33056         * config/i386/i386.md (any_rotate): New code iterator.
33057         (rotate_insn): New code attribute.
33058         (rotate): Ditto.
33059         (SWIM124): New mode iterator.
33060         (<rotate_insn>ti3): New expander.
33061         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
33062         any_rotate code iterator.
33063         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
33064         using any_rotate code iterator and SWIM124 mode iterator.
33065         (ix86_rotlti3): New insn_and_split pattern.
33066         (ix86_rotrti3): Ditto.
33067         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
33068         ix86_rotl{di,ti}3 patterns.
33069         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
33070         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
33071         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
33072         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
33073         code iterator and SWI mode iterator.
33074         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
33075         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
33076         code iterator.
33077         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
33078         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
33079         (bswap rotatert splitter): Add splitter.
33080         (bswap splitter): Macroize splitter using any_rotate code iterator.
33081         Add insn predicate to split only for TARGET_USE_XCHGB or when
33082         optimizing function for size.
33083
33084 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33085
33086         * config/pa/pa.c (emit_move_sequence): Remove use of
33087         deleted variable flag_argument_noalias.
33088
33089 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33090
33091         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
33092         configurations.
33093         Add to unsupported targets list.
33094         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
33095         sparc*-sun-solaris2.[567]* from target lists.
33096         * configure: Regenerate.
33097         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
33098         removal.
33099         Remove Solaris 7 patch references.
33100         (Specific, sparc-sun-solaris2.7): Removed.
33101         (sparc-sun-solaris2*): Update Solaris 7 example.
33102         (sparc64-*-solaris2*): Likewise.
33103
33104 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33105
33106         * config.build (alpha*-dec-osf4*): Remove.
33107         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
33108         of obsolete configurations.
33109         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
33110         support.
33111         * config/alpha/t-osf4: Renamed to ...
33112         * config/alpha/t-osf5: ... this.
33113         * config/alpha/osf.h: Renamed to ...
33114         * config/alpha/osf5.h: ... this.
33115         Merged old osf5.h contents.
33116         Update comments.
33117         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
33118         (EXTRA_SPECS): Removed.
33119         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
33120         reflect removal of Tru64 UNIX V4.0/V5.0 support.
33121         Document that.
33122
33123 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33124
33125         * doc/contrib.texi (Contributors, Rainer Orth): Update.
33126
33127 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
33128
33129         PR/43702
33130         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
33131         __thiscall convention.
33132
33133 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33134
33135         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
33136         orig_base.
33137         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
33138
33139 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33140
33141         * function.c (assign_parms_initialize_all): Add unused attribute
33142         to fntype.
33143
33144 2010-04-12  Richard Guenther  <rguenther@suse.de>
33145
33146         * gsstruct.def (GSS_CALL): New.
33147         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
33148         * gimple.h: Include tree-ssa-alias.h.
33149         (struct gimple_statement_call): New.
33150         (union gimple_statement_struct_d): Add gimple_call member.
33151         (gimple_call_reset_alias_info): Declare.
33152         (gimple_call_use_set): New function.
33153         (gimple_call_clobber_set): Likewise.
33154         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
33155         * gimple.c (gimple_call_reset_alias_info): New function.
33156         (gimple_build_call_1): Call it.
33157         * lto-streamer-in.c (input_gimple_stmt): Likewise.
33158         * tree-inline.c (remap_gimple_stmt): Likewise.
33159         (expand_call_inline): Remove callused handling.
33160         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
33161         * tree-dfa.c (dump_variable): Likewise.
33162         * tree-parloops.c (parallelize_loops): Likewise.
33163         * tree-ssa.c (init_tree_ssa): Likewise.
33164         (delete_tree_ssa): Likewise.
33165         * tree-flow-inline.h (is_call_used): Remove.
33166         * tree-flow.h (struct gimple_df): Remove callused member.
33167         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
33168         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
33169         (ref_maybe_used_by_call_p_1): Simplify.
33170         (call_may_clobber_ref_p_1): Likewise.
33171         * tree-ssa-structalias.c (compute_points_to_sets): Set
33172         the call stmt used and clobbered sets.
33173         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
33174         (find_tail_calls): Verify the tail call.
33175
33176 2010-04-12  Richard Guenther  <rguenther@suse.de>
33177
33178         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
33179         single-iteration always-inline inlining.
33180         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
33181         (cgraph_decide_inlining): Do not handle always-inline specially.
33182         (try_inline): Remove always-inline cycle detection special case.
33183         Do not recurse on always-inlines.
33184         (cgraph_early_inlining): Do not iterate if not optimizing.
33185         (cgraph_gate_early_inlining): remove.
33186         (pass_early_inline): Run unconditionally.
33187         (gate_cgraph_decide_inlining): New function.
33188         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
33189         not inlining or optimizing.
33190         (cgraph_decide_inlining_of_small_functions): Also consider
33191         always-inline functions.
33192         (cgraph_default_inline_p): Return true for nodes which should
33193         disregard inline limits.
33194         (estimate_function_body_sizes): Assume zero size and time for
33195         nodes which are marked as disregarding inline limits.
33196         (cgraph_decide_recursive_inlining): Do not perform recursive
33197         inlining on always-inline nodes.
33198
33199 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
33200
33201         PR bootstrap/43699
33202         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
33203         for exprs satisfying handled_component_p.
33204
33205 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
33206
33207         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
33208         non-constant aggregate elements.
33209
33210         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
33211         is a real initialization.
33212
33213 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
33214
33215         PR c/36774
33216         * c-decl.c (start_function): Move forward check for nested function.
33217
33218 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
33219
33220         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
33221         * config/sh/sh.c: Include reload.h.
33222         (sh_legitimize_reload_address): New.
33223         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
33224         sh_legitimize_reload_address.
33225
33226 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33227
33228         * config/sh/sh.md (*movqi_pop): New insn pattern.
33229         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
33230
33231 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33232
33233         * config/i386/i386.md (any_shiftrt): New code iterator.
33234         (shiftrt_insn): New code attribute.
33235         (shiftrt): Ditto.
33236         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
33237         using any_shiftrt code iterator.
33238         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
33239         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
33240         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
33241         pattern from corresponding peephole2 patterns.
33242         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
33243         using any_shiftrt code iterator.
33244         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
33245         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
33246         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
33247         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
33248         *{ashr,lshr}<mode>3_cmp_zext.
33249         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
33250
33251 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33252
33253         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
33254         scratch register.
33255         (*lshr<mode>3_cconly): Ditto.
33256
33257 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33258
33259         * config/i386/i386.md (lshr<mode>3): Macroize expander from
33260         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33261         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33262         pattern from *lshr{di,ti}3_1 and corresponding splitters using
33263         DWI mode iterator.
33264         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33265         from corresponding peephole2 patterns.
33266         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
33267         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
33268         and *lshrdi3_1_rex64 using SWI mode iterator.
33269         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
33270         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
33271         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
33272         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
33273         and *lshrdi3_cmp_rex64 using SWI mode iterator.
33274         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
33275         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
33276         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
33277         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
33278         SWI mode iterator.
33279
33280 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
33281
33282         * config/i386/i386.md (ashr<mode>3): Macroize expander from
33283         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33284         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33285         pattern from *ashr{di,ti}3_1 and corresponding splitters using
33286         DWI mode iterator.
33287         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33288         from corresponding peephole2 patterns.
33289         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
33290         (ashrsi3_cvt): Rename from ashrsi3_31.
33291         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
33292         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
33293         and x86_64_shift_adj_3 using SWI48 mode iterator.
33294         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
33295         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
33296         and *ashrdi3_1_rex64 using SWI mode iterator.
33297         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
33298         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
33299         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
33300         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
33301         and *ashrdi3_cmp_rex64 using SWI mode iterator.
33302         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
33303         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
33304         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
33305         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
33306         SWI mode iterator.
33307         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
33308         * config/i386/i386.c (ix86_split_ashr): Update for renamed
33309         x86_shift<mode>_adj_3 expanders.
33310
33311 2010-04-10  Wei Guozhi  <carrot@google.com>
33312
33313         PR target/42601
33314         * config/arm/arm.c (arm_pic_static_addr): New function.
33315         (legitimize_pic_address): Call arm_pic_static_addr when it detects
33316         a static symbol.
33317         (arm_output_addr_const_extra): Output expression for new pattern.
33318         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
33319
33320 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
33321
33322         * ira-costs.c (record_reg_classes): Ignore alternatives that are
33323         not enabled.
33324
33325         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
33326         * web.c: Include "insn-config.h" and "recog.h".
33327         (union_match_dups): New function.
33328         (web_main): Call it.
33329         (union_defs): Don't try to recognize match_dups.
33330
33331         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
33332         if doing so would replace the entire pattern.
33333
33334 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
33335
33336         PR target/43707
33337         PR target/43709
33338         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
33339         and splitter pattern.  Change splitter operand 1 predicate to
33340         nonmemory_operand.
33341
33342 2010-04-09  Martin Jambor  <mjambor@suse.cz>
33343
33344         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
33345         lattices are addresses of CONST_DECLs with the same initial value.
33346         (ipcp_print_all_lattices): Print values of CONST_DECLs.
33347         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
33348
33349 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
33350             Bernd Schmidt  <bernds@codesourcery.com>
33351
33352         * loop-invariant.c (replace_uses): New static function.
33353         (move_invariant_reg): Use it to ensure we can replace the uses.
33354
33355 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
33356
33357         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
33358         function template.
33359         (picochip_override_options): Enable section anchors only above -O1.
33360         (picochip_reorg): Fixed a couple of build warnings.
33361
33362 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33363
33364         * configure.ac (plugin -rdynamic test): Log result.
33365         * configure: Regenerate.
33366         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
33367         (RDYNAMIC_SPEC): Define.
33368         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
33369
33370 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33371
33372         * configure.ac: Determine Sun ld version numbers.
33373         (comdat_group): Restrict GNU ld version checks to gld.
33374         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
33375         (enable_comdat): Support --enable-comdat.
33376         * configure: Regenerate.
33377         * doc/install.texi (Configuration): Document --enable-comdat.
33378
33379 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33380
33381         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
33382         * config/sol2-gld.h: ... here.
33383         * config.gcc (sparc*-*-solaris2*): Reflect this.
33384         (i[34567]86-*-solaris2*): Use it.
33385
33386 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
33387
33388         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
33389         setup_clocks_p.
33390         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
33391
33392 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33393
33394         PR 42965
33395         * diagnostic.c (diagnostic_initialize): Initialize
33396         some_warnings_are_errors.
33397         (diagnostic_finish): New.
33398         (diagnostic_action_after_output): Call it before exiting.
33399         (diagnostic_report_diagnostic): Do not print message here. Set
33400         some_warnings_are_errors.
33401         * diagnostic.h (diagnostic_context): Delete
33402         issue_warnings_are_errors_message. Add some_warnings_are_errors.
33403         (diagnostic_finish): Declare.
33404         * toplev.c (toplev_main): Call it before exit.
33405
33406 2010-04-09  Jason Merrill  <jason@redhat.com>
33407
33408         PR c++/42623
33409         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
33410         for incomplete type.
33411
33412         PR c++/41788
33413         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
33414         based on a warning flag.
33415
33416 2010-04-09  Richard Guenther  <rguenther@suse.de>
33417
33418         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
33419
33420 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
33421
33422         PR bootstrap/43684
33423         * varasm.c (default_assemble_visibility): Wrap vars that are
33424         set, but unused, by targets without GAS.
33425         * config/rs6000/rs6000.c (paired_emit_vector_compare):
33426         Remove set, but unused, vars.
33427         (rs6000_legitimize_tls_address): Likewise.
33428         (altivec_expand_dst_builtin): Likewise.
33429         * config/darwin.c (machopic_classify_symbol): Likewise.
33430         (machopic_indirection_name): Likewise.
33431
33432 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
33433
33434         * config/i386/i386.md (DWI): New mode iterator.
33435         (S): New mode attribute.
33436         (shift_operand): Ditto.
33437         (shift_immediate_operand): Ditto.
33438         (ashl_input_operand): Ditto.
33439         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
33440         using SDWIM mode iterator.
33441         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33442         pattern from *ashl{di,ti}3_1 and corresponding splitters using
33443         DWI mode iterator.
33444         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
33445         from corresponding peephole2 patterns.
33446         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
33447         and x86_64_shift_adj_1 using SWI48 mode iterator.
33448         (x86_shift<mode>_adj_2): Ditto.
33449         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
33450         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
33451         using SWI48 mode iterator.
33452         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
33453         *ashldi3_cmp_rex64 using SWI mode iterator.
33454         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
33455         *ashldi3_cconly_rex64 using SWI mode iterator.
33456         * config/i386/i386.c (ix86_split_ashl): Update for renamed
33457         x86_shift<mode>_adj_{1,2}.
33458         (ix86_split_ashr): Ditto.
33459         (ix86_split_lshr): Ditto.
33460
33461 2010-04-09  Richard Guenther  <rguenther@suse.de>
33462
33463         * target.h (builtin_conversion): Pass in input and output types.
33464         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
33465         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
33466         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
33467         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
33468
33469         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
33470         Handle AVX modes.
33471         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
33472
33473 2010-04-09  Richard Guenther  <rguenther@suse.de>
33474
33475         PR target/43152
33476         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
33477
33478 2010-04-09  Richard Guenther  <rguenther@suse.de>
33479
33480         * tree-vectorizer.h (struct _stmt_vec_info): Document
33481         that vectype is the type of the LHS.
33482         (supportable_widening_operation, supportable_narrowing_operation):
33483         Get both input and output vector types as arguments.
33484         (vect_is_simple_use_1): Declare.
33485         (get_same_sized_vectype): Likewise.
33486         * tree-vect-loop.c (vect_determine_vectorization_factor):
33487         Set STMT_VINFO_VECTYPE to the vector type of the def.
33488         (vectorizable_reduction): Adjust.
33489         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
33490         Adjust.  Specify the output vector type.
33491         (vect_pattern_recog_1): Adjust.
33492         * tree-vect-stmts.c (get_same_sized_vectype): New function.
33493         (vectorizable_call): Adjust.
33494         (vectorizable_conversion): Likewise.
33495         (vectorizable_operation): Likewise.
33496         (vectorizable_type_demotion): Likewise.
33497         (vectorizable_type_promotion): Likewise.
33498         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
33499         the def.
33500         (vect_is_simple_use_1): New function.
33501         (supportable_widening_operation): Get both input and output
33502         vector types.
33503         (supportable_narrowing_operation): Likewise.
33504         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
33505
33506 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
33507
33508         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
33509         __thiscall and _thiscall as predefined macros.
33510         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
33511         thiscall attribute handling.
33512         (ix86_comp_type_attributes): Likewise.
33513         (ix86_function_regparm): Likewise.
33514         (ix86_return_pops_args): Likewise.
33515         (init_cumulative_args): Likewise.
33516         (find_drap_reg): Likewise.
33517         (ix86_static_chain): Likewise.
33518         (x86_this_parameter): Likewise.
33519         (x86_output_mi_thunk): Likewise.
33520         (ix86_attribute_table): Add description for thiscall attribute.
33521         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
33522         * doc/extend.texi: Add documentation for thiscall.
33523
33524 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33525
33526         PR c++/28584
33527         * c.opt (Wint-to-pointer-cast): Available in C++.
33528         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
33529
33530 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
33531
33532         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
33533         * calls.c (expand_call): Pass the function type to aggregate_value_p.
33534         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
33535         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
33536         function type instead.  Reorder and simplify checks.
33537
33538         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
33539
33540 2010-04-08  Jing Yu  <jingyu@google.com>
33541             Zdenek Dvorak  <ook@ucw.cz>
33542
33543         PR tree-optimization/42720
33544         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
33545         loop unswitch conditions here from ...
33546         (tree_unswitch_single_loop): ... here.
33547
33548 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
33549
33550         * tree-if-conv.c: Fix comments and simplify logic.
33551
33552 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
33553
33554         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
33555         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
33556         (main_tree_if_conversion): Update call to tree_if_conversion.
33557
33558 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33559
33560         PR 42485
33561         * doc/invoke.texi (-b,-V): Delete.
33562         * doc/tm.texi: Do not mention -b.
33563         * gcc.c (display_help): Delete -b and -V.
33564         (process_command): Delete -b and -V.
33565         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
33566
33567 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
33568             Wolfgang Gellerich  <gellerich@de.ibm.com>
33569
33570         Implement target hook for loop unrolling
33571         * target.h (loop_unroll_adjust): Add a new target hook function.
33572         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
33573         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
33574         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
33575         (s390_loop_unroll_adjust): Implement the new target hook for s390.
33576         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
33577         target hook.
33578         (decide_unroll_stupid): Likewise.
33579
33580 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33581
33582         PR target/43643
33583         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
33584
33585 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33586
33587         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
33588         (Specific, *-*-solaris2*): Likewise.
33589         Don't prefer Sun as over GNU as.
33590
33591 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
33592
33593         * config/s390/s390.c (override_options): Adjust the z10 defaults
33594         for max-unroll-times, max-completely-peeled-insns
33595         and max-completely-peel-times.
33596
33597 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33598
33599         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
33600         instructions for z10.
33601         (s390_expand_setmem): Likewise.
33602         (s390_expand_cmpmem): Likewise.
33603
33604 2010-04-08  Richard Guenther  <rguenther@suse.de>
33605
33606         PR tree-optimization/43679
33607         * tree-ssa-pre.c (eliminate): Only propagate copies.
33608
33609 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
33610
33611         PR bootstrap/43681
33612         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
33613         set but not used variable warning.
33614
33615 2010-04-08  Wei Guozhi  <carrot@google.com>
33616
33617         PR target/41653
33618         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
33619         (arm_size_rtx_costs): Call the new function when optimized for size.
33620
33621 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
33622
33623         PR debug/43670
33624         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
33625         op0 is not a MEM, just return NULL instead of assertion
33626         failure.
33627         (discover_nonconstant_array_refs): Don't walk debug stmts.
33628
33629 2010-04-08  Doug Kwan  <dougkwan@google.com>
33630
33631         * configure.ac: Recognize gold and do not use its version number
33632         to test ld features.
33633         * configure: Regenerate.
33634
33635 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
33636
33637         PR middle-end/40815
33638         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
33639         (negate_value): Move code to push elements to broken_up_substracts ...
33640         (eliminate_plus_minus_pair): ... here.  Push operands that have no
33641         negative pair to plus_negates.
33642         (repropagate_negates, init_reassoc, fini_reassoc): Update.
33643
33644 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33645
33646         * doc/install.texi (Configuration): Move description of
33647         --enable-lto, --with-libelf*, --enable-gold from Java section to
33648         general section.
33649
33650         * doc/generic.texi (Working with declarations)
33651         (Function Properties, C and C++ Trees): Fix typos.
33652         * doc/sourcebuild.texi (Top Level): Likewise.
33653
33654 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33655
33656         PR c/18624
33657         * tree.h (DECL_READ_P): Define.
33658         (struct tree_decl_common): Add decl_read_flag.
33659         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
33660         a set but not used warning.
33661         (merge_decls): Merge DECL_READ_P flag.
33662         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
33663         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
33664         * c-common.c (handle_used_attribute, handle_unused_attribute):
33665         Likewise.
33666         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
33667         New prototypes.
33668         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
33669         New functions.
33670         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
33671         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
33672         c_parser_binary_expression, c_parser_cast_expression,
33673         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
33674         Call default_function_array_read_conversion instead of
33675         default_function_array_conversion where needed.
33676         (c_parser_unary_expression, c_parser_conditional_expression,
33677         c_parser_postfix_expression_after_primary, c_parser_initelt):
33678         Likewise.  Call mark_exp_read where needed.
33679         (c_parser_statement_after_labels, c_parser_asm_operands,
33680         c_parser_typeof_specifier, c_parser_sizeof_expression,
33681         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
33682         where needed.
33683         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
33684         New.
33685         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
33686         (warn_unused_but_set_parameter): Default to warn_unused
33687         && extra_warnings.
33688         * doc/invoke.texi: Document -Wunused-but-set-variable and
33689         -Wunused-but-set-parameter.
33690
33691         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
33692         used count variable.
33693         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
33694         when operandN variables aren't used in the body of the expander
33695         or splitter.
33696         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
33697         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
33698         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
33699         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
33700         FOR_EACH_IMM_USE_ON_STMT): Likewise.
33701         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
33702         * tree.c (PROCESS_ARG): Likewise.
33703
33704 2010-04-07  Simon Baldwin  <simonb@google.com>
33705
33706         * diagnostic.h (diagnostic_override_option_index): New macro to
33707         set a diagnostic's option_index.
33708         * c-tree.h (c_cpp_error): Add warning reason argument.
33709         * opts.c (_warning_as_error_callback): New.
33710         (register_warning_as_error_callback): Store callback for
33711         warnings enabled via enable_warning_as_error.
33712         (enable_warning_as_error): Call callback, minor code tidy.
33713         * opts.h (register_warning_as_error_callback): Declare.
33714         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
33715         response to -Werror=.
33716         (c_common_init_options): Register warning_as_error_callback in opts.c.
33717         * common.opt: Add -Wno-cpp option.
33718         * c-common.c (struct reason_option_codes_t): Map cpp warning
33719         reason codes to gcc option indexes.
33720         * (c_option_controlling_cpp_error): New function, lookup the gcc
33721         option index for a cpp warning reason code.
33722         * (c_cpp_error): Add warning reason argument, call
33723         c_option_controlling_cpp_error for diagnostic_override_option_index.
33724         * doc/invoke.texi: Document -Wno-cpp.
33725
33726 2010-04-07  Richard Guenther  <rguenther@suse.de>
33727
33728         * ipa-reference.c (mark_load): Use get_base_address.
33729         (mark_store): Likewise.
33730
33731         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
33732         inserting GIMPLE_NOPs into the IL.
33733         * tree-ssa-structalias.c (get_constraint_for_component_ref):
33734         Explicitly strip handled components and indirect references.
33735
33736         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
33737         folding address expressions.
33738         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
33739         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
33740         operand_equal_p to compare decls.
33741         (ptr_deref_may_alias_decl_p): Likewise.
33742         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
33743         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
33744         Handle reversed comparison ops.
33745         * tree-sra.c (asm_visit_addr): Use get_base_address.
33746         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
33747         * ipa-reference.c (mark_address): Use get_base_address.
33748
33749 2010-04-07  Richard Guenther  <rguenther@suse.de>
33750
33751         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
33752         Propagate constants everywhere.
33753
33754 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33755
33756         PR debug/43516
33757         * tree.c (MAX_INT_CACHED_PREC): Define.
33758         (nonstandard_integer_type_cache): New array.
33759         (build_nonstandard_integer_type): Cache results for precision
33760         <= MAX_INT_CACHED_PREC.
33761
33762 2010-04-07  Richard Guenther  <rguenther@suse.de>
33763
33764         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
33765         -fargument-noalias-global, -fargument-noalias-anything): Remove.
33766         * common.opt: Likewise.
33767         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
33768         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
33769         (nonoverlapping_memrefs_p): Likewise.
33770         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
33771         * opts.c (common_handle_option): Handle OPT_fargument_alias,
33772         OPT_fargument_noalias, OPT_fargument_noalias_anything and
33773         OPT_fargument_noalias_global for backward compatibility.
33774
33775 2010-04-07  Richard Guenther  <rguenther@suse.de>
33776
33777         PR tree-optimization/43270
33778         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
33779         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
33780         * tree-ssa-pre.c (phi_translate_1): Adjust.
33781         (fully_constant_expression): Split out vn_reference handling to ...
33782         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
33783         Fold reads from constant strings.
33784         (vn_reference_lookup): Handle fully constant references.
33785         (vn_reference_lookup_pieces): Likewise.
33786         * Makefile.in (expmed.o-warn): Add -Wno-error.
33787
33788 2010-04-07  Martin Jambor  <mjambor@suse.cz>
33789
33790         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
33791
33792 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
33793
33794         PR driver/41594
33795         * gcc.c: Add -static-libstdc++ to list of recognized options.
33796
33797 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33798
33799         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
33800
33801 2010-04-07  Richard Guenther  <rguenther@suse.de>
33802
33803         PR middle-end/42617
33804         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
33805         bases build simple mem attributes to retain points-to information.
33806
33807 2010-04-07  Richard Guenther  <rguenther@suse.de>
33808
33809         PR middle-end/42617
33810         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
33811         preserve points-to related information.
33812
33813 2010-04-07  Richard Guenther  <rguenther@suse.de>
33814
33815         PR middle-end/42617
33816         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
33817         discard plain indirect references.
33818         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
33819         * tree.c (tree_nop_conversion): Likewise.
33820
33821 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
33822
33823         PR debug/43628
33824         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
33825
33826 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
33827
33828         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
33829         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
33830
33831 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33832
33833         * tree-if-conv.c: Fix indentation and comments.
33834
33835 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33836
33837         * tree-if-conv.c: Sort static functions in topological order.
33838
33839 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33840
33841         * tree-if-conv.c: Fix indentation and comments.
33842
33843 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33844
33845         PR middle-end/43519
33846         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
33847         lang_hooks.types.type_for_size instead of
33848         build_nonstandard_integer_type.
33849         When converting an unsigned type to signed, double its precision.
33850         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
33851         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
33852         (graphite_create_new_loop_guard): When ub + 1 wraps around,
33853         use lb <= ub.
33854
33855 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33856
33857         PR middle-end/43519
33858         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
33859         POINTER_PLUS_EXPR for pointer types.
33860
33861 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33862
33863         PR middle-end/43519
33864         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
33865         * graphite-clast-to-gimple.c: Include langhooks.h.
33866         (max_signed_precision_type): New.
33867         (max_precision_type): Takes two types as arguments.
33868         (precision_for_value): New.
33869         (precision_for_interval): New.
33870         (gcc_type_for_interval): New.
33871         (gcc_type_for_value): New.
33872         (gcc_type_for_clast_term): New.
33873         (gcc_type_for_clast_red): New.
33874         (gcc_type_for_clast_bin): New.
33875         (gcc_type_for_clast_expr): Split up into several functions.
33876         (gcc_type_for_clast_eq): Rewritten.
33877         (compute_bounds_for_level): New.
33878         (compute_type_for_level_1): New.
33879         (compute_type_for_level): New.
33880         (gcc_type_for_cloog_iv): Removed.
33881         (gcc_type_for_iv_of_clast_loop): Rewritten.
33882         (graphite_create_new_loop): Compute the lower and upper bound types
33883         with gcc_type_for_clast_expr.
33884         (graphite_create_new_loop_guard): Same.
33885         (find_cloog_iv_in_expr): Removed.
33886         (compute_cloog_iv_types_1): Removed.
33887         (compute_cloog_iv_types): Removed.
33888         (gloog): Do not call compute_cloog_iv_types.
33889         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
33890         GBB_CLOOG_IV_TYPES.
33891         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
33892         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
33893         (GBB_CLOOG_IV_TYPES): Removed.
33894
33895 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33896
33897         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
33898         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
33899         (detect_commutative_reduction): Same.
33900
33901 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33902
33903         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
33904         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
33905         argument.
33906         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
33907         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
33908         (rewrite_commutative_reductions_out_of_ssa): Same.
33909         * passes.c (execute_function_todo): Call verify_ssa for every pass
33910         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
33911         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
33912         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
33913         with an extra argument.
33914         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
33915         verify_ssa only when the extra argument is true.
33916         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
33917         with an extra argument.
33918         (tree_transform_and_unroll_loop): Same.
33919
33920 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33921
33922         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
33923         for all the passes of the LNO having LOOP_CLOSED_SSA.
33924         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
33925         * tree-loop-distribution.c (pass_loop_distribution): Same.
33926         * tree-pass.h (TODO_verify_loops): Removed.
33927         * tree-ssa-loop.c (pass_tree_loop_init): Same.
33928         (pass_lim): Same.
33929         (pass_tree_unswitch): Same.
33930         (pass_predcom): Same.
33931         (pass_vectorize): Same.
33932         (pass_linear_transform): Same.
33933         (pass_graphite_transforms): Same.
33934         (pass_iv_canon): Same.
33935         (pass_complete_unroll): Same.
33936         (pass_complete_unrolli): Same.
33937         (pass_parallelize_loops): Same.
33938         (pass_loop_prefetch): Same.
33939         (pass_iv_optimize): Same.
33940
33941 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
33942
33943         PR middle-end/32824
33944         * passes.c (init_optimization_passes): Move pass_lim before
33945         pass_copy_prop and pass_dce_loop.
33946
33947 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33948
33949         PR target/43667
33950         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
33951         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
33952         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
33953         MULTI_* defines for 4 argument vpermil2p* builtins.
33954
33955 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33956
33957         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
33958         * config/i386/i386.c (x86_maybe_negate_const_int): New.
33959         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
33960         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
33961         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
33962         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
33963         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
33964         Use x86_maybe_negate_const_int to output insn mnemonic.
33965         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
33966         check from instruction predicate.  Update comments.
33967         * config/i386/sync.md (sync_add<mode>): Use
33968         x86_maybe_negate_const_int to output insn mnemonic.
33969
33970 2010-04-06  Jan Hubicka  <jh@suse.cz>
33971
33972         PR tree-optimization/42906
33973         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
33974         IGNORE_SELF argument.  Set visited_control_parents for fully
33975         processed BBs.
33976         (find_obviously_necessary_stmts): Update call of
33977         mark_control_dependent_edges_necessary.
33978         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
33979
33980 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33981
33982         * config/i386/i386.md: Remove comment about 'e' and 'E'
33983         operand modifier.
33984
33985 2010-04-06  Richard Guenther  <rguenther@suse.de>
33986
33987         PR tree-optimization/43627
33988         * tree-vrp.c (extract_range_from_unary_expr): Widenings
33989         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
33990         not varying.
33991
33992 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33993
33994         * BASE-VER: Change to 4.6.0.
33995
33996         PR target/43638
33997         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
33998         handling.
33999
34000 2010-04-06  Richard Guenther  <rguenther@suse.de>
34001
34002         PR middle-end/43661
34003         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
34004
34005 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34006
34007         * doc/invoke.texi (Optimize Options): Document that LTO
34008         won't remove object access purely due to incompatible
34009         declarations.
34010
34011 2010-04-04  Matthias Klose  <doko@ubuntu.com>
34012
34013         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
34014         Initialize variable.
34015
34016 2010-04-03  Richard Guenther  <rguenther@suse.de>
34017
34018         PR middle-end/42509
34019         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
34020         require a non-NULL MEM_OFFSET.
34021
34022 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
34023
34024         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
34025         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
34026         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
34027         config/alpha/predicates.md, config/arm/arm.md,
34028         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
34029         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
34030         config/darwin9.h, config/darwin.c, config/darwin.h,
34031         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
34032         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
34033         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
34034         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
34035         config/mips/mips.md, config/mn10300/mn10300.c,
34036         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
34037         config/rs6000/aix.h, config/rs6000/dfp.md,
34038         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
34039         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
34040         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
34041         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
34042         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
34043         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
34044         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
34045         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
34046         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
34047         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
34048         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
34049         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
34050         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
34051         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
34052         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
34053         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
34054         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
34055         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
34056         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
34057         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
34058         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
34059         opt-functions.awk, opth-gen.awk, params.def, passes.c,
34060         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
34061         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
34062         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
34063         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
34064         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
34065         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
34066         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
34067         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
34068         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
34069         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
34070         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
34071         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
34072         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
34073         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
34074
34075 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34076
34077         PR other/43620
34078         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
34079         * aclocal.m4: Regenerate.
34080
34081 2010-04-02  Richard Guenther  <rguenther@suse.de>
34082
34083         PR tree-optimization/43629
34084         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
34085         if we have seen a constant value.
34086
34087 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
34088
34089         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
34090
34091 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
34092
34093         PR target/43469
34094         * arm.c (legitimize_tls_address): Adjust call to
34095         gen_tls_load_dot_plus_four.
34096         (arm_note_pic_base): New function.
34097         (arm_cannot_copy_insn_p): Use it.
34098         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
34099         constraint.
34100
34101 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34102
34103         PR bootstrap/43531
34104
34105         Revert:
34106         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34107
34108         * Makefile.in ($(out_object_file)): Depend on
34109         gt-$(basename $(notdir $(out_file))).h.
34110
34111 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
34112
34113         * config.gcc (lm32-*-rtems*): Add t-lm32.
34114
34115 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
34116
34117         * config.gcc: Add lm32-*-rtems*.
34118         * config/lm32/rtems.h: New file.
34119
34120 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
34121
34122         PR target/42609
34123         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
34124
34125 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
34126
34127         * dwarf2out.c (output_compilation_unit_header): For
34128         -gdwarf-4 use version 4 instead of version 3.
34129         (output_line_info): For version 4 and above emit additional
34130         maximum ops per insn header field.
34131         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
34132
34133         * dwarf2out.c (is_c_family, is_java): Remove.
34134         (lower_bound_default): New function.
34135         (add_bound_info, gen_descr_array_type_die): Use it.
34136
34137 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
34138
34139         PR debug/43325
34140         * dwarf2out.c (gen_variable_die): Allow debug info for variable
34141         re-declaration when it happens in a function.
34142
34143 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
34144
34145         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
34146         (cgraph_remove_function_insertion_hook): Same.
34147         (cgraph_call_function_insertion_hooks): Same.
34148
34149 2010-04-01  Richard Guenther  <rguenther@suse.de>
34150
34151         PR middle-end/43614
34152         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
34153         and TREE_THIS_VOLATILE.
34154         (copy_ref_info): Likewise.
34155         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
34156         * tree.c (build6_stat): Ignore side-effects of all but arg5
34157         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
34158         TARGET_MEM_REF.
34159
34160 2010-04-01  Richard Guenther  <rguenther@suse.de>
34161
34162         PR tree-optimization/43607
34163         * ipa-type-escape.c (check_call): Do not access non-existing
34164         arguments.
34165
34166 2010-04-01  Richard Guenther  <rguenther@suse.de>
34167
34168         PR middle-end/43602
34169         Revert
34170         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
34171                     Jack Howarth  <howarth@bromo.med.uc.edu>
34172
34173         * tree-profile.c (tree_init_ic_make_global_vars): Make static
34174         variables TLS.
34175
34176 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34177
34178         * doc/install.texi (Prerequisites): Document libelf usability on
34179         IRIX 5/6 and Solaris 2.
34180         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
34181         Update GNU as, GNU ld requirements.
34182         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
34183         Document Sun Studio compiler download.
34184         Update and simplify as, ld recommendations.
34185         (Specific, *-*-solaris2.7): Note obsoletion, removal.
34186
34187 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34188
34189         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
34190         with_tune_32 to pentium4.
34191
34192 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
34193
34194         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
34195
34196 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34197
34198         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
34199         obsoletion, removal.
34200         Update IDO URL.
34201         Document GNU as requirement.
34202         Update configure requirements.
34203         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
34204         Recomment IRIX 6.5.18+.
34205         Document IDF/IDL requirement.
34206         Document GNU as requirement.
34207         Document GNU ld bootstrap failure.
34208         Remove freeware.sgi.com reference.
34209
34210 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34211
34212         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
34213         UNIX V4.0, V5.0 obsoletion, removal.
34214         Remove --with-gc=simple reference.
34215         Update VM requirements during bootstrap.
34216         Remove -oldas bootstrap description.
34217         Update binutils reference.
34218         Remove comparison failure note.
34219
34220 2010-03-31  Richard Guenther  <rguenther@suse.de>
34221             Zdenek Dvorak  <ook@ucw.cz>
34222             Sebastian Pop  <sebastian.pop@amd.com>
34223
34224         PR middle-end/43464
34225         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
34226         with multiple arguments.
34227         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
34228
34229 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34230
34231         * graphite-dependences.c (print_pddr): Call print_pdr with an
34232         extra argument.
34233         * graphite-poly.c (debug_pdr): Add an extra argument for the
34234         verbosity level.
34235         (print_pdr): Same.
34236         (print_pbb_domain): Same.
34237         (print_pbb): Same.
34238         (print_scop_context): Same.
34239         (print_scop): Same.
34240         (print_cloog): Same.
34241         (debug_pbb_domain): Same.
34242         (debug_pbb): Same.
34243         (print_pdrs): Same.
34244         (debug_pdrs): Same.
34245         (debug_scop_context): Same.
34246         (debug_scop): Same.
34247         (debug_cloog): Same.
34248         (print_scop_params): Same.
34249         (debug_scop_params): Same.
34250         (print_iteration_domain): Same.
34251         (print_iteration_domains): Same.
34252         (debug_iteration_domain): Same.
34253         (debug_iteration_domains): Same.
34254         (print_scattering_function): Same.
34255         (print_scattering_functions): Same.
34256         (debug_scattering_function): Same.
34257         (debug_scattering_functions): Same.
34258         * graphite-poly.h (debug_pdr): Update declaration.
34259         (print_pdr): Same.
34260         (print_pbb_domain): Same.
34261         (print_pbb): Same.
34262         (print_scop_context): Same.
34263         (print_scop): Same.
34264         (print_cloog): Same.
34265         (debug_pbb_domain): Same.
34266         (debug_pbb): Same.
34267         (print_pdrs): Same.
34268         (debug_pdrs): Same.
34269         (debug_scop_context): Same.
34270         (debug_scop): Same.
34271         (debug_cloog): Same.
34272         (print_scop_params): Same.
34273         (debug_scop_params): Same.
34274         (print_iteration_domain): Same.
34275         (print_iteration_domains): Same.
34276         (debug_iteration_domain): Same.
34277         (debug_iteration_domains): Same.
34278         (print_scattering_function): Same.
34279         (print_scattering_functions): Same.
34280         (debug_scattering_function): Same.
34281         (debug_scattering_functions): Same.
34282
34283 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34284
34285         * graphite-poly.c (print_scattering_function_1): New.
34286         (print_scattering_function): Call it.
34287         (print_scop_params): Remove spaces at the end of lines.
34288         (print_cloog): New.
34289         (debug_cloog): New.
34290         * graphite-poly.h (print_cloog): Declared.
34291         (debug_cloog): Declared.
34292
34293 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34294
34295         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
34296         in loop->header.
34297         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
34298         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
34299         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
34300         to switch between adding the IV bump in loop->latch or in loop->header.
34301
34302 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34303
34304         * graphite-poly.c (print_scattering_function): Pretty print following
34305         the scoplib format.
34306         (print_pdr): Same.
34307         (print_pbb_domain): Same.
34308         (dump_gbb_cases): Same.
34309         (dump_gbb_conditions): Same.
34310         (print_pdrs): Same.
34311         (print_pbb): Same.
34312         (print_scop_params): Same.
34313         (print_scop_context): Same.
34314         (print_scop): Same.
34315         (print_pbb_body): New.
34316         (lst_indent_to): New.
34317         (print_lst): Start new lines with a #.
34318         * graphite-poly.h (pbb_bb): New.
34319         (pbb_index): Use pbb_bb.
34320         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
34321         disjuncts.
34322         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
34323
34324 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
34325
34326         * dwarf2out.c (size_of_die): For -gdwarf-4 use
34327         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
34328         and 0 instead of 1 for dw_val_class_flag.
34329         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
34330         dw_val_class_range_list, dw_val_class_loc_list,
34331         dw_val_class_lineptr and dw_val_class_macptr, use
34332         DW_FORM_flag_present for dw_val_class_flag and
34333         DW_FORM_exprloc for dw_val_class_loc.
34334         (output_die): For -gdwarf-4 print dw_val_class_loc
34335         size as uleb128 instead of 1 or 2 bytes and don't print
34336         anything for dw_val_class_flag.
34337
34338         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
34339         instead of cselib_lookup following by tweaking locs->setting_insn.
34340
34341         PR bootstrap/43596
34342         * cselib.c (cselib_process_insn): Clear cselib_current_insn
34343         even before returning from label, setjmp call or volatile asm
34344         handling.
34345
34346 2010-03-31  Richard Guenther  <rguenther@suse.de>
34347
34348         PR middle-end/43600
34349         * cgraphunit.c (cgraph_output_in_order): Do not allocate
34350         temporary data on stack.
34351
34352 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34353
34354         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
34355         (PUSHSECTION_ASM_OP): Remove.
34356         (POPSECTION_ASM_OP): Remove.
34357         (PUSHSECTION_FORMAT): Remove.
34358         * config/sol2.h (PUSHSECTION_FORMAT): Define.
34359         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
34360         * config/sol2.c (solaris_output_init_fini): Use it.
34361
34362 2010-03-31  Jie Zhang  <jie@codesourcery.com>
34363
34364         PR 43574
34365         * opt-functions.awk (var_type_struct): Use signed char type
34366         for simple variables.
34367
34368 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34369
34370         * config/sol2.c: Include output.h.
34371         (solaris_assemble_visibility): New function.
34372         * config/t-sol2 (sol2.o): Add output.h dependency.
34373         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
34374         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
34375         Redefine.
34376
34377 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
34378
34379         PR target/43580
34380         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
34381         V2SImode or XFmode on PRE_DEC.
34382
34383         PR debug/43557
34384         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
34385         BLKmode.
34386
34387 2010-03-31  Jie Zhang  <jie@codesourcery.com>
34388
34389         PR 43562
34390         * reload.h (caller_save_initialized_p): Declare.
34391         * toplev.c (backend_init_target): Don't call
34392         init_caller_save but set caller_save_initialized_p to false.
34393         * caller-save.c (caller_save_initialized_p): Define.
34394         (init_caller_save): Check caller_save_initialized_p.
34395         * ira.c (ira): Call init_caller_save if flag_caller_saves.
34396
34397 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34398
34399         PR target/39048
34400         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
34401         and soft-fp/t-softfp to tmake_file.
34402         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
34403         (LIBGCC2_TF_CEXT): Define.
34404         (TF_SIZE): Define.
34405
34406 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
34407
34408         PR debug/42977
34409         * cselib.c (n_useless_values): Document handling of debug locs.
34410         (n_useless_debug_values, n_debug_values): New variables.
34411         (new_elt_loc_list): Don't add to debug values, keep count.
34412         (promote_debug_loc): New.
34413         (cselib_reset_table): Zero new variables.
34414         (entry_and_rtx_equal_p): Promote debug locs.
34415         (discard_useless_locs): Increment n_useless_debug_values for
34416         debug values.
34417         (remove_useless_values): Adjust n_useless_values and n_debug_values
34418         with n_useless_debug_values.
34419         (add_mem_for_addr): Promote debug locs.
34420         (cselib_lookup_mem): Likewise.
34421         (cselib_lookup_addr): Renamed to...
34422         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
34423         (cselib_log_lookup): ... this.  Turn into...
34424         (cselib_lookup_addr): ... new wrapper.
34425         (cselib_lookup_from_insn): New.
34426         (cselib_invalidate_regno): Increment n_useless_debug_values for
34427         debug values.
34428         (cselib_invalidate_mem): Likewise.
34429         (cselib_process_insn): Take n_deleted and n_debug_values into
34430         account to guard remove_useless_value call.
34431         (cselib_finish): Zero n_useless_debug_values.
34432         * cselib.h (cselib_lookup_from_insn): Declare.
34433         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
34434         (sched_analyze_2): Likewise.
34435
34436 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
34437
34438         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
34439         functions.
34440         (adjust_mems): Replace narrowing SUBREG of expression containing
34441         just PLUS, MINUS, MULT and ASHIFT of registers and constants
34442         with operations in the narrower mode.
34443
34444         PR debug/43593
34445         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
34446         regs_invalidated_by_call instead all call_used_reg_set registers.
34447
34448 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
34449
34450         PR middle-end/43430
34451         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
34452         pointer comparisons with types_compatible_p.
34453         * tree-vect-stmts.c (vectorizable_call): Same.
34454         (vectorizable_condition): Same.
34455
34456 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34457
34458         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
34459         stack check if the mask would be zero.
34460
34461 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
34462             Jack Howarth  <howarth@bromo.med.uc.edu>
34463
34464         * tree-profile.c (tree_init_ic_make_global_vars): Make static
34465         variables TLS.
34466
34467 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
34468
34469         PR other/25232
34470         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
34471         and __unordtf2.
34472         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
34473         Include ___unordxf2 and ___unordtf2.
34474         * config/i386/libgcc-glibc.ver: Do not define inheritance from
34475         GCC_4.4.0 here.
34476
34477 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
34478
34479         * config/lm32/t-lm32: New file.
34480         * config.gcc: Use the above file when targetting lm32.
34481
34482 2010-03-28  Duncan Sands  <baldrick@free.fr>
34483
34484         * Makefile.in (PLUGIN_HEADERS): Add except.h.
34485
34486 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
34487
34488         PR middle-end/43431
34489         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
34490         Improve vectorization cost model diagnostic.
34491
34492 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
34493
34494         PR middle-end/43436
34495         * tree-vect-data-refs.c (vect_analyze_data_refs): When
34496         compute_data_dependences_for_loop returns false, early exit
34497         and output an extra diagnostic for the failed data reference
34498         analysis.
34499
34500 2010-03-29  Richard Guenther  <rguenther@suse.de>
34501
34502         PR tree-optimization/43560
34503         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
34504         (can_sm_ref_p): Treat stores to readonly locations as trapping.
34505
34506 2010-03-29  Jie Zhang  <jie@codesourcery.com>
34507
34508         PR 43564
34509         * toplev.c (process_options): Set optimization_default_node
34510         and optimization_current_node.
34511         * opts.c (decode_options): Don't set optimization_default_node
34512         and optimization_current_node.
34513
34514 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
34515
34516         * config/rtems.h: Abandon -qrtems_debug.
34517
34518 2010-03-28  Jan Hubicka  <jh@suse.cz>
34519
34520         PR tree-optimization/43505
34521         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
34522         map should not be copied.
34523
34524 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34525
34526         PR middle-end/41674
34527         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
34528         cdtors, set DECL_PRESERVE_P.
34529         * ipa.c (cgraph_externally_visible_p): Return true if declaration
34530         should be preseved.
34531
34532 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
34533
34534         PR tree-optimization/43528
34535         * stor-layout.c (place_field): Check that constant fits into
34536         unsigned HWI when skipping calculation of MS bitfield layout.
34537
34538 2010-03-27  Jan Hubicka  <jh@suse.cz>
34539
34540         PR middle-end/43391
34541         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
34542         notice_global_symbol work.
34543
34544 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
34545
34546         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
34547         instead of dwarf2out_decl.
34548         (struct var_loc_node): Remove section_label field.
34549         (dwarf2out_function_decl): New function.
34550         (dwarf2out_var_location): Don't set section_label field.
34551         (dwarf2out_begin_function): Don't empty decl_loc_table here.
34552
34553 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
34554
34555         PR tree-optimization/43544
34556         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
34557         First argument for builtin vectorized function hook is now a
34558         tree to be able to distinguish between machine specific and
34559         standard builtins.
34560         * targhooks.c (default_builtin_vectorized_function): Ditto.
34561         * targhooks.h (default_builtin_vectorized_function): Ditto.
34562         * target.h (struct gcc_target): Ditto.
34563         * tree-vect-stmts.c (vectorizable_function): Ditto.
34564         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
34565         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
34566         Ditto.
34567
34568 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
34569
34570         PR c/43381
34571         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
34572         nested binding iff it is a FUNCTION_DECL.
34573         (store_parm_decls_newstyle): Pass nested=true to bind for
34574         FUNCTION_DECLs amongst parameters.
34575
34576 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
34577
34578         * var-tracking.c (vt_expand_loc_callback): Don't run
34579         cselib_expand_value_rtx_cb in dummy mode if
34580         cselib_dummy_expand_value_rtx_cb returned false.
34581
34582         * var-tracking.c (emit_note_insn_var_location): For one part
34583         notes with offset 0, don't add EXPR_LIST around the location.
34584         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
34585         add_location_or_const_value_attribute): Adjust for that change.
34586
34587         PR debug/43540
34588         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
34589         into first operand and location into second.
34590         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
34591         dw_cfi_oprnd_loc for DW_CFA_expression.
34592         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
34593         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
34594         assume first argument is regnum and second argument is location.
34595
34596 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
34597
34598         PR target/42113
34599         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
34600         of scratch register to DImode.  Split to DImode comparison operator.
34601         Use SImode subreg of scratch register in the multiplication.
34602         (*cmp_sadd_sidi): Ditto.
34603         (*cmp_ssub_si): Ditto.
34604         (*cmp_ssub_sidi): Ditto.
34605
34606 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
34607
34608         PR target/43524
34609         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
34610         Remove invalid assert and wrong comment.
34611
34612 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
34613
34614         PR debug/43516
34615         * flags.h (final_insns_dump_p): New extern.
34616         * final.c (final_insns_dump_p): New variable.
34617         (rest_of_clean_state): Set it before -fdump-final-insns=
34618         dumping, clear afterwards.
34619         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
34620         MEM_ALIAS_SET on MEMs.
34621
34622 2010-03-26  David S. Miller  <davem@davemloft.net>
34623
34624         * configure.ac: Fix sparc GOTDATA_OP bug check.
34625         * configure: Rebuild.
34626
34627 2010-03-26  Alan Modra  <amodra@gmail.com>
34628
34629         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
34630
34631 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34632
34633         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
34634         TLS_SECTION_ASM_FLAG.
34635
34636 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
34637
34638         PR bootstrap/43511
34639         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
34640         Clear first_function_block_is_cold.
34641
34642         PR c/43385
34643         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
34644         argument if the argument is truth_value_p.
34645
34646 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
34647
34648         * config/rs6000/constraints.md: Update copyright year for my changes.
34649
34650         PR target/43484
34651         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
34652         used in reg+reg addressing, swap registers.
34653
34654 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34655
34656         PR debug/43293
34657         * target.h (struct gcc_target): Add code_end hook.
34658         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
34659         if not yet defined.
34660         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
34661         * toplev.c (compile_file): Call targetm.asm_out.code_end
34662         hook before unwind info/debug info output.
34663         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
34664         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
34665         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
34666         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
34667         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
34668         * config/i386/i386.c (ix86_file_end): Renamed to...
34669         (ix86_code_end): ... this.  Make static.  Don't call
34670         file_end_indicate_exec_stack.  Emit unwind info using
34671         final_start_function/final_end_function.
34672         (darwin_x86_file_end): Remove.
34673         (TARGET_ASM_CODE_END): Define.
34674         * config/i386/i386.h (TARGET_ASM_FILE_END,
34675         NEED_INDICATE_EXEC_STACK): Don't define.
34676         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
34677         (TARGET_ASM_FILE_END): Define to darwin_file_end.
34678         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
34679         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
34680
34681         PR target/43498
34682         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
34683         at the beginning and final_end_function at the end.
34684         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
34685
34686 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34687
34688         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
34689         and Sun as TLS syntax.
34690         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
34691         * configure: Regenerate.
34692         * config.in: Regenerate.
34693         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
34694         (default_elf_asm_named_section): Use it.
34695         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
34696         (i386_output_dwarf_dtprel): Likewise.
34697         (output_addr_const_extra): Likewise.
34698         (output_pic_addr_const): Lowercase @GOTTPOFF.
34699         (output_addr_const_extra): Likewise.
34700         (output_pic_addr_const): Lowercase @GOTNTPOFF.
34701         (output_addr_const_extra): Likewise.
34702         (output_pic_addr_const): Lowercase @INDNTPOFF.
34703         (output_addr_const_extra): Likewise.
34704         (output_pic_addr_const): Lowercase @NTPOFF.
34705         (output_addr_const_extra): Likewise.
34706         (output_pic_addr_const): Lowercase @TPOFF.
34707         (output_addr_const_extra): Likewise.
34708         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
34709         (*tls_global_dynamic_64): Likewise.
34710         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
34711         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
34712
34713         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
34714         (ASM_OUTPUT_TLS_COMMON): Use it.
34715         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
34716
34717         PR target/38118
34718         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
34719         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
34720         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
34721         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
34722         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34723         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
34724
34725 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34726
34727         * config/i386/i386.c (override_options): Don't accept
34728         -mtls-dialect=sun any longer.
34729         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
34730         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
34731         (*tls_local_dynamic_base_32_sun): Likewise.
34732         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34733
34734 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34735
34736         PR debug/43508
34737         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34738         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
34739
34740         PR debug/43479
34741         * ira.c (adjust_cleared_regs): New function.
34742         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
34743
34744         PR debug/19192
34745         PR debug/43479
34746         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
34747         from gimple_block.
34748         * expr.c (expand_expr_real): Restore previous
34749         curr_insn_source_location and curr_insn_block after
34750         expand_expr_real_1 call.
34751         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
34752         instead of expand_expr_real_1.
34753
34754 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
34755
34756         PR rtl-optimization/43413
34757         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
34758         hard regs too.
34759
34760 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
34761
34762         PR target/43348
34763         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
34764         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
34765
34766 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34767
34768         * config/i386/i386.c (ix86_target_string): Add -mfma.
34769         Fix a typo in comment.
34770
34771 2010-03-22  Mike Stump  <mikestump@comcast.net>
34772
34773         PR target/23071
34774         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
34775         Don't overly align based upon packed packed fields.
34776
34777 2010-03-22  Jason Merrill  <jason@redhat.com>
34778
34779         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
34780         Use () rather than [], and move before the element type.
34781
34782 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34783
34784         * doc/configfiles.texi (Configuration Files): Removed
34785         fixinc/Makefile*, intl/Makefile.*.
34786         * doc/makefile.texi: Fixed markup. Abstract from version
34787         control system used.
34788         (Makefile): Removed obsolete java/parse.y example.
34789         * doc/sourcebuild.texi: Likewise.
34790         (Top Level): Added config, gnattools, libdecnumber, libgcc,
34791         libgomp, libssp.  Removed fastjar.
34792         (Miscellaneous Docs): Clarify location.
34793         Added COPYING3, COPYING3.LIB.
34794         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
34795
34796 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34797
34798         PR target/38085
34799         * config/i386/i386.c (x86_function_profiler)
34800         [!NO_PROFILE_COUNTERS]: Fix typo.
34801         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
34802         instead of callq.
34803
34804 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
34805             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34806
34807         * doc/sourcebuild.texi (Test Directives): Split into six
34808         subsections, with most of the current text in new subsections
34809         Directives, Selectors, and Final Actions.
34810         (Directives): Split list of test directives into multiple
34811         subsubsections.
34812         (Selectors): Describe use and syntax of selectors.
34813         (Effective-Target Keywords): Describe all existing keywords.
34814         (Add Options): Describe features for dg-add-options.
34815         (Require Support): Describe variants of dg-require-support.
34816         (Final Actions): Describe commands to use in dg-final.
34817
34818 2010-03-22  Michael Matz  <matz@suse.de>
34819
34820         PR middle-end/43475
34821         * recog.c (validate_replace_rtx_group): Replace also in
34822         REG_EQUAL and REG_EQUIV notes.
34823
34824 2010-03-22  Richard Guenther  <rguenther@suse.de>
34825
34826         PR tree-optimization/43390
34827         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
34828         sure vector extracts are type correct.
34829
34830 2010-03-22  Richard Guenther  <rguenther@suse.de>
34831
34832         PR middle-end/40106
34833         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
34834         x * sqrt (x) even when optimizing for size if the target
34835         has native support for sqrt.
34836
34837 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
34838
34839         * varasm.c (make_decl_rtl_for_debug): Also clear
34840         flag_mudflap for the duration of make_decl_rtl call.
34841
34842         PR debug/43443
34843         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
34844         locs from preserved VALUEs.
34845
34846 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34847
34848         PR middle-end/42718
34849         * pa.md (movmemsi): Set align to one if zero.
34850         (movmemdi): Likewise.
34851
34852 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
34853
34854         PR target/42321
34855         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
34856         with their corresponding prologue pushes.
34857
34858 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
34859
34860         PR target/43156
34861         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
34862         at the begining or end.
34863         (spu_expand_epilogue): Likewise.
34864
34865 2010-03-20  Richard Guenther  <rguenther@suse.de>
34866
34867         PR rtl-optimization/43438
34868         * combine.c (make_extraction): Properly zero-/sign-extend an
34869         extraction of the low part of a CONST_INT.  Also handle
34870         CONST_DOUBLE.
34871
34872 2010-03-19  Mike Stump  <mikestump@comcast.net>
34873
34874         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
34875         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
34876         (override_options): Use SUBTARGET32_DEFAULT_CPU.
34877
34878 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
34879
34880         PR c/43211
34881         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
34882         an error.
34883
34884 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
34885
34886         PR rtl-optimization/42258
34887         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
34888         use that may match DEF.
34889
34890         PR target/40697
34891         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
34892         the cost of loading the constant rather than assuming
34893         COSTS_N_INSNS (1).
34894         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
34895         outer code is AND, do the same tests as the andsi3 expander and
34896         return COSTS_N_INSNS (1) if and is cheap.
34897
34898         * optabs.c (avoid_expensive_constant): Fix formatting.
34899
34900 2010-03-19  Michael Matz  <matz@suse.de>
34901
34902         PR c++/43116
34903         * attribs.c (decl_attributes): When rebuilding a function pointer
34904         type use the same qualifiers as the original pointer type.
34905
34906 2010-03-19  Martin Jambor  <mjambor@suse.cz>
34907
34908         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
34909         and is_gimple_ip_invariant_address.
34910
34911 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34912
34913         Revert
34914         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34915
34916         * config/arm/arm.c (arm_override_options): Turn off
34917         flag_dwarf2_cfi_asm for AAPCS variants.
34918
34919 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34920
34921         PR target/43399
34922         * config/arm/arm.c (emit_multi_reg_push): Update comments.
34923         Use PRE_MODIFY instead of PRE_DEC.
34924         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
34925         (vfp_emit_fstmd): Likewise.
34926
34927 2010-03-19  Michael Matz  <matz@suse.de>
34928
34929         PR target/43305
34930         * builtins.c (expand_builtin_interclass_mathfn,
34931         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
34932         if that fails.
34933
34934 2010-03-19  Richard Guenther  <rguenther@suse.de>
34935
34936         PR tree-optimization/43415
34937         * tree-ssa-pre.c (phi_translate): Split out worker to ...
34938         (phi_translate_1): ... this.
34939         (phi_translate): Move all caching here.  Cache all NARY
34940         and REFERENCE translations.
34941
34942 2010-03-19  David S. Miller  <davem@davemloft.net>
34943
34944         With help from Eric Botcazou.
34945         * config/sparc/sparc.c: Include dwarf2out.h.
34946         (emit_pic_helper): Delete.
34947         (pic_helper_symbol_name): Delete.
34948         (pic_helper_emitted_p): Delete.
34949         (pic_helper_needed): New.
34950         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
34951         (get_pc_thunk_name): New.
34952         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
34953         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
34954         Set pic_helper_needed to true.  Don't call emit_pic_helper.
34955         (sparc_expand_prologue): Update load_pic_register call.
34956         (sparc_output_mi_thunk): Likewise.
34957         (sparc_file_end): Emit a hidden comdat symbol for the PIC
34958         thunk if possible.  Output CFI information as needed.
34959
34960 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34961             Jack Howarth  <howarth@bromo.med.uc.edu>
34962
34963         PR target/36399
34964         * config/i386/i386.h: Fix ABI on darwin x86-32.
34965
34966 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
34967
34968         * tree.h: Declare make_decl_rtl_for_debug.
34969         * varasm.c (make_decl_rtl_for_debug): New.
34970         * dwarf2out.c (rtl_for_decl_location): Call it.
34971         * cfgexpand.c (expand_debug_expr): Call it.
34972
34973 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34974
34975         PR bootstrap/43399
34976         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
34977         mem_mode.
34978
34979         PR bootstrap/43403
34980         * var-tracking.c (vt_init_cfa_base): Do nothing if
34981         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
34982
34983 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
34984
34985         PR debug/42873
34986         * var-tracking.c (canonicalize_vars_star): New.
34987         (dataflow_post_merge_adjust): Use it.
34988
34989 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34990
34991         PR debug/43058
34992         * var-tracking.c (non_suitable_const): New function.
34993         (add_uses): For DEBUG_INSNs with constants, don't record any
34994         value, instead just the constant value itself.
34995         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
34996         is not VAR_LOC_UNKNOWN_P, set var to the constant.
34997         (emit_notes_in_bb): Likewise.
34998         (emit_note_insn_var_location): For onepart variables if
34999         cur_loc is a VOIDmode constant, use DECL_MODE.
35000
35001 2010-03-18  Martin Jambor  <mjambor@suse.cz>
35002
35003         PR middle-end/42450
35004         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
35005         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
35006         all non-clones.  Moved call redirection...
35007         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
35008         (cgraph_materialize_all_clones): Dispose of all
35009         combined_args_to_skip bitmaps.
35010         (verify_cgraph_node): Do not check for edges pointing to wrong
35011         nodes in inline clones.
35012         * tree-inline.c (copy_bb): Call
35013         cgraph_redirect_edge_call_stmt_to_callee.
35014         * ipa.c (cgraph_remove_unreachable_nodes): Call
35015         cgraph_node_remove_callees even when there are used clones.
35016
35017 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
35018
35019         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
35020
35021 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
35022
35023         PR target/43383
35024         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
35025         for 32bit.
35026
35027 2010-03-18  Michael Matz  <matz@suse.de>
35028
35029         PR middle-end/43419
35030         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
35031         into sqrt(x) if we need to preserve signed zeros.
35032
35033 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
35034             Eric Botcazou  <ebotcazou@adacore.com>
35035
35036         PR rtl-optimization/43360
35037         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
35038         note if we don't know its invariant status.
35039
35040 2010-03-18  Michael Matz  <matz@suse.de>
35041
35042         PR tree-optimization/43402
35043         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
35044         PHI chains of ssa names registered for update.
35045
35046 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
35047
35048         PR target/42427
35049         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
35050         non-offsettable and pre_modify update addressing.
35051         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
35052         and "2" alternatives "#".
35053         (*movdd_softfloat32): Make all alternatives "#";
35054         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
35055         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
35056         (*movdf_softfloat32): Make all alternatives "#";
35057         (movdi): Use the new DIFD mode iterator to create a common splitter
35058         for movdi, movdf and movdd patterns.
35059
35060 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
35061
35062         * common.opt (dumpdir): Remove redundant tab.
35063
35064 2010-03-17  Martin Jambor  <mjambor@suse.cz>
35065
35066         PR tree-optimization/43347
35067         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
35068         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
35069
35070 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
35071
35072         PR rtl-optimization/42216
35073         * regrename.c (create_new_chain): New function, broken out from...
35074         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
35075         appending a use to an empty chain.
35076         (build_def_use): Remove previous changes that convert OP_INOUT to
35077         OP_OUT operands; instead detect the case where an OP_INOUT operand
35078         uses a previously untracked register and create an empty chain for it.
35079
35080 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35081
35082         * doc/extend.texi (Function Attributes): Rewrite unfinished
35083         sentence in ms_abi documentation.
35084
35085 2010-03-17  Alan Modra  <amodra@gmail.com>
35086
35087         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
35088         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
35089         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
35090         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
35091
35092 2010-03-16  Richard Henderson  <rth@redhat.com>
35093
35094         PR middle-end/43365
35095         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
35096         (lower_try_finally): Save and restore eh_seq around the expansion
35097         of the try-finally.
35098
35099 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
35100
35101         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
35102         statements before splitting block.
35103
35104 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35105
35106         * doc/sourcebuild.texi (Testsuites): Fix markup.
35107         Use pathnames relative to gcc/testsuite.
35108         (Test Directives): Move description of how timeout is determined.
35109         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
35110         (C Tests): Correct gcc.misc-tests directory.
35111         Framework tests now live in gcc.test-framework.
35112
35113 2010-03-16  Richard Guenther  <rguenther@suse.de>
35114
35115         PR middle-end/43379
35116         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
35117         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
35118
35119 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
35120             Alexandre Oliva  <aoliva@redhat.com>
35121
35122         PR tree-optimization/42917
35123         * lambda-code.c (remove_iv): Skip debug statements.
35124         (lambda_loopnest_to_gcc_loopnest): Likewise.
35125         (not_interesting_stmt): Debug statements are not interesting.
35126
35127 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
35128
35129         PR debug/43051
35130         PR debug/43092
35131         * cselib.c (cselib_preserve_constants,
35132         cfa_base_preserved_val): New static variables.
35133         (preserve_only_constants): New function.
35134         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
35135         clear its REG_VALUES.  If cselib_preserve_constants, don't
35136         empty the whole hash table, but preserve there VALUEs with constants,
35137         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
35138         (cselib_preserve_cfa_base_value): New function.
35139         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
35140         (cselib_init): Change argument to int bitfield.  Set
35141         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
35142         is in it.
35143         (cselib_finish): Clear cselib_preserve_constants and
35144         cfa_base_preserved_val.
35145         * cselib.h (enum cselib_record_what): New enum.
35146         (cselib_init): Change argument to int.
35147         (cselib_preserve_cfa_base_value): New prototype.
35148         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
35149         * dse.c (dse_step1): Likewise.
35150         * cfgcleanup.c (thread_jump): Likewise.
35151         * sched-deps.c (sched_analyze): Likewise.
35152         * gcse.c (local_cprop_pass): Likewise.
35153         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
35154         If FN is non-NULL, call the callback always and whenever it returns
35155         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
35156         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
35157         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
35158         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
35159         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
35160         * var-tracking.c: Include recog.h.
35161         (bb_stack_adjust_offset): Remove.
35162         (vt_stack_adjustments): Don't call it, instead just gather the
35163         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
35164         (adjust_stack_reference): Remove.
35165         (compute_cfa_pointer): New function.
35166         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
35167         (struct adjust_mem_data): New type.
35168         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
35169         functions.
35170         (get_address_mode): New function.
35171         (replace_expr_with_values): Use it.
35172         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
35173         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
35174         (adjust_sets): Remove.
35175         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
35176         Use get_address_mode.
35177         (get_adjusted_src): Remove.
35178         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
35179         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
35180         (add_with_sets): Don't call adjust_sets.
35181         (fp_setter, vt_init_cfa_base): New functions.
35182         (vt_initialize): Change return type to bool.  Move most of pool etc.
35183         initialization to the beginning of the function from end.  Pass
35184         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
35185         If !frame_pointer_needed, call vt_stack_adjustment before mos
35186         vector is filled, call vt_init_cfa_base if argp/framep has been
35187         eliminated to sp.  If frame_pointer_needed and argp/framep has
35188         been eliminated to hard frame pointer, set
35189         hard_frame_pointer_adjustment and call vt_init_cfa_base after
35190         encountering fp setter in the prologue.  For MO_ADJUST, call
35191         log_op_type before pusing the op into mos vector, not afterwards.
35192         Call adjust_insn before cselib_process_insn/add_with_sets,
35193         call cancel_changes (0) afterwards.
35194         (variable_tracking_main_1): Adjust for vt_initialize calling
35195         vt_stack_adjustments and returning whether it succeeded or not.
35196
35197 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
35198
35199         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
35200         debug statements.
35201
35202 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
35203
35204         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
35205         has been set.
35206         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
35207         drap_reg has not been set.
35208
35209 2010-03-15  Michael Matz  <matz@suse.de>
35210
35211         PR middle-end/43300
35212         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
35213         use it to expand block copies.
35214         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
35215         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
35216         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
35217
35218 2010-03-15  Richard Guenther  <rguenther@suse.de>
35219
35220         PR tree-optimization/43367
35221         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
35222         elimination check.
35223
35224 2010-03-15  Richard Guenther  <rguenther@suse.de>
35225
35226         PR tree-optimization/43317
35227         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
35228
35229 2010-03-15  Martin Jambor  <mjambor@suse.cz>
35230
35231         PR tree-optimization/43141
35232         * tree-sra.c (create_abstract_origin): New function.
35233         (modify_function): Call create_abstract_origin.
35234
35235 2010-03-15  Chris Demetriou  <cgd@google.com>
35236
35237         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
35238         wasn't copied.
35239
35240 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35241
35242         PR middle-end/43354
35243         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
35244         call insert_out_of_ssa_copy for default definitions.
35245
35246 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35247
35248         * graphite-clast-to-gimple.c (my_long_long): Defined.
35249         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
35250         * graphite-sese-to-poly.c (my_long_long): Defined.
35251         (scop_ivs_can_be_represented): Use it.
35252
35253 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35254
35255         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
35256         graphite-max-bbs-per-function, and loop-block-tile-size.
35257         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
35258         with "maximum".
35259         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
35260
35261 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35262
35263         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
35264         forward declaration.
35265         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
35266         (add_upper_bounds_from_estimated_nit): New.
35267         (build_loop_iteration_domains): Use it.
35268
35269 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35270
35271         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
35272
35273 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35274
35275         PR middle-end/43306
35276         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
35277         should be an INTEGER_CST.  Also handle CASE_CONVERT.
35278
35279 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35280
35281         * graphite.c (graphite_initialize): To bound the number of bbs per
35282         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
35283         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
35284         * doc/invoke.texi: Document it.
35285
35286 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35287
35288         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
35289         * graphite-sese-to-poly.h (build_poly_scop): Same.
35290
35291 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35292
35293         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
35294         the number of parameters in the scop.  Use as an upper bound
35295         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
35296         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
35297         * doc/invoke.texi: Document it.
35298
35299 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
35300
35301         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
35302         * doc/c-tree.texi: Remove.
35303         * doc/generic.texi: Merge c-tree.texi here.
35304         * doc/gccint.texi (Trees): Remove menu entry.
35305         (c-tree.texi): Remove @include.
35306         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
35307         * doc/languages.texi (Reading RTL): Ditto.
35308
35309 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
35310
35311         PR target/42869
35312         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
35313
35314 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
35315
35316         PR middle-end/42431
35317         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
35318         code added to work around reload clobbering CONST insns.
35319
35320 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
35321
35322         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
35323         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
35324         (cselib_preserve_only_values): Remove retain argument, don't
35325         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
35326         * cselib.h (cselib_preserve_only_values): Remove retain argument.
35327         * var-tracking.c (micro_operation): Move insn field before union.
35328         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
35329         (struct variable_tracking_info_def): Remove n_mos field, change
35330         mos into a vector of micro_operations.
35331         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
35332         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
35333         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
35334         changing into a vector.
35335         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
35336         come before all other uops generated by add_stores.
35337         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
35338         argument removal.
35339         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
35340         a vector.  Run just one pass over the bbs instead of separate counting
35341         and computation phase.
35342         (vt_finalize): Free VTI (bb)->mos vector instead of array.
35343
35344         PR debug/43329
35345         * tree-inline.c (remap_decls): Put old_var rather than origin_var
35346         into *nonlocalized_list vector.
35347         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
35348         even if origin is non-NULL.
35349         (gen_variable_die): Likewise.
35350         (process_scope_var): Don't change origin.
35351         (gen_decl_die): Likewise.
35352         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
35353         before adding new edges instead of after it, fix moving over
35354         debug stmts.
35355
35356 2010-03-11  David S. Miller  <davem@davemloft.net>
35357
35358         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
35359         of four.
35360         * configure: Rebuild.
35361
35362 2010-03-11  Martin Jambor  <mjambor@suse.cz>
35363
35364         PR tree-optimization/43257
35365         * tree.c (assign_assembler_name_if_neeeded): New function.
35366         (free_lang_data_in_cgraph): Assembler name assignment moved to the
35367         above new function.
35368         * tree.h (assign_assembler_name_if_neeeded): Declare.
35369         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
35370         the function if needed.
35371
35372 2010-03-11  Chris Demetriou  <cgd@google.com>
35373
35374         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
35375         include/stdint-gcc.h, and include/stdint.h world-readable.
35376
35377 2010-03-11  Richard Guenther  <rguenther@suse.de>
35378
35379         PR tree-optimization/43255
35380         * tree-vrp.c (process_assert_insertions_for): Do not insert
35381         asserts for trivial conditions.
35382
35383 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35384
35385         PR tree-optimization/43280
35386         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
35387         generation.  Move calculation of size out of the if branch.
35388         (find_bswap): Modify compare number generation.
35389
35390 2010-03-11  Richard Guenther  <rguenther@suse.de>
35391
35392         PR lto/43200
35393         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
35394         (input_gimple_stmt): Fixup handled component types during
35395         operand read.  Also fix up decls in ADDR_EXPRs.
35396
35397 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
35398
35399         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
35400         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
35401
35402 2010-03-10  Jan Hubicka  <jh@suse.cz>
35403
35404         PR c/43288
35405         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
35406         * varasm.c (get_variable_section): Don't do that here...
35407         (make_decl_rtl): ... and here.
35408         (do_assemble_alias): Produce decl RTL.
35409         (assemble_alias): Likewise.
35410
35411 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
35412
35413         PR debug/43290
35414         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
35415         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
35416         of fde->vdrap_reg.
35417         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
35418         (based_loc_descr): Only express drap or vdrap regno based expressions
35419         using DW_OP_fbreg when not optimizing.
35420         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
35421         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
35422         REG_CFA_SET_VDRAP note.
35423
35424 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
35425
35426         PR tree-optimization/43236
35427         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
35428         error in calculation of base address in reverse iteration case.
35429         (generate_builtin): Take number of latch executions if the statement
35430         is in the latch.
35431
35432 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
35433
35434         PR middle-end/42859
35435         * tree-eh.c: Include pointer-set.h.
35436         (lower_eh_dispatch): Filter out duplicate case labels and
35437         remove the unneeded edge when the label is unused.  Return
35438         true when some edges are removed.
35439         (execute_lower_eh_dispatch): When any lowering resulted in
35440         removing an edge, also delete unreachable blocks.
35441
35442 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
35443
35444         PR bootstrap/43287
35445         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
35446         UNSPEC_MACHOPIC_OFFSET.
35447
35448 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
35449
35450         PR target/43294
35451         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
35452         (m68k_delegitimize_address): New function.
35453
35454 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
35455
35456         PR debug/43299
35457         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
35458
35459         PR debug/43299
35460         * var-tracking.c (adjust_sets): New function.
35461         (count_with_sets, add_with_sets): Use it.
35462         (get_adjusted_src): New inline function.
35463         (add_stores): Use it.
35464
35465         PR debug/43304
35466         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
35467         call cselib_dummy_expand_value_rtx_cb instead of
35468         cselib_expand_value_rtx_cb.
35469
35470         PR debug/43293
35471         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
35472         * config/i386/i386.c: Include debug.h and dwarf2out.h.
35473         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
35474         and .cfi_endproc around the pic thunks.
35475         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
35476         all queued unwind info register saves are saved before the call.
35477         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
35478         considered as sp-=4 for unwind info and the pop as sp+=4 which
35479         also clobbers dest, but doesn't actually restore it.
35480
35481         PR debug/43290
35482         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
35483         RTX_FRAME_RELATED_P.
35484
35485 2010-03-09  Jie Zhang  <jie@codesourcery.com>
35486
35487         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
35488         whitespaces in output template.
35489
35490 2010-03-09  Jie Zhang  <jie@codesourcery.com>
35491
35492         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
35493         out array boundary.
35494
35495 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
35496
35497         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
35498         builtins.exp in a separate job.
35499
35500 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35501
35502         * graphite-sese-to-poly.c (add_param_constraints): Use
35503         lower_bound_in_type and upper_bound_in_type.
35504
35505 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35506
35507         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
35508         instead of unsigned_type_node.
35509
35510 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35511             Reza Yazdani  <reza.yazdani@amd.com>
35512
35513         PR middle-end/43065
35514         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
35515         on pointer type parameters.
35516
35517 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
35518
35519         PR middle-end/42644
35520         PR middle-end/42130
35521         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
35522         handle conversions from pointer to integers.
35523         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
35524         induction variable, to be able to work with code generated by CLooG.
35525         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
35526         (build_poly_scop): Bail out if we cannot codegen a loop.
35527
35528 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
35529
35530         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
35531         code generation with gloog_error.
35532
35533 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35534
35535         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
35536         Call fold_convert on all the returned values.
35537         (expand_scalar_variables_expr): Pass to
35538         expand_scalar_variables_ssa_name the type of the resulting expression.
35539
35540 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35541
35542         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
35543         ppl_min_for_le_pointset.
35544         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
35545         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
35546
35547 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35548
35549         * graphite-dependences.c (map_into_dep_poly): Removed.
35550         (dependence_polyhedron_1): Use combine_context_id_scat.
35551
35552 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35553
35554         * graphite-poly.h (struct poly_scattering): Add layout documentation.
35555         (struct poly_bb): Same.
35556         (combine_context_id_scat): New.
35557
35558 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35559
35560         PR middle-end/42326
35561         * sese.c (name_defined_in_loop_p): Return false for default
35562         definitions.
35563
35564 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35565
35566         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
35567         and clean up the logic.
35568
35569 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35570
35571         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
35572         early return.
35573
35574 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
35575
35576         * var-tracking.c (remove_cselib_value_chains): Define only for
35577         ENABLE_CHECKING.
35578         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
35579         delete_slot_part, emit_notes_for_differences_1): Don't call
35580         remove_cselib_value_chains here.
35581         (set_slot_part, emit_notes_for_differences_2): Don't call
35582         add_cselib_value_chains here.
35583         (preserved_values): New vector.
35584         (preserve_value): New function.
35585         (add_uses, add_stores, vt_add_function_parameters): Use it
35586         instead of cselib_preserve_value.
35587         (changed_values_stack): New vector.
35588         (check_changed_vars_0): New function.
35589         (check_changed_vars_1, check_changed_vars_2): Use it.
35590         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
35591         changed_values_stack VALUEs.
35592         (vt_emit_notes): For all preserved_values call
35593         add_cselib_value_chains.  If ENABLE_CHECKING call
35594         remove_cselib_value_chains before verifying value_chains is empty.
35595         Initialize and free changed_values_stack.
35596         (vt_initialize): Initialize preserved_values.
35597         (vt_finalize): Free preserved_values.
35598
35599 2010-03-08  Richard Guenther  <rguenther@suse.de>
35600
35601         PR tree-optimization/43269
35602         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
35603         region detection.
35604
35605 2010-03-08  Martin Jambor  <mjambor@suse.cz>
35606
35607         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
35608         (ipa_is_param_called): Removed.
35609         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
35610         (ipa_print_node_params): Do not print the called flag.
35611         (ipa_write_node_info): Do not stream the called flag.
35612         (ipa_read_node_info): Likewise.
35613
35614 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
35615
35616         PR debug/43176
35617         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
35618         * cselib.c (struct expand_value_data): Add dummy field.
35619         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
35620         dummy to false.
35621         (cselib_dummy_expand_value_rtx_cb): New function.
35622         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
35623         any rtl.
35624         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
35625         * var-tracking.c: Include pointer-set.h.
35626         (variable): Change n_var_parts to char from int.  Add
35627         cur_loc_changed and in_changed_variables fields.
35628         (variable_canonicalize): Remove.
35629         (shared_var_p): New inline function.
35630         (unshare_variable): Maintain cur_loc_changed and
35631         in_changed_variables fields.  If var was in changed_variables,
35632         replace it there with new_var.  Just copy cur_loc instead of
35633         resetting it to something else.
35634         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
35635         (dataflow_set_union): Don't call variable_canonicalize.
35636         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
35637         of their DEBUG_EXPR_TREE_DECLs.
35638         (canonicalize_loc_order_check): Verify that cur_loc is NULL
35639         and in_changed_variables and cur_loc_changed is false.
35640         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
35641         and cur_loc_changed.  Don't update cur_loc here.
35642         (variable_merge_over_src): Don't call variable_canonicalize.
35643         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
35644         removing loc that is equal to cur_loc, clear cur_loc,
35645         set cur_loc_changed and ensure variable_was_changed is called.
35646         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
35647         compare pointers in cur_loc check, if it is equal to loc,
35648         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
35649         (variable_different_p): Remove compare_current_location argument,
35650         don't compare cur_loc.
35651         (dataflow_set_different_1): Adjust variable_different_p caller.
35652         (variable_was_changed): If dv had some var in changed_variables
35653         already, reset in_changed_variables flag for it and propagate
35654         cur_loc_changed over to the new variable.  On empty var
35655         always set cur_loc_changed.  Set in_changed_variables on whatever
35656         var is added to changed_variables.
35657         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
35658         Use shared_var_p.  When removing loc that is equal to cur_loc,
35659         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
35660         end, don't set it to something else, just call variable_was_changed.
35661         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
35662         loc being removed, clear cur_loc and set cur_loc_changed.
35663         Set cur_loc_changed if all locations have been removed.
35664         (struct expand_loc_callback_data): New type.
35665         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
35666         allocated.  Always create SUBREGs if simplify_subreg failed.
35667         Prefer to use cur_loc, when that fails and still in
35668         changed_variables (and seen first time) recompute it.  Set
35669         cur_loc_changed of variables which had to change cur_loc and
35670         compute elcd->cur_loc_changed if any of the subexpressions used
35671         had to change cur_loc.
35672         (vt_expand_loc): Adjust to pass arguments in
35673         expand_loc_callback_data structure.
35674         (vt_expand_loc_dummy): New function.
35675         (emitted_notes): New variable.
35676         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
35677         that weren't used for any other decl in current
35678         emit_notes_for_changes call call vt_expand_loc_dummy to update
35679         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
35680         first loc_chain location if NULL before.  Always use just
35681         cur_loc instead of first loc_chain location.  When cur_loc_changed
35682         is false, when not --enable-checking=rtl just don't emit any note.
35683         When rtl checking, compute the note and assert it is the same
35684         as previous note.  Clear cur_loc_changed and in_changed_variables
35685         at the end before removing from changed_variables.
35686         (check_changed_vars_3): New function.
35687         (emit_notes_for_changes): Traverse changed_vars to call
35688         check_changed_vars_3 on each changed var.
35689         (emit_notes_for_differences_1): Clear cur_loc_changed and
35690         in_changed_variables.  Recompute cur_loc of new_var.
35691         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
35692         (vt_emit_notes): Initialize and destroy emitted_notes.
35693
35694 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
35695
35696         PR rtl-optimization/42220
35697         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
35698         Use verify_reg_tracked to determine if we should use OP_OUT rather
35699         than OP_INOUT.
35700         (build_def_use): If we see an in-out operand for a register that we
35701         know nothing about, treat is an output if possible, fail the block if
35702         not.
35703
35704 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35705
35706         PR debug/42897
35707         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
35708         permanently.
35709
35710 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35711
35712         PR debug/42897
35713         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
35714         uses of relevant DEFs that are dead outside the loop too.
35715
35716 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35717
35718         * var-tracking.c (dataflow_set_merge): Swap src and src2.
35719         Reverted:
35720         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
35721         PR debug/41371
35722         * var-tracking.c (values_to_unmark): New variable.
35723         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35724         values_to_unmark vector.  Moved body to...
35725         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
35726         instead queue it into values_to_unmark vector.
35727         (vt_find_locations): Free values_to_unmark vector.
35728
35729 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
35730
35731         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
35732         (site.exp): Export them when plugins are enabled.
35733
35734 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
35735
35736         PR middle-end/42326
35737         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
35738         that contain scevs.
35739         (chrec_fold_multiply): Same.
35740
35741 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
35742
35743         PR c/43248
35744         * c-decl.c (build_compound_literal): Return early if init is
35745         an error_mark_node.
35746
35747 2010-03-04  Martin Jambor  <mjambor@suse.cz>
35748
35749         PR tree-optimization/43164
35750         PR tree-optimization/43191
35751         * tree-sra.c (type_consists_of_records_p): Reject records with
35752         zero-size bit-fields at the end.
35753
35754 2010-03-04  Mike Stump  <mikestump@comcast.net>
35755
35756         * Makefile.in (TAGS): Remove *.y.
35757
35758 2010-03-04  Richard Guenther  <rguenther@suse.de>
35759
35760         PR tree-optimization/40761
35761         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
35762         in reverse order.
35763         (my_rev_post_order_compute): New function.
35764         (init_pre): Call it.
35765
35766 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
35767
35768         PR middle-end/43209
35769         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
35770         decrease the cost of an IV candidate when the cost is infinite.
35771
35772 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35773
35774         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
35775         Use '3DNow!' for the extension of that name, ensure normal space
35776         after the string.
35777         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
35778
35779 2010-03-03  Jeff Law  <law@redhat.com>
35780
35781         * PR middle-end/32693
35782         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
35783         than gen_rtx_SUBREG.
35784         (extract_bit_field_1): Likewise.
35785
35786 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
35787
35788         * doc/sourcebuild.texi (Test directives): Document that arguments
35789         include-opts and exclude-opts are now optional for dg-skip-if,
35790         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
35791
35792 2010-03-03  Jason Merrill  <jason@redhat.com>
35793
35794         PR c++/12909
35795         * cgraph.h (varpool_node): Add extra_name field.
35796         * varpool.c (varpool_extra_name_alias): New.
35797         (varpool_assemble_decl): Emit extra name aliases.
35798         (varpool_mark_needed_node): Look past an extra name alias.
35799         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
35800         * lto-streamer-in.c (lto_input_tree): Read it.
35801         * lto-streamer-out.c (output_unreferenced_globals): Write it.
35802
35803 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35804
35805         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
35806         (sparc*-*-solaris2*): ...this.
35807
35808 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
35809
35810         PR debug/43229
35811         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
35812         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
35813         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
35814         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
35815
35816         PR debug/43237
35817         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
35818         fallthrough to default handling, just with want_address 0 instead of 2.
35819         For single element lists, add_AT_loc directly, otherwise create an
35820         artificial variable DIE and stick location list to it.
35821
35822         PR debug/43177
35823         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
35824         (VAL_EXPR_HAS_REVERSE): Define.
35825         (reverse_op): New function.
35826         (add_stores): For reversible operations add an extra MO_VAL_USE.
35827
35828 2010-03-02  Jason Merrill  <jason@redhat.com>
35829
35830         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
35831
35832 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
35833
35834         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
35835         (sparc64-*-linux*): Likewise.
35836         (sparc64-*-solaris2*): Include assembler files before linker ones.
35837         (sparc-*-solaris2*): Simplify and reorder to match previous case.
35838         * config/sparc/gas.h: Delete.
35839         * config/sparc/sol2-64.h: Add copyright notice.
35840         * config/sparc/sol2-gas-bi.h: Likewise.
35841         * config/sparc/sol2-gld.h: Likewise.
35842         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
35843         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
35844         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
35845         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
35846         (sparc_elf_asm_named_section): Rename into...
35847         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
35848
35849 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
35850
35851         * config/alpha/alpha.c (override_options): Fix -mtune error message.
35852
35853 2010-03-02  Jeff Law  <law@redhat.com>
35854
35855         PR middle-end/42431
35856         * reload1.c (rtx_p, substitute_stack): Declare.
35857         (substitute): Record addresses of changed rtxs.
35858         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
35859         Restore the original rtx when complete.
35860         (reload): Free subsitute_stack when complete.
35861
35862 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
35863
35864         * doc/gccint.texi (menu): Add Testsuites as a chapter.
35865         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
35866         new chapter.
35867         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
35868         LTO Testing, gcov Testing, profopt Testing, compat Testing,
35869         Torture Tests): Change from subsection to section.
35870
35871 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
35872             Steven Bosscher  <steven@gcc.gnu.org>
35873
35874         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
35875         instead of bb.
35876
35877 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
35878
35879         PR middle-end/42640
35880         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
35881         the assignment from the new induction variable to the assignment
35882         of the value from the original loop PHI function.
35883
35884 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
35885             Daniel Jacobowitz  <dan@codesourcery.com>
35886
35887         * doc/sourcebuild.texi (Test directives): Clarify options to
35888         dg-skip-if.
35889
35890 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35891
35892         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
35893         Disable cfi directives unless GCC and gas agree on using read-only
35894         .eh_frame sections for 64-bit.
35895         * configure: Regenerate.
35896
35897 2010-03-01  Richard Guenther  <rguenther@suse.de>
35898
35899         PR tree-optimization/43220
35900         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
35901         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
35902
35903 2010-03-01  Richard Guenther  <rguenther@suse.de>
35904             Martin Jambor  <mjambor@suse.cz>
35905
35906         PR middle-end/41250
35907         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
35908         gimplified parameters.
35909
35910 2010-03-01  Christian Bruel  <christian.bruel@st.com>
35911
35912         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
35913
35914 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
35915
35916         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
35917
35918 2010-03-01  Richard Guenther  <rguenther@suse.de>
35919
35920         PR middle-end/43213
35921         * expr.c (expand_assignment): Use the alias-oracle to tell
35922         if the rhs aliases the result decl.
35923
35924 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35925
35926         PR pch/14940
35927         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
35928         to sol_gt_pch_get_address.
35929         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
35930         64-bit, SPARC and x86.
35931         (sol_gt_pch_get_address): New function.
35932
35933 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
35934
35935         * toplev.h (inform_n, error_n): Declare.
35936         * diagnostic.c (inform_n, error_n): New function.
35937
35938 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
35939
35940         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
35941         has no rtl yet when processing local_decls, queue it and recheck
35942         if deferred stack allocation hasn't assigned it rtl.
35943
35944 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
35945
35946         * config/sh/sh.c (unspec_bbr_uid): New.
35947         (gen_block_redirect): Use it instead of INSN_UID.
35948         (gen_far_branch): Likewise.
35949
35950 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
35951
35952         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
35953         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
35954
35955 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35956
35957         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
35958         (Warning Options): -Wno-conversion-null is valid for
35959         Objective-C++ as well.
35960         * doc/tm.texi (Named Address Spaces): Likewise.
35961         * doc/plugins.texi (Plugins): Replace TABs with spaces.
35962         * doc/tree-ssa.texi (Tree SSA): Likewise.
35963
35964 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35965
35966         PR bootstrap/43202
35967         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
35968         by default.  Don't set the default arch for
35969         i[34567]86-*-darwin*|x86_64-*-darwin*.
35970
35971 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35972
35973         PR bootstrap/43202
35974         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
35975         default.  Set the default 32bit/64bit archs with $with_arch
35976         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
35977
35978 2010-02-27  Richard Guenther  <rguenther@suse.de>
35979
35980         PR tree-optimization/43186
35981         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
35982         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
35983         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
35984         unroller iterations.
35985
35986 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35987
35988         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
35989         required and i[34567]86-*-* targets don't support 64bit ISA.
35990
35991 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
35992
35993         PR ada/43096
35994         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35995         the same alias set.
35996
35997 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35998
35999         * config.gcc: Set the default arch at least to Prescott for
36000         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
36001         if SSE math is enabled.
36002
36003 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36004
36005         * diagnostic.c (diagnostic_initialize): Update.
36006         (diagnostic_report_diagnostic): Test inhibit_notes_p for
36007         informative notes.
36008         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
36009         (diagnostic_inhibit_notes): New.
36010         * toplev.c (process_options): inhibit notes with -fcompare-debug.
36011
36012 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36013
36014         PR c/20631
36015         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
36016         * doc/standards.texi: Likewise.
36017         * doc/extend.texi: Likewise.
36018         * doc/trouble.texi: Likewise.
36019         * doc/cppopts.texi: Likewise.
36020         * doc/install.texi: Likewise.
36021         * c.opt (std=c90,std=gnu90): New options.
36022         * c-opts.c (c_common_handle_option): Handle them.
36023
36024 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36025
36026         PR c/24577
36027         * c-decl.c (undeclared_variable): Use an informative note.
36028
36029 2010-02-26  Richard Guenther  <rguenther@suse.de>
36030
36031         PR tree-optimization/43186
36032         * gimple.h (gimple_fold): Remove.
36033         * gimple.c (gimple_fold): Remove.  Inline into single user ...
36034         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
36035         Try harder for conditions.
36036
36037 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
36038
36039         PR debug/43190
36040         * function.c (used_types_insert): Don't skip through named pointer
36041         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
36042         and it is different from the main variant's type.
36043
36044 2010-02-26  Nick Clifton  <nickc@redhat.com>
36045
36046         * config/rx/rx.md (sminsi3): Remove bogus alternative.
36047
36048 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
36049
36050         * config.gcc: Support --with-fpmath=sse for x86.
36051
36052         * config/i386/ssemath.h: New.
36053
36054         * doc/install.texi (--with-fpmath=sse): Documented.
36055
36056 2010-02-26  Richard Guenther  <rguenther@suse.de>
36057
36058         PR tree-optimization/43188
36059         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
36060         vector types of over-aligned element type.
36061
36062 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
36063
36064         PR target/43175
36065         * config/i386/i386.c (expand_vec_perm_blend): Use correct
36066         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
36067
36068 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
36069
36070         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
36071
36072 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
36073
36074         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
36075         * var-tracking.c: Include diagnostic.h.
36076         (debug_dv): New function.
36077         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
36078
36079         PR debug/43160
36080         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
36081         (add_value_chain, add_value_chains, remove_value_chain,
36082         remove_value_chains): Handle DEBUG_EXPRs.
36083         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
36084
36085         PR debug/43161
36086         * regcprop.c (struct queued_debug_insn_change): New type.
36087         (struct value_data_entry): Add debug_insn_changes field.
36088         (struct value_data): Add n_debug_insn_changes field.
36089         (debug_insn_changes_pool): New variable.
36090         (free_debug_insn_changes, apply_debug_insn_changes,
36091         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
36092         (kill_value_one_regno): Call free_debug_insn_changes if needed.
36093         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
36094         fields.
36095         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
36096         changes for them.
36097         (copyprop_hardreg_forward_1): Don't call apply_change_group for
36098         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
36099         changes, call cprop_find_used_regs via note_stores.
36100         (copyprop_hardreg_forward): When copying vd from predecessor
36101         which has any queued DEBUG_INSN changes, make sure the pointers are
36102         cleared.  At the end call df_analyze and then if there are any
36103         DEBUG_INSN changes queued at the end of some basic block for still
36104         live registers, apply them.
36105         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
36106
36107 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
36108
36109         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
36110         (arm*-*-*): Ditto.
36111
36112 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
36113
36114         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
36115         targets.  Set the default with_cpu/with_arch from arch/cpu.
36116         Allow x86-64 and native for with_cpu/with_arch.
36117
36118 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
36119
36120         * ebitmap.c: Change calls to verify_popcount with calls to
36121         sbitmap_verify_popcount.
36122         (ebitmap_clear_bit): Fixed map->cacheindex test and
36123         map>cache update when bit clearing results in an empty
36124         element.
36125
36126 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
36127
36128         PR target/43154
36129         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
36130         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
36131         and support both V2DF and V2DI modes.
36132         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
36133         support both V2DF and V2DI modes.
36134         (general): Delete trailing whitespace from a few patterns.
36135
36136         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36137         V2DF/V2DI interleave high/low builtins.
36138
36139         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
36140         new VSX builtins.
36141
36142         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
36143         interleave high/low functions.
36144
36145 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
36146
36147         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
36148         #pragma extern_prefix.
36149
36150 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
36151
36152         PR debug/43166
36153         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
36154         BLKmode, assert op0 is a MEM and just adjust its mode.
36155
36156         PR debug/43165
36157         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
36158         if bitpos isn't multiple of mode's bitsize.
36159
36160 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36161
36162         * c.opt (-ftemplate-depth=): New.
36163         (-ftemplate-depth-): Deprecate.
36164         * optc-gen.awk: Handle -ftemplate-depth=.
36165         * opth-gen.awk: Likewise.
36166         * c-opts.c (c_common_handle_option): Likewise.
36167         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
36168
36169 2010-02-24  Jason Merrill  <jason@redhat.com>
36170
36171         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
36172
36173 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36174
36175         * cfg.c (alloc_aux_for_block): Remove inline.
36176         (alloc_aux_for_edge): Likewise.
36177
36178 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36179
36180         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
36181
36182 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36183
36184         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
36185         * config/i386/sol2-gas.h: New file.
36186         * config.gcc (i[34567]86-*-solaris2*): Use it.
36187
36188 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36189
36190         PR c/43128
36191         * c-typeck.c (ep_convert_and_check): New.
36192         (build_conditional_expr): Use it.
36193         (build_binary_op): Likewise.
36194
36195 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
36196
36197         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
36198
36199         PR debug/43150
36200         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
36201         bounds even for -O+.
36202         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
36203         expr needs to have DECL_NAME set.
36204
36205 2010-02-24  Nick Clifton  <nickc@redhat.com>
36206
36207         * config/mep/mep.c: Include gimple.h.
36208         (mep_function_uses_sp): Delete unused function.
36209         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
36210         parameters.  Use unsigned integers to count args.  Return a
36211         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
36212
36213 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36214
36215         PR target/43107
36216         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
36217         greater or equal to nelt instead of 2 * nelt.
36218         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
36219         with nelt - 1.
36220
36221 2010-02-23  Jason Merrill  <jason@redhat.com>
36222
36223         PR debug/42800
36224         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
36225         in cfun->local_decls even if they have register types.
36226
36227         PR c++/42837
36228         * stor-layout.c (place_field): Don't warn about unnecessary
36229         DECL_PACKED if the type is packed.
36230
36231 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36232
36233         PR target/43139
36234         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
36235         GOTOFF relocs, even when the base reg isn't pic pointer.
36236
36237 2010-02-23  Michael Matz  <matz@suse.de>
36238
36239         PR debug/43077
36240         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
36241         (expand_gimple_basic_block): Generate and use debug temps if there
36242         are debug uses left after the last real use of TERed ssa names.
36243         Unlink debug immediate uses when they are expanded.
36244
36245 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36246
36247         PR 43123
36248         * config/i386/i386.c (override_options): Reorganise to provide
36249         better error messages.
36250
36251 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36252
36253         PR middle-end/43083
36254         * graphite-scop-detection.c (create_single_exit_edge): Move
36255         the call to find_single_exit_edge to....
36256         (create_sese_edges): ...here.  Don't handle multiple edges
36257         exiting the function.
36258         (build_graphite_scops): Don't handle multiple edges
36259         exiting the function.
36260
36261 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36262
36263         PR middle-end/43097
36264         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
36265         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
36266
36267 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36268
36269         PR middle-end/43026
36270         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
36271
36272 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36273
36274         PR c++/43126
36275         * c-typeck.c (convert_arguments): Print declaration location.
36276         * c-common.c (validate_nargs): Rename as
36277         builtin_function_validate_nargs.
36278         (check_builtin_function_arguments): Update.
36279
36280 2010-02-22  Richard Guenther  <rguenther@suse.de>
36281
36282         PR lto/43045
36283         * tree-inline.c (declare_return_variable): Use the type of
36284         the call stmt lhs if available.
36285
36286 2010-02-22  Duncan Sands  <baldrick@free.fr>
36287
36288         * passes.c (register_pass): Always consider all pass lists when
36289         ref_pass_instance_number is zero.
36290
36291 2010-02-22  Richard Guenther  <rguenther@suse.de>
36292
36293         PR tree-optimization/42749
36294         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
36295         parameter.  Do arithmetic in the original type.
36296         (update_accumulator_with_ops): Likewise.
36297         (adjust_accumulator_values): Adjust.
36298
36299 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36300
36301         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
36302         (QI to BLKmode splitter): New splitter.
36303
36304 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
36305
36306         * config/i386/i386.c (initial_ix86_tune_features): Turn on
36307         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
36308
36309 2010-02-22  Richard Guenther  <rguenther@suse.de>
36310
36311         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
36312
36313 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
36314
36315         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
36316         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
36317         ($(T)crti.o, $(T)crtn.o): Remove rules.
36318
36319 2010-02-21  Tobias Burnus  <burnus@net-b.de>
36320
36321         PR fortran/35259
36322         * doc/invoke.texi (-fassociative-math): Document that this
36323         option is automatically enabled for Fortran.
36324
36325 2010-02-20  David S. Miller  <davem@davemloft.net>
36326
36327         * configure.ac: Test if linker and assembler properly support
36328         GOTDATA_OP relocations.
36329         * configure: Rebuild.
36330         * config.in: Likewise.
36331         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
36332         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
36333         (movsi_high_pic): Likewise.
36334         (movdi_lo_sum_pic): Likewise.
36335         (movdi_high_pic): Likewise.
36336         (movsi_pic_gotdata_op): New pattern.
36337         (movdi_pic_gotdata_op): Likewise.
36338         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
36339         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
36340
36341 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
36342
36343         PR target/43067
36344         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
36345         attribute to ssemul.
36346         (xop_mulv2div2di3_high): Ditto.
36347
36348 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36349
36350         PR c++/35669
36351         * c.opt (Wconversion-null): New option.
36352         * doc/invoke.texi (Wconversion-null): Document.
36353
36354 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36355
36356         * common.opt (Wlarger-than-): Add Undocumented.
36357
36358 2010-02-19  Mike Stump  <mikestump@comcast.net>
36359
36360         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
36361
36362 2010-02-19  Jason Merrill  <jason@redhat.com>
36363
36364         PR target/40332
36365         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
36366         * configure: Likewise.
36367
36368 2010-02-20  Alan Modra  <amodra@gmail.com>
36369
36370         PR middle-end/42344
36371         * cgraph.h (cgraph_make_decl_local): Declare.
36372         * cgraph.c (cgraph_make_decl_local): New function.
36373         (cgraph_make_node_local): Use it.
36374         * cgraphunit.c (cgraph_function_versioning): Likewise.
36375         * ipa.c (function_and_variable_visibility): Likewise.
36376
36377 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36378
36379         PR bootstrap/43121
36380         * except.c (sjlj_emit_function_enter): Don't call
36381         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
36382         directly.
36383         * rtl.h (add_reg_br_prob_note): Remove prototype.
36384
36385 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36386
36387         PR 41779
36388         * c-common.c (conversion_warning): Remove widening conversions
36389         before checking the conversion of integers to reals.
36390
36391 2010-02-19  Mike Stump  <mikestump@comcast.net>
36392
36393         PR middle-end/43125
36394         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
36395
36396         PR objc/43061
36397         * cgraphunit.c (process_function_and_variable_attributes): Check
36398         DECL_PRESERVE_P instead of looking up attribute "used".
36399         * ipa-pure-const.c (check_decl): Likewise.
36400         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
36401         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
36402         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
36403         instead of attribute "used".
36404         * config/sol2-c.c (solaris_pragma_init): Likewise.
36405         (solaris_pragma_fini): Likewise.
36406
36407 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36408
36409         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
36410         Use XCNEW instead of xcalloc.
36411         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
36412         XNEW instead of xmalloc.
36413         (get_fields): Use XNEWVEC instead of xmalloc.
36414
36415         PR debug/43084
36416         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
36417         populate vars array.
36418         (create_new_general_access): For debug stmts just reset value.
36419         (get_stmt_accesses): For accesses within debug stmts just record them
36420         using add_access_to_acc_sites instead of preventing the peeling or
36421         counting them as accesses.
36422
36423         PR middle-end/42233
36424         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
36425
36426 2010-02-19  Richard Guenther  <rguenther@suse.de>
36427
36428         PR tree-optimization/42916
36429         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
36430         instructions.
36431
36432 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
36433
36434         * configure.ac: Replace all uses of changequote in macro arguments
36435         with proper quoting.
36436
36437 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36438
36439         PR middle-end/42233
36440         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
36441
36442 2010-02-19  Richard Guenther  <rguenther@suse.de>
36443
36444         PR tree-optimization/42944
36445         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
36446         test for aliasing with errno.
36447
36448 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36449
36450         PR middle-end/42233
36451         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
36452         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
36453         * dojump.c: Include output.h.
36454         (inv): New inline function.
36455         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
36456         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
36457         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
36458         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
36459         argument, pass it down to other calls.
36460         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
36461         add REG_BR_PROB note to the conditional jump.
36462         * cfgexpand.c (add_reg_br_prob_note): Removed.
36463         (expand_gimple_cond): Don't call it, add the probability
36464         as last argument to jumpif_1/jumpifnot_1.
36465         * Makefile.in (dojump.o): Depend on output.h.
36466         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
36467         callers.
36468         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
36469         * stmt.c (do_jump_if_equal): Likewise.
36470         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
36471         * loop-unswitch.c (compare_and_jump_seq): Likewise.
36472         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
36473         Likewise.
36474         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
36475         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
36476         jumpifnot_1 callers.
36477         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
36478         callers.
36479         (store_expr): Adjust jumpifnot caller.
36480         (store_constructor): Adjust jumpif caller.
36481
36482         PR middle-end/42233
36483         * gimplify.c (gimple_boolify): For __builtin_expect call
36484         gimple_boolify also on its first argument.
36485
36486 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
36487
36488         * configure.ac (gnu-unique-object): Wrap regexps using [] in
36489         changequote block.
36490         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
36491         * configure: Regenerated.
36492
36493 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36494
36495         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
36496         lang_hooks.types_compatible_p instead of comptypes.
36497
36498 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36499
36500         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
36501         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
36502         if __prefer_thumb__ is defined.
36503
36504 2010-02-18  Martin Jambor  <mjambor@suse.cz>
36505
36506         PR tree-optimization/43066
36507         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
36508         array with zero-sized element type.
36509
36510 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
36511
36512         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
36513         rtx, allocate struct var_loc_node here and return it to the
36514         caller, and only if it is actually needed.
36515         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
36516         move it earlier and return immediately if it returns NULL.
36517
36518 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
36519
36520         * config/sparc/gas.h: New file.  Restore
36521         TARGET_ASM_NAMED_SECTION to its ELF default.
36522         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
36523         check !HAVE_GNU_AS.
36524         * config/sparc/sparc.c (sparc_elf_asm_named_section):
36525         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
36526         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
36527         after sparc/sysv4.h.
36528
36529 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
36530
36531         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
36532
36533 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
36534
36535         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
36536         patterns from predicated pattern.
36537
36538 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
36539
36540         PR target/43103
36541         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
36542         for insn mnemonic suffix.
36543
36544 2010-02-17  Richard Guenther  <rguenther@suse.de>
36545
36546         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
36547         to loop PHI nodes.
36548
36549 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
36550
36551         PR debug/42918
36552         * caller-save.c (save_call_clobbered_regs): If BB ends with
36553         a DEBUG_INSN, move any notes in between last real insn and the last
36554         DEBUG_INSN after the last DEBUG_INSN.
36555
36556 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
36557
36558         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
36559         Fix return type.  Fix argument type.  Explain meaning of return value.
36560
36561 2010-02-16  Richard Guenther  <rguenther@suse.de>
36562
36563         PR tree-optimization/41043
36564         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
36565         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
36566         statements ...
36567         (vrp_visit_phi_node): ... but only for loop PHI nodes.
36568
36569 2010-02-16  Ira Rosen  <irar@il.ibm.com>
36570
36571         PR tree-optimization/43074
36572         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
36573         * tree-vect-loop.c (vect_analyze_loop_operations): Add
36574         vectorizable cycles in hybrid SLP check.
36575         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
36576
36577 2010-02-16  Richard Guenther  <rguenther@suse.de>
36578
36579         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
36580         (true_dependence): If memrefs_conflict_p computes must-alias
36581         trust it.  Move TBAA check after offset-based disambiguation.
36582         (canon_true_dependence): Likewise.
36583
36584 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
36585
36586         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
36587         * doc/invoke.texi: Document it.
36588         * var-tracking.c: Include toplev.h and params.h.
36589         (vt_find_locations): Return bool indicating success.  Compute
36590         hash sizes unconditionally.  Check new parameter, report.
36591         (variable_tracking_main_1): Check vt_find_locations results and
36592         retry.  Renamed from...
36593         (variable_tracking_main): ... this.  New wrapper to preserve
36594         flag_var_tracking_assignments.
36595         * Makefile.in (var-tracking.o): Adjust dependencies.
36596
36597 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
36598             Jakub Jelinek  <jakub@redhat.com>
36599
36600         PR target/42854
36601         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
36602         if weak_import attribute is present.
36603         * config/darwin.c (machopic_select_section): Likewise.
36604
36605 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
36606
36607         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
36608         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
36609         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
36610         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
36611
36612         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
36613         types.
36614
36615         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
36616         Fix argument types.
36617
36618         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
36619         Rewrite text to refer to the names.
36620
36621 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
36622
36623         * config/i386/i386-builtin-types.def
36624         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
36625         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
36626         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
36627         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
36628         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
36629         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
36630         IX86_BUILTIN_VPERMIL2PS256.
36631         (MULTI_ARG_4_DF2_DI_I): Defined.
36632         (MULTI_ARG_4_DF2_DI_I1): Defined.
36633         (MULTI_ARG_4_SF2_SI_I): Defined.
36634         (MULTI_ARG_4_SF2_SI_I1): Defined.
36635         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
36636         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
36637         __builtin_ia32_vpermil2ps256.
36638         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
36639         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
36640         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
36641         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
36642         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
36643         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
36644         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
36645         CODE_FOR_xop_vpermil2v8sf3.
36646         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
36647         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
36648         * config/i386/xopintrin.h (_mm_permute2_pd): New.
36649         (_mm256_permute2_pd): New.
36650         (_mm_permute2_ps): New.
36651         (_mm256_permute2_ps): New.
36652
36653 2010-02-15  Nick Clifton  <nickc@redhat.com>
36654
36655         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
36656         boolean parameters.  Use emit_jump_insn when emitting a pop
36657         instruction containing a return insn.
36658         (push): Use 'true' rather than '1' as second parameter to F.
36659         (h8300_expand_prologue): Likewise.
36660         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
36661         (h8300_expand_epilogue): Likewise.
36662
36663 2010-02-15  Richard Guenther  <rguenther@suse.de>
36664
36665         PR middle-end/43068
36666         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
36667         if that is zero.
36668
36669 2010-02-15  Nick Clifton  <nickc@redhat.com>
36670
36671         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
36672         delta.
36673
36674 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
36675
36676         * intl.c (fake_ngettext): New function.
36677         * intl.h (fake_ngettext): Declare.
36678         (ngettext): Define macro.
36679         * collect2.c (notice_translated): New function.
36680         (main): Use notice_translated and ngettext.
36681         * collect2.h (notice_translated): Declare.
36682
36683 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
36684
36685         * reorg.c (delete_computation): Comment fixes.
36686         * caller-save.c (setup_save_areas): Idem.
36687         * sel-sched-dump.c (dump_lv_set): Idem.
36688         * rtl.def: Idem.
36689
36690 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36691
36692         * config/s390/s390.c (s390_sched_init): New function.
36693         (TARGET_SCHED_INIT): Target hook defined.
36694
36695 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
36696             Jack Howarth  <howarth@bromo.med.uc.edu>
36697             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
36698
36699         PR target/42982
36700         Partial revert of unintended change in fix for PR41605.
36701         * config/darwin.h: Fix typo.
36702         * config/darwin9.h: Same.
36703
36704 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36705
36706         * c-pch.c (pch_init): Clear v.
36707
36708 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36709
36710         PR middle-end/42930
36711         * graphite-scop-detection.c (graphite_can_represent_scev): Call
36712         graphite_can_represent_init for MULT_EXPR.
36713
36714 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36715
36716         PR middle-end/42914
36717         PR middle-end/42530
36718         * graphite-sese-to-poly.c (remove_phi): New.
36719         (translate_scalar_reduction_to_array): Call remove_phi.
36720
36721 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36722
36723         PR middle-end/42771
36724         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
36725         * graphite-clast-to-gimple.h (gloog): Update declaration.
36726         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
36727         * graphite-poly.h (struct poly_bb): Add missing comments.
36728         (struct scop): Add poly_scop_p field.
36729         (POLY_SCOP_P): New.
36730         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
36731         * graphite.c (graphite_transform_loops): Build the polyhedral
36732         representation for each scop before code generation.
36733         * sese.c (rename_variables_in_operand): Removed.
36734         (rename_variables_in_expr): Return the renamed expression.
36735         (rename_sese_parameters): New.
36736         * sese.h (rename_sese_parameters): Declared.
36737
36738 2010-02-11  Richard Guenther  <rguenther@suse.de>
36739
36740         PR tree-optimization/42998
36741         * tree-ssa-pre.c (create_expression_by_pieces): Treat
36742         POINTER_PLUS_EXPR properly.
36743
36744 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36745             Changpeng Fang  <changpeng.fang@amd.com>
36746
36747         PR middle-end/40886
36748         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
36749         the cost of an IV candidate when the IV is used in a test against zero.
36750
36751         * gcc.dg/tree-ssa/ivopts-3.c: New.
36752
36753 2010-02-11  Richard Guenther  <rguenther@suse.de>
36754
36755         PR lto/41664
36756         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
36757         pointer-vs-decl case by swapping refs.  Handle some cases
36758         of pointer-vs-decl disambiguations more conservatively.
36759         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
36760         to false after expanding.
36761
36762 2010-02-11  Richard Guenther  <rguenther@suse.de>
36763
36764         PR driver/43021
36765         * gcc.c (process_command): Handle LTO file@offset case more
36766         appropriately.
36767
36768 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36769
36770         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
36771         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
36772         of DEBUG_INSNs.
36773         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
36774
36775         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
36776         if MEM's mode size isn't DWARF2_ADDR_SIZE.
36777         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
36778         Optimize eq/ne comparisons when both arguments are known to be
36779         zero-extended.
36780         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
36781         Don't mask operands unnecessarily if they are known to be already
36782         zero-extended.
36783
36784 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
36785
36786         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
36787         instead of loop.
36788
36789 2010-02-10  Richard Guenther  <rguenther@suse.de>
36790
36791         PR tree-optimization/43017
36792         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
36793         for wrapping signed arithmetic.
36794
36795 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36796
36797         PR debug/43010
36798         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
36799         if no debug info should be emitted for it.
36800
36801 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
36802
36803         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
36804         note when flag_exceptions is set.
36805
36806 2010-02-10  Duncan Sands  <baldrick@free.fr>
36807
36808         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
36809
36810 2010-02-10  Richard Guenther  <rguenther@suse.de>
36811
36812         PR c/43007
36813         * tree.c (get_unwidened): Handle constants.
36814         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
36815
36816 2010-02-10  Martin Jambor  <mjambor@suse.cz>
36817
36818         PR lto/42985
36819         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
36820         check for variable argument counts independently.
36821
36822 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36823
36824         PR target/42841
36825         * config/sh/sh.c (find_barrier): Increase length for non delayed
36826         conditional branches.
36827
36828 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36829
36830         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
36831
36832 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36833
36834         * builtins.c (set_builtin_user_assembler_name): Also handle
36835         ffs if int is smaller than word.
36836
36837 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
36838
36839         PR middle-end/42973
36840         * ira-conflicts.c (get_dup): Remove.
36841         (process_reg_shuffles): Add new parameter.  Use it as an
36842         additional guard for copy generation.
36843         (add_insn_allocno_copies): Rewrite.
36844
36845 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
36846
36847         * common.opt (fsched2-use-traces): Preserved for backward
36848         compatibility.
36849         * doc/invoke.texi: Remove the documentation about option
36850         -fsched2-use-traces.
36851         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
36852         flag_sched2_use_traces.
36853         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
36854         the backward compatibility flag section.
36855
36856 2010-02-09  Richard Guenther  <rguenther@suse.de>
36857
36858         PR tree-optimization/43008
36859         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
36860         make HEAP variables initialized from global memory if they
36861         are not known builtin functions.
36862         (find_func_aliases): Adjust.
36863
36864 2010-02-09  Richard Guenther  <rguenther@suse.de>
36865
36866         PR tree-optimization/43000
36867         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
36868         arithmetic manually.
36869
36870 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
36871
36872         PR tree-optimization/42931
36873         * tree-loop-linear.c (try_interchange_loops): Don't call
36874         double_int_mul if estimated_loop_iterations failed.
36875
36876 2010-02-08  Martin Jambor  <mjambor@suse.cz>
36877
36878         PR middle-end/42898
36879         * tree-sra.c (build_accesses_from_assign): Do not mark in
36880         should_scalarize_away_bitmap if stmt has volatile ops.
36881         (sra_modify_assign): Do not process assigns piecemeal if if stmt
36882         has volatile ops.
36883
36884 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
36885
36886         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
36887
36888 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
36889
36890         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
36891         before the pattern.
36892
36893 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
36894
36895         PR middle-end/42946
36896         * df-core.c (df_finish_pass): Change type of saved_flags to int.
36897
36898 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36899
36900         PR middle-end/42988
36901         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
36902         to unknown_dependence.
36903         (graphite_legal_transform_dr): Handle the unknown_dependence.
36904         (graphite_carried_dependence_level_k): Same.
36905
36906 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36907
36908         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
36909
36910 2010-02-07  Richard Guenther  <rguenther@suse.de>
36911
36912         PR middle-end/42991
36913         * expr.c (get_inner_reference): Always initialize *pbitsize.
36914
36915 2010-02-07  Richard Guenther  <rguenther@suse.de>
36916
36917         PR middle-end/42956
36918         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
36919         new ARRAY_REFs on variable size element or minimal index arrays.
36920         Complete.
36921         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
36922         gimple_fold_indirect_ref.
36923
36924 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
36925
36926         PR target/42957
36927         * arm.c (arm_override_options): Just return if the user has specified
36928         an invalid fpu name.
36929
36930 2010-02-03  Jason Merrill  <jason@redhat.com>
36931
36932         PR c++/42870
36933         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
36934         i386_pe_maybe_record_exported_symbol.
36935
36936 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
36937
36938         PR target/42924
36939         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36940         (pa_delegitimize_address): New function.
36941
36942 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
36943
36944         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
36945         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
36946
36947 2010-02-05  Richard Guenther  <rguenther@suse.de>
36948
36949         PR lto/42762
36950         * lto-streamer-in.c (get_resolution): Deal with references
36951         to undefined functions.
36952
36953 2010-02-05  Richard Guenther  <rguenther@suse.de>
36954
36955         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
36956         (fold_const_aggregate_ref): Likewise.
36957         (ccp_fold_stmt): Substitute loads.
36958         (maybe_fold_reference): Verify types before substituting.
36959         Unshare properly.
36960         (fold_gimple_assign): Unshare properly.
36961         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
36962
36963 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
36964
36965         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
36966         for rs6000_gen_cell_microcode.
36967
36968 2010-02-04  Richard Guenther  <rguenther@suse.de>
36969
36970         PR rtl-optimization/42952
36971         * dse.c (const_or_frame_p): Remove MEM handling.
36972
36973 2010-02-04  Nick Clifton  <nickc@redhat.com>
36974
36975         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
36976         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36977         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
36978         (mn10300_asm_output_mi_thunk): New function.
36979         (mn10300_can_output_mu_thunk): New function.
36980         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
36981         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
36982         (FUNCTION_ARG): Delete incorrect comment.
36983
36984 2010-02-03  Jason Merrill  <jason@redhat.com>
36985
36986         PR c++/40138
36987         * fold-const.c (operand_equal_p): Handle erroneous types.
36988
36989 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
36990
36991         * config/h8300/h8300.md (can_delay): Fix attibute condition.
36992
36993 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
36994
36995         PR rtl-optimization/42941
36996         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
36997         of xmalloc.
36998
36999 2010-02-03  Jason Merrill  <jason@redhat.com>
37000
37001         PR c++/35652
37002         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
37003
37004 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
37005
37006         PR debug/42896
37007         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
37008         (cselib_reset_table): Renamed from...
37009         (cselib_reset_table_with_next_value): ... this.
37010         (cselib_get_next_uid): Renamed from...
37011         (cselib_get_next_unknown_value): ... this.
37012         * cselib.c (next_uid): Renamed from...
37013         (next_unknown_value): ... this.
37014         (cselib_clear_table): Adjust.
37015         (cselib_reset_table): Adjust.  Renamed from...
37016         (cselib_reset_table_with_next_value): ... this.
37017         (cselib_get_next_uid): Adjust.  Renamed from...
37018         (cselib_get_next_unknown_value): ... this.
37019         (get_value_hash): Use hash.
37020         (cselib_hash_rtx): Likewise.
37021         (new_cselib_val): Adjust.  Set and dump uid.
37022         (cselib_lookup_mem): Pass next_uid as hash.
37023         (cselib_subst_to_values): Likewise.
37024         (cselib_log_lookup): Dump uid.
37025         (cselib_lookup): Pass next_uid as hash.  Adjust.
37026         (cselib_process_insn): Adjust.
37027         (cselib_init): Initialize next_uid.
37028         (cselib_finish): Adjust.
37029         (dump_cselib_table): Likewise.
37030         * dse.c (canon_address): Dump value uid.
37031         * print-rtl.c (print_rtx): Print value uid.
37032         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
37033         (dvuid): New type.
37034         (dv_uid): New function, sort of renamed from...
37035         (dv_htab_hash): ... this, reimplemented in terms of it and...
37036         (dv_uid2hash): ... this.  New.
37037         (variable_htab_eq): Drop excess assertions.
37038         (tie_break_pointers): Removed.
37039         (canon_value_cmp): Compare uids.
37040         (variable_post_merge_New_vals): Print uids.
37041         (vt_add_function_parameters): Adjust.
37042         (vt_initialize): Reset table.  Adjust.
37043
37044 2010-02-03  Richard Guenther  <rguenther@suse.de>
37045
37046         PR tree-optimization/42944
37047         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
37048         (call_may_clobber_ref_p_1): Likewise.  Properly handle
37049         malloc and calloc clobbering errno.
37050
37051 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
37052
37053         * doc/invoke.texi: Fix name of sched1 dump.
37054
37055         * opts.c (decode_options): Set flag_tree_switch_conversion
37056         only conditionally on optimize >= 2.
37057
37058         * gcse.c: Assorted comment fixes in pass description.
37059
37060 2010-02-03  Anthony Green  <green@moxielogic.com>
37061
37062         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
37063         nop padding in order to maintain alignment of storage location of
37064         target function address.
37065         (moxie_trampoline_init): Store target function address at newly
37066         aligned location.
37067         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
37068         to 32.
37069         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
37070
37071 2010-02-03  Richard Guenther  <rguenther@suse.de>
37072
37073         PR middle-end/42927
37074         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
37075
37076 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37077
37078         * config.gcc: Reenable check for obsolete targets.
37079         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
37080         mips-sgi-irix6.[0-4]*.
37081
37082 2010-02-02  Nick Clifton  <nickc@redhat.com>
37083
37084         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
37085         constant size of 4 as being the same as 0.
37086         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
37087         can take values in the range 0..4.
37088
37089 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
37090
37091         PR java/41991
37092         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
37093         as _darwin10_Unwind_FindEnclosingFunction().
37094         * libgcc-libsystem.ver: New.
37095
37096 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
37097
37098         PR target/41399
37099         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
37100         implicitly set registers.
37101
37102 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
37103
37104         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
37105         (arm_override_options): Allow automatic selection of the thread
37106         pointer register if thumb2.
37107         (legitimize_pic_address): Improve code sequences for Thumb2.
37108         (arm_call_tls_get_addr): Likewise.
37109         (legitimize_tls_address): Likewise.
37110         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
37111         (pic_load_addr_32bit): ... this.  New named pattern.
37112         * thumb2.md (pic_load_addr_thumb2): Delete.
37113         (pic_load_dot_plus_four): Delete.
37114         (tls_load_dot_plus_four): New named pattern.
37115
37116 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37117
37118         PR libgomp/29986
37119         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
37120         Document fix for TLS bug.
37121
37122 2010-01-31  Richard Guenther  <rguenther@suse.de>
37123
37124         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
37125         conservatively correct.
37126
37127 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37128
37129         PR target/42850
37130         Revert:
37131         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37132
37133         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37134
37135 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
37136
37137         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
37138
37139 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
37140
37141         * config.gcc: Adjust order of makefile fragments for mingw targets.
37142
37143 2010-01-31  Richard Guenther  <rguenther@suse.de>
37144
37145         PR middle-end/42898
37146         * gimplify.c (gimplify_init_constructor): For volatile LHS
37147         initialize a temporary.
37148
37149 2010-01-31  Matthias Klose  <doko@ubuntu.com>
37150
37151         * configure.ac: Fix __stack_chk_fail check for cross builds configured
37152         --with-headers
37153         * configure: Regenerate.
37154
37155 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
37156
37157         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37158         the same alias set and their sizes different constantness.
37159         (aliasing_component_refs_p): Revert 2009-10-24 change.
37160
37161 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37162
37163         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
37164         unused.
37165
37166 2010-01-29  Richard Guenther  <rguenther@suse.de>
37167
37168         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
37169         Assert we successfully updated the call.
37170
37171 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
37172
37173         PR rtl-optimization/42889
37174         * df.h (df_set_bb_dirty_nonlr): New prototype.
37175         * df-core.c (df_set_bb_dirty_nonlr): New function.
37176         * df-scan.c (df_insn_rescan): Call it instead of
37177         df_set_bb_dirty for DEBUG_INSNs.
37178
37179 2010-01-29  Richard Guenther  <rguenther@suse.de>
37180
37181         PR middle-end/37448
37182         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
37183         quadratic behavior in most cases.
37184
37185 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
37186
37187         PR target/42891
37188         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
37189         in the call to gen_x86_movsicc_0_m1.
37190
37191 2010-01-28  Richard Guenther  <rguenther@suse.de>
37192
37193         PR tree-optimization/42871
37194         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
37195
37196 2010-01-28  Richard Guenther  <rguenther@suse.de>
37197
37198         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
37199         into call arguments.
37200
37201 2010-01-28  Richard Guenther  <rguenther@suse.de>
37202
37203         PR middle-end/42883
37204         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
37205         the forwarder if the destination is an EH landing pad.
37206
37207 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
37208
37209         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
37210         block list passed to gimple_duplicate_sese_tail.
37211         (parallelize_loops): Avoid parallelization when the function
37212         has_nonlocal_label.
37213         Avoid parallelization when the preheader is IRREDUCIBLE.
37214         Try to optimize when estimated_loop_iterations_int is unresolved.
37215         Add the loop's location to the dump file.
37216         * tree-cfg.c (add_phi_args_after_redirect): Remove.
37217         (gimple_duplicate_sese_tail): Remove the check for the latch.
37218         Redirect nexits to the exit block.
37219         Remove handling of the incoming edges to the latch.
37220         Redirect the backedge from the copied latch to the exit bb.
37221
37222 2010-01-28  Michael Matz  <matz@suse.de>
37223
37224         PR target/42881
37225         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
37226         Wrap force_reg into a sequence, emit it before user.
37227
37228 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
37229
37230         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
37231         (arm_rev): New.
37232         (arm_legacy_rev): Likewise.
37233         (thumb_legacy_rev): Likewise.
37234
37235 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37236
37237         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
37238         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
37239         on MEM's address failed, try avoid_constant_pool_reference and
37240         recurse if it returned something different.
37241         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
37242         address, try avoid_constant_pool_reference and recurse if it
37243         returned something different.
37244         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
37245         address and avoid_constant_pool_reference returned something
37246         different, don't set have_address.
37247
37248 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
37249
37250         PR debug/42861
37251         * var-tracking.c (val_store): Add modified argument, obey it.
37252         Adjust callers.
37253         (count_uses): Move down logging of main.
37254         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
37255         don't need resolution.
37256         (emit_notes_in_bb): Likewise.
37257
37258 2010-01-27  Richard Guenther  <rguenther@suse.de>
37259
37260         PR middle-end/42878
37261         * tree-inline.c (remap_decl): Delay remapping of SSA name
37262         default definitions until we need them.
37263
37264 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37265
37266         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37267         (rs6000_delegitimize_address): New function.
37268
37269         * config/s390/s390.c (s390_delegitimize_address): Call
37270         delegitimize_mem_from_attrs.
37271
37272         PR middle-end/42874
37273         * tree-inline.c (cannot_copy_type_1): Removed.
37274         (copy_forbidden): Don't forbid copying of functions containing
37275         records/unions with variable length fields.
37276
37277 2010-01-27  Christian Bruel  <christian.bruel@st.com>
37278
37279         Revert:
37280         PR target/42841
37281         * config/sh/sh.c (find_barrier): Increase length for non delayed
37282         conditional branches.
37283
37284 2010-01-27  Matthias Klose  <doko@ubuntu.com>
37285
37286         * configure.ac (gnu-unique-object): Fix ldd version check.
37287         * configure: Regenerate.
37288
37289 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37290
37291         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
37292         HAVE_GNU_AS value.
37293         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
37294         Test for HAVE_GNU_AS value.
37295
37296 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37297
37298         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
37299         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
37300         INT64_TYPE): Define.
37301         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
37302         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
37303         INT_LEAST64_TYPE): Define.
37304         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
37305         UINT_LEAST64_TYPE): Define.
37306         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
37307         INT_FAST64_TYPE): Define.
37308         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
37309         UINT_FAST64_TYPE): Define.
37310         (INTMAX_TYPE, UINTMAX_TYPE): Define.
37311         (INTPTR_TYPE, UINTPTR_TYPE): Define.
37312         (SIG_ATOMIC_TYPE): Define.
37313
37314 2010-01-26  Richard Guenther  <rguenther@suse.de>
37315
37316         * df-scan.c (df_scan_set_bb_info): Remove assert.
37317         (df_insn_rescan_debug_internal): Merge asserts.
37318         (df_install_ref): Likewise.
37319         (df_mark_reg): Use bitmap_set_range.
37320         (df_hard_reg_used_p): Remove assert.
37321         (df_hard_reg_used_count): Likewise.
37322
37323 2010-01-26  Richard Guenther  <rguenther@suse.de>
37324
37325         PR rtl-optimization/42685
37326         * web.c (web_main): Ignore DEBUG_INSNs.
37327
37328 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
37329
37330         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
37331
37332         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
37333         Fix types of fndecl and arglist parameters.
37334
37335 2010-01-26  Richard Guenther  <rguenther@suse.de>
37336
37337         PR middle-end/42806
37338         * tree-eh.c (unsplit_eh): Skip debug insns.
37339
37340 2010-01-26  Richard Guenther  <rguenther@suse.de>
37341
37342         PR tree-optimization/42250
37343         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
37344
37345 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
37346
37347         PR fortran/42866
37348         * omp-low.c (expand_omp_sections): Only use single_pred if
37349         l2_bb is single_pred_p.
37350
37351 2010-01-25  Christian Bruel  <christian.bruel@st.com>
37352
37353         PR target/42841
37354         * config/sh/sh.c (find_barrier): Increase length for non delayed
37355         conditional branches.
37356         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
37357
37358 2010-01-24  David S. Miller  <davem@davemloft.net>
37359
37360         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
37361         define if not using GAS.
37362         * config/sparc/sparc.c (sparc_elf_asm_named_section):
37363         Likewise.  Delete SECTION_MERGE code, which is only applicable
37364         when using GAS.
37365
37366 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
37367
37368         PR c++/42748
37369         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
37370         mangling of va_list in system headers.
37371
37372 2010-01-23  Toon Moene  <toon@moene.org>
37373
37374         * tree-predcom.c (combine_chains): Return NULL, not false.
37375
37376 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
37377
37378         * tree-loop-distribution.c (distribute_loop): Fix declaration and
37379         initialization of variable res to agree with return type.
37380
37381 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
37382
37383         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
37384         * tree-sra.c: Add include of expr.h.
37385
37386 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
37387
37388         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
37389         insert the debug stmt on the single non-EH edge from the stmt.
37390
37391 2010-01-22  Richard Henderson  <rth@redhat.com>
37392
37393         PR tree-opt/42833
37394         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
37395         the RHS until after generate_subtree_copies has insertted its
37396         code before the current statement.
37397
37398 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
37399
37400         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
37401
37402         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
37403
37404 2010-01-21  Martin Jambor  <mjambor@suse.cz>
37405
37406         PR tree-optimization/42585
37407         * tree-sra.c (struct access): New field grp_total_scalarization.
37408         (dump_access): Dump the new field.
37409         (should_scalarize_away_bitmap): New variable.
37410         (cannot_scalarize_away_bitmap): Likewise.
37411         (sra_initialize): Allocate new bitmaps.
37412         (sra_deinitialize): Free new bitmaps.
37413         (create_access_1): New function.
37414         (create_access): Parts moved to create_access_1.
37415         (type_consists_of_records_p): New function.
37416         (completely_scalarize_record): Likewise.
37417         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
37418         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
37419         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
37420         access.
37421         (analyze_all_variable_accesses): Completely scalarize small eligible
37422         records.
37423
37424 2010-01-21  Martin Jambor  <mjambor@suse.cz>
37425
37426         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
37427
37428 2010-01-21  Andrew Haley  <aph@redhat.com>
37429
37430         * gcc.c (process_command): Move lang_specific_driver before
37431         setting cc_libexec_prefix.
37432
37433 2010-01-21  Richard Guenther  <rguenther@suse.de>
37434
37435         PR middle-end/19988
37436         * fold-const.c (negate_expr_p): Pretend only negative
37437         real constants are easily negatable.
37438
37439 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
37440             Jason Merrill  <jason@redhat.com>
37441
37442         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
37443         (TYPE_TRANSPARENT_AGGR): this, for union and record.
37444         * calls.c (initialize argument_information): Handle it.
37445         * c-common.c (handle_transparent_union_attribute): Use new name.
37446         * c-decl.c (finish_struct): Ditto.
37447         * c-typeck.c (type_lists_compatible_p): Ditto.
37448         (convert_for_assignment): Use new name and also handle record.
37449         * function.c (aggregate_value_p): Handle it.
37450         (pass_by_reference): Ditto.
37451         (assign_parm_data_types): Ditto.
37452         * print-tree.c (print_node): Ditto.
37453         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
37454         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
37455         * tree.c (first_field): New fn.
37456
37457 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
37458
37459         PR target/42818
37460         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
37461         even when linking statically, for now.
37462
37463 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
37464
37465         PR debug/42715
37466         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
37467         without a cselib val.
37468         (count_uses): Accept MO_VAL_SET with no val on stores.
37469         (add_stores): Likewise.
37470
37471 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37472
37473         * var-tracking.c (check_value_val): Add a compile time assertion.
37474         (dv_is_decl_p): Simplify.
37475         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
37476         gcc_assert if ENABLE_CHECKING.
37477
37478 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
37479
37480         PR debug/42782
37481         * var-tracking.c: Include tree-flow.h.
37482         (mem_dies_at_call): New.
37483         (dataflow_set_preserve_mem_locs): Use it.
37484         (dataflow_set_remove_mem_locs): Likewise.
37485         (dump_var): Renamed from dump_variable.  Adjust all callers.
37486         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
37487         * Makefile.in (var-tracking.o): Adjust deps.
37488
37489 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
37490
37491         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
37492
37493 2010-01-20  Richard Guenther  <rguenther@suse.de>
37494
37495         PR tree-optimization/42717
37496         * tree-ssa-dce.c (get_live_post_dom): Remove.
37497         (forward_edge_to_pdom): Take an arbitrary edge to copy
37498         degenerate PHI args from.
37499         (remove_dead_stmt): Use the first post-dominator even if it
37500         does not contain live statements as redirection destination.
37501
37502 2010-01-20  Richard Guenther  <rguenther@suse.de>
37503
37504         * tree-inline.c (estimate_num_insns): Handle EH builtins.
37505
37506 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37507
37508         * sel-sched.c (create_speculation_check): Remove set but not used
37509         variable twin.
37510         (try_transformation_cache): Remove set but not used variable ds.
37511         (calculate_privileged_insns): Remove set but not used variables
37512         cur_insn and min_spec_insn.
37513         (find_best_expr): Remove set but not used variable avail_n.
37514         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
37515         variable e.
37516         * cgraphunit.c (assemble_thunk): Remove set but not used variable
37517         false_label.
37518         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
37519         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
37520         new_scop_exit_edge.
37521
37522 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
37523
37524         PR bootstrap/42786
37525         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
37526         cpu types.  Add support for *-sse3 cpu types.
37527         (x86_64-*-*): Ditto.
37528
37529 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37530
37531         PR middle-end/42803
37532         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
37533         argument, call initializer_constant_valid_p_1 instead of
37534         initializer_constant_valid_p, pass CACHE to it, return NULL
37535         immediately if first call returns NULL.
37536         (initializer_constant_valid_p_1): New function.
37537         (initializer_constant_valid_p): Use it.
37538
37539 2010-01-20  Thomas Quinot  <quinot@adacore.com>
37540
37541         * tree.def (PLACEHOLDER_EXPR): Fix comment.
37542
37543 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37544
37545         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
37546         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
37547         (loc_list_from_tree): Don't handle unsigned division.  Handle
37548         signed modulo using DW_OP_{over,over,div,mul,minus}.
37549         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
37550         modulo instead of signed.
37551
37552 2010-01-20  DJ Delorie  <dj@redhat.com>
37553
37554         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
37555         (Fpa): Pass it
37556         (h8300_emit_stack_adjustment): Propogate it.
37557         (push): Pass it.
37558         (h8300_expand_prologue): Likewise.
37559         (h8300_expand_epilogue): Likewise.
37560
37561 2010-01-19  Michael Matz  <matz@suse.de>
37562
37563         PR tree-optimization/41783
37564         * tree-data-ref.c (toplevel): Include flags.h.
37565         (dump_data_dependence_relation):  Also dump the inputs if the
37566         result will be unknown.
37567         (split_constant_offset_1): Look through some conversions.
37568         * tree-predcom.c (determine_roots_comp): Restart a new chain if
37569         the offset from last element is too large.
37570         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
37571         (reassociate_to_the_same_stmt): Handle vector registers.
37572         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
37573         (e.g. conversions).
37574         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
37575         wide_prolog_niters argument, emit widening instructions.
37576         (vect_do_peeling_for_alignment): Adjust caller, use widened
37577         variant of the iteration cound.
37578         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
37579
37580 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37581
37582         PR target/38697
37583         * config/arm/neon-testgen.m (emit_automatics): New parameter
37584         features. Adjust for Fixed_return_reg feature.
37585         (test_intrinsic): Call emit_automatics with new feature.
37586         * config/arm/neon.ml: Update copyright years.
37587         (features): New Fixed_return_reg feature.
37588         (ops): Update feature for Vget_low.
37589
37590 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
37591
37592         PR tree-optimization/42719
37593         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
37594         stmt uses.
37595
37596         PR debug/42728
37597         * fwprop.c (all_uses_available_at): Return false if def_set dest
37598         is a REG that is used in def_insn.
37599
37600 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
37601
37602         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
37603
37604         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
37605         Add argument names.
37606
37607         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
37608
37609         * target.h (struct gcc_target) <secondary_reload>: Change type
37610         of last argument to secondary_reload_info *.
37611
37612 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
37613
37614         PR target/42774
37615         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
37616         memory references with unaligned offsets.  Remove CQImode handling.
37617         (unaligned_memory_operand): Return 1 for memory references with
37618         unaligned offsets.  Remove CQImode handling.
37619
37620 2010-01-18  Richard Guenther  <rguenther@suse.de>
37621
37622         PR middle-end/39954
37623         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
37624         builtin calls.
37625
37626 2010-01-18  Richard Guenther  <rguenther@suse.de>
37627
37628         PR tree-optimization/42781
37629         * tree-ssa-structalias.c (find_what_var_points_to): Skip
37630         restrict processing only if the original variable was artificial.
37631
37632 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
37633
37634         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
37635         find number of popped argument bytes.
37636
37637         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
37638         Fix the text that describes the return value for invalid insns.
37639
37640         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
37641
37642         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
37643         Clarify what 'cost of the -dependence' is.  Fix quoting.
37644
37645         * toplev.c (default_get_pch_validity): Rename argument to "sz".
37646         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
37647
37648 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
37649
37650         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
37651         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
37652
37653 2010-01-17  Richard Guenther  <rguenther@suse.de>
37654
37655         PR middle-end/42248
37656         * function.c (split_complex_args): Take a VEC to modify.
37657         (assign_parms_augmented_arg_list): Build a VEC instead of
37658         a chain of PARM_DECLs.
37659         (assign_parms_unsplit_complex): Take a VEC of arguments.
37660         Do not fixup unmodified parms.
37661         (assign_parms): Deal with the VEC.
37662         (gimplify_parameters): Likewise.
37663
37664 2010-01-17  Richard Guenther  <rguenther@suse.de>
37665
37666         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
37667         node existence check.
37668         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
37669         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
37670         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
37671         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
37672         (gimple_execute_on_growing_pred): Likewise.
37673
37674 2010-01-17  Richard Guenther  <rguenther@suse.de>
37675
37676         PR tree-optimization/42773
37677         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
37678         (compute_antic_aux): Likewise.
37679         (compute_partial_antic_aux): Likewise.
37680
37681 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
37682
37683         PR debug/42767
37684         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
37685         and US_TRUNCATE.
37686
37687 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
37688
37689         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
37690         appearance.
37691
37692         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
37693         Fix markup for strict argument.
37694
37695         (TARGET_SCHED_REORDER2): Fix argument types.
37696
37697         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
37698         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
37699
37700         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
37701         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
37702
37703         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
37704         Add argument name.
37705
37706         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
37707         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
37708         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
37709         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
37710         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
37711
37712         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
37713
37714         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
37715
37716         (TARGET_ASM_RELOC_RW_MASK): Add return type.
37717         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
37718
37719         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
37720
37721         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
37722         Use prototype.
37723
37724         (TARGET_ASM_NAMED_SECTION): Fix argument list.
37725
37726         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
37727         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
37728
37729         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
37730
37731         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
37732
37733         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
37734         referring to it.  Fix language.
37735
37736         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
37737
37738         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
37739
37740         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
37741
37742         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
37743
37744         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
37745         '@var{stream}.  Remove stray 'and'.
37746
37747         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
37748
37749         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
37750
37751         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
37752
37753         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
37754         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
37755
37756         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
37757         Fix description of return value.
37758         Rename argument "sz" to "len."
37759
37760         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
37761         Clarify meaning of 'true' return value.
37762
37763         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
37764
37765         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
37766         rep_mode versus mode_rep.
37767
37768         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
37769
37770         (TARGET_BUILTIN_DECL): Fix name.
37771
37772         (TARGET_COMMUTATIVE_P): Fix type of first argument.
37773
37774         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
37775
37776         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
37777
37778         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
37779
37780         (TARGET_RELAXED_ORDERING): Use @deftypevr.
37781
37782         (TARGET_GET_DRAP_RTX): Note that this is a hook.
37783         Clarify language.
37784
37785         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
37786         Rename argument tm_fn to md_fn.
37787
37788         (TARGET_OPTION_PRINT): Fix argument list.
37789
37790 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
37791
37792         PR target/42664
37793         * config/i386/i386.c (ix86_fixup_binary_operands):
37794         Revert FMA4 fixup of operands.
37795
37796 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37797
37798         PR other/42525
37799         * Makefile.in (write_entries_to_file, install-plugin):
37800         Use \012 instead of \n with tr.
37801
37802 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
37803
37804         * configure.ac (HAVE_AS_REF): New C macro.
37805         * configure: Regenerate.
37806         * config.in: Likewise.
37807         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
37808         if HAVE_AS_REF.
37809         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
37810         if HAVE_AS_REF.
37811
37812 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
37813
37814         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
37815
37816         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
37817
37818         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
37819
37820         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
37821
37822         (TARGET_IN_SMALL_DATA_P): Fix argument type.
37823
37824         (TARGET_BINDS_LOCAL_P): Fix argument type.
37825
37826         (TARGET_ASM_FILE_END): Use prototype.
37827
37828         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
37829
37830         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
37831
37832         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
37833
37834         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
37835
37836         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
37837         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
37838
37839         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
37840         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
37841
37842         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
37843         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
37844         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
37845         (TARGET_ADDR_SPACE_CONVERT): Likewise.
37846
37847         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
37848
37849         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
37850
37851         (TARGET_INIT_BUILTINS): Use prototype.
37852
37853         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
37854         Put 'const char *' in braces.  Fix parameter types.
37855         (TARGET_INVALID_CONVERSION): Fix parameter types.
37856         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
37857         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
37858
37859         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
37860         Fix argument type.
37861
37862         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
37863
37864         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
37865
37866 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
37867
37868         * doc/tm.texi (TARGET_HELP): Fix return type.
37869
37870         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
37871         in braces.  Fix argument types.
37872
37873         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
37874
37875         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
37876
37877         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
37878
37879         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
37880         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
37881
37882         (TARGET_MANGLE_TYPE): Fix argument types.
37883
37884         (TARGET_IRA_COVER_CLASSES): Use prototype.
37885
37886         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
37887
37888         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
37889
37890         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
37891
37892         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
37893
37894         (TARGET_CALLEE_COPIES): Fix argument types.
37895
37896         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
37897
37898         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
37899
37900         (TARGET_FUNCTION_VALUE): Fix argument types.
37901
37902         (TARGET_RETURN_IN_MSB): Fix argument type.
37903
37904         (TARGET_RETURN_IN_MEMORY): Fix argument types.
37905
37906         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
37907
37908         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
37909
37910         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
37911         agree with return type.
37912
37913         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
37914
37915 2010-01-15  Jing Yu  <jingyu@google.com>
37916
37917         PR rtl-optimization/42691
37918         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
37919         a pseudo to a constant and are merged, and adjust comments.
37920
37921 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37922
37923         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
37924
37925 2010-01-15  Richard Guenther  <rguenther@suse.de>
37926
37927         PR middle-end/42739
37928         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
37929         labels of computed or non-local gotos to the destination.
37930         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
37931         landing pad label is the first label.
37932
37933 2010-01-15  Richard Guenther  <rguenther@suse.de>
37934
37935         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
37936
37937 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
37938
37939         PR target/42747
37940         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
37941         to allow generation of the xssqrtdp instruction on power7.
37942         (sqrtdf2_fpr): Ditto.
37943
37944 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37945
37946         PR middle-end/42674
37947         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
37948         functions with noreturn attribute.
37949
37950         PR c++/42608
37951         * varasm.c (declare_weak): Add weak attribute to decl if it
37952         doesn't have one already.
37953         (assemble_external): Only add decls to weak_decls if they also
37954         have weak attribute.
37955
37956 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
37957
37958         * var-tracking.c (var_reg_delete): Don't delete the association
37959         between REGs and values or one-part variables if the register
37960         isn't clobbered.
37961
37962 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37963
37964         PR debug/42657
37965         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
37966         because its first operand is a non-localized variable.
37967
37968 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37969
37970         PR tree-optimization/42706
37971         * tree-sra.c (encountered_recursive_call): New variable.
37972         (encountered_unchangable_recursive_call): Likewise.
37973         (sra_initialize): Initialize both new variables.
37974         (callsite_has_enough_arguments_p): New function.
37975         (scan_function): Call decl and flags check only for IPA-SRA, check
37976         whether there is a recursive call and whether it has enough arguments.
37977         (all_callers_have_enough_arguments_p): New function.
37978         (convert_callers): Look for recursive calls only when
37979         encountered_recursive_call is set.
37980         (ipa_early_sra): Bail out either if
37981         !all_callers_have_enough_arguments_p or
37982         encountered_unchangable_recursive_call.
37983
37984 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37985
37986         * sel-sched.c: Add 2010 to copyright years.
37987         * sel-sched-ir.c: Likewise.
37988         * sel-sched-ir.h: Likewise.
37989
37990 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37991
37992         PR tree-optimization/42714
37993         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
37994         constructors specially.
37995
37996 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37997
37998         * config/i386/drivers-i386.c (detect_caches_intel):
37999         Add l2sizekb parameter and fill in.
38000         (host_detect_local_cpu): Add l2sizekb, fill in.
38001         Add Atom small cache heuristic.
38002
38003 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38004
38005         * config/i386/drivers-i386.c (detect_caches_cpuid4):
38006         Add level3 parameter and fill in.
38007         (detect_caches_intel): Handle level3 cache.
38008
38009 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38010
38011         * config/i386/drivers-i386.c (host_detect_local_cpu):
38012         Fix core duo detection.
38013
38014 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38015
38016         * config/i386/drivers-i386.c (host_detect_local_cpu):
38017         Fix Atom detection.
38018
38019 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38020
38021         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
38022         (rs6000_variable_issue_1): this.  Use...
38023         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
38024
38025 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38026
38027         * sel-sched-ir.c (sel_restore_other_notes): Rename to
38028         sel_restore_notes.  Update all callers.  Call reemit_notes
38029         for all insns.
38030
38031 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38032
38033         PR rtl-optimization/42246
38034         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
38035         loops.
38036
38037 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38038
38039         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
38040         all successors is the same as number of successors in current region.
38041
38042 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38043
38044         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
38045         to rename is not separable.  Otherwise check that its LHS is not NULL.
38046
38047 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38048
38049         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
38050
38051 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38052
38053         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
38054         available registers when failed to discover LHS register class.
38055         Fix indentation.  Update comment.
38056
38057 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38058             Alexander Monakov  <amonakov@ispras.ru>
38059
38060         PR rtl-optimization/42389
38061         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
38062         to can_issue_more.
38063         (advance_state_on_fence): Likewise.
38064         (sel_target_adjust_priority): Print debug output only when
38065         sched_verbose >= 4, not 2.
38066         (get_expr_cost): Do not issue all unique insns on the next cycle.
38067         (fill_insns): Initialize can_issue_more from the value saved
38068         with the fence.
38069         * sel-sched-ir.c (flist_add): New parameter issue_more.
38070         Init FENCE_ISSUE_MORE with it.
38071         (merge_fences): Likewise.
38072         (init_fences): Update call to flist_add.
38073         (add_to_fences, add_clean_fence_to_fences)
38074         (add_dirty_fence_to_fences): Likewise.
38075         (move_fence_to_fences): Update call to merge_fences.
38076         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
38077         sched groups.
38078         * sel-sched-ir.h (struct _fence): New field issue_more.
38079         (FENCE_ISSUE_MORE): New accessor macro.
38080
38081 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38082
38083         PR rtl-optimization/42388
38084         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
38085         that have no predecessors nor successors.  Do not call move_bb_info
38086         for empty blocks outside of current region.
38087
38088 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38089
38090         PR rtl-optimization/42294
38091         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
38092         * sel-sched.c (move_exprs_to_boundary): Transitively add all
38093         originators' originators.
38094
38095 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38096
38097         PR rtl-optimization/39453
38098         PR rtl-optimization/42246
38099         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
38100         for pipelining_p.
38101         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
38102
38103 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38104             Alexander Monakov  <amonakov@ispras.ru>
38105
38106         PR middle-end/42245
38107         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
38108         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
38109         argument.  Update all callers.
38110         (tidy_control_flow): ... and here.  Recompute topological order
38111         of basic blocks in region if necessary.
38112         (sel_redirect_edge_and_branch): Change return type.  Return true
38113         if topological order might have been invalidated.
38114         (purge_empty_blocks): Export and move from...
38115         * sel-sched.c (purge_empty_blocks): ... here.
38116         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
38117         (maybe_tidy_empty_bb): Delete prototype.
38118         (purge_empty_blocks): Declare.
38119
38120 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38121
38122         PR rtl-optimization/42249
38123         * sel-sched.c (try_replace_dest_reg): When chosen register
38124         and original register is the same, do not bail out early, but
38125         still check all original insns for validity of replacing destination
38126         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
38127         in this case.
38128
38129 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
38130
38131         PR c/42721
38132         Port from no-undefined-overflow branch:
38133         2009-03-09  Richard Guenther  <rguenther@suse.de>
38134
38135         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
38136
38137 2010-01-14  Richard Guenther  <rguenther@suse.de>
38138
38139         PR lto/42665
38140         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
38141
38142 2010-01-14  Ira Rosen  <irar@il.ibm.com>
38143
38144         PR tree-optimization/42709
38145         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
38146         as scalar type in creation of constant vector operand.
38147
38148 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38149
38150         PR testsuite/42414
38151         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
38152         (check-parallel-%): Match `testsuite' directory component only
38153         at the end.
38154
38155 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
38156
38157         PR translation/39521
38158         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
38159         strings with _().
38160
38161 2010-01-13  Richard Guenther  <rguenther@suse.de>
38162
38163         PR tree-optimization/42730
38164         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
38165         offset zero.
38166
38167 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
38168
38169         PR target/pr42542
38170         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
38171         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
38172         them signed.
38173
38174 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
38175
38176         * config/bfin/libgcc-bfin.ver: Regenerate based on current
38177         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
38178         ___umulsi3_highpart.
38179
38180         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
38181         rather than schedule_insns if the pass is enabled.
38182
38183 2010-01-13  Martin Jambor  <mjambor@suse.cz>
38184
38185         PR tree-optimization/42704
38186         * tree-sra.c (sra_modify_assign): Do not delete assignments to
38187         SSA_NAMEs.
38188
38189 2010-01-13  Martin Jambor  <mjambor@suse.cz>
38190
38191         PR tree-optimization/42703
38192         * tree-sra.c (analyze_access_subtree): Check that we can build a
38193         reference to the original data within the aggregate.
38194
38195 2010-01-13  Richard Guenther  <rguenther@suse.de>
38196
38197         PR tree-optimization/42705
38198         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
38199
38200 2010-01-13  Richard Guenther  <rguenther@suse.de>
38201
38202         PR middle-end/42716
38203         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
38204
38205 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
38206
38207         PR debug/41371
38208         * var-tracking.c (values_to_unmark): New variable.
38209         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
38210         values_to_unmark vector.  Moved body to...
38211         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
38212         instead queue it into values_to_unmark vector.
38213         (vt_find_locations): Free values_to_unmark vector.
38214
38215 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
38216
38217         * config/s390/s390.c (override_options): Set
38218         default of max-pending-list-length to 256
38219
38220 2010-01-13  Richard Guenther  <rguenther@suse.de>
38221
38222         PR lto/42678
38223         * tree-pass.h (PROP_gimple_lcx): New.
38224         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
38225         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
38226         before the final cleanup_eh.
38227         (dump_properties): Dump PROP_gimple_lcx.
38228         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
38229         (tree_lower_complex_O0): Remove.
38230         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
38231         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
38232         tree_lower_complex, schedule TODO_update_ssa.
38233         * lto-streamer-out.c (output_function): Stream the functions
38234         properties.
38235         * lto-streamer-in.c (input_function): Likewise.
38236         (lto_read_body): Do not override them here.
38237
38238 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
38239
38240         PR c/42708
38241         * c-typeck.c (build_c_cast): Fold value cast to union type before
38242         wrapping it in a CONSTRUCTOR.
38243
38244 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38245
38246         PR rtl-optimization/42699
38247         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
38248         involved.
38249
38250 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38251
38252         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38253         SUBTARGET_WARN_UNUSED_SPEC): Move ...
38254         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38255         SUBTARGET_WARN_UNUSED_SPEC): ... here
38256         * config/mips/iris5.h (LIBGCC_SPEC): Define.
38257
38258 2010-01-12  Julian Brown  <julian@codesourcery.com>
38259
38260         * config/arm/neon-schedgen.ml (Utils): Don't try to
38261         open missing module.
38262         (find_with_result): New.
38263
38264 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38265
38266         PR debug/42662
38267         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
38268         sharing when canonicalizing ({lt,ge}u (plus a b) b).
38269
38270         PR tree-optimization/42645
38271         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
38272         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
38273         decl_map, set processing_debug_stmt to -1 and return name without
38274         any remapping.
38275
38276 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
38277
38278         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
38279         binutils version, and reword target configuration description.
38280
38281 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38282
38283         * config/avr/avr.h (LINKER_NAME): Remove.
38284
38285 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
38286
38287         PR target/42416
38288         * config/rs6000/rs6000.c (rs6000_override_options): On targets
38289         that support VSX, warn for -mno-altivec if vsx is not disabled,
38290         and disable vsx.
38291
38292 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
38293             Shujing Zhao  <pearly.zhao@oracle.com>
38294
38295         PR translation/42469
38296         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
38297         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
38298         character between option name and help text.
38299         * c.opt (imultilib): Likewise.
38300
38301 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
38302
38303         * lto-streamer-out.c (output_unreferenced_globals): Output static
38304         variables.
38305
38306 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
38307
38308         PR rtl-optimization/42621
38309         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
38310         optimizing for size.
38311         (duplicate_computed_gotos): Remove now-redundant check.
38312
38313 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
38314
38315         PR target/37454
38316         * configure.ac: Save and restore LDFLAGS and LIBS
38317         * configure: Regenerate.
38318
38319 2010-01-10  Richard Guenther  <rguenther@suse.de>
38320
38321         PR middle-end/42667
38322         * builtins.c (fold_builtin_strlen): Add type argument and
38323         convert the resulting length to it.
38324         (fold_builtin_1): Adjust.
38325
38326 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
38327
38328         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
38329         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
38330         1 insn.
38331         (num_insns_constant_wide): Adjust for that change.
38332
38333 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38334
38335         PR debug/42631
38336         * web.c (union_defs): Add used argument, to combine uses of
38337         uninitialized regs.
38338         (entry_register): Adjust type and tests of used argument.
38339         (web_main): Widen used for new use.  Pass it to union_defs.
38340         * df.h (union_defs): Adjust prototype.
38341
38342 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38343
38344         PR debug/42630
38345         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
38346         uses in new incoming argument.  Free body.
38347         (reset_debug_uses_in_loop): New.
38348         (analyze_insn_to_expand_var): Call the latter if the former found
38349         anything.  Fix whitespace.  Reject invalid dest overlaps before
38350         going through all insns in the loop.
38351
38352 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38353
38354         PR debug/42629
38355         * haifa-sched.c (dying_use_p): Debug insns don't count.
38356
38357 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38358
38359         PR middle-end/42363
38360         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
38361         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
38362         (verify_gimple_call): Reject LHS in noreturn calls.
38363
38364 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38365
38366         PR debug/42604
38367         PR debug/42395
38368         * tree-vect-loop-manip.c (adjust_info): New type.
38369         (adjust_vec): New pointer to vector.
38370         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
38371         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
38372         (slpeel_update_phis_for_duplicate_loop): Use them.
38373         (slpeel_update_phi_nodes_for_guard1): Likewise.
38374         (slpeel_update_phi_nodes_for_guard2): Likewise.
38375         (slpeel_tree_peel_loop_to_edge): Likewise.
38376         (vect_update_ivs_after_vectorizer): Likewise.
38377
38378 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38379
38380         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
38381         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
38382
38383 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38384
38385         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
38386         bogus uninitialized warning.
38387
38388 2010-01-09  Richard Guenther  <rguenther@suse.de>
38389
38390         PR middle-end/42512
38391         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
38392         the evolution is compatible with the initial condition.
38393
38394 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
38395
38396         * gcc.c (process_command): Update copyright notice dates.
38397         * gcov.c (print_version): Likewise.
38398         * gcov-dump.c (print_version): Likewise.
38399         * mips-tfile.c (main): Likewise.
38400         * mips-tdump.c (main): Likewise.
38401
38402 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38403
38404         PR target/41885
38405         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
38406         (rotlhi3): Delete.
38407         (rotlhi3_8): Delete.
38408         (rotlsi3): Delete.
38409         (rotlsi3_8): Delete.
38410         (rotlsi3_16): Delete.
38411         (rotlsi3_24): Delete.
38412         (rotl<mode>3): New.
38413         (*rotw<mode>3): New.
38414         (*rotb<mode>3): New.
38415         * config/avr/avr.c (avr_rotate_bytes): New function.
38416         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
38417
38418 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
38419
38420         PR target/37454
38421         * configure.ac: Modify -rdynamic check.
38422         * configure: Regenerate.
38423
38424 2010-01-08  DJ Delorie  <dj@redhat.com>
38425
38426         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
38427         register popping order.
38428
38429 2010-01-08  Richard Guenther  <rguenther@suse.de>
38430
38431         PR lto/42528
38432         * c.opt (fsigned-char): Also let LTO handle this option.
38433         (funsigned-char): Likewise.
38434
38435 2010-01-07  Richard Guenther  <rguenther@suse.de>
38436
38437         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
38438         (gimple_op): Likewise.
38439         (gimple_op_ptr): Likewise.
38440         (gimple_assign_set_lhs): Remove gcc_assert.
38441         (gimple_assign_set_rhs1): Likewise.
38442         (gimple_assign_set_rhs2): Likewise.
38443         (gimple_call_set_lhs): Likewise.
38444         (gimple_call_set_fn): Likewise.
38445         (gimple_call_set_fndecl): Likewise.
38446         (gimple_call_fndecl): Likewise.
38447         (gimple_call_return_type): Likewise.
38448         (gimple_call_set_chain): Likewise.
38449         (gimple_call_num_args): Likewise.
38450         (gimple_call_set_arg): Likewise.
38451         (gimple_cond_set_code): Likewise.
38452         (gimple_cond_set_lhs): Likewise.
38453         (gimple_cond_set_rhs): Likewise.
38454         (gimple_cond_set_true_label): Likewise.
38455         (gimple_cond_set_false_label): Likewise.
38456         (gimple_label_set_label): Likewise.
38457         (gimple_goto_set_dest): Likewise.
38458         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
38459         (gimple_debug_bind_get_value): Likewise.
38460         (gimple_debug_bind_get_value_ptr): Likewise.
38461         (gimple_debug_bind_set_var): Likewise.
38462         (gimple_debug_bind_set_value): Likewise.
38463         (gimple_debug_bind_reset_value): Likewise.
38464         (gimple_debug_bind_has_value_p): Likewise.
38465         (gimple_return_retval_ptr): Remove gcc_assert.
38466         (gimple_return_retval): Likewise.
38467         (gimple_return_set_retval): Likewise.
38468         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
38469         (safe_referenced_var_iterator): Remove.
38470         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
38471         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
38472         (fill_referenced_var_vec): Remove.
38473         (first_readonly_imm_use): Remove redundant gcc_assert.
38474         (phi_arg_index_from_use): Combine gcc_asserts.
38475         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
38476         (first_imm_use_stmt): Remove redundant gcc_assert.
38477         * tree-cfg.c (verify_gimple_call): Verify function and chain
38478         operands.  Verify arguments.
38479         (verify_types_in_gimple_stmt): Verify condition code and labels.
38480
38481 2010-01-07  Richard Guenther  <rguenther@suse.de>
38482
38483         PR tree-optimization/42641
38484         * sese.c (rename_map_elt_info): Use the SSA name version, do
38485         not hash pointers.
38486
38487 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
38488
38489         PR tree-optimization/42625
38490         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
38491         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
38492
38493 2010-01-07  Duncan Sands  <baldrick@free.fr>
38494
38495         * Makefile.in (PLUGIN_HEADERS): Add version.h.
38496
38497 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
38498
38499         PR target/42511
38500         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
38501         note itself is not function_invariant_p.
38502
38503 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
38504
38505         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
38506         Do not add the DF_NOTE problem.
38507         * store-motion.c (execute_rtl_store_motion): Likewise.
38508
38509 2010-01-07  Martin Jambor  <mjambor@suse.cz>
38510
38511         PR tree-optimization/42157
38512         * tree-sra.c (compare_access_positions): Stabilize sort if both
38513         accesses have integer types, return zero immediately if they are the
38514         same.
38515
38516 2010-01-06  Richard Henderson  <rth@redhat.com>
38517
38518         PR middle-end/41883
38519         * haifa-sched.c (add_to_note_list): Merge into ...
38520         (concat_note_lists): ... here, and ...
38521         (unlink_other_notes, rm_other_notes): Merge into...
38522         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
38523         NOTE_INSN_EPILOGUE_BEG.
38524
38525 2010-01-06  Richard Guenther  <rguenther@suse.de>
38526
38527         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
38528         not inline regular functions into always-inline functions.
38529
38530 2010-01-06  Nick Clifton  <nickc@redhat.com>
38531
38532         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
38533         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
38534         used together.
38535         (OVERRIDE_OPTIONS): Delete.
38536         (OPTIMIZATION_OPTIONS): Define.
38537         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
38538         * config/rx/rx.c (rx_handle_option): Issue an error message if
38539         -mcpu=rx200 and -fpu are used together.
38540         (rx_set_optimization_options): New function.  Issue an error
38541         message if an optimization attribute attempts to reset the FPU/
38542         math optimization pairing.
38543         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
38544         * config/rx/rx.opt: Set the default to 32-bit doubles.
38545         * config/rx/t-rx: Add multilibs for -nofpu option.
38546         * doc/invoke.texi: Update documentation of RX options.
38547
38548 2010-01-06  Richard Guenther  <rguenther@suse.de>
38549
38550         * tree-ssa-pre.c (name_to_id): New global.
38551         (alloc_expression_id): Simplify SSA name handling.
38552         (lookup_expression_id): Likewise.
38553         (init_pre): Zero name_to_id.
38554         (fini_pre): Free it.
38555
38556 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
38557
38558         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
38559
38560 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
38561
38562         PR target/42542
38563         * config/i386/sse.md (smaxv2di3): New.
38564         (umaxv2di3): Likewise.
38565         (sminv2di3): Likewise.
38566         (uminv2di3): Likewise.
38567
38568 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38569
38570         PR target/42564
38571         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
38572         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
38573         (legitimize_tls_address): Likewise.
38574         (sparc_tls_referenced_p): Likewise.
38575         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
38576         and adjust calls to legitimize_pic_address.
38577         (legitimate_constant_p) Use sparc_tls_referenced_p.
38578         (legitimate_pic_operand_p): Likewise.
38579         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
38580         (sparc_tls_symbol_ref_1): Delete.
38581         (sparc_tls_referenced_p): Make static, recognize specific patterns.
38582         (legitimize_tls_address): Make static, handle CONST patterns.
38583         (legitimize_pic_address): Make static, remove unused parameter and
38584         adjust recursive calls.
38585         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
38586         and adjust call to legitimize_pic_address.
38587         (sparc_output_mi_thunk): Likewise.
38588
38589 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
38590             H.J. Lu  <hongjiu.lu@intel.com>
38591
38592         PR target/42542
38593         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
38594         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
38595         operands to make them signed.
38596
38597         Revert:
38598         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38599
38600         PR target/42542
38601         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38602         GTU to GT for V4SI and V2DI.
38603
38604         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38605         (umin<mode>3): Removed.
38606         (uminv8hi3): New.
38607         (uminv4si3): Likewise.
38608
38609 2010-01-05  Martin Jambor  <mjambor@suse.cz>
38610
38611         PR tree-optimization/42462
38612         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
38613         current_function_decl to helper functions and macros.
38614
38615 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38616
38617         PR bootstrap/41771
38618         * flags.h: Don't include real.h.
38619         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
38620         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
38621         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
38622         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
38623         * dominance.c: Update copyright.
38624         * gimple.c (walk_gimple_op): Remove inline.
38625         * tree-ssa-reassoc.c: Include real.h.
38626         * Makefile.in (FLAGS_H): Remove $(REAL_H).
38627         (tree-ssa-reassoc.o): Depend on $(REAL_H).
38628
38629 2010-01-05  Nick Clifton  <nickc@redhat.com>
38630
38631         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
38632         register to push into the stack frame when the accumulator has to
38633         be saved during interrupts.
38634
38635 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
38636
38637         * doc/invoke.texi: Remove the documentation about option
38638         -Wunreachable-code.
38639         * common.opt (Wunreachable-code):  Preserved for backward
38640         compatibility.
38641         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
38642         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
38643         the backward compatibility flag section.
38644
38645 2010-01-05  Richard Guenther  <rguenther@suse.de>
38646
38647         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
38648
38649 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
38650
38651         PR other/42611
38652         * cfgexpand.c (expand_one_var): Diagnose too large variables.
38653
38654         PR tree-optimization/42508
38655         * tree-sra.c (convert_callers): Check for recursive call
38656         by comparing cgraph nodes instead of decls.
38657         (modify_function): Call ipa_modify_formal_parameters also
38658         on all same_body aliases.
38659
38660         * cgraphunit.c (cgraph_materialize_all_clones): Compare
38661         cgraph nodes when checking for same_body aliases.
38662
38663 2010-01-05  Richard Guenther  <rguenther@suse.de>
38664
38665         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
38666         allocation and lookup.
38667         (get_or_alloc_expr_for_constant): Likewise.
38668         (phi_translate): Sink allocation.
38669
38670 2010-01-04  Richard Guenther  <rguenther@suse.de>
38671
38672         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
38673         a new entry only if needed.
38674         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
38675         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
38676         hashtable lookup.
38677         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
38678         the result array.
38679         (phi_translate): Handle CONSTANTs early.
38680
38681 2010-01-04  Martin Jambor  <mjambor@suse.cz>
38682
38683         PR tree-optimization/42398
38684         * tree-sra.c (struct access): Removed flag grp_different_types.
38685         (dump_access): Do not dump the removed flag.
38686         (sort_and_splice_var_accesses): Do not set the removed flag.
38687         (sra_modify_expr): Check for type compatibility directly.
38688
38689 2010-01-04  Martin Jambor  <mjambor@suse.cz>
38690
38691         PR tree-optimization/42366
38692         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
38693         edges with variable number of parameters.
38694         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
38695         flag instead of asserting it.
38696         (ipa_read_node_info): Read uses_analysis_done flag.
38697
38698 2010-01-04  Richard Guenther  <rguenther@suse.de>
38699
38700         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
38701         iterative_hash_* as intended.
38702         (vn_reference_compute_hash): Likewise.  Simplify hashing
38703         SSA names.
38704         (vn_reference_lookup_2): Likewise.
38705         (vn_nary_op_compute_hash): Likewise.
38706         (vn_phi_compute_hash): Likewise.
38707         (expressions_equal_p): Remove strange code.
38708         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
38709         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
38710         (bitmap_insert_into_set_1): Take value-id as parameter.
38711         (add_to_value): Pass it.
38712         (bitmap_insert_into_set): Likewise.
38713         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
38714
38715 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
38716
38717         PR driver/42442
38718         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
38719         (do_self_spec): For switches with SWITCH_IGNORE set set also
38720         SWITCH_IGNORE_PERMANENTLY.
38721         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
38722         of SWITCH_IGNORE.
38723
38724 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
38725
38726         * lto-streamer-out.c (output_unreferenced_globals): Output the full
38727         tree of an unreferenced global var.
38728
38729 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38730
38731         PR target/42542
38732         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38733         GTU to GT for V4SI and V2DI.
38734
38735         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38736         (umin<mode>3): Removed.
38737         (uminv8hi3): New.
38738         (uminv4si3): Likewise.
38739
38740 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38741
38742         PR lto/42581
38743         * collect2.c (main): Turn on trace in collect2 if -v is passed
38744         to gcc with LTO.
38745
38746 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
38747
38748         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
38749         description of expression operand.
38750
38751 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
38752
38753         * configure.ac: Add install-html to target_list for Make-hooks.
38754         * configure: Regenerate.
38755         * fortran/Make-lang.in (F95_HTMLFILES): New.
38756         (fortran.html): Use it.
38757         (fortran.install-html): New.
38758         * Makefile.in (install-html): Add lang.install-html.
38759         * java/Make-lang.in (JAVA_HTMLFILES): New.
38760         (java.html): Use it.
38761         (java.install-html): New.
38762         * objc/Make-lang.in (objc.install-html): New.
38763         * objcp/Make-lang.in (obj-c++.install-html): New.
38764         * cp/Make-lang.in (c++.install-html): New.
38765         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
38766         * lto/Make-lang.in (lto.install-html): New.
38767
38768 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38769
38770         PR lto/42520
38771         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
38772
38773 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38774
38775         PR rtl-optimization/41862
38776         * store-motion.c (store_killed_in_insn, compute_store_table,
38777         remove_reachable_equiv_notes, replace_store_insn,
38778         build_store_vectors): Ignore all DEBUG_INSNs.
38779
38780 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38781
38782         PR lto/41564
38783         * common.opt: Add dumpdir.
38784
38785         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
38786         isn't specified.
38787         (option_map): Add --dumpdir.
38788
38789         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
38790
38791         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
38792
38793         * opts.c (decode_options): Try dump_dir_name first if
38794         dump_base_name isn't an absolute path.
38795         (common_handle_option): Handle OPT_dumpdir.
38796
38797         * toplev.c (dump_dir_name): New.
38798         (print_switch_values): Also ignore -dumpdir.
38799
38800         * toplev.h (dump_dir_name): New.
38801
38802 2010-01-03  Richard Guenther  <rguenther@suse.de>
38803
38804         PR tree-optimization/42589
38805         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
38806         double-word expansion of bswap32.
38807
38808 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38809
38810         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
38811         with BLOCK_FOR_INSN.
38812         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
38813         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
38814         noce_process_if_block): Likewise.
38815         * gcse.c (compute_local_properties, insert_expr_in_table,
38816         insert_set_in_table, canon_list_insert, find_avail_set,
38817         pre_insert_copy_insn): Likewise.
38818
38819         * basic-block.h (BLOCK_NUM): Move from here...
38820         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
38821
38822 2010-01-03  Richard Guenther  <rguenther@suse.de>
38823
38824         PR tree-optimization/42438
38825         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
38826         contains_may_not_return_call flag.
38827         (BB_MAY_NOTRETURN): New.
38828         (valid_in_sets): Trapping nary operations are not valid
38829         in blocks that may not return.
38830         (insert_into_preds_of_block): Remove check for trapping expressions.
38831         (compute_avail): Compute also BB_MAY_NOTRETURN.
38832
38833 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
38834
38835         * doc/invoke.texi: Add 2010 to copyright years.
38836
38837 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
38838
38839         * config/sparc/sparc.c: Fix formatting nits.
38840
38841 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
38842             Alexander Monakov  <amonakov@ispras.ru>
38843
38844         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
38845
38846 2010-01-02  Richard Guenther  <rguenther@suse.de>
38847
38848         PR middle-end/42577
38849         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
38850         (simplify_switch_using_ranges): Mark to be removed edges
38851         as non-executable.
38852
38853 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38854
38855         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38856
38857         * collect2.c (scan_libraries): Add missing argument in call to
38858         scan_prog_file.
38859
38860 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
38861
38862         PR target/42448
38863         * config/alpha/predicates.md (aligned_memory_operand): Return false
38864         for CQImode.
38865         (unaligned_memory_operand): Return true for CQImode.
38866         * config/alpha/alpha.c (get_aligned_mem): Assert that location
38867         doesn not cross aligned SImode word boundary.
38868
38869 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
38870
38871         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
38872         Remove.
38873         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
38874         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
38875
38876 2010-01-02  Richard Guenther  <rguenther@suse.de>
38877
38878         PR lto/41597
38879         * toplev.c (compile_file): Emit LTO marker properly.  Change
38880         it to __gnu_lto_v1.
38881         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
38882
38883 2010-01-01  Richard Guenther  <rguenther@suse.de>
38884
38885         PR debug/42455
38886         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
38887
38888 2010-01-01  Richard Guenther  <rguenther@suse.de>
38889
38890         PR c/42570
38891         * c-decl.c (grokdeclarator): For zero-size arrays force
38892         structural equality checks as layout_type does.
38893
38894 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38895
38896         * builtins.c: Update copyright to 2010.
38897
38898 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38899
38900         PR lto/42531
38901         * lto-streamer-out.c (produce_asm): Revert the last change.
38902         (copy_function): Likewise.
38903
38904         * lto-streamer.c (lto_get_section_name): Skip any leading
38905         asterisk in name.
38906
38907 2010-01-01  Richard Guenther  <rguenther@suse.de>
38908
38909         PR middle-end/42559
38910         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
38911         for LABEL_DECLs.
38912
38913 \f
38914 Copyright (C) 2010 Free Software Foundation, Inc.
38915
38916 Copying and distribution of this file, with or without modification,
38917 are permitted in any medium without royalty provided the copyright
38918 notice and this notice are preserved.