OSDN Git Service

* config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
2
3         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
4         gen_regexp_oneof, gen_regexp_sequence): Use the string found
5         in vector element 0 rather than the original string when there's
6         only one element.
7         (gen_regexp): Remove extra semicolon.
8
9         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
10         thumb2_movsf_vfp): Set attribute "insn".
11         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
12         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
13         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
15         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
16         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
17         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
18         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
19         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
20         if_not_arith, if_arith_not, cond_move_not): Likewise.
21
22 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
23
24         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
25         New declaration.
26         (rs6000_allocate_stack_temp): Ditto.
27         (rs6000_expand_convert_si_to_sfdf): Ditto.
28
29         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
30         line.  Update the options set if power6 or power7 server/embedded
31         type options are used.  If we give a warning for no vsx under
32         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
33         (rs6000_allocate_stack_temp): New function to allocate a stack
34         tempoary and adjust the address so it meets either REG+OFFSET or
35         REG+REG addressing requirements.
36         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
37         that they can be used with the LFIWAX/LFIWZX instrucitons.
38         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
39         converting signed/unsigned SImode to either SFmode/DFmode.
40
41         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
42         whether certain instructions can be generated.
43         (TARGET_FCTIDZ): Ditto.
44         (TARGET_STFIWX): Ditto.
45         (TARGET_LFIWAX): Ditto.
46         (TARGET_LFIWZX): Ditto.
47         (TARGET_FCFIDS): Ditto.
48         (TARGET_FCFIDU): Ditto.
49         (TARGET_FCFIDUS): Ditto.
50         (TARGET_FCTIDUZ): Ditto.
51         (TARGET_FCTIWUZ): Ditto.
52
53         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
54         (UNSPEC_FCTID): Ditto.
55         (UNSPEC_LFIWAX): Ditto.
56         (UNSPEC_LFIWZX): Ditto.
57         (UNSPEC_FCTIWUZ): Ditto.
58         (rreg): Use correct constraints.
59         (SI_CONVERT_FP): New mode attribute for floating point conversion
60         tests.
61         (E500_CONVERT): Ditto.
62         (lfiwax): New insns for converting from integer to floating point
63         utilizing newer instructions.  Attempt to optimize conversions
64         that come from memory so that we don't load the value into a GPR,
65         spill it to the stack and reload it into a FPR.
66         (floatsi<mode>2_lfiwax): Ditto.
67         (floatsi<mode>2_lfiwax_mem): Ditto.
68         (floatsi<mode>2_lfiwax_mem2): Ditto.
69         (lfiwzx): Ditto.
70         (floatunssi<mode>2_lfiwzx): Ditto.
71         (floatunssi<mode>2_lfiwzx_mem): Ditto.
72         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
73         (floatdidf2_mem): Ditto.
74         (floatunsdidf2_fcfidu): Ditto.
75         (floatunsdidf2_mem): Ditto.
76         (floatunsdisf2): Ditto.
77         (floatunsdisf2_fcfidus): Ditto.
78         (floatunsdisf2_mem): Ditto.
79         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
80         Use FCFID on 32-bit hosts that support it.
81         (floatsidf2_internal): Ditto.
82         (floatunssisf2): Ditto.
83         (floatunssidf2): Ditto.
84         (floatunssidf2_internal): Ditto.
85         (floatsisf2): Ditto.
86         (floatdidf2): Ditto.
87         (floatdidf2_fpr): Ditto.
88         (floatunsdidf2): Ditto.
89         (floatdisf2): Ditto.
90         (floatdisf2_fcfids): Ditto.
91         (floatdisf2_internal1): Ditto.
92         (fixuns_truncsfsi2): Delete, merge into common pattern for both
93         SF/DF.  Add power7 support.
94         (fix_truncsfsi2): Ditto.
95         (fixuns_truncdfsi2): Ditto.
96         (fixuns_truncdfdi2): Ditto.
97         (fix_truncdfsi2): Ditto.
98         (fix_truncdfsi2_internal): Ditto.
99         (fix_truncdfsi2_internal_gfxopt): Ditto.
100         (fix_truncdfsi2_mfpgpr): Ditto.
101         (fctiwz): Ditto.
102         (btruncdf2): Ditto.
103         (btruncdf2_fpr): Ditto.
104         (btructsf2): Ditto.
105         (ceildf2): Ditto.
106         (ceildf2_fpr): Ditto.
107         (ceilsf2): Ditto.
108         (floordf2): Ditto.
109         (floordf2_fpr): Ditto.
110         (floorsf2): Ditto.
111         (rounddf2): Ditto.
112         (rounddf2_fpr): Ditto.
113         (roundsf2): Ditto.
114         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
115         (fix_trunc<mode>di2): Ditto.
116         (fixuns_trunc<mode>si2): Ditto.
117         (fixuns_trunc<mode>di2): Ditto.
118         (fctiwz_<mode>): Ditto.
119         (btrunc<mode>2): Ditto.
120         (btrunc<mode>2_fpr): Ditto.
121         (ceil<mode>2): Ditto.
122         (ceil<mode>2_fpr): Ditto.
123         (floor<mode>2): Ditto.
124         (float<mode>2_fpr): Ditto.
125         (round<mode>2): Ditto.
126         (round<mode>2_fpr): Ditto.
127         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
128         (fixuns_trunc<mode>si2_stfiwx): Ditto.
129         (fix_truncdfsi2_internal): Ditto.
130         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
131         converted value on stack, loaded into GPR, and then stored into
132         the final destination.
133         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
134         FCTIDZ.
135         (lrint<mode>di2): New insn, provide the lrint builtin functions.
136         (ftruncdf2): Delete, unused.
137         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
138
139         * config/rs6000/vsx.md (toplevel): Update copyright year.
140         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
141         (VSr3): Ditto.
142
143 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
144             Jeremie Salvucci  <jeremie.salvucci@free.fr>
145
146         * gengtype.c (output_type_enum): Test the right union member.
147
148 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
149
150         PR target/41484
151         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
152         operands for operand 1.
153         (sse4_1_extendv4qiv4si2): Ditto.
154         (sse4_1_extendv2qiv2di2): Ditto.
155         (sse4_1_extendv4hiv4si2): Ditto.
156         (sse4_1_extendv2hiv2di2): Ditto.
157         (sse4_1_extendv2siv2di2): Ditto.
158         (sse4_1_zero_extendv8qiv8hi2): Ditto.
159         (sse4_1_zero_extendv4qiv4si2): Ditto.
160         (sse4_1_zero_extendv2qiv2di2): Ditto.
161         (sse4_1_zero_extendv4hiv4si2): Ditto.
162         (sse4_1_zero_extendv2hiv2di2): Ditto.
163         (sse4_1_zero_extendv2siv2di2): Ditto.
164         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
165         (*sse4_1_extendv4qiv4si2): Ditto.
166         (*sse4_1_extendv2qiv2di2): Ditto.
167         (*sse4_1_extendv4hiv4si2): Ditto.
168         (*sse4_1_extendv2hiv2di2): Ditto.
169         (*sse4_1_extendv2siv2di2): Ditto.
170         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
171         (*sse4_1_zero_extendv4qiv4si2): Ditto.
172         (*sse4_1_zero_extendv2qiv2di2): Ditto.
173         (*sse4_1_zero_extendv4hiv4si2): Ditto.
174         (*sse4_1_zero_extendv2hiv2di2): Ditto.
175         (*sse4_1_zero_extendv2siv2di2): Ditto.
176
177 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
178
179         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
180         (mips_function_arg): Delete.
181         (mips_function_arg_boundary): Take a const_tree.
182         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
183         (mips_arg_info): Likewise.
184         (mips_setup_incoming_varargs): Call mips_function_arg_advance
185         instead of FUNCTION_ARG_ADVANCE.
186         (mips_function_arg_advance): Adjust prototype.  Make static.
187         (mips_function_arg): Likewise.
188         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
189         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
190
191 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
192
193         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
194         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
195         (function_arg): Delete.
196         (function_arg_boundary): Take a const_tree.
197         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
198         (rs6000_spe_function_arg): Likewise.
199         (rs6000_parm_start): Likewise.
200         (rs6000_arg_size): Likewise.
201         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
202         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
203         (rs6000_mixed_function_arg): Likewise.
204         (function_arg): Rename to...
205         (rs6000_function_arg): ...this.
206         (function_arg_advance): Rename to...
207         (rs6000_function_arg_advance_1): ...this
208         (rs6000_function_arg_advance): New function.  Call it.
209         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
210         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
211         (rs6000_function_value): Likewise.
212         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
213
214 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
215
216         * config/arm/arm.md (enabled): Test the value of arch_enabled
217         rather than just using it.
218
219 2010-08-27  Olivier Hainque  <hainque@adacore.com>
220             Eric Botcazou  <ebotcazou@adacore.com>
221
222         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
223         cover all the possible offsets from this base.
224         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
225
226 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
227
228         PR tree-optimization/44485
229         * calls.c (flags_from_decl_or_type): For const or pure
230         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
231         together with ECF_CONST resp. ECF_PURE.
232         * builtins.c (expand_builtin): Use flags_from_decl_or_type
233         instead of querying flags directly.
234         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
235         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
236
237 2010-08-26  Richard Guenther  <rguenther@suse.de>
238
239         PR tree-optimization/45255
240         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
241         and externals are also invariant.
242
243 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
244
245         PR rtl-optimization/44858
246         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
247         newi2pat, make sure they don't affect newpat.
248
249         PR rtl-optimization/45400
250         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
251         SUBREG_REG if both modes are of MODE_INT class.
252
253 2010-08-25  Julian Brown  <julian@codesourcery.com>
254
255         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
256         * config/arm/arm.md (generic_sched): No for Cortex-A5.
257         (generic_vfp): Likewise.
258         (cortex-a5.md): Include.
259         * config/arm/cortex-a5.md: New.
260
261 2010-08-25  Richard Guenther  <rguenther@suse.de>
262
263         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
264         * gimple.c (gimple_get_alias_set): Remove special handling
265         for pointers.
266
267 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
268
269         PR middle-end/45355
270         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
271         dead_or_set_p when computing i0_feeds_i2_n.
272
273         * combine.c (find_split_point): Undo canonicalization of multiply-add
274         to (minus x (mult)) when it seems likely that this will increase the
275         chances of a split.
276
277 2010-08-25  Richard Guenther  <rguenther@suse.de>
278
279         PR lto/44562
280         * lto-streamer.c (lto_record_common_node): Do not mess with
281         TYPE_CANONICAL when not in lto.
282         * gimple.c (gimple_register_type): Likewise.
283
284 2010-08-25  Richard Guenther  <rguenther@suse.de>
285
286         PR tree-optimization/45316
287         * tree-ssa-pre.c (eliminate): Properly clean EH info.
288
289 2010-08-25  Richard Guenther  <rguenther@suse.de>
290
291         PR tree-optimization/45393
292         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
293         and clean EH info.  Avoid SSA update.
294         (execute_cse_sincos): Cleanup the CFG if it has changed.
295
296 2010-08-25  Richard Guenther  <rguenther@suse.de>
297
298         PR middle-end/45379
299         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
300         TARGET_MEM_REF in alignment computation.
301
302 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
303
304         PR tree-optimization/45059
305         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
306         type conversions from newop{1,2}.  Assert t is a comparison and
307         newop{1,2} after the stripping are gimple vals.
308
309 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
310
311         * config/arm/iterators.md (VU, SE, V_widen_l): New.
312         (V_unpack, US): New.
313         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
314         (vec_unpack<US>_lo_<mode>): Likewise.
315         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
316         (neon_vec_unpack<US>_lo_<mode>): Likewise.
317         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
318         (vec_widen_<US>mult_hi_<mode>): Likewise.
319         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
320         (neon_vec_<US>mult_hi_<mode>"): Likewise.
321         (neon_unpack<US>_<mode>): Widening move intermediate step for
322         vectorizing without -mvectorize-with-neon-quad.
323         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
324         for vectorizing without -mvectorize-with-neon-quad.
325         * config/arm/predicates.md (vect_par_constant_high): Check for
326         high-half lanes of a vector.
327         (vect_par_constant_low): Check for low-half lanes of a vector.
328
329 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
330
331         * tree-if-conv.c (struct ifc_dr): New.
332         (IFC_DR): New.
333         (DR_WRITTEN_AT_LEAST_ONCE): New.
334         (DR_RW_UNCONDITIONALLY): New.
335         (memref_read_or_written_unconditionally): Use the cached values
336         when possible.
337         (write_memref_written_at_least_once): Same.
338         (if_convertible_loop_p): Initialize and free DR->aux fields.
339
340 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
341
342         * gimple.c (gimple_could_trap_p_1): Not static anymore.
343         Pass an extra bool parameter include_mem.
344         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
345         (gimple_assign_rhs_could_trap_p): Same.
346         * gimple.h (gimple_could_trap_p_1): Declared.
347         * tree-data-ref.h (same_data_refs_base_objects): New.
348         (same_data_refs): New.
349         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
350         (write_memrefs_written_at_least_once): New.
351         (ifcvt_memrefs_wont_trap): New.
352         (operations_could_trap): New.
353         (ifcvt_could_trap_p): New.
354         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
355         Gets a vector of data refs.
356         (if_convertible_stmt_p): Same.
357         (if_convertible_loop_p_1): New.
358         (if_convertible_loop_p): Call if_convertible_loop_p_1.
359
360 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
361
362         * common.opt (ftree-loop-if-convert-stores): New flag.
363         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
364         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
365         the created statement before GSI.
366         (if_convertible_phi_p): Allow virtual phi nodes when
367         flag_loop_if_convert_stores is set.
368         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
369         Do not handle types that do not match is_gimple_reg_type.
370         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
371         when flag_loop_if_convert_stores is set, as LHS can contain
372         memory refs.
373         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
374         to if_convertible_gimple_assign_stmt_p.
375         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
376         (replace_phi_with_cond_gimple_assign_stmt): Renamed
377         predicate_scalar_phi.  Do not handle virtual phi nodes.
378         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
379         Call predicate_scalar_phi.
380         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
381         just after the labels for flag_loop_if_convert_stores, otherwise
382         insert the predicate in the end of the BB.
383         (predicate_mem_writes): New.
384         (combine_blocks): Call predicate_all_scalar_phis.  When
385         flag_loop_if_convert_stores is set, call predicate_mem_writes.
386         (tree_if_conversion): Call mark_sym_for_renaming when
387         flag_loop_if_convert_stores is set.
388         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
389         flag_loop_if_convert_stores is set.
390
391 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
392
393         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
394         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
395         (pa_function_value): Make static.
396         (override_options): Rename to...
397         (pa_option_override): ...this. Make static.
398         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
399         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
400         TARGET_OPTION_OVERRIDE): Define.
401         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
402         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
403         Remove.
404         * config/pa/pa-protos.h (override_options): Remove.
405
406 2010-08-24  Richard Guenther  <rguenther@suse.de>
407
408         PR middle-end/45379
409         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
410         if addr->index is NULL or zero.
411         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
412         TARGET_MEM_REF more properly.
413         (indirect_ref_may_alias_decl_p): Likewise.
414         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
415         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
416
417 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
418
419         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
420         (m32c_override_options): Rename to...
421         (m32c_option_override): ...this. Make static.
422         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
423         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
424         Remove.
425         * config/m32c/m32c-protos.h (m32c_override_options,
426         m32c_function_value_regno_p): Remove.
427
428 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
429
430         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
431         Fix a typo in a previous commit.
432
433 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
434
435         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
436         Pre-initialize innerloop_iters to one.
437
438 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
439
440         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
441         existing static function global.
442
443         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
444         is changed to global.
445
446         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
447         may_be_nonaddressable_p on base, and don't collect this reference
448         if the address of the base could not be taken.
449
450 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
451
452         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
453         enable the compiler to autovectorize mathmetical functions for
454         power7 using the Mathematical Acceleration Subsystem library.
455
456         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
457         handle which vector math library we have.
458         (rs6000_override_options): Add -mveclibabi=mass support.
459         (rs6000_builtin_vectorized_libmass): New function to handle auto
460         vectorizing math functions that are in the MASS library.
461         (rs6000_builtin_vectorized_function): Call it.
462
463         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
464         -mveclibabi=mass.
465
466 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
467
468         PR boehm-gc/34544
469         * gthr-posix.h (__gthread_active_init): Delete.
470         (__gthread_active_p): Do activity check here.
471         Don't include errno.h on hppa-hpux.  Update comment.
472         * gthr-posix95.h (__gthread_active_init): Delete.
473         (__gthread_active_p): Do activity check here.
474         Don't include errno.h on hppa-hpux.  Update comment.
475         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
476         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
477         add -lpthread when -mt or -pthread is specified.
478         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
479         (LINK_GCC_C_SEQUENCE_SPEC): Define.
480         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
481         (stublib.c, pthread_default_stacksize_np-stub.o,
482         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
483         $(T)libgcc_stub.a): Add methods.
484         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
485         (stublib.c, pthread_default_stacksize_np-stub.o,
486         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
487         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
488         pthread_mutex_unlock): New stubs.
489
490 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
491
492         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
493         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
494         options.
495         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
496         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
497         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
498         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
499         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
500         "-l".
501         * cppspec.c: Include opts.h.
502         (lang_specific_driver): Use cl_decoded_option structures.
503         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
504         * doc/tm.texi: Regenerate.
505         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
506         (driver_handle_option): Allow driver options needing no special
507         processing.
508         (process_command): Decode options before call to
509         lang_specific_driver.  Pass decoded options to
510         lang_specific_driver.
511         * gcc.h (lang_specific_driver): Update prototype.
512         * gccspec.c: Include opts.h.
513         (lang_specific_driver): Use cl_decoded_option structures.
514         * opts-common.c (option_ok_for_language, generate_option,
515         generate_option_input_file): New.
516         (decode_cmdline_option): Use option_ok_for_language.
517         (decode_cmdline_options_to_array): Use generate_option_input_file.
518         (handle_generated_option): Use generate_option.
519         * opts.h (generate_option, generate_option_input_file): Declare.
520
521 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
522
523         * config/mips/mips.c (mips_override_options): Rename to...
524         (mips_option_override): ...this. Make static.
525         (TARGET_OPTION_OVERRIDE): Define.
526         (mips_in_small_data_p): Update comment.
527         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
528         (FIXED_REGISTERS): Update comment.
529         * config/mips/mips-protos.h (mips_override_options): Remove.
530
531 2010-08-21  Olivier Hainque  <hainque@adacore.com>
532
533         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
534
535 2010-08-21  Olivier Hainque  <hainque@adacore.com>
536
537         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
538         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
539
540 2010-08-20  Jan Hubicka  <jh@suse.cz>
541
542         * tree-pass.h (pass_ipa_cdtor_merge): New function.
543         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
544         heap allocated.
545         (record_cdtor_fn): Move to ipa.c; do not test for
546         have_ctors_dtors.
547         (build_cdtor): Move to ipa.c; add code avoiding construction
548         when target have ctors/dtors and there is only one ctor/dtor at given
549         priority.
550         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
551         sort; reverse order of constructors.
552         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
553         (cgraph_finalize_function): Do not call record_cdtor_fn.
554         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
555         (cgraph_build_static_cdtor): Move to ipa.c.
556         * ipa.c: Include target.h and tree-iterator.h.
557         (cgraph_build_static_cdtor, static_ctors, static_dtors,
558         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
559         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
560         pass_ipa_cdtor_merge): New.
561         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
562         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
563         bounds access.
564
565 2010-08-20  Jan Hubicka  <jh@suse.cz>
566
567         PR c++/45307
568         PR c++/17736
569         * cgraph.h (cgraph_only_called_directly_p,
570         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
571         static cdtors.
572         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
573         are not needed.
574         (cgraph_finalize_function): Static cdtors are reachable.
575         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
576
577 2010-08-20  Jan Hubicka  <jh@suse.cz>
578
579         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
580         flag_wpa.
581         * lto-streamer-out.c (lto_output): Likewise.
582         * passes.c (ipa_write_optimization_summaries): Initialize statement
583         uids.
584
585 2010-08-20  Olivier Hainque  <hainque@adacore.com>
586
587         * tree.h (alias_diag_flags): New enum.
588         (alias_pair): Add an 'emitted_diags' field.
589         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
590         (assemble_alias): Initialize emitted_diags of new pairs.
591
592 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
593
594         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
595         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
596         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
597         (STACK_CHECK_PROTECT): Define.
598         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
599         (output_probe_stack_range): Likewise.
600         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
601         builtin stack checking is enabled.
602         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
603         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
604         (probe_stack_range): New insn.
605
606 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
607
608         PR target/45336
609         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
610         short first.
611
612         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
613         char first.
614
615 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
616
617         PR target/45336
618         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
619         to cover zero extension into 64-bit register.
620         (*sse2_pextrw): Likewise.
621         (*sse4_1_pextrd_zext): New insn.
622
623 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
624
625         revert r163410, partially revert r163267.
626         * config/rs6000/darwin.h (LIB_SPEC): Remove.
627         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
628         Darwin versions.
629
630 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
631
632         PR middle-end/44974
633         * builtins.c (expand_builtin): Don't optimize away
634         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
635
636 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
637
638         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
639         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
640         alternative 1 of operand 2.
641
642 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
643             Paolo Bonzini  <bonzini@gnu.org>
644
645         * simplify-rtx.c (simplify_unary_operation_1): Optimize
646         (sign_extend (zero_extend (...)) and
647         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
648
649 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
650
651         PR rtl-optimization/45353
652         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
653         after bb_note is a BARRIER.
654
655 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
656
657         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
658         linking libgcc.a.
659
660 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
661             Michael Matz  <matz@suse.de>
662
663         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
664
665 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
666
667         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
668         (ggc_mark_roots): ...here.
669
670 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
671
672         * vec.h (FOR_EACH_VEC_ELT): Define.
673         * c-decl.c: Use it.
674         * cfgloop.c: Likewise.
675         * cfgloopmanip.c: Likewise.
676         * cgraph.c: Likewise.
677         * cgraphunit.c: Likewise.
678         * combine.c: Likewise.
679         * config/bfin/bfin.c: Likewise.
680         * config/mips/mips.c: Likewise.
681         * config/rs6000/rs6000.c: Likewise.
682         * dbxout.c: Likewise.
683         * df-scan.c: Likewise.
684         * dominance.c: Likewise.
685         * dse.c: Likewise.
686         * dwarf2out.c: Likewise.
687         * except.c: Likewise.
688         * expr.c: Likewise.
689         * function.c: Likewise.
690         * gcse.c: Likewise.
691         * genattr.c: Likewise.
692         * ggc-common.c: Likewise.
693         * gimplify.c: Likewise.
694         * graphite-blocking.c: Likewise.
695         * graphite-clast-to-gimple.c: Likewise.
696         * graphite-dependences.c: Likewise.
697         * graphite-interchange.c: Likewise.
698         * graphite-poly.c: Likewise.
699         * graphite-scop-detection.c: Likewise.
700         * graphite-sese-to-poly.c: Likewise.
701         * graphite.c: Likewise.
702         * haifa-sched.c: Likewise.
703         * ifcvt.c: Likewise.
704         * implicit-zee.c: Likewise.
705         * ipa-prop.c: Likewise.
706         * ipa-struct-reorg.c: Likewise.
707         * ipa.c: Likewise.
708         * ira-build.c: Likewise.
709         * ira-color.c: Likewise.
710         * ira-emit.c: Likewise.
711         * lambda-code.c: Likewise.
712         * loop-invariant.c: Likewise.
713         * loop-unroll.c: Likewise.
714         * lower-subreg.c: Likewise.
715         * lto-cgraph.c: Likewise.
716         * lto-opts.c: Likewise.
717         * lto-streamer-in.c: Likewise.
718         * lto-streamer-out.c: Likewise.
719         * lto-streamer.c: Likewise.
720         * lto-symtab.c: Likewise.
721         * matrix-reorg.c: Likewise.
722         * opts.c: Likewise.
723         * predict.c: Likewise.
724         * print-tree.c: Likewise.
725         * sdbout.c: Likewise.
726         * sel-sched-dump.c: Likewise.
727         * sel-sched-ir.c: Likewise.
728         * sel-sched.c: Likewise.
729         * sese.c: Likewise.
730         * stor-layout.c: Likewise.
731         * tree-cfg.c: Likewise.
732         * tree-cfgcleanup.c: Likewise.
733         * tree-chrec.c: Likewise.
734         * tree-data-ref.c: Likewise.
735         * tree-emutls.c: Likewise.
736         * tree-inline.c: Likewise.
737         * tree-into-ssa.c: Likewise.
738         * tree-loop-distribution.c: Likewise.
739         * tree-loop-linear.c: Likewise.
740         * tree-mudflap.c: Likewise.
741         * tree-outof-ssa.c: Likewise.
742         * tree-parloops.c: Likewise.
743         * tree-predcom.c: Likewise.
744         * tree-pretty-print.c: Likewise.
745         * tree-scalar-evolution.c: Likewise.
746         * tree-ssa-live.c: Likewise.
747         * tree-ssa-loop-im.c: Likewise.
748         * tree-ssa-loop-ivcanon.c: Likewise.
749         * tree-ssa-loop-ivopts.c: Likewise.
750         * tree-ssa-loop-manip.c: Likewise.
751         * tree-ssa-loop-niter.c: Likewise.
752         * tree-ssa-loop-prefetch.c: Likewise.
753         * tree-ssa-phiprop.c: Likewise.
754         * tree-ssa-pre.c: Likewise.
755         * tree-ssa-reassoc.c: Likewise.
756         * tree-ssa-sccvn.c: Likewise.
757         * tree-ssa-structalias.c: Likewise.
758         * tree-ssa.c: Likewise.
759         * tree-vect-data-refs.c: Likewise.
760         * tree-vect-loop-manip.c: Likewise.
761         * tree-vect-loop.c: Likewise.
762         * tree-vect-patterns.c: Likewise.
763         * tree-vect-slp.c: Likewise.
764         * tree-vect-stmts.c: Likewise.
765         * tree-vrp.c: Likewise.
766         * tree.c: Likewise.
767         * value-prof.c: Likewise.
768         * var-tracking.c: Likewise.
769         * varasm.c: Likewise.
770         * vmsdbgout.c: Likewise.
771
772 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
773             Richard Guenther  <richard.guenther@gmail.com>
774
775         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
776         copy the src value and return a copy.
777         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
778         (C++ Volatiles): Adjust to describe C++ semantics only.
779
780 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
781
782         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
783         be zero or nonzero.
784         * doc/tm.texi: Regenerate.
785         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
786         * df-scan.c (df_get_exit_block_use_set), reginfo.c
787         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
788         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
789         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
790         to 1.
791
792 2010-08-20  Olivier Hainque  <hainque@adacore.com>
793
794         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
795         an extra nop past a sibling call at the very end.
796
797 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
798
799         PR bootstrap/45350
800         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
801         a comment.
802
803 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
804
805         * target.def (function_arg, function_incoming_arg): Remove const
806         qualifier on CUMULATIVE_ARGS parameter.
807         * targhooks.h (default_function_arg, default_function_incoming_arg):
808         Likewise.
809         * targhooks.c (default_function_arg, default_function_incoming_arg):
810         Likewise.
811         * config/i386/i386.c (ix86_function_arg): Likewise.
812
813 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
814
815         PR target/45336
816         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
817         SIGN_EXTENDs or ZERO_EXTENDs.
818
819 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
820
821         PR target/42172
822         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
823         Take its cost into account if nonnull.
824         (insn_a_feeds_b): New static function.
825         (combine_instructions): Look for four-insn combinations.
826         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
827         them into account when computing all_adjacent and looking for other
828         uses.
829         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
830         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
831         (try_combine): New arg I0.  Handle four-insn combinations.
832         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
833         like ELIM_I1.
834
835 2010-08-19  Jason Merrill  <jason@redhat.com>
836
837         PR c++/45307
838         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
839         if ctor is empty.
840         (gimplify_modify_expr_rhs): Adjust.
841
842 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
843
844         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
845         bitmap_bit_p.
846         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
847         * dominance.c (iterate_fix_dominators): Likewise.
848         * dse.c (set_usage_bits): Likewise.
849         (set_position_unneeded, record_store): Likewise.
850         * gimple-fold.c (get_maxval_strlen): Likewise.
851         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
852         * ipa-inline.c (update_caller_keys): Likewise.
853         * ipa-split.c (verify_non_ssa_vars): Likewise.
854         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
855         (close_type_exposed_parameter, close_type_full_escape): Likewise.
856         (close_addressof_down): Likewise.
857         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
858         (setup_allocno_left_conflicts_size): Likewise.
859         (ira_reassign_conflict_allocnos): Likewise.
860         (ira_reassign_pseudos): Likewise.
861         * ira-emit.c (change_loop): Likewise.
862         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
863         * lto-streamer-out.c (write_symbol): Likewise.
864         * predict.c (expr_expected_value_1): Likewise.
865         * regstat.c (regstat_bb_compute_ri): Likewise.
866         * sel-sched.c (create_block_for_bookkeeping): Likewise.
867         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
868         * stmt.c (expand_case): Likewise.
869         * tree-eh.c (emit_eh_dispatch): Likewise.
870         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
871         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
872         Likewise.
873         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
874         (rdg_build_components): Likewise.
875         * tree-object-size.c (collect_object_sizes_for): Likewise.
876         * tree-sra.c (convert_callers): Likewise.
877         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
878         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
879         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
880
881 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
882
883         * config/i386/i386.md (*lea_1): Use P mode iterator.
884         (lea add splitter): Also handle DImode operands.
885         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
886         predicate.  Do not use ix86_lea_for_add_ok.
887         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
888         (lea ashift splitter): Also handle DImode operands.
889         (DImode lea ashift splitter): Remove splitter.
890
891 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
892
893         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
894         ix86_binary_operator_ok.
895
896 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
897
898         PR rtl-optimization/44691
899         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
900         is not a register.
901
902 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
903
904         PR target/45070
905         * config/arm/arm.c (arm_output_epilogue): Ensure that return
906          value of size 1-3 is handled correctly.
907
908 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
909
910         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
911         type for the conditional has wide enough range.
912
913 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
914
915         PR target/45327
916         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
917         ix86_binary_operator_ok.
918
919 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
920
921         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
922         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
923         code to output insn mnemonic.  Fix comment.
924         (*addsi_1_zext): Add r-r-0 alternative 1.
925         <TYPE_LEA>: Split insn to lea.
926         <default>: Handle alternative 1.
927         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
928         multi-level if_then_else RTX to set "type" attribute.
929         <default>: Handle alternative 2.
930         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
931         Use cond RTX instead of multi-level if_then_else RTX to set
932         "type" attribute.
933         <default>: Handle alternatives 2 and 4.
934         (lea splitters): Update calls to ix86_lea_for_add_ok.
935
936         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
937         argument.
938         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
939
940 2010-08-18  Richard Guenther  <rguenther@suse.de>
941
942         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
943         use operand helpers.
944
945 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
946
947         PR middle-end/45292
948         * optabs.c (expand_bool_compare_and_swap): Expand pending
949         pops before trying the optab.
950
951 2010-08-18  Yao Qi  <yao@codesourcery.com>
952
953         PR target/45094
954         * config/arm/arm.c (output_move_double): Fix typo generating
955         instructions ('ldr'->'str').
956
957 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
958
959         PR rtl-optimization/42575
960         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
961         live ranges.
962
963 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
964
965         * config/arm/arm-protos.h (arm_expand_sync): New.
966         (arm_output_memory_barrier, arm_output_sync_insn): New.
967         (arm_sync_loop_insns): New.
968         * config/arm/arm.c (FL_ARCH7): New.
969         (FL_FOR_ARCH7): Include FL_ARCH7.
970         (arm_arch7): New.
971         (arm_print_operand): Support %C markup.
972         (arm_legitimize_sync_memory): New.
973         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
974         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
975         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
976         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
977         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
978         (arm_process_output_sync_insn, arm_output_sync_insn): New.
979         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
980         * config/arm/arm.h (struct arm_sync_generator): New.
981         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
982         (TARGET_HAVE_MEMORY_BARRIER): New.
983         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
984         * config/arm/arm.md: Include sync.md.
985         (UNSPEC_MEMORY_BARRIER): New.
986         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
987         (VUNSPEC_SYNC_OP):New.
988         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
989         (sync_result, sync_memory, sync_required_value): New attributes.
990         (sync_new_value, sync_t1, sync_t2): Likewise.
991         (sync_release_barrier, sync_op): Likewise.
992         (length): Add logic to length attribute defintion to call
993         arm_sync_loop_insns when appropriate.
994         * config/arm/sync.md: New file.
995
996 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
997
998         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
999         ENABLE_TREE_CHECKING.
1000         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
1001         and GCC >= 4.3.
1002
1003 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
1004
1005         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
1006         or optimizing for size, always avoid lea if possible.
1007
1008         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
1009
1010 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
1011
1012         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
1013         Dunmmy function with NULL return unless the target is
1014         OSX >= 10.6 (Darwin10).
1015
1016 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
1017
1018         * gcc.c (spec_function): Add remove-outfile.
1019         (remove_outfile_spec_function): New function.
1020         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
1021         * invoke.texi (replace-outfile): Document.
1022
1023 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
1024
1025         PR target/45296
1026         * reginfo.c (globalize_reg): Reject stack registers.
1027
1028 2010-08-17  Richard Guenther  <rguenther@suse.de>
1029
1030         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
1031         list of conditional equivalences.
1032         (free_all_edge_infos): Adjust.
1033         (record_equivalences_from_incoming_edge): Likewise.
1034         (record_cond): Likewise.
1035         (build_and_record_new_cond): Likewise.
1036         (record_conditions): Likewise.
1037         (dom_opt_leave_block): Likewise.
1038
1039 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
1040
1041         * doc/invoke.texi (ms-extension): Add documentation.
1042
1043 2010-08-17  Richard Guenther  <rguenther@suse.de>
1044
1045         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
1046
1047 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
1048
1049         PR c/40563
1050         * c-decl.c (diagnose_uninitialized_cst_member): New function.
1051         (finish_decl): Use it to issue a -Wc++-compat warning about
1052         uninitialized const field in struct or union.
1053
1054         (finish_struct): Use strip_array_types.
1055
1056 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
1057
1058         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
1059         functions.
1060         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
1061         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
1062         call block_nreverse here.
1063         (blocks_nreverse): Rename decl temporary to block.
1064
1065 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
1066
1067         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
1068         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
1069         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
1070         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
1071         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
1072         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
1073         thumb2_iorsi3): Delete.
1074         (orsi_notsi_si): No longer a named pattern.
1075         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
1076         * config/arm/predicates.md (shift_amount_operand): New.
1077         (mult_operator): New.
1078         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
1079         attr enabled): New.
1080         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
1081         arch matches t2.
1082         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
1083         (not_shiftsi_compare0): Likewise, renamed from
1084         arm_notsi_shiftsi_compare0.
1085         (not_shiftsi_compare0_scratch): Likweise, renamed from
1086         arm_notsi_shiftsi_compare0_scratch.
1087         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
1088         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
1089         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
1090         so that the register alternative is disabled when the shift_operator
1091         is MULT.  Use "M" as the constraint for constants.
1092         (arith_shiftsi splitter): Enable for TARGET_32BIT.
1093         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
1094         constraint for constants.
1095         (arith_shiftsi_compare0_scratch): Likewise.
1096         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
1097         Handle Thumb2 alternative.
1098
1099 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
1100
1101         * doc/options.texi (NoDriverArg): Document.
1102         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
1103         -MDX and -MMDX.
1104         * opt-functions.awk (switch_flags): Handle NoDriverArg.
1105         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
1106         marking for CL_NO_DRIVER_ARG options when in the driver.
1107         * opts.h (CL_NO_DRIVER_ARG): Define.
1108         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1109         CL_COMMON): Update values.
1110
1111 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
1112
1113         * common.opt: Add driver options.
1114         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
1115         * doc/options.texi (Driver, RejectDriver): Document.
1116         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
1117         print_prog_name, print_multi_directory, print_sysroot,
1118         print_multi_os_directory, print_multi_lib,
1119         print_sysroot_headers_suffix, report_times, combine_flag,
1120         use_pipes, wrapper_string): Remove.
1121         (save_switch, driver_unknown_option_callback,
1122         driver_wrong_lang_callback, driver_post_handling_callback,
1123         driver_handle_option): New.
1124         (spec_lang, last_language_n_infiles): Make file-scope static
1125         instead of local to process_command.
1126         (process_command): Use decode_cmdline_options_to_array and
1127         read_cmdline_option for option processing.  Compute have_c in
1128         prescan of decoded options.
1129         * opt-functions.awk (switch_flags): Handle Driver and
1130         RejectDriver.
1131         (var_type, var_type_struct): Handle Separate options as generating
1132         const char * variables.
1133         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
1134         CL_TARGET to be passed by caller if required.
1135         (decode_cmdline_options_to_array): Update comment.
1136         * opts.c (complain_wrong_lang): Handle options only valid for the
1137         driver.
1138         (decode_options): Update call to decode_cmdline_options_to_array.
1139         (print_filtered_help): Ignore driver-only options.
1140         (print_specific_help): Ignore CL_DRIVER.
1141         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
1142         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
1143         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
1144         Update values.
1145
1146 2010-08-16  Richard Guenther  <rguenther@suse.de>
1147
1148         * tree-cfg.c (verify_types_in_gimple_reference): Verify
1149         TARGET_MEM_REF a bit.
1150         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
1151         (create_mem_ref_raw): Always create TMR_OFFSET, store the
1152         alias pointer type via it.
1153         (copy_mem_ref_info): Adjust.
1154         (maybe_fold_tmr): Likewise.
1155         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
1156         (reference_alias_ptr_type): Likewise.
1157         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
1158         adjust documentation of TMR_OFFSET operand.
1159         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
1160         use the alias pointer type.
1161         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
1162         initialize mem attrs but the TMR itself.
1163         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
1164         similar to MEM_REF.
1165         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
1166         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
1167         (unshare_and_remove_ssa_names): Likewise.
1168         (copy_ref_info): Adjust.
1169         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
1170         TARGET_MEM_REF case.
1171         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
1172         at TMR_ORIGINAL.
1173         * tree.h (TMR_ORIGINAL): Remove.
1174         * gimple.c (get_base_address): For TARGET_MEM_REF with a
1175         symbol return that.
1176         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
1177         with a symbol.
1178         (get_addr_base_and_unit_offset): Likewise.
1179         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
1180         TARGET_MEM_REFs.
1181         (indirect_ref_may_alias_decl_p): Likewise.
1182         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
1183
1184 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
1185
1186         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
1187         with GCC version 4.6, the default setting (when not optimizing
1188         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
1189         been changed to -fomit-frame-pointer.
1190
1191 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
1192
1193         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
1194         Darwin10.  Do not link libgcc.a for Darwin >= 9.
1195
1196 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
1197
1198         * doc/invoke.texi (Warning Options): Fix terminology and markup
1199         in the description of how unknown warning options are handled.
1200
1201 2010-08-15  Ira Rosen  <irar@il.ibm.com>
1202
1203         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
1204         in basic blocks.
1205         (vect_supportable_dr_alignment): Check alignment for basic blocks.
1206         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
1207         data references.
1208         (vect_bb_vectorization_profitable_p): New function.
1209         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
1210         check if it's worthwhile to vectorize the basic block.
1211
1212 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
1213
1214         * reload.h (register_move_cost, memory_move_secondary_cost,
1215         secondary_reload_class): Adjust prototype.
1216         * rtl.h (reg_class_subset_p): Adjust prototype.
1217         * reload.c (secondary_reload_class): Change arguments type from
1218         enum reg_class to reg_class_t. Change result type to reg_class_t.
1219         * reginfo.c (register_move_cost, reg_class_subset_p): Change
1220         arguments type from enum reg_class to reg_class_t.
1221         (memory_move_secondary_cost): Change arguments type from
1222         enum reg_class to reg_class_t. Change type of saved_flags to
1223         reg_class_t.
1224
1225         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1226         Remove macros.
1227         (mips_cost): Remove.
1228         (struct mips_rtx_cost_data): Moved to mips.c.
1229         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
1230         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
1231         (mips_cost): Make static.
1232         (mips_canonicalize_move_class): Change argument type to reg_class_t.
1233         Change result type to reg_class_t.
1234         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
1235         type from enum reg_class to reg_class_t.
1236         (mips_register_move_cost): Make static. Change arguments
1237         type from enum reg_class to reg_class_t.
1238         (mips_memory_move_cost): New function.
1239         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1240
1241 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
1242
1243         PR rtl-optimization/43358
1244         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
1245         of a single hard register, using simplify_subreg_regno to decide
1246         what that register should be.
1247
1248 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
1249
1250         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
1251         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
1252         (loongson_pmull<V_suffix>): Rename to...
1253         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
1254
1255 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
1256
1257         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
1258         which support dwarf2.
1259         * config/i386/i386.c (override_options): Same.
1260
1261 2010-08-13  Jie Zhang  <jie@codesourcery.com>
1262
1263         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
1264
1265 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
1266
1267         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
1268         -MMD.
1269
1270 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
1271
1272         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
1273         up dot_prod pattern searching if a stmt is outside the loop.
1274
1275 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
1276             Uros Bizjak  <ubizjak@gmail.com>
1277
1278         * config.gcc: Handle --enable-frame-pointer.
1279
1280         * configure.ac: Add --enable-frame-pointer.
1281         * configure: Regenerated.
1282
1283         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
1284         (override_options): If not configured with --enable-frame-pointer,
1285         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
1286         optimizing for size), -fasynchronous-unwind-tables and
1287         -maccumulate-outgoing-args by default.
1288
1289 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
1290
1291         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
1292
1293         PR middle-end/45262
1294         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
1295         -a overflows.  Normalize the range.
1296
1297 2010-08-12  Richard Guenther  <rguenther@suse.de>
1298
1299         PR tree-optimization/45232
1300         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
1301         for types with undefined overflow.
1302         (reassociate_bb): Allow re-associating of bit and min/max
1303         operations for types with undefined overflow.
1304         * tree-ssa-forwprop.c (associate_plusminus): New function.
1305         (tree_ssa_forward_propagate_single_use_vars): Call it.
1306
1307 2010-08-12  Richard Guenther  <rguenther@suse.de>
1308
1309         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
1310         * tree-ssa-alias.c (get_ptr_info): Move ...
1311         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
1312         align and misalign fields conservatively.
1313         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
1314         derive alignment information.
1315         (evaluate_stmt): Derive alignment information from memory
1316         allocation functions.
1317         * tree.h (get_pointer_alignment): Make unsigned.
1318         * builtins.c (get_object_alignment): Use alignment information we
1319         have computed for pointers.
1320         (get_pointer_alignment): Likewise.  Make conservative, return
1321         and unsigned value.
1322         (expand_builtin_strlen): Adjust.
1323         (expand_builtin_memcmp): Likewise.
1324         (expand_builtin_strcmp): Likewise.
1325         (expand_builtin_strncmp): Likewise.
1326         (get_builtin_sync_mem): Use at least mode alignment.
1327         (fold_builtin_memset): Adjust.
1328         (fold_builtin_memory_op): Likewise.
1329         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
1330         information also dump pointer alignment knowledge.
1331         (dump_gimple_stmt): Likewise.
1332
1333 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
1334
1335         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
1336         (EMPTY_FIELD_BOUNDARY): Remove.
1337         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
1338
1339 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
1340
1341         PR debug/45259
1342         * caller-save.c (save_call_clobbered_regs): Only swap notes with
1343         DEBUG_INSNs if n_regs_saved.
1344
1345 2010-08-12  Wei Guozhi  <carrot@google.com>
1346
1347         PR target/44999
1348         * config/arm/arm.md (andsi3): Change to zero extension if possible.
1349         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
1350
1351 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
1352
1353         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
1354
1355         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
1356
1357 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1358
1359         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
1360         the case removed in the previous patch, when the only phi argument
1361         is defined in the same loop as the phi node itself.  Handle it
1362         separately from the invariant case by both propagating it outside
1363         the region and replacing the phi node with an assign.
1364
1365 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1366
1367         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
1368         constant phi nodes with one argument are is_gimple_min_invariant
1369         and SSA_NAME_IS_DEFAULT_DEF.
1370
1371 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1372
1373         * graphite-cloog-util.c (oppose_constraint):
1374         Extend loop counter's value range (CLOOG_ORG).
1375         (cloog_matrix_to_ppl_constraint): Same.
1376         (new_Constraint_System_from_Cloog_matrix): Same.
1377         * graphite-cloog-compat.h (matrix_num_type): New.
1378
1379 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1380
1381         * graphite.c (graphite_initialize): Do not initialize
1382         CLooG and initialize the Parma Polyhedra Library
1383         manually when using CLOOG_ORG.
1384         (graphite_finalize): Do not finalize CLooG and finalize
1385         the Parma Polyhedra Library manually when using CLOOG_ORG.
1386         * graphite-cloog-compat.h (cloog_initialize): Hide function
1387         when using CLOOG_ORG.
1388         (cloog_finalize): Same.
1389
1390 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1391
1392         * graphite-clast-to-gimple.c (free_scattering): Change
1393         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
1394         (CLOOG_ORG).
1395         (build_cloog_prog): Same.
1396         * graphite-cloog-compat.h (cloog_domain): Removed.
1397         (cloog_scattering): New.
1398         (cloog_set_domain): Removed.
1399         (cloog_set_scattering): New.
1400         (cloog_next_domain): Removed.
1401         (cloog_next_scattering): New.
1402         (cloog_set_next_domain): Removed.
1403         (cloog_set_next_scattering): New.
1404         (CloogScatteringList): New.
1405         (CloogScattering): New.
1406         (cloog_scattering_free): New.
1407         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
1408         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
1409         New.
1410
1411 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1412
1413         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
1414         CloogState.
1415         (set_cloog_options): Same.
1416         (print_clast_stmt): Same.
1417         (scop_to_clast): Same.
1418         (print_generated_program): Same.
1419         (gloog): Same.
1420         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
1421         (scop_to_clast): Extend with CloogState.
1422         * graphite-cloog-util.c: Include graphite-cloog-compat.h
1423         (new_Cloog_Domain_from_ppl_Polyhedron):
1424         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
1425         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
1426         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1427         * graphite-cloog-util.h (build_cloog_prog): Same.
1428         * graphite-cloog-copat.h (build_cloog_prog): New.
1429         (CloogState): New.
1430         (cloog_state_malloc): New.
1431         (cloog_state_free): New.
1432         (cloog_loop_malloc): New.
1433         (cloog_options_malloc): New.
1434         (cloog_statement_alloc): New.
1435         (cloog_domain_from_cloog_matrix): New.
1436         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1437         (new_Cloog_Domain_from_ppl_Polyhedron): New.
1438
1439 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1440
1441         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
1442         type of NAME now depends on used CLooG version.
1443         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
1444         (gcc_type_for_clast_expr): Same.
1445         (print_clast_stmt): Replace pprint with clast_pprint.
1446         * graphite-cloog-compat.h: Provide compatibility macros for
1447         CLooG Legacy.
1448         (clast_name_p): New.
1449         (clast_expr_term): New.
1450         (clast_expr_red): New.
1451         (clast_expr_bin): New.
1452         (clast_pprint): New.
1453
1454 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1455
1456         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
1457         compatible to newer CLooG releases (CLOOG_ORG).
1458         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
1459         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
1460         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
1461         (build_cloog_prog) : New.
1462         (cloog_program_extract_scalars): New.
1463         (cloog_program_scatter): New.
1464
1465 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1466
1467         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
1468         conditionally (CLOOG_ORG).
1469         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
1470         (cloog_statement_usr): New.
1471         (cloog_domain): Same.
1472         (cloog_set_domain): Same.
1473         (cloog_next_domain): Same.
1474         (cloog_set_next_domain): Same.
1475         (cloog_program_nb_scattdims): Same.
1476         (cloog_program_set_nb_scattdims): Same.
1477         (cloog_program_names): Same.
1478         (cloog_program_set_names): Same.
1479         (cloog_program_set_context): Same.
1480         (cloog_program_set_loop): Same.
1481         (cloog_program_blocklist): Same.
1482         (cloog_program_set_blocklist): Same.
1483         (cloog_program_scaldims): Same.
1484         (cloog_program_set_scaldims): Same.
1485         (cloog_names_nb_parameters): Same.
1486         (cloog_names_set_nb_parameters): Same.
1487         (cloog_names_parameters): Same.
1488         (cloog_names_set_parameters): Same.
1489         (cloog_names_set_nb_iterators): Same.
1490         (cloog_names_set_iterators): Same.
1491         (cloog_names_set_nb_scattering): Same.
1492         (cloog_names_set_scattering): Same.
1493         (cloog_statement_set_usr): Same.
1494         (cloog_loop_set_next): Same.
1495         (cloog_loop_set_domain): Same.
1496         (cloog_loop_set_block): Same.
1497         (cloog_block_list_next): Same.
1498         (cloog_block_list_set_next):
1499         (cloog_block_list_set_block): Same.
1500
1501 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1502
1503         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
1504         a bool.
1505         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1506         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1507         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
1508         when something has been changed.
1509         (rewrite_commutative_reductions_out_of_ssa): Same.
1510
1511 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1512
1513         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
1514         handle the case when def is in the sese region.
1515         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
1516         for invariant expressions.
1517         (rewrite_cross_bb_phi_deps): Removed.
1518         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1519         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1520         rewrite_cross_bb_phi_deps.
1521
1522 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1523
1524         * graphite-sese-to-poly.c
1525         (rewrite_commutative_reductions_out_of_ssa_loop): Call
1526         scev_analyzable_p only on is_gimple_reg
1527
1528 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1529
1530         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1531         (rewrite_close_phi_out_of_ssa): Propagate constant values or
1532         parametric expressions outside the scop region.
1533         (rewrite_cross_bb_scalar_deps): Same.
1534         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1535
1536 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1537
1538         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1539         SSA_NAME_DEF_STMT only on SSA_NAMEs.
1540
1541 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1542
1543         * tree-scalar-evolution.c (instantiate_scev_name): Do not
1544         instantiate default definitions.
1545
1546 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
1547             Sebastian Pop  <sebastian.pop@amd.com>
1548
1549         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1550         (loop_exits_from_bb_p): New.
1551         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1552         (loop_exits_from_bb_p): Declared.
1553         * graphite-scop-detection.c (scopdet_basic_block_info): Call
1554         loop_exits_to_bb_p.
1555
1556 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1557
1558         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1559         extra parameter for the region.  Call scev_analyzable_p.
1560         (rewrite_reductions_out_of_ssa): Update call to
1561         rewrite_close_phi_out_of_ssa.
1562         (rewrite_cross_bb_phi_deps): Same.
1563         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1564         parameter for the region.  Call scev_analyzable_p.
1565         (rewrite_commutative_reductions_out_of_ssa): Update call to
1566         rewrite_commutative_reductions_out_of_ssa_loop.
1567
1568 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1569
1570         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1571
1572 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1573
1574         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1575         SSA scalar phi nodes that can be scev_analyzable_p.
1576
1577 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1578
1579         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1580         handle SSA_NAME_IS_DEFAULT_DEF.
1581
1582 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1583
1584         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1585
1586 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1587
1588         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1589         case non close-phi nodes with one argument.
1590
1591 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1592
1593         * sese.h (scev_analyzable_p): Scevs could be expressions without
1594         chrecs and still be scev_analyzable_p.
1595
1596 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1597
1598         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1599
1600 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1601
1602         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1603         * cfgloop.h (struct loop): Remove single_iv field.
1604         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1605         (scop_canonicalize_loops): Removed.
1606         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
1607         over all the loop phi nodes in loop->header.
1608         (build_poly_scop): Remove use of scop_canonicalize_loops.
1609
1610 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1611
1612         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1613         handle GIMPLE_CALL.
1614
1615 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1616
1617         * tree-chrec.c (chrec_apply): Should only apply to the specified
1618         variable.  Also handle multivariate chains of recurrences that
1619         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
1620
1621 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1622
1623         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1624         (debug_clast_name_indexes_1): Removed.
1625         (debug_clast_name_indexes): Removed.
1626         (pbb_to_depth_to_oldiv): Removed.
1627         (build_iv_mapping): Replace the use of rename_map with iv_map.
1628         (translate_clast_user): Remove uses of rename_map.  Allocate and
1629         free iv_map.
1630         (translate_clast_for_loop): Remove uses of rename_map.
1631         (translate_clast_for): Same.
1632         (translate_clast_guard): Same.
1633         (translate_clast): Same.
1634         (gloog): Same.
1635         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1636         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1637         * sese.c (set_rename): Now static.
1638         (rename_variables_in_stmt): Removed.
1639         (rename_uses): New.
1640         (is_parameter): Removed.
1641         (is_iv): Removed.
1642         (expand_scalar_variables_call): Removed.
1643         (expand_scalar_variables_ssa_name): Removed.
1644         (expand_scalar_variables_expr): Removed.
1645         (expand_scalar_variables_stmt): Removed.
1646         (expand_scalar_variables): Removed.
1647         (rename_variables): Removed.
1648         (remove_condition): Removed.
1649         (get_true_edge_from_guard_bb): Removed.
1650         (get_false_edge_from_guard_bb): Removed.
1651         (struct igp): Removed.
1652         (default_before_guard): Removed.
1653         (convert_for_phi_arg): Removed.
1654         (add_guard_exit_phis): Removed.
1655         (insert_guard_phis): Removed.
1656         (graphite_copy_stmts_from_block): Now also uses iv_map and a
1657         region.  Do not copy conditions.  Do not copy induction variables.
1658         Call rename_uses.
1659         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1660         the translated statement.  Use the iv_map for the induction
1661         variable renaming.
1662         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1663         (set_rename): Removed declaration.
1664         (scev_analyzable_p): ...here.
1665         * tree-chrec.c (chrec_apply_map): New.
1666         * tree-chrec.h (chrec_apply_map): Declared.
1667
1668 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1669
1670         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1671         insert_loop_close_phis.
1672         * sese.c (name_defined_in_loop_p): Removed.
1673         (expr_defined_in_loop_p): Removed.
1674         (alive_after_loop): Removed.
1675         (close_phi_not_yet_inserted_p): Removed.
1676         (struct alep): Removed.
1677         (add_loop_exit_phis): Removed.
1678         (insert_loop_close_phis): Removed.
1679
1680 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1681
1682         * graphite-cloog-util.c
1683         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1684         * graphite-poly.c
1685         (psct_scattering_dim_for_loop_depth): Same.
1686
1687 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1688
1689         * graphite-cloog-util.h: Added cloog.h.
1690         * graphite-blocking.c: Removed cloog.h.
1691         * graphite-dependences.c: Same.
1692         * graphite-interchange.c: Same.
1693         * graphite-poly.c: Same.
1694         * graphite-ppl.c: Same.
1695         * graphite-scop-detection.c: Same.
1696         * graphite-sese-to-poly.c:
1697         Removed cloog.h.
1698         Removed graphite-clast-to-gimple.h.
1699         (check_poly_representation): Removed (unused).
1700         * graphite-sese-to-poly.h
1701         (check_poly_representation): Removed (unused).
1702
1703 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1704
1705         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1706         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1707         (graphite-cloog-util.o): New.
1708         (graphite-ppl.o): Added graphite-cloog-util.h.
1709         * graphite-clast-to-gimple.c:
1710         Added graphite-cloog-util.h to include statements.
1711         * graphite-cloog-util.c: New.
1712         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1713         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1714         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1715         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1716         (insert_constraint_into_matrix): Same.
1717         (ppl_Constrain_System_number_of_constraints): Same.
1718         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1719         (oppose_constraint): Same.
1720         (cloog_matrix_to_ppl_constraint): Same.
1721         (new_Constraint_System_from_Cloog_Matrix): Same.
1722         * graphite-cloog-util.h: New.
1723         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1724         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1725         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1726         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1727         (insert_constraint_into_matrix): Same.
1728         * graphite-ppl.c:
1729         Added graphite-cloog-util.h to include statements.
1730         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1731         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1732         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1733         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1734         (insert_constraint_into_matrix): Same.
1735         (ppl_Constrain_System_number_of_constraints): Same.
1736         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1737         (oppose_constraint): Same.
1738         (cloog_matrix_to_ppl_constraint): Same.
1739         (new_Constraint_System_from_Cloog_Matrix): Same.
1740         * graphite-ppl.h:
1741         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1742         graphite-cloog-util.h.
1743         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1744         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1745         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1746         (insert_constraint_into_matrix): Same.
1747
1748 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1749
1750         * graphite-clast-to-gimple.c
1751         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1752         (precision_for_interval): Same.
1753         (gcc_type_for_interval): Same.
1754         (compute_type_for_level): Same.
1755         * graphite-interchange.c
1756         (lst_interchange_profitable_p): Same.
1757         * graphite-poly.c
1758         (psct_scattering_dim_for_loop_depth): Same.
1759         * graphite-ppl.c
1760         (ppl_max_for_le_pointset): Same.
1761         (ppl_min_for_le_pointset): Same.
1762
1763 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1764
1765         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1766         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1767
1768 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1769
1770         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1771         rewrite_close_phi_out_of_ssa.
1772
1773 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1774
1775         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1776
1777 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1778
1779         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1780         rename_map.
1781         * sese.c (debug_rename_map): Same.
1782         (get_rename): Same.
1783         (set_rename): Same.
1784         (rename_variables_in_stmt): Same.
1785         (expand_scalar_variables_call): Same.
1786         (expand_scalar_variables_ssa_name): Same.
1787         (expand_scalar_variables_expr): Same.
1788         (expand_scalar_variables_stmt): Same.
1789         (expand_scalar_variables): Same.
1790         (rename_variables): Same.
1791         (graphite_copy_stmts_from_block): Same.
1792         (copy_bb_and_scalar_dependences): Same.
1793
1794 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1795
1796         * graphite-clast-to-gimple.c (copy_renames): Removed.
1797         (translate_clast_for): Do not call copy_renames.
1798         (translate_clast_guard): Same.
1799
1800 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1801
1802         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1803         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1804         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1805         before rewrite_cross_bb_scalar_deps.
1806
1807 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1808
1809         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1810         Early return in when flag_associative_math is not set.
1811
1812 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1813
1814         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1815         of SSA copies on edges except for loop->latch.
1816
1817 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1818
1819         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1820         Split out of rewrite_reductions_out_of_ssa.
1821         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1822         Declared.
1823         * graphite.c (graphite_transform_loops): Call it.
1824
1825 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1826
1827         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1828
1829 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1830
1831         * dbgcnt.def (graphite_scop): New counter.
1832         * graphite.c: Include dbgcnt.h.
1833         (graphite_transform_loops): Use new counter to limit transformations.
1834         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1835
1836 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1837
1838         * passes.c (init_optimization_passes): Add pass_graphite.
1839         Schedule a pass_copy_prop before pass_graphite_transforms.
1840         * timevar.def (TV_GRAPHITE): Declared.
1841         * tree-pass.h (pass_graphite): Declared.
1842         * tree-ssa-loop.c (pass_graphite): New.
1843
1844 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1845
1846         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1847         Remove calls to rename_nb_iterations and rename_sese_parameters.
1848         * graphite-clast-to-gimple.h (gloog): Update declaration.
1849         * graphite.c (graphite_transform_loops): Update call to gloog.
1850         * sese.c (rename_variables_in_expr): Removed.
1851         (rename_nb_iterations): Removed.
1852         (rename_sese_parameters): Removed.
1853         * sese.h (rename_nb_iterations): Removed.
1854         (rename_sese_parameters): Removed.
1855
1856 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1857
1858         * graphite-clast-to-gimple.c (gloog): Remove call to
1859         sese_adjust_liveout_phis.
1860         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1861         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1862         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1863         rewrite_phi_out_of_ssa.
1864         * sese.c (get_vdef_before_sese): Removed.
1865         (sese_adjust_vphi): Removed.
1866         (sese_adjust_liveout_phis): Removed.
1867         * sese.h (sese_adjust_liveout_phis): Removed.
1868
1869 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1870
1871         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1872         argument for the place after which to insert the out of SSA copy.
1873         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1874         (rewrite_phi_out_of_ssa): Same.
1875         (rewrite_cross_bb_scalar_deps): Same.
1876         (insert_copyout): Removed.
1877         (insert_copyin): Removed.
1878         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1879         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1880         insert_copyin.
1881
1882 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1883
1884         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1885         (rewrite_reductions_out_of_ssa): Same.
1886         (rewrite_commutative_reductions_out_of_ssa): Same.
1887         (build_poly_scop): Do not call these functions.
1888         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1889         (rewrite_reductions_out_of_ssa): Declared.
1890         (rewrite_commutative_reductions_out_of_ssa): Declared.
1891         * graphite.c (graphite_transform_loops): Call on every scop
1892         rewrite_commutative_reductions_out_of_ssa before calling
1893         rewrite_reductions_out_of_ssa and build_scop_bbs.
1894
1895 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1896
1897         * graphite-dependences.c (dot_deps): Make system call to dotty run
1898         in background.
1899         (dot_deps_stmt): Same.
1900         * graphite-poly.c (dot_lst): Same.
1901
1902 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1903
1904         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1905         phi_arg_in_outermost_loop.
1906         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1907         (remove_invariant_phi): Same.
1908
1909 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1910
1911         * target.def (output_addr_const_extra): New hook.
1912         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1913         * doc/tm.texi: Regenerate.
1914         * targhooks.c (default_asm_output_addr_const_extra): New function.
1915         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1916         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1917         target hook.
1918
1919         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1920         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1921         * config/i386/i386.h (output_addr_const_extra): Rename to...
1922         (i386_asm_output_addr_const_extra): ...this. Make static.
1923         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1924
1925 2010-08-11  Richard Henderson  <rth@redhat.com>
1926
1927         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1928
1929 2010-08-11  Nick Clifton  <nickc@redhat.com>
1930
1931         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1932         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1933         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1934         stormy16-lib2-cmpsi.c.
1935
1936         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1937         -O2.
1938
1939 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1940
1941         * opts.h (struct cl_option_handler_func): Make handler take
1942         cl_decoded_option structure as parameter, not individual elements.
1943         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1944         structure as parameter, not individual elements.
1945         (handle_option): Take cl_decoded_option structure as parameter,
1946         not individual elements.
1947         (handle_generated_option): Declare.
1948         * opts-common.c (handle_option): Take cl_decoded_option structure
1949         as parameter, not individual elements.  Update calls to callback
1950         and handler functions.
1951         (handle_generated_option): New.
1952         (read_cmdline_option): Update calls to callback functions and
1953         handle_option.
1954         * opts.c (common_handle_option, complain_wrong_lang,
1955         unknown_option_callback, post_handling_callback,
1956         lang_handle_option, target_handle_option): Take cl_decoded_option
1957         structure as parameter, not individual elements.
1958         (lang_handle_option, target_handle_option, common_handle_option):
1959         Assert option has at most one argument.
1960         (enable_warning_as_error): Call handle_generated_option instead of
1961         handle_option.  Do not pass -Werror argument as argument of
1962         generated option.
1963
1964 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1965
1966         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1967         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1968         (SUBWORD_BOOL_CAS): Likewise.
1969         (SUBWORD_SYNC_OP): Likewise.
1970         (SUBWORD_TEST_AND_SET): Likewise.
1971         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1972         (SUBWORD_SYNC_OP): Likewise.
1973         (OP_AND_FETCH_WORD): Likewise.
1974
1975 2010-08-10  Xinliang David Li  <davidxl@google.com>
1976
1977         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1978         compute max/min offset in address.
1979
1980 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1981
1982         * ira-live.c: Include sbitmap.h.
1983         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1984         Compress live ranges even more.
1985
1986 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1987
1988         * coverage.c (ctr_labels): Delete.
1989
1990 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1991
1992         PR bootstrap/45177
1993         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1994         test here from arm_gen_load_multiple_1.
1995         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1996         multiple_operation_profitable_p.
1997
1998 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1999
2000         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
2001         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
2002
2003 2010-08-10  Richard Henderson  <rth@redhat.com>
2004
2005         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
2006         after saving registers.  Assert that SSE registers are only saved
2007         with a sufficiently aligned frame.
2008         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
2009         remove stack_realign_fp handling.
2010         (ix86_expand_prologue): Save int registers before stack_realign_fp,
2011         and do not mark the stack alignment as frame related.
2012         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
2013
2014         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
2015         saves when re-aligning the stack.
2016
2017 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2018
2019         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
2020         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
2021         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
2022
2023 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
2024
2025         * dwarf2out.c (struct die_struct): Move die_tag to the end.
2026
2027 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
2028
2029         * config/arm/iterators.md: New file.
2030         * config/arm/arm.md: Include iterators.md.
2031         (QHSI): Move to new file.
2032         (LTUGEU, cnb, optab, ior_xor): Likewise.
2033         * config/arm/iwmmxt.md (VMMX): Move to new file.
2034         (VSHFT, MMX_char): Likewise.
2035         * config/arm/neon.md (VD): Move to new file.
2036         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
2037         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
2038         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
2039         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
2040         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
2041         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
2042         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
2043         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
2044         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
2045         (Is_d_reg, V_mode_nunits): Likewise.
2046         * config/arm/vec-common.md (VALL): Move to new file.
2047         (VALLW, VINT, VINTW): Likewise.
2048
2049 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
2050
2051         PR middle-end/45182
2052         * combine.c (make_compound_operation): Don't try to convert
2053         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
2054
2055 2010-08-10  Richard Guenther  <rguenther@suse.de>
2056
2057         * tree.h (get_object_alignment): Adjust prototype.
2058         * builtins.c (get_object_alignment): Return unsigned int,
2059         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
2060         and TARGET_MEM_REF properly.
2061         (get_pointer_alignment): Adjust.
2062         * emit-rtl.c (get_mem_align_offset): Adjust comment.
2063         (set_mem_attributes_minus_bitpos): Adjust.
2064         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
2065
2066 2010-08-10  Richard Guenther  <rguenther@suse.de>
2067
2068         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
2069         (copy_prop_visit_assignment): Simplify.
2070         (copy_prop_visit_stmt): Also visit assignments from
2071         constants.
2072         (copy_prop_visit_phi_node): Use operand_equal_p.
2073
2074 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2075
2076         * ipa-split.c (find_split_points): Free stack.
2077
2078 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2079
2080         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
2081         * tree.c (tree_node_kind): Delete corresponding entries.
2082
2083 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2084
2085         * alias.c (may_alias_p): Remove unused ret.
2086
2087 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
2088
2089         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
2090         alias_sets_conflict_p.
2091         (walk_mems_1): Moved from alias.c.
2092         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
2093         in alias.c.
2094         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
2095         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
2096         * alias.c (walk_mems_2): Moved to ddg.c.
2097         (walk_mems_1): Ditto.
2098         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
2099         to ddg.c.
2100         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
2101         disambiguation.
2102         *(may_alias_p): New function to check whether two memory expression
2103         may alias or not. Currently used in buidling inter-iteration memory
2104         dependence.
2105         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
2106         (insn_alias_sets_conflict_p): Removed
2107         *rtl.h (may_alias_p): New function prototype.
2108
2109 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2110
2111         * tree.c (nreverse): Assert that we don't have a BLOCK.
2112
2113 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
2114
2115         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
2116         * config/arm/arm.c (arm_get_pcs_model): Likewise.
2117         * config/avr/avr.c (init_cumulative_args): Likewise.
2118         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2119         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2120         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
2121         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
2122         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2123         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2124         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
2125         * dwarf2out.c (gen_subprogram_die): Likewise.
2126         * function.c (allocate_struct_function): Likewise.
2127         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
2128         (deserves_ellipsis): Delete.
2129
2130 2010-08-09  Richard Guenther  <rguenther@suse.de>
2131
2132         * tree-ssa-copy.c (cached_last_copy_of): Remove.
2133         (valueize_val): New function.
2134         (get_last_copy_of): Remove.
2135         (set_copy_of_val): Simplify.
2136         (dump_copy_of): Likewise.
2137         (copy_prop_visit_cond_stmt): Use valueize_val.
2138         (copy_prop_visit_phi_node): Properly handle unvisited names.
2139         Drop code managing copy-of chains.
2140         (init_copy_prop): Adjust.
2141         (fini_copy_prop): Likewise.
2142         (execute_copy_prop): Remove obsolete comment.
2143
2144 2010-08-09  Richard Guenther  <rguenther@suse.de>
2145
2146         PR middle-end/44632
2147         * function.c (gimplify_parameters): Do not clear addressable
2148         bit of the original parameter.
2149
2150 2010-08-09  Richard Guenther  <rguenther@suse.de>
2151
2152         PR middle-end/45212
2153         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
2154         alignment from MEM_REF offset only if we took it from the
2155         base object.
2156
2157 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
2158
2159         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
2160
2161 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2162
2163         * c-tree.h (build_arg_info): Declare.
2164         * c-decl.c (build_arg_info): Define.
2165         (get_parm_info): Call it.  Delete initialization code.
2166         * c-parser.c (c_parser_parms_declarator): Likewise.
2167         (c_parser_parms_list_declaractor): Likewise.
2168
2169 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2170
2171         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
2172         (struct c_arg_info): Change type of tags field.
2173         * c-decl.c (grokdeclarator): Update for changed type of tags field.
2174         (get_parm_info): Likewise.
2175         (store_parm_decls_newstyle): Likewise.
2176
2177 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
2178
2179         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
2180         (branch_island_list): Delete.
2181         (branch_islands): Declare.
2182         (add_compiler_branch_island): Adjust for branch_islands instead of
2183         branch_island_list.
2184         (macho_branch_islands): Likewise.
2185         (no_previous_def): Likewise.
2186         (get_prev_label): Likewise.
2187
2188 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2189
2190         PR boehm-gc/34544
2191         * gthr-posix.h (__gthread_start): Delete.
2192         (__gthread_active_init): Use pthread_default_stacksize_np instead of
2193         pthread_create to determine if hpux pthreads are active.
2194         * gthr-posix95.h (__gthread_start): Delete.
2195         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
2196
2197 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
2198
2199         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
2200         _WIN64 not expanded.
2201
2202 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
2203             H.J. Lu  <hongjiu.lu@intel.com>
2204
2205         PR target/45213
2206         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
2207         to output 32bit SFmode immediate as 8 byte sign extended value.
2208
2209 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2210
2211         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
2212         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
2213         (SUBWORD_BOOL_CAS): Likewise.
2214         (SUBWORD_SYNC_OP): Likewise.
2215         (SUBWORD_TEST_AND_SET): Likewise.
2216         (FETCH_AND_OP_WORD): Parenthesise INF_OP
2217         (SUBWORD_SYNC_OP): Likewise.
2218         (OP_AND_FETCH_WORD): Likewise.
2219
2220 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2221
2222         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
2223         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
2224         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
2225         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
2226         generic part.
2227         (cortex_a9_sched_adjust_cost): New function.
2228         (xscale_sched_adjust_cost): New function.
2229         * config/arm/arm-protos.h (struct tune_params): New field
2230         sched_adjust_cost.
2231         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
2232
2233 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
2234
2235         PR target/44942
2236         * config/sparc/sparc.c (function_arg_advance): Always take into account
2237         the padding, if any.
2238
2239 2010-08-06  Richard Guenther  <rguenther@suse.de>
2240
2241         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
2242         (dump_lattice_value): Dump it.
2243         (get_default_value): Adjust.
2244         (get_constant_value): Likewise.
2245         (set_value_varying): Likewise.
2246         (set_lattice_value): Make sure to not go up the lattice
2247         with bitwise constant values.
2248         (get_value_for_expr): Handle ADDR_EXPRs.
2249         (value_to_double_int): New function.
2250         (get_value_from_alignment): Likewise.
2251         (do_dbg_cnt): Adjust.
2252         (ccp_lattice_meet): Handle partially constant values.
2253         (bit_value_unop_1): New function.
2254         (bit_value_binop_1): Likewise.
2255         (bit_value_unop): Likewise.
2256         (bit_value_binop): Likewise.
2257         (evaluate_stmt): Track partially constant values if
2258         flag_tree_bit_ccp is set.
2259         (ccp_fold_stmt): Dump if we folded a predicate.
2260         (ccp_visit_stmt): Adjust.
2261         * common.opt (ftree-bit-ccp): New flag.
2262         * doc/invoke.texi (ftree-bit-ccp): Document.
2263         * opts.c (decode_options): Enable bit-CCP at -O1.
2264
2265 2010-08-06  Alan Modra  <amodra@gmail.com>
2266
2267         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
2268         and -mrelocatable-lib description.
2269
2270 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
2271
2272         From Martin Thuresson  <martint@google.com>
2273         * postreload.c (reload_cse_simplify_operands): Use
2274         SET_REGNO_RAW instead of SET_REGNO.
2275         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
2276         SET_REGNO.
2277         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
2278         instead of SET_REGNO.
2279         * rtl.h (SET_REGNO_RAW): New macro.
2280
2281 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
2282
2283         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
2284         computations.  Fix formatting issues.
2285         (num_sign_bit_copies1): Likewise.
2286         (canonicalize_condition): Likewise.
2287
2288 2010-08-05  Richard Henderson  <rth@redhat.com>
2289
2290         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
2291         (floor_log2): Use clz_hwi.
2292         (exact_log2): Use ctz_hwi.
2293         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
2294         * builtins.c (fold_builtin_bitop): Use them.
2295         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2296         * combine.c (get_pos_from_mask): Use ctz_hwi.
2297         * double-int.c (double_int_ctz): Likewise.
2298         * explow.c (force_reg): Likewise.
2299         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
2300
2301 2010-08-05  Richard Henderson  <rth@redhat.com>
2302
2303         PR target/45189
2304         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
2305         the alignment constant is properly sign-extended.
2306
2307 2010-08-05  Richard Guenther  <rguenther@suse.de>
2308
2309         * expr.c (store_expr): Use emit_block_move only if both
2310         source and target are MEMs.  Use store_bit_field if only
2311         the target is a MEM.
2312
2313 2010-08-05  Richard Henderson  <rth@redhat.com>
2314
2315         PR debug/45188
2316         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
2317         (INCOMING_RETURN_ADDR_RTX): Likewise.
2318         (dwarf2out_do_frame): Remove conditional compilation.
2319         (dwarf2out_frame_init): Likewise.
2320
2321 2010-08-05  Nicolas Setton  <setton@adacore.com>
2322
2323         * gcov.c (flag_display_progress): New static variable.
2324         (main): Display progress info on standard output if requested.
2325         (options): Add -d/--display-progress.
2326         (print_usage): Print them.
2327         (process_args): Handle them.
2328         * doc/gcov.texi: Document them.
2329
2330 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2331
2332         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
2333         (ipcp_insert_stage): Redirect only edges not flagged with
2334         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
2335         discovered constants.
2336
2337 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2338
2339         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
2340         (struct ipa_param_descriptor): New fields types and
2341         cannot_devirtualize.
2342         (ipa_param_cannot_devirtualize_p): New function.
2343         (ipa_param_types_vec_empty): Likewise.
2344         (ipa_make_edge_direct_to_target): Declare.
2345         * ipa-cp.c: Fixed first stage driver name in initial comment,
2346         described devirtualization there too.
2347         (ipcp_analyze_node): Call ipa_analyze_params_uses.
2348         (ipcp_print_all_lattices): Print devirtualization info.
2349         (ipa_set_param_cannot_devirtualize): New function.
2350         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
2351         lattice to BOTTOM.
2352         (ipcp_init_stage): Merged into...
2353         (ipcp_generate_summary): ...its caller.
2354         (ipcp_change_tops_to_bottom): Also process type lists.
2355         (ipcp_add_param_type): New function.
2356         (ipcp_copy_types): Likewise.
2357         (ipcp_propagate_types): Likewise.
2358         (ipcp_propagate_stage): Also propagate types.
2359         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
2360         Also return true if propagated types require it.
2361         (ipcp_update_callgraph): Dump redirection info.
2362         (ipcp_process_devirtualization_opportunities): New function.
2363         (ipcp_const_param_count): Include known type information.
2364         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
2365         on new node.  Fixed formatting.
2366         * ipa-prop.c (make_edge_direct_to_target): Renamed to
2367         ipa_make_edge_direct_to_target and changed all callers.  Made
2368         externally visible.
2369         (ipa_node_duplication_hook): Duplicate types vector.
2370         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
2371         redirect outgoing calls for which we can't get a decl from the
2372         statement.  Check that we can get a decl from the call statement.
2373         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2374         ipa_analyze_params_uses only when ipa-cp is disabled.
2375         * tree-inline.c (get_indirect_callee_fndecl): Removed.
2376         (expand_call_inline): Do not call get_indirect_callee_fndecl.
2377         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
2378         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
2379
2380 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2381
2382         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
2383         temporary. Emit move from temporary to accum, so REG_EQUAL note will
2384         be attached to this insn in correct mode.
2385
2386 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2387
2388         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
2389         using REGNO of base_reg directly.
2390
2391 2010-08-05  Jie Zhang  <jie@codesourcery.com>
2392
2393         PR tree-optimization/45144
2394         * tree-sra.c (type_consists_of_records_p): Return false
2395         if the record contains bit-field.
2396
2397 2010-08-04  Richard Henderson  <rth@redhat.com>
2398
2399         * config/i386/i386.c (struct ix86_frame): Remove padding and
2400         to_allocate members.
2401         (ix86_compute_frame_layout): Don't store them.
2402         (ix86_can_use_return_insn_p): Use a more direct and more obviously
2403         correct condition for the position of the stack pointer.
2404         (ix86_expand_prologue): Compute remaining stack allocation based
2405         on the ultimate stack pointer offset.
2406         (ix86_expand_epilogue): Use more obvious expressions testing for
2407         the stack pointer already pointing to the saved registers.
2408
2409         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
2410         duplication deconstructing the frame pointer.  Simplify
2411         deallocation of the local stack frame.
2412
2413         * reg-notes.def (CFA_EXPRESSION): New.
2414         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2415         (dwarf2out_frame_debug_cfa_expression): New.
2416         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
2417
2418         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
2419         * config/i386/i386.c (ix86_expand_prologue): Set it.
2420         (ix86_expand_epilogue): Clear it.
2421         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
2422         context, add REG_CFA_EXPRESSION notes.
2423
2424         * config/i386/i386.h (struct machine_frame_state): Rename from
2425         machine_cfa_state.  Add members tracking SP and FP regardless
2426         of the current CFA register.
2427         (ix86_cfa_state): Remove.
2428         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
2429         and sse_reg_save_offset members.
2430         (ix86_compute_frame_layout): Set them.
2431         (gen_push): Increment sp_offset too.
2432         (choose_baseaddr_len, choose_baseaddr): New.
2433         (ix86_emit_save_reg_using_mov): New.
2434         (ix86_emit_save_regs_using_mov): Use it.
2435         (ix86_emit_save_sse_regs_using_mov): Likewise.
2436         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
2437         compare vs the saved red_zone_offset.
2438         (pro_epilogue_adjust_stack): Adjust sp_offset.
2439         (ix86_adjust_stack_and_probe): Likewise.
2440         (ix86_expand_prologue): Set up, use, and validate the new
2441         frame_state_info members.  Use gen_frame_mem.
2442         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
2443         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
2444         new frame_state_info members.
2445         (ix86_emit_leave): Likewise.
2446         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
2447         out-of-range stack pointer offsets here.
2448         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2449         (ix86_expand_epilogue): Use and validate the new frame_state_info
2450         members.  Break up and simplify the logic selecting the
2451         restore_regs_via_mov code path.  Ensure that there will be no
2452         out-of-range stack pointer offsets.
2453
2454         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
2455
2456         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
2457         argument name to reflect the expected tree; fix indentation.
2458         (ix86_asm_output_function_label): Output the entire 32-bit
2459         ms_hook here as bytes ...
2460         (ix86_expand_prologue): ... not here as insns.  Attach the
2461         unwind info for the ms_hook to a blockage insn.
2462         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
2463         (ix86_ms_bitfield_layout_p): Fix indentation.
2464         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
2465
2466         * config/i386/i386.c (ix86_using_red_zone): New.
2467         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
2468         ix86_expand_prologue, ix86_force_to_memory): Use it.
2469
2470         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
2471         saving the int registers.
2472
2473         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
2474         and DWARF2_UNWIND_INFO conditional compilation.
2475
2476 2010-08-04  Richard Henderson  <rth@redhat.com>
2477
2478         PR debug/45171
2479         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
2480         an is_naming_typedef_decl.
2481
2482 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
2483
2484         PR rtl-optimization/45162
2485         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
2486         * dce.c (word_dce_process_block): Likewise.
2487
2488 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
2489
2490         PR target/44583
2491         * config/ia64/constraints.md (Z): New.
2492         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
2493         (xfreg_or_signed_fp01_operand): New.
2494         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
2495         with fr_reg_or_signed_fp01_operand and constraint G with Z.
2496         (subsf3): Ditto.
2497         (*maddsf4): Ditto.
2498         (*msubsf4): Ditto.
2499         (adddf3): Ditto.
2500         (adddf3_trunc): Ditto.
2501         (subdf3): Ditto.
2502         (*subdf3_trunc): Ditto.
2503         (*madddf4): Ditto.
2504         (*madddf4_trunc): Ditto.
2505         (*msubdf4): Ditto.
2506         (*msubdf4_trunc): Ditto.
2507         (addxf3): Replace xfreg_or_fp01_operand with
2508         xfreg_or_signed_fp01_operand and constraint G with Z.
2509         (*addxf3_truncsf): Ditto.
2510         (*addxf3_truncdf): Ditto.
2511         (subxf3): Ditto.
2512         (*subxf3_truncsf): Ditto.
2513         (*subxf3_truncdf): Ditto.
2514         (*maddxf4): Ditto.
2515         (*maddxf4_truncsf): Ditto.
2516         (*maddxf4_truncdf): Ditto.
2517         (*msubxf4): Ditto.
2518         (*msubxf4_truncsf): Ditto.
2519         (*msubxf4_truncdf): Ditto.
2520
2521 2010-08-04  Richard Guenther  <rguenther@suse.de>
2522
2523         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
2524         if either alias-set is zero.
2525
2526 2010-08-04  Richard Guenther  <rguenther@suse.de>
2527
2528         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
2529         * tree-ssa-ccp.c: ... here.
2530         * tree-ssa-copy.c: ... and here.
2531         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
2532         value_range_t): Move ...
2533         * tree-vrp.c: ... here.
2534         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
2535         (substitute_and_fold): Adjust prototype.
2536         * tree-ssa-propagate.c (replace_uses_in): Adjust.
2537         (replace_phi_args_in): Likewise.
2538         (substitute_and_fold): Take callback to query lattice instead
2539         of pointer to lattice.  Replace SSA name defs with lattice
2540         values first.
2541         * tree-ssa-ccp.c (ccp_finalize): Adjust.
2542         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
2543         (get_value): New function.
2544         (fini_copy_prop): Adjust.
2545         * tree-vrp.c (vrp_finalize): Adjust.
2546
2547 2010-08-04  Richard Guenther  <rguenther@suse.de>
2548
2549         PR middle-end/45176
2550         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
2551         points-to set for original MEM_REF.
2552
2553 2010-08-04  Richard Guenther  <rguenther@suse.de>
2554
2555         * tree-ssa-ccp.c (get_constant_value): New function.
2556         (get_rhs_assign_op_for_ccp): Remove.
2557         (valueize_op): New function.
2558         (ccp_fold): Use get_constant_value and valueize_op.
2559         (fold_const_aggregate_ref): Likewise.
2560         (ccp_fold_stmt): Likewise.
2561         (visit_assignment): Simplify.
2562
2563 2010-08-04  Richard Guenther  <rguenther@suse.de>
2564
2565         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
2566         * double-int.h (double_int_ctz): Declare.
2567         * double-int.c (double_int_ctz): New function.
2568
2569 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
2570
2571         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
2572         Define.
2573         picochip_expand_movmemhi : Expand movmem pattern.
2574         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
2575         Declare.
2576         * config/picochip/picochip.md (movmemhi) : New pattern.
2577
2578 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2579
2580         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
2581
2582 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
2583
2584         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
2585         NEG as operand of a MULT by merging it with the other operand.
2586         * combine.c (make_compound_operation): Use trunc_int_for_mode when
2587         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
2588         MULT.
2589         * config/arm/constraints.md (M): Examine only 32 bits of a
2590         HOST_WIDE_INT.
2591         * config/arm/predicates.md (power_of_two_operand): Likewise.
2592
2593 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2594
2595         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
2596         non-NOTE insns.
2597
2598 2010-08-03  Jan Hubicka  <jh@suse.cz>
2599
2600         * ipa-split.c (struct split_point): Add split_part_set_retval.
2601         (find_retval): Forward declare.
2602         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
2603         (consider_split): Compute current->split_part_set_retval.
2604         (visit_bb): Do not look into return value.
2605         (split_function): Handle !split_part_set_retval
2606
2607 2010-08-03  Martin Jambor  <mjambor@suse.cz>
2608
2609         * tree-sra.c (completely_scalarize_record): New parameter REF, create
2610         its own access->expr intead of using build_ref_for_offset.
2611
2612 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
2613
2614         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
2615         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
2616         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
2617         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
2618         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
2619         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
2620         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
2621         DEFAULT_SWITCH_TAKES_ARG.
2622         * config/rx/rx.opt (-patch=): Remove option.
2623         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2624         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2625         * doc/invoke.texi (RX Options): Remove -patch=.
2626         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2627         (option_map): Remove --profile-blocks, --quiet and --silent.
2628
2629 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2630
2631         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2632         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2633         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
2634         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2635         Update calls to ix86_expand_compare and ix86_expand_branch.
2636         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
2637         ix86_expand_compare.
2638         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
2639         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2640         Make static.
2641         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2642         and ix86_compare_op1.  Update calls to ix86_expand_compare.
2643         (ix86_expand_int_movcc): Ditto.
2644         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
2645         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2646         (ix86_expand_setcc): Ditto.
2647         (ix86_expand_compare): Remove prototype.
2648         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2649         ix86_compare_op0 and ix86_compare_op1.  Update calls
2650         to ix86_expand_branch to directly pass operands[1] and operands[2].
2651         (cbranchxf4): Ditto.
2652         (cbranch<MODEF:mode>4): Ditto.
2653         (cbranchcc4): Ditto.
2654         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2655         Update calls to ix86_expand_setcc to directly pass operands[2] and
2656         operands[3].
2657         (cstorexf4): Ditto.
2658         (cstore<MODEF:mode>4): Ditto.
2659         (cstorecc4): Ditto.
2660
2661 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2662
2663         PR target/45063
2664         * caller-save.c (save_call_clobbered_regs): Remove regs from
2665         hard_regs_saved when they are set.
2666
2667 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
2668
2669         PR target/41089
2670         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2671         as volatile.
2672
2673 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
2674
2675         * common.opt (ftree-loop-distribute-patterns): New.
2676         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2677         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2678         at -O3.
2679         * tree-data-ref.c (stores_zero_from_loop): New.
2680         * tree-data-ref.h (stores_zero_from_loop): Declared.
2681         * tree-loop-distribution.c (tree_loop_distribution): Call
2682         stores_zero_from_loop.
2683         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2684
2685 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2686
2687         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2688         into account.
2689
2690         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2691         * config/arm/arm.c (thumb1_code): New variable.
2692         (arm_override_options): Set it.
2693         (thumb1_final_prescan_insn): Keep track of condition code status.
2694         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2695         jumps that depend on them.
2696         * config/arm/arm.h (thumb1_code): Declare variable.
2697         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
2698         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2699         thumb1_cc_mode.
2700         (CC_STATUS_INIT): New macro.
2701         * config/arm/constraints.md (Pd): New constraint.
2702         * config/arm/predicates.md (noov_comparison_operator): New predicate.
2703         * config/arm/arm.md (is_thumb1): New define_attr.
2704         (conds): Set default to "clob" when generating Thumb1 code.
2705         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
2706         code are set.  Use two-operand assembly syntax.
2707         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
2708         pattern.
2709         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2710         codes are set.  Use two-operand assembly syntax.
2711         (zero_extendhisi splitter): Remove constraints.
2712         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2713         thumb1_movsf_insn): Set conds attribute as appropriate.
2714         (cbranchsi4_insn): Use condition code status from struct
2715         machine_function to determine whether the comparison can be eliminated.
2716         Discourage the alternative using high registers.
2717         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2718         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2719         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2720         subsi3_cbranch): Delete.
2721         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2722         one subtract and one cbranch insn.
2723
2724         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2725         thumb2_movdf_soft_insn): Delete patterns.
2726         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2727         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2728         (pool_range, neg_pool_range): Use them to define defaults.
2729         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2730         and allow for TARGET_32BIT.
2731
2732         PR target/40457
2733         * config/arm/arm.h (arm_regs_in_sequence): Declare.
2734         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2735         load_multiple_sequence, store_multiple_sequence): Delete
2736         declarations.
2737         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2738         declarations.
2739         * config/arm/ldmstm.md: New file.
2740         * config/arm/arm.c (arm_regs_in_sequence): New array.
2741         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
2742         CHECK_REGS.  All callers changed.
2743         If SAVED_ORDER is nonnull, copy the computed order into it.
2744         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
2745         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
2746         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
2747         If SAVED_ORDER is nonnull, copy the computed order into it.
2748         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
2749         like REGS.  Handle Thumb mode.
2750         (arm_gen_load_multiple_1): New function, broken out of
2751         arm_gen_load_multiple.
2752         (arm_gen_store_multiple_1): New function, broken out of
2753         arm_gen_store_multiple.
2754         (arm_gen_multiple_op): New function, with code from
2755         arm_gen_load_multiple and arm_gen_store_multiple moved here.
2756         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2757         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
2758         changed.
2759         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2760         * config/arm/predicates.md (commutative_binary_operator): New.
2761         (load_multiple_operation, store_multiple_operation): Handle more
2762         variants of these patterns with different starting offsets.  Handle
2763         Thumb-1.
2764         * config/arm/arm.md: Include "ldmstm.md".
2765         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2766         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2767         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2768         peepholes): Delete.
2769         * config/arm/ldmstm.md: New file.
2770         * config/arm/arm-ldmstm.ml: New file.
2771
2772         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2773         if statement which adds extra costs to frame-related expressions.
2774
2775 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2776
2777         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2778
2779 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
2780
2781         PR target/45142
2782         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2783         alternative 2.
2784         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2785         split V4SI operands.
2786
2787 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
2788
2789         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2790         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2791         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2792         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2793
2794 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2795
2796         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2797         LOCAL_INCLUDE_DIR.
2798
2799 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2800
2801         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2802         used in the call to optab_for_tree_code.  Fix the second
2803         is_widening_mult_p call.  Check that both unwidened operands
2804         have the same sign.
2805
2806 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2807
2808         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2809
2810 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2811
2812         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2813
2814 2010-07-30  DJ Delorie  <dj@redhat.com>
2815
2816         * config/rx/predicates.md (rx_constshift_operand): New.
2817         * config/rx/rx.md (zs_cond): New.
2818         (cbranchsi4): Remove mode.
2819         (*cbranchsi4_<code>): Likewise.
2820         (*tstbranchsi4_<code>): New.
2821         (*tstbranchsi4r_<code>): New.
2822         (*tstbranchsi4m_eq): New.
2823         (*tstbranchsi4m_ne): New.
2824         (cbranchsf4): Remove mode.
2825         (*cbranchsf4_<code>): Likewise.
2826
2827 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2828
2829         * rtlanal.c (simplify_subreg_regno): Don't treat
2830         HARD_FRAME_POINTER_REGNUM specially.
2831
2832 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2833
2834         * common.opt (-G): Don't define option here.
2835         * config/g.opt: New.
2836         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2837         rs6000/powerpc and score targets.
2838         * opts.c (common_handle_option): Don't handle -G here.
2839         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2840         * config/frv/frv.c (frv_handle_option): Handle -G.
2841         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2842         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2843         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2844         * config/mips/mips.c (mips_handle_option): Handle -G.
2845         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2846         * config/score/score.c (score_handle_option): Handle -G.
2847
2848 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2849
2850         * config/mmix/mmix.c: Include basic-block.h.
2851
2852 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2853
2854         PR debug/45055
2855         PR rtl-optimization/45137
2856         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2857         prototypes.
2858         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2859         New functions.
2860         * combine.c (next_nonnote_nondebug_insn): Removed.
2861         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2862         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2863         * sched-deps.c (sched_analyze_insn): Likewise.
2864         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2865         * rtlanal.c (canonicalize_condition): Likewise.
2866         * postreload.c (reload_combine_recognize_pattern): Likewise.
2867         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2868
2869 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2870
2871         * config/i386/i386.md (int_cond): Remove code iterator.
2872         (fp_cond): Ditto.
2873         (cbranch<mode>4): Use ordered_comparison_operator predicate
2874         for operator0.
2875         (cstore<mode>4): Ditto for operator1.
2876         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2877         (add<mode>cc): ditto.
2878
2879 2010-07-30  Richard Guenther  <rguenther@suse.de>
2880
2881         PR middle-end/45141
2882         * expr.c (expand_expr_real_1): Check for not handled base address.
2883
2884 2010-07-30  Richard Guenther  <rguenther@suse.de>
2885
2886         * ipa-prop.c (ipa_modify_formal_parameters): Use
2887         build_distinct_type_copy.
2888
2889 2010-07-30  Anthony Green  <green@moxielogic.com>
2890
2891         * config/moxie/rtems.h: New file.
2892         * config.gcc: Add moxie-rtems support.
2893
2894 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2895
2896         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2897         df flags as in run_fast_df_dce.
2898
2899 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2900
2901         Revert:
2902         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2903
2904         * rtl.def (NOTE): Swap operands 4 and 5.
2905         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2906         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2907         Adjust accordingly.
2908         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2909
2910 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2911
2912         PR debug/45110
2913         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2914         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2915         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2916         formal parameters.
2917         (gen_decl_die): Change return type to dw_die_ref, return what
2918         gen_formal_parameter_die returned.
2919
2920 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2921
2922         * dbgcnt.def (eipa_sra): New counter.
2923         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2924
2925 2010-07-29  Xinliang David Li  <davidxl@google.com>
2926
2927         PR bootstrap/45119
2928         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2929         in revision 162652.
2930
2931 2010-07-29  Richard Guenther  <rguenther@suse.de>
2932
2933         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2934         (TV_TREE_STORE_CCP): Likewise.
2935         (TV_TREE_REDPHI): Likewise.
2936
2937 2010-07-29  Richard Guenther  <rguenther@suse.de>
2938
2939         * double-int.h (double_int_and_not): New function.
2940         * combine.c (try_combine): Use it.
2941         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2942
2943 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2944
2945         PR rtl-optimization/42575
2946         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2947         Argument AU removed.  All callers changed.  Ignore artificial refs.
2948         Use return value of df_word_lr_simulate_defs to decide whether an insn
2949         is necessary.
2950         (fast_dce): Rename arg to WORD_LEVEL.
2951         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2952         static.
2953         (pass_fast_rtl_byte_dce): Delete.
2954         * dce.h (run_word_dce): Declare.
2955         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2956         All callers changed.  Simplify code to only deal with two-word regs.
2957         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2958         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2959         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2960         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2961         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2962         (df_word_lr_mark_ref): Declare.
2963         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2964         df_word_lr_simulate_uses): Declare or rename from byte variants.
2965         (df_byte_lr_simulate_artificial_refs_at_top,
2966         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2967         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2968         declarations.
2969         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2970         (enum df_mm): Delete.
2971         * df-byte-scan.c: Delete file.
2972         * df-problems.c (df_word_lr_problem_data): Renamed from
2973         df_byte_lr_problem_data, all members deleted except for
2974         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2975         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2976         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2977         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2978         df_byte_lr_confluence_0): Delete functions.
2979         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2980         callers changed.
2981         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2982         Don't initialize members that were deleted, don't try to discover data
2983         about registers.  Ignore hard regs.
2984         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2985         (df_word_lr_mark_ref): New function.
2986         (df_word_lr_bb_local_compute): Renamed from
2987         df_byte_bb_lr_local_compute; all callers changed.  Use
2988         df_word_lr_mark_ref.  Assert that artificial refs don't include
2989         pseudos.  Ignore hard registers.
2990         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2991         Assert that exit block uses don't contain pseudos.
2992         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2993         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2994         callers changed.  Ignore hard regs.
2995         (df_word_lr_transfer_function): Renamed from
2996         df_byte_lr_transfer_function; all callers changed.
2997         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2998         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2999         changed.
3000         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
3001         callers changed.
3002         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
3003         confluence operator 0 set to NULL.
3004         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
3005         callers changed.
3006         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
3007         Return bool, true if bitmap changed or insn otherwise necessary.
3008         All callers changed.  Simplify using df_word_lr_mark_ref.
3009         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
3010         all callers changed.  Simplify using df_word_lr_mark_ref.
3011         * lower-subreg.c: Include "dce.h"
3012         (decompose_multiword_subregs): Call run_word_dce if df available.
3013         * Makefile.in (lower-subreg.o): Adjust dependencies.
3014         (df-byte-scan.o): Delete.
3015         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
3016
3017 2010-07-29  Richard Guenther  <rguenther@suse.de>
3018
3019         * tree.c (build_vector): Assert that the vector constant
3020         has enough elements.
3021         (build_vector_from_ctor): Pad with trailing zeros.
3022
3023 2010-07-29  Richard Guenther  <rguenther@suse.de>
3024
3025         PR tree-optimization/45120
3026         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3027         Handle offset in DEREFs properly.
3028         (get_constraint_for_1): Handle MEM_REF offset properly.
3029
3030 2010-07-29  Richard Guenther  <rguenther@suse.de>
3031
3032         PR middle-end/45034
3033         * convert.c (convert_to_integer): Always use an unsigned
3034         type for narrowed negate and bitwise not.
3035
3036 2010-07-29  Ira Rosen  <irar@il.ibm.com>
3037
3038         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
3039         to outer loop when creating reduction epilogue for double reduction,
3040         and switch back to the inner loop when updating the phi nodes.
3041         Update uses of outer loop exit phi nodes in double reduction (instead
3042         of uses of reduction).
3043
3044 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
3045
3046         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
3047         popcount on power7 and parity on power6 systems.
3048         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
3049         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
3050         instructions.
3051
3052         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
3053         (UNSPEC_PARITY): Ditto.
3054         (SFDF): New iterator for SF/DF.
3055         (rreg2): New mode attribute for floating register constraint.
3056         (TARGET_FLOAT): New mode attribute for whether single/double float
3057         is supported.
3058         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
3059         pattern.
3060         (parity<mode>2_cmpb): New insn for parity on power6 and newer
3061         machines.
3062         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
3063         pattern.  Add support for fcpsgn instruction added in power6.
3064         (copysignsf3): Delete.
3065         (copysigndf3): Delete.
3066         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
3067         instead of if_then_else in RTL to avoid problems with -0.
3068
3069         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
3070         of if_then_else to mirror scalar code.
3071         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
3072         rs6000.md.
3073
3074         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
3075         instead of if_then_else.
3076
3077 2010-07-28  Xinliang David Li  <davidxl@google.com>
3078
3079         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
3080         (dump_cand): Dump var_before/after.
3081         (htab_inv_expr_eq): New function.
3082         (htab_inv_expr_hash): New function.
3083         (tree_ssa_iv_optimize_init): Support pseudo invariants.
3084         (add_candidate_1): consider base type precision.
3085         (set_use_iv_cost): New parameter.
3086         (adjust_setup_cost): Use profile information.
3087         (get_address_cost): Do not hard code width in computing address
3088         offset limits.
3089         (compare_aff_trees): New function.
3090         (get_loop_invariant_expr_id): New function.
3091         (get_computation_cost_at): New parameter and use profile information.
3092         (get_computation_cost): New parameter.
3093         (determine_use_iv_cost_generic): Pass new parameter.
3094         (determine_use_iv_cost_address): Ditto.
3095         (determine_use_iv_cost_condition): Ditto.
3096         (autoinc_possible_for_pair): Ditto.
3097         (determine_use_iv_costs): More dumps.
3098         (iv_ca_get_num_inv_exprs): New function.
3099         (iv_ca_recount_cost): Consider loop invariants in register pressure
3100         cost.
3101         (iv_ca_add_use): New parameter.
3102         (iv_ca_dump): Better dumping.
3103         (iv_ca_extend): New parameter.
3104         (try_add_cand_for): Attempt to get better partial solution.
3105         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
3106         (create_new-ivs): More dumps.
3107         (rewrite_use_compare): Ditto.
3108         (free_loop_data): More cleanup.
3109         (treee_ssa_iv_optimize_finalize): Ditto.
3110
3111 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
3112
3113         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
3114         * config/i386/i386.c (ix86_profile_before_prologue): New.
3115         (override_options): Add special handling for -mfentry.
3116         (ix86_function_regparm): Likewise.
3117         (ix86_function_sseregparm): Likewise.
3118         (ix86_frame_pointer_required): Likewise.
3119         (ix86_expand_prologue): Check for ms_hook_prologue.
3120         (x86_function_profiler): Adjust mcount output.
3121         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
3122         * config/i386/i386.opt (mfentry): New.
3123         * doc/invoke.texi (mfentry): Add documentation.
3124         * doc/tm.texi: Regenerated..
3125         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
3126         * final.c (final_start_function): Replace macro
3127         PROFILE_BEFORE_PROLOGUE by target hook.
3128         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3129         * target.def (profile_before_prologue): New hook.
3130         * targhooks.c (default_profile_before_prologue): New.
3131         * targhooks.h (default_profile_before_prologue): New.
3132
3133 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
3134
3135         PR debug/45105
3136         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
3137
3138         PR debug/45103
3139         * dwarf2out.c (dwarf2out_var_location): Always consider
3140         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
3141
3142 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
3143
3144         PR rtl-optimization/45107
3145         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
3146
3147 2010-07-28  Richard Guenther  <rguenther@suse.de>
3148
3149         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
3150         (set_lattice_value): Do not query an old default value.
3151         (get_value_for_expr): New function.  Properly canonicalize
3152         float values.
3153         (ccp_visit_phi_node): Use it.
3154
3155 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
3156
3157         * config/arm/arm.c (arm_pcs_default): Remove static.
3158         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
3159         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
3160         (arm_pcs_default): Declare.
3161
3162 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
3163
3164         * config/rs6000/rs6000.c (rs6000_override_options):
3165         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
3166         ... to darwin_rs6000_override_options.
3167         (rs6000_return_in_memory): Update preceding comment for darwin
3168         64 bit ABI.  Use TARGET_MACHO inline.
3169         (rs6000_darwin64_struct_check_p): New.
3170         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
3171         (function_arg): Likewise.
3172         (rs6000_arg_partial_bytes): Likewise.
3173         (rs6000_function_value): Likewise.
3174
3175 2010-07-28  Andi Kleen <ak@linux.intel.com>
3176
3177         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
3178
3179 2010-07-28  Richard Guenther  <rguenther@suse.de>
3180
3181         PR middle-end/44903
3182         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
3183         targets try harder to not generate unaligned accesses.
3184
3185 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
3186
3187         PR rtl-optimization/45101
3188         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
3189         for gcse-las.
3190
3191 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
3192
3193         PR tree-optimization/44885
3194         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
3195         with non-aliased component.
3196
3197 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
3198
3199         * config/darwin-driver.c (SWITCH_TAKES_ARG,
3200         WORD_SWITCH_TAKES_ARG): Remove.
3201         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
3202         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
3203         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
3204         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
3205         definitions from gcc.c.
3206         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
3207         defaults.h.
3208         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
3209         Move to defaults.h.
3210         * opts-common.c: Include tm.h.
3211         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
3212         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
3213         Handle more than one argument.  Set canonical_option_num_elements.
3214         (decode_cmdline_options_to_array): Set
3215         canonical_option_num_elements and trailing elements of
3216         canonical_option.
3217         * opts.h (struct cl_decoded_option): Allow four elements in
3218         canonical_option.  Add field canonical_option_num_elements.
3219         * Makefile.in (opts-common.o): Update dependencies.
3220
3221 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
3222
3223         PR middle-end/44790
3224         PR middle-end/44993
3225         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
3226         sure the base has address_mode before adding the offset.
3227
3228 2010-07-27  Xinliang David Li <davidxl@google.com>
3229
3230         * tree-flow.h (create_mem_ref): Add one new parameter.
3231         * tree-ssa-address.c (create_mem_ref): New parameter.
3232         (addr_to_parts): Ditto.
3233         (move_variant_to_index): New function.
3234         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
3235
3236 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3237
3238         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
3239         4 and 5.
3240         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
3241         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
3242         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
3243         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
3244         CODE_LABELs and NOTEs.
3245         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
3246         * combine.c (try_combine): Likewise.
3247         * ira.c (setup_prohibited_mode_move_regs): Likewise.
3248         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
3249
3250 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3251
3252         * coretypes.h (struct cl_option_handlers): Declare.
3253         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
3254         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
3255         * langhooks-def.h (lhd_handle_option): Declare.
3256         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
3257         * langhooks.c (lhd_handle_option): New.
3258         * langhooks.h (struct lang_hooks): Update prototype and return
3259         value type of handle_option hook.
3260         * optc-gen.awk: Generate target_flags_explicit definition for the
3261         driver.
3262         * opts-common.c: Include diagnostic.h.
3263         (handle_option): Move from opts.c.  Update prototype and return
3264         value type.  Use handlers structure.
3265         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
3266         handlers structure.
3267         (set_option): Move from opts.c.
3268         * opts.c (common_handle_option): Update prototype and return value
3269         type.  Update calls to handle_option and enable_warning_as_error.
3270         (unknown_option_callback, post_handling_callback,
3271         lang_handle_option, target_handle_option): New.
3272         (handle_option, read_cmdline_option): Move to opts-common.c.
3273         (read_cmdline_options): Update prototype.  Update call to
3274         read_cmdline_option.
3275         (decode_options): Initialize and use handlers structure.
3276         (set_option): Move to opts-common.c.
3277         (enable_warning_as_error): Update prototype.  Update call to
3278         handle_option.
3279         * opts.h (struct cl_option_handler_func, struct
3280         cl_option_handlers): New.
3281         (handle_option, enable_warning_as_error): Update prototypes.
3282         (read_cmdline_option): Declare.
3283         * Makefile.in (opts-common.o): Update dependencies.
3284
3285 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3286
3287         * config/arm/arm.c (params.h): Include.
3288         (arm_override_options): Tune gcse-unrestricted-cost.
3289         * config/arm/t-arm (arm.o): Define dependencies.
3290
3291 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3292
3293         PR target/42495
3294         PR middle-end/42574
3295         * basic-block.h (get_dominated_to_depth): Declare.
3296         * dominance.c (get_dominated_to_depth): New function, use
3297         get_all_dominated_blocks as a base.
3298         (get_all_dominated_blocks): Use get_dominated_to_depth.
3299
3300         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
3301         (hoist_exprs): Remove.
3302         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
3303         (compute_code_hoist_vbeinout): Add debug print outs.
3304         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
3305
3306         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
3307         quadratic behavior.
3308         * params.h (MAX_HOIST_DEPTH): New macro.
3309         * doc/invoke.texi (max-hoist-depth): Document.
3310
3311 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3312
3313         PR rtl-optimization/40956
3314         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
3315         constants.
3316
3317 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3318
3319         PR target/42495
3320         PR middle-end/42574
3321         * config/arm/arm.c (legitimize_pic_address): Use
3322         gen_calculate_pic_address pattern to emit calculation of PIC address.
3323         (will_be_in_index_register): New function.
3324         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
3325         (thumb1_legitimate_address_p): Use it provided !strict_p.
3326         * config/arm/arm.md (calculate_pic_address): New expand and split.
3327
3328 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3329
3330         PR target/42495
3331         PR middle-end/42574
3332         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
3333         * config/arm/arm.md (define_split "J", define_split "K"): Make
3334         IRA/reload friendly.
3335
3336 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3337
3338         * gcse.c (insert_insn_end_basic_block): Update signature, remove
3339         unused checks.
3340         (pre_edge_insert, hoist_code): Update.
3341
3342 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3343
3344         PR target/42495
3345         PR middle-end/42574
3346         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
3347
3348 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3349
3350         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
3351
3352 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3353
3354         PR rtl-optimization/40956
3355         PR target/42495
3356         PR middle-end/42574
3357         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
3358         for hoisting.
3359         (hoist_code): Count occurences in current block too.
3360
3361 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3362
3363         * gcse.c (struct expr:max_distance): New field.
3364         (doing_code_hoisting_p): New static variable.
3365         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
3366         simple expressions, don't change behavior for PRE.  Set max_distance.
3367         (insert_expr_in_table): Set new max_distance field.
3368         (hash_scan_set): Update.
3369         (hoist_expr_reaches_here_p): Stop search after max_distance
3370         instructions.
3371         (find_occr_in_bb): New static function.  Use it in ...
3372         (hoist_code): Calculate sizes of basic block before any changes are
3373         done.  Pass max_distance to hoist_expr_reaches_here_p.
3374         (one_code_hoisting_pass): Set doing_code_hoisting_p.
3375
3376         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
3377         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
3378         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
3379         macros.
3380         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
3381         Document.
3382
3383 2010-07-27  Jeff Law  <law@redhat.com>
3384             Maxim Kuvyrkov  <maxim@codesourcery.com>
3385
3386         * gcse.c (compute_transpout, transpout): Remove, move logic
3387         to prune_expressions.
3388         (compute_pre_data): Move pruning of trapping expressions ...
3389         (prune_expressions): ... here.  New static function.
3390         (compute_code_hoist_data): Use it.
3391         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
3392
3393 2010-07-27  Xinliang David Li  <davidxl@google.com>
3394
3395         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
3396         (rewrite_use_address): Adjust iv update position when needed.
3397
3398 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3399
3400         * dbgcnt.def (hoist_insn): New debug counter.
3401         * gcse.c (hoist_code): Use it.
3402
3403 2010-07-27  Xinliang David Li  <davidxl@google.com>
3404
3405         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
3406         (niter_for_single_dom_exit): Passes additional parameter.
3407         (iv_period): Fix comments.
3408         (may_eliminate_iv): Handles multiple exit loops properly.
3409         (free_tree_niter_desc): New function.
3410         (free_loop_data): Frees up loop iteration descriptors.
3411
3412 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3413
3414         PR target/44542
3415         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
3416         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
3417         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
3418         (expand_one_var): Don't consider DECL_ALIGN for variables for
3419         which expand_one_stack_var_at has been already called.
3420
3421         PR testsuite/44701
3422         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
3423         constraints on IA-64.
3424
3425 2010-07-27  Jie Zhang  <jie@codesourcery.com>
3426
3427         PR target/44290
3428         Revert:
3429         2010-07-23  Jie Zhang  <jie@codesourcery.com>
3430
3431         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3432         false if ! tree_versionable_function_p.
3433
3434 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3435
3436         * dwarf2out.c (add_data_member_location_attribute): Use
3437         add_AT_unsigned instead of add_AT_int if offset is non-negative.
3438
3439 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3440
3441         * postreload.c (try_replace_in_use): New static function.
3442         (reload_combine_recognize_const_pattern): Use it here.  Allow
3443         substituting into a final add insn, and substituting into a memory
3444         reference in an insn that sets the reg.
3445
3446 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3447
3448         * common.opt (o): Add MissingArgError.
3449         * doc/options.texi (MissingArgError): Document.
3450         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
3451         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
3452         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3453         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
3454         * langhooks.h (struct lang_hooks): Remove missing_argument.
3455         * optc-gen.awk: Handle MissingArgError and output new structure
3456         field initializers.
3457         * opts.c (read_cmdline_option): Use missing_argument_error field
3458         instead of missing_argument langhook.
3459         * opts.h (struct cl_option): Add missing_argument_error field.
3460         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
3461
3462 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3463
3464         PR target/29090
3465         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
3466         Darwin64 ABI, for zero-sized objects.
3467
3468 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3469
3470         PR target/35491
3471         PR target/29090
3472
3473         Merge from Apple local 4.2.1.
3474         2005-05-11  Stan Shebs  <shebs@apple.com>
3475         Fix 64-bit varargs for Darwin (Radar 4028089).
3476         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
3477         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3478         Add argument, add case for 8-byte register half-filled with a float.
3479         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
3480         single-precision floats specially.
3481
3482 2010-07-27  Ira Rosen  <irar@il.ibm.com>
3483
3484         PR tree-optimization/44152
3485         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
3486         complex numbers for further check.
3487         (vect_supported_load_permutation_p): Check nodes with
3488         complex numbers.
3489
3490 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3491
3492         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
3493         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
3494         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
3495         (LANG_HOOKS_INITIALIZER): Add new hooks.
3496         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
3497         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
3498         and complain_wrong_lang_p.  Update init_options prototype.
3499         * c-objc-common.c (c_initialize_diagnostics): First call
3500         c_common_initialize_diagnostics.
3501         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
3502         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
3503         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
3504         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
3505         (hook_uint_void_0): New.
3506         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
3507         (hook_uint_void_0): New.
3508         * opts-common.c (decode_cmdline_option,
3509         decode_cmdline_options_to_array): Also fill in canonical_option field.
3510         * opts.c (complain_wrong_lang): Use langhook to determine whether
3511         to complain instead of special-casing LTO.
3512         (decode_options): Separate lang_mask determination with
3513         option_lang_mask hook from call of init_options hook.
3514         * opts.h (struct cl_decoded_option): Add canonical_option.
3515
3516 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3517
3518         PR tree-optimization/45083
3519         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
3520
3521 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3522
3523         * postreload.c (reload_combine_recognize_const_pattern): Move test
3524         for limiting the insn movement to the right scope.
3525
3526         PR rtl-optimization/45051
3527         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
3528         than reg_mentioned_p.
3529
3530 2010-07-26  Richard Henderson  <rth@redhat.com>
3531
3532         PR target/44132
3533         * tree-emutls.c: New file.
3534         * Makefile.in (OBJS-common): Add it.
3535         * tree-pass.h (pass_ipa_lower_emutls): Declare.
3536         * passes.c (init_optimization_passes): Add it.
3537
3538         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
3539         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
3540         * expr.c (emutls_var_address): Delete.
3541         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
3542         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
3543         (emutls_finish): Delete.
3544         * toplev.c (compile_file): Don't call it.
3545         * tree.h (emutls_decl): Delete.
3546         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
3547         (emutls_finish, emutls_finalize_control_var): Delete.
3548         (emutls_object_type): Move to tree-emutls.c.
3549         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
3550         default_emutls_var_fields, get_emutls_object_type,
3551         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
3552         default_emutls_var_init): Likewise.
3553         (get_variable_section): Don't special case emutls.
3554         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
3555         default_elf_select_section, default_unique_section,
3556         default_encode_section_info): Likewise.
3557         * varpool.c (decide_is_variable_needed): Likewise.
3558         * gimple-iterator.c (update_call_edge_frequencies): New
3559         (gsi_insert_on_edge_immediate): Use it.
3560         (gsi_insert_seq_on_edge_immediate): Likewise.
3561         (gsi_commit_one_edge_insert): Likewise.
3562
3563         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
3564         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
3565         (x86_64_elf_unique_section): Likewise.
3566
3567 2010-07-26  Jan Hubicka  <jh@suse.cz>
3568
3569         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
3570         GTY((skip)).
3571
3572 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
3573
3574         * target.def (output_source_filename): New hook.
3575         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
3576         * doc/tm.texi: Regenerate.
3577         * toplev.c (output_file_directive) Remove function.
3578         * toplev.h (output_file_directive) Remove.
3579         * output.h (default_asm_output_source_filename,
3580         output_file_directive): Declare.
3581         * varasm.h (default_asm_output_source_filename,
3582         output_file_directive): New functions.
3583
3584         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3585         * config/mips/mips-protos.h (mips_output_filename): Remove.
3586         * config/mips/mips.c (mips_output_filename): Make Static.
3587         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3588
3589 2010-07-26  Richard Guenther  <rguenther@suse.de>
3590
3591         PR tree-optimization/43784
3592         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
3593         if the destination is used by the call.
3594
3595 2010-07-26  Richard Guenther  <rguenther@suse.de>
3596
3597         PR middle-end/45073
3598         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
3599         SSA updating on being in SSA form.
3600
3601 2010-07-26  Richard Guenther  <rguenther@suse.de>
3602
3603         PR middle-end/45056
3604         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
3605
3606 2010-07-26  Richard Guenther  <rguenther@suse.de>
3607
3608         PR tree-optimization/45071
3609         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
3610         adjust op->opcode.
3611
3612 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
3613
3614         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
3615         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
3616         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
3617         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
3618         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
3619         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
3620         save_r31, return_r31, save_interrupt, return_interrupt,
3621         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3622         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3623         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3624         new ABI requirements.
3625         (save_r6_r9, L_callt_save_r6_r9): Remove.
3626         * config/v850/predicates.md (even_reg_operand, disp23_operand,
3627         const_float_1_operand const_float_0_operand): New Predicates.
3628         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3629         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3630         * config/v850/t-v850: Update multilibs for new target variants.
3631         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3632         * config/v850/t-v850e: Likewise.
3633         * config/v850/v850.c (v850_issue_rate): New.
3634         (v850_strict_argument_naming): New.
3635         (function_arg): Modify to generate a different ABI.
3636         (print_operand): Update case 'z' to support float modes.
3637         (output_move_single): Modify to generate appropriate and better
3638         assembly.
3639         (v850_float_z_comparison_operator, v850_select_cc_mode,
3640         v850_float_nz_comparison_operator,  v850_gen_float_compare,
3641         v850_gen_compare): New functions to support comparison of float values.
3642         (ep_memory_offset): Add support for V850E2 targets.
3643         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3644         (INTERRUPT_REGPARM_NUM): Remove.
3645         (compute_register_save_size): Add extra case to save/restore long call.
3646         (use_prolog_function): New function to support prologue.
3647         (expand_prologue): Add support for V850E2 targets and modified
3648         as per the current ABI requirements.
3649         (expand_epilogue): Likewise.
3650         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3651         (construct_save_jarl): Likewise.
3652         (construct_dispose_instruction): Update as per the current ABI
3653         requirements.
3654         (construct_prepare_instruction): Likewise.
3655         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3656         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3657         (CPP_SPEC): Updated to support v850e2 targets.
3658         (STRICT_ALIGNMENT): Modified.
3659         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3660         (FIXED_REGISTERS): Likewise.
3661         (CALL_USED_REGISTERS): Likewise.
3662         (CONDITIONAL_REGISTER_USAGE): Updated.
3663         (HARD_REGNO_MODE_OK): Updated.
3664         (reg_class): Updated to add even registers.
3665         (REG_CLASS_NAMES): Likewise.
3666         (REG_CLASS_CONTENTS): Likewise.
3667         (REGNO_REG_CLASS): Updated for CC registers.
3668         (REG_CLASS_FROM_LETTER): Added support for even registers.
3669         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3670         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3671         ARG_POINTER_REGNUM): Updated.
3672         (FUNCTION_ARG_ADVANCE): Define.
3673         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3674         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3675         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3676         (GO_IF_LEGITIMATE_ADDRESS): Updated.
3677         (SELECT_CC_MODE): Define.
3678         (REGISTER_NAMES): Updated to add psw and fcc registers.
3679         (ADDITIONAL_REGISTER_NAMES): Updated.
3680         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3681         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3682         * config/v850/v850.md (define_constants): Define new constants.
3683         (type): Update store,bit1,macc,div,fpu and single attributes.
3684         (cpu): New attribute.
3685         (cc): Add set_z attribute.
3686         (unsign23byte_load, sign23byte_load, unsign23hword_load,
3687         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3688         23word_store): New instructions for 23-bit displacement load and store.
3689         (movqi_internal, movhi_internal): Update the attributes.
3690         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3691         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3692         the attributes.
3693         (v850_tst1): Modified using CC_REGNUM.
3694         (tstsi): Remove.
3695         (cmpsi): Modified as define_expand from define_insn.
3696         (cmpsi_insn, cmpsf, cmpdf): New instructions.
3697         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3698         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3699         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3700         one_cmplsi2): Clobber the CC_REGNUM register.
3701         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3702         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3703         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3704         (setf_insn, set_z_insn, set_nz_insn): New instructions for
3705         v850e2v3 target.
3706         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3707         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3708         targets.
3709         (sasf_1, sasf_2): Remove.
3710         (sasf): New instruction.
3711         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3712         targets. CC_REGNUM register is clobbered and attributes are
3713         updated.
3714         (branch_z_normal, branch_z_invert, branch_nz_normal,
3715         branch_nz_invert): New branch related instructions.
3716         (jump): Updated the attributes.
3717         (switch): Update to support new targets. CC_REGNUM register is
3718         clobbered and attributes are updated.
3719         (call_internal_short, call_internal_long, call_value_internal_short,
3720         call_value_internal_long): Updated the attributes.
3721         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3722         clobbered and attributes are updated.
3723         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3724         Update to support new targets. CC_REGNUM register is clobbered.
3725         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3726         instructions.
3727         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3728         are updated.
3729         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3730         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3731         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3732         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3733         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3734         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3735         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3736         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3737         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3738         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3739         point instructions defined for V850e2v3 target.
3740         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3741         Add support for V850E2 targets and CC_REGNUM register is clobbered.
3742         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3743         support for new targets.
3744         * config/v850/v850-modes.def: New file.
3745         * config/v850/v850.opt(mstrict-align): Remove.
3746         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3747         mv850e2v3): New command line options for V850.
3748         * config.gcc: Update the newly added files.
3749         * doc/invoke.texi: Update the newly added command line options for
3750         V850 target.
3751
3752 2010-07-26  Richard Guenther  <rguenther@suse.de>
3753
3754         PR tree-optimization/45052
3755         * ipa-pure-const.c (check_stmt): Check volatileness.
3756
3757 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3758
3759         PR target/44707
3760         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3761         * config/sparc/sparc.c: Include reload.h.
3762         (legitimize_tls_address): Rename into...
3763         (sparc_legitimize_tls_address): ...this.
3764         (legitimize_pic_address): Rename into...
3765         (sparc_legitimize_pic_address): ...this.
3766         (sparc_expand_move): Adjust to above renaming.
3767         (sparc_tls_referenced_p): Likewise.
3768         (sparc_legitimize_tls_address): Likewise.
3769         (sparc_legitimize_pic_address): Likewise.
3770         (sparc_legitimize_address): Likewise.
3771         (sparc_output_mi_thunk): Likewise.
3772         (sparc_legitimize_reload_address): New global function.  Recognize
3773         (lo_sum (high ...) ...) patterns generated by earlier passes.
3774         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3775
3776 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3777
3778         PR target/44484
3779         * config/sparc/predicates.md (memory_reg_operand): Delete.
3780         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3781         (*sync_compare_and_swap): Encode the address form in the pattern.
3782         (*sync_compare_and_swapdi_v8plus): Likewise.
3783
3784 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
3785
3786         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3787         Streamline paragraph on compatibility with the system compiler.
3788
3789 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3790
3791         PR middle-end/45035
3792         * alias.c (true_dependence_1): Fix thinko in merge of old
3793         true_dependence and canon_true_dependence.
3794
3795 2010-07-23  Jan Hubicka  <jh@suse.cz>
3796
3797         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3798         references.
3799
3800 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3801
3802         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3803         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3804         and an unnecessary assignment.
3805         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3806         self-assign warning.
3807         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3808         unnecessary self-init.
3809
3810 2010-07-23  Richard Guenther  <rguenther@suse.de>
3811
3812         PR lto/43071
3813         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3814         for -flto and -fwhopr.
3815
3816 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3817
3818         PR target/41943
3819         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3820         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3821         * config.gcc (user_headers_inc_next_pre): New.
3822         (user_headers_inc_next_post): Likewise.
3823         (*-w64-mingw*): Use for float.h post-fixing, and for
3824         stddef.h/stdarg.h pre-fixing by include_next.
3825         * configure.ac (user_headers_inc_next_post): New.
3826         (user_headers_inc_next_pre): New.
3827         * configure: Regenerated.
3828
3829 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3830
3831         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3832         Set tga_func for Solaris 2/x86 resp. SPARC.
3833         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3834         (LIB_THREAD_LDFLAGS_SPEC): Define.
3835         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3836         * configure: Regenerate.
3837         * config.in: Regenerate.
3838         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3839         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3840         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3841         alternate thread libraries on Solaris 8.
3842         Document TLS patch requirements.
3843         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3844         Document tls.
3845
3846         PR target/18788
3847         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3848         -shared.
3849
3850 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3851
3852         * tree.h (struct tree_base): Add nameless_flag bitfield.
3853         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3854         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3855         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3856         DECL_ARTIFICIAL where needed.
3857         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3858         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3859         has DECL_NAMELESS set.
3860
3861 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3862
3863         PR tree-optimization/44915
3864         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3865         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3866         (analyze_function): Likewise.
3867
3868 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3869
3870         PR tree-optimization/44914
3871         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3872         changed, add purging dead eh edges.
3873         (ipa_sra_modify_function_body): Return true if CFG was changed,
3874         simplify purging dead eh edges.
3875         (modify_function): Return true if CFG was changed.
3876         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3877         was changed.
3878         (ipa_early_sra): Likewise.
3879
3880 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3881
3882         PR target/44290
3883         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3884         if "naked".
3885         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3886         false if ! tree_versionable_function_p.
3887
3888 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3889
3890         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3891         * ipa-pure-const.c (special_builtlin_state): Remove
3892         BUILT_IN_ARGS_INFO case.
3893         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3894         * builtins.c (expand_builtin): Likewise.
3895         (expand_builtin_args_info): Remove.
3896         * doc/tm.texi (__builtin_args_info): Remove.
3897         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3898         * doc/tm.text.in: Likewise.
3899
3900 2010-07-23  Richard Guenther  <rguenther@suse.de>
3901
3902         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3903         (lto_symtab_merge_decls_2): Likewise.
3904         * tree-ssa.c (useless_type_conversion_p): Likewise.
3905         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3906         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3907         (struct type_pair_d): Make same_p an array indexed by mode.
3908         Update comment.
3909         (lookup_type_pair): Update initialization.
3910         (struct sccs): Adjust same_p type.
3911         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3912         Adjust.
3913         (print_gimple_types_stats): Likewise.
3914         * gimple.h (enum gtc_mode): New.
3915         (gimple_types_compatible_p): Adjust prototype.
3916
3917 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3918
3919         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3920         again after processing insn.
3921
3922 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3923
3924         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3925         proper words when !tree_versionable_function_p.
3926
3927 2010-07-23  Richard Guenther  <rguenther@suse.de>
3928
3929         PR tree-optimization/45037
3930         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3931
3932 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3933
3934         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3935         Add MCORE instead.
3936
3937 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3938
3939         PR lto/44992
3940         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3941         lto_get_section_name.
3942         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3943         * lto-streamer-out.c (produce_asm): Likewise.
3944         (copy_function): Likewise.
3945         (produce_symtab): Likewise.
3946         (produce_asm_for_decls): Likewise.
3947         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3948         Rewrite to add random postfix to LTO sections.
3949         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3950         (lto_get_section_name): Add file_data argument to prototype.
3951
3952 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3953
3954         * lto-section-in.c (lto_section_name): Synchronize names
3955         with lto_get_section_name.
3956
3957 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3958
3959         * lto-opts.c (lto_read_file_options): Check for missing section.
3960
3961 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3962
3963         * ira.c (check_allocation): Correctly handle the case where an allocno
3964         with two objects was allocated to a single reg.
3965
3966 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3967
3968         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3969         (is_widening_mult_p): Likewise.
3970         (convert_to_widen): Use them.
3971         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3972         well as integer ones.
3973
3974 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3975
3976         * alias.c (true_dependence_1): New function, merged version of
3977         true_dependence and canon_true_dependence.
3978         (true_dependence): Simplify.
3979         (canon_true_dependence): Simplify.
3980
3981 2010-07-22  Richard Henderson  <rth@redhat.com>
3982
3983         PR target/45027
3984         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3985         of V4SFmode for the SSE saves; increase stack alignment if needed.
3986         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3987
3988 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3989
3990         PR bootstrap/45028
3991         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3992         call cprop_find_used_regs again via note_uses.
3993
3994 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3995
3996         * alias.c (get_alias_set): Fix formatting issues.
3997
3998 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3999
4000         PR middle-end/44878
4001         * stmt.c (expand_value_return):  Call promote_function_mode with
4002         a for_return argument of 2 when returning by reference.
4003
4004 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
4005
4006         PR debug/45024
4007         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
4008         unit DIE if we can find the scope DIE.
4009
4010 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4011
4012         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
4013         changed.  Initialize OBJECT_SUBWORD.
4014         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
4015         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
4016         all callers changed.
4017         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
4018         (finish_allocno): Likewise.
4019         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
4020         (remove_low_level_allocnos): Likewise.
4021         (update_bad_spill_attribute): Likewise.
4022         (setup_min_max_allocno_live_range_point): Likewise.
4023         (sort_conflict_id_map): Likewise.
4024         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
4025         (ior_hard_reg_conflicts): New function.
4026         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
4027         (compress_conflict_vecs): Iterate over objects, not allocnos.
4028         (ira_add_live_range_to_object): New function.
4029         (object_range_compare_func): Renamed from allocno_range_compare_func.
4030         All callers changed.
4031         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
4032         subobjects, widen the min/max range of the lowest-order object to
4033         potentially include all other such low-order objects.
4034         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
4035         (check_allocation): Likewise.  Use more fine-grained tests for register
4036         conflicts.
4037         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
4038         allocno subobjects.
4039         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
4040         choices about which bits to set in each set.  Don't use
4041         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
4042         using the multiple sets we computed.
4043         (push_allocno_to_stack): Iterate over allocno subobjects.
4044         (all_conflicting_hard_regs_coalesced): New static function.
4045         (setup_allocno_available_regs_num): Use it.
4046         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
4047         subobjects.
4048         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
4049         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4050         by ALLOCNO_NUM_OBJECTS.
4051         (calculate_spill_cost): Likewise.
4052         (color_pass): Express if statement in a more normal way.
4053         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
4054         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
4055         (setup_slot_coalesced_allocno_live_ranges): Likewise.
4056         (allocno_reload_assign): Likewise.
4057         (ira_reassign_pseudos): Likewise.
4058         (fast_allocation): Likewise.
4059         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4060         (print_allocno_conflicts): Likewise.
4061         (ira_build_conflicts): Likewise.
4062         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
4063         callers changed.  Test subword 0 of each allocno for conflicts.
4064         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
4065         callers changed.  Iterate over allocno subobjects.
4066         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
4067         * ira-int.h (struct ira_allocno): New member: num_objects.
4068         Rename object to objects and change it into an array.
4069         (ALLOCNO_OBJECT): Add new argument N.
4070         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
4071         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
4072         (ior_hard_reg_conflicts): Declare.
4073         (ira_add_live_range_to_object): Declare.
4074         (ira_allocno_object_iterator): New.
4075         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
4076         (FOR_EACH_ALLOCNO_OBJECT): New macro.
4077         * ira-lives.c (objects_live): Renamed from allocnos_live; all
4078         uses changed.
4079         (allocnos_processed): New sparseset.
4080         (make_object_born): Renamed from make_allocno_born; take an
4081         ira_object_t argument.  All callers changed.
4082         (make_object_dead): Renamed from make_allocno_dead; take an
4083         ira_object_t argument.  All callers changed.
4084         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
4085         All callers changed.
4086         (mark_pseudo_regno_live): Iterate over allocno subobjects.
4087         (mark_pseudo_regno_dead): Likewise.
4088         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
4089         functions.
4090         (mark_ref_live): Detect subword accesses and call
4091         mark_pseudo_regno_subword_live as appropriate.
4092         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
4093         (process_bb_nodes_live): Deal with object-related updates first; set
4094         and test bits in allocnos_processed to avoid computing allocno
4095         statistics more than once.
4096         (create_start_finish_chains): Iterate over objects, not allocnos.
4097         (print_object_live_ranges): New function.
4098         (print_allocno_live_ranges): Use it.
4099         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
4100         and objects_live.
4101
4102 2010-07-22  Richard Guenther  <rguenther@suse.de>
4103
4104         PR lto/42451
4105         * gimple.c (gtc_next_dfs_num): New global.
4106         (struct sccs): Make value a union, add integer same_p member.
4107         (gtc_visit): New function.
4108         (gimple_types_compatible_p_1): New function, split out from ...
4109         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
4110         (iterative_hash_gimple_type): Adjust for sccs change.
4111
4112 2010-07-22  Martin Jambor  <mjambor@suse.cz>
4113
4114         PR tree-optimization/44891
4115         * tree-sra.c: Include gimple-pretty-print.h.
4116         (replace_uses_with_default_def_ssa_name): Renamed to
4117         get_repl_default_def_ssa_name, return the new SSA name instead of
4118         replacing the old one.
4119         (sra_modify_assign): Dump a message when removing a load, if the LHS
4120         is an SSA_NAME, do not do any propagation, just set the RHS to a
4121         default definition SSA NAME, type convert if necessary.
4122         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
4123
4124 2010-07-22  Richard Guenther  <rguenther@suse.de>
4125
4126         PR tree-optimization/45017
4127         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
4128         TYPE_PRECISION of integral types in addition to size.
4129
4130 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
4131
4132         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
4133         when no C library is specified.
4134
4135 2010-07-22  Martin Jambor  <mjambor@suse.cz>
4136
4137         * ipa-prop.h (struct ipa_node_params): Updated comment.
4138         (struct ipa_edge_args): Likewise.
4139         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
4140
4141 2010-07-22  Martin Jambor  <mjambor@suse.cz>
4142
4143         * cgraphunit.c (verify_edge_count_and_frequency): New function.
4144         (verify_cgraph_node): Verify frequencies of indirect edges.
4145         * tree-inline.c (tree_function_versioning): Update frequencies of
4146         indirect edges.
4147
4148 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4149
4150         PR target/43698
4151         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
4152         Set *arm_rev to be predicable.
4153
4154 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
4155
4156         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
4157         (LINK_COMMAND_SPEC_A): New.
4158         (DSYMUTIL): New.
4159         (DSYMUTIL_SPEC): New.
4160         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
4161         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
4162
4163 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
4164
4165         * calls.c (load_register_parameters): Move check for zero
4166         sized items so that only the call to
4167         mem_overlaps_already_clobbered_arg_p () is protected.
4168
4169 2010-07-22  Jan Hubicka  <jh@suse.cz>
4170
4171         * ipa-pure-const.c (varying_state): Break out from ...
4172         (get_function_state): ... here; always return varying_state
4173         when state would be NULL otherwise.
4174         (remove_node_data): Do not free varying state.
4175
4176 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
4177
4178         PR bootstrap/44970
4179         PR middle-end/45009
4180         * postreload.c: Include "target.h".
4181         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
4182         into account.
4183         (fixup_debug_insns): Don't copy the rtx.
4184         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
4185         Don't copy when replacing.  Call fixup_debug_insns in the case where
4186         we merged one add with another.
4187         (reload_combine_recognize_pattern): Fail if there aren't any uses.
4188         Try harder to determine whether we're picking a valid index register.
4189         Don't set store_ruid for an insn we're going to scan in the
4190         next iteration.
4191         (reload_combine): Remove unused code.
4192         (reload_combine_note_use): When updating use information for
4193         an old insn, ignore a use that occurs after store_ruid.
4194         * Makefile.in (postreload.o): Update dependencies.
4195
4196         * function.c (record_hard_reg_sets): Restrict the previous change
4197         to cases where the incoming nominal mode is the same as the
4198         incoming promoted mode and everything happens in MODE_INT.
4199
4200 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
4201
4202         PR debug/45015
4203         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
4204         ASM_OPERANDS_OUTPUT_IDX.
4205         (adjust_insn): For inline asm with multiple sets ensure first
4206         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
4207         the insn.
4208
4209 2010-07-21  Richard Henderson  <rth@redhat.com>
4210
4211         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
4212         comparison for avoiding xmm register saves.  Emit the xmm register
4213         saves explicitly.
4214         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
4215         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
4216         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
4217         Remove patterns and the associated splitters.
4218
4219 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
4220
4221         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
4222         and imagine parts of a complex, so that they can have the same
4223         base and fall into the same group.
4224
4225 2010-07-21  Richard Guenther  <rguenther@suse.de>
4226
4227         PR lto/45018
4228         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
4229         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
4230         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
4231
4232 2010-07-21  Martin Jambor  <mjambor@suse.cz>
4233
4234         PR tree-optimization/44900
4235         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
4236         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
4237
4238 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
4239
4240         PR middle-end/44738
4241         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
4242
4243 2010-07-21  Richard Guenther  <rguenther@suse.de>
4244
4245         PR middle-end/45013
4246         * tree-ssa.c (useless_type_conversion_p): Dispatch to
4247         gimple_types_compatible_p only when in lto.
4248         * gimple.c (gimple_types_compatible_p): Use canonical types
4249         to speed up comparison.
4250
4251 2010-07-21  Richard Guenther  <rguenther@suse.de>
4252
4253         * tree-flow.h (referenced_var): Move define ...
4254         * tree-flow-inline.h (referenced_var): ... here as an inline
4255         function.  Assert here ...
4256         * tree-dfa.c (referenced_var_lookup): ... instead of here.
4257         * tree-ssa.c (maybe_optimize_var): Check if the variable
4258         is in referenced vars.
4259         (execute_update_addresses_taken): Remove old broken check.
4260         * gimple-pretty-print.c (pp_points_to_solution): Use
4261         referenced_var_lookup.
4262         * tree-into-ssa.c (dump_decl_set): Likewise.
4263
4264 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
4265
4266         PR debug/45003
4267         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
4268         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
4269         ZERO_EXTEND here.
4270
4271 2010-07-20  Richard Henderson  <rth@redhat.com>
4272
4273         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
4274
4275 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
4276
4277         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
4278         computing the sum of the stack pointer and a large constant.
4279         * config/arm/constraints.md (M): Remove superfluous parentheses.
4280         (Pc): New constraint.
4281
4282 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
4283
4284         PR debug/45006
4285         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
4286         operand's type if exp is tcc_unary class tree.
4287
4288 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
4289
4290         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
4291         Reverse sense of if_then_else condition.
4292
4293 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
4294
4295         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
4296         * config/rs6000/rs6000.c (rs6000_override_options): Set
4297         rs6000_block_move_inline_limit appropriately.
4298         (expand_block_move): Use rs6000_block_move_inline_limit.
4299         * doc/invoke.texi (mblock-move-inline-limit): Document.
4300
4301 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
4302
4303         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
4304         FROM and TO.  All callers changed.  Don't look for tracked uses,
4305         just scan the RTL for DEBUG_INSNs and substitute.
4306         (reload_combine_recognize_pattern): Call fixup_debug_insns.
4307         (reload_combine): Ignore DEBUG_INSNs.
4308
4309 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
4310
4311         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
4312         depth to 8 from 5.
4313
4314         PR debug/45003
4315         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
4316         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
4317         instead of the result's type.
4318
4319 2010-07-20  Richard Guenther  <rguenther@suse.de>
4320
4321         PR tree-optimization/44977
4322         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
4323         SSA form.
4324
4325 2010-07-20  Richard Guenther  <rguenther@suse.de>
4326
4327         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
4328         (lto_symtab_merge_decls_2): Likewise.
4329         * gimple.h (gimple_types_compatible_p): Declare.
4330         * gimple.c (gimple_queue_type_fixup): Remove.
4331         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
4332         (gimple_compatible_complete_and_incomplete_type_p): New function.
4333         (gimple_types_compatible_p): Adjust.
4334         (gimple_register_type): Remove type fixup code.
4335         (print_gimple_types_stats): Adjust.
4336         (free_gimple_type_tables): Likewise.
4337         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
4338         * tree-ssa.c (useless_type_conversion_p): Likewise.
4339
4340 2010-07-20  Richard Guenther  <rguenther@suse.de>
4341
4342         PR middle-end/44971
4343         PR middle-end/44988
4344         * tree-ssa.c (maybe_optimize_var): New function split out from ...
4345         (execute_update_addresses_taken): ... here.
4346         (non_rewritable_mem_ref_base): Likewise.
4347         (execute_update_addresses_taken): Do not iterate over all referenced
4348         vars but just all local decls and parms.
4349         Properly check call and asm arguments and rewrite call arguments.
4350
4351 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4352
4353         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
4354         to top level.
4355         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
4356         definitions ...
4357         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
4358         New macro.
4359         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
4360
4361 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4362
4363         * gengtype.c (start_root_entry): New function, split out from
4364         write_root.  Check whether V is null and raise an error if so.
4365         (write_field_root): Check for V being null.  Don't raise an error here;
4366         set V to null instead.
4367         (write_root): Update comment above function.  Use start_root_entry.
4368
4369 2010-07-19  Xinliang David Li  <davidxl@google.com>
4370
4371         PR testsuite/44932
4372         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
4373         def edges.
4374         (find_uninit_use): Add dump.
4375         (is_use_properly_guarded): Ditto.
4376         (warn_uninitialized_phi): Ditto.
4377         (execute_late_warn_uninitialized): Ditto.
4378
4379 2010-07-19  Richard Guenther  <rguenther@suse.de>
4380
4381         PR middle-end/44941
4382         * expr.c (emit_block_move_hints): Move zero size check first.
4383         Move asserts to more useful places.
4384         * calls.c (load_register_parameters): Check for zero size.
4385
4386 2010-07-19  Richard Henderson  <rth@redhat.com>
4387
4388         * tree-optimize.c (execute_all_early_local_passes): New.  Change
4389         cgraph_state here ...
4390         (execute_early_local_optimizations): ... not here.  Remove.
4391         (pass_early_local_passes, pass_all_early_optimizations): Update.
4392
4393 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
4394
4395         * postreload.c (reload_combine_closest_single_use): Ignore the
4396         number of uses for DEBUG_INSNs.
4397         (fixup_debug_insns): New static function.
4398         (reload_combine_recognize_const_pattern): Use it.  Don't let the
4399         main loop be affected by DEBUG_INSNs.
4400         Really disallow moving adds past a jump insn.
4401         (reload_combine_recognize_pattern): Don't update use_ruid here.
4402         (reload_combine_note_use): Do it here.
4403         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
4404
4405 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
4406
4407         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
4408         of a loop.
4409         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
4410
4411 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
4412
4413         * config/i386/darwin.h: Define darwin_emit_branch_islands.
4414         (TARGET_MACHO_BRANCH_ISLANDS): New.
4415         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
4416         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
4417         default value.
4418         * config/i386/i386.c (output_pic_addr_const): Do not emit
4419         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
4420         (x86_output_mi_thunk): Adjust symbol creation.
4421         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
4422         Remove out of date comment.
4423         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
4424         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4425         (DARWIN_GENERATE_ISLANDS): Ditto.
4426         (output_call):  Do not emit branch islands unless
4427         darwin_emit_branch_islands is set.
4428         * config/darwin.c: Declare darwin_emit_branch_islands.
4429         (machopic_indirect_data_reference): Do not emit unless
4430         darwin_emit_branch_islands is set.
4431         (darwin_override_options): Set darwin_emit_branch_islands
4432         where it is needed.
4433         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4434
4435 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4436
4437         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4438         sse_runtime, sse2_runtime.
4439
4440 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
4441
4442         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
4443         low half of a single-register SCmode return value before ORing
4444         it with the high half.
4445         * config/mips/mips16.S (MERGE_GPRf): Likewise.
4446
4447 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4448
4449         PR target/44805
4450         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
4451         on all targets.
4452
4453 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
4454
4455         PR target/42235
4456         * postreload.c (reload_cse_move2add): Return bool, true if anything.
4457         changed.  All callers changed.
4458         (move2add_use_add2_insn): Likewise.
4459         (move2add_use_add3_insn): Likewise.
4460         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
4461         reload_combine.
4462         (RELOAD_COMBINE_MAX_USES): Bump to 16.
4463         (last_jump_ruid): New static variable.
4464         (struct reg_use): New members CONTAINING_MEM and RUID.
4465         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
4466         (reload_combine_split_one_ruid, reload_combine_split_ruids,
4467         reload_combine_purge_insn_uses, reload_combine_closest_single_use
4468         reload_combine_purge_reg_uses_after_ruid,
4469         reload_combine_recognize_const_pattern): New static functions.
4470         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
4471         is true for our reg and that we have available index regs.
4472         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
4473         callers changed.  Use them to initialize fields in struct reg_use.
4474         (reload_combine): Initialize last_jump_ruid.  Be careful when to
4475         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
4476         Call reload_combine_recognize_const_pattern.
4477         (reload_combine_note_store): Update REAL_STORE_RUID field.
4478
4479 2010-07-16  Jason Merrill  <jason@redhat.com>
4480
4481         * Makefile.in (opts-common.o): Depend on options.h.
4482
4483 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4484
4485         * tree.c (build_common_builtin_nodes): Use build_function_type_list
4486         instead of build_function_type.
4487         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
4488         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4489
4490 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4491
4492         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
4493         do all the work.
4494         (rs6000_emit_int_cmove): Use function pointers for insn generation.
4495         Don't force values into registers unnecessarily.
4496         (output_isel): Assert that we're not given conditions we can't handle.
4497         Delete corresponding code.
4498         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
4499         scc_comparison_operator constraint.  Permit 0 for the consequent
4500         operand.  Permit any GPR for the alternative operand.
4501         (isel_unsigned_<mode>): Likewise.
4502
4503 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
4504
4505         PR target/44942
4506         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
4507         argument to const_tree.
4508         * config/i386/i386.c (function_arg_advance): If padding needs to be
4509         inserted before argument, increment cum->words by number of padding
4510         words as well.
4511         (contains_aligned_value_p): Change argument to const_tree.
4512         (ix86_function_arg_boundary): Change second argument to const_tree.
4513
4514 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
4515
4516         PR target/42235
4517         * function.c (record_hard_reg_sets): New static function.
4518         (assign_parm_setup_reg): If an optab for extending exists and the
4519         generated code clobbbers no hard regs, emit the insn directly and
4520         create a REG_EQUIV note.
4521
4522 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4523
4524         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
4525         TREE_CHAIN.
4526         * c-typeck.c (push_init_level): Likewise.
4527         (process_init_element): Likewise.
4528
4529 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
4530
4531         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
4532         (integer_three_node): Add.
4533         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
4534         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
4535         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
4536         of call build_int_cst.
4537         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
4538         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
4539         (find_interesting_uses_address): Ditto.
4540         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
4541         * tree-eh.c (lower_eh_constructs_2): Ditto.
4542         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
4543         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
4544         * expmed.c (expand_divmod): Ditto.
4545         * tree-mudflap.c (mx_register_decls): Ditto.
4546         * varasm.c (array_size_for_constructor): Ditto.
4547         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4548         * c-parser.c (c_parser_postfix_expression): Ditto.
4549
4550 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
4551
4552         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
4553         New static variables.
4554         (reload_combine_recognize_pattern): New static function, broken out
4555         of reload_combine.
4556         (reload_combine): Use it.  Only initialize first_index_reg and
4557         last_index_reg once.
4558
4559 2010-07-15  Richard Henderson  <rth@redhat.com>
4560
4561         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
4562         when done.
4563
4564 2010-07-15  Jan Hubicka  <jh@suse.cz>
4565
4566         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
4567         comdats for broken gold.
4568         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
4569
4570 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4571
4572         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
4573
4574 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4575
4576         * tree.h (DECL_CHAIN): Define.
4577         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4578         * c-decl.c: Likewise.
4579         * c-parser.c: Likewise.
4580         * c-typeck.c: Likewise.
4581         * cfgexpand.c: Likewise.
4582         * cgraph.c: Likewise.
4583         * cgraphunit.c: Likewise.
4584         * combine.c: Likewise.
4585         * config/alpha/alpha.c: Likewise.
4586         * config/arm/arm.c: Likewise.
4587         * config/frv/frv.c: Likewise.
4588         * config/i386/i386.c: Likewise.
4589         * config/i386/winnt-cxx.c: Likewise.
4590         * config/ia64/ia64.c: Likewise.
4591         * config/iq2000/iq2000.c: Likewise.
4592         * config/mep/mep.c: Likewise.
4593         * config/mips/mips.c: Likewise.
4594         * config/pa/som.h: Likewise.
4595         * config/rs6000/rs6000.c: Likewise.
4596         * config/s390/s390.c: Likewise.
4597         * config/sh/sh.c: Likewise.
4598         * config/sh/symbian-cxx.c: Likewise.
4599         * config/sparc/sparc.c: Likewise.
4600         * config/spu/spu.c: Likewise.
4601         * config/stormy16/stormy16.c: Likewise.
4602         * config/vxworks.c: Likewise.
4603         * config/xtensa/xtensa.c: Likewise.
4604         * coverage.c: Likewise.
4605         * dbxout.c: Likewise.
4606         * dwarf2out.c: Likewise.
4607         * emit-rtl.c: Likewise.
4608         * expr.c: Likewise.
4609         * function.c: Likewise.
4610         * gimple-low.c: Likewise.
4611         * gimple-pretty-print.c: Likewise.
4612         * gimplify.c: Likewise.
4613         * integrate.c: Likewise.
4614         * ipa-inline.c: Likewise.
4615         * ipa-prop.c: Likewise.
4616         * ipa-split.c: Likewise.
4617         * ipa-struct-reorg.c: Likewise.
4618         * ipa-type-escape.c: Likewise.
4619         * langhooks.c: Likewise.
4620         * lto-cgraph.c: Likewise.
4621         * omp-low.c: Likewise.
4622         * stor-layout.c: Likewise.
4623         * tree-cfg.c: Likewise.
4624         * tree-complex.c: Likewise.
4625         * tree-dfa.c: Likewise.
4626         * tree-dump.c: Likewise.
4627         * tree-inline.c: Likewise.
4628         * tree-mudflap.c: Likewise.
4629         * tree-nested.c: Likewise.
4630         * tree-object-size.c: Likewise.
4631         * tree-pretty-print.c: Likewise.
4632         * tree-sra.c: Likewise.
4633         * tree-ssa-live.c: Likewise.
4634         * tree-ssa-loop-niter.c: Likewise.
4635         * tree-ssa-math-opts.c: Likewise.
4636         * tree-ssa-reassoc.c: Likewise.
4637         * tree-ssa-sccvn.c: Likewise.
4638         * tree-ssa-structalias.c: Likewise.
4639         * tree-tailcall.c: Likewise.
4640         * tree-vrp.c: Likewise.
4641         * tree.c: Likewise.
4642         * var-tracking.c: Likewise.
4643         * varasm.c: Likewise.
4644
4645 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4646
4647         PR target/44877
4648         * config/spu/spu.c (spu_expand_builtin_1): Allow references
4649         (as well as pointers) as argument to mask_for_load builtins.
4650
4651 2010-07-15  Richard Guenther  <rguenther@suse.de>
4652
4653         PR tree-optimization/44946
4654         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4655         with accessing only padding properly.
4656
4657 2010-07-15  Jan Hubicka  <jh@suse.cz>
4658
4659         * ipa.c (function_and_variable_visibility): Variables marked as used
4660         should not be localized.
4661
4662 2010-07-15  Jan Hubicka  <jh@suse.cz>
4663
4664         * cgraph.c: Include lto-streamer.h
4665         (change_decl_assembler_name): Work when assembler name hash is at place.
4666         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4667         be sure to rename it to avoid name clash.
4668         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4669         Localize hidden symbols only when locally defined.
4670
4671 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
4672
4673         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4674
4675 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
4676             Kevin F. Quinn  <kevquinn@gentoo.org>
4677
4678         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4679         * common.opt: Add -Wtrampolines.
4680         * doc/invoke.texi: Add -Wtrampolines.
4681
4682 2010-07-15  Jie Zhang  <jie@codesourcery.com>
4683
4684         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4685         cortex_a8_issue_ls.
4686
4687 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
4688
4689         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4690         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4691
4692 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4693
4694         * config/spu/spu.c (reg_names): Remove prototype.
4695         (call_used_regs): Likewise.
4696
4697 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4698
4699         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4700         "unused" with attribute "used".
4701         (__JCR_END__): Likewise.
4702         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4703         "used" attribute.
4704         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4705
4706 2010-07-14  Richard Guenther  <rguenther@suse.de>
4707
4708         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4709         (maybe_fixup_decls): Likewise.
4710         (input_gimple_stmt): Do not fixup anything.
4711         * lto-streamer-out.c (output_gimple_stmt): Make sure all
4712         non-automatic variable uses are wrapped inside a MEM_REF.
4713
4714 2010-07-14  Richard Henderson  <rth@redhat.com>
4715
4716         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4717         for functions.
4718         * varasm.c (assemble_variable): Remove early exit for functions;
4719         assert that we're given a variable.
4720
4721 2010-07-14  Jie Zhang  <jie@codesourcery.com>
4722
4723         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4724         cortex_a8_default when neon_type is not none.
4725
4726 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4727
4728         * lower-subreg.c (subreg_context): New static bitmap.
4729         (decompose_multiword_subregs): Allocate and free it.
4730         (find_decomposable_subregs): Set a bit in it for a register that
4731         occurs in a subreg that changes mode but not size.
4732         (can_decompose_p): Test it instead of non_decomposable_context.
4733
4734 2010-07-14  Richard Guenther  <rguenther@suse.de>
4735
4736         PR tree-optimization/44824
4737         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4738         is_gimple_mem_ref_addr.
4739         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4740         non-decl_address_invariant_p addresses.
4741
4742 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4743
4744         * reload.c (find_reloads): Revert code to penalize small register
4745         classes that was brought in with the IRA merge.
4746
4747 2010-07-14  Richard Guenther  <rguenther@suse.de>
4748
4749         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4750         as base of ARRAY_REFs.
4751
4752 2010-07-14  Richard Guenther  <rguenther@suse.de>
4753
4754         PR middle-end/44930
4755         * tree-pretty-print.c (do_niy): Do not print a newline.
4756
4757 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4758
4759         * ira-int.h (struct ira_object): New.
4760         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4761         (struct ira_allocno): Remove members min, max,
4762         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4763         conflict_allocnos_num and conflict_vec_p.  Add new member object.
4764         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4765         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4766         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4767         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4768         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4769         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4770         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4771         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4772         an ira_object_t rather than ira_allocno_t.  All uses changed.
4773         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4774         contains a vector of ira_object_t; all uses changed.
4775         (ira_objects_num): Declare variable.
4776         (ira_create_allocno_object): Declare function.
4777         (ira_conflict_vector_profitable_p): Adjust prototype.
4778         (ira_allocate_conflict_vec): Renamed from
4779         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4780         (ira_allocate_object_conflicts): Renamed from
4781         ira_allocate_allocno_conflicts; first arg now ira_object_t.
4782         (struct ira_object_iterator): New.
4783         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4784         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4785         to conflict_vec_p.  All uses changed.
4786         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4787         Changed to take into account that conflicts are now tracked for
4788         objects.
4789         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4790         Args changed to accept ira_object_t.  All uses changed.
4791         (allocnos_conflict_p): New static function.
4792         (collected_conflict_objects): Renamed from collected_allocno_objects;
4793         now a vector of ira_object_t.  All uses changed.
4794         (build_conflict_bit_table): Changed to take into account that
4795         conflicts are now tracked for objects.
4796         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4797         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4798         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4799         setup_allocno_left_conflicts_size, allocno_reload_assign,
4800         fast_allocation): Likewise.
4801         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4802         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4803         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4804         Likewise.
4805         * ira-build.c (ira_objects_num): New variable.
4806         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4807         contains a vector of ira_object_t; all uses changed.
4808         (ira_object_id_map_vec): Corresponding change.
4809         (object_pool): New static variable.
4810         (initiate_allocnos): Initialize it.
4811         (finish_allocnos): Free it.
4812         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4813         New functions.
4814         (ira_create_allocno): Don't set members that were removed.
4815         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4816         (merge_hard_reg_conflicts): Changed to take into account that
4817         conflicts are now tracked for objects.
4818         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4819         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4820         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4821         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4822         setup_min_max_conflict_allocno_ids, ):  Likewise.
4823         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4824         to ira_object_t; all callers changed.
4825         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4826         to ira_object_t, all callers changed.
4827         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4828         to ira_object_t, all callers changed.
4829         (conflict_check, curr_conflict_check_tick): Renamed from
4830         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4831         changed.
4832         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4833         arg changed to ira_object_t, all callers changed.
4834         (create_cap_allocno): Call ira_create_allocno_object.
4835         (finish_allocno): Free the corresponding object.
4836         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4837         callers changed.  Adjusted for dealing with objects.
4838         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4839         dealing with objects.
4840         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4841
4842         * ira-int.h (struct live_range): Rename allocno member to object
4843         and change type to ira_object_t.
4844         (struct ira_object): New member live_ranges.
4845         (struct ira_allocno): Remove member live_ranges.
4846         (ALLOCNO_LIVE_RANGES): Remove.
4847         (OBJECT_LIVE_RANGES): New macro.
4848         (ira_create_live_range, ira_copy_live_range_list,
4849         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4850         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4851         * ira-build.c (ira_create_object): Initialize live ranges here.
4852         (ira_create_allocno): Not here.
4853         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4854         changed to ira_object_t, all callers changed.
4855         (copy_live_range): Rename from copy_allocno_live_range, all callers
4856         changed.
4857         (ira_copy_live_range_list): Rename from
4858         ira_copy_allocno_live_range_list, all callers changed.
4859         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4860         all callers changed.
4861         (ira_live_ranges_intersect_p): Rename from
4862         ira_allocno_live_ranges_intersect_p, all callers changed.
4863         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4864         callers changed.
4865         (ira_finish_live_range_list): Rename from
4866         ira_finish_allocno_live_range_list, all callers changed.
4867         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4868         last arg changed to ira_object_t, all callers changed.
4869         (finish_allocno): Changed to expect live ranges in the allocno's object.
4870         (move_allocno_live_ranges, copy_allocno_live_ranges,
4871         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4872         ira_flattening, ira_build): Likewise.
4873         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4874         slot_coalesced_allocno_live_ranges_intersect,
4875         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4876         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4877         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4878         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4879         make_allocno_dead, create_start_finish_chains,
4880         remove_some_program_points_and_update_live_ranges,
4881         ira_debug_live_range_list): Likewise.
4882
4883         * ira-int.h (ira_object_conflict_iterator): Rename from
4884         ira_allocno_conflict_iterator.
4885         (ira_object_conflict_iter_init): Rename from
4886         ira_allocno_conflict_iter_init, second arg changed to
4887         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4888         FOR_EACH_ALLOCNO_CONFLICT.
4889         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4890         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4891         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4892         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4893
4894 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4895
4896         PR other/44874
4897         * tree-dump.c (dump_options): Add enumerate_locals entry.
4898         Add TDF_NOID exclusion to all entry.
4899         * tree-dump.h (dump_enumerated_decls): Declare.
4900         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4901         Don't display type uid.
4902         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4903         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4904         * tree-ssa-live.c: Include gimple.h.
4905         (numbered_tree_d): New struct.
4906         (numbered_tree): New typedef.
4907         (DEF_VEC_O (numbered_tree): New.
4908         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4909         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4910         (dump_enumerated_decls): Likewise.
4911         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4912         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4913         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4914         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4915
4916 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4917
4918         * expmed.h (MAX_BITS_PER_WORD): Move to...
4919         * defaults.h (MAX_BITS_PER_WORD): ...here.
4920
4921 2010-07-13  DJ Delorie  <dj@redhat.com>
4922
4923         * config/h8300/h8300.c (h8300_init_once): Default to
4924         -fstrict_volatile_bitfields.
4925
4926         * config/sh/sh.c (sh_override_options): Default to
4927         -fstrict_volatile_bitfields.
4928
4929         * config/rx/rx.c (rx_option_override): New.
4930
4931         * config/m32c/m32c.c (m32c_override_options): Default to
4932         -fstrict_volatile_bitfields.
4933
4934 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4935
4936         * tree.h (build_function_call_expr): Delete.
4937         (build_call_expr_loc_array): New function.
4938         (build_call_expr_loc_vec): New function.
4939         * tree-flow.h (struct omp_region): Change type of ws_args field
4940         to a VEC.
4941         * builtins.c (build_function_call_expr): Delete.
4942         (build_call_expr_loc_array): New function.
4943         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4944         (build_call_expr): Likewise.
4945         (build_call_expr_loc_vec): New function.
4946         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4947         build_function_call_expr.
4948         * expr.c (emutls_var_address): Likewise.
4949         * varasm.c (emutls_common_1): Likewise.
4950         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4951         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4952         (get_ws_args_for): Return a VEC instead of a tree.
4953         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4954         build_function_call_expr.
4955         * stor-layout.c (self_referential_size): Likewise.
4956
4957 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4958
4959         PR testsuite/44701
4960         * recog.c (constrain_operands): Allow side-effects in memory
4961         operands if either < or > constraint is used, rather than if
4962         both < and > is used.
4963
4964 2010-07-13  Richard Guenther  <rguenther@suse.de>
4965
4966         PR middle-end/44911
4967         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4968         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4969         without name.
4970
4971 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4972
4973         PR target/44761
4974         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4975         to variable emited.
4976         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4977         * config/sh/sh.md (symGOT_load): Likewise.
4978         (symDTPOFF2reg): Likewise.
4979         (symTPOFF2reg): Likewise.
4980
4981 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4982
4983         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4984         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4985
4986 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4987
4988         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4989         explanation.
4990         Find ucontext_t * on Solaris 11.
4991         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4992         Handle new Solaris 11 __sighndlr patterns.
4993
4994 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4995
4996         PR debug/44901
4997         * vec.h (VEC_block_remove): Fix comment.
4998         * tree-ssa-live.c (remove_unused_locals): Don't use
4999         VEC_unordered_remove on local_decls, instead replace a single
5000         vector element in each iteration if at least one element had
5001         to be removed and VEC_truncate at the end.
5002         * omp-low.c (expand_omp_taskreg): Likewise.
5003
5004 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5005
5006         * c-decl.c (finish_function): Fix typo in comment.
5007
5008 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
5009
5010         PR bootstrap/44921
5011         * postreload.c (move2add_use_add3_insn): Silence gcc warning
5012         on min_regno.
5013
5014 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
5015
5016         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
5017         (simplify_stmt_using_ranges): Use it.
5018
5019 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5020
5021         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
5022         member.  Do not mark as GTY(()).
5023         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
5024         (spu_builtin_decls): New static variable.
5025         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
5026         (spu_init_builtins): Likewise.
5027         (spu_builtin_mul_widen_even): Likewise.
5028         (spu_builtin_mul_widen_odd): Likewise.
5029         (spu_builtin_mask_for_load): Likewise.
5030         (spu_builtin_vec_perm): Likewise.
5031         * config/spu/spu-c.c: Include "target.h".
5032         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
5033         of using spu_builtins[].fndecl.
5034
5035 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5036
5037         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
5038         imply -minterlink-mips16.
5039
5040 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5041
5042         * config/mips/mips.h (mips16_globals): Declare.
5043         (SWITCHABLE_TARGET): Define.
5044         * config/mips/mips.c: Include target-globals.h.
5045         (mips16_globals): New variable.
5046         (mips_set_mips16_mode): Use save_target_globals and
5047         restore_target_globals instead of target_reinit.
5048
5049 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5050
5051         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
5052         to say that the function can be called more than once.
5053         * target-globals.c (save_target_globals): Call init_reg_sets.
5054
5055 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5056
5057         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
5058         * bb-reorder.h: New file.
5059         * bb-reorder.c (default_target_bb_reorder): New variable.
5060         (this_target_bb_reorder): New conditional variable.
5061         (uncond_jump_length): Redefine as a macro.
5062         * target-globals.h (this_target_bb_reorder): Declare.
5063         (target_globals): Add a bb_reorder field.
5064         (restore_target_globals): Copy the bb_reorder field to
5065         this_target_bb-reorder.
5066         * target-globals.c: Include bb-reorder.h.
5067         (default_target_globals): Initialize the bb_reorder field.
5068         (save_target_globals): Likewise.
5069
5070 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5071
5072         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
5073         * gcse.h: New file.
5074         * gcse.c: Include gcse.h.
5075         (default_target_gcse): New variable.
5076         (this_target_gcse): New conditional variable.
5077         (can_copy): Redefine as a macro.
5078         (can_copy_init_p): New macro.
5079         (can_copy_p): Remove can_copy_init_p.
5080         * target-globals.h (this_target_gcse): Declare.
5081         (target_globals): Add a gcse field.
5082         (restore_target_globals): Copy the gcse field to this_target_gcse.
5083         * target-globals.c: Include gcse.h.
5084         (default_target_globals): Initialize the gcse field.
5085         (save_target_globals): Likewise.
5086
5087 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5088
5089         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
5090         and x_ira_prohibited_mode_move_regs_initialized_p.
5091         (ira_prohibited_mode_move_regs): Redefine as a macro.
5092         * ira.c (ira_prohibited_mode_move_regs): Delete.
5093         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
5094
5095 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5096
5097         * reload.h (target_reload): Add x_cached_reg_save_code and
5098         x_cached_reg_restore_code.
5099         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
5100         Redefine as macros.
5101
5102 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5103
5104         * Makefile.in (target-globals.o): Depend on builtins.h.
5105         * builtins.h: New file.
5106         * builtins.c: Include builtins.h.
5107         (default_target_builtins): New variable.
5108         (this_target_builtins): New conditional variable.
5109         (apply_args_mode, apply_result_mode): Redefine as macros.
5110         * target-globals.h (this_target_builtins): Declare.
5111         (target_globals): Add a builtins field.
5112         (restore_target_globals): Copy the builtins field to
5113         this_target_builtins.
5114         * target-globals.c: Include builtins.h.
5115         (default_target_globals): Initialize the builtins field.
5116         (save_target_globals): Likewise.
5117
5118 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5119
5120         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
5121         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
5122         from expmed.c.
5123         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
5124         (alg_hash, alg_hash_used_p): New macros.
5125         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
5126         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
5127         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
5128
5129 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5130
5131         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
5132         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
5133         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
5134         (this_op_costs, costs_classes): Redefine as macros.
5135         (record_reg_classes): Don't take op_costs as a parameter.
5136         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
5137         (scan_one_insn): Update call to record_operand_costs.
5138
5139 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5140
5141         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
5142         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
5143         (target_ira_int): New structure.
5144         (default_target_ira_int): Declare.
5145         (this_target_ira_int): Declare as a variable or define as a macro.
5146         (ira_reg_mode_hard_regset, ira_register_move_cost)
5147         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
5148         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
5149         (prohibited_class_mode_regs, ira_important_classes_num)
5150         (ira_important_classes, ira_reg_class_intersect)
5151         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
5152         (ira_reg_class_union): Redefine as macros.
5153         * ira.h (target_ira): New structure.
5154         (default_target_ira): Declare.
5155         (this_target_ira): Declare as a variable or define as a macro.
5156         (ira_available_class_regs, ira_hard_regno_cover_class)
5157         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
5158         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
5159         (ira_class_hard_regs_num): Redefine as macros.
5160         * ira.c (default_target_ira, default_target_ira_int): New variables.
5161         (this_target_ira, this_target_ira_int): New conditional variables.
5162         (ira_reg_mode_hard_regset, ira_memory_move_cost)
5163         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
5164         (ira_class_subset_p): Delete.
5165         (no_unit_alloc_regs): Redefine as a macro.
5166         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
5167         (ira_class_hard_regs_num, ira_class_hard_reg_index)
5168         (ira_available_class_regs): Delete.
5169         (alloc_reg_class_subclasses): Redefine as a macro.
5170         (ira_reg_class_cover_size, ira_reg_class_cover)
5171         (ira_important_classes_num, ira_important_classes)
5172         (ira_important_class_nums, ira_class_translate): Delete.
5173         (cover_class_order): Document the variable's lifetime.
5174         (reorder_important_classes): Don't set ira_important_class_nums.
5175         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
5176         (ira_reg_class_super_classes, ira_reg_class_union)
5177         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
5178         Delete.
5179         (setup_reg_class_nregs): Don't set ira_max_regs.
5180         (prohibited_class_mode_regs): Delete.
5181         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
5182         (target_globals): Add ira and ira_int fields.
5183         (restore_target_globals): Copy the ira field to this_target_ira
5184         and the ira_int field to this_target_ira_int.
5185         * target-globals.c: Include ira-int.h.
5186         (default_target_globals): Initialize the ira and ira_int fields.
5187         (save_target_globals): Likewise.
5188
5189 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5190
5191         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
5192         * cfgloop.h (target_cfgloop): New structure.
5193         (default_target_cfgloop): Declare.
5194         (this_target_cfgloop): Declare as a variable or define as a macro.
5195         (target_avail_regs, target_clobbered_regs, target_res_regs)
5196         (target_reg_cost, target_spill_cost): Redefine as macros.
5197         * cfgloopanal.c (default_target_cfgloop): New variable.
5198         (this_target_cfgloop): New conditional variable.
5199         (target_avail_regs, target_clobbered_regs, target_res_regs)
5200         (target_reg_cost, target_spill_cost): Delete.
5201         * target-globals.h (this_target_cfgloop): Declare.
5202         (target_globals): Add a cfgloop field.
5203         (restore_target_globals): Copy the cfgloop field to
5204         this_target_cfgloop.
5205         * target-globals.c: Include cfgloop.h.
5206         (default_target_globals): Initialize the cfgloop field.
5207         (save_target_globals): Likewise.
5208
5209 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5210
5211         * regs.h (target_regs): Add x_direct_load, x_direct_store and
5212         x_float_extend_from_mem.
5213         (direct_load, direct_store, float_extend_from_mem): New macros.
5214         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
5215
5216 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5217
5218         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
5219         (target-globals.o): Depend on $(LIBFUNCS_H).
5220         * libfuncs.h: Include hashtab.h.
5221         (libfunc_entry): Moved from optabs.c.
5222         (target_libfuncs): New structure.
5223         (default_target_libfuncs): Declare.
5224         (this_target_libfuncs): Declare as a variable or define as a macro.
5225         (libfunc_table): Redefine as a macro.
5226         * optabs.c (default_target_libfuncs): New variable.
5227         (this_target_libfuncs): New conditional variable.
5228         (libfunc_table): Delete.
5229         (libfunc_entry): Moved to optabs.h.
5230         (libfunc_hash): Redefine as a macro.
5231         (hash_libfunc, eq_libfunc): Fix comments.
5232         (init_optabs): Use libfunc_hash to detect cases where the function
5233         has already been called.  Clear the hash table instead of
5234         recreating it.
5235         * target-globals.h (this_target_libfuncs): Declare.
5236         (target_globals): Add a libfuncs field.
5237         (restore_target_globals): Copy the libfuncs field to
5238         this_target_libfuncs.
5239         * target-globals.c: Include libfuncs.h.
5240         (default_target_globals): Initialize the libfuncs field.
5241         (save_target_globals): Likewise.
5242
5243 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5244
5245         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
5246         in all dependency lists.
5247
5248 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5249
5250         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
5251         * optabs.h (target_optabs): New structure.
5252         (default_target_optabs): Declare.
5253         (this_target_optabs): Declare as a variable or define as a macro.
5254         (optab_table, convert_optab_table, direct_optab_table): Redefine
5255         as macros.
5256         * optabs.c (default_target_optabs): New variable.
5257         (this_target_optabs): New conditional variable.
5258         (optab_table, convert_optab_table, direct_optab_table): Delete.
5259         * target-globals.h (this_target_optabs): Declare.
5260         (target_globals): Add a optabs field.
5261         (restore_target_globals): Copy the optabs field to
5262         this_target_optabs.
5263         * target-globals.c: Include expr.h and optabs.h.
5264         (default_target_globals): Initialize the optabs field.
5265         (save_target_globals): Likewise.
5266
5267 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5268
5269         * flags.h (target_flagstate): Add x_flag_excess_precision.
5270         (flag_excess_precision): Redefine as a macro.
5271         * toplev.c (flag_excess_precision): Delete.
5272
5273 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5274
5275         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
5276         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
5277         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
5278         (no_caller_save_reg_set): Redefine as a macro.
5279         * reload.h (target_reload): Add x_caller_save_initialized_p and
5280         x_regno_save_mode.
5281         (caller_save_initialized_p): Redefine as a macro.
5282         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
5283         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
5284         (regno_save_mode): Redefine as a macro.
5285
5286 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5287
5288         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
5289         * expmed.h: New file.
5290         * expmed.c (default_target_costs): New variable.
5291         (this_target_costs): New conditional variable.
5292         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
5293         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
5294         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
5295         * target-globals.h (this_target_expmed): Declare.
5296         (target_globals): Add a expmed field.
5297         (restore_target_globals): Copy the expmed field to
5298         this_target_expmed.
5299         * target-globals.c: Include expmed.h.
5300         (default_target_globals): Initialize the expmed field.
5301         (save_target_globals): Likewise.
5302
5303 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5304
5305         * Makefile.in (target-globals.o): Depend on reload.h.
5306         * reload.h (target_reload): New structure.
5307         (default_target_reload): Declare.
5308         (this_target_reload): Declare as a variable or define as a macro.
5309         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
5310         * reload1.c (default_target_reload): New variable
5311         (this_target_reload): New conditional variable.
5312         (indirect_symref_ok, double_reg_address_ok): Delete.
5313         (spill_indirect_levels): Redefine as a macro.
5314         * target-globals.h (this_target_reload): Declare.
5315         (target_globals): Add a reload field.
5316         (restore_target_globals): Copy the reload field to
5317         this_target_reload.
5318         * target-globals.c: Include hard-reg-set.h.
5319         (default_target_globals): Initialize the reload field.
5320         (save_target_globals): Likewise.
5321
5322 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5323
5324         * rtl.h (target_rtl): Add x_static_reg_base_value.
5325         * alias.c (static_reg_base_value): Redefine as a macro.
5326
5327 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5328
5329         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
5330         (GTFILES): Remove reginfo.c.
5331         * rtl.h (target_rtl): Add x_top_of_stack.
5332         (top_of_stack): New macro.
5333         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
5334         (top_of_stack): Delete.
5335
5336 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5337
5338         * regs.h (target_regs): Add x_hard_regs_of_mode,
5339         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
5340         x_may_move_out_cost and x_last_mode_for_init_move_cost.
5341         (have_regs_of_mode, contains_reg_of_mode, move_cost)
5342         (may_move_in_cost, may_move_out_cost): Redefine as macros.
5343         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
5344         (may_move_in_cost, may_move_out_cost): Delete.
5345         (last_mode_for_init_move_cost): Redefine as a macro.
5346
5347 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5348
5349         * hard-reg-set.h (target_hard_regs): New structure.
5350         (default_target_hard_regs): Declare.
5351         (this_target_hard_regs): Declare as a variable or define as a macro.
5352         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
5353         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
5354         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
5355         (reg_class_size, reg_class_subclasses, reg_class_subunion)
5356         (reg_class_superunion, reg_names): Redefine as macros.
5357         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
5358         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
5359         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
5360         (reg_class_contents, reg_class_size, reg_class_subclasses)
5361         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
5362         (default_target_hard_regs): New variable
5363         (this_target_hard_regs, initial_call_really_used_regs)
5364         (initial_reg_alloc_order): New conditional variables.
5365         (initial_reg_names): New variable.
5366         (init_reg_sets): Assert that initial_call_really_used_regs,
5367         initial_reg_alloc_order and initial_reg_names
5368         are all the same size as their variable counterparts.  Use them to
5369         initialize those counterparts.
5370         * target-globals.h (this_target_hard_regs): Declare.
5371         (target_globals): Add a hard_regs field.
5372         (restore_target_globals): Copy the hard_regs field to
5373         this_target_hard_regs.
5374         * target-globals.c: Include hard-reg-set.h.
5375         (default_target_globals): Initialize the hard_regs field.
5376         (save_target_globals): Likewise.
5377
5378 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5379
5380         * Makefile.in (target-globals.o): Depend on $(RTL_H).
5381         * rtl.h (target_rtl): New structure.
5382         (default_target_rtl): Declare.
5383         (this_target_rtl): Declare as a variable or define as a macro.
5384         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
5385         Redefine as macros.
5386         * emit-rtl.c (default_target_rtl): New variable.
5387         (this_target_rtl): New conditional variable.
5388         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
5389         (return_address_pointer_rtx): Delete.
5390         (initial_regno_reg_rtx): New macro.
5391         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
5392         (init_emit_regs): Likewise.
5393         * target-globals.h (this_target_rtl): Declare.
5394         (target_globals): Add a rtl field.
5395         (restore_target_globals): Copy the rtl field to this_target_rtl.
5396         * target-globals.c: Include rtl.h.
5397         (default_target_globals): Initialize the rtl 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 $(REGS_H).
5403         * regs.h (target_reg_modes): New structure.
5404         (default_target_reg_modes): Declare.
5405         (this_target_reg_modes): Declare as a variable or define as a macro.
5406         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
5407         * reginfo.c (default_target_reg_modes): New variable.
5408         (this_target_reg_modes): New conditional variable.
5409         (hard_regno_nregs, reg_raw_mode): Delete.
5410         * target-globals.h (this_target_regs): Declare.
5411         (target_globals): Add a regs field.
5412         (restore_target_globals): Copy the regs field to this_target_regs.
5413         * target-globals.c: Include regs.h.
5414         (default_target_globals): Initialize the regs field.
5415         (save_target_globals): Likewise.
5416
5417 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5418
5419         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
5420         * doc/tm.texi: Regenerate.
5421         * Makefile.in (OBJS-common): Add target-globals.o.
5422         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
5423         and target-globals.h.
5424         (target-globals.o): New rule.
5425         (GTFILES): Include $(srcdir)/target-globals.h.
5426         * defaults.h (SWITCHABLE_TARGET): Define.
5427         * gengtype.c (open_base_files): Add target-globals.h to the
5428         list of includes.
5429         * target-globals.h: New file.
5430         * target-globals.c: Likewise.
5431
5432         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
5433         * flags.h (target_flag_state): New structure.
5434         (default_target_flag_state): Declare.
5435         (this_target_flag_state): Declare as a variable or define as a macro.
5436         (align_loops_log): Redefine as a macro.
5437         (align_loops_max_skip, align_jumps_log): Likewise.
5438         (align_jumps_max_skip, align_labels_log): Likewise.
5439         (align_labels_max_skip, align_functions_log): Likewise.
5440         * toplev.c (default_target_flag_state): New variable.
5441         (this_target_flag_state): New conditional variable.
5442         (align_loops_log): Delete.
5443         (align_loops_max_skip, align_jumps_log): Likewise.
5444         (align_jumps_max_skip, align_labels_log): Likewise.
5445         (align_labels_max_skip, align_functions_log): Likewise.
5446         * target-globals.h (this_target_flag_state): Declare.
5447         (target_globals): Add a flag_state field.
5448         (restore_target_globals): Copy the flag_state field to
5449         this_target_flag_state.
5450         * target-globals.c: Include flags.h.
5451         (default_target_globals): Initialize the flag_state field.
5452         (save_target_globals): Likewise.
5453
5454 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5455
5456         * postreload.c (reg_symbol_ref[]): New.
5457         (move2add_use_add2_insn): New.
5458         (move2add_use_add3_insn): New.
5459         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
5460         (move2add_note_store): Likewise.
5461
5462 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5463
5464         PR rtl-optimization/44752
5465         * genautomata.c (main): Don't emit an empty file even if there
5466         is no automaton.
5467
5468 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5469
5470         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
5471         ix86_solaris_return_in_memory.
5472         * config/i386-protos.h: Reflect this.
5473         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5474         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5475         Move ...
5476         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
5477
5478 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5479
5480         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
5481         align the stack when it's going to be saved.
5482
5483 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5484
5485         PR pch/14940
5486         * config/host-solaris.c (mmap_fixed): New function.
5487         (sol_gt_pch_get_address): Use it.
5488         (sol_gt_pch_use_address): Likewise.
5489
5490 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5491
5492         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5493         pentiumpro on Solaris 8 and 9/x86.
5494         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
5495         Document SSE/SSE2 support.
5496         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
5497
5498 2010-07-12  Andi Kleen  <ak@linux.intel.com>
5499
5500         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
5501         instead of gcc_assert to print better error message for multiple
5502         prevailing defs.
5503
5504 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
5505
5506         * config/i386/i386.c (ix86_asm_output_function_label): Change format
5507         string placeholder from 0x%x to %#x.
5508         (ix86_code_end): Use putc to output '\n'.
5509         (ix86_print_operand) <case ';'>: Use putc to output ';'.
5510
5511 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
5512
5513         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
5514         in directive -export.
5515
5516 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
5517
5518         * reginfo.h (reg_classes_intersect_p): Change arguments type to
5519         reg_class_t.
5520         * rtl.h (reg_classes_intersect_p): Adjust prototype.
5521
5522         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5523         Remove macros.
5524         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
5525         rs6000_memory_move_cost): Remove
5526         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
5527         TARGET_MEMORY_MOVE_COST): Define.
5528         (rs6000_register_move_cost): Make static. Change arguments type from
5529         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
5530         (rs6000_memory_move_cost): Make static. Change arguments type from
5531         'enum reg_class' to reg_class_t.
5532
5533 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
5534
5535         PR middle-end/42505
5536         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
5537         lookup code into....
5538         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
5539         new functions.
5540         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
5541         * cfgloopanal.c (target_clobbered_regs): Define.
5542         (init_set_costs): Initialize target_clobbered_regs.
5543         (estimate_reg_pressure_cost): Add call_p argument.  When true,
5544         adjust the number of available registers to exclude the
5545         call-clobbered registers.
5546         * cfgloop.h (target_clobbered_regs): Declare.
5547         (estimate_reg_pressure_cost): Adjust declaration.
5548         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
5549         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
5550         (determine_set_costs): Dump target_clobbered_regs.
5551         (loop_body_includes_call): New function.
5552         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
5553         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
5554         call_p flag through.
5555         (best_gain_for_invariant): Likewise.
5556         (find_invariants_to_move): Likewise.
5557         (move_single_loop_invariants): Likewise, using already-computed
5558         has_call field.
5559
5560 2010-07-10  Richard Guenther  <rguenther@suse.de>
5561             Joern Rennecke  <joern.rennecke@embecosm.com>
5562
5563         PR debug/44832
5564         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
5565         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
5566         unless they have DECL_IGNORED_P set.
5567
5568 2010-07-10  Richard Guenther  <rguenther@suse.de>
5569
5570         PR lto/44889
5571         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
5572         helper function.
5573         (gimple_types_compatible_p): Similar to pointed-to
5574         types allow and merge a mix of complete and incomplete aggregate.
5575         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
5576         (iterative_hash_gimple_type): Adjust for that.
5577
5578 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
5579
5580         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
5581
5582 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
5583
5584         PR objc/44140
5585         * config/darwin.c (output_objc_section_asm_op): Save and restore
5586         section when outputting ObjC section list.
5587
5588 2010-07-09  Jan Hubicka  <jh@suse.cz>
5589
5590         * lto-streamer-out.c (produce_symtab): Do not write alias
5591         cgraph/varpool nodes.
5592
5593 2010-07-09  Jan Hubicka  <jh@suse.cz>
5594
5595         * tree-inline.c (declare_return_variable): Fix ICE while
5596         inlining DECL_BY_VALUE function not in SSA form
5597
5598 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
5599
5600         PR tree-optimization/44576
5601         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
5602         New.  Pull out from is_loop_prefetching_profitable to implement
5603         the trip count to ahead ratio heuristic.
5604         (mem_ref_count_reasonable_p): New.  Pull out from
5605         is_loop_prefetching_profitable to implement the instruction to
5606         memory reference ratio heuristic.  Also consider not reasonable if
5607         the memory reference count is above a threshold (to avoid
5608         explosive compilation time.
5609         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
5610         is_loop_prefetching_profitable to implement the instruction to
5611         prefetch ratio heuristic.
5612         (is_loop_prefetching_profitable): Removed.
5613         (loop_prefetch_arrays): Distribute the cost analysis across the
5614         function to allow early exit of the prefetch analysis.
5615         is_loop_prefetching_profitable is splitted into three functions,
5616         with each one called as early as possible.
5617         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
5618         number of memory references in a loop is considered too many.
5619
5620 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5621
5622         * reload.c (find_reloads): Don't clear badop if we have a winreg
5623         alternative, but not win, and the class only has fixed regs.
5624         * hard-reg-set.h (class_only_fixed_regs): Declare.
5625         * reginfo.c (class_only_fixed_regs): New array.
5626         (init_reg_sets_1): Initialize it.
5627         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5628         discourage alternatives using the stack pointer.
5629
5630         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5631
5632         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5633
5634         * config/arm/arm.md (cbranchqi4): Fix array size.
5635         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5636         calculating length.
5637
5638 2010-07-09  Richard Guenther  <rguenther@suse.de>
5639
5640         * gimple.c (struct type_fixup_s): New struct and VEC type.
5641         (gimple_register_type_fixups): New static global.
5642         (gimple_queue_type_fixup): New function.
5643         (gimple_types_compatible_p): Queue type fixups instead of
5644         applying them here.
5645         (gimple_register_type): Apply queued fixups for the
5646         canonical type.  Empty the type fixup queue.
5647
5648 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5649
5650         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5651         * configure: Regenerate.
5652         * config.in: Ditto.
5653
5654 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5655             Denys Vlasenko  <dvlasenk@redhat.com>
5656             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5657
5658         PR tree-optimization/28632
5659         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5660         (extract_range_from_binary_expr): Further optimize
5661         BIT_AND_EXPR and BIT_IOR_EXPR.
5662
5663 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
5664
5665         * tree-if-conv.c (fold_or_predicates): New.
5666         (add_to_predicate_list): Call it.
5667
5668 2010-07-09  Richard Guenther  <rguenther@suse.de>
5669
5670         PR middle-end/44890
5671         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5672         if base is a pointer.
5673         * tree-cfg.c (verify_expr): Update MEM_REF checking.
5674
5675 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5676
5677         PR target/44877
5678         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5679         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5680         builtin mask for load/store builtins.
5681
5682 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5683
5684         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5685         for "lock addl".
5686         * configure: Regenerate.
5687         * config/i386/i386.c (ix86_print_operand) <case ';'>:
5688         Remove TARGET_MACHO.
5689
5690 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
5691
5692         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5693         default ISA flags.
5694         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5695
5696 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
5697
5698         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5699
5700 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5701
5702         * config/picochip/picochip.md (commsTestPort): Emit more
5703         efficient sequence for tstport instruction.
5704
5705 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5706
5707         * config/i386/i386.c (ix86_veclib_handler): Make static.
5708
5709 2010-07-09  Richard Guenther  <rguenther@suse.de>
5710
5711         PR tree-optimization/44852
5712         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5713         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5714         in MEM_REF.
5715         (indirect_refs_may_alias_p): Likewise.
5716         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5717
5718 2010-07-09  Richard Guenther  <rguenther@suse.de>
5719
5720         PR tree-optimization/44882
5721         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5722         sets do conflict.
5723         (vectorizable_load): Likewise.
5724
5725 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5726
5727         PR target/40657
5728         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5729         All callers changed.
5730         Handle the case when we're called for the epilogue.
5731         (thumb_unexpanded_epilogue): Use it.
5732         (thumb1_expand_epilogue): Likewise.
5733
5734 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5735
5736         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5737         both ranges are range_int_cst_p with non-negative minimum,
5738         try harder to derive smaller range.
5739
5740 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5741
5742         * genrecog.c: Include diagnostic-core.h before toplev.h.
5743         * genoutput.c: Likewise.
5744         * genextract.c: Likewise.
5745         * genautomata.c: Likewise.
5746         * genemit.c: Likewise.
5747         * genpeep.c: Likewise.
5748         * genattrtab.c: Likewise.
5749         * genconditions.c: Likewise.
5750         * genpreds.c: Likewise.
5751
5752 2010-07-08  Andi Kleen  <ak@linux.intel.com>
5753
5754         * lto-section-in.c (lto_section_name): Add missing comma.
5755
5756 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
5757
5758         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5759         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5760         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5761         (ia64_override_options): Rename to...
5762         (ia64_option_override): ... this one. Make static.
5763
5764 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5765
5766         PR middle-end/44843
5767         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5768         pointed-to type of the offset in a MEM_REF to compute the alignment.
5769
5770 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
5771
5772         * final.c (final_scan_insn): Replace
5773         TARGET_UNWIND_INFO macro check by unwind_emit
5774         hook NULL check.
5775         * targhooks.c (default_unwind_emit): Removed.
5776         * targhooks.h (default_unwind_emit): Likewise.
5777         * target.def (unwind_emit): Set default value to NULL.
5778
5779         * config/i386/i386-protos.h (ix86_asm_output_function_label):
5780         New prototype.
5781         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5782         for NULL fntype argument and allow 64-bit targets.
5783         (ix86_asm_output_function_label): New function.
5784         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5785         (ix86_handle_fndecl_attribute): Likewise.
5786         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5787         * doc/doc/tm.texi: Regenerated.
5788         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5789         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5790         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5791         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5792         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5793         * config/elfos.h: Likewise.
5794         * config/i386/cygming.h: Likewise.
5795         * config/netbsd-aout.h: Likewise.
5796         * config/openbsd.h: Likewise.
5797         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5798         by ix86_asm_output_function_label function call.
5799         * varasm.c (assemble_start_function): Use
5800         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5801
5802 2010-07-08  Jan Hubicka  <jh@suse.cz>
5803
5804         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5805         New function.
5806         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5807         Declare.
5808         * ipa-cp.c (ipcp_estimate_growth): Use it.
5809         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5810         Likewise.
5811
5812 2010-07-08  Jan Hubicka  <jh@suse.cz>
5813
5814         * tree-inline.c (declare_return_variable): Allocate annotation for new
5815         temporary.
5816
5817 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5818
5819         PR tree-optimization/44710
5820         * tree-if-conv.c (parse_predicate): New.
5821         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5822         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5823
5824 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5825
5826         * common.opt (ftree-loop-if-convert): New flag.
5827         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5828         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5829         when flag_tree_loop_if_convert is set.
5830
5831 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5832
5833         * config/i386/i386.c: Use short syntax for function calls
5834         through function pointers.
5835         * config/i386/i386.md: Ditto.
5836
5837 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5838
5839         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5840
5841 2010-07-08  Richard Guenther  <rguenther@suse.de>
5842
5843         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5844         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5845
5846 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5847
5848         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5849         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5850         (loc_list_from_tree): Likewise.
5851         (output_loc_operands): Handle outputting DW_OP_const[48]u
5852         with loc->dtprel set.
5853         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5854
5855 2010-07-08  Jan Hubicka  <jh@suse.cz>
5856
5857         * ipa.c: Include pointer-set.h
5858         (cgraph_externally_visible_p): New attribute ALIASED;
5859         when in LTO, hidden symbols are local unless they are aliased.
5860         (function_and_variable_visibility): Compute aliased nodes;
5861         handle LTO and hidden symbol on functions and vars.
5862         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5863         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5864
5865 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5866
5867         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5868         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5869         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5870         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5871         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5872         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5873         (ix86_gen_probe_stack_range): Likewise.
5874         (override_options): Set them.
5875         (ix86_target_stack_probe): New function.
5876         (ix86_compute_frame_layout): Force use of push instructions to
5877         save registers if stack checking with probes is enabled.
5878         (get_scratch_register_on_entry): New function.
5879         (release_scratch_register_on_entry): Likewise.
5880         (ix86_adjust_stack_and_probe): Likewise.
5881         (output_adjust_stack_and_probe): Likewise.
5882         (ix86_emit_probe_stack_range): Likewise.
5883         (output_probe_stack_range): Likewise.
5884         (ix86_expand_prologue): Emit stack checking code if static built-in
5885         stack checking is enabled.
5886         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5887         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5888         (output_adjust_stack_and_probe): Likewise.
5889         (output_probe_stack_range): Likewise.
5890         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5891         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5892         TARGET_STACK_PROBE.
5893         (allocate_stack_worker_64): Likewise.
5894         (allocate_stack): Likewise.
5895         (adjust_stack_and_probe): New insn.
5896         (probe_stack_range): Likewise.
5897
5898 2010-07-08  Richard Guenther  <rguenther@suse.de>
5899
5900         PR tree-optimization/44831
5901         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5902         a MEM_REF preserving TBAA info of the original dereference.
5903         Dereference the original pointer if the address is not invariant.
5904         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5905         at least one invariant address that we are going to dereference.
5906
5907 2010-07-08  Richard Guenther  <rguenther@suse.de>
5908
5909         PR tree-optimization/44861
5910         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5911         information when building MEM_REFs.
5912         (vectorizable_load): Likewise.
5913         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5914
5915 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5916
5917         * config/sol2-c.c: Do not include diagnostic-core.h.
5918
5919 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5920
5921         PR bootstrap/44768
5922         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5923         with respect to current_function_decl. Pass decl of the function.
5924         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5925         * ipa-inline.c (compute_inline_parameters): Pass decl to
5926         estimated_stack_frame_size.
5927
5928 2010-07-08  Richard Guenther  <rguenther@suse.de>
5929
5930         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5931         New function.
5932         (valueize_refs): Call it.
5933
5934 2010-07-08  Richard Guenther  <rguenther@suse.de>
5935
5936         PR rtl-optimization/44838
5937         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5938         SSA form do not use pointer equivalence.
5939
5940 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5941
5942         * dwarf2out.c (AT_linkage_name): Delete.
5943         (add_linkage_attr): New function.
5944         (add_linkage_name): Call it to emit the linkage attribute.
5945         (dwarf2out_finish): Likewise.
5946         (move_linkage_attr): Explicitly accept both attribute variants.
5947
5948 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5949
5950         * toplev.h: Do not include diagnostic-core.h.
5951         Include diagnostic-core.h in every file that includes toplev.h.
5952         * c-tree.h: Do not include toplev.h.
5953         * pretty-print.h: Update comment.
5954         * Makefile.in: Update dependencies.
5955         * alias.c: Include diagnostic-core.h in every file that includes
5956         toplev.h.
5957         * attribs.c: Likewise.
5958         * auto-inc-dec.c: Likewise.
5959         * bb-reorder.c: Likewise.
5960         * bt-load.c: Likewise.
5961         * caller-save.c: Likewise.
5962         * calls.c: Likewise.
5963         * cfg.c: Likewise.
5964         * cfganal.c: Likewise.
5965         * cfgbuild.c: Likewise.
5966         * cfgcleanup.c: Likewise.
5967         * cfghooks.c: Likewise.
5968         * cfgloop.c: Likewise.
5969         * combine.c: Likewise.
5970         * config/alpha/alpha.c: Likewise.
5971         * config/arc/arc.c: Likewise.
5972         * config/arm/arm.c: Likewise.
5973         * config/arm/pe.c: Likewise.
5974         * config/avr/avr.c: Likewise.
5975         * config/bfin/bfin.c: Likewise.
5976         * config/cris/cris.c: Likewise.
5977         * config/crx/crx.c: Likewise.
5978         * config/darwin-c.c: Likewise.
5979         * config/darwin.c: Likewise.
5980         * config/fr30/fr30.c: Likewise.
5981         * config/frv/frv.c: Likewise.
5982         * config/h8300/h8300.c: Likewise.
5983         * config/host-darwin.c: Likewise.
5984         * config/i386/i386.c: Likewise.
5985         * config/i386/netware.c: Likewise.
5986         * config/i386/nwld.c: Likewise.
5987         * config/i386/winnt-cxx.c: Likewise.
5988         * config/i386/winnt-stubs.c: Likewise.
5989         * config/i386/winnt.c: Likewise.
5990         * config/ia64/ia64-c.c: Likewise.
5991         * config/ia64/ia64.c: Likewise.
5992         * config/iq2000/iq2000.c: Likewise.
5993         * config/lm32/lm32.c: Likewise.
5994         * config/m32c/m32c-pragma.c: Likewise.
5995         * config/m32c/m32c.c: Likewise.
5996         * config/m32r/m32r.c: Likewise.
5997         * config/m68hc11/m68hc11.c: Likewise.
5998         * config/m68k/m68k.c: Likewise.
5999         * config/mcore/mcore.c: Likewise.
6000         * config/mep/mep-pragma.c: Likewise.
6001         * config/mep/mep.c: Likewise.
6002         * config/mmix/mmix.c: Likewise.
6003         * config/mn10300/mn10300.c: Likewise.
6004         * config/moxie/moxie.c: Likewise.
6005         * config/pa/pa.c: Likewise.
6006         * config/pdp11/pdp11.c: Likewise.
6007         * config/picochip/picochip.c: Likewise.
6008         * config/rs6000/rs6000-c.c: Likewise.
6009         * config/rs6000/rs6000.c: Likewise.
6010         * config/rx/rx.c: Likewise.
6011         * config/s390/s390.c: Likewise.
6012         * config/score/score.c: Likewise.
6013         * config/score/score3.c: Likewise.
6014         * config/score/score7.c: Likewise.
6015         * config/sh/sh.c: Likewise.
6016         * config/sh/symbian-base.c: Likewise.
6017         * config/sh/symbian-c.c: Likewise.
6018         * config/sh/symbian-cxx.c: Likewise.
6019         * config/sol2-c.c: Likewise.
6020         * config/sol2.c: Likewise.
6021         * config/sparc/sparc.c: Likewise.
6022         * config/spu/spu.c: Likewise.
6023         * config/stormy16/stormy16.c: Likewise.
6024         * config/v850/v850-c.c: Likewise.
6025         * config/v850/v850.c: Likewise.
6026         * config/vax/vax.c: Likewise.
6027         * config/vxworks.c: Likewise.
6028         * config/xtensa/xtensa.c: Likewise.
6029         * convert.c: Likewise.
6030         * cse.c: Likewise.
6031         * cselib.c: Likewise.
6032         * dbgcnt.c: Likewise.
6033         * dbxout.c: Likewise.
6034         * ddg.c: Likewise.
6035         * dominance.c: Likewise.
6036         * emit-rtl.c: Likewise.
6037         * explow.c: Likewise.
6038         * expmed.c: Likewise.
6039         * fixed-value.c: Likewise.
6040         * fold-const.c: Likewise.
6041         * fwprop.c: Likewise.
6042         * gcse.c: Likewise.
6043         * ggc-common.c: Likewise.
6044         * ggc-page.c: Likewise.
6045         * ggc-zone.c: Likewise.
6046         * gimple-low.c: Likewise.
6047         * gimplify.c: Likewise.
6048         * graph.c: Likewise.
6049         * haifa-sched.c: Likewise.
6050         * ifcvt.c: Likewise.
6051         * implicit-zee.c: Likewise.
6052         * integrate.c: Likewise.
6053         * ira-build.c: Likewise.
6054         * ira-color.c: Likewise.
6055         * ira-conflicts.c: Likewise.
6056         * ira-costs.c: Likewise.
6057         * ira-lives.c: Likewise.
6058         * ira.c: Likewise.
6059         * lists.c: Likewise.
6060         * loop-doloop.c: Likewise.
6061         * loop-iv.c: Likewise.
6062         * lto-opts.c: Likewise.
6063         * lto-symtab.c: Likewise.
6064         * main.c: Likewise.
6065         * modulo-sched.c: Likewise.
6066         * optabs.c: Likewise.
6067         * params.c: Likewise.
6068         * plugin.c: Likewise.
6069         * postreload-gcse.c: Likewise.
6070         * postreload.c: Likewise.
6071         * predict.c: Likewise.
6072         * profile.c: Likewise.
6073         * real.c: Likewise.
6074         * regcprop.c: Likewise.
6075         * reginfo.c: Likewise.
6076         * regmove.c: Likewise.
6077         * reorg.c: Likewise.
6078         * resource.c: Likewise.
6079         * rtl.c: Likewise.
6080         * rtlanal.c: Likewise.
6081         * sched-deps.c: Likewise.
6082         * sched-ebb.c: Likewise.
6083         * sched-rgn.c: Likewise.
6084         * sdbout.c: Likewise.
6085         * sel-sched-dump.c: Likewise.
6086         * sel-sched-ir.c: Likewise.
6087         * simplify-rtx.c: Likewise.
6088         * stmt.c: Likewise.
6089         * stor-layout.c: Likewise.
6090         * store-motion.c: Likewise.
6091         * targhooks.c: Likewise.
6092         * tree-cfg.c: Likewise.
6093         * tree-cfgcleanup.c: Likewise.
6094         * tree-dump.c: Likewise.
6095         * tree-eh.c: Likewise.
6096         * tree-inline.c: Likewise.
6097         * tree-nomudflap.c: Likewise.
6098         * tree-object-size.c: Likewise.
6099         * tree-optimize.c: Likewise.
6100         * tree-outof-ssa.c: Likewise.
6101         * tree-phinodes.c: Likewise.
6102         * tree-profile.c: Likewise.
6103         * tree-ssa-ccp.c: Likewise.
6104         * tree-ssa-coalesce.c: Likewise.
6105         * tree-ssa-live.c: Likewise.
6106         * tree-ssa-loop-niter.c: Likewise.
6107         * tree-ssa-loop-prefetch.c: Likewise.
6108         * tree-ssa-loop.c: Likewise.
6109         * tree-ssa-structalias.c: Likewise.
6110         * tree-ssa-uninit.c: Likewise.
6111         * tree-ssa.c: Likewise.
6112         * tree-vect-data-refs.c: Likewise.
6113         * tree-vect-loop-manip.c: Likewise.
6114         * tree-vect-loop.c: Likewise.
6115         * tree-vect-patterns.c: Likewise.
6116         * tree-vect-stmts.c: Likewise.
6117         * tree-vrp.c: Likewise.
6118         * varasm.c: Likewise.
6119         * vec.c: Likewise.
6120         * web.c: Likewise.
6121         * xcoffout.c: Likewise.
6122
6123 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
6124
6125         * gengtype.c (write_field_root): New function.
6126         (write_root): Use it.
6127
6128 2010-07-07  Wei Guozhi  <carrot@google.com>
6129
6130         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
6131         of lowest bits to lshift/compare): Add a missing line.
6132
6133 2010-07-07  Wei Guozhi  <carrot@google.com>
6134
6135         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
6136         of lowest bits to lshift/compare): New.
6137
6138 2010-07-07  Tom Tromey  <tromey@redhat.com>
6139
6140         * doc/tm.texi: Update.
6141         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
6142         Add @hook.
6143         * target.def (want_debug_pub_sections): New hook.
6144         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
6145         * dwarf2out.c (add_pubname_string): Check
6146         targetm.want_debug_pub_sections.
6147         (add_pubname): Likewise.
6148         (add_pubtype): Likewise.
6149
6150 2010-07-07  Jie Zhang  <jie@codesourcery.com>
6151
6152         * genautomata.c (output_automata_list_min_issue_delay_code):
6153         Correctly decompress min_issue_delay.
6154
6155 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6156
6157         PR rtl-optimization/44404
6158         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
6159         possible, use reg_overlap_mentioned_p instead.
6160
6161 2010-07-07  Duncan Sands  <baldrick@free.fr>
6162
6163         PR middle-end/41355
6164         * tree.c (build_function_type_skip_args): Copy the original type using
6165         build_distinct_type_copy rather than copy_node.
6166
6167 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6168
6169         PR target/44850
6170         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
6171         revision 161876.
6172         (ix86_expand_prologue): Likewise.
6173         (ix86_handle_fndecl_attribute): Likewise.
6174         (ix86_asm_declare_function_name): Likewise.
6175         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6176         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6177         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
6178         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
6179         * doc/extend.texi: Likewise.
6180
6181 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
6182
6183         PR target/44844
6184         * config/i386/i386.md (rdrand<mode>): Changed to expand to
6185         retry if the carry flag isn't valid.
6186         (rdrand<mode>_1): New.
6187
6188 2010-07-07  Richard Guenther  <rguenther@suse.de>
6189
6190         PR middle-end/44790
6191         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
6192         for expanding the constant offset for MEM_REFs.
6193
6194 2010-07-07  Richard Guenther  <rguenther@suse.de>
6195
6196         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
6197         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
6198         * gimple.h (is_gimple_operand): Remove.
6199         * gimple.c (is_gimple_operand): Likewise.
6200         (walk_gimple_op): Fix wi->val_only setting for calls.
6201         * tree-cfg.c (verify_gimple_call): Fix argument validation.
6202         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
6203         invalid gimple calls.
6204
6205 2010-07-06  Jan Hubicka  <jh@suse.cz>
6206
6207         * lto-cgraph.c (output_cgraph): Add missing declaration.
6208
6209 2010-07-06  Jan Hubicka  <jh@suse.cz>
6210
6211         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
6212         partition.
6213
6214 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
6215
6216         * doc/gimple.texi (GIMPLE_DEBUG): Document.
6217         * doc/rtl.texi (Debug Information): New node.
6218         (NOTE_INSN_VAR_LOCATION): Document.
6219         (debug_insn): Likewise.
6220         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
6221
6222 2010-07-07  Jan Hubicka  <jh@suse.cz>
6223
6224         With parts by Richard Guenther.
6225
6226         PR middle-end/44813
6227         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
6228         for functions passed by reference.
6229         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
6230         in memory when passed by reference.
6231         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
6232         beggining.
6233         * ipa-split.c (split_function): Cleanup way return value is passed;
6234         handle SSA DECL_BY_REFERENCE retvals.
6235         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
6236         DECL_BY_REFERENCE is set.
6237         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
6238         find_what_p_points_to): Handle RESULT_DECL.
6239         * tree-inline.c (declare_return_variable): Get new entry_block argument;
6240         when passing by reference ensure that RESULT_DECL is gimple_val.
6241         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
6242         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
6243
6244 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
6245
6246         PR rtl-optimization/44787
6247         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
6248         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
6249
6250 2010-07-06  Jan Hubicka  <jh@suse.cz>
6251
6252         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
6253         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
6254         with body can prevail.
6255         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
6256         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
6257         * cgraph.c (cgraph_get_node_or_alias): New function.
6258         * cgraph.h (cgraph_get_node_or_alias): Declare.
6259
6260 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
6261
6262         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
6263         support.
6264         (ix86_expand_prologue): Likewise.
6265         (ix86_handle_fndecl_attribute): Likewise.
6266         (ix86_asm_declare_function_name): New function for
6267         ASM_DECLARE_FUNCTION_NAME.
6268         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
6269         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
6270         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
6271         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
6272         * doc/extend.texi: Adjust documentation about ms_hook_prologue
6273         attribute.
6274
6275 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6276
6277         * config/i386/i386.md (immediate_operand): New mode attribute.
6278
6279         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
6280         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
6281         using P mode iterator.
6282         (pro_epilogue_adjust_stack_di_2): Rename from
6283         pro_epilogue_adjust_stack_rex64_2.
6284
6285         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
6286
6287 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6288
6289         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
6290         through gen_mov_insv_1 function pointer.
6291         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
6292         gen_truncxf<mode>2 through gen_truncxf function pointer.
6293         (remainder<mode>3): Ditto.
6294         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
6295         (allocate_stack): Call gen_allocate_stack_worker_64 or
6296         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
6297         function pointer.
6298         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
6299         function pointer.
6300
6301 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6302
6303         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
6304         operand constraint instead of <r><i>m.
6305
6306 2010-07-06  Richard Guenther  <rguenther@suse.de>
6307
6308         PR middle-end/44828
6309         * convert.c (convert_to_integer): Watch out for overflowing
6310         MULT_EXPR as well.
6311
6312 2010-07-05  Jan Hubicka  <jh@suse.cz>
6313
6314         * lto-streamer.c (write_symbol_vec): Rename to ...
6315         (write_symbol) ... this one; write only symbol given and when
6316         present in cache. Sanity check that what is defined is present
6317         in cgraph/varpool with body/finalized decl.
6318         (write_symbols_of_kind): Remove.
6319         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
6320         pairs to produce symtab.
6321         (produce_asm_for_decls): Update call of produce_symtab; don't do so
6322         when doing WPA streaming.
6323
6324 2010-07-05  Jan Hubicka  <jh@suse.cz>
6325
6326         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
6327         function is still available to fold into.
6328
6329 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6330
6331         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
6332         * function.h (struct_function): Change type of local_decls field
6333         to a VEC.
6334         (add_local_decl): New function.
6335         (FOR_EACH_LOCAL_DECL): New macro.
6336         * cfgexpand.c (init_vars_expansion): Adjust for new type of
6337         cfun->local_decls.
6338         (estimated_stack_frame_size): Likewise.
6339         (expand_used_vars): Likewise.
6340         * cgraphbuild.c (build_cgraph_edges): Likewise.
6341         * function.c (instantiate_decls_1): Likewise.
6342         * ipa-struct-reorg.c (build_data_structure): Likewise.
6343         * ipa-type-escape.c (analyze_function): Likewise.
6344         * lto-streamer-in.c (input_function): Likewise.
6345         * lto-streamer-out.c (output_function): Likewise.
6346         * tree-ssa-live.c (remove_unused_locals): Likewise.
6347         * tree.c (free_lang_data_in_decl): Likewise.
6348         (find_decls_types_in_node): Likewise.
6349         * omp-low.c (remove_exit_barrier): Likewise.
6350         (expand_omp_taskreg): Likewise.
6351         (list2chain): Rename to...
6352         (vec2chain): ...this.  Adjust.
6353         * cgraphunit.c (assemble_thunk): Call add_local_decl.
6354         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
6355         * gimple-low.c (record_vars_into): Likewise.
6356         * tree-inline.c (remap_decls): Likewise.
6357         (declare_return_variable): Likewise.
6358         (declare_inline_vars): Likewise.
6359         (copy_forbidden): Adjust for new type of cfun->local_decls.
6360         (add_local_variables): New function.
6361         (expand_call_inline): Call it.
6362         (tree_function_versioning): Likewise.
6363
6364 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6365
6366         AVX Programming Reference (June, 2010)
6367         * config/i386/cpuid.h (bit_F16C): New.
6368         (bit_RDRND): Likewise.
6369         (bit_FSGSBASE): Likewise.
6370
6371         * config/i386/i386-builtin-types.def: Add
6372         "DEF_FUNCTION_TYPE (UINT16)", function types for
6373         float16 <-> float conversions and
6374         "DEF_FUNCTION_TYPE (VOID, UINT64)".
6375
6376         * config/i386/i386-c.c (ix86_target_macros_internal): Support
6377         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
6378         OPTION_MASK_ISA_F16C.
6379
6380         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
6381         (OPTION_MASK_ISA_RDRND_SET): Likewise.
6382         (OPTION_MASK_ISA_F16C_SET): Likewise.
6383         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
6384         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
6385         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
6386         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
6387         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
6388         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
6389         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
6390         (override_options): Handle them.
6391         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
6392         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
6393         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
6394         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
6395         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
6396         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
6397         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
6398         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
6399         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
6400         (bdesc_args): Likewise.
6401         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
6402         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
6403         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
6404         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
6405         Handle non-memory store.
6406
6407         * config/i386/i386.h (TARGET_FSGSBASE): New.
6408         (TARGET_RDRND): Likewise.
6409         (TARGET_F12C): Likewise.
6410
6411         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
6412         (UNSPEC_VCVTPS2PH): Likewise.
6413         (UNSPECV_RDFSBASE): Likewise.
6414         (UNSPECV_RDGSBASE): Likewise.
6415         (UNSPECV_WRFSBASE): Likewise.
6416         (UNSPECV_WRGSBASE): Likewise.
6417         (UNSPECV_RDRAND): Likewise.
6418         (rdfsbase<mode>): Likewise.
6419         (rdgsbase<mode>): Likewise.
6420         (wrfsbase<mode>): Likewise.
6421         (wrgsbase<mode>): Likewise.
6422         (rdrand<mode>): Likewise.
6423
6424         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
6425
6426         * config/i386/immintrin.h (_rdrand_u16): New.
6427         (_rdrand_u32): Likewise.
6428         (_readfsbase_u32): Likewise.
6429         (_readfsbase_u64): Likewise.
6430         (_readgsbase_u32): Likewise.
6431         (_readgsbase_u64): Likewise.
6432         (_writefsbase_u32): Likewise.
6433         (_writefsbase_u64): Likewise.
6434         (_writegsbase_u32): Likewise.
6435         (_writegsbase_u64): Likewise.
6436         (_rdrand_u64): Likewise.
6437         (_cvtsh_ss): Likewise.
6438         (_mm_cvtph_ps): Likewise.
6439         (_mm256_cvtph_ps): Likewise.
6440         (_cvtss_sh): Likewise.
6441         (_mm_cvtps_ph): Likewise.
6442         (_mm256_cvtps_ph): Likewise.
6443
6444         * config/i386/sse.md (vcvtph2ps): New.
6445         (*vcvtph2ps_load): Likewise.
6446         (vcvtph2ps256): Likewise.
6447         (vcvtps2ph): Likewise.
6448         (*vcvtps2ph): Likewise.
6449         (*vcvtps2ph_store): Likewise.
6450         (vcvtps2ph256): Likewise.
6451
6452         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
6453
6454         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
6455
6456 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
6457
6458         PR bootstrap/44512
6459         * genenums.c (main): Output include of insn-constants.h
6460         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
6461
6462 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
6463
6464         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
6465         (override_options): Initialize it.
6466         (ix86_expand_prologue): Use it.
6467
6468 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6469
6470         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
6471
6472 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6473
6474         * double-int.h (fit_double_type): Remove declaration.
6475         * double-int.c (fit_double_type): Remove function.
6476         * tree.h (int_fits_type_p): Adjust prototype.
6477         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
6478         instead of fit_double_type.
6479         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
6480         instead of fit_double_type and build_int_cst_wide.
6481         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
6482         instead of fit_double_type and build_int_cst_wide.
6483         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
6484         of fit_double_type.
6485
6486 2010-07-05  Jan Hubicka  <jh@suse.cz>
6487
6488         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
6489         in_other_partition.
6490         * lto-cgraph.c (referenced_from_other_partition_p,
6491         reachable_from_other_partition_p): Use in_other_partition flags.
6492         (output_node, output_varpool_node): COMDAT nodes always have private
6493         copies and thus are never used from other partition.
6494
6495 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6496
6497         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6498         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
6499         * config/ia64/ia64.c Include reload.h.
6500         (ia64_memory_move_cost): New function.
6501         (TARGET_MEMORY_MOVE_COST): Define.
6502         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
6503         memory_move_cost.
6504
6505 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
6506
6507         PR middle-end/42505
6508         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
6509         comments about cost model.
6510         (try_add_cand_for):  Add second strategy for choosing initial set
6511         based on original IVs, controlled by ORIGINALP argument.
6512         (get_initial_solution): Add ORIGINALP argument.
6513         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
6514         (find_optimal_iv_set): Try two different strategies for choosing
6515         the IV set, and return the one with lower cost.
6516
6517 2010-07-05  Richard Guenther  <rguenther@suse.de>
6518
6519         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
6520
6521 2010-07-05  Richard Guenther  <rguenther@suse.de>
6522
6523         * tree.c (reference_alias_ptr_type): New function.
6524         * tree.h (reference_alias_ptr_type): Declare.
6525         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
6526         allow non-TARGET_MEM_REF new refs.
6527         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
6528         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
6529         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
6530         (create_mem_ref): Get alias pointer type.  Adjust calls to
6531         create_mem_ref_raw.
6532         (maybe_fold_tmr): Likewise.
6533         * tree-flow.h (create_mem_ref): Adjust prototype.
6534
6535 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6536
6537         PR c++/44808
6538         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
6539         *from_p is VAR_DECL.
6540
6541 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6542
6543         * tree.h (build_call_list): Remove.
6544         * tree.c (build_call_list): Remove.
6545
6546 2010-07-05  Richard Guenther  <rguenther@suse.de>
6547
6548         * double-int.h (double_int_sub): Declare.
6549         * double-int.c (double_int_sub): New function.
6550         * dwarf2out.c (field_byte_offset): Use it.
6551         * fixed-value.c (do_fixed_add): Likewise.
6552         (do_fixed_multiply): Likewise.
6553         (do_fixed_divide): Likewise.
6554         * tree-predcom.c (add_ref_to_chain): Likewise.
6555         (determine_roots_comp): Likewise.
6556         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6557
6558 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6559
6560         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
6561         implementations.
6562
6563 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
6564
6565         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
6566         * arm-modes.def (CC_NOTB): Don't define.
6567         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
6568         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6569         (LTUGEU): New code_iterator.
6570         (cnb, optab): New corresponding code_attrs.
6571         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
6572         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
6573         using LTUGEU.
6574         (addsi3_carryin_shift_<optab>): Likewise.
6575         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
6576         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
6577         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
6578         (subsi3_compare): Renamed from subsi3_compare0_c.
6579         Change CC_NOTB to CC.
6580         (arm_subsi3_insn): Allow constants for operand 0.
6581         (compare_scc peephole for eq case): New.
6582         (compare_scc splitters): Change CC_NOTB to CC.
6583
6584 2010-07-05  Richard Guenther  <rguenther@suse.de>
6585
6586         * tree-ssa-loop-im.c (for_each_index): Do not handle
6587         ALIGN_INDIRECT_REF.
6588         (gen_lsm_tmp_name): Likewise.
6589         * tree-dump.c (dequeue_and_dump): Likewise.
6590         * tree-pretty-print.c (dump_generic_node): Likewise.
6591         (op_code_prio): Likewise.
6592         (op_symbol_code): Likewise.
6593         * tree.c (staticp): Likewise.
6594         (build1_stat): Likewise.
6595         * tree.h (INDIRECT_REF_P): Likewise.
6596         * fold-const.c (maybe_lvalue_p): Likewise.
6597         (operand_equal_p): Likewise.
6598         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6599         (ao_ref_init_from_vn_reference): Likewise.
6600         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6601         (find_interesting_uses_address): Likewise.
6602         * dwarf2out.c (loc_list_from_tree): Likewise.
6603         * gimplify.c (gimplify_expr): Likewise.
6604         * tree-eh.c (tree_could_trap_p): Likewise.
6605         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6606         * cfgexpand.c (expand_debug_expr): Likewise.
6607         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6608         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6609         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6610         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
6611         * tree-ssa-operands.c (get_expr_operands): Likewise.
6612         * expr.c (safe_from_p): Likewise.
6613         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
6614         * tree-vect-data-refs.c (vect_setup_realignment): Build
6615         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
6616         * tree-vect-stmts.c (vectorizable_load): Likewise.
6617         * tree.def (ALIGN_INDIRECT_REF): Remove.
6618
6619 2010-07-05  Richard Guenther  <rguenther@suse.de>
6620
6621         PR tree-optimization/44784
6622         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6623         for inserted stmts.
6624         (find_or_generate_expression): Fix SCCVN insertion check.
6625
6626 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6627
6628         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6629         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6630         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6631         directives.
6632
6633 2010-07-05  Ira Rosen  <irar@il.ibm.com>
6634
6635         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6636         statements that are not vectorized.
6637         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6638         in INSIDE_COST.
6639
6640 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
6641
6642         PR bootstrap/44820
6643         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6644
6645 2010-07-05  Richard Guenther  <rguenther@suse.de>
6646
6647         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6648         RESULT_DECLs properly.
6649
6650 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
6651
6652         PR rtl-optimization/44695
6653         * config/i386/i386.md (extract_code): Removed.
6654         (<u>divmodqi4): Likewise.
6655         (divmodqi4): New.
6656         (udivmodqi4): Likewise.
6657         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6658         (udivmodhiqi3): Likewise.
6659
6660 2010-07-04  Jan Hubicka  <jh@suse.cz>
6661
6662         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6663
6664 2010-07-04  Jan Hubicka  <jh@suse.cz>
6665
6666         * cgraphunit.c (init_cgraph): Only initialize dump file if it
6667         is not already initialized.
6668
6669 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6670
6671         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6672         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6673         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6674         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6675         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6676         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6677         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6678         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6679         (sync_new_nand_optab): Redefine as macros.
6680         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6681         Delete.
6682         (direct_optab_index): New enum.
6683         (direct_optab_d): New structure.
6684         (direct_optab): New typedef.
6685         (direct_optab_table): Declare.
6686         (direct_optab_handler, set_direct_optab_handler): New functions.
6687         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6688         (sync_lock_release_optab): New macros.
6689         * optabs.c (direct_optab_table): New variable.
6690         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6691         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6692         cmpstr_optab and cmpstrn_optab.
6693         (emit_conditional_move): Likewise for movcc_optab.
6694         (can_conditionally_move_p): Likewise for movcc_gen_code.
6695         (init_insn_codes): Clear direct_optab_table.
6696         (init_optabs): Don't initialize the new "direct optabs" here.
6697         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6698         vcond_gen_code.
6699         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6700         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6701         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6702         (expand_sync_operation): Likewise other sync_*_optabs.
6703         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
6704         to sync_compare_and_swap_optab.
6705         (expand_sync_lock_test_and_set): Use direct_optab_handler for
6706         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6707         to the names of both.
6708         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6709         cmpstr_optab and cmpstrn_optab.
6710         (expand_builtin_lock_release): Likewise sync_lock_release.
6711         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6712         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6713         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6714         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6715         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6716         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6717         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6718         (sync_lock_test_and_set, sync_lock_release): Delete.
6719         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6720         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6721         * genopinit.c (optabs): Use set_direct_optab_handler for the new
6722         macro optabs.
6723         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6724         the "optab" local variable.  Use direct_optab_handler for optab and
6725         sync_compare_and_swap_optab.
6726         * reload1.c (reload_in_optab, reload_out_optab): Delete.
6727         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6728         reload_in_optab and reload_out_optab.
6729         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6730         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6731         * config/pa/pa.c (pa_secondary_reload): Likewise.
6732         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6733         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6734         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6735         (VMSupportsCS8_builtin): Likewise.
6736
6737 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6738
6739         * optabs.h (optab_handlers): Change type of insn_code to int.
6740         (optab_handler, set_optab_handler, convert_optab_handler)
6741         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6742         CODE_FOR_nothing".
6743         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6744         (init_insn_codes): Zero both the above arrays.
6745         (init_optabs): Never call init_insn_codes first time around.
6746
6747 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6748
6749         * optabs.h (optab_handler, convert_optab_handler): Turn into
6750         inline functions that return an insn code.
6751         (set_optab_handler, set_convert_optab_handler): New functions.
6752         * builtins.c: Replace optab_handler(X)->insn_code with
6753         optab_handler or set_optab_handler thoughout.  Likewise
6754         convert_optab_handler(X)->insn_code with convert_optab_handler
6755         and set_convert_optab_handler.
6756         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6757         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6758         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6759         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6760         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6761         config/spu/spu.c: Likewise.
6762
6763 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6764
6765         PR target/44531
6766         * config.gcc (sh*-*-*): Use regular expressions instead of
6767         the 'i' modifier for sed substitutions.
6768
6769 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6770
6771         * gimple.c (gimple_body): Comments added.
6772
6773 2010-07-04  Richard Guenther  <rguenther@suse.de>
6774
6775         PR middle-end/44809
6776         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6777         of an INDIRECT_REF.
6778
6779 2010-07-04  Richard Guenther  <rguenther@suse.de>
6780
6781         PR tree-optimization/44479
6782         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6783         extra SSA name copy statements which preserves points-to
6784         information.
6785         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6786         Copy points-to information for all pointers.  Properly handle
6787         MEM_REFs.
6788         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
6789         copy statements.
6790         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6791         dependency.
6792
6793 2010-07-04  Richard Guenther  <rguenther@suse.de>
6794
6795         PR middle-end/44785
6796         * tree-inline.c (initialize_inlined_parameters): Do not
6797         re-use pointer-map slot over remap_type call.
6798
6799 2010-07-04  Richard Guenther  <rguenther@suse.de>
6800
6801         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6802
6803 2010-07-04  Richard Guenther  <rguenther@suse.de>
6804
6805         PR tree-optimization/44656
6806         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6807         again after value-replacing in the defintions lhs.
6808
6809 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6810             Revital Eres  <eres@il.ibm.com>
6811
6812         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6813         Document new arguments.
6814         * doc/tm.texi: Regenerate.
6815         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6816         Handle unaligned store.
6817         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6818         * target.def (builtin_vectorization_cost): Add new arguments.
6819         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6820         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6821         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6822         (vect_vfa_segment_size): Fix indentation.
6823         * tree-vectorizer.h (struct _vect_peel_info): New.
6824         (struct _vect_peel_extended_info): New.
6825         (struct _loop_vec_info): Add new field for peeling hash table and a
6826         macro for its access.
6827         (VECT_MAX_COST): Define.
6828         (vect_get_load_cost): Declare.
6829         (vect_get_store_cost, vect_get_known_peeling_cost,
6830         vect_get_single_scalar_iteraion_cost): Likewise.
6831         (vect_supportable_dr_alignment): Add new argument.
6832         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6833         field.
6834         (destroy_loop_vec_info): Free peeling hash table.
6835         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6836         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6837         vect_analyze_slp. Fix indentation.
6838         (vect_get_single_scalar_iteraion_cost): New function.
6839         (vect_get_known_peeling_cost): Likewise.
6840         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6841         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6842         statement. Move outside cost calculation inside unknown peeling case.
6843         Call vect_get_known_peeling_cost for known amount of peeling.
6844         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6845         reference to the print message of forced alignment.
6846         (vect_verify_datarefs_alignment): Update call to
6847         vect_supportable_dr_alignment.
6848         (vect_get_data_access_cost): New function.
6849         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6850         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6851         vect_peeling_hash_choose_best_peeling): Likewise.
6852         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6853         to store all the accesses in the loop and find best possible access to
6854         align using peeling for known alignment case. For unknown alignment
6855         check if stores are preferred or if peeling is worthy.
6856         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6857         (vect_supportable_dr_alignment): Add new argument and check aligned
6858         accesses according to it.
6859         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6860         (cost_for_stmt): Call vect_get_stmt_cost.
6861         (vect_model_simple_cost): Likewise.
6862         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6863         vect_get_store_cost to calculate the cost of the statement.
6864         (vect_get_store_cost): New function.
6865         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6866         vect_get_load_cost to calculate the cost of the statement.
6867         (vect_get_load_cost): New function.
6868         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6869         (vectorizable_load): Likewise.
6870         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6871         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6872         arguments. Handle unaligned store.
6873         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6874         (rs6000_builtin_support_vector_misalignment): Return true for word and
6875         double word alignments for VSX.
6876         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6877         vect_supportable_dr_alignment and builtin_vectorization_cost.
6878
6879 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6880
6881         PR target/44597
6882         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6883         (prefetch_nocc_operand): Likewise.
6884         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6885         (prefetch_20): New insn.
6886         (prefetch_cc): Remove.
6887         (prefetch_nocc): Likewise.
6888
6889 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6890
6891         * expr.c (vector_mode_valid_p): Move to c-common.c.
6892         * expr.h (vector_mode_valid_p): Do not declare here.
6893         * system.h: Poison GCC_EXPR_H in front-ends.
6894         * Makefile.in: Update dependencies.
6895
6896 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6897
6898         PR target/44705
6899         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6900
6901 2010-07-03  Jan Hubicka  <jh@suse.cz>
6902
6903         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6904         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6905         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6906         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6907         Likewise.
6908
6909         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6910         Update timevars.V
6911         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6912         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6913         TV_IPA_LTO_DECL_OUT): New.
6914         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6915
6916 2010-07-03  Jan Hubicka  <jh@suse.cz>
6917
6918         * ipa-inline.c (update_edge_key): Break out from ...
6919         update_callers_keys): ... here;
6920         (update_callee_keys): Update only the edges from caller to callee.
6921         (update_all_calle_keys): Do what update_calle_keys did.
6922         (decide_inlining_of_small_functions): Avoid recomputing of all
6923         callees when badness increase.
6924
6925 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6926
6927         * config/arm/arm.c (arm_attr_length_move_neon): New.
6928         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6929         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6930         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6931         to compute length attribute.
6932
6933 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6934
6935         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6936         as predicate for operand 1 and remove its constraint.
6937         * config/arm/predicates.md (vfp_register_operand): New.
6938         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6939         (*push_fp_multi): Likewise.
6940
6941 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6942
6943         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6944
6945 2010-07-03  Jan Hubicka  <jh@suse.cz>
6946
6947         * config/i386/i386.c (override_options): Revert accidental commit.
6948
6949 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6950
6951         PR c++/44128
6952         * doc/invoke.texi: Update documentation of -Wshadow.
6953
6954 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6955             Julian Brown  <julian@codesourcery.com>
6956             Sandra Loosemore <sandra@codesourcery.com>
6957
6958         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6959         comparisons.  Adjust to take both operands.
6960         (arm_select_cc_mode): Handle DImode comparisons.
6961         (arm_gen_compare_reg): Generate a scratch register for DImode
6962         comparisons which require one.  Use xor for Thumb equality checks.
6963         (arm_const_double_by_immediates): New.
6964         (arm_print_operand): Allow 'Q' and 'R' for constants.
6965         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6966         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6967         arm_canonicalize_comparison.
6968         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6969         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6970         prototype.
6971         (arm_const_double_by_immediates): Declare.
6972         * config/arm/constraints.md (Di): New constraint.
6973         * config/arm/predicates.md (arm_immediate_di_operand)
6974         (arm_di_operand, cmpdi_operand): New.
6975         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6976         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6977         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6978         (cstoredi4): Handle non-Cirrus also.
6979
6980 2010-07-02  Julian Brown  <julian@codesourcery.com>
6981             Sandra Loosemore <sandra@codesourcery.com>
6982
6983         PR target/43703
6984         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6985         (smax<mode>3): Disable for NEON float modes when
6986         flag_unsafe_math_optimizations is false.
6987         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6988         (*mul<mode>3_neon)
6989         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6990         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6991         for NEON float modes when flag_unsafe_math_optimizations is false.
6992         (quad_halves_<code>v4sf): Only enable if
6993         flag_unsafe_math_optimizations is true.
6994         * doc/invoke.texi (ARM Options): Add note about floating point
6995         vectorization requiring -funsafe-math-optimizations.
6996
6997 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6998             Julian Brown  <julian@codesourcery.com>
6999
7000         * config/arm/neon.md (UNSPEC_VABA): Delete.
7001         (UNSPEC_VABAL): Delete.
7002         (UNSPEC_VABS): Delete.
7003         (UNSPEC_VMUL_N): Delete.
7004         (adddi3_neon): New.
7005         (subdi3_neon): New.
7006         (mul<mode>3add<mode>_neon): Make the pattern named.
7007         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
7008         (neon_vadd<mode>): Replace with define_expand, and move the remaining
7009         unspec parts...
7010         (neon_vadd<mode>_unspec): ...to this.
7011         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
7012         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
7013         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
7014         (neon_vaba<mode>): Rewrite in terms of vabd.
7015         (neon_vabal<mode>): Rewrite in terms of vabdl.
7016         (neon_vabs<mode>): Rewrite without unspec.
7017         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
7018         (*arm_subdi3): Likewise.
7019         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
7020         No_op attribute to disable assembly output checks.
7021         * config/arm/arm_neon.h: Regenerated.
7022         * doc/arm-neon-intrinsics.texi: Regenerated.
7023
7024 2010-07-02  Jan Hubicka  <jh@suse.cz>
7025
7026         * ipa-split.c (split_function): For aggregate values, set the return
7027         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
7028         *<retval> = fncall.part ().
7029         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
7030
7031 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7032
7033         * config/arm/neon.md (UNSPEC_VAND): Delete.
7034         (UNSPEC_VBIC): Delete.
7035         (UNSPEC_VCLZ): Delete.
7036         (UNSPEC_VCNT): Delete.
7037         (UNSPEC_VEOR): Delete.
7038         (UNSPEC_VORN): Delete.
7039         (UNSPEC_VORR): Delete.
7040         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
7041         core registers too.
7042         (anddi3_neon): Likewise.
7043         (orndi3_neon): Likewise.
7044         (bicdi3_neon): Likewise.
7045         (xordi3_neon): Likewise.
7046         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
7047         rid of unspec and handle unused operand.
7048         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
7049         * config/arm/predicates.md (imm_for_neon_logic_operand):
7050         Require TARGET_NEON.
7051         (imm_for_neon_inv_logic_operand): Likewise.
7052         * config/arm/arm.md (define_split for logical_binary_operator):
7053         Disable for NEON registers.
7054         (anddi3): Add new define_expand, and rename the insn.  Disable
7055         this insn for NEON, where anddi3_neon now applies.
7056         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
7057         (iordi3): As for anddi3.
7058         (xordi3): Likewise.
7059         * config/arm/neon.ml (Vand): Split DImode variants and mark them
7060         as No_op to disable testing for exact instruction match.
7061         (Vorr): Likewise.
7062         (Veor): Likewise.
7063         (Vbic): Likewise.
7064         (Vorn): Likewise.
7065         * config/arm/arm_neon.h: Regenerated.
7066         * doc/arm-neon-intrinsics.texi: Regenerated.
7067
7068 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7069
7070         * expr.h (emit_stack_probe): Declare.
7071         * explow.c (emit_stack_probe): Make global.
7072         (anti_adjust_stack_and_probe): Fix comments.
7073         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
7074         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7075         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7076         * config/sparc/sparc.c: Include except.h.
7077         (sparc_emit_probe_stack_range): New function.
7078         (output_probe_stack_range): Likewise.
7079         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
7080         built-in stack checking is enabled.
7081         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
7082         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
7083         (probe_stack_range): New insn.
7084
7085 2010-07-02  Richard Guenther  <rguenther@suse.de>
7086
7087         PR target/43958
7088         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
7089         for argument alignment.
7090
7091 2010-07-02  Jan Hubicka  <jh@suse.cz>
7092
7093         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
7094         walk backwards from entry_bb to check only those basic block of header
7095         that might lead to execution of split part.
7096         (consider_split) ... here.
7097         (find_return_bb): Allow assignment in return BB.
7098         (find_retval): New.
7099         (split_function): Fix name of cloned function; take care of updating
7100         return value in return_bb containing move.
7101
7102 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
7103
7104         PR target/44771
7105         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
7106         used variable insn.
7107
7108 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
7109
7110         * implicit-zee.c (combine_reaching_defs): Fix long lines.
7111         (is_set_with_extension_DI): Delete.
7112         (struct zero_extend_info): New structure.
7113         (add_removable_zero_extend): New function.
7114         (find_removable_zero_extends): Use note_stores to find SETs.
7115         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
7116
7117 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
7118
7119         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
7120         is_miss_rate_acceptable. Pull total_positions computation
7121         out of the loops.  Early return if miss_positions exceeds
7122         the acceptable threshold.
7123         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
7124         is_miss_rate_acceptable after renaming of compute_miss_rate.
7125
7126 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
7127
7128         PR middle-end/44576
7129         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
7130         of 1000) for miss rate if the address diference is greater than or
7131         equal to the cache line size (the two reference will never hit the
7132         same cache line).
7133
7134 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
7135
7136         PR target/42835
7137         * config/arm/arm-modes.def (CC_NOTB): New mode.
7138         * config/arm/arm.c (get_arm_condition_code): Handle it.
7139         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
7140         * config/arm/arm.md (subsi3_compare0_c): New pattern.
7141         (compare_scc): Now a define_and_split.  Add a number of extra
7142         splitters before it.
7143
7144         PR target/42172
7145         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
7146         and ZERO_EXTEND.
7147         (arm_rtx_costs_1): Likewise.
7148         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
7149         * config/arm/arm.md (is_arch6): New attribute.
7150         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
7151         extendqisi2): Tighten the code somewhat, avoiding invalid
7152         RTL to occur in the expander patterns.
7153         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
7154         (thumb1_zero_extendhisi2_v6): Delete.
7155         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
7156         (thumb1_extendhisi2_v6): Delete.
7157         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
7158         (thumb1_extendqisi2_v6): Delete.
7159         (zero_extendhisi2 for register input splitter): New.
7160         (zero_extendqisi2 for register input splitter): New.
7161         (thumb1_extendhisi2 for register input splitter): New.
7162         (extendhisi2 for register input splitter): New.
7163         (extendqisi2 for register input splitter): New.
7164         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
7165         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
7166         and add support for a register alternative requiring a split.
7167         (thumb1_zero_extendqisi2): Likewise.
7168         (arm_zero_extendqisi2): Likewise.
7169         (arm_extendhisi2): Likewise.
7170         (arm_extendqisi2): Likewise.
7171
7172 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7173
7174         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
7175         instead of an unspec.
7176         (neon_expand_vector_init): Likewise.
7177         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
7178         (UNSPEC_VDUP_LANE): Delete.
7179         (UNSPEC VDUP_N): Delete.
7180         (UNSPEC_VGET_HIGH): Delete.
7181         (UNSPEC_VGET_LANE): Delete.
7182         (UNSPEC_VGET_LOW): Delete.
7183         (UNSPEC_VMVN): Delete.
7184         (UNSPEC_VSET_LANE): Delete.
7185         (V_double_vector_mode): New.
7186         (vec_set<mode>_internal): Make code emitted match that for the
7187         corresponding intrinsics.
7188         (vec_setv2di_internal): Likewise.
7189         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
7190         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
7191         (neon_vset_lane<mode>): Combine double and quad patterns and
7192         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
7193         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
7194         (neon_vdup_n<mode>): Rewrite RTL without unspec.
7195         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
7196         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
7197         with neon_vdup_lanev2di, adjusting the pattern from the latter
7198         to be predicable for consistency.
7199         (neon_vdup_lane<mode>_internal): New.
7200         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
7201         to avoid using an unspec.
7202         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
7203         (neon_vdup_lanev2di): Turn into a define_expand.
7204         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
7205         (neon_vget_high<mode>): Replace with....
7206         (neon_vget_highv16qi): New pattern using canonical RTL.
7207         (neon_vget_highv8hi): Likewise.
7208         (neon_vget_highv4si): Likewise.
7209         (neon_vget_highv4sf): Likewise.
7210         (neon_vget_highv2di): Likewise.
7211         (neon_vget_low<mode>): Replace with....
7212         (neon_vget_lowv16qi): New pattern using canonical RTL.
7213         (neon_vget_lowv8hi): Likewise.
7214         (neon_vget_lowv4si): Likewise.
7215         (neon_vget_lowv4sf): Likewise.
7216         (neon_vget_lowv2di): Likewise.
7217
7218         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
7219         test for this emitting vmov.
7220         (Vset_lane): Likewise.
7221         (Vdup_n): Likewise.
7222         (Vmov_n): Likewise.
7223
7224         * doc/arm-neon-intrinsics.texi: Regenerated.
7225
7226 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
7227
7228         * config/arm/neon.md (vec_extractv2di): Correct error in register
7229         numbering to reconcile with neon_vget_lanev2di.
7230
7231 2010-07-02  Richard Guenther  <rguenther@suse.de>
7232
7233         * tree-ssa-structalias.c (pt_solution_set_var): New function.
7234         * tree-ssa-alias.h (pt_solution_set_var): Declare.
7235         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
7236         points-to information.
7237
7238 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
7239
7240         * config/s390/s390.c (override_options): Adopt prefetching
7241         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
7242
7243 2010-07-02  Jan Hubicka  <jh@suse.cz>
7244
7245         * df-problems.c (df_kill_notes): Do not collect dead  notes.
7246         (df_set_note): Just call add_reg_note.
7247         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
7248         df_create_unused_note): Do not deal with lists of old notes.
7249         (df_note_bb_compute): Likewise.
7250
7251 2010-07-02  Richard Guenther  <rguenther@suse.de>
7252
7253         * tree-ssa-structalias.c (find_func_aliases): Handle
7254         pointer alignment via BIT_AND_EXPR.
7255         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
7256
7257 2010-07-02  Richard Guenther  <rguenther@suse.de>
7258
7259         * tree-data-ref.c (initialize_data_dependence_relation): Handle
7260         mismatching number of dimensions properly.
7261
7262 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7263
7264         PR target/44707
7265         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
7266         (lo_sum (high ...) ...) patterns generated by earlier passes.
7267
7268 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7269
7270         * doc/install.texi (Prerequisites): Document Perl requirement on
7271         Solaris 2.
7272         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
7273
7274 2010-07-02  Richard Guenther  <rguenther@suse.de>
7275
7276         PR middle-end/44777
7277         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
7278
7279 2010-07-02  Jan Hubicka  <jh@suse.cz>
7280
7281         PR middle-end/44706
7282         * predict.c (predict_paths_for_bb): Handle case when control dependence
7283         BB has only abnormal edges.
7284
7285 2010-07-02  Richard Guenther  <rguenther@suse.de>
7286
7287         PR tree-optimization/44748
7288         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
7289         the embedded conversion in MEM_REFs.
7290
7291 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
7292
7293         * reload.c: Include toplev.h.
7294         * recog.c:  Likewise.
7295         * Makefile.in: Adjust dependencies.
7296
7297 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
7298
7299         PR debug/44694
7300         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
7301         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
7302
7303 2010-07-01  Richard Guenther  <rguenther@suse.de>
7304
7305         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
7306         types for offsets.
7307
7308 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7309
7310         PR target/44732
7311         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
7312         Fix argument types.
7313
7314 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
7315
7316         PR target/44727
7317         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7318         Make sure operand 0 dies.
7319
7320 2010-07-01  Richard Guenther  <rguenther@suse.de>
7321
7322         PR middle-end/42834
7323         PR middle-end/44468
7324         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
7325         * doc/generic.texi (References to storage): Document MEM_REF.
7326         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
7327         (print_call_name): Likewise.
7328         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
7329         (build_simple_mem_ref_loc): New function.
7330         (mem_ref_offset): Likewise.
7331         * tree.h (build_simple_mem_ref_loc): Declare.
7332         (build_simple_mem_ref): Define.
7333         (mem_ref_offset): Declare.
7334         * fold-const.c: Include tree-flow.h.
7335         (operand_equal_p): Handle MEM_REF.
7336         (build_fold_addr_expr_with_type_loc): Likewise.
7337         (fold_comparison): Likewise.
7338         (fold_unary_loc): Fold
7339         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
7340         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
7341         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
7342         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
7343         (ptr_deref_may_alias_ref_p_1): Likewise.
7344         (ao_ref_base_alias_set): Properly differentiate base object for
7345         offset and TBAA.
7346         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
7347         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
7348         (indirect_refs_may_alias_p): Likewise.
7349         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
7350         chasing code.
7351         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
7352         (call_may_clobber_ref_p_1): Likewise.
7353         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
7354         * expr.c (expand_assignment): Handle MEM_REF.
7355         (store_expr): Handle MEM_REFs from STRING_CSTs.
7356         (store_field): If expanding a MEM_REF of a non-addressable
7357         decl use bitfield operations.
7358         (get_inner_reference): Handle MEM_REF.
7359         (expand_expr_addr_expr_1): Likewise.
7360         (expand_expr_real_1): Likewise.
7361         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
7362         * alias.c (ao_ref_from_mem): Handle MEM_REF.
7363         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
7364         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
7365         (dr_analyze_indices): Likewise.
7366         (dr_analyze_alias): Likewise.
7367         (object_address_invariant_in_loop_p): Likewise.
7368         * gimplify.c (mark_addressable): Handle MEM_REF.
7369         (gimplify_cond_expr): Build MEM_REFs.
7370         (gimplify_modify_expr_to_memcpy): Likewise.
7371         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
7372         (gimple_fold_indirect_ref): Adjust.
7373         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
7374         * tree.def (MEM_REF): New tree code.
7375         * tree-dfa.c: Include toplev.h.
7376         (get_ref_base_and_extent): Handle MEM_REF.
7377         (get_addr_base_and_unit_offset): New function.
7378         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
7379         * gimple-fold.c (may_propagate_address_into_dereference): Handle
7380         MEM_REF.
7381         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
7382         accesses if the array has just one dimension.  Remove always true
7383         parameter.  Do not require type compatibility here.
7384         (maybe_fold_offset_to_component_ref): Remove.
7385         (maybe_fold_stmt_indirect): Remove.
7386         (maybe_fold_reference): Remove INDIRECT_REF handling.
7387         Fold back to non-MEM_REF.
7388         (maybe_fold_offset_to_address): Simplify.  Deal with type
7389         mismatches here.
7390         (maybe_fold_reference): Likewise.
7391         (maybe_fold_stmt_addition): Likewise.  Also handle
7392         &ARRAY + I in addition to &ARRAY[0] + I.
7393         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
7394         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
7395         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
7396         * tree-ssa.c (useless_type_conversion_p): Make most pointer
7397         conversions useless.
7398         (warn_uninitialized_var): Handle MEM_REF.
7399         (maybe_rewrite_mem_ref_base): New function.
7400         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
7401         to SSA form.
7402         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
7403         INDIRECT_REF handling.
7404         (copy_tree_body_r): Handle MEM_REF.
7405         * gimple.c (is_gimple_addressable): Adjust.
7406         (is_gimple_address): Likewise.
7407         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
7408         invariant base are invariant.
7409         (is_gimple_min_lval): Adjust.
7410         (is_gimple_mem_ref_addr): New function.
7411         (get_base_address): Handle MEM_REF.
7412         (count_ptr_derefs): Likewise.
7413         (get_base_loadstore): Likewise.
7414         * gimple.h (is_gimple_mem_ref_addr): Declare.
7415         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
7416         * tree-cfg.c (verify_address): New function, split out from ...
7417         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
7418         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
7419         INDIRECT_REFs.
7420         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
7421         INDIRECT_REF.  Allow conversions.
7422         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
7423         a register does not change its size.
7424         (verify_types_in_gimple_reference): Verify MEM_REF.
7425         (verify_gimple_assign_single): Disallow INDIRECT_REF.
7426         Handle MEM_REF.
7427         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
7428         New.
7429         (mark_address_taken): Handle MEM_REF.
7430         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
7431         (get_asm_expr_operands): Pass opf_not_non_addressable.
7432         (get_expr_operands): Handle opf_[not_]non_addressable.
7433         Handle MEM_REF.  Remove INDIRECT_REF handling.
7434         * tree-vrp.c (check_array_ref): Handle MEM_REF.
7435         (search_for_addr_array): Likewise.
7436         (check_array_bounds): Likewise.
7437         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
7438         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
7439         (ref_always_accessed_p): Likewise.
7440         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
7441         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
7442         Handle MEM_REF.
7443         * cgraphbuild.c (mark_load): Properly check for NULL result
7444         from get_base_address.
7445         (mark_store): Likewise.
7446         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
7447         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
7448         handling for MEM_REF.
7449         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
7450         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
7451         * builtins.c (stabilize_va_list_loc): Use the function ABI
7452         valist type if we couldn't canonicalize the argument type.
7453         Always dereference with the canonical va-list type.
7454         (maybe_emit_free_warning): Handle MEM_REF.
7455         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
7456         memmove to memcpy.
7457         * builtins.c (fold_builtin_memory_op): Use ref-all types
7458         for all memcpy foldings.
7459         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
7460         (build_outer_var_ref): Likewise.
7461         (scan_omp_1_op): Likewise.
7462         (lower_rec_input_clauses): Likewise.
7463         (lower_lastprivate_clauses): Likewise.
7464         (lower_reduction_clauses): Likewise.
7465         (lower_copyprivate_clauses): Likewise.
7466         (expand_omp_atomic_pipeline): Likewise.
7467         (expand_omp_atomic_mutex): Likewise.
7468         (create_task_copyfn): Likewise.
7469         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
7470         Remove old union trick.  Initialize constant offsets.
7471         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
7472         INDIRECT_REF.  Init base_alias_set properly.
7473         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
7474         (vn_reference_fold_indirect): Adjust for MEM_REFs.
7475         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
7476         for ARRAY_REFs.
7477         (may_insert): Remove.
7478         (visit_reference_op_load): Do not test may_insert.
7479         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
7480         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7481         a field to store the constant offset this op applies.
7482         (run_scc_vn): Adjust prototype.
7483         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
7484         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
7485         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
7486         bother about volatile qualifiers on pointers.
7487         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
7488         * tree-ssa-loop-ivopts.c
7489         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
7490         (strip_offset_1): Likewise.
7491         (find_interesting_uses_address): Replace INDIRECT_REF handling with
7492         MEM_REF handling.
7493         (get_computation_cost_at): Likewise.
7494         * ipa-pure-const.c (check_op): Handle MEM_REF.
7495         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
7496         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
7497         and constants.
7498         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
7499         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
7500         (eliminate_local_variables_1): Likewise.
7501         (create_call_for_reduction_1): Likewise.
7502         (create_loads_for_reductions): Likewise.
7503         (create_loads_and_stores_for_name): Likewise.
7504         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
7505         (ssa_accessed_in_tree): Handle MEM_REF.
7506         (ssa_accessed_in_assign_rhs): Likewise.
7507         (update_type_size): Likewise.
7508         (analyze_accesses_for_call_stmt): Likewise.
7509         (analyze_accesses_for_assign_stmt): Likewise.
7510         (transform_access_sites): Likewise.
7511         (transform_allocation_sites): Likewise.
7512         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
7513         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7514         not handle INDIRECT_REF.
7515         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
7516         (cond_store_replacement): Likewise.
7517         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7518         MEM_REF, no not handle INDIRECT_REFs.
7519         (insert_into_preds_of_block): Properly initialize avail.
7520         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
7521         for ARRAY_REFs.  Properly handle reference lookups that
7522         require a bit re-interpretation.
7523         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
7524         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
7525         (build_ref_for_offset_1): Remove.
7526         (build_ref_for_offset): Build MEM_REFs.
7527         (gate_intra_sra): Disable for now.
7528         (sra_ipa_modify_expr): Handle MEM_REF.
7529         (ipa_early_sra_gate): Disable for now.
7530         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
7531         MEM_REF handling.
7532         (disqualify_base_of_expr): Likewise.
7533         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
7534         MEM_REF handling.
7535         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
7536         Use mem_ref_offset.  Remove bogus folding.
7537         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
7538         (make_fancy_name_1): Add support for MEM_REF.
7539         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
7540         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
7541         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
7542         (compute_complex_ancestor_jump_func): Likewise.
7543         (ipa_analyze_virtual_call_uses): Likewise.
7544         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
7545         INDIRECT_REF folding with more generalized MEM_REF folding.
7546         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
7547         (forward_propagate_addr_into_variable_array_index): Also handle
7548         &ARRAY + I in addition to &ARRAY[0] + I.
7549         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
7550         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
7551         creates assignments with overlap.
7552         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
7553         (get_frame_field): Likewise.
7554         (get_nonlocal_debug_decl): Likewise.
7555         (convert_nonlocal_reference_op): Likewise.
7556         (struct nesting_info): Add mem_refs pointer-set.
7557         (create_nesting_tree): Allocate it.
7558         (convert_local_reference_op): Insert to be folded mem-refs.
7559         (fold_mem_refs): New function.
7560         (finalize_nesting_tree_1): Perform defered folding of mem-refs
7561         (free_nesting_tree): Free the pointer-set.
7562         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
7563         (vectorizable_load): Likewise.
7564         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
7565         (propagate_with_phi): Likewise.
7566         * tree-object-size.c (addr_object_size): Handle MEM_REFs
7567         instead of INDIRECT_REFs.
7568         (compute_object_offset): Handle MEM_REF.
7569         (plus_stmt_object_size): Handle MEM_REF.
7570         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
7571         for &MEM_REF.
7572         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
7573         (symbol_marked_for_renaming): Likewise.
7574         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
7575         (fold-const.o): Add $(TREE_FLOW_H).
7576         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
7577         (find_func_clobbers): Likewise.
7578         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
7579         (decompose_access): Likewise.
7580         (replace_field_acc): Likewise.
7581         (replace_field_access_stmt): Likewise.
7582         (insert_new_var_in_stmt): Likewise.
7583         (get_stmt_accesses): Likewise.
7584         (reorg_structs_drive): Disable.
7585         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
7586         (ix86_canonical_va_list_type): Likewise.
7587
7588 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7589
7590         PR other/44566
7591         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
7592         * target.def (struct gcc_target): Replace enum reg_class with
7593         reg_class_t in hook argument / return types.
7594         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
7595         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
7596         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7597         * targhooks.h (default_branch_target_register_class): Likewise.
7598         (default_ira_cover_classes, default_secondary_reload): Likewise.
7599         (default_memory_move_cost, default_register_move_cost): Likewise.
7600         * targhooks.c (default_branch_target_register_class): Likewise.
7601         (default_ira_cover_classes, default_secondary_reload): Likewise.
7602         (default_memory_move_cost, default_register_move_cost): Likewise.
7603         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
7604         * bt-load.c (branch_target_load_optimize): Likewise.
7605         * ira.c (setup_cover_and_important_classes): Likewise.
7606         * ira-costs.c (copy_cost): Likewise.
7607         * reload1.c (emit_input_reload_insns): Likewise.
7608         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7609         * config/frv/frv.c (frv_secondary_reload): Likewise.
7610         * config/s390/s390.c (s390_secondary_reload): Likewise.
7611         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
7612         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
7613         (ix86_register_move_cost): Likewise.
7614         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
7615         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
7616         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
7617         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
7618         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
7619         (rs6000_ira_cover_classes): Likewise.
7620         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
7621         * config/picochip/picochip-protos.h (picochip_secondary_reload):
7622         Likewise.
7623         * config/pa/pa.c (pa_secondary_reload): Likewise.
7624         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7625         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7626         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7627         * doc/tm.texi: Regenerate.
7628
7629 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
7630
7631         PR bootstrrap/44726
7632         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7633         use.
7634         (build_alias_set_optimal_p): Likewise.
7635         (build_base_obj_set_for_drs): Likewise.
7636
7637 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7638
7639         * target.def: Remove comment about licensing problems of function
7640         declarations.
7641
7642         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
7643         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7644         * doc/tm.texi: Regenerate.
7645
7646         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
7647         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7648
7649         * target.def (enum_va_list_p): Use DEFHOOK.
7650         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7651         Rename ptype to ptree.
7652         * doc/tm.texi: Regenerate.
7653
7654         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
7655         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7656         * doc/tm.texi: Regenerate.
7657
7658         * target.def (memory_move_cost): Use DEFHOOK.
7659         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7660         Rename regclass AKA class to rclass.
7661         * doc/tm.texi: Regenerate.
7662
7663         * target.def (pragma_parse): Use DEFHOOK.
7664         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7665         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7666         * doc/tm.texi: Regenerate.
7667
7668         * target.def (pass_by_reference): Use DEFHOOK.
7669         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7670         * doc/tm.texi: Regenerate.
7671
7672         * target.def (resolve_overloaded_builtin): Rename params to arglist.
7673         Use DEFHOOK.
7674         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7675         * doc/tm.texi: Regenerate.
7676
7677         * target.def (return_pops_args): Use DEFHOOK.
7678         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7679         Rename stack-size to size.
7680         * doc/tm.texi: Regenerate.
7681
7682         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
7683         last-sched_cycle to last_clock, cur_cycle to clock.
7684         * doc/tm.texi.in: Use @hook.
7685         * doc/tm.texi: Regenerate.
7686
7687         * target.def (print_operand, print_operand_address): Update comment.
7688         (print_operand_punct_valid_p): Likewise.
7689
7690 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7691
7692         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7693         to rtl.h.
7694         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7695         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7696         * rtl-error.h: New.
7697         * regrename.c: Do not include toplev.h. Include rtl-error.h.
7698         * rtl-error.c: Likewise.
7699         * reload.c: Likewise.
7700         * recog.c:  Likewise.
7701         * sel-sched.c: Likewise.
7702         * function.c: Likewise.
7703         * reg-stack.c: Likewise.
7704         * cfgrtl.c: Likewise.
7705         * reload1.c: Likewise.
7706         * final.c: Include rtl-error.
7707         * Makefile.in: Adjust dependencies.
7708
7709 2010-06-30  Jan Hubicka  <jh@suse.cz>
7710
7711         PR middle-end/PR44706
7712         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7713         to return the value.
7714
7715 2010-06-30  Michael Matz  <matz@suse.de>
7716
7717         PR bootstrap/44699
7718         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7719         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7720         a gimple reg, attach the original VDEF to the last store in the
7721         sequence.
7722
7723 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
7724
7725         PR other/44034
7726         * config/darwin.c (darwin_override_options): Use renamed
7727         targetm.asm_out.emit_unwind_label.
7728
7729 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7730
7731         PR tree-optimization/39799
7732         * tree-inline.c (remap_ssa_name): Initialize variable only if
7733         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7734
7735 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
7736
7737         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7738
7739 2010-06-30  Richard Guenther  <rguenther@suse.de>
7740
7741         PR target/44722
7742         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7743         against oscillation with reverse peephole2.
7744
7745 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7746
7747         PR target/44721
7748         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7749         Fix last commit.
7750
7751 2010-06-30  Nick Clifton  <nickc@redhat.com>
7752
7753         * config/rx/rx-modes.def: New file.
7754         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7755         (CC_REGNUM): Define.
7756         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7757         register.
7758         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7759         (SELECT_CC_MODE): Define.
7760         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
7761         (reg:CC CC_REG) instead of (cc0).
7762         (attr "cc"): Delete.
7763         (cbranchsi4): Do not split compare and branch here. Instead move
7764         it to...
7765         (cbranchsi4_<code>): ... here.  New patterns.
7766         (cmpsi): Call rx-compare_redundant to find out if it is necessary
7767         to emit the compare instruction.
7768         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7769         cc_status flags.
7770         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7771         FIRST_PSEUDO_REGNUM.
7772         (rx_expand_prologue, rx_expand_epilogue): Likewise.
7773         (rx_notice_update_cc): Delete.
7774         (rx_cc_modes_compatible): New function.
7775         (flags_needed_for_conditional): New function.
7776         (flags_from_mode): New function.
7777         (rx_compare_redundant): New function - scans backwards through
7778         insn list to find out if condition flags are already set correctly.
7779         (TARGET_CC_MODES_COMPATIBLE): Define.
7780         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7781
7782         * config/rx/rx.h (BRANCH_COST): Define.
7783         (REGISTER_MOVE_COST): Define.
7784         * config/rx/predicates (rx_source_operand): Allow all constant types.
7785         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7786         (tstsi4): New pattern.
7787         * config/rx/rx.c (rx_memory_move_cost): Define.
7788         (TARGET_MEMORY_MOVE_COST): Define.
7789
7790 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7791
7792         * tree.h (block_may_fallthru): Declare here.
7793         * tree-flow.h (block_may_fallthru): Do not declare here.
7794         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7795         bitmap.h
7796         * Makefile.in (c-typeck.o): Update dependencies.
7797
7798 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7799
7800         PR debug/44694
7801         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7802         * cselib.c (cfa_base_preserved_regno): New static variable.
7803         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7804         of REGNO (cfa_base_preserved_val->locs->loc).
7805         (cselib_preserve_cfa_base_value): Add regno argument, set
7806         cfa_base_preserved_regno to it.
7807         (cselib_invalidate_regno): Allow removal of registers other than
7808         cfa_base_preserved_regno from cfa_base_preserved_val.
7809         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7810         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7811         of MEM addresses, if not on LHS.
7812         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7813         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7814
7815 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7816
7817         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7818         static variables.
7819         (peep2_buf_position): New static function.
7820         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7821         peephole2_optimize): Use it.
7822         (peep2_attempt, peep2_update_life): New static functions, broken out
7823         of peephole2_optimize.
7824         (peep2_fill_buffer): New static function.
7825         (peephole2_optimize): Change the main loop to try to fill the buffer
7826         with the maximum number of insns before matching them against
7827         peepholes.  Use a forward scan.  Remove special case for targets with
7828         conditional execution.
7829         * genrecog.c (change_state): Delete dead code.
7830         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7831         Rewrite so as not to expect the second insn to have had a peephole
7832         applied yet.
7833
7834 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7835
7836         * genhooks.c (emit_findices): Cast field precision to int.
7837         (emit_documentation): Likewise.
7838
7839 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7840
7841         PR tree-optimization/43801
7842         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7843         if old_decl was DECL_ONE_ONLY.
7844
7845         PR debug/44668
7846         * dwarf2out.c (add_accessibility_attribute): New function.
7847         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7848         instead of adding DW_AT_accessibility manually.
7849         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7850         gen_typedef_die): Use it.
7851
7852 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7853
7854         * vmsdbgout.c (full_name): Just output the file name if not native.
7855
7856 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7857
7858         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7859         (funcnam_table): New static table.
7860         (funcnum_table): New static table.
7861         (write_rtnbeg): Write value saved in funcnum_table.
7862         (write_rtnend): Write value saved in funcnum_table.
7863         (vmsdbgout_begin_function): Save current function info in
7864         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7865         (vmsdbgout_finish): Iterate over funcnum_table.
7866
7867 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7868
7869         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7870         (vmsdbgout_type_decl): Declare
7871         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7872         (FUNC_EPILOGUE_LABEL): New macro
7873         (vmsdbgout_begin_epilogue): New function.
7874         (vmsdbgout_type_decl): New function.
7875
7876 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7877
7878         * vmsdbg.h: Update copyright.
7879
7880 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7881
7882         * vmsdbg.h (DST_K_TBG): New DST constant.
7883         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7884         (write_modbeg): Cast module_language to avoid warning.
7885         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7886
7887 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7888
7889         PR other/44034
7890         * target.def, doc/tm.texi.in, genhooks.c: New files.
7891         * target.h: Instead of defining individual hook members,
7892         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7893         include target.def.
7894         * target-def.h: Instead of defining individual hook initializers,
7895         include target-hooks-def.h.
7896         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7897         targetm.live_on_entry -> targetm.extra_live_on_entry
7898         targetm.sched.md_finish ->targetm.sched.finish
7899         targetm.sched.md_init -> targetm.sched.init
7900         targetm.sched.md_init_global -> targetm.sched.init_global
7901         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7902         targetm.asm_out.except_table_label ->
7903           targetm.asm_out.emit_except_table_label
7904         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7905         targetm.target_help -> targetm.help
7906         targetm.vectorize.builtin_support_vector_misalignment ->
7907           targetm.vectorize.support_vector_misalignment
7908         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7909         targetm.file_start_file_directive ->
7910          targetm.asm_file_start_file_directive
7911         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7912         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7913         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7914         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7915           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7916         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7917           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7918         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7919         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7920         * Makefile.in (TARGET_H): Depend on target.def.
7921         (TARGET_DEF_H): Depend on target-hooks-def.h.
7922         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7923         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7924         * doc/tm.texi: Regenerate.
7925
7926         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7927
7928         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7929         (targetm.sched.init): Likewise.
7930
7931 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7932
7933         PR bootstrap/44713
7934         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7935         (function_arg_advance_32): Const-ify TYPE parameter.
7936         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7937         (ix86_function_arg_advance): Change type of NAMED to bool.
7938         (function_arg_32): Const-ify CUM and TYPE parameters.
7939         (function_arg_64): Likewise.  Change type of NAMED to bool.
7940         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7941         to bool.
7942         (ix86_function_arg): Change type of NAMED to bool.
7943         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7944         last argument as a bool.
7945
7946 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7947
7948         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7949         (OVERRIDE_OPTIONS): Add note of obsolescence.
7950         Replace references with references to TARGET_OPTION_OVERRIDE.
7951         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7952          the macro).
7953         * targhooks.c (default_target_option_override): New function.
7954         * targhooks.h (default_target_option_override): Declare.
7955         * target.h (struct gcc_target): Add override member to
7956         target_option member.
7957         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7958         targetm.target_option.override call.
7959         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7960         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7961
7962 2010-06-29  Jan Hubicka  <jh@suse.cz>
7963
7964         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7965
7966 2010-06-29  Jan Hubicka  <jh@suse.cz>
7967
7968         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7969         unreachable.
7970         (rebuild_frequencies): New function.
7971         * predict.h (rebuild_frequencies): Declare.
7972         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7973         entry block and edge reaching new_entry.
7974         (tree_function_versioning): When doing partial cloning, rebuild
7975         frequencies when done.
7976         * passes.c (execute_function_todo): Use rebild_frequencies.
7977
7978 2010-06-29  Richard Guenther  <rguenther@suse.de>
7979
7980         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7981         * tree-flow.h (enum noalias_state): Remove.
7982         (struct var_ann_d): Remove noalias_state member.
7983
7984 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7985
7986         PR target/43902
7987         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7988         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7989         (maddhidi4): Likewise.
7990
7991         Revert parts of the change for PR25130.
7992         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7993         MEM_ALIAS_SET.
7994
7995 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7996
7997         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7998         targetm.calls.function_incoming_arg, and
7999         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
8000         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
8001         * target.h (struct gcc_target): Add function_arg_advance,
8002         function_arg, and function_incoming_arg fields.
8003         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
8004         (TARGET_FUNCTION_INCOMING_ARG): Define.
8005         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
8006         and TARGET_FUNCTION_INCOMING_ARG.
8007         * targhooks.h (default_function_arg_advance): Declare.
8008         (default_function_arg, default_function_incoming_arg): Declare.
8009         * targhooks.c (default_function_arg_advance): New function.
8010         (default_function_arg, default_function_incoming_arg): New function.
8011         * config/i386/i386.c (function_arg_advance): Rename to...
8012         (ix86_function_arg_advance): ...this.  Make static.
8013         (function_arg): Rename to...
8014         (ix86_function_arg): ...this.  Make static.
8015         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8016         (TARGET_FUNCTION_ARG): Define.
8017         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
8018         (FUNCTION_ARG): Delete.
8019         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
8020         (function_arg): Delete prototype.
8021
8022 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
8023
8024         * reginfo.c (init_reg_sets_1): Adjust comments.
8025         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
8026         * calls.c (prepare_call_address): Likewise.
8027         (emit_call_1): Use targetm.calls.return_pops_args.
8028         (expand_call): Likewise.
8029         * function.c (assign_parms): Likewise.
8030         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
8031         * target.h (struct gcc_target) [struct calls]: Add
8032         return_pops_args field.
8033         * targhooks.h (default_return_pops_args): Declare.
8034         * targhooks.c (default_return_pops_args): Define.
8035         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
8036         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
8037         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
8038         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
8039         documentation.
8040         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
8041         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
8042         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
8043         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
8044         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
8045         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
8046         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
8047         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
8048         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
8049         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
8050         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
8051         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
8052         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
8053         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
8054         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
8055         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
8056         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
8057         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
8058         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
8059         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
8060         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
8061         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
8062         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
8063         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
8064         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
8065         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
8066         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
8067         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
8068         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
8069         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
8070         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
8071         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
8072         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
8073         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
8074         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
8075         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
8076         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
8077         * config/i386/i386.c (ix86_return_pops_args): Make static.
8078         Constify arguments.
8079         (TARGET_RETURN_POPS_ARGS): Define.
8080         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
8081         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
8082         (TARGET_RETURN_POPS_ARGS): Define.
8083         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
8084         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
8085         (TARGET_RETURN_POPS_ARGS): Define.
8086
8087 2010-06-29  Richard Guenther  <rguenther@suse.de>
8088
8089         PR middle-end/44667
8090         * tree-inline.c (initialize_inlined_parameters): Make sure
8091         to remap the inlined parameter variable substitutions types.
8092
8093 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
8094
8095         PR rtl-optimization/44659
8096         * combine.c (make_compound_operation) <SUBREG>: Do not return the
8097         result of force_to_mode if it partially re-expanded the compound.
8098
8099 2010-06-28  Jan Hubicka  <jh@suse.cz>
8100
8101         PR middle-end/44671
8102         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
8103         RESULT_DECL.
8104
8105 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
8106
8107         * double-int.h (force_fit_type_double): Remove declaration.
8108         * double-int.c (force_fit_type_double): Move to tree.c.
8109         * tree.h (force_fit_type_double): Declare.
8110         * tree.h (force_fit_type_double): Moved from double-int.c. Use
8111         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
8112         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
8113         * convert.c (convert_to_pointer): Adjust call to
8114         force_fit_type_double.
8115         * tree-vrp.c (extract_range_from_assert,
8116         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
8117         * fold-const.c: Update comment.
8118         (int_const_binop, fold_convert_const_int_from_int,
8119         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
8120         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
8121         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
8122         round_up_loc): Adjust call to force_fit_type_double.
8123
8124 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8125
8126         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
8127
8128 2010-06-28  Martin Jambor  <mjambor@suse.cz>
8129
8130         * tree-sra.c (convert_callers): New parameter, change fndecls of
8131         recursive calls.
8132         (modify_function): Pass the old decl to convert_callers.
8133
8134 2010-06-28  Martin Jambor  <mjambor@suse.cz>
8135
8136         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
8137         ipa_check_create_node_params and ipa_initialize_node_params with
8138         checking asserts they are not necessary.
8139
8140 2010-06-28  Jan Hubicka  <jh@suse.cz>
8141
8142         PR tree-optimization/44687
8143         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
8144
8145 2010-06-28  Martin Jambor  <mjambor@suse.cz>
8146
8147         PR c++/44535
8148         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
8149         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
8150         instead of BINFO_BASE_BINFO.
8151
8152 2010-06-28  Michael Matz  <matz@suse.de>
8153
8154         PR middle-end/44592
8155         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
8156         proper VDEF chain for intermediate stores in the sequence.
8157
8158 2010-06-28  Jan Hubicka  <jh@suse.cz>
8159
8160         PR tree-optimization/44357
8161         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
8162         uninlinable functions.
8163
8164 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
8165
8166         * config.gcc (powerpc*-*-*): Handle titan.
8167         * config/rs6000/rs6000.c (titan_cost): New costs.
8168         (rs6000_override_options): Add "titan" to processor_target_table.
8169         Add Titan to branch alignment logic.
8170         Correctly set rs6000_cost for titan.
8171         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
8172         * config/rs6000/titan.md: New file.
8173         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
8174
8175 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
8176
8177         * tree-browser.c (TB_history_stack): Convert to a VEC.
8178         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
8179         (TB_history_prev): Likewise.
8180
8181 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
8182
8183         * vec.h (vec_heap_free): Add parentheses around free.
8184
8185 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
8186
8187         * system.h: Poison GCC_EXCEPT_H for front-end files.
8188
8189         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
8190         langhook.
8191         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
8192         Define to NULL by default.
8193         * except.h: Define GCC_EXCEPT_H.
8194         (doing_eh): Remove prototype.
8195         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
8196         (lang_protect_cleanup_actions): Remove.
8197         * except.c (lang_protect_cleanup_actions): Remove.
8198         (doing_eh): Remove.
8199         (gen_eh_region): Don't check doing_eh here.
8200         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
8201         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
8202         instead of lang_protect_cleanup_actions.
8203         * omp-low.c (maybe_catch_exception): Likewise.
8204         * Makefile.in: Update dependencies.
8205
8206 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
8207
8208         * cgraph.h (struct varpool_node): new used_from_object_file flag.
8209         (struct cgraph_local_info): new used_from_object_file flag.
8210         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
8211         (cgraph_clone_node): initialize used_from_object_file.
8212         (cgraph_create_virtual_clone): initialize used_from_object_file.
8213         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
8214         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
8215         when compiling with -fwhole-program.
8216         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
8217         internal resolver.
8218         * ipa.c (function_and_variable_visibility): Set externally_visible
8219         flag of varpool_node if used_from_object_file flag is set.
8220         (cgraph_externally_visible_p): check used_from_object_file flag.
8221         * doc/invoke.texi (-fwhole-program option): Change description of
8222         externally_visible attribute accordingly.
8223         * doc/extend.texi (externally_visible): Ditto.
8224
8225 2010-06-27  Jan Hubicka  <jh@suse.cz>
8226
8227         * params.def (max-inline-insns-auto): Default to 40.
8228         * doc/invoke.texi (max-inline-insns-auto): Document the change.
8229
8230 2010-06-27  Jan Hubicka  <jh@suse.cz>
8231
8232         PR middle-end/44671
8233         PR middle-end/44686
8234         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
8235         signature change.
8236         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
8237         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
8238
8239 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
8240
8241         * target.h (struct gcc_target): Add register_move_cost field.
8242         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
8243         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
8244         * targhooks.c (default_register_move_cost): New function.
8245         * targhooks.h (default_register_move_cost): Declare function.
8246         * defaults.h (REGISTER_MOVE_COST): Delete.
8247         * ira-int.h (ira_register_move_cost): Update comment.
8248         * ira.c (ira_register_move_cost): Update comment.
8249         * reload.h (register_move_cost): Declare.
8250         * reginfo.c (register_move_cost): New function.
8251         (move_cost): Update comment.
8252         (init_move_cost, memory_move_secondary_cost): Replace
8253         REGISTER_MOVE_COST with register_move_cost.
8254         * postreload.c (reload_cse_simplify_set): (Ditto.).
8255         * reload.c (find_valid_class, find_reloads): (Ditto.).
8256         * reload1.c (choose_reload_regs): (Ditto.).
8257         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
8258         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
8259         * doc/md.texi (can_create_pseudo_p): Update documentation.
8260
8261         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
8262         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
8263         * config/i386/i386.h (ix86_memory_move_cost): Make static.
8264         (TARGET_MEMORY_MOVE_COST): Define.
8265
8266         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8267         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
8268         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
8269         (TARGET_MEMORY_MOVE_COST): Define.
8270
8271 2010-06-27  Richard Guenther  <rguenther@suse.de>
8272
8273         PR tree-optimization/44683
8274         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
8275         false edge from the inverted condition.
8276
8277 2010-06-27  Richard Guenther  <rguenther@suse.de>
8278
8279         PR middle-end/44684
8280         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
8281         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
8282         for register LHS.  Or non-store assignments.
8283
8284 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
8285
8286         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
8287         (sparc_emit_set_const64): Likewise.  Remove disabled code.
8288         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
8289         (sparc_emit_set_const64): Likewise.
8290
8291 2010-06-26  Catherine Moore  <clm@codesourcery.com>
8292
8293         * config/mips/mips.md (alu_type): New attribute.
8294         (type): Infer type from alu_type.
8295         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
8296         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
8297         *subsi3_extended, negsi2, negdi2, *low<mode>,
8298         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
8299         xor<mode>3, *nor<mode>3,
8300         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
8301         *zero_extendhi_truncqi):  Set alu_type instead of type.
8302
8303 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
8304
8305         * config/alpha/alpha.c (alpha_need_linkage): Adjust
8306         splay_tree_new_ggc call.
8307         (alpha_use_linkage): Likewise.
8308
8309 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8310
8311         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
8312         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
8313         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
8314         (static_specs): Remove switches_need_spaces.
8315         (process_command, do_self_spec): Hardcode handling "-o" instead of
8316         checking switches_need_spaces.
8317         * system.h (SWITCHES_NEED_SPACES): Poison.
8318
8319 2010-06-26  Richard Guenther  <rguenther@suse.de>
8320
8321         PR tree-optimization/44393
8322         * tree-loop-distribution.c (generate_loops_for_partition): Fix
8323         stmt removal and VOP renaming.
8324         (generate_memset_zero): Remove redundant stmt updating.
8325         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
8326         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
8327
8328 2010-06-26  Jan Hubicka  <jh@suse.cz>
8329
8330         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
8331         edges comming from header are equivalent.
8332         (visit_bb): Handle PHIs correctly.
8333         * tree-inline.c (copy_phis_for_bb): Be able to copy
8334         PHI from entry edge.
8335         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
8336
8337 2010-06-26  Richard Guenther  <rguenther@suse.de>
8338
8339         PR middle-end/44674
8340         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
8341         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
8342
8343 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8344
8345         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
8346         add_infile, alloc_switch): New.
8347         (process_command): Remove variable lang_n_infiles.  Process
8348         options in a single pass.  Use new functions for allocating
8349         infiles and switches arrays.  Properly skip operands of
8350         -Xpreprocessor and -Xassembler.
8351
8352 2010-06-26  Jan Hubicka  <jh@suse.cz>
8353
8354         PR middle-end/44671
8355         * cgraphunit.c (cgraph_function_versioning): Remove wrong
8356         cgraph_make_decl_local call; fix typo copying RTL data.
8357
8358 2010-06-25  DJ Delorie  <dj@redhat.com>
8359
8360         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
8361         (m32c_output_aligned_common): Likewise.
8362         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8363         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8364         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
8365         (m32c_register_pragmas): Register it.
8366         * config/m32c/m32c.c (m32c_get_pragma_address): New.
8367         (m32c_insert_attributes): Set #pragma address decls volatile.
8368         (pragma_entry_eq): New.
8369         (pragma_entry_hash): New.
8370         (m32c_note_pragma_address): New.
8371         (m32c_get_pragma_address): New.
8372         (m32c_output_aligned_common): New.
8373         * doc/extend.texi: Document the new pragma.
8374
8375         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
8376         also.
8377         * config/m32c/predicates.md (m32c_any_operand): Check the code
8378         instead of memory_operand so as to allow matching volatile MEMs.
8379         (m32c_nonimmediate_operand): Likewise.
8380         (mra_operand): Allow volatiles.
8381
8382 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
8383
8384         PR debug/44610
8385         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
8386         address if the offset is unknown.
8387
8388 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
8389
8390         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
8391         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
8392         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
8393         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
8394         to ia64_start_function. Invoke it.
8395         * config/ia64/ia64.c (ia64_start_function): Call new function
8396         dwarf2out_vms_debug_main_pointer.
8397
8398 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8399
8400         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
8401         statements computing the true predicate.
8402
8403 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8404
8405         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
8406         to boolean_true_node.
8407         (reset_bb_predicate): New.
8408         (predicate_bbs): Call reset_bb_predicate.
8409
8410 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8411
8412         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
8413         (tree_if_conversion): Returns true when something has been changed.
8414         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
8415         changed something.
8416
8417 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8418
8419         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
8420         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
8421         * tree-if-conv.c: Include dbgcnt.h.
8422         (tree_if_conversion): Use if_conversion_tree to count the number of
8423         if-convertible loops.
8424
8425 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
8426
8427         * common.opt (fprefetch-loop-arrays): Re-define
8428         -fprefetch-loop-arrays as a tri-state option with the initial
8429         value of -1.
8430         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
8431         pass only when flag_prefetch_loop_arrays > 0.
8432         * toplev.c (process_options): Note that, with tri-states,
8433         flag_prefetch_loop_arrays>0 means prefetching is enabled.
8434         * config/i386/i386.c (override_options): Enable prefetching at -O3
8435         for a set of CPUs that sw prefetching is helpful.
8436         (software_prefetching_beneficial_p): New.  Return TRUE if software
8437         prefetching is beneficial for the given CPU.
8438
8439 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8440
8441         PR rtl-optimization/44326
8442         * implicit-zee.c (find_removable_zero_extends): Replace
8443         INSN_P with NONDEBUG_INSN_P.
8444
8445 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8446
8447         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
8448         (struct ipa_node_params): Removed the modification_analysis_done flag.
8449         (ipa_is_param_modified): Removed.
8450         (ipa_analyze_node): Declare.
8451         (ipa_compute_jump_functions): Remove declaration.
8452         (ipa_count_arguments): Likewise.
8453         (ipa_detect_param_modifications): Likewise.
8454         (ipa_analyze_params_uses): Likewise.
8455         * ipa-prop.c (struct param_analysis_info): New type.
8456         (visit_store_addr_for_mod_analysis): Removed.
8457         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
8458         moved down in the file.
8459         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
8460         (ipa_count_arguments): Made static.
8461         (mark_modified): New function.
8462         (is_parm_modified_before_call): New function.
8463         (compute_pass_through_member_ptrs): New parameter parms_info, call
8464         is_parm_modified_before_call instead of ipa_is_param_modified.
8465         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
8466         it to compute_pass_through_member_ptrs.
8467         (ipa_compute_jump_functions): New parameter parms_info, pass it to
8468         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
8469         on the callee if it is analyzed.  Made static.
8470         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
8471         is_parm_modified_before_call instead of ipa_is_param_modified.
8472         (ipa_analyze_call_uses): New parameter parms_info, pass it to
8473         ipa_analyze_indirect_call_uses.
8474         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
8475         ipa_analyze_call_uses.
8476         (ipa_analyze_params_uses): New parameter parms_info, pass it to
8477         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
8478         (ipa_analyze_node): New function.
8479         (ipa_print_node_params): Do not dump the modified flag.
8480         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
8481         it.  Do not stream the modified parameter flag.
8482         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
8483         it.  Do not stream the modified parameter flag.
8484         * ipa-cp.c (ipcp_analyze_node): Removed.
8485         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
8486         with only a call to ipa_analyze_node.
8487         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
8488         node with only a call to ipa_analyze_node.
8489
8490 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8491
8492         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
8493
8494 2010-06-25  Jan Hubicka  <jh@suse.cz>
8495
8496         * tree-pass.h (pass_split_functions): Declare.
8497         * opts.c (decode_options): Enable function splitting at -O2
8498         * timevar.def (TV_IPA_FNSPLIT): New macro.
8499         * ipa-split.c: New file.
8500         * common.opt (-fpartial-inlining): New flag.
8501         * Makefile.in (ipa-split.o): New object file.
8502         * passes.c (init_optimization_passes): Add ipa-split.
8503         * params.def (partial-inlining-entry-probability): New parameters.
8504         * doc/invoke.texi (-fpartial-inlining): New.
8505
8506 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8507
8508         PR 44665
8509         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
8510         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
8511         (gimplify_expr): Likewise.
8512
8513 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8514
8515         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
8516         statements instead of bailing out on them.
8517         (ipa_analyze_indirect_call_uses): Do not require that loads from the
8518         parameter are in the same BB as the condition.  Update comments.
8519
8520 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
8521
8522         PR middle-end/43866
8523         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
8524         true or always false, return NULL_TREE.
8525         (tree_unswitch_single_loop): Optimize conditions even when reaching
8526         max-unswitch-level parameter.  If num > 0, optimize first all conditions
8527         using entry checks, then do still reachable block discovery and consider
8528         only conditions in still reachable basic blocks in the loop.
8529
8530         PR tree-optimization/44539
8531         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
8532         the call doesn't have LHS, but has VDEF.
8533
8534 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8535
8536         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
8537         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
8538         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
8539         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
8540         * system.h (MODIFY_TARGET_NAME): Poison.
8541
8542 2010-06-25  Alan Modra  <amodra@gmail.com>
8543
8544         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
8545         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
8546         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8547         CMODEL_LARGE as default.
8548         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8549         (offsettable_ok_by_alignment): Delete.
8550         (rs6000_emit_move): Remove mcmodel=medium optimization.
8551
8552 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8553
8554         With large parts from Jim Wilson:
8555         PR target/43902
8556         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
8557         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8558         * optabs.c (optab_for_tree_code): Likewise.
8559         (expand_widen_pattern_expr): Likewise.
8560         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
8561         out of execute_optimize_widening_mul.
8562         (convert_plusminus_to_widen): New function.
8563         (execute_optimize_widening_mul): Use the two new functions.
8564         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
8565         Remove code to generate widening multiply-accumulate.  Add support
8566         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8567         * gimple-pretty-print.c (dump_ternary_rhs): New function.
8568         (dump_gimple_assign): Call it when appropriate.
8569         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
8570         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8571         (expand_gimple_stmt_1): Likewise.
8572         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
8573         WIDEN_MULT_MINUS_EXPR.
8574         * tree-ssa-operands.c (get_expr_operands): Likewise.
8575         * tree-inline.c (estimate_operator_cost): Likewise.
8576         * gimple.c (extract_ops_from_tree_1): Renamed from
8577         extract_ops_from_tree.  Add new arg for a third operand; fill it.
8578         (gimple_build_assign_stat): Support operations with three operands.
8579         (gimple_build_assign_with_ops_stat): Likewise.
8580         (gimple_assign_set_rhs_from_tree): Likewise.
8581         (gimple_assign_set_rhs_with_ops_1): Renamed from
8582         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
8583         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
8584         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
8585         WIDEN_MULT_MINUS_EXPR.
8586         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
8587         (extract_ops_from_tree_1): Adjust declaration.
8588         (gimple_assign_set_rhs_with_ops_1): Likewise.
8589         (gimple_build_assign_with_ops): Pass NULL for last operand.
8590         (gimple_build_assign_with_ops3): New macro.
8591         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
8592         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
8593         functions.
8594         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
8595         (verify_gimple_assign): Call it.
8596         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
8597         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
8598         functions for dealing with three-operand statements.
8599         * tree.c (commutative_ternary_tree_code): New function.
8600         * tree.h (commutative_ternary_tree_code): Declare it.
8601         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
8602         ternary statements.
8603         (gimple_assign_nonzero_warnv_p): Likewise.
8604         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
8605         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
8606         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
8607         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
8608         (struct hashtable_expr): New member ternary in the union.
8609         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
8610         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
8611         (iterative_hash_hashable_expr): Likewise.
8612         (print_expr_hash_elt): Handle EXPR_TERNARY.
8613         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
8614         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
8615         statements.  Handle GIMPLE_TERNARY_RHS.
8616
8617 2010-06-25  Jan Hubicka  <jh@suse.cz>
8618
8619         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
8620
8621 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
8622
8623         PR c/44517
8624         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8625         parameters are not good.
8626         (c_parser_parameter_declaration): Error unknown type name if the type
8627         name can't start declaration specifiers.
8628
8629 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8630
8631         * gcc.c (translate_options): Don't mention +e in comment.
8632         (process_command): Don't handle +e specially.
8633
8634 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8635
8636         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8637
8638         * ira-build.c (merge_hard_reg_conflicts): New function.
8639         (create_cap_allocno, copy_info_to_removed_store_destinations,
8640         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8641         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8642         (remove_unnecessary_allocnos, remove_low_level_allocnos)
8643         copy_nifo_to_removed_store_destination): Use them.
8644         * ira-lives.c (make_hard_regno_born): New function, split out of
8645         make_regno_born.
8646         (make_allocno_born): Likewise.
8647         (make_hard_regno_dead): New function, split out of make_regno_dead.
8648         (make_allocno_dead): Likewise.
8649         (inc_register_pressure): New function, split out of set_allocno_live.
8650         (dec_register_pressure): New function, split out of clear_allocno_live.
8651         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8652         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
8653         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8654         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
8655         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8656         mark_pseudo_regno_live.
8657         (process_bb_node_lives): Use mark_pseudo_regno_live,
8658         make_hard_regno_born and make_allocno_dead.
8659         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8660         set_allocno_live, clear_allocno_live): Delete functions.
8661
8662         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8663         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8664         functions.
8665         (ira_flattening): Use ira_parent_allocno.
8666         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8667         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8668
8669         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8670         statement.
8671
8672         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8673         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8674         minmax_set_iter_cond, minmax_set_iter_next,
8675         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8676         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8677         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8678         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
8679         uses changed.
8680
8681         * ira-int.h (struct live_range, live_range_t): Renamed from struct
8682         ira_allocno_live_range and allocno_live_range_t; all uses changed.
8683         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8684         All uses changed.
8685
8686 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
8687
8688         * thumb2.md (thumb2_tlobits_cbranch): Delete.
8689         (peephole2 to convert zero_extract/compare of single bit to
8690          lshift/compare): New.
8691
8692 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
8693
8694         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8695         recursive call and call to 'int_const_binop'.
8696         (build_range_check, fold_cond_expr_with_comparison, unextend,
8697         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8698         multiple_of_p): Adjust call to const_binop.
8699
8700 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
8701
8702         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8703         determine size of XFmode operand.
8704         (XFmode extended DFmode push splitter): Ditto.
8705         (XFmode extended SFmode push splitter): Ditto.
8706
8707 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8708
8709         PR target/44588
8710         * config/i386/i386.md (extract_code): New.
8711         (<u>divmodqi4): Likewise.
8712         (divmodhiqi3): Likewise.
8713         (udivmodhiqi3): Likewise.
8714         (<u>divqi3): Remvoved.
8715
8716 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
8717
8718         PR middle-end/44492
8719         * recog.h (struct recog_data): Add is_asm field.
8720         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8721         present in constraints of inline-asm operand and memory operand
8722         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8723         (extract_insn): Initialize recog_data.is_asm.
8724         * doc/md.texi (Constraints): Document operand side-effect rules.
8725
8726 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8727
8728         * c-parser.c (c_parser_conditional_expression): Call
8729         warn_for_omitted_condop.
8730         * doc/invoke.texi: Document omitted condop warning.
8731
8732 2010-06-24  Nick Clifton<nickc@redhat.com>
8733
8734         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8735         insn in the sequence is a jump insn before setting its label.
8736
8737 2010-06-24  Alan Modra  <amodra@gmail.com>
8738
8739         * collect2.c (main): Match exactly --version and --help.
8740
8741 2010-06-24  DJ Delorie  <dj@redhat.com>
8742
8743         * config/m32c/m32c-pragma.c: Don't include rtl.h.
8744
8745 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
8746
8747         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8748         using X87MODEF mode iterator.
8749         (pushsf splitter): Macroize splitter using P mode iterator.
8750         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8751         mode iterator.
8752
8753         (*movxf_internal): Rename from *movxf_integer.
8754         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8755         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8756         (*movdf_internal): Rename from *movdf_integer.
8757         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8758         (*movsf_internal): Rename from *movdf_1.
8759
8760 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
8761
8762         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8763         (const_gimple_seq_node): Removed typedefs.
8764
8765         * gimple.h (gimple_seq_node_d, gimple_seq_node)
8766         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8767
8768 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8769
8770         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8771         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8772         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8773         and CODE_FOR_vec_extract_lo_v4df.
8774
8775         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8776         Changed to define_insn_and_split.
8777         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8778         (vec_extract_lo_v16hi): Likewise.
8779         (vec_extract_lo_v32qi): Likewise.
8780         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8781         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8782
8783 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
8784
8785         PR target/44640
8786         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8787         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8788         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8789         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8790         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8791
8792         PR target/44640
8793         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8794
8795         PR other/44644
8796         * df-core.c (struct df): Rename to df_d.
8797         * df.h (struct df): Likewise.
8798         * dse.h (struct df): Remove forward declaration.
8799         * recog.h (struct insn_data): Rename to:
8800         (struct_insn_data_d).  Adjusted all users.
8801
8802 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8803
8804         PR ada/22220
8805         * doc/install.texi: Update requirements to build GNAT.
8806
8807 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8808
8809         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8810         enum type.
8811         (m68k_sched_attr_opx_type): Remove unreachable return.
8812         (m68k_sched_attr_opy_type): Likewise.
8813         (m68k_sched_attr_size): Likewise.
8814         (sched_get_opxy_mem_type): Likewise.
8815         (m68k_sched_attr_op_mem): Likewise.
8816
8817 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8818
8819         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8820         new statement and adjust VDEF only if necessary.  Remove superfluous
8821         call to maybe_clean_or_replace_eh_stmt.
8822         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8823         copy the flags.
8824         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8825         * tree-inline.c (copy_bb): ...and not there.
8826
8827 2010-06-22  Cary Coutant  <ccoutant@google.com>
8828
8829         * dwarf2out.c (is_nested_in_subprogram): New function.
8830         (should_move_die_to_comdat): Use it.
8831         (copy_ancestor_tree): Don't mark DIEs here.
8832         (copy_decls_walk): Start walk from root of newly-added tree;
8833         mark DIEs here instead.
8834
8835 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8836
8837         * config/i386/i386.md (unit): Also check sseishft1.
8838
8839 2010-06-22  Jan Hubicka  <jh@suse.cz>
8840
8841         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8842         enabled.
8843
8844 2010-06-22  Jan Hubicka  <jh@suse.cz>
8845
8846         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8847         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8848         Return true if something changed.
8849         * df.h (df_confluence_function_n): Return bool.
8850         * df-core.c (df_worklist_propagate_forward,
8851         df_worklist_propagate_backward): Track changes and ages.
8852         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8853         track ages.
8854         * dse.c (dse_confluence_n): Return always true.
8855
8856 2010-06-22  Jan Hubicka  <jh@suse.cz>
8857
8858         * bitmap.c (bitmap_clear_bit): Micro optimize.
8859
8860 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8861
8862         * config/i386/i386.md (SWI1248x): New mode iterator.
8863         (SWI48x): Ditto.
8864         (SWI12): Ditto.
8865         (SWI24): Ditto.
8866
8867         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8868         SWI1248x mode iterator.
8869         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8870         using SWI124 mode iterator.
8871         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8872         mode iterator.
8873         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8874         *pushdi2_prologue_rex64 using P mode iterator.
8875         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8876         using SWI48 mode iterator.
8877         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8878         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8879         using SWI1248x mode iterator.
8880         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8881         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8882         SWI48 mode iterator.
8883         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8884         iterator.
8885         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8886         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8887         SWI12 mode iterator.
8888         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8889         SWI12 mode iterator.
8890         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8891         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8892         SWI24 mode iterator.
8893         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8894         SWI48 mode iterator.
8895         (mov<mode>_insn_1): New expander.
8896         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8897         using SWI48x mode iterator.
8898
8899         (*movoi_internal_avx): Rename from *movoi_internal.
8900         (*movti_internal_rex64): Rename from *movti_rex64.
8901         (*movti_internal_sse): Rename from *movti_sse.
8902         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8903         (*movdi_internal): Rename from *movdi_2.
8904         (*movsi_internal): Rename from *movsi_1.
8905         (*movhi_internal): Rename from *movhi_1.
8906         (*movqi_internal): Rename from *movqi_1.
8907
8908         (insv): Update the call to gen_movsi_insv_1 for rename.
8909         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8910
8911 2010-06-22  Jan Hubicka  <jh@suse.cz>
8912
8913         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8914         to ...
8915         (execute_todo) ... this one.
8916
8917 2010-06-22  Alan Modra  <amodra@gmail.com>
8918
8919         PR target/44364
8920         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8921         * caller-save.c (insert_restore, insert_save): Use non-validate
8922         form of adjust_address.
8923
8924 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8925
8926         PR target/39690
8927         * config/pa/pa.c (override_options): Disable
8928         -freorder-blocks-and-partition.
8929
8930 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8931
8932         PR target/44615
8933         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8934
8935         * config/i386/i386.md (type): Add sseishft1
8936
8937         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8938         (ppro_insn_load): Likewise.
8939         (ppro_insn_store): Likewise.
8940         (ppro_insn_both): Likewise.
8941
8942         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8943         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8944         for type.
8945         (*vec_extractv2di_1_avx): Likewise.
8946         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8947         type.  Remove atom_unit.
8948         (*vec_extractv2di_1_sse2): Likewise.
8949
8950 2010-06-21  DJ Delorie  <dj@redhat.com>
8951
8952         * diagnostic.h (diagnostic_classification_change_t): New.
8953         (diagnostic_context): Add history and push/pop list.
8954         (diagnostic_push_diagnostics): Declare.
8955         (diagnostic_pop_diagnostics): Declare.
8956         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8957         from pragmas in a history chain instead of the global table.
8958         (diagnostic_push_diagnostics): New.
8959         (diagnostic_pop_diagnostics): New.
8960         (diagnostic_report_diagnostic): Scan history chain to find state
8961         of diagnostics as of the diagnostic location.
8962         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8963         diagnostic_classify_diagnostic.
8964         (enable_warning_as_error): Likewise.
8965         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8966         use in the history chain.
8967         * doc/extend.texi: Document pragma GCC diagnostic changes.
8968
8969 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8970
8971         * dwarf2out.c (add_linkage_name): New function.  Don't add
8972         anything to DW_TAG_member DIEs.
8973         (add_name_and_src_coords_attributes): Use it.
8974         (gen_variable_die): Call it for C++ static data members if
8975         specification is DW_TAG_member.
8976
8977         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8978         C++ char16_t and char32_t.
8979
8980         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8981         * genattrtab.c: Include vecprim.h.
8982         (cached_attrs, cached_attr_count, attrs_seen_once,
8983         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8984         attrs_cached_after): New variables.
8985         (find_attrs_to_cache): New function.
8986         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8987         (write_test_expr): Add attrs_cached argument, return it too,
8988         attempt to cache non-const attributes used more than once in
8989         a single case handling.
8990         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8991         emit cached_* variables.  Adjust write_attr_set callers.
8992         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8993         to find attributes that should be cached in this block.  Adjust
8994         write_test_expr callers.
8995         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8996         callers.
8997         (make_automaton_attrs): Adjust write_test_expr caller.
8998
8999         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
9000         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
9001         (make_automaton_attrs): If find_tune_attr returns non-NULL,
9002         write separate internal_dfa_insn_code_* and insn_default_latency_*
9003         functions for each attribute's value and emit init_sched_attrs
9004         function and function pointers.
9005         * genattr.c (const_attrs, reservations): New variables.
9006         (gen_attr): Add const attributes to const_attrs vector.
9007         (check_tune_attr, find_tune_attr): New functions.
9008         (main): Add reservations to reservations vector.  If find_tune_attr
9009         returns true, add prototype for init_sched_attrs and make
9010         internal_dfa_insn_code and insn_default_latency function pointers,
9011         otherwise define init_sched_attrs as dummy macro.
9012         * cfgexpand.c: Include insn-attr.h.
9013         (gimple_expand_cfg): Call init_sched_attrs.
9014
9015         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
9016
9017         PR target/44575
9018         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
9019         va_arg from a set of register save slots into a temporary,
9020         if the container is bigger than type size, do the copying
9021         using smaller mode or using memcpy.
9022
9023         PR bootstrap/44426
9024         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
9025         prototype.
9026         (sel_print_to_dot): Remove macro.
9027         (sel_print): Likewise.  New prototype.
9028         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
9029         (sel_print): New function.
9030
9031 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9032
9033         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
9034         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
9035
9036 2010-06-21  Nick Clifton  <nickc@redhat.com>
9037
9038         * config/rx/rx.h (PTRDIFF_TYPE): Define.
9039         (SMALL_REGISTER_CLASS): Define (to zero).
9040         (PRINT_OPERAND): Delete.
9041         (PRINT_OPERAND_ADDRESS): Delete.
9042         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
9043         (rx_print_operand_address): Delete prototype.
9044         * config/rx/rx.c (rx_print_operand): Make static.
9045         Allow %H and %L to handle CONST_DOUBLEs.
9046         (rx_print_operand_address): Make static.
9047         (rx_gen_move_template): Rename local variable 'template' to
9048         out_template.
9049         (rx_function_arg): Do not pass unknown sized objects in registers.
9050         (TARGET_PRINT_OPERAND): Define.
9051         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9052
9053 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9054
9055         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
9056
9057 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
9058
9059         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
9060         stack-alignment for simple leaf-functions.
9061
9062 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
9063
9064         * doc/install.texi: Document bootstrap-lto.
9065
9066 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
9067
9068         PR debug/44248
9069         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
9070         (input_function): Drop them here, if VTA is disabled.
9071
9072 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
9073
9074         PR target/44546
9075         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
9076         New predicate.
9077         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
9078         ix86_swapped_fp_comparsion_operator instead of
9079         ix86_fp_comparison_operator.
9080
9081         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
9082         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
9083         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
9084         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
9085         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
9086         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
9087
9088 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
9089
9090         PR other/32998
9091         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
9092         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
9093         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
9094         (decode_cmdline_option): Update for this return value.  Set
9095         orig_option_with_args_text field.  Set arg field for unknown
9096         options.  Make static.
9097         (decode_cmdline_options_to_array): New.
9098         (prune_options): Update handling of find_opt return value.
9099         * opts.c (read_cmdline_option): Take decoded option.  Return void.
9100         (read_cmdline_options): Take decoded options.
9101         (decode_options): Add parameters for decoded options.  Use
9102         decode_cmdline_options_to_array.  Use decoded options for -O
9103         scan.  Use integral_argument for -O parameters.  Update call to
9104         read_cmdline_options.
9105         (enable_warning_as_error): Update handling of find_opt return value.
9106         * opts.h: Update comment on unknown options.
9107         (struct cl_decoded_option): Update comments on opt_index and arg.
9108         Add orig_option_with_args_text.
9109         (decode_cmdline_option): Remove.
9110         (decode_cmdline_options_to_array): Declare.
9111         (decode_options): Update prototype.
9112         * toplev.c (save_argv): Remove.
9113         (save_decoded_options, save_decoded_options_count): New.
9114         (read_integral_parameter): Remove.
9115         (print_switch_values): Use decoded options.
9116         (toplev_main): Don't set save_argv.  Update call to decode_options.
9117         * toplev.h (read_integral_parameter): Remove.
9118         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
9119
9120 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
9121
9122         PR target/44072
9123         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
9124         immediate.
9125         * constraints.md (Pw, Px): New constraints.
9126         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
9127
9128 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
9129
9130         * config/i386/sse.md (fma4modesuffixf4): Removed.
9131         (ssemodesuffixf2s): Likewise.
9132         (ssemodesuffixf4): Likewise.
9133         (ssemodesuffixf2c): Likewise.
9134         (ssescalarmodesuffix2s): Likewise.
9135         (avxmodesuffixf2c): Likewise.
9136         (ssemodesuffix): New.
9137         (ssescalarmodesuffix): Likewise.
9138         Update patterns with ssemodesuffix and ssescalarmodesuffix.
9139
9140 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
9141
9142         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
9143
9144 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         * stor-layout.c (debug_rli): Remove unused local variables.
9147
9148 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9149
9150         PR rtl-optimization/40900
9151         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
9152         original expression for later reuse.
9153         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
9154         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
9155
9156 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
9157
9158         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
9159         double_int_fits_in_uhwi_p): Implement as static inline.
9160         (double_int_xor): New inline function.
9161         (double_int_lrotate, double_int_rrotate, double_int_max,
9162         double_int_umax, double_int_smax, double_int_min, double_int_umin,
9163         double_int_smin): Declare.
9164         (lrotate_double, rrotate_double): Remove declaration.
9165         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
9166         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
9167         (double_int_lrotate, double_int_rrotate, double_int_max,
9168         double_int_umax, double_int_smax, double_int_min, double_int_umin,
9169         double_int_smin): New function.
9170         * fold-const.c (int_const_binop): Clean up, use double_int_*
9171         functions.
9172         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
9173         double_int_* and immed_double_int_const functions.
9174
9175 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
9176
9177         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
9178         * function.c (types_used_by_cur_var_decl): Likewise.
9179         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
9180
9181 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
9182
9183         * tree.h (record_layout_info): Change type of pending_statics field
9184         to a VEC.
9185         * stor-layout.c (start_record_layout): Store NULL into
9186         pending_statics.
9187         (debug_rli): Call debug_vec_tree instead of debug_tree.
9188         (place_field): Likewise.
9189         (finish_record_layout): Likewise.
9190
9191 2010-06-18  Alan Modra  <amodra@gmail.com>
9192
9193         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
9194
9195 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9196
9197         PR target/43740
9198         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
9199         for SET source operand from SET destination operand.
9200
9201 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
9202
9203         PR rtl-optimization/39871
9204         * reload1.c (init_eliminable_invariants): For flag_pic, disable
9205         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
9206         (function_invariant_p): Rule out a plus of frame or arg pointer with
9207         a SYMBOL_REF.
9208         * ira.c (find_reg_equiv_invariant_const): Likewise.
9209
9210 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
9211
9212         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
9213         print_operand_address and puts to output the operand for CONST.
9214
9215 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
9216
9217         PR debug/44572
9218         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
9219         hook.
9220
9221 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9222
9223         * v850-protos.h (print_operand): Delete.
9224         (print_operand_address): Delete.
9225         * v850.h (PRINT_OPERAND): Delete.
9226         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9227         (PRINT_OPERAND_ADDRESS): Delete.
9228         * v850.c (print_operand_address): Rename to...
9229         (v850_print_operand_address): ...this.  Make static. Call
9230         v850_print_operand.
9231         (print_operand): Rename to...
9232         (v850_print_operand): ...this.  Make static.  Call
9233         v850_print_operand_address.
9234         (v850_print_operand_punct_valid_p): New function.
9235         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9236         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9237
9238 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9239
9240         * config/sh/sh-protos.h (print_operand): Delete.
9241         (print_operand_address): Delete.
9242         * config/sh/sh.h (PRINT_OPERAND): Delete.
9243         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9244         (PRINT_OPERAND_ADDRESS): Delete.
9245         * config/sh/sh.c (sh_print_operand_address): Make static.
9246         (sh_print_operand): Make static.  Call sh_print_operand_address
9247         and sh_print_operand.
9248         (sh_print_operand_punct_valid_p): New function.
9249         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9250         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9251
9252 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9253
9254         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
9255         (mcore_print_operand_address): Delete.
9256         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
9257         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9258         (PRINT_OPERAND_ADDRESS): Delete.
9259         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
9260         (mcore_print_operand): Make static.
9261         (mcore_print_operand_punct_valid_p): New function.
9262         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
9263         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9264
9265 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9266
9267         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
9268         (print_operand_address): Delete.
9269         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
9270         (PRINT_OPERAND_ADDRESS): Delete.
9271         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
9272         static.
9273         (m68hc11_print_operand): Make static.
9274         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9275
9276 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9277
9278         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
9279         (m32r_print_operand_address): Delete.
9280         * config/m32r/m32r.h (m32r_punct_chars): Delete.
9281         (PRINT_OPERAND): Delete.
9282         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9283         (PRINT_OPERAND_ADDRESS): Delete.
9284         * config/m32r/m32r.c (m32r_punct_chars): Make static.
9285         (m32r_print_operand_address): Make static.
9286         (m32r_print_operand): Make static.
9287         (m32r_print_operand_punct_valid_p): New function.
9288         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9289         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9290
9291 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9292
9293         * config/iq2000/iq2000-protos.h (print_operand): Delete.
9294         (print_operand_address): Delete.
9295         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
9296         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9297         (PRINT_OPERAND_ADDRESS): Delete.
9298         (iq2000_print_operand_punct): Delete.
9299         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
9300         (iq2000_print_operand_address): Make static.
9301         (iq2000_print_operand): Make static.
9302         (iq2000_print_operand_punct_valid_p): New function.
9303         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9304         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9305
9306 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9307
9308         * config/frv/frv-protos.h (frv_print_operand): Delete.
9309         (frv_print_operand_address): Delete.
9310         * config/frv/frv.h (PRINT_OPERAND): Delete.
9311         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9312         (PRINT_OPERAND_ADDRESS): Delete.
9313         * config/frv/frv.c (frv_print_operand_address): Make static.
9314         (frv_print_operand): Make static.
9315         (frv_print_operand_punct_valid_p): New function.
9316         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9317         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9318
9319 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9320
9321         * tree.h (vec_member): Declare.
9322         * tree.c (vec_member): Define.
9323
9324 2010-06-17  Richard Guenther  <rguenther@suse.de>
9325
9326         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
9327         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
9328
9329 2010-06-17  Richard Guenther  <rguenther@suse.de>
9330
9331         * tree-inline.c (declare_return_variable): Remove bogus code.
9332
9333 2010-06-17  Richard Guenther  <rguenther@suse.de>
9334
9335         * gimplify.c (gimplify_bind_expr): Always promote complex
9336         and vector variables to registers if possible.
9337
9338 2010-06-17  Richard Guenther  <rguenther@suse.de>
9339
9340         * expr.c (get_inner_reference): Use double_int for bit_offset
9341         calculation.
9342
9343 2010-06-16  DJ Delorie  <dj@redhat.com>
9344
9345         * common.opt (-fstrict-volatile-bitfields): new.
9346         * doc/invoke.texi: Document it.
9347         * fold-const.c (optimize_bit_field_compare): For volatile
9348         bitfields, use the field's type to determine the mode, not the
9349         field's size.
9350         * expr.c (expand_assignment): Likewise.
9351         (get_inner_reference): Likewise.
9352         (expand_expr_real_1): Likewise.
9353         * expmed.c (store_fixed_bit_field): Likewise.
9354         (extract_bit_field_1): Likewise.
9355         (extract_fixed_bit_field): Likewise.
9356
9357 2010-06-16  Richard Guenther  <rguenther@suse.de>
9358
9359         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
9360
9361 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
9362
9363         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
9364         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
9365         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
9366         * debug.c: Likewise.
9367         * sdbout.c: Likewise.
9368         * vmsdbgout.c: Likewise.
9369         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
9370         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
9371         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
9372         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
9373         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
9374         * dwarf2out.c (dw_fde_struct): New fields
9375         dw_fde_vms_{end,begin}_prologue.
9376         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
9377         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
9378         (dwarf2out_vms_end_prologue): New function.
9379         (dwarf2out_vms_begin_epilogue): New function.
9380         (dw_val_struct): New value dw_val_class_vms_delta.
9381         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
9382         begin_epilogue for VMS.
9383         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
9384         new static functions.
9385         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
9386         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
9387         static functions.
9388         (print_die): New case dw_val_class_vms_delta.
9389         (attr_checksum): Likewise.
9390         (same_dw_val_p: Likewise.
9391         (size_of_die): Likewise.
9392         (value_format): Likewise.
9393         (output_die): Likewise.
9394         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
9395         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
9396         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
9397         dwarf2out_cfi_begin_epilogue
9398         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
9399
9400 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9401
9402         * config/cris/cris-protos.h (cris_print_operand): Delete.
9403         (cris_print_operand_address): Delete.
9404         * config/cris/cris.h (PRINT_OPERAND): Delete.
9405         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9406         (PRINT_OPERAND_ADDRESS): Delete.
9407         * config/cris/cris.c (cris_print_operand_address): Make static.
9408         (cris_print_operand): Make static.
9409         (cris_print_operand_punct_valid_p): New function.
9410         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9411         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9412
9413 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9414
9415         * config/arm/arm-protos.h (arm_print_operand): Delete.
9416         (arm_print_operand_address): Delete.
9417         * config/arm/arm.h (PRINT_OPERAND): Delete.
9418         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9419         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
9420         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
9421         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
9422         (arm_print_operand): Make static.
9423         (arm_print_operand_punct_valid_p): New function.
9424         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9425         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9426
9427 2010-06-16  Nick Clifton  <nickc@redhat.com>
9428
9429         * config/rx/constraints.md (NEGint4): New constraint.
9430         * config/rx/rx.md (attr cc): Add set_zsc.
9431         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
9432         initialised.
9433         (cmpsf): Likewise.
9434         (call_internal): Clobber the cc0 register.
9435         (call_value_internal): Likewise.
9436         (cstoresi4): Likewise.
9437         (movsieq): Likewise.
9438         (movsine): Likewise.
9439         (addsi3): Add alternative to handle small negative constants.
9440         (sunsi3): Likewise.
9441         (addsi3): Do not set the O bit in the cc0 register.
9442         (adddi3): Likewise.
9443         (subsi3): Likewise.
9444         (subdi3): Likewise.
9445         (andsi3): Reorder alternatives to prefer shorter forms.
9446         (mulsi3): Likewise.
9447         (iorsi3): Likewise.
9448         (negsi2): Note that the cc0 flags are set.
9449         (rotlsi3): Note that only the Z and S bits are set in cc0.
9450         (lshrsi3): Likewise.
9451         (ashlsi3): Likewise.
9452         (subsf3): Use %Q for the MEM operand.
9453         (fix_truncsfsi2): Likewise.
9454         (floatsisf2): Likewise.
9455         (bitset): Remove early clobber from destination.
9456         (bitset_in_memory): Likewise.
9457         (lrintsf2): Clobber the cc0 register.
9458         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
9459         (rx_print_operand): Handle %N.
9460
9461 2010-06-16  Jan Hubicka  <jh@suse.cz>
9462
9463         * df-core.c (df_compact_blocks): Free problem_temps vector.
9464
9465 2010-06-16  Martin Jambor  <mjambor@suse.cz>
9466
9467         PR tree-optimization/43905
9468         * tree-sra.c: Include tree-inline.h.
9469         (create_abstract_origin): Removed.
9470         (modify_function): Version the call graph node instead of creating
9471         abstract origins and dealing with same_body aliases.
9472         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
9473         function is versionable.
9474         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
9475
9476 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9477
9478         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
9479         (CHOOSE_DYNAMIC_LINKER): Update.
9480
9481 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
9482
9483         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
9484         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
9485         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
9486         *prefetch_3dnow_rex.
9487
9488 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
9489
9490         * target.h (struct asm_out):Add declare_constant_name field.
9491         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9492         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
9493         * output.h (default_asm_declare_constant_name): Declare.
9494         (assemble_label): Update prototype.
9495         * varasm.c (assemble_constant_contents): Use
9496         targetm.asm_out.declare_constant_name target hook.
9497         (assemble_label): Add 'file' argument.
9498         (default_asm_declare_constant_name): New function.
9499         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
9500         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
9501         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
9502
9503         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
9504         * config/darwin.c (darwin_asm_declare_constant_name): New function.
9505         (machopic_output_indirection): Update assemble_label argument list.
9506         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
9507         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9508
9509 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
9510
9511         PR middle-end/44391
9512         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9513         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
9514
9515 2010-06-15  Richard Guenther  <rguenther@suse.de>
9516
9517         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
9518
9519 2010-06-15  Paul Brook  <paul@codesourcery.com>
9520
9521         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
9522         hard-float ABI.
9523
9524 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
9525
9526         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
9527         don't get a vector type for output.
9528
9529 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
9530
9531         PR fortran/44536
9532         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
9533         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
9534         (LANG_HOOKS_DECLS): Add it.
9535         * gimplify.c (omp_notice_variable): Call
9536         lang_hooks.decls.omp_report_decl.
9537
9538 2010-06-15  Martin Jambor  <mjambor@suse.cz>
9539
9540         PR lto/44464
9541         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
9542         on the newly dead SSA name.
9543
9544 2010-06-15  Alan Modra  <amodra@gmail.com>
9545
9546         * doc/invoke.texi: Add mcmodel to powerpc options.
9547         * configure.ac: Add HAVE_LD_LARGE_TOC test.
9548         * configure: Regenerate.
9549         * config.in: Regenerate.
9550         * config/rs6000/linux64.opt (mcmodel): New.
9551         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9552         (TARGET_CMODEL, SET_CMODEL): Define.
9553         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
9554         select CMODEL_MEDIUM default.
9555         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
9556         (TARGET_CMODEL): Define default.
9557         * config/rs6000/rs6000.c (cmodel): New variable.
9558         (rs6000_explicit_options): Add cmodel field.
9559         (rs6000_handle_option): Handle -mcmodel.
9560         (create_TOC_reference): Add largetoc_reg param.  Generate high,
9561         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
9562         (rs6000_delegitimize_address): Recognise new toc reference rtl
9563         and minimal-toc rtl.
9564         (rs6000_legitimize_reload_address): Handle new toc references.
9565         (print_operand_address): Handle legitimate_constant_pool_address_p
9566         match before lo_sum.
9567         (rs6000_eliminate_indexed_memrefs): Tidy.
9568         (rs6000_emit_move): Tweak threshold for inlining constants.
9569         Keep rs6000_emit_allocate_stack large stack frame offsets
9570         loaded into r0 inline.
9571         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
9572         (tocrel_base, tocrel_offset): New variables.
9573         (toc_relative_expr_p): Set them here.
9574         (print_operand_address): Skip over any offset on constant pool address.
9575         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
9576         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
9577         (offsettable_ok_by_alignment): New function.
9578         (rs6000_emit_move): Address suitably aligned local symbol_refs
9579         relative to the toc pointer for -mcmodel=medium.
9580         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
9581         strict param.  Allow lo_sum version of addressing.  Verify reg
9582         used for -mminimal-toc and -mcmodel != small.  Update all callers.
9583         * config/rs6000/constraints.md: Update for above change.
9584         * config/rs6000/predicates.md: Likewise.
9585         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
9586         code.
9587         (tls_gd): Split for -mcmodel=medium/large.
9588         (tls_gd_high, tls_gd_low): New.
9589         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
9590         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
9591         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
9592         (largetoc_high, largetoc_low): New.
9593         (cmptf_internal2): Add clobber.
9594         * config/rs6000/rs6000-protos.h: Update.
9595
9596 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
9597
9598         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
9599         true if no prefetch is going to be generated for a given group.
9600         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
9601         estimate the prefetch_count.
9602         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
9603         prefetch count by considering the unroll_factor and prefetch_mod
9604         for is_loop_prefetching_profitable.
9605
9606 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
9607
9608         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
9609         anything if the argument is not a MEM.
9610
9611 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9612
9613         PR debug/43650
9614         PR debug/44181
9615         PR debug/44247
9616         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
9617         debug stmts.
9618         (canonicalize_loop_ivs): Likewise.
9619
9620 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9621
9622         PR debug/43656
9623         * haifa-sched.c (setup_insn_reg_pressure_info,
9624         update_register_pressure): Reject debug insns.
9625         (ready_sort): Don't setup reg pressure for debug insns.
9626         (schedule_insn): Don't update reg pressure for debug insns.
9627
9628 2010-06-14  Richard Guenther  <rguenther@suse.de>
9629
9630         * lto-streamer.c (cached_bp): Remove.
9631         (bitpack_delete): Likewise.
9632         (bitpack_create): Likewise.
9633         (bp_get_next_word): Likewise.
9634         (bp_pack_value, bp_unpack_value): Move ...
9635         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9636         Re-implement.
9637         (struct bitpack_d): Likewise.
9638         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9639         New inline functions.
9640         * lto-streamer-out.c (lto_output_bitpack): Remove.
9641         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9642         (pack_value_fields): Adjust.
9643         (lto_write_tree): Likewise.
9644         (output_gimple_stmt): Likewise.
9645         (output_function): Likewise.
9646         * lto-streamer-in.c (input_gimple_stmt): Adjust.
9647         (input_function): Likewise.
9648         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9649         (lto_input_bitpack): Remove.
9650         (lto_materialize_tree): Adjust.
9651         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9652         * lto-cgraph.c (lto_output_edge): Adjust.
9653         (lto_output_node): Likewise.
9654         (lto_output_varpool_node): Likewise.
9655         (lto_output_ref): Likewise.
9656         (input_node): Likewise.
9657         (input_varpool_node): Likewise.
9658         (input_ref): Likewise.
9659         (input_edge): Likewise.
9660         (output_node_opt_summary): Likewise.
9661         (input_node_opt_summary): Likewise.
9662         * ipa-pure-const.c (pure_const_write_summary): Likewise.
9663         (pure_const_read_summary): Likewise.
9664         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9665         (ipa_read_indirect_edge_info): Likewise.
9666         (ipa_write_node_info): Likewise.
9667         (ipa_read_node_info): Likewise.
9668
9669 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9670
9671         PR target/44534
9672         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9673         (vec_extract_lo_v16hi): Likewise.
9674         (vec_extract_lo_v32qi): Likewise.
9675
9676 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9677
9678         PR bootstrap/44426
9679         * tree.h (build_call_expr): Don't define as vararg macro, instead
9680         add a prototype.
9681         * builtins.c (build_call_nofold): Remove.
9682         (expand_builtin_int_roundingfn, expand_builtin_pow,
9683         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9684         expand_builtin_memset_args, expand_builtin_strcmp,
9685         expand_builtin_strncmp, expand_builtin_memory_chk): Use
9686         build_call_nofold_loc instead of build_call_nofold.
9687         (build_call_expr): New function.
9688
9689         PR tree-optimization/44508
9690         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9691         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9692         don't eliminate trivially dead stmts.
9693         * tree-vrp.c (vrp_finalize): Pass false as last argument
9694         to substitute_and_fold.
9695         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9696         to substitute_and_fold.
9697         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9698
9699         PR bootstrap/44509
9700         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9701
9702 2010-06-14  Ira Rosen  <irar@il.ibm.com>
9703
9704         PR tree-optimization/44507
9705         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9706         to build initial vector for BIT_AND_EXPR.
9707         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9708
9709 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9710
9711         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9712         adjust z10prop set_attr.
9713
9714 2010-06-13  Jan Hubicka  <jh@suse.cz>
9715
9716         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9717         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9718         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9719         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9720         datastructure checks into checking asserts.
9721         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9722         * tree-ssa-sccvn.c (VN_INFO): Likewise.
9723         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9724         df_ref_create_structure): Likewise.
9725         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9726         pool_free): Use gcc_checking_assert.
9727         * alias.c (get_alias_set): Likewise.
9728         * var-tracking.c (variable_htab_free, shared_hash_copy,
9729         canonicalize_values_mark, variable_merge_over_cur): Likewise.
9730         * lto-streamer.c (bp_unpack_value): Likewise.
9731
9732 2010-06-13  Richard Guenther  <rguenther@suse.de>
9733
9734         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9735         Do not stream but initialize TYPE_CANONICAL to NULL.
9736         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9737         * gimple.c (gimple_types_compatible_p): Disregard
9738         TYPE_STRUCTURAL_EQUALITY_P.
9739         (gimple_register_type): Use TYPE_CANONICAL as cache.
9740         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9741         before registering common types.
9742         * config/i386/i386.c (ix86_function_arg_boundary): Do not
9743         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9744         * tree.h (TYPE_CANONICAL): Clarify documentation.
9745
9746 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
9747
9748         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9749         LIBCALL_VALUE): Remove macros.
9750         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9751         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9752         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9753         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9754         (ia64_function_value): Make static. Handle receiving the function
9755         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9756
9757 2010-06-12  Jan Hubicka  <jh@suse.cz>
9758
9759         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9760         at correct place.
9761
9762 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
9763
9764         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9765
9766 2010-06-12  Jan Hubicka  <jh@suse.cz>
9767
9768         * df-core.c (df_clear_bb_info): New function.
9769         (df_set_blocks): bb_info is always allocated.
9770         (df_get_bb_info): Use block_info_elt_size.
9771         (df_set_bb_info): Likewise.
9772         (df_compact_blocks): Update for new block_info.
9773         (grow_bb_info): New function.
9774         * df-problems.c (df_grow_bb_info): Move to df-core.c
9775         (df_rd_set_bb_info): Remove.
9776         (df_rd_free_bb_info): Do not free block pool.
9777         (df_rd_alloc): Do not create pool, use check for
9778         obstack presence instead of NULL pointer for new blocks.
9779         (df_rd_free): DO not free alloc pool; clear block_info.
9780         (problem_RD): Add size of block info structure.
9781         (df_lr_set_bb_info): Remove.
9782         (df_lr_free_bb_info): Do not free block pool.
9783         (df_lr_alloc): Do not create pool, use check for
9784         obstack presence instead of NULL pointer for new blocks.
9785         (df_lr_free): DO not free alloc pool; clear block_info.
9786         (problem_LR): Add size of block info structure.
9787         (df_live_set_bb_info): Remove.
9788         (df_live_free_bb_info): Do not free block pool.
9789         (df_live_alloc): Do not create pool, use check for
9790         obstack presence instead of NULL pointer for new blocks.
9791         (df_live_free): DO not free alloc pool; clear block_info.
9792         (problem_LIVE): Add size of block info structure.
9793         (problem_CHAIN): Add size of block info structure.
9794         (df_byte_lr_set_bb_info): Remove.
9795         (df_byte_lr_free_bb_info): Do not free block pool.
9796         (df_byte_lr_alloc): Do not create pool, use check for
9797         obstack presence instead of NULL pointer for new blocks.
9798         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9799         (problem_BYTE_LR): Add size of block info structure.
9800         (problem_NOTE): Add size of block info structure.
9801         (df_byte_MD_set_bb_info): Remove.
9802         (df_byte_MD_free_bb_info): Do not free block pool.
9803         (df_byte_MD_alloc): Do not create pool, use check for
9804         obstack presence instead of NULL pointer for new blocks.
9805         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9806         (problem_BD): Add size of block info structure.
9807         * df-scan.c (df_scan_free_internal): Free block pool.
9808         (df_scan_set_bb_info): Remove.
9809         (df_scan_free_bb_info): Check for artificial_defs instead
9810         of bb_info being non-NULL.
9811         (df_scan_alloc): DO not create df_scan_block pool.
9812         (problem_SCAN): Set size of block info.
9813         (df_bb_refs_record): Do not allocate bb_info.
9814         * df.h (df_problem): Add block_info_elt_size.
9815         (struct dataflow): Change block_info to void *.
9816         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9817         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9818         in-line structures.
9819
9820 2010-06-12  Jan Hubicka  <jh@suse.cz>
9821
9822         PR tree-optimize/44485
9823         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9824         containing use of return value of noreturn function.
9825
9826 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9827
9828         * targhooks.c (default_function_value): Don't use
9829         FUNCTION_OUTGOING_VALUE.
9830         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9831         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9832
9833 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9834
9835         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9836         Add crtfastmath.o to extra_parts.
9837         * config/mips/crtfastmath.c: New.
9838         * config/mips/linux.h (ENDFILE_SPEC): New.
9839
9840 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9841
9842         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9843         old_type in parameter.
9844         (gcc_type_for_value): Update call to gcc_type_for_interval.
9845         (compute_type_for_level_1): Renamed compute_type_for_level.
9846         Update call to gcc_type_for_interval.
9847
9848 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9849
9850         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9851         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9852
9853 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9854
9855         * opts-common.c: Include options.h.
9856         (integral_argument): Move from opts.c.
9857         (decode_cmdline_option): New.  Based on read_cmdline_option.
9858         * opts.c (integral_argument): Move to opts-common.c.
9859         (read_cmdline_option): Move most contents to
9860         decode_cmdline_option.  Use %qs in diagnostics.
9861         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9862         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9863         decode_cmdline_option): New.
9864
9865 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9866
9867         PR target/44481
9868         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9869         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9870         (partiysi2_cmp): Ditto.
9871         (*partiyhi2_cmp): Ditto.
9872         (*parityqi2_cmp): Remove.
9873
9874 2010-06-11  Jan Hubicka  <jh@suse.cz>
9875
9876         * bitmap.h (bmp_iter_next_bit): New.
9877         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9878
9879 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9880             Eric Botcazou  <ebotcazou@adacore.com>
9881
9882         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9883         computed cost.
9884
9885 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9886
9887         * config/i386/i386.md (unspec): New define_c_enum.
9888         (unspecv): Ditto.
9889
9890 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9891
9892         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9893
9894 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9895
9896         PR middle-end/44483
9897         * tree-if-conv.c (bb_predicate_s): New struct.
9898         (bb_predicate_p): New.
9899         (bb_has_predicate): New.
9900         (bb_predicate): New.
9901         (set_bb_predicate): New.
9902         (bb_predicate_gimplified_stmts): New.
9903         (set_bb_predicate_gimplified_stmts): New.
9904         (add_bb_predicate_gimplified_stmts): New.
9905         (init_bb_predicate): New.
9906         (free_bb_predicate): New.
9907         (is_predicated): Use bb_predicate.
9908         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9909         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9910         before processing their successors.
9911         (clean_predicate_lists): Removed.
9912         (find_phi_replacement_condition): Use bb_predicate.
9913         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9914         computations.
9915         (insert_gimplified_predicates): New.
9916         (combine_blocks): Call insert_gimplified_predicates.
9917         (tree_if_conversion): Call free_bb_predicate instead of
9918         clean_predicate_lists.
9919
9920 2010-10-11  Paul Brook  <paul@codesourcery.com>
9921
9922         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9923         * config/arm/arm.c (all_architectures): Change v7e-m default to
9924         cortexm4.
9925         * config/arm/arm-cores.def: Add cortex-m4.
9926         * config/arm/arm-tune.md: Regenerate.
9927
9928 2010-06-11  Jan Hubicka  <jh@suse.cz>
9929
9930         * ipa-pure-const.c (special_builtlin_state): New function.
9931         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9932         (propagate_pure_const): Use it.
9933
9934 2010-06-11  Jan Hubicka  <jh@suse.cz>
9935
9936         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9937         (df_live_alloc): Initialize df_live_scratch when initializing
9938         problem_data.
9939         (df_live_transfer_function): Update uses of df_live_scratch.
9940         (df_live_free): Free problem_data; clear df_live_scratch before
9941         releasing the obstack.
9942         (df_md_free): Free problem data.
9943
9944 2010-06-11  Jan Hubicka  <jh@suse.cz>
9945
9946         * doc/invoke.texi (Wsuggest-attribute): Document.
9947         (Wmissing-noreturn): Remove.
9948         * ipa-pure-const.c (warn_function_noreturn): New function.
9949         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9950         warn_missing_noreturn.
9951         * common.opt (Wsuggest-attribute=noreturn): New.
9952         * tree-flow.h (warn_function_noreturn): Declare.
9953         * tree-cfg.c (execute_warn_function_noreturn): Use
9954         warn_function_noreturn.
9955         (gate_warn_function_noreturn): New.
9956         (pass_warn_function_noreturn): Update.
9957
9958 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9959
9960         * c-typeck.c (handle_warn_cast_qual): Add loc
9961         parameter. Improve warning message.
9962         (build_c_cast): Pass location to handle_warn_cast_qual.
9963
9964 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9965
9966         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9967         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9968         insn mnemonic.
9969         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9970
9971 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9972
9973         Fix bootstap on mips
9974         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9975         be naming typedefs.
9976
9977 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9978
9979         * system.h (helper_const_non_const_cast): New inline for
9980         gcc version <= 4.0.
9981         (CONST_CAST2): For gcc version <= 4.0 use
9982         new helper to do const/non-const casting.
9983
9984 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9985
9986         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9987         * Makefile.in (OBJS-common): Include insn-enums.o.
9988         (insn-enums.o): New rule.
9989         (simple_generated_c): Add insn-enums.c.
9990         (build/genenums.o): New rule.
9991         (genprogmd): Add "enums".
9992         * genconstants.c (print_enum_type): Declare a C string array
9993         for each enum.
9994         * genenums.c: New file.
9995         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9996         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9997         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9998
9999 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10000
10001         * doc/md.texi (define_enum_attr): Document.
10002         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
10003         * read-md.h (lookup_enum_type): Declare.
10004         * read-md.c (lookup_enum_type): New function.
10005         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
10006         * genattrtab.c (attr_desc): Add an enum_name field.
10007         (evaluate_eq_attr): Take the associated attribute as argument.
10008         Get the enum prefix from the enum_name field, if defined.
10009         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
10010         (simplify_test_exp): Pass attr to evaluate_eq_attr.
10011         (add_attr_value): New function, split out from...
10012         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
10013         (write_test_expr): Pass attr to evaluate_eq_attr.
10014         (write_attr_get): Use the enum_name as the enum tag, if defined.
10015         (write_attr_valueq): Use the enum_name as a prefix, if defined.
10016         (find_attr): Initialize enum_name.
10017         (main): Handle DEFINE_ENUM_ATTR.
10018         * gensupport.c (process_rtx): Likewise.
10019         * config/mips/mips.h (mips_tune_attr): Delete.
10020         * config/mips/mips.md (cpu): Use define_attr_enum.
10021
10022 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10023
10024         * doc/md.texi (define_c_enum, define_enum): Document.
10025         * read-md.h (md_constant): Add a parent_enum field.
10026         (enum_value, enum_type): New structures.
10027         (upcase_string, traverse_enum_types): Declare.
10028         * read-md.c (enum_types): New variable.
10029         (upcase_string, add_constant): New functions.
10030         (handle_constants): Don't create the hash table here.
10031         Use add_constant.
10032         (traverse_md_constants): Don't check for a null md_constants.
10033         (decimal_string, handle_enum, traverse_enum_types): New functions.
10034         (read_md_files): Initialize md_constants and md_enums.
10035         * genconstants.c (print_md_constant): Ignore info argument.
10036         Only print constants that belong to no enum.
10037         (print_enum_type): New function.
10038         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
10039         for each defined enum type.
10040         * config/mips/mips.md (processor): New define_enum.
10041         (unspec): New define_c_enum.
10042         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
10043         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
10044         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
10045         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
10046         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
10047         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
10048         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
10049         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
10050         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
10051         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
10052         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
10053         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
10054         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
10055         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
10056         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
10057         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
10058         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
10059         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
10060         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
10061         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
10062         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
10063         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
10064         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10065         (UNSPEC_RDDSP): Move to mips-dsp.md.
10066         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
10067         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
10068         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
10069         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
10070         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
10071         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
10072         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
10073         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
10074         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
10075         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
10076         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
10077         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
10078         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
10079         Moved to mips-dspr2.md.
10080         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
10081         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
10082         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
10083         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
10084         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
10085         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
10086         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
10087         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
10088         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
10089         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
10090         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
10091         UNSPEC_LOONGSON_PSADBH)
10092         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
10093         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
10094         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
10095         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10096         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10097         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10098         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
10099         (cpu): Update comment.
10100         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
10101         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
10102         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
10103         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
10104         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
10105         UNSPEC_LOONGSON_PCMPEQ)
10106         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
10107         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): Moved from mips.md
10117         * config/mips/loongson2ef.md (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): Moved from mips.md
10121         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
10122         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
10123         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
10124         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
10125         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
10126         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
10127         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
10128         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
10129         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
10130         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
10131         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
10132         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
10133         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
10134         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
10135         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
10136         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
10137         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
10138         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
10139         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
10140         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
10141         (UNSPEC_RDDSP): Moved from mips.md.
10142         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
10143         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
10144         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
10145         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
10146         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
10147         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
10148         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
10149         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
10150         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
10151         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
10152         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
10153         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
10154         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
10155         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
10156         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
10157         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
10158         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
10159         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
10160         (UNSPEC_SCC): Moved from mips.md.
10161         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
10162         "processor_type" to "processor".
10163         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
10164         * config/mips/mips.h (processor_type): Delete.
10165         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
10166         "processor_type" to "processor".
10167
10168 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10169
10170         * configure.ac (tm_include_list): Add insn-constants.h.
10171         * configure: Regenerate.
10172         * Makefile.in (GTM_H): Move insn-constants.h here from...
10173         (TM_H): ...here.
10174         * mkconfig.sh: Remove special handling for insn-constants.h.
10175
10176 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10177
10178         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
10179         (BUILD_MD): ...this new variable.
10180         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
10181         that include the old contents of simple_generated_h and
10182         simple_generated_c.
10183         (simple_generated_h, simple_generated_c): Include them.  Add
10184         insn-constants.h.
10185         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
10186         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
10187         Remove these dependencies from the main rule and include
10188         insn-conditions.md in the command line only if it appears
10189         in the dependency list.
10190         (insn-constants.h, s-constants): Delete.
10191         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
10192         or gensupport.h.
10193         (build/genmddeps.o): Likewise.
10194         (genprogrtl): New variable that contains everything from genprogmd
10195         except mddeps and constants.
10196         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
10197         depend on $(BUILD_MD)
10198         (genprog): New variable.  Make these programs depend on
10199         $(BUILD_ERRORS).
10200         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
10201         (main): Use read_md_files instead of init_rtx_reader_args.
10202         * genconstants.c: As for genmddeps.c.
10203         * read-md.h (read_skip_construct): Declare.
10204         * read-md.c (read_skip_construct): New function.
10205         (handle_file): Allow a null handle_directive, skipping the
10206         construct if so.
10207         (parse_include): Update the comment accordingly.
10208
10209 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10210
10211         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
10212         * genmddeps.c: Include read-md.h.
10213         (main): Call init_rtx_reader_args instead of init_md_reader_args.
10214         * genattr.c (main): Likewise.
10215         * genattrtab.c (main): Likewise.
10216         * genautomata.c (main): Likewise.
10217         * gencodes.c (main): Likewise.
10218         * genconditions.c (main): Likewise.
10219         * genconfig.c (main): Likewise.
10220         * genconstants.c (main): Likewise.
10221         * genemit.c (main): Likewise.
10222         * genextract.c (main): Likewise.
10223         * genflags.c (main): Likewise.
10224         * genopinit.c (main): Likewise.
10225         * genoutput.c (main): Likewise.
10226         * genpeep.c (main): Likewise.
10227         * genrecog.c (main): Likewise.
10228         * genpreds.c (main): Likewise.
10229         * gensupport.h (in_fname): Move to read-md.h.
10230         (init_md_reader_args_cb): Rename to...
10231         (init_rtx_reader_args_cb): ...this and return a bool.
10232         (init_md_reader_args): Rename to...
10233         (init_rtx_reader_args): ...this and return a bool.
10234         (include_callback): Move to read-md.h.
10235         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
10236         (file_name_list, first_dir_md_include): Move to read-md.c
10237         (first_bracket_include): Delete unused variable.
10238         (last_dir_md_include): Move to read-md.c.
10239         (process_include): Delete, moving code to read-md.c:handle_include.
10240         (process_rtx): Don't handle INCLUDE.
10241         (save_string): Delete.
10242         (rtx_handle_directive): New function.
10243         (init_md_reader_args_cb): Rename to...
10244         (init_rtx_reader_args_cb): ...this and return a boolean success value.
10245         Use read_md_args.
10246         (init_md_reader_args): Rename to...
10247         (init_rtx_reader_args): ...this and return a boolean success value.
10248         * rtl.def (INCLUDE): Delete.
10249         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
10250         argument.
10251         * read-rtl.c (read_conditions): Don't gobble ')' here.
10252         (read_mapping): Likewise.
10253         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
10254         Handle top-level non-rtx constructs here rather than in read_rtx_1.
10255         Store the whole queue in *X.  Remove call to init_md_reader.
10256         (read_rtx_1): Rename to...
10257         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
10258         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
10259         here.
10260         (read_nested_rtx): New function.  Handle (nil) here rather than
10261         in read_rtx_code.
10262         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
10263         gobble ')' here.
10264         * read-md.h (directive_handler_t): New type.
10265         (in_fname, include_callback): Moved from read-md.h.
10266         (read_constants, init_md_reader): Delete.
10267         (read_md_files): Declare.
10268         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
10269         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
10270         from gensupport.c.
10271         (read_constants): Rename to...
10272         (handle_constants): ...this.  Don't gobble ')' here.
10273         (handle_include, handle_file, handle_toplevel_file)
10274         (parse_include): New functions, mostly taken from gensupport.c.
10275         (init_md_reader): Subsume into...
10276         (read_md_files): ...this new function.
10277
10278 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10279
10280         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
10281         (unread_char): Decrement read_md_lineno after putting back '\n'.
10282         * read-md.c (fatal_with_file_and_line): Push back any characters
10283         that we decide not to add to the context.
10284         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
10285         fatal_expected_char in cases where '/' ends a line (for example).
10286         (read_name): Don't increment read_md_lineno here.
10287         (read_escape): Likewise.
10288         (read_quoted_string): Likewise.
10289         (read_braced_string): Likewise.
10290
10291 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10292
10293         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
10294         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
10295         * genconstants.c: Include read-md.h.
10296         * read-rtl.c (md_constants): Move to read-md.c.
10297         (md_name): Move to read-md.h.
10298         (initialize_iterators): Use leading_string_hash instead of def_hash
10299         and leading_string_eq_p instead of def_name_eq_p.
10300         (read_name): Move to read-md.c.
10301         (def_hash, def_name_eq_p): Delete.
10302         (read_constants, traverse_md_constants): Move to read-md.c.
10303         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
10304         * read-md.h: Include hashtab.h.
10305         (md_name): Moved from read-rtl.c.
10306         (md_constant): Moved from read-md.h.
10307         (leading_string_hash, leading_string_eq_p, read_name)
10308         (read_constants, traverse_md_constants): Declare.
10309         * read-md.c (md_constants): Moved from read-rtl.c.
10310         (leading_string_hash, leading_string_eq_p): New functions.
10311         (read_name, read_constants, traverse_md_constants): Moved from
10312         read-rtl.c.
10313
10314 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10315
10316         * read-rtl.c (md_name): New structure.
10317         (read_name): Take an md_name instead of a buffer pointer.
10318         Use the "string" field instead of strcpy when expanding constants.
10319         (read_constants): Remove the tmp_char argument.  Update the calls
10320         to read_name, using two local name buffers instead of the tmp_char
10321         argument.  Merge the constant-creation code.
10322         (read_conditions): Remove the tmp_char argument.  Update the calls
10323         to read_name, using a local name buffer instead of the tmp_char
10324         argument.
10325         (read_mapping): Replace tmp_char variable with a local name buffer.
10326         Update the calls to read_name.
10327         (read_rtx_1): Likewise.  Update the calls to read_constants and
10328         read_conditions.
10329
10330 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10331
10332         * Makefile.in (build/read-md.o): Depend on errors.h.
10333         * read-md.h (error_with_line): Declare.
10334         * read-md.c: Include errors.h.
10335         (message_with_line_1): New function, extracted from...
10336         (message_with_line): ...here.
10337         (error_with_line): New function.
10338         * genattrtab.c: If a call to message_with_line is followed by
10339         "have_error = 1;", replace both statements with a call to
10340         error_with_line.
10341         * genoutput.c: Likewise.
10342         * genpreds.c: Likewise.
10343         * genrecog.c: If a call to message_with_line is followed by
10344         "error_count++;", replace both statements with a call to
10345         error_with_line.
10346         (errorcount): Delete.
10347         (main): Don't check it.
10348         * gensupport.c: If a call to message_with_line is followed by
10349         "errors = 1;", replace both statements with a call to error_with_line.
10350         (errors): Delete.
10351         (process_define_cond_exec): Check have_error instead of errors.
10352         (init_md_reader_args_cb): Likewise.  Don't set errors.
10353
10354 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10355
10356         * read-md.h (read_md_file): Declare.
10357         (read_char, unread_char): New functions.
10358         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10359         (read_quoted_string, read_string): Remove FILE * argument.
10360         * read-md.c (read_md_file): New variable.
10361         (read_md_filename, read_md_lineno): Update comments and remove
10362         unnecessary initialization.
10363         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10364         (read_escape, read_quoted_string, read_braced_string, read_string):
10365         Remove FILE * argument.  Update calls accordingly, using read_char
10366         and unread_char instead of getc and ungetc.
10367         * rtl.h (read_rtx): Remove FILE * argument.
10368         * read-rtl.c (iterator_group): Remove FILE * argument from
10369         "find_builtin".
10370         (iterator_traverse_data): Remove "infile" field.
10371         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
10372         (add_mapping, read_name, read_constants, read_conditions)
10373         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
10374         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
10375         Remove file arguments from all calls, using read_char and unread_char
10376         instead of getc and ungetc.
10377         * gensupport.c (process_include): Preserve read_md_file around
10378         the include.  Set read_md_file to the handle of the included file.
10379         Update call to read_rtx.
10380         (init_md_reader_args_cb): Set read_md_file to the handle of the file
10381         and remove local FILE *.  Update calls to read_rtx.
10382
10383 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10384
10385         * read-md.h (read_rtx_lineno): Rename to...
10386         (read_md_lineno): ...this.
10387         (read_rtx_filename): Rename to...
10388         (read_md_filename): ...this.
10389         (copy_rtx_ptr_loc): Rename to...
10390         (copy_md_ptr_loc): ...this.
10391         (print_rtx_ptr_loc): Rename to...
10392         (print_md_ptr_loc): ...this.
10393         * read-md.c: Likewise.  Update references after renaming.
10394         (string_obstack): Replace RTL with MD in comment.
10395         (set_rtx_ptr_loc): Rename to...
10396         (set_md_ptr_loc): ...this.
10397         (get_rtx_ptr_loc): Rename to...
10398         (get_md_ptr_loc): ...this.
10399         * genconditions.c: Update references after renaming.
10400         * genemit.c: Likewise.
10401         * genoutput.c: Likewise.
10402         * genpreds.c: Likewise.
10403         * gensupport.c: Likewise.
10404         * read-rtl.c: Likewise.
10405
10406 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10407
10408         * Makefile.in (READ_MD_H): New variable.
10409         (BUILD_RTL): Add build/read-md.o.
10410         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
10411         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
10412         (build/genattrtab.o, build/genconditions.o build/genemit.o)
10413         (build/genextract.o, build/genflags.o, build/genoutput.o)
10414         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
10415         (build/read-md.o): New rule.
10416         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
10417         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
10418         * coretypes.h: ...here.
10419         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
10420         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
10421         * genattr.c: Include read-md.h.
10422         * genattrtab.c: Likewise.
10423         * genconditions.c: Likewise.
10424         * genemit.c: Likewise.
10425         * genextract.c: Likewise.
10426         * genflags.c: Likewise.
10427         * genoutput.c: Likewise.
10428         * genpreds.c: Likewise.
10429         * genrecog.c: Likewise.
10430         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
10431         (join_c_conditions, print_c_condition, read_rtx_filename)
10432         (read_rtx_lineno): Move to read-md.h.
10433         * read-rtl.c: Include read-md.h.
10434         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
10435         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
10436         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
10437         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
10438         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
10439         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
10440         (read_braced_string, read_string): Move to read-md.c.
10441         (read_rtx): Move some initialization to init_md_reader and call
10442         init_md_reader here.
10443         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
10444         Move to read-md.h.
10445         * gensupport.c: Include read-md.h.
10446         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
10447         * read-md.h, read-md.c: New files.
10448
10449 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
10450
10451         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10452         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10453         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
10454         * config/moxie/moxie.c (moxie_function_value): Make static.
10455         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
10456         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10457
10458 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10459
10460         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
10461         * dbgcnt.def (tree_sra): New counter.
10462         * tree-sra.c: Include dbgcnt.h.
10463         (gate_intra_sra): Check tree_sra debug counter.
10464
10465 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10466
10467         PR tree-optimization/44258
10468         * tree-sra.c (build_access_subtree): Return false iff there is a
10469         partial overlap.
10470         (build_access_trees): Likewise.
10471         (analyze_all_variable_accesses): Disqualify candidates if
10472         build_access_trees returns true for them.
10473
10474 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
10475
10476         PR debug/41371
10477         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
10478         tail-recurse into canonical node.  Fast-forward over
10479         non-canonical VALUEs.
10480
10481 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
10482
10483         PR boostrap/44470
10484         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
10485         (*addsi_1_zext) <TYPE_LEA>: Likewise.
10486         (add lea splitter): Likewise.
10487         (add_zext lea splitter): Likewise.
10488
10489 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
10490
10491         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
10492
10493 2010-06-10  Jan Hubicka  <jh@suse.cz>
10494
10495         * df-problems.c (df_live_problem_data): Add live_bitmaps.
10496         (df_live_alloc): Initialize problem data and live_osbtacks.
10497         (df_live_finalize): Remove obstack, problem data; do not
10498         clear all bitmaps.
10499         (df_live_top_dump, df_live_bottom_dump): Do not dump old
10500         data when not allocated.
10501         (df_live_verify_solution_start): Do not allocate problem data.
10502         (df_live_verify_solution_end): Check if out is allocated.
10503         (struct df_md_problem_data): New structure.
10504         (df_md_alloc): Allocate problem data.
10505         (df_md_free): Free problem data; do not clear bitmaps.
10506
10507 2010-06-10  Jan Beulich  <jbeulich@novell.com>
10508
10509         PR bootstrap/37304
10510         * configure.ac: Replace $() with ${} when intending to expand
10511         variables rather than invoking commands.
10512         * configure: Re-generate.
10513
10514 2010-06-10  Jan Hubicka  <jh@suse.cz>
10515
10516         PR rtl-optimization/44460
10517         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10518         TYPE_NEEDS_CONSTRUCTING sanity check.
10519
10520 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10521
10522         * doc/include/fdl.texi: Move to GFDL version 1.3.
10523
10524         * doc/cpp.texi: Move to GFDL version 1.3.
10525         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
10526         * doc/gccint.texi: Move to GFDL version 1.3.
10527         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
10528         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
10529         * doc/invoke.texi: Move to GFDL version 1.3.
10530
10531 2010-06-09  Jan Hubicka  <jh@suse.cz>
10532
10533         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
10534         Break out from ...
10535         (propagate) ... here; swap the order.
10536
10537 2010-06-09  Jan Hubicka  <jh@suse.cz>
10538
10539         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
10540         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
10541         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
10542         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
10543
10544 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10545
10546         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
10547         Do not the gather memory reference in the outer loop if the step
10548         is not a constant.
10549
10550 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10551
10552         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
10553         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
10554         8 to 4.  Minor change of the related comments.
10555
10556 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10557
10558         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
10559         the scev analysis when the variable is not used outside the loop
10560         in a close phi node: call compute_overall_effect_of_inner_loop.
10561
10562 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10563
10564         * graphite-sese-to-poly.c (single_pred_cond): Renamed
10565         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
10566         (build_sese_conditions_before): Renamed call to single_pred_cond.
10567         (build_sese_conditions_after): Same.
10568
10569 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10570
10571         * graphite-poly.h: Fix comments and indentation.
10572         * graphite-sese-to-poly.c: Same.
10573         (build_sese_conditions_before): Compute stmt and gbb only when needed.
10574         * tree-chrec.c: Fix comments and indentation.
10575         (tree-ssa-loop-niter.c): Same.
10576
10577 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10578
10579         PR rtl-optimization/42461
10580         * dce.c (deletable_insn_p): Return true for const or pure calls again.
10581         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
10582
10583 2010-06-09  Jan Hubicka  <jh@suse.cz>
10584
10585         * bitmap.c (bitmap_and): Walk array forward.
10586         (bitmap_and_compl_into): Likewise.
10587         (bitmap_xor): Likewise.
10588         (bitmap_xor_into):  Likewise.
10589         (bitmap_equal_p): Likewise.
10590         (bitmap_intersect_p): Likewise.
10591         (bitmap_intersect_compl_p): Likewise.
10592         (bitmap_ior_and_into): Likewise.
10593         (bitmap_elt_copy): Likewise.
10594         (bitmap_and_compl): Likewise.
10595         (bitmap_elt_ior): Likewise.
10596
10597 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
10598
10599         * opts-common.c (prune_options): Ensure replacement argv array
10600         is correctly terminated by a NULL entry.
10601
10602 2010-06-09  Jan Hubicka  <jh@suse.cz>
10603
10604         * cgraph.h (varpool_first_static_initializer,
10605         varpool_next_static_initializer): Make checking only when
10606         checking enabled.
10607         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
10608         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
10609         gcc_assert to gcc_checking_assert.
10610         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
10611         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
10612         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
10613         op_iter_init_phiuse, op_iter_init_phidef,
10614         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
10615         gcc_checking_assert.
10616         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
10617         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
10618         partition_is_global, live_on_entry, live_on_exit,
10619         live_merge_and_clear): Likewise.
10620         * system.h (gcc_checking_assert): New macro.
10621         * gimple.h (set_bb_seq): Use gcc_checking_assert.
10622
10623 2010-06-09  Jason Merrill  <jason@redhat.com>
10624
10625         * Makefile.in (TAGS): Collect tags info from c-family.
10626
10627 2010-06-09  Jan Hubicka  <jh@suse.cz>
10628
10629         * gimple.h (gcc_gimple_checking_assert): New macro.
10630         (gimple_set_def_ops, gimple_set_use_ops,
10631         gimple_set_vuse, gimple_set_vdef,
10632         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10633         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10634         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10635         gimple_asm_output_op, gimple_asm_output_op_ptr,
10636         gimple_asm_set_output_op, gimple_asm_clobber_op,
10637         gimple_asm_set_clobber_op, gimple_asm_label_op,
10638         gimple_asm_set_label_op, gimple_try_set_kind,
10639         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10640         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10641         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10642         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10643         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10644         gimple_omp_for_set_initial, gimple_omp_for_final,
10645         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10646         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10647         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10648         conditional with ENABLE_GIMPLE_CHECKING.
10649         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10650
10651 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
10652
10653         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10654         (get_computation_cost_at): Use it.
10655         (determine_use_iv_cost_condition): Likewise.
10656         (determine_iv_cost): Likewise.
10657
10658 2010-06-09  Richard Guenther  <rguenther@suse.de>
10659
10660         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10661         replace constants.
10662
10663 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
10664
10665         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10666
10667 2010-06-09  Martin Jambor  <mjambor@suse.cz>
10668
10669         PR tree-optimization/44423
10670         * tree-sra.c (dump_access): Dump also grp_assignment_read.
10671         (analyze_access_subtree): Pass negative allow_replacements to children
10672         if the current type is scalar.
10673
10674 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10675
10676         PR testsuite/42843
10677         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10678         * doc/plugins.texi (Plugin license check): Update information
10679         on type of plugin_is_GPL_compatible.
10680         * Makefile.in (PLUGINCC): Define as $(COMPILER).
10681         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10682
10683 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10684
10685         * config/arm/arm.c (thumb2_reorg): New function.
10686         (arm_reorg): Call it.
10687         * config/arm/thumb2.md (define_peephole2 for flag clobbering
10688         arithmetic operations): Delete.
10689
10690 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
10691
10692         PR target/44067
10693         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10694         e500v2 target.
10695
10696 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10697
10698         PR plugins/44459
10699         * gcc-plugin.h: Encapsulate all declarations in extern "C".
10700
10701 2010-06-08  Jan Hubicka  <jh@suse.cz>
10702
10703         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10704         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10705
10706 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
10707
10708         PR tree-optimization/39874
10709         PR middle-end/28685
10710         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10711         Declare.
10712         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10713         same_bool_result_p): New.
10714         (and_var_with_comparison, and_var_with_comparison_1,
10715         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10716         (or_var_with_comparison, or_var_with_comparison_1,
10717         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10718         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10719         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10720         of combine_comparisons.
10721         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10722
10723 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
10724
10725         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10726         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10727         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10728         pdp11_function_value_regno_p): New functions.
10729         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10730         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10731
10732 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
10733
10734         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10735         Thumb-2 in the MINUS case.
10736
10737 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10738
10739         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10740
10741         * doc/gty.texi (GTY Options): Document typed GC allocation and
10742         variable_size GTY option.
10743
10744         * ggc-internal.h: New.
10745
10746         * ggc.h: Update copyright year.
10747         (digit_string): Move to stringpool.c.
10748         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10749         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10750         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10751         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10752         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10753         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10754         (ggc_force_collect, ggc_get_size, ggc_statistics)
10755         (ggc_print_common_statistics): Move to ggc-internal.h.
10756         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10757         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10758         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10759         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10760         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10761         (ggc_alloc_zone_pass_stat): Remove.
10762         (ggc_internal_alloc_stat, ggc_internal_alloc)
10763         (ggc_internal_cleared_alloc_stat): New.
10764         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10765         (ggc_internal_vec_alloc_stat)
10766         (ggc_internal_cleared_vec_alloc_stat)
10767         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10768         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10769         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10770         (ggc_cleared_alloc_ptr_array_two_args): New.
10771         (htab_create_ggc, splay_tree_new_ggc): Redefine.
10772         (ggc_splay_alloc): Change the type of the first argument to
10773         enum gt_types_enum.
10774         (ggc_alloc_string): Make macro.
10775         (ggc_alloc_string_stat): New.
10776         (ggc_strdup): Redefine.
10777         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10778         (ggc_alloc_rtvec_sized): New.
10779         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10780         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10781         (ggc_internal_cleared_alloc_zone_stat)
10782         (ggc_internal_zone_alloc_stat)
10783         (ggc_internal_zone_cleared_alloc_stat)
10784         (ggc_internal_zone_vec_alloc_stat)
10785         (ggc_alloc_zone_rtx_def_stat)
10786         (ggc_alloc_zone_tree_node_stat)
10787         (ggc_alloc_zone_cleared_tree_node_stat)
10788         (ggc_alloc_cleared_gimple_statement_d_stat): New.
10789
10790         * ggc-common.c: Include ggc-internal.h.
10791         (ggc_internal_cleared_alloc_stat): Rename from
10792         ggc_alloc_cleared_stat.
10793         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10794         (ggc_calloc): Remove.
10795         (ggc_cleared_alloc_htab_ignore_args): New.
10796         (ggc_cleared_alloc_ptr_array_two_args): New.
10797         (ggc_splay_alloc): Add obj_type parameter.
10798         (init_ggc_heuristics): Formatting fixes.
10799
10800         * ggc-none.c: Update copyright year.
10801         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10802         (ggc_alloc_cleared_stat): Rename to
10803         ggc_internal_cleared_alloc_stat.
10804         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10805
10806         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10807         Remove references to ggc_alloc in comments.
10808         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10809         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10810         (new_ggc_zone, destroy_ggc_zone): Remove.
10811         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10812
10813         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10814         ggc_alloc in comments.
10815         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10816         (ggc_internal_alloc_zone_pass_stat): New.
10817         (ggc_internal_cleared_alloc_zone_stat): New.
10818         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10819         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10820         (new_ggc_zone, destroy_ggc_zone): Remove.
10821
10822         * stringpool.c: Update copyright year.  Include ggc-internal.h
10823         (digit_vector): Make static.
10824         (digit_string): Moved from ggc.h.
10825         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10826         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10827
10828         * Makefile.in (GGC_INTERNAL_H): New.
10829         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10830         $(GGC_INTERNAL_H) to dependencies.
10831
10832         * gentype.c: Update copyright year.
10833         (walk_type): Accept variable_size GTY option.
10834         (USED_BY_TYPED_GC_P): New macro.
10835         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10836         whitespace at the end of strings.
10837         (get_type_specifier, variable_size_p): New functions.
10838         (alloc_quantity, alloc_zone): New enums.
10839         (write_typed_alloc_def): New function.
10840         (write_typed_struct_alloc_def): Likewise.
10841         (write_typed_typed_typedef_alloc_def): Likewise.
10842         (write_typed_alloc_defns): Likewise.
10843         (output_typename, write_splay_tree_allocator_def): Likewise.
10844         (write_splay_tree_allocators): Likewise.
10845         (main): Call write_typed_alloc_defns and
10846         write_splay_tree_allocators.
10847
10848         * lto-streamer.h (lto_file_decl_data_ptr): New.
10849
10850         * passes.c (order): Define using cgraph_node_ptr.
10851
10852         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10853         ht_identifier_ptr.
10854
10855         * gimple.h (union gimple_statement_d): Likewise.
10856
10857         * rtl.h (struct rtx_def): Likewise.
10858         (struct rtvec_def): Likewise.
10859
10860         * tree.h (union tree_node): Likewise.
10861
10862         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10863
10864         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10865
10866         * tree-scalar-evolution.c (scev_initialize): Likewise.
10867
10868         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10869
10870         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10871
10872         * omp-low.c (lower_omp_critical): Likewise.
10873
10874         * bitmap.h (struct bitmap_head_def): Update comment to not
10875         reference ggc_alloc.
10876
10877         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10878
10879         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10880
10881         * ipa-prop.c (duplicate_ggc_array): Rename to
10882         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10883         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10884
10885         * gimple.c (gimple_alloc_stat): Use
10886         ggc_alloc_cleared_gimple_statement_d_stat.
10887
10888         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10889
10890         * tree.c (make_node_stat): Use
10891         ggc_alloc_zone_cleared_tree_node_stat.
10892         (make_tree_vec_stat): Likewise.
10893         (build_vl_exp_stat): Likewise.
10894         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10895         (make_tree_binfo_stat): Likewise.
10896         (tree_cons_stat): Likewise.
10897
10898         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10899         (shallow_copy_rtx_stat): Likewise.
10900         (make_node_stat): Likewise.
10901
10902         * lto-symtab.c: Fix comment.
10903
10904         * tree-cfg.c (create_bb): Update comment to not reference
10905         ggc_alloc_cleared.
10906         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10907
10908         * varpool.c (varpool_node): Use typed GC allocation.
10909         (varpool_extra_name_alias): Likewise.
10910
10911         * varasm.c (emutls_decl): Likewise.
10912         (get_unnamed_section): Likewise.
10913         (get_noswitch_section): Likewise.
10914         (get_section): Likewise.
10915         (get_block_for_section): Likewise.
10916         (build_constant_desc): Likewise.
10917         (create_constant_pool): Likewise.
10918         (force_const_mem): Likewise.
10919
10920         * tree.c (build_vl_exp_stat): Likewise.
10921         (build_real): Likewise.
10922         (build_string): Likewise.
10923         (decl_debug_expr_insert): Likewise.
10924         (decl_value_expr_insert): Likewise.
10925         (type_hash_add): Likewise.
10926         (build_omp_clause): Likewise.
10927
10928         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10929
10930         * tree-ssa.c (init_tree_ssa): Likewise.
10931
10932         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10933
10934         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10935
10936         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10937
10938         * tree-ssa-alias.c (get_ptr_info): Likewise.
10939
10940         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10941
10942         * tree-phinodes.c (allocate_phi_node): Likewise.
10943
10944         * tree-iterator.c (tsi_link_before): Likewise.
10945         (tsi_link_after): Likewise.
10946
10947         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10948
10949         * tree-dfa.c (create_var_ann): Likewise.
10950
10951         * tree-cfg.c (create_bb): Likewise.
10952
10953         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10954         (general_init): Likewise.
10955
10956         * stringpool.c (stringpool_ggc_alloc): Likewise.
10957         (gt_pch_save_stringpool): Likewise.
10958
10959         * sese.c (if_region_set_false_region): Likewise.
10960
10961         * passes.c (do_per_function_toporder): Likewise.
10962
10963         * optabs.c (set_optab_libfunc): Likewise.
10964         (set_conv_libfunc): Likewise.
10965
10966         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10967
10968         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10969         (input_eh_region): Likewise.
10970         (input_eh_lp): Likewise.
10971         (make_new_block): Likewise.
10972         (unpack_ts_real_cst_value_fields): Likewise.
10973
10974         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10975
10976         * lto-cgraph.c (input_node_opt_summary): Likewise.
10977
10978         * loop-init.c (loop_optimizer_init): Likewise.
10979
10980         * lambda.h (lambda_vector_new): Likewise.
10981
10982         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10983
10984         * ira.c (update_equiv_regs): Likewise.
10985
10986         * ipa.c (cgraph_node_set_new): Likewise.
10987         (cgraph_node_set_add): Likewise.
10988         (varpool_node_set_new): Likewise.
10989         (varpool_node_set_add): Likewise.
10990
10991         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10992         (duplicate_ipa_jump_func_array): Likewise.
10993         (ipa_read_node_info): Likewise.
10994
10995         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10996
10997         * integrate.c (get_hard_reg_initial_val): Likewise.
10998
10999         * gimple.c (gimple_alloc_stat): Likewise.
11000         (gimple_build_omp_for): Likewise.
11001         (gimple_seq_alloc): Likewise.
11002         (gimple_copy): Likewise.
11003
11004         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
11005         (gsi_insert_after_without_update): Likewise.
11006
11007         * function.c (add_frame_space): Likewise.
11008         (insert_temp_slot_address): Likewise.
11009         (assign_stack_temp_for_type): Likewise.
11010         (allocate_struct_function): Likewise.
11011         (types_used_by_var_decl_insert): Likewise.
11012
11013         * except.c (init_eh_for_function): Likewise.
11014         (gen_eh_region): Likewise.
11015         (gen_eh_region_catch): Likewise.
11016         (gen_eh_landing_pad): Likewise.
11017         (add_call_site): Likewise.
11018
11019         * emit-rtl.c (get_mem_attrs): Likewise.
11020         (get_reg_attrs): Likewise.
11021         (start_sequence): Likewise.
11022         (init_emit): Likewise.
11023
11024         * dwarf2out.c (new_cfi): Likewise.
11025         (queue_reg_save): Likewise.
11026         (dwarf2out_frame_init): Likewise.
11027         (new_loc_descr): Likewise.
11028         (find_AT_string): Likewise.
11029         (new_die): Likewise.
11030         (add_var_loc_to_decl): Likewise.
11031         (clone_die): Likewise.
11032         (clone_as_declaration): Likewise.
11033         (break_out_comdat_types): Likewise.
11034         (new_loc_list): Likewise.
11035         (loc_descriptor): Likewise.
11036         (add_loc_descr_to_each): Likewise.
11037         (add_const_value_attribute): Likewise.
11038         (tree_add_const_value_attribute): Likewise.
11039         (add_comp_dir_attribute): Likewise.
11040         (add_name_and_src_coords_attributes): Likewise.
11041         (lookup_filename): Likewise.
11042         (store_vcall_insn): Likewise.
11043         (dwarf2out_init): Likewise.
11044
11045         * dbxout.c (dbxout_init): Likewise.
11046
11047         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11048
11049         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11050
11051         * config/score/score7.c (score7_output_external): Likewise.
11052
11053         * config/score/score3.c (score3_output_external): Likewise.
11054
11055         * config/s390/s390.c (s390_init_machine_status): Likewise.
11056
11057         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
11058         (rs6000_init_machine_status): Likewise.
11059         (output_toc): Likewise.
11060
11061         * config/pa/pa.c (pa_init_machine_status): Likewise.
11062         (get_deferred_plabel): Likewise.
11063
11064         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
11065
11066         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
11067
11068         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
11069
11070         * config/mep/mep.c (mep_init_machine_status): Likewise.
11071         (mep_note_pragma_flag): Likewise.
11072
11073         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
11074
11075         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
11076
11077         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
11078
11079         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
11080         (i386_pe_maybe_record_exported_symbol): Likewise.
11081
11082         * config/i386/i386.c (get_dllimport_decl): Likewise.
11083         (ix86_init_machine_status): Likewise.
11084         (assign_386_stack_local): Likewise.
11085
11086         * config/frv/frv.c (frv_init_machine_status): Likewise.
11087
11088         * config/darwin.c (machopic_indirection_name): Likewise.
11089
11090         * config/cris/cris.c (cris_init_machine_status): Likewise.
11091
11092         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
11093
11094         * config/avr/avr.c (avr_init_machine_status): Likewise.
11095
11096         * config/arm/arm.c (arm_init_machine_status): Likewise.
11097
11098         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
11099         (alpha_need_linkage): Likewise.
11100         (alpha_use_linkage): Likewise.
11101
11102         * cgraph.c (cgraph_allocate_node): Likewise.
11103         (cgraph_create_edge_1): Likewise.
11104         (cgraph_create_indirect_edge): Likewise.
11105         (cgraph_add_asm_node): Likewise.
11106
11107         * cfgrtl.c (init_rtl_bb_info): Likewise.
11108
11109         * cfgloop.c (alloc_loop): Likewise.
11110         (rescan_loop_exit): Likewise.
11111
11112         * cfg.c (init_flow): Likewise.
11113         (alloc_block): Likewise.
11114         (unchecked_make_edge): Likewise.
11115
11116         * c-parser.c (c_parse_init): Likewise.
11117         (c_parse_file): Likewise.
11118
11119         * c-decl.c (bind): Likewise.
11120         (record_inline_static): Likewise.
11121         (push_scope): Likewise.
11122         (make_label): Likewise.
11123         (lookup_label_for_goto): Likewise.
11124         (finish_struct): Likewise.
11125         (finish_enum): Likewise.
11126         (c_push_function_context): Likewise.
11127
11128         * bitmap.c (bitmap_element_allocate): Likewise.
11129         (bitmap_gc_alloc_stat): Likewise.
11130
11131         * alias.c (record_alias_subset): Likewise.
11132         (init_alias_analysis): Likewise.
11133
11134 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
11135
11136         * fold-const.c (fold_comparison): Remove redundant parenthesis.
11137         * tree-inline.c (expand_call_inline): Pass translated return value of
11138         cgraph_inline_failed_string to diagnostic function.
11139
11140 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
11141             Shujing Zhao  <pearly.zhao@oracle.com>
11142
11143         PR c/37724
11144         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
11145         implicit bad conversions is initialization.
11146         (error_init): Use gmsgid instead of msgid for argument name and change
11147         the call for error.
11148         (pedwarn_init): Use gmsgid instead of msgid for argument name and
11149         change the call for pedwarn.
11150         (warning_init): Use gmsgid instead of msgid for argument name and
11151         change the call for warning.
11152
11153 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
11154
11155         * config/mips/mips-protos.h (mips_print_operand): Delete.
11156         (mips_print_operand_address): Delete.
11157         * config/mips/mips.h (mips_print_operand_punct): Delete.
11158         (PRINT_OPERAND): Delete.
11159         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11160         (PRINT_OPERAND_ADDRESS): Delete.
11161         * config/mips/mips.c (mips_print_operand_punct): Make static.
11162         (mips_print_operand_address): Make static.
11163         (mips_print_operand): Make static.  Call
11164         mips_print_operand_punct_valid_p.
11165         (mips_print_operand_punct_valid_p): New function.
11166         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11167         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11168
11169 2010-06-07  Jan Hubicka  <jh@suse.cz>
11170
11171         PR middle-end/44454
11172         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
11173         are allocated.
11174
11175 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
11176
11177         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
11178         name of RECORD.
11179
11180 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11181
11182         * doc/sourcebuild.texi (Effective-Target Keywords, Other
11183         attributes): Document gas.
11184
11185 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
11186
11187         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
11188         <TYPE_LEA>: Split instruction.
11189         <default>: Remove alternative 2 handling.
11190         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
11191         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
11192         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
11193
11194         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
11195         (ashift_zext lea splitter): Use DImode for multiplication.
11196
11197         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
11198         to generate addition.
11199
11200 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
11201
11202         * common.opt (fira-verbose): Use Var.
11203         (fpcc-struct-return): Use Init instead of VarExists.
11204         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
11205         toplev.c.
11206         * flags.h (flag_signed_char, flag_short_enums,
11207         flag_pcc_struct_return, flag_ira_verbose,
11208         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
11209         * toplev.c (flag_detailed_statistics, flag_signed_char,
11210         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
11211         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
11212         * toplev.h (flag_crossjumping, flag_if_conversion,
11213         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
11214         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
11215         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
11216         flag_cprop_registers, time_report, flag_ira_loop_pressure,
11217         flag_ira_coalesce, flag_ira_move_spills,
11218         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
11219
11220 2010-06-07  Jan Hubicka  <jh@suse.cz>
11221
11222         * df-core.c (df_analyze_problem): Do verification after allocation.
11223
11224         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
11225         (df_lr_alloc): Initialize problem data; move bitmaps to
11226         lr_bitmaps obstack.
11227         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
11228         (df_lr_verify_solution_start): Do not initialize problem data;
11229         allocate bitmaps in lr_bitmaps.
11230         (df_lr_verify_solution_end): Do not free problem data.
11231
11232 2010-06-07  Jan Hubicka  <jh@suse.cz>
11233
11234         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
11235         if caller is noreturn.
11236         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
11237         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
11238         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
11239         * ipa-pure-const.c (check_decl): Add IPA parameter.
11240         (state_from_flags): New function.
11241         (better_state, worse_state): New functions.
11242         (check_call): When in IPA mode, do not care about callees.
11243         (check_load, check_store): Update.
11244         (check_ipa_load, check_ipa_store): New.
11245         (check_stmt): When in IPA mode, use IPA checkers.
11246         (analyze_function): Use state_from_flags.
11247         (propagate): Check indirect edges and references.
11248
11249 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
11250
11251         PR rtl-optimization/44404
11252         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
11253         of count_occurrences to see if it's safe to modify mem_insn.
11254
11255 2010-06-07  Richard Guenther  <rguenther@suse.de>
11256
11257         * gimplify.c (gimplify_cleanup_point_expr): For empty body
11258         and EH-only cleanup drop the cleanup instead of inserting it
11259         unconditionally.
11260
11261 2010-06-07  Ira Rosen  <irar@il.ibm.com>
11262
11263         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
11264         documentation.
11265         * targhooks.c (default_builtin_vectorization_cost): New function.
11266         * targhooks.h (default_builtin_vectorization_cost): Declare.
11267         * target.h (enum vect_cost_for_stmt): Define.
11268         (builtin_vectorization_cost): Change argument and comment.
11269         * tree-vectorizer.h: Remove cost model macros.
11270         * tree-vect-loop.c: Include target.h.
11271         (vect_get_cost): New function.
11272         (vect_estimate_min_profitable_iters): Replace cost model macros with
11273         calls to vect_get_cost.
11274         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
11275         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
11276         default implementation.
11277         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
11278         calls to target hook builtin_vectorization_cost.
11279         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
11280         Likewise.
11281         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
11282         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
11283         implementation to return costs.
11284         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
11285         * config/spu/spu.h: Remove vectorizer cost model macros.
11286         * config/i386/i386.h: Likewise.
11287         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
11288         a call to target hook builtin_vectorization_cost.
11289
11290 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
11291
11292         PR target/44319
11293         * config/i386/i386.c (override_options): Turn zee pass on for level 2
11294         and above and defer till target is known.
11295         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
11296         turn off otherwise.
11297
11298 2010-05-25  Jan Hubicka  <jh@suse.cz>
11299
11300         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
11301         (df_compact_blocks): Likewise.
11302         * df.h (struct df): Turn hardware_regs_used,
11303         regular_block_artificial_uses, eh_block_artificial_uses,
11304         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
11305         bitmap_head.
11306         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
11307         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
11308         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
11309         df_scan_blocks, df_insn_delete, df_insn_rescan,
11310         df_insn_rescan_debug_internal, df_insn_rescan_all,
11311         df_process_deferred_rescans, df_process_deferred_rescans,
11312         df_notes_rescan, df_get_call_refs, df_get_call_refs,
11313         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
11314         df_record_entry_block_defs, df_record_exit_block_uses,
11315         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
11316         df_scan_verify): Update.
11317
11318 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11319
11320         PR c++/44188
11321         * c-common.c (is_typedef_decl): Move this definition ...
11322         * tree.c (is_typedef_decl): ... here.
11323         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11324         * c-common.h (is_typedef_decl): Move this declaration ...
11325         * tree.h (is_typedef_decl): ... here.
11326         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11327         * dwarf2out.c (is_naming_typedef_decl): New function.
11328         (gen_tagged_type_die): Split out of ...
11329         (gen_type_die_with_usage): ... this function. When an anonymous
11330         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11331         is emitted for the typedef.
11332         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11333         anonymous tagged types.
11334
11335 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11336
11337         PR c/20000
11338         * c-decl.c (grokdeclarator): Delete warning.
11339
11340 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11341
11342         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
11343         newly built CALL_EXPR.
11344         * tree-profile.c (tree_profiling): Don't profile functions produced
11345         for built-in stuff.
11346
11347 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
11348
11349         PR bootstrap/44427
11350         PR bootstrap/44428
11351         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
11352         endianness-independent.
11353
11354 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
11355
11356         * c-common.c: Move to c-family/.
11357         * c-common.def: Likewise.
11358         * c-common.h: Likewise.
11359         * c-cppbuiltin.c: Likewise.
11360         * c-dump.c: Likewise.
11361         * c-format.c: Likewise.
11362         * c-format.h : Likewise.
11363         * c-gimplify.c: Likewise.
11364         * c-lex.c: Likewise.
11365         * c-omp.c: Likewise.
11366         * c.opt: Likewise.
11367         * c-opts.c: Likewise.
11368         * c-pch.c: Likewise.
11369         * c-ppoutput.c: Likewise.
11370         * c-pragma.c: Likewise.
11371         * c-pragma.h: Likewise.
11372         * c-pretty-print.c: Likewise.
11373         * c-pretty-print.h: Likewise.
11374         * c-semantics.c: Likewise.
11375         * stub-objc.c: Likewise.
11376
11377         * gengtype.c (get_file_langdir): Special-case files in c-family/.
11378         (get_output_file_with_visibility): Fix name for c-common.h.
11379         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
11380
11381         * c-tree.h: Update include path for moved files.
11382         * c-lang.c: Likewise.
11383         * c-lang.h: Likewise.
11384         * c-parser.c: Likewise.
11385         * c-convert.c: Likewise.
11386         * c-decl.c: Likewise.
11387         * c-objc-common.c: Likewise.
11388         * configure.ac: Make sure c-family/ exists in the build directory.
11389         * configure: Regenerate.
11390         * Makefile.in: Update paths for moved files.  Regroup files per
11391         location and update dependencies.  Move generated_files down after
11392         ALL_GTFILES_H.
11393
11394         * config/spu/spu-c.c: Update paths for moved files.
11395         * config/mep/mep-pragma.c: Likewise.
11396         * config/darwin-c.c: Likewise.
11397         * config/i386/msformat-c.c: Likewise.
11398         * config/i386/i386-c.c: Likewise.
11399         * config/avr/avr-c.c: Likewise.
11400         * config/sol2-c.c: Likewise.
11401         * config/ia64/ia64-c.c: Likewise.
11402         * config/rs6000/rs6000-c.c: Likewise.
11403         * config/arm/arm.c: Likewise.
11404         * config/arm/arm-c.c: Likewise.
11405         * config/h8300/h8300.c: Likewise.
11406         * config/v850/v850-c.c: Likewise.
11407
11408         * config/t-darwin: Fix dependencies for moved files.
11409         * config/t-sol2: Fix dependencies for moved files.
11410         * config/mep/t-mep: Fix dependencies for moved files.
11411         * config/ia64/t-ia64: Fix dependencies for moved files.
11412         * config/rs6000/t-rs6000: Fix dependencies for moved files.
11413         * config/v850/t-v850: Fix dependencies for moved files.
11414         * config/v850/t-v850e: Fix dependencies for moved files.
11415
11416         * config/m32c/m32c-pragma.c
11417
11418         * po/exgettext: Look in c-family/ also.
11419
11420 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11421
11422         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
11423         (mark_control_dependent_edges_necessary): Call it instead of marking
11424         the last statement manually.
11425         (propagate_necessity): Likewise.
11426
11427 2010-06-05  Jan Hubicka  <jh@suse.cz>
11428
11429         * basic-block.h (compute_dominance_frontiers): Updated.
11430         (compute_idf): Likewise.
11431
11432         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
11433         for dominance frontiers.
11434         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
11435         (insert_updated_phi_nodes_for): Likewise.
11436         (update_ssa): Likewise.
11437         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11438         (compute_dominance_frontiers): Likewise.
11439         (compute_idf): Likewise.
11440         * df-problems.c (df_md_local_compute): Likewise.
11441
11442 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
11443
11444         * target.h (struct gcc_target): Add memory_move_cost field.
11445         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
11446         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
11447         * targhooks.c (default_memory_move_cost): New function.
11448         * targhooks.h (default_memory_move_cost): Declare function.
11449         * reload.h (memory_move_cost): Declare.
11450         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11451         * reginfo.c (memory_move_cost): New function.
11452         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11453         * ira.h (ira_memory_move_cost): Update comment.
11454         * ira.c (ira_memory_move_cost): Update comment.
11455         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
11456         with memory_move_cost.
11457         * postreload.c (reload_cse_simplify_set): (Ditto.).
11458         * reload1.c (choose_reload_regs): (Ditto.).
11459         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
11460         (MEMORY_MOVE_COST):  Revise documentation.
11461
11462         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
11463         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
11464         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
11465         type of 'in' argument to bool.
11466         (TARGET_MEMORY_MOVE_COST): Define.
11467
11468 2010-06-05  Jan Hubicka  <jh@suse.cz>
11469
11470         * ipa-pure-const.c (propagate): Fix typo in handling of functions
11471         that cannot return.  Be more careful when merging the results with
11472         previously known ones.
11473
11474 2010-06-05  Matthias Klose  <doko@ubuntu.com>
11475
11476         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
11477         function to add the -iplugindir option.
11478         (find_plugindir_spec_function): Add new declaration and function.
11479         (static_spec_func): Use it for "find-plugindir".
11480
11481 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
11482
11483         PR c++/44361
11484         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
11485         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
11486         statement expression.
11487
11488 2010-06-05  Jan Hubicka  <jh@suse.cz>
11489
11490         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
11491         (df_rd_problem_data): Convert sparse_invalidated_by_call,
11492         dense_invalidated_by_call to bitmap head.
11493         (df_rd_alloc, df_rd_bb_local_compute_process_def,
11494         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
11495         df_rd_start_dump, df_lr_verify_transfer_functions,
11496         df_live_verify_transfer_functions, df_chain_create_bb,
11497         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
11498         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
11499         df_simulate_one_insn_forwards, df_md_alloc,
11500         df_md_bb_local_compute_process_def,
11501         df_md_bb_local_compute_process_def, df_md_local_compute,
11502         df_md_transfer_function df_md_free): Update.
11503
11504 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
11505
11506         PR c/44322
11507         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
11508         target type for ADDR_EXPR; require no changes to qualifiers except
11509         for function types.
11510         * c-tree.h (c_build_type_variant): Remove.
11511
11512 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11513
11514         * genautomata.c (get_excl_set): Do work per element, not per char.
11515         (check_presence_pattern_sets): Similar.
11516         (check_absence_pattern_sets): Similar.
11517
11518 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11519
11520         * genautomata.c (curr_state_pass_num): Delete.
11521         (min_issue_delay_pass_states): Delete.
11522         (min_issue_delay): Delete.
11523         (initiate_min_issue_delay_pass_states): Delete.
11524         (output_min_issue_delay_table): Compute min_issue_delay_vect
11525         using a breadth-first search variant.
11526         (output_tables): Don't call initiate_min_issue_delay_pass_states.
11527
11528 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11529
11530         PR boostrap/44421
11531         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
11532         (df_byte_lr_bb_local_compute): Likewise.
11533
11534 2010-06-03  Jason Merrill  <jason@redhat.com>
11535
11536         Implement noexcept operator (5.3.7)
11537         * c-common.c (c_common_reswords): Add noexcept.
11538         * c-common.h (enum rid): Add RID_NOEXCEPT.
11539
11540 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
11541
11542         * config/darwin-driver.c (darwin_default_min_version): Use
11543         GCC-specific formats in diagnostics.
11544         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
11545         diagnostics.
11546         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
11547         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
11548         eval_spec_function, handle_braces, process_brace_body, main,
11549         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
11550         getenv_spec_function, compare_version_strings,
11551         version_compare_spec_function): Use GCC-specific formats in
11552         diagnostics.
11553
11554 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11555
11556         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
11557         that operand 0 and operand 1 are equal.
11558         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
11559         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
11560         and operand 1 are equal.
11561         <default>: Ditto.  Remove ??? comment.
11562         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
11563         and operand 1 are equal.
11564         <default>: Ditto.  Remove ??? comment.
11565         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
11566         are equal.
11567         (*add<mode>_4) <default>: Ditto.
11568         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
11569
11570 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
11571
11572         * config/i386/i386-protos.h (ix86_print_operand): Declare.
11573         * config/i386/i386.c (ix86_print_operand): Make non-static.
11574         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
11575         * output.h (output_operand): Declare.
11576         * final.c (output_operand): Make non-static.
11577
11578 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
11579
11580         PR rtl-optimization/44013
11581         * sched-deps.c (add_dependence_list_and_free): Don't free lists
11582         when processing debug insns.
11583
11584         PR debug/41371
11585         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
11586         recursing.  Check that recursion is bounded.  Rename inner var
11587         to avoid hiding incoming argument.
11588
11589 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11590
11591         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
11592         operands[2] == 255.
11593         (*addqi_3): Ditto.
11594         (*addqi_4): Ditto.
11595         (*addqi_5): Ditto.
11596         (*addqi_ext_1_rex64): Ditto.
11597         (*addqi_ext_1): Ditto.
11598
11599         (*addqi_4): Check for incdec_operand in QImode.
11600
11601         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
11602         using SWI mode iterator.
11603         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
11604         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
11605         mode iterator.
11606         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
11607         using SWI mode iterator.
11608
11609 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11610
11611         PR c/25880
11612         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
11613         * c-format.c (gcc_diag_flag_specs): Add hash.
11614         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
11615         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
11616         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
11617         pp_c_cv_qualifiers. Handle qualifiers spelling here.
11618         (pp_c_type_qualifier_list): Call the function above.
11619         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
11620         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
11621         (WARN_FOR_QUALIFIERS): New macro.
11622         (convert_for_assignment): Use it.
11623
11624 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
11625
11626         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11627
11628 2010-06-04  Jan Hubicka  <jh@suse.cz>
11629
11630         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11631         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11632         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11633         DF_BYTE_LR_OUT): Update for embedded bitmaps.
11634         * fwprop.c (single_def_use_enter_block): Likewise.
11635         * ddg.c (create_ddg_dep_from_intra_loop_link,
11636         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11637         * loop-iv.c (latch_dominating_def): Likewise.
11638         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11639         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11640         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11641         df_rd_transfer_function, df_rd_top_dump,
11642         df_rd_bottom_dump): Update.
11643         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11644         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11645         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11646         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11647         df_lr_verify_solution_start, df_lr_verify_solution_end,
11648         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11649         df_live_free_bb_info, df_live_alloc, df_live_reset,
11650         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11651         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11652         df_live_verify_solution_start, df_live_verify_solution_end,
11653         df_live_verify_transfer_functions, df_chain_create_bb,
11654         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11655         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11656         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11657         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11658         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11659         df_byte_lr_transfer_function, df_byte_lr_top_dump,
11660         df_byte_lr_bottom_dump, df_create_unused_note,
11661         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11662         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11663         df_md_transfer_function, df_md_init, df_md_confluence_0,
11664         df_md_confluence_n,
11665         df_md_top_dump, df_md_bottom_dump): Update.
11666         (struct df_lr_problem_data): Embedd bitmap headers.
11667
11668 2010-06-04  Jan Hubicka  <jh@suse.cz>
11669
11670         * dce.c (dce_process_block): Do not re-scan already marked
11671         instructions.
11672
11673 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
11674
11675         PR rtl-optimization/39871
11676         PR rtl-optimization/40615
11677         PR rtl-optimization/42500
11678         PR rtl-optimization/42502
11679         * ira.c (init_reg_equiv_memory_loc: New function.
11680         (ira): Call it twice.
11681         * reload.h (calculate_elim_costs_all_insns): Declare.
11682         * ira-costs.c: Include "reload.h".
11683         (regno_equiv_gains): New static variable.
11684         (init_costs): Allocate it.
11685         (finish_costs): Free it.
11686         (ira_costs): Call calculate_elim_costs_all_insns.
11687         (find_costs_and_classes): Take estimated elimination costs
11688         into account.
11689         (ira_adjust_equiv_reg_cost): New function.
11690         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11691         * reload1.c (init_eliminable_invariants, free_reg_equiv,
11692         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11693         (elim_bb): New static variable.
11694         (reload): Move code out of here into init_eliminable_invariants and
11695         free_reg_equiv.  Call them.
11696         (calculate_elim_costs_all_insns): New function.
11697         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
11698         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
11699         but call note_reg_elim_costly if we turned a valid memory address
11700         into an invalid one.
11701         * Makefile.in (ira-costs.o): Depend on reload.h.
11702
11703 2010-06-04  Julian Brown  <julian@codesourcery.com>
11704
11705         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11706         for pool ranges.
11707
11708 2010-06-04  Richard Guenther  <rguenther@suse.de>
11709
11710         PR lto/41584
11711         * cgraph.h (struct varpool_node): Add lto_file_data field.
11712         * lto-cgraph.c (input_varpool_node): Initialize it.
11713
11714 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11715
11716         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11717         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11718         predicate in "type" attribute calculation.
11719         (*addsi_1_zext): Ditto.
11720         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11721         (*addsi_2_zext): Ditto.
11722         (*add<mode>_3): Ditto.
11723         (*addsi_3_zext): Ditto.
11724         (*add<mode>_5): Ditto.
11725
11726 2010-06-03  Jan Hubicka  <jh@suse.cz>
11727
11728         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11729         of bitmap_bit_p.
11730         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11731
11732 2010-06-03  Jan Hubicka  <jh@suse.cz>
11733
11734         * df-problems.c (df_create_unused_note, df_note_bb_compute):
11735         micro-optimize the checks when to add new note.
11736
11737 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
11738
11739         * final.c (output_asm_insn): Call
11740         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
11741         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
11742         (output_address): Call targetm.asm_out.print_operand_address.
11743         Update comments.
11744         * target.h (struct gcc_target): Add print_operand,
11745         print_operand_address, and print_operand_punct_valid_p fields.
11746         * targhooks.h (default_print_operand): Declare.
11747         (default_print_operand_address): Declare.
11748         (default_print_operand_punct_valid_p): Declare.
11749         * targhooks.c (default_print_operand): Define.
11750         (default_print_operand_address): Define.
11751         (default_print_operand_punct_valid_p): Define.
11752         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11753         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11754         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11755         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11756         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11757         * vmsdbgout.c (addr_const_to_string): Update comment.
11758         * config/i386/i386.c (print_operand): Rename to...
11759         (ix86_print_operand): ...this.  Make static.
11760         (print_operand_address): Rename to...
11761         (ix86_print_operand_address): ...this.  Make static.  Call
11762         ix86_print_operand instead of PRINT_OPERAND.
11763         (ix86_print_operand_punct_valid_p): New function.
11764         (TARGET_PRINT_OPERAND): Define.
11765         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11766         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11767         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11768         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11769         (PRINT_OPERAND): Delete.
11770         (PRINT_OPERAND_ADDRESS): Delete.
11771         * config/i386/i386-protos.h (print_operand): Delete prototype.
11772         (print_operand_address): Delete prototype.
11773
11774 2010-06-03  Richard Guenther  <rguenther@suse.de>
11775
11776         PR tree-optimization/44403
11777         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11778         Preserve pointer qualifiers.
11779         (vect_create_data_ref_ptr): Likewise.
11780
11781 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11782
11783         PR c++/44294
11784         * defaults.h (MAX_FIXED_MODE_SIZE): New.
11785
11786         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11787
11788 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
11789
11790         PR debug/44375
11791         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11792         return false if merging the bbs would lead to goto_locus
11793         location being lost from the IL.
11794
11795 2010-06-03  Jan Hubicka  <jh@suse.cz>
11796             Jakub Jelinek  <jakub@redhat.com>
11797
11798         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11799         set->regs[i] is NULL or has just one entry.
11800
11801 2010-06-03  Jan Hubicka  <jh@suse.cz>
11802
11803         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11804         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11805
11806 2010-06-03  Paul Brook  <paul@codesourcery.com>
11807
11808         * config/arm/arm.c (FL_TUNE): Define.
11809         (arm_default_cpu, arm_cpu_select): Remove.
11810         (all_cores): Populate core field.
11811         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11812         (arm_find_cpu): New function.
11813         (arm_handle_option): Lookup cpu/architecture names.
11814         (arm_override_options): Cleanup mcpu/march/mtune handling.
11815         (arm_file_start): Ditto.
11816
11817 2010-06-03  Alan Modra  <amodra@gmail.com>
11818
11819         PR target/44169
11820         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11821         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11822         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11823         (rs6000_emit_load_toc_table): Likewise.
11824
11825 2010-06-02  Jan Hubicka  <jh@suse.cz>
11826
11827         * passes.c (init_optimization_passes): Put ipa reference
11828         after ipa pure-const.
11829
11830 2010-06-02  Jan Hubicka  <jh@suse.cz>
11831
11832         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11833         calls_read_all and calls_write_all.
11834         (get_reference_optimization_summary): Fix formatting.
11835         (is_proper_for_analysis): Check that decl is not readonly.
11836         (propagate_bits): Check CONST/PURE/noreturn flags.
11837         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11838         (analyze_function): Ignore indirect edges.
11839         (copy_global_bitmap): For all module statics, do nothing.
11840         (generate_summary): Do not print calls_read_all/calls_write_all.
11841         (read_write_all_from_decl): Take node as argument; check
11842         cgraph_node_cannot_return.
11843         (propagate): Reorganize read_all/write_all computation;
11844         check indirect edges; check ecf flags; use all_module_statics
11845         in the results; do not free all_module_statics.
11846         (stream_out_bitmap): Handle all_module_statics.
11847         (ipa_reference_write_optimization_summary): Likewise; use
11848         varpool/cgraph encoders to get boundaries.
11849         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11850         use it when possible.
11851
11852 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11853
11854         PR target/44218
11855         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11856         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11857
11858         * doc/extend.texi (powerpc builtins): Document vec_recip,
11859         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11860
11861         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11862         (rs6000_emit_swrsqrt): Ditto.
11863         (rs6000_emit_swdivsf): Delete.
11864         (rs6000_emit_swdivdf): Ditto.
11865         (rs6000_emit_swrsqrtsf): Ditto.
11866
11867         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11868         describe the reciprocal estimate support for each type.
11869         (recip_options): Map -mrecip=<opt> into option bits.
11870         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11871         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11872         reciprocal estimate instructions.
11873         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11874         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11875         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11876         cost information if -mdebug=cost or -mdebug=reg.
11877         (rs6000_override_options): Set -mrecip-precision for power6, and
11878         power7 machines.  If -mvsx or -mdfp, enable various options that
11879         came in previous instruction set ISAs, unless the option was
11880         explicitly disabled by the command line option.  Parse
11881         -mrecip=<opt> options.
11882         (rs6000_builtin_vectorized_function): Add support for vectorizing
11883         the reciprocal estimate builtins and expansions.
11884         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11885         (bdesc_2arg): Add reciprocal estimate builtins.
11886         (bdesc_1arg): Add reciprocal square root estimate builtins.
11887         (rs6000_expand_builtin): Rewrite to use a switch statement,
11888         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11889         (rs6000_init_builtins): Create declarations for reciprocal
11890         estimate builtins.
11891         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11892         sized, prefer traditional floating point registers, if integer
11893         vector types, prefer altivec registers.  Don't actually look at
11894         the memory address any more.
11895         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11896         builtins.
11897         (rs6000_load_constant_and_splat): New helper function to load up
11898         the constant for reciprocal estimate instructions.
11899         (rs6000_emit_madd): New helper function for generating
11900         multiply/add type instructions, based on the current switches.
11901         (rs6000_emit_msub): Ditto.
11902         (rs6000_emit_mnsub): Ditto.
11903         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11904         replace a divide with a reciprocal estimate and fixup, adding
11905         support for machines with high precision and vectors.
11906         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11907         low precision machines.
11908         (rs6000_emit_swdiv): New common function to be called to replace a
11909         division with reciprocal estimate and fixup.
11910         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11911         for double and vector types.  Add support for high precision machines.
11912
11913         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11914         the reciprocal estimate instructions can be generated.
11915         (TARGET_FRE): Ditto.
11916         (TARGET_FRSQRTES): Ditto.
11917         (TARGET_FRSQRTE): Ditto.
11918         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11919
11920         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11921         square root estimate on vectors.
11922         (re<mode>2): New insn for reciprocal division estimate on vectors.
11923
11924         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11925         New builtin.
11926         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11927         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11928         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11929         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11930         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11931         (RS6000_BUILTIN_RSQRT): Ditto.
11932         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11933         floating point builtin.
11934
11935         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11936         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11937         __RECIP_PRECISION__ based on the command line switches.
11938         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11939
11940         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11941         replacing division instructions with reciprocal estimate and fixup.
11942         (-mrecip=<opt>): New option.
11943         (-mrecip-precision): Ditto.
11944
11945         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11946         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11947         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11948         precision scalar.
11949
11950         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11951         (UNSPEC_VREFP): Ditto.
11952         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11953         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11954         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11955         reciprocal estimate instructions to be generated.
11956         (altivec_vrefp): Ditto.
11957
11958         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11959         estimate support.
11960         (rreg): New mode attribute for reciprocal estimate support.
11961         (recip<mode>3): New insn for division using reciprocal estimate
11962         and fixup builtins.
11963         (divide define_split): New define_split to convert floating point
11964         division to use reciprocal estimate if the user used the
11965         appropriate options and the split is run when we can add new
11966         pseudo registers for the fixup.
11967         (rsqrt<mode>2): New insn for reciprocal square root support.
11968         (recipsf3): Move into recip<mode>3.
11969         (recipdf3): Ditto.
11970         (fres): Use TARGET_FRES.
11971         (rsqrtsf2): Move into rsqrt<mode>2.
11972         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11973         (copysignsf3): Add support for VSX.
11974         (fred): Use TARGET_FRE.
11975         (fred_fpr): Ditto.
11976         (rsqrtdf_internal1): New function for frsqrte instruciton.
11977
11978         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11979         (vec_rsqrt): Ditto.
11980
11981 2010-06-03  Richard Guenther  <rguenther@suse.de>
11982
11983         PR middle-end/44291
11984         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11985         (set_user_assembler_libfunc): Likewise.
11986
11987 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11988
11989         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11990         defaults.h.
11991         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11992         to defaults.h
11993         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11994         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11995         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11996         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11997         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11998         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11999         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
12000         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
12001         * defaults.h: Updated for above mentioned changes.
12002
12003 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
12004
12005         * c-common.c: Remove header include of tm_p.h.
12006         * Makefile.in (c-common.o): Remove TM_P_H dependency.
12007
12008 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
12009
12010         * tree.h (struct tree_decl_map): New type.
12011         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
12012         (tree_decl_map_hash): New prototype.
12013         (debug_expr_for_decl, value_expr_for_decl): Change into
12014         tree_decl_map hashtab from tree_map.
12015         (init_ttree): Adjust initialization.
12016         (tree_decl_map_hash): New function.
12017         (decl_debug_expr_lookup, decl_debug_expr_insert,
12018         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
12019
12020 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12021
12022         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
12023         linker emulations.
12024         * configure: Regenerate.
12025         * config.in: Regenerate.
12026
12027         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
12028         (X86_64_EMULATION): Define.
12029         (TARGET_LD_EMULATION): Use them.
12030
12031         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
12032         (SPARC64_EMULATION): Define.
12033         (LINK_ARCH_SPEC): Use them.
12034
12035 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12036
12037         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
12038         smallest_mode_for_size for computing the precision types of new
12039         graphite IVs.  Do not call lang_hooks.types.type_for_size.
12040
12041 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12042
12043         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
12044         information.
12045         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
12046
12047 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
12048
12049         PR middle-end/44363
12050         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
12051         return false instead.
12052
12053 2010-06-02  Jan Hubicka  <jh@suse.cz>
12054
12055         PR middle-end/44295
12056         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
12057         create new cgraph node to check callee.
12058
12059 2010-06-02  Richard Guenther  <rguenther@suse.de>
12060
12061         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
12062
12063 2010-06-02  Richard Guenther  <rguenther@suse.de>
12064
12065         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
12066         (lto_wrapper_cleanup): ... this.  Do not exit.
12067         (fatal): Adjust.  Exit here.
12068         (fatal_perror): Likewise.
12069         (fatal_signal): New function.
12070         (main): Set up signal handlers to cleanup temporary files.
12071         * Makefile.in (lto-wrapper.o): Adjust dependencies.
12072
12073 2010-06-02  Richard Guenther  <rguenther@suse.de>
12074
12075         PR tree-optimization/44377
12076         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
12077
12078 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12079
12080         * config/s390/2097.md (z10_fhex): Remove insn reservation.
12081         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
12082         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
12083         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
12084         instruction.
12085         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
12086
12087 2010-06-02  Jan Hubicka  <jh@suse.cz>
12088
12089         * bitmap.c (bitmap_descriptor): Add search_iter.
12090         (bitmap_find_bit): Increment it.
12091         (print_statistics): Print it.
12092
12093 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
12094
12095         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
12096         instead of gimple_build_call_vec.  Delete unnecessary local variable.
12097
12098 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12099
12100         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
12101         change from yesterday.
12102
12103 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
12104
12105         * c-ada-spec.c: Clean up redundant includes.
12106
12107 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
12108
12109         * gimplify.c: Do not include except.h and optabs.h.
12110         (gimplify_body): Do not initialize RTL profiling.
12111         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
12112         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
12113         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
12114         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
12115         langhooks.h.
12116
12117         * tree-pretty-print.h: Include pretty-print.h.
12118         * gimple-pretty-print.h: Include pretty-print.h.
12119
12120         * tree-pretty-print.c: Do not include diagnostic.h.
12121         * tree-vrp.c: Likewise.
12122         * tree-tailcall.c: Likewise
12123         * tree-scalar-evolution.c: Likewise
12124         * tree-ssa-dse.c: Likewise
12125         * tree-chrec.c: Likewise
12126         * tree-ssa-sccvn.c: Likewise
12127         * tree-ssa-copyrename.c: Likewise
12128         * tree-nomudflap.c: Likewise
12129         * tree-call-cdce.c: Likewise
12130         * tree-stdarg.c: Likewise
12131         * tree-ssa-math-opts.c: Likewise
12132         * tree-nrv.c: Likewise
12133         * tree-ssa-sink.c: Likewise
12134         * tree-browser.c: Likewise
12135         * tree-ssa-loop-ivcanon.c: Likewise
12136         * tree-ssa-loop.c: Likewise
12137         * tree-parloops.c: Likewise
12138         * tree-ssa-address.c: Likewise
12139         * tree-ssa-ifcombine.c: Likewise
12140         * tree-if-conv.c: Likewise
12141         * tree-data-ref.c: Likewise
12142         * tree-affine.c: Likewise
12143         * tree-ssa-phiopt.c: Likewise
12144         * tree-ssa-coalesce.c: Likewise
12145         * tree-ssa-pre.c: Likewise
12146         * tree-ssa-live.c: Likewise
12147         * tree-predcom.c: Likewise
12148         * tree-ssa-forwprop.c: Likewise
12149         * tree-ssa-dce.c: Likewise
12150         * tree-ssa-ter.c: Likewise
12151         * tree-ssa-loop-prefetch.c: Likewise
12152         * tree-optimize.c: Likewise
12153         * tree-ssa-phiprop.c: Likewise
12154         * tree-object-size.c: Likewise
12155         * tree-outof-ssa.c: Likewise
12156         * tree-ssa-structalias.c: Likewise
12157         * tree-switch-conversion.c: Likewise
12158         * tree-ssa-reassoc.c: Likewise
12159         * tree-ssa-operands.c: Likewise
12160         * tree-vectorizer.c: Likewise
12161         * tree-vect-data-refs.c: Likewise
12162         * tree-vect-generic.c: Likewise
12163         * tree-vect-stmts.c: Likewise
12164         * tree-vect-patterns.c: Likewise
12165         * tree-vect-slp.c: Likewise
12166         * tree-vect-loop.c: Likewise
12167         * tree-ssa-loop-ivopts.c: Likewise
12168         * tree-ssa-loop-im.c: Likewise
12169         * tree-ssa-loop-niter.c: Likewise
12170         * tree-ssa-loop-unswitch.c: Likewise
12171         * tree-ssa-loop-manip.c: Likewise
12172         * tree-ssa-loop-ch.c: Likewise
12173         * tree-dump.c: Likewise
12174         * tree-complex.c: Likewise
12175
12176         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
12177         * tree-ssa-uninit.c: Likewise
12178         * tree-ssa-threadupdate.c: Likewise
12179         * tree-ssa-uncprop.c: Likewise
12180         * tree-ssa-ccp.c: Likewise
12181         * tree-ssa-dom.c: Likewise
12182         * tree-ssa-propagate.c: Likewise
12183         * tree-ssa-alias.c: Likewise
12184         * tree-dfa.c: Likewise
12185         * tree-cfgcleanup.c: Likewise
12186         * tree-sra.c: Likewise
12187         * tree-ssa-copy.c: Likewise
12188         * tree-ssa.c: Likewise
12189         * tree-profile.c: Likewise
12190         * tree-cfg.c: Likewise
12191         * tree-ssa-threadedge.c: Likewise
12192         * tree-vect-loop-manip.c: Likewise
12193
12194         * tree-inline.c: Do not include diagnostic.h and expr.h.
12195         Include rtl.h.
12196         (copy_decl_for_dup_finish): Do not use NULL_RTX.
12197
12198         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
12199         * tree-loop-distribution.c: Likewise.
12200
12201 2010-06-01  Jan Hubicka  <jh@suse.cz>
12202
12203         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
12204
12205 2010-06-01  Jan Hubicka  <jh@suse.cz>
12206
12207         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
12208         remove return value.
12209         (split_bbs_on_noreturn_calls) .... here.
12210         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
12211         * tree-flow.h (fixup_noreturn_call): New.
12212
12213 2010-06-01  Jan Hubicka  <jh@suse.cz>
12214
12215         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
12216
12217 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
12218
12219         * tree.h (build_nt_call_list): Delete.
12220         * tree.c (build_nt_call_list): Delete.
12221
12222 2010-06-01  Jan Hubicka  <jh@suse.cz>
12223
12224         * fwprop.c: Make emit-rtl.h include last.
12225         * rtlanal.c: Include emit-rtl.h.
12226         * genautomata.c: Output emit-rtl include into insn-automata.c
12227         * df-scan.c: Include emit-rtl.h.
12228         * haifa-sched.c: Indlude emit-rtl.h.
12229         * mode-switching.c: Indlude emit-rtl.h.
12230         * graph.c: Indlude emit-rtl.h.
12231         * sel-sched.c: Include emit-rtl.h.
12232         * sel-sched-ir.c: Include emit-rtl.h.
12233         * ira-build.c: Include emit-rtl.h.
12234         * emit-rtl.c (first_insn, last_insn): Remove defines.
12235         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
12236         Move to emit-rtl.h.
12237         (set_new_first_and_last_insn, get_last_insn_anywhere,
12238         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
12239         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
12240         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
12241         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
12242         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
12243         Use accessor functions.
12244         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
12245          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
12246         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
12247         mem_expr_equal_p): Move here from rtl.h.
12248         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
12249         Move here from emit-rtl.c; make inline.
12250         * cfglayout.h: Include emit-rtl.h.
12251         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
12252          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
12253         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
12254         mem_expr_equal_p, get_insns, set_first-insn,
12255         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
12256         * reg-stack.c: Include emit-rtl.h.
12257         * dce.c: Likewise.
12258
12259 2010-06-01  Jan Hubicka  <jh@suse.cz>
12260
12261         * cgraph.h (tree_function_versioning): Update prototype.
12262         (cgraph_function_versioning): Update prototype.
12263         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
12264         bitmap.
12265         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
12266         (cgraph_materialize_clone, save_inline_function_body): Update use of
12267         tree_function_versioning.
12268         * tree-inline.c (copy_bb): Look for previous copied block to link
12269         after; fix debug output.
12270         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
12271         (copy_body): Likewise.
12272         (expand_call_inline): Update use of copy_body.
12273         (tree_function_versioning): Update use of copy body; accept
12274         blocks_to_copy and new_entry.
12275
12276 2010-06-01  Jan Hubicka  <jh@suse.cz>
12277
12278         * gegenrtl.c: Remove unnecesary prototypes.
12279         (gendecl): Remove.
12280         (gendef): Produce static inline.
12281         (gencode): Remove.
12282         (main): Do not decode parameters; generate header only.
12283         * Makefile.in (genrtl.c): Remove.
12284
12285 2010-06-01  Jan Hubicka  <jh@suse.cz>
12286
12287         * tree-switch-conversion.c (build_one_array): Make it readonly.
12288
12289 2010-06-01  Richard Guenther  <rguenther@suse.de>
12290
12291         * optabs.c (init_optabs): Guard all accesses to reinit.
12292         * ipa-pure-const.c (propagate): Fix another typo.
12293         * opts.c (common_handle_option): Split assignment to bool.
12294         * c-opts.c (c_common_handle_option): Likewise.
12295
12296 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
12297             Matthew Gingell  <gingell@adacore.com>
12298
12299         * doc/invoke.texi: Mention -fdump-ada-spec.
12300         * tree-dump.c (dump_files): Add ada-spec.
12301         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
12302         * tree-pass.h (tree_dump_index): Add TDI_ada.
12303         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
12304         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
12305         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
12306         * c-decl.c: Include c-ada-spec.h.
12307         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
12308         functions.
12309         (c_write_global_declarations): Add handling of -fdump-ada-spec.
12310         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
12311         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
12312         * c-ada-spec.h, c-ada-spec.c: New files.
12313
12314 2010-06-01  Richard Guenther  <rguenther@suse.de>
12315
12316         PR lto/43853
12317         * ipa-pure-const.c (get_function_state): Hand back varying state
12318         if we do not have one.
12319         (has_function_state): New function.
12320         (duplicate_node_data): Adjust.
12321         (remove_node_data): Likewise.
12322         (pure_const_write_summary): Likewise.
12323         (propagate): Likewise.  Fix typo.
12324
12325 2010-06-01  Jan Hubicka  <jh@suse.cz>
12326
12327         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
12328         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
12329         (execute_all_ipa_transforms): Do not play with the states.
12330
12331 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
12332
12333         * config/arm/t-linux-androideabi: New.
12334         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
12335
12336 2010-06-01  Jan Hubicka  <jh@suse.cz>
12337
12338         * tree-inline.c (estimate_num_insns): For stdarg functions look
12339         into call statement to count cost of argument passing.
12340
12341 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
12342
12343         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
12344         argument for fprintf.
12345         (ix86_output_addr_diff_elt): Likewise.
12346         (x86_function_profiler): Likewise.
12347         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
12348         (LPREFIX): Likewise.
12349         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
12350
12351 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12352
12353         PR target/44338
12354         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
12355         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
12356         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
12357         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
12358         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
12359         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
12360         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
12361         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
12362         TARGET_FUSED_MADD.
12363
12364 2010-05-31  Jan Hubicka  <jh@suse.cz>
12365
12366         * tree.h (tree_range_check_failed): Declare noreturn.
12367
12368 2010-05-31  Jan Hubicka  <jh@suse.cz>
12369
12370         * gimple.c (gimple_call_builtin_p): New function.
12371         * gimple.h (gimple_call_builtin_p): Declare.
12372         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
12373         to exit.
12374         (execute_warn_function_return): BUILT_IN_RETURN is return.
12375         (split_critical_edges): Return edges are not critical.
12376         (is_ctrl_altering_stmt): Builtin_in_return is altering.
12377         (gimple_verify_flow_info): Handle built_in_return.
12378         (execute_warn_function_return): Handle built_in_return.
12379         * ipa-pure-const.c (check_call): Ignore builtin_return.
12380
12381 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12382
12383         PR middle-end/44337
12384         * expr.c (expand_assignment): Don't store anything for out-of-bounds
12385         array accesses with non-MEM.
12386
12387         PR tree-optimization/44182
12388         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
12389         newly needs to end a bb is followed by debug stmts, instead return
12390         true from the function at the end.
12391         (maybe_move_debug_stmts_to_successors): New function.
12392         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
12393
12394 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
12395
12396         PR target/44161
12397         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
12398
12399 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12400
12401         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
12402         for nested functions in non-optimized compilation.
12403
12404 2010-05-31  Richard Guenther  <rguenther@suse.de>
12405
12406         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
12407
12408 2010-05-30  Jan Hubicka  <jh@suse.cz>
12409
12410         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
12411
12412 2010-05-30  Richard Guenther  <rguenther@suse.de>
12413
12414         PR lto/42975
12415         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
12416         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
12417         no longer needed.
12418
12419 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
12420
12421         * config/darwin.c (output_objc_section_asm_op): Add comment.
12422         (name_needs_quotes): Add '_' to list of valid comment chars.
12423         (machopic_output_function_base_name): Remove unneeded quotes.
12424         (darwin_encode_section_info): Adjust asm whitespace.
12425         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
12426         (ASM_OUTPUT_LOCAL): Ditto.
12427         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
12428         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
12429         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
12430
12431 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12432
12433         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
12434         RS6000_OUTPUT_BASENAME unconditionally.
12435         (rs6000_output_function_epilogue): Likewise.
12436
12437 2010-05-30  Jan Hubicka  <jh@suse.cz>
12438
12439         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
12440         nodes.
12441
12442 2010-05-30  Richard Guenther  <rguenther@suse.de>
12443
12444         * tree-cfg.c (verify_gimple_assign_single): Implement
12445         verification for COND_EXPR rhs.
12446
12447 2010-05-30  Jan Hubicka  <jh@suse.cz>
12448
12449         * cgraph.h (cgraph_dump_file): Declare.
12450         * cgraphunit.c (cgraph_dump_file): Export.
12451         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
12452
12453 2010-05-30  Jan Hubicka  <jh@suse.cz>
12454
12455         * dwarf2out.c (reference_to_unused,
12456         premark_types_used_by_global_vars_helper): Avoid creation of new
12457         varpool nodes.
12458
12459 2010-05-30  Jan Hubicka  <jh@suse.cz>
12460
12461         * cgraph.h (cgraph_node_cannot_return,
12462         cgraph_edge_cannot_lead_to_return): New functions.
12463         * cgraph.c (cgraph_node_cannot_return,
12464         cgraph_edge_cannot_lead_to_return): Use them.
12465         * ipa-pure-const.c (pure_const_names): New static var.
12466         (check_call): Handle calls not leading to return.
12467         (pure_const_read_summary): Dump info read.
12468         (propagate): Dump info about propagation process; ignore side effects
12469         of functions not leading to exit; fix handling of pure functions.
12470
12471 2010-05-30  Jan Hubicka  <jh@suse.cz>
12472
12473         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
12474         for tail call epilogues.
12475
12476 2010-05-30  Jan Hubicka  <jh@suse.cz>
12477
12478         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
12479         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
12480         dump files.
12481
12482 2010-05-29  Jan Hubicka  <jh@suse.cz>
12483
12484         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
12485         node; remove references in node we no longer keep in cgrpah but need
12486         body of.
12487
12488 2010-05-29  Jan Hubicka  <jh@suse.cz>
12489
12490         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
12491
12492 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12493
12494         PR target/44165
12495         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
12496
12497 2010-05-29  Jan Hubicka  <jh@suse.cz>
12498
12499         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
12500         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
12501         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
12502         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
12503         debug_names_replaced_by, debug_update_ssa): Likewise.
12504         * sbitmap.c (debug_sbitmap): Likewise.
12505         * genrecog.c (debug_decision, debug_decision_list): Likewise.
12506         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
12507         debug_tree_chain): Likewise.
12508         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
12509         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
12510         * optabs.c (debug_optab_libfuncs): Likewise.
12511         (verify_loop_closed_ssa): Likewise.
12512         * value-prof.c (verify_histograms): Likewise.
12513         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
12514         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
12515         * cfghooks.c (verify_flow_info): Likewise.
12516         * fold-const.c (debug_fold_checksum): Likewise.
12517         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
12518         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
12519         Likewise.
12520         * omega.c (debug_omega_problem): Likewise.
12521         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
12522         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12523         * dominance.c (verify_dominators, debug_dominance_info,
12524         debug_dominance_tree): Likewise.
12525         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
12526         * df_regno_debug, df_ref_debug,
12527         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
12528         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
12529         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
12530         * sel-sched.c (debug_state): Likewise.
12531         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
12532         Likewise.
12533         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
12534         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
12535         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
12536         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
12537         Likewise.
12538         * c-pretty-print.c (debug_c_tree): Likewise.
12539         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
12540         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
12541         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
12542         * ebitmap.c (debug_ebitmap): Likewise.
12543         * function.c (debug_find_var_in_block_tree): Likewise.
12544         * print-rtl.c (debug_rtx): Likewise.
12545         (debug_rtx_count): Likewise.
12546         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
12547         * stor-layout.c (debug_rli): Likewise.
12548         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
12549         * tree-data-ref.c (debug_data_references,
12550         debug_data_dependence_relations, debug_data_reference,
12551         debug_data_dependence_relation, debug_rdg_vertex,
12552         debug_rdg_component, debug_rdg): Likewise.
12553         * tree-affine.c (debug_aff): Likewise.
12554         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
12555         Likewise.
12556         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
12557         * emit-rtl.c (verify_rtl_sharing): Likewise.
12558         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
12559         debug_value_expressions): Likewise.
12560         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
12561         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
12562         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
12563         * cfglayout.c (verify_insn_chain): Likewise.
12564         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
12565         debug_clast_stmt, debug_generated_program): Likewise.
12566         * ggc-page.c (debug_print_page_list): Likewise.
12567         * tree-ssa-ter.c (debug_ter): Likewise.
12568         * graphite-dependences.c (debug_pddr): Likewise.
12569         * sched-deps.c (debug_ds): Likewise.
12570         * tree-ssa.c (verify_ssa): Likewise.
12571         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
12572         debug_scattering_functions, debug_iteration_domains, debug_pdr,
12573         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
12574         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
12575         * tree-inline.c (debug_find_tree): Likewise.
12576         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
12577         debug_ppl_powerset_matrix): Likewise.
12578         * var-tracking.c (debug_dv): Likewise.
12579         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
12580         * cfgloop.c (verify_loop_structure): Likewise.
12581         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
12582         * c-common.c (verify_sequence_points): Likewise.
12583         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
12584         debug_candidates, debug_rgn_dependencies): Likewise.
12585         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
12586         * debug_constraint_graph, debug_solution_for_var,
12587         debug_sa_points_to_info): Likewise.
12588         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
12589         Likewie.
12590         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
12591         debug_loops, debug_loop, debug_loop_num): Likewise.
12592         * passes.c (debug_pass): Likewise.
12593         (dump_properties): Likewise; add cfglayout property.
12594         (debug_properties): Likewise.
12595         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
12596         * varpool.c (debug_varpool): Likewise.
12597         * regcprop.c (debug_value_data): Likewise.
12598         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
12599         debug_immediate_uses_for): Likewise.
12600
12601 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12602
12603         PR bootstrap/44315
12604         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
12605         Filter out insn-flags.h.
12606
12607 2010-05-29  Jan Hubicka  <jh@suse.cz>
12608
12609         * cgraph.h (struct varpool_node_set_def,
12610         struct cgraph_node_set_def): Remove unused AUX pointer.
12611         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
12612         VEC_empty macro.
12613
12614 2010-05-29  Jan Hubicka  <jh@suse.cz>
12615
12616         PR middle-end/44324
12617         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
12618
12619 2010-05-29  Richard Guenther  <rguenther@suse.de>
12620
12621         * lto-streamer.c (cached_bp): New global variable.
12622         (bitpack_create): Return the cached bitpack, if available.
12623         (bitpack_delete): Clear and cache the bitpack, if appropriate.
12624         (bp_pack_value): Remove redundant asserts.
12625
12626 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12627
12628         PR middle-end/44306
12629         * tree-if-conv.c (is_true_predicate): New.
12630         (is_predicated): Use is_true_predicate.
12631         (add_to_predicate_list): Same.  Do not use unshare_expr.
12632         (add_to_dst_predicate_list): Same.
12633
12634 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12635
12636         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12637         field on edges.
12638         (predicate_bbs): Same.
12639         (clean_predicate_lists): Same.
12640         (find_phi_replacement_condition): Do not AND the predicate from
12641         edge->aux.
12642
12643 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12644
12645         PR bootstrap/44315
12646         * Makefile.in (build/gencondmd.o): Add a missing `\'.
12647
12648 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12649
12650         PR target/44261
12651         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12652         (negdf2): Adjust expander pattern and use negdf2_slow.
12653         (negsf2): Likewise.
12654
12655 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
12656
12657         * basic-block.h (struct control_flow_graph): Move last_label_uid field
12658         up.
12659         * df.h (struct df_base_ref): Move regno field up.
12660         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12661         * expr.h (struct separate_ops): Move location field up.
12662         * optabs.h (struct optab_d): Move libcall_basename field down.
12663         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12664         * config/i386/i386.h (struct machine_function): Convert call_abi field
12665         into a bitfield.  Move cfa field to the end of the structure.
12666
12667 2010-05-29  Jan Hubicka  <jh@suse.cz>
12668
12669         * varpool.c (varpool_get_node): Fix lookup.
12670
12671 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12672
12673         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
12674         RTL specific prototypes with #ifdef RTX_CODE.
12675         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12676         * config/spu/t-spu-elf: Fix dependencies.
12677
12678         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12679
12680 2010-05-29  Mike Stump  <mikestump@comcast.net>
12681
12682         PR bootstrap/44315
12683         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12684         TM_H when building to avoid dependency loops.
12685
12686 2010-05-29  Jan Hubicka  <jh@suse.cz>
12687
12688         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12689         refs and body; not the whole node for masters of materialized clones.
12690
12691 2010-05-29  Mike Stump  <mikestump@comcast.net>
12692
12693         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12694
12695 2010-05-29  Jan Hubicka  <jh@suse.cz>
12696
12697         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12698         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12699         use of clone_function_name.
12700         * cgraph.h (cgraph_create_virtual_clone,
12701         cgraph_function_versioning): update prototypes.
12702         (clone_function_name): Declare.
12703         * ipa-cp.c (ipcp_insert_stage): Update call of
12704         cgraph_create_virtual_clone.
12705         * omp-low.c (create_omp_child_function_name): Use
12706         cgraph_create_virtual_clone.
12707         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12708         (cgraph_function_versioning): Take SUFFIX argument; produce new name
12709         and make decl local.
12710
12711 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12712
12713         * vec.h: Include statistics.h
12714         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
12715         with VEC_H.
12716
12717 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12718
12719         * c-lex.c: Do not include c-tree.h.
12720         * c-pretty-print.c: Likewise.
12721         * c-opts.c: Likewise.
12722         * c-gimplify.c: Likewise.
12723         * c-common.c: Likewise.
12724         * c-dump.c: Likewise.  Include c-common.h.
12725
12726 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12727
12728         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12729         before including diagnostic-core.h.
12730         (c_cpp_error): New prototype moved from c-tree.h.
12731         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12732         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12733         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12734         (c_cpp_error): Prototype moved to c-common.h.
12735         * Makefile.in: Update dependency for C_COMMON_H.
12736
12737 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12738
12739         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12740         * c-common.c (c_register_addr_space): Remove here.
12741         * c-decl.c (c_register_addr_space): Re-add here.
12742
12743 2010-05-28  Mike Stump  <mikestump@comcast.net>
12744
12745         * config/darwin-c.c: Remove c-tree.h include.
12746
12747 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12748
12749         * gcc.c: Include diagnostic.h.
12750         (error_count): Remove.  All users changed to use errorcount.
12751         (programname): Remove.  All users changed to use progname.
12752         (fancy_abort, internal_error, fatal_error, error, warning, inform,
12753         fnotice): Remove.
12754         (execute): Don't include "Internal error" and bug reporting
12755         information in argument of internal_error call.
12756         (process_command): Don't increment error_count after calling
12757         perror_with_name.
12758         (input_filename): Rename to gcc_input_filename.  All users
12759         changed.
12760         (main): Call diagnostic_initialize.  Register delete_temp_files
12761         with atexit.  Use seen_error to test for errors.
12762         * gcc.h: Include diagnostic-core.h.
12763         (fatal_error, error, warning): Remove.
12764         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12765         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12766         (gcc.o): Update dependencies.
12767
12768 2010-05-28  Jeff Law  <law@redhat.com>
12769
12770         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12771         functions.
12772         * ira.h (ira_bad_reload_regno): Declare
12773         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12774
12775         * ira-color.c (update_curr_costs): Free updated hard reg costs.
12776         (ira_reassign_conflict_allocnos): Remove bogus asserts.
12777         (allocno_reload_assign): Likewise.
12778
12779 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
12780
12781         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12782         build1_stat.
12783
12784 2010-05-28  Richard Guenther  <rguenther@suse.de>
12785
12786         PR lto/44312
12787         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12788         Stream fixed-point constants mode.
12789         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12790         and TYPE_PRECISION.
12791         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12792         Stream fixed-point constants mode.
12793         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12794         and TYPE_PRECISION.
12795
12796 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12797
12798         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12799         only place it was called from.
12800         (number_of_latch_executions): Do not return chrec_dont_know when the
12801         may_be_zero is a runtime condition: instead, return a COND_EXPR
12802         including the may_be_zero condition.
12803         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12804         of nb_iterations.
12805         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12806         COND_EXPRs.
12807
12808 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12809
12810         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12811         generate COND_EXPRs for degenerate_phi_result.
12812
12813 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12814
12815         PR middle-end/44293
12816         * tree-if-conv.c (if_convertible_loop_p): Check the
12817         if-convertibility of phi nodes in non predicated BBs.
12818
12819 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12820
12821         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12822
12823 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12824
12825         PR driver/15303
12826         * gcc.c (inform, warning, inform): New functions.
12827         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12828         gmsgid.  All callers changed.
12829         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12830         (fatal_error): Rename to fatal_signal.  All users changed.
12831         (fatal): Rename to fatal_error; change cmsgid parameter to
12832         gmsgid.  All callers changed.
12833         (process_command): Use warning instead of error for warnings.
12834         (end_going_arg): Don't use _() around argument of error.
12835         (do_spec_1): Use inform for message from %n specs.  Use warning
12836         instead of error for warnings.
12837         (main): Use inform for comparison messages.  Use warning for
12838         message about unused linker input.
12839         (error): Increment error_count.  Print "error: ".
12840         * gcc.h (fatal): Change to fatal_error.
12841         (warning): Declare.
12842         * config/darwin-driver.c (darwin_default_min_version): Use warning
12843         instead of fprintf for warnings.
12844         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12845
12846 2010-05-28  Julian Brown  <julian@codesourcery.com>
12847
12848         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12849         (*thumb2_addsi3_compare0_scratch): New.
12850         * config/arm/constraints.md (Pv): New.
12851         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12852         for ARM mode only.
12853         (*addsi3_compare0_scratch): Likewise.
12854
12855 2010-05-28  Jan Hubicka  <jh@suse.cz>
12856
12857         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12858         check.
12859         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12860         only on local statics.
12861
12862 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12863
12864         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12865
12866 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12867
12868         PR bootstrap/44314
12869         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12870         (OPTION_GLIBC): Define.
12871
12872 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12873
12874         PR debug/41048
12875         * dwarf2out.c (double_int_type_size_in_bits): New function.
12876         (round_up_to_align): Change first argument and return value to
12877         double_int.
12878         (field_byte_offset): Work internally on double_ints.
12879
12880         PR target/43636
12881         * builtins.c (expand_movstr): Use a temporary pseudo instead
12882         of target even when target is not NULL and not const0_rtx, but
12883         fails movstr predicate.
12884         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12885
12886 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12887
12888         * final.c (rest_of_clean_state): Use %m in errors instead of
12889         strerror (errno).
12890         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12891         instead of strerror.
12892         * toplev.c (process_options): Use %m in errors instead of strerror
12893         (errno).
12894         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12895         (errno).
12896
12897 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12898
12899         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12900         (ix86_canonical_va_list_type): Make static.  Add declaration.
12901         (ix86_enum_va_list): Make static.  Reindent.
12902         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12903         (ix86_canonical_va_list_type): Ditto.
12904         (ix86_enum_va_list): Ditto.
12905
12906 2010-05-28  Richard Guenther  <rguenther@suse.de>
12907
12908         * lto-wrapper.c (run_gcc): With -save-temps generate a
12909         user-visible ltrans filename.  Fixup ltrans unit numbering.
12910
12911 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12912
12913         * c-common.c (c_common_nodes_and_builtins): Replace use
12914         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12915         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12916         to ix86_enum_va_list.
12917         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12918         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12919         (TARGET_ENUM_VA_LIST_P): Add hook description.
12920         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12921         * target.h (gcc_target): Add enum_va_list hook.
12922
12923         PR bootstrap/44299
12924         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12925         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12926         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12927
12928 2010-05-28  Alan Modra  <amodra@gmail.com>
12929
12930         PR target/44266
12931         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12932         emit_library_call machinery to set up __tls_get_addr calls.
12933
12934 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12935
12936         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12937
12938 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12939
12940         Revert fix for PR c++/44188
12941         * c-common.c (is_typedef_decl): Revert the moving of  this
12942         definition ...
12943         * tree.c (is_typedef_decl): ... here.
12944         (typdef_variant_p): Revert the moving of this  definition
12945         here from gcc/cp/tree.c.
12946         * c-common.h (is_typedef_decl): Revert the moving of this
12947         declaration ...
12948         * tree.h (is_typedef_decl): ... here.
12949         (typedef_variant_p): Revert the moving of this  declaration here
12950         from gcc/cp/cp-tree.h
12951         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12952         (gen_tagged_type_die): Revert the splitting out of ...
12953         (gen_type_die_with_usage): ... this function. Revert the anonymous
12954         tagged type handling.
12955         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12956         typedefs naming anonymous tagged types.
12957
12958 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12959
12960         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12961
12962 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12963
12964         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12965         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12966         throughout.
12967         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12968         "xer" to "ca".
12969         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12970         XER_REGS to CA_REGS throughout.
12971         * config/rs6000/rs6000.h: Same.
12972         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12973         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12974         that mode_iterator "P" is the size for arithmetic carries as well.
12975         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12976
12977 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12978
12979         PR bootstrap/44255
12980         * combine.c (struct rtx_subst_pair): Define unconditionally.
12981         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12982         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12983         Call make_compound_operation on pair->to.
12984         (propagate_for_debug): Don't call make_compound_operation here.
12985         Always use simplify_replace_fn_rtx.
12986
12987 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12988
12989         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12990         * config/xtensa/xtensa.c (override_options): Check
12991           TARGET_FORCE_NO_PIC and set flag_pic.
12992         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12993
12994 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12995
12996         PR bootstrap/44299
12997         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12998         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12999
13000 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
13001
13002         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
13003         toplev.h.
13004         * diagnostic.c: Don't include toplev.h.
13005         (progname): Define.  Moved from toplev.c.
13006         (seen_error): New function.
13007         * diagnostic.h: Include diagnostic-core.h.
13008         (diagnostic_t, emit_diagnostic): Don't declare here.
13009         * toplev.c (progname): Move to toplev.c.
13010         (emit_debug_global_declarations, compile_file, finalize,
13011         do_compile, toplev_main): Use seen_error.
13012         * toplev.h: Include diagnostic-core.h.
13013         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
13014         internal_error, warning, warning_at, error, error_n, error_at,
13015         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
13016         verbatim, fnotice, progname): Move to diagnostic-core.h.
13017         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
13018         (expand_builtin_expect): Use seen_error.
13019         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
13020         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
13021         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
13022         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
13023         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
13024         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
13025         errorcount for errors.
13026         * c-opts.c (c_common_finish): Use seen_error.
13027         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13028         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
13029         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
13030         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
13031         (get_coverage_counts): Use seen_error.
13032         * dwarf2out.c (dwarf2out_finish): Use seen_error.
13033         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
13034         gimplify_body): Use seen_error.
13035         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
13036         * ipa-pure-const.c (gate_pure_const): Use seen_error.
13037         * ipa-reference.c (gate_reference): Use seen_error.
13038         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
13039         * lambda-code.c: Include diagnostic-core.h instead of
13040         diagnostic.h.
13041         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
13042         * lto-compress.c: Include diagnostic-core.h instead of
13043         diagnostic.h.
13044         * lto-section-in.c: Include diagnostic-core.h instead of
13045         diagnostic.h.
13046         * lto-streamer-out.c: Include diagnostic-core.h instead of
13047         diagnostic.h.
13048         * lto-streamer.c: Include diagnostic-core.h instead of
13049         diagnostic.h.
13050         (gate_lto_out): Use seen_error.
13051         * matrix-reorg.c: Include diagnostic-core.h instead of
13052         diagnostic.h.
13053         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
13054         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
13055         (gate_expand_omp, lower_omp_1): Use seen_error.
13056         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
13057         (rest_of_decl_compilation, rest_of_type_compilation,
13058         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
13059         * tree-cfg.c (label_to_block_fn): Use seen_error.
13060         * tree-inline.c (optimize_inline_calls): Use seen_error.
13061         * tree-mudflap.c (mudflap_finish_file): Use
13062         seen_error.
13063         * tree-optimize.c (gate_all_optimizations,
13064         gate_all_early_local_passes, gate_all_early_optimizations): Use
13065         seen_error.
13066         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
13067         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
13068         (varpool_remove_unreferenced_decls,
13069         varpool_assemble_pending_decls): Use seen_error.
13070         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
13071         (TOPLEV_H, DIAGNOSTIC_H): Update.
13072         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
13073         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
13074         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
13075         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
13076         coverage.o, lambda-code.o): Update dependencies.
13077
13078 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
13079
13080         PR c++/44188
13081         * c-common.c (is_typedef_decl): Move this definition ...
13082         * tree.c (is_typedef_decl): ... here.
13083         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
13084         * c-common.h (is_typedef_decl): Move this declaration ...
13085         * tree.h (is_typedef_decl): ... here.
13086         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
13087         * dwarf2out.c (is_naming_typedef_decl): New function.
13088         (gen_tagged_type_die): Split out of ...
13089         (gen_type_die_with_usage): ... this function. When an anonymous
13090         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13091         is emitted for the typedef.
13092         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13093         anonymous tagged types.
13094
13095 2010-05-27  Jason Merrill  <jason@redhat.com>
13096
13097         * print-tree.c (debug_vec_tree): New fn.
13098         (print_vec_tree): New fn.
13099         * tree.h: Declare them.
13100         * gdbinit.in (pvt): New command.
13101
13102         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
13103
13104         * gdbinit.in (pdd): New command.
13105
13106 2010-05-27  Jan Hubicka  <jh@suse.cz>
13107
13108         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
13109         (update_caller_keys): Return early if there are no callers;
13110         only update fibheap when decresing the key.
13111         (update_callee_keys): Avoid recursion.
13112         (decide_inlining_of_small_functions): When badness does not match;
13113         re-insert into fibheap.
13114
13115 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
13116
13117         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
13118         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
13119         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
13120         (ALL_HOST_OBJS): Now a union of the above two.
13121         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
13122         all files in ALL_HOST_FRONTEND_OBJS.
13123         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
13124
13125         * c-common.c: Pretend to be a backend file by undefining
13126         IN_GCC_FRONTEND (still need rtl.h here).
13127
13128 2010-05-27  Jan Hubicka  <jh@suse.cz>
13129
13130         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
13131         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
13132
13133 2010-05-27  Jan Hubicka  <jh@suse.cz>
13134
13135         * sched-ebb.c: Rename struct deps to struct deps_desc.
13136         * ddg.c: Likewise.
13137         * sel-sched-ir.c: Likewise.
13138         * sched-deps.c: Likewise.
13139         * sched-int.h: Likewise.
13140         * sched-rgn.c: Likewise.
13141
13142 2010-05-27  Jon Beniston  <jon@beniston.com>
13143
13144         PR 43726
13145         * config/lm32/lm32.h: Remove definition of
13146         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
13147
13148 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13149
13150         PR lto/44230
13151         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
13152
13153 2010-05-27  Richard Guenther  <rguenther@suse.de>
13154
13155         PR tree-optimization/44284
13156         * tree-vect-stmts.c (vectorizable_assignment): Handle
13157         sign-changing conversions as simple copy.
13158
13159 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13160
13161         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
13162         Bionic C library.
13163         (__gthread_active_p): Check for pthread_create if compiling against
13164         Bionic C library.
13165
13166 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13167
13168         Support compilation for Android platform.  Reimplement -mandroid.
13169
13170         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
13171         (*android*): Set ANDROID_DEFAULT.
13172         (arm*-*-linux*): Include linux-android.h.
13173         (arm*-*-eabi*): Don't include previous -mandroid implementation.
13174         * config/arm/eabi.h: Remove, move Android-specific parts ...
13175         * config/linux-android.h: ... here.  New file.
13176         * config/arm/eabi.opt: Rename to ...
13177         * config/linux-android.opt: ... this.
13178         (mandroid): Allow -mno-android option.  Initialize based on
13179         ANDROID_DEFAULT.
13180         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
13181         Move logic to corresponding LINUX_TARGET_* macros.
13182         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
13183         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
13184         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
13185         Android definitions.
13186         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
13187         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
13188         Document.
13189
13190 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13191
13192         Add support for Bionic C library
13193
13194         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
13195         macro.
13196         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
13197         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
13198
13199         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
13200         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
13201         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
13202         to support multiple C libraries.  Handle Bionic.
13203         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
13204         (BIONIC_DYNAMIC_LINKER64): Define.
13205         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
13206         Update.
13207         (TARGET_HAS_SINCOS): Enable for Bionic.
13208
13209         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
13210         the last option specified on command line take effect.
13211         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
13212         (mbionic): New.
13213         (mglibc, muclibc): Update.
13214
13215         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
13216         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
13217         DEFAULT_LIBC.
13218
13219         * doc/invoke.texi (-mglibc, -muclibc): Update.
13220         (-mbionic): Document.
13221
13222 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13223
13224         * c-common.h (c_register_addr_space): Add prototype.
13225         (ADDR_SPACE_KEYWORD): Remove.
13226         * c-common.c (c_register_addr_space): New function.
13227         (c_addr_space_name): Reimplement.
13228         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
13229
13230         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
13231         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
13232
13233         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
13234         Remove TARGET_ADDR_SPACE_KEYWORDS.
13235
13236 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
13237
13238         * input.c: New file.
13239         * input.h (main_input_filename): Move declaration to toplev.h.
13240         * toplev.c (input_location, line_table): Move to input.c
13241         * toplev.h (main_input_filename): Move declaration from input.h.
13242         * tree.c (expand_location): Move to input.c.
13243         * Makefile.in (OBJS-common): Add input.o.
13244         (input.o): Add dependencies.
13245
13246 2010-05-27  Richard Guenther  <rguenther@suse.de>
13247
13248         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
13249         for non-existant files.
13250         (fork_execute): Mark args_name file as deleted.
13251
13252 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
13253
13254         PR bootstrp/44287
13255         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
13256         (narrow_signed_type): Likewise.
13257
13258 2010-05-26  Jan Hubicka  <jh@suse.cz>
13259
13260         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
13261         edge only when checking is enabled; check using former_clone_of;
13262         check inline clones too.
13263         (cgraph_materialize_clone): Record former_clone_of pointer.
13264         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
13265         combining redirections; dump args_to_skip bitmap
13266         (cgraph_materialize_all_clones): Do no redirection here.
13267         * ipa-inline.c (inline_transform): Do redirection here.
13268         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
13269         cheking only).
13270
13271 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13272
13273         * config/avr/avr-c.c: Do not include regs.h.
13274         Include cpplib.h for cpp_define and tree.h for c-common.h.
13275         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
13276         * config/avr/t-avr: Fix dependencies for avr-c.o.
13277
13278 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13279
13280         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
13281         string instead of SYMBOL_REF rtx.
13282         * rtl.h (set_stack_check_libfunc): Move prototype from here...
13283         * libfuncs.h: ...to here.  Adjust for explow.c change.
13284
13285 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
13286
13287         * pretty-print.c: Don't include ggc.h.
13288         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
13289         (identifier_to_locale): Use them for allocation.
13290         * pretty-print.h (identifier_to_locale_alloc,
13291         identifier_to_locale_free): Declare.
13292         * toplev.c (alloc_for_identifier_to_locale): New.
13293         (general_init): Set identifier_to_locale_alloc and
13294         identifier_to_locale_free.
13295         * Makefile.in (pretty-print.o): Update dependencies.
13296
13297 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13298
13299         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
13300         pointer types if they have different alignment or mode.
13301
13302 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
13303
13304         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13305         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13306         * config/sparc/sparc-protos.h (function_value): Remove declaration.
13307         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
13308         sparc_function_value_regno_p): New functions.
13309         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13310         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13311         (function_value): Rename to...
13312         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
13313         argument to 'outgoing'.
13314         (function_arg_record_value, function_arg_union_value,
13315         function_arg_vector_value): Update comment.
13316
13317 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13318
13319         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
13320         (fde_needed_for_eh_p): New predicate.
13321         (output_call_frame_info): Use it throughout to decide whether FDEs
13322         are needed for EH purpose.
13323         (dwarf2out_begin_prologue): Reorder assignments.
13324
13325 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13326
13327         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
13328         special case loop->header.
13329         (is_predicated): New.
13330         (if_convertible_loop_p): Call it.
13331
13332 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13333
13334         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
13335         iterator in parameter.  Do not generate code during the analysis.
13336         (tree_if_convert_cond_stmt): Removed.
13337         (tree_if_convert_stmt): Removed.
13338         (predicate_bbs): New.
13339         (if_convertible_loop_p): Call predicate_bbs.
13340         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
13341         now contains all the analysis part.
13342
13343 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13344
13345         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
13346         statements in the analysis part.
13347         (tree_if_convert_stmt): Update comment.
13348         (remove_conditions_and_labels): New.
13349         (combine_blocks): Call remove_conditions_and_labels.
13350         (tree_if_conversion): Update comment.
13351
13352 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13353
13354         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
13355         than 2 predecessors or more than 2 successors.
13356
13357 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13358
13359         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
13360         of loops in which the data dependence analysis fails.
13361
13362 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13363
13364         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
13365         CDI_POST_DOMINATORS.
13366         (tree_if_conversion): Same.
13367
13368 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13369
13370         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
13371
13372 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13373
13374         * tree-if-conv.c: Update copyright years.  Fix comments.
13375         Fix indentation.
13376
13377 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
13378
13379         * builtin-types.def (BT_INT128): New primitive type.
13380         (BT_UINT128): Likewise.
13381         * c-common.c (c_common_r): Add __int128 keyword.
13382         (c_common_type_for_size): Handle __int128.
13383         (c_common_type_for_mode): Likewise.
13384         (c_common_signed_or_unsigned_type): Likewise.
13385         (c_common_nodes_and_builtins): Add builtin type
13386         if target supports 128-bit integer scalar.
13387         * c-common.h (enum rid): Add RID_INT128.
13388         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
13389         if target supports 128-bit integer scalar.
13390         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
13391         (finish_declspecs): Likewise.
13392         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
13393         (c_token_starts_declspecs): Likewise.
13394         (c_parser_declspecs): Likewise.
13395         (c_parser_attributes): Likewise.
13396         (c_parser_objc_selector): Likewise.
13397         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
13398         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
13399         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
13400         * tree.c (make_or_reuse_type): Likewise.
13401         (make_unsigned_type): Likewise.
13402         (build_common_tree_nodes_2): Likewise.
13403         * tree.h (enum integer_type_kind): Add itk_int128 and
13404         itk_unsigned_int128.
13405         (int128_integer_type_node): New define.
13406         (int128_unsigned_type_node): New define.
13407         * doc/extend.texi: Add documentation about __int128 type.
13408
13409 2010-05-26  Richard Guenther  <rguenther@suse.de>
13410
13411         * tree-ssa-sccvn.c (copy_nary): Adjust.
13412         (copy_phis): Rename to ...
13413         (copy_phi): ... this.  Adjust.
13414         (copy_references): Rename to ...
13415         (copy_reference): ... this.  Adjust.
13416         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
13417         result into the valid table.
13418
13419 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13420
13421         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
13422         insn-config.h, insn-codes.h, recog.h, and optabs.h.
13423
13424 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13425
13426         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
13427
13428 2010-05-26  Richard Guenther  <rguenther@suse.de>
13429
13430         * opts.c (common_handle_option): Handle OPT_Ofast.
13431
13432 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
13433
13434         * diagnostic.c: Don't include opts.h.
13435         (permissive_error_option): Define.
13436         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
13437         for classify_diagnostic.  Don't use memset for
13438         classify_diagnostic.  Initialize new and recently added fields.
13439         (diagnostic_classify_diagnostic): Use context->n_opts instead of
13440         N_OPTS.
13441         (diagnostic_report_diagnostic): Pass context parameter to
13442         diagnostic_report_warnings_p.  Use option_enabled and option_name
13443         hooks from context.
13444         (emit_diagnostic): Use permissive_error_option.
13445         (permerror): Likewise.
13446         * diagnostic.h: Don't include options.h.
13447         (struct diagnostic_context): Add n_opts, opt_permissive,
13448         inhibit_warnings, warn_system_headers, option_enabled and
13449         option_name fields.  Change classify_diagnostic to a pointer.
13450         * opts-diagnostic.h: New file.
13451         * opts.c: Include opts-diagnostic.h.
13452         (common_handle_option): Set global_dc fields for -Wfatal-errors,
13453         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
13454         (option_name): New function.
13455         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
13456         (c_common_handle_option): Set global_dc->permissive for
13457         -fpermissive.
13458         * c-common.c (c_cpp_error): Save and restore
13459         global_dc->warn_system_headers, not variable warn_system_headers.
13460         * toplev.c: Include opts-diagnostic.h.
13461         (general_init): Update call to diagnostic_initialize.  Set
13462         global_dc->show_column, global_dc->option_enabled and
13463         global_dc->option_name.
13464         (process_options): Don't set global_dc fields here.
13465         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
13466         (diagnostic.o, opts.o, toplev.o): Update dependencies.
13467
13468 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13469
13470         * config/picochip/picochip.md (movsi): Split a movsi from a
13471         const after reload.
13472
13473 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13474
13475         * ggc-zone.c: Update copyright year.
13476         (poison_region): Mark memory for Valgrind as undefined before
13477         memset () call and inaccessible afterwards.
13478         (ggc_pch_total_size): Change type of i to int.
13479
13480 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13481
13482         * ggc-common.c (ggc_free_overhead): Allow empty slot.
13483
13484 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13485
13486         * ggc-common.c: Update copyright year.
13487         (ggc_rlimit_bound): Remove prototype.  Compile only if
13488         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
13489         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
13490         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
13491         (ggc_min_heapsize_heuristic): Likewise.
13492
13493 2010-05-26  Richard Guenther  <rguenther@suse.de>
13494
13495         PR rtl-optimization/44164
13496         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
13497         no-common access-path disambiguation.
13498         (indirect_ref_may_alias_decl_p): Adjust.
13499         (indirect_refs_may_alias_p): Likewise.
13500         (refs_may_alias_p_1): Likewise.
13501
13502 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13503
13504         * c-typeck.c: Do not include expr.h.
13505
13506 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13507
13508         * rtl.h (decl_default_tls_model): Move prototype from here...
13509         * output.h: ...to here.
13510         * c-decl.c: Do not include rtl.h.
13511         * c-pragma.c: Likewise.
13512         * c-parser.c: Likewise.
13513         * c-gimplify.c: Likewise.  And also not hard-reg-set.
13514         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
13515         FIXME note for it.  Add a FIXME note for expr.h.
13516         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
13517         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
13518         defined.
13519
13520 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
13521
13522         PR target/44199
13523         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
13524         or total_size is larger than red zone size for non-V4 ABI, emit a
13525         stack_tie resp. frame_tie insn before stack pointer restore.
13526         * config/rs6000/rs6000.md (frame_tie): New insn.
13527
13528 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13529
13530         * function.h (struct function): Add can_throw_non_call_exceptions bit.
13531         * lto-streamer-in.c (input_function): Stream it in.
13532         * lto-streamer-out.c (output_function): Stream it out.
13533         * function.c (allocate_struct_function): Set it.
13534         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
13535         for flag_non_call_exceptions.
13536         * cfgbuild.c (control_flow_insn_p): Likewise.
13537         (make_edges): Likewise.
13538         * cfgexpand.c (expand_stack_alignment): Likewise.
13539         * combine.c (distribute_notes): Likewise.
13540         * cse.c (cse_extended_basic_block): Likewise.
13541         * except.c (insn_could_throw_p): Likewise.
13542         * gcse.c (simple_mem): Likewise.
13543         * ipa-pure-const.c (check_call): Likewise.
13544         (check_stmt ): Likewise.
13545         * lower-subreg.c (lower-subreg.c): Likewise.
13546         * optabs.c (emit_libcall_block): Likewise.
13547         (prepare_cmp_insn): Likewise.
13548         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
13549         * postreload.c (rest_of_handle_postreload): Likewise.
13550         * reload1.c (reload_as_needed): Likewise.
13551         (emit_input_reload_insns): Likewise.
13552         (emit_output_reload_insns): Likewise.
13553         (fixup_abnormal_edges): Likewise.
13554         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
13555         * store-motion.c (find_moveable_store): Likewise.
13556         * tree-eh.c (stmt_could_throw_p): Likewise.
13557         (tree_could_throw_p): Likewise.
13558         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13559         * config/arm/arm.c (arm_expand_prologue): Likewise.
13560         (thumb1_expand_prologue): Likewise.
13561         * config/rx/rx.md (cbranchsf4): Likewise.
13562         (cmpsf): Likewise.
13563         * config/s390/s390.c (s390_emit_prologue): Likewise.
13564         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
13565         (inline_forbidden_into_p): New predicate.
13566         (expand_call_inline): Use it to forbid inlining.
13567         (tree_can_inline_p): Likewise.
13568
13569 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13570
13571         * config/i386/i386-c.c: Do not include rtl.h.
13572         * config/i386/t-i386: Update dependencies.
13573
13574 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13575
13576         * attribs.c: Do not include rtl.h.
13577         * Makefile.in: Update dependencies.
13578
13579 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
13580
13581         * double-int.h (double_int_and): New.
13582         * combine.c (try_combine): Clean up, use double_int_* and
13583         immed_double_int_const functions.
13584
13585 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13586
13587         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
13588         stderr to /dev/null instead of grep -q.
13589         * configure: Regenerate.
13590
13591 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13592
13593         * Makefile.in (EXCEPT_H): Fix typo.
13594
13595 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
13596
13597         * ira-build.c (update_conflict_hard_reg_costs): New.
13598         (ira_build): Call update_conflict_hard_reg_costs.
13599
13600 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13601
13602         PR debug/41371
13603         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
13604         ENABLE_CHECKING.
13605         (intersect_loc_chains): Walk the s2var's loc_chain together
13606         with s1node chain as long as the locations are equal, don't
13607         call find_loc_in_1pdv in that case.
13608
13609         PR debug/42801
13610         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
13611         (copy_bind_expr): ... instead of here.
13612         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
13613         if the block hasn't been remapped.
13614         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
13615         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
13616
13617 2010-05-25  Richard Guenther  <rguenther@suse.de>
13618
13619         PR middle-end/44069
13620         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
13621         out-of-bounds array accesses.
13622
13623 2010-05-25  Richard Guenther  <rguenther@suse.de>
13624
13625         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13626         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13627         (run_gcc): Re-organize to make cleanup easier.
13628
13629 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13630
13631         * config/s390/s390.c (optimization_options): Fix and move the
13632         flag_prefetch_loop_arrays override ...
13633         (override_options): ... here.
13634
13635 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
13636
13637         * diagnostic.c: Don't include plugin.h.
13638         (diagnostic_report_diagnostic): Don't handle plugins specially
13639         here.  Pass context to internal_error callback.
13640         * diagnostic.h (struct diagnostic_context): Add context parameter
13641         to internal_error callback.
13642         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13643         * plugin.h (struct diagnostic_context): Declare.
13644         (warn_if_plugins, plugins_internal_error_function): Declare.
13645         * toplev.c (general_init): Set global_dc->internal_error.
13646         * Makefile.in (diagnostic.o): Update dependencies.
13647
13648 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
13649
13650         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13651         * config/rs6000/t-darwin64: New.
13652         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13653         build crt2.
13654
13655 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
13656
13657         PR 44203
13658         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13659         match the original (and intended) behaviour before r159557.  This
13660         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13661         in two ways.
13662
13663 2010-05-25  Richard Guenther  <rguenther@suse.de>
13664
13665         * doc/invoke.texi: Document -Ofast.
13666         * target.h (struct gcc_target): Add handle_ofast.
13667         * target-def.h (TARGET_HANDLE_OFAST): Add.
13668         (TARGET_INITIALIZER): Adjust.
13669         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
13670         * common.opt (Ofast): Add.
13671
13672 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13673
13674         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13675         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13676
13677 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13678
13679         PR target/43610
13680         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13681         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
13682         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
13683         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13684
13685 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13686
13687         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13688         DW_OP_minus with negated offset instead of DW_OP_plus.
13689         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13690
13691 2010-05-25  Wei Guozhi  <carrot@google.com>
13692
13693         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13694         tst instruction and a new alternative.
13695         * config/arm/constraints.md (Pu): New constraint.
13696
13697 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
13698
13699         * function.c (assign_stack_local_1): Initialize variable
13700         to avoid warning when bootstrapping at -O3.
13701
13702 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
13703
13704         * configure.ac (all_lang_makefiles): Remove everything related to it.
13705         * configure: Regenerate.
13706         * Makefile.in: Fix reference to ada Make-lang.in.
13707         Remove support for LANG_MAKEFILES.
13708
13709 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
13710             Sandra Loosemore  <sandra@codesourcery.com>
13711
13712         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13713         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13714         description.  Add arm_neon_fp16_ok.
13715         (Add Options): Add arm_neon and arm_neon_fp16.
13716
13717 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
13718
13719         * diagnostic.c: Don't include flags.h.
13720         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13721         context parameters.  Check flags in the context passed as a parameter.
13722         (diagnostic_build_prefix): Add context parameter.  Check
13723         show_column flag in context.
13724         (diagnostic_action_after_output): Check fatal_errors flag in context.
13725         (diagnostic_report_current_module): Check show_column flag in context.
13726         (default_diagnostic_starter): Update call to
13727         diagnostic_build_prefix.
13728         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13729         (emit_diagnostic): Pass context to permissive_error_kind.
13730         (permerror): Pass context to permissive_error_kind.
13731         * diagnostic.h (struct diagnostic_context): Add show_column,
13732         pedantic_errors, permissive and fatal_errors fields.
13733         (diagnostic_build_prefix): Update prototype.
13734         * langhooks.c
13735         * toplev.c (process_options): Set flags in global_dc from
13736         flag_show_column, flag_pedantic_errors, flag_permissive,
13737         flag_fatal_errors.
13738         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13739         to diagnostic_build_prefix.
13740         * Makefile.in (diagnostic.o): Update dependencies.
13741
13742 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13743
13744         * config/i386/ia32intrin.h (__crc32q): Define only if
13745         __SSE4_2__ is defined.
13746
13747 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
13748
13749         PR target/44132
13750         PR middle-end/43602
13751         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13752         DECL_VISIBILITY_SPECIFIED.
13753         (emutls_decl): Set DECL_PRESERVE_P and copy
13754         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13755         (emutls_finalize_control_var): New callback.
13756         (emutls_finish): Finalize emutls control variables.
13757         * toplev.c (compile_file): Move the call to emutls_finish ()
13758         before varpool_assemble_pending_decls ().
13759
13760 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
13761
13762         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13763         added to the preprocessor condition.
13764
13765 2010-05-24  Paul Brook  <paul@codesourcery.com>
13766
13767         * gengtype-lex.l: Add HARD_REG_SET.
13768         * expr.c (expand_expr_real_1): Record writes to hard registers.
13769         * function.c (rtl_data): Add asm_clobbers.
13770         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13771         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13772         Use crtl->asm_clobbers.
13773
13774 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13775
13776         * doc/makefile.texi (Makefile): Mention stages 'profile'
13777         and 'feedback' for profiledbootstrap.
13778
13779 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13780
13781         PR target/44245
13782         * config/i386/i386.c (def_builtin): Properly check
13783         OPTION_MASK_ISA_64BIT.
13784
13785 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
13786
13787         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13788         typedefs with different but compatible types.  Allow duplicate
13789         typedefs with the same type except for pedantic non-C1X, but give
13790         warning for variably modified types.
13791         * c-typeck.c (tagged_types_tu_compatible_p,
13792         function_types_compatible_p, type_lists_compatible_p,
13793         comptypes_internal): Add parameter different_types_p; set
13794         *different_types_p for different but compatible types.  All
13795         callers changed.
13796         (comptypes_check_different_types): New.
13797         * c-tree.h (comptypes_check_different_types): Declare.
13798
13799 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13800
13801         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13802         * jump.c: Include basic-block.h.
13803         * profile.c: Likewise.
13804         * tree-profile.c: Likewise.
13805         * coverage.c: Likewise.
13806         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13807         (optimize_function_for_speed_p): Likewise.
13808         * function.h (optimize_function_for_size_p,
13809         optimize_function_for_speed_p): Moved here from basic-block.h.
13810         * Makefile.in: Update dependencies.
13811
13812 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13813
13814         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13815         before calling make; allow override through $MAKE.
13816         * doc/invoke.texi (Optimize Options): Document override.
13817
13818 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13819
13820         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13821         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13822         (rs6000_mode_dependent_address_ptr): Make static.
13823         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13824         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13825         Remove.
13826
13827 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13828
13829         PR target/43869
13830         * config/i386/i386.c: Make sure that the correct regparm is passed.
13831
13832 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13833
13834         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13835         * sbitmap.c: ...to here to internalize sbitmap element access.
13836         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13837         Explain why basic-block.h is included.
13838         * function.h: Include tm.h for CUMULATIVE_ARGS.
13839         * Makefile.in: Update dependencies.
13840
13841 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13842
13843         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13844         New core types.
13845         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13846         * sbitmap.c: Include sbitmap.h.
13847         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13848         hard-reg-set.h.  Split everything related to regsets out from here...
13849         * regset.h: ...to here.  New file.
13850         * df.h: Include regset.h and sbitmap.h.
13851         * tree-flow.h: Likewise.
13852         * cfgloop.h: Likewise.
13853         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13854         * cgraph.h: Include vec.h and function.h.
13855         * reload.h (struct insn_chain): Change types of live_throughout
13856         and dead_or_set from regset_head to bitmap_head.
13857         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13858         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13859         spilled_regs from regset_head to bitmap_head to avoid dependency
13860         in regset.h.
13861         * sel-sched-ir.h: Include regset.h.
13862         * reload.c: Include df.h before reload.h.
13863         * caller-save.c: Likewise.
13864         * reload1.c: Likewise.
13865         * ira.c: Likewise.
13866         (mark_elimination): Update type of r to bitmap, consistent with
13867         DF_LR_IN.
13868         * dominance.c: Include bitmap.h.
13869         * modulo-sched.c: Include df.h.
13870         * cfganal.c: Include bitmap.h and sbitmap.h.
13871         * cfgbuild.c: Include sbitmap.h.
13872         * lcm.c: Include sbitmap.h.
13873         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13874         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13875         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13876         * cselib.c: Include bitmap.h.
13877         * tree-optimize.c: Include regset.h.
13878         * stmt.c: Include bitmap.h.
13879         * Makefile.in: Update dependencies.
13880
13881 2010-05-22  Jan Hubicka  <jh@suse.cz>
13882
13883         * cgraph.h (struct varpool_node): Add same_comdat_group.
13884         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13885         pointer.
13886         (output_varpool): Update call of lto_output_varpool_node.
13887         (input_varpool): Read same_comdat_group pointer.
13888         (input_varpool_1): Fixup same_comdat_group pointer.
13889         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13890         group is needed, all are.
13891         * varpool.c (varpool_remove_node): Remove node from same comdat group
13892         linklist too.
13893         (varpool_analyze_pending_decls): Walk same comdat groups.
13894
13895 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13896
13897         * rtl.h (union rtunion_def): Remove rt_bit member.
13898         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13899         * print-rtl (print_rtx): Do not print the member.
13900         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13901         * gengenrtl.c (type_from_format): Likewise.
13902         (accessor_from_format): Likewise.
13903
13904 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13905
13906         * dbgcnt.c: Include toplev.h instead of errors.h.
13907         * ira-emit.c: Don't include errors.h.
13908         * ira.c: Include toplev.h instead of errors.h.
13909         * lto-compress.c: Include toplev.h instead of errors.h.
13910         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13911         ira.o, dbgcnt.o): Update dependencies.
13912
13913 2010-05-22  Richard Guenther  <rguenther@suse.de>
13914
13915         * gimple.c (gimple_types_compatible_p): Check type qualifications
13916         before merging pointer to complete and pointer to incomplete type.
13917         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13918         we use our own resolution algorithm.  The gold linker plugin
13919         doesn't do the job we want it to do here.
13920
13921 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13922
13923         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13924         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13925         (sparc_mode_dependent_address_p): New function.
13926
13927 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13928
13929         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13930
13931         * timevar.c: Do not include any core headers.
13932         (timevar_print): De-i18n-ize.
13933         (print_time): Likewise.
13934         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13935
13936 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13937
13938         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13939         langhooks-def.h.
13940         (diagnostic_initialize): Initialize x_data not last_function.
13941         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13942         (default_diagnostic_starter): Call
13943         diagnostic_report_current_module not
13944         diagnostic_report_current_function.
13945         (diagnostic_report_diagnostic): Initialize x_data not
13946         abstract_origin.
13947         (verbatim): Likewise.
13948         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13949         x_data.
13950         (struct diagnostic_context): Change last_function to x_data.
13951         (diagnostic_auxiliary_data): Replace with
13952         diagnostic_context_auxiliary_data and
13953         diagnostic_info_auxiliary_data.
13954         (diagnostic_last_function_changed, diagnostic_set_last_function,
13955         diagnostic_report_current_function): Move to tree-diagnostic.h.
13956         (print_declaration, dump_generic_node, print_generic_stmt,
13957         print_generic_stmt_indented, print_generic_expr,
13958         print_generic_decl, debug_c_tree, dump_omp_clauses,
13959         print_call_name, debug_generic_expr, debug_generic_stmt,
13960         debug_tree_chain, default_tree_printer): Move to
13961         tree-pretty-print.h.
13962         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13963         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13964         gimple-pretty-print.h.
13965         * pretty-print.c: Don't include tree.h
13966         (pp_base_format): Don't handle %K here.
13967         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13968         * pretty-print.h (text_info): Change abstract_origin to x_data.
13969         (pp_tree_identifier, pp_unsupported_tree,
13970         pp_base_tree_identifier): Move to tree-pretty-print.h.
13971         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13972         tree-pretty-print.h: New files.
13973         * tree-pretty-print.c: Include tree-pretty-print.h.
13974         (percent_K_format): New.  Moved from pretty-print.c.
13975         (pp_base_tree_identifier): Move from pretty-print.c.
13976         * c-objc-common.c: Include tree-pretty-print.h.
13977         (c_tree_printer): Handle %K here.
13978         * langhooks.c: Include tree-diagnostic.h.
13979         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13980         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13981         (default_tree_printer): Handle %K using percent_K_format.
13982         (general_init): Use default_tree_diagnostic_starter.
13983         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13984         (free_lang_data): Use default_tree_diagnostic_starter.
13985         * c-pretty-print.c: Include tree-pretty-print.h.
13986         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13987         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13988         * dwarf2out.c: Include tree-pretty-print.h.
13989         * except.c: Include tree-pretty-print.h.
13990         * gimple-pretty-print.c: Include tree-pretty-print.h and
13991         gimple-pretty-print.h.
13992         * gimplify.c: Include tree-pretty-print.h.
13993         * graphite-poly.c: Include tree-pretty-print.h and
13994         gimple-pretty-print.h.
13995         * ipa-cp.c: Include tree-pretty-print.h.
13996         * ipa-inline.c: Include gimple-pretty-print.h.
13997         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13998         * ipa-pure-const.c: Include gimple-pretty-print.h.
13999         * ipa-struct-reorg.c: Include tree-pretty-print.h and
14000         gimple-pretty-print.h.
14001         * ipa-type-escape.c: Include tree-pretty-print.h.
14002         * print-rtl.c: Include tree-pretty-print.h.
14003         * print-tree.c: Include gimple-pretty-print.h.
14004         * sese.c: Include tree-pretty-print.h.
14005         * tree-affine.c: Include tree-pretty-print.h.
14006         * tree-browser.c: Include tree-pretty-print.h.
14007         * tree-call-cdce.c: Include gimple-pretty-print.h.
14008         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
14009         * tree-chrec.c: Include tree-pretty-print.h.
14010         * tree-data-ref.c: Include tree-pretty-print.h and
14011         gimple-pretty-print.h.
14012         * tree-dfa.c: Include tree-pretty-print.h.
14013         * tree-if-conv.c: Include tree-pretty-print.h and
14014         gimple-pretty-print.h.
14015         * tree-inline.c: Include tree-pretty-print.h.
14016         * tree-into-ssa.c: Include tree-pretty-print.h and
14017         gimple-pretty-print.h.
14018         * tree-nrv.c: Include tree-pretty-print.h.
14019         * tree-object-size.c: Include tree-pretty-print.h and
14020         gimple-pretty-print.h.
14021         * tree-outof-ssa.c: Include tree-pretty-print.h and
14022         gimple-pretty-print.h.
14023         * tree-parloops.c: Include tree-pretty-print.h and
14024         gimple-pretty-print.h.
14025         * tree-predcom.c: Include tree-pretty-print.h and
14026         gimple-pretty-print.h.
14027         * tree-scalar-evolution.c: Include tree-pretty-print.h and
14028         gimple-pretty-print.h.
14029         * tree-sra.c: Include tree-pretty-print.h.
14030         * tree-ssa-address.c: Include tree-pretty-print.h.
14031         * tree-ssa-alias.c: Include tree-pretty-print.h.
14032         * tree-ssa-ccp.c: Include tree-pretty-print.h and
14033         gimple-pretty-print.h.
14034         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
14035         * tree-ssa-copy.c: Include tree-pretty-print.h and
14036         gimple-pretty-print.h.
14037         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
14038         * tree-ssa-dce.c: Include tree-pretty-print.h and
14039         gimple-pretty-print.h.
14040         * tree-ssa-dom.c: Include tree-pretty-print.h and
14041         gimple-pretty-print.h.
14042         * tree-ssa-dse.c: Include gimple-pretty-print.h.
14043         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
14044         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
14045         * tree-ssa-live.c: Include tree-pretty-print.h and
14046         gimple-pretty-print.h.
14047         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
14048         gimple-pretty-print.h.
14049         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
14050         gimple-pretty-print.h.
14051         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
14052         gimple-pretty-print.h.
14053         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
14054         gimple-pretty-print.h.
14055         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
14056         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
14057         * tree-ssa-operands.c: Include tree-pretty-print.h and
14058         gimple-pretty-print.h.
14059         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
14060         gimple-pretty-print.h.
14061         * tree-ssa-pre.c: Include tree-pretty-print.h and
14062         gimple-pretty-print.h.
14063         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
14064         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
14065         gimple-pretty-print.h.
14066         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
14067         gimple-pretty-print.h.
14068         * tree-ssa-sink.c: Include gimple-pretty-print.h.
14069         * tree-ssa-ter.c: Include tree-pretty-print.h and
14070         gimple-pretty-print.h.
14071         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
14072         * tree-ssa.c: Include tree-pretty-print.h and
14073         gimple-pretty-print.h.
14074         * tree-stdarg.c: Include gimple-pretty-print.h.
14075         * tree-switch-conversion.c: Include gimple-pretty-print.h.
14076         * tree-tailcall.c: Include tree-pretty-print.h and
14077         gimple-pretty-print.h.
14078         * tree-vect-data-refs.c: Include tree-pretty-print.h and
14079         gimple-pretty-print.h.
14080         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
14081         gimple-pretty-print.h.
14082         * tree-vect-loop.c: Include tree-pretty-print.h and
14083         gimple-pretty-print.h.
14084         * tree-vect-patterns.c: Include gimple-pretty-print.h.
14085         * tree-vect-slp.c: Include tree-pretty-print.h and
14086         gimple-pretty-print.h.
14087         * tree-vect-stmts.c: Include tree-pretty-print.h and
14088         gimple-pretty-print.h.
14089         * tree-vectorizer.c: Include tree-pretty-print.h.
14090         * tree-vrp.c: Include tree-pretty-print.h and
14091         gimple-pretty-print.h.
14092         * value-prof.c: Include tree-pretty-print.h and
14093         gimple-pretty-print.h.
14094         * var-tracking.c: Include tree-pretty-print.h.
14095         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
14096         (tree-diagnostic.o): New dependencies.
14097         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
14098         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
14099         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
14100         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
14101         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
14102         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
14103         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
14104         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
14105         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
14106         tree-ssa-address.o, tree-ssa-loop-niter.o,
14107         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
14108         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
14109         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
14110         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
14111         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
14112         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
14113         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
14114         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
14115         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
14116         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
14117         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
14118         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
14119         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
14120         tree-switch-conversion.o, var-tracking.o, value-prof.o,
14121         cfgexpand.o, pretty-print.o): Update dependencies.
14122
14123 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
14124
14125         * tree-ssa-structalias.c: Remove tm_p.h from include.
14126
14127 2010-05-21  Jeff Law  <law@redhat.com>
14128
14129         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
14130
14131 2010-05-21  Jason Merrill  <jason@redhat.com>
14132
14133         * tree-eh.c (cleanup_is_dead_in): New.
14134         (lower_try_finally): Don't generate a dead cleanup region.
14135         (lower_cleanup): Likewise.
14136
14137 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
14138
14139         PR debug/44223
14140         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
14141         unchain each use from the cyclic next_regno_use chain first.
14142
14143 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
14144
14145         * real: Do not include gmp.h, mpfr.h, and mpc.h.
14146         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
14147         (real_value_negate, real_value_abs): New prototypes.
14148         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
14149         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
14150         new include file for interface between MPFR and REAL_VALUE_TYPE.
14151         * real.c: Include realmpfr.h.
14152         (real_arithmetic2): Remove legacy function.
14153         (real_value_negate): New.
14154         (real_value_abs): New.
14155         (mfpr_from_real, real_from_mpfr): Move from here...
14156         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
14157         * builtins.c: Include realmpfr.h.
14158         * fold-const.c: Include realmpfr.h.
14159         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
14160         (fold_negate_const): Likewise.
14161         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
14162         * toplev.c: Include realmpfr.h.
14163         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
14164         and real_value_negate.
14165         * fixed-value.c (check_real_for_fixed_mode): Likewise.
14166         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
14167         (vfp3_const_double_index): Likewise.
14168         (arm_print_operand): Likewise.
14169         * Makefile.in: Update dependencies.
14170
14171 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14172
14173         * config/s390/s390.c (override_options): Increase the default
14174         of max-completely-peel-times.
14175
14176 2010-05-21  Julian Brown  <julian@codesourcery.com>
14177             Mark Mitchell  <mark@codesourcery.com>
14178
14179         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
14180         sibling calls for Thumb-1.
14181         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
14182         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
14183         Thumb-2.
14184         (*call_insn, *call_value_insn): Don't use for Thumb-2.
14185         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
14186         for Thumb-2.
14187         (return): New expander.
14188         (*arm_return): New name for ARM return insn.
14189         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
14190
14191 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
14192
14193         * config.gcc (sparc64-*-rtems*): New target.
14194
14195 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
14196
14197         * tree.c (build_function_decl_skip_args): Fix grammar.
14198         (build_function_type_list_1): Fix typos, adjust formatting.
14199
14200 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
14201
14202         * tree.h: Include real.h and fixed-value.h as basic datatypes.
14203         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
14204         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
14205         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
14206         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
14207         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
14208         tree-pretty-print.c, tree-loop-distribution.c,
14209         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
14210         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
14211         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
14212         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
14213         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
14214         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
14215         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
14216         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
14217         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
14218         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
14219         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
14220         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
14221         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
14222         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
14223         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
14224         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
14225         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
14226         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
14227         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
14228         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
14229         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
14230         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
14231         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
14232         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
14233         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
14234         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
14235         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
14236         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
14237         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
14238         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
14239         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
14240         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
14241         config/score/score7.c, config/score/score.c, config/arm/arm.c,
14242         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
14243         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
14244         config/bfin/bfin.c: Clean up redundant includes.
14245         * Makefile.in: Update accordingly.
14246
14247 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
14248
14249         PR middle-end/44204
14250         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
14251         statement has no arguments.
14252
14253 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
14254
14255         PR/44139
14256         * varasm.c (emutls_decl): Merge attributes to new decl.
14257
14258 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14259
14260         PR middle-end/44101
14261         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
14262         around the uniquized constructor if its type requires a conversion.
14263
14264 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
14265
14266         PR debug/44205
14267         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
14268         at -O0 goto_locus of any of the incoming edges differs from
14269         goto_locus of outgoing edge, or gimple_location of any of the
14270         labels differs.
14271
14272 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
14273
14274         * ira.c (ira_non_ordered_class_hard_regs): Define.
14275         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
14276         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
14277         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
14278         cost of unaligned hard regs when allocating multi-reg pseudos.
14279
14280 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
14281
14282         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
14283         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
14284         for TARGET_NO_FLOAT.
14285         * config/mips/mips.c (mips_file_start): Expand conditional expression
14286         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
14287         (mips_override_options): Move -mno-float override -msoft-float and
14288         -mhard-float.
14289         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
14290         Condition(TARGET_SUPPORTS_NO_FLOAT).
14291         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
14292         __mips_no_float here.
14293         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
14294         (TARGET_SUPPORTS_NO_FLOAT): Define.
14295         * config/mips/sdemtk.opt: Delete.
14296
14297 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
14298
14299         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
14300
14301 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
14302
14303         PR target/43733
14304         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
14305         * configure: Regenerate.
14306         * config.in: Regenerate.
14307         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
14308         instead of sahf only for 64bit targets.
14309
14310 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14311
14312         PR debug/44178
14313         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
14314         setup_ref_regs for DEBUG_INSNs.
14315
14316 2010-05-20  Jan Hubicka  <jh@suse.cz>
14317
14318         PR middle-end/44197
14319         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
14320
14321 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14322
14323         PR bootstrap/43870
14324         * df-scan.c (df_ref_compare): Stabilize sort.
14325
14326 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14327
14328         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
14329         argument.  Don't use DW_OP_piece if offset is non-zero,
14330         put offset into second DW_OP_bit_piece argument.
14331         (dw_sra_loc_expr): Adjust callers.  For memory expressions
14332         compute offset.
14333
14334 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
14335
14336         PR target/44202
14337         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
14338         settings for 16-bit-constant "addo" alternative.
14339
14340 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
14341
14342         * config/mips/mips-dsp.md (add<DSPV:mode>3,
14343         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
14344
14345         PR target/43764
14346         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
14347         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
14348         Use it.
14349
14350 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
14351
14352         * diagnostic.c (FLOAT, FFS): Don't undefine.
14353         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
14354         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
14355         include ordering.
14356
14357 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
14358
14359         * combine.c (propagate_for_debug): Call make_compound_operation
14360         on the source value.
14361         (try_combine): When implementing a split chosen by find_split_point,
14362         either copy i2src or set it to null.  Assert that i2src is not null
14363         before substituting into CALL_INSN_FUNCTION_USAGE.
14364
14365 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
14366
14367         * double-int.h (double_int_ior): New function.
14368         * tree.h (build_int_cst_wide_type): Remove.
14369         * tree.c (build_int_cst_wide_type): Remove.
14370         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
14371         of build_int_cst_wide_type.
14372         * stor-layout.c (set_sizetype): (Ditto.).
14373         * dojump.c (do_jump): Use build_int_cstu instead of
14374         build_int_cst_wide_type.
14375
14376 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14377
14378         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
14379         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
14380         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
14381         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
14382         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
14383         propagate the 'data' argument to copy_tree_r.
14384         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
14385         Propagate 'data' argument to walk_tree.
14386         (copy_if_shared): New function.
14387         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
14388         (unmark_visited): New function.
14389         (unshare_body): Call copy_if_shared instead of doing it manually.
14390         (unvisit_body): Call unmark_visited instead of doing it manually.
14391
14392 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
14393
14394         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
14395         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
14396         * hooks.c: Likewise.
14397         * target-def.h (TARGET_FOLD_BUILTIN): Define to
14398         hook_tree_tree_int_treep_bool_null.
14399         * target.h (struct gcc_target): Update signature of fold_builtin
14400         field.
14401         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
14402         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
14403         instead of the call expression.
14404         (fold_builtin_call_array): Pass n and argarray directly.
14405         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
14406         consing a list.
14407         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
14408         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
14409         `i' and use it in place of `arity'.
14410         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
14411         Dereference `args' directly.
14412         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
14413
14414 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14415
14416         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14417         3dnow, sse3, sse2.
14418         (Directives): Document optional dg-require-effective-target
14419         selector.
14420
14421 2010-05-19  Richard Guenther  <rguenther@suse.de>
14422
14423         PR lto/44196
14424         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
14425
14426 2010-05-19  Richard Guenther  <rguenther@suse.de>
14427
14428         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
14429         * common.opt (fwhopr=): New.
14430         * opts.c (common_handle_option): Handle OPT_fwhopr.
14431         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
14432         * collect2.c (main): Match -fwhopr*.
14433         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
14434         Execute ltrans stage in parallel when jobs is bigger than 1.
14435
14436 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14437
14438         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14439         pentiumpro on Solaris 8/x86 with Sun as.
14440         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
14441         hidden alias bug.
14442         (gcc_cv_as_ix86_quad): Check for .quad directive.
14443         * configure: Regenerate.
14444         * config.in: Regenerate.
14445         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
14446
14447 2010-05-19  Martin Jambor  <mjambor@suse.cz>
14448
14449         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
14450         also for indirect edges.  Actual printing moved...
14451         (ipa_print_node_jump_functions_for_edge): ...here.
14452         (ipa_compute_jump_functions): Renamed to
14453         ipa_compute_jump_functions_for_edge and made static.
14454         (ipa_compute_jump_functions): New function.
14455         (make_edge_direct_to_target): Check if the number of arguments on
14456         the newly direct edge is the same as the number of parametrs of
14457         the callee.
14458         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
14459         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
14460         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14461         analysis functions unconditionally, call the new
14462         ipa_analyze_params_uses on the node instead of every edge.
14463
14464 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
14465
14466         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
14467         to tree.
14468         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
14469         also checks for a constant int vs.  non-constant but
14470         loop-invariant steps.
14471         (find_or_create_group): Change the sort algorithm to only consider
14472         steps that are constant ints.
14473         (idx_analyze_ref): Adopt code to handle a tree instead of a
14474         HOST_WIDE_INT for step.
14475         (gather_memory_references_ref): Handle tree instead of int and be
14476         prepared to see a NULL_TREE.
14477         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
14478         prefetches if the step cannot be calculated at compile time.
14479         (issue_prefetch_ref): Issue prefetches for non-constant but
14480         loop-invariant steps.
14481
14482 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14483
14484         Revert:
14485         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14486
14487         * tree.h (build_call_list): Remove.
14488         * tree.c (build_call_list): Remove.
14489
14490 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14491
14492         * tree.h (build_call_list): Remove.
14493         * tree.c (build_call_list): Remove.
14494
14495 2010-05-18  Jan Hubicka  <jh@suse.cz>
14496
14497         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
14498
14499 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
14500
14501         PR rtl-optimization/43332
14502         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
14503
14504 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
14505
14506         * tree.h (build_int_cstu): Implement as static inline.
14507         * tree.c (build_int_cstu): Remove function.
14508         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
14509         sign extended.
14510
14511 2010-05-18  Richard Guenther  <rguenther@suse.de>
14512
14513         PR lto/44143
14514         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
14515         (debug): Initialize from -save-temps.
14516         (collect_execute): Print command-line when verbose.
14517         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
14518         for ltrans invocation.  Produce -dumpbase flag again.
14519         (process_args): Remove.
14520         (main): Simplify.
14521         * collect2.c (maybe_run_lto_and_relink): Only pass object
14522         files to lto-wrapper.
14523         * gcc.c (LINK_COMMAND_SPEC): Likewise.
14524
14525 2010-05-18  Jan Hubicka  <jh@suse.cz>
14526
14527         * opts.c (decode_options): Do not disable whopr at ipa_cp.
14528         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
14529
14530 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14531
14532         PR lto/44184
14533         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
14534         in a GIMPLE_ASM.
14535         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
14536         in a GIMPLE_ASM.
14537
14538 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
14539
14540         PR debug/41371
14541         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
14542         rtx_equal_p inline.
14543
14544 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14545
14546         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
14547         lto-macho as lto_binary_reader.
14548
14549         * darwin.c (darwin_asm_named_section): Do not add assembler comment
14550         after .section directive; just print it before the directive instead.
14551
14552 2010-05-17  Jan Hubicka  <jh@suse.cz>
14553
14554         * cgraph.c (cgraph_create_virtual_clone): Only check
14555         versionable_function_p when not in wpa and checking is enabled.
14556         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
14557         there are no more functions to materialize.
14558
14559 2010-05-17  Jan Hubicka  <jh@suse.cz>
14560
14561         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
14562         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
14563         New functions.
14564         (output_cgraph): Call output_cgraph_opt_summary.
14565         (input_cgrpah): Call input_cgraph_opt_summary.
14566         (output_cgraph_opt_summary_p, output_node_opt_summary,
14567         input_node_opt_summary, input_cgraph_opt_section): New functions.
14568         * lto-section-in.c (lto_section_name): Add cgraphopt.
14569         * tree-inline.c (tree_function_versioning): Handle parm_num.
14570         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
14571         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
14572
14573 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14574
14575         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
14576         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
14577         the insn to prefetch ratio heuristic to loops with known trip count.
14578
14579 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14580
14581         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
14582         (schedule_prefetches): Do not generate a prefetch if the unroll factor
14583         is far from what is required by the prefetch.
14584
14585 2010-05-17  Jan Hubicka  <jh@suse.cz>
14586
14587         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
14588         (ipcp_estimate_growth): Likewise.
14589         (ipcp_const_param_count): Likewise.
14590         (ipcp_insert_stage): Likewise.
14591         * ipa-prop.c (visit_load_for_mod_analysis): New function.
14592         (visit_store_addr_for_mod_analysis): Set used flag.
14593         (ipa_detect_param_modifications): Set used flag for SSE params;
14594         update use of walk_stmt_load_store_addr_ops.
14595         (ipa_print_node_params): Print used flag.
14596         (ipa_write_node_info): Stream used flag.
14597         (ipa_read_node_info): Likewise.
14598         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
14599         (ipa_is_param_used): New function.
14600         (lto_ipa_fixup_call_notes): Remove unused declaration.
14601
14602 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14603
14604         PR target/44074
14605         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
14606         * configure: Regenerate.
14607         * config.in: Regenerate.
14608         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
14609         !HAVE_AS_IX86_REP_LOCK_PREFIX.
14610         Don't emit whitespace.
14611         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
14612         (*rep_movsi): Likewise.
14613         (*rep_movsi_rex64): Likewise.
14614         (*rep_movqi): Likewise.
14615         (*rep_movqi_rex64): Likewise.
14616         (*rep_stosdi_rex64): Likewise.
14617         (*rep_stossi): Likewise.
14618         (*rep_stossi_rex64): Likewise.
14619         (*rep_stosqi): Likewise.
14620         (*rep_stosqi_rex64): Likewise.
14621         (*cmpstrnqi_nz_1): Use {%;} after repz.
14622         (*cmpstrnqi_nz_rex_1): Likewise.
14623         (*cmpstrnqi_1): Likewise.
14624         (*cmpstrnqi_rex_1): Likewise.
14625         (*strlenqi_1): Use {%;} after repnz.
14626         (*strlenqi_rex_1): Likewise.
14627         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14628         (*sync_compare_and_swap<mode>): Likewise.
14629         (sync_double_compare_and_swap<mode>): Likewise.
14630         (*sync_double_compare_and_swapdi_pic): Likewise.
14631         (sync_old_add<mode>): Likewise.
14632         (sync_add<mode>): Likewise.
14633         (sync_sub<mode>): Likewise.
14634         (sync_<code><mode>): Likewise.
14635
14636 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14637
14638         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14639         otr_token and polymorphic.
14640         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14641         (cgraph_clone_edge): Copy the above fields.
14642         * tree.c (get_binfo_at_offset): New function.
14643         * tree.h (get_binfo_at_offset): Declare.
14644         * ipa-prop.h (enum jump_func_type): Added known_type jump function
14645         type, reordered items, updated comments.
14646         (union jump_func_value): Added base_type field, reordered fields.
14647         (enum ipa_lattice_type): Moved down in the file.
14648         (struct ipa_param_descriptor): New field polymorphic.
14649         (ipa_is_param_polymorphic): New function.
14650         * ipa-prop.c: Include gimple.h and gimple-fold.h.
14651         (ipa_print_node_jump_functions): Print known type jump functions.
14652         (compute_complex_pass_through): Renamed to...
14653         (compute_complex_assign_jump_func): this.
14654         (compute_complex_ancestor_jump_func): New function.
14655         (compute_known_type_jump_func): Likewise.
14656         (compute_scalar_jump_functions): Create known type and complex ancestor
14657         jump functions.
14658         (ipa_note_param_call): New parameter polymorphic, set the corresponding
14659         flag in the call note accordingly.
14660         (ipa_analyze_call_uses): Renamed to...
14661         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
14662         variable var only in the block where it is used.
14663         (ipa_analyze_virtual_call_uses): New function.
14664         (ipa_analyze_call_uses): Likewise.
14665         (combine_known_type_and_ancestor_jfs): Likewise.
14666         (update_jump_functions_after_inlining): Implemented handling of a
14667         number of new jump function types combination.
14668         (print_edge_addition_message): Removed.
14669         (make_edge_direct_to_target): New function.
14670         (try_make_edge_direct_simple_call): Likewise.
14671         (try_make_edge_direct_virtual_call): Likewise.
14672         (update_call_notes_after_inlining): Renamed to...
14673         (update_indirect_edges_after_inlining): this.  Moved edge creation for
14674         indirect calls to try_make_edge_direct_simple_call, also calls
14675         try_make_edge_direct_virtual_call for virtual calls.
14676         (ipa_print_node_params): Changed the header message.
14677         (ipa_write_jump_function): Stream also known type jump functions.
14678         (ipa_read_jump_function): Likewise.
14679         (ipa_write_indirect_edge_info): Stream new fields in
14680         cgraph_indirect_call_info.
14681         (ipa_read_indirect_edge_info): Likewise.
14682         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14683         GIMPLE_FOLD_H.
14684
14685 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14686
14687         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14688
14689 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14690
14691         * tree.h (CALL_EXPR_ARGS): Delete.
14692         (call_expr_arglist): Delete.
14693         * tree.c (call_expr_arglist): Delete.
14694         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14695         targetm.fold_builtin.
14696         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14697         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14698         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14699         arglist parameter.  Use CALL_EXPR_ARG.
14700         (picochip_expand_builtin_3op): Likewise.
14701         (picochip_expand_builtin_2opvoid): Likewise.
14702         (picochip_expand_array_get): Likewise.
14703         (picochip_expand_array_put): Likewise.
14704         (picochip_expand_array_testport): Likewise.
14705         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
14706         rather than arglist.
14707         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14708         CALL_EXPR_ARGS.
14709         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14710         than TREE_VALUE and TREE_CHAIN.
14711         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14712         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14713         the arglist.
14714
14715 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14716
14717         PR bootstrap/42347
14718         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14719         to have no fallthru edge.
14720
14721         PR middle-end/44102
14722         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14723         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14724         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14725         add BARRIER after previous bb if needed.
14726
14727 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14728
14729         * tree.c (build_function_type_list_1): Remove bogus assert condition.
14730
14731 2010-05-17  Alan Modra  <amodra@gmail.com>
14732
14733         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14734         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
14735         with copy_reg rtx param.
14736         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14737         Correct cases where code for ABI_V4 did not initialise the reg
14738         used to access frame.  Also leave frame_reg_rtx as sp for large
14739         frames that save no regs.
14740
14741 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14742
14743         PR middle-end/44133
14744         * tree-sra.c (create_access_replacement): New parameter rename, mark
14745         the replaement for renaming only when it is true.
14746         (get_access_replacement): Pass true in the rename parameter of
14747         create_access_replacement.
14748         (get_unrenamed_access_replacement): New function.
14749         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14750         replacement declaration from it.
14751
14752 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
14753
14754         * function.c (try_fit_stack_local, add_frame_space): New static
14755         functions.
14756         (assign_stack_local_1): Use them.  Look for opportunities to use
14757         space previously wasted on alignment.
14758         * function.h (struct frame_space): New.
14759         (struct rtl_data): Add FRAME_SPACE_LIST member.
14760         * reload1.c (something_was_spilled): New static variable.
14761         (alter_reg): Set it.
14762         (reload): Test it in addition to testing if the frame size changed.
14763
14764 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
14765
14766         * config/s390/s390.c: Define sane prefetch settings and activate
14767         flag_prefetch_loop_arrays on -O3.
14768         * config/s390/s390.h: Declare that read can use write prefetch.
14769
14770 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14771
14772         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14773         build.
14774
14775 2010-05-16  Jan Hubicka  <jh@suse.cz>
14776
14777         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14778         function body; do not check stdarg field of struct function.
14779
14780 2010-05-16  Jan Hubicka  <jh@suse.cz>
14781
14782         * cgraph.c (dump_cgraph_node): Dump versionable flag.
14783         * cgraph.h (cgraph_local_info): Add versionable flag.
14784         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14785         (ipcp_versionable_function_p): Use it.
14786         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14787         versionable flag.
14788
14789 2010-05-16  Jan Hubicka  <jh@suse.cz>
14790
14791         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14792         clone into hash when it is different from orig.
14793         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14794         * cgraph.h (cgraph_clone_node): Update prototype.
14795         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14796         (lto_cgraph_encoder_delete): Delete body map.
14797         (lto_cgraph_encoder_size): Move to header.
14798         (lto_cgraph_encoder_encode_body_p,
14799         lto_set_cgraph_encoder_encode_body): New.
14800         (lto_output_node): Do not take written_decls argument; output clone_of
14801         pointer.
14802         (add_node_to): Add include_body_argument; call
14803         lto_set_cgraph_encoder_encode_body on master of the clone.
14804         (add_references): Update use of add_node_to.
14805         (compute_ltrans_boundary): Likewise.
14806         (output_cgraph): Do not create written_decls bitmap.
14807         (input_node): Take nodes argument; stream in clone_of correctly.
14808         (input_cgraph_1): Update use of input_node.
14809         * lto-streamer-out.c (lto_output): Use encoder info to decide
14810         what bodies to output.
14811         * ipa-inline.c (cgraph_clone_inlined_nodes,
14812         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14813         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14814         (lto_cgraph_encoder_size): Define here.
14815         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14816         Declare.
14817
14818 2010-05-16  Richard Guenther  <rguenther@suse.de>
14819
14820         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14821         -fipa-type-escape.
14822         * ipa-type-escape.c (gate_type_escape_vars): Run when
14823         -fipa-struct-reorg runs.
14824         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14825         * common.opt (fipa-type-escape): Remove.
14826
14827 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14828
14829         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14830         (decode_options): Likewise.
14831         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14832
14833 2010-05-16  Jan Hubicka  <jh@suse.cz>
14834
14835         * ipa.c (function_and_variable_visibility): Also bring local all
14836         aliases.
14837
14838 2010-05-16  Richard Guenther  <rguenther@suse.de>
14839
14840         * alias.c (nonoverlapping_memrefs_p): Remove use of
14841         IPA type-escape information.
14842
14843 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14844
14845         * c-common.c (c_common_reswords): Add _Static_assert for C.
14846         * c-parser.c (c_token_starts_declaration,
14847         c_parser_next_token_starts_declaration,
14848         c_parser_static_assert_declaration_no_semi,
14849         c_parser_static_assert_declaration): New.
14850         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14851         Handle static assertions if static_assert_ok.
14852         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14853         c_parser_compound_statement_nostart, c_parser_label,
14854         c_parser_for_statement, c_parser_objc_methodprotolist,
14855         c_parser_omp_for_loop): All callers of
14856         c_parser_declaration_or_fndef changed.
14857         (c_parser_struct_declaration): Handle static assertions.
14858         (c_parser_compound_statement_nostart): Use
14859         c_parser_next_token_starts_declaration and
14860         c_token_starts_declaration to detect start of declarations.
14861         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14862         Likewise.
14863
14864 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14865
14866         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14867         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14868         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14869         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14870         (mmix_function_outgoing_value): Rename to...
14871         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14872         (mmix_function_value_regno_p): Make static.
14873         (mmix_libcall_value): New function.
14874         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14875         mmix_function_value_regno_p): Remove declaration.
14876
14877 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14878
14879         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14880         BUILT_IN_ALLOCA if stack checking is enabled.
14881
14882 2010-05-16  Richard Guenther  <rguenther@suse.de>
14883
14884         * var-tracking.c (vars_copy_1): Inline ...
14885         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14886         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14887         (variable_merge_over_cur): Adjust.  Merge asserts.
14888         (variable_merge_over_src): Likewise.
14889         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14890         (variable_post_merge_new_vals): Merge asserts.
14891         (variable_post_merge_perm_vals): Likewise.
14892         (find_mem_expr_in_1pdv): Likewise.
14893         (dataflow_set_different_value): Remove.
14894         (onepart_variable_different_p): Merge asserts.
14895         (variable_different_p): Likewise.
14896         (dataflow_set_different_1): Inline ...
14897         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14898         (emit_notes_for_differences_1): Merge asserts.
14899
14900 2010-05-16  Richard Guenther  <rguenther@suse.de>
14901
14902         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14903         * optabs.c (libfunc_decl_hash): Likewise.
14904         * varasm.c (emutls_decl): Likewise.
14905
14906 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14907
14908         * c-decl.c: Don't include gimple.h.
14909         (merge_decls): Do not copy gimple_body.
14910
14911 2010-05-15  Jason Merrill  <jason@redhat.com>
14912
14913         * c.opt: Add -fnothrow-opt.
14914
14915 2010-05-15  Jan Hubicka  <jh@suse.cz>
14916
14917         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14918         analyzed.
14919         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14920
14921 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14922
14923         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14924         * Makefile.in: Add it.
14925         Fix all other Makefile dependencies for changes below.
14926         * tree.h: Include it instead of defining VEC primitives here.
14927         * gimple.h: Likewise.
14928         * rtl.h: Likewise.
14929         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14930         * except.h: Include vecir.h, break dependence on tree.h.
14931
14932         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14933         Move from here...
14934         * tree-iterator.c: ...to here.
14935         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14936
14937         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14938         tm_p.h.
14939         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14940         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14941         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14942         tree-mudflap.h, and target.h.
14943         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14944         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14945         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14946         Add FIXME for why gimple.h is still included (should be unnecessary
14947         since GCC 4.5 gimplification unit-at-a-time).
14948         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14949         * c-pragma.c: Add FIXME for why function.h needs to be included just
14950         for cfun, at front-end level.
14951         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14952         Do not include ggc.h, but include vecprim.h for VEC(char).
14953         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14954         Explain why target.h is included.
14955         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14956         Explain why gimple.h is included.
14957         * c-ppoutput.c: Do not include tm.h.
14958         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14959         * c-parses.c: Explain why rtl.h is included, and that this (and only
14960         this) is also why tm.h must be included.
14961         Do not include except.h.
14962         * c-lang.c: Do not include ggc.h.
14963
14964 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14965
14966         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14967
14968 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14969
14970         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14971         unions by default if those structs and unions have no tags.  Do
14972         not condition anonymous struct and unions handling on flag_iso.
14973         Allow anonymous structs and unions for C1X.
14974         (finish_struct): Do not diagnose lack of named fields when
14975         anonymous structs and unions present for C1X.  Accept flexible
14976         array members in structure with anonymous structs or unions but no
14977         directly named fields.
14978         * doc/extend.texi (Unnamed Fields): Update.
14979
14980 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14981
14982         * gimple.h (compare_field_offset): Rename into...
14983         (gimple_compare_field_offset): ...this.
14984         * gimple.c (compare_field_offset): Rename into...
14985         (gimple_compare_field_offset): ...this.  Compare the full access if
14986         the offset is self-referential.
14987         (gimple_types_compatible_p): Adjust for above renaming.
14988         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14989         DECL_NONADDRESSABLE_P flag of fields before merging them.
14990
14991 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14992
14993         * tree.h (ctor_to_list): Delete.
14994         * tree.c (ctor_to_list): Delete.
14995
14996 2010-05-15  Jan Hubicka  <jh@suse.cz>
14997
14998         * ipa-reference.c: Include toplev.h
14999         (is_proper_for_analysis): Only add to all_module_statics
15000         if it is allocated.
15001         (write_node_summary_p, stream_out_bitmap,
15002         ipa_reference_write_optimization_summary,
15003         ipa_reference_read_optimization_summary): New.
15004         (struct ipa_opt_pass_d pass_ipa_reference): Add
15005         optimization summary streaming.
15006         * lto-cgraph.c (referenced_from_this_partition_p,
15007         reachable_from_this_partition_p): New functions.
15008         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
15009         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
15010         * opts.c (decode_options): Enable ipa_reference.
15011         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
15012         * lto-streamer.h (referenced_from_this_partition_p,
15013         reachable_from_this_partition_p): Declare.
15014
15015 2010-05-15  Richard Guenther  <rguenther@suse.de>
15016
15017         PR tree-optimization/44038
15018         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
15019         taking the address of a V_C_E of a constant.
15020
15021 2010-05-14  Jan Hubicka  <jh@suse.cz>
15022
15023         * tree.h (memory_identifier_string): Remove.
15024         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
15025         (ipa_reference_global_vars_info_d): Remove statics_not_read and
15026         statics_not_written.
15027         (ipa_reference_optimization_summary_d): New structure.
15028         (ipa_reference_optimization_summary_t): New type and vector.
15029         (ipa_reference_vars_info_d): Embedd structures instead of using
15030         pointers.
15031         (reference_vars_to_consider): Remove out of GGC space.
15032         (module_statics_escape): Remove.
15033         (global_info_obstack): Rename to ...
15034         (optimization_summary_obstack): ... this one.
15035         (initialization_status_t): Remove.
15036         (memory_identifier_string): Remove.
15037         (get_reference_vars_info): Fix indenting.
15038         (set_reference_vars_info): Likewise.
15039         (get_reference_optimization_summary): New.
15040         (set_reference_optimization_summary): New.
15041         (get_global_reference_vars_info): Remove.
15042         (ipa_reference_get_read_global): Remove.
15043         (ipa_reference_get_written_global): Remove.
15044         (ipa_reference_get_not_read_global): Update.
15045         (ipa_reference_get_not_written_global): Update.
15046         (is_proper_for_analysis): Outlaw addressable.
15047         (propagate_bits): Update for new datastructures.
15048         (analyze_variable): Remove.
15049         (init_function_info): Update for new datastructures.
15050         (clean_function_local_data): Remove.
15051         (clean_function): Remove.
15052         (copy_global_bitmap): Use optimizations_summary_obstack.
15053         (duplicate_node_data): Duplicate optimization summary only.
15054         (remove_node_data): Remove optimization summary only.
15055         (generate_summary): Do not analyze variables; do not compute
15056         module_statics_escape; do not prune solutions by it.
15057         (read_write_all_from_decl): Fix typos in comments.
15058         (propagate): Doscover readonly and nonaddressable first;
15059         update for new datastructures; share global bitmaps.
15060         * ipa-reference.h (ipa_reference_get_read_global,
15061         ipa_reference_get_written_global): Remove.
15062         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
15063         * Makefile.in: Remove ipa-refereference from GT files.
15064
15065 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
15066
15067         PR debug/44112
15068         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
15069         for all SYMBOL_REF_DECLs.
15070
15071 2010-05-14  Jan Hubicka  <jh@suse.cz>
15072
15073         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
15074         (varpool_all_refs_explicit_p): New inline function.
15075         * ipa-reference.c: Update comment.
15076         (module_statics_written): Remove.
15077         (get_static_decl): Remove.
15078         (ipa_init): Do not initialize module_statics_written.
15079         (analyze_function): Likewise.
15080         (generate_summary): Likewise; do not compute module_statics_readonly
15081         and do not update variable flags.
15082         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
15083         * ipa.c: Inlucde flags.h
15084         (cgraph_local_node_p): New.
15085         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
15086         promote functions to local.
15087         (ipa_discover_readonly_nonaddressable_vars): New function.
15088         (function_and_variable_visibility): Use cgraph_local_node_p.
15089         * varpool.c (varpool_finalize_decl): Set force_output for
15090         DECL_PRESERVE_P vars.
15091
15092 2010-05-14  Jan Hubicka  <jh@suse.cz>
15093
15094         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
15095
15096 2010-05-14  Richard Guenther  <rguenther@suse.de>
15097
15098         PR tree-optimization/44119
15099         * tree-ssa-pre.c (eliminate): Properly mark replacement of
15100         a PHI node necessary.
15101
15102 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
15103
15104         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
15105
15106 2010-05-14  Jason Merrill  <jason@redhat.com>
15107
15108         PR c++/44127
15109         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
15110         (gimple_call_set_nothrow): New.
15111         * gimple.c (gimple_build_call_from_tree): Call it.
15112         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
15113
15114         PR c++/44127
15115         * gimplify.c (gimplify_seq_add_stmt): No longer static.
15116         * gimple.h: Declare it.
15117         * gimple.c (gimple_build_eh_filter): No ops.
15118
15119 2010-05-14  Jan Hubicka  <jh@suse.cz>
15120
15121         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
15122         nodes already in queue.
15123         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
15124         re-enqueueing node.
15125
15126 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
15127
15128         PR debug/44136
15129         * cfgexpand.c (expand_debug_expr): If non-memory op0
15130         has BLKmode, return NULL.
15131
15132 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
15133
15134         * config.gcc: Add support for --with-cpu option for bdver1.
15135         * config/i386/i386.h (TARGET_BDVER1): New macro.
15136         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
15137         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
15138         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
15139         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
15140         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
15141         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
15142         (processor_type): Add PROCESSOR_BDVER1.
15143         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
15144         processor_type in config/i386/i386.h.
15145         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
15146         movaps <reg, reg> instead of movapd <reg, reg> when replacing
15147         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
15148         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
15149         to emit packed xor instead of packed double/packed integer
15150         xor for SSE and AVX when moving a zero value.
15151         * config/i386/sse.md: Add check for
15152         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
15153         movapd/movdqa for SSE and AVX.
15154         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
15155         single logical operations i.e and, or and xor instead of packed double
15156         logical operations for SSE and AVX.
15157         * config/i386/i386-c.c (ix86_target_macros_internal):
15158         Add PROCESSOR_BDVER1.
15159         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
15160         (has_fma4, has_xop): New.
15161         * config/i386/i386.c (bdver1_cost): New variable.
15162         (m_BDVER1): New macro.
15163         (m_AMD_MULTIPLE): Add m_BDVER1.
15164         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
15165         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
15166         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
15167         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
15168         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
15169         x86_tune_sse_partial_reg_dependency,
15170         x86_tune_sse_unaligned_load_optimal,
15171         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
15172         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
15173         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
15174         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
15175         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
15176         Enable/disable for bdver1.
15177         (processor_target_table): Add bdver1_cost.
15178         (cpu_names): Add bdver1.
15179         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
15180          processor_alias_table.
15181         (ix86_expand_vector_move_misalign): Change.
15182         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
15183         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
15184         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
15185         of movupd/movdqu for SSE and AVX.
15186         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
15187         (ix86_tune_adjust_cost): Add code for bdver1.
15188         (standard_sse_constant_opcode): Add check for
15189         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
15190         of packed double xor for SSE and AVX.
15191
15192 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
15193
15194         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
15195         result to unsigned.
15196
15197 2010-05-14  Tristan Gingold  <gingold@adacore.com>
15198
15199         * toplev.c (default_debug_hooks): Remove this variable.
15200         (process_options): Remove assignments to default_debug_hooks.
15201
15202 2010-05-14  Martin Jambor  <mjambor@suse.cz>
15203
15204         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
15205         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
15206         * langhooks.h (struct lang_hooks_for_decls): Removed field
15207         fold_obj_type_ref.
15208         * tree.c (free_lang_data): Remove assignment to
15209         lang_hooks.fold_obj_type_ref.
15210         * tree.def (OBJ_TYPE_REF): Update comment.
15211
15212 2010-05-14  Richard Guenther  <rguenther@suse.de>
15213
15214         PR tree-optimization/44124
15215         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
15216
15217 2010-05-14  Alan Modra  <amodra@gmail.com>
15218
15219         PR target/44075
15220         * config/rs6000/rs6000.c (struct machine_function): Reorder
15221         fields for better packing.  Add lr_save_state.
15222         (rs6000_ra_ever_killed): Return lr_save_state if set.
15223         (rs6000_emit_eh_reg_restore): Set lr_save_state.
15224
15225 2010-05-13  Jan Hubicka  <jh@suse.cz>
15226
15227         * varpool.c (decide_is_variable_needed): Drop code checking
15228         TREE_SYMBOL_REFERENCED.
15229
15230 2010-05-13  Jan Hubicka  <jh@suse.cz>
15231
15232         * final.c (output_addr_const): Do not call mark_decl_referenced.
15233         * cgraphunit.c (process_function_and_variable_attributes): Use
15234         mark_needed_node dirrectly.
15235         (assemble_thunk): Do not call mark_decl_referenced.
15236
15237 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
15238
15239         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
15240
15241 2010-05-13  Jeff Law  <law@redhat.com>
15242
15243         * ira-conflicts.c (print_allocno_conflicts): New function broken out
15244         from...
15245         (print_conflicts): Call print_allocno_conflicts.
15246
15247 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
15248
15249         PR debug/44104
15250         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
15251         if it is NULL.
15252
15253 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
15254
15255         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
15256         t-mingw-w64 or t-mingw-w32 for multilib configuration.
15257         * config/i386/t-mingw-w32: New.
15258         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
15259
15260 2010-05-13  Martin Jambor  <mjambor@suse.cz>
15261
15262         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
15263         gimple-fold.c).
15264         * gimple-fold.c (get_base_binfo_for_type): New function.
15265         (gimple_get_relevant_ref_binfo): Likewise.
15266         (gimple_fold_obj_type_ref_known_binfo): Likewise.
15267         (gimple_fold_obj_type_ref): Likewise.
15268         (fold_gimple_call): Simplify condition for folding virtual calls
15269         and call gimple_fold_obj_type_ref.
15270         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
15271         (gimple_fold_obj_type_ref_known_binfo): Likewise.
15272
15273 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
15274
15275         * config/rs6000/rs6000-protos.h
15276         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
15277         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
15278         (rs6000_debug_mode_dependent_address)
15279         (rs6000_mode_dependent_address_ptr): Likewise.
15280
15281 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
15282
15283         PR debug/43983
15284         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
15285         by SRA.
15286         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
15287         * tree-sra.c (create_access_replacement): Call unshare_expr before
15288         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
15289         * dwarf2out.c: Include tree-flow.h.
15290         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
15291         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
15292         Handle DW_OP_bit_piece.
15293         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
15294         construct_piece_list, adjust_piece_list): New functions.
15295         (add_var_loc_to_decl): Handle SRA optimized variables.
15296         Adjust for var_loc_note to loc field renaming.
15297         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
15298         in VAR_LOCATION note.
15299         (new_loc_descr_op_bit_piece): New function.
15300         (dw_sra_loc_expr): New function.
15301         (dw_loc_list): Use it.  Don't handle the last range after the
15302         loop, handle it inside of the loop.  Adjust for var_loc_note
15303         to loc field renaming.
15304         (add_location_or_const_value_attribute): Only special case
15305         single entry loc lists if loc is NOTE_P.  Adjust for
15306         var_loc_note to loc field renaming.
15307         (dwarf2out_var_location): Don't set newloc->var_loc_note
15308         and newloc->next here.
15309
15310 2010-05-12  Jan Hubicka  <jh@suse.cz>
15311
15312         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
15313         flag.
15314         * cgraph.h (cgraph_only_called_directly_p,
15315         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
15316         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
15317         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
15318         (assemble
15319         * ipa.c (cgraph_remove_unreachable_nodes): Use
15320         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
15321         flags.
15322         * tree-inline.c (copy_bb): Check address_taken flag.
15323         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
15324         externally_visible flag.
15325
15326 2010-05-12  Jason Merrill  <jason@redhat.com>
15327
15328         PR bootstrap/44048
15329         PR target/44099
15330         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
15331         * sdbout.c (plain_type_1): Likewise.
15332         * dwarf2out.c (is_base_type): Likewise.
15333         (gen_type_die_with_usage): Likewise.  Generate
15334         DW_TAG_unspecified_type for any LANG_TYPE.
15335
15336 2010-05-12  Jan Hubicka  <jh@suse.cz>
15337
15338         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
15339         indrect edges too.
15340         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
15341         (cgraph_clone_edge): Update.
15342         (cgraph_node_remove_callees): Remove indirect calls too.
15343         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
15344         (cgraph_create_indirect_edge): Update prototype.
15345         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
15346         is_proper_for_analysis.
15347         (add_new_function, visited_nodes, function_insertion_hook_holder,
15348         get_local_reference_vars_info, mark_address_taken, mark_address,
15349         mark_load, mark_store, check_asm_memory_clobber, check_call,
15350         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
15351         (ipa_init): Do not initialize visited_nodes;
15352         function_insertion_hook_holder.
15353         (analyze_variable): Rewrite.
15354         (analyze_function): Rewrite.
15355         (copy_local_bitmap): Remove.
15356         (duplicate_node_dat): Do not duplicate local info.
15357         (generate_summary): Simplify to only walk cgraph.
15358         (write_node_summary_p, ipa_reference_write_summary,
15359         ipa_reference_read_summary): Remove.
15360         (propagate): Do not remove function insertion;
15361         generate summary.
15362         (pass_ipa_reference): NULLify summary handling fields.
15363         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
15364         (input_edge): Input ecf_flags.
15365         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
15366         (update_indirect_edges_after_inlining): Ignore edges with unknown
15367         param.
15368
15369 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
15370
15371         * implicit-zee.c: New file.
15372         * tree-pass.h (pass_implicit_zee): Declare.
15373         * passes.c (init_optimization_passes): Add zee pass.
15374         * common.opt (fzee): New flag.
15375         * timevar.def (TV_ZEE): Define.
15376         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
15377         and beyond.
15378         * Makefile.in (implicit-zee.o): Add new build file.
15379
15380 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15381             Nathan Froyd  <froydnj@codesourcery.com>
15382
15383         * c-common.c (sync_resolve_params): Remove write-only variable.
15384
15385 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
15386
15387         * target.h (struct gcc_target): Add mode_dependent_address_p field.
15388         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15389         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
15390         * targhooks.c (default_mode_dependent_address_p): New function.
15391         * targhooks.h (default_mode_dependent_address_p): Declare function.
15392         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15393         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
15394         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
15395         target hook. Change return type to bool.
15396         * recog.h (mode_dependent_address_p): Change return type to bool.
15397
15398 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15399             Nathan Froyd  <froydnj@codesourcery.com>
15400
15401         * tree-mudflap.c (build_function_type_0, build_function_type_1,
15402         build_function_type_2, build_function_type_3): Remove.
15403         (mudflap_init): Use build_function_type_list.
15404
15405 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15406             Nathan Froyd  <froydnj@codesourcery.com>
15407
15408         * coverage.c (build_fn_info_value): Call build_constructor instead of
15409         build_constructor_from_list.
15410         (build_ctr_info_value): Likewise.
15411         (build_gcov_info): Likewise.
15412
15413 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
15414
15415         * tree.c (build_constructor): Compute TREE_CONSTANT for the
15416         resultant constructor.
15417         (build_constructor_single): Don't set TREE_CONSTANT.
15418         (build_constructor_from_list): Don't compute TREE_CONSTANT.
15419
15420 2010-05-12  Jan Hubicka  <jh@suse.cz>
15421
15422         * cgraph.h (struct varpool_node): Add aux.
15423         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
15424         * varpool.c (varpool_remove_node): Do not remove initializer.
15425         (varpool_reset_queue): Export.
15426         (varpool_finalize_decl): Volatile vars are forced to be output.
15427         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
15428         replaced decl.
15429         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
15430         process_references, varpool_can_remove_if_no_refs): New functions.
15431         (cgraph_remove_unreachable_nodes): Handle variables too.
15432
15433 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15434
15435         PR target/44088
15436         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
15437
15438 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
15439
15440         PR middle-end/44085
15441         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
15442         change value of ORT_TASK.
15443         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
15444         (omp_notice_threadprivate_variable): New function.
15445         (omp_notice_variable): Call it for threadprivate variables.
15446         If enclosing ctx is a task, print enclosing task rather than
15447         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
15448         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
15449         if task has untied clause.
15450
15451         PR debug/42278
15452         * dwarf2out.c (base_type_die): Don't add name attribute here.
15453         (modified_type_die): Instead of sizetype use
15454         its underlying original type.  If a DW_TAG_base_type doesn't
15455         have name added, add __unknown__.
15456         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
15457         always call force_type_die instead.
15458
15459 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
15460
15461         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
15462         for __stack_chk_guard.
15463
15464 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15465
15466         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
15467         don't call start_source_file debug hook here...
15468         (finish_options): ... but here, after outputting predefined and
15469         command line defines and undefs.
15470
15471         PR middle-end/44071
15472         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
15473         no fallthru edge.
15474         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
15475         optimizing away empty bb with no successors, move over its
15476         footer chain to fallthru predecessor.
15477         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
15478         (rtl_split_edge): For asm goto call patch_jump_insn even if
15479         splitting fallthru edge.
15480
15481         PR c++/44059
15482         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
15483         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
15484         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
15485         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
15486         on DW.ref.* decls.
15487
15488         PR c++/44062
15489         * c-parser.c (c_parser_expression): Mark LHS of a comma
15490         expression as read if it is a decl, handled component or
15491         COMPOUND_EXPR with that on the RHS.
15492         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
15493         if it is a decl or handled component.
15494
15495 2010-05-11  Jan Hubicka  <jh@suse.cz>
15496
15497         * lto-symtab.c (lto_symtab_free): New function.
15498         * lto-streamer.h (lto_symtab_free): Declare.
15499
15500 2010-05-11  Jan Hubicka  <jh@suse.cz>
15501
15502         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
15503         that if function is needed it is reachable.
15504         (lto_output_node): See if it the function is reachable or referenced.
15505         (output_cgraph): Update call of lto_output_node.
15506         * lto-streamer.h (reachable_from_other_partition_p): Declare.
15507
15508 2010-05-11  Jan Hubicka  <jh@suse.cz>
15509
15510         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
15511         Mark as used.
15512
15513 2010-05-11  Jan Hubicka  <jh@suse.cz>
15514
15515         PR tree-optimize/44063
15516         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
15517         queue.
15518         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
15519         limits.
15520         (estimate_function_body_sizes): Compute sizes even when disregarding.
15521
15522 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
15523
15524         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
15525
15526 2010-05-11  Jan Hubicka  <jh@suse.cz>
15527
15528         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
15529         into every boundary.
15530
15531 2010-05-11  Jan Hubicka  <jh@suse.cz>
15532
15533         * matrix-reorg.c (matrix_reorg): Rebuild edges.
15534
15535 2010-05-11  Jan Hubicka  <jh@suse.cz>
15536
15537         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
15538         lto_streamer_cache_delete): Put nodes into heap.
15539         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
15540         heap.
15541
15542 2010-05-11  Jan Hubicka  <jh@suse.cz>
15543
15544         * cgraphbuild.c (cgraph_rebuild_references): New.
15545         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
15546         out extern inlines.
15547         * cgraph.h (cgraph_rebuild_references): Declare.
15548         * tree-inline.c (tree_function_versioning): Use it.
15549         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
15550
15551 2010-05-11  Jan Hubicka  <jh@suse.cz>
15552
15553         * cgraph.c: Include ipa-utils.h
15554         (cgraph_create_virtual_clone): Update references.
15555         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
15556
15557 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15558
15559         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
15560         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
15561         cache size.
15562
15563 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15564
15565         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
15566
15567 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15568
15569         * gcc.c (execute): For -### don't quote arguments that
15570         contain just alphanumerics and _/-. characters.
15571         * doc/invoke.texi: Document that change for -###.
15572
15573         PR debug/44023
15574         * df-problems.c (struct dead_debug): Add to_rescan field.
15575         (dead_debug_init): Clear to_rescan field.
15576         (dead_debug_finish): Rescan all debug insns in to_rescan
15577         bitmap and free the bitmap.
15578         (dead_debug_insert_before): Instead of rescanning debug insns
15579         immediately queue their rescanning until dead_debug_finish.
15580         (df_note_bb_compute): After dead_debug_add do continue instead
15581         of break.
15582
15583 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
15584
15585         PR debug/44028
15586         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
15587         clear also INSN_REG_USE_LIST.
15588
15589 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15590
15591         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
15592
15593 2010-05-10  Jan Hubicka  <jh@suse.cz>
15594
15595         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
15596         commited change.
15597
15598 2010-05-10  Jan Hubicka  <jh@suse.cz>
15599
15600         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
15601         Allocate encoders.
15602         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
15603         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
15604         (lto_streamer_cache_create): Init alloc pool.
15605         (lto_streamer_cache_delete): Free alloc pool.
15606         * lto-streamer.h: Include alloc pool.
15607         (lto_streamer_cache_d): Use alloc pool.
15608         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
15609
15610 2010-05-10  Jan Hubicka  <jh@suse.cz>
15611
15612         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
15613         * cgraphbuild.c: Include except.h
15614         (record_type_list, record_eh_tables): New function.
15615         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
15616
15617 2010-05-10  Jan Hubicka  <jh@suse.cz>
15618
15619         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
15620         __frame_dummy_init_array_entry, force_to_data): Attribute as used
15621         rather than unused.
15622
15623 2010-05-10  Michael Matz  <matz@suse.de>
15624
15625         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15626         (can_reassociate_p): Use FLOAT_TYPE_P.
15627         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15628         (vect_force_simple_reduction): ... this.
15629         * tree-parloops.c (gather_scalar_reductions): Use
15630         vect_force_simple_reduction.
15631         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15632         vect_is_simple_reduction, add modify argument, if true rewrite
15633         "a-b" into "a+(-b)".
15634         (vect_is_simple_reduction, vect_force_simple_reduction): New
15635         functions.
15636         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15637
15638 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15639             Vladimir Makarov  <vmakarov@redhat.com>
15640
15641         PR rtl-optimization/44012
15642         * ira-build.c (remove_unnecessary_allocnos): Nullify
15643         regno_allocno_map of the removed allocno.
15644
15645 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15646
15647         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15648         to /dev/null.
15649         * configure: Regenerate.
15650
15651 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15652
15653         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15654         unused.
15655         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15656         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15657         support in Sun ld.
15658         * configure: Regenerate.
15659
15660 2010-05-10  Richard Guenther  <rguenther@suse.de>
15661
15662         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15663         marked if the entry identifier is marked.
15664
15665 2010-05-10  Richard Guenther  <rguenther@suse.de>
15666
15667         * c-common.c (struct c_common_attributes): Add fnspec attribute.
15668         (handle_fnspec_attribute): New function.
15669         * gimple.h (gimple_call_return_flags): Declare.
15670         (gimple_call_arg_flags): Likewise.
15671         * gimple.c (gimple_call_arg_flags): New function.
15672         (gimple_call_return_flags): Likewise.
15673         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15674         New argument flags.
15675         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15676         return value flags.
15677         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15678         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15679         main work to ...
15680         (make_heapvar_for): ... this new function.
15681         (handle_rhs_call): Handle fnspec attribute argument specifiers.
15682         (handle_lhs_call): Likewise.
15683         (find_func_aliases): Adjust.
15684
15685 2010-05-10  Richard Guenther  <rguenther@suse.de>
15686
15687         PR tree-optimization/44050
15688         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15689
15690 2010-05-10  Wei Guozhi  <carrot@google.com>
15691
15692         PR target/42879
15693         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15694
15695 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15696
15697         PR c/10676
15698         * c-typeck.c (lookup_field): Take a type directly.  Update
15699         recursive calls.
15700         (build_component_ref): Update call to lookup_field.
15701         (set_init_label): Use lookup_field to find initialized field.
15702         Handle returned list of fields like a sequence of designators.
15703
15704 2010-05-09  Richard Guenther  <rguenther@suse.de>
15705
15706         PR middle-end/44024
15707         * fold-const.c (tree_single_nonzero_warnv_p): Properly
15708         handle &FUNCTION_DECL.
15709
15710 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15711
15712         PR c/4784
15713         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
15714         structures and unions recursively.
15715         (detect_field_duplicates): Move duplicate detection with a hash to
15716         detect_field_duplicates_hash.  Always use a hash if anonymous
15717         structures or unions are present.
15718         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15719         give errors.
15720
15721 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15722
15723         PR target/44046
15724         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15725         detect Atom, Core 2 and Core i7.
15726
15727 2010-05-09  Richard Guenther  <rguenther@suse.de>
15728
15729         * gcc.c (store_arg): Handle temporary file deletion for
15730         joined arguments.
15731
15732 2010-05-09  Richard Guenther  <rguenther@suse.de>
15733
15734         PR middle-end/44043
15735         * ipa-inline.c (estimate_function_body_sizes): Return after
15736         disregarding inline limits.
15737
15738 2010-05-09  Richard Guenther  <rguenther@suse.de>
15739
15740         * gcc.c (store_arg): Revert last change.
15741
15742 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
15743
15744         PR middle-end/28685
15745         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15746         (optimize_ops_list): Call it.
15747
15748 2010-05-08  Richard Guenther  <rguenther@suse.de>
15749
15750         PR tree-optimization/44030
15751         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
15752         NECESSARY flag if we propagate from a inserted expression.
15753
15754 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15755
15756         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15757         domain types as equal if they are both PLACEHOLDER_EXPRs.
15758
15759 2010-05-08  Richard Guenther  <rguenther@suse.de>
15760
15761         * lto-wrapper.c (run_gcc): Remove linker output from
15762         command line for LTRANS invocation.
15763
15764 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15765
15766         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15767         lto-macho as lto_binary_reader.
15768         * target.h (struct gcc_target): New hooks lto_start and lto_end.
15769         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15770         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15771         in lto_start and lto_end calls.
15772         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
15773         magic numbers.
15774         (scan_prog_file): Update is_elf_or_coff call.
15775         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15776
15777         * collect2.c (main): Fix enum comparison.
15778
15779         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15780         Add prototypes.
15781         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15782         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
15783         and TARGET_ASM_LTO_END.
15784         * darwin.c: Include obstack.h and lto-streamer.h.
15785         (lto_section_names_offset, lto_section_names_obstack,
15786         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15787         global variables.
15788         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15789         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
15790         to a temporary file.
15791         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15792         (darwin_asm_named_section): For LTO sections, replace the name with
15793         the offset of the section name in a string table, and build this
15794         table.
15795         (darwin_file_start): Initialize global vars for LTO support.
15796         (darwin_file_end): If output to asm_out_file was redirected, append it
15797         to the proper asm_out_file here.  Add the section names section.
15798
15799 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15800
15801         * c-pragma.c (pending_weak_d, pending_weak): New.
15802         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15803         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15804         handle_pragma_weak): Update the uses of pending_weaks.
15805
15806 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15807
15808         PR documentation/44016
15809         * doc/standards.texi (Standards): Link to unversioned
15810         cxx0x_status.html page.
15811
15812 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15813
15814         PR target/43708
15815         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15816         in addition to TREE_USED, to avoid "set but unused" warnings.
15817
15818 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15819
15820         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15821         (is_loop_prefetching_profitable): Do not insert prefetches
15822         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15823         times the prefetch ahead distance.
15824
15825 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15826
15827         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15828         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15829         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15830         the unroll_factor.
15831
15832 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15833
15834         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15835         a diagnostic info when the insn-to-mem ratio is too small.
15836
15837 2010-05-07  Richard Guenther  <rguenther@suse.de>
15838
15839         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15840         the linker plugin.
15841         (store_arg): Queue temp_filename for deletion instead of
15842         the whole argument.
15843
15844 2010-05-07  Richard Guenther  <rguenther@suse.de>
15845
15846         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15847         (run_gcc): Handle LTRANS phase invocation.
15848         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15849
15850 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15851
15852         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15853         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15854
15855 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15856
15857         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15858
15859 2010-05-07  Richard Guenther  <rguenther@suse.de>
15860
15861         PR tree-optimization/44020
15862         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15863         code when PRE is not yet initialized.
15864
15865 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15866
15867         * config/mips/dbxmdebug.h: Remove.
15868         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15869
15870 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15871
15872         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15873         with null pointer and also warn about ordered comparison of zero with
15874         pointer if -Wextra.
15875
15876 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15877
15878         * graphite-blocking.c
15879         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15880         * graphite-clast-to-gimple.c
15881         (clast_to_gcc_expression): Same.
15882         (precision_for_value): Same.
15883         (precision_for_interval): Same.
15884         (gcc_type_for_interval): Same.
15885         (graphite_create_new_guard): Same.
15886         (compute_bounds_for_level): Same.
15887         (graphite_create_new_loop_guard): Same.
15888         * graphite-interchange.c
15889         (build_linearized_memory_access): Same.
15890         (pdr_stride_in_loop): Same.
15891         (memory_strides_in_loop_1): Same.
15892         (memory_strides_in_loop): Same.
15893         (extend_scattering): Same.
15894         (psct_scattering_dim_for_loop_depth): Same.
15895         (pbb_number_of_iterations): Same.
15896         * graphite-poly.h
15897         (debug_iteration_domains): Same.
15898         * graphite-ppl.c
15899         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15900         (ppl_set_inhomogeneous_gmp): Same.
15901         (ppl_strip_loop): Same.
15902         (ppl_lexico_compare_linear_expressions): Same.
15903         (ppl_read_polyhedron_matrix): Same.
15904         (ppl_max_for_le_pointset): Same.
15905         * graphite-ppl.h
15906         (ppl_read_polyhedron_matrix): Same.
15907         (tree_int_to_gmp): Same.
15908         (gmp_cst_to_tree): Same.
15909         (ppl_set_inhomogeneous): Same.
15910         (ppl_set_inhomogeneous_tree): Same.
15911         (ppl_set_coef): Same.
15912         (ppl_set_coef_tree): Same.
15913         * graphite-sese-to-poly.c
15914         (build_pbb_scattering_polyhedrons): Same.
15915         (build_scop_scattering): Same.
15916         (scan_tree_for_params_right_scev): Same.
15917         (scan_tree_for_params): Same.
15918         (find_params_in_bb): Same.
15919         (find_scop_parameters): Same.
15920         (add_upper_bounds_from_estimated_nit): Same.
15921         (build_loop_iteration_domains): Same.
15922         (add_condition_to_domain): Same.
15923         (pdr_add_memory_accesses): Same.
15924
15925 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15926
15927         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15928         CLooG's value_* macros to their respective mpz_* counterparts.
15929         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15930         (graphite_create_new_loop_guard): Same.
15931         * graphite-interchange.c (build_linearized_memory_access): Same.
15932         (pdr_stride_in_loop): Same.
15933         (memory_strides_in_loop_1): Same.
15934         (1st_interchange_profitable_p): Same.
15935         * graphite-poly.c (extend_scattering): Same.
15936         (psct_scattering_dim_for_loop_depth): Same.
15937         (pbb_number_of_iterations): Same.
15938         (pbb_number_of_iterations_at_time): Same.
15939         * graphite-poly.h (new_1st_loop): Same.
15940         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15941         (oppose_constraint): Same.
15942         (insert_constraint_into_matrix): Same.
15943         (ppl_set_inhomogeneous_gmp): Same.
15944         (ppl_set_coef_gmp): Same.
15945         (ppl_strip_loop): Same.
15946         (ppl_lexico_compare_linear_expressions): Same.
15947         (ppl_max_for_le_pointset): Same.
15948         (ppl_min_for_le_pointset): Same.
15949         (ppl_build_realtion): Same.
15950         * graphite-ppl.h (gmp_cst_to_tree): Same.
15951         (ppl_set_inhomogeneous): Same.
15952         (ppl_set_inhomogeneous_tree): Same.
15953         (ppl_set_coef): Same.
15954         (ppl_set_coef_tree): Same.
15955         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15956         (build_scop_scattering): Same.
15957         (add_value_to_dim): Same.
15958         (scan_tree_for_params_right_scev): Same.
15959         (scan_tree_for_params_int): Same.
15960         (scan_tree_for_params): Same.
15961         (find_params_in_bb): Same.
15962         (find_scop_parameters): Same.
15963         (add_upper_bounds_from_estimated_nit): Same.
15964         (build_loop_iteration_domains): Same.
15965         (create_linear_expr_from_tree): Same.
15966         (add_condition_to_domain): Same.
15967         (pdr_add_memory_accesses): Same.
15968
15969 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15970             Jason Merrill  <jason@redhat.com>
15971
15972         * c-common.c (c_common_reswords): Add nullptr.
15973         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15974         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15975         (gen_type_die_with_usage): Likewise.
15976         * dbxout.c (dbxout_type): Likewise.
15977         * sdbout.c (plain_type_1): Likewise.
15978
15979 2010-05-06  Jason Merrill  <jason@redhat.com>
15980
15981         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15982         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15983         ret appropriately.
15984         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15985
15986         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15987         stripping WITH_SIZE_EXPR.
15988         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15989         change.
15990
15991 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15992
15993         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15994         list of obsolete configurations.
15995         Disabled check for obsolete configurations.
15996         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15997         Removed support for previous versions.
15998         * config/mips/iris.h: Removed.
15999         * config/mips/iris5.h: Removed.
16000         * config/mips/iris6.h: Merged old iris.h contents.
16001         (TARGET_IRIX): Removed.
16002         (DRIVER_SELF_SPECS): Removed mabi=32.
16003         (IDENT_ASM_OP): Removed undef.
16004         (STARTFILE_SPEC): Removed mabi=32.
16005         (ENDFILE_SPEC): Likewise.
16006         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
16007         (MACHINE_TYPE): Update for IRIX 6.5.
16008         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
16009         TARGET_IRIX by TARGET_IRIX6.
16010         (mips_file_start): Likewise.
16011         (mips_output_external): Remove IRIX 5/6 O32 support.
16012         (mips_output_function_prologue): Likewise.
16013         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
16014         TARGET_IRIX6.
16015         (TARGET_CPU_CPP_BUILTINS): Likewise.
16016         (TARGET_IRIX): Removed.
16017         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
16018         (MULTILIB_DIRNAMES): Removed 32.
16019         (MULTILIB_OSDIRNAMES): Removed ../lib.
16020         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
16021         (Specific, mips-sgi-irix5): Document removal.
16022         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
16023         Remove references to older IRIX 6 releases and the O32 ABI.
16024
16025 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
16026
16027         PR bootstrap/43994
16028         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
16029         instead of DF_REF_REAL_REG.
16030
16031 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
16032
16033         PR target/43888
16034         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
16035         handling to still return true for x64 targets.
16036
16037 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16038
16039         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
16040
16041 2010-05-06  Jan Hubicka  <jh@suse.cz>
16042
16043         PR tree-optimization/43791
16044         * ipa-inline.c (update_caller_keys): Remove bogus
16045         disregard_inline_limits check.
16046
16047 2010-05-06  Michael Matz  <matz@suse.de>
16048
16049         PR tree-optimization/43984
16050         * tree-ssa-pre.c (inserted_phi_names): Remove.
16051         (inserted_exprs): Change to bitmap.
16052         (create_expression_by_pieces): Set bits, don't append to vector.
16053         (insert_into_preds_of_block): Don't handle inserted_phi_names.
16054         (eliminate): Don't look at inserted_phi_names, remove deleted
16055         insns from inserted_exprs.
16056         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
16057         (init_pre, fini_pre): Allocate and free bitmaps.
16058         (execute_pre): Insert insns on edges before elimination.
16059
16060 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
16061
16062         * tree.c (initializer_zerop): Handle STRING_CST.
16063
16064 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16065
16066         PR 40989
16067         * doc/invoke.texi (Wimplicit): Document as C only.
16068         * opts.c (common_handle_option): Add argument kind.
16069         (handle_option): Rename as read_cmdline_option. Factor out code to...
16070         (handle_option): ... here. New.
16071         (handle_options): Rename as read_cmdline_options.
16072         (decode_options): Update call.
16073         (set_option): Use option index instead of option pointer. Classify
16074         diagnostics correctly.
16075         (enable_warning_as_error): Call handle_option.
16076         * opts.h (set_option): Update declaration.
16077         (handle_option): Declare.
16078         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
16079         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
16080         * c-opts.c (set_Wimplicit): Delete.
16081         (c_family_lang_mask): New static constant.
16082         (c_common_handle_option): Add argument kind. Use handle_option
16083         instead of set_Wimplicit.
16084         (c_common_post_options): warn_implicit and warn_implicit_int
16085         are disabled by default.
16086         * c-common.c (warn_implicit): Do not define here.
16087         * c-common.h (warn_implicit): Do not declare here.
16088         (c_common_handle_option): Update declaration.
16089         * lto-opts.c (lto_reissue_options): Update call to set_option.
16090
16091 2010-05-06  Richard Guenther  <rguenther@suse.de>
16092
16093         PR tree-optimization/43571
16094         * domwalk.c (walk_dominator_tree): Walk the dominator
16095         sons in more optimal order.
16096
16097 2010-05-06  Richard Guenther  <rguenther@suse.de>
16098
16099         PR tree-optimization/43934
16100         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
16101         (stmt_cost): Likewise.
16102         (extract_true_false_args_from_phi): New helper.
16103         (determine_max_movement): For PHI nodes verify we can hoist them
16104         and compute their cost.
16105         (determine_invariantness_stmt): Handle PHI nodes.
16106         (move_computations_stmt): Likewise.  Hoist PHI nodes in
16107         if-converted form using COND_EXPRs.
16108         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
16109         (tree_ssa_lim): Likewise.
16110         * tree-flow.h (tree_ssa_lim): Adjust prototype.
16111         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
16112
16113 2010-05-06  Richard Guenther  <rguenther@suse.de>
16114
16115         PR tree-optimization/43987
16116         * tree-ssa-structalias.c (could_have_pointers): For possibly
16117         address-taken variables force pointers to be recorded.
16118         (create_variable_info_for_1): Likewise.
16119         (push_fields_onto_fieldstack): Pass in wheter all fields
16120         must have pointers.
16121         (find_func_aliases): Query types instead of vars whether
16122         they contain pointers where appropriate.
16123
16124 2010-05-06  Jan Hubicka  <jh@suse.cz>
16125
16126         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
16127         (record_reference, mark_address, mark_load, mark_store): Record
16128         references.
16129         (record_references_in_initializer): Update call of record_references.
16130         (rebuild_cgraph_edges): Remove all references before rebuiding.
16131         * cgraph.c (cgraph_create_node): Clear ref list.
16132         (cgraph_remove_node): Remove references.
16133         (dump_cgraph_node): Dump references.
16134         (cgraph_clone_node): Clone references.
16135         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
16136         (struct cgraph_node, varpool_node): Add ref_lst.
16137         * ipa-ref.c: New file.
16138         * ipa-ref.h: New file.
16139         * ipa-ref-inline.h: New file.
16140         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
16141         (referenced_from_other_partition_p): New function.
16142         (lto_output_varpool_node): Take set arugment; call
16143         referenced_from_other_partition.
16144         (lto_output_ref): New.
16145         (add_references): New.
16146         (output_refs): New.
16147         (output_cgraph): Compute boundary based on references; output refs.
16148         (output_varpool): Accept cgraph_node_set argument.
16149         (input_ref): New.
16150         (input_refs): New.
16151         (input_cgraph): Call input_refs.
16152         * lto-section-in.c (lto_section_name): Add refs.
16153         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
16154         (ipa-ref.o): New file.
16155         * varpool.c (varpool_node): Clear ipa ref list.
16156         (varpool_remove_node): Remove references.
16157         (dump_varpool_node): Dump references.
16158         (varpool_assemble_decl): Only compile finalized ones.
16159         (varpool_extra_name_alias): Initialize ref list.
16160         * lto-streamer.c (lto-get_section_name): Add .refs section.
16161         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
16162         (referenced_from_other_partition_p): Declared.
16163
16164 2010-05-06  Ira Rosen  <irar@il.ibm.com>
16165
16166         PR tree-optimization/43901
16167         * tree-vect-stmts.c (vectorizable_call): Assert that vector
16168         type is not NULL if it's transformation phase, and return
16169         FALSE if it's analysis.
16170         (vectorizable_conversion, vectorizable_operation,
16171         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
16172
16173 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
16174
16175         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
16176         Delete.
16177         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
16178         New define.
16179         * config/mips/mips-protos.h
16180         (mips_small_register_classes_for_mode_p): Delete prototype.
16181
16182 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
16183
16184         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
16185         * config/arm/arm.c (multiple_operation_profitable_p,
16186         compute_offset_order): New static functions.
16187         (load_multiple_sequence, store_multiple_sequence): Use them.
16188         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
16189         memory offsets, not register numbers.
16190         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
16191
16192 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
16193
16194         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
16195         (get_pending_sizes, put_pending_size, put_pending_sizes):
16196         Update the uses of pending_sizes.
16197         * c-decl.c (store_parm_decls): Likewise.
16198         * c-tree.h (struct c_arg_info): Likewise.
16199         * tree.h: Update the prototype for get_pending_sizes and
16200         put_pending_sizes.
16201
16202 2010-05-05  Jason Merrill  <jason@redhat.com>
16203
16204         PR debug/43370
16205         * c-common.c (handle_aligned_attribute): Respect
16206         ATTR_FLAG_TYPE_IN_PLACE.
16207
16208         PR testsuite/43758
16209         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
16210         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16211         (TARGET_INITIALIZER): Use it.
16212         * c-common.c (attribute_takes_identifier_p): Call it.
16213         * c-common.h: Update prototype.
16214         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
16215         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
16216
16217 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
16218
16219         PR debug/43950
16220         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
16221         DW_ID_down_case for Fortran compilation units.
16222
16223 2010-05-05  Jan Hubicka  <jh@suse.cz>
16224
16225         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
16226         handle aliases.
16227
16228 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
16229
16230         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
16231         a variable-sized RESULT_DECL.
16232
16233 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
16234
16235         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
16236
16237 2010-05-05  Jason Merrill  <jason@redhat.com>
16238
16239         PR c++/43787
16240         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
16241         returns GS_OK.
16242         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
16243
16244 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
16245             Jakub Jelinek  <jakub@redhat.com>
16246
16247         PR debug/43478
16248         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
16249         (dead_debug_init, dead_debug_finish): New functions.
16250         (dead_debug_add, dead_debug_insert_before): Likewise.
16251         (df_note_bb_compute): Initialize a dead_debug object, add dead
16252         debug uses to it, insert debug bind insns before death insns,
16253         reset debug insns that refer to pending uses at the end.
16254         * rtl.h (make_debug_expr_from_rtl): New prototype.
16255         * varasm.c (make_debug_expr_from_rtl): New function.
16256
16257 2010-05-05  Jan Hubicka  <jh@suse.cz>
16258
16259         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
16260         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
16261         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
16262         lto_varpool_encoder_deref, lto_varpool_encoder_size,
16263         lto_varpool_encoder_encode_initializer_p,
16264         lto_set_varpool_encoder_encode_initializer): New functions.
16265         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
16266         call output_varpool.
16267         (input_varpool_node): Do not always set analyzed.
16268         (input_cgraph_1): Return vector of cgraph nodes.
16269         (input_varpool_1): Return vector of varpools.
16270         (input_cgraph): Free the vectors.
16271         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16272         output only initializers needed.
16273         (lto_output): Only call output_cgraph.
16274         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
16275         * lto-section-out.c (lto_new_out_decl_state): Initialize
16276         state->varpool_node_encoder.
16277         * lto-streamer.h (lto_varpool_encoder_d): New.
16278         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
16279         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
16280         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
16281         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
16282         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
16283         Declare.
16284         (output_varpool, input_varpool): Remove declarations.
16285
16286 2010-05-05  Jan Hubicka  <jh@suse.cz>
16287
16288         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
16289         with body can prevail.
16290
16291 2010-05-05  Jan Hubicka  <jh@suse.cz>
16292
16293         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
16294         size.
16295
16296 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16297
16298         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
16299
16300         * gengtype.h (erro_at_line): Constify pos argument.
16301
16302         * gengtype.c: Include hashtab.h.
16303         (enum gc_used): Document GC_MAYBE_POINTED_TO.
16304         (error_at_line): Constify pos argument.
16305         (do_typedef): Initialize p->opt field.
16306         (get_file_gtfilename): Fix comment typo.
16307         (struct walk_type_data): Constify line field.
16308         (get_output_file_for_structure): New function.
16309         (write_local_func_for_structure): Constify orig_s argument.
16310         Use get_output_file_for_structure.
16311         (write_func_for_structure): Use get_output_file_for_structure.
16312         (INDENT): New define.
16313         (dump_pair, dump_type, dump_type_list, dump_typekind)
16314         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
16315         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
16316         functions.
16317         (seen_types): New variable.
16318         (main): New variable do_dump.  Process "-d" command line option.
16319         Call dump_everything if dump requested.
16320
16321 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
16322
16323         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
16324         in a temporary instead of invoking the macro multiple times.
16325         (track_expr_p): Likewise.
16326
16327 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
16328
16329         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
16330         per new semantics.
16331         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
16332         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
16333         conditions for printing notes.
16334         * common.opt (-Wcoverage-mismatch): Allow negative, default to
16335         true, update documentation.
16336         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
16337
16338 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
16339
16340         PR c/43981
16341         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
16342         on dimen.
16343
16344 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16345
16346         PR target/43799
16347         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
16348         (*sse_prologue_save_insn1): Likewise.
16349         (SSE prologue save splitter): Likewise.
16350
16351 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16352
16353         * tree.c (free_lang_data_in_one_sizepos): New inline function.
16354         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
16355         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
16356         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
16357         all decls.  Call it on DECL_FIELD_OFFSET of fields.
16358         (find_decls_types_r): Follow DECL_VALUE_EXPR.
16359         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
16360
16361 2010-05-04  Martin Jambor  <mjambor@suse.cz>
16362
16363         * tree-sra.c (build_access_from_expr_1): The first parameter type
16364         changed to simple tree.
16365         (build_access_from_expr): Likewise, gsi parameter was eliminated.
16366         (scan_assign_result): Renamed to assignment_mod_result, enum elements
16367         renamed as well.
16368         (build_accesses_from_assign): Removed all parameters except for a
16369         simple gimple statement.  Now returns a simple bool.
16370         (scan_function): All non-analysis parts moved to separate functions
16371         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
16372         parameters and updated both callers.
16373         (sra_modify_expr): Removed parameter data.
16374         (sra_modify_function_body): New function.
16375         (perform_intra_sra): Call sra_modify_function_body to modify the
16376         function body.
16377         (replace_removed_params_ssa_names): Parameter data changed into
16378         adjustments vector.
16379         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
16380         changed the parameter dont_convert to convert with the opposite
16381         meaning.
16382         (sra_ipa_modify_assign): Parameter data changed into adjustments
16383         vector, return value changed to bool.
16384         (ipa_sra_modify_function_body): New function.
16385         (sra_ipa_reset_debug_stmts): Updated a comment.
16386         (modify_function): Use ipa_sra_modify_function_body to modify function
16387         body.
16388
16389 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16390
16391         PR middle-end/43671
16392         * alias.c (true_dependence): Handle the same VALUE in x and mem.
16393         (canon_true_dependence): Likewise.
16394         (write_dependence_p): Likewise.
16395
16396 2010-05-04  Jan Hubicka  <jh@suse.cz>
16397
16398         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
16399         * cgraphbuild.c: Include ipa-utils.h
16400         (record_reference_ctx): New struct.
16401         (record_reference): Simplify to work on initializers; not statements.
16402         (mark_address, mark_load, mark_store): New.
16403         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16404         walk PHI nodes too.
16405         (record_references_in_initializer): Update use of record_reference.
16406         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16407         walk PHI nodes too.
16408
16409 2010-05-04  Jan Hubicka  <jh@suse.cz>
16410
16411         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
16412         node will be removed anyway.
16413         (lto_varpool_replace_node): Allow also unanalyzed nodes;
16414         relink aliases of node into prevailing node.
16415         * varpool.c (varpool_remove_node): Remove aliases properly;
16416         when removing node, remove all its aliases too; remove DECL_INITIAL
16417         of removed node; ggc_free the varpool node.
16418
16419 2010-05-04  Richard Guenther  <rguenther@suse.de>
16420
16421         PR tree-optimization/43879
16422         * tree-ssa-structalias.c (alias_get_name): Use
16423         DECL_ASSEMBLER_NAME if available.
16424         (create_function_info_for): Return the varinfo node.
16425         (ipa_pta_execute): Associate same-body aliases and extra names
16426         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
16427
16428 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16429
16430         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
16431
16432 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
16433
16434         PR bootstrap/43964
16435         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
16436         only if HONOR_REG_ALLOC_ORDER is not defined.
16437
16438 2010-05-04  Richard Guenther  <rguenther@suse.de>
16439
16440         PR tree-optimization/43949
16441         * tree-vrp.c (extract_range_from_binary_expr): Only handle
16442         TRUNC_MOD_EXPR.
16443
16444 2010-04-26  Jason Merrill  <jason@redhat.com>
16445
16446         * c.opt (-fstrict-enums): New.
16447         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
16448
16449 2010-05-03  David Ung  <davidu@mips.com>
16450             James E. Wilson  <wilson@codesourcery.com>
16451
16452         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
16453         emit the trap instruction before the divide for TUNE_74K.
16454
16455 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
16456
16457         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
16458         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
16459         based on the above, for new target hook.
16460
16461         * hooks.c (hook_bool_mode_true): New generic hook.
16462         * hooks.h (hook_bool_mode_true): Add prototype.
16463
16464         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
16465         target hook.
16466         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
16467         target hook, set to hook_bool_mode_false.
16468         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
16469         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
16470         with targetm.small_register_classes_for_mode_p.
16471         (find_reusable_reload): Likewise.
16472         (combine_reloads): Likewise.
16473         * reload1.c (reload_as_needed): Likewise.
16474         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
16475         * ifcvt.c (noce_process_if_block, check_cond_move_block,
16476         dead_or_predicable): Likewise.
16477         * regmove.c (optimize_reg_copy_1): Likewise.
16478         * calls.c (prepare_call_address): Likewise.
16479         (precompute_register_parameters): Likewise.
16480
16481         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
16482         hook definition.
16483         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
16484         implementation of the hook that considers all register classes
16485         small except for SH64.
16486         (sh_override_options): Use the new hook.
16487         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
16488         Add prototype.
16489
16490         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
16491         hook definition.
16492         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
16493         implementation of the hook that considers all register classes
16494         small for THUMB1.
16495         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
16496         Add prototype.
16497
16498         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
16499         hook definition.
16500         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
16501         implementation of the hook that considers all register classes
16502         small for MIPS16.
16503         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
16504         Add prototype.
16505
16506         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
16507         hook definition.
16508         * config/m32c/m32c.h: Likewise.
16509         * config/pdp11/pdp11.h: Likewise.
16510         * config/avr/avr.h: Likewise.
16511         * config/xtensa/xtensa.h: Likewise.
16512         * config/m68hc11/m68hc11.h: Likewise.
16513         * config/mn10300/mn10300.h: Likewise.
16514         * config/mcore/mcore.h: Likewise.
16515         * config/h8300/h8300.h: Likewise.
16516         * config/bfin/bfin.h: Likewise.
16517
16518         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
16519         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
16520
16521 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
16522
16523         * double-int.h (tree_to_double_int): Remove macro.
16524         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
16525         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16526         (tree_to_double_int): New function.
16527         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
16528         Move ...
16529         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16530
16531 2010-05-03  Richard Guenther  <rguenther@suse.de>
16532
16533         PR tree-optimization/43971
16534         * tree-ssa-structalias.c (get_constraint_for_1): Fix
16535         constraints in the !flag_delete_null_pointer_checks case.
16536
16537 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
16538
16539         PR debug/43972
16540         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
16541         result mode matches original rtl mode.
16542
16543 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
16544
16545         PR target/43888
16546         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
16547
16548 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16549
16550         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
16551         when processing flag options.
16552
16553 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16554
16555         * gcov-iov.c (main): Change format string placeholder
16556         from %#08x to 0x%08x.
16557         * genchecksum.c (dosum): Change format string placeholder
16558         from %#02x to 0x%02x.
16559
16560 2010-05-02  Richard Guenther  <rguenther@suse.de>
16561
16562         PR tree-optimization/43879
16563         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
16564
16565 2010-05-02  Bruno Haible  <bruno@clisp.org>
16566
16567         * doc/extend.texi (Function Attributes): Fix a typo.
16568
16569 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16570
16571         Revert:
16572         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
16573         placeholder from 0x%x to %#x.
16574         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16575         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16576         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16577         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16578         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16579         * config/i386/i386.c (ix86_target_string): Ditto.
16580         * config/i386/i386.c (output_pic_addr_const): Ditto.
16581         (print_operand): Ditto.
16582
16583 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16584
16585         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16586         placeholder from 0x%x to %#x.
16587         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
16588         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
16589         (ASM_OUTPUT_DEBUG_DATA): Ditto.
16590         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
16591         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
16592         * optc-gen.awk: Ditto.
16593         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
16594         (HOST_WIDE_INT_PRINT_HEX): Ditto.
16595         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
16596         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16597
16598 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16599
16600         * target.h (struct calls): Add function_value_regno_p field.
16601         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
16602         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
16603         * targhooks.c (default_function_value_regno_p): New function.
16604         * targhooks.h (default_function_value_regno_p): Declare function.
16605         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
16606         * builtins.c. (apply_result_size): (Ditto.).
16607         * combine.c. (likely_spilled_retval_p): (Ditto.).
16608         * mode-switching.c. Include 'target.h'.
16609         (create_pre_exit): Use function_value_regno_p hook.
16610         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
16611         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
16612         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
16613
16614         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
16615         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
16616         (ix86_function_value_regno_p): Declare as static, change argument
16617         type to const unsigned int.
16618         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
16619
16620 2010-05-01  Richard Guenther  <rguenther@suse.de>
16621
16622         PR tree-optimization/43949
16623         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16624         types.
16625         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16626
16627 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16628
16629         * rtl.h (CONST_DOUBLE_P): Define.
16630         (rtx_to_double_int): Declare.
16631         * emit-rtl.c (rtx_to_double_int): New function.
16632         * dwarf2out.c (insert_double): New function.
16633         (loc_descriptor, add_const_value_attribute): Clean up, use
16634         rtx_to_double_int and insert_double functions.
16635
16636 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
16637
16638         * doc/extend.texi (Inline): Add missing return keyword to examples.
16639         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16640         "command-line".
16641
16642 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
16643
16644         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16645         the variable part of the offset as well.  Use highest_pow2_factor for
16646         all alignment checks.
16647
16648 2010-04-30  Richard Guenther  <rguenther@suse.de>
16649
16650         PR tree-optimization/43879
16651         * tree-ssa-structalias.c (type_could_have_pointers): Functions
16652         can have pointers.
16653
16654 2010-04-30  Jan Hubicka  <jh@suse.cz>
16655
16656         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16657         varpool.
16658         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16659
16660 2010-04-30  Jan Hubicka  <jh@suse.cz>
16661
16662         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16663         New.
16664         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16665         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16666         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16667         cgraph_node_set_needs_ltrans_p): Remove.
16668
16669 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16670
16671         * sdbout.c: Include vec.h, do not include varray.h.
16672         (deferred_global_decls, sdbout_global_decl,
16673         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16674         * toplev.c: Do not include varray.h.
16675         (dump_memory_report): Do not dump VARRAY statistics.
16676         * gengtype.c (open_base_file): Ignore varray.h.
16677         * Makefile.in: Update for abovementioned changes.
16678         Remove all traces of varray.c and varray.h.
16679         * varray.c: Remove file.
16680         * varray.h: Remove file.
16681
16682 2010-04-30  Jan Hubicka  <jh@suse.cz>
16683
16684         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16685         references.
16686
16687 2010-04-30  Jan Hubicka  <jh@suse.cz>
16688
16689         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16690         needed.
16691
16692 2010-04-30  Richard Guenther  <rguenther@suse.de>
16693
16694         * tree-ssa-structalias.c (get_constraint_for_1): Generate
16695         constraints for CONSTRUCTOR.
16696
16697 2010-04-30  Richard Guenther  <rguenther@suse.de>
16698
16699         PR lto/43946
16700         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16701         first after all lowering passes.
16702
16703 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16704
16705         * toplev.c: Include varray.h for statistics dumping.
16706         * tree.h: Do not declare varray_head_tag.
16707         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16708         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16709         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16710         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16711         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16712         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16713         c-common.c, c-common.h, reg-stack.c, basic-block.h,
16714         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16715         include varray.h.
16716         * Makefile.in: Update for abovementioned changes.
16717
16718 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
16719
16720         PR debug/43942
16721         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16722
16723 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16724
16725         * config/picochip/picochip.c (picochip_legitimize_address): Define.
16726         Use this function to do machine-specific conversion.
16727         (picochip_legitimize_reload_address): Likewise.
16728         (picochip_legitimate_address_p): Check valid base register only if
16729         strict.
16730         (picochip_check_conditional_copy): Check for modw only if opnd is
16731         register.
16732         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16733         to call the function in c.
16734         * config/picochip/picochip-protos.h
16735         (picochip_legitimize_reload_address): Define.
16736         * config/picochip/picochip.md (supported_compare1): Define.
16737
16738 2010-04-30  Jan Hubicka  <jh@suse.cz>
16739
16740         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16741         (cgraph_global_info): Remove inlined.
16742         (LTO_cgraph_tag_names): Remove.
16743         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16744         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16745         simplify cgraph tags and document.
16746         (lto_output_node): Use only LTO_cgraph_unavail_node and
16747         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16748         for_functions_valid, global info, process and output flags.
16749         (input_overwrite_node): Initialize estimated stack size and
16750         estimated growth.  Do not read flags we no longer store.
16751         (input_node): Likewise do not read info no longer stored.
16752         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16753         flag.
16754
16755 2010-04-30  Richard Guenther  <rguenther@suse.de>
16756
16757         PR tree-optimization/43879
16758         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16759         handle non-zero initializers.
16760
16761 2010-04-30  Richard Guenther  <rguenther@suse.de>
16762
16763         * builtins.c (fold_builtin_1): Delete free (0).
16764
16765 2010-04-29  Jan Hubicka  <jh@suse.cz>
16766
16767         * gengtype.c (open_base_files): Add lto-streamer.h
16768         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16769         (pass_ipa_cp): GGC collect.
16770         * toplev. (compile_file): Do not output symbols.
16771         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16772         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16773         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16774         * lto-section-in.c: Include ggc.h
16775         (lto_new_in_decl_state): Alloc in GGC.
16776         (lto_delete_in_decl_state): Likewise.
16777         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16778         Collect.
16779
16780 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16781
16782         PR target/42895
16783         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16784         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
16785         (HONOR_REG_ALLOC_ORDER): Describe new macro.
16786         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16787         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16788         account only if HONOR_REG_ALLOC_ORDER is not defined.
16789         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16790         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16791
16792 2010-04-29  Jon Grant  <04@jguk.org>
16793
16794         * collect2.c (vflag): Change type from int to bool.
16795         (debug): Likewise.
16796         (helpflag): New global bool.
16797         (main): Set vflag and debug with boolean, not integer truth values.
16798         Accept new "--help" option and output usage text if found.
16799         * collect2.h (vflag): Update prototype.
16800         (debug): Likewise.
16801
16802 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16803
16804         PR bootstrap/43936
16805         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16806
16807 2010-04-29  Richard Guenther  <rguenther@suse.de>
16808
16809         PR bootstrap/43935
16810         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16811         with ATTRIBUTE_UNUSED.
16812
16813 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16814
16815         PR target/43921
16816         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16817         INSN_P with NONDEBUG_INSN_P.
16818         (distance_non_agu_define): Likewise.
16819         (distance_agu_use): Likewise.
16820
16821 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16822
16823         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16824         PR bootstrap/43858
16825         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16826         test_set.
16827
16828 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16829
16830         * plugin.h (invoke_plugin_callbacks): New inline function.
16831         * plugin.c (flag_plugin_added): New global flag.
16832         (add_new_plugin): Initialize above flag.
16833         (invoke_plugin_callbacks): Rename to ...
16834         (invoke_plugin_callbacks_full): ... this.
16835
16836 2010-04-28  Jan Hubicka  <jh@suse.cz>
16837
16838         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16839         (lto_varpool_replace_node): New.
16840         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16841         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16842         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16843         * cgraph.h (varpool_node_ptr): New type.
16844         (varpool_node_ptr): New vector.
16845         (varpool_node_set_def): New structure.
16846         (varpool_node_set): New type.
16847         (varpool_node_set): New vector.
16848         (varpool_node_set_element_def): New structure.
16849         (varpool_node_set_element, const_varpool_node_set_element): New types.
16850         (varpool_node_set_iterator): New type.
16851         (varpool_node): Add prev pointers, add used_from_other_partition,
16852         in_other_partition.
16853         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16854         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16855         varpool_get_node, varpool_remove_node): Declare.
16856         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16857         varpool_node_set_size): New inlines.
16858         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16859         * tree-pass.h (varpool_node_set_def): Forward declare.
16860         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16861         (ipa_write_optimization_summaries): Update prototype.
16862         * ipa-cp.c (ipcp_write_summary): Update.
16863         * ipa-reference.c (ipa_reference_write_summary): Update.
16864         * lto-cgraph.c (lto_output_varpool_node): New static function.
16865         (output_varpool): New function.
16866         (input_varpool_node): New static function.
16867         (input_varpool_1): New function.
16868         (input_cgraph): Input varpool.
16869         * ipa-pure-const.c (pure_const_write_summary): Update.
16870         * lto-streamer-out.c (lto_output): Update, output varpool too.
16871         (write_global_stream): Kill WPA hack.
16872         (produce_asm_for_decls): Update.
16873         (output_alias_pair_p): Handle variables.
16874         (output_unreferenced_globals): Output only needed partition of varpool.
16875         * ipa-inline.c (inline_write_summary): Update.
16876         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16877         cgraph.
16878         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16879         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16880         varpool_node_set_new, varpool_node_set_add,
16881         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16882         debug_varpool_node_set): New functions.
16883         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16884         (execute_one_pass): Process new decls too.
16885         (ipa_write_summaries_2): Pass around vsets.
16886         (ipa_write_summaries_1): Likewise.
16887         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16888         to add.
16889         (ipa_write_optimization_summaries_1): Pass around vsets.
16890         (ipa_write_optimization_summaries): Likewise.
16891         * varpool.c (varpool_get_node): New.
16892         (varpool_node): Update doubly linked lists.
16893         (varpool_remove_node): New.
16894         (dump_varpool_node): More dumping.
16895         (varpool_enqueue_needed_node): Update doubly linked lists.
16896         (decide_is_variable_needed): Kill ltrans hack.
16897         (varpool_finalize_decl): Kill lto hack.
16898         (varpool_assemble_decl): Skip decls in other partitions.
16899         (varpool_assemble_pending_decls): Update doubly linkes lists.
16900         (varpool_empty_needed_queue): Likewise.
16901         (varpool_extra_name_alias): Likewise.
16902         * lto-streamer.c (lto_get_section_name): Add vars section.
16903         * lto-streamer.h (lto_section_type): Update.
16904         (output_varpool, input_varpool): Declare.
16905
16906 2010-04-28  Mike Stump  <mikestump@comcast.net>
16907
16908         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16909
16910 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16911
16912         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16913         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16914         (lto_input_ts_type_tree_pointers): Likewise.
16915         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16916         (lto_output_ts_type_tree_pointers): Likewise.
16917
16918 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16919
16920         Uniquization of constants at the Tree level
16921         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16922         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16923         bit to the end.
16924         (tree_output_constant_def): Declare.
16925         * gimplify.c (gimplify_init_constructor): When using block copy, first
16926         uniquize the constant constructor on the RHS.
16927         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16928         DECL_IN_CONSTANT_POOL flag.
16929         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16930         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16931         constant pool.
16932         (assemble_variable): Deal with symbols belonging to the tree constant
16933         pool.
16934         (get_constant_section): Add ALIGN parameter and simplify.
16935         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16936         (assemble_constant_contents): Use the expression of the VAR_DECL.
16937         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16938         (tree_output_constant_def): New global function.
16939         (mark_constant): Use the expression of the VAR_DECL.
16940         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16941         its expression.
16942         (output_object_block): Likewise and assemble the expression.
16943
16944 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16945
16946         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16947         hash_tree, eq_tree): New tree hash table.
16948         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16949         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16950         lto_orig_address_remove): Reimplement.
16951
16952 2010-04-28  Xinliang David Li  <davidxl@google.com>
16953
16954         PR c/42643
16955         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16956         (compute_uninit_opnds_pos): New function.
16957         (is_non_loop_exit_postdominating): New function.
16958         (compute_control_dep_chain): New function.
16959         (find_pdom): New function.
16960         (convert_control_dep_chain_into_preds): New function.
16961         (find_predicates): New function.
16962         (find_control_equiv_block): New function.
16963         (collect_phi_def_edges): New function.
16964         (find_def_preds): New function.
16965         (find_dom): New function.
16966         (dump_predicates): New function.
16967         (get_cmp_code): New function.
16968         (is_value_included_in): New function.
16969         (find_matching_predicate_in_rest_chains): New function.
16970         (use_pred_not_overlap_with_undef_path_pred): New function.
16971         (is_use_properly_guarded): New function.
16972         (normalize_cond_1): New function.
16973         (is_and_or_or): New function.
16974         (normalize_cond): New function.
16975         (is_gcond_subset_of): New function.
16976         (is_subset_of_any): New function.
16977         (is_or_set_subset_of): New function.
16978         (is_and_set_subset_of): New function.
16979         (is_norm_cond_subset_of): New function.
16980         (is_pred_expr_subset_of): New function.
16981         (is_pred_chain_subset_of): New function.
16982         (is_included_in): New function.
16983         (is_superset_of): New function.
16984         (find_uninit_use): New function.
16985         (warn_uninitialized_phi): New function.
16986         (compute_possibly_undefined_names): New function.
16987         (ssa_undefined_value_p): New function.
16988         (execute_late_warn_uninitialized): New function.
16989         * tree-ssa.c (ssa_undefined_value_p): Removed.
16990         (warn_uninit): Changed to extern.
16991         (warn_uninitialized_phi): Removed.
16992         (warn_uninitialized_vars): Changed to extern.
16993         (execute_late_warn_uninitialized): Removed
16994         * tree-flow.h: Add new prototypes.
16995         * timevar.def: Add new time variable.
16996         * Makefile.in: Add new build file.
16997
16998 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16999
17000         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
17001         type if available.
17002
17003 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17004
17005         PR target/22224
17006         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
17007
17008 2010-04-28  Martin Jambor  <mjambor@suse.cz>
17009
17010         * cgraph.h (struct cgraph_node): New field indirect_calls.
17011         (struct cgraph_indirect_call_info): New type.
17012         (struct cgraph_edge): Removed field indirect_call. New fields
17013         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
17014         (cgraph_create_indirect_edge): Declare.
17015         (cgraph_make_edge_direct): Likewise.
17016         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
17017         * ipa-prop.h (struct ipa_param_call_note): Removed.
17018         (struct ipa_node_params): Removed field param_calls.
17019         (ipa_create_all_structures_for_iinln): Declare.
17020         * cgraph.c: Described indirect edges and uids in initial comment.
17021         (cgraph_add_edge_to_call_site_hash): New function.
17022         (cgraph_edge): Search also among the indirect edges, use
17023         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
17024         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
17025         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
17026         site hash.
17027         (initialize_inline_failed): Assign a reason to indirect edges.
17028         (cgraph_create_edge_1): New function.
17029         (cgraph_create_edge): Moved some functionality to
17030         cgraph_create_edge_1.
17031         (cgraph_create_indirect_edge): New function.
17032         (cgraph_edge_remove_callee): Add an assert checking for
17033         non-indirectness.
17034         (cgraph_edge_remove_caller): Special-case indirect edges.
17035         (cgraph_remove_edge): Likewise.
17036         (cgraph_set_edge_callee): New function.
17037         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
17038         (cgraph_make_edge_direct): New function.
17039         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
17040         the declaration of the call statement matches.
17041         (cgraph_node_remove_callees): Special-case indirect edges.
17042         (cgraph_clone_edge): Likewise.
17043         (cgraph_clone_node): Clone also the indirect edges.
17044         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
17045         indirect_call, dump count of indirect_calls edges.
17046         * ipa-prop.c (iinlining_processed_edges): New variable.
17047         (ipa_note_param_call): Create indirect edges instead of
17048         creating notes.  New parameter node.
17049         (ipa_analyze_call_uses): New parameter node, pass it on to
17050         ipa_note_param_call.
17051         (ipa_analyze_stmt_uses): Likewise.
17052         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
17053         (print_edge_addition_message): Work on edges rather than on notes.
17054         (update_call_notes_after_inlining): Likewise, renamed to
17055         update_indirect_edges_after_inlining.
17056         (ipa_create_all_structures_for_iinln): New function.
17057         (ipa_free_node_params_substructures): Do not free notes.
17058         (ipa_edge_duplication_hook): Propagate bits within
17059         iinlining_processed_edges bitmap.
17060         (ipa_node_duplication_hook): Do not duplicate notes.
17061         (free_all_ipa_structures_after_ipa_cp): Renamed to
17062         ipa_free_all_structures_after_ipa_cp.
17063         (free_all_ipa_structures_after_iinln): Renamed to
17064         ipa_free_all_structures_after_iinln.
17065         (ipa_write_param_call_note): Removed.
17066         (ipa_read_param_call_note): Removed.
17067         (ipa_write_indirect_edge_info): New function.
17068         (ipa_read_indirect_edge_info): Likewise.
17069         (ipa_write_node_info): Do not stream notes, do stream information
17070         in indirect edges.
17071         (ipa_read_node_info): Likewise.
17072         (lto_ipa_fixup_call_notes): Removed.
17073         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
17074         * ipa-inline.c (pass_ipa_inline): Likewise.
17075         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
17076         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
17077         * tree-inline.c (copy_bb): Removed an unnecessary double check for
17078         is_gimple_call.
17079         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
17080         edges.
17081         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
17082         (output_cgraph): Stream also indirect edges.
17083         (lto_output_edge): Added capability to stream indirect edges.
17084         (input_edge): Likewise.
17085         (input_cgraph_1): Likewise.
17086         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
17087         of indirect edges.
17088
17089 2010-04-28  Richard Guenther  <rguenther@suse.de>
17090
17091         PR tree-optimization/43879
17092         PR tree-optimization/43909
17093         * tree-ssa-structalias.c (struct variable_info): Add
17094         only_restrict_pointers flag.
17095         (new_var_info): Initialize it.  Increment stats.total_vars here.
17096         (create_function_info_for): Do not increment stats.total_vars here.
17097         (get_function_part_constraint): Fix build with C++.
17098         (insert_into_field_list): Remove.
17099         (push_fields_onto_fieldstack): Properly merge fields.
17100         (create_variable_info_for): Split and simplify.
17101         (create_variable_info_for_1): New piece.
17102         (intra_create_variable_infos): Properly make restrict constraints
17103         from parameters.
17104
17105 2010-04-28  Richard Guenther  <rguenther@suse.de>
17106
17107         PR c++/43880
17108         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
17109
17110 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17111             Jan Hubicka  <hubicka@ucw.cz>
17112
17113         * doc/invoke.texi (-Wsuggest-attribute=const,
17114         -Wsuggest-attribute=pure): Document.
17115         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
17116         (function_always_visible_to_compiler_p,
17117         suggest_attribute, warn_function_pure, warn_function_const):
17118         New functions.
17119         (check_call): Improve debug info.
17120         (analyze_function): Do not check availability.
17121         (add_new_function): Check availability.
17122         (propagate): Output warnings.
17123         (skip_function_for_local_pure_const): New function.
17124         (local_pure_const): Use it; output warnings.
17125         * common.opt (Wsuggest-attribute=const,
17126         Wsuggest-attribute=pure): New.
17127
17128 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
17129
17130         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
17131         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
17132         or DW_CFA_def_cfa_offset{,_sf}.
17133
17134 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17135
17136         * tree.h: Fix truncated long macros.
17137
17138 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
17139
17140         * collect2.c (TARGET_64BIT): Redefine to target's default.
17141         * tlink.c: Likewise.
17142         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
17143         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
17144         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
17145         for underscoring __USER_LABEL_PREFIX__.
17146         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
17147         (SUB_LINK_ENTRY32): New.
17148         (SUB_LINK_ENTRY64): New.
17149         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
17150         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
17151         (SUB_LINK_ENTRY64): New.
17152         (SUB_LINK_ENTRY): New.
17153         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
17154         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
17155         x64 target is choosen.
17156         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
17157         * configure: Regenerated.
17158         * configure.ac (leading-mingw64-underscores): Option added.
17159
17160 2010-04-27  Jan Hubicka  <jh@suse.cz>
17161
17162         * doc/invoke.texi (-fipa-profile): Document.
17163         * opts.c (decode_options): Enable ipa-profile at -O1.
17164         * timevar.def (TV_IPA_PROFILE): Define.
17165         * common.opt (fipa-profile): Add.
17166         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
17167         flag for clones.
17168         (cgraph_propagate_frequency): Handle only local ones.
17169         * tree-pass.h (pass_ipa_profile): Declare.
17170         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
17171         (pass_ipa_profile): Use TV_IPA_PROFILE.
17172         * ipa.c (ipa_profile): New function.
17173         (gate_ipa_profile): Likewise.
17174         (pass_ipa_profile): New global variable.
17175         * passes.c (pass_ipa_profile): New.
17176
17177 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
17178
17179         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
17180
17181 2010-04-27  Martin Jambor  <mjambor@suse.cz>
17182
17183         PR middle-end/43812
17184         * ipa.c (dissolve_same_comdat_group_list): New function.
17185         (function_and_variable_visibility): Call
17186         dissolve_same_comdat_group_list when comdat group contains external or
17187         newly local nodes.
17188         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
17189         lists are circular and that they contain only DECL_ONE_ONLY nodes.
17190
17191 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17192
17193         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
17194         (const_hash_1) <VECTOR_CST>: New case.
17195         (compare_constant) <VECTOR_CST>: Likewise.
17196         <ADDR_EXPR>: Deal with LABEL_REFs.
17197         (copy_constant) <VECTOR_CST>: New case.
17198
17199 2010-04-27  Jan Hubicka  <jh@suse.cz>
17200
17201         * cgraph.c (cgraph_propagate_frequency): New function.
17202         * cgraph.h (cgraph_propagate_frequency): Declare.
17203         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
17204         cgraph_propagate_frequency.
17205
17206 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
17207
17208         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
17209
17210 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
17211
17212         PR target/40657
17213         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
17214         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
17215         here to determine which regs to push and how much stack to reserve.
17216
17217 2010-04-27  Jie Zhang  <jie@codesourcery.com>
17218
17219         * doc/gimple.texi (gimple_statement_with_ops): Remove
17220         addresses_taken field.
17221         (gimple_statement_with_memory_ops): Likewise.
17222
17223 2010-04-27  Jan Hubicka  <jh@suse.cz>
17224
17225         * tree-inline.c (eni_inlining_weights): Remove.
17226         (estimate_num_insns): Special case more builtins.
17227
17228 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
17229
17230         PR c/32207
17231         * c-typeck.c (build_binary_op): Move forward check for comparison
17232         pointer with null pointer constant and adjust the diagnostic message.
17233
17234 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
17235
17236         PR lto/42776
17237         * configure.ac (gcc_cv_as_section_has_align): Set if installed
17238         binutils supports extended .section directive needed by LTO, or
17239         warn if older binutils found.
17240         (LTO_BINARY_READER): New AC_SUBST'd variable.
17241         (LTO_USE_LIBELF): Likewise.
17242         * gcc/config.gcc (lto_binary_reader): New target-specific configure
17243         variable.
17244         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
17245         (LTO_USE_LIBELF): Likewise.
17246         * configure: Regenerate.
17247
17248         * collect2.c (is_elf): Rename from this ...
17249         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
17250          object files in addition to ELF-formatted ones.
17251         (scan_prog_file): Caller updated.  Also allow for LTO info marker
17252         symbol to be prefixed or not by an extra underscore.
17253
17254         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
17255         * config/i386/winnt.c: Also #include lto-streamer.h
17256         (i386_pe_asm_named_section): Specify 1-byte section alignment for
17257         LTO named sections.
17258         (i386_pe_asm_output_aligned_decl_common): Add comment.
17259         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
17260
17261 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
17262
17263         PR target/43889
17264         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
17265         Add missing earlyclobber for second alternative.
17266
17267 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
17268
17269         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
17270         bits for artificial defs at the top of the block.
17271         * fwprop.c (single_def_use_enter_block): Don't call it.
17272
17273 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
17274
17275         PR 43715
17276         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
17277         instead of "$gcc_cv_objdump -T".
17278         Use "-undefined dynamic_lookup" on darwin.
17279         * gcc/configure: Regenerate.
17280
17281 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
17282
17283         PR c/43893
17284         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
17285
17286 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
17287
17288         * c-parser.c (struct c_token): Move location field up.
17289         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
17290         (struct c_declspecs): Convert typespec_word, storage_class, and
17291         default_int_p into bitfields.
17292         (struct c_declarator): Move loc field up.
17293
17294 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
17295
17296         * cfgloop.h (struct loop): Move can_be_parallel field up.
17297         * ipa-prop.h (struct ip_node_params): Move bitfields up.
17298         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
17299         down.
17300         (struct iv_cand): Convert pos field into a bitfield.
17301         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
17302         field up.
17303         (struct _stmt_vec_info): Shuffle fields for better packing.
17304
17305 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17306
17307         * varasm.c (IN_NAMED_SECTION): Remove guard.
17308         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
17309         (IN_NAMED_SECTION_P): ...this.
17310         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
17311         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17312
17313 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17314
17315         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
17316         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
17317         of shadowing it.  Fix comments.
17318
17319 2010-04-26  Jan Hubicka  <jh@suse.cz>
17320
17321         * cgraph.c (cgraph_create_node): Set node frequency to normal.
17322         (cgraph_clone_node): Copy function frequency.
17323         * cgraph.h (node_frequency): New enum
17324         (struct cgraph_node): Add.
17325         * final.c (rest_of_clean_state): Update.
17326         * lto-cgraph.c (lto_output_node): Output node frequency.
17327         (input_overwrite_node): Input node frequency.
17328         * tre-ssa-loop-ivopts (computation_cost): Update.
17329         * lto-streamer-out.c (output_function): Do not output function
17330         frequency.
17331         * predict.c (maybe_hot_frequency_p): Update and handle functions
17332         executed once.
17333         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
17334         attribute lookup.
17335         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
17336         (compute_function_frequency): Set noreturn functions to be executed
17337         once.
17338         (choose_function_section): Update.
17339         * lto-streamer-in.c (input_function): Do not input function frequency.
17340         * function.c (allocate_struct_function): Do not initialize function
17341         frequency.
17342         * function.h (function_frequency): Remove.
17343         (struct function): Remove function frequency.
17344         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
17345         (try_update): Update.
17346         * tree-inline.c (initialize_cfun): Do not update function frequency.
17347         * passes.c (pass_init_dump_file): Update.
17348         * i386.c (ix86_compute_frame_layout): Update.
17349         (ix86_pad_returns): Update.
17350
17351 2010-04-26  Jie Zhang  <jie@codesourcery.com>
17352
17353         PR tree-optimization/43833
17354         * tree-vrp.c (range_int_cst_p): New.
17355         (range_int_cst_singleton_p): New.
17356         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
17357         when both operands are constants.  Use range_int_cst_p in
17358         BIT_IOR_EXPR case.
17359
17360 2010-04-26  Jan Hubicka  <jh@suse.cz>
17361
17362         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
17363
17364 2010-04-26  Richard Guenther  <rguenther@suse.de>
17365
17366         PR lto/43080
17367         * gimple.c (gimple_decl_printable_name): Deal gracefully
17368         with a NULL DECL_NAME.
17369
17370 2010-04-26  Richard Guenther  <rguenther@suse.de>
17371
17372         PR lto/42425
17373         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
17374         if emitting debug information and it is either a function
17375         or a namespace decl.
17376
17377 2010-04-26  Ira Rosen  <irar@il.ibm.com>
17378
17379         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
17380         determine if the statement is vectorizable, and a macro to access it.
17381         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17382         Skip statements that can't be vectorized. If the analysis fails,
17383         mark the statement as unvectorizable if vectorizing basic block.
17384         (vect_compute_data_refs_alignment): Likewise.
17385         (vect_verify_datarefs_alignment): Skip statements marked as
17386         unvectorizable. Add print.
17387         (vect_analyze_group_access): Skip statements that can't be
17388         vectorized. If the analysis fails, mark the statement as
17389         unvectorizable if vectorizing basic block.
17390         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
17391         * tree-vect-stmts.c (vectorizable_store): Fix the number of
17392         generated stmts for SLP.
17393         (new_stmt_vec_info): Initialize the new field.
17394         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
17395         statements marked as unvectorizable.
17396
17397 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
17398
17399         * c-common.c (flag_isoc1x): New.
17400         (flag_isoc99): Update comment.
17401         * c-common.h (flag_isoc1x): New.
17402         (flag_isoc99): Update comment.
17403         * c-cppbuiltin.c (builtin_define_float_constants): Also define
17404         __<type>_DECIMAL_DIG__.
17405         * c-opts.c (set_std_c1x): New.
17406         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
17407         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
17408         * c.opt (-std=c1x, -std=gnu1x): New options.
17409         * doc/cpp.texi: Mention -std=c1x.
17410         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
17411         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
17412         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
17413         * doc/standards.texi: Mention C1X.
17414         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
17415         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
17416         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
17417         Define for C1X.
17418
17419 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
17420
17421         * config/i386/gmon-sol2.c (_mcleanup): Change format string
17422         placeholder from 0x%x to %#x.
17423         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17424         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17425         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17426         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17427         * config/i386/i386.c (ix86_target_string): Ditto.
17428         (output_pic_addr_const): Ditto.
17429         (print_operand): Ditto.
17430
17431 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
17432
17433         * combine.c (find_split_point): Add third argument.  Use it
17434         to find nested multiply-accumulate instructions.  Adjust calls.
17435         (try_combine): Adjust call to find_split_point.
17436
17437 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17438
17439         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
17440
17441 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
17442
17443         PR tree-optimization/41442
17444         * fold-const.c (merge_truthop_with_opposite_arm): New function.
17445         (fold_binary_loc): Call it.
17446
17447 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17448
17449         * toplev.c (general_init): Set default for fdiagnostics-show-option.
17450         * opts.c (common_handle_option): Allow disabling it.
17451         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
17452
17453 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
17454
17455         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
17456         between modes if both types are integral.
17457
17458 2010-04-23  Richard Guenther  <rguenther@suse.de>
17459
17460         PR tree-optimization/43572
17461         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
17462
17463 2010-04-23  Richard Guenther  <rguenther@suse.de>
17464
17465         PR lto/43455
17466         * tree-inline.c (tree_can_inline_p): Also check compatibility
17467         of return types.
17468
17469 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17470
17471         PR tree-optimization/43846
17472         * tree-sra.c (struct access): New flag grp_assignment_read.
17473         (build_accesses_from_assign): Set grp_assignment_read.
17474         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
17475         (enum mark_read_status): New type.
17476         (analyze_access_subtree): Propagate grp_assignment_read, create
17477         accesses also if both direct_read and root->grp_assignment_read.
17478
17479 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17480
17481         PR middle-end/43835
17482         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
17483         function does not have type attributes.
17484
17485 2010-04-23  Richard Guenther  <rguenther@suse.de>
17486
17487         PR lto/42653
17488         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
17489         of FUNCTION_DECLs.
17490
17491 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17492
17493         * sese.h (create_if_region_on_edge): Remove.
17494
17495         * sese.c (create_if_region_on_edge): Make static.
17496
17497         * tree-inline.c: Do not include ggc.h.
17498
17499         * expr.c: Do not include ggc.h.
17500
17501         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
17502         dependencies.
17503
17504 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
17505
17506         PR target/43744
17507         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17508         in the middle of insns for casesi_worker_2.
17509
17510 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
17511
17512         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
17513
17514 2010-04-22  Ira Rosen  <irar@il.ibm.com>
17515
17516         PR tree-optimization/43842
17517         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
17518         loop unrolling in update of exit phis. Fix comment.
17519         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
17520         least two reduction statements in the loop before starting SLP
17521         analysis.
17522
17523 2010-04-22  Nick Clifton  <nickc@redhat.com>
17524
17525         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
17526
17527 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
17528
17529         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
17530         to simplify a + ~a.
17531
17532 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17533
17534         * tree-parloops.c (loop_parallel_p): New argument
17535         parloop_obstack.  Pass it down.
17536         (parallelize_loops): New variable parloop_obstack.  Initialize it,
17537         pass it down, free it.
17538
17539         * tree-loop-linear.c (linear_transform_loops): Pass down
17540         lambda_obstack.
17541
17542         * tree-data-ref.h (lambda_compute_access_matrices): New argument
17543         of type struct obstack *.
17544
17545         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
17546         scratch_obstack.  Initialize it, pass down, free it.
17547
17548         * lambda.h (lambda_loop_new): Remove.
17549         (lambda_matrix_new, lambda_matrix_inverse)
17550         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
17551         argument of type struct obstack *.
17552
17553         * lambda-trans.c (lambda_trans_matrix_new): New argument
17554         lambda_obstack.  Pass it down, use obstack allocation for ret.
17555         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
17556         it down.
17557
17558         * lambda-mat.c (lambda_matrix_get_column)
17559         (lambda_matrix_project_to_null): Remove.
17560         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
17561         allocation for mat.
17562         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
17563         lambda_obstack.
17564
17565         * lambda-code.c (lambda_loop_new): New function.
17566         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
17567         (lambda_compute_auxillary_space, lambda_compute_target_space)
17568         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
17569         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
17570         (build_access_matrix): New argument lambda_obstack.  Use obstack
17571         allocation for am.
17572         (lambda_compute_step_signs, lambda_compute_access_matrices): New
17573         argument lambda_obstack.  Pass it down.
17574
17575 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17576
17577         * optabs.h (expand_widening_mult): Declare.
17578
17579 2010-04-22  Richard Guenther  <rguenther@suse.de>
17580
17581         PR tree-optimization/43845
17582         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
17583         lookup the CALL_EXPR function and arguments.
17584
17585 2010-04-22  Nick Clifton  <nickc@redhat.com>
17586
17587         * config/stormy16/stormy16.c
17588         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
17589         * config/stormy16/stormy16.h: Tidy up formatting.
17590         (DONT_USE_BUILTIN_SETJMP): Remove definition.
17591         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
17592         (ineqbranchsi): Delete pattern.
17593         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
17594         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
17595         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17596         stormy16-lib2-ucmpsi2.c.
17597
17598 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17599
17600         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
17601         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
17602         extra set merge_set_noclobber, and use it to relax the final test
17603         slightly.
17604         * df.h (df_simulate_find_noclobber_defs): Declare.
17605         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
17606         conditional defs.
17607         (df_simulate_find_noclobber_defs): New function.
17608
17609 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
17610
17611         * config/i386/i386.md: Use {} around multi-line preparation statements.
17612
17613 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17614
17615         * c-tree.h (push_init_level, pop_init_level, set_init_index)
17616         (process_init_element): New argument of type struct obstack *.
17617
17618         * c-typeck.c (push_init_level, pop_init_level, set_designator)
17619         (set_init_index, set_init_label, set_nonincremental_init)
17620         (set_nonincremental_init_from_string, find_init_member)
17621         (output_init_element, output_pending_init_elements)
17622         (process_init_element): New argument braced_init_obstack.  Pass it
17623         down.
17624         (push_range_stack, add_pending_init): New argument
17625         braced_init_obstack.  Use obstack allocation.
17626
17627         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17628         braced_init_obstack.  Pass it down.
17629         (c_parser_braced_init): New variables ret, braced_init_obstack.
17630         Initialize obstack, pass it down and finally free it.
17631
17632 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17633
17634         PR middle-end/29274
17635         * tree-pass.h (pass_optimize_widening_mul): Declare.
17636         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17637         gate_optimize_widening_mul): New static functions.
17638         (pass_optimize_widening_mul): New.
17639         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17640         <case MULT_EXPR>: Remove support for widening multiplies.
17641         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17642         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17643         simplify_gen_unary rather than directly building extensions.
17644         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17645         WIDEN_MULT_EXPR.
17646         * expmed.c (expand_widening_mult): New function.
17647         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17648
17649 2010-04-21  Jan Hubicka  <jh@suse.cz>
17650
17651         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17652         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17653         * lto-wpa-fixup.c: Remove.
17654         * Makefile.in (lto-wpa-fixup.o): Remove.
17655         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17656         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17657         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17658
17659 2010-04-21  Jan Hubicka  <jh@suse.cz>
17660
17661         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17662         add write_optimization_summary, read_optimization_summary.
17663         (ipa_write_summaries_of_cgraph_node_set): Remove.
17664         (ipa_write_optimization_summaries): Declare.
17665         (ipa_read_optimization_summaries): Declare.
17666         * ipa-cp.c (pass_ipa_cp): Update.
17667         * ipa-reference.c (pass_ipa_reference): Update.
17668         * ipa-pure-const.c (pass_ipa_pure_const): Update.
17669         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17670         Update.
17671         * ipa-inline.c (pass_ipa_inline): Update.
17672         * ipa.c (pass_ipa_whole_program): Update.
17673         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17674         * passes.c (ipa_write_summaries_1): Do not test wpa.
17675         (ipa_write_optimization_summaries_1): New.
17676         (ipa_write_optimization_summaries): New.
17677         (ipa_read_summaries): Do not test ltrans.
17678         (ipa_read_optimization_summaries_1): New.
17679         (ipa_read_optimization_summaries): New.
17680
17681 2010-04-21  Jan Hubicka  <jh@suse.cz>
17682
17683         * lto-cgraph.c (lto_output_node): Do not output comdat groups
17684         for boundary nodes.
17685         (output_cgraph): Do not arrange comdat groups for boundary nodes.
17686
17687 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17688
17689         PR debug/40040
17690         * dwarf2out.c (add_name_and_src_coords_attributes): Add
17691         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17692
17693 2010-04-21  Jan Hubicka  <jh@suse.cz>
17694
17695         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17696
17697 2010-04-21  Jan Hubicka  <jh@suse.cz>
17698
17699         * varpool.c (decide_is_variable_needed): Variable is always needed
17700         during ltrans.
17701
17702 2010-04-21  Jan Hubicka  <jh@suse.cz>
17703
17704         * opts.c (decode_options): Enable pure-const pass for whopr.
17705
17706 2010-04-21  Jan Hubicka  <jh@suse.cz>
17707
17708         * cgraph.c (dump_cgraph_node): Dump also assembler name.
17709         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17710         at WPA dumping.
17711         (cgraph_decide_inlining): Do not expect callee to be removed in all
17712         cases.
17713
17714 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
17715
17716         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17717
17718 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17719
17720         * config/i386/i386.md (x86_shrd): Add athlon_decode and
17721         amdfam10_decode attributes.
17722
17723 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17724
17725         PR middle-end/43570
17726         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17727         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17728         (lower_copyprivate_clauses): Use private var in outer
17729         context instead of original var.  Make sure the types
17730         are correct for VLAs.
17731
17732 2010-04-21  Richard Guenther  <rguenther@suse.de>
17733
17734         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17735         to non-pointer objects.
17736
17737 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17738
17739         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
17740         last chain entry if it starts with the still current label.
17741         (add_location_or_const_value_attribute): Check that
17742         loc_list->first->next is NULL instead of comparing ->first with ->last.
17743         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17744         to add_var_loc_to_decl.
17745
17746         * dwarf2out.c (output_call_frame_info): For dw_cie_version
17747         >= 4 add also address size and segment size fields into CIE header.
17748
17749         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17750         long as address size is the same as sizeof (void *) and
17751         segment size is 0.
17752         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
17753         address size or segment size is unexpected, return DW_EH_PE_omit.
17754         (classify_object_over_fdes): If get_cie_encoding returned
17755         DW_EH_PE_omit, return -1.
17756         (init_object): If classify_object_over_fdes returned -1,
17757         pretend there were no FDEs at all.
17758
17759 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17760
17761         * config/i386/i386.md (bswap<mode>2): Macroize expander from
17762         bswap{si,di}2 using SWI48 mode iterator.
17763         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17764         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
17765         set modrm attribute of bswap insn to 0 and remove length attribute.
17766         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17767         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
17768         set mode attribute to <MODE> and remove length attribute.
17769
17770 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
17771
17772         PR rtl-optimization/43520
17773         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17774         zero available registers.
17775
17776 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17777
17778         * builtins.c (fold_builtin_cproj): Fold more cases.
17779
17780 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17781
17782         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17783         (fold_builtin_1): Fold builtin cproj.
17784         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17785         Use ATTR_CONST_NOTHROW_LIST.
17786
17787 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
17788
17789         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17790         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17791         ffsi2_no_cmove for !TARGET_CMOVE.
17792         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17793         (ffssi2): Remove expander.
17794         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17795         mode iterator.
17796         (ctz<mode>2): Ditto from ctz{si,di}2.
17797         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17798         mode iterator.
17799         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17800         mode iterator.
17801
17802 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17803
17804         * dwarf2out.c (AT_linkage_name): Define.
17805         (clone_as_declaration): Handle DW_AT_linkage_name.
17806         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17807         of DW_AT_MIPS_linkage_name.
17808         (move_linkage_attr): Likewise.
17809         (dwarf2out_finish): Likewise.
17810
17811 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17812
17813         PR middle-end/41952
17814         * fold-const.c (fold_comparison): New folding rule.
17815
17816 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17817
17818         * double-int.h (double_int_setbit): Declare.
17819         * double-int.c (double_int_setbit): New function.
17820         * rtl.h (immed_double_int_const): Declare.
17821         * emit-rtl.c (immed_double_int_const): New function.
17822         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17823         and immed_double_int_const functions.
17824         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17825         expand_copysign_bit): (Ditto.).
17826         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17827         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17828         * dojump.c (prefer_and_bit_test): (Ditto.).
17829         * expr.c (convert_modes, reduce_to_bit_field_precision,
17830         const_vector_from_tree): (Ditto.).
17831         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17832
17833 2010-04-20  Jan Hubicka  <jh@suse.cz>
17834
17835         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17836         (dump_cgraph_node): Dump new flags.
17837         * cgraph.h (struct cgraph_node): Add flags
17838         reachable_from_other_partition and in_other_partition.
17839         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17840         other partition can not be removed.
17841         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17842         the other partition must be output; silence sanity checking on
17843         leaking functions bodies from other paritition.
17844         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17845         (lto_output_node): Output new flags; do not sanity check that inline
17846         clones are output; drop lto_forced_extern_inline_p code; do not mock
17847         visibility flags at partition boundaries.
17848         (add_node_to): New function.
17849         (output_cgraph): Use it to sort functions so masters appear before
17850         clones.
17851         (input_overwrite_node): Input new flags.
17852         * passes.c (ipa_write_summaries): Do not call
17853         lto_new_extern_inline_states.
17854         * lto-section-out.c (forced_extern_inline,
17855         lto_new_extern_inline_states lto_delete_extern_inline_states,
17856         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17857         * lto-streamer.h (lto_new_extern_inline_states,
17858         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17859         lto_forced_extern_inline_p): Kill.
17860
17861 2010-04-20  Richard Guenther  <rguenther@suse.de>
17862
17863         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17864         from vars that can have pointers.
17865         (process_constraint): Dump useless constraints.
17866
17867 2010-04-20  Richard Guenther  <rguenther@suse.de>
17868
17869         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17870         (dump_sa_points_to_info): Remove asserts.
17871         (init_base_vars): nothing_id isn't an escape point nor does it
17872         have pointers.
17873
17874 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17875
17876         * tree.h (TYPE_REF_IS_RVALUE): Define.
17877         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17878         should_move_die_to_comdat, prune_unused_types_walk): Handle
17879         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17880         (modified_type_die, gen_reference_type_die): Emit
17881         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17882         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17883
17884 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17885
17886         PR target/43635
17887         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17888         calls for -fpic -m31 if they have been sibcall optimized.
17889
17890 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17891
17892         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17893         ar.lc fixed and call-used.
17894
17895         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17896
17897 2010-04-19  Jan Hubicka  <jh@suse.cz>
17898
17899         * opts.c (decode_options): Disable whpr incompatible passes.
17900         * lto/lto.c (lto_1_to_1_map): Skip clones.
17901         (read_cgraph_and_symbols): Do not mark everything as needed.
17902         (do_whole_program_analysis): Do map only after optimizing;
17903         set proper cgraph_state; use passmanager.
17904
17905 2010-04-19  DJ Delorie  <dj@redhat.com>
17906
17907         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17908         POINTER_PLUS_EXPR and fix them.
17909
17910 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17911
17912         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17913         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17914         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17915         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17916         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17917         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17918         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17919         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17920         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17921         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17922         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17923
17924 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17925
17926         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17927         (check_cond_move_block): Likewise.
17928         (cond_move_process_if_block): Likewise.
17929         (noce_find_if_block): Improve formatting.
17930         (find_if_header): Pass 0 to memset and tweak conditions.
17931         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17932
17933 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17934
17935         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17936         for -gdwarf-4.
17937
17938         PR middle-end/43337
17939         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17940         with non-local decl doesn't need chain.
17941
17942 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17943
17944         * ira-color.c (allocno_reload_assign): Avoid accumulating
17945         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17946
17947 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17948
17949         * gimple.h (create_tmp_reg): Declare.
17950         * gimplify.c (create_tmp_reg): New function.
17951         (gimplify_return_expr): Use create_tmp_reg.
17952         (gimplify_omp_atomic): Likewise.
17953         (gimple_regimplify_operands): Likewise.
17954         * tree-dfa.c (make_rename_temp): Likewise.
17955         * tree-predcom.c (predcom_tmp_var): Likewise.
17956         (reassociate_to_the_same_stmt): Likewise.
17957         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17958         (get_replaced_param_substitute): Likewise.
17959         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17960         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17961         * tree-ssa-pre.c (get_representative_for): Likewise.
17962         (create_expression_by_pieces): Likewise.
17963         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17964         (create_tailcall_accumulator): Likewise.
17965
17966 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17967
17968         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17969         new_stmt.
17970         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17971
17972 2010-04-19  Richard Guenther  <rguenther@suse.de>
17973
17974         PR tree-optimization/43796
17975         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17976         from SCEV in the lattice.
17977         (vrp_visit_phi_node): Dump change.
17978
17979 2010-04-19  Richard Guenther  <rguenther@suse.de>
17980
17981         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17982         * configure: Re-generated.
17983
17984 2010-04-19  Richard Guenther  <rguenther@suse.de>
17985
17986         PR tree-optimization/43783
17987         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17988         constant ARRAY_REF operands two and three if possible.
17989
17990 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17991
17992         PR target/43766
17993         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17994
17995 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17996
17997         PR target/43662
17998         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17999
18000 2010-04-19  Ira Rosen  <irar@il.ibm.com>
18001
18002         PR tree-optimization/37027
18003         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
18004         and macro to access it.
18005         (vectorizable_reduction): Add argument.
18006         (vect_get_slp_defs): Likewise.
18007         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
18008         statements for possible use in SLP.
18009         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
18010         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
18011         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
18012         add new argument.
18013         (vectorizable_reduction): Likewise.
18014         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
18015         vect_get_slp_defs.
18016         (vectorizable_type_demotion, vectorizable_type_promotion,
18017         vectorizable_store): Likewise.
18018         (vect_analyze_stmt): Update call to vectorizable_reduction.
18019         (vect_transform_stmt): Likewise.
18020         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
18021         (vect_build_slp_tree): Fix indentation. Check that there are no loads
18022         from different interleaving chains in same node.
18023         (vect_slp_rearrange_stmts): New function.
18024         (vect_supported_load_permutation_p): Allow load permutations for
18025         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
18026         inside SLP nodes if necessary.
18027         (vect_analyze_slp_instance): Handle reductions.
18028         (vect_analyze_slp): Try to build SLP instances originating from groups
18029         of reductions.
18030         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
18031         (vect_get_constant_vectors): Create initial vectors for reductions
18032         according to reduction code. Add new argument.
18033         (vect_get_slp_defs): Add new argument, pass it to
18034         vect_get_constant_vectors.
18035         (vect_schedule_slp_instance): Remove SLP tree root statements.
18036
18037 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
18038
18039         * tree.h (ENUM_IS_SCOPED): Define.
18040         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
18041         for ENUM_IS_SCOPED enums.
18042
18043 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
18044
18045         * fold-const.c (fold_comparison): Use ssizetype.
18046         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
18047         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
18048         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
18049         * tree-object-size.c (compute_object_sizes): Use size_type_node.
18050
18051         * tree.h (initialize_sizetypes): Remove parameter.
18052         (build_common_tree_nodes): Remove second parameter.
18053         * stor-layout.c (initialize_sizetypes): Remove parameter.
18054         Always create an unsigned type.
18055         (set_sizetype): Assert that the passed type is unsigned and simplify.
18056         * tree.c (build_common_tree_nodes): Remove second parameter.
18057         Adjust call to initialize_sizetypes.
18058         * c-decl.c (c_init_decl_processing): Remove second argument in call to
18059         build_common_tree_nodes.
18060
18061 2010-04-18  Matthias Klose  <doko@ubuntu.com>
18062
18063         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
18064
18065 2010-04-18  Ira Rosen  <irar@il.ibm.com>
18066
18067         PR tree-optimization/43771
18068         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
18069         load permutation doesn't have gaps.
18070
18071 2010-04-18  Jan Hubicka  <jh@suse.cz>
18072
18073         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
18074         (sse_prologue_save_insn expander): Use new pattern.
18075         (sse_prologue_save_insn1): New pattern and splitter.
18076         (sse_prologue_save_insn): Update to deal also with 64bit aligned
18077         blocks.
18078         * i386.c (setup_incoming_varargs_64): Do not compute jump
18079         destination here.
18080         (ix86_gimplify_va_arg): Update alignment needed.
18081         (ix86_local_alignment): Do not align all local arrays to 128bit.
18082
18083 2010-04-17  Jan Hubicka  <jh@suse.cz>
18084
18085         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
18086
18087 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
18088
18089         * arm.md (negdi2): Remove redundant code to force values into a
18090         register.
18091
18092 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
18093
18094         * arm/bpabi.S: Add EABI alignment attributes to objects.
18095         * arm/bpabi-v6m.S: Likewise.
18096         * arm/crti.asm: Likewise.
18097         * arm/crtn.asm: Likewise.
18098         * arm/lib1funcs.asm: Likewise.
18099         * arm/libunwind.S: Likewise.
18100
18101 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
18102
18103         * arm-protos.h (tune_params): New structure.
18104         * arm.c (current_tune): New variable.
18105         (arm_constant_limit): Delete.
18106         (struct processors): Add pointer to the tune parameters.
18107         (arm_slowmul_tune): New tuning option.
18108         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
18109         (all_cores): Adjust to pick up the tuning model.
18110         (arm_constant_limit): New function.
18111         (arm_override_options): Select the appropriate tuning model.  Delete
18112         initialization of arm_const_limit.
18113         (arm_split_constant): Use the new constant-limit model.
18114         (arm_rtx_costs): Pick up the current tuning model.
18115         * arm.md (is_strongarm, is_xscale): Delete.
18116         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
18117         for Xscale variant architectures.
18118         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
18119
18120 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18121
18122         * config/arm/arm.c (arm_gen_constant): Remove unused variable
18123         can_shift.
18124         (arm_rtx_costs_1): Remove unused variable extra_cost.
18125         (arm_unwind_emit_set): Use variable offset.
18126         (thumb1_output_casesi): Remove unused variable flags.
18127
18128 2010-04-16  Jeff Law  <law@redhat.com>
18129
18130         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
18131         needing assignment rather than doing a two-phase assignment.  Remove
18132         unused variable 'm'.
18133
18134 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
18135
18136         PR bootstrap/43767
18137         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
18138
18139 2010-04-16  Doug Kwan  <dougkwan@google.com>
18140
18141         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
18142         (next_operand_entry_id): New static variable.
18143         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
18144         (add_to_ops_vec): Assigned unique ID to operand entry.
18145         (struct oecount_s): New field ID.
18146         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
18147         (undistribute_ops_list): Assign unique IDs to oecounts.
18148         (init_reassoc): reset next_operand_entry_id.
18149
18150 2010-04-16  Doug Kwan  <dougkwan@google.com>
18151
18152         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
18153         missing left parenthesis.
18154
18155 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
18156
18157         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
18158         *btdi_rex64 using SWI48 mode iterator.
18159         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
18160         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
18161         *jcc_btdi_mask_rex64.
18162
18163 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
18164
18165         * double-int.h (tree_to_double_int): Convert to macro.
18166         * double-int.c (tree_to_double_int): Remove.
18167
18168 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
18169
18170         PR debug/43762
18171         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
18172         with want_address 2 and in case a single element list might be
18173         possible, call it again with want_address 0.
18174
18175 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18176
18177         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
18178         case 'W' print operands for HI mode.
18179         * config/h8300/h8300.h (Y0, Y2) : New constraints.
18180         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
18181         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
18182         * config/h8300/predicate.md (bit_register_indirect_operand): New.
18183
18184         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
18185
18186         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
18187         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
18188         #xx:3 and #xx:4 mode.
18189
18190         * config/h8300/h8300.md (inverted load with HImode dest): Add
18191         support for H8300SX.
18192
18193         * config/h8300/predicate.md (bit_operand): Allow immediate values that
18194         satisfy 'U' constraint.
18195
18196 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18197
18198         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
18199         * configure: Regenerate.
18200         * config.in: Regenerate.
18201         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
18202         works.
18203
18204 2010-04-16  Richard Guenther  <rguenther@suse.de>
18205
18206         * tree.h (struct tree_decl_minimal): Move pt_uid ...
18207         (struct tree_decl_common): ... here.
18208         (DECL_PT_UID): Adjust.
18209         (SET_DECL_PT_UID): Likewise.
18210         (DECL_PT_UID_SET_P): Likewise.
18211
18212 2010-04-16  Richard Guenther  <rguenther@suse.de>
18213
18214         PR tree-optimization/43572
18215         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
18216         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
18217         * tree-flow.h (is_call_clobbered): Remove.
18218         * tree-flow-inline.h (is_call_clobbered): Likewise.
18219         * tree-dfa.c (dump_variable): Do not dump call clobber state.
18220         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
18221         (execute_return_slot_opt): Adjust.
18222         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
18223         check for call clobbered vars here.
18224         (find_tail_calls): Move tailcall verification to the
18225         proper place.
18226
18227 2010-04-16  Diego Novillo  <dnovillo@google.com>
18228
18229         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
18230
18231 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
18232
18233         PR target/40603
18234         * config/arm/arm.md (cbranchqi4): New pattern.
18235         * config/arm/predicates.md (const0_operand,
18236         cbranchqi4_comparison_operator): New predicates.
18237
18238 2010-04-16  Richard Guenther  <rguenther@suse.de>
18239
18240         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
18241         (dump_gimple_stmt): Likewise.
18242
18243 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
18244
18245         * recog.h (struct recog_data): New field is_operator.
18246         (struct insn_operand_data): New field is_operator.
18247         * recog.c (extract_insn): Set recog_data.is_operator.
18248         * genoutput.c (output_operand_data): Emit code to set the
18249         is_operator field.
18250         * reload.c (find_reloads): Use it rather than testing for an
18251         empty constraint string.
18252
18253         PR target/41514
18254         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
18255         If the previous insn is a cbranchsi4_insn with the same arguments,
18256         omit the compare instruction.
18257
18258         * config/arm/arm.md (addsi3_cbranch): If destination is a high
18259         register, inputs must be low registers and we need a low register
18260         scratch.  Handle alternative 2 like alternative 3.
18261
18262 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
18263
18264         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
18265         don't call get_addr on both.  If one expression is a VALUE and
18266         the other a REG, check VALUE's locs if the REG isn't among them.
18267
18268 2010-04-16  Christian Bruel  <christian.bruel@st.com>
18269
18270         * config/sh/sh.h (sh_frame_pointer_required): New function.
18271         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
18272         (flag_omit_frame_pointer) Set.
18273         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
18274         (rounded_frame_size): Adjust size with outgoing_args_size.
18275         (sh_set_return_address): Must return from stack pointer.
18276         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
18277         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
18278         (ACCUMULATE_OUTGOING_ARGS): Define.
18279         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
18280         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
18281
18282 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
18283
18284         PR target/43471
18285         * config/sh/sh.c (sh_legitimize_reload_address): Use
18286         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
18287         Remove a unneeded check for offset_base.
18288
18289 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
18290
18291         * configure: Regenerated.
18292
18293 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18294
18295         * config/s390/s390.c (s390_call_save_register_used): Switch back
18296         to HARD_REGNO_NREGS.
18297
18298 2010-04-15  Richard Guenther  <rguenther@suse.de>
18299
18300         * alias.c (alias_set_subset_of): Handle alias-set zero
18301         child properly.
18302
18303 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
18304             Julian Brown  <julian@codesourcery.com>
18305
18306         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
18307         alternatives according to use of high and low regs.
18308         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18309         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
18310         optimizing for size on Thumb-2.
18311
18312 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
18313
18314         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
18315
18316 2010-04-15  Richard Guenther  <rguenther@suse.de>
18317
18318         * tree-ssa-structalias.c (struct variable_info): Add
18319         is_fn_info flag.
18320         (new_var_info): Initialize it.
18321         (dump_constraints): Support printing last added constraints.
18322         (debug_constraints): Adjust.
18323         (dump_constraint_graph): Likewise.
18324         (make_heapvar_for): Check for NULL cfun.
18325         (get_function_part_constraint): New function.
18326         (get_fi_for_callee): Likewise.
18327         (find_func_aliases): Properly implement IPA PTA constraints.
18328         (process_ipa_clobber): New function.
18329         (find_func_clobbers): Likewise.
18330         (insert_into_field_list_sorted): Remove.
18331         (create_function_info_for): Properly allocate vars for IPA mode.
18332         Do not use insert_into_field_list_sorted.
18333         (create_variable_info_for): Properly generate constraints for
18334         global vars in IPA mode.
18335         (dump_solution_for_var): Always dump the solution.
18336         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
18337         (find_what_var_points_to): Adjust.
18338         (pt_solution_set): Change.
18339         (pt_solution_ior_into): New function.
18340         (pt_solution_empty_p): Export.
18341         (pt_solution_includes_global): Adjust.
18342         (pt_solution_includes_1): Likewise.
18343         (pt_solutions_intersect_1): Likewise.
18344         (dump_sa_points_to_info): Check some invariants.
18345         (solve_constraints): Move constraint dumping ...
18346         (compute_points_to_sets): ... here.
18347         (ipa_pta_execute): ... and here.
18348         (compute_may_aliases): Do not re-compute points-to info
18349         locally if IPA info is available.
18350         (ipa_escaped_pt): New global var.
18351         (ipa_pta_execute): Properly implement IPA PTA.
18352         * tree-into-ssa.c (dump_decl_set): Support dumping
18353         decls not in referenced-vars.
18354         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
18355         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
18356         (dump_points_to_solution): Likewise.
18357         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
18358         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
18359         (remap_gimple_stmt): Reset call clobber/use information if necessary.
18360         (copy_decl_to_var): Copy DECL_PT_UID.
18361         (copy_result_decl_to_var): Likewise.
18362         * tree.c (make_node_stat): Initialize DECL_PT_UID.
18363         (copy_node_stat): Copy it.
18364         * tree.h (DECL_PT_UID): New macro.
18365         (SET_DECL_PT_UID): Likewise.
18366         (DECL_PT_UID_SET_P): Likewise.
18367         (struct tree_decl_minimal): Add pt_uid member.
18368         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
18369         (pt_solution_empty_p): Declare.
18370         (pt_solution_set): Adjust.
18371         (ipa_escaped_pt): Declare.
18372         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
18373         * gimple-pretty-print.c (pp_points_to_solution): New function.
18374         (dump_gimple_call): Dump call clobber/use information.
18375         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
18376         * tree-pass.h (TDF_ALIAS): New dump option.
18377         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
18378         * doc/invoke.texi (-fipa-pta): Update documentation.
18379
18380 2010-04-15  Richard Guenther  <rguenther@suse.de>
18381
18382         * Makefile.in (OBJS-common): Add gimple-fold.o.
18383         (gimple-fold.o): New rule.
18384         * tree.h (maybe_fold_offset_to_reference,
18385         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
18386         prototypes ...
18387         * gimple.h: ... here.
18388         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
18389         may_propagate_address_into_dereference): Move prototypes ...
18390         * gimple.h: ... here.
18391         * tree-ssa-ccp.c (get_symbol_constant_value,
18392         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
18393         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
18394         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
18395         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
18396         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
18397         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
18398         gimplify_and_update_call_from_tree): Move ...
18399         * gimple-fold.c: ... here.  New file.
18400         (ccp_fold_builtin): Rename to ...
18401         (gimple_fold_builtin): ... this.
18402         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
18403
18404 2010-04-15  Richard Guenther  <rguenther@suse.de>
18405
18406         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
18407         fit_double_type, force_fit_type_double, add_double_with_sign,
18408         neg_double, mul_double_with_sign, lshift_double, rshift_double,
18409         lrotate_double, rrotate_double, div_and_round_double): Move ...
18410         * double-int.c: ... here.
18411         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
18412         add_double, neg_double, mul_double_with_sign, mul_double,
18413         lshift_double, rshift_double, lrotate_double, rrotate_double,
18414         div_and_round_double): Move prototypes ...
18415         * double-int.h: ... here.
18416
18417 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
18418
18419         PR target/43742
18420         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
18421         matching constraints to ensure inputs match the output.
18422
18423 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
18424
18425         PR target/43742
18426         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
18427         in an input-only operand.
18428
18429 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
18430
18431         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
18432         (double_int_not, double_int_lshift, double_int_rshift): Declare.
18433         (double_int_negative_p): Convert to static inline function.
18434         * double-int.c (double_int_lshift, double_int_lshift): New functions.
18435         (double_int_negative_p): Remove.
18436         * tree.h (lshift_double, rshift_double):
18437         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
18438         * fold-const.c (fold_convert_const_int_from_real,
18439         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
18440         (lshift_double): Change type of arith argument to bool.
18441         (rshift_double): Change type of arith argument to bool. Correct
18442         comment.
18443         * expmed.c (mask_rtx, lshift_value): (Ditto.).
18444
18445 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
18446
18447         PR target/21803
18448         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
18449         at the start and end of the then/else blocks, and omit them from the
18450         conversion.
18451         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
18452         argument; all callers changed.  Pass zero to old_insns_match_p instead.
18453         (flow_find_head_matching_sequence): New function.
18454         (old_insns_match_p): Check REG_EH_REGION notes for calls.
18455         * basic-block.h (flow_find_cross_jump,
18456         flow_find_head_matching_sequence): Declare functions.
18457
18458 2010-04-14  Jason Merrill  <jason@redhat.com>
18459
18460         PR c++/36625
18461         * c-common.c (attribute_takes_identifier_p): New fn.
18462         * c-common.h: Declare it.
18463
18464 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18465
18466         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
18467         splitter condition.
18468         (*udivmod<mode>4): Ditto.
18469
18470 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18471
18472         * config/i386/i386.md (maxmin_int): Rename code attribute from
18473         maxminiprefix and update all users.
18474         (maxmin_float): Ditto from maxminfprefix.
18475         (logic): Ditto from logicprefix.
18476         (absneg_mnemonic): Ditto from absnegprefix.
18477         * config/i386/mmx.md: Update all users of maxminiprefix,
18478         maxminfprefix and logicprefix for rename.
18479         * config/i386/sse.md: Ditto.
18480         * config/i386/sync.md (sync_<code><mode>): Update for
18481         logicprefix rename.
18482
18483 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18484
18485         PR 42966
18486         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
18487         warnings converted to errors.
18488
18489 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18490
18491         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
18492         used insn_type variable.
18493         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
18494         to avoid set-but-not-used warning.
18495
18496 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18497
18498         * df-core.c (df_ref_debug): Change format string placeholder
18499         from 0x%x to %#x.
18500         * dwarf2asm.c (dw2_asm_output_data_raw,
18501         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
18502         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
18503         * dwarf2out.c (output_cfi, output_cfi_directive,
18504         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
18505         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
18506         Ditto.
18507         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
18508         * print-rtl.c (print_rtx): Ditto.
18509
18510 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18511
18512         PR middle-end/42694
18513         * builtins.c (expand_builtin_pow_root): New function to expand pow
18514         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
18515         series of sqrt and cbrt calls under -ffast-math.
18516         (expand_builtin_pow): Call it.
18517
18518 2010-04-14  Michael Matz  <matz@suse.de>
18519
18520         PR tree-optimization/42963
18521         * tree-cfg.c (touched_switch_bbs): New static variable.
18522         (group_case_labels_stmt): New function broken out from ...
18523         (group_case_labels): ... here, use the above.
18524         (start_recording_case_labels): Allocate touched_switch_bbs.
18525         (end_recording_case_labels): Deallocate it, call
18526         group_case_labels_stmt.
18527         (gimple_redirect_edge_and_branch): Remember index of affected BB.
18528
18529 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18530
18531         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
18532         from insn template.
18533
18534 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18535
18536         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
18537
18538 2010-04-13  Jan Hubicka  <jh@suse.cz>
18539
18540         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
18541         of optimized out static functions.
18542         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
18543         cost computation.  Also sanity check for overflows.
18544         (update_caller_keys): Update cgraph_edge_badness call; properly
18545         update fibheap and sanity check that it is up to date.
18546         (add_new_edges_to_heap): Update cgraph_edge_badness.
18547         (cgraph_decide_inlining_of_small_function): Likewise;
18548         add sanity checking that badness in heap is up to date;
18549         improve dumping of reason; Update badness of calls to the
18550         offline copy of function currently inlined; dump badness
18551         of functions not inlined because of unit growth limits.
18552
18553 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18554
18555         PR middle-end/32628
18556         * c-common.c (pointer_int_sum): Disregard overflow that occured only
18557         because of sign-extension change when converting to sizetype here...
18558         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
18559
18560         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
18561         the folding to constants.  Remove redundant final conversion.
18562         (fold_binary) <associate>: Do not associate if the re-association of
18563         constants alone overflows.
18564         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
18565         to the end of the list.
18566         (multiple_of_p) <COND_EXPR>: New case.
18567
18568 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18569
18570         * opt-functions.awk (opt_sanitized_name): New.
18571         (opt_enum): New.
18572         * optc-gen.awk: Use it
18573         * opth-gen.awk: Use it.
18574
18575 2010-04-13  Martin Jambor  <mjambor@suse.cz>
18576
18577         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
18578         (sra_modify_assign): Delete stmts loading dead data even if racc has no
18579         children.  Call replace_uses_with_default_def_ssa_name to handle
18580         SSA_NAES on lhs.
18581
18582 2010-04-13  Michael Matz  <matz@suse.de>
18583
18584         PR middle-end/43730
18585         * builtins.c (expand_builtin_interclass_mathfn): Also create
18586         a register if the predicate doesn't match.
18587
18588 2010-04-13  Diego Novillo  <dnovillo@google.com>
18589
18590         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
18591         * c-pch.c: Include timevar.h.
18592         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
18593         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
18594         * ggc-common.c: Include timevar.h.
18595         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
18596         * timevar.def (TV_PCH_SAVE): Define.
18597         (TV_PCH_CPP_SAVE): Define.
18598         (TV_PCH_PTR_REALLOC): Define.
18599         (TV_PCH_PTR_SORT): Define.
18600         (TV_PCH_RESTORE): Define.
18601         (TV_PCH_CPP_RESTORE): Define.
18602
18603 2010-04-13  Michael Matz  <matz@suse.de>
18604
18605         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
18606         into MINUS_EXPRs.
18607         (can_reassociate_p): New function.
18608         (break_up_subtract_bb, reassociate_bb): Use it.
18609
18610 2010-04-13  Richard Guenther  <rguenther@suse.de>
18611
18612         PR bootstrap/43737
18613         * builtins.c (c_readstr): Fix assert.
18614
18615 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
18616
18617         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
18618         when generating cltd insn.
18619
18620         (*ashl<mode>3_1): Remove special handling for register operand 2.
18621         (*ashlsi3_1_zext): Ditto.
18622         (*ashlhi3_1): Ditto.
18623         (*ashlhi3_1_lea): Ditto.
18624         (*ashlqi3_1): Ditto.
18625         (*ashlqi3_1_lea): Ditto.
18626         (*<shiftrt_insn><mode>3_1): Ditto.
18627         (*<shiftrt_insn>si3_1_zext): Ditto.
18628         (*<shiftrt_insn>qi3_1_slp): Ditto.
18629         (*<rotate_insn><mode>3_1): Ditto.
18630         (*<rotate_insn>si3_1_zext): Ditto.
18631         (*<rotate_insn>qi3_1_slp): Ditto.
18632
18633 2010-04-13  Richard Guenther  <rguenther@suse.de>
18634
18635         * tree-ssa-structalias.c (callused_id): Remove.
18636         (call_stmt_vars): New.
18637         (get_call_vi): Likewise.
18638         (lookup_call_use_vi): Likewise.
18639         (lookup_call_clobber_vi): Likewise.
18640         (get_call_use_vi): Likewise.
18641         (get_call_clobber_vi): Likewise.
18642         (make_transitive_closure_constraints): Likewise.
18643         (handle_const_call): Adjust to do per-call call-used handling.
18644         (handle_pure_call): Likewise.
18645         (find_what_var_points_to): Remove general callused handling.
18646         (init_base_vars): Likewise.
18647         (init_alias_vars): Initialize call_stmt_vars.
18648         (compute_points_to_sets): Process call-used and call-clobbered
18649         vars for call statements.
18650         (delete_points_to_sets): Free call_stmt_vars.
18651
18652 2010-04-13  Richard Guenther  <rguenther@suse.de>
18653
18654         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18655         Only add RW dependence for dependence distance zero.
18656         Adjust maximal vectorization factor according to dependences.
18657         Move alignment handling ...
18658         (vect_find_same_alignment_drs): ... here.  New function.
18659         (vect_analyze_data_ref_dependences): Adjust.
18660         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18661         (vect_analyze_data_refs): Adjust minimal vectorization factor
18662         according to data references.
18663         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18664         dependences before determining the vectorization factor.
18665         Analyze alignment after determining the vectorization factor.
18666         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18667         dependences before alignment.
18668         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18669         Adjust prototype.
18670         (vect_analyze_data_refs): Likewise.
18671         (MAX_VECTORIZATION_FACTOR): New define.
18672
18673 2010-04-13  Duncan Sands  <baldrick@free.fr>
18674
18675         * except.h (lang_eh_type_covers): Remove.
18676         * except.c (lang_eh_type_covers): Likewise.
18677
18678 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18679             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18680
18681         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18682         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18683         UNITS_PER_LONG where it is ABI relevant.
18684         (s390_return_addr_rtx): Likewise.
18685         (s390_back_chain_rtx): Likewise.
18686         (s390_frame_area): Likewise.
18687         (s390_frame_info): Likewise.
18688         (s390_initial_elimination_offset): Likewise.
18689         (save_gprs): Likewise.
18690         (s390_emit_prologue): Likewise.
18691         (s390_emit_epilogue): Likewise.
18692         (s390_function_arg_advance): Likewise.
18693         (s390_function_arg): Likewise.
18694         (s390_va_start): Likewise.
18695         (s390_gimplify_va_arg): Likewise.
18696         (s390_function_profiler): Likewise.
18697         (s390_optimize_prologue): Likewise.
18698         (s390_rtx_costs): Likewise.
18699         (s390_secondary_reload): Likewise.
18700         (s390_promote_function_mode): Likewise.
18701         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18702         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18703         registers available.
18704         (s390_unwind_word_mode): New function.
18705         (s390_function_value): Split 64 bit values into register pair if
18706         used as return value.
18707         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18708         function call parameters.  Handle parallels.
18709         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18710         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18711         (DWARF_CIE_DATA_ALIGNMENT): New macro.
18712         (s390_expand_setmem): Remove unused variable src_addr.
18713         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18714         deal with 64 bit registers.
18715         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18716         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18717         (UNITS_PER_LONG): New macro.
18718         * libjava/include/s390-signal.h: Define extended ucontext
18719         structure containing the upper halfs of the 64 bit registers.
18720
18721 2010-04-13  Simon Baldwin  <simonb@google.com>
18722
18723         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18724
18725 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18726
18727         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18728         rvalue on the RHS if the LHS is of a non-renamable type.
18729         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18730
18731 2010-04-13  Matthias Klose  <doko@ubuntu.com>
18732
18733         * gcc.c (cc1_options): Handle -iplugindir before processing
18734         the cc1 spec. Only add -iplugindir once.
18735         (cpp_unique_options): Add -iplugindir option if -fplugin* options
18736         found.
18737         * common.opt (iplugindir): Remove `Separate' property, initialize.
18738         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18739         option.
18740         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18741         (distclean): Remove plugin dir.
18742         * doc/invoke.texi: Document -iplugindir.
18743
18744 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
18745
18746         * doc/plugins.texi (Loading Plugins): Document short
18747         -fplugin=foo option.
18748         (Plugin API): Mention default_plugin_dir_name function.
18749
18750         * gcc.c (find_file_spec_function): Add new declaration.
18751         (static_spec_func): Use it for "find-file".
18752         (find_file_spec_function): Add new function.
18753         (cc1_options): Add -iplugindir option if -fplugin* options found.
18754
18755         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18756
18757         * plugin.c (add_new_plugin): Updated comment, and handle short
18758         plugin name.
18759         (default_plugin_dir_name): Added new function.
18760
18761         * common.opt (iplugindir): New option to set the plugin directory.
18762
18763 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
18764
18765         * config/i386/i386.md (any_rotate): New code iterator.
18766         (rotate_insn): New code attribute.
18767         (rotate): Ditto.
18768         (SWIM124): New mode iterator.
18769         (<rotate_insn>ti3): New expander.
18770         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18771         any_rotate code iterator.
18772         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18773         using any_rotate code iterator and SWIM124 mode iterator.
18774         (ix86_rotlti3): New insn_and_split pattern.
18775         (ix86_rotrti3): Ditto.
18776         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18777         ix86_rotl{di,ti}3 patterns.
18778         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18779         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18780         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18781         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18782         code iterator and SWI mode iterator.
18783         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18784         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18785         code iterator.
18786         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18787         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18788         (bswap rotatert splitter): Add splitter.
18789         (bswap splitter): Macroize splitter using any_rotate code iterator.
18790         Add insn predicate to split only for TARGET_USE_XCHGB or when
18791         optimizing function for size.
18792
18793 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18794
18795         * config/pa/pa.c (emit_move_sequence): Remove use of
18796         deleted variable flag_argument_noalias.
18797
18798 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18799
18800         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18801         configurations.
18802         Add to unsupported targets list.
18803         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18804         sparc*-sun-solaris2.[567]* from target lists.
18805         * configure: Regenerate.
18806         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18807         removal.
18808         Remove Solaris 7 patch references.
18809         (Specific, sparc-sun-solaris2.7): Removed.
18810         (sparc-sun-solaris2*): Update Solaris 7 example.
18811         (sparc64-*-solaris2*): Likewise.
18812
18813 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18814
18815         * config.build (alpha*-dec-osf4*): Remove.
18816         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18817         of obsolete configurations.
18818         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18819         support.
18820         * config/alpha/t-osf4: Renamed to ...
18821         * config/alpha/t-osf5: ... this.
18822         * config/alpha/osf.h: Renamed to ...
18823         * config/alpha/osf5.h: ... this.
18824         Merged old osf5.h contents.
18825         Update comments.
18826         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18827         (EXTRA_SPECS): Removed.
18828         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18829         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18830         Document that.
18831
18832 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18833
18834         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18835
18836 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18837
18838         PR/43702
18839         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18840         __thiscall convention.
18841
18842 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18843
18844         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18845         orig_base.
18846         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18847
18848 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18849
18850         * function.c (assign_parms_initialize_all): Add unused attribute
18851         to fntype.
18852
18853 2010-04-12  Richard Guenther  <rguenther@suse.de>
18854
18855         * gsstruct.def (GSS_CALL): New.
18856         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18857         * gimple.h: Include tree-ssa-alias.h.
18858         (struct gimple_statement_call): New.
18859         (union gimple_statement_struct_d): Add gimple_call member.
18860         (gimple_call_reset_alias_info): Declare.
18861         (gimple_call_use_set): New function.
18862         (gimple_call_clobber_set): Likewise.
18863         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18864         * gimple.c (gimple_call_reset_alias_info): New function.
18865         (gimple_build_call_1): Call it.
18866         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18867         * tree-inline.c (remap_gimple_stmt): Likewise.
18868         (expand_call_inline): Remove callused handling.
18869         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18870         * tree-dfa.c (dump_variable): Likewise.
18871         * tree-parloops.c (parallelize_loops): Likewise.
18872         * tree-ssa.c (init_tree_ssa): Likewise.
18873         (delete_tree_ssa): Likewise.
18874         * tree-flow-inline.h (is_call_used): Remove.
18875         * tree-flow.h (struct gimple_df): Remove callused member.
18876         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18877         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18878         (ref_maybe_used_by_call_p_1): Simplify.
18879         (call_may_clobber_ref_p_1): Likewise.
18880         * tree-ssa-structalias.c (compute_points_to_sets): Set
18881         the call stmt used and clobbered sets.
18882         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18883         (find_tail_calls): Verify the tail call.
18884
18885 2010-04-12  Richard Guenther  <rguenther@suse.de>
18886
18887         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18888         single-iteration always-inline inlining.
18889         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18890         (cgraph_decide_inlining): Do not handle always-inline specially.
18891         (try_inline): Remove always-inline cycle detection special case.
18892         Do not recurse on always-inlines.
18893         (cgraph_early_inlining): Do not iterate if not optimizing.
18894         (cgraph_gate_early_inlining): remove.
18895         (pass_early_inline): Run unconditionally.
18896         (gate_cgraph_decide_inlining): New function.
18897         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18898         not inlining or optimizing.
18899         (cgraph_decide_inlining_of_small_functions): Also consider
18900         always-inline functions.
18901         (cgraph_default_inline_p): Return true for nodes which should
18902         disregard inline limits.
18903         (estimate_function_body_sizes): Assume zero size and time for
18904         nodes which are marked as disregarding inline limits.
18905         (cgraph_decide_recursive_inlining): Do not perform recursive
18906         inlining on always-inline nodes.
18907
18908 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18909
18910         PR bootstrap/43699
18911         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18912         for exprs satisfying handled_component_p.
18913
18914 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18915
18916         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18917         non-constant aggregate elements.
18918
18919         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18920         is a real initialization.
18921
18922 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18923
18924         PR c/36774
18925         * c-decl.c (start_function): Move forward check for nested function.
18926
18927 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18928
18929         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18930         * config/sh/sh.c: Include reload.h.
18931         (sh_legitimize_reload_address): New.
18932         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18933         sh_legitimize_reload_address.
18934
18935 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18936
18937         * config/sh/sh.md (*movqi_pop): New insn pattern.
18938         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18939
18940 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18941
18942         * config/i386/i386.md (any_shiftrt): New code iterator.
18943         (shiftrt_insn): New code attribute.
18944         (shiftrt): Ditto.
18945         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18946         using any_shiftrt code iterator.
18947         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18948         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18949         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18950         pattern from corresponding peephole2 patterns.
18951         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18952         using any_shiftrt code iterator.
18953         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18954         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18955         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18956         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18957         *{ashr,lshr}<mode>3_cmp_zext.
18958         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18959
18960 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18961
18962         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18963         scratch register.
18964         (*lshr<mode>3_cconly): Ditto.
18965
18966 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18967
18968         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18969         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18970         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18971         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18972         DWI mode iterator.
18973         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18974         from corresponding peephole2 patterns.
18975         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18976         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18977         and *lshrdi3_1_rex64 using SWI mode iterator.
18978         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18979         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18980         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18981         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18982         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18983         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18984         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18985         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18986         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18987         SWI mode iterator.
18988
18989 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18990
18991         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18992         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18993         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18994         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18995         DWI mode iterator.
18996         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18997         from corresponding peephole2 patterns.
18998         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18999         (ashrsi3_cvt): Rename from ashrsi3_31.
19000         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
19001         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
19002         and x86_64_shift_adj_3 using SWI48 mode iterator.
19003         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
19004         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
19005         and *ashrdi3_1_rex64 using SWI mode iterator.
19006         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
19007         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
19008         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
19009         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
19010         and *ashrdi3_cmp_rex64 using SWI mode iterator.
19011         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
19012         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
19013         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
19014         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
19015         SWI mode iterator.
19016         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
19017         * config/i386/i386.c (ix86_split_ashr): Update for renamed
19018         x86_shift<mode>_adj_3 expanders.
19019
19020 2010-04-10  Wei Guozhi  <carrot@google.com>
19021
19022         PR target/42601
19023         * config/arm/arm.c (arm_pic_static_addr): New function.
19024         (legitimize_pic_address): Call arm_pic_static_addr when it detects
19025         a static symbol.
19026         (arm_output_addr_const_extra): Output expression for new pattern.
19027         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
19028
19029 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
19030
19031         * ira-costs.c (record_reg_classes): Ignore alternatives that are
19032         not enabled.
19033
19034         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
19035         * web.c: Include "insn-config.h" and "recog.h".
19036         (union_match_dups): New function.
19037         (web_main): Call it.
19038         (union_defs): Don't try to recognize match_dups.
19039
19040         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
19041         if doing so would replace the entire pattern.
19042
19043 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
19044
19045         PR target/43707
19046         PR target/43709
19047         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
19048         and splitter pattern.  Change splitter operand 1 predicate to
19049         nonmemory_operand.
19050
19051 2010-04-09  Martin Jambor  <mjambor@suse.cz>
19052
19053         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
19054         lattices are addresses of CONST_DECLs with the same initial value.
19055         (ipcp_print_all_lattices): Print values of CONST_DECLs.
19056         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
19057
19058 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
19059             Bernd Schmidt  <bernds@codesourcery.com>
19060
19061         * loop-invariant.c (replace_uses): New static function.
19062         (move_invariant_reg): Use it to ensure we can replace the uses.
19063
19064 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19065
19066         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
19067         function template.
19068         (picochip_override_options): Enable section anchors only above -O1.
19069         (picochip_reorg): Fixed a couple of build warnings.
19070
19071 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19072
19073         * configure.ac (plugin -rdynamic test): Log result.
19074         * configure: Regenerate.
19075         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
19076         (RDYNAMIC_SPEC): Define.
19077         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
19078
19079 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19080
19081         * configure.ac: Determine Sun ld version numbers.
19082         (comdat_group): Restrict GNU ld version checks to gld.
19083         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
19084         (enable_comdat): Support --enable-comdat.
19085         * configure: Regenerate.
19086         * doc/install.texi (Configuration): Document --enable-comdat.
19087
19088 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19089
19090         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
19091         * config/sol2-gld.h: ... here.
19092         * config.gcc (sparc*-*-solaris2*): Reflect this.
19093         (i[34567]86-*-solaris2*): Use it.
19094
19095 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
19096
19097         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
19098         setup_clocks_p.
19099         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
19100
19101 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19102
19103         PR 42965
19104         * diagnostic.c (diagnostic_initialize): Initialize
19105         some_warnings_are_errors.
19106         (diagnostic_finish): New.
19107         (diagnostic_action_after_output): Call it before exiting.
19108         (diagnostic_report_diagnostic): Do not print message here. Set
19109         some_warnings_are_errors.
19110         * diagnostic.h (diagnostic_context): Delete
19111         issue_warnings_are_errors_message. Add some_warnings_are_errors.
19112         (diagnostic_finish): Declare.
19113         * toplev.c (toplev_main): Call it before exit.
19114
19115 2010-04-09  Jason Merrill  <jason@redhat.com>
19116
19117         PR c++/42623
19118         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
19119         for incomplete type.
19120
19121         PR c++/41788
19122         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
19123         based on a warning flag.
19124
19125 2010-04-09  Richard Guenther  <rguenther@suse.de>
19126
19127         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
19128
19129 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
19130
19131         PR bootstrap/43684
19132         * varasm.c (default_assemble_visibility): Wrap vars that are
19133         set, but unused, by targets without GAS.
19134         * config/rs6000/rs6000.c (paired_emit_vector_compare):
19135         Remove set, but unused, vars.
19136         (rs6000_legitimize_tls_address): Likewise.
19137         (altivec_expand_dst_builtin): Likewise.
19138         * config/darwin.c (machopic_classify_symbol): Likewise.
19139         (machopic_indirection_name): Likewise.
19140
19141 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
19142
19143         * config/i386/i386.md (DWI): New mode iterator.
19144         (S): New mode attribute.
19145         (shift_operand): Ditto.
19146         (shift_immediate_operand): Ditto.
19147         (ashl_input_operand): Ditto.
19148         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
19149         using SDWIM mode iterator.
19150         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
19151         pattern from *ashl{di,ti}3_1 and corresponding splitters using
19152         DWI mode iterator.
19153         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
19154         from corresponding peephole2 patterns.
19155         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
19156         and x86_64_shift_adj_1 using SWI48 mode iterator.
19157         (x86_shift<mode>_adj_2): Ditto.
19158         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
19159         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
19160         using SWI48 mode iterator.
19161         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
19162         *ashldi3_cmp_rex64 using SWI mode iterator.
19163         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
19164         *ashldi3_cconly_rex64 using SWI mode iterator.
19165         * config/i386/i386.c (ix86_split_ashl): Update for renamed
19166         x86_shift<mode>_adj_{1,2}.
19167         (ix86_split_ashr): Ditto.
19168         (ix86_split_lshr): Ditto.
19169
19170 2010-04-09  Richard Guenther  <rguenther@suse.de>
19171
19172         * target.h (builtin_conversion): Pass in input and output types.
19173         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
19174         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
19175         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
19176         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
19177
19178         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
19179         Handle AVX modes.
19180         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
19181
19182 2010-04-09  Richard Guenther  <rguenther@suse.de>
19183
19184         PR target/43152
19185         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
19186
19187 2010-04-09  Richard Guenther  <rguenther@suse.de>
19188
19189         * tree-vectorizer.h (struct _stmt_vec_info): Document
19190         that vectype is the type of the LHS.
19191         (supportable_widening_operation, supportable_narrowing_operation):
19192         Get both input and output vector types as arguments.
19193         (vect_is_simple_use_1): Declare.
19194         (get_same_sized_vectype): Likewise.
19195         * tree-vect-loop.c (vect_determine_vectorization_factor):
19196         Set STMT_VINFO_VECTYPE to the vector type of the def.
19197         (vectorizable_reduction): Adjust.
19198         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
19199         Adjust.  Specify the output vector type.
19200         (vect_pattern_recog_1): Adjust.
19201         * tree-vect-stmts.c (get_same_sized_vectype): New function.
19202         (vectorizable_call): Adjust.
19203         (vectorizable_conversion): Likewise.
19204         (vectorizable_operation): Likewise.
19205         (vectorizable_type_demotion): Likewise.
19206         (vectorizable_type_promotion): Likewise.
19207         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
19208         the def.
19209         (vect_is_simple_use_1): New function.
19210         (supportable_widening_operation): Get both input and output
19211         vector types.
19212         (supportable_narrowing_operation): Likewise.
19213         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
19214
19215 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
19216
19217         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
19218         __thiscall and _thiscall as predefined macros.
19219         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
19220         thiscall attribute handling.
19221         (ix86_comp_type_attributes): Likewise.
19222         (ix86_function_regparm): Likewise.
19223         (ix86_return_pops_args): Likewise.
19224         (init_cumulative_args): Likewise.
19225         (find_drap_reg): Likewise.
19226         (ix86_static_chain): Likewise.
19227         (x86_this_parameter): Likewise.
19228         (x86_output_mi_thunk): Likewise.
19229         (ix86_attribute_table): Add description for thiscall attribute.
19230         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
19231         * doc/extend.texi: Add documentation for thiscall.
19232
19233 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19234
19235         PR c++/28584
19236         * c.opt (Wint-to-pointer-cast): Available in C++.
19237         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
19238
19239 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
19240
19241         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
19242         * calls.c (expand_call): Pass the function type to aggregate_value_p.
19243         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
19244         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
19245         function type instead.  Reorder and simplify checks.
19246
19247         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
19248
19249 2010-04-08  Jing Yu  <jingyu@google.com>
19250             Zdenek Dvorak  <ook@ucw.cz>
19251
19252         PR tree-optimization/42720
19253         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
19254         loop unswitch conditions here from ...
19255         (tree_unswitch_single_loop): ... here.
19256
19257 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
19258
19259         * tree-if-conv.c: Fix comments and simplify logic.
19260
19261 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
19262
19263         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
19264         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
19265         (main_tree_if_conversion): Update call to tree_if_conversion.
19266
19267 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19268
19269         PR 42485
19270         * doc/invoke.texi (-b,-V): Delete.
19271         * doc/tm.texi: Do not mention -b.
19272         * gcc.c (display_help): Delete -b and -V.
19273         (process_command): Delete -b and -V.
19274         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
19275
19276 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
19277             Wolfgang Gellerich  <gellerich@de.ibm.com>
19278
19279         Implement target hook for loop unrolling
19280         * target.h (loop_unroll_adjust): Add a new target hook function.
19281         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
19282         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
19283         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
19284         (s390_loop_unroll_adjust): Implement the new target hook for s390.
19285         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
19286         target hook.
19287         (decide_unroll_stupid): Likewise.
19288
19289 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19290
19291         PR target/43643
19292         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
19293
19294 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19295
19296         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
19297         (Specific, *-*-solaris2*): Likewise.
19298         Don't prefer Sun as over GNU as.
19299
19300 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
19301
19302         * config/s390/s390.c (override_options): Adjust the z10 defaults
19303         for max-unroll-times, max-completely-peeled-insns
19304         and max-completely-peel-times.
19305
19306 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19307
19308         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
19309         instructions for z10.
19310         (s390_expand_setmem): Likewise.
19311         (s390_expand_cmpmem): Likewise.
19312
19313 2010-04-08  Richard Guenther  <rguenther@suse.de>
19314
19315         PR tree-optimization/43679
19316         * tree-ssa-pre.c (eliminate): Only propagate copies.
19317
19318 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19319
19320         PR bootstrap/43681
19321         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
19322         set but not used variable warning.
19323
19324 2010-04-08  Wei Guozhi  <carrot@google.com>
19325
19326         PR target/41653
19327         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
19328         (arm_size_rtx_costs): Call the new function when optimized for size.
19329
19330 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19331
19332         PR debug/43670
19333         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
19334         op0 is not a MEM, just return NULL instead of assertion
19335         failure.
19336         (discover_nonconstant_array_refs): Don't walk debug stmts.
19337
19338 2010-04-08  Doug Kwan  <dougkwan@google.com>
19339
19340         * configure.ac: Recognize gold and do not use its version number
19341         to test ld features.
19342         * configure: Regenerate.
19343
19344 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
19345
19346         PR middle-end/40815
19347         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
19348         (negate_value): Move code to push elements to broken_up_substracts ...
19349         (eliminate_plus_minus_pair): ... here.  Push operands that have no
19350         negative pair to plus_negates.
19351         (repropagate_negates, init_reassoc, fini_reassoc): Update.
19352
19353 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19354
19355         * doc/install.texi (Configuration): Move description of
19356         --enable-lto, --with-libelf*, --enable-gold from Java section to
19357         general section.
19358
19359         * doc/generic.texi (Working with declarations)
19360         (Function Properties, C and C++ Trees): Fix typos.
19361         * doc/sourcebuild.texi (Top Level): Likewise.
19362
19363 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19364
19365         PR c/18624
19366         * tree.h (DECL_READ_P): Define.
19367         (struct tree_decl_common): Add decl_read_flag.
19368         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
19369         a set but not used warning.
19370         (merge_decls): Merge DECL_READ_P flag.
19371         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
19372         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
19373         * c-common.c (handle_used_attribute, handle_unused_attribute):
19374         Likewise.
19375         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
19376         New prototypes.
19377         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
19378         New functions.
19379         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
19380         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
19381         c_parser_binary_expression, c_parser_cast_expression,
19382         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
19383         Call default_function_array_read_conversion instead of
19384         default_function_array_conversion where needed.
19385         (c_parser_unary_expression, c_parser_conditional_expression,
19386         c_parser_postfix_expression_after_primary, c_parser_initelt):
19387         Likewise.  Call mark_exp_read where needed.
19388         (c_parser_statement_after_labels, c_parser_asm_operands,
19389         c_parser_typeof_specifier, c_parser_sizeof_expression,
19390         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
19391         where needed.
19392         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
19393         New.
19394         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
19395         (warn_unused_but_set_parameter): Default to warn_unused
19396         && extra_warnings.
19397         * doc/invoke.texi: Document -Wunused-but-set-variable and
19398         -Wunused-but-set-parameter.
19399
19400         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
19401         used count variable.
19402         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
19403         when operandN variables aren't used in the body of the expander
19404         or splitter.
19405         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
19406         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
19407         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
19408         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
19409         FOR_EACH_IMM_USE_ON_STMT): Likewise.
19410         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
19411         * tree.c (PROCESS_ARG): Likewise.
19412
19413 2010-04-07  Simon Baldwin  <simonb@google.com>
19414
19415         * diagnostic.h (diagnostic_override_option_index): New macro to
19416         set a diagnostic's option_index.
19417         * c-tree.h (c_cpp_error): Add warning reason argument.
19418         * opts.c (_warning_as_error_callback): New.
19419         (register_warning_as_error_callback): Store callback for
19420         warnings enabled via enable_warning_as_error.
19421         (enable_warning_as_error): Call callback, minor code tidy.
19422         * opts.h (register_warning_as_error_callback): Declare.
19423         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
19424         response to -Werror=.
19425         (c_common_init_options): Register warning_as_error_callback in opts.c.
19426         * common.opt: Add -Wno-cpp option.
19427         * c-common.c (struct reason_option_codes_t): Map cpp warning
19428         reason codes to gcc option indexes.
19429         * (c_option_controlling_cpp_error): New function, lookup the gcc
19430         option index for a cpp warning reason code.
19431         * (c_cpp_error): Add warning reason argument, call
19432         c_option_controlling_cpp_error for diagnostic_override_option_index.
19433         * doc/invoke.texi: Document -Wno-cpp.
19434
19435 2010-04-07  Richard Guenther  <rguenther@suse.de>
19436
19437         * ipa-reference.c (mark_load): Use get_base_address.
19438         (mark_store): Likewise.
19439
19440         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
19441         inserting GIMPLE_NOPs into the IL.
19442         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19443         Explicitly strip handled components and indirect references.
19444
19445         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
19446         folding address expressions.
19447         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
19448         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
19449         operand_equal_p to compare decls.
19450         (ptr_deref_may_alias_decl_p): Likewise.
19451         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
19452         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
19453         Handle reversed comparison ops.
19454         * tree-sra.c (asm_visit_addr): Use get_base_address.
19455         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
19456         * ipa-reference.c (mark_address): Use get_base_address.
19457
19458 2010-04-07  Richard Guenther  <rguenther@suse.de>
19459
19460         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
19461         Propagate constants everywhere.
19462
19463 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19464
19465         PR debug/43516
19466         * tree.c (MAX_INT_CACHED_PREC): Define.
19467         (nonstandard_integer_type_cache): New array.
19468         (build_nonstandard_integer_type): Cache results for precision
19469         <= MAX_INT_CACHED_PREC.
19470
19471 2010-04-07  Richard Guenther  <rguenther@suse.de>
19472
19473         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
19474         -fargument-noalias-global, -fargument-noalias-anything): Remove.
19475         * common.opt: Likewise.
19476         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
19477         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
19478         (nonoverlapping_memrefs_p): Likewise.
19479         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19480         * opts.c (common_handle_option): Handle OPT_fargument_alias,
19481         OPT_fargument_noalias, OPT_fargument_noalias_anything and
19482         OPT_fargument_noalias_global for backward compatibility.
19483
19484 2010-04-07  Richard Guenther  <rguenther@suse.de>
19485
19486         PR tree-optimization/43270
19487         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
19488         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
19489         * tree-ssa-pre.c (phi_translate_1): Adjust.
19490         (fully_constant_expression): Split out vn_reference handling to ...
19491         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
19492         Fold reads from constant strings.
19493         (vn_reference_lookup): Handle fully constant references.
19494         (vn_reference_lookup_pieces): Likewise.
19495         * Makefile.in (expmed.o-warn): Add -Wno-error.
19496
19497 2010-04-07  Martin Jambor  <mjambor@suse.cz>
19498
19499         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
19500
19501 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
19502
19503         PR driver/41594
19504         * gcc.c: Add -static-libstdc++ to list of recognized options.
19505
19506 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19507
19508         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
19509
19510 2010-04-07  Richard Guenther  <rguenther@suse.de>
19511
19512         PR middle-end/42617
19513         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
19514         bases build simple mem attributes to retain points-to information.
19515
19516 2010-04-07  Richard Guenther  <rguenther@suse.de>
19517
19518         PR middle-end/42617
19519         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
19520         preserve points-to related information.
19521
19522 2010-04-07  Richard Guenther  <rguenther@suse.de>
19523
19524         PR middle-end/42617
19525         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
19526         discard plain indirect references.
19527         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
19528         * tree.c (tree_nop_conversion): Likewise.
19529
19530 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
19531
19532         PR debug/43628
19533         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
19534
19535 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
19536
19537         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
19538         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
19539
19540 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19541
19542         * tree-if-conv.c: Fix indentation and comments.
19543
19544 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19545
19546         * tree-if-conv.c: Sort static functions in topological order.
19547
19548 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19549
19550         * tree-if-conv.c: Fix indentation and comments.
19551
19552 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19553
19554         PR middle-end/43519
19555         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
19556         lang_hooks.types.type_for_size instead of
19557         build_nonstandard_integer_type.
19558         When converting an unsigned type to signed, double its precision.
19559         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
19560         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
19561         (graphite_create_new_loop_guard): When ub + 1 wraps around,
19562         use lb <= ub.
19563
19564 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19565
19566         PR middle-end/43519
19567         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19568         POINTER_PLUS_EXPR for pointer types.
19569
19570 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19571
19572         PR middle-end/43519
19573         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
19574         * graphite-clast-to-gimple.c: Include langhooks.h.
19575         (max_signed_precision_type): New.
19576         (max_precision_type): Takes two types as arguments.
19577         (precision_for_value): New.
19578         (precision_for_interval): New.
19579         (gcc_type_for_interval): New.
19580         (gcc_type_for_value): New.
19581         (gcc_type_for_clast_term): New.
19582         (gcc_type_for_clast_red): New.
19583         (gcc_type_for_clast_bin): New.
19584         (gcc_type_for_clast_expr): Split up into several functions.
19585         (gcc_type_for_clast_eq): Rewritten.
19586         (compute_bounds_for_level): New.
19587         (compute_type_for_level_1): New.
19588         (compute_type_for_level): New.
19589         (gcc_type_for_cloog_iv): Removed.
19590         (gcc_type_for_iv_of_clast_loop): Rewritten.
19591         (graphite_create_new_loop): Compute the lower and upper bound types
19592         with gcc_type_for_clast_expr.
19593         (graphite_create_new_loop_guard): Same.
19594         (find_cloog_iv_in_expr): Removed.
19595         (compute_cloog_iv_types_1): Removed.
19596         (compute_cloog_iv_types): Removed.
19597         (gloog): Do not call compute_cloog_iv_types.
19598         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
19599         GBB_CLOOG_IV_TYPES.
19600         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
19601         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
19602         (GBB_CLOOG_IV_TYPES): Removed.
19603
19604 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19605
19606         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
19607         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
19608         (detect_commutative_reduction): Same.
19609
19610 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19611
19612         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
19613         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
19614         argument.
19615         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
19616         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
19617         (rewrite_commutative_reductions_out_of_ssa): Same.
19618         * passes.c (execute_function_todo): Call verify_ssa for every pass
19619         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
19620         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
19621         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19622         with an extra argument.
19623         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
19624         verify_ssa only when the extra argument is true.
19625         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19626         with an extra argument.
19627         (tree_transform_and_unroll_loop): Same.
19628
19629 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19630
19631         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19632         for all the passes of the LNO having LOOP_CLOSED_SSA.
19633         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19634         * tree-loop-distribution.c (pass_loop_distribution): Same.
19635         * tree-pass.h (TODO_verify_loops): Removed.
19636         * tree-ssa-loop.c (pass_tree_loop_init): Same.
19637         (pass_lim): Same.
19638         (pass_tree_unswitch): Same.
19639         (pass_predcom): Same.
19640         (pass_vectorize): Same.
19641         (pass_linear_transform): Same.
19642         (pass_graphite_transforms): Same.
19643         (pass_iv_canon): Same.
19644         (pass_complete_unroll): Same.
19645         (pass_complete_unrolli): Same.
19646         (pass_parallelize_loops): Same.
19647         (pass_loop_prefetch): Same.
19648         (pass_iv_optimize): Same.
19649
19650 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
19651
19652         PR middle-end/32824
19653         * passes.c (init_optimization_passes): Move pass_lim before
19654         pass_copy_prop and pass_dce_loop.
19655
19656 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19657
19658         PR target/43667
19659         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19660         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19661         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19662         MULTI_* defines for 4 argument vpermil2p* builtins.
19663
19664 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19665
19666         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19667         * config/i386/i386.c (x86_maybe_negate_const_int): New.
19668         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19669         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19670         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19671         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19672         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19673         Use x86_maybe_negate_const_int to output insn mnemonic.
19674         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
19675         check from instruction predicate.  Update comments.
19676         * config/i386/sync.md (sync_add<mode>): Use
19677         x86_maybe_negate_const_int to output insn mnemonic.
19678
19679 2010-04-06  Jan Hubicka  <jh@suse.cz>
19680
19681         PR tree-optimization/42906
19682         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19683         IGNORE_SELF argument.  Set visited_control_parents for fully
19684         processed BBs.
19685         (find_obviously_necessary_stmts): Update call of
19686         mark_control_dependent_edges_necessary.
19687         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
19688
19689 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19690
19691         * config/i386/i386.md: Remove comment about 'e' and 'E'
19692         operand modifier.
19693
19694 2010-04-06  Richard Guenther  <rguenther@suse.de>
19695
19696         PR tree-optimization/43627
19697         * tree-vrp.c (extract_range_from_unary_expr): Widenings
19698         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19699         not varying.
19700
19701 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19702
19703         * BASE-VER: Change to 4.6.0.
19704
19705         PR target/43638
19706         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19707         handling.
19708
19709 2010-04-06  Richard Guenther  <rguenther@suse.de>
19710
19711         PR middle-end/43661
19712         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19713
19714 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19715
19716         * doc/invoke.texi (Optimize Options): Document that LTO
19717         won't remove object access purely due to incompatible
19718         declarations.
19719
19720 2010-04-04  Matthias Klose  <doko@ubuntu.com>
19721
19722         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19723         Initialize variable.
19724
19725 2010-04-03  Richard Guenther  <rguenther@suse.de>
19726
19727         PR middle-end/42509
19728         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19729         require a non-NULL MEM_OFFSET.
19730
19731 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
19732
19733         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19734         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19735         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19736         config/alpha/predicates.md, config/arm/arm.md,
19737         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19738         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19739         config/darwin9.h, config/darwin.c, config/darwin.h,
19740         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19741         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19742         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19743         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19744         config/mips/mips.md, config/mn10300/mn10300.c,
19745         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19746         config/rs6000/aix.h, config/rs6000/dfp.md,
19747         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19748         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19749         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19750         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19751         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19752         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19753         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19754         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19755         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19756         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19757         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19758         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19759         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19760         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19761         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19762         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19763         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19764         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19765         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19766         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19767         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19768         opt-functions.awk, opth-gen.awk, params.def, passes.c,
19769         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19770         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19771         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19772         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19773         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19774         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19775         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19776         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19777         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19778         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19779         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19780         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19781         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19782         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19783
19784 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19785
19786         PR other/43620
19787         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19788         * aclocal.m4: Regenerate.
19789
19790 2010-04-02  Richard Guenther  <rguenther@suse.de>
19791
19792         PR tree-optimization/43629
19793         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19794         if we have seen a constant value.
19795
19796 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19797
19798         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19799
19800 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19801
19802         PR target/43469
19803         * arm.c (legitimize_tls_address): Adjust call to
19804         gen_tls_load_dot_plus_four.
19805         (arm_note_pic_base): New function.
19806         (arm_cannot_copy_insn_p): Use it.
19807         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19808         constraint.
19809
19810 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19811
19812         PR bootstrap/43531
19813
19814         Revert:
19815         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19816
19817         * Makefile.in ($(out_object_file)): Depend on
19818         gt-$(basename $(notdir $(out_file))).h.
19819
19820 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19821
19822         * config.gcc (lm32-*-rtems*): Add t-lm32.
19823
19824 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19825
19826         * config.gcc: Add lm32-*-rtems*.
19827         * config/lm32/rtems.h: New file.
19828
19829 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19830
19831         PR target/42609
19832         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19833
19834 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19835
19836         * dwarf2out.c (output_compilation_unit_header): For
19837         -gdwarf-4 use version 4 instead of version 3.
19838         (output_line_info): For version 4 and above emit additional
19839         maximum ops per insn header field.
19840         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19841
19842         * dwarf2out.c (is_c_family, is_java): Remove.
19843         (lower_bound_default): New function.
19844         (add_bound_info, gen_descr_array_type_die): Use it.
19845
19846 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19847
19848         PR debug/43325
19849         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19850         re-declaration when it happens in a function.
19851
19852 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19853
19854         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19855         (cgraph_remove_function_insertion_hook): Same.
19856         (cgraph_call_function_insertion_hooks): Same.
19857
19858 2010-04-01  Richard Guenther  <rguenther@suse.de>
19859
19860         PR middle-end/43614
19861         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19862         and TREE_THIS_VOLATILE.
19863         (copy_ref_info): Likewise.
19864         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19865         * tree.c (build6_stat): Ignore side-effects of all but arg5
19866         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19867         TARGET_MEM_REF.
19868
19869 2010-04-01  Richard Guenther  <rguenther@suse.de>
19870
19871         PR tree-optimization/43607
19872         * ipa-type-escape.c (check_call): Do not access non-existing
19873         arguments.
19874
19875 2010-04-01  Richard Guenther  <rguenther@suse.de>
19876
19877         PR middle-end/43602
19878         Revert
19879         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19880                     Jack Howarth  <howarth@bromo.med.uc.edu>
19881
19882         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19883         variables TLS.
19884
19885 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19886
19887         * doc/install.texi (Prerequisites): Document libelf usability on
19888         IRIX 5/6 and Solaris 2.
19889         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19890         Update GNU as, GNU ld requirements.
19891         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19892         Document Sun Studio compiler download.
19893         Update and simplify as, ld recommendations.
19894         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19895
19896 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19897
19898         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19899         with_tune_32 to pentium4.
19900
19901 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19902
19903         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19904
19905 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19906
19907         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19908         obsoletion, removal.
19909         Update IDO URL.
19910         Document GNU as requirement.
19911         Update configure requirements.
19912         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19913         Recomment IRIX 6.5.18+.
19914         Document IDF/IDL requirement.
19915         Document GNU as requirement.
19916         Document GNU ld bootstrap failure.
19917         Remove freeware.sgi.com reference.
19918
19919 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19920
19921         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19922         UNIX V4.0, V5.0 obsoletion, removal.
19923         Remove --with-gc=simple reference.
19924         Update VM requirements during bootstrap.
19925         Remove -oldas bootstrap description.
19926         Update binutils reference.
19927         Remove comparison failure note.
19928
19929 2010-03-31  Richard Guenther  <rguenther@suse.de>
19930             Zdenek Dvorak  <ook@ucw.cz>
19931             Sebastian Pop  <sebastian.pop@amd.com>
19932
19933         PR middle-end/43464
19934         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19935         with multiple arguments.
19936         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19937
19938 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19939
19940         * graphite-dependences.c (print_pddr): Call print_pdr with an
19941         extra argument.
19942         * graphite-poly.c (debug_pdr): Add an extra argument for the
19943         verbosity level.
19944         (print_pdr): Same.
19945         (print_pbb_domain): Same.
19946         (print_pbb): Same.
19947         (print_scop_context): Same.
19948         (print_scop): Same.
19949         (print_cloog): Same.
19950         (debug_pbb_domain): Same.
19951         (debug_pbb): Same.
19952         (print_pdrs): Same.
19953         (debug_pdrs): Same.
19954         (debug_scop_context): Same.
19955         (debug_scop): Same.
19956         (debug_cloog): Same.
19957         (print_scop_params): Same.
19958         (debug_scop_params): Same.
19959         (print_iteration_domain): Same.
19960         (print_iteration_domains): Same.
19961         (debug_iteration_domain): Same.
19962         (debug_iteration_domains): Same.
19963         (print_scattering_function): Same.
19964         (print_scattering_functions): Same.
19965         (debug_scattering_function): Same.
19966         (debug_scattering_functions): Same.
19967         * graphite-poly.h (debug_pdr): Update declaration.
19968         (print_pdr): Same.
19969         (print_pbb_domain): Same.
19970         (print_pbb): Same.
19971         (print_scop_context): Same.
19972         (print_scop): Same.
19973         (print_cloog): Same.
19974         (debug_pbb_domain): Same.
19975         (debug_pbb): Same.
19976         (print_pdrs): Same.
19977         (debug_pdrs): Same.
19978         (debug_scop_context): Same.
19979         (debug_scop): Same.
19980         (debug_cloog): Same.
19981         (print_scop_params): Same.
19982         (debug_scop_params): Same.
19983         (print_iteration_domain): Same.
19984         (print_iteration_domains): Same.
19985         (debug_iteration_domain): Same.
19986         (debug_iteration_domains): Same.
19987         (print_scattering_function): Same.
19988         (print_scattering_functions): Same.
19989         (debug_scattering_function): Same.
19990         (debug_scattering_functions): Same.
19991
19992 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19993
19994         * graphite-poly.c (print_scattering_function_1): New.
19995         (print_scattering_function): Call it.
19996         (print_scop_params): Remove spaces at the end of lines.
19997         (print_cloog): New.
19998         (debug_cloog): New.
19999         * graphite-poly.h (print_cloog): Declared.
20000         (debug_cloog): Declared.
20001
20002 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20003
20004         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
20005         in loop->header.
20006         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
20007         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
20008         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
20009         to switch between adding the IV bump in loop->latch or in loop->header.
20010
20011 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
20012
20013         * graphite-poly.c (print_scattering_function): Pretty print following
20014         the scoplib format.
20015         (print_pdr): Same.
20016         (print_pbb_domain): Same.
20017         (dump_gbb_cases): Same.
20018         (dump_gbb_conditions): Same.
20019         (print_pdrs): Same.
20020         (print_pbb): Same.
20021         (print_scop_params): Same.
20022         (print_scop_context): Same.
20023         (print_scop): Same.
20024         (print_pbb_body): New.
20025         (lst_indent_to): New.
20026         (print_lst): Start new lines with a #.
20027         * graphite-poly.h (pbb_bb): New.
20028         (pbb_index): Use pbb_bb.
20029         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
20030         disjuncts.
20031         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
20032
20033 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
20034
20035         * dwarf2out.c (size_of_die): For -gdwarf-4 use
20036         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
20037         and 0 instead of 1 for dw_val_class_flag.
20038         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
20039         dw_val_class_range_list, dw_val_class_loc_list,
20040         dw_val_class_lineptr and dw_val_class_macptr, use
20041         DW_FORM_flag_present for dw_val_class_flag and
20042         DW_FORM_exprloc for dw_val_class_loc.
20043         (output_die): For -gdwarf-4 print dw_val_class_loc
20044         size as uleb128 instead of 1 or 2 bytes and don't print
20045         anything for dw_val_class_flag.
20046
20047         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
20048         instead of cselib_lookup following by tweaking locs->setting_insn.
20049
20050         PR bootstrap/43596
20051         * cselib.c (cselib_process_insn): Clear cselib_current_insn
20052         even before returning from label, setjmp call or volatile asm
20053         handling.
20054
20055 2010-03-31  Richard Guenther  <rguenther@suse.de>
20056
20057         PR middle-end/43600
20058         * cgraphunit.c (cgraph_output_in_order): Do not allocate
20059         temporary data on stack.
20060
20061 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20062
20063         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
20064         (PUSHSECTION_ASM_OP): Remove.
20065         (POPSECTION_ASM_OP): Remove.
20066         (PUSHSECTION_FORMAT): Remove.
20067         * config/sol2.h (PUSHSECTION_FORMAT): Define.
20068         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
20069         * config/sol2.c (solaris_output_init_fini): Use it.
20070
20071 2010-03-31  Jie Zhang  <jie@codesourcery.com>
20072
20073         PR 43574
20074         * opt-functions.awk (var_type_struct): Use signed char type
20075         for simple variables.
20076
20077 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20078
20079         * config/sol2.c: Include output.h.
20080         (solaris_assemble_visibility): New function.
20081         * config/t-sol2 (sol2.o): Add output.h dependency.
20082         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
20083         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
20084         Redefine.
20085
20086 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
20087
20088         PR target/43580
20089         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
20090         V2SImode or XFmode on PRE_DEC.
20091
20092         PR debug/43557
20093         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
20094         BLKmode.
20095
20096 2010-03-31  Jie Zhang  <jie@codesourcery.com>
20097
20098         PR 43562
20099         * reload.h (caller_save_initialized_p): Declare.
20100         * toplev.c (backend_init_target): Don't call
20101         init_caller_save but set caller_save_initialized_p to false.
20102         * caller-save.c (caller_save_initialized_p): Define.
20103         (init_caller_save): Check caller_save_initialized_p.
20104         * ira.c (ira): Call init_caller_save if flag_caller_saves.
20105
20106 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20107
20108         PR target/39048
20109         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
20110         and soft-fp/t-softfp to tmake_file.
20111         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
20112         (LIBGCC2_TF_CEXT): Define.
20113         (TF_SIZE): Define.
20114
20115 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
20116
20117         PR debug/42977
20118         * cselib.c (n_useless_values): Document handling of debug locs.
20119         (n_useless_debug_values, n_debug_values): New variables.
20120         (new_elt_loc_list): Don't add to debug values, keep count.
20121         (promote_debug_loc): New.
20122         (cselib_reset_table): Zero new variables.
20123         (entry_and_rtx_equal_p): Promote debug locs.
20124         (discard_useless_locs): Increment n_useless_debug_values for
20125         debug values.
20126         (remove_useless_values): Adjust n_useless_values and n_debug_values
20127         with n_useless_debug_values.
20128         (add_mem_for_addr): Promote debug locs.
20129         (cselib_lookup_mem): Likewise.
20130         (cselib_lookup_addr): Renamed to...
20131         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
20132         (cselib_log_lookup): ... this.  Turn into...
20133         (cselib_lookup_addr): ... new wrapper.
20134         (cselib_lookup_from_insn): New.
20135         (cselib_invalidate_regno): Increment n_useless_debug_values for
20136         debug values.
20137         (cselib_invalidate_mem): Likewise.
20138         (cselib_process_insn): Take n_deleted and n_debug_values into
20139         account to guard remove_useless_value call.
20140         (cselib_finish): Zero n_useless_debug_values.
20141         * cselib.h (cselib_lookup_from_insn): Declare.
20142         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
20143         (sched_analyze_2): Likewise.
20144
20145 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
20146
20147         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
20148         functions.
20149         (adjust_mems): Replace narrowing SUBREG of expression containing
20150         just PLUS, MINUS, MULT and ASHIFT of registers and constants
20151         with operations in the narrower mode.
20152
20153         PR debug/43593
20154         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
20155         regs_invalidated_by_call instead all call_used_reg_set registers.
20156
20157 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
20158
20159         PR middle-end/43430
20160         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
20161         pointer comparisons with types_compatible_p.
20162         * tree-vect-stmts.c (vectorizable_call): Same.
20163         (vectorizable_condition): Same.
20164
20165 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20166
20167         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
20168         stack check if the mask would be zero.
20169
20170 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
20171             Jack Howarth  <howarth@bromo.med.uc.edu>
20172
20173         * tree-profile.c (tree_init_ic_make_global_vars): Make static
20174         variables TLS.
20175
20176 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
20177
20178         PR other/25232
20179         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
20180         and __unordtf2.
20181         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
20182         Include ___unordxf2 and ___unordtf2.
20183         * config/i386/libgcc-glibc.ver: Do not define inheritance from
20184         GCC_4.4.0 here.
20185
20186 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
20187
20188         * config/lm32/t-lm32: New file.
20189         * config.gcc: Use the above file when targetting lm32.
20190
20191 2010-03-28  Duncan Sands  <baldrick@free.fr>
20192
20193         * Makefile.in (PLUGIN_HEADERS): Add except.h.
20194
20195 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
20196
20197         PR middle-end/43431
20198         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
20199         Improve vectorization cost model diagnostic.
20200
20201 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
20202
20203         PR middle-end/43436
20204         * tree-vect-data-refs.c (vect_analyze_data_refs): When
20205         compute_data_dependences_for_loop returns false, early exit
20206         and output an extra diagnostic for the failed data reference
20207         analysis.
20208
20209 2010-03-29  Richard Guenther  <rguenther@suse.de>
20210
20211         PR tree-optimization/43560
20212         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
20213         (can_sm_ref_p): Treat stores to readonly locations as trapping.
20214
20215 2010-03-29  Jie Zhang  <jie@codesourcery.com>
20216
20217         PR 43564
20218         * toplev.c (process_options): Set optimization_default_node
20219         and optimization_current_node.
20220         * opts.c (decode_options): Don't set optimization_default_node
20221         and optimization_current_node.
20222
20223 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
20224
20225         * config/rtems.h: Abandon -qrtems_debug.
20226
20227 2010-03-28  Jan Hubicka  <jh@suse.cz>
20228
20229         PR tree-optimization/43505
20230         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
20231         map should not be copied.
20232
20233 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20234
20235         PR middle-end/41674
20236         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
20237         cdtors, set DECL_PRESERVE_P.
20238         * ipa.c (cgraph_externally_visible_p): Return true if declaration
20239         should be preseved.
20240
20241 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
20242
20243         PR tree-optimization/43528
20244         * stor-layout.c (place_field): Check that constant fits into
20245         unsigned HWI when skipping calculation of MS bitfield layout.
20246
20247 2010-03-27  Jan Hubicka  <jh@suse.cz>
20248
20249         PR middle-end/43391
20250         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
20251         notice_global_symbol work.
20252
20253 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
20254
20255         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
20256         instead of dwarf2out_decl.
20257         (struct var_loc_node): Remove section_label field.
20258         (dwarf2out_function_decl): New function.
20259         (dwarf2out_var_location): Don't set section_label field.
20260         (dwarf2out_begin_function): Don't empty decl_loc_table here.
20261
20262 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
20263
20264         PR tree-optimization/43544
20265         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20266         First argument for builtin vectorized function hook is now a
20267         tree to be able to distinguish between machine specific and
20268         standard builtins.
20269         * targhooks.c (default_builtin_vectorized_function): Ditto.
20270         * targhooks.h (default_builtin_vectorized_function): Ditto.
20271         * target.h (struct gcc_target): Ditto.
20272         * tree-vect-stmts.c (vectorizable_function): Ditto.
20273         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
20274         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
20275         Ditto.
20276
20277 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
20278
20279         PR c/43381
20280         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
20281         nested binding iff it is a FUNCTION_DECL.
20282         (store_parm_decls_newstyle): Pass nested=true to bind for
20283         FUNCTION_DECLs amongst parameters.
20284
20285 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
20286
20287         * var-tracking.c (vt_expand_loc_callback): Don't run
20288         cselib_expand_value_rtx_cb in dummy mode if
20289         cselib_dummy_expand_value_rtx_cb returned false.
20290
20291         * var-tracking.c (emit_note_insn_var_location): For one part
20292         notes with offset 0, don't add EXPR_LIST around the location.
20293         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
20294         add_location_or_const_value_attribute): Adjust for that change.
20295
20296         PR debug/43540
20297         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
20298         into first operand and location into second.
20299         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
20300         dw_cfi_oprnd_loc for DW_CFA_expression.
20301         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
20302         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
20303         assume first argument is regnum and second argument is location.
20304
20305 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20306
20307         PR target/42113
20308         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
20309         of scratch register to DImode.  Split to DImode comparison operator.
20310         Use SImode subreg of scratch register in the multiplication.
20311         (*cmp_sadd_sidi): Ditto.
20312         (*cmp_ssub_si): Ditto.
20313         (*cmp_ssub_sidi): Ditto.
20314
20315 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20316
20317         PR target/43524
20318         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
20319         Remove invalid assert and wrong comment.
20320
20321 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
20322
20323         PR debug/43516
20324         * flags.h (final_insns_dump_p): New extern.
20325         * final.c (final_insns_dump_p): New variable.
20326         (rest_of_clean_state): Set it before -fdump-final-insns=
20327         dumping, clear afterwards.
20328         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
20329         MEM_ALIAS_SET on MEMs.
20330
20331 2010-03-26  David S. Miller  <davem@davemloft.net>
20332
20333         * configure.ac: Fix sparc GOTDATA_OP bug check.
20334         * configure: Rebuild.
20335
20336 2010-03-26  Alan Modra  <amodra@gmail.com>
20337
20338         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
20339
20340 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20341
20342         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
20343         TLS_SECTION_ASM_FLAG.
20344
20345 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
20346
20347         PR bootstrap/43511
20348         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
20349         Clear first_function_block_is_cold.
20350
20351         PR c/43385
20352         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
20353         argument if the argument is truth_value_p.
20354
20355 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20356
20357         * config/rs6000/constraints.md: Update copyright year for my changes.
20358
20359         PR target/43484
20360         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
20361         used in reg+reg addressing, swap registers.
20362
20363 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20364
20365         PR debug/43293
20366         * target.h (struct gcc_target): Add code_end hook.
20367         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
20368         if not yet defined.
20369         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
20370         * toplev.c (compile_file): Call targetm.asm_out.code_end
20371         hook before unwind info/debug info output.
20372         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
20373         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
20374         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20375         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
20376         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20377         * config/i386/i386.c (ix86_file_end): Renamed to...
20378         (ix86_code_end): ... this.  Make static.  Don't call
20379         file_end_indicate_exec_stack.  Emit unwind info using
20380         final_start_function/final_end_function.
20381         (darwin_x86_file_end): Remove.
20382         (TARGET_ASM_CODE_END): Define.
20383         * config/i386/i386.h (TARGET_ASM_FILE_END,
20384         NEED_INDICATE_EXEC_STACK): Don't define.
20385         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
20386         (TARGET_ASM_FILE_END): Define to darwin_file_end.
20387         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
20388         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
20389
20390         PR target/43498
20391         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
20392         at the beginning and final_end_function at the end.
20393         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
20394
20395 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20396
20397         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
20398         and Sun as TLS syntax.
20399         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
20400         * configure: Regenerate.
20401         * config.in: Regenerate.
20402         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
20403         (default_elf_asm_named_section): Use it.
20404         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
20405         (i386_output_dwarf_dtprel): Likewise.
20406         (output_addr_const_extra): Likewise.
20407         (output_pic_addr_const): Lowercase @GOTTPOFF.
20408         (output_addr_const_extra): Likewise.
20409         (output_pic_addr_const): Lowercase @GOTNTPOFF.
20410         (output_addr_const_extra): Likewise.
20411         (output_pic_addr_const): Lowercase @INDNTPOFF.
20412         (output_addr_const_extra): Likewise.
20413         (output_pic_addr_const): Lowercase @NTPOFF.
20414         (output_addr_const_extra): Likewise.
20415         (output_pic_addr_const): Lowercase @TPOFF.
20416         (output_addr_const_extra): Likewise.
20417         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
20418         (*tls_global_dynamic_64): Likewise.
20419         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
20420         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
20421
20422         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
20423         (ASM_OUTPUT_TLS_COMMON): Use it.
20424         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
20425
20426         PR target/38118
20427         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
20428         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20429         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
20430         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
20431         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20432         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
20433
20434 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20435
20436         * config/i386/i386.c (override_options): Don't accept
20437         -mtls-dialect=sun any longer.
20438         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
20439         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
20440         (*tls_local_dynamic_base_32_sun): Likewise.
20441         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20442
20443 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20444
20445         PR debug/43508
20446         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20447         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
20448
20449         PR debug/43479
20450         * ira.c (adjust_cleared_regs): New function.
20451         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
20452
20453         PR debug/19192
20454         PR debug/43479
20455         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
20456         from gimple_block.
20457         * expr.c (expand_expr_real): Restore previous
20458         curr_insn_source_location and curr_insn_block after
20459         expand_expr_real_1 call.
20460         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
20461         instead of expand_expr_real_1.
20462
20463 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
20464
20465         PR rtl-optimization/43413
20466         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
20467         hard regs too.
20468
20469 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
20470
20471         PR target/43348
20472         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
20473         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
20474
20475 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
20476
20477         * config/i386/i386.c (ix86_target_string): Add -mfma.
20478         Fix a typo in comment.
20479
20480 2010-03-22  Mike Stump  <mikestump@comcast.net>
20481
20482         PR target/23071
20483         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
20484         Don't overly align based upon packed packed fields.
20485
20486 2010-03-22  Jason Merrill  <jason@redhat.com>
20487
20488         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
20489         Use () rather than [], and move before the element type.
20490
20491 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20492
20493         * doc/configfiles.texi (Configuration Files): Removed
20494         fixinc/Makefile*, intl/Makefile.*.
20495         * doc/makefile.texi: Fixed markup. Abstract from version
20496         control system used.
20497         (Makefile): Removed obsolete gcc/java/parse.y example.
20498         * doc/sourcebuild.texi: Likewise.
20499         (Top Level): Added config, gnattools, libdecnumber, libgcc,
20500         libgomp, libssp.  Removed fastjar.
20501         (Miscellaneous Docs): Clarify location.
20502         Added COPYING3, COPYING3.LIB.
20503         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
20504
20505 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20506
20507         PR target/38085
20508         * config/i386/i386.c (x86_function_profiler)
20509         [!NO_PROFILE_COUNTERS]: Fix typo.
20510         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
20511         instead of callq.
20512
20513 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
20514             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20515
20516         * doc/sourcebuild.texi (Test Directives): Split into six
20517         subsections, with most of the current text in new subsections
20518         Directives, Selectors, and Final Actions.
20519         (Directives): Split list of test directives into multiple
20520         subsubsections.
20521         (Selectors): Describe use and syntax of selectors.
20522         (Effective-Target Keywords): Describe all existing keywords.
20523         (Add Options): Describe features for dg-add-options.
20524         (Require Support): Describe variants of dg-require-support.
20525         (Final Actions): Describe commands to use in dg-final.
20526
20527 2010-03-22  Michael Matz  <matz@suse.de>
20528
20529         PR middle-end/43475
20530         * recog.c (validate_replace_rtx_group): Replace also in
20531         REG_EQUAL and REG_EQUIV notes.
20532
20533 2010-03-22  Richard Guenther  <rguenther@suse.de>
20534
20535         PR tree-optimization/43390
20536         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
20537         sure vector extracts are type correct.
20538
20539 2010-03-22  Richard Guenther  <rguenther@suse.de>
20540
20541         PR middle-end/40106
20542         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
20543         x * sqrt (x) even when optimizing for size if the target
20544         has native support for sqrt.
20545
20546 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
20547
20548         * varasm.c (make_decl_rtl_for_debug): Also clear
20549         flag_mudflap for the duration of make_decl_rtl call.
20550
20551         PR debug/43443
20552         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
20553         locs from preserved VALUEs.
20554
20555 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20556
20557         PR middle-end/42718
20558         * pa.md (movmemsi): Set align to one if zero.
20559         (movmemdi): Likewise.
20560
20561 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
20562
20563         PR target/42321
20564         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
20565         with their corresponding prologue pushes.
20566
20567 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
20568
20569         PR target/43156
20570         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
20571         at the begining or end.
20572         (spu_expand_epilogue): Likewise.
20573
20574 2010-03-20  Richard Guenther  <rguenther@suse.de>
20575
20576         PR rtl-optimization/43438
20577         * combine.c (make_extraction): Properly zero-/sign-extend an
20578         extraction of the low part of a CONST_INT.  Also handle
20579         CONST_DOUBLE.
20580
20581 2010-03-19  Mike Stump  <mikestump@comcast.net>
20582
20583         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
20584         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
20585         (override_options): Use SUBTARGET32_DEFAULT_CPU.
20586
20587 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20588
20589         PR c/43211
20590         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
20591         an error.
20592
20593 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
20594
20595         PR rtl-optimization/42258
20596         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
20597         use that may match DEF.
20598
20599         PR target/40697
20600         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
20601         the cost of loading the constant rather than assuming
20602         COSTS_N_INSNS (1).
20603         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
20604         outer code is AND, do the same tests as the andsi3 expander and
20605         return COSTS_N_INSNS (1) if and is cheap.
20606
20607         * optabs.c (avoid_expensive_constant): Fix formatting.
20608
20609 2010-03-19  Michael Matz  <matz@suse.de>
20610
20611         PR c++/43116
20612         * attribs.c (decl_attributes): When rebuilding a function pointer
20613         type use the same qualifiers as the original pointer type.
20614
20615 2010-03-19  Martin Jambor  <mjambor@suse.cz>
20616
20617         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
20618         and is_gimple_ip_invariant_address.
20619
20620 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20621
20622         Revert
20623         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20624
20625         * config/arm/arm.c (arm_override_options): Turn off
20626         flag_dwarf2_cfi_asm for AAPCS variants.
20627
20628 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20629
20630         PR target/43399
20631         * config/arm/arm.c (emit_multi_reg_push): Update comments.
20632         Use PRE_MODIFY instead of PRE_DEC.
20633         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20634         (vfp_emit_fstmd): Likewise.
20635
20636 2010-03-19  Michael Matz  <matz@suse.de>
20637
20638         PR target/43305
20639         * builtins.c (expand_builtin_interclass_mathfn,
20640         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20641         if that fails.
20642
20643 2010-03-19  Richard Guenther  <rguenther@suse.de>
20644
20645         PR tree-optimization/43415
20646         * tree-ssa-pre.c (phi_translate): Split out worker to ...
20647         (phi_translate_1): ... this.
20648         (phi_translate): Move all caching here.  Cache all NARY
20649         and REFERENCE translations.
20650
20651 2010-03-19  David S. Miller  <davem@davemloft.net>
20652
20653         With help from Eric Botcazou.
20654         * config/sparc/sparc.c: Include dwarf2out.h.
20655         (emit_pic_helper): Delete.
20656         (pic_helper_symbol_name): Delete.
20657         (pic_helper_emitted_p): Delete.
20658         (pic_helper_needed): New.
20659         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20660         (get_pc_thunk_name): New.
20661         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
20662         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20663         Set pic_helper_needed to true.  Don't call emit_pic_helper.
20664         (sparc_expand_prologue): Update load_pic_register call.
20665         (sparc_output_mi_thunk): Likewise.
20666         (sparc_file_end): Emit a hidden comdat symbol for the PIC
20667         thunk if possible.  Output CFI information as needed.
20668
20669 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20670             Jack Howarth  <howarth@bromo.med.uc.edu>
20671
20672         PR target/36399
20673         * config/i386/i386.h: Fix ABI on darwin x86-32.
20674
20675 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
20676
20677         * tree.h: Declare make_decl_rtl_for_debug.
20678         * varasm.c (make_decl_rtl_for_debug): New.
20679         * dwarf2out.c (rtl_for_decl_location): Call it.
20680         * cfgexpand.c (expand_debug_expr): Call it.
20681
20682 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20683
20684         PR bootstrap/43399
20685         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20686         mem_mode.
20687
20688         PR bootstrap/43403
20689         * var-tracking.c (vt_init_cfa_base): Do nothing if
20690         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20691
20692 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
20693
20694         PR debug/42873
20695         * var-tracking.c (canonicalize_vars_star): New.
20696         (dataflow_post_merge_adjust): Use it.
20697
20698 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20699
20700         PR debug/43058
20701         * var-tracking.c (non_suitable_const): New function.
20702         (add_uses): For DEBUG_INSNs with constants, don't record any
20703         value, instead just the constant value itself.
20704         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20705         is not VAR_LOC_UNKNOWN_P, set var to the constant.
20706         (emit_notes_in_bb): Likewise.
20707         (emit_note_insn_var_location): For onepart variables if
20708         cur_loc is a VOIDmode constant, use DECL_MODE.
20709
20710 2010-03-18  Martin Jambor  <mjambor@suse.cz>
20711
20712         PR middle-end/42450
20713         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20714         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20715         all non-clones.  Moved call redirection...
20716         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20717         (cgraph_materialize_all_clones): Dispose of all
20718         combined_args_to_skip bitmaps.
20719         (verify_cgraph_node): Do not check for edges pointing to wrong
20720         nodes in inline clones.
20721         * tree-inline.c (copy_bb): Call
20722         cgraph_redirect_edge_call_stmt_to_callee.
20723         * ipa.c (cgraph_remove_unreachable_nodes): Call
20724         cgraph_node_remove_callees even when there are used clones.
20725
20726 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20727
20728         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20729
20730 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20731
20732         PR target/43383
20733         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20734         for 32bit.
20735
20736 2010-03-18  Michael Matz  <matz@suse.de>
20737
20738         PR middle-end/43419
20739         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20740         into sqrt(x) if we need to preserve signed zeros.
20741
20742 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
20743             Eric Botcazou  <ebotcazou@adacore.com>
20744
20745         PR rtl-optimization/43360
20746         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20747         note if we don't know its invariant status.
20748
20749 2010-03-18  Michael Matz  <matz@suse.de>
20750
20751         PR tree-optimization/43402
20752         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20753         PHI chains of ssa names registered for update.
20754
20755 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
20756
20757         PR target/42427
20758         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20759         non-offsettable and pre_modify update addressing.
20760         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20761         and "2" alternatives "#".
20762         (*movdd_softfloat32): Make all alternatives "#";
20763         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20764         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20765         (*movdf_softfloat32): Make all alternatives "#";
20766         (movdi): Use the new DIFD mode iterator to create a common splitter
20767         for movdi, movdf and movdd patterns.
20768
20769 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
20770
20771         * common.opt (dumpdir): Remove redundant tab.
20772
20773 2010-03-17  Martin Jambor  <mjambor@suse.cz>
20774
20775         PR tree-optimization/43347
20776         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20777         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20778
20779 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
20780
20781         PR rtl-optimization/42216
20782         * regrename.c (create_new_chain): New function, broken out from...
20783         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
20784         appending a use to an empty chain.
20785         (build_def_use): Remove previous changes that convert OP_INOUT to
20786         OP_OUT operands; instead detect the case where an OP_INOUT operand
20787         uses a previously untracked register and create an empty chain for it.
20788
20789 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20790
20791         * doc/extend.texi (Function Attributes): Rewrite unfinished
20792         sentence in ms_abi documentation.
20793
20794 2010-03-17  Alan Modra  <amodra@gmail.com>
20795
20796         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20797         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20798         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20799         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20800
20801 2010-03-16  Richard Henderson  <rth@redhat.com>
20802
20803         PR middle-end/43365
20804         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20805         (lower_try_finally): Save and restore eh_seq around the expansion
20806         of the try-finally.
20807
20808 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20809
20810         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20811         statements before splitting block.
20812
20813 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20814
20815         * doc/sourcebuild.texi (Testsuites): Fix markup.
20816         Use pathnames relative to gcc/testsuite.
20817         (Test Directives): Move description of how timeout is determined.
20818         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20819         (C Tests): Correct gcc.misc-tests directory.
20820         Framework tests now live in gcc.test-framework.
20821
20822 2010-03-16  Richard Guenther  <rguenther@suse.de>
20823
20824         PR middle-end/43379
20825         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20826         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20827
20828 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20829             Alexandre Oliva  <aoliva@redhat.com>
20830
20831         PR tree-optimization/42917
20832         * lambda-code.c (remove_iv): Skip debug statements.
20833         (lambda_loopnest_to_gcc_loopnest): Likewise.
20834         (not_interesting_stmt): Debug statements are not interesting.
20835
20836 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20837
20838         PR debug/43051
20839         PR debug/43092
20840         * cselib.c (cselib_preserve_constants,
20841         cfa_base_preserved_val): New static variables.
20842         (preserve_only_constants): New function.
20843         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20844         clear its REG_VALUES.  If cselib_preserve_constants, don't
20845         empty the whole hash table, but preserve there VALUEs with constants,
20846         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20847         (cselib_preserve_cfa_base_value): New function.
20848         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20849         (cselib_init): Change argument to int bitfield.  Set
20850         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20851         is in it.
20852         (cselib_finish): Clear cselib_preserve_constants and
20853         cfa_base_preserved_val.
20854         * cselib.h (enum cselib_record_what): New enum.
20855         (cselib_init): Change argument to int.
20856         (cselib_preserve_cfa_base_value): New prototype.
20857         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20858         * dse.c (dse_step1): Likewise.
20859         * cfgcleanup.c (thread_jump): Likewise.
20860         * sched-deps.c (sched_analyze): Likewise.
20861         * gcse.c (local_cprop_pass): Likewise.
20862         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20863         If FN is non-NULL, call the callback always and whenever it returns
20864         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20865         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20866         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20867         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20868         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20869         * var-tracking.c: Include recog.h.
20870         (bb_stack_adjust_offset): Remove.
20871         (vt_stack_adjustments): Don't call it, instead just gather the
20872         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20873         (adjust_stack_reference): Remove.
20874         (compute_cfa_pointer): New function.
20875         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20876         (struct adjust_mem_data): New type.
20877         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20878         functions.
20879         (get_address_mode): New function.
20880         (replace_expr_with_values): Use it.
20881         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20882         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20883         (adjust_sets): Remove.
20884         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20885         Use get_address_mode.
20886         (get_adjusted_src): Remove.
20887         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20888         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20889         (add_with_sets): Don't call adjust_sets.
20890         (fp_setter, vt_init_cfa_base): New functions.
20891         (vt_initialize): Change return type to bool.  Move most of pool etc.
20892         initialization to the beginning of the function from end.  Pass
20893         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20894         If !frame_pointer_needed, call vt_stack_adjustment before mos
20895         vector is filled, call vt_init_cfa_base if argp/framep has been
20896         eliminated to sp.  If frame_pointer_needed and argp/framep has
20897         been eliminated to hard frame pointer, set
20898         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20899         encountering fp setter in the prologue.  For MO_ADJUST, call
20900         log_op_type before pusing the op into mos vector, not afterwards.
20901         Call adjust_insn before cselib_process_insn/add_with_sets,
20902         call cancel_changes (0) afterwards.
20903         (variable_tracking_main_1): Adjust for vt_initialize calling
20904         vt_stack_adjustments and returning whether it succeeded or not.
20905
20906 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20907
20908         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20909         debug statements.
20910
20911 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20912
20913         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20914         has been set.
20915         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20916         drap_reg has not been set.
20917
20918 2010-03-15  Michael Matz  <matz@suse.de>
20919
20920         PR middle-end/43300
20921         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20922         use it to expand block copies.
20923         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20924         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20925         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20926
20927 2010-03-15  Richard Guenther  <rguenther@suse.de>
20928
20929         PR tree-optimization/43367
20930         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20931         elimination check.
20932
20933 2010-03-15  Richard Guenther  <rguenther@suse.de>
20934
20935         PR tree-optimization/43317
20936         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20937
20938 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20939
20940         PR tree-optimization/43141
20941         * tree-sra.c (create_abstract_origin): New function.
20942         (modify_function): Call create_abstract_origin.
20943
20944 2010-03-15  Chris Demetriou  <cgd@google.com>
20945
20946         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20947         wasn't copied.
20948
20949 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20950
20951         PR middle-end/43354
20952         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20953         call insert_out_of_ssa_copy for default definitions.
20954
20955 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20956
20957         * graphite-clast-to-gimple.c (my_long_long): Defined.
20958         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20959         * graphite-sese-to-poly.c (my_long_long): Defined.
20960         (scop_ivs_can_be_represented): Use it.
20961
20962 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20963
20964         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20965         graphite-max-bbs-per-function, and loop-block-tile-size.
20966         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20967         with "maximum".
20968         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20969
20970 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20971
20972         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20973         forward declaration.
20974         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20975         (add_upper_bounds_from_estimated_nit): New.
20976         (build_loop_iteration_domains): Use it.
20977
20978 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20979
20980         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20981
20982 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20983
20984         PR middle-end/43306
20985         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20986         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20987
20988 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20989
20990         * graphite.c (graphite_initialize): To bound the number of bbs per
20991         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20992         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20993         * doc/invoke.texi: Document it.
20994
20995 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20996
20997         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20998         * graphite-sese-to-poly.h (build_poly_scop): Same.
20999
21000 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
21001
21002         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
21003         the number of parameters in the scop.  Use as an upper bound
21004         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
21005         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
21006         * doc/invoke.texi: Document it.
21007
21008 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
21009
21010         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
21011         * doc/c-tree.texi: Remove.
21012         * doc/generic.texi: Merge c-tree.texi here.
21013         * doc/gccint.texi (Trees): Remove menu entry.
21014         (c-tree.texi): Remove @include.
21015         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
21016         * doc/languages.texi (Reading RTL): Ditto.
21017
21018 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
21019
21020         PR target/42869
21021         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
21022
21023 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21024
21025         PR middle-end/42431
21026         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
21027         code added to work around reload clobbering CONST insns.
21028
21029 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
21030
21031         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
21032         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
21033         (cselib_preserve_only_values): Remove retain argument, don't
21034         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
21035         * cselib.h (cselib_preserve_only_values): Remove retain argument.
21036         * var-tracking.c (micro_operation): Move insn field before union.
21037         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
21038         (struct variable_tracking_info_def): Remove n_mos field, change
21039         mos into a vector of micro_operations.
21040         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
21041         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
21042         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
21043         changing into a vector.
21044         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
21045         come before all other uops generated by add_stores.
21046         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
21047         argument removal.
21048         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
21049         a vector.  Run just one pass over the bbs instead of separate counting
21050         and computation phase.
21051         (vt_finalize): Free VTI (bb)->mos vector instead of array.
21052
21053         PR debug/43329
21054         * tree-inline.c (remap_decls): Put old_var rather than origin_var
21055         into *nonlocalized_list vector.
21056         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
21057         even if origin is non-NULL.
21058         (gen_variable_die): Likewise.
21059         (process_scope_var): Don't change origin.
21060         (gen_decl_die): Likewise.
21061         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
21062         before adding new edges instead of after it, fix moving over
21063         debug stmts.
21064
21065 2010-03-11  David S. Miller  <davem@davemloft.net>
21066
21067         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
21068         of four.
21069         * configure: Rebuild.
21070
21071 2010-03-11  Martin Jambor  <mjambor@suse.cz>
21072
21073         PR tree-optimization/43257
21074         * tree.c (assign_assembler_name_if_neeeded): New function.
21075         (free_lang_data_in_cgraph): Assembler name assignment moved to the
21076         above new function.
21077         * tree.h (assign_assembler_name_if_neeeded): Declare.
21078         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
21079         the function if needed.
21080
21081 2010-03-11  Chris Demetriou  <cgd@google.com>
21082
21083         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
21084         include/stdint-gcc.h, and include/stdint.h world-readable.
21085
21086 2010-03-11  Richard Guenther  <rguenther@suse.de>
21087
21088         PR tree-optimization/43255
21089         * tree-vrp.c (process_assert_insertions_for): Do not insert
21090         asserts for trivial conditions.
21091
21092 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21093
21094         PR tree-optimization/43280
21095         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
21096         generation.  Move calculation of size out of the if branch.
21097         (find_bswap): Modify compare number generation.
21098
21099 2010-03-11  Richard Guenther  <rguenther@suse.de>
21100
21101         PR lto/43200
21102         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
21103         (input_gimple_stmt): Fixup handled component types during
21104         operand read.  Also fix up decls in ADDR_EXPRs.
21105
21106 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
21107
21108         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
21109         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
21110
21111 2010-03-10  Jan Hubicka  <jh@suse.cz>
21112
21113         PR c/43288
21114         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
21115         * varasm.c (get_variable_section): Don't do that here...
21116         (make_decl_rtl): ... and here.
21117         (do_assemble_alias): Produce decl RTL.
21118         (assemble_alias): Likewise.
21119
21120 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
21121
21122         PR debug/43290
21123         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
21124         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
21125         of fde->vdrap_reg.
21126         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
21127         (based_loc_descr): Only express drap or vdrap regno based expressions
21128         using DW_OP_fbreg when not optimizing.
21129         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
21130         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
21131         REG_CFA_SET_VDRAP note.
21132
21133 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
21134
21135         PR tree-optimization/43236
21136         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
21137         error in calculation of base address in reverse iteration case.
21138         (generate_builtin): Take number of latch executions if the statement
21139         is in the latch.
21140
21141 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
21142
21143         PR middle-end/42859
21144         * tree-eh.c: Include pointer-set.h.
21145         (lower_eh_dispatch): Filter out duplicate case labels and
21146         remove the unneeded edge when the label is unused.  Return
21147         true when some edges are removed.
21148         (execute_lower_eh_dispatch): When any lowering resulted in
21149         removing an edge, also delete unreachable blocks.
21150
21151 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
21152
21153         PR bootstrap/43287
21154         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21155         UNSPEC_MACHOPIC_OFFSET.
21156
21157 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
21158
21159         PR target/43294
21160         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
21161         (m68k_delegitimize_address): New function.
21162
21163 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
21164
21165         PR debug/43299
21166         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
21167
21168         PR debug/43299
21169         * var-tracking.c (adjust_sets): New function.
21170         (count_with_sets, add_with_sets): Use it.
21171         (get_adjusted_src): New inline function.
21172         (add_stores): Use it.
21173
21174         PR debug/43304
21175         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
21176         call cselib_dummy_expand_value_rtx_cb instead of
21177         cselib_expand_value_rtx_cb.
21178
21179         PR debug/43293
21180         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
21181         * config/i386/i386.c: Include debug.h and dwarf2out.h.
21182         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
21183         and .cfi_endproc around the pic thunks.
21184         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
21185         all queued unwind info register saves are saved before the call.
21186         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
21187         considered as sp-=4 for unwind info and the pop as sp+=4 which
21188         also clobbers dest, but doesn't actually restore it.
21189
21190         PR debug/43290
21191         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
21192         RTX_FRAME_RELATED_P.
21193
21194 2010-03-09  Jie Zhang  <jie@codesourcery.com>
21195
21196         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
21197         whitespaces in output template.
21198
21199 2010-03-09  Jie Zhang  <jie@codesourcery.com>
21200
21201         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
21202         out array boundary.
21203
21204 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
21205
21206         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
21207         builtins.exp in a separate job.
21208
21209 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21210
21211         * graphite-sese-to-poly.c (add_param_constraints): Use
21212         lower_bound_in_type and upper_bound_in_type.
21213
21214 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21215
21216         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
21217         instead of unsigned_type_node.
21218
21219 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21220             Reza Yazdani  <reza.yazdani@amd.com>
21221
21222         PR middle-end/43065
21223         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
21224         on pointer type parameters.
21225
21226 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
21227
21228         PR middle-end/42644
21229         PR middle-end/42130
21230         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
21231         handle conversions from pointer to integers.
21232         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
21233         induction variable, to be able to work with code generated by CLooG.
21234         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
21235         (build_poly_scop): Bail out if we cannot codegen a loop.
21236
21237 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
21238
21239         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
21240         code generation with gloog_error.
21241
21242 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21243
21244         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
21245         Call fold_convert on all the returned values.
21246         (expand_scalar_variables_expr): Pass to
21247         expand_scalar_variables_ssa_name the type of the resulting expression.
21248
21249 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21250
21251         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
21252         ppl_min_for_le_pointset.
21253         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
21254         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
21255
21256 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21257
21258         * graphite-dependences.c (map_into_dep_poly): Removed.
21259         (dependence_polyhedron_1): Use combine_context_id_scat.
21260
21261 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21262
21263         * graphite-poly.h (struct poly_scattering): Add layout documentation.
21264         (struct poly_bb): Same.
21265         (combine_context_id_scat): New.
21266
21267 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21268
21269         PR middle-end/42326
21270         * sese.c (name_defined_in_loop_p): Return false for default
21271         definitions.
21272
21273 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21274
21275         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
21276         and clean up the logic.
21277
21278 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
21279
21280         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
21281         early return.
21282
21283 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
21284
21285         * var-tracking.c (remove_cselib_value_chains): Define only for
21286         ENABLE_CHECKING.
21287         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
21288         delete_slot_part, emit_notes_for_differences_1): Don't call
21289         remove_cselib_value_chains here.
21290         (set_slot_part, emit_notes_for_differences_2): Don't call
21291         add_cselib_value_chains here.
21292         (preserved_values): New vector.
21293         (preserve_value): New function.
21294         (add_uses, add_stores, vt_add_function_parameters): Use it
21295         instead of cselib_preserve_value.
21296         (changed_values_stack): New vector.
21297         (check_changed_vars_0): New function.
21298         (check_changed_vars_1, check_changed_vars_2): Use it.
21299         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
21300         changed_values_stack VALUEs.
21301         (vt_emit_notes): For all preserved_values call
21302         add_cselib_value_chains.  If ENABLE_CHECKING call
21303         remove_cselib_value_chains before verifying value_chains is empty.
21304         Initialize and free changed_values_stack.
21305         (vt_initialize): Initialize preserved_values.
21306         (vt_finalize): Free preserved_values.
21307
21308 2010-03-08  Richard Guenther  <rguenther@suse.de>
21309
21310         PR tree-optimization/43269
21311         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
21312         region detection.
21313
21314 2010-03-08  Martin Jambor  <mjambor@suse.cz>
21315
21316         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
21317         (ipa_is_param_called): Removed.
21318         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
21319         (ipa_print_node_params): Do not print the called flag.
21320         (ipa_write_node_info): Do not stream the called flag.
21321         (ipa_read_node_info): Likewise.
21322
21323 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
21324
21325         PR debug/43176
21326         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
21327         * cselib.c (struct expand_value_data): Add dummy field.
21328         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
21329         dummy to false.
21330         (cselib_dummy_expand_value_rtx_cb): New function.
21331         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
21332         any rtl.
21333         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
21334         * var-tracking.c: Include pointer-set.h.
21335         (variable): Change n_var_parts to char from int.  Add
21336         cur_loc_changed and in_changed_variables fields.
21337         (variable_canonicalize): Remove.
21338         (shared_var_p): New inline function.
21339         (unshare_variable): Maintain cur_loc_changed and
21340         in_changed_variables fields.  If var was in changed_variables,
21341         replace it there with new_var.  Just copy cur_loc instead of
21342         resetting it to something else.
21343         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
21344         (dataflow_set_union): Don't call variable_canonicalize.
21345         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
21346         of their DEBUG_EXPR_TREE_DECLs.
21347         (canonicalize_loc_order_check): Verify that cur_loc is NULL
21348         and in_changed_variables and cur_loc_changed is false.
21349         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
21350         and cur_loc_changed.  Don't update cur_loc here.
21351         (variable_merge_over_src): Don't call variable_canonicalize.
21352         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
21353         removing loc that is equal to cur_loc, clear cur_loc,
21354         set cur_loc_changed and ensure variable_was_changed is called.
21355         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
21356         compare pointers in cur_loc check, if it is equal to loc,
21357         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
21358         (variable_different_p): Remove compare_current_location argument,
21359         don't compare cur_loc.
21360         (dataflow_set_different_1): Adjust variable_different_p caller.
21361         (variable_was_changed): If dv had some var in changed_variables
21362         already, reset in_changed_variables flag for it and propagate
21363         cur_loc_changed over to the new variable.  On empty var
21364         always set cur_loc_changed.  Set in_changed_variables on whatever
21365         var is added to changed_variables.
21366         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
21367         Use shared_var_p.  When removing loc that is equal to cur_loc,
21368         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
21369         end, don't set it to something else, just call variable_was_changed.
21370         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
21371         loc being removed, clear cur_loc and set cur_loc_changed.
21372         Set cur_loc_changed if all locations have been removed.
21373         (struct expand_loc_callback_data): New type.
21374         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
21375         allocated.  Always create SUBREGs if simplify_subreg failed.
21376         Prefer to use cur_loc, when that fails and still in
21377         changed_variables (and seen first time) recompute it.  Set
21378         cur_loc_changed of variables which had to change cur_loc and
21379         compute elcd->cur_loc_changed if any of the subexpressions used
21380         had to change cur_loc.
21381         (vt_expand_loc): Adjust to pass arguments in
21382         expand_loc_callback_data structure.
21383         (vt_expand_loc_dummy): New function.
21384         (emitted_notes): New variable.
21385         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
21386         that weren't used for any other decl in current
21387         emit_notes_for_changes call call vt_expand_loc_dummy to update
21388         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
21389         first loc_chain location if NULL before.  Always use just
21390         cur_loc instead of first loc_chain location.  When cur_loc_changed
21391         is false, when not --enable-checking=rtl just don't emit any note.
21392         When rtl checking, compute the note and assert it is the same
21393         as previous note.  Clear cur_loc_changed and in_changed_variables
21394         at the end before removing from changed_variables.
21395         (check_changed_vars_3): New function.
21396         (emit_notes_for_changes): Traverse changed_vars to call
21397         check_changed_vars_3 on each changed var.
21398         (emit_notes_for_differences_1): Clear cur_loc_changed and
21399         in_changed_variables.  Recompute cur_loc of new_var.
21400         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
21401         (vt_emit_notes): Initialize and destroy emitted_notes.
21402
21403 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
21404
21405         PR rtl-optimization/42220
21406         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
21407         Use verify_reg_tracked to determine if we should use OP_OUT rather
21408         than OP_INOUT.
21409         (build_def_use): If we see an in-out operand for a register that we
21410         know nothing about, treat is an output if possible, fail the block if
21411         not.
21412
21413 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21414
21415         PR debug/42897
21416         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
21417         permanently.
21418
21419 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21420
21421         PR debug/42897
21422         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
21423         uses of relevant DEFs that are dead outside the loop too.
21424
21425 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21426
21427         * var-tracking.c (dataflow_set_merge): Swap src and src2.
21428         Reverted:
21429         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21430         PR debug/41371
21431         * var-tracking.c (values_to_unmark): New variable.
21432         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21433         values_to_unmark vector.  Moved body to...
21434         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21435         instead queue it into values_to_unmark vector.
21436         (vt_find_locations): Free values_to_unmark vector.
21437
21438 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
21439
21440         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
21441         (site.exp): Export them when plugins are enabled.
21442
21443 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
21444
21445         PR middle-end/42326
21446         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
21447         that contain scevs.
21448         (chrec_fold_multiply): Same.
21449
21450 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
21451
21452         PR c/43248
21453         * c-decl.c (build_compound_literal): Return early if init is
21454         an error_mark_node.
21455
21456 2010-03-04  Martin Jambor  <mjambor@suse.cz>
21457
21458         PR tree-optimization/43164
21459         PR tree-optimization/43191
21460         * tree-sra.c (type_consists_of_records_p): Reject records with
21461         zero-size bit-fields at the end.
21462
21463 2010-03-04  Mike Stump  <mikestump@comcast.net>
21464
21465         * Makefile.in (TAGS): Remove *.y.
21466
21467 2010-03-04  Richard Guenther  <rguenther@suse.de>
21468
21469         PR tree-optimization/40761
21470         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
21471         in reverse order.
21472         (my_rev_post_order_compute): New function.
21473         (init_pre): Call it.
21474
21475 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
21476
21477         PR middle-end/43209
21478         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
21479         decrease the cost of an IV candidate when the cost is infinite.
21480
21481 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21482
21483         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
21484         Use '3DNow!' for the extension of that name, ensure normal space
21485         after the string.
21486         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
21487
21488 2010-03-03  Jeff Law  <law@redhat.com>
21489
21490         * PR middle-end/32693
21491         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
21492         than gen_rtx_SUBREG.
21493         (extract_bit_field_1): Likewise.
21494
21495 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
21496
21497         * doc/sourcebuild.texi (Test directives): Document that arguments
21498         include-opts and exclude-opts are now optional for dg-skip-if,
21499         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
21500
21501 2010-03-03  Jason Merrill  <jason@redhat.com>
21502
21503         PR c++/12909
21504         * cgraph.h (varpool_node): Add extra_name field.
21505         * varpool.c (varpool_extra_name_alias): New.
21506         (varpool_assemble_decl): Emit extra name aliases.
21507         (varpool_mark_needed_node): Look past an extra name alias.
21508         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
21509         * lto-streamer-in.c (lto_input_tree): Read it.
21510         * lto-streamer-out.c (output_unreferenced_globals): Write it.
21511
21512 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21513
21514         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
21515         (sparc*-*-solaris2*): ...this.
21516
21517 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
21518
21519         PR debug/43229
21520         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
21521         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
21522         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
21523         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
21524
21525         PR debug/43237
21526         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
21527         fallthrough to default handling, just with want_address 0 instead of 2.
21528         For single element lists, add_AT_loc directly, otherwise create an
21529         artificial variable DIE and stick location list to it.
21530
21531         PR debug/43177
21532         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
21533         (VAL_EXPR_HAS_REVERSE): Define.
21534         (reverse_op): New function.
21535         (add_stores): For reversible operations add an extra MO_VAL_USE.
21536
21537 2010-03-02  Jason Merrill  <jason@redhat.com>
21538
21539         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
21540
21541 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
21542
21543         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
21544         (sparc64-*-linux*): Likewise.
21545         (sparc64-*-solaris2*): Include assembler files before linker ones.
21546         (sparc-*-solaris2*): Simplify and reorder to match previous case.
21547         * config/sparc/gas.h: Delete.
21548         * config/sparc/sol2-64.h: Add copyright notice.
21549         * config/sparc/sol2-gas-bi.h: Likewise.
21550         * config/sparc/sol2-gld.h: Likewise.
21551         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
21552         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
21553         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
21554         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
21555         (sparc_elf_asm_named_section): Rename into...
21556         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
21557
21558 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
21559
21560         * config/alpha/alpha.c (override_options): Fix -mtune error message.
21561
21562 2010-03-02  Jeff Law  <law@redhat.com>
21563
21564         PR middle-end/42431
21565         * reload1.c (rtx_p, substitute_stack): Declare.
21566         (substitute): Record addresses of changed rtxs.
21567         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
21568         Restore the original rtx when complete.
21569         (reload): Free subsitute_stack when complete.
21570
21571 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
21572
21573         * doc/gccint.texi (menu): Add Testsuites as a chapter.
21574         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
21575         new chapter.
21576         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
21577         LTO Testing, gcov Testing, profopt Testing, compat Testing,
21578         Torture Tests): Change from subsection to section.
21579
21580 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
21581             Steven Bosscher  <steven@gcc.gnu.org>
21582
21583         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
21584         instead of bb.
21585
21586 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
21587
21588         PR middle-end/42640
21589         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
21590         the assignment from the new induction variable to the assignment
21591         of the value from the original loop PHI function.
21592
21593 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
21594             Daniel Jacobowitz  <dan@codesourcery.com>
21595
21596         * doc/sourcebuild.texi (Test directives): Clarify options to
21597         dg-skip-if.
21598
21599 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21600
21601         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
21602         Disable cfi directives unless GCC and gas agree on using read-only
21603         .eh_frame sections for 64-bit.
21604         * configure: Regenerate.
21605
21606 2010-03-01  Richard Guenther  <rguenther@suse.de>
21607
21608         PR tree-optimization/43220
21609         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
21610         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
21611
21612 2010-03-01  Richard Guenther  <rguenther@suse.de>
21613             Martin Jambor  <mjambor@suse.cz>
21614
21615         PR middle-end/41250
21616         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
21617         gimplified parameters.
21618
21619 2010-03-01  Christian Bruel  <christian.bruel@st.com>
21620
21621         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21622
21623 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21624
21625         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21626
21627 2010-03-01  Richard Guenther  <rguenther@suse.de>
21628
21629         PR middle-end/43213
21630         * expr.c (expand_assignment): Use the alias-oracle to tell
21631         if the rhs aliases the result decl.
21632
21633 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21634
21635         PR pch/14940
21636         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21637         to sol_gt_pch_get_address.
21638         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21639         64-bit, SPARC and x86.
21640         (sol_gt_pch_get_address): New function.
21641
21642 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
21643
21644         * toplev.h (inform_n, error_n): Declare.
21645         * diagnostic.c (inform_n, error_n): New function.
21646
21647 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
21648
21649         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21650         has no rtl yet when processing local_decls, queue it and recheck
21651         if deferred stack allocation hasn't assigned it rtl.
21652
21653 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
21654
21655         * config/sh/sh.c (unspec_bbr_uid): New.
21656         (gen_block_redirect): Use it instead of INSN_UID.
21657         (gen_far_branch): Likewise.
21658
21659 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21660
21661         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21662         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21663
21664 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21665
21666         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21667         (Warning Options): -Wno-conversion-null is valid for
21668         Objective-C++ as well.
21669         * doc/tm.texi (Named Address Spaces): Likewise.
21670         * doc/plugins.texi (Plugins): Replace TABs with spaces.
21671         * doc/tree-ssa.texi (Tree SSA): Likewise.
21672
21673 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21674
21675         PR bootstrap/43202
21676         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21677         by default.  Don't set the default arch for
21678         i[34567]86-*-darwin*|x86_64-*-darwin*.
21679
21680 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21681
21682         PR bootstrap/43202
21683         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21684         default.  Set the default 32bit/64bit archs with $with_arch
21685         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21686
21687 2010-02-27  Richard Guenther  <rguenther@suse.de>
21688
21689         PR tree-optimization/43186
21690         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21691         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21692         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21693         unroller iterations.
21694
21695 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21696
21697         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21698         required and i[34567]86-*-* targets don't support 64bit ISA.
21699
21700 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21701
21702         PR ada/43096
21703         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21704         the same alias set.
21705
21706 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21707
21708         * config.gcc: Set the default arch at least to Prescott for
21709         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21710         if SSE math is enabled.
21711
21712 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21713
21714         * diagnostic.c (diagnostic_initialize): Update.
21715         (diagnostic_report_diagnostic): Test inhibit_notes_p for
21716         informative notes.
21717         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21718         (diagnostic_inhibit_notes): New.
21719         * toplev.c (process_options): inhibit notes with -fcompare-debug.
21720
21721 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21722
21723         PR c/20631
21724         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21725         * doc/standards.texi: Likewise.
21726         * doc/extend.texi: Likewise.
21727         * doc/trouble.texi: Likewise.
21728         * doc/cppopts.texi: Likewise.
21729         * doc/install.texi: Likewise.
21730         * c.opt (std=c90,std=gnu90): New options.
21731         * c-opts.c (c_common_handle_option): Handle them.
21732
21733 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21734
21735         PR c/24577
21736         * c-decl.c (undeclared_variable): Use an informative note.
21737
21738 2010-02-26  Richard Guenther  <rguenther@suse.de>
21739
21740         PR tree-optimization/43186
21741         * gimple.h (gimple_fold): Remove.
21742         * gimple.c (gimple_fold): Remove.  Inline into single user ...
21743         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21744         Try harder for conditions.
21745
21746 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21747
21748         PR debug/43190
21749         * function.c (used_types_insert): Don't skip through named pointer
21750         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
21751         and it is different from the main variant's type.
21752
21753 2010-02-26  Nick Clifton  <nickc@redhat.com>
21754
21755         * config/rx/rx.md (sminsi3): Remove bogus alternative.
21756
21757 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21758
21759         * config.gcc: Support --with-fpmath=sse for x86.
21760
21761         * config/i386/ssemath.h: New.
21762
21763         * doc/install.texi (--with-fpmath=sse): Documented.
21764
21765 2010-02-26  Richard Guenther  <rguenther@suse.de>
21766
21767         PR tree-optimization/43188
21768         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21769         vector types of over-aligned element type.
21770
21771 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
21772
21773         PR target/43175
21774         * config/i386/i386.c (expand_vec_perm_blend): Use correct
21775         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
21776
21777 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
21778
21779         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21780
21781 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21782
21783         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21784         * var-tracking.c: Include diagnostic.h.
21785         (debug_dv): New function.
21786         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21787
21788         PR debug/43160
21789         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21790         (add_value_chain, add_value_chains, remove_value_chain,
21791         remove_value_chains): Handle DEBUG_EXPRs.
21792         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21793
21794         PR debug/43161
21795         * regcprop.c (struct queued_debug_insn_change): New type.
21796         (struct value_data_entry): Add debug_insn_changes field.
21797         (struct value_data): Add n_debug_insn_changes field.
21798         (debug_insn_changes_pool): New variable.
21799         (free_debug_insn_changes, apply_debug_insn_changes,
21800         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21801         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21802         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21803         fields.
21804         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21805         changes for them.
21806         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21807         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21808         changes, call cprop_find_used_regs via note_stores.
21809         (copyprop_hardreg_forward): When copying vd from predecessor
21810         which has any queued DEBUG_INSN changes, make sure the pointers are
21811         cleared.  At the end call df_analyze and then if there are any
21812         DEBUG_INSN changes queued at the end of some basic block for still
21813         live registers, apply them.
21814         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21815
21816 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21817
21818         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21819         (arm*-*-*): Ditto.
21820
21821 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21822
21823         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21824         targets.  Set the default with_cpu/with_arch from arch/cpu.
21825         Allow x86-64 and native for with_cpu/with_arch.
21826
21827 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21828
21829         * ebitmap.c: Change calls to verify_popcount with calls to
21830         sbitmap_verify_popcount.
21831         (ebitmap_clear_bit): Fixed map->cacheindex test and
21832         map>cache update when bit clearing results in an empty
21833         element.
21834
21835 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21836
21837         PR target/43154
21838         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21839         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21840         and support both V2DF and V2DI modes.
21841         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21842         support both V2DF and V2DI modes.
21843         (general): Delete trailing whitespace from a few patterns.
21844
21845         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21846         V2DF/V2DI interleave high/low builtins.
21847
21848         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21849         new VSX builtins.
21850
21851         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21852         interleave high/low functions.
21853
21854 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21855
21856         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21857         #pragma extern_prefix.
21858
21859 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21860
21861         PR debug/43166
21862         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21863         BLKmode, assert op0 is a MEM and just adjust its mode.
21864
21865         PR debug/43165
21866         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21867         if bitpos isn't multiple of mode's bitsize.
21868
21869 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21870
21871         * c.opt (-ftemplate-depth=): New.
21872         (-ftemplate-depth-): Deprecate.
21873         * optc-gen.awk: Handle -ftemplate-depth=.
21874         * opth-gen.awk: Likewise.
21875         * c-opts.c (c_common_handle_option): Likewise.
21876         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21877
21878 2010-02-24  Jason Merrill  <jason@redhat.com>
21879
21880         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21881
21882 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21883
21884         * cfg.c (alloc_aux_for_block): Remove inline.
21885         (alloc_aux_for_edge): Likewise.
21886
21887 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21888
21889         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21890
21891 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21892
21893         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21894         * config/i386/sol2-gas.h: New file.
21895         * config.gcc (i[34567]86-*-solaris2*): Use it.
21896
21897 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21898
21899         PR c/43128
21900         * c-typeck.c (ep_convert_and_check): New.
21901         (build_conditional_expr): Use it.
21902         (build_binary_op): Likewise.
21903
21904 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21905
21906         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21907
21908         PR debug/43150
21909         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21910         bounds even for -O+.
21911         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21912         expr needs to have DECL_NAME set.
21913
21914 2010-02-24  Nick Clifton  <nickc@redhat.com>
21915
21916         * config/mep/mep.c: Include gimple.h.
21917         (mep_function_uses_sp): Delete unused function.
21918         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21919         parameters.  Use unsigned integers to count args.  Return a
21920         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21921
21922 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21923
21924         PR target/43107
21925         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21926         greater or equal to nelt instead of 2 * nelt.
21927         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21928         with nelt - 1.
21929
21930 2010-02-23  Jason Merrill  <jason@redhat.com>
21931
21932         PR debug/42800
21933         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21934         in cfun->local_decls even if they have register types.
21935
21936         PR c++/42837
21937         * stor-layout.c (place_field): Don't warn about unnecessary
21938         DECL_PACKED if the type is packed.
21939
21940 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21941
21942         PR target/43139
21943         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21944         GOTOFF relocs, even when the base reg isn't pic pointer.
21945
21946 2010-02-23  Michael Matz  <matz@suse.de>
21947
21948         PR debug/43077
21949         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21950         (expand_gimple_basic_block): Generate and use debug temps if there
21951         are debug uses left after the last real use of TERed ssa names.
21952         Unlink debug immediate uses when they are expanded.
21953
21954 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21955
21956         PR 43123
21957         * config/i386/i386.c (override_options): Reorganise to provide
21958         better error messages.
21959
21960 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21961
21962         PR middle-end/43083
21963         * graphite-scop-detection.c (create_single_exit_edge): Move
21964         the call to find_single_exit_edge to....
21965         (create_sese_edges): ...here.  Don't handle multiple edges
21966         exiting the function.
21967         (build_graphite_scops): Don't handle multiple edges
21968         exiting the function.
21969
21970 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21971
21972         PR middle-end/43097
21973         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21974         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21975
21976 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21977
21978         PR middle-end/43026
21979         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21980
21981 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21982
21983         PR c++/43126
21984         * c-typeck.c (convert_arguments): Print declaration location.
21985         * c-common.c (validate_nargs): Rename as
21986         builtin_function_validate_nargs.
21987         (check_builtin_function_arguments): Update.
21988
21989 2010-02-22  Richard Guenther  <rguenther@suse.de>
21990
21991         PR lto/43045
21992         * tree-inline.c (declare_return_variable): Use the type of
21993         the call stmt lhs if available.
21994
21995 2010-02-22  Duncan Sands  <baldrick@free.fr>
21996
21997         * passes.c (register_pass): Always consider all pass lists when
21998         ref_pass_instance_number is zero.
21999
22000 2010-02-22  Richard Guenther  <rguenther@suse.de>
22001
22002         PR tree-optimization/42749
22003         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
22004         parameter.  Do arithmetic in the original type.
22005         (update_accumulator_with_ops): Likewise.
22006         (adjust_accumulator_values): Adjust.
22007
22008 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22009
22010         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
22011         (QI to BLKmode splitter): New splitter.
22012
22013 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
22014
22015         * config/i386/i386.c (initial_ix86_tune_features): Turn on
22016         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
22017
22018 2010-02-22  Richard Guenther  <rguenther@suse.de>
22019
22020         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
22021
22022 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
22023
22024         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
22025         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
22026         ($(T)crti.o, $(T)crtn.o): Remove rules.
22027
22028 2010-02-21  Tobias Burnus  <burnus@net-b.de>
22029
22030         PR fortran/35259
22031         * doc/invoke.texi (-fassociative-math): Document that this
22032         option is automatically enabled for Fortran.
22033
22034 2010-02-20  David S. Miller  <davem@davemloft.net>
22035
22036         * configure.ac: Test if linker and assembler properly support
22037         GOTDATA_OP relocations.
22038         * configure: Rebuild.
22039         * config.in: Likewise.
22040         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
22041         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
22042         (movsi_high_pic): Likewise.
22043         (movdi_lo_sum_pic): Likewise.
22044         (movdi_high_pic): Likewise.
22045         (movsi_pic_gotdata_op): New pattern.
22046         (movdi_pic_gotdata_op): Likewise.
22047         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
22048         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
22049
22050 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
22051
22052         PR target/43067
22053         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
22054         attribute to ssemul.
22055         (xop_mulv2div2di3_high): Ditto.
22056
22057 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22058
22059         PR c++/35669
22060         * c.opt (Wconversion-null): New option.
22061         * doc/invoke.texi (Wconversion-null): Document.
22062
22063 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22064
22065         * common.opt (Wlarger-than-): Add Undocumented.
22066
22067 2010-02-19  Mike Stump  <mikestump@comcast.net>
22068
22069         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
22070
22071 2010-02-19  Jason Merrill  <jason@redhat.com>
22072
22073         PR target/40332
22074         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
22075         * configure: Likewise.
22076
22077 2010-02-20  Alan Modra  <amodra@gmail.com>
22078
22079         PR middle-end/42344
22080         * cgraph.h (cgraph_make_decl_local): Declare.
22081         * cgraph.c (cgraph_make_decl_local): New function.
22082         (cgraph_make_node_local): Use it.
22083         * cgraphunit.c (cgraph_function_versioning): Likewise.
22084         * ipa.c (function_and_variable_visibility): Likewise.
22085
22086 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22087
22088         PR bootstrap/43121
22089         * except.c (sjlj_emit_function_enter): Don't call
22090         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
22091         directly.
22092         * rtl.h (add_reg_br_prob_note): Remove prototype.
22093
22094 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22095
22096         PR 41779
22097         * c-common.c (conversion_warning): Remove widening conversions
22098         before checking the conversion of integers to reals.
22099
22100 2010-02-19  Mike Stump  <mikestump@comcast.net>
22101
22102         PR middle-end/43125
22103         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
22104
22105         PR objc/43061
22106         * cgraphunit.c (process_function_and_variable_attributes): Check
22107         DECL_PRESERVE_P instead of looking up attribute "used".
22108         * ipa-pure-const.c (check_decl): Likewise.
22109         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
22110         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
22111         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
22112         instead of attribute "used".
22113         * config/sol2-c.c (solaris_pragma_init): Likewise.
22114         (solaris_pragma_fini): Likewise.
22115
22116 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22117
22118         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
22119         Use XCNEW instead of xcalloc.
22120         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
22121         XNEW instead of xmalloc.
22122         (get_fields): Use XNEWVEC instead of xmalloc.
22123
22124         PR debug/43084
22125         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
22126         populate vars array.
22127         (create_new_general_access): For debug stmts just reset value.
22128         (get_stmt_accesses): For accesses within debug stmts just record them
22129         using add_access_to_acc_sites instead of preventing the peeling or
22130         counting them as accesses.
22131
22132         PR middle-end/42233
22133         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
22134
22135 2010-02-19  Richard Guenther  <rguenther@suse.de>
22136
22137         PR tree-optimization/42916
22138         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
22139         instructions.
22140
22141 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
22142
22143         * configure.ac: Replace all uses of changequote in macro arguments
22144         with proper quoting.
22145
22146 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22147
22148         PR middle-end/42233
22149         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
22150
22151 2010-02-19  Richard Guenther  <rguenther@suse.de>
22152
22153         PR tree-optimization/42944
22154         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
22155         test for aliasing with errno.
22156
22157 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
22158
22159         PR middle-end/42233
22160         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
22161         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
22162         * dojump.c: Include output.h.
22163         (inv): New inline function.
22164         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
22165         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
22166         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
22167         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
22168         argument, pass it down to other calls.
22169         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
22170         add REG_BR_PROB note to the conditional jump.
22171         * cfgexpand.c (add_reg_br_prob_note): Removed.
22172         (expand_gimple_cond): Don't call it, add the probability
22173         as last argument to jumpif_1/jumpifnot_1.
22174         * Makefile.in (dojump.o): Depend on output.h.
22175         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
22176         callers.
22177         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
22178         * stmt.c (do_jump_if_equal): Likewise.
22179         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
22180         * loop-unswitch.c (compare_and_jump_seq): Likewise.
22181         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
22182         Likewise.
22183         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
22184         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
22185         jumpifnot_1 callers.
22186         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
22187         callers.
22188         (store_expr): Adjust jumpifnot caller.
22189         (store_constructor): Adjust jumpif caller.
22190
22191         PR middle-end/42233
22192         * gimplify.c (gimple_boolify): For __builtin_expect call
22193         gimple_boolify also on its first argument.
22194
22195 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
22196
22197         * configure.ac (gnu-unique-object): Wrap regexps using [] in
22198         changequote block.
22199         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
22200         * configure: Regenerated.
22201
22202 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22203
22204         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
22205         lang_hooks.types_compatible_p instead of comptypes.
22206
22207 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22208
22209         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
22210         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
22211         if __prefer_thumb__ is defined.
22212
22213 2010-02-18  Martin Jambor  <mjambor@suse.cz>
22214
22215         PR tree-optimization/43066
22216         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
22217         array with zero-sized element type.
22218
22219 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
22220
22221         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
22222         rtx, allocate struct var_loc_node here and return it to the
22223         caller, and only if it is actually needed.
22224         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
22225         move it earlier and return immediately if it returns NULL.
22226
22227 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
22228
22229         * config/sparc/gas.h: New file.  Restore
22230         TARGET_ASM_NAMED_SECTION to its ELF default.
22231         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
22232         check !HAVE_GNU_AS.
22233         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22234         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
22235         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
22236         after sparc/sysv4.h.
22237
22238 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
22239
22240         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
22241
22242 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
22243
22244         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
22245         patterns from predicated pattern.
22246
22247 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
22248
22249         PR target/43103
22250         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
22251         for insn mnemonic suffix.
22252
22253 2010-02-17  Richard Guenther  <rguenther@suse.de>
22254
22255         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
22256         to loop PHI nodes.
22257
22258 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
22259
22260         PR debug/42918
22261         * caller-save.c (save_call_clobbered_regs): If BB ends with
22262         a DEBUG_INSN, move any notes in between last real insn and the last
22263         DEBUG_INSN after the last DEBUG_INSN.
22264
22265 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
22266
22267         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
22268         Fix return type.  Fix argument type.  Explain meaning of return value.
22269
22270 2010-02-16  Richard Guenther  <rguenther@suse.de>
22271
22272         PR tree-optimization/41043
22273         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
22274         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
22275         statements ...
22276         (vrp_visit_phi_node): ... but only for loop PHI nodes.
22277
22278 2010-02-16  Ira Rosen  <irar@il.ibm.com>
22279
22280         PR tree-optimization/43074
22281         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
22282         * tree-vect-loop.c (vect_analyze_loop_operations): Add
22283         vectorizable cycles in hybrid SLP check.
22284         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
22285
22286 2010-02-16  Richard Guenther  <rguenther@suse.de>
22287
22288         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
22289         (true_dependence): If memrefs_conflict_p computes must-alias
22290         trust it.  Move TBAA check after offset-based disambiguation.
22291         (canon_true_dependence): Likewise.
22292
22293 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
22294
22295         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
22296         * doc/invoke.texi: Document it.
22297         * var-tracking.c: Include toplev.h and params.h.
22298         (vt_find_locations): Return bool indicating success.  Compute
22299         hash sizes unconditionally.  Check new parameter, report.
22300         (variable_tracking_main_1): Check vt_find_locations results and
22301         retry.  Renamed from...
22302         (variable_tracking_main): ... this.  New wrapper to preserve
22303         flag_var_tracking_assignments.
22304         * Makefile.in (var-tracking.o): Adjust dependencies.
22305
22306 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
22307             Jakub Jelinek  <jakub@redhat.com>
22308
22309         PR target/42854
22310         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
22311         if weak_import attribute is present.
22312         * config/darwin.c (machopic_select_section): Likewise.
22313
22314 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
22315
22316         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
22317         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
22318         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
22319         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
22320
22321         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
22322         types.
22323
22324         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22325         Fix argument types.
22326
22327         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
22328         Rewrite text to refer to the names.
22329
22330 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
22331
22332         * config/i386/i386-builtin-types.def
22333         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
22334         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
22335         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
22336         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
22337         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
22338         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
22339         IX86_BUILTIN_VPERMIL2PS256.
22340         (MULTI_ARG_4_DF2_DI_I): Defined.
22341         (MULTI_ARG_4_DF2_DI_I1): Defined.
22342         (MULTI_ARG_4_SF2_SI_I): Defined.
22343         (MULTI_ARG_4_SF2_SI_I1): Defined.
22344         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
22345         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
22346         __builtin_ia32_vpermil2ps256.
22347         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22348         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22349         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
22350         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22351         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22352         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
22353         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
22354         CODE_FOR_xop_vpermil2v8sf3.
22355         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
22356         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
22357         * config/i386/xopintrin.h (_mm_permute2_pd): New.
22358         (_mm256_permute2_pd): New.
22359         (_mm_permute2_ps): New.
22360         (_mm256_permute2_ps): New.
22361
22362 2010-02-15  Nick Clifton  <nickc@redhat.com>
22363
22364         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
22365         boolean parameters.  Use emit_jump_insn when emitting a pop
22366         instruction containing a return insn.
22367         (push): Use 'true' rather than '1' as second parameter to F.
22368         (h8300_expand_prologue): Likewise.
22369         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
22370         (h8300_expand_epilogue): Likewise.
22371
22372 2010-02-15  Richard Guenther  <rguenther@suse.de>
22373
22374         PR middle-end/43068
22375         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
22376         if that is zero.
22377
22378 2010-02-15  Nick Clifton  <nickc@redhat.com>
22379
22380         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
22381         delta.
22382
22383 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
22384
22385         * intl.c (fake_ngettext): New function.
22386         * intl.h (fake_ngettext): Declare.
22387         (ngettext): Define macro.
22388         * collect2.c (notice_translated): New function.
22389         (main): Use notice_translated and ngettext.
22390         * collect2.h (notice_translated): Declare.
22391
22392 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
22393
22394         * reorg.c (delete_computation): Comment fixes.
22395         * caller-save.c (setup_save_areas): Idem.
22396         * sel-sched-dump.c (dump_lv_set): Idem.
22397         * rtl.def: Idem.
22398
22399 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22400
22401         * config/s390/s390.c (s390_sched_init): New function.
22402         (TARGET_SCHED_INIT): Target hook defined.
22403
22404 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
22405             Jack Howarth  <howarth@bromo.med.uc.edu>
22406             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
22407
22408         PR target/42982
22409         Partial revert of unintended change in fix for PR41605.
22410         * config/darwin.h: Fix typo.
22411         * config/darwin9.h: Same.
22412
22413 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22414
22415         * c-pch.c (pch_init): Clear v.
22416
22417 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22418
22419         PR middle-end/42930
22420         * graphite-scop-detection.c (graphite_can_represent_scev): Call
22421         graphite_can_represent_init for MULT_EXPR.
22422
22423 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22424
22425         PR middle-end/42914
22426         PR middle-end/42530
22427         * graphite-sese-to-poly.c (remove_phi): New.
22428         (translate_scalar_reduction_to_array): Call remove_phi.
22429
22430 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22431
22432         PR middle-end/42771
22433         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
22434         * graphite-clast-to-gimple.h (gloog): Update declaration.
22435         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
22436         * graphite-poly.h (struct poly_bb): Add missing comments.
22437         (struct scop): Add poly_scop_p field.
22438         (POLY_SCOP_P): New.
22439         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
22440         * graphite.c (graphite_transform_loops): Build the polyhedral
22441         representation for each scop before code generation.
22442         * sese.c (rename_variables_in_operand): Removed.
22443         (rename_variables_in_expr): Return the renamed expression.
22444         (rename_sese_parameters): New.
22445         * sese.h (rename_sese_parameters): Declared.
22446
22447 2010-02-11  Richard Guenther  <rguenther@suse.de>
22448
22449         PR tree-optimization/42998
22450         * tree-ssa-pre.c (create_expression_by_pieces): Treat
22451         POINTER_PLUS_EXPR properly.
22452
22453 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22454             Changpeng Fang  <changpeng.fang@amd.com>
22455
22456         PR middle-end/40886
22457         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
22458         the cost of an IV candidate when the IV is used in a test against zero.
22459
22460         * gcc.dg/tree-ssa/ivopts-3.c: New.
22461
22462 2010-02-11  Richard Guenther  <rguenther@suse.de>
22463
22464         PR lto/41664
22465         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
22466         pointer-vs-decl case by swapping refs.  Handle some cases
22467         of pointer-vs-decl disambiguations more conservatively.
22468         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
22469         to false after expanding.
22470
22471 2010-02-11  Richard Guenther  <rguenther@suse.de>
22472
22473         PR driver/43021
22474         * gcc.c (process_command): Handle LTO file@offset case more
22475         appropriately.
22476
22477 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22478
22479         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
22480         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
22481         of DEBUG_INSNs.
22482         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
22483
22484         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
22485         if MEM's mode size isn't DWARF2_ADDR_SIZE.
22486         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
22487         Optimize eq/ne comparisons when both arguments are known to be
22488         zero-extended.
22489         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
22490         Don't mask operands unnecessarily if they are known to be already
22491         zero-extended.
22492
22493 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22494
22495         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
22496         instead of loop.
22497
22498 2010-02-10  Richard Guenther  <rguenther@suse.de>
22499
22500         PR tree-optimization/43017
22501         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
22502         for wrapping signed arithmetic.
22503
22504 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22505
22506         PR debug/43010
22507         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
22508         if no debug info should be emitted for it.
22509
22510 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22511
22512         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
22513         note when flag_exceptions is set.
22514
22515 2010-02-10  Duncan Sands  <baldrick@free.fr>
22516
22517         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
22518
22519 2010-02-10  Richard Guenther  <rguenther@suse.de>
22520
22521         PR c/43007
22522         * tree.c (get_unwidened): Handle constants.
22523         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
22524
22525 2010-02-10  Martin Jambor  <mjambor@suse.cz>
22526
22527         PR lto/42985
22528         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
22529         check for variable argument counts independently.
22530
22531 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22532
22533         PR target/42841
22534         * config/sh/sh.c (find_barrier): Increase length for non delayed
22535         conditional branches.
22536
22537 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22538
22539         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
22540
22541 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22542
22543         * builtins.c (set_builtin_user_assembler_name): Also handle
22544         ffs if int is smaller than word.
22545
22546 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
22547
22548         PR middle-end/42973
22549         * ira-conflicts.c (get_dup): Remove.
22550         (process_reg_shuffles): Add new parameter.  Use it as an
22551         additional guard for copy generation.
22552         (add_insn_allocno_copies): Rewrite.
22553
22554 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
22555
22556         * common.opt (fsched2-use-traces): Preserved for backward
22557         compatibility.
22558         * doc/invoke.texi: Remove the documentation about option
22559         -fsched2-use-traces.
22560         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
22561         flag_sched2_use_traces.
22562         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
22563         the backward compatibility flag section.
22564
22565 2010-02-09  Richard Guenther  <rguenther@suse.de>
22566
22567         PR tree-optimization/43008
22568         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
22569         make HEAP variables initialized from global memory if they
22570         are not known builtin functions.
22571         (find_func_aliases): Adjust.
22572
22573 2010-02-09  Richard Guenther  <rguenther@suse.de>
22574
22575         PR tree-optimization/43000
22576         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
22577         arithmetic manually.
22578
22579 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
22580
22581         PR tree-optimization/42931
22582         * tree-loop-linear.c (try_interchange_loops): Don't call
22583         double_int_mul if estimated_loop_iterations failed.
22584
22585 2010-02-08  Martin Jambor  <mjambor@suse.cz>
22586
22587         PR middle-end/42898
22588         * tree-sra.c (build_accesses_from_assign): Do not mark in
22589         should_scalarize_away_bitmap if stmt has volatile ops.
22590         (sra_modify_assign): Do not process assigns piecemeal if if stmt
22591         has volatile ops.
22592
22593 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
22594
22595         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
22596
22597 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
22598
22599         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
22600         before the pattern.
22601
22602 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
22603
22604         PR middle-end/42946
22605         * df-core.c (df_finish_pass): Change type of saved_flags to int.
22606
22607 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22608
22609         PR middle-end/42988
22610         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
22611         to unknown_dependence.
22612         (graphite_legal_transform_dr): Handle the unknown_dependence.
22613         (graphite_carried_dependence_level_k): Same.
22614
22615 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22616
22617         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
22618
22619 2010-02-07  Richard Guenther  <rguenther@suse.de>
22620
22621         PR middle-end/42991
22622         * expr.c (get_inner_reference): Always initialize *pbitsize.
22623
22624 2010-02-07  Richard Guenther  <rguenther@suse.de>
22625
22626         PR middle-end/42956
22627         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22628         new ARRAY_REFs on variable size element or minimal index arrays.
22629         Complete.
22630         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22631         gimple_fold_indirect_ref.
22632
22633 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
22634
22635         PR target/42957
22636         * arm.c (arm_override_options): Just return if the user has specified
22637         an invalid fpu name.
22638
22639 2010-02-03  Jason Merrill  <jason@redhat.com>
22640
22641         PR c++/42870
22642         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22643         i386_pe_maybe_record_exported_symbol.
22644
22645 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
22646
22647         PR target/42924
22648         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22649         (pa_delegitimize_address): New function.
22650
22651 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
22652
22653         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22654         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22655
22656 2010-02-05  Richard Guenther  <rguenther@suse.de>
22657
22658         PR lto/42762
22659         * lto-streamer-in.c (get_resolution): Deal with references
22660         to undefined functions.
22661
22662 2010-02-05  Richard Guenther  <rguenther@suse.de>
22663
22664         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22665         (fold_const_aggregate_ref): Likewise.
22666         (ccp_fold_stmt): Substitute loads.
22667         (maybe_fold_reference): Verify types before substituting.
22668         Unshare properly.
22669         (fold_gimple_assign): Unshare properly.
22670         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22671
22672 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
22673
22674         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22675         for rs6000_gen_cell_microcode.
22676
22677 2010-02-04  Richard Guenther  <rguenther@suse.de>
22678
22679         PR rtl-optimization/42952
22680         * dse.c (const_or_frame_p): Remove MEM handling.
22681
22682 2010-02-04  Nick Clifton  <nickc@redhat.com>
22683
22684         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22685         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22686         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22687         (mn10300_asm_output_mi_thunk): New function.
22688         (mn10300_can_output_mu_thunk): New function.
22689         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22690         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
22691         (FUNCTION_ARG): Delete incorrect comment.
22692
22693 2010-02-03  Jason Merrill  <jason@redhat.com>
22694
22695         PR c++/40138
22696         * fold-const.c (operand_equal_p): Handle erroneous types.
22697
22698 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22699
22700         * config/h8300/h8300.md (can_delay): Fix attibute condition.
22701
22702 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22703
22704         PR rtl-optimization/42941
22705         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22706         of xmalloc.
22707
22708 2010-02-03  Jason Merrill  <jason@redhat.com>
22709
22710         PR c++/35652
22711         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22712
22713 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
22714
22715         PR debug/42896
22716         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
22717         (cselib_reset_table): Renamed from...
22718         (cselib_reset_table_with_next_value): ... this.
22719         (cselib_get_next_uid): Renamed from...
22720         (cselib_get_next_unknown_value): ... this.
22721         * cselib.c (next_uid): Renamed from...
22722         (next_unknown_value): ... this.
22723         (cselib_clear_table): Adjust.
22724         (cselib_reset_table): Adjust.  Renamed from...
22725         (cselib_reset_table_with_next_value): ... this.
22726         (cselib_get_next_uid): Adjust.  Renamed from...
22727         (cselib_get_next_unknown_value): ... this.
22728         (get_value_hash): Use hash.
22729         (cselib_hash_rtx): Likewise.
22730         (new_cselib_val): Adjust.  Set and dump uid.
22731         (cselib_lookup_mem): Pass next_uid as hash.
22732         (cselib_subst_to_values): Likewise.
22733         (cselib_log_lookup): Dump uid.
22734         (cselib_lookup): Pass next_uid as hash.  Adjust.
22735         (cselib_process_insn): Adjust.
22736         (cselib_init): Initialize next_uid.
22737         (cselib_finish): Adjust.
22738         (dump_cselib_table): Likewise.
22739         * dse.c (canon_address): Dump value uid.
22740         * print-rtl.c (print_rtx): Print value uid.
22741         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22742         (dvuid): New type.
22743         (dv_uid): New function, sort of renamed from...
22744         (dv_htab_hash): ... this, reimplemented in terms of it and...
22745         (dv_uid2hash): ... this.  New.
22746         (variable_htab_eq): Drop excess assertions.
22747         (tie_break_pointers): Removed.
22748         (canon_value_cmp): Compare uids.
22749         (variable_post_merge_New_vals): Print uids.
22750         (vt_add_function_parameters): Adjust.
22751         (vt_initialize): Reset table.  Adjust.
22752
22753 2010-02-03  Richard Guenther  <rguenther@suse.de>
22754
22755         PR tree-optimization/42944
22756         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22757         (call_may_clobber_ref_p_1): Likewise.  Properly handle
22758         malloc and calloc clobbering errno.
22759
22760 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
22761
22762         * doc/invoke.texi: Fix name of sched1 dump.
22763
22764         * opts.c (decode_options): Set flag_tree_switch_conversion
22765         only conditionally on optimize >= 2.
22766
22767         * gcse.c: Assorted comment fixes in pass description.
22768
22769 2010-02-03  Anthony Green  <green@moxielogic.com>
22770
22771         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22772         nop padding in order to maintain alignment of storage location of
22773         target function address.
22774         (moxie_trampoline_init): Store target function address at newly
22775         aligned location.
22776         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22777         to 32.
22778         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22779
22780 2010-02-03  Richard Guenther  <rguenther@suse.de>
22781
22782         PR middle-end/42927
22783         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22784
22785 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22786
22787         * config.gcc: Reenable check for obsolete targets.
22788         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22789         mips-sgi-irix6.[0-4]*.
22790
22791 2010-02-02  Nick Clifton  <nickc@redhat.com>
22792
22793         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22794         constant size of 4 as being the same as 0.
22795         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22796         can take values in the range 0..4.
22797
22798 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22799
22800         PR java/41991
22801         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22802         as _darwin10_Unwind_FindEnclosingFunction().
22803         * libgcc-libsystem.ver: New.
22804
22805 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22806
22807         PR target/41399
22808         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22809         implicitly set registers.
22810
22811 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22812
22813         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22814         (arm_override_options): Allow automatic selection of the thread
22815         pointer register if thumb2.
22816         (legitimize_pic_address): Improve code sequences for Thumb2.
22817         (arm_call_tls_get_addr): Likewise.
22818         (legitimize_tls_address): Likewise.
22819         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22820         (pic_load_addr_32bit): ... this.  New named pattern.
22821         * thumb2.md (pic_load_addr_thumb2): Delete.
22822         (pic_load_dot_plus_four): Delete.
22823         (tls_load_dot_plus_four): New named pattern.
22824
22825 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22826
22827         PR libgomp/29986
22828         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22829         Document fix for TLS bug.
22830
22831 2010-01-31  Richard Guenther  <rguenther@suse.de>
22832
22833         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22834         conservatively correct.
22835
22836 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22837
22838         PR target/42850
22839         Revert:
22840         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22841
22842         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22843
22844 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22845
22846         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22847
22848 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22849
22850         * config.gcc: Adjust order of makefile fragments for mingw targets.
22851
22852 2010-01-31  Richard Guenther  <rguenther@suse.de>
22853
22854         PR middle-end/42898
22855         * gimplify.c (gimplify_init_constructor): For volatile LHS
22856         initialize a temporary.
22857
22858 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22859
22860         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22861         --with-headers
22862         * configure: Regenerate.
22863
22864 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22865
22866         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22867         the same alias set and their sizes different constantness.
22868         (aliasing_component_refs_p): Revert 2009-10-24 change.
22869
22870 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22871
22872         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22873         unused.
22874
22875 2010-01-29  Richard Guenther  <rguenther@suse.de>
22876
22877         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22878         Assert we successfully updated the call.
22879
22880 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22881
22882         PR rtl-optimization/42889
22883         * df.h (df_set_bb_dirty_nonlr): New prototype.
22884         * df-core.c (df_set_bb_dirty_nonlr): New function.
22885         * df-scan.c (df_insn_rescan): Call it instead of
22886         df_set_bb_dirty for DEBUG_INSNs.
22887
22888 2010-01-29  Richard Guenther  <rguenther@suse.de>
22889
22890         PR middle-end/37448
22891         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22892         quadratic behavior in most cases.
22893
22894 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22895
22896         PR target/42891
22897         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22898         in the call to gen_x86_movsicc_0_m1.
22899
22900 2010-01-28  Richard Guenther  <rguenther@suse.de>
22901
22902         PR tree-optimization/42871
22903         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22904
22905 2010-01-28  Richard Guenther  <rguenther@suse.de>
22906
22907         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22908         into call arguments.
22909
22910 2010-01-28  Richard Guenther  <rguenther@suse.de>
22911
22912         PR middle-end/42883
22913         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22914         the forwarder if the destination is an EH landing pad.
22915
22916 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22917
22918         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22919         block list passed to gimple_duplicate_sese_tail.
22920         (parallelize_loops): Avoid parallelization when the function
22921         has_nonlocal_label.
22922         Avoid parallelization when the preheader is IRREDUCIBLE.
22923         Try to optimize when estimated_loop_iterations_int is unresolved.
22924         Add the loop's location to the dump file.
22925         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22926         (gimple_duplicate_sese_tail): Remove the check for the latch.
22927         Redirect nexits to the exit block.
22928         Remove handling of the incoming edges to the latch.
22929         Redirect the backedge from the copied latch to the exit bb.
22930
22931 2010-01-28  Michael Matz  <matz@suse.de>
22932
22933         PR target/42881
22934         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22935         Wrap force_reg into a sequence, emit it before user.
22936
22937 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22938
22939         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22940         (arm_rev): New.
22941         (arm_legacy_rev): Likewise.
22942         (thumb_legacy_rev): Likewise.
22943
22944 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22945
22946         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22947         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22948         on MEM's address failed, try avoid_constant_pool_reference and
22949         recurse if it returned something different.
22950         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22951         address, try avoid_constant_pool_reference and recurse if it
22952         returned something different.
22953         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22954         address and avoid_constant_pool_reference returned something
22955         different, don't set have_address.
22956
22957 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22958
22959         PR debug/42861
22960         * var-tracking.c (val_store): Add modified argument, obey it.
22961         Adjust callers.
22962         (count_uses): Move down logging of main.
22963         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22964         don't need resolution.
22965         (emit_notes_in_bb): Likewise.
22966
22967 2010-01-27  Richard Guenther  <rguenther@suse.de>
22968
22969         PR middle-end/42878
22970         * tree-inline.c (remap_decl): Delay remapping of SSA name
22971         default definitions until we need them.
22972
22973 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22974
22975         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22976         (rs6000_delegitimize_address): New function.
22977
22978         * config/s390/s390.c (s390_delegitimize_address): Call
22979         delegitimize_mem_from_attrs.
22980
22981         PR middle-end/42874
22982         * tree-inline.c (cannot_copy_type_1): Removed.
22983         (copy_forbidden): Don't forbid copying of functions containing
22984         records/unions with variable length fields.
22985
22986 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22987
22988         Revert:
22989         PR target/42841
22990         * config/sh/sh.c (find_barrier): Increase length for non delayed
22991         conditional branches.
22992
22993 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22994
22995         * configure.ac (gnu-unique-object): Fix ldd version check.
22996         * configure: Regenerate.
22997
22998 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22999
23000         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
23001         HAVE_GNU_AS value.
23002         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
23003         Test for HAVE_GNU_AS value.
23004
23005 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23006
23007         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
23008         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
23009         INT64_TYPE): Define.
23010         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
23011         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23012         INT_LEAST64_TYPE): Define.
23013         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
23014         UINT_LEAST64_TYPE): Define.
23015         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
23016         INT_FAST64_TYPE): Define.
23017         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23018         UINT_FAST64_TYPE): Define.
23019         (INTMAX_TYPE, UINTMAX_TYPE): Define.
23020         (INTPTR_TYPE, UINTPTR_TYPE): Define.
23021         (SIG_ATOMIC_TYPE): Define.
23022
23023 2010-01-26  Richard Guenther  <rguenther@suse.de>
23024
23025         * df-scan.c (df_scan_set_bb_info): Remove assert.
23026         (df_insn_rescan_debug_internal): Merge asserts.
23027         (df_install_ref): Likewise.
23028         (df_mark_reg): Use bitmap_set_range.
23029         (df_hard_reg_used_p): Remove assert.
23030         (df_hard_reg_used_count): Likewise.
23031
23032 2010-01-26  Richard Guenther  <rguenther@suse.de>
23033
23034         PR rtl-optimization/42685
23035         * web.c (web_main): Ignore DEBUG_INSNs.
23036
23037 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
23038
23039         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
23040
23041         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
23042         Fix types of fndecl and arglist parameters.
23043
23044 2010-01-26  Richard Guenther  <rguenther@suse.de>
23045
23046         PR middle-end/42806
23047         * tree-eh.c (unsplit_eh): Skip debug insns.
23048
23049 2010-01-26  Richard Guenther  <rguenther@suse.de>
23050
23051         PR tree-optimization/42250
23052         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
23053
23054 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
23055
23056         PR fortran/42866
23057         * omp-low.c (expand_omp_sections): Only use single_pred if
23058         l2_bb is single_pred_p.
23059
23060 2010-01-25  Christian Bruel  <christian.bruel@st.com>
23061
23062         PR target/42841
23063         * config/sh/sh.c (find_barrier): Increase length for non delayed
23064         conditional branches.
23065         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
23066
23067 2010-01-24  David S. Miller  <davem@davemloft.net>
23068
23069         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
23070         define if not using GAS.
23071         * config/sparc/sparc.c (sparc_elf_asm_named_section):
23072         Likewise.  Delete SECTION_MERGE code, which is only applicable
23073         when using GAS.
23074
23075 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
23076
23077         PR c++/42748
23078         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
23079         mangling of va_list in system headers.
23080
23081 2010-01-23  Toon Moene  <toon@moene.org>
23082
23083         * tree-predcom.c (combine_chains): Return NULL, not false.
23084
23085 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
23086
23087         * tree-loop-distribution.c (distribute_loop): Fix declaration and
23088         initialization of variable res to agree with return type.
23089
23090 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
23091
23092         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
23093         * tree-sra.c: Add include of expr.h.
23094
23095 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
23096
23097         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
23098         insert the debug stmt on the single non-EH edge from the stmt.
23099
23100 2010-01-22  Richard Henderson  <rth@redhat.com>
23101
23102         PR tree-opt/42833
23103         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
23104         the RHS until after generate_subtree_copies has insertted its
23105         code before the current statement.
23106
23107 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
23108
23109         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
23110
23111         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
23112
23113 2010-01-21  Martin Jambor  <mjambor@suse.cz>
23114
23115         PR tree-optimization/42585
23116         * tree-sra.c (struct access): New field grp_total_scalarization.
23117         (dump_access): Dump the new field.
23118         (should_scalarize_away_bitmap): New variable.
23119         (cannot_scalarize_away_bitmap): Likewise.
23120         (sra_initialize): Allocate new bitmaps.
23121         (sra_deinitialize): Free new bitmaps.
23122         (create_access_1): New function.
23123         (create_access): Parts moved to create_access_1.
23124         (type_consists_of_records_p): New function.
23125         (completely_scalarize_record): Likewise.
23126         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
23127         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
23128         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
23129         access.
23130         (analyze_all_variable_accesses): Completely scalarize small eligible
23131         records.
23132
23133 2010-01-21  Martin Jambor  <mjambor@suse.cz>
23134
23135         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
23136
23137 2010-01-21  Andrew Haley  <aph@redhat.com>
23138
23139         * gcc.c (process_command): Move lang_specific_driver before
23140         setting cc_libexec_prefix.
23141
23142 2010-01-21  Richard Guenther  <rguenther@suse.de>
23143
23144         PR middle-end/19988
23145         * fold-const.c (negate_expr_p): Pretend only negative
23146         real constants are easily negatable.
23147
23148 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
23149             Jason Merrill  <jason@redhat.com>
23150
23151         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
23152         (TYPE_TRANSPARENT_AGGR): this, for union and record.
23153         * calls.c (initialize argument_information): Handle it.
23154         * c-common.c (handle_transparent_union_attribute): Use new name.
23155         * c-decl.c (finish_struct): Ditto.
23156         * c-typeck.c (type_lists_compatible_p): Ditto.
23157         (convert_for_assignment): Use new name and also handle record.
23158         * function.c (aggregate_value_p): Handle it.
23159         (pass_by_reference): Ditto.
23160         (assign_parm_data_types): Ditto.
23161         * print-tree.c (print_node): Ditto.
23162         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
23163         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
23164         * tree.c (first_field): New fn.
23165
23166 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
23167
23168         PR target/42818
23169         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
23170         even when linking statically, for now.
23171
23172 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
23173
23174         PR debug/42715
23175         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
23176         without a cselib val.
23177         (count_uses): Accept MO_VAL_SET with no val on stores.
23178         (add_stores): Likewise.
23179
23180 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23181
23182         * var-tracking.c (check_value_val): Add a compile time assertion.
23183         (dv_is_decl_p): Simplify.
23184         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
23185         gcc_assert if ENABLE_CHECKING.
23186
23187 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
23188
23189         PR debug/42782
23190         * var-tracking.c: Include tree-flow.h.
23191         (mem_dies_at_call): New.
23192         (dataflow_set_preserve_mem_locs): Use it.
23193         (dataflow_set_remove_mem_locs): Likewise.
23194         (dump_var): Renamed from dump_variable.  Adjust all callers.
23195         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
23196         * Makefile.in (var-tracking.o): Adjust deps.
23197
23198 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
23199
23200         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
23201
23202 2010-01-20  Richard Guenther  <rguenther@suse.de>
23203
23204         PR tree-optimization/42717
23205         * tree-ssa-dce.c (get_live_post_dom): Remove.
23206         (forward_edge_to_pdom): Take an arbitrary edge to copy
23207         degenerate PHI args from.
23208         (remove_dead_stmt): Use the first post-dominator even if it
23209         does not contain live statements as redirection destination.
23210
23211 2010-01-20  Richard Guenther  <rguenther@suse.de>
23212
23213         * tree-inline.c (estimate_num_insns): Handle EH builtins.
23214
23215 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23216
23217         * sel-sched.c (create_speculation_check): Remove set but not used
23218         variable twin.
23219         (try_transformation_cache): Remove set but not used variable ds.
23220         (calculate_privileged_insns): Remove set but not used variables
23221         cur_insn and min_spec_insn.
23222         (find_best_expr): Remove set but not used variable avail_n.
23223         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
23224         variable e.
23225         * cgraphunit.c (assemble_thunk): Remove set but not used variable
23226         false_label.
23227         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
23228         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
23229         new_scop_exit_edge.
23230
23231 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
23232
23233         PR bootstrap/42786
23234         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
23235         cpu types.  Add support for *-sse3 cpu types.
23236         (x86_64-*-*): Ditto.
23237
23238 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23239
23240         PR middle-end/42803
23241         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
23242         argument, call initializer_constant_valid_p_1 instead of
23243         initializer_constant_valid_p, pass CACHE to it, return NULL
23244         immediately if first call returns NULL.
23245         (initializer_constant_valid_p_1): New function.
23246         (initializer_constant_valid_p): Use it.
23247
23248 2010-01-20  Thomas Quinot  <quinot@adacore.com>
23249
23250         * tree.def (PLACEHOLDER_EXPR): Fix comment.
23251
23252 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
23253
23254         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
23255         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
23256         (loc_list_from_tree): Don't handle unsigned division.  Handle
23257         signed modulo using DW_OP_{over,over,div,mul,minus}.
23258         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
23259         modulo instead of signed.
23260
23261 2010-01-20  DJ Delorie  <dj@redhat.com>
23262
23263         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
23264         (Fpa): Pass it
23265         (h8300_emit_stack_adjustment): Propogate it.
23266         (push): Pass it.
23267         (h8300_expand_prologue): Likewise.
23268         (h8300_expand_epilogue): Likewise.
23269
23270 2010-01-19  Michael Matz  <matz@suse.de>
23271
23272         PR tree-optimization/41783
23273         * tree-data-ref.c (toplevel): Include flags.h.
23274         (dump_data_dependence_relation):  Also dump the inputs if the
23275         result will be unknown.
23276         (split_constant_offset_1): Look through some conversions.
23277         * tree-predcom.c (determine_roots_comp): Restart a new chain if
23278         the offset from last element is too large.
23279         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
23280         (reassociate_to_the_same_stmt): Handle vector registers.
23281         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
23282         (e.g. conversions).
23283         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
23284         wide_prolog_niters argument, emit widening instructions.
23285         (vect_do_peeling_for_alignment): Adjust caller, use widened
23286         variant of the iteration cound.
23287         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
23288
23289 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23290
23291         PR target/38697
23292         * config/arm/neon-testgen.m (emit_automatics): New parameter
23293         features. Adjust for Fixed_return_reg feature.
23294         (test_intrinsic): Call emit_automatics with new feature.
23295         * config/arm/neon.ml: Update copyright years.
23296         (features): New Fixed_return_reg feature.
23297         (ops): Update feature for Vget_low.
23298
23299 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
23300
23301         PR tree-optimization/42719
23302         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
23303         stmt uses.
23304
23305         PR debug/42728
23306         * fwprop.c (all_uses_available_at): Return false if def_set dest
23307         is a REG that is used in def_insn.
23308
23309 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
23310
23311         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
23312
23313         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
23314         Add argument names.
23315
23316         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
23317
23318         * target.h (struct gcc_target) <secondary_reload>: Change type
23319         of last argument to secondary_reload_info *.
23320
23321 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
23322
23323         PR target/42774
23324         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
23325         memory references with unaligned offsets.  Remove CQImode handling.
23326         (unaligned_memory_operand): Return 1 for memory references with
23327         unaligned offsets.  Remove CQImode handling.
23328
23329 2010-01-18  Richard Guenther  <rguenther@suse.de>
23330
23331         PR middle-end/39954
23332         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
23333         builtin calls.
23334
23335 2010-01-18  Richard Guenther  <rguenther@suse.de>
23336
23337         PR tree-optimization/42781
23338         * tree-ssa-structalias.c (find_what_var_points_to): Skip
23339         restrict processing only if the original variable was artificial.
23340
23341 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
23342
23343         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
23344         find number of popped argument bytes.
23345
23346         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
23347         Fix the text that describes the return value for invalid insns.
23348
23349         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
23350
23351         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
23352         Clarify what 'cost of the -dependence' is.  Fix quoting.
23353
23354         * toplev.c (default_get_pch_validity): Rename argument to "sz".
23355         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
23356
23357 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
23358
23359         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
23360         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
23361
23362 2010-01-17  Richard Guenther  <rguenther@suse.de>
23363
23364         PR middle-end/42248
23365         * function.c (split_complex_args): Take a VEC to modify.
23366         (assign_parms_augmented_arg_list): Build a VEC instead of
23367         a chain of PARM_DECLs.
23368         (assign_parms_unsplit_complex): Take a VEC of arguments.
23369         Do not fixup unmodified parms.
23370         (assign_parms): Deal with the VEC.
23371         (gimplify_parameters): Likewise.
23372
23373 2010-01-17  Richard Guenther  <rguenther@suse.de>
23374
23375         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
23376         node existence check.
23377         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
23378         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
23379         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
23380         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
23381         (gimple_execute_on_growing_pred): Likewise.
23382
23383 2010-01-17  Richard Guenther  <rguenther@suse.de>
23384
23385         PR tree-optimization/42773
23386         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
23387         (compute_antic_aux): Likewise.
23388         (compute_partial_antic_aux): Likewise.
23389
23390 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
23391
23392         PR debug/42767
23393         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
23394         and US_TRUNCATE.
23395
23396 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
23397
23398         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
23399         appearance.
23400
23401         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
23402         Fix markup for strict argument.
23403
23404         (TARGET_SCHED_REORDER2): Fix argument types.
23405
23406         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
23407         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
23408
23409         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
23410         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
23411
23412         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
23413         Add argument name.
23414
23415         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
23416         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
23417         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
23418         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
23419         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
23420
23421         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
23422
23423         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
23424
23425         (TARGET_ASM_RELOC_RW_MASK): Add return type.
23426         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
23427
23428         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
23429
23430         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
23431         Use prototype.
23432
23433         (TARGET_ASM_NAMED_SECTION): Fix argument list.
23434
23435         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
23436         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
23437
23438         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
23439
23440         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
23441
23442         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
23443         referring to it.  Fix language.
23444
23445         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
23446
23447         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
23448
23449         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
23450
23451         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
23452
23453         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
23454         '@var{stream}.  Remove stray 'and'.
23455
23456         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
23457
23458         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
23459
23460         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
23461
23462         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
23463         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
23464
23465         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
23466         Fix description of return value.
23467         Rename argument "sz" to "len."
23468
23469         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
23470         Clarify meaning of 'true' return value.
23471
23472         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
23473
23474         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
23475         rep_mode versus mode_rep.
23476
23477         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
23478
23479         (TARGET_BUILTIN_DECL): Fix name.
23480
23481         (TARGET_COMMUTATIVE_P): Fix type of first argument.
23482
23483         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
23484
23485         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
23486
23487         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
23488
23489         (TARGET_RELAXED_ORDERING): Use @deftypevr.
23490
23491         (TARGET_GET_DRAP_RTX): Note that this is a hook.
23492         Clarify language.
23493
23494         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
23495         Rename argument tm_fn to md_fn.
23496
23497         (TARGET_OPTION_PRINT): Fix argument list.
23498
23499 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
23500
23501         PR target/42664
23502         * config/i386/i386.c (ix86_fixup_binary_operands):
23503         Revert FMA4 fixup of operands.
23504
23505 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23506
23507         PR gcc/42525
23508         * Makefile.in (write_entries_to_file, install-plugin):
23509         Use \012 instead of \n with tr.
23510
23511 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
23512
23513         * configure.ac (HAVE_AS_REF): New C macro.
23514         * configure: Regenerate.
23515         * config.in: Likewise.
23516         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
23517         if HAVE_AS_REF.
23518         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
23519         if HAVE_AS_REF.
23520
23521 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
23522
23523         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
23524
23525         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23526
23527         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
23528
23529         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
23530
23531         (TARGET_IN_SMALL_DATA_P): Fix argument type.
23532
23533         (TARGET_BINDS_LOCAL_P): Fix argument type.
23534
23535         (TARGET_ASM_FILE_END): Use prototype.
23536
23537         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
23538
23539         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
23540
23541         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
23542
23543         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
23544
23545         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
23546         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
23547
23548         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
23549         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
23550
23551         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
23552         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
23553         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
23554         (TARGET_ADDR_SPACE_CONVERT): Likewise.
23555
23556         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
23557
23558         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
23559
23560         (TARGET_INIT_BUILTINS): Use prototype.
23561
23562         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
23563         Put 'const char *' in braces.  Fix parameter types.
23564         (TARGET_INVALID_CONVERSION): Fix parameter types.
23565         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
23566         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
23567
23568         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
23569         Fix argument type.
23570
23571         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
23572
23573         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
23574
23575 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
23576
23577         * doc/tm.texi (TARGET_HELP): Fix return type.
23578
23579         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
23580         in braces.  Fix argument types.
23581
23582         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
23583
23584         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
23585
23586         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
23587
23588         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
23589         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
23590
23591         (TARGET_MANGLE_TYPE): Fix argument types.
23592
23593         (TARGET_IRA_COVER_CLASSES): Use prototype.
23594
23595         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
23596
23597         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
23598
23599         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
23600
23601         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
23602
23603         (TARGET_CALLEE_COPIES): Fix argument types.
23604
23605         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
23606
23607         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
23608
23609         (TARGET_FUNCTION_VALUE): Fix argument types.
23610
23611         (TARGET_RETURN_IN_MSB): Fix argument type.
23612
23613         (TARGET_RETURN_IN_MEMORY): Fix argument types.
23614
23615         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
23616
23617         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
23618
23619         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
23620         agree with return type.
23621
23622         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23623
23624 2010-01-15  Jing Yu  <jingyu@google.com>
23625
23626         PR rtl-optimization/42691
23627         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23628         a pseudo to a constant and are merged, and adjust comments.
23629
23630 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23631
23632         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23633
23634 2010-01-15  Richard Guenther  <rguenther@suse.de>
23635
23636         PR middle-end/42739
23637         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23638         labels of computed or non-local gotos to the destination.
23639         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23640         landing pad label is the first label.
23641
23642 2010-01-15  Richard Guenther  <rguenther@suse.de>
23643
23644         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23645
23646 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23647
23648         PR target/42747
23649         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23650         to allow generation of the xssqrtdp instruction on power7.
23651         (sqrtdf2_fpr): Ditto.
23652
23653 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23654
23655         PR middle-end/42674
23656         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23657         functions with noreturn attribute.
23658
23659         PR c++/42608
23660         * varasm.c (declare_weak): Add weak attribute to decl if it
23661         doesn't have one already.
23662         (assemble_external): Only add decls to weak_decls if they also
23663         have weak attribute.
23664
23665 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
23666
23667         * var-tracking.c (var_reg_delete): Don't delete the association
23668         between REGs and values or one-part variables if the register
23669         isn't clobbered.
23670
23671 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23672
23673         PR debug/42657
23674         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23675         because its first operand is a non-localized variable.
23676
23677 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23678
23679         PR tree-optimization/42706
23680         * tree-sra.c (encountered_recursive_call): New variable.
23681         (encountered_unchangable_recursive_call): Likewise.
23682         (sra_initialize): Initialize both new variables.
23683         (callsite_has_enough_arguments_p): New function.
23684         (scan_function): Call decl and flags check only for IPA-SRA, check
23685         whether there is a recursive call and whether it has enough arguments.
23686         (all_callers_have_enough_arguments_p): New function.
23687         (convert_callers): Look for recursive calls only when
23688         encountered_recursive_call is set.
23689         (ipa_early_sra): Bail out either if
23690         !all_callers_have_enough_arguments_p or
23691         encountered_unchangable_recursive_call.
23692
23693 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23694
23695         * sel-sched.c: Add 2010 to copyright years.
23696         * sel-sched-ir.c: Likewise.
23697         * sel-sched-ir.h: Likewise.
23698
23699 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23700
23701         PR tree-optimization/42714
23702         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23703         constructors specially.
23704
23705 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23706
23707         * config/i386/drivers-i386.c (detect_caches_intel):
23708         Add l2sizekb parameter and fill in.
23709         (host_detect_local_cpu): Add l2sizekb, fill in.
23710         Add Atom small cache heuristic.
23711
23712 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23713
23714         * config/i386/drivers-i386.c (detect_caches_cpuid4):
23715         Add level3 parameter and fill in.
23716         (detect_caches_intel): Handle level3 cache.
23717
23718 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23719
23720         * config/i386/drivers-i386.c (host_detect_local_cpu):
23721         Fix core duo detection.
23722
23723 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23724
23725         * config/i386/drivers-i386.c (host_detect_local_cpu):
23726         Fix Atom detection.
23727
23728 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23729
23730         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23731         (rs6000_variable_issue_1): this.  Use...
23732         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
23733
23734 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23735
23736         * sel-sched-ir.c (sel_restore_other_notes): Rename to
23737         sel_restore_notes.  Update all callers.  Call reemit_notes
23738         for all insns.
23739
23740 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23741
23742         PR rtl-optimization/42246
23743         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23744         loops.
23745
23746 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23747
23748         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23749         all successors is the same as number of successors in current region.
23750
23751 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23752
23753         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23754         to rename is not separable.  Otherwise check that its LHS is not NULL.
23755
23756 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23757
23758         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
23759
23760 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23761
23762         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23763         available registers when failed to discover LHS register class.
23764         Fix indentation.  Update comment.
23765
23766 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23767             Alexander Monakov  <amonakov@ispras.ru>
23768
23769         PR rtl-optimization/42389
23770         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23771         to can_issue_more.
23772         (advance_state_on_fence): Likewise.
23773         (sel_target_adjust_priority): Print debug output only when
23774         sched_verbose >= 4, not 2.
23775         (get_expr_cost): Do not issue all unique insns on the next cycle.
23776         (fill_insns): Initialize can_issue_more from the value saved
23777         with the fence.
23778         * sel-sched-ir.c (flist_add): New parameter issue_more.
23779         Init FENCE_ISSUE_MORE with it.
23780         (merge_fences): Likewise.
23781         (init_fences): Update call to flist_add.
23782         (add_to_fences, add_clean_fence_to_fences)
23783         (add_dirty_fence_to_fences): Likewise.
23784         (move_fence_to_fences): Update call to merge_fences.
23785         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23786         sched groups.
23787         * sel-sched-ir.h (struct _fence): New field issue_more.
23788         (FENCE_ISSUE_MORE): New accessor macro.
23789
23790 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23791
23792         PR rtl-optimization/42388
23793         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23794         that have no predecessors nor successors.  Do not call move_bb_info
23795         for empty blocks outside of current region.
23796
23797 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23798
23799         PR rtl-optimization/42294
23800         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23801         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23802         originators' originators.
23803
23804 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23805
23806         PR rtl-optimization/39453
23807         PR rtl-optimization/42246
23808         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23809         for pipelining_p.
23810         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23811
23812 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23813             Alexander Monakov  <amonakov@ispras.ru>
23814
23815         PR middle-end/42245
23816         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23817         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23818         argument.  Update all callers.
23819         (tidy_control_flow): ... and here.  Recompute topological order
23820         of basic blocks in region if necessary.
23821         (sel_redirect_edge_and_branch): Change return type.  Return true
23822         if topological order might have been invalidated.
23823         (purge_empty_blocks): Export and move from...
23824         * sel-sched.c (purge_empty_blocks): ... here.
23825         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23826         (maybe_tidy_empty_bb): Delete prototype.
23827         (purge_empty_blocks): Declare.
23828
23829 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23830
23831         PR rtl-optimization/42249
23832         * sel-sched.c (try_replace_dest_reg): When chosen register
23833         and original register is the same, do not bail out early, but
23834         still check all original insns for validity of replacing destination
23835         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23836         in this case.
23837
23838 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23839
23840         PR c/42721
23841         Port from no-undefined-overflow branch:
23842         2009-03-09  Richard Guenther  <rguenther@suse.de>
23843
23844         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23845
23846 2010-01-14  Richard Guenther  <rguenther@suse.de>
23847
23848         PR lto/42665
23849         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23850
23851 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23852
23853         PR tree-optimization/42709
23854         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23855         as scalar type in creation of constant vector operand.
23856
23857 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23858
23859         PR testsuite/42414
23860         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23861         (check-parallel-%): Match `testsuite' directory component only
23862         at the end.
23863
23864 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23865
23866         PR translation/39521
23867         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23868         strings with _().
23869
23870 2010-01-13  Richard Guenther  <rguenther@suse.de>
23871
23872         PR tree-optimization/42730
23873         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23874         offset zero.
23875
23876 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23877
23878         PR target/pr42542
23879         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23880         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23881         them signed.
23882
23883 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23884
23885         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23886         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23887         ___umulsi3_highpart.
23888
23889         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23890         rather than schedule_insns if the pass is enabled.
23891
23892 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23893
23894         PR tree-optimization/42704
23895         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23896         SSA_NAMEs.
23897
23898 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23899
23900         PR tree-optimization/42703
23901         * tree-sra.c (analyze_access_subtree): Check that we can build a
23902         reference to the original data within the aggregate.
23903
23904 2010-01-13  Richard Guenther  <rguenther@suse.de>
23905
23906         PR tree-optimization/42705
23907         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23908
23909 2010-01-13  Richard Guenther  <rguenther@suse.de>
23910
23911         PR middle-end/42716
23912         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23913
23914 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23915
23916         PR debug/41371
23917         * var-tracking.c (values_to_unmark): New variable.
23918         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23919         values_to_unmark vector.  Moved body to...
23920         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23921         instead queue it into values_to_unmark vector.
23922         (vt_find_locations): Free values_to_unmark vector.
23923
23924 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23925
23926         * config/s390/s390.c (override_options): Set
23927         default of max-pending-list-length to 256
23928
23929 2010-01-13  Richard Guenther  <rguenther@suse.de>
23930
23931         PR lto/42678
23932         * tree-pass.h (PROP_gimple_lcx): New.
23933         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23934         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23935         before the final cleanup_eh.
23936         (dump_properties): Dump PROP_gimple_lcx.
23937         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23938         (tree_lower_complex_O0): Remove.
23939         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23940         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23941         tree_lower_complex, schedule TODO_update_ssa.
23942         * lto-streamer-out.c (output_function): Stream the functions
23943         properties.
23944         * lto-streamer-in.c (input_function): Likewise.
23945         (lto_read_body): Do not override them here.
23946
23947 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23948
23949         PR c/42708
23950         * c-typeck.c (build_c_cast): Fold value cast to union type before
23951         wrapping it in a CONSTRUCTOR.
23952
23953 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23954
23955         PR rtl-optimization/42699
23956         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23957         involved.
23958
23959 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23960
23961         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23962         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23963         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23964         SUBTARGET_WARN_UNUSED_SPEC): ... here
23965         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23966
23967 2010-01-12  Julian Brown  <julian@codesourcery.com>
23968
23969         * config/arm/neon-schedgen.ml (Utils): Don't try to
23970         open missing module.
23971         (find_with_result): New.
23972
23973 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23974
23975         PR debug/42662
23976         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23977         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23978
23979         PR tree-optimization/42645
23980         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23981         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23982         decl_map, set processing_debug_stmt to -1 and return name without
23983         any remapping.
23984
23985 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23986
23987         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23988         binutils version, and reword target configuration description.
23989
23990 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23991
23992         * config/avr/avr.h (LINKER_NAME): Remove.
23993
23994 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23995
23996         PR target/42416
23997         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23998         that support VSX, warn for -mno-altivec if vsx is not disabled,
23999         and disable vsx.
24000
24001 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
24002             Shujing Zhao  <pearly.zhao@oracle.com>
24003
24004         PR translation/42469
24005         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
24006         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
24007         character between option name and help text.
24008         * c.opt (imultilib): Likewise.
24009
24010 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
24011
24012         * lto-streamer-out.c (output_unreferenced_globals): Output static
24013         variables.
24014
24015 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
24016
24017         PR rtl-optimization/42621
24018         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
24019         optimizing for size.
24020         (duplicate_computed_gotos): Remove now-redundant check.
24021
24022 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
24023
24024         PR target/37454
24025         * configure.ac: Save and restore LDFLAGS and LIBS
24026         * configure: Regenerate.
24027
24028 2010-01-10  Richard Guenther  <rguenther@suse.de>
24029
24030         PR middle-end/42667
24031         * builtins.c (fold_builtin_strlen): Add type argument and
24032         convert the resulting length to it.
24033         (fold_builtin_1): Adjust.
24034
24035 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
24036
24037         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
24038         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
24039         1 insn.
24040         (num_insns_constant_wide): Adjust for that change.
24041
24042 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24043
24044         PR debug/42631
24045         * web.c (union_defs): Add used argument, to combine uses of
24046         uninitialized regs.
24047         (entry_register): Adjust type and tests of used argument.
24048         (web_main): Widen used for new use.  Pass it to union_defs.
24049         * df.h (union_defs): Adjust prototype.
24050
24051 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24052
24053         PR debug/42630
24054         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
24055         uses in new incoming argument.  Free body.
24056         (reset_debug_uses_in_loop): New.
24057         (analyze_insn_to_expand_var): Call the latter if the former found
24058         anything.  Fix whitespace.  Reject invalid dest overlaps before
24059         going through all insns in the loop.
24060
24061 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24062
24063         PR debug/42629
24064         * haifa-sched.c (dying_use_p): Debug insns don't count.
24065
24066 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24067
24068         PR middle-end/42363
24069         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
24070         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
24071         (verify_gimple_call): Reject LHS in noreturn calls.
24072
24073 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24074
24075         PR debug/42604
24076         PR debug/42395
24077         * tree-vect-loop-manip.c (adjust_info): New type.
24078         (adjust_vec): New pointer to vector.
24079         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
24080         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
24081         (slpeel_update_phis_for_duplicate_loop): Use them.
24082         (slpeel_update_phi_nodes_for_guard1): Likewise.
24083         (slpeel_update_phi_nodes_for_guard2): Likewise.
24084         (slpeel_tree_peel_loop_to_edge): Likewise.
24085         (vect_update_ivs_after_vectorizer): Likewise.
24086
24087 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24088
24089         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
24090         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
24091
24092 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
24093
24094         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
24095         bogus uninitialized warning.
24096
24097 2010-01-09  Richard Guenther  <rguenther@suse.de>
24098
24099         PR middle-end/42512
24100         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
24101         the evolution is compatible with the initial condition.
24102
24103 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
24104
24105         * gcc.c (process_command): Update copyright notice dates.
24106         * gcov.c (print_version): Likewise.
24107         * gcov-dump.c (print_version): Likewise.
24108         * mips-tfile.c (main): Likewise.
24109         * mips-tdump.c (main): Likewise.
24110
24111 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
24112
24113         PR target/41885
24114         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
24115         (rotlhi3): Delete.
24116         (rotlhi3_8): Delete.
24117         (rotlsi3): Delete.
24118         (rotlsi3_8): Delete.
24119         (rotlsi3_16): Delete.
24120         (rotlsi3_24): Delete.
24121         (rotl<mode>3): New.
24122         (*rotw<mode>3): New.
24123         (*rotb<mode>3): New.
24124         * config/avr/avr.c (avr_rotate_bytes): New function.
24125         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
24126
24127 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
24128
24129         PR target/37454
24130         * configure.ac: Modify -rdynamic check.
24131         * configure: Regenerate.
24132
24133 2010-01-08  DJ Delorie  <dj@redhat.com>
24134
24135         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
24136         register popping order.
24137
24138 2010-01-08  Richard Guenther  <rguenther@suse.de>
24139
24140         PR lto/42528
24141         * c.opt (fsigned-char): Also let LTO handle this option.
24142         (funsigned-char): Likewise.
24143
24144 2010-01-07  Richard Guenther  <rguenther@suse.de>
24145
24146         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
24147         (gimple_op): Likewise.
24148         (gimple_op_ptr): Likewise.
24149         (gimple_assign_set_lhs): Remove gcc_assert.
24150         (gimple_assign_set_rhs1): Likewise.
24151         (gimple_assign_set_rhs2): Likewise.
24152         (gimple_call_set_lhs): Likewise.
24153         (gimple_call_set_fn): Likewise.
24154         (gimple_call_set_fndecl): Likewise.
24155         (gimple_call_fndecl): Likewise.
24156         (gimple_call_return_type): Likewise.
24157         (gimple_call_set_chain): Likewise.
24158         (gimple_call_num_args): Likewise.
24159         (gimple_call_set_arg): Likewise.
24160         (gimple_cond_set_code): Likewise.
24161         (gimple_cond_set_lhs): Likewise.
24162         (gimple_cond_set_rhs): Likewise.
24163         (gimple_cond_set_true_label): Likewise.
24164         (gimple_cond_set_false_label): Likewise.
24165         (gimple_label_set_label): Likewise.
24166         (gimple_goto_set_dest): Likewise.
24167         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
24168         (gimple_debug_bind_get_value): Likewise.
24169         (gimple_debug_bind_get_value_ptr): Likewise.
24170         (gimple_debug_bind_set_var): Likewise.
24171         (gimple_debug_bind_set_value): Likewise.
24172         (gimple_debug_bind_reset_value): Likewise.
24173         (gimple_debug_bind_has_value_p): Likewise.
24174         (gimple_return_retval_ptr): Remove gcc_assert.
24175         (gimple_return_retval): Likewise.
24176         (gimple_return_set_retval): Likewise.
24177         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
24178         (safe_referenced_var_iterator): Remove.
24179         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
24180         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
24181         (fill_referenced_var_vec): Remove.
24182         (first_readonly_imm_use): Remove redundant gcc_assert.
24183         (phi_arg_index_from_use): Combine gcc_asserts.
24184         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
24185         (first_imm_use_stmt): Remove redundant gcc_assert.
24186         * tree-cfg.c (verify_gimple_call): Verify function and chain
24187         operands.  Verify arguments.
24188         (verify_types_in_gimple_stmt): Verify condition code and labels.
24189
24190 2010-01-07  Richard Guenther  <rguenther@suse.de>
24191
24192         PR tree-optimization/42641
24193         * sese.c (rename_map_elt_info): Use the SSA name version, do
24194         not hash pointers.
24195
24196 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
24197
24198         PR tree-optimization/42625
24199         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
24200         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
24201
24202 2010-01-07  Duncan Sands  <baldrick@free.fr>
24203
24204         * Makefile.in (PLUGIN_HEADERS): Add version.h.
24205
24206 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
24207
24208         PR target/42511
24209         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
24210         note itself is not function_invariant_p.
24211
24212 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
24213
24214         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
24215         Do not add the DF_NOTE problem.
24216         * store-motion.c (execute_rtl_store_motion): Likewise.
24217
24218 2010-01-07  Martin Jambor  <mjambor@suse.cz>
24219
24220         PR tree-optimization/42157
24221         * tree-sra.c (compare_access_positions): Stabilize sort if both
24222         accesses have integer types, return zero immediately if they are the
24223         same.
24224
24225 2010-01-06  Richard Henderson  <rth@redhat.com>
24226
24227         PR middle-end/41883
24228         * haifa-sched.c (add_to_note_list): Merge into ...
24229         (concat_note_lists): ... here, and ...
24230         (unlink_other_notes, rm_other_notes): Merge into...
24231         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
24232         NOTE_INSN_EPILOGUE_BEG.
24233
24234 2010-01-06  Richard Guenther  <rguenther@suse.de>
24235
24236         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
24237         not inline regular functions into always-inline functions.
24238
24239 2010-01-06  Nick Clifton  <nickc@redhat.com>
24240
24241         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
24242         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
24243         used together.
24244         (OVERRIDE_OPTIONS): Delete.
24245         (OPTIMIZATION_OPTIONS): Define.
24246         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
24247         * config/rx/rx.c (rx_handle_option): Issue an error message if
24248         -mcpu=rx200 and -fpu are used together.
24249         (rx_set_optimization_options): New function.  Issue an error
24250         message if an optimization attribute attempts to reset the FPU/
24251         math optimization pairing.
24252         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
24253         * config/rx/rx.opt: Set the default to 32-bit doubles.
24254         * config/rx/t-rx: Add multilibs for -nofpu option.
24255         * doc/invoke.texi: Update documentation of RX options.
24256
24257 2010-01-06  Richard Guenther  <rguenther@suse.de>
24258
24259         * tree-ssa-pre.c (name_to_id): New global.
24260         (alloc_expression_id): Simplify SSA name handling.
24261         (lookup_expression_id): Likewise.
24262         (init_pre): Zero name_to_id.
24263         (fini_pre): Free it.
24264
24265 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
24266
24267         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
24268
24269 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24270
24271         PR target/42542
24272         * config/i386/sse.md (smaxv2di3): New.
24273         (umaxv2di3): Likewise.
24274         (sminv2di3): Likewise.
24275         (uminv2di3): Likewise.
24276
24277 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24278
24279         PR target/42564
24280         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
24281         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
24282         (legitimize_tls_address): Likewise.
24283         (sparc_tls_referenced_p): Likewise.
24284         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
24285         and adjust calls to legitimize_pic_address.
24286         (legitimate_constant_p) Use sparc_tls_referenced_p.
24287         (legitimate_pic_operand_p): Likewise.
24288         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
24289         (sparc_tls_symbol_ref_1): Delete.
24290         (sparc_tls_referenced_p): Make static, recognize specific patterns.
24291         (legitimize_tls_address): Make static, handle CONST patterns.
24292         (legitimize_pic_address): Make static, remove unused parameter and
24293         adjust recursive calls.
24294         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
24295         and adjust call to legitimize_pic_address.
24296         (sparc_output_mi_thunk): Likewise.
24297
24298 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
24299             H.J. Lu  <hongjiu.lu@intel.com>
24300
24301         PR target/42542
24302         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
24303         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
24304         operands to make them signed.
24305
24306         Revert:
24307         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24308
24309         PR target/42542
24310         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24311         GTU to GT for V4SI and V2DI.
24312
24313         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24314         (umin<mode>3): Removed.
24315         (uminv8hi3): New.
24316         (uminv4si3): Likewise.
24317
24318 2010-01-05  Martin Jambor  <mjambor@suse.cz>
24319
24320         PR tree-optimization/42462
24321         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
24322         current_function_decl to helper functions and macros.
24323
24324 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24325
24326         PR bootstrap/41771
24327         * flags.h: Don't include real.h.
24328         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
24329         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
24330         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
24331         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
24332         * dominance.c: Update copyright.
24333         * gimple.c (walk_gimple_op): Remove inline.
24334         * tree-ssa-reassoc.c: Include real.h.
24335         * Makefile.in (FLAGS_H): Remove $(REAL_H).
24336         (tree-ssa-reassoc.o): Depend on $(REAL_H).
24337
24338 2010-01-05  Nick Clifton  <nickc@redhat.com>
24339
24340         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
24341         register to push into the stack frame when the accumulator has to
24342         be saved during interrupts.
24343
24344 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
24345
24346         * doc/invoke.texi: Remove the documentation about option
24347         -Wunreachable-code.
24348         * common.opt (Wunreachable-code):  Preserved for backward
24349         compatibility.
24350         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
24351         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
24352         the backward compatibility flag section.
24353
24354 2010-01-05  Richard Guenther  <rguenther@suse.de>
24355
24356         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
24357
24358 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
24359
24360         PR other/42611
24361         * cfgexpand.c (expand_one_var): Diagnose too large variables.
24362
24363         PR tree-optimization/42508
24364         * tree-sra.c (convert_callers): Check for recursive call
24365         by comparing cgraph nodes instead of decls.
24366         (modify_function): Call ipa_modify_formal_parameters also
24367         on all same_body aliases.
24368
24369         * cgraphunit.c (cgraph_materialize_all_clones): Compare
24370         cgraph nodes when checking for same_body aliases.
24371
24372 2010-01-05  Richard Guenther  <rguenther@suse.de>
24373
24374         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
24375         allocation and lookup.
24376         (get_or_alloc_expr_for_constant): Likewise.
24377         (phi_translate): Sink allocation.
24378
24379 2010-01-04  Richard Guenther  <rguenther@suse.de>
24380
24381         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
24382         a new entry only if needed.
24383         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
24384         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
24385         hashtable lookup.
24386         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
24387         the result array.
24388         (phi_translate): Handle CONSTANTs early.
24389
24390 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24391
24392         PR tree-optimization/42398
24393         * tree-sra.c (struct access): Removed flag grp_different_types.
24394         (dump_access): Do not dump the removed flag.
24395         (sort_and_splice_var_accesses): Do not set the removed flag.
24396         (sra_modify_expr): Check for type compatibility directly.
24397
24398 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24399
24400         PR tree-optimization/42366
24401         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
24402         edges with variable number of parameters.
24403         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
24404         flag instead of asserting it.
24405         (ipa_read_node_info): Read uses_analysis_done flag.
24406
24407 2010-01-04  Richard Guenther  <rguenther@suse.de>
24408
24409         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
24410         iterative_hash_* as intended.
24411         (vn_reference_compute_hash): Likewise.  Simplify hashing
24412         SSA names.
24413         (vn_reference_lookup_2): Likewise.
24414         (vn_nary_op_compute_hash): Likewise.
24415         (vn_phi_compute_hash): Likewise.
24416         (expressions_equal_p): Remove strange code.
24417         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
24418         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
24419         (bitmap_insert_into_set_1): Take value-id as parameter.
24420         (add_to_value): Pass it.
24421         (bitmap_insert_into_set): Likewise.
24422         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
24423
24424 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
24425
24426         PR driver/42442
24427         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
24428         (do_self_spec): For switches with SWITCH_IGNORE set set also
24429         SWITCH_IGNORE_PERMANENTLY.
24430         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
24431         of SWITCH_IGNORE.
24432
24433 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
24434
24435         * lto-streamer-out.c (output_unreferenced_globals): Output the full
24436         tree of an unreferenced global var.
24437
24438 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24439
24440         PR target/42542
24441         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24442         GTU to GT for V4SI and V2DI.
24443
24444         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24445         (umin<mode>3): Removed.
24446         (uminv8hi3): New.
24447         (uminv4si3): Likewise.
24448
24449 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24450
24451         PR lto/42581
24452         * collect2.c (main): Turn on trace in collect2 if -v is passed
24453         to gcc with LTO.
24454
24455 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
24456
24457         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
24458         description of expression operand.
24459
24460 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
24461
24462         * configure.ac: Add install-html to target_list for Make-hooks.
24463         * configure: Regenerate.
24464         * fortran/Make-lang.in (F95_HTMLFILES): New.
24465         (fortran.html): Use it.
24466         (fortran.install-html): New.
24467         * Makefile.in (install-html): Add lang.install-html.
24468         * java/Make-lang.in (JAVA_HTMLFILES): New.
24469         (java.html): Use it.
24470         (java.install-html): New.
24471         * objc/Make-lang.in (objc.install-html): New.
24472         * objcp/Make-lang.in (obj-c++.install-html): New.
24473         * cp/Make-lang.in (c++.install-html): New.
24474         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
24475         * lto/Make-lang.in (lto.install-html): New.
24476
24477 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24478
24479         PR lto/42520
24480         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
24481
24482 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24483
24484         PR rtl-optimization/41862
24485         * store-motion.c (store_killed_in_insn, compute_store_table,
24486         remove_reachable_equiv_notes, replace_store_insn,
24487         build_store_vectors): Ignore all DEBUG_INSNs.
24488
24489 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24490
24491         PR lto/41564
24492         * common.opt: Add dumpdir.
24493
24494         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
24495         isn't specified.
24496         (option_map): Add --dumpdir.
24497
24498         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
24499
24500         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
24501
24502         * opts.c (decode_options): Try dump_dir_name first if
24503         dump_base_name isn't an absolute path.
24504         (common_handle_option): Handle OPT_dumpdir.
24505
24506         * toplev.c (dump_dir_name): New.
24507         (print_switch_values): Also ignore -dumpdir.
24508
24509         * toplev.h (dump_dir_name): New.
24510
24511 2010-01-03  Richard Guenther  <rguenther@suse.de>
24512
24513         PR tree-optimization/42589
24514         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
24515         double-word expansion of bswap32.
24516
24517 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24518
24519         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
24520         with BLOCK_FOR_INSN.
24521         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
24522         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
24523         noce_process_if_block): Likewise.
24524         * gcse.c (compute_local_properties, insert_expr_in_table,
24525         insert_set_in_table, canon_list_insert, find_avail_set,
24526         pre_insert_copy_insn): Likewise.
24527
24528         * basic-block.h (BLOCK_NUM): Move from here...
24529         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
24530
24531 2010-01-03  Richard Guenther  <rguenther@suse.de>
24532
24533         PR tree-optimization/42438
24534         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
24535         contains_may_not_return_call flag.
24536         (BB_MAY_NOTRETURN): New.
24537         (valid_in_sets): Trapping nary operations are not valid
24538         in blocks that may not return.
24539         (insert_into_preds_of_block): Remove check for trapping expressions.
24540         (compute_avail): Compute also BB_MAY_NOTRETURN.
24541
24542 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
24543
24544         * doc/invoke.texi: Add 2010 to copyright years.
24545
24546 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
24547
24548         * config/sparc/sparc.c: Fix formatting nits.
24549
24550 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
24551             Alexander Monakov  <amonakov@ispras.ru>
24552
24553         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
24554
24555 2010-01-02  Richard Guenther  <rguenther@suse.de>
24556
24557         PR middle-end/42577
24558         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
24559         (simplify_switch_using_ranges): Mark to be removed edges
24560         as non-executable.
24561
24562 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24563
24564         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24565
24566         * collect2.c (scan_libraries): Add missing argument in call to
24567         scan_prog_file.
24568
24569 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
24570
24571         PR target/42448
24572         * config/alpha/predicates.md (aligned_memory_operand): Return false
24573         for CQImode.
24574         (unaligned_memory_operand): Return true for CQImode.
24575         * config/alpha/alpha.c (get_aligned_mem): Assert that location
24576         doesn not cross aligned SImode word boundary.
24577
24578 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
24579
24580         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
24581         Remove.
24582         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
24583         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
24584
24585 2010-01-02  Richard Guenther  <rguenther@suse.de>
24586
24587         PR lto/41597
24588         * toplev.c (compile_file): Emit LTO marker properly.  Change
24589         it to __gnu_lto_v1.
24590         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
24591
24592 2010-01-01  Richard Guenther  <rguenther@suse.de>
24593
24594         PR debug/42455
24595         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
24596
24597 2010-01-01  Richard Guenther  <rguenther@suse.de>
24598
24599         PR c/42570
24600         * c-decl.c (grokdeclarator): For zero-size arrays force
24601         structural equality checks as layout_type does.
24602
24603 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24604
24605         * builtins.c: Update copyright to 2010.
24606
24607 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24608
24609         PR lto/42531
24610         * lto-streamer-out.c (produce_asm): Revert the last change.
24611         (copy_function): Likewise.
24612
24613         * lto-streamer.c (lto_get_section_name): Skip any leading
24614         asterisk in name.
24615
24616 2010-01-01  Richard Guenther  <rguenther@suse.de>
24617
24618         PR middle-end/42559
24619         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
24620         for LABEL_DECLs.
24621
24622 \f
24623 Copyright (C) 2010 Free Software Foundation, Inc.
24624
24625 Copying and distribution of this file, with or without modification,
24626 are permitted in any medium without royalty provided the copyright
24627 notice and this notice are preserved.