OSDN Git Service

* config/sh/sh-protos.h (sh_function_arg): Delete.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2
3         * config/sh/sh-protos.h (sh_function_arg): Delete.
4         (sh_function_arg_advance): Delete.
5         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6         (PASS_IN_REG_P): Eliminate cast.
7         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
8         const_tree and a bool.
9         (sh_function_arg): Likewise.
10         (sh_output_mi_thunk): Call sh_function_arg_advance) and
11         sh_function_arg.
12         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13
14 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
15             Kaz Kojima  <kkojima@gcc.gnu.org>
16
17         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
18         when possible.
19         (sh_expand_epilogue): Likewise.
20         * config/sh/sh.md (movml_push_banked): New insn.
21         (movml_pop_banked): Likewise.
22
23 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
24
25         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
26         gen_regexp_oneof, gen_regexp_sequence): Use the string found
27         in vector element 0 rather than the original string when there's
28         only one element.
29         (gen_regexp): Remove extra semicolon.
30
31         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
32         thumb2_movsf_vfp): Set attribute "insn".
33         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
34         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
35         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
36         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
37         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
38         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
39         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
40         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
41         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
42         if_not_arith, if_arith_not, cond_move_not): Likewise.
43
44 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
45
46         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
47         New declaration.
48         (rs6000_allocate_stack_temp): Ditto.
49         (rs6000_expand_convert_si_to_sfdf): Ditto.
50
51         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
52         line.  Update the options set if power6 or power7 server/embedded
53         type options are used.  If we give a warning for no vsx under
54         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
55         (rs6000_allocate_stack_temp): New function to allocate a stack
56         tempoary and adjust the address so it meets either REG+OFFSET or
57         REG+REG addressing requirements.
58         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
59         that they can be used with the LFIWAX/LFIWZX instrucitons.
60         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
61         converting signed/unsigned SImode to either SFmode/DFmode.
62
63         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
64         whether certain instructions can be generated.
65         (TARGET_FCTIDZ): Ditto.
66         (TARGET_STFIWX): Ditto.
67         (TARGET_LFIWAX): Ditto.
68         (TARGET_LFIWZX): Ditto.
69         (TARGET_FCFIDS): Ditto.
70         (TARGET_FCFIDU): Ditto.
71         (TARGET_FCFIDUS): Ditto.
72         (TARGET_FCTIDUZ): Ditto.
73         (TARGET_FCTIWUZ): Ditto.
74
75         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
76         (UNSPEC_FCTID): Ditto.
77         (UNSPEC_LFIWAX): Ditto.
78         (UNSPEC_LFIWZX): Ditto.
79         (UNSPEC_FCTIWUZ): Ditto.
80         (rreg): Use correct constraints.
81         (SI_CONVERT_FP): New mode attribute for floating point conversion
82         tests.
83         (E500_CONVERT): Ditto.
84         (lfiwax): New insns for converting from integer to floating point
85         utilizing newer instructions.  Attempt to optimize conversions
86         that come from memory so that we don't load the value into a GPR,
87         spill it to the stack and reload it into a FPR.
88         (floatsi<mode>2_lfiwax): Ditto.
89         (floatsi<mode>2_lfiwax_mem): Ditto.
90         (floatsi<mode>2_lfiwax_mem2): Ditto.
91         (lfiwzx): Ditto.
92         (floatunssi<mode>2_lfiwzx): Ditto.
93         (floatunssi<mode>2_lfiwzx_mem): Ditto.
94         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
95         (floatdidf2_mem): Ditto.
96         (floatunsdidf2_fcfidu): Ditto.
97         (floatunsdidf2_mem): Ditto.
98         (floatunsdisf2): Ditto.
99         (floatunsdisf2_fcfidus): Ditto.
100         (floatunsdisf2_mem): Ditto.
101         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
102         Use FCFID on 32-bit hosts that support it.
103         (floatsidf2_internal): Ditto.
104         (floatunssisf2): Ditto.
105         (floatunssidf2): Ditto.
106         (floatunssidf2_internal): Ditto.
107         (floatsisf2): Ditto.
108         (floatdidf2): Ditto.
109         (floatdidf2_fpr): Ditto.
110         (floatunsdidf2): Ditto.
111         (floatdisf2): Ditto.
112         (floatdisf2_fcfids): Ditto.
113         (floatdisf2_internal1): Ditto.
114         (fixuns_truncsfsi2): Delete, merge into common pattern for both
115         SF/DF.  Add power7 support.
116         (fix_truncsfsi2): Ditto.
117         (fixuns_truncdfsi2): Ditto.
118         (fixuns_truncdfdi2): Ditto.
119         (fix_truncdfsi2): Ditto.
120         (fix_truncdfsi2_internal): Ditto.
121         (fix_truncdfsi2_internal_gfxopt): Ditto.
122         (fix_truncdfsi2_mfpgpr): Ditto.
123         (fctiwz): Ditto.
124         (btruncdf2): Ditto.
125         (btruncdf2_fpr): Ditto.
126         (btructsf2): Ditto.
127         (ceildf2): Ditto.
128         (ceildf2_fpr): Ditto.
129         (ceilsf2): Ditto.
130         (floordf2): Ditto.
131         (floordf2_fpr): Ditto.
132         (floorsf2): Ditto.
133         (rounddf2): Ditto.
134         (rounddf2_fpr): Ditto.
135         (roundsf2): Ditto.
136         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
137         (fix_trunc<mode>di2): Ditto.
138         (fixuns_trunc<mode>si2): Ditto.
139         (fixuns_trunc<mode>di2): Ditto.
140         (fctiwz_<mode>): Ditto.
141         (btrunc<mode>2): Ditto.
142         (btrunc<mode>2_fpr): Ditto.
143         (ceil<mode>2): Ditto.
144         (ceil<mode>2_fpr): Ditto.
145         (floor<mode>2): Ditto.
146         (float<mode>2_fpr): Ditto.
147         (round<mode>2): Ditto.
148         (round<mode>2_fpr): Ditto.
149         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
150         (fixuns_trunc<mode>si2_stfiwx): Ditto.
151         (fix_truncdfsi2_internal): Ditto.
152         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
153         converted value on stack, loaded into GPR, and then stored into
154         the final destination.
155         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
156         FCTIDZ.
157         (lrint<mode>di2): New insn, provide the lrint builtin functions.
158         (ftruncdf2): Delete, unused.
159         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
160
161         * config/rs6000/vsx.md (toplevel): Update copyright year.
162         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
163         (VSr3): Ditto.
164
165 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
166             Jeremie Salvucci  <jeremie.salvucci@free.fr>
167
168         * gengtype.c (output_type_enum): Test the right union member.
169
170 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
171
172         PR target/41484
173         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
174         operands for operand 1.
175         (sse4_1_extendv4qiv4si2): Ditto.
176         (sse4_1_extendv2qiv2di2): Ditto.
177         (sse4_1_extendv4hiv4si2): Ditto.
178         (sse4_1_extendv2hiv2di2): Ditto.
179         (sse4_1_extendv2siv2di2): Ditto.
180         (sse4_1_zero_extendv8qiv8hi2): Ditto.
181         (sse4_1_zero_extendv4qiv4si2): Ditto.
182         (sse4_1_zero_extendv2qiv2di2): Ditto.
183         (sse4_1_zero_extendv4hiv4si2): Ditto.
184         (sse4_1_zero_extendv2hiv2di2): Ditto.
185         (sse4_1_zero_extendv2siv2di2): Ditto.
186         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
187         (*sse4_1_extendv4qiv4si2): Ditto.
188         (*sse4_1_extendv2qiv2di2): Ditto.
189         (*sse4_1_extendv4hiv4si2): Ditto.
190         (*sse4_1_extendv2hiv2di2): Ditto.
191         (*sse4_1_extendv2siv2di2): Ditto.
192         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
193         (*sse4_1_zero_extendv4qiv4si2): Ditto.
194         (*sse4_1_zero_extendv2qiv2di2): Ditto.
195         (*sse4_1_zero_extendv4hiv4si2): Ditto.
196         (*sse4_1_zero_extendv2hiv2di2): Ditto.
197         (*sse4_1_zero_extendv2siv2di2): Ditto.
198
199 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
200
201         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
202         (mips_function_arg): Delete.
203         (mips_function_arg_boundary): Take a const_tree.
204         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
205         (mips_arg_info): Likewise.
206         (mips_setup_incoming_varargs): Call mips_function_arg_advance
207         instead of FUNCTION_ARG_ADVANCE.
208         (mips_function_arg_advance): Adjust prototype.  Make static.
209         (mips_function_arg): Likewise.
210         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
211         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
212
213 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
214
215         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
216         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
217         (function_arg): Delete.
218         (function_arg_boundary): Take a const_tree.
219         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
220         (rs6000_spe_function_arg): Likewise.
221         (rs6000_parm_start): Likewise.
222         (rs6000_arg_size): Likewise.
223         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
224         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
225         (rs6000_mixed_function_arg): Likewise.
226         (function_arg): Rename to...
227         (rs6000_function_arg): ...this.
228         (function_arg_advance): Rename to...
229         (rs6000_function_arg_advance_1): ...this
230         (rs6000_function_arg_advance): New function.  Call it.
231         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
232         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
233         (rs6000_function_value): Likewise.
234         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
235
236 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
237
238         * config/arm/arm.md (enabled): Test the value of arch_enabled
239         rather than just using it.
240
241 2010-08-27  Olivier Hainque  <hainque@adacore.com>
242             Eric Botcazou  <ebotcazou@adacore.com>
243
244         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
245         cover all the possible offsets from this base.
246         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
247
248 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
249
250         PR tree-optimization/44485
251         * calls.c (flags_from_decl_or_type): For const or pure
252         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
253         together with ECF_CONST resp. ECF_PURE.
254         * builtins.c (expand_builtin): Use flags_from_decl_or_type
255         instead of querying flags directly.
256         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
257         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
258
259 2010-08-26  Richard Guenther  <rguenther@suse.de>
260
261         PR tree-optimization/45255
262         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
263         and externals are also invariant.
264
265 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
266
267         PR rtl-optimization/44858
268         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
269         newi2pat, make sure they don't affect newpat.
270
271         PR rtl-optimization/45400
272         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
273         SUBREG_REG if both modes are of MODE_INT class.
274
275 2010-08-25  Julian Brown  <julian@codesourcery.com>
276
277         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
278         * config/arm/arm.md (generic_sched): No for Cortex-A5.
279         (generic_vfp): Likewise.
280         (cortex-a5.md): Include.
281         * config/arm/cortex-a5.md: New.
282
283 2010-08-25  Richard Guenther  <rguenther@suse.de>
284
285         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
286         * gimple.c (gimple_get_alias_set): Remove special handling
287         for pointers.
288
289 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
290
291         PR middle-end/45355
292         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
293         dead_or_set_p when computing i0_feeds_i2_n.
294
295         * combine.c (find_split_point): Undo canonicalization of multiply-add
296         to (minus x (mult)) when it seems likely that this will increase the
297         chances of a split.
298
299 2010-08-25  Richard Guenther  <rguenther@suse.de>
300
301         PR lto/44562
302         * lto-streamer.c (lto_record_common_node): Do not mess with
303         TYPE_CANONICAL when not in lto.
304         * gimple.c (gimple_register_type): Likewise.
305
306 2010-08-25  Richard Guenther  <rguenther@suse.de>
307
308         PR tree-optimization/45316
309         * tree-ssa-pre.c (eliminate): Properly clean EH info.
310
311 2010-08-25  Richard Guenther  <rguenther@suse.de>
312
313         PR tree-optimization/45393
314         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
315         and clean EH info.  Avoid SSA update.
316         (execute_cse_sincos): Cleanup the CFG if it has changed.
317
318 2010-08-25  Richard Guenther  <rguenther@suse.de>
319
320         PR middle-end/45379
321         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
322         TARGET_MEM_REF in alignment computation.
323
324 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
325
326         PR tree-optimization/45059
327         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
328         type conversions from newop{1,2}.  Assert t is a comparison and
329         newop{1,2} after the stripping are gimple vals.
330
331 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
332
333         * config/arm/iterators.md (VU, SE, V_widen_l): New.
334         (V_unpack, US): New.
335         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
336         (vec_unpack<US>_lo_<mode>): Likewise.
337         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
338         (neon_vec_unpack<US>_lo_<mode>): Likewise.
339         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
340         (vec_widen_<US>mult_hi_<mode>): Likewise.
341         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
342         (neon_vec_<US>mult_hi_<mode>"): Likewise.
343         (neon_unpack<US>_<mode>): Widening move intermediate step for
344         vectorizing without -mvectorize-with-neon-quad.
345         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
346         for vectorizing without -mvectorize-with-neon-quad.
347         * config/arm/predicates.md (vect_par_constant_high): Check for
348         high-half lanes of a vector.
349         (vect_par_constant_low): Check for low-half lanes of a vector.
350
351 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
352
353         * tree-if-conv.c (struct ifc_dr): New.
354         (IFC_DR): New.
355         (DR_WRITTEN_AT_LEAST_ONCE): New.
356         (DR_RW_UNCONDITIONALLY): New.
357         (memref_read_or_written_unconditionally): Use the cached values
358         when possible.
359         (write_memref_written_at_least_once): Same.
360         (if_convertible_loop_p): Initialize and free DR->aux fields.
361
362 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
363
364         * gimple.c (gimple_could_trap_p_1): Not static anymore.
365         Pass an extra bool parameter include_mem.
366         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
367         (gimple_assign_rhs_could_trap_p): Same.
368         * gimple.h (gimple_could_trap_p_1): Declared.
369         * tree-data-ref.h (same_data_refs_base_objects): New.
370         (same_data_refs): New.
371         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
372         (write_memrefs_written_at_least_once): New.
373         (ifcvt_memrefs_wont_trap): New.
374         (operations_could_trap): New.
375         (ifcvt_could_trap_p): New.
376         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
377         Gets a vector of data refs.
378         (if_convertible_stmt_p): Same.
379         (if_convertible_loop_p_1): New.
380         (if_convertible_loop_p): Call if_convertible_loop_p_1.
381
382 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
383
384         * common.opt (ftree-loop-if-convert-stores): New flag.
385         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
386         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
387         the created statement before GSI.
388         (if_convertible_phi_p): Allow virtual phi nodes when
389         flag_loop_if_convert_stores is set.
390         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
391         Do not handle types that do not match is_gimple_reg_type.
392         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
393         when flag_loop_if_convert_stores is set, as LHS can contain
394         memory refs.
395         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
396         to if_convertible_gimple_assign_stmt_p.
397         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
398         (replace_phi_with_cond_gimple_assign_stmt): Renamed
399         predicate_scalar_phi.  Do not handle virtual phi nodes.
400         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
401         Call predicate_scalar_phi.
402         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
403         just after the labels for flag_loop_if_convert_stores, otherwise
404         insert the predicate in the end of the BB.
405         (predicate_mem_writes): New.
406         (combine_blocks): Call predicate_all_scalar_phis.  When
407         flag_loop_if_convert_stores is set, call predicate_mem_writes.
408         (tree_if_conversion): Call mark_sym_for_renaming when
409         flag_loop_if_convert_stores is set.
410         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
411         flag_loop_if_convert_stores is set.
412
413 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
414
415         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
416         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
417         (pa_function_value): Make static.
418         (override_options): Rename to...
419         (pa_option_override): ...this. Make static.
420         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
421         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
422         TARGET_OPTION_OVERRIDE): Define.
423         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
424         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
425         Remove.
426         * config/pa/pa-protos.h (override_options): Remove.
427
428 2010-08-24  Richard Guenther  <rguenther@suse.de>
429
430         PR middle-end/45379
431         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
432         if addr->index is NULL or zero.
433         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
434         TARGET_MEM_REF more properly.
435         (indirect_ref_may_alias_decl_p): Likewise.
436         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
437         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
438
439 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
440
441         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
442         (m32c_override_options): Rename to...
443         (m32c_option_override): ...this. Make static.
444         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
445         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
446         Remove.
447         * config/m32c/m32c-protos.h (m32c_override_options,
448         m32c_function_value_regno_p): Remove.
449
450 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
451
452         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
453         Fix a typo in a previous commit.
454
455 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
456
457         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
458         Pre-initialize innerloop_iters to one.
459
460 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
461
462         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
463         existing static function global.
464
465         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
466         is changed to global.
467
468         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
469         may_be_nonaddressable_p on base, and don't collect this reference
470         if the address of the base could not be taken.
471
472 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
473
474         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
475         enable the compiler to autovectorize mathmetical functions for
476         power7 using the Mathematical Acceleration Subsystem library.
477
478         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
479         handle which vector math library we have.
480         (rs6000_override_options): Add -mveclibabi=mass support.
481         (rs6000_builtin_vectorized_libmass): New function to handle auto
482         vectorizing math functions that are in the MASS library.
483         (rs6000_builtin_vectorized_function): Call it.
484
485         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
486         -mveclibabi=mass.
487
488 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
489
490         PR boehm-gc/34544
491         * gthr-posix.h (__gthread_active_init): Delete.
492         (__gthread_active_p): Do activity check here.
493         Don't include errno.h on hppa-hpux.  Update comment.
494         * gthr-posix95.h (__gthread_active_init): Delete.
495         (__gthread_active_p): Do activity check here.
496         Don't include errno.h on hppa-hpux.  Update comment.
497         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
498         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
499         add -lpthread when -mt or -pthread is specified.
500         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
501         (LINK_GCC_C_SEQUENCE_SPEC): Define.
502         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
503         (stublib.c, pthread_default_stacksize_np-stub.o,
504         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
505         $(T)libgcc_stub.a): Add methods.
506         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
507         (stublib.c, pthread_default_stacksize_np-stub.o,
508         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
509         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
510         pthread_mutex_unlock): New stubs.
511
512 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
513
514         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
515         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
516         options.
517         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
518         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
519         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
520         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
521         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
522         "-l".
523         * cppspec.c: Include opts.h.
524         (lang_specific_driver): Use cl_decoded_option structures.
525         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
526         * doc/tm.texi: Regenerate.
527         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
528         (driver_handle_option): Allow driver options needing no special
529         processing.
530         (process_command): Decode options before call to
531         lang_specific_driver.  Pass decoded options to
532         lang_specific_driver.
533         * gcc.h (lang_specific_driver): Update prototype.
534         * gccspec.c: Include opts.h.
535         (lang_specific_driver): Use cl_decoded_option structures.
536         * opts-common.c (option_ok_for_language, generate_option,
537         generate_option_input_file): New.
538         (decode_cmdline_option): Use option_ok_for_language.
539         (decode_cmdline_options_to_array): Use generate_option_input_file.
540         (handle_generated_option): Use generate_option.
541         * opts.h (generate_option, generate_option_input_file): Declare.
542
543 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
544
545         * config/mips/mips.c (mips_override_options): Rename to...
546         (mips_option_override): ...this. Make static.
547         (TARGET_OPTION_OVERRIDE): Define.
548         (mips_in_small_data_p): Update comment.
549         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
550         (FIXED_REGISTERS): Update comment.
551         * config/mips/mips-protos.h (mips_override_options): Remove.
552
553 2010-08-21  Olivier Hainque  <hainque@adacore.com>
554
555         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
556
557 2010-08-21  Olivier Hainque  <hainque@adacore.com>
558
559         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
560         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
561
562 2010-08-20  Jan Hubicka  <jh@suse.cz>
563
564         * tree-pass.h (pass_ipa_cdtor_merge): New function.
565         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
566         heap allocated.
567         (record_cdtor_fn): Move to ipa.c; do not test for
568         have_ctors_dtors.
569         (build_cdtor): Move to ipa.c; add code avoiding construction
570         when target have ctors/dtors and there is only one ctor/dtor at given
571         priority.
572         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
573         sort; reverse order of constructors.
574         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
575         (cgraph_finalize_function): Do not call record_cdtor_fn.
576         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
577         (cgraph_build_static_cdtor): Move to ipa.c.
578         * ipa.c: Include target.h and tree-iterator.h.
579         (cgraph_build_static_cdtor, static_ctors, static_dtors,
580         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
581         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
582         pass_ipa_cdtor_merge): New.
583         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
584         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
585         bounds access.
586
587 2010-08-20  Jan Hubicka  <jh@suse.cz>
588
589         PR c++/45307
590         PR c++/17736
591         * cgraph.h (cgraph_only_called_directly_p,
592         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
593         static cdtors.
594         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
595         are not needed.
596         (cgraph_finalize_function): Static cdtors are reachable.
597         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
598
599 2010-08-20  Jan Hubicka  <jh@suse.cz>
600
601         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
602         flag_wpa.
603         * lto-streamer-out.c (lto_output): Likewise.
604         * passes.c (ipa_write_optimization_summaries): Initialize statement
605         uids.
606
607 2010-08-20  Olivier Hainque  <hainque@adacore.com>
608
609         * tree.h (alias_diag_flags): New enum.
610         (alias_pair): Add an 'emitted_diags' field.
611         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
612         (assemble_alias): Initialize emitted_diags of new pairs.
613
614 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
615
616         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
617         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
618         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
619         (STACK_CHECK_PROTECT): Define.
620         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
621         (output_probe_stack_range): Likewise.
622         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
623         builtin stack checking is enabled.
624         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
625         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
626         (probe_stack_range): New insn.
627
628 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
629
630         PR target/45336
631         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
632         short first.
633
634         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
635         char first.
636
637 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
638
639         PR target/45336
640         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
641         to cover zero extension into 64-bit register.
642         (*sse2_pextrw): Likewise.
643         (*sse4_1_pextrd_zext): New insn.
644
645 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
646
647         revert r163410, partially revert r163267.
648         * config/rs6000/darwin.h (LIB_SPEC): Remove.
649         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
650         Darwin versions.
651
652 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
653
654         PR middle-end/44974
655         * builtins.c (expand_builtin): Don't optimize away
656         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
657
658 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
659
660         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
661         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
662         alternative 1 of operand 2.
663
664 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
665             Paolo Bonzini  <bonzini@gnu.org>
666
667         * simplify-rtx.c (simplify_unary_operation_1): Optimize
668         (sign_extend (zero_extend (...)) and
669         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
670
671 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
672
673         PR rtl-optimization/45353
674         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
675         after bb_note is a BARRIER.
676
677 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
678
679         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
680         linking libgcc.a.
681
682 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
683             Michael Matz  <matz@suse.de>
684
685         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
686
687 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
688
689         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
690         (ggc_mark_roots): ...here.
691
692 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
693
694         * vec.h (FOR_EACH_VEC_ELT): Define.
695         * c-decl.c: Use it.
696         * cfgloop.c: Likewise.
697         * cfgloopmanip.c: Likewise.
698         * cgraph.c: Likewise.
699         * cgraphunit.c: Likewise.
700         * combine.c: Likewise.
701         * config/bfin/bfin.c: Likewise.
702         * config/mips/mips.c: Likewise.
703         * config/rs6000/rs6000.c: Likewise.
704         * dbxout.c: Likewise.
705         * df-scan.c: Likewise.
706         * dominance.c: Likewise.
707         * dse.c: Likewise.
708         * dwarf2out.c: Likewise.
709         * except.c: Likewise.
710         * expr.c: Likewise.
711         * function.c: Likewise.
712         * gcse.c: Likewise.
713         * genattr.c: Likewise.
714         * ggc-common.c: Likewise.
715         * gimplify.c: Likewise.
716         * graphite-blocking.c: Likewise.
717         * graphite-clast-to-gimple.c: Likewise.
718         * graphite-dependences.c: Likewise.
719         * graphite-interchange.c: Likewise.
720         * graphite-poly.c: Likewise.
721         * graphite-scop-detection.c: Likewise.
722         * graphite-sese-to-poly.c: Likewise.
723         * graphite.c: Likewise.
724         * haifa-sched.c: Likewise.
725         * ifcvt.c: Likewise.
726         * implicit-zee.c: Likewise.
727         * ipa-prop.c: Likewise.
728         * ipa-struct-reorg.c: Likewise.
729         * ipa.c: Likewise.
730         * ira-build.c: Likewise.
731         * ira-color.c: Likewise.
732         * ira-emit.c: Likewise.
733         * lambda-code.c: Likewise.
734         * loop-invariant.c: Likewise.
735         * loop-unroll.c: Likewise.
736         * lower-subreg.c: Likewise.
737         * lto-cgraph.c: Likewise.
738         * lto-opts.c: Likewise.
739         * lto-streamer-in.c: Likewise.
740         * lto-streamer-out.c: Likewise.
741         * lto-streamer.c: Likewise.
742         * lto-symtab.c: Likewise.
743         * matrix-reorg.c: Likewise.
744         * opts.c: Likewise.
745         * predict.c: Likewise.
746         * print-tree.c: Likewise.
747         * sdbout.c: Likewise.
748         * sel-sched-dump.c: Likewise.
749         * sel-sched-ir.c: Likewise.
750         * sel-sched.c: Likewise.
751         * sese.c: Likewise.
752         * stor-layout.c: Likewise.
753         * tree-cfg.c: Likewise.
754         * tree-cfgcleanup.c: Likewise.
755         * tree-chrec.c: Likewise.
756         * tree-data-ref.c: Likewise.
757         * tree-emutls.c: Likewise.
758         * tree-inline.c: Likewise.
759         * tree-into-ssa.c: Likewise.
760         * tree-loop-distribution.c: Likewise.
761         * tree-loop-linear.c: Likewise.
762         * tree-mudflap.c: Likewise.
763         * tree-outof-ssa.c: Likewise.
764         * tree-parloops.c: Likewise.
765         * tree-predcom.c: Likewise.
766         * tree-pretty-print.c: Likewise.
767         * tree-scalar-evolution.c: Likewise.
768         * tree-ssa-live.c: Likewise.
769         * tree-ssa-loop-im.c: Likewise.
770         * tree-ssa-loop-ivcanon.c: Likewise.
771         * tree-ssa-loop-ivopts.c: Likewise.
772         * tree-ssa-loop-manip.c: Likewise.
773         * tree-ssa-loop-niter.c: Likewise.
774         * tree-ssa-loop-prefetch.c: Likewise.
775         * tree-ssa-phiprop.c: Likewise.
776         * tree-ssa-pre.c: Likewise.
777         * tree-ssa-reassoc.c: Likewise.
778         * tree-ssa-sccvn.c: Likewise.
779         * tree-ssa-structalias.c: Likewise.
780         * tree-ssa.c: Likewise.
781         * tree-vect-data-refs.c: Likewise.
782         * tree-vect-loop-manip.c: Likewise.
783         * tree-vect-loop.c: Likewise.
784         * tree-vect-patterns.c: Likewise.
785         * tree-vect-slp.c: Likewise.
786         * tree-vect-stmts.c: Likewise.
787         * tree-vrp.c: Likewise.
788         * tree.c: Likewise.
789         * value-prof.c: Likewise.
790         * var-tracking.c: Likewise.
791         * varasm.c: Likewise.
792         * vmsdbgout.c: Likewise.
793
794 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
795             Richard Guenther  <richard.guenther@gmail.com>
796
797         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
798         copy the src value and return a copy.
799         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
800         (C++ Volatiles): Adjust to describe C++ semantics only.
801
802 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
803
804         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
805         be zero or nonzero.
806         * doc/tm.texi: Regenerate.
807         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
808         * df-scan.c (df_get_exit_block_use_set), reginfo.c
809         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
810         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
811         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
812         to 1.
813
814 2010-08-20  Olivier Hainque  <hainque@adacore.com>
815
816         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
817         an extra nop past a sibling call at the very end.
818
819 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
820
821         PR bootstrap/45350
822         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
823         a comment.
824
825 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
826
827         * target.def (function_arg, function_incoming_arg): Remove const
828         qualifier on CUMULATIVE_ARGS parameter.
829         * targhooks.h (default_function_arg, default_function_incoming_arg):
830         Likewise.
831         * targhooks.c (default_function_arg, default_function_incoming_arg):
832         Likewise.
833         * config/i386/i386.c (ix86_function_arg): Likewise.
834
835 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
836
837         PR target/45336
838         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
839         SIGN_EXTENDs or ZERO_EXTENDs.
840
841 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
842
843         PR target/42172
844         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
845         Take its cost into account if nonnull.
846         (insn_a_feeds_b): New static function.
847         (combine_instructions): Look for four-insn combinations.
848         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
849         them into account when computing all_adjacent and looking for other
850         uses.
851         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
852         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
853         (try_combine): New arg I0.  Handle four-insn combinations.
854         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
855         like ELIM_I1.
856
857 2010-08-19  Jason Merrill  <jason@redhat.com>
858
859         PR c++/45307
860         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
861         if ctor is empty.
862         (gimplify_modify_expr_rhs): Adjust.
863
864 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
865
866         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
867         bitmap_bit_p.
868         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
869         * dominance.c (iterate_fix_dominators): Likewise.
870         * dse.c (set_usage_bits): Likewise.
871         (set_position_unneeded, record_store): Likewise.
872         * gimple-fold.c (get_maxval_strlen): Likewise.
873         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
874         * ipa-inline.c (update_caller_keys): Likewise.
875         * ipa-split.c (verify_non_ssa_vars): Likewise.
876         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
877         (close_type_exposed_parameter, close_type_full_escape): Likewise.
878         (close_addressof_down): Likewise.
879         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
880         (setup_allocno_left_conflicts_size): Likewise.
881         (ira_reassign_conflict_allocnos): Likewise.
882         (ira_reassign_pseudos): Likewise.
883         * ira-emit.c (change_loop): Likewise.
884         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
885         * lto-streamer-out.c (write_symbol): Likewise.
886         * predict.c (expr_expected_value_1): Likewise.
887         * regstat.c (regstat_bb_compute_ri): Likewise.
888         * sel-sched.c (create_block_for_bookkeeping): Likewise.
889         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
890         * stmt.c (expand_case): Likewise.
891         * tree-eh.c (emit_eh_dispatch): Likewise.
892         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
893         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
894         Likewise.
895         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
896         (rdg_build_components): Likewise.
897         * tree-object-size.c (collect_object_sizes_for): Likewise.
898         * tree-sra.c (convert_callers): Likewise.
899         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
900         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
901         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
902
903 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
904
905         * config/i386/i386.md (*lea_1): Use P mode iterator.
906         (lea add splitter): Also handle DImode operands.
907         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
908         predicate.  Do not use ix86_lea_for_add_ok.
909         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
910         (lea ashift splitter): Also handle DImode operands.
911         (DImode lea ashift splitter): Remove splitter.
912
913 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
914
915         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
916         ix86_binary_operator_ok.
917
918 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
919
920         PR rtl-optimization/44691
921         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
922         is not a register.
923
924 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
925
926         PR target/45070
927         * config/arm/arm.c (arm_output_epilogue): Ensure that return
928          value of size 1-3 is handled correctly.
929
930 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
931
932         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
933         type for the conditional has wide enough range.
934
935 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
936
937         PR target/45327
938         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
939         ix86_binary_operator_ok.
940
941 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
942
943         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
944         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
945         code to output insn mnemonic.  Fix comment.
946         (*addsi_1_zext): Add r-r-0 alternative 1.
947         <TYPE_LEA>: Split insn to lea.
948         <default>: Handle alternative 1.
949         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
950         multi-level if_then_else RTX to set "type" attribute.
951         <default>: Handle alternative 2.
952         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
953         Use cond RTX instead of multi-level if_then_else RTX to set
954         "type" attribute.
955         <default>: Handle alternatives 2 and 4.
956         (lea splitters): Update calls to ix86_lea_for_add_ok.
957
958         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
959         argument.
960         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
961
962 2010-08-18  Richard Guenther  <rguenther@suse.de>
963
964         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
965         use operand helpers.
966
967 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
968
969         PR middle-end/45292
970         * optabs.c (expand_bool_compare_and_swap): Expand pending
971         pops before trying the optab.
972
973 2010-08-18  Yao Qi  <yao@codesourcery.com>
974
975         PR target/45094
976         * config/arm/arm.c (output_move_double): Fix typo generating
977         instructions ('ldr'->'str').
978
979 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
980
981         PR rtl-optimization/42575
982         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
983         live ranges.
984
985 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
986
987         * config/arm/arm-protos.h (arm_expand_sync): New.
988         (arm_output_memory_barrier, arm_output_sync_insn): New.
989         (arm_sync_loop_insns): New.
990         * config/arm/arm.c (FL_ARCH7): New.
991         (FL_FOR_ARCH7): Include FL_ARCH7.
992         (arm_arch7): New.
993         (arm_print_operand): Support %C markup.
994         (arm_legitimize_sync_memory): New.
995         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
996         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
997         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
998         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
999         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
1000         (arm_process_output_sync_insn, arm_output_sync_insn): New.
1001         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
1002         * config/arm/arm.h (struct arm_sync_generator): New.
1003         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
1004         (TARGET_HAVE_MEMORY_BARRIER): New.
1005         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
1006         * config/arm/arm.md: Include sync.md.
1007         (UNSPEC_MEMORY_BARRIER): New.
1008         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
1009         (VUNSPEC_SYNC_OP):New.
1010         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
1011         (sync_result, sync_memory, sync_required_value): New attributes.
1012         (sync_new_value, sync_t1, sync_t2): Likewise.
1013         (sync_release_barrier, sync_op): Likewise.
1014         (length): Add logic to length attribute defintion to call
1015         arm_sync_loop_insns when appropriate.
1016         * config/arm/sync.md: New file.
1017
1018 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
1019
1020         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
1021         ENABLE_TREE_CHECKING.
1022         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
1023         and GCC >= 4.3.
1024
1025 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
1026
1027         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
1028         or optimizing for size, always avoid lea if possible.
1029
1030         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
1031
1032 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
1033
1034         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
1035         Dunmmy function with NULL return unless the target is
1036         OSX >= 10.6 (Darwin10).
1037
1038 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
1039
1040         * gcc.c (spec_function): Add remove-outfile.
1041         (remove_outfile_spec_function): New function.
1042         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
1043         * invoke.texi (replace-outfile): Document.
1044
1045 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
1046
1047         PR target/45296
1048         * reginfo.c (globalize_reg): Reject stack registers.
1049
1050 2010-08-17  Richard Guenther  <rguenther@suse.de>
1051
1052         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
1053         list of conditional equivalences.
1054         (free_all_edge_infos): Adjust.
1055         (record_equivalences_from_incoming_edge): Likewise.
1056         (record_cond): Likewise.
1057         (build_and_record_new_cond): Likewise.
1058         (record_conditions): Likewise.
1059         (dom_opt_leave_block): Likewise.
1060
1061 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
1062
1063         * doc/invoke.texi (ms-extension): Add documentation.
1064
1065 2010-08-17  Richard Guenther  <rguenther@suse.de>
1066
1067         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
1068
1069 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
1070
1071         PR c/40563
1072         * c-decl.c (diagnose_uninitialized_cst_member): New function.
1073         (finish_decl): Use it to issue a -Wc++-compat warning about
1074         uninitialized const field in struct or union.
1075
1076         (finish_struct): Use strip_array_types.
1077
1078 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
1079
1080         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
1081         functions.
1082         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
1083         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
1084         call block_nreverse here.
1085         (blocks_nreverse): Rename decl temporary to block.
1086
1087 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
1088
1089         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
1090         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
1091         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
1092         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
1093         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
1094         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
1095         thumb2_iorsi3): Delete.
1096         (orsi_notsi_si): No longer a named pattern.
1097         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
1098         * config/arm/predicates.md (shift_amount_operand): New.
1099         (mult_operator): New.
1100         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
1101         attr enabled): New.
1102         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
1103         arch matches t2.
1104         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
1105         (not_shiftsi_compare0): Likewise, renamed from
1106         arm_notsi_shiftsi_compare0.
1107         (not_shiftsi_compare0_scratch): Likweise, renamed from
1108         arm_notsi_shiftsi_compare0_scratch.
1109         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
1110         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
1111         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
1112         so that the register alternative is disabled when the shift_operator
1113         is MULT.  Use "M" as the constraint for constants.
1114         (arith_shiftsi splitter): Enable for TARGET_32BIT.
1115         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
1116         constraint for constants.
1117         (arith_shiftsi_compare0_scratch): Likewise.
1118         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
1119         Handle Thumb2 alternative.
1120
1121 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
1122
1123         * doc/options.texi (NoDriverArg): Document.
1124         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
1125         -MDX and -MMDX.
1126         * opt-functions.awk (switch_flags): Handle NoDriverArg.
1127         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
1128         marking for CL_NO_DRIVER_ARG options when in the driver.
1129         * opts.h (CL_NO_DRIVER_ARG): Define.
1130         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1131         CL_COMMON): Update values.
1132
1133 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
1134
1135         * common.opt: Add driver options.
1136         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
1137         * doc/options.texi (Driver, RejectDriver): Document.
1138         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
1139         print_prog_name, print_multi_directory, print_sysroot,
1140         print_multi_os_directory, print_multi_lib,
1141         print_sysroot_headers_suffix, report_times, combine_flag,
1142         use_pipes, wrapper_string): Remove.
1143         (save_switch, driver_unknown_option_callback,
1144         driver_wrong_lang_callback, driver_post_handling_callback,
1145         driver_handle_option): New.
1146         (spec_lang, last_language_n_infiles): Make file-scope static
1147         instead of local to process_command.
1148         (process_command): Use decode_cmdline_options_to_array and
1149         read_cmdline_option for option processing.  Compute have_c in
1150         prescan of decoded options.
1151         * opt-functions.awk (switch_flags): Handle Driver and
1152         RejectDriver.
1153         (var_type, var_type_struct): Handle Separate options as generating
1154         const char * variables.
1155         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
1156         CL_TARGET to be passed by caller if required.
1157         (decode_cmdline_options_to_array): Update comment.
1158         * opts.c (complain_wrong_lang): Handle options only valid for the
1159         driver.
1160         (decode_options): Update call to decode_cmdline_options_to_array.
1161         (print_filtered_help): Ignore driver-only options.
1162         (print_specific_help): Ignore CL_DRIVER.
1163         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
1164         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
1165         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
1166         Update values.
1167
1168 2010-08-16  Richard Guenther  <rguenther@suse.de>
1169
1170         * tree-cfg.c (verify_types_in_gimple_reference): Verify
1171         TARGET_MEM_REF a bit.
1172         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
1173         (create_mem_ref_raw): Always create TMR_OFFSET, store the
1174         alias pointer type via it.
1175         (copy_mem_ref_info): Adjust.
1176         (maybe_fold_tmr): Likewise.
1177         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
1178         (reference_alias_ptr_type): Likewise.
1179         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
1180         adjust documentation of TMR_OFFSET operand.
1181         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
1182         use the alias pointer type.
1183         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
1184         initialize mem attrs but the TMR itself.
1185         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
1186         similar to MEM_REF.
1187         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
1188         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
1189         (unshare_and_remove_ssa_names): Likewise.
1190         (copy_ref_info): Adjust.
1191         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
1192         TARGET_MEM_REF case.
1193         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
1194         at TMR_ORIGINAL.
1195         * tree.h (TMR_ORIGINAL): Remove.
1196         * gimple.c (get_base_address): For TARGET_MEM_REF with a
1197         symbol return that.
1198         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
1199         with a symbol.
1200         (get_addr_base_and_unit_offset): Likewise.
1201         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
1202         TARGET_MEM_REFs.
1203         (indirect_ref_may_alias_decl_p): Likewise.
1204         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
1205
1206 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
1207
1208         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
1209         with GCC version 4.6, the default setting (when not optimizing
1210         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
1211         been changed to -fomit-frame-pointer.
1212
1213 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
1214
1215         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
1216         Darwin10.  Do not link libgcc.a for Darwin >= 9.
1217
1218 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
1219
1220         * doc/invoke.texi (Warning Options): Fix terminology and markup
1221         in the description of how unknown warning options are handled.
1222
1223 2010-08-15  Ira Rosen  <irar@il.ibm.com>
1224
1225         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
1226         in basic blocks.
1227         (vect_supportable_dr_alignment): Check alignment for basic blocks.
1228         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
1229         data references.
1230         (vect_bb_vectorization_profitable_p): New function.
1231         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
1232         check if it's worthwhile to vectorize the basic block.
1233
1234 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
1235
1236         * reload.h (register_move_cost, memory_move_secondary_cost,
1237         secondary_reload_class): Adjust prototype.
1238         * rtl.h (reg_class_subset_p): Adjust prototype.
1239         * reload.c (secondary_reload_class): Change arguments type from
1240         enum reg_class to reg_class_t. Change result type to reg_class_t.
1241         * reginfo.c (register_move_cost, reg_class_subset_p): Change
1242         arguments type from enum reg_class to reg_class_t.
1243         (memory_move_secondary_cost): Change arguments type from
1244         enum reg_class to reg_class_t. Change type of saved_flags to
1245         reg_class_t.
1246
1247         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1248         Remove macros.
1249         (mips_cost): Remove.
1250         (struct mips_rtx_cost_data): Moved to mips.c.
1251         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
1252         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
1253         (mips_cost): Make static.
1254         (mips_canonicalize_move_class): Change argument type to reg_class_t.
1255         Change result type to reg_class_t.
1256         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
1257         type from enum reg_class to reg_class_t.
1258         (mips_register_move_cost): Make static. Change arguments
1259         type from enum reg_class to reg_class_t.
1260         (mips_memory_move_cost): New function.
1261         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1262
1263 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
1264
1265         PR rtl-optimization/43358
1266         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
1267         of a single hard register, using simplify_subreg_regno to decide
1268         what that register should be.
1269
1270 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
1271
1272         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
1273         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
1274         (loongson_pmull<V_suffix>): Rename to...
1275         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
1276
1277 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
1278
1279         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
1280         which support dwarf2.
1281         * config/i386/i386.c (override_options): Same.
1282
1283 2010-08-13  Jie Zhang  <jie@codesourcery.com>
1284
1285         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
1286
1287 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
1288
1289         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
1290         -MMD.
1291
1292 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
1293
1294         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
1295         up dot_prod pattern searching if a stmt is outside the loop.
1296
1297 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
1298             Uros Bizjak  <ubizjak@gmail.com>
1299
1300         * config.gcc: Handle --enable-frame-pointer.
1301
1302         * configure.ac: Add --enable-frame-pointer.
1303         * configure: Regenerated.
1304
1305         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
1306         (override_options): If not configured with --enable-frame-pointer,
1307         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
1308         optimizing for size), -fasynchronous-unwind-tables and
1309         -maccumulate-outgoing-args by default.
1310
1311 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
1312
1313         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
1314
1315         PR middle-end/45262
1316         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
1317         -a overflows.  Normalize the range.
1318
1319 2010-08-12  Richard Guenther  <rguenther@suse.de>
1320
1321         PR tree-optimization/45232
1322         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
1323         for types with undefined overflow.
1324         (reassociate_bb): Allow re-associating of bit and min/max
1325         operations for types with undefined overflow.
1326         * tree-ssa-forwprop.c (associate_plusminus): New function.
1327         (tree_ssa_forward_propagate_single_use_vars): Call it.
1328
1329 2010-08-12  Richard Guenther  <rguenther@suse.de>
1330
1331         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
1332         * tree-ssa-alias.c (get_ptr_info): Move ...
1333         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
1334         align and misalign fields conservatively.
1335         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
1336         derive alignment information.
1337         (evaluate_stmt): Derive alignment information from memory
1338         allocation functions.
1339         * tree.h (get_pointer_alignment): Make unsigned.
1340         * builtins.c (get_object_alignment): Use alignment information we
1341         have computed for pointers.
1342         (get_pointer_alignment): Likewise.  Make conservative, return
1343         and unsigned value.
1344         (expand_builtin_strlen): Adjust.
1345         (expand_builtin_memcmp): Likewise.
1346         (expand_builtin_strcmp): Likewise.
1347         (expand_builtin_strncmp): Likewise.
1348         (get_builtin_sync_mem): Use at least mode alignment.
1349         (fold_builtin_memset): Adjust.
1350         (fold_builtin_memory_op): Likewise.
1351         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
1352         information also dump pointer alignment knowledge.
1353         (dump_gimple_stmt): Likewise.
1354
1355 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
1356
1357         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
1358         (EMPTY_FIELD_BOUNDARY): Remove.
1359         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
1360
1361 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
1362
1363         PR debug/45259
1364         * caller-save.c (save_call_clobbered_regs): Only swap notes with
1365         DEBUG_INSNs if n_regs_saved.
1366
1367 2010-08-12  Wei Guozhi  <carrot@google.com>
1368
1369         PR target/44999
1370         * config/arm/arm.md (andsi3): Change to zero extension if possible.
1371         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
1372
1373 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
1374
1375         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
1376
1377         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
1378
1379 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1380
1381         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
1382         the case removed in the previous patch, when the only phi argument
1383         is defined in the same loop as the phi node itself.  Handle it
1384         separately from the invariant case by both propagating it outside
1385         the region and replacing the phi node with an assign.
1386
1387 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1388
1389         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
1390         constant phi nodes with one argument are is_gimple_min_invariant
1391         and SSA_NAME_IS_DEFAULT_DEF.
1392
1393 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1394
1395         * graphite-cloog-util.c (oppose_constraint):
1396         Extend loop counter's value range (CLOOG_ORG).
1397         (cloog_matrix_to_ppl_constraint): Same.
1398         (new_Constraint_System_from_Cloog_matrix): Same.
1399         * graphite-cloog-compat.h (matrix_num_type): New.
1400
1401 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1402
1403         * graphite.c (graphite_initialize): Do not initialize
1404         CLooG and initialize the Parma Polyhedra Library
1405         manually when using CLOOG_ORG.
1406         (graphite_finalize): Do not finalize CLooG and finalize
1407         the Parma Polyhedra Library manually when using CLOOG_ORG.
1408         * graphite-cloog-compat.h (cloog_initialize): Hide function
1409         when using CLOOG_ORG.
1410         (cloog_finalize): Same.
1411
1412 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1413
1414         * graphite-clast-to-gimple.c (free_scattering): Change
1415         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
1416         (CLOOG_ORG).
1417         (build_cloog_prog): Same.
1418         * graphite-cloog-compat.h (cloog_domain): Removed.
1419         (cloog_scattering): New.
1420         (cloog_set_domain): Removed.
1421         (cloog_set_scattering): New.
1422         (cloog_next_domain): Removed.
1423         (cloog_next_scattering): New.
1424         (cloog_set_next_domain): Removed.
1425         (cloog_set_next_scattering): New.
1426         (CloogScatteringList): New.
1427         (CloogScattering): New.
1428         (cloog_scattering_free): New.
1429         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
1430         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
1431         New.
1432
1433 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1434
1435         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
1436         CloogState.
1437         (set_cloog_options): Same.
1438         (print_clast_stmt): Same.
1439         (scop_to_clast): Same.
1440         (print_generated_program): Same.
1441         (gloog): Same.
1442         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
1443         (scop_to_clast): Extend with CloogState.
1444         * graphite-cloog-util.c: Include graphite-cloog-compat.h
1445         (new_Cloog_Domain_from_ppl_Polyhedron):
1446         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
1447         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
1448         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1449         * graphite-cloog-util.h (build_cloog_prog): Same.
1450         * graphite-cloog-copat.h (build_cloog_prog): New.
1451         (CloogState): New.
1452         (cloog_state_malloc): New.
1453         (cloog_state_free): New.
1454         (cloog_loop_malloc): New.
1455         (cloog_options_malloc): New.
1456         (cloog_statement_alloc): New.
1457         (cloog_domain_from_cloog_matrix): New.
1458         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1459         (new_Cloog_Domain_from_ppl_Polyhedron): New.
1460
1461 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1462
1463         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
1464         type of NAME now depends on used CLooG version.
1465         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
1466         (gcc_type_for_clast_expr): Same.
1467         (print_clast_stmt): Replace pprint with clast_pprint.
1468         * graphite-cloog-compat.h: Provide compatibility macros for
1469         CLooG Legacy.
1470         (clast_name_p): New.
1471         (clast_expr_term): New.
1472         (clast_expr_red): New.
1473         (clast_expr_bin): New.
1474         (clast_pprint): New.
1475
1476 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1477
1478         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
1479         compatible to newer CLooG releases (CLOOG_ORG).
1480         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
1481         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
1482         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
1483         (build_cloog_prog) : New.
1484         (cloog_program_extract_scalars): New.
1485         (cloog_program_scatter): New.
1486
1487 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1488
1489         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
1490         conditionally (CLOOG_ORG).
1491         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
1492         (cloog_statement_usr): New.
1493         (cloog_domain): Same.
1494         (cloog_set_domain): Same.
1495         (cloog_next_domain): Same.
1496         (cloog_set_next_domain): Same.
1497         (cloog_program_nb_scattdims): Same.
1498         (cloog_program_set_nb_scattdims): Same.
1499         (cloog_program_names): Same.
1500         (cloog_program_set_names): Same.
1501         (cloog_program_set_context): Same.
1502         (cloog_program_set_loop): Same.
1503         (cloog_program_blocklist): Same.
1504         (cloog_program_set_blocklist): Same.
1505         (cloog_program_scaldims): Same.
1506         (cloog_program_set_scaldims): Same.
1507         (cloog_names_nb_parameters): Same.
1508         (cloog_names_set_nb_parameters): Same.
1509         (cloog_names_parameters): Same.
1510         (cloog_names_set_parameters): Same.
1511         (cloog_names_set_nb_iterators): Same.
1512         (cloog_names_set_iterators): Same.
1513         (cloog_names_set_nb_scattering): Same.
1514         (cloog_names_set_scattering): Same.
1515         (cloog_statement_set_usr): Same.
1516         (cloog_loop_set_next): Same.
1517         (cloog_loop_set_domain): Same.
1518         (cloog_loop_set_block): Same.
1519         (cloog_block_list_next): Same.
1520         (cloog_block_list_set_next):
1521         (cloog_block_list_set_block): Same.
1522
1523 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1524
1525         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
1526         a bool.
1527         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1528         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1529         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
1530         when something has been changed.
1531         (rewrite_commutative_reductions_out_of_ssa): Same.
1532
1533 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1534
1535         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
1536         handle the case when def is in the sese region.
1537         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
1538         for invariant expressions.
1539         (rewrite_cross_bb_phi_deps): Removed.
1540         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1541         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1542         rewrite_cross_bb_phi_deps.
1543
1544 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1545
1546         * graphite-sese-to-poly.c
1547         (rewrite_commutative_reductions_out_of_ssa_loop): Call
1548         scev_analyzable_p only on is_gimple_reg
1549
1550 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1551
1552         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1553         (rewrite_close_phi_out_of_ssa): Propagate constant values or
1554         parametric expressions outside the scop region.
1555         (rewrite_cross_bb_scalar_deps): Same.
1556         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1557
1558 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1559
1560         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1561         SSA_NAME_DEF_STMT only on SSA_NAMEs.
1562
1563 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1564
1565         * tree-scalar-evolution.c (instantiate_scev_name): Do not
1566         instantiate default definitions.
1567
1568 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
1569             Sebastian Pop  <sebastian.pop@amd.com>
1570
1571         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1572         (loop_exits_from_bb_p): New.
1573         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1574         (loop_exits_from_bb_p): Declared.
1575         * graphite-scop-detection.c (scopdet_basic_block_info): Call
1576         loop_exits_to_bb_p.
1577
1578 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1579
1580         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1581         extra parameter for the region.  Call scev_analyzable_p.
1582         (rewrite_reductions_out_of_ssa): Update call to
1583         rewrite_close_phi_out_of_ssa.
1584         (rewrite_cross_bb_phi_deps): Same.
1585         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1586         parameter for the region.  Call scev_analyzable_p.
1587         (rewrite_commutative_reductions_out_of_ssa): Update call to
1588         rewrite_commutative_reductions_out_of_ssa_loop.
1589
1590 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1591
1592         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1593
1594 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1595
1596         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1597         SSA scalar phi nodes that can be scev_analyzable_p.
1598
1599 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1600
1601         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1602         handle SSA_NAME_IS_DEFAULT_DEF.
1603
1604 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1605
1606         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1607
1608 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1609
1610         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1611         case non close-phi nodes with one argument.
1612
1613 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1614
1615         * sese.h (scev_analyzable_p): Scevs could be expressions without
1616         chrecs and still be scev_analyzable_p.
1617
1618 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1619
1620         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1621
1622 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1623
1624         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1625         * cfgloop.h (struct loop): Remove single_iv field.
1626         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1627         (scop_canonicalize_loops): Removed.
1628         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
1629         over all the loop phi nodes in loop->header.
1630         (build_poly_scop): Remove use of scop_canonicalize_loops.
1631
1632 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1633
1634         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1635         handle GIMPLE_CALL.
1636
1637 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1638
1639         * tree-chrec.c (chrec_apply): Should only apply to the specified
1640         variable.  Also handle multivariate chains of recurrences that
1641         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
1642
1643 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1644
1645         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1646         (debug_clast_name_indexes_1): Removed.
1647         (debug_clast_name_indexes): Removed.
1648         (pbb_to_depth_to_oldiv): Removed.
1649         (build_iv_mapping): Replace the use of rename_map with iv_map.
1650         (translate_clast_user): Remove uses of rename_map.  Allocate and
1651         free iv_map.
1652         (translate_clast_for_loop): Remove uses of rename_map.
1653         (translate_clast_for): Same.
1654         (translate_clast_guard): Same.
1655         (translate_clast): Same.
1656         (gloog): Same.
1657         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1658         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1659         * sese.c (set_rename): Now static.
1660         (rename_variables_in_stmt): Removed.
1661         (rename_uses): New.
1662         (is_parameter): Removed.
1663         (is_iv): Removed.
1664         (expand_scalar_variables_call): Removed.
1665         (expand_scalar_variables_ssa_name): Removed.
1666         (expand_scalar_variables_expr): Removed.
1667         (expand_scalar_variables_stmt): Removed.
1668         (expand_scalar_variables): Removed.
1669         (rename_variables): Removed.
1670         (remove_condition): Removed.
1671         (get_true_edge_from_guard_bb): Removed.
1672         (get_false_edge_from_guard_bb): Removed.
1673         (struct igp): Removed.
1674         (default_before_guard): Removed.
1675         (convert_for_phi_arg): Removed.
1676         (add_guard_exit_phis): Removed.
1677         (insert_guard_phis): Removed.
1678         (graphite_copy_stmts_from_block): Now also uses iv_map and a
1679         region.  Do not copy conditions.  Do not copy induction variables.
1680         Call rename_uses.
1681         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1682         the translated statement.  Use the iv_map for the induction
1683         variable renaming.
1684         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1685         (set_rename): Removed declaration.
1686         (scev_analyzable_p): ...here.
1687         * tree-chrec.c (chrec_apply_map): New.
1688         * tree-chrec.h (chrec_apply_map): Declared.
1689
1690 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1691
1692         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1693         insert_loop_close_phis.
1694         * sese.c (name_defined_in_loop_p): Removed.
1695         (expr_defined_in_loop_p): Removed.
1696         (alive_after_loop): Removed.
1697         (close_phi_not_yet_inserted_p): Removed.
1698         (struct alep): Removed.
1699         (add_loop_exit_phis): Removed.
1700         (insert_loop_close_phis): Removed.
1701
1702 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1703
1704         * graphite-cloog-util.c
1705         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1706         * graphite-poly.c
1707         (psct_scattering_dim_for_loop_depth): Same.
1708
1709 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1710
1711         * graphite-cloog-util.h: Added cloog.h.
1712         * graphite-blocking.c: Removed cloog.h.
1713         * graphite-dependences.c: Same.
1714         * graphite-interchange.c: Same.
1715         * graphite-poly.c: Same.
1716         * graphite-ppl.c: Same.
1717         * graphite-scop-detection.c: Same.
1718         * graphite-sese-to-poly.c:
1719         Removed cloog.h.
1720         Removed graphite-clast-to-gimple.h.
1721         (check_poly_representation): Removed (unused).
1722         * graphite-sese-to-poly.h
1723         (check_poly_representation): Removed (unused).
1724
1725 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1726
1727         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1728         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1729         (graphite-cloog-util.o): New.
1730         (graphite-ppl.o): Added graphite-cloog-util.h.
1731         * graphite-clast-to-gimple.c:
1732         Added graphite-cloog-util.h to include statements.
1733         * graphite-cloog-util.c: New.
1734         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1735         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1736         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1737         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1738         (insert_constraint_into_matrix): Same.
1739         (ppl_Constrain_System_number_of_constraints): Same.
1740         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1741         (oppose_constraint): Same.
1742         (cloog_matrix_to_ppl_constraint): Same.
1743         (new_Constraint_System_from_Cloog_Matrix): Same.
1744         * graphite-cloog-util.h: New.
1745         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1746         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1747         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1748         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1749         (insert_constraint_into_matrix): Same.
1750         * graphite-ppl.c:
1751         Added graphite-cloog-util.h to include statements.
1752         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1753         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1754         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1755         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1756         (insert_constraint_into_matrix): Same.
1757         (ppl_Constrain_System_number_of_constraints): Same.
1758         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1759         (oppose_constraint): Same.
1760         (cloog_matrix_to_ppl_constraint): Same.
1761         (new_Constraint_System_from_Cloog_Matrix): Same.
1762         * graphite-ppl.h:
1763         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1764         graphite-cloog-util.h.
1765         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1766         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1767         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1768         (insert_constraint_into_matrix): Same.
1769
1770 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1771
1772         * graphite-clast-to-gimple.c
1773         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1774         (precision_for_interval): Same.
1775         (gcc_type_for_interval): Same.
1776         (compute_type_for_level): Same.
1777         * graphite-interchange.c
1778         (lst_interchange_profitable_p): Same.
1779         * graphite-poly.c
1780         (psct_scattering_dim_for_loop_depth): Same.
1781         * graphite-ppl.c
1782         (ppl_max_for_le_pointset): Same.
1783         (ppl_min_for_le_pointset): Same.
1784
1785 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1786
1787         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1788         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1789
1790 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1791
1792         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1793         rewrite_close_phi_out_of_ssa.
1794
1795 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1796
1797         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1798
1799 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1800
1801         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1802         rename_map.
1803         * sese.c (debug_rename_map): Same.
1804         (get_rename): Same.
1805         (set_rename): Same.
1806         (rename_variables_in_stmt): Same.
1807         (expand_scalar_variables_call): Same.
1808         (expand_scalar_variables_ssa_name): Same.
1809         (expand_scalar_variables_expr): Same.
1810         (expand_scalar_variables_stmt): Same.
1811         (expand_scalar_variables): Same.
1812         (rename_variables): Same.
1813         (graphite_copy_stmts_from_block): Same.
1814         (copy_bb_and_scalar_dependences): Same.
1815
1816 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1817
1818         * graphite-clast-to-gimple.c (copy_renames): Removed.
1819         (translate_clast_for): Do not call copy_renames.
1820         (translate_clast_guard): Same.
1821
1822 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1823
1824         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1825         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1826         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1827         before rewrite_cross_bb_scalar_deps.
1828
1829 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1830
1831         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1832         Early return in when flag_associative_math is not set.
1833
1834 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1835
1836         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1837         of SSA copies on edges except for loop->latch.
1838
1839 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1840
1841         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1842         Split out of rewrite_reductions_out_of_ssa.
1843         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1844         Declared.
1845         * graphite.c (graphite_transform_loops): Call it.
1846
1847 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1848
1849         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1850
1851 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1852
1853         * dbgcnt.def (graphite_scop): New counter.
1854         * graphite.c: Include dbgcnt.h.
1855         (graphite_transform_loops): Use new counter to limit transformations.
1856         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1857
1858 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1859
1860         * passes.c (init_optimization_passes): Add pass_graphite.
1861         Schedule a pass_copy_prop before pass_graphite_transforms.
1862         * timevar.def (TV_GRAPHITE): Declared.
1863         * tree-pass.h (pass_graphite): Declared.
1864         * tree-ssa-loop.c (pass_graphite): New.
1865
1866 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1867
1868         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1869         Remove calls to rename_nb_iterations and rename_sese_parameters.
1870         * graphite-clast-to-gimple.h (gloog): Update declaration.
1871         * graphite.c (graphite_transform_loops): Update call to gloog.
1872         * sese.c (rename_variables_in_expr): Removed.
1873         (rename_nb_iterations): Removed.
1874         (rename_sese_parameters): Removed.
1875         * sese.h (rename_nb_iterations): Removed.
1876         (rename_sese_parameters): Removed.
1877
1878 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1879
1880         * graphite-clast-to-gimple.c (gloog): Remove call to
1881         sese_adjust_liveout_phis.
1882         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1883         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1884         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1885         rewrite_phi_out_of_ssa.
1886         * sese.c (get_vdef_before_sese): Removed.
1887         (sese_adjust_vphi): Removed.
1888         (sese_adjust_liveout_phis): Removed.
1889         * sese.h (sese_adjust_liveout_phis): Removed.
1890
1891 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1892
1893         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1894         argument for the place after which to insert the out of SSA copy.
1895         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1896         (rewrite_phi_out_of_ssa): Same.
1897         (rewrite_cross_bb_scalar_deps): Same.
1898         (insert_copyout): Removed.
1899         (insert_copyin): Removed.
1900         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1901         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1902         insert_copyin.
1903
1904 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1905
1906         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1907         (rewrite_reductions_out_of_ssa): Same.
1908         (rewrite_commutative_reductions_out_of_ssa): Same.
1909         (build_poly_scop): Do not call these functions.
1910         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1911         (rewrite_reductions_out_of_ssa): Declared.
1912         (rewrite_commutative_reductions_out_of_ssa): Declared.
1913         * graphite.c (graphite_transform_loops): Call on every scop
1914         rewrite_commutative_reductions_out_of_ssa before calling
1915         rewrite_reductions_out_of_ssa and build_scop_bbs.
1916
1917 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1918
1919         * graphite-dependences.c (dot_deps): Make system call to dotty run
1920         in background.
1921         (dot_deps_stmt): Same.
1922         * graphite-poly.c (dot_lst): Same.
1923
1924 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1925
1926         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1927         phi_arg_in_outermost_loop.
1928         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1929         (remove_invariant_phi): Same.
1930
1931 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1932
1933         * target.def (output_addr_const_extra): New hook.
1934         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1935         * doc/tm.texi: Regenerate.
1936         * targhooks.c (default_asm_output_addr_const_extra): New function.
1937         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1938         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1939         target hook.
1940
1941         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1942         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1943         * config/i386/i386.h (output_addr_const_extra): Rename to...
1944         (i386_asm_output_addr_const_extra): ...this. Make static.
1945         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1946
1947 2010-08-11  Richard Henderson  <rth@redhat.com>
1948
1949         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1950
1951 2010-08-11  Nick Clifton  <nickc@redhat.com>
1952
1953         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1954         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1955         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1956         stormy16-lib2-cmpsi.c.
1957
1958         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1959         -O2.
1960
1961 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1962
1963         * opts.h (struct cl_option_handler_func): Make handler take
1964         cl_decoded_option structure as parameter, not individual elements.
1965         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1966         structure as parameter, not individual elements.
1967         (handle_option): Take cl_decoded_option structure as parameter,
1968         not individual elements.
1969         (handle_generated_option): Declare.
1970         * opts-common.c (handle_option): Take cl_decoded_option structure
1971         as parameter, not individual elements.  Update calls to callback
1972         and handler functions.
1973         (handle_generated_option): New.
1974         (read_cmdline_option): Update calls to callback functions and
1975         handle_option.
1976         * opts.c (common_handle_option, complain_wrong_lang,
1977         unknown_option_callback, post_handling_callback,
1978         lang_handle_option, target_handle_option): Take cl_decoded_option
1979         structure as parameter, not individual elements.
1980         (lang_handle_option, target_handle_option, common_handle_option):
1981         Assert option has at most one argument.
1982         (enable_warning_as_error): Call handle_generated_option instead of
1983         handle_option.  Do not pass -Werror argument as argument of
1984         generated option.
1985
1986 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1987
1988         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1989         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1990         (SUBWORD_BOOL_CAS): Likewise.
1991         (SUBWORD_SYNC_OP): Likewise.
1992         (SUBWORD_TEST_AND_SET): Likewise.
1993         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1994         (SUBWORD_SYNC_OP): Likewise.
1995         (OP_AND_FETCH_WORD): Likewise.
1996
1997 2010-08-10  Xinliang David Li  <davidxl@google.com>
1998
1999         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
2000         compute max/min offset in address.
2001
2002 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
2003
2004         * ira-live.c: Include sbitmap.h.
2005         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
2006         Compress live ranges even more.
2007
2008 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2009
2010         * coverage.c (ctr_labels): Delete.
2011
2012 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
2013
2014         PR bootstrap/45177
2015         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
2016         test here from arm_gen_load_multiple_1.
2017         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
2018         multiple_operation_profitable_p.
2019
2020 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2021
2022         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
2023         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
2024
2025 2010-08-10  Richard Henderson  <rth@redhat.com>
2026
2027         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
2028         after saving registers.  Assert that SSE registers are only saved
2029         with a sufficiently aligned frame.
2030         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
2031         remove stack_realign_fp handling.
2032         (ix86_expand_prologue): Save int registers before stack_realign_fp,
2033         and do not mark the stack alignment as frame related.
2034         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
2035
2036         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
2037         saves when re-aligning the stack.
2038
2039 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2040
2041         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
2042         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
2043         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
2044
2045 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2046
2047         * dwarf2out.c (struct die_struct): Move die_tag to the end.
2048
2049 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
2050
2051         * config/arm/iterators.md: New file.
2052         * config/arm/arm.md: Include iterators.md.
2053         (QHSI): Move to new file.
2054         (LTUGEU, cnb, optab, ior_xor): Likewise.
2055         * config/arm/iwmmxt.md (VMMX): Move to new file.
2056         (VSHFT, MMX_char): Likewise.
2057         * config/arm/neon.md (VD): Move to new file.
2058         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
2059         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
2060         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
2061         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
2062         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
2063         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
2064         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
2065         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
2066         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
2067         (Is_d_reg, V_mode_nunits): Likewise.
2068         * config/arm/vec-common.md (VALL): Move to new file.
2069         (VALLW, VINT, VINTW): Likewise.
2070
2071 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
2072
2073         PR middle-end/45182
2074         * combine.c (make_compound_operation): Don't try to convert
2075         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
2076
2077 2010-08-10  Richard Guenther  <rguenther@suse.de>
2078
2079         * tree.h (get_object_alignment): Adjust prototype.
2080         * builtins.c (get_object_alignment): Return unsigned int,
2081         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
2082         and TARGET_MEM_REF properly.
2083         (get_pointer_alignment): Adjust.
2084         * emit-rtl.c (get_mem_align_offset): Adjust comment.
2085         (set_mem_attributes_minus_bitpos): Adjust.
2086         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
2087
2088 2010-08-10  Richard Guenther  <rguenther@suse.de>
2089
2090         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
2091         (copy_prop_visit_assignment): Simplify.
2092         (copy_prop_visit_stmt): Also visit assignments from
2093         constants.
2094         (copy_prop_visit_phi_node): Use operand_equal_p.
2095
2096 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2097
2098         * ipa-split.c (find_split_points): Free stack.
2099
2100 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2101
2102         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
2103         * tree.c (tree_node_kind): Delete corresponding entries.
2104
2105 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2106
2107         * alias.c (may_alias_p): Remove unused ret.
2108
2109 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
2110
2111         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
2112         alias_sets_conflict_p.
2113         (walk_mems_1): Moved from alias.c.
2114         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
2115         in alias.c.
2116         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
2117         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
2118         * alias.c (walk_mems_2): Moved to ddg.c.
2119         (walk_mems_1): Ditto.
2120         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
2121         to ddg.c.
2122         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
2123         disambiguation.
2124         *(may_alias_p): New function to check whether two memory expression
2125         may alias or not. Currently used in buidling inter-iteration memory
2126         dependence.
2127         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
2128         (insn_alias_sets_conflict_p): Removed
2129         *rtl.h (may_alias_p): New function prototype.
2130
2131 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2132
2133         * tree.c (nreverse): Assert that we don't have a BLOCK.
2134
2135 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2136
2137         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
2138         * config/arm/arm.c (arm_get_pcs_model): Likewise.
2139         * config/avr/avr.c (init_cumulative_args): Likewise.
2140         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2141         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2142         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
2143         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
2144         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2145         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2146         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
2147         * dwarf2out.c (gen_subprogram_die): Likewise.
2148         * function.c (allocate_struct_function): Likewise.
2149         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
2150         (deserves_ellipsis): Delete.
2151
2152 2010-08-09  Richard Guenther  <rguenther@suse.de>
2153
2154         * tree-ssa-copy.c (cached_last_copy_of): Remove.
2155         (valueize_val): New function.
2156         (get_last_copy_of): Remove.
2157         (set_copy_of_val): Simplify.
2158         (dump_copy_of): Likewise.
2159         (copy_prop_visit_cond_stmt): Use valueize_val.
2160         (copy_prop_visit_phi_node): Properly handle unvisited names.
2161         Drop code managing copy-of chains.
2162         (init_copy_prop): Adjust.
2163         (fini_copy_prop): Likewise.
2164         (execute_copy_prop): Remove obsolete comment.
2165
2166 2010-08-09  Richard Guenther  <rguenther@suse.de>
2167
2168         PR middle-end/44632
2169         * function.c (gimplify_parameters): Do not clear addressable
2170         bit of the original parameter.
2171
2172 2010-08-09  Richard Guenther  <rguenther@suse.de>
2173
2174         PR middle-end/45212
2175         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
2176         alignment from MEM_REF offset only if we took it from the
2177         base object.
2178
2179 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
2180
2181         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
2182
2183 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2184
2185         * c-tree.h (build_arg_info): Declare.
2186         * c-decl.c (build_arg_info): Define.
2187         (get_parm_info): Call it.  Delete initialization code.
2188         * c-parser.c (c_parser_parms_declarator): Likewise.
2189         (c_parser_parms_list_declaractor): Likewise.
2190
2191 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2192
2193         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
2194         (struct c_arg_info): Change type of tags field.
2195         * c-decl.c (grokdeclarator): Update for changed type of tags field.
2196         (get_parm_info): Likewise.
2197         (store_parm_decls_newstyle): Likewise.
2198
2199 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2200
2201         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
2202         (branch_island_list): Delete.
2203         (branch_islands): Declare.
2204         (add_compiler_branch_island): Adjust for branch_islands instead of
2205         branch_island_list.
2206         (macho_branch_islands): Likewise.
2207         (no_previous_def): Likewise.
2208         (get_prev_label): Likewise.
2209
2210 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2211
2212         PR boehm-gc/34544
2213         * gthr-posix.h (__gthread_start): Delete.
2214         (__gthread_active_init): Use pthread_default_stacksize_np instead of
2215         pthread_create to determine if hpux pthreads are active.
2216         * gthr-posix95.h (__gthread_start): Delete.
2217         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
2218
2219 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
2220
2221         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
2222         _WIN64 not expanded.
2223
2224 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
2225             H.J. Lu  <hongjiu.lu@intel.com>
2226
2227         PR target/45213
2228         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
2229         to output 32bit SFmode immediate as 8 byte sign extended value.
2230
2231 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2232
2233         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
2234         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
2235         (SUBWORD_BOOL_CAS): Likewise.
2236         (SUBWORD_SYNC_OP): Likewise.
2237         (SUBWORD_TEST_AND_SET): Likewise.
2238         (FETCH_AND_OP_WORD): Parenthesise INF_OP
2239         (SUBWORD_SYNC_OP): Likewise.
2240         (OP_AND_FETCH_WORD): Likewise.
2241
2242 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2243
2244         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
2245         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
2246         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
2247         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
2248         generic part.
2249         (cortex_a9_sched_adjust_cost): New function.
2250         (xscale_sched_adjust_cost): New function.
2251         * config/arm/arm-protos.h (struct tune_params): New field
2252         sched_adjust_cost.
2253         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
2254
2255 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
2256
2257         PR target/44942
2258         * config/sparc/sparc.c (function_arg_advance): Always take into account
2259         the padding, if any.
2260
2261 2010-08-06  Richard Guenther  <rguenther@suse.de>
2262
2263         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
2264         (dump_lattice_value): Dump it.
2265         (get_default_value): Adjust.
2266         (get_constant_value): Likewise.
2267         (set_value_varying): Likewise.
2268         (set_lattice_value): Make sure to not go up the lattice
2269         with bitwise constant values.
2270         (get_value_for_expr): Handle ADDR_EXPRs.
2271         (value_to_double_int): New function.
2272         (get_value_from_alignment): Likewise.
2273         (do_dbg_cnt): Adjust.
2274         (ccp_lattice_meet): Handle partially constant values.
2275         (bit_value_unop_1): New function.
2276         (bit_value_binop_1): Likewise.
2277         (bit_value_unop): Likewise.
2278         (bit_value_binop): Likewise.
2279         (evaluate_stmt): Track partially constant values if
2280         flag_tree_bit_ccp is set.
2281         (ccp_fold_stmt): Dump if we folded a predicate.
2282         (ccp_visit_stmt): Adjust.
2283         * common.opt (ftree-bit-ccp): New flag.
2284         * doc/invoke.texi (ftree-bit-ccp): Document.
2285         * opts.c (decode_options): Enable bit-CCP at -O1.
2286
2287 2010-08-06  Alan Modra  <amodra@gmail.com>
2288
2289         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
2290         and -mrelocatable-lib description.
2291
2292 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
2293
2294         From Martin Thuresson  <martint@google.com>
2295         * postreload.c (reload_cse_simplify_operands): Use
2296         SET_REGNO_RAW instead of SET_REGNO.
2297         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
2298         SET_REGNO.
2299         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
2300         instead of SET_REGNO.
2301         * rtl.h (SET_REGNO_RAW): New macro.
2302
2303 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
2304
2305         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
2306         computations.  Fix formatting issues.
2307         (num_sign_bit_copies1): Likewise.
2308         (canonicalize_condition): Likewise.
2309
2310 2010-08-05  Richard Henderson  <rth@redhat.com>
2311
2312         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
2313         (floor_log2): Use clz_hwi.
2314         (exact_log2): Use ctz_hwi.
2315         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
2316         * builtins.c (fold_builtin_bitop): Use them.
2317         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2318         * combine.c (get_pos_from_mask): Use ctz_hwi.
2319         * double-int.c (double_int_ctz): Likewise.
2320         * explow.c (force_reg): Likewise.
2321         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
2322
2323 2010-08-05  Richard Henderson  <rth@redhat.com>
2324
2325         PR target/45189
2326         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
2327         the alignment constant is properly sign-extended.
2328
2329 2010-08-05  Richard Guenther  <rguenther@suse.de>
2330
2331         * expr.c (store_expr): Use emit_block_move only if both
2332         source and target are MEMs.  Use store_bit_field if only
2333         the target is a MEM.
2334
2335 2010-08-05  Richard Henderson  <rth@redhat.com>
2336
2337         PR debug/45188
2338         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
2339         (INCOMING_RETURN_ADDR_RTX): Likewise.
2340         (dwarf2out_do_frame): Remove conditional compilation.
2341         (dwarf2out_frame_init): Likewise.
2342
2343 2010-08-05  Nicolas Setton  <setton@adacore.com>
2344
2345         * gcov.c (flag_display_progress): New static variable.
2346         (main): Display progress info on standard output if requested.
2347         (options): Add -d/--display-progress.
2348         (print_usage): Print them.
2349         (process_args): Handle them.
2350         * doc/gcov.texi: Document them.
2351
2352 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2353
2354         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
2355         (ipcp_insert_stage): Redirect only edges not flagged with
2356         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
2357         discovered constants.
2358
2359 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2360
2361         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
2362         (struct ipa_param_descriptor): New fields types and
2363         cannot_devirtualize.
2364         (ipa_param_cannot_devirtualize_p): New function.
2365         (ipa_param_types_vec_empty): Likewise.
2366         (ipa_make_edge_direct_to_target): Declare.
2367         * ipa-cp.c: Fixed first stage driver name in initial comment,
2368         described devirtualization there too.
2369         (ipcp_analyze_node): Call ipa_analyze_params_uses.
2370         (ipcp_print_all_lattices): Print devirtualization info.
2371         (ipa_set_param_cannot_devirtualize): New function.
2372         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
2373         lattice to BOTTOM.
2374         (ipcp_init_stage): Merged into...
2375         (ipcp_generate_summary): ...its caller.
2376         (ipcp_change_tops_to_bottom): Also process type lists.
2377         (ipcp_add_param_type): New function.
2378         (ipcp_copy_types): Likewise.
2379         (ipcp_propagate_types): Likewise.
2380         (ipcp_propagate_stage): Also propagate types.
2381         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
2382         Also return true if propagated types require it.
2383         (ipcp_update_callgraph): Dump redirection info.
2384         (ipcp_process_devirtualization_opportunities): New function.
2385         (ipcp_const_param_count): Include known type information.
2386         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
2387         on new node.  Fixed formatting.
2388         * ipa-prop.c (make_edge_direct_to_target): Renamed to
2389         ipa_make_edge_direct_to_target and changed all callers.  Made
2390         externally visible.
2391         (ipa_node_duplication_hook): Duplicate types vector.
2392         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
2393         redirect outgoing calls for which we can't get a decl from the
2394         statement.  Check that we can get a decl from the call statement.
2395         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2396         ipa_analyze_params_uses only when ipa-cp is disabled.
2397         * tree-inline.c (get_indirect_callee_fndecl): Removed.
2398         (expand_call_inline): Do not call get_indirect_callee_fndecl.
2399         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
2400         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
2401
2402 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2403
2404         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
2405         temporary. Emit move from temporary to accum, so REG_EQUAL note will
2406         be attached to this insn in correct mode.
2407
2408 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2409
2410         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
2411         using REGNO of base_reg directly.
2412
2413 2010-08-05  Jie Zhang  <jie@codesourcery.com>
2414
2415         PR tree-optimization/45144
2416         * tree-sra.c (type_consists_of_records_p): Return false
2417         if the record contains bit-field.
2418
2419 2010-08-04  Richard Henderson  <rth@redhat.com>
2420
2421         * config/i386/i386.c (struct ix86_frame): Remove padding and
2422         to_allocate members.
2423         (ix86_compute_frame_layout): Don't store them.
2424         (ix86_can_use_return_insn_p): Use a more direct and more obviously
2425         correct condition for the position of the stack pointer.
2426         (ix86_expand_prologue): Compute remaining stack allocation based
2427         on the ultimate stack pointer offset.
2428         (ix86_expand_epilogue): Use more obvious expressions testing for
2429         the stack pointer already pointing to the saved registers.
2430
2431         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
2432         duplication deconstructing the frame pointer.  Simplify
2433         deallocation of the local stack frame.
2434
2435         * reg-notes.def (CFA_EXPRESSION): New.
2436         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2437         (dwarf2out_frame_debug_cfa_expression): New.
2438         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
2439
2440         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
2441         * config/i386/i386.c (ix86_expand_prologue): Set it.
2442         (ix86_expand_epilogue): Clear it.
2443         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
2444         context, add REG_CFA_EXPRESSION notes.
2445
2446         * config/i386/i386.h (struct machine_frame_state): Rename from
2447         machine_cfa_state.  Add members tracking SP and FP regardless
2448         of the current CFA register.
2449         (ix86_cfa_state): Remove.
2450         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
2451         and sse_reg_save_offset members.
2452         (ix86_compute_frame_layout): Set them.
2453         (gen_push): Increment sp_offset too.
2454         (choose_baseaddr_len, choose_baseaddr): New.
2455         (ix86_emit_save_reg_using_mov): New.
2456         (ix86_emit_save_regs_using_mov): Use it.
2457         (ix86_emit_save_sse_regs_using_mov): Likewise.
2458         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
2459         compare vs the saved red_zone_offset.
2460         (pro_epilogue_adjust_stack): Adjust sp_offset.
2461         (ix86_adjust_stack_and_probe): Likewise.
2462         (ix86_expand_prologue): Set up, use, and validate the new
2463         frame_state_info members.  Use gen_frame_mem.
2464         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
2465         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
2466         new frame_state_info members.
2467         (ix86_emit_leave): Likewise.
2468         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
2469         out-of-range stack pointer offsets here.
2470         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2471         (ix86_expand_epilogue): Use and validate the new frame_state_info
2472         members.  Break up and simplify the logic selecting the
2473         restore_regs_via_mov code path.  Ensure that there will be no
2474         out-of-range stack pointer offsets.
2475
2476         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
2477
2478         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
2479         argument name to reflect the expected tree; fix indentation.
2480         (ix86_asm_output_function_label): Output the entire 32-bit
2481         ms_hook here as bytes ...
2482         (ix86_expand_prologue): ... not here as insns.  Attach the
2483         unwind info for the ms_hook to a blockage insn.
2484         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
2485         (ix86_ms_bitfield_layout_p): Fix indentation.
2486         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
2487
2488         * config/i386/i386.c (ix86_using_red_zone): New.
2489         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
2490         ix86_expand_prologue, ix86_force_to_memory): Use it.
2491
2492         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
2493         saving the int registers.
2494
2495         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
2496         and DWARF2_UNWIND_INFO conditional compilation.
2497
2498 2010-08-04  Richard Henderson  <rth@redhat.com>
2499
2500         PR debug/45171
2501         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
2502         an is_naming_typedef_decl.
2503
2504 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
2505
2506         PR rtl-optimization/45162
2507         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
2508         * dce.c (word_dce_process_block): Likewise.
2509
2510 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
2511
2512         PR target/44583
2513         * config/ia64/constraints.md (Z): New.
2514         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
2515         (xfreg_or_signed_fp01_operand): New.
2516         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
2517         with fr_reg_or_signed_fp01_operand and constraint G with Z.
2518         (subsf3): Ditto.
2519         (*maddsf4): Ditto.
2520         (*msubsf4): Ditto.
2521         (adddf3): Ditto.
2522         (adddf3_trunc): Ditto.
2523         (subdf3): Ditto.
2524         (*subdf3_trunc): Ditto.
2525         (*madddf4): Ditto.
2526         (*madddf4_trunc): Ditto.
2527         (*msubdf4): Ditto.
2528         (*msubdf4_trunc): Ditto.
2529         (addxf3): Replace xfreg_or_fp01_operand with
2530         xfreg_or_signed_fp01_operand and constraint G with Z.
2531         (*addxf3_truncsf): Ditto.
2532         (*addxf3_truncdf): Ditto.
2533         (subxf3): Ditto.
2534         (*subxf3_truncsf): Ditto.
2535         (*subxf3_truncdf): Ditto.
2536         (*maddxf4): Ditto.
2537         (*maddxf4_truncsf): Ditto.
2538         (*maddxf4_truncdf): Ditto.
2539         (*msubxf4): Ditto.
2540         (*msubxf4_truncsf): Ditto.
2541         (*msubxf4_truncdf): Ditto.
2542
2543 2010-08-04  Richard Guenther  <rguenther@suse.de>
2544
2545         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
2546         if either alias-set is zero.
2547
2548 2010-08-04  Richard Guenther  <rguenther@suse.de>
2549
2550         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
2551         * tree-ssa-ccp.c: ... here.
2552         * tree-ssa-copy.c: ... and here.
2553         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
2554         value_range_t): Move ...
2555         * tree-vrp.c: ... here.
2556         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
2557         (substitute_and_fold): Adjust prototype.
2558         * tree-ssa-propagate.c (replace_uses_in): Adjust.
2559         (replace_phi_args_in): Likewise.
2560         (substitute_and_fold): Take callback to query lattice instead
2561         of pointer to lattice.  Replace SSA name defs with lattice
2562         values first.
2563         * tree-ssa-ccp.c (ccp_finalize): Adjust.
2564         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
2565         (get_value): New function.
2566         (fini_copy_prop): Adjust.
2567         * tree-vrp.c (vrp_finalize): Adjust.
2568
2569 2010-08-04  Richard Guenther  <rguenther@suse.de>
2570
2571         PR middle-end/45176
2572         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
2573         points-to set for original MEM_REF.
2574
2575 2010-08-04  Richard Guenther  <rguenther@suse.de>
2576
2577         * tree-ssa-ccp.c (get_constant_value): New function.
2578         (get_rhs_assign_op_for_ccp): Remove.
2579         (valueize_op): New function.
2580         (ccp_fold): Use get_constant_value and valueize_op.
2581         (fold_const_aggregate_ref): Likewise.
2582         (ccp_fold_stmt): Likewise.
2583         (visit_assignment): Simplify.
2584
2585 2010-08-04  Richard Guenther  <rguenther@suse.de>
2586
2587         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
2588         * double-int.h (double_int_ctz): Declare.
2589         * double-int.c (double_int_ctz): New function.
2590
2591 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
2592
2593         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
2594         Define.
2595         picochip_expand_movmemhi : Expand movmem pattern.
2596         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
2597         Declare.
2598         * config/picochip/picochip.md (movmemhi) : New pattern.
2599
2600 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2601
2602         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
2603
2604 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
2605
2606         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
2607         NEG as operand of a MULT by merging it with the other operand.
2608         * combine.c (make_compound_operation): Use trunc_int_for_mode when
2609         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
2610         MULT.
2611         * config/arm/constraints.md (M): Examine only 32 bits of a
2612         HOST_WIDE_INT.
2613         * config/arm/predicates.md (power_of_two_operand): Likewise.
2614
2615 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2616
2617         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
2618         non-NOTE insns.
2619
2620 2010-08-03  Jan Hubicka  <jh@suse.cz>
2621
2622         * ipa-split.c (struct split_point): Add split_part_set_retval.
2623         (find_retval): Forward declare.
2624         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
2625         (consider_split): Compute current->split_part_set_retval.
2626         (visit_bb): Do not look into return value.
2627         (split_function): Handle !split_part_set_retval
2628
2629 2010-08-03  Martin Jambor  <mjambor@suse.cz>
2630
2631         * tree-sra.c (completely_scalarize_record): New parameter REF, create
2632         its own access->expr intead of using build_ref_for_offset.
2633
2634 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
2635
2636         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
2637         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
2638         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
2639         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
2640         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
2641         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
2642         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
2643         DEFAULT_SWITCH_TAKES_ARG.
2644         * config/rx/rx.opt (-patch=): Remove option.
2645         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2646         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2647         * doc/invoke.texi (RX Options): Remove -patch=.
2648         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2649         (option_map): Remove --profile-blocks, --quiet and --silent.
2650
2651 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2652
2653         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2654         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2655         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
2656         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2657         Update calls to ix86_expand_compare and ix86_expand_branch.
2658         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
2659         ix86_expand_compare.
2660         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
2661         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2662         Make static.
2663         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2664         and ix86_compare_op1.  Update calls to ix86_expand_compare.
2665         (ix86_expand_int_movcc): Ditto.
2666         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
2667         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2668         (ix86_expand_setcc): Ditto.
2669         (ix86_expand_compare): Remove prototype.
2670         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2671         ix86_compare_op0 and ix86_compare_op1.  Update calls
2672         to ix86_expand_branch to directly pass operands[1] and operands[2].
2673         (cbranchxf4): Ditto.
2674         (cbranch<MODEF:mode>4): Ditto.
2675         (cbranchcc4): Ditto.
2676         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2677         Update calls to ix86_expand_setcc to directly pass operands[2] and
2678         operands[3].
2679         (cstorexf4): Ditto.
2680         (cstore<MODEF:mode>4): Ditto.
2681         (cstorecc4): Ditto.
2682
2683 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2684
2685         PR target/45063
2686         * caller-save.c (save_call_clobbered_regs): Remove regs from
2687         hard_regs_saved when they are set.
2688
2689 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
2690
2691         PR target/41089
2692         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2693         as volatile.
2694
2695 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
2696
2697         * common.opt (ftree-loop-distribute-patterns): New.
2698         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2699         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2700         at -O3.
2701         * tree-data-ref.c (stores_zero_from_loop): New.
2702         * tree-data-ref.h (stores_zero_from_loop): Declared.
2703         * tree-loop-distribution.c (tree_loop_distribution): Call
2704         stores_zero_from_loop.
2705         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2706
2707 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2708
2709         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2710         into account.
2711
2712         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2713         * config/arm/arm.c (thumb1_code): New variable.
2714         (arm_override_options): Set it.
2715         (thumb1_final_prescan_insn): Keep track of condition code status.
2716         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2717         jumps that depend on them.
2718         * config/arm/arm.h (thumb1_code): Declare variable.
2719         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
2720         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2721         thumb1_cc_mode.
2722         (CC_STATUS_INIT): New macro.
2723         * config/arm/constraints.md (Pd): New constraint.
2724         * config/arm/predicates.md (noov_comparison_operator): New predicate.
2725         * config/arm/arm.md (is_thumb1): New define_attr.
2726         (conds): Set default to "clob" when generating Thumb1 code.
2727         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
2728         code are set.  Use two-operand assembly syntax.
2729         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
2730         pattern.
2731         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2732         codes are set.  Use two-operand assembly syntax.
2733         (zero_extendhisi splitter): Remove constraints.
2734         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2735         thumb1_movsf_insn): Set conds attribute as appropriate.
2736         (cbranchsi4_insn): Use condition code status from struct
2737         machine_function to determine whether the comparison can be eliminated.
2738         Discourage the alternative using high registers.
2739         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2740         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2741         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2742         subsi3_cbranch): Delete.
2743         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2744         one subtract and one cbranch insn.
2745
2746         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2747         thumb2_movdf_soft_insn): Delete patterns.
2748         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2749         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2750         (pool_range, neg_pool_range): Use them to define defaults.
2751         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2752         and allow for TARGET_32BIT.
2753
2754         PR target/40457
2755         * config/arm/arm.h (arm_regs_in_sequence): Declare.
2756         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2757         load_multiple_sequence, store_multiple_sequence): Delete
2758         declarations.
2759         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2760         declarations.
2761         * config/arm/ldmstm.md: New file.
2762         * config/arm/arm.c (arm_regs_in_sequence): New array.
2763         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
2764         CHECK_REGS.  All callers changed.
2765         If SAVED_ORDER is nonnull, copy the computed order into it.
2766         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
2767         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
2768         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
2769         If SAVED_ORDER is nonnull, copy the computed order into it.
2770         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
2771         like REGS.  Handle Thumb mode.
2772         (arm_gen_load_multiple_1): New function, broken out of
2773         arm_gen_load_multiple.
2774         (arm_gen_store_multiple_1): New function, broken out of
2775         arm_gen_store_multiple.
2776         (arm_gen_multiple_op): New function, with code from
2777         arm_gen_load_multiple and arm_gen_store_multiple moved here.
2778         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2779         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
2780         changed.
2781         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2782         * config/arm/predicates.md (commutative_binary_operator): New.
2783         (load_multiple_operation, store_multiple_operation): Handle more
2784         variants of these patterns with different starting offsets.  Handle
2785         Thumb-1.
2786         * config/arm/arm.md: Include "ldmstm.md".
2787         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2788         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2789         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2790         peepholes): Delete.
2791         * config/arm/ldmstm.md: New file.
2792         * config/arm/arm-ldmstm.ml: New file.
2793
2794         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2795         if statement which adds extra costs to frame-related expressions.
2796
2797 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2798
2799         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2800
2801 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
2802
2803         PR target/45142
2804         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2805         alternative 2.
2806         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2807         split V4SI operands.
2808
2809 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
2810
2811         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2812         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2813         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2814         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2815
2816 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2817
2818         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2819         LOCAL_INCLUDE_DIR.
2820
2821 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2822
2823         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2824         used in the call to optab_for_tree_code.  Fix the second
2825         is_widening_mult_p call.  Check that both unwidened operands
2826         have the same sign.
2827
2828 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2829
2830         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2831
2832 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2833
2834         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2835
2836 2010-07-30  DJ Delorie  <dj@redhat.com>
2837
2838         * config/rx/predicates.md (rx_constshift_operand): New.
2839         * config/rx/rx.md (zs_cond): New.
2840         (cbranchsi4): Remove mode.
2841         (*cbranchsi4_<code>): Likewise.
2842         (*tstbranchsi4_<code>): New.
2843         (*tstbranchsi4r_<code>): New.
2844         (*tstbranchsi4m_eq): New.
2845         (*tstbranchsi4m_ne): New.
2846         (cbranchsf4): Remove mode.
2847         (*cbranchsf4_<code>): Likewise.
2848
2849 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2850
2851         * rtlanal.c (simplify_subreg_regno): Don't treat
2852         HARD_FRAME_POINTER_REGNUM specially.
2853
2854 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2855
2856         * common.opt (-G): Don't define option here.
2857         * config/g.opt: New.
2858         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2859         rs6000/powerpc and score targets.
2860         * opts.c (common_handle_option): Don't handle -G here.
2861         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2862         * config/frv/frv.c (frv_handle_option): Handle -G.
2863         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2864         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2865         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2866         * config/mips/mips.c (mips_handle_option): Handle -G.
2867         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2868         * config/score/score.c (score_handle_option): Handle -G.
2869
2870 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2871
2872         * config/mmix/mmix.c: Include basic-block.h.
2873
2874 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2875
2876         PR debug/45055
2877         PR rtl-optimization/45137
2878         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2879         prototypes.
2880         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2881         New functions.
2882         * combine.c (next_nonnote_nondebug_insn): Removed.
2883         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2884         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2885         * sched-deps.c (sched_analyze_insn): Likewise.
2886         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2887         * rtlanal.c (canonicalize_condition): Likewise.
2888         * postreload.c (reload_combine_recognize_pattern): Likewise.
2889         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2890
2891 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2892
2893         * config/i386/i386.md (int_cond): Remove code iterator.
2894         (fp_cond): Ditto.
2895         (cbranch<mode>4): Use ordered_comparison_operator predicate
2896         for operator0.
2897         (cstore<mode>4): Ditto for operator1.
2898         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2899         (add<mode>cc): ditto.
2900
2901 2010-07-30  Richard Guenther  <rguenther@suse.de>
2902
2903         PR middle-end/45141
2904         * expr.c (expand_expr_real_1): Check for not handled base address.
2905
2906 2010-07-30  Richard Guenther  <rguenther@suse.de>
2907
2908         * ipa-prop.c (ipa_modify_formal_parameters): Use
2909         build_distinct_type_copy.
2910
2911 2010-07-30  Anthony Green  <green@moxielogic.com>
2912
2913         * config/moxie/rtems.h: New file.
2914         * config.gcc: Add moxie-rtems support.
2915
2916 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2917
2918         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2919         df flags as in run_fast_df_dce.
2920
2921 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2922
2923         Revert:
2924         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2925
2926         * rtl.def (NOTE): Swap operands 4 and 5.
2927         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2928         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2929         Adjust accordingly.
2930         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2931
2932 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2933
2934         PR debug/45110
2935         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2936         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2937         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2938         formal parameters.
2939         (gen_decl_die): Change return type to dw_die_ref, return what
2940         gen_formal_parameter_die returned.
2941
2942 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2943
2944         * dbgcnt.def (eipa_sra): New counter.
2945         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2946
2947 2010-07-29  Xinliang David Li  <davidxl@google.com>
2948
2949         PR bootstrap/45119
2950         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2951         in revision 162652.
2952
2953 2010-07-29  Richard Guenther  <rguenther@suse.de>
2954
2955         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2956         (TV_TREE_STORE_CCP): Likewise.
2957         (TV_TREE_REDPHI): Likewise.
2958
2959 2010-07-29  Richard Guenther  <rguenther@suse.de>
2960
2961         * double-int.h (double_int_and_not): New function.
2962         * combine.c (try_combine): Use it.
2963         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2964
2965 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2966
2967         PR rtl-optimization/42575
2968         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2969         Argument AU removed.  All callers changed.  Ignore artificial refs.
2970         Use return value of df_word_lr_simulate_defs to decide whether an insn
2971         is necessary.
2972         (fast_dce): Rename arg to WORD_LEVEL.
2973         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2974         static.
2975         (pass_fast_rtl_byte_dce): Delete.
2976         * dce.h (run_word_dce): Declare.
2977         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2978         All callers changed.  Simplify code to only deal with two-word regs.
2979         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2980         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2981         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2982         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2983         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2984         (df_word_lr_mark_ref): Declare.
2985         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2986         df_word_lr_simulate_uses): Declare or rename from byte variants.
2987         (df_byte_lr_simulate_artificial_refs_at_top,
2988         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2989         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2990         declarations.
2991         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2992         (enum df_mm): Delete.
2993         * df-byte-scan.c: Delete file.
2994         * df-problems.c (df_word_lr_problem_data): Renamed from
2995         df_byte_lr_problem_data, all members deleted except for
2996         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2997         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2998         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2999         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
3000         df_byte_lr_confluence_0): Delete functions.
3001         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
3002         callers changed.
3003         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
3004         Don't initialize members that were deleted, don't try to discover data
3005         about registers.  Ignore hard regs.
3006         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
3007         (df_word_lr_mark_ref): New function.
3008         (df_word_lr_bb_local_compute): Renamed from
3009         df_byte_bb_lr_local_compute; all callers changed.  Use
3010         df_word_lr_mark_ref.  Assert that artificial refs don't include
3011         pseudos.  Ignore hard registers.
3012         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
3013         Assert that exit block uses don't contain pseudos.
3014         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
3015         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
3016         callers changed.  Ignore hard regs.
3017         (df_word_lr_transfer_function): Renamed from
3018         df_byte_lr_transfer_function; all callers changed.
3019         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
3020         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
3021         changed.
3022         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
3023         callers changed.
3024         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
3025         confluence operator 0 set to NULL.
3026         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
3027         callers changed.
3028         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
3029         Return bool, true if bitmap changed or insn otherwise necessary.
3030         All callers changed.  Simplify using df_word_lr_mark_ref.
3031         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
3032         all callers changed.  Simplify using df_word_lr_mark_ref.
3033         * lower-subreg.c: Include "dce.h"
3034         (decompose_multiword_subregs): Call run_word_dce if df available.
3035         * Makefile.in (lower-subreg.o): Adjust dependencies.
3036         (df-byte-scan.o): Delete.
3037         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
3038
3039 2010-07-29  Richard Guenther  <rguenther@suse.de>
3040
3041         * tree.c (build_vector): Assert that the vector constant
3042         has enough elements.
3043         (build_vector_from_ctor): Pad with trailing zeros.
3044
3045 2010-07-29  Richard Guenther  <rguenther@suse.de>
3046
3047         PR tree-optimization/45120
3048         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3049         Handle offset in DEREFs properly.
3050         (get_constraint_for_1): Handle MEM_REF offset properly.
3051
3052 2010-07-29  Richard Guenther  <rguenther@suse.de>
3053
3054         PR middle-end/45034
3055         * convert.c (convert_to_integer): Always use an unsigned
3056         type for narrowed negate and bitwise not.
3057
3058 2010-07-29  Ira Rosen  <irar@il.ibm.com>
3059
3060         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
3061         to outer loop when creating reduction epilogue for double reduction,
3062         and switch back to the inner loop when updating the phi nodes.
3063         Update uses of outer loop exit phi nodes in double reduction (instead
3064         of uses of reduction).
3065
3066 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
3067
3068         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
3069         popcount on power7 and parity on power6 systems.
3070         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
3071         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
3072         instructions.
3073
3074         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
3075         (UNSPEC_PARITY): Ditto.
3076         (SFDF): New iterator for SF/DF.
3077         (rreg2): New mode attribute for floating register constraint.
3078         (TARGET_FLOAT): New mode attribute for whether single/double float
3079         is supported.
3080         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
3081         pattern.
3082         (parity<mode>2_cmpb): New insn for parity on power6 and newer
3083         machines.
3084         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
3085         pattern.  Add support for fcpsgn instruction added in power6.
3086         (copysignsf3): Delete.
3087         (copysigndf3): Delete.
3088         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
3089         instead of if_then_else in RTL to avoid problems with -0.
3090
3091         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
3092         of if_then_else to mirror scalar code.
3093         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
3094         rs6000.md.
3095
3096         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
3097         instead of if_then_else.
3098
3099 2010-07-28  Xinliang David Li  <davidxl@google.com>
3100
3101         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
3102         (dump_cand): Dump var_before/after.
3103         (htab_inv_expr_eq): New function.
3104         (htab_inv_expr_hash): New function.
3105         (tree_ssa_iv_optimize_init): Support pseudo invariants.
3106         (add_candidate_1): consider base type precision.
3107         (set_use_iv_cost): New parameter.
3108         (adjust_setup_cost): Use profile information.
3109         (get_address_cost): Do not hard code width in computing address
3110         offset limits.
3111         (compare_aff_trees): New function.
3112         (get_loop_invariant_expr_id): New function.
3113         (get_computation_cost_at): New parameter and use profile information.
3114         (get_computation_cost): New parameter.
3115         (determine_use_iv_cost_generic): Pass new parameter.
3116         (determine_use_iv_cost_address): Ditto.
3117         (determine_use_iv_cost_condition): Ditto.
3118         (autoinc_possible_for_pair): Ditto.
3119         (determine_use_iv_costs): More dumps.
3120         (iv_ca_get_num_inv_exprs): New function.
3121         (iv_ca_recount_cost): Consider loop invariants in register pressure
3122         cost.
3123         (iv_ca_add_use): New parameter.
3124         (iv_ca_dump): Better dumping.
3125         (iv_ca_extend): New parameter.
3126         (try_add_cand_for): Attempt to get better partial solution.
3127         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
3128         (create_new-ivs): More dumps.
3129         (rewrite_use_compare): Ditto.
3130         (free_loop_data): More cleanup.
3131         (treee_ssa_iv_optimize_finalize): Ditto.
3132
3133 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
3134
3135         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
3136         * config/i386/i386.c (ix86_profile_before_prologue): New.
3137         (override_options): Add special handling for -mfentry.
3138         (ix86_function_regparm): Likewise.
3139         (ix86_function_sseregparm): Likewise.
3140         (ix86_frame_pointer_required): Likewise.
3141         (ix86_expand_prologue): Check for ms_hook_prologue.
3142         (x86_function_profiler): Adjust mcount output.
3143         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
3144         * config/i386/i386.opt (mfentry): New.
3145         * doc/invoke.texi (mfentry): Add documentation.
3146         * doc/tm.texi: Regenerated..
3147         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
3148         * final.c (final_start_function): Replace macro
3149         PROFILE_BEFORE_PROLOGUE by target hook.
3150         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3151         * target.def (profile_before_prologue): New hook.
3152         * targhooks.c (default_profile_before_prologue): New.
3153         * targhooks.h (default_profile_before_prologue): New.
3154
3155 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
3156
3157         PR debug/45105
3158         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
3159
3160         PR debug/45103
3161         * dwarf2out.c (dwarf2out_var_location): Always consider
3162         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
3163
3164 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
3165
3166         PR rtl-optimization/45107
3167         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
3168
3169 2010-07-28  Richard Guenther  <rguenther@suse.de>
3170
3171         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
3172         (set_lattice_value): Do not query an old default value.
3173         (get_value_for_expr): New function.  Properly canonicalize
3174         float values.
3175         (ccp_visit_phi_node): Use it.
3176
3177 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
3178
3179         * config/arm/arm.c (arm_pcs_default): Remove static.
3180         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
3181         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
3182         (arm_pcs_default): Declare.
3183
3184 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
3185
3186         * config/rs6000/rs6000.c (rs6000_override_options):
3187         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
3188         ... to darwin_rs6000_override_options.
3189         (rs6000_return_in_memory): Update preceding comment for darwin
3190         64 bit ABI.  Use TARGET_MACHO inline.
3191         (rs6000_darwin64_struct_check_p): New.
3192         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
3193         (function_arg): Likewise.
3194         (rs6000_arg_partial_bytes): Likewise.
3195         (rs6000_function_value): Likewise.
3196
3197 2010-07-28  Andi Kleen <ak@linux.intel.com>
3198
3199         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
3200
3201 2010-07-28  Richard Guenther  <rguenther@suse.de>
3202
3203         PR middle-end/44903
3204         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
3205         targets try harder to not generate unaligned accesses.
3206
3207 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
3208
3209         PR rtl-optimization/45101
3210         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
3211         for gcse-las.
3212
3213 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
3214
3215         PR tree-optimization/44885
3216         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
3217         with non-aliased component.
3218
3219 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
3220
3221         * config/darwin-driver.c (SWITCH_TAKES_ARG,
3222         WORD_SWITCH_TAKES_ARG): Remove.
3223         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3224         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
3225         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
3226         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
3227         definitions from gcc.c.
3228         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
3229         defaults.h.
3230         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
3231         Move to defaults.h.
3232         * opts-common.c: Include tm.h.
3233         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
3234         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
3235         Handle more than one argument.  Set canonical_option_num_elements.
3236         (decode_cmdline_options_to_array): Set
3237         canonical_option_num_elements and trailing elements of
3238         canonical_option.
3239         * opts.h (struct cl_decoded_option): Allow four elements in
3240         canonical_option.  Add field canonical_option_num_elements.
3241         * Makefile.in (opts-common.o): Update dependencies.
3242
3243 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
3244
3245         PR middle-end/44790
3246         PR middle-end/44993
3247         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
3248         sure the base has address_mode before adding the offset.
3249
3250 2010-07-27  Xinliang David Li <davidxl@google.com>
3251
3252         * tree-flow.h (create_mem_ref): Add one new parameter.
3253         * tree-ssa-address.c (create_mem_ref): New parameter.
3254         (addr_to_parts): Ditto.
3255         (move_variant_to_index): New function.
3256         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
3257
3258 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3259
3260         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
3261         4 and 5.
3262         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
3263         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
3264         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
3265         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
3266         CODE_LABELs and NOTEs.
3267         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
3268         * combine.c (try_combine): Likewise.
3269         * ira.c (setup_prohibited_mode_move_regs): Likewise.
3270         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
3271
3272 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3273
3274         * coretypes.h (struct cl_option_handlers): Declare.
3275         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
3276         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
3277         * langhooks-def.h (lhd_handle_option): Declare.
3278         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
3279         * langhooks.c (lhd_handle_option): New.
3280         * langhooks.h (struct lang_hooks): Update prototype and return
3281         value type of handle_option hook.
3282         * optc-gen.awk: Generate target_flags_explicit definition for the
3283         driver.
3284         * opts-common.c: Include diagnostic.h.
3285         (handle_option): Move from opts.c.  Update prototype and return
3286         value type.  Use handlers structure.
3287         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
3288         handlers structure.
3289         (set_option): Move from opts.c.
3290         * opts.c (common_handle_option): Update prototype and return value
3291         type.  Update calls to handle_option and enable_warning_as_error.
3292         (unknown_option_callback, post_handling_callback,
3293         lang_handle_option, target_handle_option): New.
3294         (handle_option, read_cmdline_option): Move to opts-common.c.
3295         (read_cmdline_options): Update prototype.  Update call to
3296         read_cmdline_option.
3297         (decode_options): Initialize and use handlers structure.
3298         (set_option): Move to opts-common.c.
3299         (enable_warning_as_error): Update prototype.  Update call to
3300         handle_option.
3301         * opts.h (struct cl_option_handler_func, struct
3302         cl_option_handlers): New.
3303         (handle_option, enable_warning_as_error): Update prototypes.
3304         (read_cmdline_option): Declare.
3305         * Makefile.in (opts-common.o): Update dependencies.
3306
3307 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3308
3309         * config/arm/arm.c (params.h): Include.
3310         (arm_override_options): Tune gcse-unrestricted-cost.
3311         * config/arm/t-arm (arm.o): Define dependencies.
3312
3313 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3314
3315         PR target/42495
3316         PR middle-end/42574
3317         * basic-block.h (get_dominated_to_depth): Declare.
3318         * dominance.c (get_dominated_to_depth): New function, use
3319         get_all_dominated_blocks as a base.
3320         (get_all_dominated_blocks): Use get_dominated_to_depth.
3321
3322         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
3323         (hoist_exprs): Remove.
3324         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
3325         (compute_code_hoist_vbeinout): Add debug print outs.
3326         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
3327
3328         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
3329         quadratic behavior.
3330         * params.h (MAX_HOIST_DEPTH): New macro.
3331         * doc/invoke.texi (max-hoist-depth): Document.
3332
3333 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3334
3335         PR rtl-optimization/40956
3336         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
3337         constants.
3338
3339 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3340
3341         PR target/42495
3342         PR middle-end/42574
3343         * config/arm/arm.c (legitimize_pic_address): Use
3344         gen_calculate_pic_address pattern to emit calculation of PIC address.
3345         (will_be_in_index_register): New function.
3346         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
3347         (thumb1_legitimate_address_p): Use it provided !strict_p.
3348         * config/arm/arm.md (calculate_pic_address): New expand and split.
3349
3350 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3351
3352         PR target/42495
3353         PR middle-end/42574
3354         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
3355         * config/arm/arm.md (define_split "J", define_split "K"): Make
3356         IRA/reload friendly.
3357
3358 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3359
3360         * gcse.c (insert_insn_end_basic_block): Update signature, remove
3361         unused checks.
3362         (pre_edge_insert, hoist_code): Update.
3363
3364 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3365
3366         PR target/42495
3367         PR middle-end/42574
3368         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
3369
3370 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3371
3372         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
3373
3374 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3375
3376         PR rtl-optimization/40956
3377         PR target/42495
3378         PR middle-end/42574
3379         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
3380         for hoisting.
3381         (hoist_code): Count occurences in current block too.
3382
3383 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3384
3385         * gcse.c (struct expr:max_distance): New field.
3386         (doing_code_hoisting_p): New static variable.
3387         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
3388         simple expressions, don't change behavior for PRE.  Set max_distance.
3389         (insert_expr_in_table): Set new max_distance field.
3390         (hash_scan_set): Update.
3391         (hoist_expr_reaches_here_p): Stop search after max_distance
3392         instructions.
3393         (find_occr_in_bb): New static function.  Use it in ...
3394         (hoist_code): Calculate sizes of basic block before any changes are
3395         done.  Pass max_distance to hoist_expr_reaches_here_p.
3396         (one_code_hoisting_pass): Set doing_code_hoisting_p.
3397
3398         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
3399         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
3400         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
3401         macros.
3402         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
3403         Document.
3404
3405 2010-07-27  Jeff Law  <law@redhat.com>
3406             Maxim Kuvyrkov  <maxim@codesourcery.com>
3407
3408         * gcse.c (compute_transpout, transpout): Remove, move logic
3409         to prune_expressions.
3410         (compute_pre_data): Move pruning of trapping expressions ...
3411         (prune_expressions): ... here.  New static function.
3412         (compute_code_hoist_data): Use it.
3413         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
3414
3415 2010-07-27  Xinliang David Li  <davidxl@google.com>
3416
3417         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
3418         (rewrite_use_address): Adjust iv update position when needed.
3419
3420 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3421
3422         * dbgcnt.def (hoist_insn): New debug counter.
3423         * gcse.c (hoist_code): Use it.
3424
3425 2010-07-27  Xinliang David Li  <davidxl@google.com>
3426
3427         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
3428         (niter_for_single_dom_exit): Passes additional parameter.
3429         (iv_period): Fix comments.
3430         (may_eliminate_iv): Handles multiple exit loops properly.
3431         (free_tree_niter_desc): New function.
3432         (free_loop_data): Frees up loop iteration descriptors.
3433
3434 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3435
3436         PR target/44542
3437         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
3438         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
3439         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
3440         (expand_one_var): Don't consider DECL_ALIGN for variables for
3441         which expand_one_stack_var_at has been already called.
3442
3443         PR testsuite/44701
3444         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
3445         constraints on IA-64.
3446
3447 2010-07-27  Jie Zhang  <jie@codesourcery.com>
3448
3449         PR target/44290
3450         Revert:
3451         2010-07-23  Jie Zhang  <jie@codesourcery.com>
3452
3453         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3454         false if ! tree_versionable_function_p.
3455
3456 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3457
3458         * dwarf2out.c (add_data_member_location_attribute): Use
3459         add_AT_unsigned instead of add_AT_int if offset is non-negative.
3460
3461 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3462
3463         * postreload.c (try_replace_in_use): New static function.
3464         (reload_combine_recognize_const_pattern): Use it here.  Allow
3465         substituting into a final add insn, and substituting into a memory
3466         reference in an insn that sets the reg.
3467
3468 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3469
3470         * common.opt (o): Add MissingArgError.
3471         * doc/options.texi (MissingArgError): Document.
3472         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
3473         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
3474         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3475         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
3476         * langhooks.h (struct lang_hooks): Remove missing_argument.
3477         * optc-gen.awk: Handle MissingArgError and output new structure
3478         field initializers.
3479         * opts.c (read_cmdline_option): Use missing_argument_error field
3480         instead of missing_argument langhook.
3481         * opts.h (struct cl_option): Add missing_argument_error field.
3482         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
3483
3484 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3485
3486         PR target/29090
3487         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
3488         Darwin64 ABI, for zero-sized objects.
3489
3490 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3491
3492         PR target/35491
3493         PR target/29090
3494
3495         Merge from Apple local 4.2.1.
3496         2005-05-11  Stan Shebs  <shebs@apple.com>
3497         Fix 64-bit varargs for Darwin (Radar 4028089).
3498         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
3499         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3500         Add argument, add case for 8-byte register half-filled with a float.
3501         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
3502         single-precision floats specially.
3503
3504 2010-07-27  Ira Rosen  <irar@il.ibm.com>
3505
3506         PR tree-optimization/44152
3507         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
3508         complex numbers for further check.
3509         (vect_supported_load_permutation_p): Check nodes with
3510         complex numbers.
3511
3512 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3513
3514         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
3515         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
3516         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
3517         (LANG_HOOKS_INITIALIZER): Add new hooks.
3518         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
3519         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
3520         and complain_wrong_lang_p.  Update init_options prototype.
3521         * c-objc-common.c (c_initialize_diagnostics): First call
3522         c_common_initialize_diagnostics.
3523         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
3524         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
3525         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
3526         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
3527         (hook_uint_void_0): New.
3528         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
3529         (hook_uint_void_0): New.
3530         * opts-common.c (decode_cmdline_option,
3531         decode_cmdline_options_to_array): Also fill in canonical_option field.
3532         * opts.c (complain_wrong_lang): Use langhook to determine whether
3533         to complain instead of special-casing LTO.
3534         (decode_options): Separate lang_mask determination with
3535         option_lang_mask hook from call of init_options hook.
3536         * opts.h (struct cl_decoded_option): Add canonical_option.
3537
3538 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3539
3540         PR tree-optimization/45083
3541         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
3542
3543 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3544
3545         * postreload.c (reload_combine_recognize_const_pattern): Move test
3546         for limiting the insn movement to the right scope.
3547
3548         PR rtl-optimization/45051
3549         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
3550         than reg_mentioned_p.
3551
3552 2010-07-26  Richard Henderson  <rth@redhat.com>
3553
3554         PR target/44132
3555         * tree-emutls.c: New file.
3556         * Makefile.in (OBJS-common): Add it.
3557         * tree-pass.h (pass_ipa_lower_emutls): Declare.
3558         * passes.c (init_optimization_passes): Add it.
3559
3560         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
3561         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
3562         * expr.c (emutls_var_address): Delete.
3563         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
3564         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
3565         (emutls_finish): Delete.
3566         * toplev.c (compile_file): Don't call it.
3567         * tree.h (emutls_decl): Delete.
3568         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
3569         (emutls_finish, emutls_finalize_control_var): Delete.
3570         (emutls_object_type): Move to tree-emutls.c.
3571         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
3572         default_emutls_var_fields, get_emutls_object_type,
3573         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
3574         default_emutls_var_init): Likewise.
3575         (get_variable_section): Don't special case emutls.
3576         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
3577         default_elf_select_section, default_unique_section,
3578         default_encode_section_info): Likewise.
3579         * varpool.c (decide_is_variable_needed): Likewise.
3580         * gimple-iterator.c (update_call_edge_frequencies): New
3581         (gsi_insert_on_edge_immediate): Use it.
3582         (gsi_insert_seq_on_edge_immediate): Likewise.
3583         (gsi_commit_one_edge_insert): Likewise.
3584
3585         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
3586         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
3587         (x86_64_elf_unique_section): Likewise.
3588
3589 2010-07-26  Jan Hubicka  <jh@suse.cz>
3590
3591         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
3592         GTY((skip)).
3593
3594 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
3595
3596         * target.def (output_source_filename): New hook.
3597         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
3598         * doc/tm.texi: Regenerate.
3599         * toplev.c (output_file_directive) Remove function.
3600         * toplev.h (output_file_directive) Remove.
3601         * output.h (default_asm_output_source_filename,
3602         output_file_directive): Declare.
3603         * varasm.h (default_asm_output_source_filename,
3604         output_file_directive): New functions.
3605
3606         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3607         * config/mips/mips-protos.h (mips_output_filename): Remove.
3608         * config/mips/mips.c (mips_output_filename): Make Static.
3609         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3610
3611 2010-07-26  Richard Guenther  <rguenther@suse.de>
3612
3613         PR tree-optimization/43784
3614         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
3615         if the destination is used by the call.
3616
3617 2010-07-26  Richard Guenther  <rguenther@suse.de>
3618
3619         PR middle-end/45073
3620         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
3621         SSA updating on being in SSA form.
3622
3623 2010-07-26  Richard Guenther  <rguenther@suse.de>
3624
3625         PR middle-end/45056
3626         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
3627
3628 2010-07-26  Richard Guenther  <rguenther@suse.de>
3629
3630         PR tree-optimization/45071
3631         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
3632         adjust op->opcode.
3633
3634 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
3635
3636         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
3637         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
3638         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
3639         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
3640         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
3641         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
3642         save_r31, return_r31, save_interrupt, return_interrupt,
3643         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3644         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3645         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3646         new ABI requirements.
3647         (save_r6_r9, L_callt_save_r6_r9): Remove.
3648         * config/v850/predicates.md (even_reg_operand, disp23_operand,
3649         const_float_1_operand const_float_0_operand): New Predicates.
3650         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3651         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3652         * config/v850/t-v850: Update multilibs for new target variants.
3653         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3654         * config/v850/t-v850e: Likewise.
3655         * config/v850/v850.c (v850_issue_rate): New.
3656         (v850_strict_argument_naming): New.
3657         (function_arg): Modify to generate a different ABI.
3658         (print_operand): Update case 'z' to support float modes.
3659         (output_move_single): Modify to generate appropriate and better
3660         assembly.
3661         (v850_float_z_comparison_operator, v850_select_cc_mode,
3662         v850_float_nz_comparison_operator,  v850_gen_float_compare,
3663         v850_gen_compare): New functions to support comparison of float values.
3664         (ep_memory_offset): Add support for V850E2 targets.
3665         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3666         (INTERRUPT_REGPARM_NUM): Remove.
3667         (compute_register_save_size): Add extra case to save/restore long call.
3668         (use_prolog_function): New function to support prologue.
3669         (expand_prologue): Add support for V850E2 targets and modified
3670         as per the current ABI requirements.
3671         (expand_epilogue): Likewise.
3672         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3673         (construct_save_jarl): Likewise.
3674         (construct_dispose_instruction): Update as per the current ABI
3675         requirements.
3676         (construct_prepare_instruction): Likewise.
3677         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3678         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3679         (CPP_SPEC): Updated to support v850e2 targets.
3680         (STRICT_ALIGNMENT): Modified.
3681         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3682         (FIXED_REGISTERS): Likewise.
3683         (CALL_USED_REGISTERS): Likewise.
3684         (CONDITIONAL_REGISTER_USAGE): Updated.
3685         (HARD_REGNO_MODE_OK): Updated.
3686         (reg_class): Updated to add even registers.
3687         (REG_CLASS_NAMES): Likewise.
3688         (REG_CLASS_CONTENTS): Likewise.
3689         (REGNO_REG_CLASS): Updated for CC registers.
3690         (REG_CLASS_FROM_LETTER): Added support for even registers.
3691         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3692         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3693         ARG_POINTER_REGNUM): Updated.
3694         (FUNCTION_ARG_ADVANCE): Define.
3695         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3696         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3697         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3698         (GO_IF_LEGITIMATE_ADDRESS): Updated.
3699         (SELECT_CC_MODE): Define.
3700         (REGISTER_NAMES): Updated to add psw and fcc registers.
3701         (ADDITIONAL_REGISTER_NAMES): Updated.
3702         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3703         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3704         * config/v850/v850.md (define_constants): Define new constants.
3705         (type): Update store,bit1,macc,div,fpu and single attributes.
3706         (cpu): New attribute.
3707         (cc): Add set_z attribute.
3708         (unsign23byte_load, sign23byte_load, unsign23hword_load,
3709         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3710         23word_store): New instructions for 23-bit displacement load and store.
3711         (movqi_internal, movhi_internal): Update the attributes.
3712         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3713         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3714         the attributes.
3715         (v850_tst1): Modified using CC_REGNUM.
3716         (tstsi): Remove.
3717         (cmpsi): Modified as define_expand from define_insn.
3718         (cmpsi_insn, cmpsf, cmpdf): New instructions.
3719         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3720         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3721         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3722         one_cmplsi2): Clobber the CC_REGNUM register.
3723         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3724         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3725         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3726         (setf_insn, set_z_insn, set_nz_insn): New instructions for
3727         v850e2v3 target.
3728         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3729         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3730         targets.
3731         (sasf_1, sasf_2): Remove.
3732         (sasf): New instruction.
3733         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3734         targets. CC_REGNUM register is clobbered and attributes are
3735         updated.
3736         (branch_z_normal, branch_z_invert, branch_nz_normal,
3737         branch_nz_invert): New branch related instructions.
3738         (jump): Updated the attributes.
3739         (switch): Update to support new targets. CC_REGNUM register is
3740         clobbered and attributes are updated.
3741         (call_internal_short, call_internal_long, call_value_internal_short,
3742         call_value_internal_long): Updated the attributes.
3743         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3744         clobbered and attributes are updated.
3745         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3746         Update to support new targets. CC_REGNUM register is clobbered.
3747         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3748         instructions.
3749         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3750         are updated.
3751         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3752         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3753         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3754         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3755         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3756         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3757         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3758         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3759         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3760         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3761         point instructions defined for V850e2v3 target.
3762         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3763         Add support for V850E2 targets and CC_REGNUM register is clobbered.
3764         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3765         support for new targets.
3766         * config/v850/v850-modes.def: New file.
3767         * config/v850/v850.opt(mstrict-align): Remove.
3768         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3769         mv850e2v3): New command line options for V850.
3770         * config.gcc: Update the newly added files.
3771         * doc/invoke.texi: Update the newly added command line options for
3772         V850 target.
3773
3774 2010-07-26  Richard Guenther  <rguenther@suse.de>
3775
3776         PR tree-optimization/45052
3777         * ipa-pure-const.c (check_stmt): Check volatileness.
3778
3779 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3780
3781         PR target/44707
3782         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3783         * config/sparc/sparc.c: Include reload.h.
3784         (legitimize_tls_address): Rename into...
3785         (sparc_legitimize_tls_address): ...this.
3786         (legitimize_pic_address): Rename into...
3787         (sparc_legitimize_pic_address): ...this.
3788         (sparc_expand_move): Adjust to above renaming.
3789         (sparc_tls_referenced_p): Likewise.
3790         (sparc_legitimize_tls_address): Likewise.
3791         (sparc_legitimize_pic_address): Likewise.
3792         (sparc_legitimize_address): Likewise.
3793         (sparc_output_mi_thunk): Likewise.
3794         (sparc_legitimize_reload_address): New global function.  Recognize
3795         (lo_sum (high ...) ...) patterns generated by earlier passes.
3796         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3797
3798 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3799
3800         PR target/44484
3801         * config/sparc/predicates.md (memory_reg_operand): Delete.
3802         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3803         (*sync_compare_and_swap): Encode the address form in the pattern.
3804         (*sync_compare_and_swapdi_v8plus): Likewise.
3805
3806 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
3807
3808         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3809         Streamline paragraph on compatibility with the system compiler.
3810
3811 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3812
3813         PR middle-end/45035
3814         * alias.c (true_dependence_1): Fix thinko in merge of old
3815         true_dependence and canon_true_dependence.
3816
3817 2010-07-23  Jan Hubicka  <jh@suse.cz>
3818
3819         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3820         references.
3821
3822 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3823
3824         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3825         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3826         and an unnecessary assignment.
3827         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3828         self-assign warning.
3829         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3830         unnecessary self-init.
3831
3832 2010-07-23  Richard Guenther  <rguenther@suse.de>
3833
3834         PR lto/43071
3835         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3836         for -flto and -fwhopr.
3837
3838 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3839
3840         PR target/41943
3841         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3842         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3843         * config.gcc (user_headers_inc_next_pre): New.
3844         (user_headers_inc_next_post): Likewise.
3845         (*-w64-mingw*): Use for float.h post-fixing, and for
3846         stddef.h/stdarg.h pre-fixing by include_next.
3847         * configure.ac (user_headers_inc_next_post): New.
3848         (user_headers_inc_next_pre): New.
3849         * configure: Regenerated.
3850
3851 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3852
3853         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3854         Set tga_func for Solaris 2/x86 resp. SPARC.
3855         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3856         (LIB_THREAD_LDFLAGS_SPEC): Define.
3857         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3858         * configure: Regenerate.
3859         * config.in: Regenerate.
3860         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3861         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3862         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3863         alternate thread libraries on Solaris 8.
3864         Document TLS patch requirements.
3865         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3866         Document tls.
3867
3868         PR target/18788
3869         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3870         -shared.
3871
3872 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3873
3874         * tree.h (struct tree_base): Add nameless_flag bitfield.
3875         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3876         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3877         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3878         DECL_ARTIFICIAL where needed.
3879         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3880         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3881         has DECL_NAMELESS set.
3882
3883 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3884
3885         PR tree-optimization/44915
3886         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3887         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3888         (analyze_function): Likewise.
3889
3890 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3891
3892         PR tree-optimization/44914
3893         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3894         changed, add purging dead eh edges.
3895         (ipa_sra_modify_function_body): Return true if CFG was changed,
3896         simplify purging dead eh edges.
3897         (modify_function): Return true if CFG was changed.
3898         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3899         was changed.
3900         (ipa_early_sra): Likewise.
3901
3902 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3903
3904         PR target/44290
3905         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3906         if "naked".
3907         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3908         false if ! tree_versionable_function_p.
3909
3910 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3911
3912         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3913         * ipa-pure-const.c (special_builtlin_state): Remove
3914         BUILT_IN_ARGS_INFO case.
3915         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3916         * builtins.c (expand_builtin): Likewise.
3917         (expand_builtin_args_info): Remove.
3918         * doc/tm.texi (__builtin_args_info): Remove.
3919         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3920         * doc/tm.text.in: Likewise.
3921
3922 2010-07-23  Richard Guenther  <rguenther@suse.de>
3923
3924         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3925         (lto_symtab_merge_decls_2): Likewise.
3926         * tree-ssa.c (useless_type_conversion_p): Likewise.
3927         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3928         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3929         (struct type_pair_d): Make same_p an array indexed by mode.
3930         Update comment.
3931         (lookup_type_pair): Update initialization.
3932         (struct sccs): Adjust same_p type.
3933         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3934         Adjust.
3935         (print_gimple_types_stats): Likewise.
3936         * gimple.h (enum gtc_mode): New.
3937         (gimple_types_compatible_p): Adjust prototype.
3938
3939 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3940
3941         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3942         again after processing insn.
3943
3944 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3945
3946         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3947         proper words when !tree_versionable_function_p.
3948
3949 2010-07-23  Richard Guenther  <rguenther@suse.de>
3950
3951         PR tree-optimization/45037
3952         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3953
3954 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3955
3956         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3957         Add MCORE instead.
3958
3959 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3960
3961         PR lto/44992
3962         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3963         lto_get_section_name.
3964         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3965         * lto-streamer-out.c (produce_asm): Likewise.
3966         (copy_function): Likewise.
3967         (produce_symtab): Likewise.
3968         (produce_asm_for_decls): Likewise.
3969         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3970         Rewrite to add random postfix to LTO sections.
3971         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3972         (lto_get_section_name): Add file_data argument to prototype.
3973
3974 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3975
3976         * lto-section-in.c (lto_section_name): Synchronize names
3977         with lto_get_section_name.
3978
3979 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3980
3981         * lto-opts.c (lto_read_file_options): Check for missing section.
3982
3983 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3984
3985         * ira.c (check_allocation): Correctly handle the case where an allocno
3986         with two objects was allocated to a single reg.
3987
3988 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3989
3990         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3991         (is_widening_mult_p): Likewise.
3992         (convert_to_widen): Use them.
3993         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3994         well as integer ones.
3995
3996 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3997
3998         * alias.c (true_dependence_1): New function, merged version of
3999         true_dependence and canon_true_dependence.
4000         (true_dependence): Simplify.
4001         (canon_true_dependence): Simplify.
4002
4003 2010-07-22  Richard Henderson  <rth@redhat.com>
4004
4005         PR target/45027
4006         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
4007         of V4SFmode for the SSE saves; increase stack alignment if needed.
4008         (ix86_gimplify_va_arg): Don't increase stack alignment here.
4009
4010 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
4011
4012         PR bootstrap/45028
4013         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
4014         call cprop_find_used_regs again via note_uses.
4015
4016 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
4017
4018         * alias.c (get_alias_set): Fix formatting issues.
4019
4020 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
4021
4022         PR middle-end/44878
4023         * stmt.c (expand_value_return):  Call promote_function_mode with
4024         a for_return argument of 2 when returning by reference.
4025
4026 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
4027
4028         PR debug/45024
4029         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
4030         unit DIE if we can find the scope DIE.
4031
4032 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4033
4034         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
4035         changed.  Initialize OBJECT_SUBWORD.
4036         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
4037         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
4038         all callers changed.
4039         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
4040         (finish_allocno): Likewise.
4041         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
4042         (remove_low_level_allocnos): Likewise.
4043         (update_bad_spill_attribute): Likewise.
4044         (setup_min_max_allocno_live_range_point): Likewise.
4045         (sort_conflict_id_map): Likewise.
4046         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
4047         (ior_hard_reg_conflicts): New function.
4048         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
4049         (compress_conflict_vecs): Iterate over objects, not allocnos.
4050         (ira_add_live_range_to_object): New function.
4051         (object_range_compare_func): Renamed from allocno_range_compare_func.
4052         All callers changed.
4053         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
4054         subobjects, widen the min/max range of the lowest-order object to
4055         potentially include all other such low-order objects.
4056         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
4057         (check_allocation): Likewise.  Use more fine-grained tests for register
4058         conflicts.
4059         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
4060         allocno subobjects.
4061         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
4062         choices about which bits to set in each set.  Don't use
4063         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
4064         using the multiple sets we computed.
4065         (push_allocno_to_stack): Iterate over allocno subobjects.
4066         (all_conflicting_hard_regs_coalesced): New static function.
4067         (setup_allocno_available_regs_num): Use it.
4068         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
4069         subobjects.
4070         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
4071         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4072         by ALLOCNO_NUM_OBJECTS.
4073         (calculate_spill_cost): Likewise.
4074         (color_pass): Express if statement in a more normal way.
4075         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
4076         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
4077         (setup_slot_coalesced_allocno_live_ranges): Likewise.
4078         (allocno_reload_assign): Likewise.
4079         (ira_reassign_pseudos): Likewise.
4080         (fast_allocation): Likewise.
4081         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4082         (print_allocno_conflicts): Likewise.
4083         (ira_build_conflicts): Likewise.
4084         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
4085         callers changed.  Test subword 0 of each allocno for conflicts.
4086         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
4087         callers changed.  Iterate over allocno subobjects.
4088         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
4089         * ira-int.h (struct ira_allocno): New member: num_objects.
4090         Rename object to objects and change it into an array.
4091         (ALLOCNO_OBJECT): Add new argument N.
4092         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
4093         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
4094         (ior_hard_reg_conflicts): Declare.
4095         (ira_add_live_range_to_object): Declare.
4096         (ira_allocno_object_iterator): New.
4097         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
4098         (FOR_EACH_ALLOCNO_OBJECT): New macro.
4099         * ira-lives.c (objects_live): Renamed from allocnos_live; all
4100         uses changed.
4101         (allocnos_processed): New sparseset.
4102         (make_object_born): Renamed from make_allocno_born; take an
4103         ira_object_t argument.  All callers changed.
4104         (make_object_dead): Renamed from make_allocno_dead; take an
4105         ira_object_t argument.  All callers changed.
4106         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
4107         All callers changed.
4108         (mark_pseudo_regno_live): Iterate over allocno subobjects.
4109         (mark_pseudo_regno_dead): Likewise.
4110         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
4111         functions.
4112         (mark_ref_live): Detect subword accesses and call
4113         mark_pseudo_regno_subword_live as appropriate.
4114         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
4115         (process_bb_nodes_live): Deal with object-related updates first; set
4116         and test bits in allocnos_processed to avoid computing allocno
4117         statistics more than once.
4118         (create_start_finish_chains): Iterate over objects, not allocnos.
4119         (print_object_live_ranges): New function.
4120         (print_allocno_live_ranges): Use it.
4121         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
4122         and objects_live.
4123
4124 2010-07-22  Richard Guenther  <rguenther@suse.de>
4125
4126         PR lto/42451
4127         * gimple.c (gtc_next_dfs_num): New global.
4128         (struct sccs): Make value a union, add integer same_p member.
4129         (gtc_visit): New function.
4130         (gimple_types_compatible_p_1): New function, split out from ...
4131         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
4132         (iterative_hash_gimple_type): Adjust for sccs change.
4133
4134 2010-07-22  Martin Jambor  <mjambor@suse.cz>
4135
4136         PR tree-optimization/44891
4137         * tree-sra.c: Include gimple-pretty-print.h.
4138         (replace_uses_with_default_def_ssa_name): Renamed to
4139         get_repl_default_def_ssa_name, return the new SSA name instead of
4140         replacing the old one.
4141         (sra_modify_assign): Dump a message when removing a load, if the LHS
4142         is an SSA_NAME, do not do any propagation, just set the RHS to a
4143         default definition SSA NAME, type convert if necessary.
4144         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
4145
4146 2010-07-22  Richard Guenther  <rguenther@suse.de>
4147
4148         PR tree-optimization/45017
4149         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
4150         TYPE_PRECISION of integral types in addition to size.
4151
4152 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4153
4154         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
4155         when no C library is specified.
4156
4157 2010-07-22  Martin Jambor  <mjambor@suse.cz>
4158
4159         * ipa-prop.h (struct ipa_node_params): Updated comment.
4160         (struct ipa_edge_args): Likewise.
4161         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
4162
4163 2010-07-22  Martin Jambor  <mjambor@suse.cz>
4164
4165         * cgraphunit.c (verify_edge_count_and_frequency): New function.
4166         (verify_cgraph_node): Verify frequencies of indirect edges.
4167         * tree-inline.c (tree_function_versioning): Update frequencies of
4168         indirect edges.
4169
4170 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4171
4172         PR target/43698
4173         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
4174         Set *arm_rev to be predicable.
4175
4176 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
4177
4178         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
4179         (LINK_COMMAND_SPEC_A): New.
4180         (DSYMUTIL): New.
4181         (DSYMUTIL_SPEC): New.
4182         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
4183         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
4184
4185 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
4186
4187         * calls.c (load_register_parameters): Move check for zero
4188         sized items so that only the call to
4189         mem_overlaps_already_clobbered_arg_p () is protected.
4190
4191 2010-07-22  Jan Hubicka  <jh@suse.cz>
4192
4193         * ipa-pure-const.c (varying_state): Break out from ...
4194         (get_function_state): ... here; always return varying_state
4195         when state would be NULL otherwise.
4196         (remove_node_data): Do not free varying state.
4197
4198 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4199
4200         PR bootstrap/44970
4201         PR middle-end/45009
4202         * postreload.c: Include "target.h".
4203         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
4204         into account.
4205         (fixup_debug_insns): Don't copy the rtx.
4206         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
4207         Don't copy when replacing.  Call fixup_debug_insns in the case where
4208         we merged one add with another.
4209         (reload_combine_recognize_pattern): Fail if there aren't any uses.
4210         Try harder to determine whether we're picking a valid index register.
4211         Don't set store_ruid for an insn we're going to scan in the
4212         next iteration.
4213         (reload_combine): Remove unused code.
4214         (reload_combine_note_use): When updating use information for
4215         an old insn, ignore a use that occurs after store_ruid.
4216         * Makefile.in (postreload.o): Update dependencies.
4217
4218         * function.c (record_hard_reg_sets): Restrict the previous change
4219         to cases where the incoming nominal mode is the same as the
4220         incoming promoted mode and everything happens in MODE_INT.
4221
4222 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
4223
4224         PR debug/45015
4225         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
4226         ASM_OPERANDS_OUTPUT_IDX.
4227         (adjust_insn): For inline asm with multiple sets ensure first
4228         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
4229         the insn.
4230
4231 2010-07-21  Richard Henderson  <rth@redhat.com>
4232
4233         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
4234         comparison for avoiding xmm register saves.  Emit the xmm register
4235         saves explicitly.
4236         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
4237         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
4238         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
4239         Remove patterns and the associated splitters.
4240
4241 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
4242
4243         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
4244         and imagine parts of a complex, so that they can have the same
4245         base and fall into the same group.
4246
4247 2010-07-21  Richard Guenther  <rguenther@suse.de>
4248
4249         PR lto/45018
4250         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
4251         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
4252         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
4253
4254 2010-07-21  Martin Jambor  <mjambor@suse.cz>
4255
4256         PR tree-optimization/44900
4257         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
4258         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
4259
4260 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
4261
4262         PR middle-end/44738
4263         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
4264
4265 2010-07-21  Richard Guenther  <rguenther@suse.de>
4266
4267         PR middle-end/45013
4268         * tree-ssa.c (useless_type_conversion_p): Dispatch to
4269         gimple_types_compatible_p only when in lto.
4270         * gimple.c (gimple_types_compatible_p): Use canonical types
4271         to speed up comparison.
4272
4273 2010-07-21  Richard Guenther  <rguenther@suse.de>
4274
4275         * tree-flow.h (referenced_var): Move define ...
4276         * tree-flow-inline.h (referenced_var): ... here as an inline
4277         function.  Assert here ...
4278         * tree-dfa.c (referenced_var_lookup): ... instead of here.
4279         * tree-ssa.c (maybe_optimize_var): Check if the variable
4280         is in referenced vars.
4281         (execute_update_addresses_taken): Remove old broken check.
4282         * gimple-pretty-print.c (pp_points_to_solution): Use
4283         referenced_var_lookup.
4284         * tree-into-ssa.c (dump_decl_set): Likewise.
4285
4286 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
4287
4288         PR debug/45003
4289         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
4290         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
4291         ZERO_EXTEND here.
4292
4293 2010-07-20  Richard Henderson  <rth@redhat.com>
4294
4295         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
4296
4297 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
4298
4299         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
4300         computing the sum of the stack pointer and a large constant.
4301         * config/arm/constraints.md (M): Remove superfluous parentheses.
4302         (Pc): New constraint.
4303
4304 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
4305
4306         PR debug/45006
4307         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
4308         operand's type if exp is tcc_unary class tree.
4309
4310 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
4311
4312         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
4313         Reverse sense of if_then_else condition.
4314
4315 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
4316
4317         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
4318         * config/rs6000/rs6000.c (rs6000_override_options): Set
4319         rs6000_block_move_inline_limit appropriately.
4320         (expand_block_move): Use rs6000_block_move_inline_limit.
4321         * doc/invoke.texi (mblock-move-inline-limit): Document.
4322
4323 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
4324
4325         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
4326         FROM and TO.  All callers changed.  Don't look for tracked uses,
4327         just scan the RTL for DEBUG_INSNs and substitute.
4328         (reload_combine_recognize_pattern): Call fixup_debug_insns.
4329         (reload_combine): Ignore DEBUG_INSNs.
4330
4331 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
4332
4333         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
4334         depth to 8 from 5.
4335
4336         PR debug/45003
4337         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
4338         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
4339         instead of the result's type.
4340
4341 2010-07-20  Richard Guenther  <rguenther@suse.de>
4342
4343         PR tree-optimization/44977
4344         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
4345         SSA form.
4346
4347 2010-07-20  Richard Guenther  <rguenther@suse.de>
4348
4349         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
4350         (lto_symtab_merge_decls_2): Likewise.
4351         * gimple.h (gimple_types_compatible_p): Declare.
4352         * gimple.c (gimple_queue_type_fixup): Remove.
4353         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
4354         (gimple_compatible_complete_and_incomplete_type_p): New function.
4355         (gimple_types_compatible_p): Adjust.
4356         (gimple_register_type): Remove type fixup code.
4357         (print_gimple_types_stats): Adjust.
4358         (free_gimple_type_tables): Likewise.
4359         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
4360         * tree-ssa.c (useless_type_conversion_p): Likewise.
4361
4362 2010-07-20  Richard Guenther  <rguenther@suse.de>
4363
4364         PR middle-end/44971
4365         PR middle-end/44988
4366         * tree-ssa.c (maybe_optimize_var): New function split out from ...
4367         (execute_update_addresses_taken): ... here.
4368         (non_rewritable_mem_ref_base): Likewise.
4369         (execute_update_addresses_taken): Do not iterate over all referenced
4370         vars but just all local decls and parms.
4371         Properly check call and asm arguments and rewrite call arguments.
4372
4373 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4374
4375         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
4376         to top level.
4377         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
4378         definitions ...
4379         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
4380         New macro.
4381         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
4382
4383 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4384
4385         * gengtype.c (start_root_entry): New function, split out from
4386         write_root.  Check whether V is null and raise an error if so.
4387         (write_field_root): Check for V being null.  Don't raise an error here;
4388         set V to null instead.
4389         (write_root): Update comment above function.  Use start_root_entry.
4390
4391 2010-07-19  Xinliang David Li  <davidxl@google.com>
4392
4393         PR testsuite/44932
4394         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
4395         def edges.
4396         (find_uninit_use): Add dump.
4397         (is_use_properly_guarded): Ditto.
4398         (warn_uninitialized_phi): Ditto.
4399         (execute_late_warn_uninitialized): Ditto.
4400
4401 2010-07-19  Richard Guenther  <rguenther@suse.de>
4402
4403         PR middle-end/44941
4404         * expr.c (emit_block_move_hints): Move zero size check first.
4405         Move asserts to more useful places.
4406         * calls.c (load_register_parameters): Check for zero size.
4407
4408 2010-07-19  Richard Henderson  <rth@redhat.com>
4409
4410         * tree-optimize.c (execute_all_early_local_passes): New.  Change
4411         cgraph_state here ...
4412         (execute_early_local_optimizations): ... not here.  Remove.
4413         (pass_early_local_passes, pass_all_early_optimizations): Update.
4414
4415 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
4416
4417         * postreload.c (reload_combine_closest_single_use): Ignore the
4418         number of uses for DEBUG_INSNs.
4419         (fixup_debug_insns): New static function.
4420         (reload_combine_recognize_const_pattern): Use it.  Don't let the
4421         main loop be affected by DEBUG_INSNs.
4422         Really disallow moving adds past a jump insn.
4423         (reload_combine_recognize_pattern): Don't update use_ruid here.
4424         (reload_combine_note_use): Do it here.
4425         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
4426
4427 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
4428
4429         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
4430         of a loop.
4431         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
4432
4433 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
4434
4435         * config/i386/darwin.h: Define darwin_emit_branch_islands.
4436         (TARGET_MACHO_BRANCH_ISLANDS): New.
4437         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
4438         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
4439         default value.
4440         * config/i386/i386.c (output_pic_addr_const): Do not emit
4441         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
4442         (x86_output_mi_thunk): Adjust symbol creation.
4443         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
4444         Remove out of date comment.
4445         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
4446         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4447         (DARWIN_GENERATE_ISLANDS): Ditto.
4448         (output_call):  Do not emit branch islands unless
4449         darwin_emit_branch_islands is set.
4450         * config/darwin.c: Declare darwin_emit_branch_islands.
4451         (machopic_indirect_data_reference): Do not emit unless
4452         darwin_emit_branch_islands is set.
4453         (darwin_override_options): Set darwin_emit_branch_islands
4454         where it is needed.
4455         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4456
4457 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4458
4459         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4460         sse_runtime, sse2_runtime.
4461
4462 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
4463
4464         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
4465         low half of a single-register SCmode return value before ORing
4466         it with the high half.
4467         * config/mips/mips16.S (MERGE_GPRf): Likewise.
4468
4469 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4470
4471         PR target/44805
4472         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
4473         on all targets.
4474
4475 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
4476
4477         PR target/42235
4478         * postreload.c (reload_cse_move2add): Return bool, true if anything.
4479         changed.  All callers changed.
4480         (move2add_use_add2_insn): Likewise.
4481         (move2add_use_add3_insn): Likewise.
4482         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
4483         reload_combine.
4484         (RELOAD_COMBINE_MAX_USES): Bump to 16.
4485         (last_jump_ruid): New static variable.
4486         (struct reg_use): New members CONTAINING_MEM and RUID.
4487         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
4488         (reload_combine_split_one_ruid, reload_combine_split_ruids,
4489         reload_combine_purge_insn_uses, reload_combine_closest_single_use
4490         reload_combine_purge_reg_uses_after_ruid,
4491         reload_combine_recognize_const_pattern): New static functions.
4492         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
4493         is true for our reg and that we have available index regs.
4494         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
4495         callers changed.  Use them to initialize fields in struct reg_use.
4496         (reload_combine): Initialize last_jump_ruid.  Be careful when to
4497         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
4498         Call reload_combine_recognize_const_pattern.
4499         (reload_combine_note_store): Update REAL_STORE_RUID field.
4500
4501 2010-07-16  Jason Merrill  <jason@redhat.com>
4502
4503         * Makefile.in (opts-common.o): Depend on options.h.
4504
4505 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4506
4507         * tree.c (build_common_builtin_nodes): Use build_function_type_list
4508         instead of build_function_type.
4509         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
4510         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4511
4512 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4513
4514         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
4515         do all the work.
4516         (rs6000_emit_int_cmove): Use function pointers for insn generation.
4517         Don't force values into registers unnecessarily.
4518         (output_isel): Assert that we're not given conditions we can't handle.
4519         Delete corresponding code.
4520         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
4521         scc_comparison_operator constraint.  Permit 0 for the consequent
4522         operand.  Permit any GPR for the alternative operand.
4523         (isel_unsigned_<mode>): Likewise.
4524
4525 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
4526
4527         PR target/44942
4528         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
4529         argument to const_tree.
4530         * config/i386/i386.c (function_arg_advance): If padding needs to be
4531         inserted before argument, increment cum->words by number of padding
4532         words as well.
4533         (contains_aligned_value_p): Change argument to const_tree.
4534         (ix86_function_arg_boundary): Change second argument to const_tree.
4535
4536 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
4537
4538         PR target/42235
4539         * function.c (record_hard_reg_sets): New static function.
4540         (assign_parm_setup_reg): If an optab for extending exists and the
4541         generated code clobbbers no hard regs, emit the insn directly and
4542         create a REG_EQUIV note.
4543
4544 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4545
4546         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
4547         TREE_CHAIN.
4548         * c-typeck.c (push_init_level): Likewise.
4549         (process_init_element): Likewise.
4550
4551 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
4552
4553         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
4554         (integer_three_node): Add.
4555         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
4556         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
4557         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
4558         of call build_int_cst.
4559         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
4560         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
4561         (find_interesting_uses_address): Ditto.
4562         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
4563         * tree-eh.c (lower_eh_constructs_2): Ditto.
4564         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
4565         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
4566         * expmed.c (expand_divmod): Ditto.
4567         * tree-mudflap.c (mx_register_decls): Ditto.
4568         * varasm.c (array_size_for_constructor): Ditto.
4569         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4570         * c-parser.c (c_parser_postfix_expression): Ditto.
4571
4572 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
4573
4574         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
4575         New static variables.
4576         (reload_combine_recognize_pattern): New static function, broken out
4577         of reload_combine.
4578         (reload_combine): Use it.  Only initialize first_index_reg and
4579         last_index_reg once.
4580
4581 2010-07-15  Richard Henderson  <rth@redhat.com>
4582
4583         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
4584         when done.
4585
4586 2010-07-15  Jan Hubicka  <jh@suse.cz>
4587
4588         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
4589         comdats for broken gold.
4590         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
4591
4592 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4593
4594         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
4595
4596 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4597
4598         * tree.h (DECL_CHAIN): Define.
4599         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4600         * c-decl.c: Likewise.
4601         * c-parser.c: Likewise.
4602         * c-typeck.c: Likewise.
4603         * cfgexpand.c: Likewise.
4604         * cgraph.c: Likewise.
4605         * cgraphunit.c: Likewise.
4606         * combine.c: Likewise.
4607         * config/alpha/alpha.c: Likewise.
4608         * config/arm/arm.c: Likewise.
4609         * config/frv/frv.c: Likewise.
4610         * config/i386/i386.c: Likewise.
4611         * config/i386/winnt-cxx.c: Likewise.
4612         * config/ia64/ia64.c: Likewise.
4613         * config/iq2000/iq2000.c: Likewise.
4614         * config/mep/mep.c: Likewise.
4615         * config/mips/mips.c: Likewise.
4616         * config/pa/som.h: Likewise.
4617         * config/rs6000/rs6000.c: Likewise.
4618         * config/s390/s390.c: Likewise.
4619         * config/sh/sh.c: Likewise.
4620         * config/sh/symbian-cxx.c: Likewise.
4621         * config/sparc/sparc.c: Likewise.
4622         * config/spu/spu.c: Likewise.
4623         * config/stormy16/stormy16.c: Likewise.
4624         * config/vxworks.c: Likewise.
4625         * config/xtensa/xtensa.c: Likewise.
4626         * coverage.c: Likewise.
4627         * dbxout.c: Likewise.
4628         * dwarf2out.c: Likewise.
4629         * emit-rtl.c: Likewise.
4630         * expr.c: Likewise.
4631         * function.c: Likewise.
4632         * gimple-low.c: Likewise.
4633         * gimple-pretty-print.c: Likewise.
4634         * gimplify.c: Likewise.
4635         * integrate.c: Likewise.
4636         * ipa-inline.c: Likewise.
4637         * ipa-prop.c: Likewise.
4638         * ipa-split.c: Likewise.
4639         * ipa-struct-reorg.c: Likewise.
4640         * ipa-type-escape.c: Likewise.
4641         * langhooks.c: Likewise.
4642         * lto-cgraph.c: Likewise.
4643         * omp-low.c: Likewise.
4644         * stor-layout.c: Likewise.
4645         * tree-cfg.c: Likewise.
4646         * tree-complex.c: Likewise.
4647         * tree-dfa.c: Likewise.
4648         * tree-dump.c: Likewise.
4649         * tree-inline.c: Likewise.
4650         * tree-mudflap.c: Likewise.
4651         * tree-nested.c: Likewise.
4652         * tree-object-size.c: Likewise.
4653         * tree-pretty-print.c: Likewise.
4654         * tree-sra.c: Likewise.
4655         * tree-ssa-live.c: Likewise.
4656         * tree-ssa-loop-niter.c: Likewise.
4657         * tree-ssa-math-opts.c: Likewise.
4658         * tree-ssa-reassoc.c: Likewise.
4659         * tree-ssa-sccvn.c: Likewise.
4660         * tree-ssa-structalias.c: Likewise.
4661         * tree-tailcall.c: Likewise.
4662         * tree-vrp.c: Likewise.
4663         * tree.c: Likewise.
4664         * var-tracking.c: Likewise.
4665         * varasm.c: Likewise.
4666
4667 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4668
4669         PR target/44877
4670         * config/spu/spu.c (spu_expand_builtin_1): Allow references
4671         (as well as pointers) as argument to mask_for_load builtins.
4672
4673 2010-07-15  Richard Guenther  <rguenther@suse.de>
4674
4675         PR tree-optimization/44946
4676         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4677         with accessing only padding properly.
4678
4679 2010-07-15  Jan Hubicka  <jh@suse.cz>
4680
4681         * ipa.c (function_and_variable_visibility): Variables marked as used
4682         should not be localized.
4683
4684 2010-07-15  Jan Hubicka  <jh@suse.cz>
4685
4686         * cgraph.c: Include lto-streamer.h
4687         (change_decl_assembler_name): Work when assembler name hash is at place.
4688         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4689         be sure to rename it to avoid name clash.
4690         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4691         Localize hidden symbols only when locally defined.
4692
4693 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
4694
4695         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4696
4697 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
4698             Kevin F. Quinn  <kevquinn@gentoo.org>
4699
4700         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4701         * common.opt: Add -Wtrampolines.
4702         * doc/invoke.texi: Add -Wtrampolines.
4703
4704 2010-07-15  Jie Zhang  <jie@codesourcery.com>
4705
4706         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4707         cortex_a8_issue_ls.
4708
4709 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
4710
4711         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4712         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4713
4714 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4715
4716         * config/spu/spu.c (reg_names): Remove prototype.
4717         (call_used_regs): Likewise.
4718
4719 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4720
4721         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4722         "unused" with attribute "used".
4723         (__JCR_END__): Likewise.
4724         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4725         "used" attribute.
4726         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4727
4728 2010-07-14  Richard Guenther  <rguenther@suse.de>
4729
4730         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4731         (maybe_fixup_decls): Likewise.
4732         (input_gimple_stmt): Do not fixup anything.
4733         * lto-streamer-out.c (output_gimple_stmt): Make sure all
4734         non-automatic variable uses are wrapped inside a MEM_REF.
4735
4736 2010-07-14  Richard Henderson  <rth@redhat.com>
4737
4738         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4739         for functions.
4740         * varasm.c (assemble_variable): Remove early exit for functions;
4741         assert that we're given a variable.
4742
4743 2010-07-14  Jie Zhang  <jie@codesourcery.com>
4744
4745         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4746         cortex_a8_default when neon_type is not none.
4747
4748 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4749
4750         * lower-subreg.c (subreg_context): New static bitmap.
4751         (decompose_multiword_subregs): Allocate and free it.
4752         (find_decomposable_subregs): Set a bit in it for a register that
4753         occurs in a subreg that changes mode but not size.
4754         (can_decompose_p): Test it instead of non_decomposable_context.
4755
4756 2010-07-14  Richard Guenther  <rguenther@suse.de>
4757
4758         PR tree-optimization/44824
4759         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4760         is_gimple_mem_ref_addr.
4761         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4762         non-decl_address_invariant_p addresses.
4763
4764 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4765
4766         * reload.c (find_reloads): Revert code to penalize small register
4767         classes that was brought in with the IRA merge.
4768
4769 2010-07-14  Richard Guenther  <rguenther@suse.de>
4770
4771         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4772         as base of ARRAY_REFs.
4773
4774 2010-07-14  Richard Guenther  <rguenther@suse.de>
4775
4776         PR middle-end/44930
4777         * tree-pretty-print.c (do_niy): Do not print a newline.
4778
4779 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4780
4781         * ira-int.h (struct ira_object): New.
4782         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4783         (struct ira_allocno): Remove members min, max,
4784         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4785         conflict_allocnos_num and conflict_vec_p.  Add new member object.
4786         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4787         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4788         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4789         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4790         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4791         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4792         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4793         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4794         an ira_object_t rather than ira_allocno_t.  All uses changed.
4795         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4796         contains a vector of ira_object_t; all uses changed.
4797         (ira_objects_num): Declare variable.
4798         (ira_create_allocno_object): Declare function.
4799         (ira_conflict_vector_profitable_p): Adjust prototype.
4800         (ira_allocate_conflict_vec): Renamed from
4801         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4802         (ira_allocate_object_conflicts): Renamed from
4803         ira_allocate_allocno_conflicts; first arg now ira_object_t.
4804         (struct ira_object_iterator): New.
4805         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4806         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4807         to conflict_vec_p.  All uses changed.
4808         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4809         Changed to take into account that conflicts are now tracked for
4810         objects.
4811         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4812         Args changed to accept ira_object_t.  All uses changed.
4813         (allocnos_conflict_p): New static function.
4814         (collected_conflict_objects): Renamed from collected_allocno_objects;
4815         now a vector of ira_object_t.  All uses changed.
4816         (build_conflict_bit_table): Changed to take into account that
4817         conflicts are now tracked for objects.
4818         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4819         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4820         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4821         setup_allocno_left_conflicts_size, allocno_reload_assign,
4822         fast_allocation): Likewise.
4823         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4824         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4825         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4826         Likewise.
4827         * ira-build.c (ira_objects_num): New variable.
4828         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4829         contains a vector of ira_object_t; all uses changed.
4830         (ira_object_id_map_vec): Corresponding change.
4831         (object_pool): New static variable.
4832         (initiate_allocnos): Initialize it.
4833         (finish_allocnos): Free it.
4834         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4835         New functions.
4836         (ira_create_allocno): Don't set members that were removed.
4837         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4838         (merge_hard_reg_conflicts): Changed to take into account that
4839         conflicts are now tracked for objects.
4840         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4841         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4842         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4843         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4844         setup_min_max_conflict_allocno_ids, ):  Likewise.
4845         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4846         to ira_object_t; all callers changed.
4847         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4848         to ira_object_t, all callers changed.
4849         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4850         to ira_object_t, all callers changed.
4851         (conflict_check, curr_conflict_check_tick): Renamed from
4852         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4853         changed.
4854         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4855         arg changed to ira_object_t, all callers changed.
4856         (create_cap_allocno): Call ira_create_allocno_object.
4857         (finish_allocno): Free the corresponding object.
4858         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4859         callers changed.  Adjusted for dealing with objects.
4860         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4861         dealing with objects.
4862         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4863
4864         * ira-int.h (struct live_range): Rename allocno member to object
4865         and change type to ira_object_t.
4866         (struct ira_object): New member live_ranges.
4867         (struct ira_allocno): Remove member live_ranges.
4868         (ALLOCNO_LIVE_RANGES): Remove.
4869         (OBJECT_LIVE_RANGES): New macro.
4870         (ira_create_live_range, ira_copy_live_range_list,
4871         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4872         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4873         * ira-build.c (ira_create_object): Initialize live ranges here.
4874         (ira_create_allocno): Not here.
4875         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4876         changed to ira_object_t, all callers changed.
4877         (copy_live_range): Rename from copy_allocno_live_range, all callers
4878         changed.
4879         (ira_copy_live_range_list): Rename from
4880         ira_copy_allocno_live_range_list, all callers changed.
4881         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4882         all callers changed.
4883         (ira_live_ranges_intersect_p): Rename from
4884         ira_allocno_live_ranges_intersect_p, all callers changed.
4885         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4886         callers changed.
4887         (ira_finish_live_range_list): Rename from
4888         ira_finish_allocno_live_range_list, all callers changed.
4889         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4890         last arg changed to ira_object_t, all callers changed.
4891         (finish_allocno): Changed to expect live ranges in the allocno's object.
4892         (move_allocno_live_ranges, copy_allocno_live_ranges,
4893         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4894         ira_flattening, ira_build): Likewise.
4895         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4896         slot_coalesced_allocno_live_ranges_intersect,
4897         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4898         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4899         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4900         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4901         make_allocno_dead, create_start_finish_chains,
4902         remove_some_program_points_and_update_live_ranges,
4903         ira_debug_live_range_list): Likewise.
4904
4905         * ira-int.h (ira_object_conflict_iterator): Rename from
4906         ira_allocno_conflict_iterator.
4907         (ira_object_conflict_iter_init): Rename from
4908         ira_allocno_conflict_iter_init, second arg changed to
4909         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4910         FOR_EACH_ALLOCNO_CONFLICT.
4911         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4912         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4913         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4914         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4915
4916 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4917
4918         PR other/44874
4919         * tree-dump.c (dump_options): Add enumerate_locals entry.
4920         Add TDF_NOID exclusion to all entry.
4921         * tree-dump.h (dump_enumerated_decls): Declare.
4922         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4923         Don't display type uid.
4924         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4925         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4926         * tree-ssa-live.c: Include gimple.h.
4927         (numbered_tree_d): New struct.
4928         (numbered_tree): New typedef.
4929         (DEF_VEC_O (numbered_tree): New.
4930         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4931         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4932         (dump_enumerated_decls): Likewise.
4933         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4934         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4935         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4936         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4937
4938 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4939
4940         * expmed.h (MAX_BITS_PER_WORD): Move to...
4941         * defaults.h (MAX_BITS_PER_WORD): ...here.
4942
4943 2010-07-13  DJ Delorie  <dj@redhat.com>
4944
4945         * config/h8300/h8300.c (h8300_init_once): Default to
4946         -fstrict_volatile_bitfields.
4947
4948         * config/sh/sh.c (sh_override_options): Default to
4949         -fstrict_volatile_bitfields.
4950
4951         * config/rx/rx.c (rx_option_override): New.
4952
4953         * config/m32c/m32c.c (m32c_override_options): Default to
4954         -fstrict_volatile_bitfields.
4955
4956 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4957
4958         * tree.h (build_function_call_expr): Delete.
4959         (build_call_expr_loc_array): New function.
4960         (build_call_expr_loc_vec): New function.
4961         * tree-flow.h (struct omp_region): Change type of ws_args field
4962         to a VEC.
4963         * builtins.c (build_function_call_expr): Delete.
4964         (build_call_expr_loc_array): New function.
4965         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4966         (build_call_expr): Likewise.
4967         (build_call_expr_loc_vec): New function.
4968         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4969         build_function_call_expr.
4970         * expr.c (emutls_var_address): Likewise.
4971         * varasm.c (emutls_common_1): Likewise.
4972         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4973         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4974         (get_ws_args_for): Return a VEC instead of a tree.
4975         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4976         build_function_call_expr.
4977         * stor-layout.c (self_referential_size): Likewise.
4978
4979 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4980
4981         PR testsuite/44701
4982         * recog.c (constrain_operands): Allow side-effects in memory
4983         operands if either < or > constraint is used, rather than if
4984         both < and > is used.
4985
4986 2010-07-13  Richard Guenther  <rguenther@suse.de>
4987
4988         PR middle-end/44911
4989         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4990         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4991         without name.
4992
4993 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4994
4995         PR target/44761
4996         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4997         to variable emited.
4998         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4999         * config/sh/sh.md (symGOT_load): Likewise.
5000         (symDTPOFF2reg): Likewise.
5001         (symTPOFF2reg): Likewise.
5002
5003 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5004
5005         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
5006         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
5007
5008 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5009
5010         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
5011         explanation.
5012         Find ucontext_t * on Solaris 11.
5013         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
5014         Handle new Solaris 11 __sighndlr patterns.
5015
5016 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
5017
5018         PR debug/44901
5019         * vec.h (VEC_block_remove): Fix comment.
5020         * tree-ssa-live.c (remove_unused_locals): Don't use
5021         VEC_unordered_remove on local_decls, instead replace a single
5022         vector element in each iteration if at least one element had
5023         to be removed and VEC_truncate at the end.
5024         * omp-low.c (expand_omp_taskreg): Likewise.
5025
5026 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5027
5028         * c-decl.c (finish_function): Fix typo in comment.
5029
5030 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5031
5032         PR bootstrap/44921
5033         * postreload.c (move2add_use_add3_insn): Silence gcc warning
5034         on min_regno.
5035
5036 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
5037
5038         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
5039         (simplify_stmt_using_ranges): Use it.
5040
5041 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5042
5043         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
5044         member.  Do not mark as GTY(()).
5045         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
5046         (spu_builtin_decls): New static variable.
5047         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
5048         (spu_init_builtins): Likewise.
5049         (spu_builtin_mul_widen_even): Likewise.
5050         (spu_builtin_mul_widen_odd): Likewise.
5051         (spu_builtin_mask_for_load): Likewise.
5052         (spu_builtin_vec_perm): Likewise.
5053         * config/spu/spu-c.c: Include "target.h".
5054         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
5055         of using spu_builtins[].fndecl.
5056
5057 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5058
5059         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
5060         imply -minterlink-mips16.
5061
5062 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5063
5064         * config/mips/mips.h (mips16_globals): Declare.
5065         (SWITCHABLE_TARGET): Define.
5066         * config/mips/mips.c: Include target-globals.h.
5067         (mips16_globals): New variable.
5068         (mips_set_mips16_mode): Use save_target_globals and
5069         restore_target_globals instead of target_reinit.
5070
5071 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5072
5073         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
5074         to say that the function can be called more than once.
5075         * target-globals.c (save_target_globals): Call init_reg_sets.
5076
5077 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5078
5079         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
5080         * bb-reorder.h: New file.
5081         * bb-reorder.c (default_target_bb_reorder): New variable.
5082         (this_target_bb_reorder): New conditional variable.
5083         (uncond_jump_length): Redefine as a macro.
5084         * target-globals.h (this_target_bb_reorder): Declare.
5085         (target_globals): Add a bb_reorder field.
5086         (restore_target_globals): Copy the bb_reorder field to
5087         this_target_bb-reorder.
5088         * target-globals.c: Include bb-reorder.h.
5089         (default_target_globals): Initialize the bb_reorder field.
5090         (save_target_globals): Likewise.
5091
5092 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5093
5094         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
5095         * gcse.h: New file.
5096         * gcse.c: Include gcse.h.
5097         (default_target_gcse): New variable.
5098         (this_target_gcse): New conditional variable.
5099         (can_copy): Redefine as a macro.
5100         (can_copy_init_p): New macro.
5101         (can_copy_p): Remove can_copy_init_p.
5102         * target-globals.h (this_target_gcse): Declare.
5103         (target_globals): Add a gcse field.
5104         (restore_target_globals): Copy the gcse field to this_target_gcse.
5105         * target-globals.c: Include gcse.h.
5106         (default_target_globals): Initialize the gcse field.
5107         (save_target_globals): Likewise.
5108
5109 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5110
5111         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
5112         and x_ira_prohibited_mode_move_regs_initialized_p.
5113         (ira_prohibited_mode_move_regs): Redefine as a macro.
5114         * ira.c (ira_prohibited_mode_move_regs): Delete.
5115         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
5116
5117 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5118
5119         * reload.h (target_reload): Add x_cached_reg_save_code and
5120         x_cached_reg_restore_code.
5121         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
5122         Redefine as macros.
5123
5124 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5125
5126         * Makefile.in (target-globals.o): Depend on builtins.h.
5127         * builtins.h: New file.
5128         * builtins.c: Include builtins.h.
5129         (default_target_builtins): New variable.
5130         (this_target_builtins): New conditional variable.
5131         (apply_args_mode, apply_result_mode): Redefine as macros.
5132         * target-globals.h (this_target_builtins): Declare.
5133         (target_globals): Add a builtins field.
5134         (restore_target_globals): Copy the builtins field to
5135         this_target_builtins.
5136         * target-globals.c: Include builtins.h.
5137         (default_target_globals): Initialize the builtins field.
5138         (save_target_globals): Likewise.
5139
5140 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5141
5142         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
5143         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
5144         from expmed.c.
5145         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
5146         (alg_hash, alg_hash_used_p): New macros.
5147         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
5148         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
5149         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
5150
5151 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5152
5153         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
5154         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
5155         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
5156         (this_op_costs, costs_classes): Redefine as macros.
5157         (record_reg_classes): Don't take op_costs as a parameter.
5158         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
5159         (scan_one_insn): Update call to record_operand_costs.
5160
5161 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5162
5163         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
5164         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
5165         (target_ira_int): New structure.
5166         (default_target_ira_int): Declare.
5167         (this_target_ira_int): Declare as a variable or define as a macro.
5168         (ira_reg_mode_hard_regset, ira_register_move_cost)
5169         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
5170         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
5171         (prohibited_class_mode_regs, ira_important_classes_num)
5172         (ira_important_classes, ira_reg_class_intersect)
5173         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
5174         (ira_reg_class_union): Redefine as macros.
5175         * ira.h (target_ira): New structure.
5176         (default_target_ira): Declare.
5177         (this_target_ira): Declare as a variable or define as a macro.
5178         (ira_available_class_regs, ira_hard_regno_cover_class)
5179         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
5180         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
5181         (ira_class_hard_regs_num): Redefine as macros.
5182         * ira.c (default_target_ira, default_target_ira_int): New variables.
5183         (this_target_ira, this_target_ira_int): New conditional variables.
5184         (ira_reg_mode_hard_regset, ira_memory_move_cost)
5185         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
5186         (ira_class_subset_p): Delete.
5187         (no_unit_alloc_regs): Redefine as a macro.
5188         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
5189         (ira_class_hard_regs_num, ira_class_hard_reg_index)
5190         (ira_available_class_regs): Delete.
5191         (alloc_reg_class_subclasses): Redefine as a macro.
5192         (ira_reg_class_cover_size, ira_reg_class_cover)
5193         (ira_important_classes_num, ira_important_classes)
5194         (ira_important_class_nums, ira_class_translate): Delete.
5195         (cover_class_order): Document the variable's lifetime.
5196         (reorder_important_classes): Don't set ira_important_class_nums.
5197         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
5198         (ira_reg_class_super_classes, ira_reg_class_union)
5199         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
5200         Delete.
5201         (setup_reg_class_nregs): Don't set ira_max_regs.
5202         (prohibited_class_mode_regs): Delete.
5203         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
5204         (target_globals): Add ira and ira_int fields.
5205         (restore_target_globals): Copy the ira field to this_target_ira
5206         and the ira_int field to this_target_ira_int.
5207         * target-globals.c: Include ira-int.h.
5208         (default_target_globals): Initialize the ira and ira_int fields.
5209         (save_target_globals): Likewise.
5210
5211 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5212
5213         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
5214         * cfgloop.h (target_cfgloop): New structure.
5215         (default_target_cfgloop): Declare.
5216         (this_target_cfgloop): Declare as a variable or define as a macro.
5217         (target_avail_regs, target_clobbered_regs, target_res_regs)
5218         (target_reg_cost, target_spill_cost): Redefine as macros.
5219         * cfgloopanal.c (default_target_cfgloop): New variable.
5220         (this_target_cfgloop): New conditional variable.
5221         (target_avail_regs, target_clobbered_regs, target_res_regs)
5222         (target_reg_cost, target_spill_cost): Delete.
5223         * target-globals.h (this_target_cfgloop): Declare.
5224         (target_globals): Add a cfgloop field.
5225         (restore_target_globals): Copy the cfgloop field to
5226         this_target_cfgloop.
5227         * target-globals.c: Include cfgloop.h.
5228         (default_target_globals): Initialize the cfgloop field.
5229         (save_target_globals): Likewise.
5230
5231 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5232
5233         * regs.h (target_regs): Add x_direct_load, x_direct_store and
5234         x_float_extend_from_mem.
5235         (direct_load, direct_store, float_extend_from_mem): New macros.
5236         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
5237
5238 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5239
5240         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
5241         (target-globals.o): Depend on $(LIBFUNCS_H).
5242         * libfuncs.h: Include hashtab.h.
5243         (libfunc_entry): Moved from optabs.c.
5244         (target_libfuncs): New structure.
5245         (default_target_libfuncs): Declare.
5246         (this_target_libfuncs): Declare as a variable or define as a macro.
5247         (libfunc_table): Redefine as a macro.
5248         * optabs.c (default_target_libfuncs): New variable.
5249         (this_target_libfuncs): New conditional variable.
5250         (libfunc_table): Delete.
5251         (libfunc_entry): Moved to optabs.h.
5252         (libfunc_hash): Redefine as a macro.
5253         (hash_libfunc, eq_libfunc): Fix comments.
5254         (init_optabs): Use libfunc_hash to detect cases where the function
5255         has already been called.  Clear the hash table instead of
5256         recreating it.
5257         * target-globals.h (this_target_libfuncs): Declare.
5258         (target_globals): Add a libfuncs field.
5259         (restore_target_globals): Copy the libfuncs field to
5260         this_target_libfuncs.
5261         * target-globals.c: Include libfuncs.h.
5262         (default_target_globals): Initialize the libfuncs field.
5263         (save_target_globals): Likewise.
5264
5265 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5266
5267         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
5268         in all dependency lists.
5269
5270 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5271
5272         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
5273         * optabs.h (target_optabs): New structure.
5274         (default_target_optabs): Declare.
5275         (this_target_optabs): Declare as a variable or define as a macro.
5276         (optab_table, convert_optab_table, direct_optab_table): Redefine
5277         as macros.
5278         * optabs.c (default_target_optabs): New variable.
5279         (this_target_optabs): New conditional variable.
5280         (optab_table, convert_optab_table, direct_optab_table): Delete.
5281         * target-globals.h (this_target_optabs): Declare.
5282         (target_globals): Add a optabs field.
5283         (restore_target_globals): Copy the optabs field to
5284         this_target_optabs.
5285         * target-globals.c: Include expr.h and optabs.h.
5286         (default_target_globals): Initialize the optabs field.
5287         (save_target_globals): Likewise.
5288
5289 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5290
5291         * flags.h (target_flagstate): Add x_flag_excess_precision.
5292         (flag_excess_precision): Redefine as a macro.
5293         * toplev.c (flag_excess_precision): Delete.
5294
5295 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5296
5297         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
5298         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
5299         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
5300         (no_caller_save_reg_set): Redefine as a macro.
5301         * reload.h (target_reload): Add x_caller_save_initialized_p and
5302         x_regno_save_mode.
5303         (caller_save_initialized_p): Redefine as a macro.
5304         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
5305         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
5306         (regno_save_mode): Redefine as a macro.
5307
5308 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5309
5310         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
5311         * expmed.h: New file.
5312         * expmed.c (default_target_costs): New variable.
5313         (this_target_costs): New conditional variable.
5314         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
5315         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
5316         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
5317         * target-globals.h (this_target_expmed): Declare.
5318         (target_globals): Add a expmed field.
5319         (restore_target_globals): Copy the expmed field to
5320         this_target_expmed.
5321         * target-globals.c: Include expmed.h.
5322         (default_target_globals): Initialize the expmed field.
5323         (save_target_globals): Likewise.
5324
5325 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5326
5327         * Makefile.in (target-globals.o): Depend on reload.h.
5328         * reload.h (target_reload): New structure.
5329         (default_target_reload): Declare.
5330         (this_target_reload): Declare as a variable or define as a macro.
5331         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
5332         * reload1.c (default_target_reload): New variable
5333         (this_target_reload): New conditional variable.
5334         (indirect_symref_ok, double_reg_address_ok): Delete.
5335         (spill_indirect_levels): Redefine as a macro.
5336         * target-globals.h (this_target_reload): Declare.
5337         (target_globals): Add a reload field.
5338         (restore_target_globals): Copy the reload field to
5339         this_target_reload.
5340         * target-globals.c: Include hard-reg-set.h.
5341         (default_target_globals): Initialize the reload field.
5342         (save_target_globals): Likewise.
5343
5344 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5345
5346         * rtl.h (target_rtl): Add x_static_reg_base_value.
5347         * alias.c (static_reg_base_value): Redefine as a macro.
5348
5349 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5350
5351         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
5352         (GTFILES): Remove reginfo.c.
5353         * rtl.h (target_rtl): Add x_top_of_stack.
5354         (top_of_stack): New macro.
5355         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
5356         (top_of_stack): Delete.
5357
5358 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5359
5360         * regs.h (target_regs): Add x_hard_regs_of_mode,
5361         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
5362         x_may_move_out_cost and x_last_mode_for_init_move_cost.
5363         (have_regs_of_mode, contains_reg_of_mode, move_cost)
5364         (may_move_in_cost, may_move_out_cost): Redefine as macros.
5365         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
5366         (may_move_in_cost, may_move_out_cost): Delete.
5367         (last_mode_for_init_move_cost): Redefine as a macro.
5368
5369 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5370
5371         * hard-reg-set.h (target_hard_regs): New structure.
5372         (default_target_hard_regs): Declare.
5373         (this_target_hard_regs): Declare as a variable or define as a macro.
5374         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
5375         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
5376         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
5377         (reg_class_size, reg_class_subclasses, reg_class_subunion)
5378         (reg_class_superunion, reg_names): Redefine as macros.
5379         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
5380         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
5381         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
5382         (reg_class_contents, reg_class_size, reg_class_subclasses)
5383         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
5384         (default_target_hard_regs): New variable
5385         (this_target_hard_regs, initial_call_really_used_regs)
5386         (initial_reg_alloc_order): New conditional variables.
5387         (initial_reg_names): New variable.
5388         (init_reg_sets): Assert that initial_call_really_used_regs,
5389         initial_reg_alloc_order and initial_reg_names
5390         are all the same size as their variable counterparts.  Use them to
5391         initialize those counterparts.
5392         * target-globals.h (this_target_hard_regs): Declare.
5393         (target_globals): Add a hard_regs field.
5394         (restore_target_globals): Copy the hard_regs field to
5395         this_target_hard_regs.
5396         * target-globals.c: Include hard-reg-set.h.
5397         (default_target_globals): Initialize the hard_regs field.
5398         (save_target_globals): Likewise.
5399
5400 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5401
5402         * Makefile.in (target-globals.o): Depend on $(RTL_H).
5403         * rtl.h (target_rtl): New structure.
5404         (default_target_rtl): Declare.
5405         (this_target_rtl): Declare as a variable or define as a macro.
5406         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
5407         Redefine as macros.
5408         * emit-rtl.c (default_target_rtl): New variable.
5409         (this_target_rtl): New conditional variable.
5410         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
5411         (return_address_pointer_rtx): Delete.
5412         (initial_regno_reg_rtx): New macro.
5413         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
5414         (init_emit_regs): Likewise.
5415         * target-globals.h (this_target_rtl): Declare.
5416         (target_globals): Add a rtl field.
5417         (restore_target_globals): Copy the rtl field to this_target_rtl.
5418         * target-globals.c: Include rtl.h.
5419         (default_target_globals): Initialize the rtl field.
5420         (save_target_globals): Likewise.
5421
5422 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5423
5424         * Makefile.in (target-globals.o): Depend on $(REGS_H).
5425         * regs.h (target_reg_modes): New structure.
5426         (default_target_reg_modes): Declare.
5427         (this_target_reg_modes): Declare as a variable or define as a macro.
5428         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
5429         * reginfo.c (default_target_reg_modes): New variable.
5430         (this_target_reg_modes): New conditional variable.
5431         (hard_regno_nregs, reg_raw_mode): Delete.
5432         * target-globals.h (this_target_regs): Declare.
5433         (target_globals): Add a regs field.
5434         (restore_target_globals): Copy the regs field to this_target_regs.
5435         * target-globals.c: Include regs.h.
5436         (default_target_globals): Initialize the regs field.
5437         (save_target_globals): Likewise.
5438
5439 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5440
5441         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
5442         * doc/tm.texi: Regenerate.
5443         * Makefile.in (OBJS-common): Add target-globals.o.
5444         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
5445         and target-globals.h.
5446         (target-globals.o): New rule.
5447         (GTFILES): Include $(srcdir)/target-globals.h.
5448         * defaults.h (SWITCHABLE_TARGET): Define.
5449         * gengtype.c (open_base_files): Add target-globals.h to the
5450         list of includes.
5451         * target-globals.h: New file.
5452         * target-globals.c: Likewise.
5453
5454         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
5455         * flags.h (target_flag_state): New structure.
5456         (default_target_flag_state): Declare.
5457         (this_target_flag_state): Declare as a variable or define as a macro.
5458         (align_loops_log): Redefine as a macro.
5459         (align_loops_max_skip, align_jumps_log): Likewise.
5460         (align_jumps_max_skip, align_labels_log): Likewise.
5461         (align_labels_max_skip, align_functions_log): Likewise.
5462         * toplev.c (default_target_flag_state): New variable.
5463         (this_target_flag_state): New conditional variable.
5464         (align_loops_log): Delete.
5465         (align_loops_max_skip, align_jumps_log): Likewise.
5466         (align_jumps_max_skip, align_labels_log): Likewise.
5467         (align_labels_max_skip, align_functions_log): Likewise.
5468         * target-globals.h (this_target_flag_state): Declare.
5469         (target_globals): Add a flag_state field.
5470         (restore_target_globals): Copy the flag_state field to
5471         this_target_flag_state.
5472         * target-globals.c: Include flags.h.
5473         (default_target_globals): Initialize the flag_state field.
5474         (save_target_globals): Likewise.
5475
5476 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5477
5478         * postreload.c (reg_symbol_ref[]): New.
5479         (move2add_use_add2_insn): New.
5480         (move2add_use_add3_insn): New.
5481         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
5482         (move2add_note_store): Likewise.
5483
5484 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5485
5486         PR rtl-optimization/44752
5487         * genautomata.c (main): Don't emit an empty file even if there
5488         is no automaton.
5489
5490 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5491
5492         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
5493         ix86_solaris_return_in_memory.
5494         * config/i386-protos.h: Reflect this.
5495         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5496         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5497         Move ...
5498         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
5499
5500 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5501
5502         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
5503         align the stack when it's going to be saved.
5504
5505 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5506
5507         PR pch/14940
5508         * config/host-solaris.c (mmap_fixed): New function.
5509         (sol_gt_pch_get_address): Use it.
5510         (sol_gt_pch_use_address): Likewise.
5511
5512 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5513
5514         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5515         pentiumpro on Solaris 8 and 9/x86.
5516         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
5517         Document SSE/SSE2 support.
5518         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
5519
5520 2010-07-12  Andi Kleen  <ak@linux.intel.com>
5521
5522         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
5523         instead of gcc_assert to print better error message for multiple
5524         prevailing defs.
5525
5526 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
5527
5528         * config/i386/i386.c (ix86_asm_output_function_label): Change format
5529         string placeholder from 0x%x to %#x.
5530         (ix86_code_end): Use putc to output '\n'.
5531         (ix86_print_operand) <case ';'>: Use putc to output ';'.
5532
5533 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
5534
5535         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
5536         in directive -export.
5537
5538 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
5539
5540         * reginfo.h (reg_classes_intersect_p): Change arguments type to
5541         reg_class_t.
5542         * rtl.h (reg_classes_intersect_p): Adjust prototype.
5543
5544         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5545         Remove macros.
5546         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
5547         rs6000_memory_move_cost): Remove
5548         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
5549         TARGET_MEMORY_MOVE_COST): Define.
5550         (rs6000_register_move_cost): Make static. Change arguments type from
5551         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
5552         (rs6000_memory_move_cost): Make static. Change arguments type from
5553         'enum reg_class' to reg_class_t.
5554
5555 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
5556
5557         PR middle-end/42505
5558         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
5559         lookup code into....
5560         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
5561         new functions.
5562         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
5563         * cfgloopanal.c (target_clobbered_regs): Define.
5564         (init_set_costs): Initialize target_clobbered_regs.
5565         (estimate_reg_pressure_cost): Add call_p argument.  When true,
5566         adjust the number of available registers to exclude the
5567         call-clobbered registers.
5568         * cfgloop.h (target_clobbered_regs): Declare.
5569         (estimate_reg_pressure_cost): Adjust declaration.
5570         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
5571         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
5572         (determine_set_costs): Dump target_clobbered_regs.
5573         (loop_body_includes_call): New function.
5574         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
5575         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
5576         call_p flag through.
5577         (best_gain_for_invariant): Likewise.
5578         (find_invariants_to_move): Likewise.
5579         (move_single_loop_invariants): Likewise, using already-computed
5580         has_call field.
5581
5582 2010-07-10  Richard Guenther  <rguenther@suse.de>
5583             Joern Rennecke  <joern.rennecke@embecosm.com>
5584
5585         PR debug/44832
5586         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
5587         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
5588         unless they have DECL_IGNORED_P set.
5589
5590 2010-07-10  Richard Guenther  <rguenther@suse.de>
5591
5592         PR lto/44889
5593         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
5594         helper function.
5595         (gimple_types_compatible_p): Similar to pointed-to
5596         types allow and merge a mix of complete and incomplete aggregate.
5597         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
5598         (iterative_hash_gimple_type): Adjust for that.
5599
5600 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
5601
5602         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
5603
5604 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
5605
5606         PR objc/44140
5607         * config/darwin.c (output_objc_section_asm_op): Save and restore
5608         section when outputting ObjC section list.
5609
5610 2010-07-09  Jan Hubicka  <jh@suse.cz>
5611
5612         * lto-streamer-out.c (produce_symtab): Do not write alias
5613         cgraph/varpool nodes.
5614
5615 2010-07-09  Jan Hubicka  <jh@suse.cz>
5616
5617         * tree-inline.c (declare_return_variable): Fix ICE while
5618         inlining DECL_BY_VALUE function not in SSA form
5619
5620 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
5621
5622         PR tree-optimization/44576
5623         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
5624         New.  Pull out from is_loop_prefetching_profitable to implement
5625         the trip count to ahead ratio heuristic.
5626         (mem_ref_count_reasonable_p): New.  Pull out from
5627         is_loop_prefetching_profitable to implement the instruction to
5628         memory reference ratio heuristic.  Also consider not reasonable if
5629         the memory reference count is above a threshold (to avoid
5630         explosive compilation time.
5631         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
5632         is_loop_prefetching_profitable to implement the instruction to
5633         prefetch ratio heuristic.
5634         (is_loop_prefetching_profitable): Removed.
5635         (loop_prefetch_arrays): Distribute the cost analysis across the
5636         function to allow early exit of the prefetch analysis.
5637         is_loop_prefetching_profitable is splitted into three functions,
5638         with each one called as early as possible.
5639         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
5640         number of memory references in a loop is considered too many.
5641
5642 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5643
5644         * reload.c (find_reloads): Don't clear badop if we have a winreg
5645         alternative, but not win, and the class only has fixed regs.
5646         * hard-reg-set.h (class_only_fixed_regs): Declare.
5647         * reginfo.c (class_only_fixed_regs): New array.
5648         (init_reg_sets_1): Initialize it.
5649         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5650         discourage alternatives using the stack pointer.
5651
5652         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5653
5654         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5655
5656         * config/arm/arm.md (cbranchqi4): Fix array size.
5657         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5658         calculating length.
5659
5660 2010-07-09  Richard Guenther  <rguenther@suse.de>
5661
5662         * gimple.c (struct type_fixup_s): New struct and VEC type.
5663         (gimple_register_type_fixups): New static global.
5664         (gimple_queue_type_fixup): New function.
5665         (gimple_types_compatible_p): Queue type fixups instead of
5666         applying them here.
5667         (gimple_register_type): Apply queued fixups for the
5668         canonical type.  Empty the type fixup queue.
5669
5670 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5671
5672         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5673         * configure: Regenerate.
5674         * config.in: Ditto.
5675
5676 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5677             Denys Vlasenko  <dvlasenk@redhat.com>
5678             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5679
5680         PR tree-optimization/28632
5681         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5682         (extract_range_from_binary_expr): Further optimize
5683         BIT_AND_EXPR and BIT_IOR_EXPR.
5684
5685 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
5686
5687         * tree-if-conv.c (fold_or_predicates): New.
5688         (add_to_predicate_list): Call it.
5689
5690 2010-07-09  Richard Guenther  <rguenther@suse.de>
5691
5692         PR middle-end/44890
5693         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5694         if base is a pointer.
5695         * tree-cfg.c (verify_expr): Update MEM_REF checking.
5696
5697 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5698
5699         PR target/44877
5700         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5701         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5702         builtin mask for load/store builtins.
5703
5704 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5705
5706         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5707         for "lock addl".
5708         * configure: Regenerate.
5709         * config/i386/i386.c (ix86_print_operand) <case ';'>:
5710         Remove TARGET_MACHO.
5711
5712 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
5713
5714         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5715         default ISA flags.
5716         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5717
5718 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
5719
5720         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5721
5722 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5723
5724         * config/picochip/picochip.md (commsTestPort): Emit more
5725         efficient sequence for tstport instruction.
5726
5727 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5728
5729         * config/i386/i386.c (ix86_veclib_handler): Make static.
5730
5731 2010-07-09  Richard Guenther  <rguenther@suse.de>
5732
5733         PR tree-optimization/44852
5734         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5735         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5736         in MEM_REF.
5737         (indirect_refs_may_alias_p): Likewise.
5738         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5739
5740 2010-07-09  Richard Guenther  <rguenther@suse.de>
5741
5742         PR tree-optimization/44882
5743         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5744         sets do conflict.
5745         (vectorizable_load): Likewise.
5746
5747 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5748
5749         PR target/40657
5750         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5751         All callers changed.
5752         Handle the case when we're called for the epilogue.
5753         (thumb_unexpanded_epilogue): Use it.
5754         (thumb1_expand_epilogue): Likewise.
5755
5756 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5757
5758         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5759         both ranges are range_int_cst_p with non-negative minimum,
5760         try harder to derive smaller range.
5761
5762 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5763
5764         * genrecog.c: Include diagnostic-core.h before toplev.h.
5765         * genoutput.c: Likewise.
5766         * genextract.c: Likewise.
5767         * genautomata.c: Likewise.
5768         * genemit.c: Likewise.
5769         * genpeep.c: Likewise.
5770         * genattrtab.c: Likewise.
5771         * genconditions.c: Likewise.
5772         * genpreds.c: Likewise.
5773
5774 2010-07-08  Andi Kleen  <ak@linux.intel.com>
5775
5776         * lto-section-in.c (lto_section_name): Add missing comma.
5777
5778 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
5779
5780         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5781         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5782         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5783         (ia64_override_options): Rename to...
5784         (ia64_option_override): ... this one. Make static.
5785
5786 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5787
5788         PR middle-end/44843
5789         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5790         pointed-to type of the offset in a MEM_REF to compute the alignment.
5791
5792 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
5793
5794         * final.c (final_scan_insn): Replace
5795         TARGET_UNWIND_INFO macro check by unwind_emit
5796         hook NULL check.
5797         * targhooks.c (default_unwind_emit): Removed.
5798         * targhooks.h (default_unwind_emit): Likewise.
5799         * target.def (unwind_emit): Set default value to NULL.
5800
5801         * config/i386/i386-protos.h (ix86_asm_output_function_label):
5802         New prototype.
5803         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5804         for NULL fntype argument and allow 64-bit targets.
5805         (ix86_asm_output_function_label): New function.
5806         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5807         (ix86_handle_fndecl_attribute): Likewise.
5808         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5809         * doc/doc/tm.texi: Regenerated.
5810         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5811         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5812         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5813         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5814         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5815         * config/elfos.h: Likewise.
5816         * config/i386/cygming.h: Likewise.
5817         * config/netbsd-aout.h: Likewise.
5818         * config/openbsd.h: Likewise.
5819         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5820         by ix86_asm_output_function_label function call.
5821         * varasm.c (assemble_start_function): Use
5822         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5823
5824 2010-07-08  Jan Hubicka  <jh@suse.cz>
5825
5826         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5827         New function.
5828         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5829         Declare.
5830         * ipa-cp.c (ipcp_estimate_growth): Use it.
5831         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5832         Likewise.
5833
5834 2010-07-08  Jan Hubicka  <jh@suse.cz>
5835
5836         * tree-inline.c (declare_return_variable): Allocate annotation for new
5837         temporary.
5838
5839 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5840
5841         PR tree-optimization/44710
5842         * tree-if-conv.c (parse_predicate): New.
5843         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5844         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5845
5846 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5847
5848         * common.opt (ftree-loop-if-convert): New flag.
5849         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5850         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5851         when flag_tree_loop_if_convert is set.
5852
5853 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5854
5855         * config/i386/i386.c: Use short syntax for function calls
5856         through function pointers.
5857         * config/i386/i386.md: Ditto.
5858
5859 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5860
5861         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5862
5863 2010-07-08  Richard Guenther  <rguenther@suse.de>
5864
5865         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5866         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5867
5868 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5869
5870         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5871         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5872         (loc_list_from_tree): Likewise.
5873         (output_loc_operands): Handle outputting DW_OP_const[48]u
5874         with loc->dtprel set.
5875         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5876
5877 2010-07-08  Jan Hubicka  <jh@suse.cz>
5878
5879         * ipa.c: Include pointer-set.h
5880         (cgraph_externally_visible_p): New attribute ALIASED;
5881         when in LTO, hidden symbols are local unless they are aliased.
5882         (function_and_variable_visibility): Compute aliased nodes;
5883         handle LTO and hidden symbol on functions and vars.
5884         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5885         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5886
5887 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5888
5889         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5890         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5891         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5892         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5893         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5894         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5895         (ix86_gen_probe_stack_range): Likewise.
5896         (override_options): Set them.
5897         (ix86_target_stack_probe): New function.
5898         (ix86_compute_frame_layout): Force use of push instructions to
5899         save registers if stack checking with probes is enabled.
5900         (get_scratch_register_on_entry): New function.
5901         (release_scratch_register_on_entry): Likewise.
5902         (ix86_adjust_stack_and_probe): Likewise.
5903         (output_adjust_stack_and_probe): Likewise.
5904         (ix86_emit_probe_stack_range): Likewise.
5905         (output_probe_stack_range): Likewise.
5906         (ix86_expand_prologue): Emit stack checking code if static built-in
5907         stack checking is enabled.
5908         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5909         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5910         (output_adjust_stack_and_probe): Likewise.
5911         (output_probe_stack_range): Likewise.
5912         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5913         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5914         TARGET_STACK_PROBE.
5915         (allocate_stack_worker_64): Likewise.
5916         (allocate_stack): Likewise.
5917         (adjust_stack_and_probe): New insn.
5918         (probe_stack_range): Likewise.
5919
5920 2010-07-08  Richard Guenther  <rguenther@suse.de>
5921
5922         PR tree-optimization/44831
5923         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5924         a MEM_REF preserving TBAA info of the original dereference.
5925         Dereference the original pointer if the address is not invariant.
5926         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5927         at least one invariant address that we are going to dereference.
5928
5929 2010-07-08  Richard Guenther  <rguenther@suse.de>
5930
5931         PR tree-optimization/44861
5932         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5933         information when building MEM_REFs.
5934         (vectorizable_load): Likewise.
5935         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5936
5937 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5938
5939         * config/sol2-c.c: Do not include diagnostic-core.h.
5940
5941 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5942
5943         PR bootstrap/44768
5944         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5945         with respect to current_function_decl. Pass decl of the function.
5946         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5947         * ipa-inline.c (compute_inline_parameters): Pass decl to
5948         estimated_stack_frame_size.
5949
5950 2010-07-08  Richard Guenther  <rguenther@suse.de>
5951
5952         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5953         New function.
5954         (valueize_refs): Call it.
5955
5956 2010-07-08  Richard Guenther  <rguenther@suse.de>
5957
5958         PR rtl-optimization/44838
5959         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5960         SSA form do not use pointer equivalence.
5961
5962 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5963
5964         * dwarf2out.c (AT_linkage_name): Delete.
5965         (add_linkage_attr): New function.
5966         (add_linkage_name): Call it to emit the linkage attribute.
5967         (dwarf2out_finish): Likewise.
5968         (move_linkage_attr): Explicitly accept both attribute variants.
5969
5970 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5971
5972         * toplev.h: Do not include diagnostic-core.h.
5973         Include diagnostic-core.h in every file that includes toplev.h.
5974         * c-tree.h: Do not include toplev.h.
5975         * pretty-print.h: Update comment.
5976         * Makefile.in: Update dependencies.
5977         * alias.c: Include diagnostic-core.h in every file that includes
5978         toplev.h.
5979         * attribs.c: Likewise.
5980         * auto-inc-dec.c: Likewise.
5981         * bb-reorder.c: Likewise.
5982         * bt-load.c: Likewise.
5983         * caller-save.c: Likewise.
5984         * calls.c: Likewise.
5985         * cfg.c: Likewise.
5986         * cfganal.c: Likewise.
5987         * cfgbuild.c: Likewise.
5988         * cfgcleanup.c: Likewise.
5989         * cfghooks.c: Likewise.
5990         * cfgloop.c: Likewise.
5991         * combine.c: Likewise.
5992         * config/alpha/alpha.c: Likewise.
5993         * config/arc/arc.c: Likewise.
5994         * config/arm/arm.c: Likewise.
5995         * config/arm/pe.c: Likewise.
5996         * config/avr/avr.c: Likewise.
5997         * config/bfin/bfin.c: Likewise.
5998         * config/cris/cris.c: Likewise.
5999         * config/crx/crx.c: Likewise.
6000         * config/darwin-c.c: Likewise.
6001         * config/darwin.c: Likewise.
6002         * config/fr30/fr30.c: Likewise.
6003         * config/frv/frv.c: Likewise.
6004         * config/h8300/h8300.c: Likewise.
6005         * config/host-darwin.c: Likewise.
6006         * config/i386/i386.c: Likewise.
6007         * config/i386/netware.c: Likewise.
6008         * config/i386/nwld.c: Likewise.
6009         * config/i386/winnt-cxx.c: Likewise.
6010         * config/i386/winnt-stubs.c: Likewise.
6011         * config/i386/winnt.c: Likewise.
6012         * config/ia64/ia64-c.c: Likewise.
6013         * config/ia64/ia64.c: Likewise.
6014         * config/iq2000/iq2000.c: Likewise.
6015         * config/lm32/lm32.c: Likewise.
6016         * config/m32c/m32c-pragma.c: Likewise.
6017         * config/m32c/m32c.c: Likewise.
6018         * config/m32r/m32r.c: Likewise.
6019         * config/m68hc11/m68hc11.c: Likewise.
6020         * config/m68k/m68k.c: Likewise.
6021         * config/mcore/mcore.c: Likewise.
6022         * config/mep/mep-pragma.c: Likewise.
6023         * config/mep/mep.c: Likewise.
6024         * config/mmix/mmix.c: Likewise.
6025         * config/mn10300/mn10300.c: Likewise.
6026         * config/moxie/moxie.c: Likewise.
6027         * config/pa/pa.c: Likewise.
6028         * config/pdp11/pdp11.c: Likewise.
6029         * config/picochip/picochip.c: Likewise.
6030         * config/rs6000/rs6000-c.c: Likewise.
6031         * config/rs6000/rs6000.c: Likewise.
6032         * config/rx/rx.c: Likewise.
6033         * config/s390/s390.c: Likewise.
6034         * config/score/score.c: Likewise.
6035         * config/score/score3.c: Likewise.
6036         * config/score/score7.c: Likewise.
6037         * config/sh/sh.c: Likewise.
6038         * config/sh/symbian-base.c: Likewise.
6039         * config/sh/symbian-c.c: Likewise.
6040         * config/sh/symbian-cxx.c: Likewise.
6041         * config/sol2-c.c: Likewise.
6042         * config/sol2.c: Likewise.
6043         * config/sparc/sparc.c: Likewise.
6044         * config/spu/spu.c: Likewise.
6045         * config/stormy16/stormy16.c: Likewise.
6046         * config/v850/v850-c.c: Likewise.
6047         * config/v850/v850.c: Likewise.
6048         * config/vax/vax.c: Likewise.
6049         * config/vxworks.c: Likewise.
6050         * config/xtensa/xtensa.c: Likewise.
6051         * convert.c: Likewise.
6052         * cse.c: Likewise.
6053         * cselib.c: Likewise.
6054         * dbgcnt.c: Likewise.
6055         * dbxout.c: Likewise.
6056         * ddg.c: Likewise.
6057         * dominance.c: Likewise.
6058         * emit-rtl.c: Likewise.
6059         * explow.c: Likewise.
6060         * expmed.c: Likewise.
6061         * fixed-value.c: Likewise.
6062         * fold-const.c: Likewise.
6063         * fwprop.c: Likewise.
6064         * gcse.c: Likewise.
6065         * ggc-common.c: Likewise.
6066         * ggc-page.c: Likewise.
6067         * ggc-zone.c: Likewise.
6068         * gimple-low.c: Likewise.
6069         * gimplify.c: Likewise.
6070         * graph.c: Likewise.
6071         * haifa-sched.c: Likewise.
6072         * ifcvt.c: Likewise.
6073         * implicit-zee.c: Likewise.
6074         * integrate.c: Likewise.
6075         * ira-build.c: Likewise.
6076         * ira-color.c: Likewise.
6077         * ira-conflicts.c: Likewise.
6078         * ira-costs.c: Likewise.
6079         * ira-lives.c: Likewise.
6080         * ira.c: Likewise.
6081         * lists.c: Likewise.
6082         * loop-doloop.c: Likewise.
6083         * loop-iv.c: Likewise.
6084         * lto-opts.c: Likewise.
6085         * lto-symtab.c: Likewise.
6086         * main.c: Likewise.
6087         * modulo-sched.c: Likewise.
6088         * optabs.c: Likewise.
6089         * params.c: Likewise.
6090         * plugin.c: Likewise.
6091         * postreload-gcse.c: Likewise.
6092         * postreload.c: Likewise.
6093         * predict.c: Likewise.
6094         * profile.c: Likewise.
6095         * real.c: Likewise.
6096         * regcprop.c: Likewise.
6097         * reginfo.c: Likewise.
6098         * regmove.c: Likewise.
6099         * reorg.c: Likewise.
6100         * resource.c: Likewise.
6101         * rtl.c: Likewise.
6102         * rtlanal.c: Likewise.
6103         * sched-deps.c: Likewise.
6104         * sched-ebb.c: Likewise.
6105         * sched-rgn.c: Likewise.
6106         * sdbout.c: Likewise.
6107         * sel-sched-dump.c: Likewise.
6108         * sel-sched-ir.c: Likewise.
6109         * simplify-rtx.c: Likewise.
6110         * stmt.c: Likewise.
6111         * stor-layout.c: Likewise.
6112         * store-motion.c: Likewise.
6113         * targhooks.c: Likewise.
6114         * tree-cfg.c: Likewise.
6115         * tree-cfgcleanup.c: Likewise.
6116         * tree-dump.c: Likewise.
6117         * tree-eh.c: Likewise.
6118         * tree-inline.c: Likewise.
6119         * tree-nomudflap.c: Likewise.
6120         * tree-object-size.c: Likewise.
6121         * tree-optimize.c: Likewise.
6122         * tree-outof-ssa.c: Likewise.
6123         * tree-phinodes.c: Likewise.
6124         * tree-profile.c: Likewise.
6125         * tree-ssa-ccp.c: Likewise.
6126         * tree-ssa-coalesce.c: Likewise.
6127         * tree-ssa-live.c: Likewise.
6128         * tree-ssa-loop-niter.c: Likewise.
6129         * tree-ssa-loop-prefetch.c: Likewise.
6130         * tree-ssa-loop.c: Likewise.
6131         * tree-ssa-structalias.c: Likewise.
6132         * tree-ssa-uninit.c: Likewise.
6133         * tree-ssa.c: Likewise.
6134         * tree-vect-data-refs.c: Likewise.
6135         * tree-vect-loop-manip.c: Likewise.
6136         * tree-vect-loop.c: Likewise.
6137         * tree-vect-patterns.c: Likewise.
6138         * tree-vect-stmts.c: Likewise.
6139         * tree-vrp.c: Likewise.
6140         * varasm.c: Likewise.
6141         * vec.c: Likewise.
6142         * web.c: Likewise.
6143         * xcoffout.c: Likewise.
6144
6145 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
6146
6147         * gengtype.c (write_field_root): New function.
6148         (write_root): Use it.
6149
6150 2010-07-07  Wei Guozhi  <carrot@google.com>
6151
6152         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
6153         of lowest bits to lshift/compare): Add a missing line.
6154
6155 2010-07-07  Wei Guozhi  <carrot@google.com>
6156
6157         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
6158         of lowest bits to lshift/compare): New.
6159
6160 2010-07-07  Tom Tromey  <tromey@redhat.com>
6161
6162         * doc/tm.texi: Update.
6163         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
6164         Add @hook.
6165         * target.def (want_debug_pub_sections): New hook.
6166         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
6167         * dwarf2out.c (add_pubname_string): Check
6168         targetm.want_debug_pub_sections.
6169         (add_pubname): Likewise.
6170         (add_pubtype): Likewise.
6171
6172 2010-07-07  Jie Zhang  <jie@codesourcery.com>
6173
6174         * genautomata.c (output_automata_list_min_issue_delay_code):
6175         Correctly decompress min_issue_delay.
6176
6177 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6178
6179         PR rtl-optimization/44404
6180         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
6181         possible, use reg_overlap_mentioned_p instead.
6182
6183 2010-07-07  Duncan Sands  <baldrick@free.fr>
6184
6185         PR middle-end/41355
6186         * tree.c (build_function_type_skip_args): Copy the original type using
6187         build_distinct_type_copy rather than copy_node.
6188
6189 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6190
6191         PR target/44850
6192         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
6193         revision 161876.
6194         (ix86_expand_prologue): Likewise.
6195         (ix86_handle_fndecl_attribute): Likewise.
6196         (ix86_asm_declare_function_name): Likewise.
6197         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6198         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6199         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
6200         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
6201         * doc/extend.texi: Likewise.
6202
6203 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6204
6205         PR target/44844
6206         * config/i386/i386.md (rdrand<mode>): Changed to expand to
6207         retry if the carry flag isn't valid.
6208         (rdrand<mode>_1): New.
6209
6210 2010-07-07  Richard Guenther  <rguenther@suse.de>
6211
6212         PR middle-end/44790
6213         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
6214         for expanding the constant offset for MEM_REFs.
6215
6216 2010-07-07  Richard Guenther  <rguenther@suse.de>
6217
6218         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
6219         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
6220         * gimple.h (is_gimple_operand): Remove.
6221         * gimple.c (is_gimple_operand): Likewise.
6222         (walk_gimple_op): Fix wi->val_only setting for calls.
6223         * tree-cfg.c (verify_gimple_call): Fix argument validation.
6224         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
6225         invalid gimple calls.
6226
6227 2010-07-06  Jan Hubicka  <jh@suse.cz>
6228
6229         * lto-cgraph.c (output_cgraph): Add missing declaration.
6230
6231 2010-07-06  Jan Hubicka  <jh@suse.cz>
6232
6233         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
6234         partition.
6235
6236 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
6237
6238         * doc/gimple.texi (GIMPLE_DEBUG): Document.
6239         * doc/rtl.texi (Debug Information): New node.
6240         (NOTE_INSN_VAR_LOCATION): Document.
6241         (debug_insn): Likewise.
6242         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
6243
6244 2010-07-07  Jan Hubicka  <jh@suse.cz>
6245
6246         With parts by Richard Guenther.
6247
6248         PR middle-end/44813
6249         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
6250         for functions passed by reference.
6251         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
6252         in memory when passed by reference.
6253         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
6254         beggining.
6255         * ipa-split.c (split_function): Cleanup way return value is passed;
6256         handle SSA DECL_BY_REFERENCE retvals.
6257         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
6258         DECL_BY_REFERENCE is set.
6259         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
6260         find_what_p_points_to): Handle RESULT_DECL.
6261         * tree-inline.c (declare_return_variable): Get new entry_block argument;
6262         when passing by reference ensure that RESULT_DECL is gimple_val.
6263         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
6264         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
6265
6266 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6267
6268         PR rtl-optimization/44787
6269         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
6270         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
6271
6272 2010-07-06  Jan Hubicka  <jh@suse.cz>
6273
6274         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
6275         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
6276         with body can prevail.
6277         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
6278         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
6279         * cgraph.c (cgraph_get_node_or_alias): New function.
6280         * cgraph.h (cgraph_get_node_or_alias): Declare.
6281
6282 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
6283
6284         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
6285         support.
6286         (ix86_expand_prologue): Likewise.
6287         (ix86_handle_fndecl_attribute): Likewise.
6288         (ix86_asm_declare_function_name): New function for
6289         ASM_DECLARE_FUNCTION_NAME.
6290         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
6291         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
6292         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
6293         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
6294         * doc/extend.texi: Adjust documentation about ms_hook_prologue
6295         attribute.
6296
6297 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6298
6299         * config/i386/i386.md (immediate_operand): New mode attribute.
6300
6301         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
6302         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
6303         using P mode iterator.
6304         (pro_epilogue_adjust_stack_di_2): Rename from
6305         pro_epilogue_adjust_stack_rex64_2.
6306
6307         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
6308
6309 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6310
6311         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
6312         through gen_mov_insv_1 function pointer.
6313         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
6314         gen_truncxf<mode>2 through gen_truncxf function pointer.
6315         (remainder<mode>3): Ditto.
6316         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
6317         (allocate_stack): Call gen_allocate_stack_worker_64 or
6318         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
6319         function pointer.
6320         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
6321         function pointer.
6322
6323 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6324
6325         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
6326         operand constraint instead of <r><i>m.
6327
6328 2010-07-06  Richard Guenther  <rguenther@suse.de>
6329
6330         PR middle-end/44828
6331         * convert.c (convert_to_integer): Watch out for overflowing
6332         MULT_EXPR as well.
6333
6334 2010-07-05  Jan Hubicka  <jh@suse.cz>
6335
6336         * lto-streamer.c (write_symbol_vec): Rename to ...
6337         (write_symbol) ... this one; write only symbol given and when
6338         present in cache. Sanity check that what is defined is present
6339         in cgraph/varpool with body/finalized decl.
6340         (write_symbols_of_kind): Remove.
6341         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
6342         pairs to produce symtab.
6343         (produce_asm_for_decls): Update call of produce_symtab; don't do so
6344         when doing WPA streaming.
6345
6346 2010-07-05  Jan Hubicka  <jh@suse.cz>
6347
6348         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
6349         function is still available to fold into.
6350
6351 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6352
6353         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
6354         * function.h (struct_function): Change type of local_decls field
6355         to a VEC.
6356         (add_local_decl): New function.
6357         (FOR_EACH_LOCAL_DECL): New macro.
6358         * cfgexpand.c (init_vars_expansion): Adjust for new type of
6359         cfun->local_decls.
6360         (estimated_stack_frame_size): Likewise.
6361         (expand_used_vars): Likewise.
6362         * cgraphbuild.c (build_cgraph_edges): Likewise.
6363         * function.c (instantiate_decls_1): Likewise.
6364         * ipa-struct-reorg.c (build_data_structure): Likewise.
6365         * ipa-type-escape.c (analyze_function): Likewise.
6366         * lto-streamer-in.c (input_function): Likewise.
6367         * lto-streamer-out.c (output_function): Likewise.
6368         * tree-ssa-live.c (remove_unused_locals): Likewise.
6369         * tree.c (free_lang_data_in_decl): Likewise.
6370         (find_decls_types_in_node): Likewise.
6371         * omp-low.c (remove_exit_barrier): Likewise.
6372         (expand_omp_taskreg): Likewise.
6373         (list2chain): Rename to...
6374         (vec2chain): ...this.  Adjust.
6375         * cgraphunit.c (assemble_thunk): Call add_local_decl.
6376         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
6377         * gimple-low.c (record_vars_into): Likewise.
6378         * tree-inline.c (remap_decls): Likewise.
6379         (declare_return_variable): Likewise.
6380         (declare_inline_vars): Likewise.
6381         (copy_forbidden): Adjust for new type of cfun->local_decls.
6382         (add_local_variables): New function.
6383         (expand_call_inline): Call it.
6384         (tree_function_versioning): Likewise.
6385
6386 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6387
6388         AVX Programming Reference (June, 2010)
6389         * config/i386/cpuid.h (bit_F16C): New.
6390         (bit_RDRND): Likewise.
6391         (bit_FSGSBASE): Likewise.
6392
6393         * config/i386/i386-builtin-types.def: Add
6394         "DEF_FUNCTION_TYPE (UINT16)", function types for
6395         float16 <-> float conversions and
6396         "DEF_FUNCTION_TYPE (VOID, UINT64)".
6397
6398         * config/i386/i386-c.c (ix86_target_macros_internal): Support
6399         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
6400         OPTION_MASK_ISA_F16C.
6401
6402         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
6403         (OPTION_MASK_ISA_RDRND_SET): Likewise.
6404         (OPTION_MASK_ISA_F16C_SET): Likewise.
6405         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
6406         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
6407         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
6408         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
6409         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
6410         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
6411         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
6412         (override_options): Handle them.
6413         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
6414         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
6415         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
6416         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
6417         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
6418         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
6419         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
6420         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
6421         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
6422         (bdesc_args): Likewise.
6423         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
6424         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
6425         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
6426         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
6427         Handle non-memory store.
6428
6429         * config/i386/i386.h (TARGET_FSGSBASE): New.
6430         (TARGET_RDRND): Likewise.
6431         (TARGET_F12C): Likewise.
6432
6433         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
6434         (UNSPEC_VCVTPS2PH): Likewise.
6435         (UNSPECV_RDFSBASE): Likewise.
6436         (UNSPECV_RDGSBASE): Likewise.
6437         (UNSPECV_WRFSBASE): Likewise.
6438         (UNSPECV_WRGSBASE): Likewise.
6439         (UNSPECV_RDRAND): Likewise.
6440         (rdfsbase<mode>): Likewise.
6441         (rdgsbase<mode>): Likewise.
6442         (wrfsbase<mode>): Likewise.
6443         (wrgsbase<mode>): Likewise.
6444         (rdrand<mode>): Likewise.
6445
6446         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
6447
6448         * config/i386/immintrin.h (_rdrand_u16): New.
6449         (_rdrand_u32): Likewise.
6450         (_readfsbase_u32): Likewise.
6451         (_readfsbase_u64): Likewise.
6452         (_readgsbase_u32): Likewise.
6453         (_readgsbase_u64): Likewise.
6454         (_writefsbase_u32): Likewise.
6455         (_writefsbase_u64): Likewise.
6456         (_writegsbase_u32): Likewise.
6457         (_writegsbase_u64): Likewise.
6458         (_rdrand_u64): Likewise.
6459         (_cvtsh_ss): Likewise.
6460         (_mm_cvtph_ps): Likewise.
6461         (_mm256_cvtph_ps): Likewise.
6462         (_cvtss_sh): Likewise.
6463         (_mm_cvtps_ph): Likewise.
6464         (_mm256_cvtps_ph): Likewise.
6465
6466         * config/i386/sse.md (vcvtph2ps): New.
6467         (*vcvtph2ps_load): Likewise.
6468         (vcvtph2ps256): Likewise.
6469         (vcvtps2ph): Likewise.
6470         (*vcvtps2ph): Likewise.
6471         (*vcvtps2ph_store): Likewise.
6472         (vcvtps2ph256): Likewise.
6473
6474         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
6475
6476         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
6477
6478 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
6479
6480         PR bootstrap/44512
6481         * genenums.c (main): Output include of insn-constants.h
6482         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
6483
6484 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
6485
6486         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
6487         (override_options): Initialize it.
6488         (ix86_expand_prologue): Use it.
6489
6490 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6491
6492         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
6493
6494 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6495
6496         * double-int.h (fit_double_type): Remove declaration.
6497         * double-int.c (fit_double_type): Remove function.
6498         * tree.h (int_fits_type_p): Adjust prototype.
6499         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
6500         instead of fit_double_type.
6501         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
6502         instead of fit_double_type and build_int_cst_wide.
6503         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
6504         instead of fit_double_type and build_int_cst_wide.
6505         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
6506         of fit_double_type.
6507
6508 2010-07-05  Jan Hubicka  <jh@suse.cz>
6509
6510         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
6511         in_other_partition.
6512         * lto-cgraph.c (referenced_from_other_partition_p,
6513         reachable_from_other_partition_p): Use in_other_partition flags.
6514         (output_node, output_varpool_node): COMDAT nodes always have private
6515         copies and thus are never used from other partition.
6516
6517 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6518
6519         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6520         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
6521         * config/ia64/ia64.c Include reload.h.
6522         (ia64_memory_move_cost): New function.
6523         (TARGET_MEMORY_MOVE_COST): Define.
6524         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
6525         memory_move_cost.
6526
6527 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
6528
6529         PR middle-end/42505
6530         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
6531         comments about cost model.
6532         (try_add_cand_for):  Add second strategy for choosing initial set
6533         based on original IVs, controlled by ORIGINALP argument.
6534         (get_initial_solution): Add ORIGINALP argument.
6535         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
6536         (find_optimal_iv_set): Try two different strategies for choosing
6537         the IV set, and return the one with lower cost.
6538
6539 2010-07-05  Richard Guenther  <rguenther@suse.de>
6540
6541         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
6542
6543 2010-07-05  Richard Guenther  <rguenther@suse.de>
6544
6545         * tree.c (reference_alias_ptr_type): New function.
6546         * tree.h (reference_alias_ptr_type): Declare.
6547         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
6548         allow non-TARGET_MEM_REF new refs.
6549         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
6550         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
6551         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
6552         (create_mem_ref): Get alias pointer type.  Adjust calls to
6553         create_mem_ref_raw.
6554         (maybe_fold_tmr): Likewise.
6555         * tree-flow.h (create_mem_ref): Adjust prototype.
6556
6557 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6558
6559         PR c++/44808
6560         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
6561         *from_p is VAR_DECL.
6562
6563 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6564
6565         * tree.h (build_call_list): Remove.
6566         * tree.c (build_call_list): Remove.
6567
6568 2010-07-05  Richard Guenther  <rguenther@suse.de>
6569
6570         * double-int.h (double_int_sub): Declare.
6571         * double-int.c (double_int_sub): New function.
6572         * dwarf2out.c (field_byte_offset): Use it.
6573         * fixed-value.c (do_fixed_add): Likewise.
6574         (do_fixed_multiply): Likewise.
6575         (do_fixed_divide): Likewise.
6576         * tree-predcom.c (add_ref_to_chain): Likewise.
6577         (determine_roots_comp): Likewise.
6578         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6579
6580 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6581
6582         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
6583         implementations.
6584
6585 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
6586
6587         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
6588         * arm-modes.def (CC_NOTB): Don't define.
6589         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
6590         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6591         (LTUGEU): New code_iterator.
6592         (cnb, optab): New corresponding code_attrs.
6593         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
6594         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
6595         using LTUGEU.
6596         (addsi3_carryin_shift_<optab>): Likewise.
6597         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
6598         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
6599         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
6600         (subsi3_compare): Renamed from subsi3_compare0_c.
6601         Change CC_NOTB to CC.
6602         (arm_subsi3_insn): Allow constants for operand 0.
6603         (compare_scc peephole for eq case): New.
6604         (compare_scc splitters): Change CC_NOTB to CC.
6605
6606 2010-07-05  Richard Guenther  <rguenther@suse.de>
6607
6608         * tree-ssa-loop-im.c (for_each_index): Do not handle
6609         ALIGN_INDIRECT_REF.
6610         (gen_lsm_tmp_name): Likewise.
6611         * tree-dump.c (dequeue_and_dump): Likewise.
6612         * tree-pretty-print.c (dump_generic_node): Likewise.
6613         (op_code_prio): Likewise.
6614         (op_symbol_code): Likewise.
6615         * tree.c (staticp): Likewise.
6616         (build1_stat): Likewise.
6617         * tree.h (INDIRECT_REF_P): Likewise.
6618         * fold-const.c (maybe_lvalue_p): Likewise.
6619         (operand_equal_p): Likewise.
6620         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6621         (ao_ref_init_from_vn_reference): Likewise.
6622         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6623         (find_interesting_uses_address): Likewise.
6624         * dwarf2out.c (loc_list_from_tree): Likewise.
6625         * gimplify.c (gimplify_expr): Likewise.
6626         * tree-eh.c (tree_could_trap_p): Likewise.
6627         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6628         * cfgexpand.c (expand_debug_expr): Likewise.
6629         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6630         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6631         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6632         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
6633         * tree-ssa-operands.c (get_expr_operands): Likewise.
6634         * expr.c (safe_from_p): Likewise.
6635         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
6636         * tree-vect-data-refs.c (vect_setup_realignment): Build
6637         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
6638         * tree-vect-stmts.c (vectorizable_load): Likewise.
6639         * tree.def (ALIGN_INDIRECT_REF): Remove.
6640
6641 2010-07-05  Richard Guenther  <rguenther@suse.de>
6642
6643         PR tree-optimization/44784
6644         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6645         for inserted stmts.
6646         (find_or_generate_expression): Fix SCCVN insertion check.
6647
6648 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6649
6650         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6651         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6652         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6653         directives.
6654
6655 2010-07-05  Ira Rosen  <irar@il.ibm.com>
6656
6657         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6658         statements that are not vectorized.
6659         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6660         in INSIDE_COST.
6661
6662 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
6663
6664         PR bootstrap/44820
6665         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6666
6667 2010-07-05  Richard Guenther  <rguenther@suse.de>
6668
6669         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6670         RESULT_DECLs properly.
6671
6672 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
6673
6674         PR rtl-optimization/44695
6675         * config/i386/i386.md (extract_code): Removed.
6676         (<u>divmodqi4): Likewise.
6677         (divmodqi4): New.
6678         (udivmodqi4): Likewise.
6679         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6680         (udivmodhiqi3): Likewise.
6681
6682 2010-07-04  Jan Hubicka  <jh@suse.cz>
6683
6684         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6685
6686 2010-07-04  Jan Hubicka  <jh@suse.cz>
6687
6688         * cgraphunit.c (init_cgraph): Only initialize dump file if it
6689         is not already initialized.
6690
6691 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6692
6693         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6694         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6695         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6696         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6697         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6698         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6699         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6700         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6701         (sync_new_nand_optab): Redefine as macros.
6702         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6703         Delete.
6704         (direct_optab_index): New enum.
6705         (direct_optab_d): New structure.
6706         (direct_optab): New typedef.
6707         (direct_optab_table): Declare.
6708         (direct_optab_handler, set_direct_optab_handler): New functions.
6709         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6710         (sync_lock_release_optab): New macros.
6711         * optabs.c (direct_optab_table): New variable.
6712         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6713         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6714         cmpstr_optab and cmpstrn_optab.
6715         (emit_conditional_move): Likewise for movcc_optab.
6716         (can_conditionally_move_p): Likewise for movcc_gen_code.
6717         (init_insn_codes): Clear direct_optab_table.
6718         (init_optabs): Don't initialize the new "direct optabs" here.
6719         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6720         vcond_gen_code.
6721         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6722         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6723         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6724         (expand_sync_operation): Likewise other sync_*_optabs.
6725         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
6726         to sync_compare_and_swap_optab.
6727         (expand_sync_lock_test_and_set): Use direct_optab_handler for
6728         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6729         to the names of both.
6730         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6731         cmpstr_optab and cmpstrn_optab.
6732         (expand_builtin_lock_release): Likewise sync_lock_release.
6733         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6734         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6735         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6736         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6737         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6738         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6739         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6740         (sync_lock_test_and_set, sync_lock_release): Delete.
6741         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6742         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6743         * genopinit.c (optabs): Use set_direct_optab_handler for the new
6744         macro optabs.
6745         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6746         the "optab" local variable.  Use direct_optab_handler for optab and
6747         sync_compare_and_swap_optab.
6748         * reload1.c (reload_in_optab, reload_out_optab): Delete.
6749         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6750         reload_in_optab and reload_out_optab.
6751         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6752         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6753         * config/pa/pa.c (pa_secondary_reload): Likewise.
6754         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6755         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6756         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6757         (VMSupportsCS8_builtin): Likewise.
6758
6759 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6760
6761         * optabs.h (optab_handlers): Change type of insn_code to int.
6762         (optab_handler, set_optab_handler, convert_optab_handler)
6763         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6764         CODE_FOR_nothing".
6765         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6766         (init_insn_codes): Zero both the above arrays.
6767         (init_optabs): Never call init_insn_codes first time around.
6768
6769 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6770
6771         * optabs.h (optab_handler, convert_optab_handler): Turn into
6772         inline functions that return an insn code.
6773         (set_optab_handler, set_convert_optab_handler): New functions.
6774         * builtins.c: Replace optab_handler(X)->insn_code with
6775         optab_handler or set_optab_handler thoughout.  Likewise
6776         convert_optab_handler(X)->insn_code with convert_optab_handler
6777         and set_convert_optab_handler.
6778         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6779         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6780         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6781         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6782         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6783         config/spu/spu.c: Likewise.
6784
6785 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6786
6787         PR target/44531
6788         * config.gcc (sh*-*-*): Use regular expressions instead of
6789         the 'i' modifier for sed substitutions.
6790
6791 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6792
6793         * gimple.c (gimple_body): Comments added.
6794
6795 2010-07-04  Richard Guenther  <rguenther@suse.de>
6796
6797         PR middle-end/44809
6798         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6799         of an INDIRECT_REF.
6800
6801 2010-07-04  Richard Guenther  <rguenther@suse.de>
6802
6803         PR tree-optimization/44479
6804         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6805         extra SSA name copy statements which preserves points-to
6806         information.
6807         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6808         Copy points-to information for all pointers.  Properly handle
6809         MEM_REFs.
6810         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
6811         copy statements.
6812         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6813         dependency.
6814
6815 2010-07-04  Richard Guenther  <rguenther@suse.de>
6816
6817         PR middle-end/44785
6818         * tree-inline.c (initialize_inlined_parameters): Do not
6819         re-use pointer-map slot over remap_type call.
6820
6821 2010-07-04  Richard Guenther  <rguenther@suse.de>
6822
6823         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6824
6825 2010-07-04  Richard Guenther  <rguenther@suse.de>
6826
6827         PR tree-optimization/44656
6828         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6829         again after value-replacing in the defintions lhs.
6830
6831 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6832             Revital Eres  <eres@il.ibm.com>
6833
6834         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6835         Document new arguments.
6836         * doc/tm.texi: Regenerate.
6837         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6838         Handle unaligned store.
6839         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6840         * target.def (builtin_vectorization_cost): Add new arguments.
6841         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6842         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6843         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6844         (vect_vfa_segment_size): Fix indentation.
6845         * tree-vectorizer.h (struct _vect_peel_info): New.
6846         (struct _vect_peel_extended_info): New.
6847         (struct _loop_vec_info): Add new field for peeling hash table and a
6848         macro for its access.
6849         (VECT_MAX_COST): Define.
6850         (vect_get_load_cost): Declare.
6851         (vect_get_store_cost, vect_get_known_peeling_cost,
6852         vect_get_single_scalar_iteraion_cost): Likewise.
6853         (vect_supportable_dr_alignment): Add new argument.
6854         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6855         field.
6856         (destroy_loop_vec_info): Free peeling hash table.
6857         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6858         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6859         vect_analyze_slp. Fix indentation.
6860         (vect_get_single_scalar_iteraion_cost): New function.
6861         (vect_get_known_peeling_cost): Likewise.
6862         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6863         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6864         statement. Move outside cost calculation inside unknown peeling case.
6865         Call vect_get_known_peeling_cost for known amount of peeling.
6866         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6867         reference to the print message of forced alignment.
6868         (vect_verify_datarefs_alignment): Update call to
6869         vect_supportable_dr_alignment.
6870         (vect_get_data_access_cost): New function.
6871         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6872         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6873         vect_peeling_hash_choose_best_peeling): Likewise.
6874         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6875         to store all the accesses in the loop and find best possible access to
6876         align using peeling for known alignment case. For unknown alignment
6877         check if stores are preferred or if peeling is worthy.
6878         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6879         (vect_supportable_dr_alignment): Add new argument and check aligned
6880         accesses according to it.
6881         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6882         (cost_for_stmt): Call vect_get_stmt_cost.
6883         (vect_model_simple_cost): Likewise.
6884         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6885         vect_get_store_cost to calculate the cost of the statement.
6886         (vect_get_store_cost): New function.
6887         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6888         vect_get_load_cost to calculate the cost of the statement.
6889         (vect_get_load_cost): New function.
6890         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6891         (vectorizable_load): Likewise.
6892         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6893         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6894         arguments. Handle unaligned store.
6895         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6896         (rs6000_builtin_support_vector_misalignment): Return true for word and
6897         double word alignments for VSX.
6898         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6899         vect_supportable_dr_alignment and builtin_vectorization_cost.
6900
6901 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6902
6903         PR target/44597
6904         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6905         (prefetch_nocc_operand): Likewise.
6906         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6907         (prefetch_20): New insn.
6908         (prefetch_cc): Remove.
6909         (prefetch_nocc): Likewise.
6910
6911 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6912
6913         * expr.c (vector_mode_valid_p): Move to c-common.c.
6914         * expr.h (vector_mode_valid_p): Do not declare here.
6915         * system.h: Poison GCC_EXPR_H in front-ends.
6916         * Makefile.in: Update dependencies.
6917
6918 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6919
6920         PR target/44705
6921         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6922
6923 2010-07-03  Jan Hubicka  <jh@suse.cz>
6924
6925         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6926         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6927         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6928         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6929         Likewise.
6930
6931         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6932         Update timevars.V
6933         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6934         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6935         TV_IPA_LTO_DECL_OUT): New.
6936         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6937
6938 2010-07-03  Jan Hubicka  <jh@suse.cz>
6939
6940         * ipa-inline.c (update_edge_key): Break out from ...
6941         update_callers_keys): ... here;
6942         (update_callee_keys): Update only the edges from caller to callee.
6943         (update_all_calle_keys): Do what update_calle_keys did.
6944         (decide_inlining_of_small_functions): Avoid recomputing of all
6945         callees when badness increase.
6946
6947 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6948
6949         * config/arm/arm.c (arm_attr_length_move_neon): New.
6950         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6951         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6952         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6953         to compute length attribute.
6954
6955 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6956
6957         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6958         as predicate for operand 1 and remove its constraint.
6959         * config/arm/predicates.md (vfp_register_operand): New.
6960         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6961         (*push_fp_multi): Likewise.
6962
6963 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6964
6965         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6966
6967 2010-07-03  Jan Hubicka  <jh@suse.cz>
6968
6969         * config/i386/i386.c (override_options): Revert accidental commit.
6970
6971 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6972
6973         PR c++/44128
6974         * doc/invoke.texi: Update documentation of -Wshadow.
6975
6976 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6977             Julian Brown  <julian@codesourcery.com>
6978             Sandra Loosemore <sandra@codesourcery.com>
6979
6980         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6981         comparisons.  Adjust to take both operands.
6982         (arm_select_cc_mode): Handle DImode comparisons.
6983         (arm_gen_compare_reg): Generate a scratch register for DImode
6984         comparisons which require one.  Use xor for Thumb equality checks.
6985         (arm_const_double_by_immediates): New.
6986         (arm_print_operand): Allow 'Q' and 'R' for constants.
6987         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6988         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6989         arm_canonicalize_comparison.
6990         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6991         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6992         prototype.
6993         (arm_const_double_by_immediates): Declare.
6994         * config/arm/constraints.md (Di): New constraint.
6995         * config/arm/predicates.md (arm_immediate_di_operand)
6996         (arm_di_operand, cmpdi_operand): New.
6997         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6998         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6999         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
7000         (cstoredi4): Handle non-Cirrus also.
7001
7002 2010-07-02  Julian Brown  <julian@codesourcery.com>
7003             Sandra Loosemore <sandra@codesourcery.com>
7004
7005         PR target/43703
7006         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
7007         (smax<mode>3): Disable for NEON float modes when
7008         flag_unsafe_math_optimizations is false.
7009         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
7010         (*mul<mode>3_neon)
7011         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
7012         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
7013         for NEON float modes when flag_unsafe_math_optimizations is false.
7014         (quad_halves_<code>v4sf): Only enable if
7015         flag_unsafe_math_optimizations is true.
7016         * doc/invoke.texi (ARM Options): Add note about floating point
7017         vectorization requiring -funsafe-math-optimizations.
7018
7019 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7020             Julian Brown  <julian@codesourcery.com>
7021
7022         * config/arm/neon.md (UNSPEC_VABA): Delete.
7023         (UNSPEC_VABAL): Delete.
7024         (UNSPEC_VABS): Delete.
7025         (UNSPEC_VMUL_N): Delete.
7026         (adddi3_neon): New.
7027         (subdi3_neon): New.
7028         (mul<mode>3add<mode>_neon): Make the pattern named.
7029         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
7030         (neon_vadd<mode>): Replace with define_expand, and move the remaining
7031         unspec parts...
7032         (neon_vadd<mode>_unspec): ...to this.
7033         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
7034         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
7035         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
7036         (neon_vaba<mode>): Rewrite in terms of vabd.
7037         (neon_vabal<mode>): Rewrite in terms of vabdl.
7038         (neon_vabs<mode>): Rewrite without unspec.
7039         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
7040         (*arm_subdi3): Likewise.
7041         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
7042         No_op attribute to disable assembly output checks.
7043         * config/arm/arm_neon.h: Regenerated.
7044         * doc/arm-neon-intrinsics.texi: Regenerated.
7045
7046 2010-07-02  Jan Hubicka  <jh@suse.cz>
7047
7048         * ipa-split.c (split_function): For aggregate values, set the return
7049         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
7050         *<retval> = fncall.part ().
7051         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
7052
7053 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7054
7055         * config/arm/neon.md (UNSPEC_VAND): Delete.
7056         (UNSPEC_VBIC): Delete.
7057         (UNSPEC_VCLZ): Delete.
7058         (UNSPEC_VCNT): Delete.
7059         (UNSPEC_VEOR): Delete.
7060         (UNSPEC_VORN): Delete.
7061         (UNSPEC_VORR): Delete.
7062         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
7063         core registers too.
7064         (anddi3_neon): Likewise.
7065         (orndi3_neon): Likewise.
7066         (bicdi3_neon): Likewise.
7067         (xordi3_neon): Likewise.
7068         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
7069         rid of unspec and handle unused operand.
7070         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
7071         * config/arm/predicates.md (imm_for_neon_logic_operand):
7072         Require TARGET_NEON.
7073         (imm_for_neon_inv_logic_operand): Likewise.
7074         * config/arm/arm.md (define_split for logical_binary_operator):
7075         Disable for NEON registers.
7076         (anddi3): Add new define_expand, and rename the insn.  Disable
7077         this insn for NEON, where anddi3_neon now applies.
7078         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
7079         (iordi3): As for anddi3.
7080         (xordi3): Likewise.
7081         * config/arm/neon.ml (Vand): Split DImode variants and mark them
7082         as No_op to disable testing for exact instruction match.
7083         (Vorr): Likewise.
7084         (Veor): Likewise.
7085         (Vbic): Likewise.
7086         (Vorn): Likewise.
7087         * config/arm/arm_neon.h: Regenerated.
7088         * doc/arm-neon-intrinsics.texi: Regenerated.
7089
7090 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7091
7092         * expr.h (emit_stack_probe): Declare.
7093         * explow.c (emit_stack_probe): Make global.
7094         (anti_adjust_stack_and_probe): Fix comments.
7095         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7096         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7097         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7098         * config/sparc/sparc.c: Include except.h.
7099         (sparc_emit_probe_stack_range): New function.
7100         (output_probe_stack_range): Likewise.
7101         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
7102         built-in stack checking is enabled.
7103         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
7104         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7105         (probe_stack_range): New insn.
7106
7107 2010-07-02  Richard Guenther  <rguenther@suse.de>
7108
7109         PR target/43958
7110         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
7111         for argument alignment.
7112
7113 2010-07-02  Jan Hubicka  <jh@suse.cz>
7114
7115         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
7116         walk backwards from entry_bb to check only those basic block of header
7117         that might lead to execution of split part.
7118         (consider_split) ... here.
7119         (find_return_bb): Allow assignment in return BB.
7120         (find_retval): New.
7121         (split_function): Fix name of cloned function; take care of updating
7122         return value in return_bb containing move.
7123
7124 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
7125
7126         PR target/44771
7127         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
7128         used variable insn.
7129
7130 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7131
7132         * implicit-zee.c (combine_reaching_defs): Fix long lines.
7133         (is_set_with_extension_DI): Delete.
7134         (struct zero_extend_info): New structure.
7135         (add_removable_zero_extend): New function.
7136         (find_removable_zero_extends): Use note_stores to find SETs.
7137         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
7138
7139 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
7140
7141         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
7142         is_miss_rate_acceptable. Pull total_positions computation
7143         out of the loops.  Early return if miss_positions exceeds
7144         the acceptable threshold.
7145         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
7146         is_miss_rate_acceptable after renaming of compute_miss_rate.
7147
7148 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
7149
7150         PR middle-end/44576
7151         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
7152         of 1000) for miss rate if the address diference is greater than or
7153         equal to the cache line size (the two reference will never hit the
7154         same cache line).
7155
7156 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
7157
7158         PR target/42835
7159         * config/arm/arm-modes.def (CC_NOTB): New mode.
7160         * config/arm/arm.c (get_arm_condition_code): Handle it.
7161         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
7162         * config/arm/arm.md (subsi3_compare0_c): New pattern.
7163         (compare_scc): Now a define_and_split.  Add a number of extra
7164         splitters before it.
7165
7166         PR target/42172
7167         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
7168         and ZERO_EXTEND.
7169         (arm_rtx_costs_1): Likewise.
7170         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
7171         * config/arm/arm.md (is_arch6): New attribute.
7172         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
7173         extendqisi2): Tighten the code somewhat, avoiding invalid
7174         RTL to occur in the expander patterns.
7175         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
7176         (thumb1_zero_extendhisi2_v6): Delete.
7177         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
7178         (thumb1_extendhisi2_v6): Delete.
7179         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
7180         (thumb1_extendqisi2_v6): Delete.
7181         (zero_extendhisi2 for register input splitter): New.
7182         (zero_extendqisi2 for register input splitter): New.
7183         (thumb1_extendhisi2 for register input splitter): New.
7184         (extendhisi2 for register input splitter): New.
7185         (extendqisi2 for register input splitter): New.
7186         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
7187         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
7188         and add support for a register alternative requiring a split.
7189         (thumb1_zero_extendqisi2): Likewise.
7190         (arm_zero_extendqisi2): Likewise.
7191         (arm_extendhisi2): Likewise.
7192         (arm_extendqisi2): Likewise.
7193
7194 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7195
7196         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
7197         instead of an unspec.
7198         (neon_expand_vector_init): Likewise.
7199         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
7200         (UNSPEC_VDUP_LANE): Delete.
7201         (UNSPEC VDUP_N): Delete.
7202         (UNSPEC_VGET_HIGH): Delete.
7203         (UNSPEC_VGET_LANE): Delete.
7204         (UNSPEC_VGET_LOW): Delete.
7205         (UNSPEC_VMVN): Delete.
7206         (UNSPEC_VSET_LANE): Delete.
7207         (V_double_vector_mode): New.
7208         (vec_set<mode>_internal): Make code emitted match that for the
7209         corresponding intrinsics.
7210         (vec_setv2di_internal): Likewise.
7211         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
7212         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
7213         (neon_vset_lane<mode>): Combine double and quad patterns and
7214         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
7215         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
7216         (neon_vdup_n<mode>): Rewrite RTL without unspec.
7217         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
7218         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
7219         with neon_vdup_lanev2di, adjusting the pattern from the latter
7220         to be predicable for consistency.
7221         (neon_vdup_lane<mode>_internal): New.
7222         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
7223         to avoid using an unspec.
7224         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
7225         (neon_vdup_lanev2di): Turn into a define_expand.
7226         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
7227         (neon_vget_high<mode>): Replace with....
7228         (neon_vget_highv16qi): New pattern using canonical RTL.
7229         (neon_vget_highv8hi): Likewise.
7230         (neon_vget_highv4si): Likewise.
7231         (neon_vget_highv4sf): Likewise.
7232         (neon_vget_highv2di): Likewise.
7233         (neon_vget_low<mode>): Replace with....
7234         (neon_vget_lowv16qi): New pattern using canonical RTL.
7235         (neon_vget_lowv8hi): Likewise.
7236         (neon_vget_lowv4si): Likewise.
7237         (neon_vget_lowv4sf): Likewise.
7238         (neon_vget_lowv2di): Likewise.
7239
7240         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
7241         test for this emitting vmov.
7242         (Vset_lane): Likewise.
7243         (Vdup_n): Likewise.
7244         (Vmov_n): Likewise.
7245
7246         * doc/arm-neon-intrinsics.texi: Regenerated.
7247
7248 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7249
7250         * config/arm/neon.md (vec_extractv2di): Correct error in register
7251         numbering to reconcile with neon_vget_lanev2di.
7252
7253 2010-07-02  Richard Guenther  <rguenther@suse.de>
7254
7255         * tree-ssa-structalias.c (pt_solution_set_var): New function.
7256         * tree-ssa-alias.h (pt_solution_set_var): Declare.
7257         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
7258         points-to information.
7259
7260 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
7261
7262         * config/s390/s390.c (override_options): Adopt prefetching
7263         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
7264
7265 2010-07-02  Jan Hubicka  <jh@suse.cz>
7266
7267         * df-problems.c (df_kill_notes): Do not collect dead  notes.
7268         (df_set_note): Just call add_reg_note.
7269         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
7270         df_create_unused_note): Do not deal with lists of old notes.
7271         (df_note_bb_compute): Likewise.
7272
7273 2010-07-02  Richard Guenther  <rguenther@suse.de>
7274
7275         * tree-ssa-structalias.c (find_func_aliases): Handle
7276         pointer alignment via BIT_AND_EXPR.
7277         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
7278
7279 2010-07-02  Richard Guenther  <rguenther@suse.de>
7280
7281         * tree-data-ref.c (initialize_data_dependence_relation): Handle
7282         mismatching number of dimensions properly.
7283
7284 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7285
7286         PR target/44707
7287         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
7288         (lo_sum (high ...) ...) patterns generated by earlier passes.
7289
7290 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7291
7292         * doc/install.texi (Prerequisites): Document Perl requirement on
7293         Solaris 2.
7294         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
7295
7296 2010-07-02  Richard Guenther  <rguenther@suse.de>
7297
7298         PR middle-end/44777
7299         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
7300
7301 2010-07-02  Jan Hubicka  <jh@suse.cz>
7302
7303         PR middle-end/44706
7304         * predict.c (predict_paths_for_bb): Handle case when control dependence
7305         BB has only abnormal edges.
7306
7307 2010-07-02  Richard Guenther  <rguenther@suse.de>
7308
7309         PR tree-optimization/44748
7310         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
7311         the embedded conversion in MEM_REFs.
7312
7313 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
7314
7315         * reload.c: Include toplev.h.
7316         * recog.c:  Likewise.
7317         * Makefile.in: Adjust dependencies.
7318
7319 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
7320
7321         PR debug/44694
7322         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
7323         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
7324
7325 2010-07-01  Richard Guenther  <rguenther@suse.de>
7326
7327         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
7328         types for offsets.
7329
7330 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7331
7332         PR target/44732
7333         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
7334         Fix argument types.
7335
7336 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
7337
7338         PR target/44727
7339         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7340         Make sure operand 0 dies.
7341
7342 2010-07-01  Richard Guenther  <rguenther@suse.de>
7343
7344         PR middle-end/42834
7345         PR middle-end/44468
7346         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
7347         * doc/generic.texi (References to storage): Document MEM_REF.
7348         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
7349         (print_call_name): Likewise.
7350         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
7351         (build_simple_mem_ref_loc): New function.
7352         (mem_ref_offset): Likewise.
7353         * tree.h (build_simple_mem_ref_loc): Declare.
7354         (build_simple_mem_ref): Define.
7355         (mem_ref_offset): Declare.
7356         * fold-const.c: Include tree-flow.h.
7357         (operand_equal_p): Handle MEM_REF.
7358         (build_fold_addr_expr_with_type_loc): Likewise.
7359         (fold_comparison): Likewise.
7360         (fold_unary_loc): Fold
7361         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
7362         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
7363         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
7364         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
7365         (ptr_deref_may_alias_ref_p_1): Likewise.
7366         (ao_ref_base_alias_set): Properly differentiate base object for
7367         offset and TBAA.
7368         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
7369         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
7370         (indirect_refs_may_alias_p): Likewise.
7371         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
7372         chasing code.
7373         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
7374         (call_may_clobber_ref_p_1): Likewise.
7375         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
7376         * expr.c (expand_assignment): Handle MEM_REF.
7377         (store_expr): Handle MEM_REFs from STRING_CSTs.
7378         (store_field): If expanding a MEM_REF of a non-addressable
7379         decl use bitfield operations.
7380         (get_inner_reference): Handle MEM_REF.
7381         (expand_expr_addr_expr_1): Likewise.
7382         (expand_expr_real_1): Likewise.
7383         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
7384         * alias.c (ao_ref_from_mem): Handle MEM_REF.
7385         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
7386         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
7387         (dr_analyze_indices): Likewise.
7388         (dr_analyze_alias): Likewise.
7389         (object_address_invariant_in_loop_p): Likewise.
7390         * gimplify.c (mark_addressable): Handle MEM_REF.
7391         (gimplify_cond_expr): Build MEM_REFs.
7392         (gimplify_modify_expr_to_memcpy): Likewise.
7393         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
7394         (gimple_fold_indirect_ref): Adjust.
7395         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
7396         * tree.def (MEM_REF): New tree code.
7397         * tree-dfa.c: Include toplev.h.
7398         (get_ref_base_and_extent): Handle MEM_REF.
7399         (get_addr_base_and_unit_offset): New function.
7400         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
7401         * gimple-fold.c (may_propagate_address_into_dereference): Handle
7402         MEM_REF.
7403         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
7404         accesses if the array has just one dimension.  Remove always true
7405         parameter.  Do not require type compatibility here.
7406         (maybe_fold_offset_to_component_ref): Remove.
7407         (maybe_fold_stmt_indirect): Remove.
7408         (maybe_fold_reference): Remove INDIRECT_REF handling.
7409         Fold back to non-MEM_REF.
7410         (maybe_fold_offset_to_address): Simplify.  Deal with type
7411         mismatches here.
7412         (maybe_fold_reference): Likewise.
7413         (maybe_fold_stmt_addition): Likewise.  Also handle
7414         &ARRAY + I in addition to &ARRAY[0] + I.
7415         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
7416         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
7417         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
7418         * tree-ssa.c (useless_type_conversion_p): Make most pointer
7419         conversions useless.
7420         (warn_uninitialized_var): Handle MEM_REF.
7421         (maybe_rewrite_mem_ref_base): New function.
7422         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
7423         to SSA form.
7424         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
7425         INDIRECT_REF handling.
7426         (copy_tree_body_r): Handle MEM_REF.
7427         * gimple.c (is_gimple_addressable): Adjust.
7428         (is_gimple_address): Likewise.
7429         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
7430         invariant base are invariant.
7431         (is_gimple_min_lval): Adjust.
7432         (is_gimple_mem_ref_addr): New function.
7433         (get_base_address): Handle MEM_REF.
7434         (count_ptr_derefs): Likewise.
7435         (get_base_loadstore): Likewise.
7436         * gimple.h (is_gimple_mem_ref_addr): Declare.
7437         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
7438         * tree-cfg.c (verify_address): New function, split out from ...
7439         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
7440         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
7441         INDIRECT_REFs.
7442         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
7443         INDIRECT_REF.  Allow conversions.
7444         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
7445         a register does not change its size.
7446         (verify_types_in_gimple_reference): Verify MEM_REF.
7447         (verify_gimple_assign_single): Disallow INDIRECT_REF.
7448         Handle MEM_REF.
7449         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
7450         New.
7451         (mark_address_taken): Handle MEM_REF.
7452         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
7453         (get_asm_expr_operands): Pass opf_not_non_addressable.
7454         (get_expr_operands): Handle opf_[not_]non_addressable.
7455         Handle MEM_REF.  Remove INDIRECT_REF handling.
7456         * tree-vrp.c (check_array_ref): Handle MEM_REF.
7457         (search_for_addr_array): Likewise.
7458         (check_array_bounds): Likewise.
7459         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
7460         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
7461         (ref_always_accessed_p): Likewise.
7462         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
7463         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
7464         Handle MEM_REF.
7465         * cgraphbuild.c (mark_load): Properly check for NULL result
7466         from get_base_address.
7467         (mark_store): Likewise.
7468         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
7469         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
7470         handling for MEM_REF.
7471         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
7472         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
7473         * builtins.c (stabilize_va_list_loc): Use the function ABI
7474         valist type if we couldn't canonicalize the argument type.
7475         Always dereference with the canonical va-list type.
7476         (maybe_emit_free_warning): Handle MEM_REF.
7477         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
7478         memmove to memcpy.
7479         * builtins.c (fold_builtin_memory_op): Use ref-all types
7480         for all memcpy foldings.
7481         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
7482         (build_outer_var_ref): Likewise.
7483         (scan_omp_1_op): Likewise.
7484         (lower_rec_input_clauses): Likewise.
7485         (lower_lastprivate_clauses): Likewise.
7486         (lower_reduction_clauses): Likewise.
7487         (lower_copyprivate_clauses): Likewise.
7488         (expand_omp_atomic_pipeline): Likewise.
7489         (expand_omp_atomic_mutex): Likewise.
7490         (create_task_copyfn): Likewise.
7491         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
7492         Remove old union trick.  Initialize constant offsets.
7493         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
7494         INDIRECT_REF.  Init base_alias_set properly.
7495         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
7496         (vn_reference_fold_indirect): Adjust for MEM_REFs.
7497         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
7498         for ARRAY_REFs.
7499         (may_insert): Remove.
7500         (visit_reference_op_load): Do not test may_insert.
7501         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
7502         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7503         a field to store the constant offset this op applies.
7504         (run_scc_vn): Adjust prototype.
7505         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
7506         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
7507         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
7508         bother about volatile qualifiers on pointers.
7509         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
7510         * tree-ssa-loop-ivopts.c
7511         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
7512         (strip_offset_1): Likewise.
7513         (find_interesting_uses_address): Replace INDIRECT_REF handling with
7514         MEM_REF handling.
7515         (get_computation_cost_at): Likewise.
7516         * ipa-pure-const.c (check_op): Handle MEM_REF.
7517         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
7518         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
7519         and constants.
7520         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
7521         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
7522         (eliminate_local_variables_1): Likewise.
7523         (create_call_for_reduction_1): Likewise.
7524         (create_loads_for_reductions): Likewise.
7525         (create_loads_and_stores_for_name): Likewise.
7526         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
7527         (ssa_accessed_in_tree): Handle MEM_REF.
7528         (ssa_accessed_in_assign_rhs): Likewise.
7529         (update_type_size): Likewise.
7530         (analyze_accesses_for_call_stmt): Likewise.
7531         (analyze_accesses_for_assign_stmt): Likewise.
7532         (transform_access_sites): Likewise.
7533         (transform_allocation_sites): Likewise.
7534         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
7535         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7536         not handle INDIRECT_REF.
7537         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
7538         (cond_store_replacement): Likewise.
7539         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7540         MEM_REF, no not handle INDIRECT_REFs.
7541         (insert_into_preds_of_block): Properly initialize avail.
7542         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
7543         for ARRAY_REFs.  Properly handle reference lookups that
7544         require a bit re-interpretation.
7545         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
7546         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
7547         (build_ref_for_offset_1): Remove.
7548         (build_ref_for_offset): Build MEM_REFs.
7549         (gate_intra_sra): Disable for now.
7550         (sra_ipa_modify_expr): Handle MEM_REF.
7551         (ipa_early_sra_gate): Disable for now.
7552         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
7553         MEM_REF handling.
7554         (disqualify_base_of_expr): Likewise.
7555         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
7556         MEM_REF handling.
7557         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
7558         Use mem_ref_offset.  Remove bogus folding.
7559         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
7560         (make_fancy_name_1): Add support for MEM_REF.
7561         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
7562         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
7563         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
7564         (compute_complex_ancestor_jump_func): Likewise.
7565         (ipa_analyze_virtual_call_uses): Likewise.
7566         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
7567         INDIRECT_REF folding with more generalized MEM_REF folding.
7568         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
7569         (forward_propagate_addr_into_variable_array_index): Also handle
7570         &ARRAY + I in addition to &ARRAY[0] + I.
7571         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
7572         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
7573         creates assignments with overlap.
7574         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
7575         (get_frame_field): Likewise.
7576         (get_nonlocal_debug_decl): Likewise.
7577         (convert_nonlocal_reference_op): Likewise.
7578         (struct nesting_info): Add mem_refs pointer-set.
7579         (create_nesting_tree): Allocate it.
7580         (convert_local_reference_op): Insert to be folded mem-refs.
7581         (fold_mem_refs): New function.
7582         (finalize_nesting_tree_1): Perform defered folding of mem-refs
7583         (free_nesting_tree): Free the pointer-set.
7584         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
7585         (vectorizable_load): Likewise.
7586         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
7587         (propagate_with_phi): Likewise.
7588         * tree-object-size.c (addr_object_size): Handle MEM_REFs
7589         instead of INDIRECT_REFs.
7590         (compute_object_offset): Handle MEM_REF.
7591         (plus_stmt_object_size): Handle MEM_REF.
7592         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
7593         for &MEM_REF.
7594         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
7595         (symbol_marked_for_renaming): Likewise.
7596         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
7597         (fold-const.o): Add $(TREE_FLOW_H).
7598         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
7599         (find_func_clobbers): Likewise.
7600         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
7601         (decompose_access): Likewise.
7602         (replace_field_acc): Likewise.
7603         (replace_field_access_stmt): Likewise.
7604         (insert_new_var_in_stmt): Likewise.
7605         (get_stmt_accesses): Likewise.
7606         (reorg_structs_drive): Disable.
7607         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
7608         (ix86_canonical_va_list_type): Likewise.
7609
7610 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7611
7612         PR other/44566
7613         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
7614         * target.def (struct gcc_target): Replace enum reg_class with
7615         reg_class_t in hook argument / return types.
7616         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
7617         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
7618         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7619         * targhooks.h (default_branch_target_register_class): Likewise.
7620         (default_ira_cover_classes, default_secondary_reload): Likewise.
7621         (default_memory_move_cost, default_register_move_cost): Likewise.
7622         * targhooks.c (default_branch_target_register_class): Likewise.
7623         (default_ira_cover_classes, default_secondary_reload): Likewise.
7624         (default_memory_move_cost, default_register_move_cost): Likewise.
7625         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
7626         * bt-load.c (branch_target_load_optimize): Likewise.
7627         * ira.c (setup_cover_and_important_classes): Likewise.
7628         * ira-costs.c (copy_cost): Likewise.
7629         * reload1.c (emit_input_reload_insns): Likewise.
7630         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7631         * config/frv/frv.c (frv_secondary_reload): Likewise.
7632         * config/s390/s390.c (s390_secondary_reload): Likewise.
7633         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
7634         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
7635         (ix86_register_move_cost): Likewise.
7636         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
7637         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
7638         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
7639         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
7640         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
7641         (rs6000_ira_cover_classes): Likewise.
7642         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
7643         * config/picochip/picochip-protos.h (picochip_secondary_reload):
7644         Likewise.
7645         * config/pa/pa.c (pa_secondary_reload): Likewise.
7646         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7647         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7648         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7649         * doc/tm.texi: Regenerate.
7650
7651 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
7652
7653         PR bootstrrap/44726
7654         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7655         use.
7656         (build_alias_set_optimal_p): Likewise.
7657         (build_base_obj_set_for_drs): Likewise.
7658
7659 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7660
7661         * target.def: Remove comment about licensing problems of function
7662         declarations.
7663
7664         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
7665         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7666         * doc/tm.texi: Regenerate.
7667
7668         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
7669         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7670
7671         * target.def (enum_va_list_p): Use DEFHOOK.
7672         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7673         Rename ptype to ptree.
7674         * doc/tm.texi: Regenerate.
7675
7676         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
7677         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7678         * doc/tm.texi: Regenerate.
7679
7680         * target.def (memory_move_cost): Use DEFHOOK.
7681         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7682         Rename regclass AKA class to rclass.
7683         * doc/tm.texi: Regenerate.
7684
7685         * target.def (pragma_parse): Use DEFHOOK.
7686         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7687         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7688         * doc/tm.texi: Regenerate.
7689
7690         * target.def (pass_by_reference): Use DEFHOOK.
7691         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7692         * doc/tm.texi: Regenerate.
7693
7694         * target.def (resolve_overloaded_builtin): Rename params to arglist.
7695         Use DEFHOOK.
7696         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7697         * doc/tm.texi: Regenerate.
7698
7699         * target.def (return_pops_args): Use DEFHOOK.
7700         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7701         Rename stack-size to size.
7702         * doc/tm.texi: Regenerate.
7703
7704         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
7705         last-sched_cycle to last_clock, cur_cycle to clock.
7706         * doc/tm.texi.in: Use @hook.
7707         * doc/tm.texi: Regenerate.
7708
7709         * target.def (print_operand, print_operand_address): Update comment.
7710         (print_operand_punct_valid_p): Likewise.
7711
7712 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7713
7714         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7715         to rtl.h.
7716         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7717         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7718         * rtl-error.h: New.
7719         * regrename.c: Do not include toplev.h. Include rtl-error.h.
7720         * rtl-error.c: Likewise.
7721         * reload.c: Likewise.
7722         * recog.c:  Likewise.
7723         * sel-sched.c: Likewise.
7724         * function.c: Likewise.
7725         * reg-stack.c: Likewise.
7726         * cfgrtl.c: Likewise.
7727         * reload1.c: Likewise.
7728         * final.c: Include rtl-error.
7729         * Makefile.in: Adjust dependencies.
7730
7731 2010-06-30  Jan Hubicka  <jh@suse.cz>
7732
7733         PR middle-end/PR44706
7734         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7735         to return the value.
7736
7737 2010-06-30  Michael Matz  <matz@suse.de>
7738
7739         PR bootstrap/44699
7740         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7741         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7742         a gimple reg, attach the original VDEF to the last store in the
7743         sequence.
7744
7745 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
7746
7747         PR other/44034
7748         * config/darwin.c (darwin_override_options): Use renamed
7749         targetm.asm_out.emit_unwind_label.
7750
7751 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7752
7753         PR tree-optimization/39799
7754         * tree-inline.c (remap_ssa_name): Initialize variable only if
7755         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7756
7757 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
7758
7759         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7760
7761 2010-06-30  Richard Guenther  <rguenther@suse.de>
7762
7763         PR target/44722
7764         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7765         against oscillation with reverse peephole2.
7766
7767 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7768
7769         PR target/44721
7770         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7771         Fix last commit.
7772
7773 2010-06-30  Nick Clifton  <nickc@redhat.com>
7774
7775         * config/rx/rx-modes.def: New file.
7776         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7777         (CC_REGNUM): Define.
7778         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7779         register.
7780         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7781         (SELECT_CC_MODE): Define.
7782         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
7783         (reg:CC CC_REG) instead of (cc0).
7784         (attr "cc"): Delete.
7785         (cbranchsi4): Do not split compare and branch here. Instead move
7786         it to...
7787         (cbranchsi4_<code>): ... here.  New patterns.
7788         (cmpsi): Call rx-compare_redundant to find out if it is necessary
7789         to emit the compare instruction.
7790         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7791         cc_status flags.
7792         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7793         FIRST_PSEUDO_REGNUM.
7794         (rx_expand_prologue, rx_expand_epilogue): Likewise.
7795         (rx_notice_update_cc): Delete.
7796         (rx_cc_modes_compatible): New function.
7797         (flags_needed_for_conditional): New function.
7798         (flags_from_mode): New function.
7799         (rx_compare_redundant): New function - scans backwards through
7800         insn list to find out if condition flags are already set correctly.
7801         (TARGET_CC_MODES_COMPATIBLE): Define.
7802         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7803
7804         * config/rx/rx.h (BRANCH_COST): Define.
7805         (REGISTER_MOVE_COST): Define.
7806         * config/rx/predicates (rx_source_operand): Allow all constant types.
7807         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7808         (tstsi4): New pattern.
7809         * config/rx/rx.c (rx_memory_move_cost): Define.
7810         (TARGET_MEMORY_MOVE_COST): Define.
7811
7812 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7813
7814         * tree.h (block_may_fallthru): Declare here.
7815         * tree-flow.h (block_may_fallthru): Do not declare here.
7816         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7817         bitmap.h
7818         * Makefile.in (c-typeck.o): Update dependencies.
7819
7820 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7821
7822         PR debug/44694
7823         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7824         * cselib.c (cfa_base_preserved_regno): New static variable.
7825         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7826         of REGNO (cfa_base_preserved_val->locs->loc).
7827         (cselib_preserve_cfa_base_value): Add regno argument, set
7828         cfa_base_preserved_regno to it.
7829         (cselib_invalidate_regno): Allow removal of registers other than
7830         cfa_base_preserved_regno from cfa_base_preserved_val.
7831         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7832         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7833         of MEM addresses, if not on LHS.
7834         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7835         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7836
7837 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7838
7839         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7840         static variables.
7841         (peep2_buf_position): New static function.
7842         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7843         peephole2_optimize): Use it.
7844         (peep2_attempt, peep2_update_life): New static functions, broken out
7845         of peephole2_optimize.
7846         (peep2_fill_buffer): New static function.
7847         (peephole2_optimize): Change the main loop to try to fill the buffer
7848         with the maximum number of insns before matching them against
7849         peepholes.  Use a forward scan.  Remove special case for targets with
7850         conditional execution.
7851         * genrecog.c (change_state): Delete dead code.
7852         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7853         Rewrite so as not to expect the second insn to have had a peephole
7854         applied yet.
7855
7856 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7857
7858         * genhooks.c (emit_findices): Cast field precision to int.
7859         (emit_documentation): Likewise.
7860
7861 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7862
7863         PR tree-optimization/43801
7864         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7865         if old_decl was DECL_ONE_ONLY.
7866
7867         PR debug/44668
7868         * dwarf2out.c (add_accessibility_attribute): New function.
7869         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7870         instead of adding DW_AT_accessibility manually.
7871         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7872         gen_typedef_die): Use it.
7873
7874 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7875
7876         * vmsdbgout.c (full_name): Just output the file name if not native.
7877
7878 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7879
7880         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7881         (funcnam_table): New static table.
7882         (funcnum_table): New static table.
7883         (write_rtnbeg): Write value saved in funcnum_table.
7884         (write_rtnend): Write value saved in funcnum_table.
7885         (vmsdbgout_begin_function): Save current function info in
7886         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7887         (vmsdbgout_finish): Iterate over funcnum_table.
7888
7889 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7890
7891         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7892         (vmsdbgout_type_decl): Declare
7893         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7894         (FUNC_EPILOGUE_LABEL): New macro
7895         (vmsdbgout_begin_epilogue): New function.
7896         (vmsdbgout_type_decl): New function.
7897
7898 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7899
7900         * vmsdbg.h: Update copyright.
7901
7902 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7903
7904         * vmsdbg.h (DST_K_TBG): New DST constant.
7905         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7906         (write_modbeg): Cast module_language to avoid warning.
7907         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7908
7909 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7910
7911         PR other/44034
7912         * target.def, doc/tm.texi.in, genhooks.c: New files.
7913         * target.h: Instead of defining individual hook members,
7914         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7915         include target.def.
7916         * target-def.h: Instead of defining individual hook initializers,
7917         include target-hooks-def.h.
7918         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7919         targetm.live_on_entry -> targetm.extra_live_on_entry
7920         targetm.sched.md_finish ->targetm.sched.finish
7921         targetm.sched.md_init -> targetm.sched.init
7922         targetm.sched.md_init_global -> targetm.sched.init_global
7923         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7924         targetm.asm_out.except_table_label ->
7925           targetm.asm_out.emit_except_table_label
7926         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7927         targetm.target_help -> targetm.help
7928         targetm.vectorize.builtin_support_vector_misalignment ->
7929           targetm.vectorize.support_vector_misalignment
7930         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7931         targetm.file_start_file_directive ->
7932          targetm.asm_file_start_file_directive
7933         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7934         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7935         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7936         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7937           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7938         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7939           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7940         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7941         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7942         * Makefile.in (TARGET_H): Depend on target.def.
7943         (TARGET_DEF_H): Depend on target-hooks-def.h.
7944         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7945         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7946         * doc/tm.texi: Regenerate.
7947
7948         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7949
7950         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7951         (targetm.sched.init): Likewise.
7952
7953 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7954
7955         PR bootstrap/44713
7956         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7957         (function_arg_advance_32): Const-ify TYPE parameter.
7958         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7959         (ix86_function_arg_advance): Change type of NAMED to bool.
7960         (function_arg_32): Const-ify CUM and TYPE parameters.
7961         (function_arg_64): Likewise.  Change type of NAMED to bool.
7962         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7963         to bool.
7964         (ix86_function_arg): Change type of NAMED to bool.
7965         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7966         last argument as a bool.
7967
7968 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7969
7970         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7971         (OVERRIDE_OPTIONS): Add note of obsolescence.
7972         Replace references with references to TARGET_OPTION_OVERRIDE.
7973         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7974          the macro).
7975         * targhooks.c (default_target_option_override): New function.
7976         * targhooks.h (default_target_option_override): Declare.
7977         * target.h (struct gcc_target): Add override member to
7978         target_option member.
7979         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7980         targetm.target_option.override call.
7981         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7982         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7983
7984 2010-06-29  Jan Hubicka  <jh@suse.cz>
7985
7986         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7987
7988 2010-06-29  Jan Hubicka  <jh@suse.cz>
7989
7990         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7991         unreachable.
7992         (rebuild_frequencies): New function.
7993         * predict.h (rebuild_frequencies): Declare.
7994         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7995         entry block and edge reaching new_entry.
7996         (tree_function_versioning): When doing partial cloning, rebuild
7997         frequencies when done.
7998         * passes.c (execute_function_todo): Use rebild_frequencies.
7999
8000 2010-06-29  Richard Guenther  <rguenther@suse.de>
8001
8002         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
8003         * tree-flow.h (enum noalias_state): Remove.
8004         (struct var_ann_d): Remove noalias_state member.
8005
8006 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
8007
8008         PR target/43902
8009         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
8010         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
8011         (maddhidi4): Likewise.
8012
8013         Revert parts of the change for PR25130.
8014         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8015         MEM_ALIAS_SET.
8016
8017 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8018
8019         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
8020         targetm.calls.function_incoming_arg, and
8021         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
8022         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
8023         * target.h (struct gcc_target): Add function_arg_advance,
8024         function_arg, and function_incoming_arg fields.
8025         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
8026         (TARGET_FUNCTION_INCOMING_ARG): Define.
8027         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
8028         and TARGET_FUNCTION_INCOMING_ARG.
8029         * targhooks.h (default_function_arg_advance): Declare.
8030         (default_function_arg, default_function_incoming_arg): Declare.
8031         * targhooks.c (default_function_arg_advance): New function.
8032         (default_function_arg, default_function_incoming_arg): New function.
8033         * config/i386/i386.c (function_arg_advance): Rename to...
8034         (ix86_function_arg_advance): ...this.  Make static.
8035         (function_arg): Rename to...
8036         (ix86_function_arg): ...this.  Make static.
8037         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8038         (TARGET_FUNCTION_ARG): Define.
8039         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
8040         (FUNCTION_ARG): Delete.
8041         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
8042         (function_arg): Delete prototype.
8043
8044 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8045
8046         * reginfo.c (init_reg_sets_1): Adjust comments.
8047         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
8048         * calls.c (prepare_call_address): Likewise.
8049         (emit_call_1): Use targetm.calls.return_pops_args.
8050         (expand_call): Likewise.
8051         * function.c (assign_parms): Likewise.
8052         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
8053         * target.h (struct gcc_target) [struct calls]: Add
8054         return_pops_args field.
8055         * targhooks.h (default_return_pops_args): Declare.
8056         * targhooks.c (default_return_pops_args): Define.
8057         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
8058         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
8059         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
8060         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
8061         documentation.
8062         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
8063         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
8064         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
8065         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
8066         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
8067         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
8068         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
8069         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
8070         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
8071         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
8072         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
8073         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
8074         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
8075         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
8076         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
8077         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
8078         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
8079         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
8080         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
8081         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
8082         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
8083         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
8084         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
8085         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
8086         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
8087         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
8088         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
8089         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
8090         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
8091         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
8092         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
8093         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
8094         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
8095         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
8096         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
8097         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
8098         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
8099         * config/i386/i386.c (ix86_return_pops_args): Make static.
8100         Constify arguments.
8101         (TARGET_RETURN_POPS_ARGS): Define.
8102         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
8103         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
8104         (TARGET_RETURN_POPS_ARGS): Define.
8105         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
8106         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
8107         (TARGET_RETURN_POPS_ARGS): Define.
8108
8109 2010-06-29  Richard Guenther  <rguenther@suse.de>
8110
8111         PR middle-end/44667
8112         * tree-inline.c (initialize_inlined_parameters): Make sure
8113         to remap the inlined parameter variable substitutions types.
8114
8115 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8116
8117         PR rtl-optimization/44659
8118         * combine.c (make_compound_operation) <SUBREG>: Do not return the
8119         result of force_to_mode if it partially re-expanded the compound.
8120
8121 2010-06-28  Jan Hubicka  <jh@suse.cz>
8122
8123         PR middle-end/44671
8124         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
8125         RESULT_DECL.
8126
8127 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
8128
8129         * double-int.h (force_fit_type_double): Remove declaration.
8130         * double-int.c (force_fit_type_double): Move to tree.c.
8131         * tree.h (force_fit_type_double): Declare.
8132         * tree.h (force_fit_type_double): Moved from double-int.c. Use
8133         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
8134         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
8135         * convert.c (convert_to_pointer): Adjust call to
8136         force_fit_type_double.
8137         * tree-vrp.c (extract_range_from_assert,
8138         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
8139         * fold-const.c: Update comment.
8140         (int_const_binop, fold_convert_const_int_from_int,
8141         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
8142         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
8143         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
8144         round_up_loc): Adjust call to force_fit_type_double.
8145
8146 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8147
8148         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
8149
8150 2010-06-28  Martin Jambor  <mjambor@suse.cz>
8151
8152         * tree-sra.c (convert_callers): New parameter, change fndecls of
8153         recursive calls.
8154         (modify_function): Pass the old decl to convert_callers.
8155
8156 2010-06-28  Martin Jambor  <mjambor@suse.cz>
8157
8158         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
8159         ipa_check_create_node_params and ipa_initialize_node_params with
8160         checking asserts they are not necessary.
8161
8162 2010-06-28  Jan Hubicka  <jh@suse.cz>
8163
8164         PR tree-optimization/44687
8165         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
8166
8167 2010-06-28  Martin Jambor  <mjambor@suse.cz>
8168
8169         PR c++/44535
8170         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
8171         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
8172         instead of BINFO_BASE_BINFO.
8173
8174 2010-06-28  Michael Matz  <matz@suse.de>
8175
8176         PR middle-end/44592
8177         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
8178         proper VDEF chain for intermediate stores in the sequence.
8179
8180 2010-06-28  Jan Hubicka  <jh@suse.cz>
8181
8182         PR tree-optimization/44357
8183         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
8184         uninlinable functions.
8185
8186 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8187
8188         * config.gcc (powerpc*-*-*): Handle titan.
8189         * config/rs6000/rs6000.c (titan_cost): New costs.
8190         (rs6000_override_options): Add "titan" to processor_target_table.
8191         Add Titan to branch alignment logic.
8192         Correctly set rs6000_cost for titan.
8193         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
8194         * config/rs6000/titan.md: New file.
8195         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
8196
8197 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
8198
8199         * tree-browser.c (TB_history_stack): Convert to a VEC.
8200         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
8201         (TB_history_prev): Likewise.
8202
8203 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
8204
8205         * vec.h (vec_heap_free): Add parentheses around free.
8206
8207 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
8208
8209         * system.h: Poison GCC_EXCEPT_H for front-end files.
8210
8211         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
8212         langhook.
8213         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
8214         Define to NULL by default.
8215         * except.h: Define GCC_EXCEPT_H.
8216         (doing_eh): Remove prototype.
8217         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
8218         (lang_protect_cleanup_actions): Remove.
8219         * except.c (lang_protect_cleanup_actions): Remove.
8220         (doing_eh): Remove.
8221         (gen_eh_region): Don't check doing_eh here.
8222         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
8223         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
8224         instead of lang_protect_cleanup_actions.
8225         * omp-low.c (maybe_catch_exception): Likewise.
8226         * Makefile.in: Update dependencies.
8227
8228 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
8229
8230         * cgraph.h (struct varpool_node): new used_from_object_file flag.
8231         (struct cgraph_local_info): new used_from_object_file flag.
8232         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
8233         (cgraph_clone_node): initialize used_from_object_file.
8234         (cgraph_create_virtual_clone): initialize used_from_object_file.
8235         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
8236         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
8237         when compiling with -fwhole-program.
8238         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
8239         internal resolver.
8240         * ipa.c (function_and_variable_visibility): Set externally_visible
8241         flag of varpool_node if used_from_object_file flag is set.
8242         (cgraph_externally_visible_p): check used_from_object_file flag.
8243         * doc/invoke.texi (-fwhole-program option): Change description of
8244         externally_visible attribute accordingly.
8245         * doc/extend.texi (externally_visible): Ditto.
8246
8247 2010-06-27  Jan Hubicka  <jh@suse.cz>
8248
8249         * params.def (max-inline-insns-auto): Default to 40.
8250         * doc/invoke.texi (max-inline-insns-auto): Document the change.
8251
8252 2010-06-27  Jan Hubicka  <jh@suse.cz>
8253
8254         PR middle-end/44671
8255         PR middle-end/44686
8256         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
8257         signature change.
8258         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
8259         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
8260
8261 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
8262
8263         * target.h (struct gcc_target): Add register_move_cost field.
8264         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
8265         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
8266         * targhooks.c (default_register_move_cost): New function.
8267         * targhooks.h (default_register_move_cost): Declare function.
8268         * defaults.h (REGISTER_MOVE_COST): Delete.
8269         * ira-int.h (ira_register_move_cost): Update comment.
8270         * ira.c (ira_register_move_cost): Update comment.
8271         * reload.h (register_move_cost): Declare.
8272         * reginfo.c (register_move_cost): New function.
8273         (move_cost): Update comment.
8274         (init_move_cost, memory_move_secondary_cost): Replace
8275         REGISTER_MOVE_COST with register_move_cost.
8276         * postreload.c (reload_cse_simplify_set): (Ditto.).
8277         * reload.c (find_valid_class, find_reloads): (Ditto.).
8278         * reload1.c (choose_reload_regs): (Ditto.).
8279         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
8280         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
8281         * doc/md.texi (can_create_pseudo_p): Update documentation.
8282
8283         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8284         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8285         * config/i386/i386.h (ix86_memory_move_cost): Make static.
8286         (TARGET_MEMORY_MOVE_COST): Define.
8287
8288         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8289         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
8290         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
8291         (TARGET_MEMORY_MOVE_COST): Define.
8292
8293 2010-06-27  Richard Guenther  <rguenther@suse.de>
8294
8295         PR tree-optimization/44683
8296         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
8297         false edge from the inverted condition.
8298
8299 2010-06-27  Richard Guenther  <rguenther@suse.de>
8300
8301         PR middle-end/44684
8302         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
8303         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
8304         for register LHS.  Or non-store assignments.
8305
8306 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8307
8308         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
8309         (sparc_emit_set_const64): Likewise.  Remove disabled code.
8310         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
8311         (sparc_emit_set_const64): Likewise.
8312
8313 2010-06-26  Catherine Moore  <clm@codesourcery.com>
8314
8315         * config/mips/mips.md (alu_type): New attribute.
8316         (type): Infer type from alu_type.
8317         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
8318         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
8319         *subsi3_extended, negsi2, negdi2, *low<mode>,
8320         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
8321         xor<mode>3, *nor<mode>3,
8322         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
8323         *zero_extendhi_truncqi):  Set alu_type instead of type.
8324
8325 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
8326
8327         * config/alpha/alpha.c (alpha_need_linkage): Adjust
8328         splay_tree_new_ggc call.
8329         (alpha_use_linkage): Likewise.
8330
8331 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8332
8333         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
8334         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
8335         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
8336         (static_specs): Remove switches_need_spaces.
8337         (process_command, do_self_spec): Hardcode handling "-o" instead of
8338         checking switches_need_spaces.
8339         * system.h (SWITCHES_NEED_SPACES): Poison.
8340
8341 2010-06-26  Richard Guenther  <rguenther@suse.de>
8342
8343         PR tree-optimization/44393
8344         * tree-loop-distribution.c (generate_loops_for_partition): Fix
8345         stmt removal and VOP renaming.
8346         (generate_memset_zero): Remove redundant stmt updating.
8347         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
8348         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
8349
8350 2010-06-26  Jan Hubicka  <jh@suse.cz>
8351
8352         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
8353         edges comming from header are equivalent.
8354         (visit_bb): Handle PHIs correctly.
8355         * tree-inline.c (copy_phis_for_bb): Be able to copy
8356         PHI from entry edge.
8357         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
8358
8359 2010-06-26  Richard Guenther  <rguenther@suse.de>
8360
8361         PR middle-end/44674
8362         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
8363         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
8364
8365 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8366
8367         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
8368         add_infile, alloc_switch): New.
8369         (process_command): Remove variable lang_n_infiles.  Process
8370         options in a single pass.  Use new functions for allocating
8371         infiles and switches arrays.  Properly skip operands of
8372         -Xpreprocessor and -Xassembler.
8373
8374 2010-06-26  Jan Hubicka  <jh@suse.cz>
8375
8376         PR middle-end/44671
8377         * cgraphunit.c (cgraph_function_versioning): Remove wrong
8378         cgraph_make_decl_local call; fix typo copying RTL data.
8379
8380 2010-06-25  DJ Delorie  <dj@redhat.com>
8381
8382         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
8383         (m32c_output_aligned_common): Likewise.
8384         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8385         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8386         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
8387         (m32c_register_pragmas): Register it.
8388         * config/m32c/m32c.c (m32c_get_pragma_address): New.
8389         (m32c_insert_attributes): Set #pragma address decls volatile.
8390         (pragma_entry_eq): New.
8391         (pragma_entry_hash): New.
8392         (m32c_note_pragma_address): New.
8393         (m32c_get_pragma_address): New.
8394         (m32c_output_aligned_common): New.
8395         * doc/extend.texi: Document the new pragma.
8396
8397         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
8398         also.
8399         * config/m32c/predicates.md (m32c_any_operand): Check the code
8400         instead of memory_operand so as to allow matching volatile MEMs.
8401         (m32c_nonimmediate_operand): Likewise.
8402         (mra_operand): Allow volatiles.
8403
8404 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
8405
8406         PR debug/44610
8407         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
8408         address if the offset is unknown.
8409
8410 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
8411
8412         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
8413         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
8414         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
8415         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
8416         to ia64_start_function. Invoke it.
8417         * config/ia64/ia64.c (ia64_start_function): Call new function
8418         dwarf2out_vms_debug_main_pointer.
8419
8420 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8421
8422         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
8423         statements computing the true predicate.
8424
8425 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8426
8427         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
8428         to boolean_true_node.
8429         (reset_bb_predicate): New.
8430         (predicate_bbs): Call reset_bb_predicate.
8431
8432 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8433
8434         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
8435         (tree_if_conversion): Returns true when something has been changed.
8436         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
8437         changed something.
8438
8439 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8440
8441         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
8442         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
8443         * tree-if-conv.c: Include dbgcnt.h.
8444         (tree_if_conversion): Use if_conversion_tree to count the number of
8445         if-convertible loops.
8446
8447 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
8448
8449         * common.opt (fprefetch-loop-arrays): Re-define
8450         -fprefetch-loop-arrays as a tri-state option with the initial
8451         value of -1.
8452         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
8453         pass only when flag_prefetch_loop_arrays > 0.
8454         * toplev.c (process_options): Note that, with tri-states,
8455         flag_prefetch_loop_arrays>0 means prefetching is enabled.
8456         * config/i386/i386.c (override_options): Enable prefetching at -O3
8457         for a set of CPUs that sw prefetching is helpful.
8458         (software_prefetching_beneficial_p): New.  Return TRUE if software
8459         prefetching is beneficial for the given CPU.
8460
8461 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8462
8463         PR rtl-optimization/44326
8464         * implicit-zee.c (find_removable_zero_extends): Replace
8465         INSN_P with NONDEBUG_INSN_P.
8466
8467 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8468
8469         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
8470         (struct ipa_node_params): Removed the modification_analysis_done flag.
8471         (ipa_is_param_modified): Removed.
8472         (ipa_analyze_node): Declare.
8473         (ipa_compute_jump_functions): Remove declaration.
8474         (ipa_count_arguments): Likewise.
8475         (ipa_detect_param_modifications): Likewise.
8476         (ipa_analyze_params_uses): Likewise.
8477         * ipa-prop.c (struct param_analysis_info): New type.
8478         (visit_store_addr_for_mod_analysis): Removed.
8479         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
8480         moved down in the file.
8481         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
8482         (ipa_count_arguments): Made static.
8483         (mark_modified): New function.
8484         (is_parm_modified_before_call): New function.
8485         (compute_pass_through_member_ptrs): New parameter parms_info, call
8486         is_parm_modified_before_call instead of ipa_is_param_modified.
8487         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
8488         it to compute_pass_through_member_ptrs.
8489         (ipa_compute_jump_functions): New parameter parms_info, pass it to
8490         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
8491         on the callee if it is analyzed.  Made static.
8492         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
8493         is_parm_modified_before_call instead of ipa_is_param_modified.
8494         (ipa_analyze_call_uses): New parameter parms_info, pass it to
8495         ipa_analyze_indirect_call_uses.
8496         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
8497         ipa_analyze_call_uses.
8498         (ipa_analyze_params_uses): New parameter parms_info, pass it to
8499         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
8500         (ipa_analyze_node): New function.
8501         (ipa_print_node_params): Do not dump the modified flag.
8502         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
8503         it.  Do not stream the modified parameter flag.
8504         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
8505         it.  Do not stream the modified parameter flag.
8506         * ipa-cp.c (ipcp_analyze_node): Removed.
8507         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
8508         with only a call to ipa_analyze_node.
8509         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
8510         node with only a call to ipa_analyze_node.
8511
8512 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8513
8514         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
8515
8516 2010-06-25  Jan Hubicka  <jh@suse.cz>
8517
8518         * tree-pass.h (pass_split_functions): Declare.
8519         * opts.c (decode_options): Enable function splitting at -O2
8520         * timevar.def (TV_IPA_FNSPLIT): New macro.
8521         * ipa-split.c: New file.
8522         * common.opt (-fpartial-inlining): New flag.
8523         * Makefile.in (ipa-split.o): New object file.
8524         * passes.c (init_optimization_passes): Add ipa-split.
8525         * params.def (partial-inlining-entry-probability): New parameters.
8526         * doc/invoke.texi (-fpartial-inlining): New.
8527
8528 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8529
8530         PR 44665
8531         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
8532         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
8533         (gimplify_expr): Likewise.
8534
8535 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8536
8537         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
8538         statements instead of bailing out on them.
8539         (ipa_analyze_indirect_call_uses): Do not require that loads from the
8540         parameter are in the same BB as the condition.  Update comments.
8541
8542 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
8543
8544         PR middle-end/43866
8545         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
8546         true or always false, return NULL_TREE.
8547         (tree_unswitch_single_loop): Optimize conditions even when reaching
8548         max-unswitch-level parameter.  If num > 0, optimize first all conditions
8549         using entry checks, then do still reachable block discovery and consider
8550         only conditions in still reachable basic blocks in the loop.
8551
8552         PR tree-optimization/44539
8553         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
8554         the call doesn't have LHS, but has VDEF.
8555
8556 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8557
8558         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
8559         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
8560         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
8561         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
8562         * system.h (MODIFY_TARGET_NAME): Poison.
8563
8564 2010-06-25  Alan Modra  <amodra@gmail.com>
8565
8566         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
8567         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
8568         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8569         CMODEL_LARGE as default.
8570         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8571         (offsettable_ok_by_alignment): Delete.
8572         (rs6000_emit_move): Remove mcmodel=medium optimization.
8573
8574 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8575
8576         With large parts from Jim Wilson:
8577         PR target/43902
8578         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
8579         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8580         * optabs.c (optab_for_tree_code): Likewise.
8581         (expand_widen_pattern_expr): Likewise.
8582         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
8583         out of execute_optimize_widening_mul.
8584         (convert_plusminus_to_widen): New function.
8585         (execute_optimize_widening_mul): Use the two new functions.
8586         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
8587         Remove code to generate widening multiply-accumulate.  Add support
8588         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8589         * gimple-pretty-print.c (dump_ternary_rhs): New function.
8590         (dump_gimple_assign): Call it when appropriate.
8591         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
8592         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8593         (expand_gimple_stmt_1): Likewise.
8594         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
8595         WIDEN_MULT_MINUS_EXPR.
8596         * tree-ssa-operands.c (get_expr_operands): Likewise.
8597         * tree-inline.c (estimate_operator_cost): Likewise.
8598         * gimple.c (extract_ops_from_tree_1): Renamed from
8599         extract_ops_from_tree.  Add new arg for a third operand; fill it.
8600         (gimple_build_assign_stat): Support operations with three operands.
8601         (gimple_build_assign_with_ops_stat): Likewise.
8602         (gimple_assign_set_rhs_from_tree): Likewise.
8603         (gimple_assign_set_rhs_with_ops_1): Renamed from
8604         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
8605         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
8606         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
8607         WIDEN_MULT_MINUS_EXPR.
8608         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
8609         (extract_ops_from_tree_1): Adjust declaration.
8610         (gimple_assign_set_rhs_with_ops_1): Likewise.
8611         (gimple_build_assign_with_ops): Pass NULL for last operand.
8612         (gimple_build_assign_with_ops3): New macro.
8613         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
8614         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
8615         functions.
8616         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
8617         (verify_gimple_assign): Call it.
8618         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
8619         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
8620         functions for dealing with three-operand statements.
8621         * tree.c (commutative_ternary_tree_code): New function.
8622         * tree.h (commutative_ternary_tree_code): Declare it.
8623         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
8624         ternary statements.
8625         (gimple_assign_nonzero_warnv_p): Likewise.
8626         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
8627         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
8628         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
8629         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
8630         (struct hashtable_expr): New member ternary in the union.
8631         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
8632         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
8633         (iterative_hash_hashable_expr): Likewise.
8634         (print_expr_hash_elt): Handle EXPR_TERNARY.
8635         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
8636         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
8637         statements.  Handle GIMPLE_TERNARY_RHS.
8638
8639 2010-06-25  Jan Hubicka  <jh@suse.cz>
8640
8641         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
8642
8643 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
8644
8645         PR c/44517
8646         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8647         parameters are not good.
8648         (c_parser_parameter_declaration): Error unknown type name if the type
8649         name can't start declaration specifiers.
8650
8651 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * gcc.c (translate_options): Don't mention +e in comment.
8654         (process_command): Don't handle +e specially.
8655
8656 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8657
8658         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8659
8660         * ira-build.c (merge_hard_reg_conflicts): New function.
8661         (create_cap_allocno, copy_info_to_removed_store_destinations,
8662         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8663         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8664         (remove_unnecessary_allocnos, remove_low_level_allocnos)
8665         copy_nifo_to_removed_store_destination): Use them.
8666         * ira-lives.c (make_hard_regno_born): New function, split out of
8667         make_regno_born.
8668         (make_allocno_born): Likewise.
8669         (make_hard_regno_dead): New function, split out of make_regno_dead.
8670         (make_allocno_dead): Likewise.
8671         (inc_register_pressure): New function, split out of set_allocno_live.
8672         (dec_register_pressure): New function, split out of clear_allocno_live.
8673         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8674         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
8675         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8676         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
8677         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8678         mark_pseudo_regno_live.
8679         (process_bb_node_lives): Use mark_pseudo_regno_live,
8680         make_hard_regno_born and make_allocno_dead.
8681         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8682         set_allocno_live, clear_allocno_live): Delete functions.
8683
8684         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8685         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8686         functions.
8687         (ira_flattening): Use ira_parent_allocno.
8688         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8689         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8690
8691         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8692         statement.
8693
8694         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8695         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8696         minmax_set_iter_cond, minmax_set_iter_next,
8697         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8698         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8699         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8700         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
8701         uses changed.
8702
8703         * ira-int.h (struct live_range, live_range_t): Renamed from struct
8704         ira_allocno_live_range and allocno_live_range_t; all uses changed.
8705         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8706         All uses changed.
8707
8708 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
8709
8710         * thumb2.md (thumb2_tlobits_cbranch): Delete.
8711         (peephole2 to convert zero_extract/compare of single bit to
8712          lshift/compare): New.
8713
8714 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
8715
8716         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8717         recursive call and call to 'int_const_binop'.
8718         (build_range_check, fold_cond_expr_with_comparison, unextend,
8719         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8720         multiple_of_p): Adjust call to const_binop.
8721
8722 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
8723
8724         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8725         determine size of XFmode operand.
8726         (XFmode extended DFmode push splitter): Ditto.
8727         (XFmode extended SFmode push splitter): Ditto.
8728
8729 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8730
8731         PR target/44588
8732         * config/i386/i386.md (extract_code): New.
8733         (<u>divmodqi4): Likewise.
8734         (divmodhiqi3): Likewise.
8735         (udivmodhiqi3): Likewise.
8736         (<u>divqi3): Remvoved.
8737
8738 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
8739
8740         PR middle-end/44492
8741         * recog.h (struct recog_data): Add is_asm field.
8742         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8743         present in constraints of inline-asm operand and memory operand
8744         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8745         (extract_insn): Initialize recog_data.is_asm.
8746         * doc/md.texi (Constraints): Document operand side-effect rules.
8747
8748 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8749
8750         * c-parser.c (c_parser_conditional_expression): Call
8751         warn_for_omitted_condop.
8752         * doc/invoke.texi: Document omitted condop warning.
8753
8754 2010-06-24  Nick Clifton<nickc@redhat.com>
8755
8756         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8757         insn in the sequence is a jump insn before setting its label.
8758
8759 2010-06-24  Alan Modra  <amodra@gmail.com>
8760
8761         * collect2.c (main): Match exactly --version and --help.
8762
8763 2010-06-24  DJ Delorie  <dj@redhat.com>
8764
8765         * config/m32c/m32c-pragma.c: Don't include rtl.h.
8766
8767 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
8768
8769         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8770         using X87MODEF mode iterator.
8771         (pushsf splitter): Macroize splitter using P mode iterator.
8772         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8773         mode iterator.
8774
8775         (*movxf_internal): Rename from *movxf_integer.
8776         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8777         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8778         (*movdf_internal): Rename from *movdf_integer.
8779         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8780         (*movsf_internal): Rename from *movdf_1.
8781
8782 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
8783
8784         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8785         (const_gimple_seq_node): Removed typedefs.
8786
8787         * gimple.h (gimple_seq_node_d, gimple_seq_node)
8788         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8789
8790 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8791
8792         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8793         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8794         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8795         and CODE_FOR_vec_extract_lo_v4df.
8796
8797         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8798         Changed to define_insn_and_split.
8799         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8800         (vec_extract_lo_v16hi): Likewise.
8801         (vec_extract_lo_v32qi): Likewise.
8802         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8803         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8804
8805 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
8806
8807         PR target/44640
8808         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8809         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8810         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8811         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8812         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8813
8814         PR target/44640
8815         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8816
8817         PR other/44644
8818         * df-core.c (struct df): Rename to df_d.
8819         * df.h (struct df): Likewise.
8820         * dse.h (struct df): Remove forward declaration.
8821         * recog.h (struct insn_data): Rename to:
8822         (struct_insn_data_d).  Adjusted all users.
8823
8824 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8825
8826         PR ada/22220
8827         * doc/install.texi: Update requirements to build GNAT.
8828
8829 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8830
8831         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8832         enum type.
8833         (m68k_sched_attr_opx_type): Remove unreachable return.
8834         (m68k_sched_attr_opy_type): Likewise.
8835         (m68k_sched_attr_size): Likewise.
8836         (sched_get_opxy_mem_type): Likewise.
8837         (m68k_sched_attr_op_mem): Likewise.
8838
8839 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8840
8841         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8842         new statement and adjust VDEF only if necessary.  Remove superfluous
8843         call to maybe_clean_or_replace_eh_stmt.
8844         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8845         copy the flags.
8846         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8847         * tree-inline.c (copy_bb): ...and not there.
8848
8849 2010-06-22  Cary Coutant  <ccoutant@google.com>
8850
8851         * dwarf2out.c (is_nested_in_subprogram): New function.
8852         (should_move_die_to_comdat): Use it.
8853         (copy_ancestor_tree): Don't mark DIEs here.
8854         (copy_decls_walk): Start walk from root of newly-added tree;
8855         mark DIEs here instead.
8856
8857 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8858
8859         * config/i386/i386.md (unit): Also check sseishft1.
8860
8861 2010-06-22  Jan Hubicka  <jh@suse.cz>
8862
8863         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8864         enabled.
8865
8866 2010-06-22  Jan Hubicka  <jh@suse.cz>
8867
8868         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8869         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8870         Return true if something changed.
8871         * df.h (df_confluence_function_n): Return bool.
8872         * df-core.c (df_worklist_propagate_forward,
8873         df_worklist_propagate_backward): Track changes and ages.
8874         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8875         track ages.
8876         * dse.c (dse_confluence_n): Return always true.
8877
8878 2010-06-22  Jan Hubicka  <jh@suse.cz>
8879
8880         * bitmap.c (bitmap_clear_bit): Micro optimize.
8881
8882 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8883
8884         * config/i386/i386.md (SWI1248x): New mode iterator.
8885         (SWI48x): Ditto.
8886         (SWI12): Ditto.
8887         (SWI24): Ditto.
8888
8889         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8890         SWI1248x mode iterator.
8891         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8892         using SWI124 mode iterator.
8893         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8894         mode iterator.
8895         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8896         *pushdi2_prologue_rex64 using P mode iterator.
8897         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8898         using SWI48 mode iterator.
8899         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8900         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8901         using SWI1248x mode iterator.
8902         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8903         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8904         SWI48 mode iterator.
8905         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8906         iterator.
8907         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8908         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8909         SWI12 mode iterator.
8910         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8911         SWI12 mode iterator.
8912         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8913         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8914         SWI24 mode iterator.
8915         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8916         SWI48 mode iterator.
8917         (mov<mode>_insn_1): New expander.
8918         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8919         using SWI48x mode iterator.
8920
8921         (*movoi_internal_avx): Rename from *movoi_internal.
8922         (*movti_internal_rex64): Rename from *movti_rex64.
8923         (*movti_internal_sse): Rename from *movti_sse.
8924         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8925         (*movdi_internal): Rename from *movdi_2.
8926         (*movsi_internal): Rename from *movsi_1.
8927         (*movhi_internal): Rename from *movhi_1.
8928         (*movqi_internal): Rename from *movqi_1.
8929
8930         (insv): Update the call to gen_movsi_insv_1 for rename.
8931         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8932
8933 2010-06-22  Jan Hubicka  <jh@suse.cz>
8934
8935         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8936         to ...
8937         (execute_todo) ... this one.
8938
8939 2010-06-22  Alan Modra  <amodra@gmail.com>
8940
8941         PR target/44364
8942         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8943         * caller-save.c (insert_restore, insert_save): Use non-validate
8944         form of adjust_address.
8945
8946 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8947
8948         PR target/39690
8949         * config/pa/pa.c (override_options): Disable
8950         -freorder-blocks-and-partition.
8951
8952 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8953
8954         PR target/44615
8955         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8956
8957         * config/i386/i386.md (type): Add sseishft1
8958
8959         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8960         (ppro_insn_load): Likewise.
8961         (ppro_insn_store): Likewise.
8962         (ppro_insn_both): Likewise.
8963
8964         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8965         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8966         for type.
8967         (*vec_extractv2di_1_avx): Likewise.
8968         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8969         type.  Remove atom_unit.
8970         (*vec_extractv2di_1_sse2): Likewise.
8971
8972 2010-06-21  DJ Delorie  <dj@redhat.com>
8973
8974         * diagnostic.h (diagnostic_classification_change_t): New.
8975         (diagnostic_context): Add history and push/pop list.
8976         (diagnostic_push_diagnostics): Declare.
8977         (diagnostic_pop_diagnostics): Declare.
8978         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8979         from pragmas in a history chain instead of the global table.
8980         (diagnostic_push_diagnostics): New.
8981         (diagnostic_pop_diagnostics): New.
8982         (diagnostic_report_diagnostic): Scan history chain to find state
8983         of diagnostics as of the diagnostic location.
8984         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8985         diagnostic_classify_diagnostic.
8986         (enable_warning_as_error): Likewise.
8987         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8988         use in the history chain.
8989         * doc/extend.texi: Document pragma GCC diagnostic changes.
8990
8991 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8992
8993         * dwarf2out.c (add_linkage_name): New function.  Don't add
8994         anything to DW_TAG_member DIEs.
8995         (add_name_and_src_coords_attributes): Use it.
8996         (gen_variable_die): Call it for C++ static data members if
8997         specification is DW_TAG_member.
8998
8999         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
9000         C++ char16_t and char32_t.
9001
9002         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
9003         * genattrtab.c: Include vecprim.h.
9004         (cached_attrs, cached_attr_count, attrs_seen_once,
9005         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
9006         attrs_cached_after): New variables.
9007         (find_attrs_to_cache): New function.
9008         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
9009         (write_test_expr): Add attrs_cached argument, return it too,
9010         attempt to cache non-const attributes used more than once in
9011         a single case handling.
9012         (write_attr_get): Use find_attrs_to_cache, for caching candidates
9013         emit cached_* variables.  Adjust write_attr_set callers.
9014         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
9015         to find attributes that should be cached in this block.  Adjust
9016         write_test_expr callers.
9017         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
9018         callers.
9019         (make_automaton_attrs): Adjust write_test_expr caller.
9020
9021         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
9022         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
9023         (make_automaton_attrs): If find_tune_attr returns non-NULL,
9024         write separate internal_dfa_insn_code_* and insn_default_latency_*
9025         functions for each attribute's value and emit init_sched_attrs
9026         function and function pointers.
9027         * genattr.c (const_attrs, reservations): New variables.
9028         (gen_attr): Add const attributes to const_attrs vector.
9029         (check_tune_attr, find_tune_attr): New functions.
9030         (main): Add reservations to reservations vector.  If find_tune_attr
9031         returns true, add prototype for init_sched_attrs and make
9032         internal_dfa_insn_code and insn_default_latency function pointers,
9033         otherwise define init_sched_attrs as dummy macro.
9034         * cfgexpand.c: Include insn-attr.h.
9035         (gimple_expand_cfg): Call init_sched_attrs.
9036
9037         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
9038
9039         PR target/44575
9040         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
9041         va_arg from a set of register save slots into a temporary,
9042         if the container is bigger than type size, do the copying
9043         using smaller mode or using memcpy.
9044
9045         PR bootstrap/44426
9046         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
9047         prototype.
9048         (sel_print_to_dot): Remove macro.
9049         (sel_print): Likewise.  New prototype.
9050         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
9051         (sel_print): New function.
9052
9053 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9054
9055         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
9056         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
9057
9058 2010-06-21  Nick Clifton  <nickc@redhat.com>
9059
9060         * config/rx/rx.h (PTRDIFF_TYPE): Define.
9061         (SMALL_REGISTER_CLASS): Define (to zero).
9062         (PRINT_OPERAND): Delete.
9063         (PRINT_OPERAND_ADDRESS): Delete.
9064         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
9065         (rx_print_operand_address): Delete prototype.
9066         * config/rx/rx.c (rx_print_operand): Make static.
9067         Allow %H and %L to handle CONST_DOUBLEs.
9068         (rx_print_operand_address): Make static.
9069         (rx_gen_move_template): Rename local variable 'template' to
9070         out_template.
9071         (rx_function_arg): Do not pass unknown sized objects in registers.
9072         (TARGET_PRINT_OPERAND): Define.
9073         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9074
9075 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9076
9077         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
9078
9079 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
9080
9081         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
9082         stack-alignment for simple leaf-functions.
9083
9084 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
9085
9086         * doc/install.texi: Document bootstrap-lto.
9087
9088 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
9089
9090         PR debug/44248
9091         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
9092         (input_function): Drop them here, if VTA is disabled.
9093
9094 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
9095
9096         PR target/44546
9097         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
9098         New predicate.
9099         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
9100         ix86_swapped_fp_comparsion_operator instead of
9101         ix86_fp_comparison_operator.
9102
9103         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
9104         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
9105         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
9106         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
9107         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
9108         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
9109
9110 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
9111
9112         PR other/32998
9113         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
9114         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
9115         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
9116         (decode_cmdline_option): Update for this return value.  Set
9117         orig_option_with_args_text field.  Set arg field for unknown
9118         options.  Make static.
9119         (decode_cmdline_options_to_array): New.
9120         (prune_options): Update handling of find_opt return value.
9121         * opts.c (read_cmdline_option): Take decoded option.  Return void.
9122         (read_cmdline_options): Take decoded options.
9123         (decode_options): Add parameters for decoded options.  Use
9124         decode_cmdline_options_to_array.  Use decoded options for -O
9125         scan.  Use integral_argument for -O parameters.  Update call to
9126         read_cmdline_options.
9127         (enable_warning_as_error): Update handling of find_opt return value.
9128         * opts.h: Update comment on unknown options.
9129         (struct cl_decoded_option): Update comments on opt_index and arg.
9130         Add orig_option_with_args_text.
9131         (decode_cmdline_option): Remove.
9132         (decode_cmdline_options_to_array): Declare.
9133         (decode_options): Update prototype.
9134         * toplev.c (save_argv): Remove.
9135         (save_decoded_options, save_decoded_options_count): New.
9136         (read_integral_parameter): Remove.
9137         (print_switch_values): Use decoded options.
9138         (toplev_main): Don't set save_argv.  Update call to decode_options.
9139         * toplev.h (read_integral_parameter): Remove.
9140         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
9141
9142 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
9143
9144         PR target/44072
9145         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
9146         immediate.
9147         * constraints.md (Pw, Px): New constraints.
9148         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
9149
9150 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
9151
9152         * config/i386/sse.md (fma4modesuffixf4): Removed.
9153         (ssemodesuffixf2s): Likewise.
9154         (ssemodesuffixf4): Likewise.
9155         (ssemodesuffixf2c): Likewise.
9156         (ssescalarmodesuffix2s): Likewise.
9157         (avxmodesuffixf2c): Likewise.
9158         (ssemodesuffix): New.
9159         (ssescalarmodesuffix): Likewise.
9160         Update patterns with ssemodesuffix and ssescalarmodesuffix.
9161
9162 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
9163
9164         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
9165
9166 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9167
9168         * stor-layout.c (debug_rli): Remove unused local variables.
9169
9170 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9171
9172         PR rtl-optimization/40900
9173         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
9174         original expression for later reuse.
9175         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
9176         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
9177
9178 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
9179
9180         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
9181         double_int_fits_in_uhwi_p): Implement as static inline.
9182         (double_int_xor): New inline function.
9183         (double_int_lrotate, double_int_rrotate, double_int_max,
9184         double_int_umax, double_int_smax, double_int_min, double_int_umin,
9185         double_int_smin): Declare.
9186         (lrotate_double, rrotate_double): Remove declaration.
9187         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
9188         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
9189         (double_int_lrotate, double_int_rrotate, double_int_max,
9190         double_int_umax, double_int_smax, double_int_min, double_int_umin,
9191         double_int_smin): New function.
9192         * fold-const.c (int_const_binop): Clean up, use double_int_*
9193         functions.
9194         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
9195         double_int_* and immed_double_int_const functions.
9196
9197 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
9198
9199         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
9200         * function.c (types_used_by_cur_var_decl): Likewise.
9201         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
9202
9203 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
9204
9205         * tree.h (record_layout_info): Change type of pending_statics field
9206         to a VEC.
9207         * stor-layout.c (start_record_layout): Store NULL into
9208         pending_statics.
9209         (debug_rli): Call debug_vec_tree instead of debug_tree.
9210         (place_field): Likewise.
9211         (finish_record_layout): Likewise.
9212
9213 2010-06-18  Alan Modra  <amodra@gmail.com>
9214
9215         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
9216
9217 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9218
9219         PR target/43740
9220         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
9221         for SET source operand from SET destination operand.
9222
9223 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
9224
9225         PR rtl-optimization/39871
9226         * reload1.c (init_eliminable_invariants): For flag_pic, disable
9227         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
9228         (function_invariant_p): Rule out a plus of frame or arg pointer with
9229         a SYMBOL_REF.
9230         * ira.c (find_reg_equiv_invariant_const): Likewise.
9231
9232 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
9233
9234         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
9235         print_operand_address and puts to output the operand for CONST.
9236
9237 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
9238
9239         PR debug/44572
9240         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
9241         hook.
9242
9243 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9244
9245         * v850-protos.h (print_operand): Delete.
9246         (print_operand_address): Delete.
9247         * v850.h (PRINT_OPERAND): Delete.
9248         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9249         (PRINT_OPERAND_ADDRESS): Delete.
9250         * v850.c (print_operand_address): Rename to...
9251         (v850_print_operand_address): ...this.  Make static. Call
9252         v850_print_operand.
9253         (print_operand): Rename to...
9254         (v850_print_operand): ...this.  Make static.  Call
9255         v850_print_operand_address.
9256         (v850_print_operand_punct_valid_p): New function.
9257         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9258         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9259
9260 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9261
9262         * config/sh/sh-protos.h (print_operand): Delete.
9263         (print_operand_address): Delete.
9264         * config/sh/sh.h (PRINT_OPERAND): Delete.
9265         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9266         (PRINT_OPERAND_ADDRESS): Delete.
9267         * config/sh/sh.c (sh_print_operand_address): Make static.
9268         (sh_print_operand): Make static.  Call sh_print_operand_address
9269         and sh_print_operand.
9270         (sh_print_operand_punct_valid_p): New function.
9271         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9272         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9273
9274 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9275
9276         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
9277         (mcore_print_operand_address): Delete.
9278         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
9279         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9280         (PRINT_OPERAND_ADDRESS): Delete.
9281         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
9282         (mcore_print_operand): Make static.
9283         (mcore_print_operand_punct_valid_p): New function.
9284         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
9285         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9286
9287 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9288
9289         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
9290         (print_operand_address): Delete.
9291         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
9292         (PRINT_OPERAND_ADDRESS): Delete.
9293         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
9294         static.
9295         (m68hc11_print_operand): Make static.
9296         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9297
9298 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9299
9300         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
9301         (m32r_print_operand_address): Delete.
9302         * config/m32r/m32r.h (m32r_punct_chars): Delete.
9303         (PRINT_OPERAND): Delete.
9304         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9305         (PRINT_OPERAND_ADDRESS): Delete.
9306         * config/m32r/m32r.c (m32r_punct_chars): Make static.
9307         (m32r_print_operand_address): Make static.
9308         (m32r_print_operand): Make static.
9309         (m32r_print_operand_punct_valid_p): New function.
9310         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9311         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9312
9313 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9314
9315         * config/iq2000/iq2000-protos.h (print_operand): Delete.
9316         (print_operand_address): Delete.
9317         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
9318         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9319         (PRINT_OPERAND_ADDRESS): Delete.
9320         (iq2000_print_operand_punct): Delete.
9321         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
9322         (iq2000_print_operand_address): Make static.
9323         (iq2000_print_operand): Make static.
9324         (iq2000_print_operand_punct_valid_p): New function.
9325         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9326         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9327
9328 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9329
9330         * config/frv/frv-protos.h (frv_print_operand): Delete.
9331         (frv_print_operand_address): Delete.
9332         * config/frv/frv.h (PRINT_OPERAND): Delete.
9333         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9334         (PRINT_OPERAND_ADDRESS): Delete.
9335         * config/frv/frv.c (frv_print_operand_address): Make static.
9336         (frv_print_operand): Make static.
9337         (frv_print_operand_punct_valid_p): New function.
9338         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9339         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9340
9341 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9342
9343         * tree.h (vec_member): Declare.
9344         * tree.c (vec_member): Define.
9345
9346 2010-06-17  Richard Guenther  <rguenther@suse.de>
9347
9348         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
9349         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
9350
9351 2010-06-17  Richard Guenther  <rguenther@suse.de>
9352
9353         * tree-inline.c (declare_return_variable): Remove bogus code.
9354
9355 2010-06-17  Richard Guenther  <rguenther@suse.de>
9356
9357         * gimplify.c (gimplify_bind_expr): Always promote complex
9358         and vector variables to registers if possible.
9359
9360 2010-06-17  Richard Guenther  <rguenther@suse.de>
9361
9362         * expr.c (get_inner_reference): Use double_int for bit_offset
9363         calculation.
9364
9365 2010-06-16  DJ Delorie  <dj@redhat.com>
9366
9367         * common.opt (-fstrict-volatile-bitfields): new.
9368         * doc/invoke.texi: Document it.
9369         * fold-const.c (optimize_bit_field_compare): For volatile
9370         bitfields, use the field's type to determine the mode, not the
9371         field's size.
9372         * expr.c (expand_assignment): Likewise.
9373         (get_inner_reference): Likewise.
9374         (expand_expr_real_1): Likewise.
9375         * expmed.c (store_fixed_bit_field): Likewise.
9376         (extract_bit_field_1): Likewise.
9377         (extract_fixed_bit_field): Likewise.
9378
9379 2010-06-16  Richard Guenther  <rguenther@suse.de>
9380
9381         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
9382
9383 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
9384
9385         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
9386         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
9387         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
9388         * debug.c: Likewise.
9389         * sdbout.c: Likewise.
9390         * vmsdbgout.c: Likewise.
9391         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
9392         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
9393         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
9394         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
9395         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
9396         * dwarf2out.c (dw_fde_struct): New fields
9397         dw_fde_vms_{end,begin}_prologue.
9398         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
9399         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
9400         (dwarf2out_vms_end_prologue): New function.
9401         (dwarf2out_vms_begin_epilogue): New function.
9402         (dw_val_struct): New value dw_val_class_vms_delta.
9403         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
9404         begin_epilogue for VMS.
9405         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
9406         new static functions.
9407         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
9408         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
9409         static functions.
9410         (print_die): New case dw_val_class_vms_delta.
9411         (attr_checksum): Likewise.
9412         (same_dw_val_p: Likewise.
9413         (size_of_die): Likewise.
9414         (value_format): Likewise.
9415         (output_die): Likewise.
9416         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
9417         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
9418         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
9419         dwarf2out_cfi_begin_epilogue
9420         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
9421
9422 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9423
9424         * config/cris/cris-protos.h (cris_print_operand): Delete.
9425         (cris_print_operand_address): Delete.
9426         * config/cris/cris.h (PRINT_OPERAND): Delete.
9427         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9428         (PRINT_OPERAND_ADDRESS): Delete.
9429         * config/cris/cris.c (cris_print_operand_address): Make static.
9430         (cris_print_operand): Make static.
9431         (cris_print_operand_punct_valid_p): New function.
9432         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9433         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9434
9435 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9436
9437         * config/arm/arm-protos.h (arm_print_operand): Delete.
9438         (arm_print_operand_address): Delete.
9439         * config/arm/arm.h (PRINT_OPERAND): Delete.
9440         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9441         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
9442         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
9443         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
9444         (arm_print_operand): Make static.
9445         (arm_print_operand_punct_valid_p): New function.
9446         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9447         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9448
9449 2010-06-16  Nick Clifton  <nickc@redhat.com>
9450
9451         * config/rx/constraints.md (NEGint4): New constraint.
9452         * config/rx/rx.md (attr cc): Add set_zsc.
9453         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
9454         initialised.
9455         (cmpsf): Likewise.
9456         (call_internal): Clobber the cc0 register.
9457         (call_value_internal): Likewise.
9458         (cstoresi4): Likewise.
9459         (movsieq): Likewise.
9460         (movsine): Likewise.
9461         (addsi3): Add alternative to handle small negative constants.
9462         (sunsi3): Likewise.
9463         (addsi3): Do not set the O bit in the cc0 register.
9464         (adddi3): Likewise.
9465         (subsi3): Likewise.
9466         (subdi3): Likewise.
9467         (andsi3): Reorder alternatives to prefer shorter forms.
9468         (mulsi3): Likewise.
9469         (iorsi3): Likewise.
9470         (negsi2): Note that the cc0 flags are set.
9471         (rotlsi3): Note that only the Z and S bits are set in cc0.
9472         (lshrsi3): Likewise.
9473         (ashlsi3): Likewise.
9474         (subsf3): Use %Q for the MEM operand.
9475         (fix_truncsfsi2): Likewise.
9476         (floatsisf2): Likewise.
9477         (bitset): Remove early clobber from destination.
9478         (bitset_in_memory): Likewise.
9479         (lrintsf2): Clobber the cc0 register.
9480         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
9481         (rx_print_operand): Handle %N.
9482
9483 2010-06-16  Jan Hubicka  <jh@suse.cz>
9484
9485         * df-core.c (df_compact_blocks): Free problem_temps vector.
9486
9487 2010-06-16  Martin Jambor  <mjambor@suse.cz>
9488
9489         PR tree-optimization/43905
9490         * tree-sra.c: Include tree-inline.h.
9491         (create_abstract_origin): Removed.
9492         (modify_function): Version the call graph node instead of creating
9493         abstract origins and dealing with same_body aliases.
9494         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
9495         function is versionable.
9496         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
9497
9498 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9499
9500         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
9501         (CHOOSE_DYNAMIC_LINKER): Update.
9502
9503 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
9504
9505         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
9506         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
9507         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
9508         *prefetch_3dnow_rex.
9509
9510 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
9511
9512         * target.h (struct asm_out):Add declare_constant_name field.
9513         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9514         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
9515         * output.h (default_asm_declare_constant_name): Declare.
9516         (assemble_label): Update prototype.
9517         * varasm.c (assemble_constant_contents): Use
9518         targetm.asm_out.declare_constant_name target hook.
9519         (assemble_label): Add 'file' argument.
9520         (default_asm_declare_constant_name): New function.
9521         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
9522         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
9523         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
9524
9525         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
9526         * config/darwin.c (darwin_asm_declare_constant_name): New function.
9527         (machopic_output_indirection): Update assemble_label argument list.
9528         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
9529         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9530
9531 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
9532
9533         PR middle-end/44391
9534         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9535         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
9536
9537 2010-06-15  Richard Guenther  <rguenther@suse.de>
9538
9539         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
9540
9541 2010-06-15  Paul Brook  <paul@codesourcery.com>
9542
9543         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
9544         hard-float ABI.
9545
9546 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
9547
9548         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
9549         don't get a vector type for output.
9550
9551 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
9552
9553         PR fortran/44536
9554         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
9555         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
9556         (LANG_HOOKS_DECLS): Add it.
9557         * gimplify.c (omp_notice_variable): Call
9558         lang_hooks.decls.omp_report_decl.
9559
9560 2010-06-15  Martin Jambor  <mjambor@suse.cz>
9561
9562         PR lto/44464
9563         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
9564         on the newly dead SSA name.
9565
9566 2010-06-15  Alan Modra  <amodra@gmail.com>
9567
9568         * doc/invoke.texi: Add mcmodel to powerpc options.
9569         * configure.ac: Add HAVE_LD_LARGE_TOC test.
9570         * configure: Regenerate.
9571         * config.in: Regenerate.
9572         * config/rs6000/linux64.opt (mcmodel): New.
9573         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9574         (TARGET_CMODEL, SET_CMODEL): Define.
9575         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
9576         select CMODEL_MEDIUM default.
9577         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
9578         (TARGET_CMODEL): Define default.
9579         * config/rs6000/rs6000.c (cmodel): New variable.
9580         (rs6000_explicit_options): Add cmodel field.
9581         (rs6000_handle_option): Handle -mcmodel.
9582         (create_TOC_reference): Add largetoc_reg param.  Generate high,
9583         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
9584         (rs6000_delegitimize_address): Recognise new toc reference rtl
9585         and minimal-toc rtl.
9586         (rs6000_legitimize_reload_address): Handle new toc references.
9587         (print_operand_address): Handle legitimate_constant_pool_address_p
9588         match before lo_sum.
9589         (rs6000_eliminate_indexed_memrefs): Tidy.
9590         (rs6000_emit_move): Tweak threshold for inlining constants.
9591         Keep rs6000_emit_allocate_stack large stack frame offsets
9592         loaded into r0 inline.
9593         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
9594         (tocrel_base, tocrel_offset): New variables.
9595         (toc_relative_expr_p): Set them here.
9596         (print_operand_address): Skip over any offset on constant pool address.
9597         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
9598         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
9599         (offsettable_ok_by_alignment): New function.
9600         (rs6000_emit_move): Address suitably aligned local symbol_refs
9601         relative to the toc pointer for -mcmodel=medium.
9602         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
9603         strict param.  Allow lo_sum version of addressing.  Verify reg
9604         used for -mminimal-toc and -mcmodel != small.  Update all callers.
9605         * config/rs6000/constraints.md: Update for above change.
9606         * config/rs6000/predicates.md: Likewise.
9607         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
9608         code.
9609         (tls_gd): Split for -mcmodel=medium/large.
9610         (tls_gd_high, tls_gd_low): New.
9611         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
9612         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
9613         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
9614         (largetoc_high, largetoc_low): New.
9615         (cmptf_internal2): Add clobber.
9616         * config/rs6000/rs6000-protos.h: Update.
9617
9618 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
9619
9620         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
9621         true if no prefetch is going to be generated for a given group.
9622         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
9623         estimate the prefetch_count.
9624         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
9625         prefetch count by considering the unroll_factor and prefetch_mod
9626         for is_loop_prefetching_profitable.
9627
9628 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
9629
9630         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
9631         anything if the argument is not a MEM.
9632
9633 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9634
9635         PR debug/43650
9636         PR debug/44181
9637         PR debug/44247
9638         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
9639         debug stmts.
9640         (canonicalize_loop_ivs): Likewise.
9641
9642 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9643
9644         PR debug/43656
9645         * haifa-sched.c (setup_insn_reg_pressure_info,
9646         update_register_pressure): Reject debug insns.
9647         (ready_sort): Don't setup reg pressure for debug insns.
9648         (schedule_insn): Don't update reg pressure for debug insns.
9649
9650 2010-06-14  Richard Guenther  <rguenther@suse.de>
9651
9652         * lto-streamer.c (cached_bp): Remove.
9653         (bitpack_delete): Likewise.
9654         (bitpack_create): Likewise.
9655         (bp_get_next_word): Likewise.
9656         (bp_pack_value, bp_unpack_value): Move ...
9657         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9658         Re-implement.
9659         (struct bitpack_d): Likewise.
9660         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9661         New inline functions.
9662         * lto-streamer-out.c (lto_output_bitpack): Remove.
9663         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9664         (pack_value_fields): Adjust.
9665         (lto_write_tree): Likewise.
9666         (output_gimple_stmt): Likewise.
9667         (output_function): Likewise.
9668         * lto-streamer-in.c (input_gimple_stmt): Adjust.
9669         (input_function): Likewise.
9670         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9671         (lto_input_bitpack): Remove.
9672         (lto_materialize_tree): Adjust.
9673         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9674         * lto-cgraph.c (lto_output_edge): Adjust.
9675         (lto_output_node): Likewise.
9676         (lto_output_varpool_node): Likewise.
9677         (lto_output_ref): Likewise.
9678         (input_node): Likewise.
9679         (input_varpool_node): Likewise.
9680         (input_ref): Likewise.
9681         (input_edge): Likewise.
9682         (output_node_opt_summary): Likewise.
9683         (input_node_opt_summary): Likewise.
9684         * ipa-pure-const.c (pure_const_write_summary): Likewise.
9685         (pure_const_read_summary): Likewise.
9686         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9687         (ipa_read_indirect_edge_info): Likewise.
9688         (ipa_write_node_info): Likewise.
9689         (ipa_read_node_info): Likewise.
9690
9691 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9692
9693         PR target/44534
9694         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9695         (vec_extract_lo_v16hi): Likewise.
9696         (vec_extract_lo_v32qi): Likewise.
9697
9698 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9699
9700         PR bootstrap/44426
9701         * tree.h (build_call_expr): Don't define as vararg macro, instead
9702         add a prototype.
9703         * builtins.c (build_call_nofold): Remove.
9704         (expand_builtin_int_roundingfn, expand_builtin_pow,
9705         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9706         expand_builtin_memset_args, expand_builtin_strcmp,
9707         expand_builtin_strncmp, expand_builtin_memory_chk): Use
9708         build_call_nofold_loc instead of build_call_nofold.
9709         (build_call_expr): New function.
9710
9711         PR tree-optimization/44508
9712         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9713         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9714         don't eliminate trivially dead stmts.
9715         * tree-vrp.c (vrp_finalize): Pass false as last argument
9716         to substitute_and_fold.
9717         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9718         to substitute_and_fold.
9719         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9720
9721         PR bootstrap/44509
9722         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9723
9724 2010-06-14  Ira Rosen  <irar@il.ibm.com>
9725
9726         PR tree-optimization/44507
9727         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9728         to build initial vector for BIT_AND_EXPR.
9729         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9730
9731 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9732
9733         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9734         adjust z10prop set_attr.
9735
9736 2010-06-13  Jan Hubicka  <jh@suse.cz>
9737
9738         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9739         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9740         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9741         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9742         datastructure checks into checking asserts.
9743         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9744         * tree-ssa-sccvn.c (VN_INFO): Likewise.
9745         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9746         df_ref_create_structure): Likewise.
9747         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9748         pool_free): Use gcc_checking_assert.
9749         * alias.c (get_alias_set): Likewise.
9750         * var-tracking.c (variable_htab_free, shared_hash_copy,
9751         canonicalize_values_mark, variable_merge_over_cur): Likewise.
9752         * lto-streamer.c (bp_unpack_value): Likewise.
9753
9754 2010-06-13  Richard Guenther  <rguenther@suse.de>
9755
9756         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9757         Do not stream but initialize TYPE_CANONICAL to NULL.
9758         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9759         * gimple.c (gimple_types_compatible_p): Disregard
9760         TYPE_STRUCTURAL_EQUALITY_P.
9761         (gimple_register_type): Use TYPE_CANONICAL as cache.
9762         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9763         before registering common types.
9764         * config/i386/i386.c (ix86_function_arg_boundary): Do not
9765         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9766         * tree.h (TYPE_CANONICAL): Clarify documentation.
9767
9768 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
9769
9770         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9771         LIBCALL_VALUE): Remove macros.
9772         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9773         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9774         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9775         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9776         (ia64_function_value): Make static. Handle receiving the function
9777         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9778
9779 2010-06-12  Jan Hubicka  <jh@suse.cz>
9780
9781         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9782         at correct place.
9783
9784 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
9785
9786         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9787
9788 2010-06-12  Jan Hubicka  <jh@suse.cz>
9789
9790         * df-core.c (df_clear_bb_info): New function.
9791         (df_set_blocks): bb_info is always allocated.
9792         (df_get_bb_info): Use block_info_elt_size.
9793         (df_set_bb_info): Likewise.
9794         (df_compact_blocks): Update for new block_info.
9795         (grow_bb_info): New function.
9796         * df-problems.c (df_grow_bb_info): Move to df-core.c
9797         (df_rd_set_bb_info): Remove.
9798         (df_rd_free_bb_info): Do not free block pool.
9799         (df_rd_alloc): Do not create pool, use check for
9800         obstack presence instead of NULL pointer for new blocks.
9801         (df_rd_free): DO not free alloc pool; clear block_info.
9802         (problem_RD): Add size of block info structure.
9803         (df_lr_set_bb_info): Remove.
9804         (df_lr_free_bb_info): Do not free block pool.
9805         (df_lr_alloc): Do not create pool, use check for
9806         obstack presence instead of NULL pointer for new blocks.
9807         (df_lr_free): DO not free alloc pool; clear block_info.
9808         (problem_LR): Add size of block info structure.
9809         (df_live_set_bb_info): Remove.
9810         (df_live_free_bb_info): Do not free block pool.
9811         (df_live_alloc): Do not create pool, use check for
9812         obstack presence instead of NULL pointer for new blocks.
9813         (df_live_free): DO not free alloc pool; clear block_info.
9814         (problem_LIVE): Add size of block info structure.
9815         (problem_CHAIN): Add size of block info structure.
9816         (df_byte_lr_set_bb_info): Remove.
9817         (df_byte_lr_free_bb_info): Do not free block pool.
9818         (df_byte_lr_alloc): Do not create pool, use check for
9819         obstack presence instead of NULL pointer for new blocks.
9820         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9821         (problem_BYTE_LR): Add size of block info structure.
9822         (problem_NOTE): Add size of block info structure.
9823         (df_byte_MD_set_bb_info): Remove.
9824         (df_byte_MD_free_bb_info): Do not free block pool.
9825         (df_byte_MD_alloc): Do not create pool, use check for
9826         obstack presence instead of NULL pointer for new blocks.
9827         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9828         (problem_BD): Add size of block info structure.
9829         * df-scan.c (df_scan_free_internal): Free block pool.
9830         (df_scan_set_bb_info): Remove.
9831         (df_scan_free_bb_info): Check for artificial_defs instead
9832         of bb_info being non-NULL.
9833         (df_scan_alloc): DO not create df_scan_block pool.
9834         (problem_SCAN): Set size of block info.
9835         (df_bb_refs_record): Do not allocate bb_info.
9836         * df.h (df_problem): Add block_info_elt_size.
9837         (struct dataflow): Change block_info to void *.
9838         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9839         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9840         in-line structures.
9841
9842 2010-06-12  Jan Hubicka  <jh@suse.cz>
9843
9844         PR tree-optimize/44485
9845         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9846         containing use of return value of noreturn function.
9847
9848 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9849
9850         * targhooks.c (default_function_value): Don't use
9851         FUNCTION_OUTGOING_VALUE.
9852         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9853         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9854
9855 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9856
9857         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9858         Add crtfastmath.o to extra_parts.
9859         * config/mips/crtfastmath.c: New.
9860         * config/mips/linux.h (ENDFILE_SPEC): New.
9861
9862 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9863
9864         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9865         old_type in parameter.
9866         (gcc_type_for_value): Update call to gcc_type_for_interval.
9867         (compute_type_for_level_1): Renamed compute_type_for_level.
9868         Update call to gcc_type_for_interval.
9869
9870 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9871
9872         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9873         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9874
9875 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9876
9877         * opts-common.c: Include options.h.
9878         (integral_argument): Move from opts.c.
9879         (decode_cmdline_option): New.  Based on read_cmdline_option.
9880         * opts.c (integral_argument): Move to opts-common.c.
9881         (read_cmdline_option): Move most contents to
9882         decode_cmdline_option.  Use %qs in diagnostics.
9883         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9884         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9885         decode_cmdline_option): New.
9886
9887 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9888
9889         PR target/44481
9890         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9891         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9892         (partiysi2_cmp): Ditto.
9893         (*partiyhi2_cmp): Ditto.
9894         (*parityqi2_cmp): Remove.
9895
9896 2010-06-11  Jan Hubicka  <jh@suse.cz>
9897
9898         * bitmap.h (bmp_iter_next_bit): New.
9899         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9900
9901 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9902             Eric Botcazou  <ebotcazou@adacore.com>
9903
9904         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9905         computed cost.
9906
9907 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9908
9909         * config/i386/i386.md (unspec): New define_c_enum.
9910         (unspecv): Ditto.
9911
9912 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9913
9914         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9915
9916 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9917
9918         PR middle-end/44483
9919         * tree-if-conv.c (bb_predicate_s): New struct.
9920         (bb_predicate_p): New.
9921         (bb_has_predicate): New.
9922         (bb_predicate): New.
9923         (set_bb_predicate): New.
9924         (bb_predicate_gimplified_stmts): New.
9925         (set_bb_predicate_gimplified_stmts): New.
9926         (add_bb_predicate_gimplified_stmts): New.
9927         (init_bb_predicate): New.
9928         (free_bb_predicate): New.
9929         (is_predicated): Use bb_predicate.
9930         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9931         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9932         before processing their successors.
9933         (clean_predicate_lists): Removed.
9934         (find_phi_replacement_condition): Use bb_predicate.
9935         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9936         computations.
9937         (insert_gimplified_predicates): New.
9938         (combine_blocks): Call insert_gimplified_predicates.
9939         (tree_if_conversion): Call free_bb_predicate instead of
9940         clean_predicate_lists.
9941
9942 2010-10-11  Paul Brook  <paul@codesourcery.com>
9943
9944         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9945         * config/arm/arm.c (all_architectures): Change v7e-m default to
9946         cortexm4.
9947         * config/arm/arm-cores.def: Add cortex-m4.
9948         * config/arm/arm-tune.md: Regenerate.
9949
9950 2010-06-11  Jan Hubicka  <jh@suse.cz>
9951
9952         * ipa-pure-const.c (special_builtlin_state): New function.
9953         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9954         (propagate_pure_const): Use it.
9955
9956 2010-06-11  Jan Hubicka  <jh@suse.cz>
9957
9958         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9959         (df_live_alloc): Initialize df_live_scratch when initializing
9960         problem_data.
9961         (df_live_transfer_function): Update uses of df_live_scratch.
9962         (df_live_free): Free problem_data; clear df_live_scratch before
9963         releasing the obstack.
9964         (df_md_free): Free problem data.
9965
9966 2010-06-11  Jan Hubicka  <jh@suse.cz>
9967
9968         * doc/invoke.texi (Wsuggest-attribute): Document.
9969         (Wmissing-noreturn): Remove.
9970         * ipa-pure-const.c (warn_function_noreturn): New function.
9971         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9972         warn_missing_noreturn.
9973         * common.opt (Wsuggest-attribute=noreturn): New.
9974         * tree-flow.h (warn_function_noreturn): Declare.
9975         * tree-cfg.c (execute_warn_function_noreturn): Use
9976         warn_function_noreturn.
9977         (gate_warn_function_noreturn): New.
9978         (pass_warn_function_noreturn): Update.
9979
9980 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9981
9982         * c-typeck.c (handle_warn_cast_qual): Add loc
9983         parameter. Improve warning message.
9984         (build_c_cast): Pass location to handle_warn_cast_qual.
9985
9986 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9987
9988         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9989         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9990         insn mnemonic.
9991         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9992
9993 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9994
9995         Fix bootstap on mips
9996         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9997         be naming typedefs.
9998
9999 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
10000
10001         * system.h (helper_const_non_const_cast): New inline for
10002         gcc version <= 4.0.
10003         (CONST_CAST2): For gcc version <= 4.0 use
10004         new helper to do const/non-const casting.
10005
10006 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10007
10008         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
10009         * Makefile.in (OBJS-common): Include insn-enums.o.
10010         (insn-enums.o): New rule.
10011         (simple_generated_c): Add insn-enums.c.
10012         (build/genenums.o): New rule.
10013         (genprogmd): Add "enums".
10014         * genconstants.c (print_enum_type): Declare a C string array
10015         for each enum.
10016         * genenums.c: New file.
10017         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
10018         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
10019         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
10020
10021 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10022
10023         * doc/md.texi (define_enum_attr): Document.
10024         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
10025         * read-md.h (lookup_enum_type): Declare.
10026         * read-md.c (lookup_enum_type): New function.
10027         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
10028         * genattrtab.c (attr_desc): Add an enum_name field.
10029         (evaluate_eq_attr): Take the associated attribute as argument.
10030         Get the enum prefix from the enum_name field, if defined.
10031         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
10032         (simplify_test_exp): Pass attr to evaluate_eq_attr.
10033         (add_attr_value): New function, split out from...
10034         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
10035         (write_test_expr): Pass attr to evaluate_eq_attr.
10036         (write_attr_get): Use the enum_name as the enum tag, if defined.
10037         (write_attr_valueq): Use the enum_name as a prefix, if defined.
10038         (find_attr): Initialize enum_name.
10039         (main): Handle DEFINE_ENUM_ATTR.
10040         * gensupport.c (process_rtx): Likewise.
10041         * config/mips/mips.h (mips_tune_attr): Delete.
10042         * config/mips/mips.md (cpu): Use define_attr_enum.
10043
10044 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10045
10046         * doc/md.texi (define_c_enum, define_enum): Document.
10047         * read-md.h (md_constant): Add a parent_enum field.
10048         (enum_value, enum_type): New structures.
10049         (upcase_string, traverse_enum_types): Declare.
10050         * read-md.c (enum_types): New variable.
10051         (upcase_string, add_constant): New functions.
10052         (handle_constants): Don't create the hash table here.
10053         Use add_constant.
10054         (traverse_md_constants): Don't check for a null md_constants.
10055         (decimal_string, handle_enum, traverse_enum_types): New functions.
10056         (read_md_files): Initialize md_constants and md_enums.
10057         * genconstants.c (print_md_constant): Ignore info argument.
10058         Only print constants that belong to no enum.
10059         (print_enum_type): New function.
10060         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
10061         for each defined enum type.
10062         * config/mips/mips.md (processor): New define_enum.
10063         (unspec): New define_c_enum.
10064         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
10065         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
10066         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
10067         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
10068         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10069         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10070         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10071         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10072         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10073         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10074         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10075         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10076         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10077         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10078         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10079         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10080         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10081         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10082         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10083         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10084         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10085         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10086         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10087         (UNSPEC_RDDSP): Move to mips-dsp.md.
10088         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
10089         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
10090         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
10091         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
10092         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
10093         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
10094         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
10095         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
10096         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
10097         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
10098         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
10099         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
10100         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
10101         Moved to mips-dspr2.md.
10102         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
10103         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
10104         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
10105         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
10106         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
10107         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
10108         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
10109         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
10110         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
10111         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
10112         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
10113         UNSPEC_LOONGSON_PSADBH)
10114         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
10115         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
10116         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
10117         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10118         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10119         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10120         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
10121         (cpu): Update comment.
10122         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
10123         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
10124         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
10125         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
10126         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
10127         UNSPEC_LOONGSON_PCMPEQ)
10128         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
10129         UNSPEC_LOONGSON_PINSR_0)
10130         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
10131         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
10132         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
10133         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
10134         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
10135         UNSPEC_LOONGSON_PSADBH)
10136         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
10137         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
10138         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
10139         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10140         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10141         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10142         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
10143         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
10144         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
10145         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
10146         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
10147         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
10148         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
10149         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
10150         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
10151         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
10152         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
10153         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
10154         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
10155         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
10156         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
10157         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
10158         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
10159         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
10160         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
10161         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
10162         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10163         (UNSPEC_RDDSP): Moved from mips.md.
10164         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
10165         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
10166         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
10167         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
10168         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
10169         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
10170         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
10171         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
10172         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
10173         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
10174         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
10175         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
10176         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
10177         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
10178         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
10179         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
10180         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
10181         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
10182         (UNSPEC_SCC): Moved from mips.md.
10183         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
10184         "processor_type" to "processor".
10185         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
10186         * config/mips/mips.h (processor_type): Delete.
10187         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
10188         "processor_type" to "processor".
10189
10190 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10191
10192         * configure.ac (tm_include_list): Add insn-constants.h.
10193         * configure: Regenerate.
10194         * Makefile.in (GTM_H): Move insn-constants.h here from...
10195         (TM_H): ...here.
10196         * mkconfig.sh: Remove special handling for insn-constants.h.
10197
10198 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10199
10200         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
10201         (BUILD_MD): ...this new variable.
10202         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
10203         that include the old contents of simple_generated_h and
10204         simple_generated_c.
10205         (simple_generated_h, simple_generated_c): Include them.  Add
10206         insn-constants.h.
10207         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
10208         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
10209         Remove these dependencies from the main rule and include
10210         insn-conditions.md in the command line only if it appears
10211         in the dependency list.
10212         (insn-constants.h, s-constants): Delete.
10213         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
10214         or gensupport.h.
10215         (build/genmddeps.o): Likewise.
10216         (genprogrtl): New variable that contains everything from genprogmd
10217         except mddeps and constants.
10218         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
10219         depend on $(BUILD_MD)
10220         (genprog): New variable.  Make these programs depend on
10221         $(BUILD_ERRORS).
10222         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
10223         (main): Use read_md_files instead of init_rtx_reader_args.
10224         * genconstants.c: As for genmddeps.c.
10225         * read-md.h (read_skip_construct): Declare.
10226         * read-md.c (read_skip_construct): New function.
10227         (handle_file): Allow a null handle_directive, skipping the
10228         construct if so.
10229         (parse_include): Update the comment accordingly.
10230
10231 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10232
10233         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
10234         * genmddeps.c: Include read-md.h.
10235         (main): Call init_rtx_reader_args instead of init_md_reader_args.
10236         * genattr.c (main): Likewise.
10237         * genattrtab.c (main): Likewise.
10238         * genautomata.c (main): Likewise.
10239         * gencodes.c (main): Likewise.
10240         * genconditions.c (main): Likewise.
10241         * genconfig.c (main): Likewise.
10242         * genconstants.c (main): Likewise.
10243         * genemit.c (main): Likewise.
10244         * genextract.c (main): Likewise.
10245         * genflags.c (main): Likewise.
10246         * genopinit.c (main): Likewise.
10247         * genoutput.c (main): Likewise.
10248         * genpeep.c (main): Likewise.
10249         * genrecog.c (main): Likewise.
10250         * genpreds.c (main): Likewise.
10251         * gensupport.h (in_fname): Move to read-md.h.
10252         (init_md_reader_args_cb): Rename to...
10253         (init_rtx_reader_args_cb): ...this and return a bool.
10254         (init_md_reader_args): Rename to...
10255         (init_rtx_reader_args): ...this and return a bool.
10256         (include_callback): Move to read-md.h.
10257         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
10258         (file_name_list, first_dir_md_include): Move to read-md.c
10259         (first_bracket_include): Delete unused variable.
10260         (last_dir_md_include): Move to read-md.c.
10261         (process_include): Delete, moving code to read-md.c:handle_include.
10262         (process_rtx): Don't handle INCLUDE.
10263         (save_string): Delete.
10264         (rtx_handle_directive): New function.
10265         (init_md_reader_args_cb): Rename to...
10266         (init_rtx_reader_args_cb): ...this and return a boolean success value.
10267         Use read_md_args.
10268         (init_md_reader_args): Rename to...
10269         (init_rtx_reader_args): ...this and return a boolean success value.
10270         * rtl.def (INCLUDE): Delete.
10271         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
10272         argument.
10273         * read-rtl.c (read_conditions): Don't gobble ')' here.
10274         (read_mapping): Likewise.
10275         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
10276         Handle top-level non-rtx constructs here rather than in read_rtx_1.
10277         Store the whole queue in *X.  Remove call to init_md_reader.
10278         (read_rtx_1): Rename to...
10279         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
10280         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
10281         here.
10282         (read_nested_rtx): New function.  Handle (nil) here rather than
10283         in read_rtx_code.
10284         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
10285         gobble ')' here.
10286         * read-md.h (directive_handler_t): New type.
10287         (in_fname, include_callback): Moved from read-md.h.
10288         (read_constants, init_md_reader): Delete.
10289         (read_md_files): Declare.
10290         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
10291         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
10292         from gensupport.c.
10293         (read_constants): Rename to...
10294         (handle_constants): ...this.  Don't gobble ')' here.
10295         (handle_include, handle_file, handle_toplevel_file)
10296         (parse_include): New functions, mostly taken from gensupport.c.
10297         (init_md_reader): Subsume into...
10298         (read_md_files): ...this new function.
10299
10300 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10301
10302         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
10303         (unread_char): Decrement read_md_lineno after putting back '\n'.
10304         * read-md.c (fatal_with_file_and_line): Push back any characters
10305         that we decide not to add to the context.
10306         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
10307         fatal_expected_char in cases where '/' ends a line (for example).
10308         (read_name): Don't increment read_md_lineno here.
10309         (read_escape): Likewise.
10310         (read_quoted_string): Likewise.
10311         (read_braced_string): Likewise.
10312
10313 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10314
10315         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
10316         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
10317         * genconstants.c: Include read-md.h.
10318         * read-rtl.c (md_constants): Move to read-md.c.
10319         (md_name): Move to read-md.h.
10320         (initialize_iterators): Use leading_string_hash instead of def_hash
10321         and leading_string_eq_p instead of def_name_eq_p.
10322         (read_name): Move to read-md.c.
10323         (def_hash, def_name_eq_p): Delete.
10324         (read_constants, traverse_md_constants): Move to read-md.c.
10325         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
10326         * read-md.h: Include hashtab.h.
10327         (md_name): Moved from read-rtl.c.
10328         (md_constant): Moved from read-md.h.
10329         (leading_string_hash, leading_string_eq_p, read_name)
10330         (read_constants, traverse_md_constants): Declare.
10331         * read-md.c (md_constants): Moved from read-rtl.c.
10332         (leading_string_hash, leading_string_eq_p): New functions.
10333         (read_name, read_constants, traverse_md_constants): Moved from
10334         read-rtl.c.
10335
10336 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10337
10338         * read-rtl.c (md_name): New structure.
10339         (read_name): Take an md_name instead of a buffer pointer.
10340         Use the "string" field instead of strcpy when expanding constants.
10341         (read_constants): Remove the tmp_char argument.  Update the calls
10342         to read_name, using two local name buffers instead of the tmp_char
10343         argument.  Merge the constant-creation code.
10344         (read_conditions): Remove the tmp_char argument.  Update the calls
10345         to read_name, using a local name buffer instead of the tmp_char
10346         argument.
10347         (read_mapping): Replace tmp_char variable with a local name buffer.
10348         Update the calls to read_name.
10349         (read_rtx_1): Likewise.  Update the calls to read_constants and
10350         read_conditions.
10351
10352 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10353
10354         * Makefile.in (build/read-md.o): Depend on errors.h.
10355         * read-md.h (error_with_line): Declare.
10356         * read-md.c: Include errors.h.
10357         (message_with_line_1): New function, extracted from...
10358         (message_with_line): ...here.
10359         (error_with_line): New function.
10360         * genattrtab.c: If a call to message_with_line is followed by
10361         "have_error = 1;", replace both statements with a call to
10362         error_with_line.
10363         * genoutput.c: Likewise.
10364         * genpreds.c: Likewise.
10365         * genrecog.c: If a call to message_with_line is followed by
10366         "error_count++;", replace both statements with a call to
10367         error_with_line.
10368         (errorcount): Delete.
10369         (main): Don't check it.
10370         * gensupport.c: If a call to message_with_line is followed by
10371         "errors = 1;", replace both statements with a call to error_with_line.
10372         (errors): Delete.
10373         (process_define_cond_exec): Check have_error instead of errors.
10374         (init_md_reader_args_cb): Likewise.  Don't set errors.
10375
10376 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10377
10378         * read-md.h (read_md_file): Declare.
10379         (read_char, unread_char): New functions.
10380         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10381         (read_quoted_string, read_string): Remove FILE * argument.
10382         * read-md.c (read_md_file): New variable.
10383         (read_md_filename, read_md_lineno): Update comments and remove
10384         unnecessary initialization.
10385         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10386         (read_escape, read_quoted_string, read_braced_string, read_string):
10387         Remove FILE * argument.  Update calls accordingly, using read_char
10388         and unread_char instead of getc and ungetc.
10389         * rtl.h (read_rtx): Remove FILE * argument.
10390         * read-rtl.c (iterator_group): Remove FILE * argument from
10391         "find_builtin".
10392         (iterator_traverse_data): Remove "infile" field.
10393         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
10394         (add_mapping, read_name, read_constants, read_conditions)
10395         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
10396         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
10397         Remove file arguments from all calls, using read_char and unread_char
10398         instead of getc and ungetc.
10399         * gensupport.c (process_include): Preserve read_md_file around
10400         the include.  Set read_md_file to the handle of the included file.
10401         Update call to read_rtx.
10402         (init_md_reader_args_cb): Set read_md_file to the handle of the file
10403         and remove local FILE *.  Update calls to read_rtx.
10404
10405 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10406
10407         * read-md.h (read_rtx_lineno): Rename to...
10408         (read_md_lineno): ...this.
10409         (read_rtx_filename): Rename to...
10410         (read_md_filename): ...this.
10411         (copy_rtx_ptr_loc): Rename to...
10412         (copy_md_ptr_loc): ...this.
10413         (print_rtx_ptr_loc): Rename to...
10414         (print_md_ptr_loc): ...this.
10415         * read-md.c: Likewise.  Update references after renaming.
10416         (string_obstack): Replace RTL with MD in comment.
10417         (set_rtx_ptr_loc): Rename to...
10418         (set_md_ptr_loc): ...this.
10419         (get_rtx_ptr_loc): Rename to...
10420         (get_md_ptr_loc): ...this.
10421         * genconditions.c: Update references after renaming.
10422         * genemit.c: Likewise.
10423         * genoutput.c: Likewise.
10424         * genpreds.c: Likewise.
10425         * gensupport.c: Likewise.
10426         * read-rtl.c: Likewise.
10427
10428 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10429
10430         * Makefile.in (READ_MD_H): New variable.
10431         (BUILD_RTL): Add build/read-md.o.
10432         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
10433         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
10434         (build/genattrtab.o, build/genconditions.o build/genemit.o)
10435         (build/genextract.o, build/genflags.o, build/genoutput.o)
10436         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
10437         (build/read-md.o): New rule.
10438         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
10439         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
10440         * coretypes.h: ...here.
10441         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
10442         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
10443         * genattr.c: Include read-md.h.
10444         * genattrtab.c: Likewise.
10445         * genconditions.c: Likewise.
10446         * genemit.c: Likewise.
10447         * genextract.c: Likewise.
10448         * genflags.c: Likewise.
10449         * genoutput.c: Likewise.
10450         * genpreds.c: Likewise.
10451         * genrecog.c: Likewise.
10452         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
10453         (join_c_conditions, print_c_condition, read_rtx_filename)
10454         (read_rtx_lineno): Move to read-md.h.
10455         * read-rtl.c: Include read-md.h.
10456         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
10457         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
10458         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
10459         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
10460         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
10461         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
10462         (read_braced_string, read_string): Move to read-md.c.
10463         (read_rtx): Move some initialization to init_md_reader and call
10464         init_md_reader here.
10465         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
10466         Move to read-md.h.
10467         * gensupport.c: Include read-md.h.
10468         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
10469         * read-md.h, read-md.c: New files.
10470
10471 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
10472
10473         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10474         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10475         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
10476         * config/moxie/moxie.c (moxie_function_value): Make static.
10477         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
10478         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10479
10480 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10481
10482         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
10483         * dbgcnt.def (tree_sra): New counter.
10484         * tree-sra.c: Include dbgcnt.h.
10485         (gate_intra_sra): Check tree_sra debug counter.
10486
10487 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10488
10489         PR tree-optimization/44258
10490         * tree-sra.c (build_access_subtree): Return false iff there is a
10491         partial overlap.
10492         (build_access_trees): Likewise.
10493         (analyze_all_variable_accesses): Disqualify candidates if
10494         build_access_trees returns true for them.
10495
10496 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
10497
10498         PR debug/41371
10499         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
10500         tail-recurse into canonical node.  Fast-forward over
10501         non-canonical VALUEs.
10502
10503 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
10504
10505         PR boostrap/44470
10506         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
10507         (*addsi_1_zext) <TYPE_LEA>: Likewise.
10508         (add lea splitter): Likewise.
10509         (add_zext lea splitter): Likewise.
10510
10511 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
10512
10513         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
10514
10515 2010-06-10  Jan Hubicka  <jh@suse.cz>
10516
10517         * df-problems.c (df_live_problem_data): Add live_bitmaps.
10518         (df_live_alloc): Initialize problem data and live_osbtacks.
10519         (df_live_finalize): Remove obstack, problem data; do not
10520         clear all bitmaps.
10521         (df_live_top_dump, df_live_bottom_dump): Do not dump old
10522         data when not allocated.
10523         (df_live_verify_solution_start): Do not allocate problem data.
10524         (df_live_verify_solution_end): Check if out is allocated.
10525         (struct df_md_problem_data): New structure.
10526         (df_md_alloc): Allocate problem data.
10527         (df_md_free): Free problem data; do not clear bitmaps.
10528
10529 2010-06-10  Jan Beulich  <jbeulich@novell.com>
10530
10531         PR bootstrap/37304
10532         * configure.ac: Replace $() with ${} when intending to expand
10533         variables rather than invoking commands.
10534         * configure: Re-generate.
10535
10536 2010-06-10  Jan Hubicka  <jh@suse.cz>
10537
10538         PR rtl-optimization/44460
10539         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10540         TYPE_NEEDS_CONSTRUCTING sanity check.
10541
10542 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10543
10544         * doc/include/fdl.texi: Move to GFDL version 1.3.
10545
10546         * doc/cpp.texi: Move to GFDL version 1.3.
10547         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
10548         * doc/gccint.texi: Move to GFDL version 1.3.
10549         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
10550         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
10551         * doc/invoke.texi: Move to GFDL version 1.3.
10552
10553 2010-06-09  Jan Hubicka  <jh@suse.cz>
10554
10555         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
10556         Break out from ...
10557         (propagate) ... here; swap the order.
10558
10559 2010-06-09  Jan Hubicka  <jh@suse.cz>
10560
10561         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
10562         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
10563         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
10564         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
10565
10566 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10567
10568         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
10569         Do not the gather memory reference in the outer loop if the step
10570         is not a constant.
10571
10572 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10573
10574         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
10575         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
10576         8 to 4.  Minor change of the related comments.
10577
10578 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10579
10580         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
10581         the scev analysis when the variable is not used outside the loop
10582         in a close phi node: call compute_overall_effect_of_inner_loop.
10583
10584 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10585
10586         * graphite-sese-to-poly.c (single_pred_cond): Renamed
10587         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
10588         (build_sese_conditions_before): Renamed call to single_pred_cond.
10589         (build_sese_conditions_after): Same.
10590
10591 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10592
10593         * graphite-poly.h: Fix comments and indentation.
10594         * graphite-sese-to-poly.c: Same.
10595         (build_sese_conditions_before): Compute stmt and gbb only when needed.
10596         * tree-chrec.c: Fix comments and indentation.
10597         (tree-ssa-loop-niter.c): Same.
10598
10599 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10600
10601         PR rtl-optimization/42461
10602         * dce.c (deletable_insn_p): Return true for const or pure calls again.
10603         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
10604
10605 2010-06-09  Jan Hubicka  <jh@suse.cz>
10606
10607         * bitmap.c (bitmap_and): Walk array forward.
10608         (bitmap_and_compl_into): Likewise.
10609         (bitmap_xor): Likewise.
10610         (bitmap_xor_into):  Likewise.
10611         (bitmap_equal_p): Likewise.
10612         (bitmap_intersect_p): Likewise.
10613         (bitmap_intersect_compl_p): Likewise.
10614         (bitmap_ior_and_into): Likewise.
10615         (bitmap_elt_copy): Likewise.
10616         (bitmap_and_compl): Likewise.
10617         (bitmap_elt_ior): Likewise.
10618
10619 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
10620
10621         * opts-common.c (prune_options): Ensure replacement argv array
10622         is correctly terminated by a NULL entry.
10623
10624 2010-06-09  Jan Hubicka  <jh@suse.cz>
10625
10626         * cgraph.h (varpool_first_static_initializer,
10627         varpool_next_static_initializer): Make checking only when
10628         checking enabled.
10629         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
10630         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
10631         gcc_assert to gcc_checking_assert.
10632         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
10633         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
10634         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
10635         op_iter_init_phiuse, op_iter_init_phidef,
10636         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
10637         gcc_checking_assert.
10638         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
10639         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
10640         partition_is_global, live_on_entry, live_on_exit,
10641         live_merge_and_clear): Likewise.
10642         * system.h (gcc_checking_assert): New macro.
10643         * gimple.h (set_bb_seq): Use gcc_checking_assert.
10644
10645 2010-06-09  Jason Merrill  <jason@redhat.com>
10646
10647         * Makefile.in (TAGS): Collect tags info from c-family.
10648
10649 2010-06-09  Jan Hubicka  <jh@suse.cz>
10650
10651         * gimple.h (gcc_gimple_checking_assert): New macro.
10652         (gimple_set_def_ops, gimple_set_use_ops,
10653         gimple_set_vuse, gimple_set_vdef,
10654         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10655         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10656         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10657         gimple_asm_output_op, gimple_asm_output_op_ptr,
10658         gimple_asm_set_output_op, gimple_asm_clobber_op,
10659         gimple_asm_set_clobber_op, gimple_asm_label_op,
10660         gimple_asm_set_label_op, gimple_try_set_kind,
10661         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10662         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10663         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10664         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10665         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10666         gimple_omp_for_set_initial, gimple_omp_for_final,
10667         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10668         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10669         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10670         conditional with ENABLE_GIMPLE_CHECKING.
10671         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10672
10673 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
10674
10675         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10676         (get_computation_cost_at): Use it.
10677         (determine_use_iv_cost_condition): Likewise.
10678         (determine_iv_cost): Likewise.
10679
10680 2010-06-09  Richard Guenther  <rguenther@suse.de>
10681
10682         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10683         replace constants.
10684
10685 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
10686
10687         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10688
10689 2010-06-09  Martin Jambor  <mjambor@suse.cz>
10690
10691         PR tree-optimization/44423
10692         * tree-sra.c (dump_access): Dump also grp_assignment_read.
10693         (analyze_access_subtree): Pass negative allow_replacements to children
10694         if the current type is scalar.
10695
10696 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10697
10698         PR testsuite/42843
10699         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10700         * doc/plugins.texi (Plugin license check): Update information
10701         on type of plugin_is_GPL_compatible.
10702         * Makefile.in (PLUGINCC): Define as $(COMPILER).
10703         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10704
10705 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10706
10707         * config/arm/arm.c (thumb2_reorg): New function.
10708         (arm_reorg): Call it.
10709         * config/arm/thumb2.md (define_peephole2 for flag clobbering
10710         arithmetic operations): Delete.
10711
10712 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
10713
10714         PR target/44067
10715         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10716         e500v2 target.
10717
10718 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10719
10720         PR plugins/44459
10721         * gcc-plugin.h: Encapsulate all declarations in extern "C".
10722
10723 2010-06-08  Jan Hubicka  <jh@suse.cz>
10724
10725         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10726         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10727
10728 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
10729
10730         PR tree-optimization/39874
10731         PR middle-end/28685
10732         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10733         Declare.
10734         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10735         same_bool_result_p): New.
10736         (and_var_with_comparison, and_var_with_comparison_1,
10737         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10738         (or_var_with_comparison, or_var_with_comparison_1,
10739         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10740         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10741         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10742         of combine_comparisons.
10743         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10744
10745 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
10746
10747         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10748         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10749         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10750         pdp11_function_value_regno_p): New functions.
10751         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10752         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10753
10754 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
10755
10756         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10757         Thumb-2 in the MINUS case.
10758
10759 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10760
10761         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10762
10763         * doc/gty.texi (GTY Options): Document typed GC allocation and
10764         variable_size GTY option.
10765
10766         * ggc-internal.h: New.
10767
10768         * ggc.h: Update copyright year.
10769         (digit_string): Move to stringpool.c.
10770         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10771         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10772         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10773         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10774         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10775         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10776         (ggc_force_collect, ggc_get_size, ggc_statistics)
10777         (ggc_print_common_statistics): Move to ggc-internal.h.
10778         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10779         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10780         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10781         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10782         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10783         (ggc_alloc_zone_pass_stat): Remove.
10784         (ggc_internal_alloc_stat, ggc_internal_alloc)
10785         (ggc_internal_cleared_alloc_stat): New.
10786         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10787         (ggc_internal_vec_alloc_stat)
10788         (ggc_internal_cleared_vec_alloc_stat)
10789         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10790         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10791         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10792         (ggc_cleared_alloc_ptr_array_two_args): New.
10793         (htab_create_ggc, splay_tree_new_ggc): Redefine.
10794         (ggc_splay_alloc): Change the type of the first argument to
10795         enum gt_types_enum.
10796         (ggc_alloc_string): Make macro.
10797         (ggc_alloc_string_stat): New.
10798         (ggc_strdup): Redefine.
10799         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10800         (ggc_alloc_rtvec_sized): New.
10801         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10802         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10803         (ggc_internal_cleared_alloc_zone_stat)
10804         (ggc_internal_zone_alloc_stat)
10805         (ggc_internal_zone_cleared_alloc_stat)
10806         (ggc_internal_zone_vec_alloc_stat)
10807         (ggc_alloc_zone_rtx_def_stat)
10808         (ggc_alloc_zone_tree_node_stat)
10809         (ggc_alloc_zone_cleared_tree_node_stat)
10810         (ggc_alloc_cleared_gimple_statement_d_stat): New.
10811
10812         * ggc-common.c: Include ggc-internal.h.
10813         (ggc_internal_cleared_alloc_stat): Rename from
10814         ggc_alloc_cleared_stat.
10815         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10816         (ggc_calloc): Remove.
10817         (ggc_cleared_alloc_htab_ignore_args): New.
10818         (ggc_cleared_alloc_ptr_array_two_args): New.
10819         (ggc_splay_alloc): Add obj_type parameter.
10820         (init_ggc_heuristics): Formatting fixes.
10821
10822         * ggc-none.c: Update copyright year.
10823         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10824         (ggc_alloc_cleared_stat): Rename to
10825         ggc_internal_cleared_alloc_stat.
10826         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10827
10828         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10829         Remove references to ggc_alloc in comments.
10830         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10831         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10832         (new_ggc_zone, destroy_ggc_zone): Remove.
10833         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10834
10835         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10836         ggc_alloc in comments.
10837         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10838         (ggc_internal_alloc_zone_pass_stat): New.
10839         (ggc_internal_cleared_alloc_zone_stat): New.
10840         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10841         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10842         (new_ggc_zone, destroy_ggc_zone): Remove.
10843
10844         * stringpool.c: Update copyright year.  Include ggc-internal.h
10845         (digit_vector): Make static.
10846         (digit_string): Moved from ggc.h.
10847         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10848         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10849
10850         * Makefile.in (GGC_INTERNAL_H): New.
10851         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10852         $(GGC_INTERNAL_H) to dependencies.
10853
10854         * gentype.c: Update copyright year.
10855         (walk_type): Accept variable_size GTY option.
10856         (USED_BY_TYPED_GC_P): New macro.
10857         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10858         whitespace at the end of strings.
10859         (get_type_specifier, variable_size_p): New functions.
10860         (alloc_quantity, alloc_zone): New enums.
10861         (write_typed_alloc_def): New function.
10862         (write_typed_struct_alloc_def): Likewise.
10863         (write_typed_typed_typedef_alloc_def): Likewise.
10864         (write_typed_alloc_defns): Likewise.
10865         (output_typename, write_splay_tree_allocator_def): Likewise.
10866         (write_splay_tree_allocators): Likewise.
10867         (main): Call write_typed_alloc_defns and
10868         write_splay_tree_allocators.
10869
10870         * lto-streamer.h (lto_file_decl_data_ptr): New.
10871
10872         * passes.c (order): Define using cgraph_node_ptr.
10873
10874         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10875         ht_identifier_ptr.
10876
10877         * gimple.h (union gimple_statement_d): Likewise.
10878
10879         * rtl.h (struct rtx_def): Likewise.
10880         (struct rtvec_def): Likewise.
10881
10882         * tree.h (union tree_node): Likewise.
10883
10884         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10885
10886         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10887
10888         * tree-scalar-evolution.c (scev_initialize): Likewise.
10889
10890         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10891
10892         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10893
10894         * omp-low.c (lower_omp_critical): Likewise.
10895
10896         * bitmap.h (struct bitmap_head_def): Update comment to not
10897         reference ggc_alloc.
10898
10899         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10900
10901         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10902
10903         * ipa-prop.c (duplicate_ggc_array): Rename to
10904         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10905         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10906
10907         * gimple.c (gimple_alloc_stat): Use
10908         ggc_alloc_cleared_gimple_statement_d_stat.
10909
10910         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10911
10912         * tree.c (make_node_stat): Use
10913         ggc_alloc_zone_cleared_tree_node_stat.
10914         (make_tree_vec_stat): Likewise.
10915         (build_vl_exp_stat): Likewise.
10916         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10917         (make_tree_binfo_stat): Likewise.
10918         (tree_cons_stat): Likewise.
10919
10920         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10921         (shallow_copy_rtx_stat): Likewise.
10922         (make_node_stat): Likewise.
10923
10924         * lto-symtab.c: Fix comment.
10925
10926         * tree-cfg.c (create_bb): Update comment to not reference
10927         ggc_alloc_cleared.
10928         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10929
10930         * varpool.c (varpool_node): Use typed GC allocation.
10931         (varpool_extra_name_alias): Likewise.
10932
10933         * varasm.c (emutls_decl): Likewise.
10934         (get_unnamed_section): Likewise.
10935         (get_noswitch_section): Likewise.
10936         (get_section): Likewise.
10937         (get_block_for_section): Likewise.
10938         (build_constant_desc): Likewise.
10939         (create_constant_pool): Likewise.
10940         (force_const_mem): Likewise.
10941
10942         * tree.c (build_vl_exp_stat): Likewise.
10943         (build_real): Likewise.
10944         (build_string): Likewise.
10945         (decl_debug_expr_insert): Likewise.
10946         (decl_value_expr_insert): Likewise.
10947         (type_hash_add): Likewise.
10948         (build_omp_clause): Likewise.
10949
10950         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10951
10952         * tree-ssa.c (init_tree_ssa): Likewise.
10953
10954         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10955
10956         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10957
10958         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10959
10960         * tree-ssa-alias.c (get_ptr_info): Likewise.
10961
10962         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10963
10964         * tree-phinodes.c (allocate_phi_node): Likewise.
10965
10966         * tree-iterator.c (tsi_link_before): Likewise.
10967         (tsi_link_after): Likewise.
10968
10969         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10970
10971         * tree-dfa.c (create_var_ann): Likewise.
10972
10973         * tree-cfg.c (create_bb): Likewise.
10974
10975         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10976         (general_init): Likewise.
10977
10978         * stringpool.c (stringpool_ggc_alloc): Likewise.
10979         (gt_pch_save_stringpool): Likewise.
10980
10981         * sese.c (if_region_set_false_region): Likewise.
10982
10983         * passes.c (do_per_function_toporder): Likewise.
10984
10985         * optabs.c (set_optab_libfunc): Likewise.
10986         (set_conv_libfunc): Likewise.
10987
10988         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10989
10990         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10991         (input_eh_region): Likewise.
10992         (input_eh_lp): Likewise.
10993         (make_new_block): Likewise.
10994         (unpack_ts_real_cst_value_fields): Likewise.
10995
10996         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10997
10998         * lto-cgraph.c (input_node_opt_summary): Likewise.
10999
11000         * loop-init.c (loop_optimizer_init): Likewise.
11001
11002         * lambda.h (lambda_vector_new): Likewise.
11003
11004         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
11005
11006         * ira.c (update_equiv_regs): Likewise.
11007
11008         * ipa.c (cgraph_node_set_new): Likewise.
11009         (cgraph_node_set_add): Likewise.
11010         (varpool_node_set_new): Likewise.
11011         (varpool_node_set_add): Likewise.
11012
11013         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
11014         (duplicate_ipa_jump_func_array): Likewise.
11015         (ipa_read_node_info): Likewise.
11016
11017         * ipa-cp.c (ipcp_create_replace_map): Likewise.
11018
11019         * integrate.c (get_hard_reg_initial_val): Likewise.
11020
11021         * gimple.c (gimple_alloc_stat): Likewise.
11022         (gimple_build_omp_for): Likewise.
11023         (gimple_seq_alloc): Likewise.
11024         (gimple_copy): Likewise.
11025
11026         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
11027         (gsi_insert_after_without_update): Likewise.
11028
11029         * function.c (add_frame_space): Likewise.
11030         (insert_temp_slot_address): Likewise.
11031         (assign_stack_temp_for_type): Likewise.
11032         (allocate_struct_function): Likewise.
11033         (types_used_by_var_decl_insert): Likewise.
11034
11035         * except.c (init_eh_for_function): Likewise.
11036         (gen_eh_region): Likewise.
11037         (gen_eh_region_catch): Likewise.
11038         (gen_eh_landing_pad): Likewise.
11039         (add_call_site): Likewise.
11040
11041         * emit-rtl.c (get_mem_attrs): Likewise.
11042         (get_reg_attrs): Likewise.
11043         (start_sequence): Likewise.
11044         (init_emit): Likewise.
11045
11046         * dwarf2out.c (new_cfi): Likewise.
11047         (queue_reg_save): Likewise.
11048         (dwarf2out_frame_init): Likewise.
11049         (new_loc_descr): Likewise.
11050         (find_AT_string): Likewise.
11051         (new_die): Likewise.
11052         (add_var_loc_to_decl): Likewise.
11053         (clone_die): Likewise.
11054         (clone_as_declaration): Likewise.
11055         (break_out_comdat_types): Likewise.
11056         (new_loc_list): Likewise.
11057         (loc_descriptor): Likewise.
11058         (add_loc_descr_to_each): Likewise.
11059         (add_const_value_attribute): Likewise.
11060         (tree_add_const_value_attribute): Likewise.
11061         (add_comp_dir_attribute): Likewise.
11062         (add_name_and_src_coords_attributes): Likewise.
11063         (lookup_filename): Likewise.
11064         (store_vcall_insn): Likewise.
11065         (dwarf2out_init): Likewise.
11066
11067         * dbxout.c (dbxout_init): Likewise.
11068
11069         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11070
11071         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11072
11073         * config/score/score7.c (score7_output_external): Likewise.
11074
11075         * config/score/score3.c (score3_output_external): Likewise.
11076
11077         * config/s390/s390.c (s390_init_machine_status): Likewise.
11078
11079         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11080         (rs6000_init_machine_status): Likewise.
11081         (output_toc): Likewise.
11082
11083         * config/pa/pa.c (pa_init_machine_status): Likewise.
11084         (get_deferred_plabel): Likewise.
11085
11086         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11087
11088         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11089
11090         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11091
11092         * config/mep/mep.c (mep_init_machine_status): Likewise.
11093         (mep_note_pragma_flag): Likewise.
11094
11095         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11096
11097         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11098
11099         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11100
11101         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11102         (i386_pe_maybe_record_exported_symbol): Likewise.
11103
11104         * config/i386/i386.c (get_dllimport_decl): Likewise.
11105         (ix86_init_machine_status): Likewise.
11106         (assign_386_stack_local): Likewise.
11107
11108         * config/frv/frv.c (frv_init_machine_status): Likewise.
11109
11110         * config/darwin.c (machopic_indirection_name): Likewise.
11111
11112         * config/cris/cris.c (cris_init_machine_status): Likewise.
11113
11114         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11115
11116         * config/avr/avr.c (avr_init_machine_status): Likewise.
11117
11118         * config/arm/arm.c (arm_init_machine_status): Likewise.
11119
11120         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11121         (alpha_need_linkage): Likewise.
11122         (alpha_use_linkage): Likewise.
11123
11124         * cgraph.c (cgraph_allocate_node): Likewise.
11125         (cgraph_create_edge_1): Likewise.
11126         (cgraph_create_indirect_edge): Likewise.
11127         (cgraph_add_asm_node): Likewise.
11128
11129         * cfgrtl.c (init_rtl_bb_info): Likewise.
11130
11131         * cfgloop.c (alloc_loop): Likewise.
11132         (rescan_loop_exit): Likewise.
11133
11134         * cfg.c (init_flow): Likewise.
11135         (alloc_block): Likewise.
11136         (unchecked_make_edge): Likewise.
11137
11138         * c-parser.c (c_parse_init): Likewise.
11139         (c_parse_file): Likewise.
11140
11141         * c-decl.c (bind): Likewise.
11142         (record_inline_static): Likewise.
11143         (push_scope): Likewise.
11144         (make_label): Likewise.
11145         (lookup_label_for_goto): Likewise.
11146         (finish_struct): Likewise.
11147         (finish_enum): Likewise.
11148         (c_push_function_context): Likewise.
11149
11150         * bitmap.c (bitmap_element_allocate): Likewise.
11151         (bitmap_gc_alloc_stat): Likewise.
11152
11153         * alias.c (record_alias_subset): Likewise.
11154         (init_alias_analysis): Likewise.
11155
11156 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
11157
11158         * fold-const.c (fold_comparison): Remove redundant parenthesis.
11159         * tree-inline.c (expand_call_inline): Pass translated return value of
11160         cgraph_inline_failed_string to diagnostic function.
11161
11162 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
11163             Shujing Zhao  <pearly.zhao@oracle.com>
11164
11165         PR c/37724
11166         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
11167         implicit bad conversions is initialization.
11168         (error_init): Use gmsgid instead of msgid for argument name and change
11169         the call for error.
11170         (pedwarn_init): Use gmsgid instead of msgid for argument name and
11171         change the call for pedwarn.
11172         (warning_init): Use gmsgid instead of msgid for argument name and
11173         change the call for warning.
11174
11175 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
11176
11177         * config/mips/mips-protos.h (mips_print_operand): Delete.
11178         (mips_print_operand_address): Delete.
11179         * config/mips/mips.h (mips_print_operand_punct): Delete.
11180         (PRINT_OPERAND): Delete.
11181         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11182         (PRINT_OPERAND_ADDRESS): Delete.
11183         * config/mips/mips.c (mips_print_operand_punct): Make static.
11184         (mips_print_operand_address): Make static.
11185         (mips_print_operand): Make static.  Call
11186         mips_print_operand_punct_valid_p.
11187         (mips_print_operand_punct_valid_p): New function.
11188         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11189         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11190
11191 2010-06-07  Jan Hubicka  <jh@suse.cz>
11192
11193         PR middle-end/44454
11194         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
11195         are allocated.
11196
11197 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
11198
11199         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
11200         name of RECORD.
11201
11202 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11203
11204         * doc/sourcebuild.texi (Effective-Target Keywords, Other
11205         attributes): Document gas.
11206
11207 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
11208
11209         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
11210         <TYPE_LEA>: Split instruction.
11211         <default>: Remove alternative 2 handling.
11212         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
11213         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
11214         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
11215
11216         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
11217         (ashift_zext lea splitter): Use DImode for multiplication.
11218
11219         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
11220         to generate addition.
11221
11222 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
11223
11224         * common.opt (fira-verbose): Use Var.
11225         (fpcc-struct-return): Use Init instead of VarExists.
11226         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
11227         toplev.c.
11228         * flags.h (flag_signed_char, flag_short_enums,
11229         flag_pcc_struct_return, flag_ira_verbose,
11230         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
11231         * toplev.c (flag_detailed_statistics, flag_signed_char,
11232         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
11233         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
11234         * toplev.h (flag_crossjumping, flag_if_conversion,
11235         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
11236         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
11237         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
11238         flag_cprop_registers, time_report, flag_ira_loop_pressure,
11239         flag_ira_coalesce, flag_ira_move_spills,
11240         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
11241
11242 2010-06-07  Jan Hubicka  <jh@suse.cz>
11243
11244         * df-core.c (df_analyze_problem): Do verification after allocation.
11245
11246         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
11247         (df_lr_alloc): Initialize problem data; move bitmaps to
11248         lr_bitmaps obstack.
11249         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
11250         (df_lr_verify_solution_start): Do not initialize problem data;
11251         allocate bitmaps in lr_bitmaps.
11252         (df_lr_verify_solution_end): Do not free problem data.
11253
11254 2010-06-07  Jan Hubicka  <jh@suse.cz>
11255
11256         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
11257         if caller is noreturn.
11258         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
11259         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
11260         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
11261         * ipa-pure-const.c (check_decl): Add IPA parameter.
11262         (state_from_flags): New function.
11263         (better_state, worse_state): New functions.
11264         (check_call): When in IPA mode, do not care about callees.
11265         (check_load, check_store): Update.
11266         (check_ipa_load, check_ipa_store): New.
11267         (check_stmt): When in IPA mode, use IPA checkers.
11268         (analyze_function): Use state_from_flags.
11269         (propagate): Check indirect edges and references.
11270
11271 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
11272
11273         PR rtl-optimization/44404
11274         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
11275         of count_occurrences to see if it's safe to modify mem_insn.
11276
11277 2010-06-07  Richard Guenther  <rguenther@suse.de>
11278
11279         * gimplify.c (gimplify_cleanup_point_expr): For empty body
11280         and EH-only cleanup drop the cleanup instead of inserting it
11281         unconditionally.
11282
11283 2010-06-07  Ira Rosen  <irar@il.ibm.com>
11284
11285         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
11286         documentation.
11287         * targhooks.c (default_builtin_vectorization_cost): New function.
11288         * targhooks.h (default_builtin_vectorization_cost): Declare.
11289         * target.h (enum vect_cost_for_stmt): Define.
11290         (builtin_vectorization_cost): Change argument and comment.
11291         * tree-vectorizer.h: Remove cost model macros.
11292         * tree-vect-loop.c: Include target.h.
11293         (vect_get_cost): New function.
11294         (vect_estimate_min_profitable_iters): Replace cost model macros with
11295         calls to vect_get_cost.
11296         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
11297         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
11298         default implementation.
11299         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
11300         calls to target hook builtin_vectorization_cost.
11301         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
11302         Likewise.
11303         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
11304         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
11305         implementation to return costs.
11306         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
11307         * config/spu/spu.h: Remove vectorizer cost model macros.
11308         * config/i386/i386.h: Likewise.
11309         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
11310         a call to target hook builtin_vectorization_cost.
11311
11312 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
11313
11314         PR target/44319
11315         * config/i386/i386.c (override_options): Turn zee pass on for level 2
11316         and above and defer till target is known.
11317         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
11318         turn off otherwise.
11319
11320 2010-05-25  Jan Hubicka  <jh@suse.cz>
11321
11322         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
11323         (df_compact_blocks): Likewise.
11324         * df.h (struct df): Turn hardware_regs_used,
11325         regular_block_artificial_uses, eh_block_artificial_uses,
11326         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
11327         bitmap_head.
11328         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
11329         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
11330         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
11331         df_scan_blocks, df_insn_delete, df_insn_rescan,
11332         df_insn_rescan_debug_internal, df_insn_rescan_all,
11333         df_process_deferred_rescans, df_process_deferred_rescans,
11334         df_notes_rescan, df_get_call_refs, df_get_call_refs,
11335         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
11336         df_record_entry_block_defs, df_record_exit_block_uses,
11337         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
11338         df_scan_verify): Update.
11339
11340 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11341
11342         PR c++/44188
11343         * c-common.c (is_typedef_decl): Move this definition ...
11344         * tree.c (is_typedef_decl): ... here.
11345         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11346         * c-common.h (is_typedef_decl): Move this declaration ...
11347         * tree.h (is_typedef_decl): ... here.
11348         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11349         * dwarf2out.c (is_naming_typedef_decl): New function.
11350         (gen_tagged_type_die): Split out of ...
11351         (gen_type_die_with_usage): ... this function. When an anonymous
11352         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11353         is emitted for the typedef.
11354         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11355         anonymous tagged types.
11356
11357 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11358
11359         PR c/20000
11360         * c-decl.c (grokdeclarator): Delete warning.
11361
11362 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11363
11364         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
11365         newly built CALL_EXPR.
11366         * tree-profile.c (tree_profiling): Don't profile functions produced
11367         for built-in stuff.
11368
11369 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
11370
11371         PR bootstrap/44427
11372         PR bootstrap/44428
11373         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
11374         endianness-independent.
11375
11376 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
11377
11378         * c-common.c: Move to c-family/.
11379         * c-common.def: Likewise.
11380         * c-common.h: Likewise.
11381         * c-cppbuiltin.c: Likewise.
11382         * c-dump.c: Likewise.
11383         * c-format.c: Likewise.
11384         * c-format.h : Likewise.
11385         * c-gimplify.c: Likewise.
11386         * c-lex.c: Likewise.
11387         * c-omp.c: Likewise.
11388         * c.opt: Likewise.
11389         * c-opts.c: Likewise.
11390         * c-pch.c: Likewise.
11391         * c-ppoutput.c: Likewise.
11392         * c-pragma.c: Likewise.
11393         * c-pragma.h: Likewise.
11394         * c-pretty-print.c: Likewise.
11395         * c-pretty-print.h: Likewise.
11396         * c-semantics.c: Likewise.
11397         * stub-objc.c: Likewise.
11398
11399         * gengtype.c (get_file_langdir): Special-case files in c-family/.
11400         (get_output_file_with_visibility): Fix name for c-common.h.
11401         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
11402
11403         * c-tree.h: Update include path for moved files.
11404         * c-lang.c: Likewise.
11405         * c-lang.h: Likewise.
11406         * c-parser.c: Likewise.
11407         * c-convert.c: Likewise.
11408         * c-decl.c: Likewise.
11409         * c-objc-common.c: Likewise.
11410         * configure.ac: Make sure c-family/ exists in the build directory.
11411         * configure: Regenerate.
11412         * Makefile.in: Update paths for moved files.  Regroup files per
11413         location and update dependencies.  Move generated_files down after
11414         ALL_GTFILES_H.
11415
11416         * config/spu/spu-c.c: Update paths for moved files.
11417         * config/mep/mep-pragma.c: Likewise.
11418         * config/darwin-c.c: Likewise.
11419         * config/i386/msformat-c.c: Likewise.
11420         * config/i386/i386-c.c: Likewise.
11421         * config/avr/avr-c.c: Likewise.
11422         * config/sol2-c.c: Likewise.
11423         * config/ia64/ia64-c.c: Likewise.
11424         * config/rs6000/rs6000-c.c: Likewise.
11425         * config/arm/arm.c: Likewise.
11426         * config/arm/arm-c.c: Likewise.
11427         * config/h8300/h8300.c: Likewise.
11428         * config/v850/v850-c.c: Likewise.
11429
11430         * config/t-darwin: Fix dependencies for moved files.
11431         * config/t-sol2: Fix dependencies for moved files.
11432         * config/mep/t-mep: Fix dependencies for moved files.
11433         * config/ia64/t-ia64: Fix dependencies for moved files.
11434         * config/rs6000/t-rs6000: Fix dependencies for moved files.
11435         * config/v850/t-v850: Fix dependencies for moved files.
11436         * config/v850/t-v850e: Fix dependencies for moved files.
11437
11438         * config/m32c/m32c-pragma.c
11439
11440         * po/exgettext: Look in c-family/ also.
11441
11442 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11443
11444         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
11445         (mark_control_dependent_edges_necessary): Call it instead of marking
11446         the last statement manually.
11447         (propagate_necessity): Likewise.
11448
11449 2010-06-05  Jan Hubicka  <jh@suse.cz>
11450
11451         * basic-block.h (compute_dominance_frontiers): Updated.
11452         (compute_idf): Likewise.
11453
11454         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
11455         for dominance frontiers.
11456         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
11457         (insert_updated_phi_nodes_for): Likewise.
11458         (update_ssa): Likewise.
11459         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11460         (compute_dominance_frontiers): Likewise.
11461         (compute_idf): Likewise.
11462         * df-problems.c (df_md_local_compute): Likewise.
11463
11464 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
11465
11466         * target.h (struct gcc_target): Add memory_move_cost field.
11467         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
11468         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
11469         * targhooks.c (default_memory_move_cost): New function.
11470         * targhooks.h (default_memory_move_cost): Declare function.
11471         * reload.h (memory_move_cost): Declare.
11472         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11473         * reginfo.c (memory_move_cost): New function.
11474         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11475         * ira.h (ira_memory_move_cost): Update comment.
11476         * ira.c (ira_memory_move_cost): Update comment.
11477         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
11478         with memory_move_cost.
11479         * postreload.c (reload_cse_simplify_set): (Ditto.).
11480         * reload1.c (choose_reload_regs): (Ditto.).
11481         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
11482         (MEMORY_MOVE_COST):  Revise documentation.
11483
11484         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
11485         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
11486         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
11487         type of 'in' argument to bool.
11488         (TARGET_MEMORY_MOVE_COST): Define.
11489
11490 2010-06-05  Jan Hubicka  <jh@suse.cz>
11491
11492         * ipa-pure-const.c (propagate): Fix typo in handling of functions
11493         that cannot return.  Be more careful when merging the results with
11494         previously known ones.
11495
11496 2010-06-05  Matthias Klose  <doko@ubuntu.com>
11497
11498         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
11499         function to add the -iplugindir option.
11500         (find_plugindir_spec_function): Add new declaration and function.
11501         (static_spec_func): Use it for "find-plugindir".
11502
11503 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
11504
11505         PR c++/44361
11506         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
11507         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
11508         statement expression.
11509
11510 2010-06-05  Jan Hubicka  <jh@suse.cz>
11511
11512         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
11513         (df_rd_problem_data): Convert sparse_invalidated_by_call,
11514         dense_invalidated_by_call to bitmap head.
11515         (df_rd_alloc, df_rd_bb_local_compute_process_def,
11516         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
11517         df_rd_start_dump, df_lr_verify_transfer_functions,
11518         df_live_verify_transfer_functions, df_chain_create_bb,
11519         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
11520         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
11521         df_simulate_one_insn_forwards, df_md_alloc,
11522         df_md_bb_local_compute_process_def,
11523         df_md_bb_local_compute_process_def, df_md_local_compute,
11524         df_md_transfer_function df_md_free): Update.
11525
11526 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
11527
11528         PR c/44322
11529         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
11530         target type for ADDR_EXPR; require no changes to qualifiers except
11531         for function types.
11532         * c-tree.h (c_build_type_variant): Remove.
11533
11534 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11535
11536         * genautomata.c (get_excl_set): Do work per element, not per char.
11537         (check_presence_pattern_sets): Similar.
11538         (check_absence_pattern_sets): Similar.
11539
11540 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11541
11542         * genautomata.c (curr_state_pass_num): Delete.
11543         (min_issue_delay_pass_states): Delete.
11544         (min_issue_delay): Delete.
11545         (initiate_min_issue_delay_pass_states): Delete.
11546         (output_min_issue_delay_table): Compute min_issue_delay_vect
11547         using a breadth-first search variant.
11548         (output_tables): Don't call initiate_min_issue_delay_pass_states.
11549
11550 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11551
11552         PR boostrap/44421
11553         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
11554         (df_byte_lr_bb_local_compute): Likewise.
11555
11556 2010-06-03  Jason Merrill  <jason@redhat.com>
11557
11558         Implement noexcept operator (5.3.7)
11559         * c-common.c (c_common_reswords): Add noexcept.
11560         * c-common.h (enum rid): Add RID_NOEXCEPT.
11561
11562 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
11563
11564         * config/darwin-driver.c (darwin_default_min_version): Use
11565         GCC-specific formats in diagnostics.
11566         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
11567         diagnostics.
11568         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
11569         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
11570         eval_spec_function, handle_braces, process_brace_body, main,
11571         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
11572         getenv_spec_function, compare_version_strings,
11573         version_compare_spec_function): Use GCC-specific formats in
11574         diagnostics.
11575
11576 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11577
11578         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
11579         that operand 0 and operand 1 are equal.
11580         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
11581         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
11582         and operand 1 are equal.
11583         <default>: Ditto.  Remove ??? comment.
11584         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
11585         and operand 1 are equal.
11586         <default>: Ditto.  Remove ??? comment.
11587         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
11588         are equal.
11589         (*add<mode>_4) <default>: Ditto.
11590         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
11591
11592 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
11593
11594         * config/i386/i386-protos.h (ix86_print_operand): Declare.
11595         * config/i386/i386.c (ix86_print_operand): Make non-static.
11596         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
11597         * output.h (output_operand): Declare.
11598         * final.c (output_operand): Make non-static.
11599
11600 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
11601
11602         PR rtl-optimization/44013
11603         * sched-deps.c (add_dependence_list_and_free): Don't free lists
11604         when processing debug insns.
11605
11606         PR debug/41371
11607         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
11608         recursing.  Check that recursion is bounded.  Rename inner var
11609         to avoid hiding incoming argument.
11610
11611 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11612
11613         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
11614         operands[2] == 255.
11615         (*addqi_3): Ditto.
11616         (*addqi_4): Ditto.
11617         (*addqi_5): Ditto.
11618         (*addqi_ext_1_rex64): Ditto.
11619         (*addqi_ext_1): Ditto.
11620
11621         (*addqi_4): Check for incdec_operand in QImode.
11622
11623         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
11624         using SWI mode iterator.
11625         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
11626         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
11627         mode iterator.
11628         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
11629         using SWI mode iterator.
11630
11631 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11632
11633         PR c/25880
11634         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
11635         * c-format.c (gcc_diag_flag_specs): Add hash.
11636         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
11637         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
11638         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
11639         pp_c_cv_qualifiers. Handle qualifiers spelling here.
11640         (pp_c_type_qualifier_list): Call the function above.
11641         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
11642         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
11643         (WARN_FOR_QUALIFIERS): New macro.
11644         (convert_for_assignment): Use it.
11645
11646 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
11647
11648         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11649
11650 2010-06-04  Jan Hubicka  <jh@suse.cz>
11651
11652         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11653         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11654         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11655         DF_BYTE_LR_OUT): Update for embedded bitmaps.
11656         * fwprop.c (single_def_use_enter_block): Likewise.
11657         * ddg.c (create_ddg_dep_from_intra_loop_link,
11658         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11659         * loop-iv.c (latch_dominating_def): Likewise.
11660         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11661         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11662         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11663         df_rd_transfer_function, df_rd_top_dump,
11664         df_rd_bottom_dump): Update.
11665         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11666         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11667         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11668         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11669         df_lr_verify_solution_start, df_lr_verify_solution_end,
11670         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11671         df_live_free_bb_info, df_live_alloc, df_live_reset,
11672         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11673         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11674         df_live_verify_solution_start, df_live_verify_solution_end,
11675         df_live_verify_transfer_functions, df_chain_create_bb,
11676         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11677         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11678         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11679         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11680         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11681         df_byte_lr_transfer_function, df_byte_lr_top_dump,
11682         df_byte_lr_bottom_dump, df_create_unused_note,
11683         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11684         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11685         df_md_transfer_function, df_md_init, df_md_confluence_0,
11686         df_md_confluence_n,
11687         df_md_top_dump, df_md_bottom_dump): Update.
11688         (struct df_lr_problem_data): Embedd bitmap headers.
11689
11690 2010-06-04  Jan Hubicka  <jh@suse.cz>
11691
11692         * dce.c (dce_process_block): Do not re-scan already marked
11693         instructions.
11694
11695 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
11696
11697         PR rtl-optimization/39871
11698         PR rtl-optimization/40615
11699         PR rtl-optimization/42500
11700         PR rtl-optimization/42502
11701         * ira.c (init_reg_equiv_memory_loc: New function.
11702         (ira): Call it twice.
11703         * reload.h (calculate_elim_costs_all_insns): Declare.
11704         * ira-costs.c: Include "reload.h".
11705         (regno_equiv_gains): New static variable.
11706         (init_costs): Allocate it.
11707         (finish_costs): Free it.
11708         (ira_costs): Call calculate_elim_costs_all_insns.
11709         (find_costs_and_classes): Take estimated elimination costs
11710         into account.
11711         (ira_adjust_equiv_reg_cost): New function.
11712         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11713         * reload1.c (init_eliminable_invariants, free_reg_equiv,
11714         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11715         (elim_bb): New static variable.
11716         (reload): Move code out of here into init_eliminable_invariants and
11717         free_reg_equiv.  Call them.
11718         (calculate_elim_costs_all_insns): New function.
11719         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
11720         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
11721         but call note_reg_elim_costly if we turned a valid memory address
11722         into an invalid one.
11723         * Makefile.in (ira-costs.o): Depend on reload.h.
11724
11725 2010-06-04  Julian Brown  <julian@codesourcery.com>
11726
11727         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11728         for pool ranges.
11729
11730 2010-06-04  Richard Guenther  <rguenther@suse.de>
11731
11732         PR lto/41584
11733         * cgraph.h (struct varpool_node): Add lto_file_data field.
11734         * lto-cgraph.c (input_varpool_node): Initialize it.
11735
11736 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11737
11738         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11739         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11740         predicate in "type" attribute calculation.
11741         (*addsi_1_zext): Ditto.
11742         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11743         (*addsi_2_zext): Ditto.
11744         (*add<mode>_3): Ditto.
11745         (*addsi_3_zext): Ditto.
11746         (*add<mode>_5): Ditto.
11747
11748 2010-06-03  Jan Hubicka  <jh@suse.cz>
11749
11750         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11751         of bitmap_bit_p.
11752         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11753
11754 2010-06-03  Jan Hubicka  <jh@suse.cz>
11755
11756         * df-problems.c (df_create_unused_note, df_note_bb_compute):
11757         micro-optimize the checks when to add new note.
11758
11759 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
11760
11761         * final.c (output_asm_insn): Call
11762         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
11763         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
11764         (output_address): Call targetm.asm_out.print_operand_address.
11765         Update comments.
11766         * target.h (struct gcc_target): Add print_operand,
11767         print_operand_address, and print_operand_punct_valid_p fields.
11768         * targhooks.h (default_print_operand): Declare.
11769         (default_print_operand_address): Declare.
11770         (default_print_operand_punct_valid_p): Declare.
11771         * targhooks.c (default_print_operand): Define.
11772         (default_print_operand_address): Define.
11773         (default_print_operand_punct_valid_p): Define.
11774         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11775         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11776         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11777         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11778         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11779         * vmsdbgout.c (addr_const_to_string): Update comment.
11780         * config/i386/i386.c (print_operand): Rename to...
11781         (ix86_print_operand): ...this.  Make static.
11782         (print_operand_address): Rename to...
11783         (ix86_print_operand_address): ...this.  Make static.  Call
11784         ix86_print_operand instead of PRINT_OPERAND.
11785         (ix86_print_operand_punct_valid_p): New function.
11786         (TARGET_PRINT_OPERAND): Define.
11787         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11788         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11789         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11790         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11791         (PRINT_OPERAND): Delete.
11792         (PRINT_OPERAND_ADDRESS): Delete.
11793         * config/i386/i386-protos.h (print_operand): Delete prototype.
11794         (print_operand_address): Delete prototype.
11795
11796 2010-06-03  Richard Guenther  <rguenther@suse.de>
11797
11798         PR tree-optimization/44403
11799         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11800         Preserve pointer qualifiers.
11801         (vect_create_data_ref_ptr): Likewise.
11802
11803 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11804
11805         PR c++/44294
11806         * defaults.h (MAX_FIXED_MODE_SIZE): New.
11807
11808         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11809
11810 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
11811
11812         PR debug/44375
11813         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11814         return false if merging the bbs would lead to goto_locus
11815         location being lost from the IL.
11816
11817 2010-06-03  Jan Hubicka  <jh@suse.cz>
11818             Jakub Jelinek  <jakub@redhat.com>
11819
11820         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11821         set->regs[i] is NULL or has just one entry.
11822
11823 2010-06-03  Jan Hubicka  <jh@suse.cz>
11824
11825         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11826         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11827
11828 2010-06-03  Paul Brook  <paul@codesourcery.com>
11829
11830         * config/arm/arm.c (FL_TUNE): Define.
11831         (arm_default_cpu, arm_cpu_select): Remove.
11832         (all_cores): Populate core field.
11833         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11834         (arm_find_cpu): New function.
11835         (arm_handle_option): Lookup cpu/architecture names.
11836         (arm_override_options): Cleanup mcpu/march/mtune handling.
11837         (arm_file_start): Ditto.
11838
11839 2010-06-03  Alan Modra  <amodra@gmail.com>
11840
11841         PR target/44169
11842         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11843         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11844         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11845         (rs6000_emit_load_toc_table): Likewise.
11846
11847 2010-06-02  Jan Hubicka  <jh@suse.cz>
11848
11849         * passes.c (init_optimization_passes): Put ipa reference
11850         after ipa pure-const.
11851
11852 2010-06-02  Jan Hubicka  <jh@suse.cz>
11853
11854         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11855         calls_read_all and calls_write_all.
11856         (get_reference_optimization_summary): Fix formatting.
11857         (is_proper_for_analysis): Check that decl is not readonly.
11858         (propagate_bits): Check CONST/PURE/noreturn flags.
11859         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11860         (analyze_function): Ignore indirect edges.
11861         (copy_global_bitmap): For all module statics, do nothing.
11862         (generate_summary): Do not print calls_read_all/calls_write_all.
11863         (read_write_all_from_decl): Take node as argument; check
11864         cgraph_node_cannot_return.
11865         (propagate): Reorganize read_all/write_all computation;
11866         check indirect edges; check ecf flags; use all_module_statics
11867         in the results; do not free all_module_statics.
11868         (stream_out_bitmap): Handle all_module_statics.
11869         (ipa_reference_write_optimization_summary): Likewise; use
11870         varpool/cgraph encoders to get boundaries.
11871         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11872         use it when possible.
11873
11874 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11875
11876         PR target/44218
11877         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11878         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11879
11880         * doc/extend.texi (powerpc builtins): Document vec_recip,
11881         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11882
11883         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11884         (rs6000_emit_swrsqrt): Ditto.
11885         (rs6000_emit_swdivsf): Delete.
11886         (rs6000_emit_swdivdf): Ditto.
11887         (rs6000_emit_swrsqrtsf): Ditto.
11888
11889         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11890         describe the reciprocal estimate support for each type.
11891         (recip_options): Map -mrecip=<opt> into option bits.
11892         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11893         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11894         reciprocal estimate instructions.
11895         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11896         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11897         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11898         cost information if -mdebug=cost or -mdebug=reg.
11899         (rs6000_override_options): Set -mrecip-precision for power6, and
11900         power7 machines.  If -mvsx or -mdfp, enable various options that
11901         came in previous instruction set ISAs, unless the option was
11902         explicitly disabled by the command line option.  Parse
11903         -mrecip=<opt> options.
11904         (rs6000_builtin_vectorized_function): Add support for vectorizing
11905         the reciprocal estimate builtins and expansions.
11906         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11907         (bdesc_2arg): Add reciprocal estimate builtins.
11908         (bdesc_1arg): Add reciprocal square root estimate builtins.
11909         (rs6000_expand_builtin): Rewrite to use a switch statement,
11910         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11911         (rs6000_init_builtins): Create declarations for reciprocal
11912         estimate builtins.
11913         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11914         sized, prefer traditional floating point registers, if integer
11915         vector types, prefer altivec registers.  Don't actually look at
11916         the memory address any more.
11917         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11918         builtins.
11919         (rs6000_load_constant_and_splat): New helper function to load up
11920         the constant for reciprocal estimate instructions.
11921         (rs6000_emit_madd): New helper function for generating
11922         multiply/add type instructions, based on the current switches.
11923         (rs6000_emit_msub): Ditto.
11924         (rs6000_emit_mnsub): Ditto.
11925         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11926         replace a divide with a reciprocal estimate and fixup, adding
11927         support for machines with high precision and vectors.
11928         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11929         low precision machines.
11930         (rs6000_emit_swdiv): New common function to be called to replace a
11931         division with reciprocal estimate and fixup.
11932         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11933         for double and vector types.  Add support for high precision machines.
11934
11935         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11936         the reciprocal estimate instructions can be generated.
11937         (TARGET_FRE): Ditto.
11938         (TARGET_FRSQRTES): Ditto.
11939         (TARGET_FRSQRTE): Ditto.
11940         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11941
11942         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11943         square root estimate on vectors.
11944         (re<mode>2): New insn for reciprocal division estimate on vectors.
11945
11946         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11947         New builtin.
11948         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11949         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11950         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11951         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11952         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11953         (RS6000_BUILTIN_RSQRT): Ditto.
11954         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11955         floating point builtin.
11956
11957         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11958         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11959         __RECIP_PRECISION__ based on the command line switches.
11960         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11961
11962         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11963         replacing division instructions with reciprocal estimate and fixup.
11964         (-mrecip=<opt>): New option.
11965         (-mrecip-precision): Ditto.
11966
11967         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11968         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11969         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11970         precision scalar.
11971
11972         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11973         (UNSPEC_VREFP): Ditto.
11974         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11975         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11976         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11977         reciprocal estimate instructions to be generated.
11978         (altivec_vrefp): Ditto.
11979
11980         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11981         estimate support.
11982         (rreg): New mode attribute for reciprocal estimate support.
11983         (recip<mode>3): New insn for division using reciprocal estimate
11984         and fixup builtins.
11985         (divide define_split): New define_split to convert floating point
11986         division to use reciprocal estimate if the user used the
11987         appropriate options and the split is run when we can add new
11988         pseudo registers for the fixup.
11989         (rsqrt<mode>2): New insn for reciprocal square root support.
11990         (recipsf3): Move into recip<mode>3.
11991         (recipdf3): Ditto.
11992         (fres): Use TARGET_FRES.
11993         (rsqrtsf2): Move into rsqrt<mode>2.
11994         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11995         (copysignsf3): Add support for VSX.
11996         (fred): Use TARGET_FRE.
11997         (fred_fpr): Ditto.
11998         (rsqrtdf_internal1): New function for frsqrte instruciton.
11999
12000         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
12001         (vec_rsqrt): Ditto.
12002
12003 2010-06-03  Richard Guenther  <rguenther@suse.de>
12004
12005         PR middle-end/44291
12006         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
12007         (set_user_assembler_libfunc): Likewise.
12008
12009 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12010
12011         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
12012         defaults.h.
12013         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
12014         to defaults.h
12015         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
12016         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
12017         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
12018         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
12019         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
12020         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
12021         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
12022         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
12023         * defaults.h: Updated for above mentioned changes.
12024
12025 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
12026
12027         * c-common.c: Remove header include of tm_p.h.
12028         * Makefile.in (c-common.o): Remove TM_P_H dependency.
12029
12030 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
12031
12032         * tree.h (struct tree_decl_map): New type.
12033         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
12034         (tree_decl_map_hash): New prototype.
12035         (debug_expr_for_decl, value_expr_for_decl): Change into
12036         tree_decl_map hashtab from tree_map.
12037         (init_ttree): Adjust initialization.
12038         (tree_decl_map_hash): New function.
12039         (decl_debug_expr_lookup, decl_debug_expr_insert,
12040         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
12041
12042 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12043
12044         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
12045         linker emulations.
12046         * configure: Regenerate.
12047         * config.in: Regenerate.
12048
12049         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
12050         (X86_64_EMULATION): Define.
12051         (TARGET_LD_EMULATION): Use them.
12052
12053         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
12054         (SPARC64_EMULATION): Define.
12055         (LINK_ARCH_SPEC): Use them.
12056
12057 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12058
12059         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
12060         smallest_mode_for_size for computing the precision types of new
12061         graphite IVs.  Do not call lang_hooks.types.type_for_size.
12062
12063 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12064
12065         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
12066         information.
12067         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
12068
12069 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12070
12071         PR middle-end/44363
12072         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
12073         return false instead.
12074
12075 2010-06-02  Jan Hubicka  <jh@suse.cz>
12076
12077         PR middle-end/44295
12078         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
12079         create new cgraph node to check callee.
12080
12081 2010-06-02  Richard Guenther  <rguenther@suse.de>
12082
12083         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
12084
12085 2010-06-02  Richard Guenther  <rguenther@suse.de>
12086
12087         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
12088         (lto_wrapper_cleanup): ... this.  Do not exit.
12089         (fatal): Adjust.  Exit here.
12090         (fatal_perror): Likewise.
12091         (fatal_signal): New function.
12092         (main): Set up signal handlers to cleanup temporary files.
12093         * Makefile.in (lto-wrapper.o): Adjust dependencies.
12094
12095 2010-06-02  Richard Guenther  <rguenther@suse.de>
12096
12097         PR tree-optimization/44377
12098         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
12099
12100 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12101
12102         * config/s390/2097.md (z10_fhex): Remove insn reservation.
12103         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
12104         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
12105         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
12106         instruction.
12107         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
12108
12109 2010-06-02  Jan Hubicka  <jh@suse.cz>
12110
12111         * bitmap.c (bitmap_descriptor): Add search_iter.
12112         (bitmap_find_bit): Increment it.
12113         (print_statistics): Print it.
12114
12115 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
12116
12117         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
12118         instead of gimple_build_call_vec.  Delete unnecessary local variable.
12119
12120 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12121
12122         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
12123         change from yesterday.
12124
12125 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12126
12127         * c-ada-spec.c: Clean up redundant includes.
12128
12129 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
12130
12131         * gimplify.c: Do not include except.h and optabs.h.
12132         (gimplify_body): Do not initialize RTL profiling.
12133         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
12134         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
12135         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
12136         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
12137         langhooks.h.
12138
12139         * tree-pretty-print.h: Include pretty-print.h.
12140         * gimple-pretty-print.h: Include pretty-print.h.
12141
12142         * tree-pretty-print.c: Do not include diagnostic.h.
12143         * tree-vrp.c: Likewise.
12144         * tree-tailcall.c: Likewise
12145         * tree-scalar-evolution.c: Likewise
12146         * tree-ssa-dse.c: Likewise
12147         * tree-chrec.c: Likewise
12148         * tree-ssa-sccvn.c: Likewise
12149         * tree-ssa-copyrename.c: Likewise
12150         * tree-nomudflap.c: Likewise
12151         * tree-call-cdce.c: Likewise
12152         * tree-stdarg.c: Likewise
12153         * tree-ssa-math-opts.c: Likewise
12154         * tree-nrv.c: Likewise
12155         * tree-ssa-sink.c: Likewise
12156         * tree-browser.c: Likewise
12157         * tree-ssa-loop-ivcanon.c: Likewise
12158         * tree-ssa-loop.c: Likewise
12159         * tree-parloops.c: Likewise
12160         * tree-ssa-address.c: Likewise
12161         * tree-ssa-ifcombine.c: Likewise
12162         * tree-if-conv.c: Likewise
12163         * tree-data-ref.c: Likewise
12164         * tree-affine.c: Likewise
12165         * tree-ssa-phiopt.c: Likewise
12166         * tree-ssa-coalesce.c: Likewise
12167         * tree-ssa-pre.c: Likewise
12168         * tree-ssa-live.c: Likewise
12169         * tree-predcom.c: Likewise
12170         * tree-ssa-forwprop.c: Likewise
12171         * tree-ssa-dce.c: Likewise
12172         * tree-ssa-ter.c: Likewise
12173         * tree-ssa-loop-prefetch.c: Likewise
12174         * tree-optimize.c: Likewise
12175         * tree-ssa-phiprop.c: Likewise
12176         * tree-object-size.c: Likewise
12177         * tree-outof-ssa.c: Likewise
12178         * tree-ssa-structalias.c: Likewise
12179         * tree-switch-conversion.c: Likewise
12180         * tree-ssa-reassoc.c: Likewise
12181         * tree-ssa-operands.c: Likewise
12182         * tree-vectorizer.c: Likewise
12183         * tree-vect-data-refs.c: Likewise
12184         * tree-vect-generic.c: Likewise
12185         * tree-vect-stmts.c: Likewise
12186         * tree-vect-patterns.c: Likewise
12187         * tree-vect-slp.c: Likewise
12188         * tree-vect-loop.c: Likewise
12189         * tree-ssa-loop-ivopts.c: Likewise
12190         * tree-ssa-loop-im.c: Likewise
12191         * tree-ssa-loop-niter.c: Likewise
12192         * tree-ssa-loop-unswitch.c: Likewise
12193         * tree-ssa-loop-manip.c: Likewise
12194         * tree-ssa-loop-ch.c: Likewise
12195         * tree-dump.c: Likewise
12196         * tree-complex.c: Likewise
12197
12198         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
12199         * tree-ssa-uninit.c: Likewise
12200         * tree-ssa-threadupdate.c: Likewise
12201         * tree-ssa-uncprop.c: Likewise
12202         * tree-ssa-ccp.c: Likewise
12203         * tree-ssa-dom.c: Likewise
12204         * tree-ssa-propagate.c: Likewise
12205         * tree-ssa-alias.c: Likewise
12206         * tree-dfa.c: Likewise
12207         * tree-cfgcleanup.c: Likewise
12208         * tree-sra.c: Likewise
12209         * tree-ssa-copy.c: Likewise
12210         * tree-ssa.c: Likewise
12211         * tree-profile.c: Likewise
12212         * tree-cfg.c: Likewise
12213         * tree-ssa-threadedge.c: Likewise
12214         * tree-vect-loop-manip.c: Likewise
12215
12216         * tree-inline.c: Do not include diagnostic.h and expr.h.
12217         Include rtl.h.
12218         (copy_decl_for_dup_finish): Do not use NULL_RTX.
12219
12220         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
12221         * tree-loop-distribution.c: Likewise.
12222
12223 2010-06-01  Jan Hubicka  <jh@suse.cz>
12224
12225         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
12226
12227 2010-06-01  Jan Hubicka  <jh@suse.cz>
12228
12229         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
12230         remove return value.
12231         (split_bbs_on_noreturn_calls) .... here.
12232         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
12233         * tree-flow.h (fixup_noreturn_call): New.
12234
12235 2010-06-01  Jan Hubicka  <jh@suse.cz>
12236
12237         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
12238
12239 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
12240
12241         * tree.h (build_nt_call_list): Delete.
12242         * tree.c (build_nt_call_list): Delete.
12243
12244 2010-06-01  Jan Hubicka  <jh@suse.cz>
12245
12246         * fwprop.c: Make emit-rtl.h include last.
12247         * rtlanal.c: Include emit-rtl.h.
12248         * genautomata.c: Output emit-rtl include into insn-automata.c
12249         * df-scan.c: Include emit-rtl.h.
12250         * haifa-sched.c: Indlude emit-rtl.h.
12251         * mode-switching.c: Indlude emit-rtl.h.
12252         * graph.c: Indlude emit-rtl.h.
12253         * sel-sched.c: Include emit-rtl.h.
12254         * sel-sched-ir.c: Include emit-rtl.h.
12255         * ira-build.c: Include emit-rtl.h.
12256         * emit-rtl.c (first_insn, last_insn): Remove defines.
12257         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
12258         Move to emit-rtl.h.
12259         (set_new_first_and_last_insn, get_last_insn_anywhere,
12260         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
12261         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
12262         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
12263         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
12264         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
12265         Use accessor functions.
12266         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
12267          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
12268         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
12269         mem_expr_equal_p): Move here from rtl.h.
12270         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
12271         Move here from emit-rtl.c; make inline.
12272         * cfglayout.h: Include emit-rtl.h.
12273         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
12274          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
12275         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
12276         mem_expr_equal_p, get_insns, set_first-insn,
12277         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
12278         * reg-stack.c: Include emit-rtl.h.
12279         * dce.c: Likewise.
12280
12281 2010-06-01  Jan Hubicka  <jh@suse.cz>
12282
12283         * cgraph.h (tree_function_versioning): Update prototype.
12284         (cgraph_function_versioning): Update prototype.
12285         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
12286         bitmap.
12287         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
12288         (cgraph_materialize_clone, save_inline_function_body): Update use of
12289         tree_function_versioning.
12290         * tree-inline.c (copy_bb): Look for previous copied block to link
12291         after; fix debug output.
12292         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
12293         (copy_body): Likewise.
12294         (expand_call_inline): Update use of copy_body.
12295         (tree_function_versioning): Update use of copy body; accept
12296         blocks_to_copy and new_entry.
12297
12298 2010-06-01  Jan Hubicka  <jh@suse.cz>
12299
12300         * gegenrtl.c: Remove unnecesary prototypes.
12301         (gendecl): Remove.
12302         (gendef): Produce static inline.
12303         (gencode): Remove.
12304         (main): Do not decode parameters; generate header only.
12305         * Makefile.in (genrtl.c): Remove.
12306
12307 2010-06-01  Jan Hubicka  <jh@suse.cz>
12308
12309         * tree-switch-conversion.c (build_one_array): Make it readonly.
12310
12311 2010-06-01  Richard Guenther  <rguenther@suse.de>
12312
12313         * optabs.c (init_optabs): Guard all accesses to reinit.
12314         * ipa-pure-const.c (propagate): Fix another typo.
12315         * opts.c (common_handle_option): Split assignment to bool.
12316         * c-opts.c (c_common_handle_option): Likewise.
12317
12318 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
12319             Matthew Gingell  <gingell@adacore.com>
12320
12321         * doc/invoke.texi: Mention -fdump-ada-spec.
12322         * tree-dump.c (dump_files): Add ada-spec.
12323         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
12324         * tree-pass.h (tree_dump_index): Add TDI_ada.
12325         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
12326         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
12327         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
12328         * c-decl.c: Include c-ada-spec.h.
12329         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
12330         functions.
12331         (c_write_global_declarations): Add handling of -fdump-ada-spec.
12332         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
12333         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
12334         * c-ada-spec.h, c-ada-spec.c: New files.
12335
12336 2010-06-01  Richard Guenther  <rguenther@suse.de>
12337
12338         PR lto/43853
12339         * ipa-pure-const.c (get_function_state): Hand back varying state
12340         if we do not have one.
12341         (has_function_state): New function.
12342         (duplicate_node_data): Adjust.
12343         (remove_node_data): Likewise.
12344         (pure_const_write_summary): Likewise.
12345         (propagate): Likewise.  Fix typo.
12346
12347 2010-06-01  Jan Hubicka  <jh@suse.cz>
12348
12349         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
12350         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
12351         (execute_all_ipa_transforms): Do not play with the states.
12352
12353 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
12354
12355         * config/arm/t-linux-androideabi: New.
12356         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
12357
12358 2010-06-01  Jan Hubicka  <jh@suse.cz>
12359
12360         * tree-inline.c (estimate_num_insns): For stdarg functions look
12361         into call statement to count cost of argument passing.
12362
12363 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
12364
12365         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
12366         argument for fprintf.
12367         (ix86_output_addr_diff_elt): Likewise.
12368         (x86_function_profiler): Likewise.
12369         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
12370         (LPREFIX): Likewise.
12371         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
12372
12373 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12374
12375         PR target/44338
12376         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
12377         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
12378         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
12379         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
12380         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
12381         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
12382         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
12383         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
12384         TARGET_FUSED_MADD.
12385
12386 2010-05-31  Jan Hubicka  <jh@suse.cz>
12387
12388         * tree.h (tree_range_check_failed): Declare noreturn.
12389
12390 2010-05-31  Jan Hubicka  <jh@suse.cz>
12391
12392         * gimple.c (gimple_call_builtin_p): New function.
12393         * gimple.h (gimple_call_builtin_p): Declare.
12394         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
12395         to exit.
12396         (execute_warn_function_return): BUILT_IN_RETURN is return.
12397         (split_critical_edges): Return edges are not critical.
12398         (is_ctrl_altering_stmt): Builtin_in_return is altering.
12399         (gimple_verify_flow_info): Handle built_in_return.
12400         (execute_warn_function_return): Handle built_in_return.
12401         * ipa-pure-const.c (check_call): Ignore builtin_return.
12402
12403 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12404
12405         PR middle-end/44337
12406         * expr.c (expand_assignment): Don't store anything for out-of-bounds
12407         array accesses with non-MEM.
12408
12409         PR tree-optimization/44182
12410         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
12411         newly needs to end a bb is followed by debug stmts, instead return
12412         true from the function at the end.
12413         (maybe_move_debug_stmts_to_successors): New function.
12414         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
12415
12416 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
12417
12418         PR target/44161
12419         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
12420
12421 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12422
12423         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
12424         for nested functions in non-optimized compilation.
12425
12426 2010-05-31  Richard Guenther  <rguenther@suse.de>
12427
12428         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
12429
12430 2010-05-30  Jan Hubicka  <jh@suse.cz>
12431
12432         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
12433
12434 2010-05-30  Richard Guenther  <rguenther@suse.de>
12435
12436         PR lto/42975
12437         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
12438         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
12439         no longer needed.
12440
12441 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
12442
12443         * config/darwin.c (output_objc_section_asm_op): Add comment.
12444         (name_needs_quotes): Add '_' to list of valid comment chars.
12445         (machopic_output_function_base_name): Remove unneeded quotes.
12446         (darwin_encode_section_info): Adjust asm whitespace.
12447         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
12448         (ASM_OUTPUT_LOCAL): Ditto.
12449         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
12450         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
12451         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
12452
12453 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12454
12455         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
12456         RS6000_OUTPUT_BASENAME unconditionally.
12457         (rs6000_output_function_epilogue): Likewise.
12458
12459 2010-05-30  Jan Hubicka  <jh@suse.cz>
12460
12461         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
12462         nodes.
12463
12464 2010-05-30  Richard Guenther  <rguenther@suse.de>
12465
12466         * tree-cfg.c (verify_gimple_assign_single): Implement
12467         verification for COND_EXPR rhs.
12468
12469 2010-05-30  Jan Hubicka  <jh@suse.cz>
12470
12471         * cgraph.h (cgraph_dump_file): Declare.
12472         * cgraphunit.c (cgraph_dump_file): Export.
12473         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
12474
12475 2010-05-30  Jan Hubicka  <jh@suse.cz>
12476
12477         * dwarf2out.c (reference_to_unused,
12478         premark_types_used_by_global_vars_helper): Avoid creation of new
12479         varpool nodes.
12480
12481 2010-05-30  Jan Hubicka  <jh@suse.cz>
12482
12483         * cgraph.h (cgraph_node_cannot_return,
12484         cgraph_edge_cannot_lead_to_return): New functions.
12485         * cgraph.c (cgraph_node_cannot_return,
12486         cgraph_edge_cannot_lead_to_return): Use them.
12487         * ipa-pure-const.c (pure_const_names): New static var.
12488         (check_call): Handle calls not leading to return.
12489         (pure_const_read_summary): Dump info read.
12490         (propagate): Dump info about propagation process; ignore side effects
12491         of functions not leading to exit; fix handling of pure functions.
12492
12493 2010-05-30  Jan Hubicka  <jh@suse.cz>
12494
12495         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
12496         for tail call epilogues.
12497
12498 2010-05-30  Jan Hubicka  <jh@suse.cz>
12499
12500         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
12501         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
12502         dump files.
12503
12504 2010-05-29  Jan Hubicka  <jh@suse.cz>
12505
12506         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
12507         node; remove references in node we no longer keep in cgrpah but need
12508         body of.
12509
12510 2010-05-29  Jan Hubicka  <jh@suse.cz>
12511
12512         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
12513
12514 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12515
12516         PR target/44165
12517         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
12518
12519 2010-05-29  Jan Hubicka  <jh@suse.cz>
12520
12521         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
12522         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
12523         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
12524         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
12525         debug_names_replaced_by, debug_update_ssa): Likewise.
12526         * sbitmap.c (debug_sbitmap): Likewise.
12527         * genrecog.c (debug_decision, debug_decision_list): Likewise.
12528         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
12529         debug_tree_chain): Likewise.
12530         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
12531         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
12532         * optabs.c (debug_optab_libfuncs): Likewise.
12533         (verify_loop_closed_ssa): Likewise.
12534         * value-prof.c (verify_histograms): Likewise.
12535         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
12536         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
12537         * cfghooks.c (verify_flow_info): Likewise.
12538         * fold-const.c (debug_fold_checksum): Likewise.
12539         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
12540         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
12541         Likewise.
12542         * omega.c (debug_omega_problem): Likewise.
12543         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
12544         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12545         * dominance.c (verify_dominators, debug_dominance_info,
12546         debug_dominance_tree): Likewise.
12547         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
12548         * df_regno_debug, df_ref_debug,
12549         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
12550         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
12551         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
12552         * sel-sched.c (debug_state): Likewise.
12553         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
12554         Likewise.
12555         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
12556         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
12557         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
12558         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
12559         Likewise.
12560         * c-pretty-print.c (debug_c_tree): Likewise.
12561         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
12562         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
12563         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
12564         * ebitmap.c (debug_ebitmap): Likewise.
12565         * function.c (debug_find_var_in_block_tree): Likewise.
12566         * print-rtl.c (debug_rtx): Likewise.
12567         (debug_rtx_count): Likewise.
12568         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
12569         * stor-layout.c (debug_rli): Likewise.
12570         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
12571         * tree-data-ref.c (debug_data_references,
12572         debug_data_dependence_relations, debug_data_reference,
12573         debug_data_dependence_relation, debug_rdg_vertex,
12574         debug_rdg_component, debug_rdg): Likewise.
12575         * tree-affine.c (debug_aff): Likewise.
12576         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
12577         Likewise.
12578         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
12579         * emit-rtl.c (verify_rtl_sharing): Likewise.
12580         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
12581         debug_value_expressions): Likewise.
12582         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
12583         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
12584         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
12585         * cfglayout.c (verify_insn_chain): Likewise.
12586         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
12587         debug_clast_stmt, debug_generated_program): Likewise.
12588         * ggc-page.c (debug_print_page_list): Likewise.
12589         * tree-ssa-ter.c (debug_ter): Likewise.
12590         * graphite-dependences.c (debug_pddr): Likewise.
12591         * sched-deps.c (debug_ds): Likewise.
12592         * tree-ssa.c (verify_ssa): Likewise.
12593         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
12594         debug_scattering_functions, debug_iteration_domains, debug_pdr,
12595         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
12596         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
12597         * tree-inline.c (debug_find_tree): Likewise.
12598         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
12599         debug_ppl_powerset_matrix): Likewise.
12600         * var-tracking.c (debug_dv): Likewise.
12601         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
12602         * cfgloop.c (verify_loop_structure): Likewise.
12603         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
12604         * c-common.c (verify_sequence_points): Likewise.
12605         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
12606         debug_candidates, debug_rgn_dependencies): Likewise.
12607         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
12608         * debug_constraint_graph, debug_solution_for_var,
12609         debug_sa_points_to_info): Likewise.
12610         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
12611         Likewie.
12612         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
12613         debug_loops, debug_loop, debug_loop_num): Likewise.
12614         * passes.c (debug_pass): Likewise.
12615         (dump_properties): Likewise; add cfglayout property.
12616         (debug_properties): Likewise.
12617         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
12618         * varpool.c (debug_varpool): Likewise.
12619         * regcprop.c (debug_value_data): Likewise.
12620         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
12621         debug_immediate_uses_for): Likewise.
12622
12623 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12624
12625         PR bootstrap/44315
12626         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
12627         Filter out insn-flags.h.
12628
12629 2010-05-29  Jan Hubicka  <jh@suse.cz>
12630
12631         * cgraph.h (struct varpool_node_set_def,
12632         struct cgraph_node_set_def): Remove unused AUX pointer.
12633         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
12634         VEC_empty macro.
12635
12636 2010-05-29  Jan Hubicka  <jh@suse.cz>
12637
12638         PR middle-end/44324
12639         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
12640
12641 2010-05-29  Richard Guenther  <rguenther@suse.de>
12642
12643         * lto-streamer.c (cached_bp): New global variable.
12644         (bitpack_create): Return the cached bitpack, if available.
12645         (bitpack_delete): Clear and cache the bitpack, if appropriate.
12646         (bp_pack_value): Remove redundant asserts.
12647
12648 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12649
12650         PR middle-end/44306
12651         * tree-if-conv.c (is_true_predicate): New.
12652         (is_predicated): Use is_true_predicate.
12653         (add_to_predicate_list): Same.  Do not use unshare_expr.
12654         (add_to_dst_predicate_list): Same.
12655
12656 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12657
12658         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12659         field on edges.
12660         (predicate_bbs): Same.
12661         (clean_predicate_lists): Same.
12662         (find_phi_replacement_condition): Do not AND the predicate from
12663         edge->aux.
12664
12665 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12666
12667         PR bootstrap/44315
12668         * Makefile.in (build/gencondmd.o): Add a missing `\'.
12669
12670 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12671
12672         PR target/44261
12673         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12674         (negdf2): Adjust expander pattern and use negdf2_slow.
12675         (negsf2): Likewise.
12676
12677 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
12678
12679         * basic-block.h (struct control_flow_graph): Move last_label_uid field
12680         up.
12681         * df.h (struct df_base_ref): Move regno field up.
12682         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12683         * expr.h (struct separate_ops): Move location field up.
12684         * optabs.h (struct optab_d): Move libcall_basename field down.
12685         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12686         * config/i386/i386.h (struct machine_function): Convert call_abi field
12687         into a bitfield.  Move cfa field to the end of the structure.
12688
12689 2010-05-29  Jan Hubicka  <jh@suse.cz>
12690
12691         * varpool.c (varpool_get_node): Fix lookup.
12692
12693 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12694
12695         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
12696         RTL specific prototypes with #ifdef RTX_CODE.
12697         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12698         * config/spu/t-spu-elf: Fix dependencies.
12699
12700         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12701
12702 2010-05-29  Mike Stump  <mikestump@comcast.net>
12703
12704         PR bootstrap/44315
12705         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12706         TM_H when building to avoid dependency loops.
12707
12708 2010-05-29  Jan Hubicka  <jh@suse.cz>
12709
12710         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12711         refs and body; not the whole node for masters of materialized clones.
12712
12713 2010-05-29  Mike Stump  <mikestump@comcast.net>
12714
12715         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12716
12717 2010-05-29  Jan Hubicka  <jh@suse.cz>
12718
12719         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12720         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12721         use of clone_function_name.
12722         * cgraph.h (cgraph_create_virtual_clone,
12723         cgraph_function_versioning): update prototypes.
12724         (clone_function_name): Declare.
12725         * ipa-cp.c (ipcp_insert_stage): Update call of
12726         cgraph_create_virtual_clone.
12727         * omp-low.c (create_omp_child_function_name): Use
12728         cgraph_create_virtual_clone.
12729         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12730         (cgraph_function_versioning): Take SUFFIX argument; produce new name
12731         and make decl local.
12732
12733 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12734
12735         * vec.h: Include statistics.h
12736         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
12737         with VEC_H.
12738
12739 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12740
12741         * c-lex.c: Do not include c-tree.h.
12742         * c-pretty-print.c: Likewise.
12743         * c-opts.c: Likewise.
12744         * c-gimplify.c: Likewise.
12745         * c-common.c: Likewise.
12746         * c-dump.c: Likewise.  Include c-common.h.
12747
12748 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12749
12750         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12751         before including diagnostic-core.h.
12752         (c_cpp_error): New prototype moved from c-tree.h.
12753         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12754         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12755         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12756         (c_cpp_error): Prototype moved to c-common.h.
12757         * Makefile.in: Update dependency for C_COMMON_H.
12758
12759 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12760
12761         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12762         * c-common.c (c_register_addr_space): Remove here.
12763         * c-decl.c (c_register_addr_space): Re-add here.
12764
12765 2010-05-28  Mike Stump  <mikestump@comcast.net>
12766
12767         * config/darwin-c.c: Remove c-tree.h include.
12768
12769 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12770
12771         * gcc.c: Include diagnostic.h.
12772         (error_count): Remove.  All users changed to use errorcount.
12773         (programname): Remove.  All users changed to use progname.
12774         (fancy_abort, internal_error, fatal_error, error, warning, inform,
12775         fnotice): Remove.
12776         (execute): Don't include "Internal error" and bug reporting
12777         information in argument of internal_error call.
12778         (process_command): Don't increment error_count after calling
12779         perror_with_name.
12780         (input_filename): Rename to gcc_input_filename.  All users
12781         changed.
12782         (main): Call diagnostic_initialize.  Register delete_temp_files
12783         with atexit.  Use seen_error to test for errors.
12784         * gcc.h: Include diagnostic-core.h.
12785         (fatal_error, error, warning): Remove.
12786         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12787         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12788         (gcc.o): Update dependencies.
12789
12790 2010-05-28  Jeff Law  <law@redhat.com>
12791
12792         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12793         functions.
12794         * ira.h (ira_bad_reload_regno): Declare
12795         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12796
12797         * ira-color.c (update_curr_costs): Free updated hard reg costs.
12798         (ira_reassign_conflict_allocnos): Remove bogus asserts.
12799         (allocno_reload_assign): Likewise.
12800
12801 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
12802
12803         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12804         build1_stat.
12805
12806 2010-05-28  Richard Guenther  <rguenther@suse.de>
12807
12808         PR lto/44312
12809         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12810         Stream fixed-point constants mode.
12811         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12812         and TYPE_PRECISION.
12813         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12814         Stream fixed-point constants mode.
12815         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12816         and TYPE_PRECISION.
12817
12818 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12819
12820         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12821         only place it was called from.
12822         (number_of_latch_executions): Do not return chrec_dont_know when the
12823         may_be_zero is a runtime condition: instead, return a COND_EXPR
12824         including the may_be_zero condition.
12825         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12826         of nb_iterations.
12827         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12828         COND_EXPRs.
12829
12830 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12831
12832         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12833         generate COND_EXPRs for degenerate_phi_result.
12834
12835 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12836
12837         PR middle-end/44293
12838         * tree-if-conv.c (if_convertible_loop_p): Check the
12839         if-convertibility of phi nodes in non predicated BBs.
12840
12841 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12842
12843         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12844
12845 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12846
12847         PR driver/15303
12848         * gcc.c (inform, warning, inform): New functions.
12849         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12850         gmsgid.  All callers changed.
12851         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12852         (fatal_error): Rename to fatal_signal.  All users changed.
12853         (fatal): Rename to fatal_error; change cmsgid parameter to
12854         gmsgid.  All callers changed.
12855         (process_command): Use warning instead of error for warnings.
12856         (end_going_arg): Don't use _() around argument of error.
12857         (do_spec_1): Use inform for message from %n specs.  Use warning
12858         instead of error for warnings.
12859         (main): Use inform for comparison messages.  Use warning for
12860         message about unused linker input.
12861         (error): Increment error_count.  Print "error: ".
12862         * gcc.h (fatal): Change to fatal_error.
12863         (warning): Declare.
12864         * config/darwin-driver.c (darwin_default_min_version): Use warning
12865         instead of fprintf for warnings.
12866         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12867
12868 2010-05-28  Julian Brown  <julian@codesourcery.com>
12869
12870         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12871         (*thumb2_addsi3_compare0_scratch): New.
12872         * config/arm/constraints.md (Pv): New.
12873         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12874         for ARM mode only.
12875         (*addsi3_compare0_scratch): Likewise.
12876
12877 2010-05-28  Jan Hubicka  <jh@suse.cz>
12878
12879         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12880         check.
12881         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12882         only on local statics.
12883
12884 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12885
12886         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12887
12888 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12889
12890         PR bootstrap/44314
12891         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12892         (OPTION_GLIBC): Define.
12893
12894 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12895
12896         PR debug/41048
12897         * dwarf2out.c (double_int_type_size_in_bits): New function.
12898         (round_up_to_align): Change first argument and return value to
12899         double_int.
12900         (field_byte_offset): Work internally on double_ints.
12901
12902         PR target/43636
12903         * builtins.c (expand_movstr): Use a temporary pseudo instead
12904         of target even when target is not NULL and not const0_rtx, but
12905         fails movstr predicate.
12906         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12907
12908 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * final.c (rest_of_clean_state): Use %m in errors instead of
12911         strerror (errno).
12912         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12913         instead of strerror.
12914         * toplev.c (process_options): Use %m in errors instead of strerror
12915         (errno).
12916         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12917         (errno).
12918
12919 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12920
12921         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12922         (ix86_canonical_va_list_type): Make static.  Add declaration.
12923         (ix86_enum_va_list): Make static.  Reindent.
12924         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12925         (ix86_canonical_va_list_type): Ditto.
12926         (ix86_enum_va_list): Ditto.
12927
12928 2010-05-28  Richard Guenther  <rguenther@suse.de>
12929
12930         * lto-wrapper.c (run_gcc): With -save-temps generate a
12931         user-visible ltrans filename.  Fixup ltrans unit numbering.
12932
12933 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12934
12935         * c-common.c (c_common_nodes_and_builtins): Replace use
12936         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12937         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12938         to ix86_enum_va_list.
12939         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12940         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12941         (TARGET_ENUM_VA_LIST_P): Add hook description.
12942         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12943         * target.h (gcc_target): Add enum_va_list hook.
12944
12945         PR bootstrap/44299
12946         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12947         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12948         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12949
12950 2010-05-28  Alan Modra  <amodra@gmail.com>
12951
12952         PR target/44266
12953         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12954         emit_library_call machinery to set up __tls_get_addr calls.
12955
12956 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12957
12958         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12959
12960 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12961
12962         Revert fix for PR c++/44188
12963         * c-common.c (is_typedef_decl): Revert the moving of  this
12964         definition ...
12965         * tree.c (is_typedef_decl): ... here.
12966         (typdef_variant_p): Revert the moving of this  definition
12967         here from gcc/cp/tree.c.
12968         * c-common.h (is_typedef_decl): Revert the moving of this
12969         declaration ...
12970         * tree.h (is_typedef_decl): ... here.
12971         (typedef_variant_p): Revert the moving of this  declaration here
12972         from gcc/cp/cp-tree.h
12973         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12974         (gen_tagged_type_die): Revert the splitting out of ...
12975         (gen_type_die_with_usage): ... this function. Revert the anonymous
12976         tagged type handling.
12977         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12978         typedefs naming anonymous tagged types.
12979
12980 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12981
12982         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12983
12984 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12985
12986         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12987         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12988         throughout.
12989         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12990         "xer" to "ca".
12991         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12992         XER_REGS to CA_REGS throughout.
12993         * config/rs6000/rs6000.h: Same.
12994         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12995         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12996         that mode_iterator "P" is the size for arithmetic carries as well.
12997         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12998
12999 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
13000
13001         PR bootstrap/44255
13002         * combine.c (struct rtx_subst_pair): Define unconditionally.
13003         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
13004         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
13005         Call make_compound_operation on pair->to.
13006         (propagate_for_debug): Don't call make_compound_operation here.
13007         Always use simplify_replace_fn_rtx.
13008
13009 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
13010
13011         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
13012         * config/xtensa/xtensa.c (override_options): Check
13013           TARGET_FORCE_NO_PIC and set flag_pic.
13014         * config/xtensa/xtensa.opt: Document -mforce-no-pic
13015
13016 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
13017
13018         PR bootstrap/44299
13019         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
13020         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
13021
13022 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
13023
13024         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
13025         toplev.h.
13026         * diagnostic.c: Don't include toplev.h.
13027         (progname): Define.  Moved from toplev.c.
13028         (seen_error): New function.
13029         * diagnostic.h: Include diagnostic-core.h.
13030         (diagnostic_t, emit_diagnostic): Don't declare here.
13031         * toplev.c (progname): Move to toplev.c.
13032         (emit_debug_global_declarations, compile_file, finalize,
13033         do_compile, toplev_main): Use seen_error.
13034         * toplev.h: Include diagnostic-core.h.
13035         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
13036         internal_error, warning, warning_at, error, error_n, error_at,
13037         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
13038         verbatim, fnotice, progname): Move to diagnostic-core.h.
13039         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
13040         (expand_builtin_expect): Use seen_error.
13041         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
13042         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
13043         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
13044         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
13045         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
13046         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
13047         errorcount for errors.
13048         * c-opts.c (c_common_finish): Use seen_error.
13049         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13050         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
13051         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
13052         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
13053         (get_coverage_counts): Use seen_error.
13054         * dwarf2out.c (dwarf2out_finish): Use seen_error.
13055         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
13056         gimplify_body): Use seen_error.
13057         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
13058         * ipa-pure-const.c (gate_pure_const): Use seen_error.
13059         * ipa-reference.c (gate_reference): Use seen_error.
13060         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
13061         * lambda-code.c: Include diagnostic-core.h instead of
13062         diagnostic.h.
13063         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13064         * lto-compress.c: Include diagnostic-core.h instead of
13065         diagnostic.h.
13066         * lto-section-in.c: Include diagnostic-core.h instead of
13067         diagnostic.h.
13068         * lto-streamer-out.c: Include diagnostic-core.h instead of
13069         diagnostic.h.
13070         * lto-streamer.c: Include diagnostic-core.h instead of
13071         diagnostic.h.
13072         (gate_lto_out): Use seen_error.
13073         * matrix-reorg.c: Include diagnostic-core.h instead of
13074         diagnostic.h.
13075         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
13076         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
13077         (gate_expand_omp, lower_omp_1): Use seen_error.
13078         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
13079         (rest_of_decl_compilation, rest_of_type_compilation,
13080         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
13081         * tree-cfg.c (label_to_block_fn): Use seen_error.
13082         * tree-inline.c (optimize_inline_calls): Use seen_error.
13083         * tree-mudflap.c (mudflap_finish_file): Use
13084         seen_error.
13085         * tree-optimize.c (gate_all_optimizations,
13086         gate_all_early_local_passes, gate_all_early_optimizations): Use
13087         seen_error.
13088         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
13089         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
13090         (varpool_remove_unreferenced_decls,
13091         varpool_assemble_pending_decls): Use seen_error.
13092         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
13093         (TOPLEV_H, DIAGNOSTIC_H): Update.
13094         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
13095         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
13096         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
13097         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
13098         coverage.o, lambda-code.o): Update dependencies.
13099
13100 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
13101
13102         PR c++/44188
13103         * c-common.c (is_typedef_decl): Move this definition ...
13104         * tree.c (is_typedef_decl): ... here.
13105         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
13106         * c-common.h (is_typedef_decl): Move this declaration ...
13107         * tree.h (is_typedef_decl): ... here.
13108         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
13109         * dwarf2out.c (is_naming_typedef_decl): New function.
13110         (gen_tagged_type_die): Split out of ...
13111         (gen_type_die_with_usage): ... this function. When an anonymous
13112         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13113         is emitted for the typedef.
13114         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13115         anonymous tagged types.
13116
13117 2010-05-27  Jason Merrill  <jason@redhat.com>
13118
13119         * print-tree.c (debug_vec_tree): New fn.
13120         (print_vec_tree): New fn.
13121         * tree.h: Declare them.
13122         * gdbinit.in (pvt): New command.
13123
13124         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
13125
13126         * gdbinit.in (pdd): New command.
13127
13128 2010-05-27  Jan Hubicka  <jh@suse.cz>
13129
13130         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
13131         (update_caller_keys): Return early if there are no callers;
13132         only update fibheap when decresing the key.
13133         (update_callee_keys): Avoid recursion.
13134         (decide_inlining_of_small_functions): When badness does not match;
13135         re-insert into fibheap.
13136
13137 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
13138
13139         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
13140         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
13141         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
13142         (ALL_HOST_OBJS): Now a union of the above two.
13143         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
13144         all files in ALL_HOST_FRONTEND_OBJS.
13145         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
13146
13147         * c-common.c: Pretend to be a backend file by undefining
13148         IN_GCC_FRONTEND (still need rtl.h here).
13149
13150 2010-05-27  Jan Hubicka  <jh@suse.cz>
13151
13152         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
13153         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
13154
13155 2010-05-27  Jan Hubicka  <jh@suse.cz>
13156
13157         * sched-ebb.c: Rename struct deps to struct deps_desc.
13158         * ddg.c: Likewise.
13159         * sel-sched-ir.c: Likewise.
13160         * sched-deps.c: Likewise.
13161         * sched-int.h: Likewise.
13162         * sched-rgn.c: Likewise.
13163
13164 2010-05-27  Jon Beniston  <jon@beniston.com>
13165
13166         PR 43726
13167         * config/lm32/lm32.h: Remove definition of
13168         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
13169
13170 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13171
13172         PR lto/44230
13173         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
13174
13175 2010-05-27  Richard Guenther  <rguenther@suse.de>
13176
13177         PR tree-optimization/44284
13178         * tree-vect-stmts.c (vectorizable_assignment): Handle
13179         sign-changing conversions as simple copy.
13180
13181 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13182
13183         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
13184         Bionic C library.
13185         (__gthread_active_p): Check for pthread_create if compiling against
13186         Bionic C library.
13187
13188 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13189
13190         Support compilation for Android platform.  Reimplement -mandroid.
13191
13192         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
13193         (*android*): Set ANDROID_DEFAULT.
13194         (arm*-*-linux*): Include linux-android.h.
13195         (arm*-*-eabi*): Don't include previous -mandroid implementation.
13196         * config/arm/eabi.h: Remove, move Android-specific parts ...
13197         * config/linux-android.h: ... here.  New file.
13198         * config/arm/eabi.opt: Rename to ...
13199         * config/linux-android.opt: ... this.
13200         (mandroid): Allow -mno-android option.  Initialize based on
13201         ANDROID_DEFAULT.
13202         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
13203         Move logic to corresponding LINUX_TARGET_* macros.
13204         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
13205         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
13206         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
13207         Android definitions.
13208         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
13209         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
13210         Document.
13211
13212 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13213
13214         Add support for Bionic C library
13215
13216         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
13217         macro.
13218         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
13219         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
13220
13221         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
13222         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
13223         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
13224         to support multiple C libraries.  Handle Bionic.
13225         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
13226         (BIONIC_DYNAMIC_LINKER64): Define.
13227         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
13228         Update.
13229         (TARGET_HAS_SINCOS): Enable for Bionic.
13230
13231         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
13232         the last option specified on command line take effect.
13233         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
13234         (mbionic): New.
13235         (mglibc, muclibc): Update.
13236
13237         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
13238         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
13239         DEFAULT_LIBC.
13240
13241         * doc/invoke.texi (-mglibc, -muclibc): Update.
13242         (-mbionic): Document.
13243
13244 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13245
13246         * c-common.h (c_register_addr_space): Add prototype.
13247         (ADDR_SPACE_KEYWORD): Remove.
13248         * c-common.c (c_register_addr_space): New function.
13249         (c_addr_space_name): Reimplement.
13250         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
13251
13252         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
13253         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
13254
13255         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
13256         Remove TARGET_ADDR_SPACE_KEYWORDS.
13257
13258 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
13259
13260         * input.c: New file.
13261         * input.h (main_input_filename): Move declaration to toplev.h.
13262         * toplev.c (input_location, line_table): Move to input.c
13263         * toplev.h (main_input_filename): Move declaration from input.h.
13264         * tree.c (expand_location): Move to input.c.
13265         * Makefile.in (OBJS-common): Add input.o.
13266         (input.o): Add dependencies.
13267
13268 2010-05-27  Richard Guenther  <rguenther@suse.de>
13269
13270         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
13271         for non-existant files.
13272         (fork_execute): Mark args_name file as deleted.
13273
13274 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
13275
13276         PR bootstrp/44287
13277         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
13278         (narrow_signed_type): Likewise.
13279
13280 2010-05-26  Jan Hubicka  <jh@suse.cz>
13281
13282         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
13283         edge only when checking is enabled; check using former_clone_of;
13284         check inline clones too.
13285         (cgraph_materialize_clone): Record former_clone_of pointer.
13286         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
13287         combining redirections; dump args_to_skip bitmap
13288         (cgraph_materialize_all_clones): Do no redirection here.
13289         * ipa-inline.c (inline_transform): Do redirection here.
13290         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
13291         cheking only).
13292
13293 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13294
13295         * config/avr/avr-c.c: Do not include regs.h.
13296         Include cpplib.h for cpp_define and tree.h for c-common.h.
13297         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
13298         * config/avr/t-avr: Fix dependencies for avr-c.o.
13299
13300 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13301
13302         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
13303         string instead of SYMBOL_REF rtx.
13304         * rtl.h (set_stack_check_libfunc): Move prototype from here...
13305         * libfuncs.h: ...to here.  Adjust for explow.c change.
13306
13307 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
13308
13309         * pretty-print.c: Don't include ggc.h.
13310         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
13311         (identifier_to_locale): Use them for allocation.
13312         * pretty-print.h (identifier_to_locale_alloc,
13313         identifier_to_locale_free): Declare.
13314         * toplev.c (alloc_for_identifier_to_locale): New.
13315         (general_init): Set identifier_to_locale_alloc and
13316         identifier_to_locale_free.
13317         * Makefile.in (pretty-print.o): Update dependencies.
13318
13319 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13320
13321         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
13322         pointer types if they have different alignment or mode.
13323
13324 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
13325
13326         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13327         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13328         * config/sparc/sparc-protos.h (function_value): Remove declaration.
13329         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
13330         sparc_function_value_regno_p): New functions.
13331         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13332         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13333         (function_value): Rename to...
13334         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
13335         argument to 'outgoing'.
13336         (function_arg_record_value, function_arg_union_value,
13337         function_arg_vector_value): Update comment.
13338
13339 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13340
13341         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
13342         (fde_needed_for_eh_p): New predicate.
13343         (output_call_frame_info): Use it throughout to decide whether FDEs
13344         are needed for EH purpose.
13345         (dwarf2out_begin_prologue): Reorder assignments.
13346
13347 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13348
13349         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
13350         special case loop->header.
13351         (is_predicated): New.
13352         (if_convertible_loop_p): Call it.
13353
13354 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13355
13356         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
13357         iterator in parameter.  Do not generate code during the analysis.
13358         (tree_if_convert_cond_stmt): Removed.
13359         (tree_if_convert_stmt): Removed.
13360         (predicate_bbs): New.
13361         (if_convertible_loop_p): Call predicate_bbs.
13362         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
13363         now contains all the analysis part.
13364
13365 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13366
13367         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
13368         statements in the analysis part.
13369         (tree_if_convert_stmt): Update comment.
13370         (remove_conditions_and_labels): New.
13371         (combine_blocks): Call remove_conditions_and_labels.
13372         (tree_if_conversion): Update comment.
13373
13374 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13375
13376         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
13377         than 2 predecessors or more than 2 successors.
13378
13379 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13380
13381         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
13382         of loops in which the data dependence analysis fails.
13383
13384 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13385
13386         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
13387         CDI_POST_DOMINATORS.
13388         (tree_if_conversion): Same.
13389
13390 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13391
13392         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
13393
13394 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13395
13396         * tree-if-conv.c: Update copyright years.  Fix comments.
13397         Fix indentation.
13398
13399 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
13400
13401         * builtin-types.def (BT_INT128): New primitive type.
13402         (BT_UINT128): Likewise.
13403         * c-common.c (c_common_r): Add __int128 keyword.
13404         (c_common_type_for_size): Handle __int128.
13405         (c_common_type_for_mode): Likewise.
13406         (c_common_signed_or_unsigned_type): Likewise.
13407         (c_common_nodes_and_builtins): Add builtin type
13408         if target supports 128-bit integer scalar.
13409         * c-common.h (enum rid): Add RID_INT128.
13410         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
13411         if target supports 128-bit integer scalar.
13412         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
13413         (finish_declspecs): Likewise.
13414         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
13415         (c_token_starts_declspecs): Likewise.
13416         (c_parser_declspecs): Likewise.
13417         (c_parser_attributes): Likewise.
13418         (c_parser_objc_selector): Likewise.
13419         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
13420         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
13421         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
13422         * tree.c (make_or_reuse_type): Likewise.
13423         (make_unsigned_type): Likewise.
13424         (build_common_tree_nodes_2): Likewise.
13425         * tree.h (enum integer_type_kind): Add itk_int128 and
13426         itk_unsigned_int128.
13427         (int128_integer_type_node): New define.
13428         (int128_unsigned_type_node): New define.
13429         * doc/extend.texi: Add documentation about __int128 type.
13430
13431 2010-05-26  Richard Guenther  <rguenther@suse.de>
13432
13433         * tree-ssa-sccvn.c (copy_nary): Adjust.
13434         (copy_phis): Rename to ...
13435         (copy_phi): ... this.  Adjust.
13436         (copy_references): Rename to ...
13437         (copy_reference): ... this.  Adjust.
13438         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
13439         result into the valid table.
13440
13441 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13442
13443         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
13444         insn-config.h, insn-codes.h, recog.h, and optabs.h.
13445
13446 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13447
13448         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
13449
13450 2010-05-26  Richard Guenther  <rguenther@suse.de>
13451
13452         * opts.c (common_handle_option): Handle OPT_Ofast.
13453
13454 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
13455
13456         * diagnostic.c: Don't include opts.h.
13457         (permissive_error_option): Define.
13458         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
13459         for classify_diagnostic.  Don't use memset for
13460         classify_diagnostic.  Initialize new and recently added fields.
13461         (diagnostic_classify_diagnostic): Use context->n_opts instead of
13462         N_OPTS.
13463         (diagnostic_report_diagnostic): Pass context parameter to
13464         diagnostic_report_warnings_p.  Use option_enabled and option_name
13465         hooks from context.
13466         (emit_diagnostic): Use permissive_error_option.
13467         (permerror): Likewise.
13468         * diagnostic.h: Don't include options.h.
13469         (struct diagnostic_context): Add n_opts, opt_permissive,
13470         inhibit_warnings, warn_system_headers, option_enabled and
13471         option_name fields.  Change classify_diagnostic to a pointer.
13472         * opts-diagnostic.h: New file.
13473         * opts.c: Include opts-diagnostic.h.
13474         (common_handle_option): Set global_dc fields for -Wfatal-errors,
13475         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
13476         (option_name): New function.
13477         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
13478         (c_common_handle_option): Set global_dc->permissive for
13479         -fpermissive.
13480         * c-common.c (c_cpp_error): Save and restore
13481         global_dc->warn_system_headers, not variable warn_system_headers.
13482         * toplev.c: Include opts-diagnostic.h.
13483         (general_init): Update call to diagnostic_initialize.  Set
13484         global_dc->show_column, global_dc->option_enabled and
13485         global_dc->option_name.
13486         (process_options): Don't set global_dc fields here.
13487         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
13488         (diagnostic.o, opts.o, toplev.o): Update dependencies.
13489
13490 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13491
13492         * config/picochip/picochip.md (movsi): Split a movsi from a
13493         const after reload.
13494
13495 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13496
13497         * ggc-zone.c: Update copyright year.
13498         (poison_region): Mark memory for Valgrind as undefined before
13499         memset () call and inaccessible afterwards.
13500         (ggc_pch_total_size): Change type of i to int.
13501
13502 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13503
13504         * ggc-common.c (ggc_free_overhead): Allow empty slot.
13505
13506 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13507
13508         * ggc-common.c: Update copyright year.
13509         (ggc_rlimit_bound): Remove prototype.  Compile only if
13510         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
13511         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
13512         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
13513         (ggc_min_heapsize_heuristic): Likewise.
13514
13515 2010-05-26  Richard Guenther  <rguenther@suse.de>
13516
13517         PR rtl-optimization/44164
13518         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
13519         no-common access-path disambiguation.
13520         (indirect_ref_may_alias_decl_p): Adjust.
13521         (indirect_refs_may_alias_p): Likewise.
13522         (refs_may_alias_p_1): Likewise.
13523
13524 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13525
13526         * c-typeck.c: Do not include expr.h.
13527
13528 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13529
13530         * rtl.h (decl_default_tls_model): Move prototype from here...
13531         * output.h: ...to here.
13532         * c-decl.c: Do not include rtl.h.
13533         * c-pragma.c: Likewise.
13534         * c-parser.c: Likewise.
13535         * c-gimplify.c: Likewise.  And also not hard-reg-set.
13536         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
13537         FIXME note for it.  Add a FIXME note for expr.h.
13538         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
13539         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
13540         defined.
13541
13542 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
13543
13544         PR target/44199
13545         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
13546         or total_size is larger than red zone size for non-V4 ABI, emit a
13547         stack_tie resp. frame_tie insn before stack pointer restore.
13548         * config/rs6000/rs6000.md (frame_tie): New insn.
13549
13550 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13551
13552         * function.h (struct function): Add can_throw_non_call_exceptions bit.
13553         * lto-streamer-in.c (input_function): Stream it in.
13554         * lto-streamer-out.c (output_function): Stream it out.
13555         * function.c (allocate_struct_function): Set it.
13556         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
13557         for flag_non_call_exceptions.
13558         * cfgbuild.c (control_flow_insn_p): Likewise.
13559         (make_edges): Likewise.
13560         * cfgexpand.c (expand_stack_alignment): Likewise.
13561         * combine.c (distribute_notes): Likewise.
13562         * cse.c (cse_extended_basic_block): Likewise.
13563         * except.c (insn_could_throw_p): Likewise.
13564         * gcse.c (simple_mem): Likewise.
13565         * ipa-pure-const.c (check_call): Likewise.
13566         (check_stmt ): Likewise.
13567         * lower-subreg.c (lower-subreg.c): Likewise.
13568         * optabs.c (emit_libcall_block): Likewise.
13569         (prepare_cmp_insn): Likewise.
13570         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
13571         * postreload.c (rest_of_handle_postreload): Likewise.
13572         * reload1.c (reload_as_needed): Likewise.
13573         (emit_input_reload_insns): Likewise.
13574         (emit_output_reload_insns): Likewise.
13575         (fixup_abnormal_edges): Likewise.
13576         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
13577         * store-motion.c (find_moveable_store): Likewise.
13578         * tree-eh.c (stmt_could_throw_p): Likewise.
13579         (tree_could_throw_p): Likewise.
13580         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13581         * config/arm/arm.c (arm_expand_prologue): Likewise.
13582         (thumb1_expand_prologue): Likewise.
13583         * config/rx/rx.md (cbranchsf4): Likewise.
13584         (cmpsf): Likewise.
13585         * config/s390/s390.c (s390_emit_prologue): Likewise.
13586         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
13587         (inline_forbidden_into_p): New predicate.
13588         (expand_call_inline): Use it to forbid inlining.
13589         (tree_can_inline_p): Likewise.
13590
13591 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13592
13593         * config/i386/i386-c.c: Do not include rtl.h.
13594         * config/i386/t-i386: Update dependencies.
13595
13596 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13597
13598         * attribs.c: Do not include rtl.h.
13599         * Makefile.in: Update dependencies.
13600
13601 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
13602
13603         * double-int.h (double_int_and): New.
13604         * combine.c (try_combine): Clean up, use double_int_* and
13605         immed_double_int_const functions.
13606
13607 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13608
13609         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
13610         stderr to /dev/null instead of grep -q.
13611         * configure: Regenerate.
13612
13613 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13614
13615         * Makefile.in (EXCEPT_H): Fix typo.
13616
13617 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
13618
13619         * ira-build.c (update_conflict_hard_reg_costs): New.
13620         (ira_build): Call update_conflict_hard_reg_costs.
13621
13622 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13623
13624         PR debug/41371
13625         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
13626         ENABLE_CHECKING.
13627         (intersect_loc_chains): Walk the s2var's loc_chain together
13628         with s1node chain as long as the locations are equal, don't
13629         call find_loc_in_1pdv in that case.
13630
13631         PR debug/42801
13632         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
13633         (copy_bind_expr): ... instead of here.
13634         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
13635         if the block hasn't been remapped.
13636         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
13637         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
13638
13639 2010-05-25  Richard Guenther  <rguenther@suse.de>
13640
13641         PR middle-end/44069
13642         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
13643         out-of-bounds array accesses.
13644
13645 2010-05-25  Richard Guenther  <rguenther@suse.de>
13646
13647         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13648         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13649         (run_gcc): Re-organize to make cleanup easier.
13650
13651 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13652
13653         * config/s390/s390.c (optimization_options): Fix and move the
13654         flag_prefetch_loop_arrays override ...
13655         (override_options): ... here.
13656
13657 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
13658
13659         * diagnostic.c: Don't include plugin.h.
13660         (diagnostic_report_diagnostic): Don't handle plugins specially
13661         here.  Pass context to internal_error callback.
13662         * diagnostic.h (struct diagnostic_context): Add context parameter
13663         to internal_error callback.
13664         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13665         * plugin.h (struct diagnostic_context): Declare.
13666         (warn_if_plugins, plugins_internal_error_function): Declare.
13667         * toplev.c (general_init): Set global_dc->internal_error.
13668         * Makefile.in (diagnostic.o): Update dependencies.
13669
13670 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
13671
13672         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13673         * config/rs6000/t-darwin64: New.
13674         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13675         build crt2.
13676
13677 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
13678
13679         PR 44203
13680         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13681         match the original (and intended) behaviour before r159557.  This
13682         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13683         in two ways.
13684
13685 2010-05-25  Richard Guenther  <rguenther@suse.de>
13686
13687         * doc/invoke.texi: Document -Ofast.
13688         * target.h (struct gcc_target): Add handle_ofast.
13689         * target-def.h (TARGET_HANDLE_OFAST): Add.
13690         (TARGET_INITIALIZER): Adjust.
13691         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
13692         * common.opt (Ofast): Add.
13693
13694 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13695
13696         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13697         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13698
13699 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13700
13701         PR target/43610
13702         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13703         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
13704         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
13705         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13706
13707 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13708
13709         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13710         DW_OP_minus with negated offset instead of DW_OP_plus.
13711         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13712
13713 2010-05-25  Wei Guozhi  <carrot@google.com>
13714
13715         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13716         tst instruction and a new alternative.
13717         * config/arm/constraints.md (Pu): New constraint.
13718
13719 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
13720
13721         * function.c (assign_stack_local_1): Initialize variable
13722         to avoid warning when bootstrapping at -O3.
13723
13724 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
13725
13726         * configure.ac (all_lang_makefiles): Remove everything related to it.
13727         * configure: Regenerate.
13728         * Makefile.in: Fix reference to ada Make-lang.in.
13729         Remove support for LANG_MAKEFILES.
13730
13731 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
13732             Sandra Loosemore  <sandra@codesourcery.com>
13733
13734         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13735         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13736         description.  Add arm_neon_fp16_ok.
13737         (Add Options): Add arm_neon and arm_neon_fp16.
13738
13739 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
13740
13741         * diagnostic.c: Don't include flags.h.
13742         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13743         context parameters.  Check flags in the context passed as a parameter.
13744         (diagnostic_build_prefix): Add context parameter.  Check
13745         show_column flag in context.
13746         (diagnostic_action_after_output): Check fatal_errors flag in context.
13747         (diagnostic_report_current_module): Check show_column flag in context.
13748         (default_diagnostic_starter): Update call to
13749         diagnostic_build_prefix.
13750         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13751         (emit_diagnostic): Pass context to permissive_error_kind.
13752         (permerror): Pass context to permissive_error_kind.
13753         * diagnostic.h (struct diagnostic_context): Add show_column,
13754         pedantic_errors, permissive and fatal_errors fields.
13755         (diagnostic_build_prefix): Update prototype.
13756         * langhooks.c
13757         * toplev.c (process_options): Set flags in global_dc from
13758         flag_show_column, flag_pedantic_errors, flag_permissive,
13759         flag_fatal_errors.
13760         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13761         to diagnostic_build_prefix.
13762         * Makefile.in (diagnostic.o): Update dependencies.
13763
13764 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13765
13766         * config/i386/ia32intrin.h (__crc32q): Define only if
13767         __SSE4_2__ is defined.
13768
13769 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
13770
13771         PR target/44132
13772         PR middle-end/43602
13773         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13774         DECL_VISIBILITY_SPECIFIED.
13775         (emutls_decl): Set DECL_PRESERVE_P and copy
13776         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13777         (emutls_finalize_control_var): New callback.
13778         (emutls_finish): Finalize emutls control variables.
13779         * toplev.c (compile_file): Move the call to emutls_finish ()
13780         before varpool_assemble_pending_decls ().
13781
13782 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
13783
13784         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13785         added to the preprocessor condition.
13786
13787 2010-05-24  Paul Brook  <paul@codesourcery.com>
13788
13789         * gengtype-lex.l: Add HARD_REG_SET.
13790         * expr.c (expand_expr_real_1): Record writes to hard registers.
13791         * function.c (rtl_data): Add asm_clobbers.
13792         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13793         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13794         Use crtl->asm_clobbers.
13795
13796 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13797
13798         * doc/makefile.texi (Makefile): Mention stages 'profile'
13799         and 'feedback' for profiledbootstrap.
13800
13801 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13802
13803         PR target/44245
13804         * config/i386/i386.c (def_builtin): Properly check
13805         OPTION_MASK_ISA_64BIT.
13806
13807 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
13808
13809         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13810         typedefs with different but compatible types.  Allow duplicate
13811         typedefs with the same type except for pedantic non-C1X, but give
13812         warning for variably modified types.
13813         * c-typeck.c (tagged_types_tu_compatible_p,
13814         function_types_compatible_p, type_lists_compatible_p,
13815         comptypes_internal): Add parameter different_types_p; set
13816         *different_types_p for different but compatible types.  All
13817         callers changed.
13818         (comptypes_check_different_types): New.
13819         * c-tree.h (comptypes_check_different_types): Declare.
13820
13821 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13822
13823         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13824         * jump.c: Include basic-block.h.
13825         * profile.c: Likewise.
13826         * tree-profile.c: Likewise.
13827         * coverage.c: Likewise.
13828         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13829         (optimize_function_for_speed_p): Likewise.
13830         * function.h (optimize_function_for_size_p,
13831         optimize_function_for_speed_p): Moved here from basic-block.h.
13832         * Makefile.in: Update dependencies.
13833
13834 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13835
13836         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13837         before calling make; allow override through $MAKE.
13838         * doc/invoke.texi (Optimize Options): Document override.
13839
13840 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13841
13842         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13843         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13844         (rs6000_mode_dependent_address_ptr): Make static.
13845         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13846         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13847         Remove.
13848
13849 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13850
13851         PR target/43869
13852         * config/i386/i386.c: Make sure that the correct regparm is passed.
13853
13854 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13855
13856         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13857         * sbitmap.c: ...to here to internalize sbitmap element access.
13858         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13859         Explain why basic-block.h is included.
13860         * function.h: Include tm.h for CUMULATIVE_ARGS.
13861         * Makefile.in: Update dependencies.
13862
13863 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13864
13865         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13866         New core types.
13867         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13868         * sbitmap.c: Include sbitmap.h.
13869         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13870         hard-reg-set.h.  Split everything related to regsets out from here...
13871         * regset.h: ...to here.  New file.
13872         * df.h: Include regset.h and sbitmap.h.
13873         * tree-flow.h: Likewise.
13874         * cfgloop.h: Likewise.
13875         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13876         * cgraph.h: Include vec.h and function.h.
13877         * reload.h (struct insn_chain): Change types of live_throughout
13878         and dead_or_set from regset_head to bitmap_head.
13879         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13880         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13881         spilled_regs from regset_head to bitmap_head to avoid dependency
13882         in regset.h.
13883         * sel-sched-ir.h: Include regset.h.
13884         * reload.c: Include df.h before reload.h.
13885         * caller-save.c: Likewise.
13886         * reload1.c: Likewise.
13887         * ira.c: Likewise.
13888         (mark_elimination): Update type of r to bitmap, consistent with
13889         DF_LR_IN.
13890         * dominance.c: Include bitmap.h.
13891         * modulo-sched.c: Include df.h.
13892         * cfganal.c: Include bitmap.h and sbitmap.h.
13893         * cfgbuild.c: Include sbitmap.h.
13894         * lcm.c: Include sbitmap.h.
13895         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13896         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13897         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13898         * cselib.c: Include bitmap.h.
13899         * tree-optimize.c: Include regset.h.
13900         * stmt.c: Include bitmap.h.
13901         * Makefile.in: Update dependencies.
13902
13903 2010-05-22  Jan Hubicka  <jh@suse.cz>
13904
13905         * cgraph.h (struct varpool_node): Add same_comdat_group.
13906         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13907         pointer.
13908         (output_varpool): Update call of lto_output_varpool_node.
13909         (input_varpool): Read same_comdat_group pointer.
13910         (input_varpool_1): Fixup same_comdat_group pointer.
13911         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13912         group is needed, all are.
13913         * varpool.c (varpool_remove_node): Remove node from same comdat group
13914         linklist too.
13915         (varpool_analyze_pending_decls): Walk same comdat groups.
13916
13917 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13918
13919         * rtl.h (union rtunion_def): Remove rt_bit member.
13920         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13921         * print-rtl (print_rtx): Do not print the member.
13922         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13923         * gengenrtl.c (type_from_format): Likewise.
13924         (accessor_from_format): Likewise.
13925
13926 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13927
13928         * dbgcnt.c: Include toplev.h instead of errors.h.
13929         * ira-emit.c: Don't include errors.h.
13930         * ira.c: Include toplev.h instead of errors.h.
13931         * lto-compress.c: Include toplev.h instead of errors.h.
13932         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13933         ira.o, dbgcnt.o): Update dependencies.
13934
13935 2010-05-22  Richard Guenther  <rguenther@suse.de>
13936
13937         * gimple.c (gimple_types_compatible_p): Check type qualifications
13938         before merging pointer to complete and pointer to incomplete type.
13939         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13940         we use our own resolution algorithm.  The gold linker plugin
13941         doesn't do the job we want it to do here.
13942
13943 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13944
13945         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13946         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13947         (sparc_mode_dependent_address_p): New function.
13948
13949 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13950
13951         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13952
13953         * timevar.c: Do not include any core headers.
13954         (timevar_print): De-i18n-ize.
13955         (print_time): Likewise.
13956         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13957
13958 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13959
13960         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13961         langhooks-def.h.
13962         (diagnostic_initialize): Initialize x_data not last_function.
13963         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13964         (default_diagnostic_starter): Call
13965         diagnostic_report_current_module not
13966         diagnostic_report_current_function.
13967         (diagnostic_report_diagnostic): Initialize x_data not
13968         abstract_origin.
13969         (verbatim): Likewise.
13970         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13971         x_data.
13972         (struct diagnostic_context): Change last_function to x_data.
13973         (diagnostic_auxiliary_data): Replace with
13974         diagnostic_context_auxiliary_data and
13975         diagnostic_info_auxiliary_data.
13976         (diagnostic_last_function_changed, diagnostic_set_last_function,
13977         diagnostic_report_current_function): Move to tree-diagnostic.h.
13978         (print_declaration, dump_generic_node, print_generic_stmt,
13979         print_generic_stmt_indented, print_generic_expr,
13980         print_generic_decl, debug_c_tree, dump_omp_clauses,
13981         print_call_name, debug_generic_expr, debug_generic_stmt,
13982         debug_tree_chain, default_tree_printer): Move to
13983         tree-pretty-print.h.
13984         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13985         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13986         gimple-pretty-print.h.
13987         * pretty-print.c: Don't include tree.h
13988         (pp_base_format): Don't handle %K here.
13989         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13990         * pretty-print.h (text_info): Change abstract_origin to x_data.
13991         (pp_tree_identifier, pp_unsupported_tree,
13992         pp_base_tree_identifier): Move to tree-pretty-print.h.
13993         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13994         tree-pretty-print.h: New files.
13995         * tree-pretty-print.c: Include tree-pretty-print.h.
13996         (percent_K_format): New.  Moved from pretty-print.c.
13997         (pp_base_tree_identifier): Move from pretty-print.c.
13998         * c-objc-common.c: Include tree-pretty-print.h.
13999         (c_tree_printer): Handle %K here.
14000         * langhooks.c: Include tree-diagnostic.h.
14001         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
14002         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
14003         (default_tree_printer): Handle %K using percent_K_format.
14004         (general_init): Use default_tree_diagnostic_starter.
14005         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
14006         (free_lang_data): Use default_tree_diagnostic_starter.
14007         * c-pretty-print.c: Include tree-pretty-print.h.
14008         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14009         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14010         * dwarf2out.c: Include tree-pretty-print.h.
14011         * except.c: Include tree-pretty-print.h.
14012         * gimple-pretty-print.c: Include tree-pretty-print.h and
14013         gimple-pretty-print.h.
14014         * gimplify.c: Include tree-pretty-print.h.
14015         * graphite-poly.c: Include tree-pretty-print.h and
14016         gimple-pretty-print.h.
14017         * ipa-cp.c: Include tree-pretty-print.h.
14018         * ipa-inline.c: Include gimple-pretty-print.h.
14019         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14020         * ipa-pure-const.c: Include gimple-pretty-print.h.
14021         * ipa-struct-reorg.c: Include tree-pretty-print.h and
14022         gimple-pretty-print.h.
14023         * ipa-type-escape.c: Include tree-pretty-print.h.
14024         * print-rtl.c: Include tree-pretty-print.h.
14025         * print-tree.c: Include gimple-pretty-print.h.
14026         * sese.c: Include tree-pretty-print.h.
14027         * tree-affine.c: Include tree-pretty-print.h.
14028         * tree-browser.c: Include tree-pretty-print.h.
14029         * tree-call-cdce.c: Include gimple-pretty-print.h.
14030         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14031         * tree-chrec.c: Include tree-pretty-print.h.
14032         * tree-data-ref.c: Include tree-pretty-print.h and
14033         gimple-pretty-print.h.
14034         * tree-dfa.c: Include tree-pretty-print.h.
14035         * tree-if-conv.c: Include tree-pretty-print.h and
14036         gimple-pretty-print.h.
14037         * tree-inline.c: Include tree-pretty-print.h.
14038         * tree-into-ssa.c: Include tree-pretty-print.h and
14039         gimple-pretty-print.h.
14040         * tree-nrv.c: Include tree-pretty-print.h.
14041         * tree-object-size.c: Include tree-pretty-print.h and
14042         gimple-pretty-print.h.
14043         * tree-outof-ssa.c: Include tree-pretty-print.h and
14044         gimple-pretty-print.h.
14045         * tree-parloops.c: Include tree-pretty-print.h and
14046         gimple-pretty-print.h.
14047         * tree-predcom.c: Include tree-pretty-print.h and
14048         gimple-pretty-print.h.
14049         * tree-scalar-evolution.c: Include tree-pretty-print.h and
14050         gimple-pretty-print.h.
14051         * tree-sra.c: Include tree-pretty-print.h.
14052         * tree-ssa-address.c: Include tree-pretty-print.h.
14053         * tree-ssa-alias.c: Include tree-pretty-print.h.
14054         * tree-ssa-ccp.c: Include tree-pretty-print.h and
14055         gimple-pretty-print.h.
14056         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
14057         * tree-ssa-copy.c: Include tree-pretty-print.h and
14058         gimple-pretty-print.h.
14059         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
14060         * tree-ssa-dce.c: Include tree-pretty-print.h and
14061         gimple-pretty-print.h.
14062         * tree-ssa-dom.c: Include tree-pretty-print.h and
14063         gimple-pretty-print.h.
14064         * tree-ssa-dse.c: Include gimple-pretty-print.h.
14065         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
14066         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
14067         * tree-ssa-live.c: Include tree-pretty-print.h and
14068         gimple-pretty-print.h.
14069         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
14070         gimple-pretty-print.h.
14071         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
14072         gimple-pretty-print.h.
14073         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
14074         gimple-pretty-print.h.
14075         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
14076         gimple-pretty-print.h.
14077         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
14078         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
14079         * tree-ssa-operands.c: Include tree-pretty-print.h and
14080         gimple-pretty-print.h.
14081         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
14082         gimple-pretty-print.h.
14083         * tree-ssa-pre.c: Include tree-pretty-print.h and
14084         gimple-pretty-print.h.
14085         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
14086         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
14087         gimple-pretty-print.h.
14088         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
14089         gimple-pretty-print.h.
14090         * tree-ssa-sink.c: Include gimple-pretty-print.h.
14091         * tree-ssa-ter.c: Include tree-pretty-print.h and
14092         gimple-pretty-print.h.
14093         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
14094         * tree-ssa.c: Include tree-pretty-print.h and
14095         gimple-pretty-print.h.
14096         * tree-stdarg.c: Include gimple-pretty-print.h.
14097         * tree-switch-conversion.c: Include gimple-pretty-print.h.
14098         * tree-tailcall.c: Include tree-pretty-print.h and
14099         gimple-pretty-print.h.
14100         * tree-vect-data-refs.c: Include tree-pretty-print.h and
14101         gimple-pretty-print.h.
14102         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
14103         gimple-pretty-print.h.
14104         * tree-vect-loop.c: Include tree-pretty-print.h and
14105         gimple-pretty-print.h.
14106         * tree-vect-patterns.c: Include gimple-pretty-print.h.
14107         * tree-vect-slp.c: Include tree-pretty-print.h and
14108         gimple-pretty-print.h.
14109         * tree-vect-stmts.c: Include tree-pretty-print.h and
14110         gimple-pretty-print.h.
14111         * tree-vectorizer.c: Include tree-pretty-print.h.
14112         * tree-vrp.c: Include tree-pretty-print.h and
14113         gimple-pretty-print.h.
14114         * value-prof.c: Include tree-pretty-print.h and
14115         gimple-pretty-print.h.
14116         * var-tracking.c: Include tree-pretty-print.h.
14117         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
14118         (tree-diagnostic.o): New dependencies.
14119         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
14120         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
14121         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
14122         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
14123         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
14124         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
14125         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
14126         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
14127         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
14128         tree-ssa-address.o, tree-ssa-loop-niter.o,
14129         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
14130         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
14131         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
14132         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
14133         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
14134         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
14135         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
14136         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
14137         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
14138         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
14139         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
14140         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
14141         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
14142         tree-switch-conversion.o, var-tracking.o, value-prof.o,
14143         cfgexpand.o, pretty-print.o): Update dependencies.
14144
14145 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
14146
14147         * tree-ssa-structalias.c: Remove tm_p.h from include.
14148
14149 2010-05-21  Jeff Law  <law@redhat.com>
14150
14151         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
14152
14153 2010-05-21  Jason Merrill  <jason@redhat.com>
14154
14155         * tree-eh.c (cleanup_is_dead_in): New.
14156         (lower_try_finally): Don't generate a dead cleanup region.
14157         (lower_cleanup): Likewise.
14158
14159 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
14160
14161         PR debug/44223
14162         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
14163         unchain each use from the cyclic next_regno_use chain first.
14164
14165 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
14166
14167         * real: Do not include gmp.h, mpfr.h, and mpc.h.
14168         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
14169         (real_value_negate, real_value_abs): New prototypes.
14170         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
14171         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
14172         new include file for interface between MPFR and REAL_VALUE_TYPE.
14173         * real.c: Include realmpfr.h.
14174         (real_arithmetic2): Remove legacy function.
14175         (real_value_negate): New.
14176         (real_value_abs): New.
14177         (mfpr_from_real, real_from_mpfr): Move from here...
14178         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
14179         * builtins.c: Include realmpfr.h.
14180         * fold-const.c: Include realmpfr.h.
14181         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
14182         (fold_negate_const): Likewise.
14183         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
14184         * toplev.c: Include realmpfr.h.
14185         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
14186         and real_value_negate.
14187         * fixed-value.c (check_real_for_fixed_mode): Likewise.
14188         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
14189         (vfp3_const_double_index): Likewise.
14190         (arm_print_operand): Likewise.
14191         * Makefile.in: Update dependencies.
14192
14193 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14194
14195         * config/s390/s390.c (override_options): Increase the default
14196         of max-completely-peel-times.
14197
14198 2010-05-21  Julian Brown  <julian@codesourcery.com>
14199             Mark Mitchell  <mark@codesourcery.com>
14200
14201         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
14202         sibling calls for Thumb-1.
14203         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
14204         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
14205         Thumb-2.
14206         (*call_insn, *call_value_insn): Don't use for Thumb-2.
14207         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
14208         for Thumb-2.
14209         (return): New expander.
14210         (*arm_return): New name for ARM return insn.
14211         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
14212
14213 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
14214
14215         * config.gcc (sparc64-*-rtems*): New target.
14216
14217 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
14218
14219         * tree.c (build_function_decl_skip_args): Fix grammar.
14220         (build_function_type_list_1): Fix typos, adjust formatting.
14221
14222 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
14223
14224         * tree.h: Include real.h and fixed-value.h as basic datatypes.
14225         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
14226         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
14227         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
14228         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
14229         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
14230         tree-pretty-print.c, tree-loop-distribution.c,
14231         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
14232         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
14233         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
14234         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
14235         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
14236         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
14237         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
14238         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
14239         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
14240         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
14241         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
14242         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
14243         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
14244         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
14245         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
14246         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
14247         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
14248         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
14249         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
14250         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
14251         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
14252         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
14253         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
14254         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
14255         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
14256         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
14257         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
14258         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
14259         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
14260         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
14261         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
14262         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
14263         config/score/score7.c, config/score/score.c, config/arm/arm.c,
14264         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
14265         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
14266         config/bfin/bfin.c: Clean up redundant includes.
14267         * Makefile.in: Update accordingly.
14268
14269 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
14270
14271         PR middle-end/44204
14272         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
14273         statement has no arguments.
14274
14275 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
14276
14277         PR/44139
14278         * varasm.c (emutls_decl): Merge attributes to new decl.
14279
14280 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14281
14282         PR middle-end/44101
14283         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
14284         around the uniquized constructor if its type requires a conversion.
14285
14286 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
14287
14288         PR debug/44205
14289         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
14290         at -O0 goto_locus of any of the incoming edges differs from
14291         goto_locus of outgoing edge, or gimple_location of any of the
14292         labels differs.
14293
14294 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
14295
14296         * ira.c (ira_non_ordered_class_hard_regs): Define.
14297         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
14298         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
14299         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
14300         cost of unaligned hard regs when allocating multi-reg pseudos.
14301
14302 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
14303
14304         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
14305         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
14306         for TARGET_NO_FLOAT.
14307         * config/mips/mips.c (mips_file_start): Expand conditional expression
14308         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
14309         (mips_override_options): Move -mno-float override -msoft-float and
14310         -mhard-float.
14311         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
14312         Condition(TARGET_SUPPORTS_NO_FLOAT).
14313         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
14314         __mips_no_float here.
14315         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
14316         (TARGET_SUPPORTS_NO_FLOAT): Define.
14317         * config/mips/sdemtk.opt: Delete.
14318
14319 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
14320
14321         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
14322
14323 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
14324
14325         PR target/43733
14326         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
14327         * configure: Regenerate.
14328         * config.in: Regenerate.
14329         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
14330         instead of sahf only for 64bit targets.
14331
14332 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14333
14334         PR debug/44178
14335         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
14336         setup_ref_regs for DEBUG_INSNs.
14337
14338 2010-05-20  Jan Hubicka  <jh@suse.cz>
14339
14340         PR middle-end/44197
14341         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
14342
14343 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14344
14345         PR bootstrap/43870
14346         * df-scan.c (df_ref_compare): Stabilize sort.
14347
14348 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14349
14350         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
14351         argument.  Don't use DW_OP_piece if offset is non-zero,
14352         put offset into second DW_OP_bit_piece argument.
14353         (dw_sra_loc_expr): Adjust callers.  For memory expressions
14354         compute offset.
14355
14356 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
14357
14358         PR target/44202
14359         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
14360         settings for 16-bit-constant "addo" alternative.
14361
14362 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
14363
14364         * config/mips/mips-dsp.md (add<DSPV:mode>3,
14365         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
14366
14367         PR target/43764
14368         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
14369         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
14370         Use it.
14371
14372 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
14373
14374         * diagnostic.c (FLOAT, FFS): Don't undefine.
14375         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
14376         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
14377         include ordering.
14378
14379 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
14380
14381         * combine.c (propagate_for_debug): Call make_compound_operation
14382         on the source value.
14383         (try_combine): When implementing a split chosen by find_split_point,
14384         either copy i2src or set it to null.  Assert that i2src is not null
14385         before substituting into CALL_INSN_FUNCTION_USAGE.
14386
14387 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
14388
14389         * double-int.h (double_int_ior): New function.
14390         * tree.h (build_int_cst_wide_type): Remove.
14391         * tree.c (build_int_cst_wide_type): Remove.
14392         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
14393         of build_int_cst_wide_type.
14394         * stor-layout.c (set_sizetype): (Ditto.).
14395         * dojump.c (do_jump): Use build_int_cstu instead of
14396         build_int_cst_wide_type.
14397
14398 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14399
14400         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
14401         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
14402         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
14403         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
14404         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
14405         propagate the 'data' argument to copy_tree_r.
14406         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
14407         Propagate 'data' argument to walk_tree.
14408         (copy_if_shared): New function.
14409         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
14410         (unmark_visited): New function.
14411         (unshare_body): Call copy_if_shared instead of doing it manually.
14412         (unvisit_body): Call unmark_visited instead of doing it manually.
14413
14414 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
14415
14416         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
14417         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
14418         * hooks.c: Likewise.
14419         * target-def.h (TARGET_FOLD_BUILTIN): Define to
14420         hook_tree_tree_int_treep_bool_null.
14421         * target.h (struct gcc_target): Update signature of fold_builtin
14422         field.
14423         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
14424         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
14425         instead of the call expression.
14426         (fold_builtin_call_array): Pass n and argarray directly.
14427         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
14428         consing a list.
14429         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
14430         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
14431         `i' and use it in place of `arity'.
14432         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
14433         Dereference `args' directly.
14434         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
14435
14436 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14437
14438         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14439         3dnow, sse3, sse2.
14440         (Directives): Document optional dg-require-effective-target
14441         selector.
14442
14443 2010-05-19  Richard Guenther  <rguenther@suse.de>
14444
14445         PR lto/44196
14446         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
14447
14448 2010-05-19  Richard Guenther  <rguenther@suse.de>
14449
14450         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
14451         * common.opt (fwhopr=): New.
14452         * opts.c (common_handle_option): Handle OPT_fwhopr.
14453         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
14454         * collect2.c (main): Match -fwhopr*.
14455         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
14456         Execute ltrans stage in parallel when jobs is bigger than 1.
14457
14458 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14459
14460         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14461         pentiumpro on Solaris 8/x86 with Sun as.
14462         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
14463         hidden alias bug.
14464         (gcc_cv_as_ix86_quad): Check for .quad directive.
14465         * configure: Regenerate.
14466         * config.in: Regenerate.
14467         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
14468
14469 2010-05-19  Martin Jambor  <mjambor@suse.cz>
14470
14471         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
14472         also for indirect edges.  Actual printing moved...
14473         (ipa_print_node_jump_functions_for_edge): ...here.
14474         (ipa_compute_jump_functions): Renamed to
14475         ipa_compute_jump_functions_for_edge and made static.
14476         (ipa_compute_jump_functions): New function.
14477         (make_edge_direct_to_target): Check if the number of arguments on
14478         the newly direct edge is the same as the number of parametrs of
14479         the callee.
14480         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
14481         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
14482         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14483         analysis functions unconditionally, call the new
14484         ipa_analyze_params_uses on the node instead of every edge.
14485
14486 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
14487
14488         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
14489         to tree.
14490         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
14491         also checks for a constant int vs.  non-constant but
14492         loop-invariant steps.
14493         (find_or_create_group): Change the sort algorithm to only consider
14494         steps that are constant ints.
14495         (idx_analyze_ref): Adopt code to handle a tree instead of a
14496         HOST_WIDE_INT for step.
14497         (gather_memory_references_ref): Handle tree instead of int and be
14498         prepared to see a NULL_TREE.
14499         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
14500         prefetches if the step cannot be calculated at compile time.
14501         (issue_prefetch_ref): Issue prefetches for non-constant but
14502         loop-invariant steps.
14503
14504 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14505
14506         Revert:
14507         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14508
14509         * tree.h (build_call_list): Remove.
14510         * tree.c (build_call_list): Remove.
14511
14512 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14513
14514         * tree.h (build_call_list): Remove.
14515         * tree.c (build_call_list): Remove.
14516
14517 2010-05-18  Jan Hubicka  <jh@suse.cz>
14518
14519         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
14520
14521 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
14522
14523         PR rtl-optimization/43332
14524         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
14525
14526 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
14527
14528         * tree.h (build_int_cstu): Implement as static inline.
14529         * tree.c (build_int_cstu): Remove function.
14530         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
14531         sign extended.
14532
14533 2010-05-18  Richard Guenther  <rguenther@suse.de>
14534
14535         PR lto/44143
14536         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
14537         (debug): Initialize from -save-temps.
14538         (collect_execute): Print command-line when verbose.
14539         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
14540         for ltrans invocation.  Produce -dumpbase flag again.
14541         (process_args): Remove.
14542         (main): Simplify.
14543         * collect2.c (maybe_run_lto_and_relink): Only pass object
14544         files to lto-wrapper.
14545         * gcc.c (LINK_COMMAND_SPEC): Likewise.
14546
14547 2010-05-18  Jan Hubicka  <jh@suse.cz>
14548
14549         * opts.c (decode_options): Do not disable whopr at ipa_cp.
14550         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
14551
14552 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14553
14554         PR lto/44184
14555         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
14556         in a GIMPLE_ASM.
14557         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
14558         in a GIMPLE_ASM.
14559
14560 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
14561
14562         PR debug/41371
14563         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
14564         rtx_equal_p inline.
14565
14566 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14567
14568         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
14569         lto-macho as lto_binary_reader.
14570
14571         * darwin.c (darwin_asm_named_section): Do not add assembler comment
14572         after .section directive; just print it before the directive instead.
14573
14574 2010-05-17  Jan Hubicka  <jh@suse.cz>
14575
14576         * cgraph.c (cgraph_create_virtual_clone): Only check
14577         versionable_function_p when not in wpa and checking is enabled.
14578         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
14579         there are no more functions to materialize.
14580
14581 2010-05-17  Jan Hubicka  <jh@suse.cz>
14582
14583         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
14584         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
14585         New functions.
14586         (output_cgraph): Call output_cgraph_opt_summary.
14587         (input_cgrpah): Call input_cgraph_opt_summary.
14588         (output_cgraph_opt_summary_p, output_node_opt_summary,
14589         input_node_opt_summary, input_cgraph_opt_section): New functions.
14590         * lto-section-in.c (lto_section_name): Add cgraphopt.
14591         * tree-inline.c (tree_function_versioning): Handle parm_num.
14592         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
14593         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
14594
14595 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14596
14597         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
14598         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
14599         the insn to prefetch ratio heuristic to loops with known trip count.
14600
14601 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14602
14603         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
14604         (schedule_prefetches): Do not generate a prefetch if the unroll factor
14605         is far from what is required by the prefetch.
14606
14607 2010-05-17  Jan Hubicka  <jh@suse.cz>
14608
14609         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
14610         (ipcp_estimate_growth): Likewise.
14611         (ipcp_const_param_count): Likewise.
14612         (ipcp_insert_stage): Likewise.
14613         * ipa-prop.c (visit_load_for_mod_analysis): New function.
14614         (visit_store_addr_for_mod_analysis): Set used flag.
14615         (ipa_detect_param_modifications): Set used flag for SSE params;
14616         update use of walk_stmt_load_store_addr_ops.
14617         (ipa_print_node_params): Print used flag.
14618         (ipa_write_node_info): Stream used flag.
14619         (ipa_read_node_info): Likewise.
14620         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
14621         (ipa_is_param_used): New function.
14622         (lto_ipa_fixup_call_notes): Remove unused declaration.
14623
14624 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14625
14626         PR target/44074
14627         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
14628         * configure: Regenerate.
14629         * config.in: Regenerate.
14630         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
14631         !HAVE_AS_IX86_REP_LOCK_PREFIX.
14632         Don't emit whitespace.
14633         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
14634         (*rep_movsi): Likewise.
14635         (*rep_movsi_rex64): Likewise.
14636         (*rep_movqi): Likewise.
14637         (*rep_movqi_rex64): Likewise.
14638         (*rep_stosdi_rex64): Likewise.
14639         (*rep_stossi): Likewise.
14640         (*rep_stossi_rex64): Likewise.
14641         (*rep_stosqi): Likewise.
14642         (*rep_stosqi_rex64): Likewise.
14643         (*cmpstrnqi_nz_1): Use {%;} after repz.
14644         (*cmpstrnqi_nz_rex_1): Likewise.
14645         (*cmpstrnqi_1): Likewise.
14646         (*cmpstrnqi_rex_1): Likewise.
14647         (*strlenqi_1): Use {%;} after repnz.
14648         (*strlenqi_rex_1): Likewise.
14649         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14650         (*sync_compare_and_swap<mode>): Likewise.
14651         (sync_double_compare_and_swap<mode>): Likewise.
14652         (*sync_double_compare_and_swapdi_pic): Likewise.
14653         (sync_old_add<mode>): Likewise.
14654         (sync_add<mode>): Likewise.
14655         (sync_sub<mode>): Likewise.
14656         (sync_<code><mode>): Likewise.
14657
14658 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14659
14660         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14661         otr_token and polymorphic.
14662         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14663         (cgraph_clone_edge): Copy the above fields.
14664         * tree.c (get_binfo_at_offset): New function.
14665         * tree.h (get_binfo_at_offset): Declare.
14666         * ipa-prop.h (enum jump_func_type): Added known_type jump function
14667         type, reordered items, updated comments.
14668         (union jump_func_value): Added base_type field, reordered fields.
14669         (enum ipa_lattice_type): Moved down in the file.
14670         (struct ipa_param_descriptor): New field polymorphic.
14671         (ipa_is_param_polymorphic): New function.
14672         * ipa-prop.c: Include gimple.h and gimple-fold.h.
14673         (ipa_print_node_jump_functions): Print known type jump functions.
14674         (compute_complex_pass_through): Renamed to...
14675         (compute_complex_assign_jump_func): this.
14676         (compute_complex_ancestor_jump_func): New function.
14677         (compute_known_type_jump_func): Likewise.
14678         (compute_scalar_jump_functions): Create known type and complex ancestor
14679         jump functions.
14680         (ipa_note_param_call): New parameter polymorphic, set the corresponding
14681         flag in the call note accordingly.
14682         (ipa_analyze_call_uses): Renamed to...
14683         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
14684         variable var only in the block where it is used.
14685         (ipa_analyze_virtual_call_uses): New function.
14686         (ipa_analyze_call_uses): Likewise.
14687         (combine_known_type_and_ancestor_jfs): Likewise.
14688         (update_jump_functions_after_inlining): Implemented handling of a
14689         number of new jump function types combination.
14690         (print_edge_addition_message): Removed.
14691         (make_edge_direct_to_target): New function.
14692         (try_make_edge_direct_simple_call): Likewise.
14693         (try_make_edge_direct_virtual_call): Likewise.
14694         (update_call_notes_after_inlining): Renamed to...
14695         (update_indirect_edges_after_inlining): this.  Moved edge creation for
14696         indirect calls to try_make_edge_direct_simple_call, also calls
14697         try_make_edge_direct_virtual_call for virtual calls.
14698         (ipa_print_node_params): Changed the header message.
14699         (ipa_write_jump_function): Stream also known type jump functions.
14700         (ipa_read_jump_function): Likewise.
14701         (ipa_write_indirect_edge_info): Stream new fields in
14702         cgraph_indirect_call_info.
14703         (ipa_read_indirect_edge_info): Likewise.
14704         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14705         GIMPLE_FOLD_H.
14706
14707 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14708
14709         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14710
14711 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14712
14713         * tree.h (CALL_EXPR_ARGS): Delete.
14714         (call_expr_arglist): Delete.
14715         * tree.c (call_expr_arglist): Delete.
14716         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14717         targetm.fold_builtin.
14718         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14719         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14720         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14721         arglist parameter.  Use CALL_EXPR_ARG.
14722         (picochip_expand_builtin_3op): Likewise.
14723         (picochip_expand_builtin_2opvoid): Likewise.
14724         (picochip_expand_array_get): Likewise.
14725         (picochip_expand_array_put): Likewise.
14726         (picochip_expand_array_testport): Likewise.
14727         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
14728         rather than arglist.
14729         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14730         CALL_EXPR_ARGS.
14731         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14732         than TREE_VALUE and TREE_CHAIN.
14733         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14734         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14735         the arglist.
14736
14737 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14738
14739         PR bootstrap/42347
14740         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14741         to have no fallthru edge.
14742
14743         PR middle-end/44102
14744         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14745         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14746         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14747         add BARRIER after previous bb if needed.
14748
14749 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14750
14751         * tree.c (build_function_type_list_1): Remove bogus assert condition.
14752
14753 2010-05-17  Alan Modra  <amodra@gmail.com>
14754
14755         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14756         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
14757         with copy_reg rtx param.
14758         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14759         Correct cases where code for ABI_V4 did not initialise the reg
14760         used to access frame.  Also leave frame_reg_rtx as sp for large
14761         frames that save no regs.
14762
14763 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14764
14765         PR middle-end/44133
14766         * tree-sra.c (create_access_replacement): New parameter rename, mark
14767         the replaement for renaming only when it is true.
14768         (get_access_replacement): Pass true in the rename parameter of
14769         create_access_replacement.
14770         (get_unrenamed_access_replacement): New function.
14771         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14772         replacement declaration from it.
14773
14774 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
14775
14776         * function.c (try_fit_stack_local, add_frame_space): New static
14777         functions.
14778         (assign_stack_local_1): Use them.  Look for opportunities to use
14779         space previously wasted on alignment.
14780         * function.h (struct frame_space): New.
14781         (struct rtl_data): Add FRAME_SPACE_LIST member.
14782         * reload1.c (something_was_spilled): New static variable.
14783         (alter_reg): Set it.
14784         (reload): Test it in addition to testing if the frame size changed.
14785
14786 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
14787
14788         * config/s390/s390.c: Define sane prefetch settings and activate
14789         flag_prefetch_loop_arrays on -O3.
14790         * config/s390/s390.h: Declare that read can use write prefetch.
14791
14792 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14793
14794         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14795         build.
14796
14797 2010-05-16  Jan Hubicka  <jh@suse.cz>
14798
14799         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14800         function body; do not check stdarg field of struct function.
14801
14802 2010-05-16  Jan Hubicka  <jh@suse.cz>
14803
14804         * cgraph.c (dump_cgraph_node): Dump versionable flag.
14805         * cgraph.h (cgraph_local_info): Add versionable flag.
14806         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14807         (ipcp_versionable_function_p): Use it.
14808         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14809         versionable flag.
14810
14811 2010-05-16  Jan Hubicka  <jh@suse.cz>
14812
14813         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14814         clone into hash when it is different from orig.
14815         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14816         * cgraph.h (cgraph_clone_node): Update prototype.
14817         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14818         (lto_cgraph_encoder_delete): Delete body map.
14819         (lto_cgraph_encoder_size): Move to header.
14820         (lto_cgraph_encoder_encode_body_p,
14821         lto_set_cgraph_encoder_encode_body): New.
14822         (lto_output_node): Do not take written_decls argument; output clone_of
14823         pointer.
14824         (add_node_to): Add include_body_argument; call
14825         lto_set_cgraph_encoder_encode_body on master of the clone.
14826         (add_references): Update use of add_node_to.
14827         (compute_ltrans_boundary): Likewise.
14828         (output_cgraph): Do not create written_decls bitmap.
14829         (input_node): Take nodes argument; stream in clone_of correctly.
14830         (input_cgraph_1): Update use of input_node.
14831         * lto-streamer-out.c (lto_output): Use encoder info to decide
14832         what bodies to output.
14833         * ipa-inline.c (cgraph_clone_inlined_nodes,
14834         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14835         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14836         (lto_cgraph_encoder_size): Define here.
14837         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14838         Declare.
14839
14840 2010-05-16  Richard Guenther  <rguenther@suse.de>
14841
14842         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14843         -fipa-type-escape.
14844         * ipa-type-escape.c (gate_type_escape_vars): Run when
14845         -fipa-struct-reorg runs.
14846         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14847         * common.opt (fipa-type-escape): Remove.
14848
14849 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14850
14851         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14852         (decode_options): Likewise.
14853         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14854
14855 2010-05-16  Jan Hubicka  <jh@suse.cz>
14856
14857         * ipa.c (function_and_variable_visibility): Also bring local all
14858         aliases.
14859
14860 2010-05-16  Richard Guenther  <rguenther@suse.de>
14861
14862         * alias.c (nonoverlapping_memrefs_p): Remove use of
14863         IPA type-escape information.
14864
14865 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14866
14867         * c-common.c (c_common_reswords): Add _Static_assert for C.
14868         * c-parser.c (c_token_starts_declaration,
14869         c_parser_next_token_starts_declaration,
14870         c_parser_static_assert_declaration_no_semi,
14871         c_parser_static_assert_declaration): New.
14872         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14873         Handle static assertions if static_assert_ok.
14874         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14875         c_parser_compound_statement_nostart, c_parser_label,
14876         c_parser_for_statement, c_parser_objc_methodprotolist,
14877         c_parser_omp_for_loop): All callers of
14878         c_parser_declaration_or_fndef changed.
14879         (c_parser_struct_declaration): Handle static assertions.
14880         (c_parser_compound_statement_nostart): Use
14881         c_parser_next_token_starts_declaration and
14882         c_token_starts_declaration to detect start of declarations.
14883         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14884         Likewise.
14885
14886 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14887
14888         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14889         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14890         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14891         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14892         (mmix_function_outgoing_value): Rename to...
14893         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14894         (mmix_function_value_regno_p): Make static.
14895         (mmix_libcall_value): New function.
14896         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14897         mmix_function_value_regno_p): Remove declaration.
14898
14899 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14900
14901         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14902         BUILT_IN_ALLOCA if stack checking is enabled.
14903
14904 2010-05-16  Richard Guenther  <rguenther@suse.de>
14905
14906         * var-tracking.c (vars_copy_1): Inline ...
14907         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14908         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14909         (variable_merge_over_cur): Adjust.  Merge asserts.
14910         (variable_merge_over_src): Likewise.
14911         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14912         (variable_post_merge_new_vals): Merge asserts.
14913         (variable_post_merge_perm_vals): Likewise.
14914         (find_mem_expr_in_1pdv): Likewise.
14915         (dataflow_set_different_value): Remove.
14916         (onepart_variable_different_p): Merge asserts.
14917         (variable_different_p): Likewise.
14918         (dataflow_set_different_1): Inline ...
14919         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14920         (emit_notes_for_differences_1): Merge asserts.
14921
14922 2010-05-16  Richard Guenther  <rguenther@suse.de>
14923
14924         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14925         * optabs.c (libfunc_decl_hash): Likewise.
14926         * varasm.c (emutls_decl): Likewise.
14927
14928 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14929
14930         * c-decl.c: Don't include gimple.h.
14931         (merge_decls): Do not copy gimple_body.
14932
14933 2010-05-15  Jason Merrill  <jason@redhat.com>
14934
14935         * c.opt: Add -fnothrow-opt.
14936
14937 2010-05-15  Jan Hubicka  <jh@suse.cz>
14938
14939         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14940         analyzed.
14941         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14942
14943 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14944
14945         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14946         * Makefile.in: Add it.
14947         Fix all other Makefile dependencies for changes below.
14948         * tree.h: Include it instead of defining VEC primitives here.
14949         * gimple.h: Likewise.
14950         * rtl.h: Likewise.
14951         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14952         * except.h: Include vecir.h, break dependence on tree.h.
14953
14954         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14955         Move from here...
14956         * tree-iterator.c: ...to here.
14957         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14958
14959         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14960         tm_p.h.
14961         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14962         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14963         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14964         tree-mudflap.h, and target.h.
14965         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14966         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14967         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14968         Add FIXME for why gimple.h is still included (should be unnecessary
14969         since GCC 4.5 gimplification unit-at-a-time).
14970         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14971         * c-pragma.c: Add FIXME for why function.h needs to be included just
14972         for cfun, at front-end level.
14973         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14974         Do not include ggc.h, but include vecprim.h for VEC(char).
14975         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14976         Explain why target.h is included.
14977         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14978         Explain why gimple.h is included.
14979         * c-ppoutput.c: Do not include tm.h.
14980         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14981         * c-parses.c: Explain why rtl.h is included, and that this (and only
14982         this) is also why tm.h must be included.
14983         Do not include except.h.
14984         * c-lang.c: Do not include ggc.h.
14985
14986 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14987
14988         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14989
14990 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14991
14992         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14993         unions by default if those structs and unions have no tags.  Do
14994         not condition anonymous struct and unions handling on flag_iso.
14995         Allow anonymous structs and unions for C1X.
14996         (finish_struct): Do not diagnose lack of named fields when
14997         anonymous structs and unions present for C1X.  Accept flexible
14998         array members in structure with anonymous structs or unions but no
14999         directly named fields.
15000         * doc/extend.texi (Unnamed Fields): Update.
15001
15002 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
15003
15004         * gimple.h (compare_field_offset): Rename into...
15005         (gimple_compare_field_offset): ...this.
15006         * gimple.c (compare_field_offset): Rename into...
15007         (gimple_compare_field_offset): ...this.  Compare the full access if
15008         the offset is self-referential.
15009         (gimple_types_compatible_p): Adjust for above renaming.
15010         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
15011         DECL_NONADDRESSABLE_P flag of fields before merging them.
15012
15013 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
15014
15015         * tree.h (ctor_to_list): Delete.
15016         * tree.c (ctor_to_list): Delete.
15017
15018 2010-05-15  Jan Hubicka  <jh@suse.cz>
15019
15020         * ipa-reference.c: Include toplev.h
15021         (is_proper_for_analysis): Only add to all_module_statics
15022         if it is allocated.
15023         (write_node_summary_p, stream_out_bitmap,
15024         ipa_reference_write_optimization_summary,
15025         ipa_reference_read_optimization_summary): New.
15026         (struct ipa_opt_pass_d pass_ipa_reference): Add
15027         optimization summary streaming.
15028         * lto-cgraph.c (referenced_from_this_partition_p,
15029         reachable_from_this_partition_p): New functions.
15030         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15031         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
15032         * opts.c (decode_options): Enable ipa_reference.
15033         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
15034         * lto-streamer.h (referenced_from_this_partition_p,
15035         reachable_from_this_partition_p): Declare.
15036
15037 2010-05-15  Richard Guenther  <rguenther@suse.de>
15038
15039         PR tree-optimization/44038
15040         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
15041         taking the address of a V_C_E of a constant.
15042
15043 2010-05-14  Jan Hubicka  <jh@suse.cz>
15044
15045         * tree.h (memory_identifier_string): Remove.
15046         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
15047         (ipa_reference_global_vars_info_d): Remove statics_not_read and
15048         statics_not_written.
15049         (ipa_reference_optimization_summary_d): New structure.
15050         (ipa_reference_optimization_summary_t): New type and vector.
15051         (ipa_reference_vars_info_d): Embedd structures instead of using
15052         pointers.
15053         (reference_vars_to_consider): Remove out of GGC space.
15054         (module_statics_escape): Remove.
15055         (global_info_obstack): Rename to ...
15056         (optimization_summary_obstack): ... this one.
15057         (initialization_status_t): Remove.
15058         (memory_identifier_string): Remove.
15059         (get_reference_vars_info): Fix indenting.
15060         (set_reference_vars_info): Likewise.
15061         (get_reference_optimization_summary): New.
15062         (set_reference_optimization_summary): New.
15063         (get_global_reference_vars_info): Remove.
15064         (ipa_reference_get_read_global): Remove.
15065         (ipa_reference_get_written_global): Remove.
15066         (ipa_reference_get_not_read_global): Update.
15067         (ipa_reference_get_not_written_global): Update.
15068         (is_proper_for_analysis): Outlaw addressable.
15069         (propagate_bits): Update for new datastructures.
15070         (analyze_variable): Remove.
15071         (init_function_info): Update for new datastructures.
15072         (clean_function_local_data): Remove.
15073         (clean_function): Remove.
15074         (copy_global_bitmap): Use optimizations_summary_obstack.
15075         (duplicate_node_data): Duplicate optimization summary only.
15076         (remove_node_data): Remove optimization summary only.
15077         (generate_summary): Do not analyze variables; do not compute
15078         module_statics_escape; do not prune solutions by it.
15079         (read_write_all_from_decl): Fix typos in comments.
15080         (propagate): Doscover readonly and nonaddressable first;
15081         update for new datastructures; share global bitmaps.
15082         * ipa-reference.h (ipa_reference_get_read_global,
15083         ipa_reference_get_written_global): Remove.
15084         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
15085         * Makefile.in: Remove ipa-refereference from GT files.
15086
15087 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
15088
15089         PR debug/44112
15090         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
15091         for all SYMBOL_REF_DECLs.
15092
15093 2010-05-14  Jan Hubicka  <jh@suse.cz>
15094
15095         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
15096         (varpool_all_refs_explicit_p): New inline function.
15097         * ipa-reference.c: Update comment.
15098         (module_statics_written): Remove.
15099         (get_static_decl): Remove.
15100         (ipa_init): Do not initialize module_statics_written.
15101         (analyze_function): Likewise.
15102         (generate_summary): Likewise; do not compute module_statics_readonly
15103         and do not update variable flags.
15104         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
15105         * ipa.c: Inlucde flags.h
15106         (cgraph_local_node_p): New.
15107         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
15108         promote functions to local.
15109         (ipa_discover_readonly_nonaddressable_vars): New function.
15110         (function_and_variable_visibility): Use cgraph_local_node_p.
15111         * varpool.c (varpool_finalize_decl): Set force_output for
15112         DECL_PRESERVE_P vars.
15113
15114 2010-05-14  Jan Hubicka  <jh@suse.cz>
15115
15116         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
15117
15118 2010-05-14  Richard Guenther  <rguenther@suse.de>
15119
15120         PR tree-optimization/44119
15121         * tree-ssa-pre.c (eliminate): Properly mark replacement of
15122         a PHI node necessary.
15123
15124 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15125
15126         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
15127
15128 2010-05-14  Jason Merrill  <jason@redhat.com>
15129
15130         PR c++/44127
15131         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
15132         (gimple_call_set_nothrow): New.
15133         * gimple.c (gimple_build_call_from_tree): Call it.
15134         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
15135
15136         PR c++/44127
15137         * gimplify.c (gimplify_seq_add_stmt): No longer static.
15138         * gimple.h: Declare it.
15139         * gimple.c (gimple_build_eh_filter): No ops.
15140
15141 2010-05-14  Jan Hubicka  <jh@suse.cz>
15142
15143         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
15144         nodes already in queue.
15145         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
15146         re-enqueueing node.
15147
15148 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
15149
15150         PR debug/44136
15151         * cfgexpand.c (expand_debug_expr): If non-memory op0
15152         has BLKmode, return NULL.
15153
15154 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
15155
15156         * config.gcc: Add support for --with-cpu option for bdver1.
15157         * config/i386/i386.h (TARGET_BDVER1): New macro.
15158         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
15159         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
15160         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
15161         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
15162         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
15163         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
15164         (processor_type): Add PROCESSOR_BDVER1.
15165         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
15166         processor_type in config/i386/i386.h.
15167         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
15168         movaps <reg, reg> instead of movapd <reg, reg> when replacing
15169         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
15170         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
15171         to emit packed xor instead of packed double/packed integer
15172         xor for SSE and AVX when moving a zero value.
15173         * config/i386/sse.md: Add check for
15174         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
15175         movapd/movdqa for SSE and AVX.
15176         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
15177         single logical operations i.e and, or and xor instead of packed double
15178         logical operations for SSE and AVX.
15179         * config/i386/i386-c.c (ix86_target_macros_internal):
15180         Add PROCESSOR_BDVER1.
15181         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
15182         (has_fma4, has_xop): New.
15183         * config/i386/i386.c (bdver1_cost): New variable.
15184         (m_BDVER1): New macro.
15185         (m_AMD_MULTIPLE): Add m_BDVER1.
15186         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
15187         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
15188         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
15189         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
15190         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
15191         x86_tune_sse_partial_reg_dependency,
15192         x86_tune_sse_unaligned_load_optimal,
15193         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
15194         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
15195         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
15196         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
15197         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
15198         Enable/disable for bdver1.
15199         (processor_target_table): Add bdver1_cost.
15200         (cpu_names): Add bdver1.
15201         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
15202          processor_alias_table.
15203         (ix86_expand_vector_move_misalign): Change.
15204         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
15205         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
15206         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
15207         of movupd/movdqu for SSE and AVX.
15208         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
15209         (ix86_tune_adjust_cost): Add code for bdver1.
15210         (standard_sse_constant_opcode): Add check for
15211         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
15212         of packed double xor for SSE and AVX.
15213
15214 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
15215
15216         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
15217         result to unsigned.
15218
15219 2010-05-14  Tristan Gingold  <gingold@adacore.com>
15220
15221         * toplev.c (default_debug_hooks): Remove this variable.
15222         (process_options): Remove assignments to default_debug_hooks.
15223
15224 2010-05-14  Martin Jambor  <mjambor@suse.cz>
15225
15226         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
15227         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
15228         * langhooks.h (struct lang_hooks_for_decls): Removed field
15229         fold_obj_type_ref.
15230         * tree.c (free_lang_data): Remove assignment to
15231         lang_hooks.fold_obj_type_ref.
15232         * tree.def (OBJ_TYPE_REF): Update comment.
15233
15234 2010-05-14  Richard Guenther  <rguenther@suse.de>
15235
15236         PR tree-optimization/44124
15237         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
15238
15239 2010-05-14  Alan Modra  <amodra@gmail.com>
15240
15241         PR target/44075
15242         * config/rs6000/rs6000.c (struct machine_function): Reorder
15243         fields for better packing.  Add lr_save_state.
15244         (rs6000_ra_ever_killed): Return lr_save_state if set.
15245         (rs6000_emit_eh_reg_restore): Set lr_save_state.
15246
15247 2010-05-13  Jan Hubicka  <jh@suse.cz>
15248
15249         * varpool.c (decide_is_variable_needed): Drop code checking
15250         TREE_SYMBOL_REFERENCED.
15251
15252 2010-05-13  Jan Hubicka  <jh@suse.cz>
15253
15254         * final.c (output_addr_const): Do not call mark_decl_referenced.
15255         * cgraphunit.c (process_function_and_variable_attributes): Use
15256         mark_needed_node dirrectly.
15257         (assemble_thunk): Do not call mark_decl_referenced.
15258
15259 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
15260
15261         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
15262
15263 2010-05-13  Jeff Law  <law@redhat.com>
15264
15265         * ira-conflicts.c (print_allocno_conflicts): New function broken out
15266         from...
15267         (print_conflicts): Call print_allocno_conflicts.
15268
15269 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
15270
15271         PR debug/44104
15272         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
15273         if it is NULL.
15274
15275 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
15276
15277         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
15278         t-mingw-w64 or t-mingw-w32 for multilib configuration.
15279         * config/i386/t-mingw-w32: New.
15280         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
15281
15282 2010-05-13  Martin Jambor  <mjambor@suse.cz>
15283
15284         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
15285         gimple-fold.c).
15286         * gimple-fold.c (get_base_binfo_for_type): New function.
15287         (gimple_get_relevant_ref_binfo): Likewise.
15288         (gimple_fold_obj_type_ref_known_binfo): Likewise.
15289         (gimple_fold_obj_type_ref): Likewise.
15290         (fold_gimple_call): Simplify condition for folding virtual calls
15291         and call gimple_fold_obj_type_ref.
15292         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
15293         (gimple_fold_obj_type_ref_known_binfo): Likewise.
15294
15295 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
15296
15297         * config/rs6000/rs6000-protos.h
15298         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
15299         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
15300         (rs6000_debug_mode_dependent_address)
15301         (rs6000_mode_dependent_address_ptr): Likewise.
15302
15303 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
15304
15305         PR debug/43983
15306         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
15307         by SRA.
15308         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
15309         * tree-sra.c (create_access_replacement): Call unshare_expr before
15310         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
15311         * dwarf2out.c: Include tree-flow.h.
15312         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
15313         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
15314         Handle DW_OP_bit_piece.
15315         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
15316         construct_piece_list, adjust_piece_list): New functions.
15317         (add_var_loc_to_decl): Handle SRA optimized variables.
15318         Adjust for var_loc_note to loc field renaming.
15319         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
15320         in VAR_LOCATION note.
15321         (new_loc_descr_op_bit_piece): New function.
15322         (dw_sra_loc_expr): New function.
15323         (dw_loc_list): Use it.  Don't handle the last range after the
15324         loop, handle it inside of the loop.  Adjust for var_loc_note
15325         to loc field renaming.
15326         (add_location_or_const_value_attribute): Only special case
15327         single entry loc lists if loc is NOTE_P.  Adjust for
15328         var_loc_note to loc field renaming.
15329         (dwarf2out_var_location): Don't set newloc->var_loc_note
15330         and newloc->next here.
15331
15332 2010-05-12  Jan Hubicka  <jh@suse.cz>
15333
15334         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
15335         flag.
15336         * cgraph.h (cgraph_only_called_directly_p,
15337         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
15338         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
15339         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
15340         (assemble
15341         * ipa.c (cgraph_remove_unreachable_nodes): Use
15342         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
15343         flags.
15344         * tree-inline.c (copy_bb): Check address_taken flag.
15345         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
15346         externally_visible flag.
15347
15348 2010-05-12  Jason Merrill  <jason@redhat.com>
15349
15350         PR bootstrap/44048
15351         PR target/44099
15352         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
15353         * sdbout.c (plain_type_1): Likewise.
15354         * dwarf2out.c (is_base_type): Likewise.
15355         (gen_type_die_with_usage): Likewise.  Generate
15356         DW_TAG_unspecified_type for any LANG_TYPE.
15357
15358 2010-05-12  Jan Hubicka  <jh@suse.cz>
15359
15360         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
15361         indrect edges too.
15362         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
15363         (cgraph_clone_edge): Update.
15364         (cgraph_node_remove_callees): Remove indirect calls too.
15365         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
15366         (cgraph_create_indirect_edge): Update prototype.
15367         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
15368         is_proper_for_analysis.
15369         (add_new_function, visited_nodes, function_insertion_hook_holder,
15370         get_local_reference_vars_info, mark_address_taken, mark_address,
15371         mark_load, mark_store, check_asm_memory_clobber, check_call,
15372         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
15373         (ipa_init): Do not initialize visited_nodes;
15374         function_insertion_hook_holder.
15375         (analyze_variable): Rewrite.
15376         (analyze_function): Rewrite.
15377         (copy_local_bitmap): Remove.
15378         (duplicate_node_dat): Do not duplicate local info.
15379         (generate_summary): Simplify to only walk cgraph.
15380         (write_node_summary_p, ipa_reference_write_summary,
15381         ipa_reference_read_summary): Remove.
15382         (propagate): Do not remove function insertion;
15383         generate summary.
15384         (pass_ipa_reference): NULLify summary handling fields.
15385         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
15386         (input_edge): Input ecf_flags.
15387         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
15388         (update_indirect_edges_after_inlining): Ignore edges with unknown
15389         param.
15390
15391 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
15392
15393         * implicit-zee.c: New file.
15394         * tree-pass.h (pass_implicit_zee): Declare.
15395         * passes.c (init_optimization_passes): Add zee pass.
15396         * common.opt (fzee): New flag.
15397         * timevar.def (TV_ZEE): Define.
15398         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
15399         and beyond.
15400         * Makefile.in (implicit-zee.o): Add new build file.
15401
15402 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15403             Nathan Froyd  <froydnj@codesourcery.com>
15404
15405         * c-common.c (sync_resolve_params): Remove write-only variable.
15406
15407 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
15408
15409         * target.h (struct gcc_target): Add mode_dependent_address_p field.
15410         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15411         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
15412         * targhooks.c (default_mode_dependent_address_p): New function.
15413         * targhooks.h (default_mode_dependent_address_p): Declare function.
15414         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15415         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
15416         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
15417         target hook. Change return type to bool.
15418         * recog.h (mode_dependent_address_p): Change return type to bool.
15419
15420 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15421             Nathan Froyd  <froydnj@codesourcery.com>
15422
15423         * tree-mudflap.c (build_function_type_0, build_function_type_1,
15424         build_function_type_2, build_function_type_3): Remove.
15425         (mudflap_init): Use build_function_type_list.
15426
15427 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15428             Nathan Froyd  <froydnj@codesourcery.com>
15429
15430         * coverage.c (build_fn_info_value): Call build_constructor instead of
15431         build_constructor_from_list.
15432         (build_ctr_info_value): Likewise.
15433         (build_gcov_info): Likewise.
15434
15435 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
15436
15437         * tree.c (build_constructor): Compute TREE_CONSTANT for the
15438         resultant constructor.
15439         (build_constructor_single): Don't set TREE_CONSTANT.
15440         (build_constructor_from_list): Don't compute TREE_CONSTANT.
15441
15442 2010-05-12  Jan Hubicka  <jh@suse.cz>
15443
15444         * cgraph.h (struct varpool_node): Add aux.
15445         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
15446         * varpool.c (varpool_remove_node): Do not remove initializer.
15447         (varpool_reset_queue): Export.
15448         (varpool_finalize_decl): Volatile vars are forced to be output.
15449         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
15450         replaced decl.
15451         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
15452         process_references, varpool_can_remove_if_no_refs): New functions.
15453         (cgraph_remove_unreachable_nodes): Handle variables too.
15454
15455 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15456
15457         PR target/44088
15458         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
15459
15460 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
15461
15462         PR middle-end/44085
15463         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
15464         change value of ORT_TASK.
15465         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
15466         (omp_notice_threadprivate_variable): New function.
15467         (omp_notice_variable): Call it for threadprivate variables.
15468         If enclosing ctx is a task, print enclosing task rather than
15469         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
15470         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
15471         if task has untied clause.
15472
15473         PR debug/42278
15474         * dwarf2out.c (base_type_die): Don't add name attribute here.
15475         (modified_type_die): Instead of sizetype use
15476         its underlying original type.  If a DW_TAG_base_type doesn't
15477         have name added, add __unknown__.
15478         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
15479         always call force_type_die instead.
15480
15481 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
15482
15483         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
15484         for __stack_chk_guard.
15485
15486 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15487
15488         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
15489         don't call start_source_file debug hook here...
15490         (finish_options): ... but here, after outputting predefined and
15491         command line defines and undefs.
15492
15493         PR middle-end/44071
15494         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
15495         no fallthru edge.
15496         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
15497         optimizing away empty bb with no successors, move over its
15498         footer chain to fallthru predecessor.
15499         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
15500         (rtl_split_edge): For asm goto call patch_jump_insn even if
15501         splitting fallthru edge.
15502
15503         PR c++/44059
15504         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
15505         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
15506         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
15507         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
15508         on DW.ref.* decls.
15509
15510         PR c++/44062
15511         * c-parser.c (c_parser_expression): Mark LHS of a comma
15512         expression as read if it is a decl, handled component or
15513         COMPOUND_EXPR with that on the RHS.
15514         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
15515         if it is a decl or handled component.
15516
15517 2010-05-11  Jan Hubicka  <jh@suse.cz>
15518
15519         * lto-symtab.c (lto_symtab_free): New function.
15520         * lto-streamer.h (lto_symtab_free): Declare.
15521
15522 2010-05-11  Jan Hubicka  <jh@suse.cz>
15523
15524         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
15525         that if function is needed it is reachable.
15526         (lto_output_node): See if it the function is reachable or referenced.
15527         (output_cgraph): Update call of lto_output_node.
15528         * lto-streamer.h (reachable_from_other_partition_p): Declare.
15529
15530 2010-05-11  Jan Hubicka  <jh@suse.cz>
15531
15532         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
15533         Mark as used.
15534
15535 2010-05-11  Jan Hubicka  <jh@suse.cz>
15536
15537         PR tree-optimize/44063
15538         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
15539         queue.
15540         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
15541         limits.
15542         (estimate_function_body_sizes): Compute sizes even when disregarding.
15543
15544 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
15545
15546         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
15547
15548 2010-05-11  Jan Hubicka  <jh@suse.cz>
15549
15550         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
15551         into every boundary.
15552
15553 2010-05-11  Jan Hubicka  <jh@suse.cz>
15554
15555         * matrix-reorg.c (matrix_reorg): Rebuild edges.
15556
15557 2010-05-11  Jan Hubicka  <jh@suse.cz>
15558
15559         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
15560         lto_streamer_cache_delete): Put nodes into heap.
15561         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
15562         heap.
15563
15564 2010-05-11  Jan Hubicka  <jh@suse.cz>
15565
15566         * cgraphbuild.c (cgraph_rebuild_references): New.
15567         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
15568         out extern inlines.
15569         * cgraph.h (cgraph_rebuild_references): Declare.
15570         * tree-inline.c (tree_function_versioning): Use it.
15571         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
15572
15573 2010-05-11  Jan Hubicka  <jh@suse.cz>
15574
15575         * cgraph.c: Include ipa-utils.h
15576         (cgraph_create_virtual_clone): Update references.
15577         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
15578
15579 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15580
15581         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
15582         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
15583         cache size.
15584
15585 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15586
15587         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
15588
15589 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15590
15591         * gcc.c (execute): For -### don't quote arguments that
15592         contain just alphanumerics and _/-. characters.
15593         * doc/invoke.texi: Document that change for -###.
15594
15595         PR debug/44023
15596         * df-problems.c (struct dead_debug): Add to_rescan field.
15597         (dead_debug_init): Clear to_rescan field.
15598         (dead_debug_finish): Rescan all debug insns in to_rescan
15599         bitmap and free the bitmap.
15600         (dead_debug_insert_before): Instead of rescanning debug insns
15601         immediately queue their rescanning until dead_debug_finish.
15602         (df_note_bb_compute): After dead_debug_add do continue instead
15603         of break.
15604
15605 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
15606
15607         PR debug/44028
15608         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
15609         clear also INSN_REG_USE_LIST.
15610
15611 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15612
15613         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
15614
15615 2010-05-10  Jan Hubicka  <jh@suse.cz>
15616
15617         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
15618         commited change.
15619
15620 2010-05-10  Jan Hubicka  <jh@suse.cz>
15621
15622         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
15623         Allocate encoders.
15624         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
15625         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
15626         (lto_streamer_cache_create): Init alloc pool.
15627         (lto_streamer_cache_delete): Free alloc pool.
15628         * lto-streamer.h: Include alloc pool.
15629         (lto_streamer_cache_d): Use alloc pool.
15630         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
15631
15632 2010-05-10  Jan Hubicka  <jh@suse.cz>
15633
15634         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
15635         * cgraphbuild.c: Include except.h
15636         (record_type_list, record_eh_tables): New function.
15637         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
15638
15639 2010-05-10  Jan Hubicka  <jh@suse.cz>
15640
15641         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
15642         __frame_dummy_init_array_entry, force_to_data): Attribute as used
15643         rather than unused.
15644
15645 2010-05-10  Michael Matz  <matz@suse.de>
15646
15647         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15648         (can_reassociate_p): Use FLOAT_TYPE_P.
15649         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15650         (vect_force_simple_reduction): ... this.
15651         * tree-parloops.c (gather_scalar_reductions): Use
15652         vect_force_simple_reduction.
15653         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15654         vect_is_simple_reduction, add modify argument, if true rewrite
15655         "a-b" into "a+(-b)".
15656         (vect_is_simple_reduction, vect_force_simple_reduction): New
15657         functions.
15658         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15659
15660 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15661             Vladimir Makarov  <vmakarov@redhat.com>
15662
15663         PR rtl-optimization/44012
15664         * ira-build.c (remove_unnecessary_allocnos): Nullify
15665         regno_allocno_map of the removed allocno.
15666
15667 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15668
15669         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15670         to /dev/null.
15671         * configure: Regenerate.
15672
15673 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15674
15675         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15676         unused.
15677         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15678         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15679         support in Sun ld.
15680         * configure: Regenerate.
15681
15682 2010-05-10  Richard Guenther  <rguenther@suse.de>
15683
15684         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15685         marked if the entry identifier is marked.
15686
15687 2010-05-10  Richard Guenther  <rguenther@suse.de>
15688
15689         * c-common.c (struct c_common_attributes): Add fnspec attribute.
15690         (handle_fnspec_attribute): New function.
15691         * gimple.h (gimple_call_return_flags): Declare.
15692         (gimple_call_arg_flags): Likewise.
15693         * gimple.c (gimple_call_arg_flags): New function.
15694         (gimple_call_return_flags): Likewise.
15695         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15696         New argument flags.
15697         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15698         return value flags.
15699         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15700         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15701         main work to ...
15702         (make_heapvar_for): ... this new function.
15703         (handle_rhs_call): Handle fnspec attribute argument specifiers.
15704         (handle_lhs_call): Likewise.
15705         (find_func_aliases): Adjust.
15706
15707 2010-05-10  Richard Guenther  <rguenther@suse.de>
15708
15709         PR tree-optimization/44050
15710         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15711
15712 2010-05-10  Wei Guozhi  <carrot@google.com>
15713
15714         PR target/42879
15715         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15716
15717 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15718
15719         PR c/10676
15720         * c-typeck.c (lookup_field): Take a type directly.  Update
15721         recursive calls.
15722         (build_component_ref): Update call to lookup_field.
15723         (set_init_label): Use lookup_field to find initialized field.
15724         Handle returned list of fields like a sequence of designators.
15725
15726 2010-05-09  Richard Guenther  <rguenther@suse.de>
15727
15728         PR middle-end/44024
15729         * fold-const.c (tree_single_nonzero_warnv_p): Properly
15730         handle &FUNCTION_DECL.
15731
15732 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15733
15734         PR c/4784
15735         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
15736         structures and unions recursively.
15737         (detect_field_duplicates): Move duplicate detection with a hash to
15738         detect_field_duplicates_hash.  Always use a hash if anonymous
15739         structures or unions are present.
15740         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15741         give errors.
15742
15743 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15744
15745         PR target/44046
15746         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15747         detect Atom, Core 2 and Core i7.
15748
15749 2010-05-09  Richard Guenther  <rguenther@suse.de>
15750
15751         * gcc.c (store_arg): Handle temporary file deletion for
15752         joined arguments.
15753
15754 2010-05-09  Richard Guenther  <rguenther@suse.de>
15755
15756         PR middle-end/44043
15757         * ipa-inline.c (estimate_function_body_sizes): Return after
15758         disregarding inline limits.
15759
15760 2010-05-09  Richard Guenther  <rguenther@suse.de>
15761
15762         * gcc.c (store_arg): Revert last change.
15763
15764 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
15765
15766         PR middle-end/28685
15767         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15768         (optimize_ops_list): Call it.
15769
15770 2010-05-08  Richard Guenther  <rguenther@suse.de>
15771
15772         PR tree-optimization/44030
15773         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
15774         NECESSARY flag if we propagate from a inserted expression.
15775
15776 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15777
15778         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15779         domain types as equal if they are both PLACEHOLDER_EXPRs.
15780
15781 2010-05-08  Richard Guenther  <rguenther@suse.de>
15782
15783         * lto-wrapper.c (run_gcc): Remove linker output from
15784         command line for LTRANS invocation.
15785
15786 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15787
15788         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15789         lto-macho as lto_binary_reader.
15790         * target.h (struct gcc_target): New hooks lto_start and lto_end.
15791         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15792         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15793         in lto_start and lto_end calls.
15794         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
15795         magic numbers.
15796         (scan_prog_file): Update is_elf_or_coff call.
15797         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15798
15799         * collect2.c (main): Fix enum comparison.
15800
15801         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15802         Add prototypes.
15803         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15804         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
15805         and TARGET_ASM_LTO_END.
15806         * darwin.c: Include obstack.h and lto-streamer.h.
15807         (lto_section_names_offset, lto_section_names_obstack,
15808         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15809         global variables.
15810         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15811         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
15812         to a temporary file.
15813         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15814         (darwin_asm_named_section): For LTO sections, replace the name with
15815         the offset of the section name in a string table, and build this
15816         table.
15817         (darwin_file_start): Initialize global vars for LTO support.
15818         (darwin_file_end): If output to asm_out_file was redirected, append it
15819         to the proper asm_out_file here.  Add the section names section.
15820
15821 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15822
15823         * c-pragma.c (pending_weak_d, pending_weak): New.
15824         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15825         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15826         handle_pragma_weak): Update the uses of pending_weaks.
15827
15828 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15829
15830         PR documentation/44016
15831         * doc/standards.texi (Standards): Link to unversioned
15832         cxx0x_status.html page.
15833
15834 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15835
15836         PR target/43708
15837         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15838         in addition to TREE_USED, to avoid "set but unused" warnings.
15839
15840 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15841
15842         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15843         (is_loop_prefetching_profitable): Do not insert prefetches
15844         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15845         times the prefetch ahead distance.
15846
15847 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15848
15849         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15850         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15851         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15852         the unroll_factor.
15853
15854 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15855
15856         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15857         a diagnostic info when the insn-to-mem ratio is too small.
15858
15859 2010-05-07  Richard Guenther  <rguenther@suse.de>
15860
15861         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15862         the linker plugin.
15863         (store_arg): Queue temp_filename for deletion instead of
15864         the whole argument.
15865
15866 2010-05-07  Richard Guenther  <rguenther@suse.de>
15867
15868         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15869         (run_gcc): Handle LTRANS phase invocation.
15870         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15871
15872 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15873
15874         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15875         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15876
15877 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15878
15879         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15880
15881 2010-05-07  Richard Guenther  <rguenther@suse.de>
15882
15883         PR tree-optimization/44020
15884         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15885         code when PRE is not yet initialized.
15886
15887 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15888
15889         * config/mips/dbxmdebug.h: Remove.
15890         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15891
15892 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15893
15894         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15895         with null pointer and also warn about ordered comparison of zero with
15896         pointer if -Wextra.
15897
15898 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15899
15900         * graphite-blocking.c
15901         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15902         * graphite-clast-to-gimple.c
15903         (clast_to_gcc_expression): Same.
15904         (precision_for_value): Same.
15905         (precision_for_interval): Same.
15906         (gcc_type_for_interval): Same.
15907         (graphite_create_new_guard): Same.
15908         (compute_bounds_for_level): Same.
15909         (graphite_create_new_loop_guard): Same.
15910         * graphite-interchange.c
15911         (build_linearized_memory_access): Same.
15912         (pdr_stride_in_loop): Same.
15913         (memory_strides_in_loop_1): Same.
15914         (memory_strides_in_loop): Same.
15915         (extend_scattering): Same.
15916         (psct_scattering_dim_for_loop_depth): Same.
15917         (pbb_number_of_iterations): Same.
15918         * graphite-poly.h
15919         (debug_iteration_domains): Same.
15920         * graphite-ppl.c
15921         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15922         (ppl_set_inhomogeneous_gmp): Same.
15923         (ppl_strip_loop): Same.
15924         (ppl_lexico_compare_linear_expressions): Same.
15925         (ppl_read_polyhedron_matrix): Same.
15926         (ppl_max_for_le_pointset): Same.
15927         * graphite-ppl.h
15928         (ppl_read_polyhedron_matrix): Same.
15929         (tree_int_to_gmp): Same.
15930         (gmp_cst_to_tree): Same.
15931         (ppl_set_inhomogeneous): Same.
15932         (ppl_set_inhomogeneous_tree): Same.
15933         (ppl_set_coef): Same.
15934         (ppl_set_coef_tree): Same.
15935         * graphite-sese-to-poly.c
15936         (build_pbb_scattering_polyhedrons): Same.
15937         (build_scop_scattering): Same.
15938         (scan_tree_for_params_right_scev): Same.
15939         (scan_tree_for_params): Same.
15940         (find_params_in_bb): Same.
15941         (find_scop_parameters): Same.
15942         (add_upper_bounds_from_estimated_nit): Same.
15943         (build_loop_iteration_domains): Same.
15944         (add_condition_to_domain): Same.
15945         (pdr_add_memory_accesses): Same.
15946
15947 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15948
15949         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15950         CLooG's value_* macros to their respective mpz_* counterparts.
15951         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15952         (graphite_create_new_loop_guard): Same.
15953         * graphite-interchange.c (build_linearized_memory_access): Same.
15954         (pdr_stride_in_loop): Same.
15955         (memory_strides_in_loop_1): Same.
15956         (1st_interchange_profitable_p): Same.
15957         * graphite-poly.c (extend_scattering): Same.
15958         (psct_scattering_dim_for_loop_depth): Same.
15959         (pbb_number_of_iterations): Same.
15960         (pbb_number_of_iterations_at_time): Same.
15961         * graphite-poly.h (new_1st_loop): Same.
15962         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15963         (oppose_constraint): Same.
15964         (insert_constraint_into_matrix): Same.
15965         (ppl_set_inhomogeneous_gmp): Same.
15966         (ppl_set_coef_gmp): Same.
15967         (ppl_strip_loop): Same.
15968         (ppl_lexico_compare_linear_expressions): Same.
15969         (ppl_max_for_le_pointset): Same.
15970         (ppl_min_for_le_pointset): Same.
15971         (ppl_build_realtion): Same.
15972         * graphite-ppl.h (gmp_cst_to_tree): Same.
15973         (ppl_set_inhomogeneous): Same.
15974         (ppl_set_inhomogeneous_tree): Same.
15975         (ppl_set_coef): Same.
15976         (ppl_set_coef_tree): Same.
15977         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15978         (build_scop_scattering): Same.
15979         (add_value_to_dim): Same.
15980         (scan_tree_for_params_right_scev): Same.
15981         (scan_tree_for_params_int): Same.
15982         (scan_tree_for_params): Same.
15983         (find_params_in_bb): Same.
15984         (find_scop_parameters): Same.
15985         (add_upper_bounds_from_estimated_nit): Same.
15986         (build_loop_iteration_domains): Same.
15987         (create_linear_expr_from_tree): Same.
15988         (add_condition_to_domain): Same.
15989         (pdr_add_memory_accesses): Same.
15990
15991 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15992             Jason Merrill  <jason@redhat.com>
15993
15994         * c-common.c (c_common_reswords): Add nullptr.
15995         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15996         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15997         (gen_type_die_with_usage): Likewise.
15998         * dbxout.c (dbxout_type): Likewise.
15999         * sdbout.c (plain_type_1): Likewise.
16000
16001 2010-05-06  Jason Merrill  <jason@redhat.com>
16002
16003         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
16004         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
16005         ret appropriately.
16006         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
16007
16008         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
16009         stripping WITH_SIZE_EXPR.
16010         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
16011         change.
16012
16013 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16014
16015         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
16016         list of obsolete configurations.
16017         Disabled check for obsolete configurations.
16018         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
16019         Removed support for previous versions.
16020         * config/mips/iris.h: Removed.
16021         * config/mips/iris5.h: Removed.
16022         * config/mips/iris6.h: Merged old iris.h contents.
16023         (TARGET_IRIX): Removed.
16024         (DRIVER_SELF_SPECS): Removed mabi=32.
16025         (IDENT_ASM_OP): Removed undef.
16026         (STARTFILE_SPEC): Removed mabi=32.
16027         (ENDFILE_SPEC): Likewise.
16028         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
16029         (MACHINE_TYPE): Update for IRIX 6.5.
16030         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
16031         TARGET_IRIX by TARGET_IRIX6.
16032         (mips_file_start): Likewise.
16033         (mips_output_external): Remove IRIX 5/6 O32 support.
16034         (mips_output_function_prologue): Likewise.
16035         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
16036         TARGET_IRIX6.
16037         (TARGET_CPU_CPP_BUILTINS): Likewise.
16038         (TARGET_IRIX): Removed.
16039         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
16040         (MULTILIB_DIRNAMES): Removed 32.
16041         (MULTILIB_OSDIRNAMES): Removed ../lib.
16042         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
16043         (Specific, mips-sgi-irix5): Document removal.
16044         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
16045         Remove references to older IRIX 6 releases and the O32 ABI.
16046
16047 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
16048
16049         PR bootstrap/43994
16050         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
16051         instead of DF_REF_REAL_REG.
16052
16053 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
16054
16055         PR target/43888
16056         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
16057         handling to still return true for x64 targets.
16058
16059 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16060
16061         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
16062
16063 2010-05-06  Jan Hubicka  <jh@suse.cz>
16064
16065         PR tree-optimization/43791
16066         * ipa-inline.c (update_caller_keys): Remove bogus
16067         disregard_inline_limits check.
16068
16069 2010-05-06  Michael Matz  <matz@suse.de>
16070
16071         PR tree-optimization/43984
16072         * tree-ssa-pre.c (inserted_phi_names): Remove.
16073         (inserted_exprs): Change to bitmap.
16074         (create_expression_by_pieces): Set bits, don't append to vector.
16075         (insert_into_preds_of_block): Don't handle inserted_phi_names.
16076         (eliminate): Don't look at inserted_phi_names, remove deleted
16077         insns from inserted_exprs.
16078         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
16079         (init_pre, fini_pre): Allocate and free bitmaps.
16080         (execute_pre): Insert insns on edges before elimination.
16081
16082 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16083
16084         * tree.c (initializer_zerop): Handle STRING_CST.
16085
16086 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16087
16088         PR 40989
16089         * doc/invoke.texi (Wimplicit): Document as C only.
16090         * opts.c (common_handle_option): Add argument kind.
16091         (handle_option): Rename as read_cmdline_option. Factor out code to...
16092         (handle_option): ... here. New.
16093         (handle_options): Rename as read_cmdline_options.
16094         (decode_options): Update call.
16095         (set_option): Use option index instead of option pointer. Classify
16096         diagnostics correctly.
16097         (enable_warning_as_error): Call handle_option.
16098         * opts.h (set_option): Update declaration.
16099         (handle_option): Declare.
16100         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
16101         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
16102         * c-opts.c (set_Wimplicit): Delete.
16103         (c_family_lang_mask): New static constant.
16104         (c_common_handle_option): Add argument kind. Use handle_option
16105         instead of set_Wimplicit.
16106         (c_common_post_options): warn_implicit and warn_implicit_int
16107         are disabled by default.
16108         * c-common.c (warn_implicit): Do not define here.
16109         * c-common.h (warn_implicit): Do not declare here.
16110         (c_common_handle_option): Update declaration.
16111         * lto-opts.c (lto_reissue_options): Update call to set_option.
16112
16113 2010-05-06  Richard Guenther  <rguenther@suse.de>
16114
16115         PR tree-optimization/43571
16116         * domwalk.c (walk_dominator_tree): Walk the dominator
16117         sons in more optimal order.
16118
16119 2010-05-06  Richard Guenther  <rguenther@suse.de>
16120
16121         PR tree-optimization/43934
16122         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
16123         (stmt_cost): Likewise.
16124         (extract_true_false_args_from_phi): New helper.
16125         (determine_max_movement): For PHI nodes verify we can hoist them
16126         and compute their cost.
16127         (determine_invariantness_stmt): Handle PHI nodes.
16128         (move_computations_stmt): Likewise.  Hoist PHI nodes in
16129         if-converted form using COND_EXPRs.
16130         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
16131         (tree_ssa_lim): Likewise.
16132         * tree-flow.h (tree_ssa_lim): Adjust prototype.
16133         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
16134
16135 2010-05-06  Richard Guenther  <rguenther@suse.de>
16136
16137         PR tree-optimization/43987
16138         * tree-ssa-structalias.c (could_have_pointers): For possibly
16139         address-taken variables force pointers to be recorded.
16140         (create_variable_info_for_1): Likewise.
16141         (push_fields_onto_fieldstack): Pass in wheter all fields
16142         must have pointers.
16143         (find_func_aliases): Query types instead of vars whether
16144         they contain pointers where appropriate.
16145
16146 2010-05-06  Jan Hubicka  <jh@suse.cz>
16147
16148         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
16149         (record_reference, mark_address, mark_load, mark_store): Record
16150         references.
16151         (record_references_in_initializer): Update call of record_references.
16152         (rebuild_cgraph_edges): Remove all references before rebuiding.
16153         * cgraph.c (cgraph_create_node): Clear ref list.
16154         (cgraph_remove_node): Remove references.
16155         (dump_cgraph_node): Dump references.
16156         (cgraph_clone_node): Clone references.
16157         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
16158         (struct cgraph_node, varpool_node): Add ref_lst.
16159         * ipa-ref.c: New file.
16160         * ipa-ref.h: New file.
16161         * ipa-ref-inline.h: New file.
16162         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
16163         (referenced_from_other_partition_p): New function.
16164         (lto_output_varpool_node): Take set arugment; call
16165         referenced_from_other_partition.
16166         (lto_output_ref): New.
16167         (add_references): New.
16168         (output_refs): New.
16169         (output_cgraph): Compute boundary based on references; output refs.
16170         (output_varpool): Accept cgraph_node_set argument.
16171         (input_ref): New.
16172         (input_refs): New.
16173         (input_cgraph): Call input_refs.
16174         * lto-section-in.c (lto_section_name): Add refs.
16175         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
16176         (ipa-ref.o): New file.
16177         * varpool.c (varpool_node): Clear ipa ref list.
16178         (varpool_remove_node): Remove references.
16179         (dump_varpool_node): Dump references.
16180         (varpool_assemble_decl): Only compile finalized ones.
16181         (varpool_extra_name_alias): Initialize ref list.
16182         * lto-streamer.c (lto-get_section_name): Add .refs section.
16183         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
16184         (referenced_from_other_partition_p): Declared.
16185
16186 2010-05-06  Ira Rosen  <irar@il.ibm.com>
16187
16188         PR tree-optimization/43901
16189         * tree-vect-stmts.c (vectorizable_call): Assert that vector
16190         type is not NULL if it's transformation phase, and return
16191         FALSE if it's analysis.
16192         (vectorizable_conversion, vectorizable_operation,
16193         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
16194
16195 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
16196
16197         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
16198         Delete.
16199         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
16200         New define.
16201         * config/mips/mips-protos.h
16202         (mips_small_register_classes_for_mode_p): Delete prototype.
16203
16204 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
16205
16206         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
16207         * config/arm/arm.c (multiple_operation_profitable_p,
16208         compute_offset_order): New static functions.
16209         (load_multiple_sequence, store_multiple_sequence): Use them.
16210         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
16211         memory offsets, not register numbers.
16212         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
16213
16214 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
16215
16216         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
16217         (get_pending_sizes, put_pending_size, put_pending_sizes):
16218         Update the uses of pending_sizes.
16219         * c-decl.c (store_parm_decls): Likewise.
16220         * c-tree.h (struct c_arg_info): Likewise.
16221         * tree.h: Update the prototype for get_pending_sizes and
16222         put_pending_sizes.
16223
16224 2010-05-05  Jason Merrill  <jason@redhat.com>
16225
16226         PR debug/43370
16227         * c-common.c (handle_aligned_attribute): Respect
16228         ATTR_FLAG_TYPE_IN_PLACE.
16229
16230         PR testsuite/43758
16231         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
16232         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16233         (TARGET_INITIALIZER): Use it.
16234         * c-common.c (attribute_takes_identifier_p): Call it.
16235         * c-common.h: Update prototype.
16236         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
16237         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16238
16239 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
16240
16241         PR debug/43950
16242         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
16243         DW_ID_down_case for Fortran compilation units.
16244
16245 2010-05-05  Jan Hubicka  <jh@suse.cz>
16246
16247         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
16248         handle aliases.
16249
16250 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16251
16252         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
16253         a variable-sized RESULT_DECL.
16254
16255 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
16256
16257         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
16258
16259 2010-05-05  Jason Merrill  <jason@redhat.com>
16260
16261         PR c++/43787
16262         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
16263         returns GS_OK.
16264         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
16265
16266 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
16267             Jakub Jelinek  <jakub@redhat.com>
16268
16269         PR debug/43478
16270         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
16271         (dead_debug_init, dead_debug_finish): New functions.
16272         (dead_debug_add, dead_debug_insert_before): Likewise.
16273         (df_note_bb_compute): Initialize a dead_debug object, add dead
16274         debug uses to it, insert debug bind insns before death insns,
16275         reset debug insns that refer to pending uses at the end.
16276         * rtl.h (make_debug_expr_from_rtl): New prototype.
16277         * varasm.c (make_debug_expr_from_rtl): New function.
16278
16279 2010-05-05  Jan Hubicka  <jh@suse.cz>
16280
16281         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
16282         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
16283         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
16284         lto_varpool_encoder_deref, lto_varpool_encoder_size,
16285         lto_varpool_encoder_encode_initializer_p,
16286         lto_set_varpool_encoder_encode_initializer): New functions.
16287         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
16288         call output_varpool.
16289         (input_varpool_node): Do not always set analyzed.
16290         (input_cgraph_1): Return vector of cgraph nodes.
16291         (input_varpool_1): Return vector of varpools.
16292         (input_cgraph): Free the vectors.
16293         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16294         output only initializers needed.
16295         (lto_output): Only call output_cgraph.
16296         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
16297         * lto-section-out.c (lto_new_out_decl_state): Initialize
16298         state->varpool_node_encoder.
16299         * lto-streamer.h (lto_varpool_encoder_d): New.
16300         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
16301         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
16302         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
16303         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
16304         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
16305         Declare.
16306         (output_varpool, input_varpool): Remove declarations.
16307
16308 2010-05-05  Jan Hubicka  <jh@suse.cz>
16309
16310         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
16311         with body can prevail.
16312
16313 2010-05-05  Jan Hubicka  <jh@suse.cz>
16314
16315         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
16316         size.
16317
16318 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16319
16320         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
16321
16322         * gengtype.h (erro_at_line): Constify pos argument.
16323
16324         * gengtype.c: Include hashtab.h.
16325         (enum gc_used): Document GC_MAYBE_POINTED_TO.
16326         (error_at_line): Constify pos argument.
16327         (do_typedef): Initialize p->opt field.
16328         (get_file_gtfilename): Fix comment typo.
16329         (struct walk_type_data): Constify line field.
16330         (get_output_file_for_structure): New function.
16331         (write_local_func_for_structure): Constify orig_s argument.
16332         Use get_output_file_for_structure.
16333         (write_func_for_structure): Use get_output_file_for_structure.
16334         (INDENT): New define.
16335         (dump_pair, dump_type, dump_type_list, dump_typekind)
16336         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
16337         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
16338         functions.
16339         (seen_types): New variable.
16340         (main): New variable do_dump.  Process "-d" command line option.
16341         Call dump_everything if dump requested.
16342
16343 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
16344
16345         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
16346         in a temporary instead of invoking the macro multiple times.
16347         (track_expr_p): Likewise.
16348
16349 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
16350
16351         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
16352         per new semantics.
16353         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
16354         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
16355         conditions for printing notes.
16356         * common.opt (-Wcoverage-mismatch): Allow negative, default to
16357         true, update documentation.
16358         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
16359
16360 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
16361
16362         PR c/43981
16363         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
16364         on dimen.
16365
16366 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16367
16368         PR target/43799
16369         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
16370         (*sse_prologue_save_insn1): Likewise.
16371         (SSE prologue save splitter): Likewise.
16372
16373 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16374
16375         * tree.c (free_lang_data_in_one_sizepos): New inline function.
16376         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
16377         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
16378         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
16379         all decls.  Call it on DECL_FIELD_OFFSET of fields.
16380         (find_decls_types_r): Follow DECL_VALUE_EXPR.
16381         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
16382
16383 2010-05-04  Martin Jambor  <mjambor@suse.cz>
16384
16385         * tree-sra.c (build_access_from_expr_1): The first parameter type
16386         changed to simple tree.
16387         (build_access_from_expr): Likewise, gsi parameter was eliminated.
16388         (scan_assign_result): Renamed to assignment_mod_result, enum elements
16389         renamed as well.
16390         (build_accesses_from_assign): Removed all parameters except for a
16391         simple gimple statement.  Now returns a simple bool.
16392         (scan_function): All non-analysis parts moved to separate functions
16393         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
16394         parameters and updated both callers.
16395         (sra_modify_expr): Removed parameter data.
16396         (sra_modify_function_body): New function.
16397         (perform_intra_sra): Call sra_modify_function_body to modify the
16398         function body.
16399         (replace_removed_params_ssa_names): Parameter data changed into
16400         adjustments vector.
16401         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
16402         changed the parameter dont_convert to convert with the opposite
16403         meaning.
16404         (sra_ipa_modify_assign): Parameter data changed into adjustments
16405         vector, return value changed to bool.
16406         (ipa_sra_modify_function_body): New function.
16407         (sra_ipa_reset_debug_stmts): Updated a comment.
16408         (modify_function): Use ipa_sra_modify_function_body to modify function
16409         body.
16410
16411 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16412
16413         PR middle-end/43671
16414         * alias.c (true_dependence): Handle the same VALUE in x and mem.
16415         (canon_true_dependence): Likewise.
16416         (write_dependence_p): Likewise.
16417
16418 2010-05-04  Jan Hubicka  <jh@suse.cz>
16419
16420         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
16421         * cgraphbuild.c: Include ipa-utils.h
16422         (record_reference_ctx): New struct.
16423         (record_reference): Simplify to work on initializers; not statements.
16424         (mark_address, mark_load, mark_store): New.
16425         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16426         walk PHI nodes too.
16427         (record_references_in_initializer): Update use of record_reference.
16428         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16429         walk PHI nodes too.
16430
16431 2010-05-04  Jan Hubicka  <jh@suse.cz>
16432
16433         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
16434         node will be removed anyway.
16435         (lto_varpool_replace_node): Allow also unanalyzed nodes;
16436         relink aliases of node into prevailing node.
16437         * varpool.c (varpool_remove_node): Remove aliases properly;
16438         when removing node, remove all its aliases too; remove DECL_INITIAL
16439         of removed node; ggc_free the varpool node.
16440
16441 2010-05-04  Richard Guenther  <rguenther@suse.de>
16442
16443         PR tree-optimization/43879
16444         * tree-ssa-structalias.c (alias_get_name): Use
16445         DECL_ASSEMBLER_NAME if available.
16446         (create_function_info_for): Return the varinfo node.
16447         (ipa_pta_execute): Associate same-body aliases and extra names
16448         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
16449
16450 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16451
16452         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
16453
16454 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
16455
16456         PR bootstrap/43964
16457         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
16458         only if HONOR_REG_ALLOC_ORDER is not defined.
16459
16460 2010-05-04  Richard Guenther  <rguenther@suse.de>
16461
16462         PR tree-optimization/43949
16463         * tree-vrp.c (extract_range_from_binary_expr): Only handle
16464         TRUNC_MOD_EXPR.
16465
16466 2010-04-26  Jason Merrill  <jason@redhat.com>
16467
16468         * c.opt (-fstrict-enums): New.
16469         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
16470
16471 2010-05-03  David Ung  <davidu@mips.com>
16472             James E. Wilson  <wilson@codesourcery.com>
16473
16474         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
16475         emit the trap instruction before the divide for TUNE_74K.
16476
16477 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
16478
16479         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
16480         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
16481         based on the above, for new target hook.
16482
16483         * hooks.c (hook_bool_mode_true): New generic hook.
16484         * hooks.h (hook_bool_mode_true): Add prototype.
16485
16486         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
16487         target hook.
16488         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
16489         target hook, set to hook_bool_mode_false.
16490         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
16491         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
16492         with targetm.small_register_classes_for_mode_p.
16493         (find_reusable_reload): Likewise.
16494         (combine_reloads): Likewise.
16495         * reload1.c (reload_as_needed): Likewise.
16496         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
16497         * ifcvt.c (noce_process_if_block, check_cond_move_block,
16498         dead_or_predicable): Likewise.
16499         * regmove.c (optimize_reg_copy_1): Likewise.
16500         * calls.c (prepare_call_address): Likewise.
16501         (precompute_register_parameters): Likewise.
16502
16503         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
16504         hook definition.
16505         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
16506         implementation of the hook that considers all register classes
16507         small except for SH64.
16508         (sh_override_options): Use the new hook.
16509         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
16510         Add prototype.
16511
16512         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
16513         hook definition.
16514         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
16515         implementation of the hook that considers all register classes
16516         small for THUMB1.
16517         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
16518         Add prototype.
16519
16520         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
16521         hook definition.
16522         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
16523         implementation of the hook that considers all register classes
16524         small for MIPS16.
16525         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
16526         Add prototype.
16527
16528         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
16529         hook definition.
16530         * config/m32c/m32c.h: Likewise.
16531         * config/pdp11/pdp11.h: Likewise.
16532         * config/avr/avr.h: Likewise.
16533         * config/xtensa/xtensa.h: Likewise.
16534         * config/m68hc11/m68hc11.h: Likewise.
16535         * config/mn10300/mn10300.h: Likewise.
16536         * config/mcore/mcore.h: Likewise.
16537         * config/h8300/h8300.h: Likewise.
16538         * config/bfin/bfin.h: Likewise.
16539
16540         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
16541         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
16542
16543 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
16544
16545         * double-int.h (tree_to_double_int): Remove macro.
16546         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
16547         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16548         (tree_to_double_int): New function.
16549         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
16550         Move ...
16551         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16552
16553 2010-05-03  Richard Guenther  <rguenther@suse.de>
16554
16555         PR tree-optimization/43971
16556         * tree-ssa-structalias.c (get_constraint_for_1): Fix
16557         constraints in the !flag_delete_null_pointer_checks case.
16558
16559 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
16560
16561         PR debug/43972
16562         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
16563         result mode matches original rtl mode.
16564
16565 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
16566
16567         PR target/43888
16568         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
16569
16570 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16571
16572         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
16573         when processing flag options.
16574
16575 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16576
16577         * gcov-iov.c (main): Change format string placeholder
16578         from %#08x to 0x%08x.
16579         * genchecksum.c (dosum): Change format string placeholder
16580         from %#02x to 0x%02x.
16581
16582 2010-05-02  Richard Guenther  <rguenther@suse.de>
16583
16584         PR tree-optimization/43879
16585         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
16586
16587 2010-05-02  Bruno Haible  <bruno@clisp.org>
16588
16589         * doc/extend.texi (Function Attributes): Fix a typo.
16590
16591 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16592
16593         Revert:
16594         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
16595         placeholder from 0x%x to %#x.
16596         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16597         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16598         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16599         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16600         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16601         * config/i386/i386.c (ix86_target_string): Ditto.
16602         * config/i386/i386.c (output_pic_addr_const): Ditto.
16603         (print_operand): Ditto.
16604
16605 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16606
16607         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16608         placeholder from 0x%x to %#x.
16609         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
16610         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
16611         (ASM_OUTPUT_DEBUG_DATA): Ditto.
16612         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
16613         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
16614         * optc-gen.awk: Ditto.
16615         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
16616         (HOST_WIDE_INT_PRINT_HEX): Ditto.
16617         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
16618         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16619
16620 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16621
16622         * target.h (struct calls): Add function_value_regno_p field.
16623         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
16624         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
16625         * targhooks.c (default_function_value_regno_p): New function.
16626         * targhooks.h (default_function_value_regno_p): Declare function.
16627         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
16628         * builtins.c. (apply_result_size): (Ditto.).
16629         * combine.c. (likely_spilled_retval_p): (Ditto.).
16630         * mode-switching.c. Include 'target.h'.
16631         (create_pre_exit): Use function_value_regno_p hook.
16632         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
16633         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
16634         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
16635
16636         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
16637         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
16638         (ix86_function_value_regno_p): Declare as static, change argument
16639         type to const unsigned int.
16640         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
16641
16642 2010-05-01  Richard Guenther  <rguenther@suse.de>
16643
16644         PR tree-optimization/43949
16645         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16646         types.
16647         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16648
16649 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16650
16651         * rtl.h (CONST_DOUBLE_P): Define.
16652         (rtx_to_double_int): Declare.
16653         * emit-rtl.c (rtx_to_double_int): New function.
16654         * dwarf2out.c (insert_double): New function.
16655         (loc_descriptor, add_const_value_attribute): Clean up, use
16656         rtx_to_double_int and insert_double functions.
16657
16658 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
16659
16660         * doc/extend.texi (Inline): Add missing return keyword to examples.
16661         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16662         "command-line".
16663
16664 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
16665
16666         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16667         the variable part of the offset as well.  Use highest_pow2_factor for
16668         all alignment checks.
16669
16670 2010-04-30  Richard Guenther  <rguenther@suse.de>
16671
16672         PR tree-optimization/43879
16673         * tree-ssa-structalias.c (type_could_have_pointers): Functions
16674         can have pointers.
16675
16676 2010-04-30  Jan Hubicka  <jh@suse.cz>
16677
16678         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16679         varpool.
16680         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16681
16682 2010-04-30  Jan Hubicka  <jh@suse.cz>
16683
16684         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16685         New.
16686         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16687         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16688         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16689         cgraph_node_set_needs_ltrans_p): Remove.
16690
16691 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16692
16693         * sdbout.c: Include vec.h, do not include varray.h.
16694         (deferred_global_decls, sdbout_global_decl,
16695         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16696         * toplev.c: Do not include varray.h.
16697         (dump_memory_report): Do not dump VARRAY statistics.
16698         * gengtype.c (open_base_file): Ignore varray.h.
16699         * Makefile.in: Update for abovementioned changes.
16700         Remove all traces of varray.c and varray.h.
16701         * varray.c: Remove file.
16702         * varray.h: Remove file.
16703
16704 2010-04-30  Jan Hubicka  <jh@suse.cz>
16705
16706         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16707         references.
16708
16709 2010-04-30  Jan Hubicka  <jh@suse.cz>
16710
16711         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16712         needed.
16713
16714 2010-04-30  Richard Guenther  <rguenther@suse.de>
16715
16716         * tree-ssa-structalias.c (get_constraint_for_1): Generate
16717         constraints for CONSTRUCTOR.
16718
16719 2010-04-30  Richard Guenther  <rguenther@suse.de>
16720
16721         PR lto/43946
16722         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16723         first after all lowering passes.
16724
16725 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16726
16727         * toplev.c: Include varray.h for statistics dumping.
16728         * tree.h: Do not declare varray_head_tag.
16729         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16730         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16731         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16732         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16733         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16734         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16735         c-common.c, c-common.h, reg-stack.c, basic-block.h,
16736         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16737         include varray.h.
16738         * Makefile.in: Update for abovementioned changes.
16739
16740 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
16741
16742         PR debug/43942
16743         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16744
16745 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16746
16747         * config/picochip/picochip.c (picochip_legitimize_address): Define.
16748         Use this function to do machine-specific conversion.
16749         (picochip_legitimize_reload_address): Likewise.
16750         (picochip_legitimate_address_p): Check valid base register only if
16751         strict.
16752         (picochip_check_conditional_copy): Check for modw only if opnd is
16753         register.
16754         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16755         to call the function in c.
16756         * config/picochip/picochip-protos.h
16757         (picochip_legitimize_reload_address): Define.
16758         * config/picochip/picochip.md (supported_compare1): Define.
16759
16760 2010-04-30  Jan Hubicka  <jh@suse.cz>
16761
16762         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16763         (cgraph_global_info): Remove inlined.
16764         (LTO_cgraph_tag_names): Remove.
16765         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16766         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16767         simplify cgraph tags and document.
16768         (lto_output_node): Use only LTO_cgraph_unavail_node and
16769         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16770         for_functions_valid, global info, process and output flags.
16771         (input_overwrite_node): Initialize estimated stack size and
16772         estimated growth.  Do not read flags we no longer store.
16773         (input_node): Likewise do not read info no longer stored.
16774         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16775         flag.
16776
16777 2010-04-30  Richard Guenther  <rguenther@suse.de>
16778
16779         PR tree-optimization/43879
16780         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16781         handle non-zero initializers.
16782
16783 2010-04-30  Richard Guenther  <rguenther@suse.de>
16784
16785         * builtins.c (fold_builtin_1): Delete free (0).
16786
16787 2010-04-29  Jan Hubicka  <jh@suse.cz>
16788
16789         * gengtype.c (open_base_files): Add lto-streamer.h
16790         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16791         (pass_ipa_cp): GGC collect.
16792         * toplev. (compile_file): Do not output symbols.
16793         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16794         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16795         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16796         * lto-section-in.c: Include ggc.h
16797         (lto_new_in_decl_state): Alloc in GGC.
16798         (lto_delete_in_decl_state): Likewise.
16799         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16800         Collect.
16801
16802 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16803
16804         PR target/42895
16805         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16806         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
16807         (HONOR_REG_ALLOC_ORDER): Describe new macro.
16808         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16809         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16810         account only if HONOR_REG_ALLOC_ORDER is not defined.
16811         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16812         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16813
16814 2010-04-29  Jon Grant  <04@jguk.org>
16815
16816         * collect2.c (vflag): Change type from int to bool.
16817         (debug): Likewise.
16818         (helpflag): New global bool.
16819         (main): Set vflag and debug with boolean, not integer truth values.
16820         Accept new "--help" option and output usage text if found.
16821         * collect2.h (vflag): Update prototype.
16822         (debug): Likewise.
16823
16824 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16825
16826         PR bootstrap/43936
16827         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16828
16829 2010-04-29  Richard Guenther  <rguenther@suse.de>
16830
16831         PR bootstrap/43935
16832         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16833         with ATTRIBUTE_UNUSED.
16834
16835 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16836
16837         PR target/43921
16838         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16839         INSN_P with NONDEBUG_INSN_P.
16840         (distance_non_agu_define): Likewise.
16841         (distance_agu_use): Likewise.
16842
16843 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16844
16845         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16846         PR bootstrap/43858
16847         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16848         test_set.
16849
16850 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16851
16852         * plugin.h (invoke_plugin_callbacks): New inline function.
16853         * plugin.c (flag_plugin_added): New global flag.
16854         (add_new_plugin): Initialize above flag.
16855         (invoke_plugin_callbacks): Rename to ...
16856         (invoke_plugin_callbacks_full): ... this.
16857
16858 2010-04-28  Jan Hubicka  <jh@suse.cz>
16859
16860         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16861         (lto_varpool_replace_node): New.
16862         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16863         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16864         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16865         * cgraph.h (varpool_node_ptr): New type.
16866         (varpool_node_ptr): New vector.
16867         (varpool_node_set_def): New structure.
16868         (varpool_node_set): New type.
16869         (varpool_node_set): New vector.
16870         (varpool_node_set_element_def): New structure.
16871         (varpool_node_set_element, const_varpool_node_set_element): New types.
16872         (varpool_node_set_iterator): New type.
16873         (varpool_node): Add prev pointers, add used_from_other_partition,
16874         in_other_partition.
16875         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16876         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16877         varpool_get_node, varpool_remove_node): Declare.
16878         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16879         varpool_node_set_size): New inlines.
16880         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16881         * tree-pass.h (varpool_node_set_def): Forward declare.
16882         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16883         (ipa_write_optimization_summaries): Update prototype.
16884         * ipa-cp.c (ipcp_write_summary): Update.
16885         * ipa-reference.c (ipa_reference_write_summary): Update.
16886         * lto-cgraph.c (lto_output_varpool_node): New static function.
16887         (output_varpool): New function.
16888         (input_varpool_node): New static function.
16889         (input_varpool_1): New function.
16890         (input_cgraph): Input varpool.
16891         * ipa-pure-const.c (pure_const_write_summary): Update.
16892         * lto-streamer-out.c (lto_output): Update, output varpool too.
16893         (write_global_stream): Kill WPA hack.
16894         (produce_asm_for_decls): Update.
16895         (output_alias_pair_p): Handle variables.
16896         (output_unreferenced_globals): Output only needed partition of varpool.
16897         * ipa-inline.c (inline_write_summary): Update.
16898         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16899         cgraph.
16900         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16901         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16902         varpool_node_set_new, varpool_node_set_add,
16903         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16904         debug_varpool_node_set): New functions.
16905         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16906         (execute_one_pass): Process new decls too.
16907         (ipa_write_summaries_2): Pass around vsets.
16908         (ipa_write_summaries_1): Likewise.
16909         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16910         to add.
16911         (ipa_write_optimization_summaries_1): Pass around vsets.
16912         (ipa_write_optimization_summaries): Likewise.
16913         * varpool.c (varpool_get_node): New.
16914         (varpool_node): Update doubly linked lists.
16915         (varpool_remove_node): New.
16916         (dump_varpool_node): More dumping.
16917         (varpool_enqueue_needed_node): Update doubly linked lists.
16918         (decide_is_variable_needed): Kill ltrans hack.
16919         (varpool_finalize_decl): Kill lto hack.
16920         (varpool_assemble_decl): Skip decls in other partitions.
16921         (varpool_assemble_pending_decls): Update doubly linkes lists.
16922         (varpool_empty_needed_queue): Likewise.
16923         (varpool_extra_name_alias): Likewise.
16924         * lto-streamer.c (lto_get_section_name): Add vars section.
16925         * lto-streamer.h (lto_section_type): Update.
16926         (output_varpool, input_varpool): Declare.
16927
16928 2010-04-28  Mike Stump  <mikestump@comcast.net>
16929
16930         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16931
16932 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16933
16934         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16935         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16936         (lto_input_ts_type_tree_pointers): Likewise.
16937         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16938         (lto_output_ts_type_tree_pointers): Likewise.
16939
16940 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16941
16942         Uniquization of constants at the Tree level
16943         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16944         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16945         bit to the end.
16946         (tree_output_constant_def): Declare.
16947         * gimplify.c (gimplify_init_constructor): When using block copy, first
16948         uniquize the constant constructor on the RHS.
16949         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16950         DECL_IN_CONSTANT_POOL flag.
16951         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16952         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16953         constant pool.
16954         (assemble_variable): Deal with symbols belonging to the tree constant
16955         pool.
16956         (get_constant_section): Add ALIGN parameter and simplify.
16957         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16958         (assemble_constant_contents): Use the expression of the VAR_DECL.
16959         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16960         (tree_output_constant_def): New global function.
16961         (mark_constant): Use the expression of the VAR_DECL.
16962         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16963         its expression.
16964         (output_object_block): Likewise and assemble the expression.
16965
16966 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16967
16968         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16969         hash_tree, eq_tree): New tree hash table.
16970         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16971         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16972         lto_orig_address_remove): Reimplement.
16973
16974 2010-04-28  Xinliang David Li  <davidxl@google.com>
16975
16976         PR c/42643
16977         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16978         (compute_uninit_opnds_pos): New function.
16979         (is_non_loop_exit_postdominating): New function.
16980         (compute_control_dep_chain): New function.
16981         (find_pdom): New function.
16982         (convert_control_dep_chain_into_preds): New function.
16983         (find_predicates): New function.
16984         (find_control_equiv_block): New function.
16985         (collect_phi_def_edges): New function.
16986         (find_def_preds): New function.
16987         (find_dom): New function.
16988         (dump_predicates): New function.
16989         (get_cmp_code): New function.
16990         (is_value_included_in): New function.
16991         (find_matching_predicate_in_rest_chains): New function.
16992         (use_pred_not_overlap_with_undef_path_pred): New function.
16993         (is_use_properly_guarded): New function.
16994         (normalize_cond_1): New function.
16995         (is_and_or_or): New function.
16996         (normalize_cond): New function.
16997         (is_gcond_subset_of): New function.
16998         (is_subset_of_any): New function.
16999         (is_or_set_subset_of): New function.
17000         (is_and_set_subset_of): New function.
17001         (is_norm_cond_subset_of): New function.
17002         (is_pred_expr_subset_of): New function.
17003         (is_pred_chain_subset_of): New function.
17004         (is_included_in): New function.
17005         (is_superset_of): New function.
17006         (find_uninit_use): New function.
17007         (warn_uninitialized_phi): New function.
17008         (compute_possibly_undefined_names): New function.
17009         (ssa_undefined_value_p): New function.
17010         (execute_late_warn_uninitialized): New function.
17011         * tree-ssa.c (ssa_undefined_value_p): Removed.
17012         (warn_uninit): Changed to extern.
17013         (warn_uninitialized_phi): Removed.
17014         (warn_uninitialized_vars): Changed to extern.
17015         (execute_late_warn_uninitialized): Removed
17016         * tree-flow.h: Add new prototypes.
17017         * timevar.def: Add new time variable.
17018         * Makefile.in: Add new build file.
17019
17020 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
17021
17022         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
17023         type if available.
17024
17025 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17026
17027         PR target/22224
17028         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
17029
17030 2010-04-28  Martin Jambor  <mjambor@suse.cz>
17031
17032         * cgraph.h (struct cgraph_node): New field indirect_calls.
17033         (struct cgraph_indirect_call_info): New type.
17034         (struct cgraph_edge): Removed field indirect_call. New fields
17035         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
17036         (cgraph_create_indirect_edge): Declare.
17037         (cgraph_make_edge_direct): Likewise.
17038         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
17039         * ipa-prop.h (struct ipa_param_call_note): Removed.
17040         (struct ipa_node_params): Removed field param_calls.
17041         (ipa_create_all_structures_for_iinln): Declare.
17042         * cgraph.c: Described indirect edges and uids in initial comment.
17043         (cgraph_add_edge_to_call_site_hash): New function.
17044         (cgraph_edge): Search also among the indirect edges, use
17045         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
17046         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
17047         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
17048         site hash.
17049         (initialize_inline_failed): Assign a reason to indirect edges.
17050         (cgraph_create_edge_1): New function.
17051         (cgraph_create_edge): Moved some functionality to
17052         cgraph_create_edge_1.
17053         (cgraph_create_indirect_edge): New function.
17054         (cgraph_edge_remove_callee): Add an assert checking for
17055         non-indirectness.
17056         (cgraph_edge_remove_caller): Special-case indirect edges.
17057         (cgraph_remove_edge): Likewise.
17058         (cgraph_set_edge_callee): New function.
17059         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
17060         (cgraph_make_edge_direct): New function.
17061         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
17062         the declaration of the call statement matches.
17063         (cgraph_node_remove_callees): Special-case indirect edges.
17064         (cgraph_clone_edge): Likewise.
17065         (cgraph_clone_node): Clone also the indirect edges.
17066         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
17067         indirect_call, dump count of indirect_calls edges.
17068         * ipa-prop.c (iinlining_processed_edges): New variable.
17069         (ipa_note_param_call): Create indirect edges instead of
17070         creating notes.  New parameter node.
17071         (ipa_analyze_call_uses): New parameter node, pass it on to
17072         ipa_note_param_call.
17073         (ipa_analyze_stmt_uses): Likewise.
17074         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
17075         (print_edge_addition_message): Work on edges rather than on notes.
17076         (update_call_notes_after_inlining): Likewise, renamed to
17077         update_indirect_edges_after_inlining.
17078         (ipa_create_all_structures_for_iinln): New function.
17079         (ipa_free_node_params_substructures): Do not free notes.
17080         (ipa_edge_duplication_hook): Propagate bits within
17081         iinlining_processed_edges bitmap.
17082         (ipa_node_duplication_hook): Do not duplicate notes.
17083         (free_all_ipa_structures_after_ipa_cp): Renamed to
17084         ipa_free_all_structures_after_ipa_cp.
17085         (free_all_ipa_structures_after_iinln): Renamed to
17086         ipa_free_all_structures_after_iinln.
17087         (ipa_write_param_call_note): Removed.
17088         (ipa_read_param_call_note): Removed.
17089         (ipa_write_indirect_edge_info): New function.
17090         (ipa_read_indirect_edge_info): Likewise.
17091         (ipa_write_node_info): Do not stream notes, do stream information
17092         in indirect edges.
17093         (ipa_read_node_info): Likewise.
17094         (lto_ipa_fixup_call_notes): Removed.
17095         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
17096         * ipa-inline.c (pass_ipa_inline): Likewise.
17097         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
17098         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
17099         * tree-inline.c (copy_bb): Removed an unnecessary double check for
17100         is_gimple_call.
17101         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
17102         edges.
17103         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
17104         (output_cgraph): Stream also indirect edges.
17105         (lto_output_edge): Added capability to stream indirect edges.
17106         (input_edge): Likewise.
17107         (input_cgraph_1): Likewise.
17108         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
17109         of indirect edges.
17110
17111 2010-04-28  Richard Guenther  <rguenther@suse.de>
17112
17113         PR tree-optimization/43879
17114         PR tree-optimization/43909
17115         * tree-ssa-structalias.c (struct variable_info): Add
17116         only_restrict_pointers flag.
17117         (new_var_info): Initialize it.  Increment stats.total_vars here.
17118         (create_function_info_for): Do not increment stats.total_vars here.
17119         (get_function_part_constraint): Fix build with C++.
17120         (insert_into_field_list): Remove.
17121         (push_fields_onto_fieldstack): Properly merge fields.
17122         (create_variable_info_for): Split and simplify.
17123         (create_variable_info_for_1): New piece.
17124         (intra_create_variable_infos): Properly make restrict constraints
17125         from parameters.
17126
17127 2010-04-28  Richard Guenther  <rguenther@suse.de>
17128
17129         PR c++/43880
17130         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
17131
17132 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17133             Jan Hubicka  <hubicka@ucw.cz>
17134
17135         * doc/invoke.texi (-Wsuggest-attribute=const,
17136         -Wsuggest-attribute=pure): Document.
17137         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
17138         (function_always_visible_to_compiler_p,
17139         suggest_attribute, warn_function_pure, warn_function_const):
17140         New functions.
17141         (check_call): Improve debug info.
17142         (analyze_function): Do not check availability.
17143         (add_new_function): Check availability.
17144         (propagate): Output warnings.
17145         (skip_function_for_local_pure_const): New function.
17146         (local_pure_const): Use it; output warnings.
17147         * common.opt (Wsuggest-attribute=const,
17148         Wsuggest-attribute=pure): New.
17149
17150 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
17151
17152         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
17153         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
17154         or DW_CFA_def_cfa_offset{,_sf}.
17155
17156 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17157
17158         * tree.h: Fix truncated long macros.
17159
17160 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
17161
17162         * collect2.c (TARGET_64BIT): Redefine to target's default.
17163         * tlink.c: Likewise.
17164         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
17165         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
17166         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
17167         for underscoring __USER_LABEL_PREFIX__.
17168         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
17169         (SUB_LINK_ENTRY32): New.
17170         (SUB_LINK_ENTRY64): New.
17171         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
17172         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
17173         (SUB_LINK_ENTRY64): New.
17174         (SUB_LINK_ENTRY): New.
17175         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
17176         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
17177         x64 target is choosen.
17178         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
17179         * configure: Regenerated.
17180         * configure.ac (leading-mingw64-underscores): Option added.
17181
17182 2010-04-27  Jan Hubicka  <jh@suse.cz>
17183
17184         * doc/invoke.texi (-fipa-profile): Document.
17185         * opts.c (decode_options): Enable ipa-profile at -O1.
17186         * timevar.def (TV_IPA_PROFILE): Define.
17187         * common.opt (fipa-profile): Add.
17188         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
17189         flag for clones.
17190         (cgraph_propagate_frequency): Handle only local ones.
17191         * tree-pass.h (pass_ipa_profile): Declare.
17192         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
17193         (pass_ipa_profile): Use TV_IPA_PROFILE.
17194         * ipa.c (ipa_profile): New function.
17195         (gate_ipa_profile): Likewise.
17196         (pass_ipa_profile): New global variable.
17197         * passes.c (pass_ipa_profile): New.
17198
17199 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
17200
17201         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
17202
17203 2010-04-27  Martin Jambor  <mjambor@suse.cz>
17204
17205         PR middle-end/43812
17206         * ipa.c (dissolve_same_comdat_group_list): New function.
17207         (function_and_variable_visibility): Call
17208         dissolve_same_comdat_group_list when comdat group contains external or
17209         newly local nodes.
17210         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
17211         lists are circular and that they contain only DECL_ONE_ONLY nodes.
17212
17213 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17214
17215         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
17216         (const_hash_1) <VECTOR_CST>: New case.
17217         (compare_constant) <VECTOR_CST>: Likewise.
17218         <ADDR_EXPR>: Deal with LABEL_REFs.
17219         (copy_constant) <VECTOR_CST>: New case.
17220
17221 2010-04-27  Jan Hubicka  <jh@suse.cz>
17222
17223         * cgraph.c (cgraph_propagate_frequency): New function.
17224         * cgraph.h (cgraph_propagate_frequency): Declare.
17225         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
17226         cgraph_propagate_frequency.
17227
17228 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
17229
17230         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
17231
17232 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
17233
17234         PR target/40657
17235         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
17236         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
17237         here to determine which regs to push and how much stack to reserve.
17238
17239 2010-04-27  Jie Zhang  <jie@codesourcery.com>
17240
17241         * doc/gimple.texi (gimple_statement_with_ops): Remove
17242         addresses_taken field.
17243         (gimple_statement_with_memory_ops): Likewise.
17244
17245 2010-04-27  Jan Hubicka  <jh@suse.cz>
17246
17247         * tree-inline.c (eni_inlining_weights): Remove.
17248         (estimate_num_insns): Special case more builtins.
17249
17250 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
17251
17252         PR c/32207
17253         * c-typeck.c (build_binary_op): Move forward check for comparison
17254         pointer with null pointer constant and adjust the diagnostic message.
17255
17256 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
17257
17258         PR lto/42776
17259         * configure.ac (gcc_cv_as_section_has_align): Set if installed
17260         binutils supports extended .section directive needed by LTO, or
17261         warn if older binutils found.
17262         (LTO_BINARY_READER): New AC_SUBST'd variable.
17263         (LTO_USE_LIBELF): Likewise.
17264         * gcc/config.gcc (lto_binary_reader): New target-specific configure
17265         variable.
17266         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
17267         (LTO_USE_LIBELF): Likewise.
17268         * configure: Regenerate.
17269
17270         * collect2.c (is_elf): Rename from this ...
17271         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
17272          object files in addition to ELF-formatted ones.
17273         (scan_prog_file): Caller updated.  Also allow for LTO info marker
17274         symbol to be prefixed or not by an extra underscore.
17275
17276         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
17277         * config/i386/winnt.c: Also #include lto-streamer.h
17278         (i386_pe_asm_named_section): Specify 1-byte section alignment for
17279         LTO named sections.
17280         (i386_pe_asm_output_aligned_decl_common): Add comment.
17281         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
17282
17283 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
17284
17285         PR target/43889
17286         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
17287         Add missing earlyclobber for second alternative.
17288
17289 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
17290
17291         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
17292         bits for artificial defs at the top of the block.
17293         * fwprop.c (single_def_use_enter_block): Don't call it.
17294
17295 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
17296
17297         PR 43715
17298         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
17299         instead of "$gcc_cv_objdump -T".
17300         Use "-undefined dynamic_lookup" on darwin.
17301         * gcc/configure: Regenerate.
17302
17303 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17304
17305         PR c/43893
17306         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
17307
17308 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
17309
17310         * c-parser.c (struct c_token): Move location field up.
17311         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
17312         (struct c_declspecs): Convert typespec_word, storage_class, and
17313         default_int_p into bitfields.
17314         (struct c_declarator): Move loc field up.
17315
17316 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
17317
17318         * cfgloop.h (struct loop): Move can_be_parallel field up.
17319         * ipa-prop.h (struct ip_node_params): Move bitfields up.
17320         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
17321         down.
17322         (struct iv_cand): Convert pos field into a bitfield.
17323         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
17324         field up.
17325         (struct _stmt_vec_info): Shuffle fields for better packing.
17326
17327 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17328
17329         * varasm.c (IN_NAMED_SECTION): Remove guard.
17330         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
17331         (IN_NAMED_SECTION_P): ...this.
17332         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
17333         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17334
17335 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17336
17337         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
17338         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
17339         of shadowing it.  Fix comments.
17340
17341 2010-04-26  Jan Hubicka  <jh@suse.cz>
17342
17343         * cgraph.c (cgraph_create_node): Set node frequency to normal.
17344         (cgraph_clone_node): Copy function frequency.
17345         * cgraph.h (node_frequency): New enum
17346         (struct cgraph_node): Add.
17347         * final.c (rest_of_clean_state): Update.
17348         * lto-cgraph.c (lto_output_node): Output node frequency.
17349         (input_overwrite_node): Input node frequency.
17350         * tre-ssa-loop-ivopts (computation_cost): Update.
17351         * lto-streamer-out.c (output_function): Do not output function
17352         frequency.
17353         * predict.c (maybe_hot_frequency_p): Update and handle functions
17354         executed once.
17355         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
17356         attribute lookup.
17357         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
17358         (compute_function_frequency): Set noreturn functions to be executed
17359         once.
17360         (choose_function_section): Update.
17361         * lto-streamer-in.c (input_function): Do not input function frequency.
17362         * function.c (allocate_struct_function): Do not initialize function
17363         frequency.
17364         * function.h (function_frequency): Remove.
17365         (struct function): Remove function frequency.
17366         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
17367         (try_update): Update.
17368         * tree-inline.c (initialize_cfun): Do not update function frequency.
17369         * passes.c (pass_init_dump_file): Update.
17370         * i386.c (ix86_compute_frame_layout): Update.
17371         (ix86_pad_returns): Update.
17372
17373 2010-04-26  Jie Zhang  <jie@codesourcery.com>
17374
17375         PR tree-optimization/43833
17376         * tree-vrp.c (range_int_cst_p): New.
17377         (range_int_cst_singleton_p): New.
17378         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
17379         when both operands are constants.  Use range_int_cst_p in
17380         BIT_IOR_EXPR case.
17381
17382 2010-04-26  Jan Hubicka  <jh@suse.cz>
17383
17384         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
17385
17386 2010-04-26  Richard Guenther  <rguenther@suse.de>
17387
17388         PR lto/43080
17389         * gimple.c (gimple_decl_printable_name): Deal gracefully
17390         with a NULL DECL_NAME.
17391
17392 2010-04-26  Richard Guenther  <rguenther@suse.de>
17393
17394         PR lto/42425
17395         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
17396         if emitting debug information and it is either a function
17397         or a namespace decl.
17398
17399 2010-04-26  Ira Rosen  <irar@il.ibm.com>
17400
17401         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
17402         determine if the statement is vectorizable, and a macro to access it.
17403         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17404         Skip statements that can't be vectorized. If the analysis fails,
17405         mark the statement as unvectorizable if vectorizing basic block.
17406         (vect_compute_data_refs_alignment): Likewise.
17407         (vect_verify_datarefs_alignment): Skip statements marked as
17408         unvectorizable. Add print.
17409         (vect_analyze_group_access): Skip statements that can't be
17410         vectorized. If the analysis fails, mark the statement as
17411         unvectorizable if vectorizing basic block.
17412         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
17413         * tree-vect-stmts.c (vectorizable_store): Fix the number of
17414         generated stmts for SLP.
17415         (new_stmt_vec_info): Initialize the new field.
17416         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
17417         statements marked as unvectorizable.
17418
17419 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
17420
17421         * c-common.c (flag_isoc1x): New.
17422         (flag_isoc99): Update comment.
17423         * c-common.h (flag_isoc1x): New.
17424         (flag_isoc99): Update comment.
17425         * c-cppbuiltin.c (builtin_define_float_constants): Also define
17426         __<type>_DECIMAL_DIG__.
17427         * c-opts.c (set_std_c1x): New.
17428         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
17429         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
17430         * c.opt (-std=c1x, -std=gnu1x): New options.
17431         * doc/cpp.texi: Mention -std=c1x.
17432         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
17433         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
17434         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
17435         * doc/standards.texi: Mention C1X.
17436         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
17437         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
17438         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
17439         Define for C1X.
17440
17441 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
17442
17443         * config/i386/gmon-sol2.c (_mcleanup): Change format string
17444         placeholder from 0x%x to %#x.
17445         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17446         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17447         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17448         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17449         * config/i386/i386.c (ix86_target_string): Ditto.
17450         (output_pic_addr_const): Ditto.
17451         (print_operand): Ditto.
17452
17453 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
17454
17455         * combine.c (find_split_point): Add third argument.  Use it
17456         to find nested multiply-accumulate instructions.  Adjust calls.
17457         (try_combine): Adjust call to find_split_point.
17458
17459 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17460
17461         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
17462
17463 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
17464
17465         PR tree-optimization/41442
17466         * fold-const.c (merge_truthop_with_opposite_arm): New function.
17467         (fold_binary_loc): Call it.
17468
17469 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17470
17471         * toplev.c (general_init): Set default for fdiagnostics-show-option.
17472         * opts.c (common_handle_option): Allow disabling it.
17473         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
17474
17475 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
17476
17477         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
17478         between modes if both types are integral.
17479
17480 2010-04-23  Richard Guenther  <rguenther@suse.de>
17481
17482         PR tree-optimization/43572
17483         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
17484
17485 2010-04-23  Richard Guenther  <rguenther@suse.de>
17486
17487         PR lto/43455
17488         * tree-inline.c (tree_can_inline_p): Also check compatibility
17489         of return types.
17490
17491 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17492
17493         PR tree-optimization/43846
17494         * tree-sra.c (struct access): New flag grp_assignment_read.
17495         (build_accesses_from_assign): Set grp_assignment_read.
17496         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
17497         (enum mark_read_status): New type.
17498         (analyze_access_subtree): Propagate grp_assignment_read, create
17499         accesses also if both direct_read and root->grp_assignment_read.
17500
17501 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17502
17503         PR middle-end/43835
17504         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
17505         function does not have type attributes.
17506
17507 2010-04-23  Richard Guenther  <rguenther@suse.de>
17508
17509         PR lto/42653
17510         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
17511         of FUNCTION_DECLs.
17512
17513 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17514
17515         * sese.h (create_if_region_on_edge): Remove.
17516
17517         * sese.c (create_if_region_on_edge): Make static.
17518
17519         * tree-inline.c: Do not include ggc.h.
17520
17521         * expr.c: Do not include ggc.h.
17522
17523         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
17524         dependencies.
17525
17526 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
17527
17528         PR target/43744
17529         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17530         in the middle of insns for casesi_worker_2.
17531
17532 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
17533
17534         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
17535
17536 2010-04-22  Ira Rosen  <irar@il.ibm.com>
17537
17538         PR tree-optimization/43842
17539         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
17540         loop unrolling in update of exit phis. Fix comment.
17541         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
17542         least two reduction statements in the loop before starting SLP
17543         analysis.
17544
17545 2010-04-22  Nick Clifton  <nickc@redhat.com>
17546
17547         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
17548
17549 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
17550
17551         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
17552         to simplify a + ~a.
17553
17554 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17555
17556         * tree-parloops.c (loop_parallel_p): New argument
17557         parloop_obstack.  Pass it down.
17558         (parallelize_loops): New variable parloop_obstack.  Initialize it,
17559         pass it down, free it.
17560
17561         * tree-loop-linear.c (linear_transform_loops): Pass down
17562         lambda_obstack.
17563
17564         * tree-data-ref.h (lambda_compute_access_matrices): New argument
17565         of type struct obstack *.
17566
17567         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
17568         scratch_obstack.  Initialize it, pass down, free it.
17569
17570         * lambda.h (lambda_loop_new): Remove.
17571         (lambda_matrix_new, lambda_matrix_inverse)
17572         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
17573         argument of type struct obstack *.
17574
17575         * lambda-trans.c (lambda_trans_matrix_new): New argument
17576         lambda_obstack.  Pass it down, use obstack allocation for ret.
17577         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
17578         it down.
17579
17580         * lambda-mat.c (lambda_matrix_get_column)
17581         (lambda_matrix_project_to_null): Remove.
17582         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
17583         allocation for mat.
17584         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
17585         lambda_obstack.
17586
17587         * lambda-code.c (lambda_loop_new): New function.
17588         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
17589         (lambda_compute_auxillary_space, lambda_compute_target_space)
17590         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
17591         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
17592         (build_access_matrix): New argument lambda_obstack.  Use obstack
17593         allocation for am.
17594         (lambda_compute_step_signs, lambda_compute_access_matrices): New
17595         argument lambda_obstack.  Pass it down.
17596
17597 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17598
17599         * optabs.h (expand_widening_mult): Declare.
17600
17601 2010-04-22  Richard Guenther  <rguenther@suse.de>
17602
17603         PR tree-optimization/43845
17604         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
17605         lookup the CALL_EXPR function and arguments.
17606
17607 2010-04-22  Nick Clifton  <nickc@redhat.com>
17608
17609         * config/stormy16/stormy16.c
17610         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
17611         * config/stormy16/stormy16.h: Tidy up formatting.
17612         (DONT_USE_BUILTIN_SETJMP): Remove definition.
17613         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
17614         (ineqbranchsi): Delete pattern.
17615         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
17616         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
17617         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17618         stormy16-lib2-ucmpsi2.c.
17619
17620 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17621
17622         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
17623         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
17624         extra set merge_set_noclobber, and use it to relax the final test
17625         slightly.
17626         * df.h (df_simulate_find_noclobber_defs): Declare.
17627         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
17628         conditional defs.
17629         (df_simulate_find_noclobber_defs): New function.
17630
17631 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
17632
17633         * config/i386/i386.md: Use {} around multi-line preparation statements.
17634
17635 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17636
17637         * c-tree.h (push_init_level, pop_init_level, set_init_index)
17638         (process_init_element): New argument of type struct obstack *.
17639
17640         * c-typeck.c (push_init_level, pop_init_level, set_designator)
17641         (set_init_index, set_init_label, set_nonincremental_init)
17642         (set_nonincremental_init_from_string, find_init_member)
17643         (output_init_element, output_pending_init_elements)
17644         (process_init_element): New argument braced_init_obstack.  Pass it
17645         down.
17646         (push_range_stack, add_pending_init): New argument
17647         braced_init_obstack.  Use obstack allocation.
17648
17649         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17650         braced_init_obstack.  Pass it down.
17651         (c_parser_braced_init): New variables ret, braced_init_obstack.
17652         Initialize obstack, pass it down and finally free it.
17653
17654 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17655
17656         PR middle-end/29274
17657         * tree-pass.h (pass_optimize_widening_mul): Declare.
17658         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17659         gate_optimize_widening_mul): New static functions.
17660         (pass_optimize_widening_mul): New.
17661         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17662         <case MULT_EXPR>: Remove support for widening multiplies.
17663         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17664         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17665         simplify_gen_unary rather than directly building extensions.
17666         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17667         WIDEN_MULT_EXPR.
17668         * expmed.c (expand_widening_mult): New function.
17669         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17670
17671 2010-04-21  Jan Hubicka  <jh@suse.cz>
17672
17673         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17674         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17675         * lto-wpa-fixup.c: Remove.
17676         * Makefile.in (lto-wpa-fixup.o): Remove.
17677         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17678         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17679         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17680
17681 2010-04-21  Jan Hubicka  <jh@suse.cz>
17682
17683         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17684         add write_optimization_summary, read_optimization_summary.
17685         (ipa_write_summaries_of_cgraph_node_set): Remove.
17686         (ipa_write_optimization_summaries): Declare.
17687         (ipa_read_optimization_summaries): Declare.
17688         * ipa-cp.c (pass_ipa_cp): Update.
17689         * ipa-reference.c (pass_ipa_reference): Update.
17690         * ipa-pure-const.c (pass_ipa_pure_const): Update.
17691         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17692         Update.
17693         * ipa-inline.c (pass_ipa_inline): Update.
17694         * ipa.c (pass_ipa_whole_program): Update.
17695         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17696         * passes.c (ipa_write_summaries_1): Do not test wpa.
17697         (ipa_write_optimization_summaries_1): New.
17698         (ipa_write_optimization_summaries): New.
17699         (ipa_read_summaries): Do not test ltrans.
17700         (ipa_read_optimization_summaries_1): New.
17701         (ipa_read_optimization_summaries): New.
17702
17703 2010-04-21  Jan Hubicka  <jh@suse.cz>
17704
17705         * lto-cgraph.c (lto_output_node): Do not output comdat groups
17706         for boundary nodes.
17707         (output_cgraph): Do not arrange comdat groups for boundary nodes.
17708
17709 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17710
17711         PR debug/40040
17712         * dwarf2out.c (add_name_and_src_coords_attributes): Add
17713         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17714
17715 2010-04-21  Jan Hubicka  <jh@suse.cz>
17716
17717         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17718
17719 2010-04-21  Jan Hubicka  <jh@suse.cz>
17720
17721         * varpool.c (decide_is_variable_needed): Variable is always needed
17722         during ltrans.
17723
17724 2010-04-21  Jan Hubicka  <jh@suse.cz>
17725
17726         * opts.c (decode_options): Enable pure-const pass for whopr.
17727
17728 2010-04-21  Jan Hubicka  <jh@suse.cz>
17729
17730         * cgraph.c (dump_cgraph_node): Dump also assembler name.
17731         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17732         at WPA dumping.
17733         (cgraph_decide_inlining): Do not expect callee to be removed in all
17734         cases.
17735
17736 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
17737
17738         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17739
17740 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17741
17742         * config/i386/i386.md (x86_shrd): Add athlon_decode and
17743         amdfam10_decode attributes.
17744
17745 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17746
17747         PR middle-end/43570
17748         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17749         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17750         (lower_copyprivate_clauses): Use private var in outer
17751         context instead of original var.  Make sure the types
17752         are correct for VLAs.
17753
17754 2010-04-21  Richard Guenther  <rguenther@suse.de>
17755
17756         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17757         to non-pointer objects.
17758
17759 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17760
17761         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
17762         last chain entry if it starts with the still current label.
17763         (add_location_or_const_value_attribute): Check that
17764         loc_list->first->next is NULL instead of comparing ->first with ->last.
17765         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17766         to add_var_loc_to_decl.
17767
17768         * dwarf2out.c (output_call_frame_info): For dw_cie_version
17769         >= 4 add also address size and segment size fields into CIE header.
17770
17771         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17772         long as address size is the same as sizeof (void *) and
17773         segment size is 0.
17774         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
17775         address size or segment size is unexpected, return DW_EH_PE_omit.
17776         (classify_object_over_fdes): If get_cie_encoding returned
17777         DW_EH_PE_omit, return -1.
17778         (init_object): If classify_object_over_fdes returned -1,
17779         pretend there were no FDEs at all.
17780
17781 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17782
17783         * config/i386/i386.md (bswap<mode>2): Macroize expander from
17784         bswap{si,di}2 using SWI48 mode iterator.
17785         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17786         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
17787         set modrm attribute of bswap insn to 0 and remove length attribute.
17788         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17789         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
17790         set mode attribute to <MODE> and remove length attribute.
17791
17792 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
17793
17794         PR rtl-optimization/43520
17795         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17796         zero available registers.
17797
17798 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17799
17800         * builtins.c (fold_builtin_cproj): Fold more cases.
17801
17802 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17803
17804         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17805         (fold_builtin_1): Fold builtin cproj.
17806         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17807         Use ATTR_CONST_NOTHROW_LIST.
17808
17809 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
17810
17811         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17812         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17813         ffsi2_no_cmove for !TARGET_CMOVE.
17814         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17815         (ffssi2): Remove expander.
17816         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17817         mode iterator.
17818         (ctz<mode>2): Ditto from ctz{si,di}2.
17819         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17820         mode iterator.
17821         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17822         mode iterator.
17823
17824 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17825
17826         * dwarf2out.c (AT_linkage_name): Define.
17827         (clone_as_declaration): Handle DW_AT_linkage_name.
17828         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17829         of DW_AT_MIPS_linkage_name.
17830         (move_linkage_attr): Likewise.
17831         (dwarf2out_finish): Likewise.
17832
17833 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17834
17835         PR middle-end/41952
17836         * fold-const.c (fold_comparison): New folding rule.
17837
17838 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17839
17840         * double-int.h (double_int_setbit): Declare.
17841         * double-int.c (double_int_setbit): New function.
17842         * rtl.h (immed_double_int_const): Declare.
17843         * emit-rtl.c (immed_double_int_const): New function.
17844         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17845         and immed_double_int_const functions.
17846         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17847         expand_copysign_bit): (Ditto.).
17848         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17849         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17850         * dojump.c (prefer_and_bit_test): (Ditto.).
17851         * expr.c (convert_modes, reduce_to_bit_field_precision,
17852         const_vector_from_tree): (Ditto.).
17853         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17854
17855 2010-04-20  Jan Hubicka  <jh@suse.cz>
17856
17857         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17858         (dump_cgraph_node): Dump new flags.
17859         * cgraph.h (struct cgraph_node): Add flags
17860         reachable_from_other_partition and in_other_partition.
17861         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17862         other partition can not be removed.
17863         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17864         the other partition must be output; silence sanity checking on
17865         leaking functions bodies from other paritition.
17866         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17867         (lto_output_node): Output new flags; do not sanity check that inline
17868         clones are output; drop lto_forced_extern_inline_p code; do not mock
17869         visibility flags at partition boundaries.
17870         (add_node_to): New function.
17871         (output_cgraph): Use it to sort functions so masters appear before
17872         clones.
17873         (input_overwrite_node): Input new flags.
17874         * passes.c (ipa_write_summaries): Do not call
17875         lto_new_extern_inline_states.
17876         * lto-section-out.c (forced_extern_inline,
17877         lto_new_extern_inline_states lto_delete_extern_inline_states,
17878         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17879         * lto-streamer.h (lto_new_extern_inline_states,
17880         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17881         lto_forced_extern_inline_p): Kill.
17882
17883 2010-04-20  Richard Guenther  <rguenther@suse.de>
17884
17885         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17886         from vars that can have pointers.
17887         (process_constraint): Dump useless constraints.
17888
17889 2010-04-20  Richard Guenther  <rguenther@suse.de>
17890
17891         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17892         (dump_sa_points_to_info): Remove asserts.
17893         (init_base_vars): nothing_id isn't an escape point nor does it
17894         have pointers.
17895
17896 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17897
17898         * tree.h (TYPE_REF_IS_RVALUE): Define.
17899         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17900         should_move_die_to_comdat, prune_unused_types_walk): Handle
17901         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17902         (modified_type_die, gen_reference_type_die): Emit
17903         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17904         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17905
17906 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17907
17908         PR target/43635
17909         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17910         calls for -fpic -m31 if they have been sibcall optimized.
17911
17912 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17913
17914         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17915         ar.lc fixed and call-used.
17916
17917         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17918
17919 2010-04-19  Jan Hubicka  <jh@suse.cz>
17920
17921         * opts.c (decode_options): Disable whpr incompatible passes.
17922         * lto/lto.c (lto_1_to_1_map): Skip clones.
17923         (read_cgraph_and_symbols): Do not mark everything as needed.
17924         (do_whole_program_analysis): Do map only after optimizing;
17925         set proper cgraph_state; use passmanager.
17926
17927 2010-04-19  DJ Delorie  <dj@redhat.com>
17928
17929         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17930         POINTER_PLUS_EXPR and fix them.
17931
17932 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17933
17934         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17935         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17936         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17937         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17938         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17939         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17940         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17941         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17942         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17943         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17944         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17945
17946 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17947
17948         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17949         (check_cond_move_block): Likewise.
17950         (cond_move_process_if_block): Likewise.
17951         (noce_find_if_block): Improve formatting.
17952         (find_if_header): Pass 0 to memset and tweak conditions.
17953         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17954
17955 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17956
17957         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17958         for -gdwarf-4.
17959
17960         PR middle-end/43337
17961         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17962         with non-local decl doesn't need chain.
17963
17964 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17965
17966         * ira-color.c (allocno_reload_assign): Avoid accumulating
17967         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17968
17969 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17970
17971         * gimple.h (create_tmp_reg): Declare.
17972         * gimplify.c (create_tmp_reg): New function.
17973         (gimplify_return_expr): Use create_tmp_reg.
17974         (gimplify_omp_atomic): Likewise.
17975         (gimple_regimplify_operands): Likewise.
17976         * tree-dfa.c (make_rename_temp): Likewise.
17977         * tree-predcom.c (predcom_tmp_var): Likewise.
17978         (reassociate_to_the_same_stmt): Likewise.
17979         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17980         (get_replaced_param_substitute): Likewise.
17981         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17982         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17983         * tree-ssa-pre.c (get_representative_for): Likewise.
17984         (create_expression_by_pieces): Likewise.
17985         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17986         (create_tailcall_accumulator): Likewise.
17987
17988 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17989
17990         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17991         new_stmt.
17992         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17993
17994 2010-04-19  Richard Guenther  <rguenther@suse.de>
17995
17996         PR tree-optimization/43796
17997         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17998         from SCEV in the lattice.
17999         (vrp_visit_phi_node): Dump change.
18000
18001 2010-04-19  Richard Guenther  <rguenther@suse.de>
18002
18003         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
18004         * configure: Re-generated.
18005
18006 2010-04-19  Richard Guenther  <rguenther@suse.de>
18007
18008         PR tree-optimization/43783
18009         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
18010         constant ARRAY_REF operands two and three if possible.
18011
18012 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
18013
18014         PR target/43766
18015         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
18016
18017 2010-04-19  Jie Zhang  <jie@codesourcery.com>
18018
18019         PR target/43662
18020         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
18021
18022 2010-04-19  Ira Rosen  <irar@il.ibm.com>
18023
18024         PR tree-optimization/37027
18025         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
18026         and macro to access it.
18027         (vectorizable_reduction): Add argument.
18028         (vect_get_slp_defs): Likewise.
18029         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
18030         statements for possible use in SLP.
18031         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
18032         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
18033         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
18034         add new argument.
18035         (vectorizable_reduction): Likewise.
18036         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
18037         vect_get_slp_defs.
18038         (vectorizable_type_demotion, vectorizable_type_promotion,
18039         vectorizable_store): Likewise.
18040         (vect_analyze_stmt): Update call to vectorizable_reduction.
18041         (vect_transform_stmt): Likewise.
18042         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
18043         (vect_build_slp_tree): Fix indentation. Check that there are no loads
18044         from different interleaving chains in same node.
18045         (vect_slp_rearrange_stmts): New function.
18046         (vect_supported_load_permutation_p): Allow load permutations for
18047         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
18048         inside SLP nodes if necessary.
18049         (vect_analyze_slp_instance): Handle reductions.
18050         (vect_analyze_slp): Try to build SLP instances originating from groups
18051         of reductions.
18052         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
18053         (vect_get_constant_vectors): Create initial vectors for reductions
18054         according to reduction code. Add new argument.
18055         (vect_get_slp_defs): Add new argument, pass it to
18056         vect_get_constant_vectors.
18057         (vect_schedule_slp_instance): Remove SLP tree root statements.
18058
18059 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
18060
18061         * tree.h (ENUM_IS_SCOPED): Define.
18062         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
18063         for ENUM_IS_SCOPED enums.
18064
18065 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18066
18067         * fold-const.c (fold_comparison): Use ssizetype.
18068         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18069         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
18070         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
18071         * tree-object-size.c (compute_object_sizes): Use size_type_node.
18072
18073         * tree.h (initialize_sizetypes): Remove parameter.
18074         (build_common_tree_nodes): Remove second parameter.
18075         * stor-layout.c (initialize_sizetypes): Remove parameter.
18076         Always create an unsigned type.
18077         (set_sizetype): Assert that the passed type is unsigned and simplify.
18078         * tree.c (build_common_tree_nodes): Remove second parameter.
18079         Adjust call to initialize_sizetypes.
18080         * c-decl.c (c_init_decl_processing): Remove second argument in call to
18081         build_common_tree_nodes.
18082
18083 2010-04-18  Matthias Klose  <doko@ubuntu.com>
18084
18085         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
18086
18087 2010-04-18  Ira Rosen  <irar@il.ibm.com>
18088
18089         PR tree-optimization/43771
18090         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
18091         load permutation doesn't have gaps.
18092
18093 2010-04-18  Jan Hubicka  <jh@suse.cz>
18094
18095         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
18096         (sse_prologue_save_insn expander): Use new pattern.
18097         (sse_prologue_save_insn1): New pattern and splitter.
18098         (sse_prologue_save_insn): Update to deal also with 64bit aligned
18099         blocks.
18100         * i386.c (setup_incoming_varargs_64): Do not compute jump
18101         destination here.
18102         (ix86_gimplify_va_arg): Update alignment needed.
18103         (ix86_local_alignment): Do not align all local arrays to 128bit.
18104
18105 2010-04-17  Jan Hubicka  <jh@suse.cz>
18106
18107         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
18108
18109 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
18110
18111         * arm.md (negdi2): Remove redundant code to force values into a
18112         register.
18113
18114 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
18115
18116         * arm/bpabi.S: Add EABI alignment attributes to objects.
18117         * arm/bpabi-v6m.S: Likewise.
18118         * arm/crti.asm: Likewise.
18119         * arm/crtn.asm: Likewise.
18120         * arm/lib1funcs.asm: Likewise.
18121         * arm/libunwind.S: Likewise.
18122
18123 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
18124
18125         * arm-protos.h (tune_params): New structure.
18126         * arm.c (current_tune): New variable.
18127         (arm_constant_limit): Delete.
18128         (struct processors): Add pointer to the tune parameters.
18129         (arm_slowmul_tune): New tuning option.
18130         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
18131         (all_cores): Adjust to pick up the tuning model.
18132         (arm_constant_limit): New function.
18133         (arm_override_options): Select the appropriate tuning model.  Delete
18134         initialization of arm_const_limit.
18135         (arm_split_constant): Use the new constant-limit model.
18136         (arm_rtx_costs): Pick up the current tuning model.
18137         * arm.md (is_strongarm, is_xscale): Delete.
18138         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
18139         for Xscale variant architectures.
18140         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
18141
18142 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18143
18144         * config/arm/arm.c (arm_gen_constant): Remove unused variable
18145         can_shift.
18146         (arm_rtx_costs_1): Remove unused variable extra_cost.
18147         (arm_unwind_emit_set): Use variable offset.
18148         (thumb1_output_casesi): Remove unused variable flags.
18149
18150 2010-04-16  Jeff Law  <law@redhat.com>
18151
18152         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
18153         needing assignment rather than doing a two-phase assignment.  Remove
18154         unused variable 'm'.
18155
18156 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
18157
18158         PR bootstrap/43767
18159         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
18160
18161 2010-04-16  Doug Kwan  <dougkwan@google.com>
18162
18163         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
18164         (next_operand_entry_id): New static variable.
18165         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
18166         (add_to_ops_vec): Assigned unique ID to operand entry.
18167         (struct oecount_s): New field ID.
18168         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
18169         (undistribute_ops_list): Assign unique IDs to oecounts.
18170         (init_reassoc): reset next_operand_entry_id.
18171
18172 2010-04-16  Doug Kwan  <dougkwan@google.com>
18173
18174         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
18175         missing left parenthesis.
18176
18177 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
18178
18179         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
18180         *btdi_rex64 using SWI48 mode iterator.
18181         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
18182         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
18183         *jcc_btdi_mask_rex64.
18184
18185 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
18186
18187         * double-int.h (tree_to_double_int): Convert to macro.
18188         * double-int.c (tree_to_double_int): Remove.
18189
18190 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
18191
18192         PR debug/43762
18193         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
18194         with want_address 2 and in case a single element list might be
18195         possible, call it again with want_address 0.
18196
18197 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18198
18199         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
18200         case 'W' print operands for HI mode.
18201         * config/h8300/h8300.h (Y0, Y2) : New constraints.
18202         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
18203         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
18204         * config/h8300/predicate.md (bit_register_indirect_operand): New.
18205
18206         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
18207
18208         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
18209         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
18210         #xx:3 and #xx:4 mode.
18211
18212         * config/h8300/h8300.md (inverted load with HImode dest): Add
18213         support for H8300SX.
18214
18215         * config/h8300/predicate.md (bit_operand): Allow immediate values that
18216         satisfy 'U' constraint.
18217
18218 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18219
18220         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
18221         * configure: Regenerate.
18222         * config.in: Regenerate.
18223         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
18224         works.
18225
18226 2010-04-16  Richard Guenther  <rguenther@suse.de>
18227
18228         * tree.h (struct tree_decl_minimal): Move pt_uid ...
18229         (struct tree_decl_common): ... here.
18230         (DECL_PT_UID): Adjust.
18231         (SET_DECL_PT_UID): Likewise.
18232         (DECL_PT_UID_SET_P): Likewise.
18233
18234 2010-04-16  Richard Guenther  <rguenther@suse.de>
18235
18236         PR tree-optimization/43572
18237         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
18238         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
18239         * tree-flow.h (is_call_clobbered): Remove.
18240         * tree-flow-inline.h (is_call_clobbered): Likewise.
18241         * tree-dfa.c (dump_variable): Do not dump call clobber state.
18242         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
18243         (execute_return_slot_opt): Adjust.
18244         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
18245         check for call clobbered vars here.
18246         (find_tail_calls): Move tailcall verification to the
18247         proper place.
18248
18249 2010-04-16  Diego Novillo  <dnovillo@google.com>
18250
18251         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
18252
18253 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
18254
18255         PR target/40603
18256         * config/arm/arm.md (cbranchqi4): New pattern.
18257         * config/arm/predicates.md (const0_operand,
18258         cbranchqi4_comparison_operator): New predicates.
18259
18260 2010-04-16  Richard Guenther  <rguenther@suse.de>
18261
18262         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
18263         (dump_gimple_stmt): Likewise.
18264
18265 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
18266
18267         * recog.h (struct recog_data): New field is_operator.
18268         (struct insn_operand_data): New field is_operator.
18269         * recog.c (extract_insn): Set recog_data.is_operator.
18270         * genoutput.c (output_operand_data): Emit code to set the
18271         is_operator field.
18272         * reload.c (find_reloads): Use it rather than testing for an
18273         empty constraint string.
18274
18275         PR target/41514
18276         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
18277         If the previous insn is a cbranchsi4_insn with the same arguments,
18278         omit the compare instruction.
18279
18280         * config/arm/arm.md (addsi3_cbranch): If destination is a high
18281         register, inputs must be low registers and we need a low register
18282         scratch.  Handle alternative 2 like alternative 3.
18283
18284 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
18285
18286         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
18287         don't call get_addr on both.  If one expression is a VALUE and
18288         the other a REG, check VALUE's locs if the REG isn't among them.
18289
18290 2010-04-16  Christian Bruel  <christian.bruel@st.com>
18291
18292         * config/sh/sh.h (sh_frame_pointer_required): New function.
18293         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
18294         (flag_omit_frame_pointer) Set.
18295         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
18296         (rounded_frame_size): Adjust size with outgoing_args_size.
18297         (sh_set_return_address): Must return from stack pointer.
18298         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
18299         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
18300         (ACCUMULATE_OUTGOING_ARGS): Define.
18301         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
18302         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
18303
18304 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
18305
18306         PR target/43471
18307         * config/sh/sh.c (sh_legitimize_reload_address): Use
18308         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
18309         Remove a unneeded check for offset_base.
18310
18311 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
18312
18313         * configure: Regenerated.
18314
18315 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18316
18317         * config/s390/s390.c (s390_call_save_register_used): Switch back
18318         to HARD_REGNO_NREGS.
18319
18320 2010-04-15  Richard Guenther  <rguenther@suse.de>
18321
18322         * alias.c (alias_set_subset_of): Handle alias-set zero
18323         child properly.
18324
18325 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
18326             Julian Brown  <julian@codesourcery.com>
18327
18328         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
18329         alternatives according to use of high and low regs.
18330         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18331         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
18332         optimizing for size on Thumb-2.
18333
18334 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
18335
18336         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
18337
18338 2010-04-15  Richard Guenther  <rguenther@suse.de>
18339
18340         * tree-ssa-structalias.c (struct variable_info): Add
18341         is_fn_info flag.
18342         (new_var_info): Initialize it.
18343         (dump_constraints): Support printing last added constraints.
18344         (debug_constraints): Adjust.
18345         (dump_constraint_graph): Likewise.
18346         (make_heapvar_for): Check for NULL cfun.
18347         (get_function_part_constraint): New function.
18348         (get_fi_for_callee): Likewise.
18349         (find_func_aliases): Properly implement IPA PTA constraints.
18350         (process_ipa_clobber): New function.
18351         (find_func_clobbers): Likewise.
18352         (insert_into_field_list_sorted): Remove.
18353         (create_function_info_for): Properly allocate vars for IPA mode.
18354         Do not use insert_into_field_list_sorted.
18355         (create_variable_info_for): Properly generate constraints for
18356         global vars in IPA mode.
18357         (dump_solution_for_var): Always dump the solution.
18358         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
18359         (find_what_var_points_to): Adjust.
18360         (pt_solution_set): Change.
18361         (pt_solution_ior_into): New function.
18362         (pt_solution_empty_p): Export.
18363         (pt_solution_includes_global): Adjust.
18364         (pt_solution_includes_1): Likewise.
18365         (pt_solutions_intersect_1): Likewise.
18366         (dump_sa_points_to_info): Check some invariants.
18367         (solve_constraints): Move constraint dumping ...
18368         (compute_points_to_sets): ... here.
18369         (ipa_pta_execute): ... and here.
18370         (compute_may_aliases): Do not re-compute points-to info
18371         locally if IPA info is available.
18372         (ipa_escaped_pt): New global var.
18373         (ipa_pta_execute): Properly implement IPA PTA.
18374         * tree-into-ssa.c (dump_decl_set): Support dumping
18375         decls not in referenced-vars.
18376         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
18377         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
18378         (dump_points_to_solution): Likewise.
18379         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
18380         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
18381         (remap_gimple_stmt): Reset call clobber/use information if necessary.
18382         (copy_decl_to_var): Copy DECL_PT_UID.
18383         (copy_result_decl_to_var): Likewise.
18384         * tree.c (make_node_stat): Initialize DECL_PT_UID.
18385         (copy_node_stat): Copy it.
18386         * tree.h (DECL_PT_UID): New macro.
18387         (SET_DECL_PT_UID): Likewise.
18388         (DECL_PT_UID_SET_P): Likewise.
18389         (struct tree_decl_minimal): Add pt_uid member.
18390         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
18391         (pt_solution_empty_p): Declare.
18392         (pt_solution_set): Adjust.
18393         (ipa_escaped_pt): Declare.
18394         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
18395         * gimple-pretty-print.c (pp_points_to_solution): New function.
18396         (dump_gimple_call): Dump call clobber/use information.
18397         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
18398         * tree-pass.h (TDF_ALIAS): New dump option.
18399         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
18400         * doc/invoke.texi (-fipa-pta): Update documentation.
18401
18402 2010-04-15  Richard Guenther  <rguenther@suse.de>
18403
18404         * Makefile.in (OBJS-common): Add gimple-fold.o.
18405         (gimple-fold.o): New rule.
18406         * tree.h (maybe_fold_offset_to_reference,
18407         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
18408         prototypes ...
18409         * gimple.h: ... here.
18410         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
18411         may_propagate_address_into_dereference): Move prototypes ...
18412         * gimple.h: ... here.
18413         * tree-ssa-ccp.c (get_symbol_constant_value,
18414         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
18415         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
18416         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
18417         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
18418         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
18419         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
18420         gimplify_and_update_call_from_tree): Move ...
18421         * gimple-fold.c: ... here.  New file.
18422         (ccp_fold_builtin): Rename to ...
18423         (gimple_fold_builtin): ... this.
18424         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
18425
18426 2010-04-15  Richard Guenther  <rguenther@suse.de>
18427
18428         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
18429         fit_double_type, force_fit_type_double, add_double_with_sign,
18430         neg_double, mul_double_with_sign, lshift_double, rshift_double,
18431         lrotate_double, rrotate_double, div_and_round_double): Move ...
18432         * double-int.c: ... here.
18433         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
18434         add_double, neg_double, mul_double_with_sign, mul_double,
18435         lshift_double, rshift_double, lrotate_double, rrotate_double,
18436         div_and_round_double): Move prototypes ...
18437         * double-int.h: ... here.
18438
18439 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
18440
18441         PR target/43742
18442         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
18443         matching constraints to ensure inputs match the output.
18444
18445 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
18446
18447         PR target/43742
18448         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
18449         in an input-only operand.
18450
18451 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
18452
18453         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
18454         (double_int_not, double_int_lshift, double_int_rshift): Declare.
18455         (double_int_negative_p): Convert to static inline function.
18456         * double-int.c (double_int_lshift, double_int_lshift): New functions.
18457         (double_int_negative_p): Remove.
18458         * tree.h (lshift_double, rshift_double):
18459         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
18460         * fold-const.c (fold_convert_const_int_from_real,
18461         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
18462         (lshift_double): Change type of arith argument to bool.
18463         (rshift_double): Change type of arith argument to bool. Correct
18464         comment.
18465         * expmed.c (mask_rtx, lshift_value): (Ditto.).
18466
18467 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
18468
18469         PR target/21803
18470         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
18471         at the start and end of the then/else blocks, and omit them from the
18472         conversion.
18473         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
18474         argument; all callers changed.  Pass zero to old_insns_match_p instead.
18475         (flow_find_head_matching_sequence): New function.
18476         (old_insns_match_p): Check REG_EH_REGION notes for calls.
18477         * basic-block.h (flow_find_cross_jump,
18478         flow_find_head_matching_sequence): Declare functions.
18479
18480 2010-04-14  Jason Merrill  <jason@redhat.com>
18481
18482         PR c++/36625
18483         * c-common.c (attribute_takes_identifier_p): New fn.
18484         * c-common.h: Declare it.
18485
18486 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18487
18488         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
18489         splitter condition.
18490         (*udivmod<mode>4): Ditto.
18491
18492 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18493
18494         * config/i386/i386.md (maxmin_int): Rename code attribute from
18495         maxminiprefix and update all users.
18496         (maxmin_float): Ditto from maxminfprefix.
18497         (logic): Ditto from logicprefix.
18498         (absneg_mnemonic): Ditto from absnegprefix.
18499         * config/i386/mmx.md: Update all users of maxminiprefix,
18500         maxminfprefix and logicprefix for rename.
18501         * config/i386/sse.md: Ditto.
18502         * config/i386/sync.md (sync_<code><mode>): Update for
18503         logicprefix rename.
18504
18505 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18506
18507         PR 42966
18508         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
18509         warnings converted to errors.
18510
18511 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18512
18513         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
18514         used insn_type variable.
18515         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
18516         to avoid set-but-not-used warning.
18517
18518 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18519
18520         * df-core.c (df_ref_debug): Change format string placeholder
18521         from 0x%x to %#x.
18522         * dwarf2asm.c (dw2_asm_output_data_raw,
18523         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
18524         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
18525         * dwarf2out.c (output_cfi, output_cfi_directive,
18526         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
18527         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
18528         Ditto.
18529         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
18530         * print-rtl.c (print_rtx): Ditto.
18531
18532 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18533
18534         PR middle-end/42694
18535         * builtins.c (expand_builtin_pow_root): New function to expand pow
18536         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
18537         series of sqrt and cbrt calls under -ffast-math.
18538         (expand_builtin_pow): Call it.
18539
18540 2010-04-14  Michael Matz  <matz@suse.de>
18541
18542         PR tree-optimization/42963
18543         * tree-cfg.c (touched_switch_bbs): New static variable.
18544         (group_case_labels_stmt): New function broken out from ...
18545         (group_case_labels): ... here, use the above.
18546         (start_recording_case_labels): Allocate touched_switch_bbs.
18547         (end_recording_case_labels): Deallocate it, call
18548         group_case_labels_stmt.
18549         (gimple_redirect_edge_and_branch): Remember index of affected BB.
18550
18551 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18552
18553         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
18554         from insn template.
18555
18556 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18557
18558         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
18559
18560 2010-04-13  Jan Hubicka  <jh@suse.cz>
18561
18562         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
18563         of optimized out static functions.
18564         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
18565         cost computation.  Also sanity check for overflows.
18566         (update_caller_keys): Update cgraph_edge_badness call; properly
18567         update fibheap and sanity check that it is up to date.
18568         (add_new_edges_to_heap): Update cgraph_edge_badness.
18569         (cgraph_decide_inlining_of_small_function): Likewise;
18570         add sanity checking that badness in heap is up to date;
18571         improve dumping of reason; Update badness of calls to the
18572         offline copy of function currently inlined; dump badness
18573         of functions not inlined because of unit growth limits.
18574
18575 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18576
18577         PR middle-end/32628
18578         * c-common.c (pointer_int_sum): Disregard overflow that occured only
18579         because of sign-extension change when converting to sizetype here...
18580         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
18581
18582         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
18583         the folding to constants.  Remove redundant final conversion.
18584         (fold_binary) <associate>: Do not associate if the re-association of
18585         constants alone overflows.
18586         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
18587         to the end of the list.
18588         (multiple_of_p) <COND_EXPR>: New case.
18589
18590 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18591
18592         * opt-functions.awk (opt_sanitized_name): New.
18593         (opt_enum): New.
18594         * optc-gen.awk: Use it
18595         * opth-gen.awk: Use it.
18596
18597 2010-04-13  Martin Jambor  <mjambor@suse.cz>
18598
18599         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
18600         (sra_modify_assign): Delete stmts loading dead data even if racc has no
18601         children.  Call replace_uses_with_default_def_ssa_name to handle
18602         SSA_NAES on lhs.
18603
18604 2010-04-13  Michael Matz  <matz@suse.de>
18605
18606         PR middle-end/43730
18607         * builtins.c (expand_builtin_interclass_mathfn): Also create
18608         a register if the predicate doesn't match.
18609
18610 2010-04-13  Diego Novillo  <dnovillo@google.com>
18611
18612         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
18613         * c-pch.c: Include timevar.h.
18614         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
18615         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
18616         * ggc-common.c: Include timevar.h.
18617         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
18618         * timevar.def (TV_PCH_SAVE): Define.
18619         (TV_PCH_CPP_SAVE): Define.
18620         (TV_PCH_PTR_REALLOC): Define.
18621         (TV_PCH_PTR_SORT): Define.
18622         (TV_PCH_RESTORE): Define.
18623         (TV_PCH_CPP_RESTORE): Define.
18624
18625 2010-04-13  Michael Matz  <matz@suse.de>
18626
18627         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
18628         into MINUS_EXPRs.
18629         (can_reassociate_p): New function.
18630         (break_up_subtract_bb, reassociate_bb): Use it.
18631
18632 2010-04-13  Richard Guenther  <rguenther@suse.de>
18633
18634         PR bootstrap/43737
18635         * builtins.c (c_readstr): Fix assert.
18636
18637 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
18638
18639         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
18640         when generating cltd insn.
18641
18642         (*ashl<mode>3_1): Remove special handling for register operand 2.
18643         (*ashlsi3_1_zext): Ditto.
18644         (*ashlhi3_1): Ditto.
18645         (*ashlhi3_1_lea): Ditto.
18646         (*ashlqi3_1): Ditto.
18647         (*ashlqi3_1_lea): Ditto.
18648         (*<shiftrt_insn><mode>3_1): Ditto.
18649         (*<shiftrt_insn>si3_1_zext): Ditto.
18650         (*<shiftrt_insn>qi3_1_slp): Ditto.
18651         (*<rotate_insn><mode>3_1): Ditto.
18652         (*<rotate_insn>si3_1_zext): Ditto.
18653         (*<rotate_insn>qi3_1_slp): Ditto.
18654
18655 2010-04-13  Richard Guenther  <rguenther@suse.de>
18656
18657         * tree-ssa-structalias.c (callused_id): Remove.
18658         (call_stmt_vars): New.
18659         (get_call_vi): Likewise.
18660         (lookup_call_use_vi): Likewise.
18661         (lookup_call_clobber_vi): Likewise.
18662         (get_call_use_vi): Likewise.
18663         (get_call_clobber_vi): Likewise.
18664         (make_transitive_closure_constraints): Likewise.
18665         (handle_const_call): Adjust to do per-call call-used handling.
18666         (handle_pure_call): Likewise.
18667         (find_what_var_points_to): Remove general callused handling.
18668         (init_base_vars): Likewise.
18669         (init_alias_vars): Initialize call_stmt_vars.
18670         (compute_points_to_sets): Process call-used and call-clobbered
18671         vars for call statements.
18672         (delete_points_to_sets): Free call_stmt_vars.
18673
18674 2010-04-13  Richard Guenther  <rguenther@suse.de>
18675
18676         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18677         Only add RW dependence for dependence distance zero.
18678         Adjust maximal vectorization factor according to dependences.
18679         Move alignment handling ...
18680         (vect_find_same_alignment_drs): ... here.  New function.
18681         (vect_analyze_data_ref_dependences): Adjust.
18682         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18683         (vect_analyze_data_refs): Adjust minimal vectorization factor
18684         according to data references.
18685         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18686         dependences before determining the vectorization factor.
18687         Analyze alignment after determining the vectorization factor.
18688         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18689         dependences before alignment.
18690         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18691         Adjust prototype.
18692         (vect_analyze_data_refs): Likewise.
18693         (MAX_VECTORIZATION_FACTOR): New define.
18694
18695 2010-04-13  Duncan Sands  <baldrick@free.fr>
18696
18697         * except.h (lang_eh_type_covers): Remove.
18698         * except.c (lang_eh_type_covers): Likewise.
18699
18700 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18701             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18702
18703         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18704         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18705         UNITS_PER_LONG where it is ABI relevant.
18706         (s390_return_addr_rtx): Likewise.
18707         (s390_back_chain_rtx): Likewise.
18708         (s390_frame_area): Likewise.
18709         (s390_frame_info): Likewise.
18710         (s390_initial_elimination_offset): Likewise.
18711         (save_gprs): Likewise.
18712         (s390_emit_prologue): Likewise.
18713         (s390_emit_epilogue): Likewise.
18714         (s390_function_arg_advance): Likewise.
18715         (s390_function_arg): Likewise.
18716         (s390_va_start): Likewise.
18717         (s390_gimplify_va_arg): Likewise.
18718         (s390_function_profiler): Likewise.
18719         (s390_optimize_prologue): Likewise.
18720         (s390_rtx_costs): Likewise.
18721         (s390_secondary_reload): Likewise.
18722         (s390_promote_function_mode): Likewise.
18723         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18724         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18725         registers available.
18726         (s390_unwind_word_mode): New function.
18727         (s390_function_value): Split 64 bit values into register pair if
18728         used as return value.
18729         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18730         function call parameters.  Handle parallels.
18731         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18732         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18733         (DWARF_CIE_DATA_ALIGNMENT): New macro.
18734         (s390_expand_setmem): Remove unused variable src_addr.
18735         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18736         deal with 64 bit registers.
18737         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18738         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18739         (UNITS_PER_LONG): New macro.
18740         * libjava/include/s390-signal.h: Define extended ucontext
18741         structure containing the upper halfs of the 64 bit registers.
18742
18743 2010-04-13  Simon Baldwin  <simonb@google.com>
18744
18745         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18746
18747 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18748
18749         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18750         rvalue on the RHS if the LHS is of a non-renamable type.
18751         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18752
18753 2010-04-13  Matthias Klose  <doko@ubuntu.com>
18754
18755         * gcc.c (cc1_options): Handle -iplugindir before processing
18756         the cc1 spec. Only add -iplugindir once.
18757         (cpp_unique_options): Add -iplugindir option if -fplugin* options
18758         found.
18759         * common.opt (iplugindir): Remove `Separate' property, initialize.
18760         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18761         option.
18762         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18763         (distclean): Remove plugin dir.
18764         * doc/invoke.texi: Document -iplugindir.
18765
18766 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
18767
18768         * doc/plugins.texi (Loading Plugins): Document short
18769         -fplugin=foo option.
18770         (Plugin API): Mention default_plugin_dir_name function.
18771
18772         * gcc.c (find_file_spec_function): Add new declaration.
18773         (static_spec_func): Use it for "find-file".
18774         (find_file_spec_function): Add new function.
18775         (cc1_options): Add -iplugindir option if -fplugin* options found.
18776
18777         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18778
18779         * plugin.c (add_new_plugin): Updated comment, and handle short
18780         plugin name.
18781         (default_plugin_dir_name): Added new function.
18782
18783         * common.opt (iplugindir): New option to set the plugin directory.
18784
18785 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
18786
18787         * config/i386/i386.md (any_rotate): New code iterator.
18788         (rotate_insn): New code attribute.
18789         (rotate): Ditto.
18790         (SWIM124): New mode iterator.
18791         (<rotate_insn>ti3): New expander.
18792         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18793         any_rotate code iterator.
18794         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18795         using any_rotate code iterator and SWIM124 mode iterator.
18796         (ix86_rotlti3): New insn_and_split pattern.
18797         (ix86_rotrti3): Ditto.
18798         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18799         ix86_rotl{di,ti}3 patterns.
18800         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18801         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18802         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18803         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18804         code iterator and SWI mode iterator.
18805         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18806         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18807         code iterator.
18808         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18809         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18810         (bswap rotatert splitter): Add splitter.
18811         (bswap splitter): Macroize splitter using any_rotate code iterator.
18812         Add insn predicate to split only for TARGET_USE_XCHGB or when
18813         optimizing function for size.
18814
18815 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18816
18817         * config/pa/pa.c (emit_move_sequence): Remove use of
18818         deleted variable flag_argument_noalias.
18819
18820 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18821
18822         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18823         configurations.
18824         Add to unsupported targets list.
18825         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18826         sparc*-sun-solaris2.[567]* from target lists.
18827         * configure: Regenerate.
18828         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18829         removal.
18830         Remove Solaris 7 patch references.
18831         (Specific, sparc-sun-solaris2.7): Removed.
18832         (sparc-sun-solaris2*): Update Solaris 7 example.
18833         (sparc64-*-solaris2*): Likewise.
18834
18835 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18836
18837         * config.build (alpha*-dec-osf4*): Remove.
18838         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18839         of obsolete configurations.
18840         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18841         support.
18842         * config/alpha/t-osf4: Renamed to ...
18843         * config/alpha/t-osf5: ... this.
18844         * config/alpha/osf.h: Renamed to ...
18845         * config/alpha/osf5.h: ... this.
18846         Merged old osf5.h contents.
18847         Update comments.
18848         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18849         (EXTRA_SPECS): Removed.
18850         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18851         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18852         Document that.
18853
18854 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18855
18856         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18857
18858 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18859
18860         PR/43702
18861         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18862         __thiscall convention.
18863
18864 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18865
18866         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18867         orig_base.
18868         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18869
18870 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18871
18872         * function.c (assign_parms_initialize_all): Add unused attribute
18873         to fntype.
18874
18875 2010-04-12  Richard Guenther  <rguenther@suse.de>
18876
18877         * gsstruct.def (GSS_CALL): New.
18878         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18879         * gimple.h: Include tree-ssa-alias.h.
18880         (struct gimple_statement_call): New.
18881         (union gimple_statement_struct_d): Add gimple_call member.
18882         (gimple_call_reset_alias_info): Declare.
18883         (gimple_call_use_set): New function.
18884         (gimple_call_clobber_set): Likewise.
18885         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18886         * gimple.c (gimple_call_reset_alias_info): New function.
18887         (gimple_build_call_1): Call it.
18888         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18889         * tree-inline.c (remap_gimple_stmt): Likewise.
18890         (expand_call_inline): Remove callused handling.
18891         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18892         * tree-dfa.c (dump_variable): Likewise.
18893         * tree-parloops.c (parallelize_loops): Likewise.
18894         * tree-ssa.c (init_tree_ssa): Likewise.
18895         (delete_tree_ssa): Likewise.
18896         * tree-flow-inline.h (is_call_used): Remove.
18897         * tree-flow.h (struct gimple_df): Remove callused member.
18898         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18899         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18900         (ref_maybe_used_by_call_p_1): Simplify.
18901         (call_may_clobber_ref_p_1): Likewise.
18902         * tree-ssa-structalias.c (compute_points_to_sets): Set
18903         the call stmt used and clobbered sets.
18904         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18905         (find_tail_calls): Verify the tail call.
18906
18907 2010-04-12  Richard Guenther  <rguenther@suse.de>
18908
18909         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18910         single-iteration always-inline inlining.
18911         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18912         (cgraph_decide_inlining): Do not handle always-inline specially.
18913         (try_inline): Remove always-inline cycle detection special case.
18914         Do not recurse on always-inlines.
18915         (cgraph_early_inlining): Do not iterate if not optimizing.
18916         (cgraph_gate_early_inlining): remove.
18917         (pass_early_inline): Run unconditionally.
18918         (gate_cgraph_decide_inlining): New function.
18919         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18920         not inlining or optimizing.
18921         (cgraph_decide_inlining_of_small_functions): Also consider
18922         always-inline functions.
18923         (cgraph_default_inline_p): Return true for nodes which should
18924         disregard inline limits.
18925         (estimate_function_body_sizes): Assume zero size and time for
18926         nodes which are marked as disregarding inline limits.
18927         (cgraph_decide_recursive_inlining): Do not perform recursive
18928         inlining on always-inline nodes.
18929
18930 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18931
18932         PR bootstrap/43699
18933         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18934         for exprs satisfying handled_component_p.
18935
18936 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18937
18938         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18939         non-constant aggregate elements.
18940
18941         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18942         is a real initialization.
18943
18944 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18945
18946         PR c/36774
18947         * c-decl.c (start_function): Move forward check for nested function.
18948
18949 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18950
18951         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18952         * config/sh/sh.c: Include reload.h.
18953         (sh_legitimize_reload_address): New.
18954         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18955         sh_legitimize_reload_address.
18956
18957 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18958
18959         * config/sh/sh.md (*movqi_pop): New insn pattern.
18960         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18961
18962 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18963
18964         * config/i386/i386.md (any_shiftrt): New code iterator.
18965         (shiftrt_insn): New code attribute.
18966         (shiftrt): Ditto.
18967         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18968         using any_shiftrt code iterator.
18969         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18970         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18971         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18972         pattern from corresponding peephole2 patterns.
18973         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18974         using any_shiftrt code iterator.
18975         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18976         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18977         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18978         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18979         *{ashr,lshr}<mode>3_cmp_zext.
18980         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18981
18982 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18983
18984         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18985         scratch register.
18986         (*lshr<mode>3_cconly): Ditto.
18987
18988 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18989
18990         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18991         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18992         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18993         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18994         DWI mode iterator.
18995         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18996         from corresponding peephole2 patterns.
18997         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18998         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18999         and *lshrdi3_1_rex64 using SWI mode iterator.
19000         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
19001         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
19002         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
19003         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
19004         and *lshrdi3_cmp_rex64 using SWI mode iterator.
19005         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
19006         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
19007         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
19008         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
19009         SWI mode iterator.
19010
19011 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
19012
19013         * config/i386/i386.md (ashr<mode>3): Macroize expander from
19014         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
19015         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
19016         pattern from *ashr{di,ti}3_1 and corresponding splitters using
19017         DWI mode iterator.
19018         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
19019         from corresponding peephole2 patterns.
19020         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
19021         (ashrsi3_cvt): Rename from ashrsi3_31.
19022         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
19023         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
19024         and x86_64_shift_adj_3 using SWI48 mode iterator.
19025         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
19026         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
19027         and *ashrdi3_1_rex64 using SWI mode iterator.
19028         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
19029         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
19030         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
19031         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
19032         and *ashrdi3_cmp_rex64 using SWI mode iterator.
19033         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
19034         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
19035         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
19036         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
19037         SWI mode iterator.
19038         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
19039         * config/i386/i386.c (ix86_split_ashr): Update for renamed
19040         x86_shift<mode>_adj_3 expanders.
19041
19042 2010-04-10  Wei Guozhi  <carrot@google.com>
19043
19044         PR target/42601
19045         * config/arm/arm.c (arm_pic_static_addr): New function.
19046         (legitimize_pic_address): Call arm_pic_static_addr when it detects
19047         a static symbol.
19048         (arm_output_addr_const_extra): Output expression for new pattern.
19049         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
19050
19051 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
19052
19053         * ira-costs.c (record_reg_classes): Ignore alternatives that are
19054         not enabled.
19055
19056         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
19057         * web.c: Include "insn-config.h" and "recog.h".
19058         (union_match_dups): New function.
19059         (web_main): Call it.
19060         (union_defs): Don't try to recognize match_dups.
19061
19062         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
19063         if doing so would replace the entire pattern.
19064
19065 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
19066
19067         PR target/43707
19068         PR target/43709
19069         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
19070         and splitter pattern.  Change splitter operand 1 predicate to
19071         nonmemory_operand.
19072
19073 2010-04-09  Martin Jambor  <mjambor@suse.cz>
19074
19075         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
19076         lattices are addresses of CONST_DECLs with the same initial value.
19077         (ipcp_print_all_lattices): Print values of CONST_DECLs.
19078         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
19079
19080 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
19081             Bernd Schmidt  <bernds@codesourcery.com>
19082
19083         * loop-invariant.c (replace_uses): New static function.
19084         (move_invariant_reg): Use it to ensure we can replace the uses.
19085
19086 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19087
19088         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
19089         function template.
19090         (picochip_override_options): Enable section anchors only above -O1.
19091         (picochip_reorg): Fixed a couple of build warnings.
19092
19093 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19094
19095         * configure.ac (plugin -rdynamic test): Log result.
19096         * configure: Regenerate.
19097         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
19098         (RDYNAMIC_SPEC): Define.
19099         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
19100
19101 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19102
19103         * configure.ac: Determine Sun ld version numbers.
19104         (comdat_group): Restrict GNU ld version checks to gld.
19105         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
19106         (enable_comdat): Support --enable-comdat.
19107         * configure: Regenerate.
19108         * doc/install.texi (Configuration): Document --enable-comdat.
19109
19110 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19111
19112         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
19113         * config/sol2-gld.h: ... here.
19114         * config.gcc (sparc*-*-solaris2*): Reflect this.
19115         (i[34567]86-*-solaris2*): Use it.
19116
19117 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
19118
19119         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
19120         setup_clocks_p.
19121         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
19122
19123 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19124
19125         PR 42965
19126         * diagnostic.c (diagnostic_initialize): Initialize
19127         some_warnings_are_errors.
19128         (diagnostic_finish): New.
19129         (diagnostic_action_after_output): Call it before exiting.
19130         (diagnostic_report_diagnostic): Do not print message here. Set
19131         some_warnings_are_errors.
19132         * diagnostic.h (diagnostic_context): Delete
19133         issue_warnings_are_errors_message. Add some_warnings_are_errors.
19134         (diagnostic_finish): Declare.
19135         * toplev.c (toplev_main): Call it before exit.
19136
19137 2010-04-09  Jason Merrill  <jason@redhat.com>
19138
19139         PR c++/42623
19140         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
19141         for incomplete type.
19142
19143         PR c++/41788
19144         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
19145         based on a warning flag.
19146
19147 2010-04-09  Richard Guenther  <rguenther@suse.de>
19148
19149         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
19150
19151 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
19152
19153         PR bootstrap/43684
19154         * varasm.c (default_assemble_visibility): Wrap vars that are
19155         set, but unused, by targets without GAS.
19156         * config/rs6000/rs6000.c (paired_emit_vector_compare):
19157         Remove set, but unused, vars.
19158         (rs6000_legitimize_tls_address): Likewise.
19159         (altivec_expand_dst_builtin): Likewise.
19160         * config/darwin.c (machopic_classify_symbol): Likewise.
19161         (machopic_indirection_name): Likewise.
19162
19163 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
19164
19165         * config/i386/i386.md (DWI): New mode iterator.
19166         (S): New mode attribute.
19167         (shift_operand): Ditto.
19168         (shift_immediate_operand): Ditto.
19169         (ashl_input_operand): Ditto.
19170         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
19171         using SDWIM mode iterator.
19172         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
19173         pattern from *ashl{di,ti}3_1 and corresponding splitters using
19174         DWI mode iterator.
19175         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
19176         from corresponding peephole2 patterns.
19177         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
19178         and x86_64_shift_adj_1 using SWI48 mode iterator.
19179         (x86_shift<mode>_adj_2): Ditto.
19180         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
19181         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
19182         using SWI48 mode iterator.
19183         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
19184         *ashldi3_cmp_rex64 using SWI mode iterator.
19185         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
19186         *ashldi3_cconly_rex64 using SWI mode iterator.
19187         * config/i386/i386.c (ix86_split_ashl): Update for renamed
19188         x86_shift<mode>_adj_{1,2}.
19189         (ix86_split_ashr): Ditto.
19190         (ix86_split_lshr): Ditto.
19191
19192 2010-04-09  Richard Guenther  <rguenther@suse.de>
19193
19194         * target.h (builtin_conversion): Pass in input and output types.
19195         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
19196         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
19197         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
19198         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
19199
19200         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
19201         Handle AVX modes.
19202         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
19203
19204 2010-04-09  Richard Guenther  <rguenther@suse.de>
19205
19206         PR target/43152
19207         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
19208
19209 2010-04-09  Richard Guenther  <rguenther@suse.de>
19210
19211         * tree-vectorizer.h (struct _stmt_vec_info): Document
19212         that vectype is the type of the LHS.
19213         (supportable_widening_operation, supportable_narrowing_operation):
19214         Get both input and output vector types as arguments.
19215         (vect_is_simple_use_1): Declare.
19216         (get_same_sized_vectype): Likewise.
19217         * tree-vect-loop.c (vect_determine_vectorization_factor):
19218         Set STMT_VINFO_VECTYPE to the vector type of the def.
19219         (vectorizable_reduction): Adjust.
19220         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
19221         Adjust.  Specify the output vector type.
19222         (vect_pattern_recog_1): Adjust.
19223         * tree-vect-stmts.c (get_same_sized_vectype): New function.
19224         (vectorizable_call): Adjust.
19225         (vectorizable_conversion): Likewise.
19226         (vectorizable_operation): Likewise.
19227         (vectorizable_type_demotion): Likewise.
19228         (vectorizable_type_promotion): Likewise.
19229         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
19230         the def.
19231         (vect_is_simple_use_1): New function.
19232         (supportable_widening_operation): Get both input and output
19233         vector types.
19234         (supportable_narrowing_operation): Likewise.
19235         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
19236
19237 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
19238
19239         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
19240         __thiscall and _thiscall as predefined macros.
19241         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
19242         thiscall attribute handling.
19243         (ix86_comp_type_attributes): Likewise.
19244         (ix86_function_regparm): Likewise.
19245         (ix86_return_pops_args): Likewise.
19246         (init_cumulative_args): Likewise.
19247         (find_drap_reg): Likewise.
19248         (ix86_static_chain): Likewise.
19249         (x86_this_parameter): Likewise.
19250         (x86_output_mi_thunk): Likewise.
19251         (ix86_attribute_table): Add description for thiscall attribute.
19252         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
19253         * doc/extend.texi: Add documentation for thiscall.
19254
19255 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19256
19257         PR c++/28584
19258         * c.opt (Wint-to-pointer-cast): Available in C++.
19259         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
19260
19261 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19262
19263         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
19264         * calls.c (expand_call): Pass the function type to aggregate_value_p.
19265         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
19266         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
19267         function type instead.  Reorder and simplify checks.
19268
19269         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
19270
19271 2010-04-08  Jing Yu  <jingyu@google.com>
19272             Zdenek Dvorak  <ook@ucw.cz>
19273
19274         PR tree-optimization/42720
19275         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
19276         loop unswitch conditions here from ...
19277         (tree_unswitch_single_loop): ... here.
19278
19279 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
19280
19281         * tree-if-conv.c: Fix comments and simplify logic.
19282
19283 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
19284
19285         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
19286         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
19287         (main_tree_if_conversion): Update call to tree_if_conversion.
19288
19289 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19290
19291         PR 42485
19292         * doc/invoke.texi (-b,-V): Delete.
19293         * doc/tm.texi: Do not mention -b.
19294         * gcc.c (display_help): Delete -b and -V.
19295         (process_command): Delete -b and -V.
19296         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
19297
19298 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
19299             Wolfgang Gellerich  <gellerich@de.ibm.com>
19300
19301         Implement target hook for loop unrolling
19302         * target.h (loop_unroll_adjust): Add a new target hook function.
19303         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
19304         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
19305         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
19306         (s390_loop_unroll_adjust): Implement the new target hook for s390.
19307         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
19308         target hook.
19309         (decide_unroll_stupid): Likewise.
19310
19311 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19312
19313         PR target/43643
19314         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
19315
19316 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19317
19318         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
19319         (Specific, *-*-solaris2*): Likewise.
19320         Don't prefer Sun as over GNU as.
19321
19322 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
19323
19324         * config/s390/s390.c (override_options): Adjust the z10 defaults
19325         for max-unroll-times, max-completely-peeled-insns
19326         and max-completely-peel-times.
19327
19328 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19329
19330         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
19331         instructions for z10.
19332         (s390_expand_setmem): Likewise.
19333         (s390_expand_cmpmem): Likewise.
19334
19335 2010-04-08  Richard Guenther  <rguenther@suse.de>
19336
19337         PR tree-optimization/43679
19338         * tree-ssa-pre.c (eliminate): Only propagate copies.
19339
19340 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19341
19342         PR bootstrap/43681
19343         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
19344         set but not used variable warning.
19345
19346 2010-04-08  Wei Guozhi  <carrot@google.com>
19347
19348         PR target/41653
19349         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
19350         (arm_size_rtx_costs): Call the new function when optimized for size.
19351
19352 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19353
19354         PR debug/43670
19355         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
19356         op0 is not a MEM, just return NULL instead of assertion
19357         failure.
19358         (discover_nonconstant_array_refs): Don't walk debug stmts.
19359
19360 2010-04-08  Doug Kwan  <dougkwan@google.com>
19361
19362         * configure.ac: Recognize gold and do not use its version number
19363         to test ld features.
19364         * configure: Regenerate.
19365
19366 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
19367
19368         PR middle-end/40815
19369         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
19370         (negate_value): Move code to push elements to broken_up_substracts ...
19371         (eliminate_plus_minus_pair): ... here.  Push operands that have no
19372         negative pair to plus_negates.
19373         (repropagate_negates, init_reassoc, fini_reassoc): Update.
19374
19375 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19376
19377         * doc/install.texi (Configuration): Move description of
19378         --enable-lto, --with-libelf*, --enable-gold from Java section to
19379         general section.
19380
19381         * doc/generic.texi (Working with declarations)
19382         (Function Properties, C and C++ Trees): Fix typos.
19383         * doc/sourcebuild.texi (Top Level): Likewise.
19384
19385 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19386
19387         PR c/18624
19388         * tree.h (DECL_READ_P): Define.
19389         (struct tree_decl_common): Add decl_read_flag.
19390         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
19391         a set but not used warning.
19392         (merge_decls): Merge DECL_READ_P flag.
19393         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
19394         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
19395         * c-common.c (handle_used_attribute, handle_unused_attribute):
19396         Likewise.
19397         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
19398         New prototypes.
19399         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
19400         New functions.
19401         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
19402         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
19403         c_parser_binary_expression, c_parser_cast_expression,
19404         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
19405         Call default_function_array_read_conversion instead of
19406         default_function_array_conversion where needed.
19407         (c_parser_unary_expression, c_parser_conditional_expression,
19408         c_parser_postfix_expression_after_primary, c_parser_initelt):
19409         Likewise.  Call mark_exp_read where needed.
19410         (c_parser_statement_after_labels, c_parser_asm_operands,
19411         c_parser_typeof_specifier, c_parser_sizeof_expression,
19412         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
19413         where needed.
19414         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
19415         New.
19416         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
19417         (warn_unused_but_set_parameter): Default to warn_unused
19418         && extra_warnings.
19419         * doc/invoke.texi: Document -Wunused-but-set-variable and
19420         -Wunused-but-set-parameter.
19421
19422         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
19423         used count variable.
19424         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
19425         when operandN variables aren't used in the body of the expander
19426         or splitter.
19427         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
19428         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
19429         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
19430         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
19431         FOR_EACH_IMM_USE_ON_STMT): Likewise.
19432         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
19433         * tree.c (PROCESS_ARG): Likewise.
19434
19435 2010-04-07  Simon Baldwin  <simonb@google.com>
19436
19437         * diagnostic.h (diagnostic_override_option_index): New macro to
19438         set a diagnostic's option_index.
19439         * c-tree.h (c_cpp_error): Add warning reason argument.
19440         * opts.c (_warning_as_error_callback): New.
19441         (register_warning_as_error_callback): Store callback for
19442         warnings enabled via enable_warning_as_error.
19443         (enable_warning_as_error): Call callback, minor code tidy.
19444         * opts.h (register_warning_as_error_callback): Declare.
19445         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
19446         response to -Werror=.
19447         (c_common_init_options): Register warning_as_error_callback in opts.c.
19448         * common.opt: Add -Wno-cpp option.
19449         * c-common.c (struct reason_option_codes_t): Map cpp warning
19450         reason codes to gcc option indexes.
19451         * (c_option_controlling_cpp_error): New function, lookup the gcc
19452         option index for a cpp warning reason code.
19453         * (c_cpp_error): Add warning reason argument, call
19454         c_option_controlling_cpp_error for diagnostic_override_option_index.
19455         * doc/invoke.texi: Document -Wno-cpp.
19456
19457 2010-04-07  Richard Guenther  <rguenther@suse.de>
19458
19459         * ipa-reference.c (mark_load): Use get_base_address.
19460         (mark_store): Likewise.
19461
19462         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
19463         inserting GIMPLE_NOPs into the IL.
19464         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19465         Explicitly strip handled components and indirect references.
19466
19467         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
19468         folding address expressions.
19469         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
19470         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
19471         operand_equal_p to compare decls.
19472         (ptr_deref_may_alias_decl_p): Likewise.
19473         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
19474         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
19475         Handle reversed comparison ops.
19476         * tree-sra.c (asm_visit_addr): Use get_base_address.
19477         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
19478         * ipa-reference.c (mark_address): Use get_base_address.
19479
19480 2010-04-07  Richard Guenther  <rguenther@suse.de>
19481
19482         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
19483         Propagate constants everywhere.
19484
19485 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19486
19487         PR debug/43516
19488         * tree.c (MAX_INT_CACHED_PREC): Define.
19489         (nonstandard_integer_type_cache): New array.
19490         (build_nonstandard_integer_type): Cache results for precision
19491         <= MAX_INT_CACHED_PREC.
19492
19493 2010-04-07  Richard Guenther  <rguenther@suse.de>
19494
19495         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
19496         -fargument-noalias-global, -fargument-noalias-anything): Remove.
19497         * common.opt: Likewise.
19498         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
19499         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
19500         (nonoverlapping_memrefs_p): Likewise.
19501         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19502         * opts.c (common_handle_option): Handle OPT_fargument_alias,
19503         OPT_fargument_noalias, OPT_fargument_noalias_anything and
19504         OPT_fargument_noalias_global for backward compatibility.
19505
19506 2010-04-07  Richard Guenther  <rguenther@suse.de>
19507
19508         PR tree-optimization/43270
19509         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
19510         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
19511         * tree-ssa-pre.c (phi_translate_1): Adjust.
19512         (fully_constant_expression): Split out vn_reference handling to ...
19513         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
19514         Fold reads from constant strings.
19515         (vn_reference_lookup): Handle fully constant references.
19516         (vn_reference_lookup_pieces): Likewise.
19517         * Makefile.in (expmed.o-warn): Add -Wno-error.
19518
19519 2010-04-07  Martin Jambor  <mjambor@suse.cz>
19520
19521         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
19522
19523 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
19524
19525         PR driver/41594
19526         * gcc.c: Add -static-libstdc++ to list of recognized options.
19527
19528 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19529
19530         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
19531
19532 2010-04-07  Richard Guenther  <rguenther@suse.de>
19533
19534         PR middle-end/42617
19535         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
19536         bases build simple mem attributes to retain points-to information.
19537
19538 2010-04-07  Richard Guenther  <rguenther@suse.de>
19539
19540         PR middle-end/42617
19541         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
19542         preserve points-to related information.
19543
19544 2010-04-07  Richard Guenther  <rguenther@suse.de>
19545
19546         PR middle-end/42617
19547         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
19548         discard plain indirect references.
19549         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
19550         * tree.c (tree_nop_conversion): Likewise.
19551
19552 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
19553
19554         PR debug/43628
19555         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
19556
19557 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
19558
19559         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
19560         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
19561
19562 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19563
19564         * tree-if-conv.c: Fix indentation and comments.
19565
19566 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19567
19568         * tree-if-conv.c: Sort static functions in topological order.
19569
19570 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19571
19572         * tree-if-conv.c: Fix indentation and comments.
19573
19574 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19575
19576         PR middle-end/43519
19577         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
19578         lang_hooks.types.type_for_size instead of
19579         build_nonstandard_integer_type.
19580         When converting an unsigned type to signed, double its precision.
19581         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
19582         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
19583         (graphite_create_new_loop_guard): When ub + 1 wraps around,
19584         use lb <= ub.
19585
19586 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19587
19588         PR middle-end/43519
19589         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19590         POINTER_PLUS_EXPR for pointer types.
19591
19592 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19593
19594         PR middle-end/43519
19595         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
19596         * graphite-clast-to-gimple.c: Include langhooks.h.
19597         (max_signed_precision_type): New.
19598         (max_precision_type): Takes two types as arguments.
19599         (precision_for_value): New.
19600         (precision_for_interval): New.
19601         (gcc_type_for_interval): New.
19602         (gcc_type_for_value): New.
19603         (gcc_type_for_clast_term): New.
19604         (gcc_type_for_clast_red): New.
19605         (gcc_type_for_clast_bin): New.
19606         (gcc_type_for_clast_expr): Split up into several functions.
19607         (gcc_type_for_clast_eq): Rewritten.
19608         (compute_bounds_for_level): New.
19609         (compute_type_for_level_1): New.
19610         (compute_type_for_level): New.
19611         (gcc_type_for_cloog_iv): Removed.
19612         (gcc_type_for_iv_of_clast_loop): Rewritten.
19613         (graphite_create_new_loop): Compute the lower and upper bound types
19614         with gcc_type_for_clast_expr.
19615         (graphite_create_new_loop_guard): Same.
19616         (find_cloog_iv_in_expr): Removed.
19617         (compute_cloog_iv_types_1): Removed.
19618         (compute_cloog_iv_types): Removed.
19619         (gloog): Do not call compute_cloog_iv_types.
19620         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
19621         GBB_CLOOG_IV_TYPES.
19622         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
19623         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
19624         (GBB_CLOOG_IV_TYPES): Removed.
19625
19626 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19627
19628         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
19629         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
19630         (detect_commutative_reduction): Same.
19631
19632 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19633
19634         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
19635         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
19636         argument.
19637         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
19638         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
19639         (rewrite_commutative_reductions_out_of_ssa): Same.
19640         * passes.c (execute_function_todo): Call verify_ssa for every pass
19641         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
19642         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
19643         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19644         with an extra argument.
19645         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
19646         verify_ssa only when the extra argument is true.
19647         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19648         with an extra argument.
19649         (tree_transform_and_unroll_loop): Same.
19650
19651 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19652
19653         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19654         for all the passes of the LNO having LOOP_CLOSED_SSA.
19655         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19656         * tree-loop-distribution.c (pass_loop_distribution): Same.
19657         * tree-pass.h (TODO_verify_loops): Removed.
19658         * tree-ssa-loop.c (pass_tree_loop_init): Same.
19659         (pass_lim): Same.
19660         (pass_tree_unswitch): Same.
19661         (pass_predcom): Same.
19662         (pass_vectorize): Same.
19663         (pass_linear_transform): Same.
19664         (pass_graphite_transforms): Same.
19665         (pass_iv_canon): Same.
19666         (pass_complete_unroll): Same.
19667         (pass_complete_unrolli): Same.
19668         (pass_parallelize_loops): Same.
19669         (pass_loop_prefetch): Same.
19670         (pass_iv_optimize): Same.
19671
19672 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
19673
19674         PR middle-end/32824
19675         * passes.c (init_optimization_passes): Move pass_lim before
19676         pass_copy_prop and pass_dce_loop.
19677
19678 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19679
19680         PR target/43667
19681         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19682         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19683         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19684         MULTI_* defines for 4 argument vpermil2p* builtins.
19685
19686 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19687
19688         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19689         * config/i386/i386.c (x86_maybe_negate_const_int): New.
19690         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19691         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19692         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19693         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19694         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19695         Use x86_maybe_negate_const_int to output insn mnemonic.
19696         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
19697         check from instruction predicate.  Update comments.
19698         * config/i386/sync.md (sync_add<mode>): Use
19699         x86_maybe_negate_const_int to output insn mnemonic.
19700
19701 2010-04-06  Jan Hubicka  <jh@suse.cz>
19702
19703         PR tree-optimization/42906
19704         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19705         IGNORE_SELF argument.  Set visited_control_parents for fully
19706         processed BBs.
19707         (find_obviously_necessary_stmts): Update call of
19708         mark_control_dependent_edges_necessary.
19709         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
19710
19711 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19712
19713         * config/i386/i386.md: Remove comment about 'e' and 'E'
19714         operand modifier.
19715
19716 2010-04-06  Richard Guenther  <rguenther@suse.de>
19717
19718         PR tree-optimization/43627
19719         * tree-vrp.c (extract_range_from_unary_expr): Widenings
19720         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19721         not varying.
19722
19723 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19724
19725         * BASE-VER: Change to 4.6.0.
19726
19727         PR target/43638
19728         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19729         handling.
19730
19731 2010-04-06  Richard Guenther  <rguenther@suse.de>
19732
19733         PR middle-end/43661
19734         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19735
19736 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19737
19738         * doc/invoke.texi (Optimize Options): Document that LTO
19739         won't remove object access purely due to incompatible
19740         declarations.
19741
19742 2010-04-04  Matthias Klose  <doko@ubuntu.com>
19743
19744         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19745         Initialize variable.
19746
19747 2010-04-03  Richard Guenther  <rguenther@suse.de>
19748
19749         PR middle-end/42509
19750         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19751         require a non-NULL MEM_OFFSET.
19752
19753 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
19754
19755         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19756         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19757         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19758         config/alpha/predicates.md, config/arm/arm.md,
19759         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19760         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19761         config/darwin9.h, config/darwin.c, config/darwin.h,
19762         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19763         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19764         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19765         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19766         config/mips/mips.md, config/mn10300/mn10300.c,
19767         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19768         config/rs6000/aix.h, config/rs6000/dfp.md,
19769         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19770         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19771         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19772         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19773         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19774         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19775         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19776         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19777         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19778         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19779         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19780         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19781         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19782         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19783         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19784         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19785         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19786         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19787         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19788         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19789         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19790         opt-functions.awk, opth-gen.awk, params.def, passes.c,
19791         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19792         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19793         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19794         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19795         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19796         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19797         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19798         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19799         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19800         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19801         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19802         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19803         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19804         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19805
19806 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19807
19808         PR other/43620
19809         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19810         * aclocal.m4: Regenerate.
19811
19812 2010-04-02  Richard Guenther  <rguenther@suse.de>
19813
19814         PR tree-optimization/43629
19815         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19816         if we have seen a constant value.
19817
19818 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19819
19820         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19821
19822 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19823
19824         PR target/43469
19825         * arm.c (legitimize_tls_address): Adjust call to
19826         gen_tls_load_dot_plus_four.
19827         (arm_note_pic_base): New function.
19828         (arm_cannot_copy_insn_p): Use it.
19829         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19830         constraint.
19831
19832 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19833
19834         PR bootstrap/43531
19835
19836         Revert:
19837         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19838
19839         * Makefile.in ($(out_object_file)): Depend on
19840         gt-$(basename $(notdir $(out_file))).h.
19841
19842 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19843
19844         * config.gcc (lm32-*-rtems*): Add t-lm32.
19845
19846 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19847
19848         * config.gcc: Add lm32-*-rtems*.
19849         * config/lm32/rtems.h: New file.
19850
19851 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19852
19853         PR target/42609
19854         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19855
19856 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19857
19858         * dwarf2out.c (output_compilation_unit_header): For
19859         -gdwarf-4 use version 4 instead of version 3.
19860         (output_line_info): For version 4 and above emit additional
19861         maximum ops per insn header field.
19862         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19863
19864         * dwarf2out.c (is_c_family, is_java): Remove.
19865         (lower_bound_default): New function.
19866         (add_bound_info, gen_descr_array_type_die): Use it.
19867
19868 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19869
19870         PR debug/43325
19871         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19872         re-declaration when it happens in a function.
19873
19874 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19875
19876         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19877         (cgraph_remove_function_insertion_hook): Same.
19878         (cgraph_call_function_insertion_hooks): Same.
19879
19880 2010-04-01  Richard Guenther  <rguenther@suse.de>
19881
19882         PR middle-end/43614
19883         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19884         and TREE_THIS_VOLATILE.
19885         (copy_ref_info): Likewise.
19886         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19887         * tree.c (build6_stat): Ignore side-effects of all but arg5
19888         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19889         TARGET_MEM_REF.
19890
19891 2010-04-01  Richard Guenther  <rguenther@suse.de>
19892
19893         PR tree-optimization/43607
19894         * ipa-type-escape.c (check_call): Do not access non-existing
19895         arguments.
19896
19897 2010-04-01  Richard Guenther  <rguenther@suse.de>
19898
19899         PR middle-end/43602
19900         Revert
19901         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19902                     Jack Howarth  <howarth@bromo.med.uc.edu>
19903
19904         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19905         variables TLS.
19906
19907 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19908
19909         * doc/install.texi (Prerequisites): Document libelf usability on
19910         IRIX 5/6 and Solaris 2.
19911         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19912         Update GNU as, GNU ld requirements.
19913         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19914         Document Sun Studio compiler download.
19915         Update and simplify as, ld recommendations.
19916         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19917
19918 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19919
19920         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19921         with_tune_32 to pentium4.
19922
19923 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19924
19925         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19926
19927 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19928
19929         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19930         obsoletion, removal.
19931         Update IDO URL.
19932         Document GNU as requirement.
19933         Update configure requirements.
19934         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19935         Recomment IRIX 6.5.18+.
19936         Document IDF/IDL requirement.
19937         Document GNU as requirement.
19938         Document GNU ld bootstrap failure.
19939         Remove freeware.sgi.com reference.
19940
19941 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19942
19943         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19944         UNIX V4.0, V5.0 obsoletion, removal.
19945         Remove --with-gc=simple reference.
19946         Update VM requirements during bootstrap.
19947         Remove -oldas bootstrap description.
19948         Update binutils reference.
19949         Remove comparison failure note.
19950
19951 2010-03-31  Richard Guenther  <rguenther@suse.de>
19952             Zdenek Dvorak  <ook@ucw.cz>
19953             Sebastian Pop  <sebastian.pop@amd.com>
19954
19955         PR middle-end/43464
19956         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19957         with multiple arguments.
19958         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19959
19960 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19961
19962         * graphite-dependences.c (print_pddr): Call print_pdr with an
19963         extra argument.
19964         * graphite-poly.c (debug_pdr): Add an extra argument for the
19965         verbosity level.
19966         (print_pdr): Same.
19967         (print_pbb_domain): Same.
19968         (print_pbb): Same.
19969         (print_scop_context): Same.
19970         (print_scop): Same.
19971         (print_cloog): Same.
19972         (debug_pbb_domain): Same.
19973         (debug_pbb): Same.
19974         (print_pdrs): Same.
19975         (debug_pdrs): Same.
19976         (debug_scop_context): Same.
19977         (debug_scop): Same.
19978         (debug_cloog): Same.
19979         (print_scop_params): Same.
19980         (debug_scop_params): Same.
19981         (print_iteration_domain): Same.
19982         (print_iteration_domains): Same.
19983         (debug_iteration_domain): Same.
19984         (debug_iteration_domains): Same.
19985         (print_scattering_function): Same.
19986         (print_scattering_functions): Same.
19987         (debug_scattering_function): Same.
19988         (debug_scattering_functions): Same.
19989         * graphite-poly.h (debug_pdr): Update declaration.
19990         (print_pdr): Same.
19991         (print_pbb_domain): Same.
19992         (print_pbb): Same.
19993         (print_scop_context): Same.
19994         (print_scop): Same.
19995         (print_cloog): Same.
19996         (debug_pbb_domain): Same.
19997         (debug_pbb): Same.
19998         (print_pdrs): Same.
19999         (debug_pdrs): Same.
20000         (debug_scop_context): Same.
20001         (debug_scop): Same.
20002         (debug_cloog): Same.
20003         (print_scop_params): Same.
20004         (debug_scop_params): Same.
20005         (print_iteration_domain): Same.
20006         (print_iteration_domains): Same.
20007         (debug_iteration_domain): Same.
20008         (debug_iteration_domains): Same.
20009         (print_scattering_function): Same.
20010         (print_scattering_functions): Same.
20011         (debug_scattering_function): Same.
20012         (debug_scattering_functions): Same.
20013
20014 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20015
20016         * graphite-poly.c (print_scattering_function_1): New.
20017         (print_scattering_function): Call it.
20018         (print_scop_params): Remove spaces at the end of lines.
20019         (print_cloog): New.
20020         (debug_cloog): New.
20021         * graphite-poly.h (print_cloog): Declared.
20022         (debug_cloog): Declared.
20023
20024 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20025
20026         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
20027         in loop->header.
20028         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
20029         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
20030         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
20031         to switch between adding the IV bump in loop->latch or in loop->header.
20032
20033 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20034
20035         * graphite-poly.c (print_scattering_function): Pretty print following
20036         the scoplib format.
20037         (print_pdr): Same.
20038         (print_pbb_domain): Same.
20039         (dump_gbb_cases): Same.
20040         (dump_gbb_conditions): Same.
20041         (print_pdrs): Same.
20042         (print_pbb): Same.
20043         (print_scop_params): Same.
20044         (print_scop_context): Same.
20045         (print_scop): Same.
20046         (print_pbb_body): New.
20047         (lst_indent_to): New.
20048         (print_lst): Start new lines with a #.
20049         * graphite-poly.h (pbb_bb): New.
20050         (pbb_index): Use pbb_bb.
20051         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
20052         disjuncts.
20053         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
20054
20055 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
20056
20057         * dwarf2out.c (size_of_die): For -gdwarf-4 use
20058         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
20059         and 0 instead of 1 for dw_val_class_flag.
20060         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
20061         dw_val_class_range_list, dw_val_class_loc_list,
20062         dw_val_class_lineptr and dw_val_class_macptr, use
20063         DW_FORM_flag_present for dw_val_class_flag and
20064         DW_FORM_exprloc for dw_val_class_loc.
20065         (output_die): For -gdwarf-4 print dw_val_class_loc
20066         size as uleb128 instead of 1 or 2 bytes and don't print
20067         anything for dw_val_class_flag.
20068
20069         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
20070         instead of cselib_lookup following by tweaking locs->setting_insn.
20071
20072         PR bootstrap/43596
20073         * cselib.c (cselib_process_insn): Clear cselib_current_insn
20074         even before returning from label, setjmp call or volatile asm
20075         handling.
20076
20077 2010-03-31  Richard Guenther  <rguenther@suse.de>
20078
20079         PR middle-end/43600
20080         * cgraphunit.c (cgraph_output_in_order): Do not allocate
20081         temporary data on stack.
20082
20083 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20084
20085         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
20086         (PUSHSECTION_ASM_OP): Remove.
20087         (POPSECTION_ASM_OP): Remove.
20088         (PUSHSECTION_FORMAT): Remove.
20089         * config/sol2.h (PUSHSECTION_FORMAT): Define.
20090         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
20091         * config/sol2.c (solaris_output_init_fini): Use it.
20092
20093 2010-03-31  Jie Zhang  <jie@codesourcery.com>
20094
20095         PR 43574
20096         * opt-functions.awk (var_type_struct): Use signed char type
20097         for simple variables.
20098
20099 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20100
20101         * config/sol2.c: Include output.h.
20102         (solaris_assemble_visibility): New function.
20103         * config/t-sol2 (sol2.o): Add output.h dependency.
20104         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
20105         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
20106         Redefine.
20107
20108 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
20109
20110         PR target/43580
20111         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
20112         V2SImode or XFmode on PRE_DEC.
20113
20114         PR debug/43557
20115         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
20116         BLKmode.
20117
20118 2010-03-31  Jie Zhang  <jie@codesourcery.com>
20119
20120         PR 43562
20121         * reload.h (caller_save_initialized_p): Declare.
20122         * toplev.c (backend_init_target): Don't call
20123         init_caller_save but set caller_save_initialized_p to false.
20124         * caller-save.c (caller_save_initialized_p): Define.
20125         (init_caller_save): Check caller_save_initialized_p.
20126         * ira.c (ira): Call init_caller_save if flag_caller_saves.
20127
20128 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20129
20130         PR target/39048
20131         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
20132         and soft-fp/t-softfp to tmake_file.
20133         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
20134         (LIBGCC2_TF_CEXT): Define.
20135         (TF_SIZE): Define.
20136
20137 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
20138
20139         PR debug/42977
20140         * cselib.c (n_useless_values): Document handling of debug locs.
20141         (n_useless_debug_values, n_debug_values): New variables.
20142         (new_elt_loc_list): Don't add to debug values, keep count.
20143         (promote_debug_loc): New.
20144         (cselib_reset_table): Zero new variables.
20145         (entry_and_rtx_equal_p): Promote debug locs.
20146         (discard_useless_locs): Increment n_useless_debug_values for
20147         debug values.
20148         (remove_useless_values): Adjust n_useless_values and n_debug_values
20149         with n_useless_debug_values.
20150         (add_mem_for_addr): Promote debug locs.
20151         (cselib_lookup_mem): Likewise.
20152         (cselib_lookup_addr): Renamed to...
20153         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
20154         (cselib_log_lookup): ... this.  Turn into...
20155         (cselib_lookup_addr): ... new wrapper.
20156         (cselib_lookup_from_insn): New.
20157         (cselib_invalidate_regno): Increment n_useless_debug_values for
20158         debug values.
20159         (cselib_invalidate_mem): Likewise.
20160         (cselib_process_insn): Take n_deleted and n_debug_values into
20161         account to guard remove_useless_value call.
20162         (cselib_finish): Zero n_useless_debug_values.
20163         * cselib.h (cselib_lookup_from_insn): Declare.
20164         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
20165         (sched_analyze_2): Likewise.
20166
20167 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
20168
20169         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
20170         functions.
20171         (adjust_mems): Replace narrowing SUBREG of expression containing
20172         just PLUS, MINUS, MULT and ASHIFT of registers and constants
20173         with operations in the narrower mode.
20174
20175         PR debug/43593
20176         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
20177         regs_invalidated_by_call instead all call_used_reg_set registers.
20178
20179 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
20180
20181         PR middle-end/43430
20182         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
20183         pointer comparisons with types_compatible_p.
20184         * tree-vect-stmts.c (vectorizable_call): Same.
20185         (vectorizable_condition): Same.
20186
20187 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20188
20189         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
20190         stack check if the mask would be zero.
20191
20192 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
20193             Jack Howarth  <howarth@bromo.med.uc.edu>
20194
20195         * tree-profile.c (tree_init_ic_make_global_vars): Make static
20196         variables TLS.
20197
20198 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
20199
20200         PR other/25232
20201         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
20202         and __unordtf2.
20203         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
20204         Include ___unordxf2 and ___unordtf2.
20205         * config/i386/libgcc-glibc.ver: Do not define inheritance from
20206         GCC_4.4.0 here.
20207
20208 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
20209
20210         * config/lm32/t-lm32: New file.
20211         * config.gcc: Use the above file when targetting lm32.
20212
20213 2010-03-28  Duncan Sands  <baldrick@free.fr>
20214
20215         * Makefile.in (PLUGIN_HEADERS): Add except.h.
20216
20217 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
20218
20219         PR middle-end/43431
20220         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
20221         Improve vectorization cost model diagnostic.
20222
20223 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
20224
20225         PR middle-end/43436
20226         * tree-vect-data-refs.c (vect_analyze_data_refs): When
20227         compute_data_dependences_for_loop returns false, early exit
20228         and output an extra diagnostic for the failed data reference
20229         analysis.
20230
20231 2010-03-29  Richard Guenther  <rguenther@suse.de>
20232
20233         PR tree-optimization/43560
20234         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
20235         (can_sm_ref_p): Treat stores to readonly locations as trapping.
20236
20237 2010-03-29  Jie Zhang  <jie@codesourcery.com>
20238
20239         PR 43564
20240         * toplev.c (process_options): Set optimization_default_node
20241         and optimization_current_node.
20242         * opts.c (decode_options): Don't set optimization_default_node
20243         and optimization_current_node.
20244
20245 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
20246
20247         * config/rtems.h: Abandon -qrtems_debug.
20248
20249 2010-03-28  Jan Hubicka  <jh@suse.cz>
20250
20251         PR tree-optimization/43505
20252         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
20253         map should not be copied.
20254
20255 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20256
20257         PR middle-end/41674
20258         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
20259         cdtors, set DECL_PRESERVE_P.
20260         * ipa.c (cgraph_externally_visible_p): Return true if declaration
20261         should be preseved.
20262
20263 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
20264
20265         PR tree-optimization/43528
20266         * stor-layout.c (place_field): Check that constant fits into
20267         unsigned HWI when skipping calculation of MS bitfield layout.
20268
20269 2010-03-27  Jan Hubicka  <jh@suse.cz>
20270
20271         PR middle-end/43391
20272         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
20273         notice_global_symbol work.
20274
20275 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
20276
20277         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
20278         instead of dwarf2out_decl.
20279         (struct var_loc_node): Remove section_label field.
20280         (dwarf2out_function_decl): New function.
20281         (dwarf2out_var_location): Don't set section_label field.
20282         (dwarf2out_begin_function): Don't empty decl_loc_table here.
20283
20284 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20285
20286         PR tree-optimization/43544
20287         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20288         First argument for builtin vectorized function hook is now a
20289         tree to be able to distinguish between machine specific and
20290         standard builtins.
20291         * targhooks.c (default_builtin_vectorized_function): Ditto.
20292         * targhooks.h (default_builtin_vectorized_function): Ditto.
20293         * target.h (struct gcc_target): Ditto.
20294         * tree-vect-stmts.c (vectorizable_function): Ditto.
20295         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
20296         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
20297         Ditto.
20298
20299 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
20300
20301         PR c/43381
20302         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
20303         nested binding iff it is a FUNCTION_DECL.
20304         (store_parm_decls_newstyle): Pass nested=true to bind for
20305         FUNCTION_DECLs amongst parameters.
20306
20307 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
20308
20309         * var-tracking.c (vt_expand_loc_callback): Don't run
20310         cselib_expand_value_rtx_cb in dummy mode if
20311         cselib_dummy_expand_value_rtx_cb returned false.
20312
20313         * var-tracking.c (emit_note_insn_var_location): For one part
20314         notes with offset 0, don't add EXPR_LIST around the location.
20315         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
20316         add_location_or_const_value_attribute): Adjust for that change.
20317
20318         PR debug/43540
20319         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
20320         into first operand and location into second.
20321         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
20322         dw_cfi_oprnd_loc for DW_CFA_expression.
20323         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
20324         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
20325         assume first argument is regnum and second argument is location.
20326
20327 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20328
20329         PR target/42113
20330         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
20331         of scratch register to DImode.  Split to DImode comparison operator.
20332         Use SImode subreg of scratch register in the multiplication.
20333         (*cmp_sadd_sidi): Ditto.
20334         (*cmp_ssub_si): Ditto.
20335         (*cmp_ssub_sidi): Ditto.
20336
20337 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20338
20339         PR target/43524
20340         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
20341         Remove invalid assert and wrong comment.
20342
20343 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
20344
20345         PR debug/43516
20346         * flags.h (final_insns_dump_p): New extern.
20347         * final.c (final_insns_dump_p): New variable.
20348         (rest_of_clean_state): Set it before -fdump-final-insns=
20349         dumping, clear afterwards.
20350         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
20351         MEM_ALIAS_SET on MEMs.
20352
20353 2010-03-26  David S. Miller  <davem@davemloft.net>
20354
20355         * configure.ac: Fix sparc GOTDATA_OP bug check.
20356         * configure: Rebuild.
20357
20358 2010-03-26  Alan Modra  <amodra@gmail.com>
20359
20360         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
20361
20362 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20363
20364         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
20365         TLS_SECTION_ASM_FLAG.
20366
20367 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
20368
20369         PR bootstrap/43511
20370         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
20371         Clear first_function_block_is_cold.
20372
20373         PR c/43385
20374         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
20375         argument if the argument is truth_value_p.
20376
20377 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20378
20379         * config/rs6000/constraints.md: Update copyright year for my changes.
20380
20381         PR target/43484
20382         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
20383         used in reg+reg addressing, swap registers.
20384
20385 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20386
20387         PR debug/43293
20388         * target.h (struct gcc_target): Add code_end hook.
20389         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
20390         if not yet defined.
20391         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
20392         * toplev.c (compile_file): Call targetm.asm_out.code_end
20393         hook before unwind info/debug info output.
20394         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
20395         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
20396         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20397         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
20398         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20399         * config/i386/i386.c (ix86_file_end): Renamed to...
20400         (ix86_code_end): ... this.  Make static.  Don't call
20401         file_end_indicate_exec_stack.  Emit unwind info using
20402         final_start_function/final_end_function.
20403         (darwin_x86_file_end): Remove.
20404         (TARGET_ASM_CODE_END): Define.
20405         * config/i386/i386.h (TARGET_ASM_FILE_END,
20406         NEED_INDICATE_EXEC_STACK): Don't define.
20407         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
20408         (TARGET_ASM_FILE_END): Define to darwin_file_end.
20409         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
20410         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
20411
20412         PR target/43498
20413         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
20414         at the beginning and final_end_function at the end.
20415         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
20416
20417 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20418
20419         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
20420         and Sun as TLS syntax.
20421         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
20422         * configure: Regenerate.
20423         * config.in: Regenerate.
20424         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
20425         (default_elf_asm_named_section): Use it.
20426         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
20427         (i386_output_dwarf_dtprel): Likewise.
20428         (output_addr_const_extra): Likewise.
20429         (output_pic_addr_const): Lowercase @GOTTPOFF.
20430         (output_addr_const_extra): Likewise.
20431         (output_pic_addr_const): Lowercase @GOTNTPOFF.
20432         (output_addr_const_extra): Likewise.
20433         (output_pic_addr_const): Lowercase @INDNTPOFF.
20434         (output_addr_const_extra): Likewise.
20435         (output_pic_addr_const): Lowercase @NTPOFF.
20436         (output_addr_const_extra): Likewise.
20437         (output_pic_addr_const): Lowercase @TPOFF.
20438         (output_addr_const_extra): Likewise.
20439         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
20440         (*tls_global_dynamic_64): Likewise.
20441         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
20442         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
20443
20444         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
20445         (ASM_OUTPUT_TLS_COMMON): Use it.
20446         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
20447
20448         PR target/38118
20449         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
20450         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20451         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
20452         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
20453         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20454         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
20455
20456 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20457
20458         * config/i386/i386.c (override_options): Don't accept
20459         -mtls-dialect=sun any longer.
20460         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
20461         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
20462         (*tls_local_dynamic_base_32_sun): Likewise.
20463         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20464
20465 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20466
20467         PR debug/43508
20468         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20469         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
20470
20471         PR debug/43479
20472         * ira.c (adjust_cleared_regs): New function.
20473         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
20474
20475         PR debug/19192
20476         PR debug/43479
20477         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
20478         from gimple_block.
20479         * expr.c (expand_expr_real): Restore previous
20480         curr_insn_source_location and curr_insn_block after
20481         expand_expr_real_1 call.
20482         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
20483         instead of expand_expr_real_1.
20484
20485 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
20486
20487         PR rtl-optimization/43413
20488         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
20489         hard regs too.
20490
20491 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
20492
20493         PR target/43348
20494         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
20495         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
20496
20497 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
20498
20499         * config/i386/i386.c (ix86_target_string): Add -mfma.
20500         Fix a typo in comment.
20501
20502 2010-03-22  Mike Stump  <mikestump@comcast.net>
20503
20504         PR target/23071
20505         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
20506         Don't overly align based upon packed packed fields.
20507
20508 2010-03-22  Jason Merrill  <jason@redhat.com>
20509
20510         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
20511         Use () rather than [], and move before the element type.
20512
20513 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20514
20515         * doc/configfiles.texi (Configuration Files): Removed
20516         fixinc/Makefile*, intl/Makefile.*.
20517         * doc/makefile.texi: Fixed markup. Abstract from version
20518         control system used.
20519         (Makefile): Removed obsolete gcc/java/parse.y example.
20520         * doc/sourcebuild.texi: Likewise.
20521         (Top Level): Added config, gnattools, libdecnumber, libgcc,
20522         libgomp, libssp.  Removed fastjar.
20523         (Miscellaneous Docs): Clarify location.
20524         Added COPYING3, COPYING3.LIB.
20525         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
20526
20527 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20528
20529         PR target/38085
20530         * config/i386/i386.c (x86_function_profiler)
20531         [!NO_PROFILE_COUNTERS]: Fix typo.
20532         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
20533         instead of callq.
20534
20535 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
20536             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20537
20538         * doc/sourcebuild.texi (Test Directives): Split into six
20539         subsections, with most of the current text in new subsections
20540         Directives, Selectors, and Final Actions.
20541         (Directives): Split list of test directives into multiple
20542         subsubsections.
20543         (Selectors): Describe use and syntax of selectors.
20544         (Effective-Target Keywords): Describe all existing keywords.
20545         (Add Options): Describe features for dg-add-options.
20546         (Require Support): Describe variants of dg-require-support.
20547         (Final Actions): Describe commands to use in dg-final.
20548
20549 2010-03-22  Michael Matz  <matz@suse.de>
20550
20551         PR middle-end/43475
20552         * recog.c (validate_replace_rtx_group): Replace also in
20553         REG_EQUAL and REG_EQUIV notes.
20554
20555 2010-03-22  Richard Guenther  <rguenther@suse.de>
20556
20557         PR tree-optimization/43390
20558         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
20559         sure vector extracts are type correct.
20560
20561 2010-03-22  Richard Guenther  <rguenther@suse.de>
20562
20563         PR middle-end/40106
20564         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
20565         x * sqrt (x) even when optimizing for size if the target
20566         has native support for sqrt.
20567
20568 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
20569
20570         * varasm.c (make_decl_rtl_for_debug): Also clear
20571         flag_mudflap for the duration of make_decl_rtl call.
20572
20573         PR debug/43443
20574         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
20575         locs from preserved VALUEs.
20576
20577 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20578
20579         PR middle-end/42718
20580         * pa.md (movmemsi): Set align to one if zero.
20581         (movmemdi): Likewise.
20582
20583 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
20584
20585         PR target/42321
20586         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
20587         with their corresponding prologue pushes.
20588
20589 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
20590
20591         PR target/43156
20592         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
20593         at the begining or end.
20594         (spu_expand_epilogue): Likewise.
20595
20596 2010-03-20  Richard Guenther  <rguenther@suse.de>
20597
20598         PR rtl-optimization/43438
20599         * combine.c (make_extraction): Properly zero-/sign-extend an
20600         extraction of the low part of a CONST_INT.  Also handle
20601         CONST_DOUBLE.
20602
20603 2010-03-19  Mike Stump  <mikestump@comcast.net>
20604
20605         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
20606         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
20607         (override_options): Use SUBTARGET32_DEFAULT_CPU.
20608
20609 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20610
20611         PR c/43211
20612         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
20613         an error.
20614
20615 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
20616
20617         PR rtl-optimization/42258
20618         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
20619         use that may match DEF.
20620
20621         PR target/40697
20622         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
20623         the cost of loading the constant rather than assuming
20624         COSTS_N_INSNS (1).
20625         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
20626         outer code is AND, do the same tests as the andsi3 expander and
20627         return COSTS_N_INSNS (1) if and is cheap.
20628
20629         * optabs.c (avoid_expensive_constant): Fix formatting.
20630
20631 2010-03-19  Michael Matz  <matz@suse.de>
20632
20633         PR c++/43116
20634         * attribs.c (decl_attributes): When rebuilding a function pointer
20635         type use the same qualifiers as the original pointer type.
20636
20637 2010-03-19  Martin Jambor  <mjambor@suse.cz>
20638
20639         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
20640         and is_gimple_ip_invariant_address.
20641
20642 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20643
20644         Revert
20645         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20646
20647         * config/arm/arm.c (arm_override_options): Turn off
20648         flag_dwarf2_cfi_asm for AAPCS variants.
20649
20650 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20651
20652         PR target/43399
20653         * config/arm/arm.c (emit_multi_reg_push): Update comments.
20654         Use PRE_MODIFY instead of PRE_DEC.
20655         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20656         (vfp_emit_fstmd): Likewise.
20657
20658 2010-03-19  Michael Matz  <matz@suse.de>
20659
20660         PR target/43305
20661         * builtins.c (expand_builtin_interclass_mathfn,
20662         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20663         if that fails.
20664
20665 2010-03-19  Richard Guenther  <rguenther@suse.de>
20666
20667         PR tree-optimization/43415
20668         * tree-ssa-pre.c (phi_translate): Split out worker to ...
20669         (phi_translate_1): ... this.
20670         (phi_translate): Move all caching here.  Cache all NARY
20671         and REFERENCE translations.
20672
20673 2010-03-19  David S. Miller  <davem@davemloft.net>
20674
20675         With help from Eric Botcazou.
20676         * config/sparc/sparc.c: Include dwarf2out.h.
20677         (emit_pic_helper): Delete.
20678         (pic_helper_symbol_name): Delete.
20679         (pic_helper_emitted_p): Delete.
20680         (pic_helper_needed): New.
20681         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20682         (get_pc_thunk_name): New.
20683         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
20684         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20685         Set pic_helper_needed to true.  Don't call emit_pic_helper.
20686         (sparc_expand_prologue): Update load_pic_register call.
20687         (sparc_output_mi_thunk): Likewise.
20688         (sparc_file_end): Emit a hidden comdat symbol for the PIC
20689         thunk if possible.  Output CFI information as needed.
20690
20691 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20692             Jack Howarth  <howarth@bromo.med.uc.edu>
20693
20694         PR target/36399
20695         * config/i386/i386.h: Fix ABI on darwin x86-32.
20696
20697 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
20698
20699         * tree.h: Declare make_decl_rtl_for_debug.
20700         * varasm.c (make_decl_rtl_for_debug): New.
20701         * dwarf2out.c (rtl_for_decl_location): Call it.
20702         * cfgexpand.c (expand_debug_expr): Call it.
20703
20704 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20705
20706         PR bootstrap/43399
20707         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20708         mem_mode.
20709
20710         PR bootstrap/43403
20711         * var-tracking.c (vt_init_cfa_base): Do nothing if
20712         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20713
20714 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
20715
20716         PR debug/42873
20717         * var-tracking.c (canonicalize_vars_star): New.
20718         (dataflow_post_merge_adjust): Use it.
20719
20720 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20721
20722         PR debug/43058
20723         * var-tracking.c (non_suitable_const): New function.
20724         (add_uses): For DEBUG_INSNs with constants, don't record any
20725         value, instead just the constant value itself.
20726         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20727         is not VAR_LOC_UNKNOWN_P, set var to the constant.
20728         (emit_notes_in_bb): Likewise.
20729         (emit_note_insn_var_location): For onepart variables if
20730         cur_loc is a VOIDmode constant, use DECL_MODE.
20731
20732 2010-03-18  Martin Jambor  <mjambor@suse.cz>
20733
20734         PR middle-end/42450
20735         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20736         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20737         all non-clones.  Moved call redirection...
20738         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20739         (cgraph_materialize_all_clones): Dispose of all
20740         combined_args_to_skip bitmaps.
20741         (verify_cgraph_node): Do not check for edges pointing to wrong
20742         nodes in inline clones.
20743         * tree-inline.c (copy_bb): Call
20744         cgraph_redirect_edge_call_stmt_to_callee.
20745         * ipa.c (cgraph_remove_unreachable_nodes): Call
20746         cgraph_node_remove_callees even when there are used clones.
20747
20748 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20749
20750         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20751
20752 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20753
20754         PR target/43383
20755         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20756         for 32bit.
20757
20758 2010-03-18  Michael Matz  <matz@suse.de>
20759
20760         PR middle-end/43419
20761         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20762         into sqrt(x) if we need to preserve signed zeros.
20763
20764 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
20765             Eric Botcazou  <ebotcazou@adacore.com>
20766
20767         PR rtl-optimization/43360
20768         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20769         note if we don't know its invariant status.
20770
20771 2010-03-18  Michael Matz  <matz@suse.de>
20772
20773         PR tree-optimization/43402
20774         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20775         PHI chains of ssa names registered for update.
20776
20777 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
20778
20779         PR target/42427
20780         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20781         non-offsettable and pre_modify update addressing.
20782         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20783         and "2" alternatives "#".
20784         (*movdd_softfloat32): Make all alternatives "#";
20785         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20786         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20787         (*movdf_softfloat32): Make all alternatives "#";
20788         (movdi): Use the new DIFD mode iterator to create a common splitter
20789         for movdi, movdf and movdd patterns.
20790
20791 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
20792
20793         * common.opt (dumpdir): Remove redundant tab.
20794
20795 2010-03-17  Martin Jambor  <mjambor@suse.cz>
20796
20797         PR tree-optimization/43347
20798         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20799         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20800
20801 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
20802
20803         PR rtl-optimization/42216
20804         * regrename.c (create_new_chain): New function, broken out from...
20805         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
20806         appending a use to an empty chain.
20807         (build_def_use): Remove previous changes that convert OP_INOUT to
20808         OP_OUT operands; instead detect the case where an OP_INOUT operand
20809         uses a previously untracked register and create an empty chain for it.
20810
20811 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20812
20813         * doc/extend.texi (Function Attributes): Rewrite unfinished
20814         sentence in ms_abi documentation.
20815
20816 2010-03-17  Alan Modra  <amodra@gmail.com>
20817
20818         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20819         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20820         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20821         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20822
20823 2010-03-16  Richard Henderson  <rth@redhat.com>
20824
20825         PR middle-end/43365
20826         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20827         (lower_try_finally): Save and restore eh_seq around the expansion
20828         of the try-finally.
20829
20830 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20831
20832         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20833         statements before splitting block.
20834
20835 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20836
20837         * doc/sourcebuild.texi (Testsuites): Fix markup.
20838         Use pathnames relative to gcc/testsuite.
20839         (Test Directives): Move description of how timeout is determined.
20840         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20841         (C Tests): Correct gcc.misc-tests directory.
20842         Framework tests now live in gcc.test-framework.
20843
20844 2010-03-16  Richard Guenther  <rguenther@suse.de>
20845
20846         PR middle-end/43379
20847         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20848         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20849
20850 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20851             Alexandre Oliva  <aoliva@redhat.com>
20852
20853         PR tree-optimization/42917
20854         * lambda-code.c (remove_iv): Skip debug statements.
20855         (lambda_loopnest_to_gcc_loopnest): Likewise.
20856         (not_interesting_stmt): Debug statements are not interesting.
20857
20858 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20859
20860         PR debug/43051
20861         PR debug/43092
20862         * cselib.c (cselib_preserve_constants,
20863         cfa_base_preserved_val): New static variables.
20864         (preserve_only_constants): New function.
20865         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20866         clear its REG_VALUES.  If cselib_preserve_constants, don't
20867         empty the whole hash table, but preserve there VALUEs with constants,
20868         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20869         (cselib_preserve_cfa_base_value): New function.
20870         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20871         (cselib_init): Change argument to int bitfield.  Set
20872         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20873         is in it.
20874         (cselib_finish): Clear cselib_preserve_constants and
20875         cfa_base_preserved_val.
20876         * cselib.h (enum cselib_record_what): New enum.
20877         (cselib_init): Change argument to int.
20878         (cselib_preserve_cfa_base_value): New prototype.
20879         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20880         * dse.c (dse_step1): Likewise.
20881         * cfgcleanup.c (thread_jump): Likewise.
20882         * sched-deps.c (sched_analyze): Likewise.
20883         * gcse.c (local_cprop_pass): Likewise.
20884         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20885         If FN is non-NULL, call the callback always and whenever it returns
20886         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20887         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20888         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20889         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20890         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20891         * var-tracking.c: Include recog.h.
20892         (bb_stack_adjust_offset): Remove.
20893         (vt_stack_adjustments): Don't call it, instead just gather the
20894         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20895         (adjust_stack_reference): Remove.
20896         (compute_cfa_pointer): New function.
20897         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20898         (struct adjust_mem_data): New type.
20899         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20900         functions.
20901         (get_address_mode): New function.
20902         (replace_expr_with_values): Use it.
20903         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20904         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20905         (adjust_sets): Remove.
20906         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20907         Use get_address_mode.
20908         (get_adjusted_src): Remove.
20909         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20910         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20911         (add_with_sets): Don't call adjust_sets.
20912         (fp_setter, vt_init_cfa_base): New functions.
20913         (vt_initialize): Change return type to bool.  Move most of pool etc.
20914         initialization to the beginning of the function from end.  Pass
20915         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20916         If !frame_pointer_needed, call vt_stack_adjustment before mos
20917         vector is filled, call vt_init_cfa_base if argp/framep has been
20918         eliminated to sp.  If frame_pointer_needed and argp/framep has
20919         been eliminated to hard frame pointer, set
20920         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20921         encountering fp setter in the prologue.  For MO_ADJUST, call
20922         log_op_type before pusing the op into mos vector, not afterwards.
20923         Call adjust_insn before cselib_process_insn/add_with_sets,
20924         call cancel_changes (0) afterwards.
20925         (variable_tracking_main_1): Adjust for vt_initialize calling
20926         vt_stack_adjustments and returning whether it succeeded or not.
20927
20928 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20929
20930         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20931         debug statements.
20932
20933 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20934
20935         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20936         has been set.
20937         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20938         drap_reg has not been set.
20939
20940 2010-03-15  Michael Matz  <matz@suse.de>
20941
20942         PR middle-end/43300
20943         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20944         use it to expand block copies.
20945         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20946         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20947         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20948
20949 2010-03-15  Richard Guenther  <rguenther@suse.de>
20950
20951         PR tree-optimization/43367
20952         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20953         elimination check.
20954
20955 2010-03-15  Richard Guenther  <rguenther@suse.de>
20956
20957         PR tree-optimization/43317
20958         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20959
20960 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20961
20962         PR tree-optimization/43141
20963         * tree-sra.c (create_abstract_origin): New function.
20964         (modify_function): Call create_abstract_origin.
20965
20966 2010-03-15  Chris Demetriou  <cgd@google.com>
20967
20968         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20969         wasn't copied.
20970
20971 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20972
20973         PR middle-end/43354
20974         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20975         call insert_out_of_ssa_copy for default definitions.
20976
20977 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20978
20979         * graphite-clast-to-gimple.c (my_long_long): Defined.
20980         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20981         * graphite-sese-to-poly.c (my_long_long): Defined.
20982         (scop_ivs_can_be_represented): Use it.
20983
20984 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20985
20986         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20987         graphite-max-bbs-per-function, and loop-block-tile-size.
20988         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20989         with "maximum".
20990         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20991
20992 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20993
20994         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20995         forward declaration.
20996         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20997         (add_upper_bounds_from_estimated_nit): New.
20998         (build_loop_iteration_domains): Use it.
20999
21000 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21001
21002         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
21003
21004 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21005
21006         PR middle-end/43306
21007         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
21008         should be an INTEGER_CST.  Also handle CASE_CONVERT.
21009
21010 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21011
21012         * graphite.c (graphite_initialize): To bound the number of bbs per
21013         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
21014         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
21015         * doc/invoke.texi: Document it.
21016
21017 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21018
21019         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
21020         * graphite-sese-to-poly.h (build_poly_scop): Same.
21021
21022 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21023
21024         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
21025         the number of parameters in the scop.  Use as an upper bound
21026         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
21027         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
21028         * doc/invoke.texi: Document it.
21029
21030 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
21031
21032         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
21033         * doc/c-tree.texi: Remove.
21034         * doc/generic.texi: Merge c-tree.texi here.
21035         * doc/gccint.texi (Trees): Remove menu entry.
21036         (c-tree.texi): Remove @include.
21037         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
21038         * doc/languages.texi (Reading RTL): Ditto.
21039
21040 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
21041
21042         PR target/42869
21043         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
21044
21045 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21046
21047         PR middle-end/42431
21048         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
21049         code added to work around reload clobbering CONST insns.
21050
21051 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
21052
21053         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
21054         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
21055         (cselib_preserve_only_values): Remove retain argument, don't
21056         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
21057         * cselib.h (cselib_preserve_only_values): Remove retain argument.
21058         * var-tracking.c (micro_operation): Move insn field before union.
21059         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
21060         (struct variable_tracking_info_def): Remove n_mos field, change
21061         mos into a vector of micro_operations.
21062         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
21063         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
21064         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
21065         changing into a vector.
21066         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
21067         come before all other uops generated by add_stores.
21068         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
21069         argument removal.
21070         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
21071         a vector.  Run just one pass over the bbs instead of separate counting
21072         and computation phase.
21073         (vt_finalize): Free VTI (bb)->mos vector instead of array.
21074
21075         PR debug/43329
21076         * tree-inline.c (remap_decls): Put old_var rather than origin_var
21077         into *nonlocalized_list vector.
21078         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
21079         even if origin is non-NULL.
21080         (gen_variable_die): Likewise.
21081         (process_scope_var): Don't change origin.
21082         (gen_decl_die): Likewise.
21083         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
21084         before adding new edges instead of after it, fix moving over
21085         debug stmts.
21086
21087 2010-03-11  David S. Miller  <davem@davemloft.net>
21088
21089         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
21090         of four.
21091         * configure: Rebuild.
21092
21093 2010-03-11  Martin Jambor  <mjambor@suse.cz>
21094
21095         PR tree-optimization/43257
21096         * tree.c (assign_assembler_name_if_neeeded): New function.
21097         (free_lang_data_in_cgraph): Assembler name assignment moved to the
21098         above new function.
21099         * tree.h (assign_assembler_name_if_neeeded): Declare.
21100         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
21101         the function if needed.
21102
21103 2010-03-11  Chris Demetriou  <cgd@google.com>
21104
21105         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
21106         include/stdint-gcc.h, and include/stdint.h world-readable.
21107
21108 2010-03-11  Richard Guenther  <rguenther@suse.de>
21109
21110         PR tree-optimization/43255
21111         * tree-vrp.c (process_assert_insertions_for): Do not insert
21112         asserts for trivial conditions.
21113
21114 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21115
21116         PR tree-optimization/43280
21117         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
21118         generation.  Move calculation of size out of the if branch.
21119         (find_bswap): Modify compare number generation.
21120
21121 2010-03-11  Richard Guenther  <rguenther@suse.de>
21122
21123         PR lto/43200
21124         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
21125         (input_gimple_stmt): Fixup handled component types during
21126         operand read.  Also fix up decls in ADDR_EXPRs.
21127
21128 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
21129
21130         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
21131         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
21132
21133 2010-03-10  Jan Hubicka  <jh@suse.cz>
21134
21135         PR c/43288
21136         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
21137         * varasm.c (get_variable_section): Don't do that here...
21138         (make_decl_rtl): ... and here.
21139         (do_assemble_alias): Produce decl RTL.
21140         (assemble_alias): Likewise.
21141
21142 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
21143
21144         PR debug/43290
21145         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
21146         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
21147         of fde->vdrap_reg.
21148         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
21149         (based_loc_descr): Only express drap or vdrap regno based expressions
21150         using DW_OP_fbreg when not optimizing.
21151         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
21152         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
21153         REG_CFA_SET_VDRAP note.
21154
21155 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
21156
21157         PR tree-optimization/43236
21158         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
21159         error in calculation of base address in reverse iteration case.
21160         (generate_builtin): Take number of latch executions if the statement
21161         is in the latch.
21162
21163 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
21164
21165         PR middle-end/42859
21166         * tree-eh.c: Include pointer-set.h.
21167         (lower_eh_dispatch): Filter out duplicate case labels and
21168         remove the unneeded edge when the label is unused.  Return
21169         true when some edges are removed.
21170         (execute_lower_eh_dispatch): When any lowering resulted in
21171         removing an edge, also delete unreachable blocks.
21172
21173 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
21174
21175         PR bootstrap/43287
21176         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21177         UNSPEC_MACHOPIC_OFFSET.
21178
21179 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
21180
21181         PR target/43294
21182         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
21183         (m68k_delegitimize_address): New function.
21184
21185 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
21186
21187         PR debug/43299
21188         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
21189
21190         PR debug/43299
21191         * var-tracking.c (adjust_sets): New function.
21192         (count_with_sets, add_with_sets): Use it.
21193         (get_adjusted_src): New inline function.
21194         (add_stores): Use it.
21195
21196         PR debug/43304
21197         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
21198         call cselib_dummy_expand_value_rtx_cb instead of
21199         cselib_expand_value_rtx_cb.
21200
21201         PR debug/43293
21202         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
21203         * config/i386/i386.c: Include debug.h and dwarf2out.h.
21204         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
21205         and .cfi_endproc around the pic thunks.
21206         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
21207         all queued unwind info register saves are saved before the call.
21208         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
21209         considered as sp-=4 for unwind info and the pop as sp+=4 which
21210         also clobbers dest, but doesn't actually restore it.
21211
21212         PR debug/43290
21213         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
21214         RTX_FRAME_RELATED_P.
21215
21216 2010-03-09  Jie Zhang  <jie@codesourcery.com>
21217
21218         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
21219         whitespaces in output template.
21220
21221 2010-03-09  Jie Zhang  <jie@codesourcery.com>
21222
21223         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
21224         out array boundary.
21225
21226 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
21227
21228         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
21229         builtins.exp in a separate job.
21230
21231 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21232
21233         * graphite-sese-to-poly.c (add_param_constraints): Use
21234         lower_bound_in_type and upper_bound_in_type.
21235
21236 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21237
21238         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
21239         instead of unsigned_type_node.
21240
21241 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21242             Reza Yazdani  <reza.yazdani@amd.com>
21243
21244         PR middle-end/43065
21245         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
21246         on pointer type parameters.
21247
21248 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
21249
21250         PR middle-end/42644
21251         PR middle-end/42130
21252         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
21253         handle conversions from pointer to integers.
21254         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
21255         induction variable, to be able to work with code generated by CLooG.
21256         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
21257         (build_poly_scop): Bail out if we cannot codegen a loop.
21258
21259 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
21260
21261         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
21262         code generation with gloog_error.
21263
21264 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21265
21266         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
21267         Call fold_convert on all the returned values.
21268         (expand_scalar_variables_expr): Pass to
21269         expand_scalar_variables_ssa_name the type of the resulting expression.
21270
21271 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21272
21273         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
21274         ppl_min_for_le_pointset.
21275         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
21276         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
21277
21278 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21279
21280         * graphite-dependences.c (map_into_dep_poly): Removed.
21281         (dependence_polyhedron_1): Use combine_context_id_scat.
21282
21283 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21284
21285         * graphite-poly.h (struct poly_scattering): Add layout documentation.
21286         (struct poly_bb): Same.
21287         (combine_context_id_scat): New.
21288
21289 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21290
21291         PR middle-end/42326
21292         * sese.c (name_defined_in_loop_p): Return false for default
21293         definitions.
21294
21295 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21296
21297         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
21298         and clean up the logic.
21299
21300 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21301
21302         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
21303         early return.
21304
21305 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
21306
21307         * var-tracking.c (remove_cselib_value_chains): Define only for
21308         ENABLE_CHECKING.
21309         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
21310         delete_slot_part, emit_notes_for_differences_1): Don't call
21311         remove_cselib_value_chains here.
21312         (set_slot_part, emit_notes_for_differences_2): Don't call
21313         add_cselib_value_chains here.
21314         (preserved_values): New vector.
21315         (preserve_value): New function.
21316         (add_uses, add_stores, vt_add_function_parameters): Use it
21317         instead of cselib_preserve_value.
21318         (changed_values_stack): New vector.
21319         (check_changed_vars_0): New function.
21320         (check_changed_vars_1, check_changed_vars_2): Use it.
21321         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
21322         changed_values_stack VALUEs.
21323         (vt_emit_notes): For all preserved_values call
21324         add_cselib_value_chains.  If ENABLE_CHECKING call
21325         remove_cselib_value_chains before verifying value_chains is empty.
21326         Initialize and free changed_values_stack.
21327         (vt_initialize): Initialize preserved_values.
21328         (vt_finalize): Free preserved_values.
21329
21330 2010-03-08  Richard Guenther  <rguenther@suse.de>
21331
21332         PR tree-optimization/43269
21333         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
21334         region detection.
21335
21336 2010-03-08  Martin Jambor  <mjambor@suse.cz>
21337
21338         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
21339         (ipa_is_param_called): Removed.
21340         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
21341         (ipa_print_node_params): Do not print the called flag.
21342         (ipa_write_node_info): Do not stream the called flag.
21343         (ipa_read_node_info): Likewise.
21344
21345 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
21346
21347         PR debug/43176
21348         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
21349         * cselib.c (struct expand_value_data): Add dummy field.
21350         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
21351         dummy to false.
21352         (cselib_dummy_expand_value_rtx_cb): New function.
21353         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
21354         any rtl.
21355         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
21356         * var-tracking.c: Include pointer-set.h.
21357         (variable): Change n_var_parts to char from int.  Add
21358         cur_loc_changed and in_changed_variables fields.
21359         (variable_canonicalize): Remove.
21360         (shared_var_p): New inline function.
21361         (unshare_variable): Maintain cur_loc_changed and
21362         in_changed_variables fields.  If var was in changed_variables,
21363         replace it there with new_var.  Just copy cur_loc instead of
21364         resetting it to something else.
21365         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
21366         (dataflow_set_union): Don't call variable_canonicalize.
21367         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
21368         of their DEBUG_EXPR_TREE_DECLs.
21369         (canonicalize_loc_order_check): Verify that cur_loc is NULL
21370         and in_changed_variables and cur_loc_changed is false.
21371         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
21372         and cur_loc_changed.  Don't update cur_loc here.
21373         (variable_merge_over_src): Don't call variable_canonicalize.
21374         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
21375         removing loc that is equal to cur_loc, clear cur_loc,
21376         set cur_loc_changed and ensure variable_was_changed is called.
21377         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
21378         compare pointers in cur_loc check, if it is equal to loc,
21379         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
21380         (variable_different_p): Remove compare_current_location argument,
21381         don't compare cur_loc.
21382         (dataflow_set_different_1): Adjust variable_different_p caller.
21383         (variable_was_changed): If dv had some var in changed_variables
21384         already, reset in_changed_variables flag for it and propagate
21385         cur_loc_changed over to the new variable.  On empty var
21386         always set cur_loc_changed.  Set in_changed_variables on whatever
21387         var is added to changed_variables.
21388         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
21389         Use shared_var_p.  When removing loc that is equal to cur_loc,
21390         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
21391         end, don't set it to something else, just call variable_was_changed.
21392         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
21393         loc being removed, clear cur_loc and set cur_loc_changed.
21394         Set cur_loc_changed if all locations have been removed.
21395         (struct expand_loc_callback_data): New type.
21396         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
21397         allocated.  Always create SUBREGs if simplify_subreg failed.
21398         Prefer to use cur_loc, when that fails and still in
21399         changed_variables (and seen first time) recompute it.  Set
21400         cur_loc_changed of variables which had to change cur_loc and
21401         compute elcd->cur_loc_changed if any of the subexpressions used
21402         had to change cur_loc.
21403         (vt_expand_loc): Adjust to pass arguments in
21404         expand_loc_callback_data structure.
21405         (vt_expand_loc_dummy): New function.
21406         (emitted_notes): New variable.
21407         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
21408         that weren't used for any other decl in current
21409         emit_notes_for_changes call call vt_expand_loc_dummy to update
21410         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
21411         first loc_chain location if NULL before.  Always use just
21412         cur_loc instead of first loc_chain location.  When cur_loc_changed
21413         is false, when not --enable-checking=rtl just don't emit any note.
21414         When rtl checking, compute the note and assert it is the same
21415         as previous note.  Clear cur_loc_changed and in_changed_variables
21416         at the end before removing from changed_variables.
21417         (check_changed_vars_3): New function.
21418         (emit_notes_for_changes): Traverse changed_vars to call
21419         check_changed_vars_3 on each changed var.
21420         (emit_notes_for_differences_1): Clear cur_loc_changed and
21421         in_changed_variables.  Recompute cur_loc of new_var.
21422         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
21423         (vt_emit_notes): Initialize and destroy emitted_notes.
21424
21425 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
21426
21427         PR rtl-optimization/42220
21428         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
21429         Use verify_reg_tracked to determine if we should use OP_OUT rather
21430         than OP_INOUT.
21431         (build_def_use): If we see an in-out operand for a register that we
21432         know nothing about, treat is an output if possible, fail the block if
21433         not.
21434
21435 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21436
21437         PR debug/42897
21438         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
21439         permanently.
21440
21441 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21442
21443         PR debug/42897
21444         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
21445         uses of relevant DEFs that are dead outside the loop too.
21446
21447 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21448
21449         * var-tracking.c (dataflow_set_merge): Swap src and src2.
21450         Reverted:
21451         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21452         PR debug/41371
21453         * var-tracking.c (values_to_unmark): New variable.
21454         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21455         values_to_unmark vector.  Moved body to...
21456         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21457         instead queue it into values_to_unmark vector.
21458         (vt_find_locations): Free values_to_unmark vector.
21459
21460 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
21461
21462         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
21463         (site.exp): Export them when plugins are enabled.
21464
21465 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
21466
21467         PR middle-end/42326
21468         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
21469         that contain scevs.
21470         (chrec_fold_multiply): Same.
21471
21472 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
21473
21474         PR c/43248
21475         * c-decl.c (build_compound_literal): Return early if init is
21476         an error_mark_node.
21477
21478 2010-03-04  Martin Jambor  <mjambor@suse.cz>
21479
21480         PR tree-optimization/43164
21481         PR tree-optimization/43191
21482         * tree-sra.c (type_consists_of_records_p): Reject records with
21483         zero-size bit-fields at the end.
21484
21485 2010-03-04  Mike Stump  <mikestump@comcast.net>
21486
21487         * Makefile.in (TAGS): Remove *.y.
21488
21489 2010-03-04  Richard Guenther  <rguenther@suse.de>
21490
21491         PR tree-optimization/40761
21492         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
21493         in reverse order.
21494         (my_rev_post_order_compute): New function.
21495         (init_pre): Call it.
21496
21497 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
21498
21499         PR middle-end/43209
21500         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
21501         decrease the cost of an IV candidate when the cost is infinite.
21502
21503 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21504
21505         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
21506         Use '3DNow!' for the extension of that name, ensure normal space
21507         after the string.
21508         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
21509
21510 2010-03-03  Jeff Law  <law@redhat.com>
21511
21512         * PR middle-end/32693
21513         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
21514         than gen_rtx_SUBREG.
21515         (extract_bit_field_1): Likewise.
21516
21517 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
21518
21519         * doc/sourcebuild.texi (Test directives): Document that arguments
21520         include-opts and exclude-opts are now optional for dg-skip-if,
21521         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
21522
21523 2010-03-03  Jason Merrill  <jason@redhat.com>
21524
21525         PR c++/12909
21526         * cgraph.h (varpool_node): Add extra_name field.
21527         * varpool.c (varpool_extra_name_alias): New.
21528         (varpool_assemble_decl): Emit extra name aliases.
21529         (varpool_mark_needed_node): Look past an extra name alias.
21530         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
21531         * lto-streamer-in.c (lto_input_tree): Read it.
21532         * lto-streamer-out.c (output_unreferenced_globals): Write it.
21533
21534 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21535
21536         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
21537         (sparc*-*-solaris2*): ...this.
21538
21539 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
21540
21541         PR debug/43229
21542         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
21543         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
21544         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
21545         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
21546
21547         PR debug/43237
21548         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
21549         fallthrough to default handling, just with want_address 0 instead of 2.
21550         For single element lists, add_AT_loc directly, otherwise create an
21551         artificial variable DIE and stick location list to it.
21552
21553         PR debug/43177
21554         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
21555         (VAL_EXPR_HAS_REVERSE): Define.
21556         (reverse_op): New function.
21557         (add_stores): For reversible operations add an extra MO_VAL_USE.
21558
21559 2010-03-02  Jason Merrill  <jason@redhat.com>
21560
21561         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
21562
21563 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
21564
21565         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
21566         (sparc64-*-linux*): Likewise.
21567         (sparc64-*-solaris2*): Include assembler files before linker ones.
21568         (sparc-*-solaris2*): Simplify and reorder to match previous case.
21569         * config/sparc/gas.h: Delete.
21570         * config/sparc/sol2-64.h: Add copyright notice.
21571         * config/sparc/sol2-gas-bi.h: Likewise.
21572         * config/sparc/sol2-gld.h: Likewise.
21573         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
21574         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
21575         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
21576         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
21577         (sparc_elf_asm_named_section): Rename into...
21578         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
21579
21580 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
21581
21582         * config/alpha/alpha.c (override_options): Fix -mtune error message.
21583
21584 2010-03-02  Jeff Law  <law@redhat.com>
21585
21586         PR middle-end/42431
21587         * reload1.c (rtx_p, substitute_stack): Declare.
21588         (substitute): Record addresses of changed rtxs.
21589         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
21590         Restore the original rtx when complete.
21591         (reload): Free subsitute_stack when complete.
21592
21593 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
21594
21595         * doc/gccint.texi (menu): Add Testsuites as a chapter.
21596         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
21597         new chapter.
21598         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
21599         LTO Testing, gcov Testing, profopt Testing, compat Testing,
21600         Torture Tests): Change from subsection to section.
21601
21602 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
21603             Steven Bosscher  <steven@gcc.gnu.org>
21604
21605         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
21606         instead of bb.
21607
21608 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
21609
21610         PR middle-end/42640
21611         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
21612         the assignment from the new induction variable to the assignment
21613         of the value from the original loop PHI function.
21614
21615 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
21616             Daniel Jacobowitz  <dan@codesourcery.com>
21617
21618         * doc/sourcebuild.texi (Test directives): Clarify options to
21619         dg-skip-if.
21620
21621 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21622
21623         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
21624         Disable cfi directives unless GCC and gas agree on using read-only
21625         .eh_frame sections for 64-bit.
21626         * configure: Regenerate.
21627
21628 2010-03-01  Richard Guenther  <rguenther@suse.de>
21629
21630         PR tree-optimization/43220
21631         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
21632         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
21633
21634 2010-03-01  Richard Guenther  <rguenther@suse.de>
21635             Martin Jambor  <mjambor@suse.cz>
21636
21637         PR middle-end/41250
21638         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
21639         gimplified parameters.
21640
21641 2010-03-01  Christian Bruel  <christian.bruel@st.com>
21642
21643         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21644
21645 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21646
21647         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21648
21649 2010-03-01  Richard Guenther  <rguenther@suse.de>
21650
21651         PR middle-end/43213
21652         * expr.c (expand_assignment): Use the alias-oracle to tell
21653         if the rhs aliases the result decl.
21654
21655 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21656
21657         PR pch/14940
21658         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21659         to sol_gt_pch_get_address.
21660         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21661         64-bit, SPARC and x86.
21662         (sol_gt_pch_get_address): New function.
21663
21664 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
21665
21666         * toplev.h (inform_n, error_n): Declare.
21667         * diagnostic.c (inform_n, error_n): New function.
21668
21669 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
21670
21671         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21672         has no rtl yet when processing local_decls, queue it and recheck
21673         if deferred stack allocation hasn't assigned it rtl.
21674
21675 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
21676
21677         * config/sh/sh.c (unspec_bbr_uid): New.
21678         (gen_block_redirect): Use it instead of INSN_UID.
21679         (gen_far_branch): Likewise.
21680
21681 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21682
21683         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21684         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21685
21686 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21687
21688         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21689         (Warning Options): -Wno-conversion-null is valid for
21690         Objective-C++ as well.
21691         * doc/tm.texi (Named Address Spaces): Likewise.
21692         * doc/plugins.texi (Plugins): Replace TABs with spaces.
21693         * doc/tree-ssa.texi (Tree SSA): Likewise.
21694
21695 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21696
21697         PR bootstrap/43202
21698         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21699         by default.  Don't set the default arch for
21700         i[34567]86-*-darwin*|x86_64-*-darwin*.
21701
21702 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21703
21704         PR bootstrap/43202
21705         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21706         default.  Set the default 32bit/64bit archs with $with_arch
21707         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21708
21709 2010-02-27  Richard Guenther  <rguenther@suse.de>
21710
21711         PR tree-optimization/43186
21712         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21713         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21714         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21715         unroller iterations.
21716
21717 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21718
21719         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21720         required and i[34567]86-*-* targets don't support 64bit ISA.
21721
21722 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21723
21724         PR ada/43096
21725         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21726         the same alias set.
21727
21728 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21729
21730         * config.gcc: Set the default arch at least to Prescott for
21731         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21732         if SSE math is enabled.
21733
21734 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21735
21736         * diagnostic.c (diagnostic_initialize): Update.
21737         (diagnostic_report_diagnostic): Test inhibit_notes_p for
21738         informative notes.
21739         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21740         (diagnostic_inhibit_notes): New.
21741         * toplev.c (process_options): inhibit notes with -fcompare-debug.
21742
21743 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21744
21745         PR c/20631
21746         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21747         * doc/standards.texi: Likewise.
21748         * doc/extend.texi: Likewise.
21749         * doc/trouble.texi: Likewise.
21750         * doc/cppopts.texi: Likewise.
21751         * doc/install.texi: Likewise.
21752         * c.opt (std=c90,std=gnu90): New options.
21753         * c-opts.c (c_common_handle_option): Handle them.
21754
21755 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21756
21757         PR c/24577
21758         * c-decl.c (undeclared_variable): Use an informative note.
21759
21760 2010-02-26  Richard Guenther  <rguenther@suse.de>
21761
21762         PR tree-optimization/43186
21763         * gimple.h (gimple_fold): Remove.
21764         * gimple.c (gimple_fold): Remove.  Inline into single user ...
21765         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21766         Try harder for conditions.
21767
21768 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21769
21770         PR debug/43190
21771         * function.c (used_types_insert): Don't skip through named pointer
21772         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
21773         and it is different from the main variant's type.
21774
21775 2010-02-26  Nick Clifton  <nickc@redhat.com>
21776
21777         * config/rx/rx.md (sminsi3): Remove bogus alternative.
21778
21779 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21780
21781         * config.gcc: Support --with-fpmath=sse for x86.
21782
21783         * config/i386/ssemath.h: New.
21784
21785         * doc/install.texi (--with-fpmath=sse): Documented.
21786
21787 2010-02-26  Richard Guenther  <rguenther@suse.de>
21788
21789         PR tree-optimization/43188
21790         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21791         vector types of over-aligned element type.
21792
21793 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
21794
21795         PR target/43175
21796         * config/i386/i386.c (expand_vec_perm_blend): Use correct
21797         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
21798
21799 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
21800
21801         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21802
21803 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21804
21805         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21806         * var-tracking.c: Include diagnostic.h.
21807         (debug_dv): New function.
21808         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21809
21810         PR debug/43160
21811         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21812         (add_value_chain, add_value_chains, remove_value_chain,
21813         remove_value_chains): Handle DEBUG_EXPRs.
21814         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21815
21816         PR debug/43161
21817         * regcprop.c (struct queued_debug_insn_change): New type.
21818         (struct value_data_entry): Add debug_insn_changes field.
21819         (struct value_data): Add n_debug_insn_changes field.
21820         (debug_insn_changes_pool): New variable.
21821         (free_debug_insn_changes, apply_debug_insn_changes,
21822         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21823         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21824         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21825         fields.
21826         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21827         changes for them.
21828         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21829         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21830         changes, call cprop_find_used_regs via note_stores.
21831         (copyprop_hardreg_forward): When copying vd from predecessor
21832         which has any queued DEBUG_INSN changes, make sure the pointers are
21833         cleared.  At the end call df_analyze and then if there are any
21834         DEBUG_INSN changes queued at the end of some basic block for still
21835         live registers, apply them.
21836         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21837
21838 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21839
21840         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21841         (arm*-*-*): Ditto.
21842
21843 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21844
21845         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21846         targets.  Set the default with_cpu/with_arch from arch/cpu.
21847         Allow x86-64 and native for with_cpu/with_arch.
21848
21849 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21850
21851         * ebitmap.c: Change calls to verify_popcount with calls to
21852         sbitmap_verify_popcount.
21853         (ebitmap_clear_bit): Fixed map->cacheindex test and
21854         map>cache update when bit clearing results in an empty
21855         element.
21856
21857 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21858
21859         PR target/43154
21860         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21861         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21862         and support both V2DF and V2DI modes.
21863         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21864         support both V2DF and V2DI modes.
21865         (general): Delete trailing whitespace from a few patterns.
21866
21867         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21868         V2DF/V2DI interleave high/low builtins.
21869
21870         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21871         new VSX builtins.
21872
21873         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21874         interleave high/low functions.
21875
21876 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21877
21878         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21879         #pragma extern_prefix.
21880
21881 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21882
21883         PR debug/43166
21884         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21885         BLKmode, assert op0 is a MEM and just adjust its mode.
21886
21887         PR debug/43165
21888         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21889         if bitpos isn't multiple of mode's bitsize.
21890
21891 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21892
21893         * c.opt (-ftemplate-depth=): New.
21894         (-ftemplate-depth-): Deprecate.
21895         * optc-gen.awk: Handle -ftemplate-depth=.
21896         * opth-gen.awk: Likewise.
21897         * c-opts.c (c_common_handle_option): Likewise.
21898         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21899
21900 2010-02-24  Jason Merrill  <jason@redhat.com>
21901
21902         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21903
21904 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21905
21906         * cfg.c (alloc_aux_for_block): Remove inline.
21907         (alloc_aux_for_edge): Likewise.
21908
21909 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21910
21911         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21912
21913 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21914
21915         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21916         * config/i386/sol2-gas.h: New file.
21917         * config.gcc (i[34567]86-*-solaris2*): Use it.
21918
21919 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21920
21921         PR c/43128
21922         * c-typeck.c (ep_convert_and_check): New.
21923         (build_conditional_expr): Use it.
21924         (build_binary_op): Likewise.
21925
21926 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21927
21928         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21929
21930         PR debug/43150
21931         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21932         bounds even for -O+.
21933         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21934         expr needs to have DECL_NAME set.
21935
21936 2010-02-24  Nick Clifton  <nickc@redhat.com>
21937
21938         * config/mep/mep.c: Include gimple.h.
21939         (mep_function_uses_sp): Delete unused function.
21940         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21941         parameters.  Use unsigned integers to count args.  Return a
21942         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21943
21944 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21945
21946         PR target/43107
21947         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21948         greater or equal to nelt instead of 2 * nelt.
21949         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21950         with nelt - 1.
21951
21952 2010-02-23  Jason Merrill  <jason@redhat.com>
21953
21954         PR debug/42800
21955         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21956         in cfun->local_decls even if they have register types.
21957
21958         PR c++/42837
21959         * stor-layout.c (place_field): Don't warn about unnecessary
21960         DECL_PACKED if the type is packed.
21961
21962 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21963
21964         PR target/43139
21965         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21966         GOTOFF relocs, even when the base reg isn't pic pointer.
21967
21968 2010-02-23  Michael Matz  <matz@suse.de>
21969
21970         PR debug/43077
21971         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21972         (expand_gimple_basic_block): Generate and use debug temps if there
21973         are debug uses left after the last real use of TERed ssa names.
21974         Unlink debug immediate uses when they are expanded.
21975
21976 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21977
21978         PR 43123
21979         * config/i386/i386.c (override_options): Reorganise to provide
21980         better error messages.
21981
21982 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21983
21984         PR middle-end/43083
21985         * graphite-scop-detection.c (create_single_exit_edge): Move
21986         the call to find_single_exit_edge to....
21987         (create_sese_edges): ...here.  Don't handle multiple edges
21988         exiting the function.
21989         (build_graphite_scops): Don't handle multiple edges
21990         exiting the function.
21991
21992 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21993
21994         PR middle-end/43097
21995         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21996         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21997
21998 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21999
22000         PR middle-end/43026
22001         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
22002
22003 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22004
22005         PR c++/43126
22006         * c-typeck.c (convert_arguments): Print declaration location.
22007         * c-common.c (validate_nargs): Rename as
22008         builtin_function_validate_nargs.
22009         (check_builtin_function_arguments): Update.
22010
22011 2010-02-22  Richard Guenther  <rguenther@suse.de>
22012
22013         PR lto/43045
22014         * tree-inline.c (declare_return_variable): Use the type of
22015         the call stmt lhs if available.
22016
22017 2010-02-22  Duncan Sands  <baldrick@free.fr>
22018
22019         * passes.c (register_pass): Always consider all pass lists when
22020         ref_pass_instance_number is zero.
22021
22022 2010-02-22  Richard Guenther  <rguenther@suse.de>
22023
22024         PR tree-optimization/42749
22025         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
22026         parameter.  Do arithmetic in the original type.
22027         (update_accumulator_with_ops): Likewise.
22028         (adjust_accumulator_values): Adjust.
22029
22030 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22031
22032         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
22033         (QI to BLKmode splitter): New splitter.
22034
22035 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
22036
22037         * config/i386/i386.c (initial_ix86_tune_features): Turn on
22038         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
22039
22040 2010-02-22  Richard Guenther  <rguenther@suse.de>
22041
22042         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
22043
22044 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
22045
22046         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
22047         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
22048         ($(T)crti.o, $(T)crtn.o): Remove rules.
22049
22050 2010-02-21  Tobias Burnus  <burnus@net-b.de>
22051
22052         PR fortran/35259
22053         * doc/invoke.texi (-fassociative-math): Document that this
22054         option is automatically enabled for Fortran.
22055
22056 2010-02-20  David S. Miller  <davem@davemloft.net>
22057
22058         * configure.ac: Test if linker and assembler properly support
22059         GOTDATA_OP relocations.
22060         * configure: Rebuild.
22061         * config.in: Likewise.
22062         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
22063         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
22064         (movsi_high_pic): Likewise.
22065         (movdi_lo_sum_pic): Likewise.
22066         (movdi_high_pic): Likewise.
22067         (movsi_pic_gotdata_op): New pattern.
22068         (movdi_pic_gotdata_op): Likewise.
22069         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
22070         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
22071
22072 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
22073
22074         PR target/43067
22075         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
22076         attribute to ssemul.
22077         (xop_mulv2div2di3_high): Ditto.
22078
22079 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22080
22081         PR c++/35669
22082         * c.opt (Wconversion-null): New option.
22083         * doc/invoke.texi (Wconversion-null): Document.
22084
22085 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22086
22087         * common.opt (Wlarger-than-): Add Undocumented.
22088
22089 2010-02-19  Mike Stump  <mikestump@comcast.net>
22090
22091         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
22092
22093 2010-02-19  Jason Merrill  <jason@redhat.com>
22094
22095         PR target/40332
22096         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
22097         * configure: Likewise.
22098
22099 2010-02-20  Alan Modra  <amodra@gmail.com>
22100
22101         PR middle-end/42344
22102         * cgraph.h (cgraph_make_decl_local): Declare.
22103         * cgraph.c (cgraph_make_decl_local): New function.
22104         (cgraph_make_node_local): Use it.
22105         * cgraphunit.c (cgraph_function_versioning): Likewise.
22106         * ipa.c (function_and_variable_visibility): Likewise.
22107
22108 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22109
22110         PR bootstrap/43121
22111         * except.c (sjlj_emit_function_enter): Don't call
22112         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
22113         directly.
22114         * rtl.h (add_reg_br_prob_note): Remove prototype.
22115
22116 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22117
22118         PR 41779
22119         * c-common.c (conversion_warning): Remove widening conversions
22120         before checking the conversion of integers to reals.
22121
22122 2010-02-19  Mike Stump  <mikestump@comcast.net>
22123
22124         PR middle-end/43125
22125         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
22126
22127         PR objc/43061
22128         * cgraphunit.c (process_function_and_variable_attributes): Check
22129         DECL_PRESERVE_P instead of looking up attribute "used".
22130         * ipa-pure-const.c (check_decl): Likewise.
22131         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
22132         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
22133         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
22134         instead of attribute "used".
22135         * config/sol2-c.c (solaris_pragma_init): Likewise.
22136         (solaris_pragma_fini): Likewise.
22137
22138 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22139
22140         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
22141         Use XCNEW instead of xcalloc.
22142         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
22143         XNEW instead of xmalloc.
22144         (get_fields): Use XNEWVEC instead of xmalloc.
22145
22146         PR debug/43084
22147         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
22148         populate vars array.
22149         (create_new_general_access): For debug stmts just reset value.
22150         (get_stmt_accesses): For accesses within debug stmts just record them
22151         using add_access_to_acc_sites instead of preventing the peeling or
22152         counting them as accesses.
22153
22154         PR middle-end/42233
22155         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
22156
22157 2010-02-19  Richard Guenther  <rguenther@suse.de>
22158
22159         PR tree-optimization/42916
22160         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
22161         instructions.
22162
22163 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
22164
22165         * configure.ac: Replace all uses of changequote in macro arguments
22166         with proper quoting.
22167
22168 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22169
22170         PR middle-end/42233
22171         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
22172
22173 2010-02-19  Richard Guenther  <rguenther@suse.de>
22174
22175         PR tree-optimization/42944
22176         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
22177         test for aliasing with errno.
22178
22179 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22180
22181         PR middle-end/42233
22182         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
22183         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
22184         * dojump.c: Include output.h.
22185         (inv): New inline function.
22186         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
22187         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
22188         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
22189         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
22190         argument, pass it down to other calls.
22191         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
22192         add REG_BR_PROB note to the conditional jump.
22193         * cfgexpand.c (add_reg_br_prob_note): Removed.
22194         (expand_gimple_cond): Don't call it, add the probability
22195         as last argument to jumpif_1/jumpifnot_1.
22196         * Makefile.in (dojump.o): Depend on output.h.
22197         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
22198         callers.
22199         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
22200         * stmt.c (do_jump_if_equal): Likewise.
22201         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
22202         * loop-unswitch.c (compare_and_jump_seq): Likewise.
22203         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
22204         Likewise.
22205         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
22206         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
22207         jumpifnot_1 callers.
22208         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
22209         callers.
22210         (store_expr): Adjust jumpifnot caller.
22211         (store_constructor): Adjust jumpif caller.
22212
22213         PR middle-end/42233
22214         * gimplify.c (gimple_boolify): For __builtin_expect call
22215         gimple_boolify also on its first argument.
22216
22217 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
22218
22219         * configure.ac (gnu-unique-object): Wrap regexps using [] in
22220         changequote block.
22221         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
22222         * configure: Regenerated.
22223
22224 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22225
22226         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
22227         lang_hooks.types_compatible_p instead of comptypes.
22228
22229 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22230
22231         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
22232         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
22233         if __prefer_thumb__ is defined.
22234
22235 2010-02-18  Martin Jambor  <mjambor@suse.cz>
22236
22237         PR tree-optimization/43066
22238         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
22239         array with zero-sized element type.
22240
22241 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
22242
22243         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
22244         rtx, allocate struct var_loc_node here and return it to the
22245         caller, and only if it is actually needed.
22246         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
22247         move it earlier and return immediately if it returns NULL.
22248
22249 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
22250
22251         * config/sparc/gas.h: New file.  Restore
22252         TARGET_ASM_NAMED_SECTION to its ELF default.
22253         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
22254         check !HAVE_GNU_AS.
22255         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22256         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
22257         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
22258         after sparc/sysv4.h.
22259
22260 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
22261
22262         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
22263
22264 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
22265
22266         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
22267         patterns from predicated pattern.
22268
22269 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
22270
22271         PR target/43103
22272         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
22273         for insn mnemonic suffix.
22274
22275 2010-02-17  Richard Guenther  <rguenther@suse.de>
22276
22277         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
22278         to loop PHI nodes.
22279
22280 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
22281
22282         PR debug/42918
22283         * caller-save.c (save_call_clobbered_regs): If BB ends with
22284         a DEBUG_INSN, move any notes in between last real insn and the last
22285         DEBUG_INSN after the last DEBUG_INSN.
22286
22287 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
22288
22289         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
22290         Fix return type.  Fix argument type.  Explain meaning of return value.
22291
22292 2010-02-16  Richard Guenther  <rguenther@suse.de>
22293
22294         PR tree-optimization/41043
22295         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
22296         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
22297         statements ...
22298         (vrp_visit_phi_node): ... but only for loop PHI nodes.
22299
22300 2010-02-16  Ira Rosen  <irar@il.ibm.com>
22301
22302         PR tree-optimization/43074
22303         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
22304         * tree-vect-loop.c (vect_analyze_loop_operations): Add
22305         vectorizable cycles in hybrid SLP check.
22306         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
22307
22308 2010-02-16  Richard Guenther  <rguenther@suse.de>
22309
22310         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
22311         (true_dependence): If memrefs_conflict_p computes must-alias
22312         trust it.  Move TBAA check after offset-based disambiguation.
22313         (canon_true_dependence): Likewise.
22314
22315 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
22316
22317         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
22318         * doc/invoke.texi: Document it.
22319         * var-tracking.c: Include toplev.h and params.h.
22320         (vt_find_locations): Return bool indicating success.  Compute
22321         hash sizes unconditionally.  Check new parameter, report.
22322         (variable_tracking_main_1): Check vt_find_locations results and
22323         retry.  Renamed from...
22324         (variable_tracking_main): ... this.  New wrapper to preserve
22325         flag_var_tracking_assignments.
22326         * Makefile.in (var-tracking.o): Adjust dependencies.
22327
22328 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
22329             Jakub Jelinek  <jakub@redhat.com>
22330
22331         PR target/42854
22332         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
22333         if weak_import attribute is present.
22334         * config/darwin.c (machopic_select_section): Likewise.
22335
22336 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
22337
22338         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
22339         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
22340         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
22341         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
22342
22343         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
22344         types.
22345
22346         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22347         Fix argument types.
22348
22349         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
22350         Rewrite text to refer to the names.
22351
22352 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
22353
22354         * config/i386/i386-builtin-types.def
22355         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
22356         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
22357         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
22358         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
22359         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
22360         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
22361         IX86_BUILTIN_VPERMIL2PS256.
22362         (MULTI_ARG_4_DF2_DI_I): Defined.
22363         (MULTI_ARG_4_DF2_DI_I1): Defined.
22364         (MULTI_ARG_4_SF2_SI_I): Defined.
22365         (MULTI_ARG_4_SF2_SI_I1): Defined.
22366         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
22367         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
22368         __builtin_ia32_vpermil2ps256.
22369         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22370         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22371         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
22372         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22373         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22374         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
22375         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
22376         CODE_FOR_xop_vpermil2v8sf3.
22377         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
22378         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
22379         * config/i386/xopintrin.h (_mm_permute2_pd): New.
22380         (_mm256_permute2_pd): New.
22381         (_mm_permute2_ps): New.
22382         (_mm256_permute2_ps): New.
22383
22384 2010-02-15  Nick Clifton  <nickc@redhat.com>
22385
22386         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
22387         boolean parameters.  Use emit_jump_insn when emitting a pop
22388         instruction containing a return insn.
22389         (push): Use 'true' rather than '1' as second parameter to F.
22390         (h8300_expand_prologue): Likewise.
22391         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
22392         (h8300_expand_epilogue): Likewise.
22393
22394 2010-02-15  Richard Guenther  <rguenther@suse.de>
22395
22396         PR middle-end/43068
22397         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
22398         if that is zero.
22399
22400 2010-02-15  Nick Clifton  <nickc@redhat.com>
22401
22402         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
22403         delta.
22404
22405 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
22406
22407         * intl.c (fake_ngettext): New function.
22408         * intl.h (fake_ngettext): Declare.
22409         (ngettext): Define macro.
22410         * collect2.c (notice_translated): New function.
22411         (main): Use notice_translated and ngettext.
22412         * collect2.h (notice_translated): Declare.
22413
22414 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
22415
22416         * reorg.c (delete_computation): Comment fixes.
22417         * caller-save.c (setup_save_areas): Idem.
22418         * sel-sched-dump.c (dump_lv_set): Idem.
22419         * rtl.def: Idem.
22420
22421 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22422
22423         * config/s390/s390.c (s390_sched_init): New function.
22424         (TARGET_SCHED_INIT): Target hook defined.
22425
22426 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
22427             Jack Howarth  <howarth@bromo.med.uc.edu>
22428             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
22429
22430         PR target/42982
22431         Partial revert of unintended change in fix for PR41605.
22432         * config/darwin.h: Fix typo.
22433         * config/darwin9.h: Same.
22434
22435 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22436
22437         * c-pch.c (pch_init): Clear v.
22438
22439 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22440
22441         PR middle-end/42930
22442         * graphite-scop-detection.c (graphite_can_represent_scev): Call
22443         graphite_can_represent_init for MULT_EXPR.
22444
22445 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22446
22447         PR middle-end/42914
22448         PR middle-end/42530
22449         * graphite-sese-to-poly.c (remove_phi): New.
22450         (translate_scalar_reduction_to_array): Call remove_phi.
22451
22452 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22453
22454         PR middle-end/42771
22455         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
22456         * graphite-clast-to-gimple.h (gloog): Update declaration.
22457         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
22458         * graphite-poly.h (struct poly_bb): Add missing comments.
22459         (struct scop): Add poly_scop_p field.
22460         (POLY_SCOP_P): New.
22461         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
22462         * graphite.c (graphite_transform_loops): Build the polyhedral
22463         representation for each scop before code generation.
22464         * sese.c (rename_variables_in_operand): Removed.
22465         (rename_variables_in_expr): Return the renamed expression.
22466         (rename_sese_parameters): New.
22467         * sese.h (rename_sese_parameters): Declared.
22468
22469 2010-02-11  Richard Guenther  <rguenther@suse.de>
22470
22471         PR tree-optimization/42998
22472         * tree-ssa-pre.c (create_expression_by_pieces): Treat
22473         POINTER_PLUS_EXPR properly.
22474
22475 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22476             Changpeng Fang  <changpeng.fang@amd.com>
22477
22478         PR middle-end/40886
22479         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
22480         the cost of an IV candidate when the IV is used in a test against zero.
22481
22482         * gcc.dg/tree-ssa/ivopts-3.c: New.
22483
22484 2010-02-11  Richard Guenther  <rguenther@suse.de>
22485
22486         PR lto/41664
22487         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
22488         pointer-vs-decl case by swapping refs.  Handle some cases
22489         of pointer-vs-decl disambiguations more conservatively.
22490         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
22491         to false after expanding.
22492
22493 2010-02-11  Richard Guenther  <rguenther@suse.de>
22494
22495         PR driver/43021
22496         * gcc.c (process_command): Handle LTO file@offset case more
22497         appropriately.
22498
22499 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22500
22501         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
22502         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
22503         of DEBUG_INSNs.
22504         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
22505
22506         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
22507         if MEM's mode size isn't DWARF2_ADDR_SIZE.
22508         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
22509         Optimize eq/ne comparisons when both arguments are known to be
22510         zero-extended.
22511         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
22512         Don't mask operands unnecessarily if they are known to be already
22513         zero-extended.
22514
22515 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22516
22517         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
22518         instead of loop.
22519
22520 2010-02-10  Richard Guenther  <rguenther@suse.de>
22521
22522         PR tree-optimization/43017
22523         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
22524         for wrapping signed arithmetic.
22525
22526 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22527
22528         PR debug/43010
22529         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
22530         if no debug info should be emitted for it.
22531
22532 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22533
22534         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
22535         note when flag_exceptions is set.
22536
22537 2010-02-10  Duncan Sands  <baldrick@free.fr>
22538
22539         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
22540
22541 2010-02-10  Richard Guenther  <rguenther@suse.de>
22542
22543         PR c/43007
22544         * tree.c (get_unwidened): Handle constants.
22545         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
22546
22547 2010-02-10  Martin Jambor  <mjambor@suse.cz>
22548
22549         PR lto/42985
22550         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
22551         check for variable argument counts independently.
22552
22553 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22554
22555         PR target/42841
22556         * config/sh/sh.c (find_barrier): Increase length for non delayed
22557         conditional branches.
22558
22559 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22560
22561         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
22562
22563 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22564
22565         * builtins.c (set_builtin_user_assembler_name): Also handle
22566         ffs if int is smaller than word.
22567
22568 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
22569
22570         PR middle-end/42973
22571         * ira-conflicts.c (get_dup): Remove.
22572         (process_reg_shuffles): Add new parameter.  Use it as an
22573         additional guard for copy generation.
22574         (add_insn_allocno_copies): Rewrite.
22575
22576 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
22577
22578         * common.opt (fsched2-use-traces): Preserved for backward
22579         compatibility.
22580         * doc/invoke.texi: Remove the documentation about option
22581         -fsched2-use-traces.
22582         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
22583         flag_sched2_use_traces.
22584         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
22585         the backward compatibility flag section.
22586
22587 2010-02-09  Richard Guenther  <rguenther@suse.de>
22588
22589         PR tree-optimization/43008
22590         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
22591         make HEAP variables initialized from global memory if they
22592         are not known builtin functions.
22593         (find_func_aliases): Adjust.
22594
22595 2010-02-09  Richard Guenther  <rguenther@suse.de>
22596
22597         PR tree-optimization/43000
22598         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
22599         arithmetic manually.
22600
22601 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
22602
22603         PR tree-optimization/42931
22604         * tree-loop-linear.c (try_interchange_loops): Don't call
22605         double_int_mul if estimated_loop_iterations failed.
22606
22607 2010-02-08  Martin Jambor  <mjambor@suse.cz>
22608
22609         PR middle-end/42898
22610         * tree-sra.c (build_accesses_from_assign): Do not mark in
22611         should_scalarize_away_bitmap if stmt has volatile ops.
22612         (sra_modify_assign): Do not process assigns piecemeal if if stmt
22613         has volatile ops.
22614
22615 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
22616
22617         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
22618
22619 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
22620
22621         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
22622         before the pattern.
22623
22624 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
22625
22626         PR middle-end/42946
22627         * df-core.c (df_finish_pass): Change type of saved_flags to int.
22628
22629 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22630
22631         PR middle-end/42988
22632         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
22633         to unknown_dependence.
22634         (graphite_legal_transform_dr): Handle the unknown_dependence.
22635         (graphite_carried_dependence_level_k): Same.
22636
22637 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22638
22639         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
22640
22641 2010-02-07  Richard Guenther  <rguenther@suse.de>
22642
22643         PR middle-end/42991
22644         * expr.c (get_inner_reference): Always initialize *pbitsize.
22645
22646 2010-02-07  Richard Guenther  <rguenther@suse.de>
22647
22648         PR middle-end/42956
22649         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22650         new ARRAY_REFs on variable size element or minimal index arrays.
22651         Complete.
22652         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22653         gimple_fold_indirect_ref.
22654
22655 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
22656
22657         PR target/42957
22658         * arm.c (arm_override_options): Just return if the user has specified
22659         an invalid fpu name.
22660
22661 2010-02-03  Jason Merrill  <jason@redhat.com>
22662
22663         PR c++/42870
22664         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22665         i386_pe_maybe_record_exported_symbol.
22666
22667 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
22668
22669         PR target/42924
22670         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22671         (pa_delegitimize_address): New function.
22672
22673 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
22674
22675         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22676         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22677
22678 2010-02-05  Richard Guenther  <rguenther@suse.de>
22679
22680         PR lto/42762
22681         * lto-streamer-in.c (get_resolution): Deal with references
22682         to undefined functions.
22683
22684 2010-02-05  Richard Guenther  <rguenther@suse.de>
22685
22686         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22687         (fold_const_aggregate_ref): Likewise.
22688         (ccp_fold_stmt): Substitute loads.
22689         (maybe_fold_reference): Verify types before substituting.
22690         Unshare properly.
22691         (fold_gimple_assign): Unshare properly.
22692         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22693
22694 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
22695
22696         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22697         for rs6000_gen_cell_microcode.
22698
22699 2010-02-04  Richard Guenther  <rguenther@suse.de>
22700
22701         PR rtl-optimization/42952
22702         * dse.c (const_or_frame_p): Remove MEM handling.
22703
22704 2010-02-04  Nick Clifton  <nickc@redhat.com>
22705
22706         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22707         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22708         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22709         (mn10300_asm_output_mi_thunk): New function.
22710         (mn10300_can_output_mu_thunk): New function.
22711         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22712         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
22713         (FUNCTION_ARG): Delete incorrect comment.
22714
22715 2010-02-03  Jason Merrill  <jason@redhat.com>
22716
22717         PR c++/40138
22718         * fold-const.c (operand_equal_p): Handle erroneous types.
22719
22720 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22721
22722         * config/h8300/h8300.md (can_delay): Fix attibute condition.
22723
22724 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22725
22726         PR rtl-optimization/42941
22727         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22728         of xmalloc.
22729
22730 2010-02-03  Jason Merrill  <jason@redhat.com>
22731
22732         PR c++/35652
22733         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22734
22735 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
22736
22737         PR debug/42896
22738         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
22739         (cselib_reset_table): Renamed from...
22740         (cselib_reset_table_with_next_value): ... this.
22741         (cselib_get_next_uid): Renamed from...
22742         (cselib_get_next_unknown_value): ... this.
22743         * cselib.c (next_uid): Renamed from...
22744         (next_unknown_value): ... this.
22745         (cselib_clear_table): Adjust.
22746         (cselib_reset_table): Adjust.  Renamed from...
22747         (cselib_reset_table_with_next_value): ... this.
22748         (cselib_get_next_uid): Adjust.  Renamed from...
22749         (cselib_get_next_unknown_value): ... this.
22750         (get_value_hash): Use hash.
22751         (cselib_hash_rtx): Likewise.
22752         (new_cselib_val): Adjust.  Set and dump uid.
22753         (cselib_lookup_mem): Pass next_uid as hash.
22754         (cselib_subst_to_values): Likewise.
22755         (cselib_log_lookup): Dump uid.
22756         (cselib_lookup): Pass next_uid as hash.  Adjust.
22757         (cselib_process_insn): Adjust.
22758         (cselib_init): Initialize next_uid.
22759         (cselib_finish): Adjust.
22760         (dump_cselib_table): Likewise.
22761         * dse.c (canon_address): Dump value uid.
22762         * print-rtl.c (print_rtx): Print value uid.
22763         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22764         (dvuid): New type.
22765         (dv_uid): New function, sort of renamed from...
22766         (dv_htab_hash): ... this, reimplemented in terms of it and...
22767         (dv_uid2hash): ... this.  New.
22768         (variable_htab_eq): Drop excess assertions.
22769         (tie_break_pointers): Removed.
22770         (canon_value_cmp): Compare uids.
22771         (variable_post_merge_New_vals): Print uids.
22772         (vt_add_function_parameters): Adjust.
22773         (vt_initialize): Reset table.  Adjust.
22774
22775 2010-02-03  Richard Guenther  <rguenther@suse.de>
22776
22777         PR tree-optimization/42944
22778         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22779         (call_may_clobber_ref_p_1): Likewise.  Properly handle
22780         malloc and calloc clobbering errno.
22781
22782 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
22783
22784         * doc/invoke.texi: Fix name of sched1 dump.
22785
22786         * opts.c (decode_options): Set flag_tree_switch_conversion
22787         only conditionally on optimize >= 2.
22788
22789         * gcse.c: Assorted comment fixes in pass description.
22790
22791 2010-02-03  Anthony Green  <green@moxielogic.com>
22792
22793         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22794         nop padding in order to maintain alignment of storage location of
22795         target function address.
22796         (moxie_trampoline_init): Store target function address at newly
22797         aligned location.
22798         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22799         to 32.
22800         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22801
22802 2010-02-03  Richard Guenther  <rguenther@suse.de>
22803
22804         PR middle-end/42927
22805         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22806
22807 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22808
22809         * config.gcc: Reenable check for obsolete targets.
22810         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22811         mips-sgi-irix6.[0-4]*.
22812
22813 2010-02-02  Nick Clifton  <nickc@redhat.com>
22814
22815         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22816         constant size of 4 as being the same as 0.
22817         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22818         can take values in the range 0..4.
22819
22820 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22821
22822         PR java/41991
22823         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22824         as _darwin10_Unwind_FindEnclosingFunction().
22825         * libgcc-libsystem.ver: New.
22826
22827 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22828
22829         PR target/41399
22830         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22831         implicitly set registers.
22832
22833 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22834
22835         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22836         (arm_override_options): Allow automatic selection of the thread
22837         pointer register if thumb2.
22838         (legitimize_pic_address): Improve code sequences for Thumb2.
22839         (arm_call_tls_get_addr): Likewise.
22840         (legitimize_tls_address): Likewise.
22841         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22842         (pic_load_addr_32bit): ... this.  New named pattern.
22843         * thumb2.md (pic_load_addr_thumb2): Delete.
22844         (pic_load_dot_plus_four): Delete.
22845         (tls_load_dot_plus_four): New named pattern.
22846
22847 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22848
22849         PR libgomp/29986
22850         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22851         Document fix for TLS bug.
22852
22853 2010-01-31  Richard Guenther  <rguenther@suse.de>
22854
22855         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22856         conservatively correct.
22857
22858 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22859
22860         PR target/42850
22861         Revert:
22862         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22863
22864         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22865
22866 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22867
22868         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22869
22870 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22871
22872         * config.gcc: Adjust order of makefile fragments for mingw targets.
22873
22874 2010-01-31  Richard Guenther  <rguenther@suse.de>
22875
22876         PR middle-end/42898
22877         * gimplify.c (gimplify_init_constructor): For volatile LHS
22878         initialize a temporary.
22879
22880 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22881
22882         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22883         --with-headers
22884         * configure: Regenerate.
22885
22886 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22887
22888         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22889         the same alias set and their sizes different constantness.
22890         (aliasing_component_refs_p): Revert 2009-10-24 change.
22891
22892 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22893
22894         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22895         unused.
22896
22897 2010-01-29  Richard Guenther  <rguenther@suse.de>
22898
22899         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22900         Assert we successfully updated the call.
22901
22902 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22903
22904         PR rtl-optimization/42889
22905         * df.h (df_set_bb_dirty_nonlr): New prototype.
22906         * df-core.c (df_set_bb_dirty_nonlr): New function.
22907         * df-scan.c (df_insn_rescan): Call it instead of
22908         df_set_bb_dirty for DEBUG_INSNs.
22909
22910 2010-01-29  Richard Guenther  <rguenther@suse.de>
22911
22912         PR middle-end/37448
22913         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22914         quadratic behavior in most cases.
22915
22916 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22917
22918         PR target/42891
22919         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22920         in the call to gen_x86_movsicc_0_m1.
22921
22922 2010-01-28  Richard Guenther  <rguenther@suse.de>
22923
22924         PR tree-optimization/42871
22925         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22926
22927 2010-01-28  Richard Guenther  <rguenther@suse.de>
22928
22929         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22930         into call arguments.
22931
22932 2010-01-28  Richard Guenther  <rguenther@suse.de>
22933
22934         PR middle-end/42883
22935         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22936         the forwarder if the destination is an EH landing pad.
22937
22938 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22939
22940         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22941         block list passed to gimple_duplicate_sese_tail.
22942         (parallelize_loops): Avoid parallelization when the function
22943         has_nonlocal_label.
22944         Avoid parallelization when the preheader is IRREDUCIBLE.
22945         Try to optimize when estimated_loop_iterations_int is unresolved.
22946         Add the loop's location to the dump file.
22947         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22948         (gimple_duplicate_sese_tail): Remove the check for the latch.
22949         Redirect nexits to the exit block.
22950         Remove handling of the incoming edges to the latch.
22951         Redirect the backedge from the copied latch to the exit bb.
22952
22953 2010-01-28  Michael Matz  <matz@suse.de>
22954
22955         PR target/42881
22956         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22957         Wrap force_reg into a sequence, emit it before user.
22958
22959 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22960
22961         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22962         (arm_rev): New.
22963         (arm_legacy_rev): Likewise.
22964         (thumb_legacy_rev): Likewise.
22965
22966 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22967
22968         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22969         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22970         on MEM's address failed, try avoid_constant_pool_reference and
22971         recurse if it returned something different.
22972         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22973         address, try avoid_constant_pool_reference and recurse if it
22974         returned something different.
22975         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22976         address and avoid_constant_pool_reference returned something
22977         different, don't set have_address.
22978
22979 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22980
22981         PR debug/42861
22982         * var-tracking.c (val_store): Add modified argument, obey it.
22983         Adjust callers.
22984         (count_uses): Move down logging of main.
22985         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22986         don't need resolution.
22987         (emit_notes_in_bb): Likewise.
22988
22989 2010-01-27  Richard Guenther  <rguenther@suse.de>
22990
22991         PR middle-end/42878
22992         * tree-inline.c (remap_decl): Delay remapping of SSA name
22993         default definitions until we need them.
22994
22995 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22996
22997         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22998         (rs6000_delegitimize_address): New function.
22999
23000         * config/s390/s390.c (s390_delegitimize_address): Call
23001         delegitimize_mem_from_attrs.
23002
23003         PR middle-end/42874
23004         * tree-inline.c (cannot_copy_type_1): Removed.
23005         (copy_forbidden): Don't forbid copying of functions containing
23006         records/unions with variable length fields.
23007
23008 2010-01-27  Christian Bruel  <christian.bruel@st.com>
23009
23010         Revert:
23011         PR target/42841
23012         * config/sh/sh.c (find_barrier): Increase length for non delayed
23013         conditional branches.
23014
23015 2010-01-27  Matthias Klose  <doko@ubuntu.com>
23016
23017         * configure.ac (gnu-unique-object): Fix ldd version check.
23018         * configure: Regenerate.
23019
23020 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23021
23022         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
23023         HAVE_GNU_AS value.
23024         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
23025         Test for HAVE_GNU_AS value.
23026
23027 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23028
23029         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
23030         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
23031         INT64_TYPE): Define.
23032         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
23033         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23034         INT_LEAST64_TYPE): Define.
23035         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
23036         UINT_LEAST64_TYPE): Define.
23037         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
23038         INT_FAST64_TYPE): Define.
23039         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23040         UINT_FAST64_TYPE): Define.
23041         (INTMAX_TYPE, UINTMAX_TYPE): Define.
23042         (INTPTR_TYPE, UINTPTR_TYPE): Define.
23043         (SIG_ATOMIC_TYPE): Define.
23044
23045 2010-01-26  Richard Guenther  <rguenther@suse.de>
23046
23047         * df-scan.c (df_scan_set_bb_info): Remove assert.
23048         (df_insn_rescan_debug_internal): Merge asserts.
23049         (df_install_ref): Likewise.
23050         (df_mark_reg): Use bitmap_set_range.
23051         (df_hard_reg_used_p): Remove assert.
23052         (df_hard_reg_used_count): Likewise.
23053
23054 2010-01-26  Richard Guenther  <rguenther@suse.de>
23055
23056         PR rtl-optimization/42685
23057         * web.c (web_main): Ignore DEBUG_INSNs.
23058
23059 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
23060
23061         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
23062
23063         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
23064         Fix types of fndecl and arglist parameters.
23065
23066 2010-01-26  Richard Guenther  <rguenther@suse.de>
23067
23068         PR middle-end/42806
23069         * tree-eh.c (unsplit_eh): Skip debug insns.
23070
23071 2010-01-26  Richard Guenther  <rguenther@suse.de>
23072
23073         PR tree-optimization/42250
23074         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
23075
23076 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
23077
23078         PR fortran/42866
23079         * omp-low.c (expand_omp_sections): Only use single_pred if
23080         l2_bb is single_pred_p.
23081
23082 2010-01-25  Christian Bruel  <christian.bruel@st.com>
23083
23084         PR target/42841
23085         * config/sh/sh.c (find_barrier): Increase length for non delayed
23086         conditional branches.
23087         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
23088
23089 2010-01-24  David S. Miller  <davem@davemloft.net>
23090
23091         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
23092         define if not using GAS.
23093         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23094         Likewise.  Delete SECTION_MERGE code, which is only applicable
23095         when using GAS.
23096
23097 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
23098
23099         PR c++/42748
23100         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
23101         mangling of va_list in system headers.
23102
23103 2010-01-23  Toon Moene  <toon@moene.org>
23104
23105         * tree-predcom.c (combine_chains): Return NULL, not false.
23106
23107 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
23108
23109         * tree-loop-distribution.c (distribute_loop): Fix declaration and
23110         initialization of variable res to agree with return type.
23111
23112 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
23113
23114         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
23115         * tree-sra.c: Add include of expr.h.
23116
23117 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
23118
23119         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
23120         insert the debug stmt on the single non-EH edge from the stmt.
23121
23122 2010-01-22  Richard Henderson  <rth@redhat.com>
23123
23124         PR tree-opt/42833
23125         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
23126         the RHS until after generate_subtree_copies has insertted its
23127         code before the current statement.
23128
23129 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
23130
23131         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
23132
23133         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
23134
23135 2010-01-21  Martin Jambor  <mjambor@suse.cz>
23136
23137         PR tree-optimization/42585
23138         * tree-sra.c (struct access): New field grp_total_scalarization.
23139         (dump_access): Dump the new field.
23140         (should_scalarize_away_bitmap): New variable.
23141         (cannot_scalarize_away_bitmap): Likewise.
23142         (sra_initialize): Allocate new bitmaps.
23143         (sra_deinitialize): Free new bitmaps.
23144         (create_access_1): New function.
23145         (create_access): Parts moved to create_access_1.
23146         (type_consists_of_records_p): New function.
23147         (completely_scalarize_record): Likewise.
23148         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
23149         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
23150         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
23151         access.
23152         (analyze_all_variable_accesses): Completely scalarize small eligible
23153         records.
23154
23155 2010-01-21  Martin Jambor  <mjambor@suse.cz>
23156
23157         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
23158
23159 2010-01-21  Andrew Haley  <aph@redhat.com>
23160
23161         * gcc.c (process_command): Move lang_specific_driver before
23162         setting cc_libexec_prefix.
23163
23164 2010-01-21  Richard Guenther  <rguenther@suse.de>
23165
23166         PR middle-end/19988
23167         * fold-const.c (negate_expr_p): Pretend only negative
23168         real constants are easily negatable.
23169
23170 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
23171             Jason Merrill  <jason@redhat.com>
23172
23173         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
23174         (TYPE_TRANSPARENT_AGGR): this, for union and record.
23175         * calls.c (initialize argument_information): Handle it.
23176         * c-common.c (handle_transparent_union_attribute): Use new name.
23177         * c-decl.c (finish_struct): Ditto.
23178         * c-typeck.c (type_lists_compatible_p): Ditto.
23179         (convert_for_assignment): Use new name and also handle record.
23180         * function.c (aggregate_value_p): Handle it.
23181         (pass_by_reference): Ditto.
23182         (assign_parm_data_types): Ditto.
23183         * print-tree.c (print_node): Ditto.
23184         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
23185         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
23186         * tree.c (first_field): New fn.
23187
23188 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
23189
23190         PR target/42818
23191         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
23192         even when linking statically, for now.
23193
23194 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
23195
23196         PR debug/42715
23197         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
23198         without a cselib val.
23199         (count_uses): Accept MO_VAL_SET with no val on stores.
23200         (add_stores): Likewise.
23201
23202 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23203
23204         * var-tracking.c (check_value_val): Add a compile time assertion.
23205         (dv_is_decl_p): Simplify.
23206         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
23207         gcc_assert if ENABLE_CHECKING.
23208
23209 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
23210
23211         PR debug/42782
23212         * var-tracking.c: Include tree-flow.h.
23213         (mem_dies_at_call): New.
23214         (dataflow_set_preserve_mem_locs): Use it.
23215         (dataflow_set_remove_mem_locs): Likewise.
23216         (dump_var): Renamed from dump_variable.  Adjust all callers.
23217         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
23218         * Makefile.in (var-tracking.o): Adjust deps.
23219
23220 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
23221
23222         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
23223
23224 2010-01-20  Richard Guenther  <rguenther@suse.de>
23225
23226         PR tree-optimization/42717
23227         * tree-ssa-dce.c (get_live_post_dom): Remove.
23228         (forward_edge_to_pdom): Take an arbitrary edge to copy
23229         degenerate PHI args from.
23230         (remove_dead_stmt): Use the first post-dominator even if it
23231         does not contain live statements as redirection destination.
23232
23233 2010-01-20  Richard Guenther  <rguenther@suse.de>
23234
23235         * tree-inline.c (estimate_num_insns): Handle EH builtins.
23236
23237 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23238
23239         * sel-sched.c (create_speculation_check): Remove set but not used
23240         variable twin.
23241         (try_transformation_cache): Remove set but not used variable ds.
23242         (calculate_privileged_insns): Remove set but not used variables
23243         cur_insn and min_spec_insn.
23244         (find_best_expr): Remove set but not used variable avail_n.
23245         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
23246         variable e.
23247         * cgraphunit.c (assemble_thunk): Remove set but not used variable
23248         false_label.
23249         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
23250         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
23251         new_scop_exit_edge.
23252
23253 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
23254
23255         PR bootstrap/42786
23256         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
23257         cpu types.  Add support for *-sse3 cpu types.
23258         (x86_64-*-*): Ditto.
23259
23260 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23261
23262         PR middle-end/42803
23263         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
23264         argument, call initializer_constant_valid_p_1 instead of
23265         initializer_constant_valid_p, pass CACHE to it, return NULL
23266         immediately if first call returns NULL.
23267         (initializer_constant_valid_p_1): New function.
23268         (initializer_constant_valid_p): Use it.
23269
23270 2010-01-20  Thomas Quinot  <quinot@adacore.com>
23271
23272         * tree.def (PLACEHOLDER_EXPR): Fix comment.
23273
23274 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23275
23276         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
23277         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
23278         (loc_list_from_tree): Don't handle unsigned division.  Handle
23279         signed modulo using DW_OP_{over,over,div,mul,minus}.
23280         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
23281         modulo instead of signed.
23282
23283 2010-01-20  DJ Delorie  <dj@redhat.com>
23284
23285         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
23286         (Fpa): Pass it
23287         (h8300_emit_stack_adjustment): Propogate it.
23288         (push): Pass it.
23289         (h8300_expand_prologue): Likewise.
23290         (h8300_expand_epilogue): Likewise.
23291
23292 2010-01-19  Michael Matz  <matz@suse.de>
23293
23294         PR tree-optimization/41783
23295         * tree-data-ref.c (toplevel): Include flags.h.
23296         (dump_data_dependence_relation):  Also dump the inputs if the
23297         result will be unknown.
23298         (split_constant_offset_1): Look through some conversions.
23299         * tree-predcom.c (determine_roots_comp): Restart a new chain if
23300         the offset from last element is too large.
23301         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
23302         (reassociate_to_the_same_stmt): Handle vector registers.
23303         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
23304         (e.g. conversions).
23305         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
23306         wide_prolog_niters argument, emit widening instructions.
23307         (vect_do_peeling_for_alignment): Adjust caller, use widened
23308         variant of the iteration cound.
23309         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
23310
23311 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23312
23313         PR target/38697
23314         * config/arm/neon-testgen.m (emit_automatics): New parameter
23315         features. Adjust for Fixed_return_reg feature.
23316         (test_intrinsic): Call emit_automatics with new feature.
23317         * config/arm/neon.ml: Update copyright years.
23318         (features): New Fixed_return_reg feature.
23319         (ops): Update feature for Vget_low.
23320
23321 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
23322
23323         PR tree-optimization/42719
23324         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
23325         stmt uses.
23326
23327         PR debug/42728
23328         * fwprop.c (all_uses_available_at): Return false if def_set dest
23329         is a REG that is used in def_insn.
23330
23331 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
23332
23333         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
23334
23335         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
23336         Add argument names.
23337
23338         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
23339
23340         * target.h (struct gcc_target) <secondary_reload>: Change type
23341         of last argument to secondary_reload_info *.
23342
23343 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
23344
23345         PR target/42774
23346         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
23347         memory references with unaligned offsets.  Remove CQImode handling.
23348         (unaligned_memory_operand): Return 1 for memory references with
23349         unaligned offsets.  Remove CQImode handling.
23350
23351 2010-01-18  Richard Guenther  <rguenther@suse.de>
23352
23353         PR middle-end/39954
23354         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
23355         builtin calls.
23356
23357 2010-01-18  Richard Guenther  <rguenther@suse.de>
23358
23359         PR tree-optimization/42781
23360         * tree-ssa-structalias.c (find_what_var_points_to): Skip
23361         restrict processing only if the original variable was artificial.
23362
23363 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
23364
23365         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
23366         find number of popped argument bytes.
23367
23368         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
23369         Fix the text that describes the return value for invalid insns.
23370
23371         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
23372
23373         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
23374         Clarify what 'cost of the -dependence' is.  Fix quoting.
23375
23376         * toplev.c (default_get_pch_validity): Rename argument to "sz".
23377         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
23378
23379 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
23380
23381         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
23382         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
23383
23384 2010-01-17  Richard Guenther  <rguenther@suse.de>
23385
23386         PR middle-end/42248
23387         * function.c (split_complex_args): Take a VEC to modify.
23388         (assign_parms_augmented_arg_list): Build a VEC instead of
23389         a chain of PARM_DECLs.
23390         (assign_parms_unsplit_complex): Take a VEC of arguments.
23391         Do not fixup unmodified parms.
23392         (assign_parms): Deal with the VEC.
23393         (gimplify_parameters): Likewise.
23394
23395 2010-01-17  Richard Guenther  <rguenther@suse.de>
23396
23397         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
23398         node existence check.
23399         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
23400         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
23401         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
23402         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
23403         (gimple_execute_on_growing_pred): Likewise.
23404
23405 2010-01-17  Richard Guenther  <rguenther@suse.de>
23406
23407         PR tree-optimization/42773
23408         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
23409         (compute_antic_aux): Likewise.
23410         (compute_partial_antic_aux): Likewise.
23411
23412 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
23413
23414         PR debug/42767
23415         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
23416         and US_TRUNCATE.
23417
23418 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
23419
23420         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
23421         appearance.
23422
23423         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
23424         Fix markup for strict argument.
23425
23426         (TARGET_SCHED_REORDER2): Fix argument types.
23427
23428         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
23429         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
23430
23431         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
23432         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
23433
23434         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
23435         Add argument name.
23436
23437         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
23438         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
23439         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
23440         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
23441         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
23442
23443         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
23444
23445         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
23446
23447         (TARGET_ASM_RELOC_RW_MASK): Add return type.
23448         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
23449
23450         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
23451
23452         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
23453         Use prototype.
23454
23455         (TARGET_ASM_NAMED_SECTION): Fix argument list.
23456
23457         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
23458         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
23459
23460         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
23461
23462         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
23463
23464         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
23465         referring to it.  Fix language.
23466
23467         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
23468
23469         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
23470
23471         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
23472
23473         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
23474
23475         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
23476         '@var{stream}.  Remove stray 'and'.
23477
23478         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
23479
23480         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
23481
23482         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
23483
23484         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
23485         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
23486
23487         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
23488         Fix description of return value.
23489         Rename argument "sz" to "len."
23490
23491         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
23492         Clarify meaning of 'true' return value.
23493
23494         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
23495
23496         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
23497         rep_mode versus mode_rep.
23498
23499         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
23500
23501         (TARGET_BUILTIN_DECL): Fix name.
23502
23503         (TARGET_COMMUTATIVE_P): Fix type of first argument.
23504
23505         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
23506
23507         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
23508
23509         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
23510
23511         (TARGET_RELAXED_ORDERING): Use @deftypevr.
23512
23513         (TARGET_GET_DRAP_RTX): Note that this is a hook.
23514         Clarify language.
23515
23516         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
23517         Rename argument tm_fn to md_fn.
23518
23519         (TARGET_OPTION_PRINT): Fix argument list.
23520
23521 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
23522
23523         PR target/42664
23524         * config/i386/i386.c (ix86_fixup_binary_operands):
23525         Revert FMA4 fixup of operands.
23526
23527 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23528
23529         PR gcc/42525
23530         * Makefile.in (write_entries_to_file, install-plugin):
23531         Use \012 instead of \n with tr.
23532
23533 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
23534
23535         * configure.ac (HAVE_AS_REF): New C macro.
23536         * configure: Regenerate.
23537         * config.in: Likewise.
23538         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
23539         if HAVE_AS_REF.
23540         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
23541         if HAVE_AS_REF.
23542
23543 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
23544
23545         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
23546
23547         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23548
23549         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
23550
23551         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
23552
23553         (TARGET_IN_SMALL_DATA_P): Fix argument type.
23554
23555         (TARGET_BINDS_LOCAL_P): Fix argument type.
23556
23557         (TARGET_ASM_FILE_END): Use prototype.
23558
23559         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
23560
23561         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
23562
23563         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
23564
23565         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
23566
23567         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
23568         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
23569
23570         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
23571         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
23572
23573         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
23574         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
23575         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
23576         (TARGET_ADDR_SPACE_CONVERT): Likewise.
23577
23578         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
23579
23580         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
23581
23582         (TARGET_INIT_BUILTINS): Use prototype.
23583
23584         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
23585         Put 'const char *' in braces.  Fix parameter types.
23586         (TARGET_INVALID_CONVERSION): Fix parameter types.
23587         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
23588         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
23589
23590         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
23591         Fix argument type.
23592
23593         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
23594
23595         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
23596
23597 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
23598
23599         * doc/tm.texi (TARGET_HELP): Fix return type.
23600
23601         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
23602         in braces.  Fix argument types.
23603
23604         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
23605
23606         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
23607
23608         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
23609
23610         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
23611         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
23612
23613         (TARGET_MANGLE_TYPE): Fix argument types.
23614
23615         (TARGET_IRA_COVER_CLASSES): Use prototype.
23616
23617         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
23618
23619         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
23620
23621         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
23622
23623         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
23624
23625         (TARGET_CALLEE_COPIES): Fix argument types.
23626
23627         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
23628
23629         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
23630
23631         (TARGET_FUNCTION_VALUE): Fix argument types.
23632
23633         (TARGET_RETURN_IN_MSB): Fix argument type.
23634
23635         (TARGET_RETURN_IN_MEMORY): Fix argument types.
23636
23637         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
23638
23639         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
23640
23641         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
23642         agree with return type.
23643
23644         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23645
23646 2010-01-15  Jing Yu  <jingyu@google.com>
23647
23648         PR rtl-optimization/42691
23649         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23650         a pseudo to a constant and are merged, and adjust comments.
23651
23652 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23653
23654         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23655
23656 2010-01-15  Richard Guenther  <rguenther@suse.de>
23657
23658         PR middle-end/42739
23659         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23660         labels of computed or non-local gotos to the destination.
23661         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23662         landing pad label is the first label.
23663
23664 2010-01-15  Richard Guenther  <rguenther@suse.de>
23665
23666         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23667
23668 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23669
23670         PR target/42747
23671         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23672         to allow generation of the xssqrtdp instruction on power7.
23673         (sqrtdf2_fpr): Ditto.
23674
23675 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23676
23677         PR middle-end/42674
23678         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23679         functions with noreturn attribute.
23680
23681         PR c++/42608
23682         * varasm.c (declare_weak): Add weak attribute to decl if it
23683         doesn't have one already.
23684         (assemble_external): Only add decls to weak_decls if they also
23685         have weak attribute.
23686
23687 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
23688
23689         * var-tracking.c (var_reg_delete): Don't delete the association
23690         between REGs and values or one-part variables if the register
23691         isn't clobbered.
23692
23693 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23694
23695         PR debug/42657
23696         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23697         because its first operand is a non-localized variable.
23698
23699 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23700
23701         PR tree-optimization/42706
23702         * tree-sra.c (encountered_recursive_call): New variable.
23703         (encountered_unchangable_recursive_call): Likewise.
23704         (sra_initialize): Initialize both new variables.
23705         (callsite_has_enough_arguments_p): New function.
23706         (scan_function): Call decl and flags check only for IPA-SRA, check
23707         whether there is a recursive call and whether it has enough arguments.
23708         (all_callers_have_enough_arguments_p): New function.
23709         (convert_callers): Look for recursive calls only when
23710         encountered_recursive_call is set.
23711         (ipa_early_sra): Bail out either if
23712         !all_callers_have_enough_arguments_p or
23713         encountered_unchangable_recursive_call.
23714
23715 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23716
23717         * sel-sched.c: Add 2010 to copyright years.
23718         * sel-sched-ir.c: Likewise.
23719         * sel-sched-ir.h: Likewise.
23720
23721 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23722
23723         PR tree-optimization/42714
23724         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23725         constructors specially.
23726
23727 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23728
23729         * config/i386/drivers-i386.c (detect_caches_intel):
23730         Add l2sizekb parameter and fill in.
23731         (host_detect_local_cpu): Add l2sizekb, fill in.
23732         Add Atom small cache heuristic.
23733
23734 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23735
23736         * config/i386/drivers-i386.c (detect_caches_cpuid4):
23737         Add level3 parameter and fill in.
23738         (detect_caches_intel): Handle level3 cache.
23739
23740 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23741
23742         * config/i386/drivers-i386.c (host_detect_local_cpu):
23743         Fix core duo detection.
23744
23745 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23746
23747         * config/i386/drivers-i386.c (host_detect_local_cpu):
23748         Fix Atom detection.
23749
23750 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23751
23752         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23753         (rs6000_variable_issue_1): this.  Use...
23754         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
23755
23756 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23757
23758         * sel-sched-ir.c (sel_restore_other_notes): Rename to
23759         sel_restore_notes.  Update all callers.  Call reemit_notes
23760         for all insns.
23761
23762 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23763
23764         PR rtl-optimization/42246
23765         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23766         loops.
23767
23768 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23769
23770         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23771         all successors is the same as number of successors in current region.
23772
23773 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23774
23775         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23776         to rename is not separable.  Otherwise check that its LHS is not NULL.
23777
23778 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23779
23780         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
23781
23782 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23783
23784         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23785         available registers when failed to discover LHS register class.
23786         Fix indentation.  Update comment.
23787
23788 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23789             Alexander Monakov  <amonakov@ispras.ru>
23790
23791         PR rtl-optimization/42389
23792         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23793         to can_issue_more.
23794         (advance_state_on_fence): Likewise.
23795         (sel_target_adjust_priority): Print debug output only when
23796         sched_verbose >= 4, not 2.
23797         (get_expr_cost): Do not issue all unique insns on the next cycle.
23798         (fill_insns): Initialize can_issue_more from the value saved
23799         with the fence.
23800         * sel-sched-ir.c (flist_add): New parameter issue_more.
23801         Init FENCE_ISSUE_MORE with it.
23802         (merge_fences): Likewise.
23803         (init_fences): Update call to flist_add.
23804         (add_to_fences, add_clean_fence_to_fences)
23805         (add_dirty_fence_to_fences): Likewise.
23806         (move_fence_to_fences): Update call to merge_fences.
23807         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23808         sched groups.
23809         * sel-sched-ir.h (struct _fence): New field issue_more.
23810         (FENCE_ISSUE_MORE): New accessor macro.
23811
23812 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23813
23814         PR rtl-optimization/42388
23815         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23816         that have no predecessors nor successors.  Do not call move_bb_info
23817         for empty blocks outside of current region.
23818
23819 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23820
23821         PR rtl-optimization/42294
23822         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23823         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23824         originators' originators.
23825
23826 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23827
23828         PR rtl-optimization/39453
23829         PR rtl-optimization/42246
23830         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23831         for pipelining_p.
23832         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23833
23834 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23835             Alexander Monakov  <amonakov@ispras.ru>
23836
23837         PR middle-end/42245
23838         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23839         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23840         argument.  Update all callers.
23841         (tidy_control_flow): ... and here.  Recompute topological order
23842         of basic blocks in region if necessary.
23843         (sel_redirect_edge_and_branch): Change return type.  Return true
23844         if topological order might have been invalidated.
23845         (purge_empty_blocks): Export and move from...
23846         * sel-sched.c (purge_empty_blocks): ... here.
23847         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23848         (maybe_tidy_empty_bb): Delete prototype.
23849         (purge_empty_blocks): Declare.
23850
23851 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23852
23853         PR rtl-optimization/42249
23854         * sel-sched.c (try_replace_dest_reg): When chosen register
23855         and original register is the same, do not bail out early, but
23856         still check all original insns for validity of replacing destination
23857         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23858         in this case.
23859
23860 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23861
23862         PR c/42721
23863         Port from no-undefined-overflow branch:
23864         2009-03-09  Richard Guenther  <rguenther@suse.de>
23865
23866         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23867
23868 2010-01-14  Richard Guenther  <rguenther@suse.de>
23869
23870         PR lto/42665
23871         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23872
23873 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23874
23875         PR tree-optimization/42709
23876         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23877         as scalar type in creation of constant vector operand.
23878
23879 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23880
23881         PR testsuite/42414
23882         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23883         (check-parallel-%): Match `testsuite' directory component only
23884         at the end.
23885
23886 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23887
23888         PR translation/39521
23889         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23890         strings with _().
23891
23892 2010-01-13  Richard Guenther  <rguenther@suse.de>
23893
23894         PR tree-optimization/42730
23895         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23896         offset zero.
23897
23898 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23899
23900         PR target/pr42542
23901         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23902         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23903         them signed.
23904
23905 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23906
23907         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23908         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23909         ___umulsi3_highpart.
23910
23911         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23912         rather than schedule_insns if the pass is enabled.
23913
23914 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23915
23916         PR tree-optimization/42704
23917         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23918         SSA_NAMEs.
23919
23920 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23921
23922         PR tree-optimization/42703
23923         * tree-sra.c (analyze_access_subtree): Check that we can build a
23924         reference to the original data within the aggregate.
23925
23926 2010-01-13  Richard Guenther  <rguenther@suse.de>
23927
23928         PR tree-optimization/42705
23929         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23930
23931 2010-01-13  Richard Guenther  <rguenther@suse.de>
23932
23933         PR middle-end/42716
23934         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23935
23936 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23937
23938         PR debug/41371
23939         * var-tracking.c (values_to_unmark): New variable.
23940         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23941         values_to_unmark vector.  Moved body to...
23942         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23943         instead queue it into values_to_unmark vector.
23944         (vt_find_locations): Free values_to_unmark vector.
23945
23946 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23947
23948         * config/s390/s390.c (override_options): Set
23949         default of max-pending-list-length to 256
23950
23951 2010-01-13  Richard Guenther  <rguenther@suse.de>
23952
23953         PR lto/42678
23954         * tree-pass.h (PROP_gimple_lcx): New.
23955         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23956         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23957         before the final cleanup_eh.
23958         (dump_properties): Dump PROP_gimple_lcx.
23959         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23960         (tree_lower_complex_O0): Remove.
23961         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23962         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23963         tree_lower_complex, schedule TODO_update_ssa.
23964         * lto-streamer-out.c (output_function): Stream the functions
23965         properties.
23966         * lto-streamer-in.c (input_function): Likewise.
23967         (lto_read_body): Do not override them here.
23968
23969 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23970
23971         PR c/42708
23972         * c-typeck.c (build_c_cast): Fold value cast to union type before
23973         wrapping it in a CONSTRUCTOR.
23974
23975 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23976
23977         PR rtl-optimization/42699
23978         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23979         involved.
23980
23981 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23982
23983         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23984         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23985         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23986         SUBTARGET_WARN_UNUSED_SPEC): ... here
23987         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23988
23989 2010-01-12  Julian Brown  <julian@codesourcery.com>
23990
23991         * config/arm/neon-schedgen.ml (Utils): Don't try to
23992         open missing module.
23993         (find_with_result): New.
23994
23995 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23996
23997         PR debug/42662
23998         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23999         sharing when canonicalizing ({lt,ge}u (plus a b) b).
24000
24001         PR tree-optimization/42645
24002         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
24003         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
24004         decl_map, set processing_debug_stmt to -1 and return name without
24005         any remapping.
24006
24007 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
24008
24009         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
24010         binutils version, and reword target configuration description.
24011
24012 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
24013
24014         * config/avr/avr.h (LINKER_NAME): Remove.
24015
24016 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
24017
24018         PR target/42416
24019         * config/rs6000/rs6000.c (rs6000_override_options): On targets
24020         that support VSX, warn for -mno-altivec if vsx is not disabled,
24021         and disable vsx.
24022
24023 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
24024             Shujing Zhao  <pearly.zhao@oracle.com>
24025
24026         PR translation/42469
24027         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
24028         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
24029         character between option name and help text.
24030         * c.opt (imultilib): Likewise.
24031
24032 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
24033
24034         * lto-streamer-out.c (output_unreferenced_globals): Output static
24035         variables.
24036
24037 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
24038
24039         PR rtl-optimization/42621
24040         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
24041         optimizing for size.
24042         (duplicate_computed_gotos): Remove now-redundant check.
24043
24044 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
24045
24046         PR target/37454
24047         * configure.ac: Save and restore LDFLAGS and LIBS
24048         * configure: Regenerate.
24049
24050 2010-01-10  Richard Guenther  <rguenther@suse.de>
24051
24052         PR middle-end/42667
24053         * builtins.c (fold_builtin_strlen): Add type argument and
24054         convert the resulting length to it.
24055         (fold_builtin_1): Adjust.
24056
24057 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
24058
24059         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
24060         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
24061         1 insn.
24062         (num_insns_constant_wide): Adjust for that change.
24063
24064 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24065
24066         PR debug/42631
24067         * web.c (union_defs): Add used argument, to combine uses of
24068         uninitialized regs.
24069         (entry_register): Adjust type and tests of used argument.
24070         (web_main): Widen used for new use.  Pass it to union_defs.
24071         * df.h (union_defs): Adjust prototype.
24072
24073 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24074
24075         PR debug/42630
24076         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
24077         uses in new incoming argument.  Free body.
24078         (reset_debug_uses_in_loop): New.
24079         (analyze_insn_to_expand_var): Call the latter if the former found
24080         anything.  Fix whitespace.  Reject invalid dest overlaps before
24081         going through all insns in the loop.
24082
24083 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24084
24085         PR debug/42629
24086         * haifa-sched.c (dying_use_p): Debug insns don't count.
24087
24088 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24089
24090         PR middle-end/42363
24091         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
24092         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
24093         (verify_gimple_call): Reject LHS in noreturn calls.
24094
24095 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24096
24097         PR debug/42604
24098         PR debug/42395
24099         * tree-vect-loop-manip.c (adjust_info): New type.
24100         (adjust_vec): New pointer to vector.
24101         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
24102         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
24103         (slpeel_update_phis_for_duplicate_loop): Use them.
24104         (slpeel_update_phi_nodes_for_guard1): Likewise.
24105         (slpeel_update_phi_nodes_for_guard2): Likewise.
24106         (slpeel_tree_peel_loop_to_edge): Likewise.
24107         (vect_update_ivs_after_vectorizer): Likewise.
24108
24109 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24110
24111         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
24112         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
24113
24114 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24115
24116         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
24117         bogus uninitialized warning.
24118
24119 2010-01-09  Richard Guenther  <rguenther@suse.de>
24120
24121         PR middle-end/42512
24122         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
24123         the evolution is compatible with the initial condition.
24124
24125 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
24126
24127         * gcc.c (process_command): Update copyright notice dates.
24128         * gcov.c (print_version): Likewise.
24129         * gcov-dump.c (print_version): Likewise.
24130         * mips-tfile.c (main): Likewise.
24131         * mips-tdump.c (main): Likewise.
24132
24133 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
24134
24135         PR target/41885
24136         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
24137         (rotlhi3): Delete.
24138         (rotlhi3_8): Delete.
24139         (rotlsi3): Delete.
24140         (rotlsi3_8): Delete.
24141         (rotlsi3_16): Delete.
24142         (rotlsi3_24): Delete.
24143         (rotl<mode>3): New.
24144         (*rotw<mode>3): New.
24145         (*rotb<mode>3): New.
24146         * config/avr/avr.c (avr_rotate_bytes): New function.
24147         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
24148
24149 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
24150
24151         PR target/37454
24152         * configure.ac: Modify -rdynamic check.
24153         * configure: Regenerate.
24154
24155 2010-01-08  DJ Delorie  <dj@redhat.com>
24156
24157         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
24158         register popping order.
24159
24160 2010-01-08  Richard Guenther  <rguenther@suse.de>
24161
24162         PR lto/42528
24163         * c.opt (fsigned-char): Also let LTO handle this option.
24164         (funsigned-char): Likewise.
24165
24166 2010-01-07  Richard Guenther  <rguenther@suse.de>
24167
24168         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
24169         (gimple_op): Likewise.
24170         (gimple_op_ptr): Likewise.
24171         (gimple_assign_set_lhs): Remove gcc_assert.
24172         (gimple_assign_set_rhs1): Likewise.
24173         (gimple_assign_set_rhs2): Likewise.
24174         (gimple_call_set_lhs): Likewise.
24175         (gimple_call_set_fn): Likewise.
24176         (gimple_call_set_fndecl): Likewise.
24177         (gimple_call_fndecl): Likewise.
24178         (gimple_call_return_type): Likewise.
24179         (gimple_call_set_chain): Likewise.
24180         (gimple_call_num_args): Likewise.
24181         (gimple_call_set_arg): Likewise.
24182         (gimple_cond_set_code): Likewise.
24183         (gimple_cond_set_lhs): Likewise.
24184         (gimple_cond_set_rhs): Likewise.
24185         (gimple_cond_set_true_label): Likewise.
24186         (gimple_cond_set_false_label): Likewise.
24187         (gimple_label_set_label): Likewise.
24188         (gimple_goto_set_dest): Likewise.
24189         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
24190         (gimple_debug_bind_get_value): Likewise.
24191         (gimple_debug_bind_get_value_ptr): Likewise.
24192         (gimple_debug_bind_set_var): Likewise.
24193         (gimple_debug_bind_set_value): Likewise.
24194         (gimple_debug_bind_reset_value): Likewise.
24195         (gimple_debug_bind_has_value_p): Likewise.
24196         (gimple_return_retval_ptr): Remove gcc_assert.
24197         (gimple_return_retval): Likewise.
24198         (gimple_return_set_retval): Likewise.
24199         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
24200         (safe_referenced_var_iterator): Remove.
24201         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
24202         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
24203         (fill_referenced_var_vec): Remove.
24204         (first_readonly_imm_use): Remove redundant gcc_assert.
24205         (phi_arg_index_from_use): Combine gcc_asserts.
24206         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
24207         (first_imm_use_stmt): Remove redundant gcc_assert.
24208         * tree-cfg.c (verify_gimple_call): Verify function and chain
24209         operands.  Verify arguments.
24210         (verify_types_in_gimple_stmt): Verify condition code and labels.
24211
24212 2010-01-07  Richard Guenther  <rguenther@suse.de>
24213
24214         PR tree-optimization/42641
24215         * sese.c (rename_map_elt_info): Use the SSA name version, do
24216         not hash pointers.
24217
24218 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
24219
24220         PR tree-optimization/42625
24221         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
24222         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
24223
24224 2010-01-07  Duncan Sands  <baldrick@free.fr>
24225
24226         * Makefile.in (PLUGIN_HEADERS): Add version.h.
24227
24228 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
24229
24230         PR target/42511
24231         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
24232         note itself is not function_invariant_p.
24233
24234 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
24235
24236         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
24237         Do not add the DF_NOTE problem.
24238         * store-motion.c (execute_rtl_store_motion): Likewise.
24239
24240 2010-01-07  Martin Jambor  <mjambor@suse.cz>
24241
24242         PR tree-optimization/42157
24243         * tree-sra.c (compare_access_positions): Stabilize sort if both
24244         accesses have integer types, return zero immediately if they are the
24245         same.
24246
24247 2010-01-06  Richard Henderson  <rth@redhat.com>
24248
24249         PR middle-end/41883
24250         * haifa-sched.c (add_to_note_list): Merge into ...
24251         (concat_note_lists): ... here, and ...
24252         (unlink_other_notes, rm_other_notes): Merge into...
24253         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
24254         NOTE_INSN_EPILOGUE_BEG.
24255
24256 2010-01-06  Richard Guenther  <rguenther@suse.de>
24257
24258         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
24259         not inline regular functions into always-inline functions.
24260
24261 2010-01-06  Nick Clifton  <nickc@redhat.com>
24262
24263         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
24264         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
24265         used together.
24266         (OVERRIDE_OPTIONS): Delete.
24267         (OPTIMIZATION_OPTIONS): Define.
24268         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
24269         * config/rx/rx.c (rx_handle_option): Issue an error message if
24270         -mcpu=rx200 and -fpu are used together.
24271         (rx_set_optimization_options): New function.  Issue an error
24272         message if an optimization attribute attempts to reset the FPU/
24273         math optimization pairing.
24274         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
24275         * config/rx/rx.opt: Set the default to 32-bit doubles.
24276         * config/rx/t-rx: Add multilibs for -nofpu option.
24277         * doc/invoke.texi: Update documentation of RX options.
24278
24279 2010-01-06  Richard Guenther  <rguenther@suse.de>
24280
24281         * tree-ssa-pre.c (name_to_id): New global.
24282         (alloc_expression_id): Simplify SSA name handling.
24283         (lookup_expression_id): Likewise.
24284         (init_pre): Zero name_to_id.
24285         (fini_pre): Free it.
24286
24287 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
24288
24289         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
24290
24291 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24292
24293         PR target/42542
24294         * config/i386/sse.md (smaxv2di3): New.
24295         (umaxv2di3): Likewise.
24296         (sminv2di3): Likewise.
24297         (uminv2di3): Likewise.
24298
24299 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24300
24301         PR target/42564
24302         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
24303         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
24304         (legitimize_tls_address): Likewise.
24305         (sparc_tls_referenced_p): Likewise.
24306         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
24307         and adjust calls to legitimize_pic_address.
24308         (legitimate_constant_p) Use sparc_tls_referenced_p.
24309         (legitimate_pic_operand_p): Likewise.
24310         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
24311         (sparc_tls_symbol_ref_1): Delete.
24312         (sparc_tls_referenced_p): Make static, recognize specific patterns.
24313         (legitimize_tls_address): Make static, handle CONST patterns.
24314         (legitimize_pic_address): Make static, remove unused parameter and
24315         adjust recursive calls.
24316         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
24317         and adjust call to legitimize_pic_address.
24318         (sparc_output_mi_thunk): Likewise.
24319
24320 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
24321             H.J. Lu  <hongjiu.lu@intel.com>
24322
24323         PR target/42542
24324         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
24325         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
24326         operands to make them signed.
24327
24328         Revert:
24329         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24330
24331         PR target/42542
24332         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24333         GTU to GT for V4SI and V2DI.
24334
24335         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24336         (umin<mode>3): Removed.
24337         (uminv8hi3): New.
24338         (uminv4si3): Likewise.
24339
24340 2010-01-05  Martin Jambor  <mjambor@suse.cz>
24341
24342         PR tree-optimization/42462
24343         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
24344         current_function_decl to helper functions and macros.
24345
24346 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24347
24348         PR bootstrap/41771
24349         * flags.h: Don't include real.h.
24350         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
24351         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
24352         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
24353         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
24354         * dominance.c: Update copyright.
24355         * gimple.c (walk_gimple_op): Remove inline.
24356         * tree-ssa-reassoc.c: Include real.h.
24357         * Makefile.in (FLAGS_H): Remove $(REAL_H).
24358         (tree-ssa-reassoc.o): Depend on $(REAL_H).
24359
24360 2010-01-05  Nick Clifton  <nickc@redhat.com>
24361
24362         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
24363         register to push into the stack frame when the accumulator has to
24364         be saved during interrupts.
24365
24366 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
24367
24368         * doc/invoke.texi: Remove the documentation about option
24369         -Wunreachable-code.
24370         * common.opt (Wunreachable-code):  Preserved for backward
24371         compatibility.
24372         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
24373         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
24374         the backward compatibility flag section.
24375
24376 2010-01-05  Richard Guenther  <rguenther@suse.de>
24377
24378         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
24379
24380 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
24381
24382         PR other/42611
24383         * cfgexpand.c (expand_one_var): Diagnose too large variables.
24384
24385         PR tree-optimization/42508
24386         * tree-sra.c (convert_callers): Check for recursive call
24387         by comparing cgraph nodes instead of decls.
24388         (modify_function): Call ipa_modify_formal_parameters also
24389         on all same_body aliases.
24390
24391         * cgraphunit.c (cgraph_materialize_all_clones): Compare
24392         cgraph nodes when checking for same_body aliases.
24393
24394 2010-01-05  Richard Guenther  <rguenther@suse.de>
24395
24396         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
24397         allocation and lookup.
24398         (get_or_alloc_expr_for_constant): Likewise.
24399         (phi_translate): Sink allocation.
24400
24401 2010-01-04  Richard Guenther  <rguenther@suse.de>
24402
24403         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
24404         a new entry only if needed.
24405         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
24406         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
24407         hashtable lookup.
24408         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
24409         the result array.
24410         (phi_translate): Handle CONSTANTs early.
24411
24412 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24413
24414         PR tree-optimization/42398
24415         * tree-sra.c (struct access): Removed flag grp_different_types.
24416         (dump_access): Do not dump the removed flag.
24417         (sort_and_splice_var_accesses): Do not set the removed flag.
24418         (sra_modify_expr): Check for type compatibility directly.
24419
24420 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24421
24422         PR tree-optimization/42366
24423         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
24424         edges with variable number of parameters.
24425         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
24426         flag instead of asserting it.
24427         (ipa_read_node_info): Read uses_analysis_done flag.
24428
24429 2010-01-04  Richard Guenther  <rguenther@suse.de>
24430
24431         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
24432         iterative_hash_* as intended.
24433         (vn_reference_compute_hash): Likewise.  Simplify hashing
24434         SSA names.
24435         (vn_reference_lookup_2): Likewise.
24436         (vn_nary_op_compute_hash): Likewise.
24437         (vn_phi_compute_hash): Likewise.
24438         (expressions_equal_p): Remove strange code.
24439         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
24440         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
24441         (bitmap_insert_into_set_1): Take value-id as parameter.
24442         (add_to_value): Pass it.
24443         (bitmap_insert_into_set): Likewise.
24444         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
24445
24446 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
24447
24448         PR driver/42442
24449         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
24450         (do_self_spec): For switches with SWITCH_IGNORE set set also
24451         SWITCH_IGNORE_PERMANENTLY.
24452         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
24453         of SWITCH_IGNORE.
24454
24455 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
24456
24457         * lto-streamer-out.c (output_unreferenced_globals): Output the full
24458         tree of an unreferenced global var.
24459
24460 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24461
24462         PR target/42542
24463         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24464         GTU to GT for V4SI and V2DI.
24465
24466         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24467         (umin<mode>3): Removed.
24468         (uminv8hi3): New.
24469         (uminv4si3): Likewise.
24470
24471 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24472
24473         PR lto/42581
24474         * collect2.c (main): Turn on trace in collect2 if -v is passed
24475         to gcc with LTO.
24476
24477 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
24478
24479         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
24480         description of expression operand.
24481
24482 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
24483
24484         * configure.ac: Add install-html to target_list for Make-hooks.
24485         * configure: Regenerate.
24486         * fortran/Make-lang.in (F95_HTMLFILES): New.
24487         (fortran.html): Use it.
24488         (fortran.install-html): New.
24489         * Makefile.in (install-html): Add lang.install-html.
24490         * java/Make-lang.in (JAVA_HTMLFILES): New.
24491         (java.html): Use it.
24492         (java.install-html): New.
24493         * objc/Make-lang.in (objc.install-html): New.
24494         * objcp/Make-lang.in (obj-c++.install-html): New.
24495         * cp/Make-lang.in (c++.install-html): New.
24496         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
24497         * lto/Make-lang.in (lto.install-html): New.
24498
24499 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24500
24501         PR lto/42520
24502         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
24503
24504 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24505
24506         PR rtl-optimization/41862
24507         * store-motion.c (store_killed_in_insn, compute_store_table,
24508         remove_reachable_equiv_notes, replace_store_insn,
24509         build_store_vectors): Ignore all DEBUG_INSNs.
24510
24511 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24512
24513         PR lto/41564
24514         * common.opt: Add dumpdir.
24515
24516         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
24517         isn't specified.
24518         (option_map): Add --dumpdir.
24519
24520         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
24521
24522         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
24523
24524         * opts.c (decode_options): Try dump_dir_name first if
24525         dump_base_name isn't an absolute path.
24526         (common_handle_option): Handle OPT_dumpdir.
24527
24528         * toplev.c (dump_dir_name): New.
24529         (print_switch_values): Also ignore -dumpdir.
24530
24531         * toplev.h (dump_dir_name): New.
24532
24533 2010-01-03  Richard Guenther  <rguenther@suse.de>
24534
24535         PR tree-optimization/42589
24536         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
24537         double-word expansion of bswap32.
24538
24539 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24540
24541         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
24542         with BLOCK_FOR_INSN.
24543         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
24544         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
24545         noce_process_if_block): Likewise.
24546         * gcse.c (compute_local_properties, insert_expr_in_table,
24547         insert_set_in_table, canon_list_insert, find_avail_set,
24548         pre_insert_copy_insn): Likewise.
24549
24550         * basic-block.h (BLOCK_NUM): Move from here...
24551         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
24552
24553 2010-01-03  Richard Guenther  <rguenther@suse.de>
24554
24555         PR tree-optimization/42438
24556         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
24557         contains_may_not_return_call flag.
24558         (BB_MAY_NOTRETURN): New.
24559         (valid_in_sets): Trapping nary operations are not valid
24560         in blocks that may not return.
24561         (insert_into_preds_of_block): Remove check for trapping expressions.
24562         (compute_avail): Compute also BB_MAY_NOTRETURN.
24563
24564 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
24565
24566         * doc/invoke.texi: Add 2010 to copyright years.
24567
24568 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
24569
24570         * config/sparc/sparc.c: Fix formatting nits.
24571
24572 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
24573             Alexander Monakov  <amonakov@ispras.ru>
24574
24575         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
24576
24577 2010-01-02  Richard Guenther  <rguenther@suse.de>
24578
24579         PR middle-end/42577
24580         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
24581         (simplify_switch_using_ranges): Mark to be removed edges
24582         as non-executable.
24583
24584 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24585
24586         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24587
24588         * collect2.c (scan_libraries): Add missing argument in call to
24589         scan_prog_file.
24590
24591 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
24592
24593         PR target/42448
24594         * config/alpha/predicates.md (aligned_memory_operand): Return false
24595         for CQImode.
24596         (unaligned_memory_operand): Return true for CQImode.
24597         * config/alpha/alpha.c (get_aligned_mem): Assert that location
24598         doesn not cross aligned SImode word boundary.
24599
24600 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
24601
24602         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
24603         Remove.
24604         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
24605         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
24606
24607 2010-01-02  Richard Guenther  <rguenther@suse.de>
24608
24609         PR lto/41597
24610         * toplev.c (compile_file): Emit LTO marker properly.  Change
24611         it to __gnu_lto_v1.
24612         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
24613
24614 2010-01-01  Richard Guenther  <rguenther@suse.de>
24615
24616         PR debug/42455
24617         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
24618
24619 2010-01-01  Richard Guenther  <rguenther@suse.de>
24620
24621         PR c/42570
24622         * c-decl.c (grokdeclarator): For zero-size arrays force
24623         structural equality checks as layout_type does.
24624
24625 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24626
24627         * builtins.c: Update copyright to 2010.
24628
24629 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24630
24631         PR lto/42531
24632         * lto-streamer-out.c (produce_asm): Revert the last change.
24633         (copy_function): Likewise.
24634
24635         * lto-streamer.c (lto_get_section_name): Skip any leading
24636         asterisk in name.
24637
24638 2010-01-01  Richard Guenther  <rguenther@suse.de>
24639
24640         PR middle-end/42559
24641         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
24642         for LABEL_DECLs.
24643
24644 \f
24645 Copyright (C) 2010 Free Software Foundation, Inc.
24646
24647 Copying and distribution of this file, with or without modification,
24648 are permitted in any medium without royalty provided the copyright
24649 notice and this notice are preserved.