t-mingw32 (SHLIB_LC): Add -lmingwthrd.
[gcc.git] / gcc / ChangeLog
1 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
2
3 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
4 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
5 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6
7 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
8 Olivier Hainque <hainque@adacore.com>
9
10 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
11 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
12 fs->signal_frame instead.
13
14 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
15
16 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
17 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
18 Do not use objc_set_property_attr, but use local variables
19 instead. Detect repeated usage of setter, getter and ivar
20 attributes. Improved error processing when a setter name does not
21 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
22 that the token is a keyword. Updated call to
23 objc_add_property_declaration.
24
25 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
26
27 * c-parser.c (c_parser_objc_at_property): Renamed to
28 c_parser_objc_at_property_declaration. Updated calls to
29 objc_add_property_variable, now objc_add_property_declaration.
30 Code rewritten to be much more robust in recovering from syntax
31 errors. Added comments.
32 (c_parser_objc_property_attrlist): Removed.
33 (c_parser_external_declaration): Updated calls to
34 c_parser_objc_at_property, now
35 c_parser_objc_at_property_declaration.
36 (c_parser_objc_methodprotolist): Same change.
37
38 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
39
40 * config/i386/i386.md (split_stack_return): Put back
41 unspec_volatile.
42
43 2010-10-26 Jan Hubicka <jh@suse.cz>
44
45 * ipa.c (process_references): Enqueue all referenced nodes;
46 mark as reachable only non-external nodes.
47 (cgraph_remove_unreachable_nodes): All referenced nodes should
48 be enqueued; remove bogues node->needed check.
49
50 2010-10-26 Jan Hubicka <jh@suse.cz>
51
52 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference to represent OMP.
53
54 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
55
56 * config/i386/i386.md (split_stack_return): Replace
57 unspec_volatile with unspec.
58
59 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
60
61 * doc/install.texi: Fix typo in --with-sysroot description.
62
63 2010-10-26 Jan Hubicka <jh@suse.cz>
64
65 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
66 Use info provided by linker plugin.
67
68 2010-10-26 Jason Merrill <jason@redhat.com>
69
70 * varasm.c (constructor_static_from_elts_p): Don't require a
71 CONSTRUCTOR to have elements to be suitable for static
72 initialization. Allow ARRAY_TYPE as well.
73
74 2010-10-26 Jan Hubicka <jh@suse.cz>
75
76 PR middle-end/45736
77 * cgraph.c (cgraph_set_readonly_flag): Rename to...
78 (cgraph_set_const_flags) ... this one; get also looping argument;
79 clear constructor/destructor flags.
80 (cgraph_set_pure_flag): Likewise.
81 (cgraph_set_looping_const_or_pure_flag): Remove.
82 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
83 to optimize away static ctors/dtors; it does not work on inline clones;
84 external functions can always be rmeoved.
85 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on inline
86 clones; in LTO external functions always can go.
87 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
88 (cgraph_mark_address_taken_node): Assert that we are not taking address of
89 inline clone.
90 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
91 external functions.
92 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with address taken.
93 (ipcp_initialize_node_lattices): Only local functions can be handled without cloning.
94 * cgraph.h (cgraph_set_readonly_flag,
95 cgraph_set_looping_const_or_pure_flag): Remove.
96 (cgraph_set_const_flag): Declare.
97 (cgraph_set_pure_flag): Update.
98 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
99 flags setting code.
100 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not look at inline
101 clones; fix handling of external definitions.
102 (cgraph_postorder): Do not look at inline clones in the first pass.
103 (function_and_variable_visibility): Drop constructors/destructor
104 flags at pure and const functions.
105 * tree-profile.c (tree_profiling): Update.
106 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
107 address taken; external functions do not account to whole program size.
108 (cgraph_decide_inlining): Likewise; do not try to inline functions already
109 inlined.
110
111 2010-10-26 Jie Zhang <jie@codesourcery.com>
112
113 * doc/invoke.texi: Improve documentation of
114 -fstrict-volatile-bitfields.
115
116 2010-10-26 Ira Rosen <irar@il.ibm.com>
117
118 PR tree-optimization/46167
119 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
120 is basic block for the statement.
121
122 2010-10-26 Paul Koning <ni1d@arrl.net>
123
124 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
125 current definition of struct_real_format.
126
127 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
128
129 PR target/44948
130 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
131 (ix86_function_arg_boundary): Always align parameters on stack
132 in 64bit and align parameters with alignment >= 16byte on stack
133 in 32bit. Warn alignment change.
134
135 2010-10-26 Ian Lance Taylor <iant@google.com>
136
137 PR middle-end/45687
138 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
139 offset.
140
141 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
142
143 Implement opaque-enum-specifiesr for C++0x
144 * tree.h (ENUM_IS_OPAQUE): New.
145 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
146
147 2010-10-26 Jie Zhang <jie@codesourcery.com>
148
149 * stor-layout.c (layout_decl): Use the field's type to
150 determine the mode and keep DECL_BIT_FIELD for a volatile
151 bit-field.
152 * config/arm/arm.c (arm_override_options): Default to
153 -fstrict-volatile-bitfields.
154
155 2010-10-25 Paul Koning <ni1d@arrl.net>
156
157 * config/pdp11/pdp11.md: Add define_constants for register
158 numbers, branch offset limits.
159 * config/pdp11/pdp11.c: Use named constants instead of numbers.
160 * config/pdp11.pdp11.h: Ditto.
161
162 2010-10-25 Changpeng Fang <changpeng.fang@amd.com>
163
164 * Changelog (2010-10-22 Changpeng Fang): Correct the Changelog entries.
165
166 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
167
168 * configure.ac: Use $cpu_type instead of $target to define the nop.
169 * configure: Regenerate.
170
171 2010-10-25 Jie Zhang <jie@codesourcery.com>
172
173 * combine.c (try_combine): If insns need to be kept around, check that
174 they can be copied in the merged instruction.
175
176 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
177
178 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
179 has been modified.
180 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
181 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
182 it has been modified.
183
184 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
185
186 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
187
188 2010-10-24 Paul Koning <ni1d@arrl.net>
189
190 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
191 * config/pdp11/pdp11.c (output_jump): Ditto.
192
193 2010-10-24 Ian Lance Taylor <iant@google.com>
194
195 * config/i386/i386.c (ix86_va_start): Remove extraneous blank
196 line.
197
198 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
199
200 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
201 least one insn with a locus corresponding to an edge's goto_locus,
202 disregard non-fallthru edges to the exit block and merge the blocks
203 created for the same goto_locus.
204
205 2010-10-23 Joseph Myers <joseph@codesourcery.com>
206
207 * gcc.c (n_switches_alloc_debug_check): New.
208 (set_option_handlers): New.
209 (process_command): Use set_option_handlers.
210 (do_self_spec): Pass spec-generated options through option
211 handlers.
212 (main): Also save and restore n_switches_alloc when swapping
213 switch arrays.
214
215 2010-10-23 Richard Henderson <rth@redhat.com>
216
217 PR target/46144
218 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
219 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
220 Honor matching operands when splitting to XOR.
221
222 2010-10-23 Ian Lance Taylor <iant@google.com>
223
224 * tree-vrp.c (extract_range_from_binary_expr): If
225 flag_non_call_exceptions don't eliminate division by zero.
226 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
227
228 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
229
230 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
231 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
232 __ORDER_PDP_ENDIAN__.
233 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
234 (struct DWstruct): Define based on __BYTE_ORDER__.
235 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
236 (struct INTstruct): Define based on __BYTE_ORDER__.
237 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
238 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
239 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
240 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
241 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
242 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
243 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
244 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
245 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
246 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
247 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
248 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
249 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
250 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
251 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
252 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
253 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
254 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
255 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
256 * doc/tm.texi: Regenerate.
257 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
258 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
259
260 2010-10-23 Jie Zhang <jie@codesourcery.com>
261
262 PR rtl-optimization/37360
263 * config/mips/mips.c (cached_can_issue_more): New local variable.
264 (mips_sched_reorder_1): New.
265 (mips_sched_reorder): Use mips_sched_reorder_1.
266 (mips_sched_reorder2): New.
267 (mips_variable_issue): Set cached_can_issue_more.
268 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
269 instead of mips_sched_reorder.
270
271 Revert
272 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
273 PR rtl-optimization/37360
274 * haifa-sched.c (max_issue): Do not assert that we never issue more
275 insns than issue_rate. Add comment.
276
277 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
278
279 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
280 location info of the expression.
281
282 2010-10-22 DJ Delorie <dj@redhat.com>
283
284 * doc/extend.texi (Named Address Spaces): Document the M32C named
285 address space.
286
287 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
288 __far address space.
289 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
290 "__far" address space for R8C and M16C processor variants.
291 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
292 (far_addr_space_p): New.
293 (encode_pattern_1): Add sign and zero extend support.
294 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
295 (m32c_extra_constraint_p2): Add SF constraint.
296 (m32c_legitimate_address_p): Support __far addresses.
297 (m32c_addr_space_pointer_mode): New.
298 (m32c_addr_space_address_mode): New.
299 (m32c_addr_space_legitimate_address_p): New.
300 (m32c_addr_space_legitimize_address): New.
301 (m32c_addr_space_subset_p): New.
302 (m32c_addr_space_convert): New.
303 (conversions): Add __far operand patterns.
304 (m32c_prepare_move): Force constants into registers for __far
305 moves.
306 (m32c_split_move): __far moves are always split.
307 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
308 * config/m32c/mov.md (mov<mode>_far_op1): New.
309 (mov<mode>_far_op2): New.
310 (movqi_op): Add __far (SF) support.
311 (movhi_op): Likewise.
312 (movsi_splittable): Split A1A0 also.
313
314 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
315 Andrew Pinski <pinskia@gmail.com>
316
317 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
318 * doc/extend.texi: New paragraph
319
320 2010-10-22 Paul Koning <ni1d@arrl.net>
321
322 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
323
324 2010-10-22 DJ Delorie <dj@redhat.com>
325
326 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
327
328 2010-10-22 Paul Koning <ni1d@arrl.net>
329
330 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
331
332 2010-10-22 Richard Henderson <rth@redhat.com>
333
334 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
335 cases for __builtin_fma and __builtin_fmaf.
336
337 2010-10-22 Richard Henderson <rth@redhat.com>
338
339 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
340 NEG+USE for vectors as well.
341 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
342 and splitter.
343
344 2010-10-22 Joseph Myers <joseph@codesourcery.com>
345
346 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
347 SWITCH_CURTAILS_COMPILATION): Remove.
348 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove
349 documentation.
350 * doc/tm.texi: Regenerate.
351 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
352
353 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
354
355 * config/i386/bdver1.md: New file.
356 * config/i386/i386.md (include "bdver1.md"): Invoke the
357 pipeline description for bdver1.
358 (x86_sahf_1): Add "bdver1_decode" attribute.
359 (*cmpfp_i_mixed): Likewise.
360 (*cmpfp_i_sse): Likewise.
361 (*cmpfp_i_i387): Likewise.
362 (*cmpfp_iu_mixed): Likewise.
363 (*cmpfp_iu_sse): Likewise.
364 (*cmpfp_iu_387): Likewise.
365 (*swap<mode>,*swap<mode>_1): Likewise.
366 (fixuns_trunc<mode>hi2): Likewise.
367 (fix_trunc<mode>si_sse): Likewise.
368 (x86_fnstcw_1): Likewise.
369 (x86_fldcw_1): Likewise.
370 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
371 (*floatsi<mode>2_vector_mixed): Likewise.
372 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
373 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
374 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
375 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
376 (*floatsi<mode>2_vector_sse): Likewise.
377 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
378 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
379 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
380 (*mul<mode>3_1): Likewise.
381 (*mulsi3_1_zext): Likewise.
382 (*mulhi3_1): Likewise.
383 (*mulqi3_1): Likewise.
384 (*<u>mul<mode><dwi>3_1): Likewise.
385 (*<u>mulqihi3_1): Likewise.
386 (*<s>muldi3_highpart_1): Likewise.
387 (*<s>mulsi3_highpart_1): Likewise.
388 (*<s>mulsi3_highpart_zext): Likewise.
389 (x86_64_shld): Likewise.
390 (x86_shld): Likewise.
391 (x86_64_shrd): Likewise.
392 (x86_shrd): Likewise.
393 (sqrtxf2): Likewise.
394 (sqrt_extend<mode>xf2_i387): Likewise.
395 (*sqrt<mode>2_sse): Likewise.
396 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
397 (sse_cvtsi2ssq): Likewise.
398 (sse_cvtss2si): Likewise.
399 (sse_cvtss2si_2): Likewise.
400 (sse_cvtss2siq): Likewise.
401 (sse_cvtss2siq_2): Likewise.
402 (sse_cvttss2si): Likewise.
403 (sse_cvttss2siq): Likewise.
404 (sse2_cvtpi2pd): Likewise.
405 (sse2_cvttpd2pi): Likewise.
406 (sse2_cvtsi2sd): Likewise.
407 (sse2_cvtsi2sdq): Likewise.
408 (sse2_cvtsd2si): Likewise.
409 (sse2_cvtsd2si_2): Likewise.
410 (sse2_cvtsd2siq): Likewise.
411 (sse2_cvtsd2siq_2): Likewise.
412 (sse2_cvttsd2si): Likewise.
413 (sse2_cvttsd2siq): Likewise.
414 (*sse2_cvtpd2dq): Likewise.
415 (*sse2_cvttpd2dq): Likewise.
416 (sse2_cvtsd2ss): Likewise.
417 (sse2_cvtss2sd): Likewise.
418 (*sse2_cvtpd2ps): Likewise.
419 (sse2_cvtps2pd): Likewise.
420
421 2010-10-22 Richard Guenther <rguenther@suse.de>
422
423 PR middle-end/46137
424 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
425 remove the virtual operands if they are not needed.
426
427 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
428
429 * config/i386/i386.c (processor_costs bdver1_cost): Update
430 insn costs and architectural parameters for bdver1.
431
432 2010-10-22 Richard Guenther <rguenther@suse.de>
433
434 * gimple.h (gimple_register_canonical_type): Declare.
435 * gimple.c (gimple_canonical_types): New global hashtable.
436 (struct gimple_type_leader_entry_s): New type.
437 (gimple_type_leader): New global cache.
438 (gimple_lookup_type_leader): New function.
439 (gtc_visit): Query the proper cache.
440 (gimple_types_compatible_p): Likewise.
441 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
442 (gimple_canonical_type_eq): New function.
443 (gimple_register_canonical_type): Likewise.
444 (print_gimple_types_stats): Adjust for gimple_canonical_types.
445 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
446 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
447 gimple_types_compatible_p for LTO.
448
449 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
450
451 PR target/46098
452 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
453 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
454 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
455 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
456 (<sse>_movu<ssemodesuffix>): New expander.
457 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
458 (avx_movdqu<avxmodesuffix>): New expander.
459 (*sse2_movdqu): Rename from sse2_movdqu.
460 (sse2_movdqu): New expander.
461
462 2010-10-22 Richard Guenther <rguenther@suse.de>
463
464 PR tree-optimization/45720
465 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
466 Handle negative step.
467 (vect_enhance_data_refs_alignment): Likewise.
468 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
469 (vect_create_cond_for_align_checks): Likewise.
470 (vect_create_cond_for_alias_checks): Likewise.
471
472 2010-10-22 Ira Rosen <irar@il.ibm.com>
473
474 PR tree-optimization/46126
475 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
476 vectorizable_shift in case of basic block vectorization.
477
478 2010-10-22 Joseph Myers <joseph@codesourcery.com>
479
480 * target.h (enum opt_levels, struct default_options): New.
481 * target.def (handle_ofast): Remove hook.
482 (target_option.optimization): Change to
483 target_option.optimization_table.
484 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
485 TARGET_OPTION_OPTIMIZATION_TABLE.
486 (CAN_DEBUG_WITHOUT_FP): Remove.
487 * doc/tm.texi: Regenerate.
488 * opts.c (maybe_default_option, maybe_default_options,
489 default_options_table): New.
490 (default_options_optimization): Take extra parameters. Don't
491 assert that global_options and global_options_set are in use. Use
492 maybe_default_options.
493 (decode_options): Pass extra parameters to
494 default_options_optimization.
495 * common.opt (falign-loops): Use value 0 with Var.
496 (frerun-cse-after-loop, ftree-ter): Remove Init.
497 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
498 TARGET_OPTION_OPTIMIZATION): Remove.
499 * targhooks.c (empty_optimization_table): New.
500 * targhooks.h (empty_optimization_table): Declare.
501 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
502 * config/alpha/alpha.c (alpha_option_optimization_table,
503 TARGET_OPTION_OPTIMIZATION_TABLE): New.
504 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
505 * config/arm/arm.c (arm_option_optimization: Change to
506 arm_option_optimization_table.
507 (TARGET_OPTION_OPTIMIZATION): Change to
508 TARGET_OPTION_OPTIMIZATION_TABLE.
509 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
510 * config/avr/avr.c (avr_option_optimization_table,
511 TARGET_OPTION_OPTIMIZATION_TABLE): New.
512 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
513 * config/cris/cris.c (cris_option_optimization): Change to
514 cris_option_optimization_table.
515 (TARGET_OPTION_OPTIMIZATION): Change to
516 TARGET_OPTION_OPTIMIZATION_TABLE.
517 * config/crx/crx.c (crx_option_optimization): Change to
518 crx_option_optimization_table.
519 (TARGET_OPTION_OPTIMIZATION): Change to
520 TARGET_OPTION_OPTIMIZATION_TABLE.
521 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
522 * config/fr30/fr30.c (fr30_option_optimization_table,
523 TARGET_OPTION_OPTIMIZATION_TABLE): New.
524 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
525 * config/frv/frv.c (frv_option_optimization_table,
526 TARGET_OPTION_OPTIMIZATION_TABLE): New.
527 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
528 * config/h8300/h8300.c (h8300_option_optimization): Change to
529 h8300_option_optimization_table.
530 (TARGET_OPTION_OPTIMIZATION): Change to
531 TARGET_OPTION_OPTIMIZATION_TABLE.
532 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
533 * config/i386/i386.c (ix86_option_optimization): Change to
534 ix86_option_optimization_table.
535 (TARGET_OPTION_OPTIMIZATION): Change to
536 TARGET_OPTION_OPTIMIZATION_TABLE.
537 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
538 as initializer.
539 * config/ia64/ia64.c (ia64_option_optimization): Change to
540 ia64_option_optimization_table.
541 (TARGET_OPTION_OPTIMIZATION): Change to
542 TARGET_OPTION_OPTIMIZATION_TABLE.
543 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
544 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
545 initializer.
546 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
547 TARGET_OPTION_OPTIMIZATION_TABLE): New.
548 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
549 * config/lm32/lm32.c (lm32_option_optimization_table,
550 TARGET_OPTION_OPTIMIZATION_TABLE): New.
551 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
552 * config/m32r/m32r.c (m32r_option_optimization): Change to
553 m32r_option_optimization_table.
554 (TARGET_OPTION_OPTIMIZATION): Change to
555 TARGET_OPTION_OPTIMIZATION_TABLE.
556 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
557 CAN_DEBUG_WITHOUT_FP): Remove.
558 * config/mcore/mcore.c (mcore_option_optimization): Change to
559 mcore_option_optimization_table.
560 (TARGET_OPTION_OPTIMIZATION): Change to
561 TARGET_OPTION_OPTIMIZATION_TABLE.
562 * config/mep/mep.c (mep_option_optimization): Change to
563 mep_option_optimization_table.
564 (TARGET_OPTION_OPTIMIZATION): Change to
565 TARGET_OPTION_OPTIMIZATION_TABLE.
566 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
567 * config/microblaze/microblaze.c
568 (microblaze_option_optimization_table,
569 TARGET_OPTION_OPTIMIZATION_TABLE): New.
570 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
571 * config/mips/mips.c (mips_option_optimization_table,
572 TARGET_OPTION_OPTIMIZATION_TABLE): New.
573 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
574 * config/mmix/mmix.c (mmix_option_optimization): Change to
575 mmix_option_optimization_table.
576 (TARGET_OPTION_OPTIMIZATION): Change to
577 TARGET_OPTION_OPTIMIZATION_TABLE.
578 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
579 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
580 TARGET_OPTION_OPTIMIZATION_TABLE): New.
581 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
582 * config/pa/pa.c (pa_option_optimization_table,
583 TARGET_OPTION_OPTIMIZATION_TABLE): New.
584 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
585 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
586 pdp11_option_optimization_table.
587 (TARGET_OPTION_OPTIMIZATION): Change to
588 TARGET_OPTION_OPTIMIZATION_TABLE.
589 * config/picochip/picochip.c (picochip_option_optimization_table,
590 TARGET_OPTION_OPTIMIZATION_TABLE): New.
591 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
592 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
593 TARGET_OPTION_OPTIMIZATION_TABLE): New.
594 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
595 * config/rx/rx.c (rx_option_optimization_table,
596 TARGET_OPTION_OPTIMIZATION_TABLE): New.
597 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
598 * config/s390/s390.c (s390_option_optimization): Change to
599 s390_option_optimization_table.
600 (s390_option_override): Update comment.
601 (TARGET_OPTION_OPTIMIZATION): Change to
602 TARGET_OPTION_OPTIMIZATION_TABLE.
603 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
604 * config/score/score.c (score_option_optimization_table,
605 TARGET_OPTION_OPTIMIZATION_TABLE): New.
606 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
607 * config/sh/sh.c (sh_option_optimization): Change to
608 sh_option_optimization_table.
609 (TARGET_OPTION_OPTIMIZATION): Change to
610 TARGET_OPTION_OPTIMIZATION_TABLE.
611 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
612 (sh_option_override, expand_block_move, multcosts, find_barrier,
613 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
614 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
615 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
616 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
617 instead of TARGET_SMALLCODE.
618 * config/sh/sh.opt (mspace): Make into an alias for -Os.
619 * config/sparc/sparc.c (sparc_option_optimization_table,
620 TARGET_OPTION_OPTIMIZATION_TABLE): New.
621 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
622 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
623 TARGET_OPTION_OPTIMIZATION_TABLE): New.
624 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
625 * config/v850/v850.c (v850_option_optimization): Change to
626 v850_option_optimization_table.
627 (TARGET_OPTION_OPTIMIZATION): Change to
628 TARGET_OPTION_OPTIMIZATION_TABLE.
629 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
630 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
631 xtensa_option_optimization_table.
632 (TARGET_OPTION_OPTIMIZATION): Change to
633 TARGET_OPTION_OPTIMIZATION_TABLE.
634 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
635
636 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
637
638 Based on the CFString implementation in FSF apple/trunk branch.
639
640 * target.def (objc_construct_string): New Hook.
641 * doc/tm.texi (objc_construct_string): Document.
642 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
643 * config/t-darwin: Amend build rules for darwin.o.
644 * config/darwin.opt: Add cfstrings flags.
645 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
646 (darwin_objc_construct_string): New.
647 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
648 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
649 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
650 (darwin_fold_builtin): Likewise.
651 (darwin_build_constant_cfstring): Likewise.
652 (darwin_objc_construct_string): Likewise.
653 (darwin_cfstring_p): Likewise.
654 (darwin_enter_string_into_cfstring_table): Likewise.
655 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
656 * config/darwin.c (darwin_running_cxx): New var.
657 (machopic_select_section): Return cfstring_constant_object_section.
658 (darwin_override_options): Set darwin_running_cxx.
659 (add_builtin_field_decl): New.
660 (darwin_init_cfstring_builtins): New.
661 (darwin_build_constant_cfstring): New.
662 (darwin_fold_builtin): New.
663 (cfstring_hash): New.
664 (cfstring_eq): New.
665 (darwin_enter_string_into_cfstring_table): New.
666 * config/darwin-sections.def (cfstring_constant_object_section): New.
667 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
668 (TARGET_OBJC_CONSTRUCT_STRING): Define.
669
670 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
671
672 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
673 TYPE_STUB_DECL instead of TREE_CHAIN.
674 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
675 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
676 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
677 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
678 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
679 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
680 Likewise.
681 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
682
683 2010-10-22 Jie Zhang <jie@codesourcery.com>
684
685 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
686 (copy_blkmode_from_reg): Likewise.
687 (read_complex_part): Likewise.
688 (expand_expr_real_1): Calculate packedp and pass it to
689 extract_bit_field.
690 * expr.h (extract_bit_field): Update declaration.
691 * calls.c (store_unaligned_arguments_into_pseudos): Update call
692 to extract_bit_field.
693 * expmed.c (extract_fixed_bit_field): Update calls to
694 extract_fixed_bit_field.
695 (store_split_bit_field): Likewise.
696 (extract_bit_field_1): Add new argument packedp.
697 (extract_bit_field): Add new argument packedp.
698 (extract_fixed_bit_field): Add new argument packedp and let
699 packed attribute override volatile.
700 * stmt.c (expand_return): Update call to extract_bit_field.
701
702 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
703
704 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
705
706 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
707
708 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
709 of gcc_checking_assert.
710 * sel-sched.c (code_motion_process_successors): Likewise.
711
712 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
713
714 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
715 when stopping because of a different locus on edge or insn.
716 (try_optimize_cfg): Add comment.
717 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
718 block is a forwarder block, propagate locus on the edge.
719 (cfg_layout_merge_blocks): Likewise.
720
721 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
722
723 PR target/45946
724 * config/i386/i386.md (*pushti2): New insn pattern.
725 (pushti2 splitter): New insn splitter.
726 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
727 DWI mode iterator.
728
729 2010-10-21 Paul Koning <ni1d@arrl.net>
730
731 * config/pdp11/pdp11-protos.md (arith_operand,
732 const_immediate_operand, expand_shift_operand,
733 immediate15_operand): Delete
734 * config/pdp11/pdp11.c: Ditto.
735 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
736 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
737 EXTRA_CONSTRAINT): Delete.
738 * config/pdp11/pdp11.md (various): Use standard constraints
739 instead of removed ones.
740 * config/pdp11/constraints.md: New file.
741 * config/pdp11/predicates.md: New file.
742
743 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
744
745 PR c/45834
746 * alias.c (true_dependence_1): Remove obsolete check for QImode.
747 (may_alias_p): Ditto.
748
749 2010-10-21 Martin Jambor <mjambor@suse.cz>
750
751 PR tree-optimization/45875
752 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
753
754 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
755
756 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
757 variables.
758 (create_new_def_for): Likewise.
759
760 2010-10-21 Nick Clifton <nickc@redhat.com>
761
762 * config/mn10300/mn10300.c: Fold code to 80-character width.
763 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
764 MEM, CONST_INT and CONST_DOUBLE.
765 (targetm): Move initialization to end of file.
766 (print_operand): Rename to mn10300_print_operand.
767 (print_operand_address): Rename to mn10300_print_operand_address.
768 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
769 (expand_prologue): Rename to mn10300_expand_prologue.
770 (expand_epilogue): Rename to mn10300_expand_epilogue.
771 (initial_offset): Rename to mn10300_initial_offset.
772 (function_arg): Rename to mn10300_function_arg.
773 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
774 (symbolic_operand): Rename to mn10300_symbolic_operand.
775 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
776 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
777 * config/mn10300/mn10300-protos.h: Update prototypes.
778 * config/mn10300/mn10300.h: Fold code to 80-character width.
779 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
780 MEM, CONST_INT and CONST_DOUBLE.
781 (CPP_SPEC): Move to...
782 (TARGET_CPU_CPP_BUILTINS): ... here.
783 * config/mn10300/mn10300.md: Fold code to 80-character width.
784 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
785 MEM, CONST_INT and CONST_DOUBLE.
786
787 2010-10-21 Ira Rosen <irar@il.ibm.com>
788
789 PR tree-optimization/46049
790 PR tree-optimization/46052
791 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
792 (vect_get_slp_defs): Add arguments.
793 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
794 operands to vect_get_slp_defs.
795 (vectorizable_reduction): Fix comment, pass scalar operands to
796 vect_get_slp_defs.
797 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
798 type to determine number of units in the created vector.
799 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
800 (vectorizable_conversion): Fix comment.
801 (vectorizable_shift): New function.
802 (vectorizable_operation): Move code that handles shifts to
803 vectorizable_shift.
804 (vectorizable_type_demotion): Fix comment, pass scalar operands to
805 vect_get_slp_defs.
806 (vectorizable_type_promotion, vectorizable_store): Likewise.
807 (vectorizable_condition): Fix comment.
808 (vect_analyze_stmt): Call vectorizable_shift.
809 (vect_transform_stmt): Likewise.
810 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
811 Use it as the operand to create vectors for, except reduction
812 initial definition and store. Use operands type.
813 (vect_get_slp_defs): Add new arguments. Pass them to
814 vect_get_constant_vectors.
815
816 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
817
818 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
819 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
820 * cfghooks.c (fixup_reorder_chain): Likewise.
821 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
822 * cgraph.c (cgraph_add_thunk): Likewise.
823 (cgraph_create_edge_1): Likewise.
824 (cgraph_create_virtual_clone): Likewise.
825 * ddg.c (add_cross_iteration_register_deps): Likewise.
826 * dwarf2out.c (modified_type_die): Likewise.
827 * emit-rtl.c (set_mem_alias_set): Likewise.
828 * ggc-zone.c (zone_allocate_marks): Likewise.
829 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
830 * gimple.c (iterative_hash_gimple_type): Likewise.
831 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
832 (create_single_exit_edge): Likewise.
833 * haifa-sched.c (choose_ready): Likewise.
834 * lto-streamer-in.c (input_gimple_stmt): Likewise.
835 * passes.c (execute_todo): Likewise.
836 * sched-ebb.c (begin_schedule_ready): Likewise.
837 * sel-sched.c (code_motion_process_successors): Likewise.
838 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
839 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
840 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
841 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
842 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
843 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
844 (ssa_conflicts_add): Likewise.
845 * tree-ssa-copy.c (replace_exp): Likewise.
846 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
847 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
848 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
849 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
850 (compute_antic): Likewise.
851 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
852 (add_dependence): Likewise.
853 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
854 * tree-vrp.c (supports_overflow_infinity): Likewise.
855 (make_overflow_infinity, negative_overflow_infinity): Likewise.
856 (avoid_overflow_infinity, register_new_assert_for): Likewise.
857 (process_assert_insertions_for): Likewise.
858 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
859 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
860 (intersect_loc_chains, variable_merge_over_cur): Likewise.
861
862 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
863
864 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
865 * reload1.c (has_nonexceptional_receiver): Likewise.
866 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
867 (create_new_def_for): Likewise.
868 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
869 (merge_phi_nodes): Likewise.
870 (has_abnormal_incoming_edge_p): Delete.
871
872 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
873
874 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
875
876 2010-10-21 Richard Guenther <rguenther@suse.de>
877 Michael Matz <matz@suse.de>
878
879 PR tree-optimization/45764
880 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
881 Adjust initial misalignment for negative DR_STEP.
882 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
883 do not have the same alignment over the whole iteration domain.
884
885 2010-10-21 Richard Guenther <rguenther@suse.de>
886
887 PR tree-optimization/46111
888 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
889
890 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
891
892 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
893
894 2010-10-21 Tristan Gingold <gingold@adacore.com>
895
896 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
897 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
898
899 2010-10-21 Tristan Gingold <gingold@adacore.com>
900
901 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
902 signal_frame.
903 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
904
905 2010-10-21 Tristan Gingold <gingold@adacore.com>
906
907 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
908 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
909
910 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
911
912 * basic-block.h (find_fallthru_edge): Define.
913 * cfgcleanup.c (merge_blocks_move): Use it.
914 (try_crossjump_bb): Likewise.
915 * cfglayout.c (fixup_reorder_chains): Likewise.
916 (fixup_fallthru_exit_predecessor): Likewise.
917 * cfgrtl.c (rtl_split_edge): Likewise.
918 (rtl_verify_flow_info): Likewise.
919 * function.c (thread_prologue_and_epilogue_insns): Likewise.
920 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
921 * ifcvt.c (block_fallthru): Likewise.
922 * reload1.c (fixup_abnormal_edges): Likewise.
923 * sched-ebb.c (being_schedule_ready): Likewise.
924 (schedule_ebb): Likwise.
925 * sched-rgn.c (find_single_block_region): Likewise.
926 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
927 * tree-complex.c (expand_complex_move): Likewise.
928 * sched-int.h (find_fallthru_edge): Rename to...
929 (find_fallthru_edge_from): ...this.
930 * haifa-sched.c (find_fallthru_edge): Rename to...
931 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
932 (init_before_recovery): Call find_fallthru_edge_from.
933 * sel-sched-ir.c (merge_fences): Likewise.
934 * sel-sched.c (in_fallthru_bb_p): Likewise.
935 (move_cond_jump): Likewise.
936
937 2010-10-20 Paul Koning <ni1d@arrl.net>
938
939 * config/pdp11/pdp11.md (various): Fix conditions on a number of
940 insn to check for target 11/40 or higher.
941
942 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
943
944 * parser.c (c_parser_objc_method_type): Mark inline. Return a
945 bool instead of a tree.
946 (c_parser_objc_method_decl): Added bool argument. Updated call to
947 objc_build_method_signature.
948 (c_parser_objc_method_definition): Do not call
949 objc_set_method_type. Updated calls to c_parser_objc_method_type,
950 c_parser_objc_method_decl and objc_start_method_definition.
951 (c_parser_objc_methodproto): Do not call objc_set_method_type.
952 Updated calls to c_parser_objc_method_type,
953 c_parser_objc_method_decl and objc_add_method_declaration.
954
955 2010-10-20 Jakub Jelinek <jakub@redhat.com>
956
957 PR tree-optimization/45919
958 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
959 array members.
960
961 PR tree-optimization/46066
962 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
963 instead of gsi_last_bb.
964
965 2010-10-20 DJ Delorie <dj@redhat.com>
966
967 * config/m32c/m32c.c (m32c_option_override): Always disable
968 function-cse in 16-bit mode. Indirect calls are always worse than
969 direct calls as there is no 16-bit indirect call opcode.
970 (m32c_override_options_after_change): New, likewise.
971
972 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
973
974 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
975 emitting the conditional move in the inner mode of the SUBREG.
976
977 2010-10-20 Anatoly Sokolov <aesok@post.ru>
978
979 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
980 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
981 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
982 (ia64_preferred_reload_class): Make static. Change rclass argument
983 and result types from enum reg_class to reg_class_t.
984
985 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
986
987 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
988 call for single operand expression.
989
990 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
991
992 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
993 if there is a call statement to pure or const function in the block.
994
995 2010-10-20 Paul Koning <pkoning@equallogic.com>
996
997 Fix several build errors for pdp11 target.
998 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
999 (cbranchdf4): Conditional on TARGET_FPU.
1000 (movdf): Ditto; correct alternatives check.
1001 (movmemhi): Fix predicate and constraint.
1002 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
1003
1004 2010-10-20 Richard Guenther <rguenther@suse.de>
1005
1006 PR lto/45667
1007 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
1008 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
1009 (verify_gimple_assign_single): Disable ADDR_EXPR type check
1010 when in LTO.
1011
1012 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
1013
1014 PR fortran/42169
1015 * ira-emit.c (store_can_be_removed_p): Return false instead of
1016 gcc_unreachable.
1017
1018 2010-10-20 Dmitry Melnik <dm@ispras.ru>
1019
1020 * fold-const.c (fold_binary_loc): New transformation.
1021
1022 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
1023
1024 PR target/46085
1025 * config/i386/sse.md (reduc_splus_v8sf): Updated.
1026 (reduc_splus_v4df): Likewise.
1027
1028 2010-10-20 Richard Guenther <rguenther@suse.de>
1029
1030 PR tree-optimization/45860
1031 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
1032 conditional store replacement for non-register type stores.
1033
1034 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
1035
1036 * stor-layout.c (skip_simple_constant_arithmetic): New function.
1037 (self_referential_size): Use it instead of skip_simple_arithmetic.
1038
1039 2010-10-20 Olivier Hainque <hainque@adacore.com>
1040
1041 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
1042 If the current function calls eh_return, claim live all registers
1043 that we need to check for liveness otherwise.
1044
1045 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
1046
1047 * c-decl.c (c_write_global_declarations): Call
1048 objc_write_global_declarations when compiling Objective-C.
1049 * c-lang.c (finish_file): Removed.
1050
1051 2010-10-19 DJ Delorie <dj@redhat.com>
1052
1053 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
1054 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
1055 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
1056 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
1057 * doc/tm.texi: Regenerate.
1058 * targhooks.h (default_label_align_after_barrier_max_skip,
1059 default_loop_align_max_skip, default_label_align_max_skip,
1060 default_jump_align_max_skip): Declare.
1061 * target.def (label_align_after_barrier_max_skip): New.
1062 (loop_align_max_skip): New.
1063 (label_align_max_skip): New.
1064 (jump_align_max_skip): New.
1065 * system.h (poison): Add those macros to the list.
1066 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
1067 (LOOP_ALIGN_MAX_SKIP): Remove.
1068 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
1069 (JUMP_ALIGN_MAX_SKIP): Remove.
1070 (default_label_align_after_barrier_max_skip): New.
1071 (default_loop_align_max_skip): New.
1072 (default_label_align_max_skip): New.
1073 (default_jump_align_max_skip): New.
1074 (compute_alignments): Use the new hooks.
1075 (shorten_branches): Likewise.
1076
1077 2010-10-19 Richard Henderson <rth@redhat.com>
1078
1079 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
1080 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
1081 (fma4i_fmadd_<mode>): New.
1082 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
1083 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
1084 standard fma patterns.
1085 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
1086 enable for FMA.
1087 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1088 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
1089 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
1090
1091 2010-10-19 Paul Koning <pkoning@equallogic.com>
1092
1093 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
1094 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
1095
1096 2010-10-19 Richard Henderson <rth@redhat.com>
1097
1098 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
1099 (fmadf4, *fmsdf4, *nfmadf4): New.
1100 (fmaxf4, *fmsxf4, *nfmaxf4): New.
1101
1102 2010-10-19 Michael Eager <eager@eagercon.com>
1103
1104 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
1105 Use sjlj unwind info for exceptions.
1106
1107 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
1108
1109 PR fortran/43414
1110 * dwarf2out.c (add_calling_convention_attribute): Flag main
1111 Fortran subroutine with DW_AT_main_subprogram.
1112
1113 2010-10-19 Nick Clifton <nickc@redhat.com>
1114
1115 * config/rx/rx.c (rx_function_value): Small integer types are
1116 promoted to SImode.
1117 (rx_promote_function_mode): New function.
1118 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1119
1120 2010-10-19 Nick Clifton <nickc@redhat.com>
1121
1122 * config/mep/mep.c (mep_print_operand): Use
1123 targetm.strip_name_encoding.
1124 (mep_output_aligned_common): Likewise.
1125
1126 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
1127
1128 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
1129
1130 2010-10-18 Richard Henderson <rth@redhat.com>
1131
1132 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
1133 (fma (neg a) (neg b) c) and (fma a (neg b) c).
1134
1135 2010-10-18 Richard Henderson <rth@redhat.com>
1136
1137 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
1138 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
1139 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
1140 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
1141 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
1142 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
1143 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
1144 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
1145 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
1146 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
1147 (bdesc_multi_arg): Remove the corresponding builtins.
1148 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
1149 (UNSPEC_FMA4_FMSUBADD): Remove.
1150 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
1151 * config/i386/sse.md (FMA4MODEF4): Remove.
1152 (FMAMODE): Add.
1153 (fma<mode>4): New expander.
1154 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
1155 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
1156 (*fma4i_fmsub_<mode>): Similarly.
1157 (*fma4i_fnmadd_<mode>): Similarly.
1158 (*fma4i_fnmsub_<mode>): Similarly.
1159 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
1160 with the first operand.
1161 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
1162 of explicit arithmetic. Macroize with AVXMODEF2P.
1163 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
1164 (xop_frcz<mode>2): Macroize with FMAMODE.
1165 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
1166 the first operand.
1167 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
1168 extra negations.
1169 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
1170 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
1171 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
1172 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
1173 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
1174 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
1175 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
1176 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
1177
1178 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
1179
1180 PR rtl-optimization/45966
1181 * combine.c (try_combine): If added_sets_2, deal with the case
1182 where i0 feeds i1 and i1 feeds i2.
1183
1184 2010-10-18 Jan Hubicka <jh@suse.cz>
1185
1186 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
1187 preserve flags before trying to guess on visibility.
1188 (varpool_externally_visible_p): New function.
1189 (function_and_variable_visibility): Use it.
1190
1191 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1192
1193 Implemented parsing @synthesize and @dynamic for Objective-C.
1194 * c-parser.c (c_parser_external_declaration): Recognize
1195 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
1196 (c_parser_objc_at_synthesize_declaration): New.
1197 (c_parser_objc_at_dynamic_declaration): New.
1198
1199 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1200
1201 * c-parser.c (c_parser_objc_class_declaration): After finding an
1202 error, parse the whole declaration then reset parser->error.
1203
1204 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1205
1206 PR target/46041
1207 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
1208 * builtins.c (mode_has_fma): Ditto.
1209
1210 2010-10-18 Steve Ellcey <sje@cup.hp.com>
1211
1212 PR target/36898
1213 PR middle-end/43760
1214 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
1215
1216 2010-10-18 Joseph Myers <joseph@codesourcery.com>
1217
1218 * config/i386/i386.c (ix86_option_override_internal): Define and
1219 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
1220 default.
1221 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1222 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
1223
1224 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1225
1226 Merge from 'apple/trunk' branch on FSF servers.
1227 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
1228 following Objective-C change:
1229
1230 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
1231
1232 Radar 4301047
1233 * c-parse.in (objc_quals): Build objc qualifier list same way
1234 as gcc-3.3
1235
1236 2010-10-18 Jan Hubicka <jh@suse.cz>
1237
1238 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
1239 function_and_variable_visibility): Revert accidental commit.
1240
1241 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
1242
1243 Merge from 'apple/trunk' branch on FSF servers.
1244 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
1245 the following Objective-C change:
1246
1247 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
1248
1249 Radar 4204796
1250 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
1251 'volatilized' type used in a typeof operator.
1252
1253 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1254
1255 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
1256 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
1257 rewrite modelled on gimple_purge_dead_eh_edges.
1258 (gimple_purge_all_dead_abnormal_call_edges): New function.
1259 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
1260 directly instead of through gimple_purge_dead_abnormal_call_edges.
1261 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
1262 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
1263 removed AB side-effects from one of its statements.
1264 (init_pre): Initialize need_ab_cleanup.
1265 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
1266 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
1267
1268 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1269
1270 PR c/46015
1271 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
1272 on computed goto argument.
1273
1274 2010-10-18 Richard Guenther <rguenther@suse.de>
1275
1276 PR tree-optimization/45967
1277 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
1278 (could_have_pointers): Likewise.
1279 (handle_rhs_call, handle_const_call, handle_pure_call,
1280 find_func_aliases, intra_create_variable_infos): Remove calls to them.
1281 (struct fieldoff): Add must_have_pointers field.
1282 (type_must_have_pointers): New function.
1283 (field_must_have_pointers): Likewise.
1284 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
1285 Adjust field merging.
1286 (create_function_info_for): May-have-pointers of varinfo is
1287 almost always true.
1288 (create_variable_info_for_1): Likewise.
1289
1290 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
1291
1292 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
1293 of operands to vec_concat.
1294
1295 2010-10-18 Richard Guenther <rguenther@suse.de>
1296
1297 PR lto/44950
1298 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
1299 also clear references to entries of it.
1300
1301 2010-10-18 Andi Kleen <ak@linux.intel.com>
1302
1303 PR other/43448
1304 * gccbug.in: Remove.
1305 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
1306 (doc, distclean, install-common): Remove reference to gccbug.
1307 * configure: Regenerate.
1308 * configure.ac (all_outputs): Remove gccbug.
1309 * doc/configfiles.texi: Remove references to gccbug.
1310 * doc/sourcebuild.texi: Dito.
1311
1312 2010-10-18 Jakub Jelinek <jakub@redhat.com>
1313
1314 PR middle-end/46019
1315 * fold-const.c (fold_binary_loc): If integer_pow2p has
1316 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
1317
1318 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
1319 Jeremie Salvucci <jeremie.salvucci@free.fr>
1320
1321 * gengtype.c (verbosity_level): Add variable.
1322 (set_gc_used): Count variables for verbosity.
1323 (close_output_files): Backing up files, counting written ones
1324 verbosily.
1325 (write_types): Count emitted functions for verbosity. Added
1326 debug messages.
1327 (write_enum_defn): Count structures for verbosity. Added debug
1328 messages.
1329 (gengtype_long_options): Add "verbose" & "backupdir".
1330 (print_usage): Ditto.
1331 (main): Verbose display of parsed files.
1332
1333 * gengtype.h (verbosity_level): Add declaration.
1334
1335 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
1336
1337 * gengtype.c (parse_program_options): Add allocation of
1338 plugin_files, and correct test on nb_plugin_files.
1339
1340 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1341
1342 Merge from 'apple/trunk' branch on FSF servers.
1343
1344 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
1345
1346 Radar 4133425
1347 * c-decl.c (undeclared_variable): Issue diagnostic on
1348 private 'ivar' access.
1349
1350 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
1351
1352 PR target/46051
1353 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
1354 generated sequence to match *avx_vperm2f128<mode>_nozero.
1355 (vec_interleave_lowv4df): Ditto.
1356 (vec_interleave_highv8sf): Ditto.
1357 (vec_interleave_lowv8sf): Ditto.
1358
1359 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
1360
1361 * libgcov.c (create_file_directory): Enable it for win32 case.
1362 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
1363 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
1364 (GCOV_PREFIX_SKIP): Likewise.
1365
1366 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1367
1368 * doc/objc.texi (GNU Objective-C runtime API): New section.
1369 (Modern GNU Objective-C runtime API): New section.
1370 (Traditional GNU Objective-C runtime API): New section.
1371 (Executing code before main): Mention that this section is
1372 specific to the GNU Objective-C runtime.
1373 (Garbage Collection): Same.
1374
1375 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
1376
1377 * c-parser.c (c_parser_for_statement): Move initialization of
1378 cond and incr before if.
1379
1380 2010-10-17 Anatoly Sokolov <aesok@post.ru>
1381
1382 * target.def (preferred_output_reload_class): New hook.
1383 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
1384 * doc/tm.texi: Regenerate.
1385 * targhooks.c (default_preferred_output_reload_class): New function.
1386 * targhooks.h (default_preferred_output_reload_class): Declare.
1387 * reload.c (find_dummy_reload): Change rclass argument type from
1388 enum reg_class to reg_class_t. Change this_alternative array type
1389 from enum reg_class to reg_class_t.
1390 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
1391 (push_reload): Change preferred_class variable type to reg_class_t.
1392 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
1393 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
1394 argument type from enum reg_class to reg_class_t. Use
1395 HARD_REGISTER_NUM_P predicate.
1396 * recog.h (reg_fits_class_p): Update prototype.
1397
1398 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1399 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
1400 Remove.
1401 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
1402 static. Change regclass argument and result types from enum reg_class
1403 to reg_class_t.
1404 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1405
1406 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
1407
1408 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
1409 visibility enum, and handle @package.
1410
1411 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
1412
1413 * doc/objc.texi (What you can and what you cannot do in +load):
1414 Document that sending messages to constant string objects in +load
1415 is not guaranteed to work.
1416
1417 2010-10-16 Jan Hubicka <jh@suse.cz>
1418
1419 PR middle-end/44206
1420 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
1421 existence of refrences before removing the function.
1422
1423 2010-10-16 Jan Hubicka <jh@suse.cz>
1424
1425 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
1426 only_called_at_startup and only_called_at_exit.
1427 (cgraph_propagate_frequency): Compute only_called_at_startup and
1428 only_called_at_exit.
1429 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
1430 only_called_at_exit.
1431 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
1432 flags.
1433 * predict.c (compute_function_frequency): Initialize the new flags.
1434
1435 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
1436
1437 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
1438 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
1439 on the bounds of its domain.
1440 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
1441
1442 2010-10-16 Anatoly Sokolov <aesok@post.ru>
1443
1444 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
1445 * config/avr/avr-protos.h (preferred_reload_class): Remove.
1446 * config/avr/avr.c (preferred_reload_class): Remove.
1447 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
1448 * config/pa/pa.c (emit_move_sequence): Update comment
1449 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
1450 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
1451 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
1452 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
1453 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
1454 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
1455 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
1456 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
1457 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
1458 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
1459 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
1460 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
1461 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
1462
1463 2010-10-16 Joseph Myers <joseph@codesourcery.com>
1464
1465 * opts.c (set_fast_math_flags,
1466 set_unsafe_math_optimizations_flags): Make static.
1467 * toplev.h (set_fast_math_flags,
1468 set_unsafe_math_optimizations_flags): Remove prototypes.
1469
1470 2010-10-16 Joseph Myers <joseph@codesourcery.com>
1471
1472 * config/arm/arm.c (arm_option_optimization): Set
1473 flag_section_anchors to 1 not 2.
1474 * config/i386/i386.c (ix86_option_override_internal): Check
1475 global_options_set.x_flag_zee and
1476 global_options_set.x_flag_omit_frame_pointer.
1477 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
1478 flag_zee to 2.
1479 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
1480 global_options_set.x_flag_omit_frame_pointer.
1481 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
1482 opts->x_flag_section_anchors to 1 not 2.
1483 * config/sh/sh.c (sh_option_optimization): Don't set
1484 flag_schedule_insns to 2.
1485 (sh_option_override): Check
1486 global_options_set.x_flag_schedule_insns.
1487 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
1488
1489 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
1490
1491 * configure.ac: Make sure inhibit_libc remains false for mingw targets
1492 as cross.
1493 * configure: Regenerated.
1494
1495 2010-10-15 Xinliang David Li <davidxl@google.com>
1496
1497 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
1498 function.
1499 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
1500 into a recursive function.
1501
1502 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
1503
1504 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
1505 (*movdfcc_1): ditto.
1506
1507 2010-10-15 Joseph Myers <joseph@codesourcery.com>
1508
1509 * target.def (target_option.init_struct): New hook.
1510 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
1511 * doc/tm.texi: Regenerate.
1512 * hooks.c (hook_void_gcc_optionsp): New.
1513 * hooks.h (hook_void_gcc_optionsp): Declare.
1514 * langhooks-def.h (lhd_init_options_struct): Remove.
1515 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
1516 * langhooks.c (lhd_init_options_struct): Remove.
1517 * opts.c (init_options_struct): Also call
1518 targetm.target_option.init_struct.
1519 * config/i386/i386.c (ix86_option_init_struct,
1520 TARGET_OPTION_INIT_STRUCT): New.
1521 (ix86_option_optimization): Move some settings to
1522 ix86_option_init_struct.
1523 * config/pdp11/pdp11.c (pdp11_option_init_struct,
1524 TARGET_OPTION_INIT_STRUCT): New.
1525 (pdp11_option_optimization): Move some settings to
1526 pdp11_option_init_struct.
1527 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
1528 rs6000_option_init_struct. Use options structure pointer.
1529 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
1530 * config/s390/s390.c (s390_option_init_struct,
1531 TARGET_OPTION_INIT_STRUCT): New.
1532 (s390_option_optimization): Don't set
1533 flag_asynchronous_unwind_tables here.
1534 * config/sh/sh.c (sh_option_init_struct,
1535 TARGET_OPTION_INIT_STRUCT): New.
1536 (sh_option_optimization): Don't set flag_finite_math_only here.
1537 * config/spu/spu.c (spu_option_optimization): Replace by
1538 spu_option_optimization. Use options structure pointer.
1539 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
1540
1541 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1542
1543 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
1544
1545 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
1546 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
1547 (Standard names): Document fma.
1548
1549 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
1550 __FP_FAST_FMAF, __FP_FAST_FMAL.
1551
1552 * builitns.c (expand_builtin_mathfn_ternary): New function for
1553 expanding ternary math functions, like fma.
1554 (expand_builtin): Call it for the fma builtins.
1555
1556 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
1557 ops at present.
1558
1559 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
1560 vectorizable functions to support vectorizing fma.
1561
1562 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
1563 Handle fma builtins.
1564
1565 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
1566 (UNSPEC_VSX_MSUB): Ditto.
1567 (UNSPEC_VSX_NMADD): Ditto.
1568 (UNSPEC_VSX_NMSUB): Ditto.
1569 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
1570 of UNSPEC. Renumber combiner patterns.
1571 (vsx_fmsub<mode>4*): Ditto.
1572 (vsx_fnmadd<mode>4*): Ditto.
1573 (vsx_fnmsub<mode>4*): Ditto.
1574
1575 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
1576 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
1577 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
1578 (altivec_vmaddfp_1): Ditto.
1579 (altivec_vmaddfp_2): Ditto.
1580 (atlivec_mulv4sf3): Ditto.
1581 (altivec_vnmsubfp): Ditto.
1582 (altivec_vnmsubfp_1): Ditto.
1583 (altivec_vnmsubfp_2): Ditto.
1584 (altivec_vnmsubfp_3): Delete.
1585
1586 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
1587 (fmasf4_fpr): Ditto.
1588 (fmssf4_fpr): Ditto.
1589 (fnmasf4_fpr): Ditto.
1590 (fnmssf4_fpr): Ditto.
1591 (fmadf4): Ditto.
1592 (fmadf4_fpr): Ditto.
1593 (fmsdf4_fpr): Ditto.
1594 (fnmadf4_fpr): Ditto.
1595 (fnmsdf4_fpr): Ditto.
1596
1597 * optabs.h (OTI_fma): Add fma optab.
1598 (fma_optab): Ditto.
1599
1600 * genopinit.c (optabs): Set fma optab.
1601
1602 * rtl.def (FMA): Add FMA rtl.
1603
1604 * tree.h (mode_has_fma): New function to return if MODE supports a
1605 fast multiply and add instruction.
1606 * builtins.c (mode_has_fma): Ditto.
1607
1608 2010-10-15 Jan Hubicka <jh@suse.cz>
1609
1610 * lto-streamer-out.c (write_symbol): Use pointer set of seen
1611 objects instead of bitmap.
1612 (produce_symtab): Likewise; output defined symbols first.
1613
1614 2010-10-15 Jie Zhang <jie@codesourcery.com>
1615
1616 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
1617 Option Summary and Index.
1618
1619 2010-10-15 Richard Guenther <rguenther@suse.de>
1620
1621 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
1622 for automatic variables again.
1623
1624 2010-10-15 Joseph Myers <joseph@codesourcery.com>
1625
1626 * doc/extend.texi (Variable Length): Don't refer to VLAs not
1627 conforming to C99.
1628
1629 2010-10-15 Joseph Myers <joseph@codesourcery.com>
1630
1631 * config/rx/rx.c (rx_option_optimization): Change to
1632 rx_override_options_after_change. Don't change
1633 flag_lto_compression_level. Don't check for changes to whether
1634 FPU instructions can be used. Check and set only
1635 flag_finite_math_only, not other fast-math flags.
1636 (rx_option_override): Call rx_override_options_after_change.
1637 (TARGET_OPTION_OPTIMIZATION): Remove.
1638 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1639
1640 2010-10-15 Joseph Myers <joseph@codesourcery.com>
1641
1642 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
1643 disable section anchors for lang_hooks.name[4] != 'O'.
1644
1645 2010-10-15 Joseph Myers <joseph@codesourcery.com>
1646
1647 * config/frv/frv.c (frv_option_optimization,
1648 TARGET_OPTION_OPTIMIZATION): Remove.
1649 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
1650
1651 2010-10-15 Michael Matz <matz@suse.de>
1652
1653 * cgraphunit.c (clone_of_p): Define unconditionally.
1654
1655 2010-10-15 Richard Guenther <rguenther@suse.de>
1656
1657 PR lto/45957
1658 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
1659
1660 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
1661
1662 * ifcvt.c (find_active_insn_before): New function.
1663 (find_active_insn_after): New function.
1664 (cond_exec_process_if_block): Use new functions to replace
1665 prev_active_insn() and next_active_insn().
1666
1667 2010-10-14 Yao Qi <yao@codesourcery.com>
1668
1669 PR target/45447
1670 * config/arm/arm.c (arm_build_builtin_va_list): Assign
1671 va_list_name to TYPE_STUB_DECL (va_list_type).
1672
1673 2010-10-14 Jan Hubicka <jh@suse.cz>
1674
1675 PR middle-end/45621
1676 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
1677 redirected to clone, be happy.
1678 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
1679 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
1680 former_clone_of unconditionally.
1681
1682 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1683
1684 Merge from FSF apple 'trunk' branch.
1685 2006 Fariborz Jahanian <fjahanian@apple.com>
1686
1687 Radars 4436866, 4505126, 4506903, 4517826
1688 * c-parser.c (c_parser, objc_property_attr_context) New flag.
1689 (c_lex_one_token): Handle property attributes.
1690 (c_parser_external_declaration): Handle @property.
1691 (c_parser_declaration_or_fndef): Warn on invalid attributes before
1692 @alias, @class, @end and @property objc keywords.
1693 (c_parser_objc_methodprotolist): Handle @property.
1694 (c_parser_objc_property_attrlist): New.
1695 (c_parser_objc_at_property): New.
1696 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
1697 (build_modify_expr): Likewise.
1698
1699 2010-10-14 Jakub Jelinek <jakub@redhat.com>
1700
1701 PR tree-optimization/46008
1702 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
1703
1704 2010-10-14 Richard Guenther <rguenther@suse.de>
1705
1706 PR tree-optimization/44913
1707 * tree-data-ref.c (disjoint_objects_p): Remove.
1708 (dr_may_alias_p): Simplify. Only hand the base object to
1709 the alias-oracle.
1710 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
1711 some more trees, bail out instead of asserting.
1712 (ptr_derefs_may_alias_p): Likewise. Export.
1713 (refs_may_alias_p_1): Handle STRING_CSTs.
1714 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
1715
1716 2010-10-14 Joseph Myers <joseph@codesourcery.com>
1717
1718 PR c/45969
1719 * c-typeck.c (build_binary_op): Don't try to compute a semantic
1720 type with excess precision for boolean operations.
1721
1722 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
1723 Basile Starynkevitch <basile@starynkevitch.net>
1724
1725 * gengtype.c: Include getopt.h and version.h.
1726
1727 (lang_bitmap, struct outf, outf_p)
1728 (get_output_file_with_visibility, oprintf): Definitions moved to
1729 gengtype.h
1730 (output_files, header_file, srcdir, srcdir_len, this_file)
1731 (do_dump): No more static variables.
1732 (do_debug): New.
1733 (dbgprint_count_type_at): Added new function.
1734 (gengtype_long_options): New.
1735 (print_usage, print_version, parse_program_options): New.
1736 (main): Call parse_program_options, and removed old option
1737 handling code. Added some debug output.
1738
1739 * gengtype.h: Updated copyright year.
1740 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
1741 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
1742 Moved from gengtype.c to here.
1743 (do_debug, read_state_filename, write_state_filename): New variables.
1744 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
1745
1746 * Makefile.in:
1747 (REVISION): Always defined.
1748 (version.o): Removed ifdef REVISION_c.
1749 (s-gtype): Pass arguments to build/gengtype program.
1750 (build/version.o): Added building rule.
1751 (build/gengtype$(build_exeext)): Added build/version.o.
1752
1753 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
1754
1755 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
1756 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
1757 __strong macros.
1758
1759 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1760
1761 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
1762 may_trap_or_fault_p instead of may_trap_p predicate.
1763 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
1764 (substitute_placeholder_in_expr): Likewise.
1765 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
1766 flag on MEM_REF nodes.
1767 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
1768 flags on INDIRECT_REF nodes.
1769
1770 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
1771
1772 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
1773 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
1774 (arm*-*-eabi*) <tm_file>: Likewise.
1775 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
1776 (frv-*-*linux*) <tm_file>: Likewise.
1777 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
1778 and associated helper macros.
1779 * config/frv/frv-abi.h: Delete.
1780
1781 2010-10-14 Richard Guenther <rguenther@suse.de>
1782
1783 PR lto/44561
1784 * tree.def (NULLPTR_TYPE): New tree code.
1785 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
1786 * dwarf2out.c (is_base_type): Likewise.
1787 (gen_type_die_with_usage): Likewise.
1788 * sdbout.c (plain_type_1): Likewise.
1789 * tree.c (build_int_cst_wide): Likewise.
1790 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
1791
1792 2010-10-14 Joseph Myers <joseph@codesourcery.com>
1793
1794 * params.c (params_finished): New.
1795 (add_params): Assert !params_finished.
1796 (finish_params): New.
1797 (set_param_value_internal): Take params and params_set
1798 parameters. Assert params_finished.
1799 (set_param_value, maybe_set_param_value): Take params and
1800 params_set parameters. Update calls to set_param_value_internal.
1801 (set_default_param_value): Assert !params_finished. Don't use
1802 set_param_value_internal.
1803 (default_param_value, init_param_values): New.
1804 * params.h (struct param_info): Change value to default_value.
1805 Remove set.
1806 (set_param_value, maybe_set_param_value): Add params and
1807 params_set parameters.
1808 (PARAM_VALUE): Get parameters from global_options.
1809 (PARAM_SET_P): Remove.
1810 (finish_params, default_param_value, init_param_values): New.
1811 * common.opt (param_values): New Variable.
1812 * config/arm/arm.c (arm_option_override): Pass extra arguments to
1813 maybe_set_param_value.
1814 * config/i386/i386.c (ix86_option_override_internal): Pass extra
1815 arguments to maybe_set_param_value.
1816 * config/picochip/picochip.c (picochip_option_override): Pass
1817 extra arguments to maybe_set_param_value.
1818 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
1819 extra arguments to maybe_set_param_value.
1820 * config/s390/s390.c (s390_option_override): Use
1821 maybe_set_param_value instead of set_param_value. Pass extra
1822 arguments to maybe_set_param_value.
1823 * config/sparc/sparc.c (sparc_option_override): Pass extra
1824 arguments to maybe_set_param_value.
1825 * config/spu/spu.c (spu_option_override): Pass extra arguments to
1826 maybe_set_param_value.
1827 * opts.c (handle_param): Take opts and opts_set parameters.
1828 Update call to set_param_value.
1829 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
1830 initial_loop_invariant_max_bbs_in_loop): Remove.
1831 (init_options_once): Don't set them.
1832 (init_options_struct): Initialize parameters structures.
1833 (default_options_optimization): Use default_param_value when
1834 restoring defaults. Update calls to maybe_set_param_value.
1835 (finish_options): Update calls to maybe_set_param_value.
1836 (common_handle_option): Update calls to handle_param and
1837 set_param_value.
1838 * toplev.c (DEFPARAM): Update definition for changes to param_info.
1839 (general_init): Call finish_params.
1840
1841 2010-10-14 Nick Clifton <nickc@redhat.com>
1842
1843 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
1844 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
1845 (FIRST_PSEUDO_REGISTER): Increase by one.
1846 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
1847 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
1848 (MODES_TIEABLE): Call mn10300_modes_tieable.
1849 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
1850 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
1851 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
1852 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
1853 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
1854 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
1855 (mn10300_cc_status_mdep): Delete.
1856 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
1857 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
1858 the combine-stack-adjust pass.
1859 (print_operand): Use the mode of the comparison operation to
1860 select the comparison suffix.
1861 (notice_update_cc): Delete.
1862 (mn10300_secondary_reload_class): Remove test for stack pointer
1863 based arithmetic.
1864 (output_tst): Rename to mn10300_output_cmp.
1865 (impossible_plus_operand): Move into predicates.md.
1866 (mn10300_legitimize_address): Make static.
1867 (mn10300_legitimate_address_p): Make static. Only allow SI sized
1868 constant pic operands.
1869 (mn10300_legitimate_constant_p): New function.
1870 (mn10300_case_values_threshold): Make static.
1871 (mn10300_hard_regno_mode_ok): New function.
1872 (mn10300_modes_tieable): New function.
1873 (mn10300_select_cc_mode): New function.
1874 * config/mn10300/predicates.md (impossible_plus_operand): Define.
1875 * config/mn10300/mn10300-protos.h: Tidy.
1876 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
1877 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
1878 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
1879 with clobbers or sets of CC_REG.
1880 (CC_REG): Define.
1881 (mov*): Remove use of CLR instruction.
1882 (cbranch_si4_<code>): New pattern/split.
1883 (integer_conditional_branch): New pattern.
1884 (cbranch_sf4_<code>): New pattern/split.
1885 (float_conditional_branch): New pattern.
1886 (casesi): Use addsi3 pattern instead of movsi pattern to add and
1887 move a value at the same time.
1888 (cc0 peepholes): Remove.
1889
1890 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
1891
1892 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
1893 on RTX_FRAME_RELATED_P insns and the insn to which
1894 NOTE_INSN_EPILOGUE_BEG is attached.
1895 * sched-vis.c (print_value): Allow NULL value.
1896
1897 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
1898
1899 PR rtl-optimization/45570
1900 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
1901 assert that we are pipelining outer loops. Allow returning
1902 zero predecessors.
1903
1904 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
1905
1906 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
1907 (tidy_control_flow): Tidy vertical space.
1908 (sel_remove_bb): New variable idx. Use it to remember the basic
1909 block index before deleting the block.
1910 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
1911 (sel_merge_blocks): ... here.
1912 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
1913
1914 2010-10-14 Jakub Jelinek <jakub@redhat.com>
1915
1916 * cse.c (is_dead_reg): Change into inline function that is not
1917 called through for_each_rtx.
1918 (set_live_p): Adjust caller.
1919 (insn_live_p): Don't reset DEBUG_INSNs here.
1920 (struct dead_debug_insn_data): New data.
1921 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
1922 (delete_trivially_dead_insns): If there is just one setter for the
1923 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
1924 and add DEBUG_INSN for it right before the removed setter and
1925 use the DEBUG_EXPR instead of the dead pseudo.
1926
1927 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
1928
1929 * et-forest.c (et_nca): Return NULL immediately when
1930 the dominance forest has disjoint components.
1931
1932 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
1933
1934 * ira.c (setup_class_hard_regs): Fix typo in indexing
1935 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
1936
1937 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
1938
1939 * graph.c (inbb): New variable.
1940 (start_bb): Set inbb to 1 if output is inside of a building block.
1941 (end_bb): Check if output is inside of a building block.
1942
1943 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
1944
1945 PR rtl-optimization/45912
1946 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
1947 regno of registers instead of their index to compute the alignment.
1948
1949 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
1950
1951 * config/i386/i386.c (ix86_build_const_vector): Check vector
1952 mode instead of scalar mode.
1953 (ix86_build_signbit_mask): Likewise.
1954 (ix86_expand_fp_absneg_operator): Updated.
1955 (ix86_expand_copysign): Likewise.
1956 (ix86_expand_int_vcond): Likewise.
1957 (ix86_emit_swdivsf): Likewise.
1958 (ix86_sse_copysign_to_positive): Likewise.
1959 (ix86_expand_sse_fabs): Likewise.
1960 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
1961 * config/i386/sse.md (copysign<mode>3): Likewise.
1962 (sse2_cvtudq2ps): Likewise.
1963 (vec_unpacku_float_hi_v4si): Likewise.
1964 (vec_unpacku_float_lo_v4si): Likewise.
1965
1966 * config/i386/i386.c (ix86_builtins): Add
1967 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
1968 (bdesc_args): Likewise.
1969 (ix86_builtin_vectorized_function): Support
1970 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
1971 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
1972 and IX86_BUILTIN_CVTPS2DQ256.
1973 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
1974
1975 * config/i386/sse.md (STORENT_MODE): New.
1976 (VEC_FLOAT_MODE): Likewise.
1977 (VEC_EXTRACT_MODE): Likewise.
1978 (*avx_cvtdq2pd256_2): Likewise.
1979 (vec_pack_trunc_v4df): Likewise.
1980 (vec_interleave_highv8sf): Likewise.
1981 (vec_interleave_lowv8sf): Likewise.
1982 (storent<mode>): Macroized.
1983 (<code><mode>2: absneg): Likewise.
1984 (copysign<mode>3): Likewise.
1985 (vec_extract<mode>): Likewise.
1986
1987 PR target/44180
1988 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
1989 for V8SFmode.
1990
1991 2010-10-13 Richard Guenther <rguenther@suse.de>
1992 H.J. Lu <hongjiu.lu@intel.com>
1993
1994 * config/i386/sse.md (reduc_splus_v8sf): Add.
1995 (reduc_splus_v4df): Likewise.
1996 (vec_unpacks_hi_v8sf): Likewise.
1997 (vec_unpacks_lo_v8sf): Likewise.
1998 (*avx_cvtps2pd256_2): Likewise.
1999 (vec_unpacks_float_hi_v8si): Likewise.
2000 (vec_unpacks_float_lo_v8si): Likewise.
2001 (vec_interleave_highv4df): Likewise.
2002 (vec_interleave_lowv4df): Likewise.
2003
2004 2010-10-13 Richard Guenther <rguenther@suse.de>
2005
2006 PR objc/45878
2007 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
2008 alone if there are no virtual methods.
2009
2010 2010-10-13 Richard Henderson <rth@redhat.com>
2011
2012 * expr.c (build_personality_function): Take parameter LANG instead
2013 of parameter NAME. Build the name based on the lang prefix and the
2014 unwind method in use.
2015 * tree.c (lhd_gcc_personality): Update call to
2016 build_personality_function.
2017
2018 2010-10-13 Richard Guenther <rguenther@suse.de>
2019
2020 PR objc/45878
2021 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
2022
2023 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
2024
2025 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
2026 Canonicalize input operands of ASM_OPERANDS insns.
2027
2028 2010-10-13 Richard Guenther <rguenther@suse.de>
2029
2030 PR tree-optimization/45788
2031 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
2032 EH update until fixup-cfg.
2033
2034 2010-10-13 Julian Brown <julian@codesourcery.com>
2035
2036 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
2037 from CORE_REGS and GENERAL_REGS classes.
2038 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
2039 final constraint for register preferencing.
2040
2041 2010-10-13 Richard Guenther <rguenther@suse.de>
2042
2043 PR tree-optimization/45970
2044 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
2045 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
2046 (stmt_kills_ref_p): Likewise.
2047 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
2048
2049 2010-10-13 Richard Guenther <rguenther@suse.de>
2050
2051 PR tree-optimization/45982
2052 * tree-ssa-structalias.c (make_constraints_to): New function.
2053 (make_constraint_to): Implement in terms of make_constraints_to.
2054 (find_func_aliases): Properly make return values of pure/const
2055 functions escape if they assign to sth that is not a pointer.
2056
2057 2010-10-13 Richard Guenther <rguenther@suse.de>
2058
2059 PR middle-end/45874
2060 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
2061 Fixup the CFG when EH was fixed up.
2062
2063 2010-10-13 Ira Rosen <irar@il.ibm.com>
2064
2065 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
2066 Use operand's type for POINTER_PLUS_EXPR.
2067
2068 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
2069
2070 * c-parser.c (c_parser_for_statement): Initialize incr.
2071
2072 2010-10-12 Xinliang David Li <davidxl@google.com>
2073
2074 PR tree-optimization/45972
2075 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
2076 with too many arguments.
2077
2078 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2079
2080 PR fortran/45636
2081 * tree-ssa-forwprop.c: Include expr.h.
2082 (constant_pointer_difference, simplify_builtin_call): New functions.
2083 (tree_ssa_forward_propagate_single_use_vars): Call
2084 simplify_builtin_call on builtin calls.
2085
2086 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
2087
2088 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
2089 (*adddi3_extend_sp32): Likewise.
2090 (*subdi3_insn_sp32): Likewise.
2091 (*subdi3_extend_sp32): Likewise.
2092 (*negdi2_sp32): Use negative test for consistency.
2093
2094 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2095
2096 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
2097 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2098 * config/fixed-bit.h: Likewise.
2099 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2100 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
2101 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
2102 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
2103 (DF_SIZE): Likewise.
2104 * doc/tm.texi: Regenerate.
2105
2106 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
2107
2108 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
2109 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
2110 (*isel_reversed_unsigned_<mode>): New.
2111 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
2112 as valid comparisons and adjust operands and output appropriately.
2113 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
2114
2115 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
2116
2117 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
2118 DATA_ALIGNMENT and add COND parameter. Update comments above.
2119 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
2120 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
2121
2122 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
2123
2124 PR bootstrap/45958
2125 * exec-tool.in: Support '-plugin' as the second option to the linker.
2126
2127 2010-10-12 Richard Henderson <rth@redhat.com>
2128
2129 PR middle-end/45962
2130 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
2131 (expand_stack_vars): Assert large base allocated when used.
2132
2133 2010-10-12 Richard Guenther <rguenther@suse.de>
2134
2135 * tree-ssa-structalias.c (get_constraint_for_1): Constants
2136 only point to nonlocal, not anything.
2137
2138 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2139
2140 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
2141 unwind info for exceptions.
2142
2143 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2144
2145 PR testsuite/45851
2146 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
2147 Document optional target selector.
2148
2149 2010-10-12 Joseph Myers <joseph@codesourcery.com>
2150
2151 * flag-types.h: New.
2152 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
2153 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
2154 options.h.
2155 (OPTIONS_H): Define.
2156 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
2157 of options.h.
2158 * configure.ac (tm_include_list): Include options.h not flags.h.
2159 * configure: Regenerate.
2160 * flags.h: Include flag-types.h. Include options.h at top of file
2161 again.
2162 (enum debug_info_type, enum debug_info_level, enum
2163 debug_info_usage, enum symbol_visibility, struct visibility_flags,
2164 enum ira_algorithm, enum ira_region, enum excess_precision, enum
2165 graph_dump_types, enum stack_check_type,
2166 enum warn_strict_overflow_code): Move to flag-types.h
2167 * opth-gen.awk: Include flag-types.h in options.h.
2168
2169 2010-10-12 Jakub Jelinek <jakub@redhat.com>
2170
2171 * expr.c (store_expr): Share code for STRING_CST and
2172 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
2173 check if target is a MEM.
2174
2175 * rtl.h: Include hashtab.h.
2176 (iterative_hash_rtx): New prototype.
2177 * rtl.c (iterative_hash_rtx): New function.
2178 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
2179 (output_loc_list): Return immediately if emitted is set, set it.
2180 (hash_loc_operands, hash_locs, hash_loc_list,
2181 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
2182 optimize_location_lists_1, optimize_location_lists): New function.
2183 (dwarf2out_finish): Call optimize_location_lists.
2184 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
2185
2186 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2187
2188 PR testsuite/45974
2189 Revert:
2190 * Makefile.in ($(lang_checks_parallel))
2191 ($(lang_checks_parallelized)): Use single quotes for
2192 $(RUNTESTFLAGS), to allow passing quoted content.
2193
2194 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2195
2196 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
2197 actual_oldval. Use __builtin_expect.
2198 (SUBWORD_VAL_CAS): Likewise.
2199
2200 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2201
2202 * recog.c (nonmemory_operand): Call immediate_operand for
2203 CONSTANT_P operands.
2204
2205 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
2206
2207 * config/i386/i386.md (movmem<mode>): Macroize expander from
2208 movmem{si,di} using SWI48 mode iterator.
2209 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
2210 *strmovsi_rex_1 using P mode iterator.
2211 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
2212 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
2213 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
2214 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
2215 (setmem<mode>): Macroize expander from setmem{si,di} using
2216 SWI48 mode iterator.
2217 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
2218 *strsetsi_rex_1 using P mode iterator.
2219 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
2220 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
2221 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
2222 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
2223 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
2224 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
2225 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
2226 mode iterator.
2227 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
2228 *strlenqi_rex_1 using P mode iterator.
2229
2230 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
2231
2232 PR bootstrap/45445
2233 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
2234 static functions.
2235 (mark_ref_live, mark_ref_dead): Use them.
2236 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
2237 Save the original reg, and use the new functions.
2238 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
2239 changed.
2240 (check_and_make_def_conflict): Save the original reg.
2241
2242 2010-10-11 Martin Jambor <mjambor@suse.cz>
2243
2244 PR middle-end/45699
2245 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
2246 thunks.
2247
2248 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2249
2250 * Makefile.in ($(lang_checks_parallel))
2251 ($(lang_checks_parallelized)): Use single quotes for
2252 $(RUNTESTFLAGS), to allow passing quoted content.
2253
2254 PR bootstrap/35855
2255 * opt-functions.awk (BEGIN): New section.
2256 (lower, upper, digit, alnum): New variables.
2257 (static_var, opt_sanitized_name): Use alnum instead of character
2258 classes, for non-C locale.
2259 * optc-gen.awk: Likewise.
2260 * opth-gen.awk: Likewise.
2261
2262 2010-10-11 Anatoly Sokolov <aesok@post.ru>
2263
2264 * target.def (preferred_reload_class): New hook.
2265 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
2266 * doc/tm.texi: Regenerate.
2267 * targhooks.c (default_preferred_reload_class): New function.
2268 * targhooks.h (default_preferred_reload_class): Declare.
2269 * reload.c (find_dummy_reload): Change preferred_class variable type
2270 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
2271 target hook.
2272 (find_reloads): Change goal_alternative array type from int to
2273 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
2274 (push_reload, find_reloads_address_part): Use
2275 TARGET_PREFERRED_RELOAD_CLASS target hook.
2276 * reload1.c (emit_input_reload_insns): Ditto.
2277 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
2278 hook. Change rclass argument and secondary_class variable types from
2279 'enum reg_class' to reg_class_t.
2280
2281 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
2282 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
2283 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
2284 Change regclass argument and result types from enum reg_class to
2285 reg_class_t.
2286 (TARGET_PREFERRED_RELOAD_CLASS): Define.
2287
2288 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2289
2290 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
2291 in masking operations.
2292 (simplify_const_unary_operation): Likewise.
2293 (simplify_binary_operation_1): Likewise.
2294 (simplify_const_binary_operation): Likewise.
2295 (simplify_const_relational_operation): Likewise.
2296 (simplify_ternary_operation): Likewise.
2297 (simplify_immed_subreg): Likewise.
2298
2299 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2300
2301 PR middle-end/45862
2302 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
2303 (TARGET_SUPPORTS_WEAK): New.
2304 * doc/tm.texi: Regenerate.
2305 * defaults.h (SUPPORTS_WEAK): Update comment.
2306 (TARGET_SUPPORTS_WEAK): New.
2307 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
2308 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
2309 SUPPORTS_WEAK.
2310 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
2311 make_decl_one_only): Likewise.
2312 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
2313 TARGET_SUPPORTS_WEAK.
2314 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
2315 instead of SUPPORTS_WEAK.
2316
2317 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2318
2319 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
2320
2321 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2322
2323 * vec.h (VEC_qsort): Define.
2324 * dbxout.c (output_used_types): Use it.
2325 * df-scan.c (df_sort_and_compress_refs): Likewise.
2326 (df_sort_and_compress_mws): Likewise.
2327 * genautomata.c (uniq_sort_alt_states): Likewise.
2328 (evaluate_equiv_classes): Likewise.
2329 (output_trans_table): Likewise.
2330 (output_state): Likewise.
2331 * gimplify.c (compare_case_labels): Likewise.
2332 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
2333 * ipa.c (build_cdtor_fns): Likewise.
2334 * lto.c (lto_wpa_write_files): Likewise.
2335 * sel-sched.c (fill_vec_av_set): Likewise.
2336 * tree-predcom.c (determine_roots_comp): Likewise.
2337 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
2338 (splice_param_accesses): Likewise.
2339 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
2340 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
2341 (reassociate_bb): Likewise.
2342 * tree-ssa-sccvn.c (sort_scc): Likewise.
2343 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
2344
2345 2010-10-11 Ian Lance Taylor <iant@google.com>
2346
2347 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
2348 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
2349 TREE_THIS_NOTRAP when appropriate.
2350 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
2351 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
2352 newly created MEM_REF.
2353
2354 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
2355
2356 Nathan Froyds patch to hooks FUNCTION_ARG etc.
2357 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
2358 (picochip_incoming_function_arg): Delete.
2359 (picochip_arg_advance): Delete.
2360 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
2361 (FUNCTION_INCOMING_ARG): Delete.
2362 (FUNCTION_ARG_ADVANCE): Delete.
2363 * config/picochip/picochip.c (picochip_function_arg): Take a
2364 const_tree and a bool.
2365 (picochip_incoming_function_arg): Likewise.
2366 (picochip_arg_advance): Likewise.
2367 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2368 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2369
2370 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2371
2372 PR middle-end/45955
2373 * ipa.c (build_cdtor): Delete endless loop.
2374
2375 2010-10-07 Andi Kleen <ak@linux.intel.com>
2376
2377 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
2378 checksum-options.
2379 (checksum-options): Add.
2380 (cc1-dummy): Remove.
2381 (cc1-checksum): Change to run checksum over object files
2382 and options only.
2383 * dummy-checksum.c: Remove.
2384 * genchecksum.c: Update copyright.
2385 (usage): Allow multiple arguments.
2386 (BLOCKSIZE): Add.
2387 (dosum): Change for incremental checksum. Remove C output.
2388 (main): Iterate over all argument files. Add C output.
2389
2390 2010-10-11 Joseph Myers <joseph@codesourcery.com>
2391
2392 * params.c (set_param_value_internal): New.
2393 (set_param_value): Use set_param_value_internal.
2394 (maybe_set_param_value, set_default_param_value): New.
2395 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
2396 (maybe_set_param_value, set_default_param_value): Declare.
2397 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
2398 * config/i386/i386.c (ix86_option_override_internal): Use
2399 maybe_set_param_value.
2400 * config/ia64/ia64.c (ia64_option_default_params,
2401 TARGET_OPTION_DEFAULT_PARAMS): New.
2402 (ia64_option_optimization): Move some code to
2403 ia64_option_default_params.
2404 * config/picochip/picochip.c (picochip_option_override): Use
2405 maybe_set_param_value.
2406 * config/rs6000/rs6000.c (rs6000_option_default_params,
2407 TARGET_OPTION_DEFAULT_PARAMS): New.
2408 (rs6000_option_override_internal): Use maybe_set_param_value.
2409 (rs6000_option_optimization): Move some code to
2410 rs6000_option_default_params.
2411 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
2412 * config/sh/sh.c (sh_option_default_params,
2413 TARGET_OPTION_DEFAULT_PARAMS): New.
2414 (sh_option_optimization): Move some code to sh_option_default_params.
2415 * config/sparc/sparc.c (sparc_option_override): Use
2416 maybe_set_param_value.
2417 * config/spu/spu.c (spu_option_default_params,
2418 TARGET_OPTION_DEFAULT_PARAMS): New.
2419 (spu_option_optimization): Move some code to spu_option_default_params.
2420 (spu_option_override): Use maybe_set_param_value.
2421 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
2422 * doc/tm.texi: Regenerate.
2423 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
2424 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
2425 compiler_params.
2426 (default_options_optimization): Use maybe_set_param_value.
2427 (finish_options): Use maybe_set_param_value.
2428 * target.def (target_option.default_params): New hook.
2429 * toplev.c (general_init): Call targetm.target_option.default_params.
2430
2431 2010-10-11 Ira Rosen <irar@il.ibm.com>
2432
2433 PR tree-optimization/45902
2434 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
2435 vector type for constants, unless it's a pointer.
2436
2437 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2438
2439 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
2440
2441 2010-10-11 Jakub Jelinek <jakub@redhat.com>
2442
2443 PR target/45870
2444 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
2445 (ix86_delegitimize_address): Use it.
2446
2447 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2448
2449 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
2450
2451 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
2452
2453 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
2454 to cum struct in the call to function_arg_advance.
2455 (alpha_function_arg_advance): Mark named as unused.
2456
2457 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
2458
2459 * config/mips/mips.c (mips_handle_option): Make "value" with
2460 ATTRIBUTE_UNUSED.
2461
2462 2010-10-09 Richard Henderson <rth@redhat.com>
2463
2464 PR rtl-opt/33721
2465 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
2466 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
2467 required_align, tidy the code a bit. Emit split_stack code in the
2468 right place. Mark the return value with the alignment properly.
2469 * expr.h (allocate_dynamic_stack_space): Update decl.
2470 * builtins.c (expand_builtin_apply): Update call to
2471 allocate_dynamic_stack_space.
2472 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
2473 * calls.c (initialize_argument_information): Update call to
2474 allocate_dynamic_stack_space.
2475 (expand_call): Likewise.
2476
2477 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
2478 Don't update_stack_alignment here.
2479 (alloc_stack_frame_space): Make ALIGN unsigned.
2480 (stack_var_cmp): Sort by alignment too.
2481 (partition_stack_vars): Don't merge large and small alignment vars.
2482 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
2483 Take care when BASE is not virtual_stack_vars_rtx.
2484 (expand_stack_vars): Allocate dynamic stack space for large
2485 alignment variables.
2486 (expand_one_stack_var): Update all to expand_one_stack_var_at.
2487 (defer_stack_allocation): True for large alignment vars.
2488 (update_stack_alignment): Merge into ...
2489 (expand_one_var): ... here.
2490 (gimple_expand_cfg): Place code from expand_stack_vars.
2491
2492 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2493
2494 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2495 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
2496 (pdp11_function_arg_advance): New function.
2497 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2498
2499 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2500
2501 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
2502 * libgcc2.c: Likewise.
2503
2504 2010-10-09 Richard Guenther <rguenther@suse.de>
2505
2506 PR lto/45956
2507 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
2508 Properly check if a decl is an automatic var.
2509
2510 2010-10-09 Richard Guenther <rguenther@suse.de>
2511
2512 PR lto/45947
2513 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
2514
2515 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2516
2517 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
2518 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2519 * config/mmix/mmix.c (mmix_function_arg): Rename to...
2520 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
2521 bool arguments.
2522 (mmix_function_arg): New function.
2523 (mmix_function_incoming_arg): New function.
2524 (mmix_function_arg_advance): New function.
2525 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2526 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2527
2528 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2529
2530 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2531 * config/vax/vax.c (vax_function_arg): New function.
2532 (vax_function_arg_advance): New function.
2533 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2534
2535 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2536
2537 * config/pa/pa-protos.h (function_arg): Delete.
2538 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2539 * config/pa/pa.c (function_arg): Rename to...
2540 (pa_function_arg): ...this. Make static. Take a const_tree and
2541 a bool.
2542 (pa_function_arg_advance): New function.
2543 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2544
2545 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2546
2547 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2548 * config/m68k/m68k.c (m68k_function_arg): New function.
2549 (m68k_function_arg_advance): New function.
2550 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2551
2552 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2553
2554 * config/avr/avr-protos.h (function_arg): Delete.
2555 (function_arg_advance): Delete.
2556 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2557 * config/avr/avr.c (function_arg): Rename to...
2558 (avr_function_arg): ...this. Make static. Take a const_tree and
2559 a bool.
2560 (function_arg_advance): Rename to...
2561 (avr_function_arg_advance): ...this. Make static. Take a
2562 const_tree and a bool.
2563 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2564
2565 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2566
2567 * config/alpha/alpha-protos.h (function_arg): Delete.
2568 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2569 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
2570 * config/alpha/alpha.c (function_arg): Rename to...
2571 (alpha_function_arg): ...this. Make static. Take a const_tree and
2572 a bool. Delete TARGET_ABI_UNICOSMK code.
2573 (alpha_function_arg_advance): New function.
2574 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2575
2576 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2577
2578 * config/mep/mep-protos.h (mep_function_arg): Delete.
2579 (mep_function_arg_advance): Delete.
2580 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2581 * config/mep/mep.c (mep_function_arg): Make static. Take a
2582 const_tree and a bool.
2583 (mep_function_arg_advance): Likewise.
2584 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2585
2586 2010-10-09 Richard Guenther <rguenther@suse.de>
2587
2588 PR tree-optimization/45945
2589 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
2590
2591 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2592
2593 PR tree-optimization/45612
2594 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
2595 Test LABEL_DECLs as well. Fix formatting issues.
2596 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
2597 whose label is present in NON_SSA_VARS.
2598 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
2599 as well. Fix formatting issues.
2600 (visit_bb): Fix typos and formatting issue.
2601
2602 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
2603
2604 PR tree-optimization/45950
2605 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
2606 before initializing vno->op.
2607
2608 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
2609
2610 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
2611 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
2612
2613 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
2614
2615 PR target/45913
2616 * config/i386/i386.c (ix86_binary_operator_ok): Support
2617 "andhi/andsi/anddi" as a zero-extending move.
2618
2619 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2620
2621 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
2622 into a temporary array.
2623
2624 2010-10-08 Jakub Jelinek <jakub@redhat.com>
2625
2626 PR tree-optimization/45903
2627 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
2628 of {A,L}SHIFTRT of MEM.
2629
2630 2010-10-08 Richard Guenther <rguenther@suse.de>
2631
2632 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
2633 Re-construct BLOCK_VARS.
2634 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
2635 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
2636 * tree.c (free_lang_data_in_block): Remove.
2637 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
2638 Do not touch the BLOCK tree.
2639 * expr.c (expand_expr_real_1): Allow externals.
2640
2641 2010-10-08 Richard Guenther <rguenther@suse.de>
2642
2643 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
2644 Do not output BLOCK_SUBBLOCKS.
2645 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
2646 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
2647 Re-construct BLOCK_SUBBLOCKS of parent block.
2648 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
2649 for BINFO_BASE_ACCESSES.
2650
2651 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2652
2653 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
2654 (TREE_H): Include $(FLAGS_H) instead of options.h.
2655 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
2656 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2657 * common.opt (flag_complex_method, flag_evaluation_order,
2658 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
2659 Variable declarations.
2660 * configure.ac (tm_include_list): Include flags.h instead of options.h.
2661 * configure: Regenerate.
2662 * flags.h: Condition out contents for target libraries. Include
2663 options.h at end of file.
2664 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
2665 flag_evaluation_order, flag_warn_unused_result): Remove.
2666 * gcc.c (main): Intialize global_options with global_options_init.
2667 * langhooks-def.h (lhd_init_options_struct): Declare.
2668 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2669 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
2670 * langhooks.c (lhd_init_options_struct): New.
2671 * langhooks.h (struct lang_hooks): Add init_options_struct.
2672 Update comment on init_options.
2673 * optc-gen.awk: Generate initializer for global_options_init, not
2674 global_options.
2675 * opth-gen.awk: Condition out structure declarations for target
2676 libraries. Declare global_options_init.
2677 * opts-common.c: Include flags.h instead of options.h.
2678 * opts.c (flag_warn_unused_result): Remove.
2679 (read_cmdline_options): Take gcc_options parameters. Pass them to
2680 read_cmdline_option.
2681 (initial_lang_mask, initial_min_crossjump_insns,
2682 initial_max_fields_for_field_sensitive,
2683 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
2684 (init_options_once): New. Split out of decode_options.
2685 (init_options_struct): New. Split out of decode_options.
2686 (decode_cmdline_options_to_array_default_mask): New.
2687 (default_options_optimization): New. Split out of decode_options.
2688 (decode_options): Move most code to other functions. Update call
2689 to read_cmdline_options.
2690 (finish_options): New. Split out of decode_options.
2691 * opts.h (decode_options): Add gcc_options parameters.
2692 (init_options_once, init_options_struct,
2693 decode_cmdline_options_to_array_default_mask): New.
2694 * toplev.c (flag_complex_method, flag_ira_algorithm,
2695 flag_ira_region, flag_evaluation_order): Remove.
2696 (general_init): Use global_options_init for initial flag values
2697 for global_dc.
2698 (toplev_main): Call init_options_once, init_options_struct,
2699 lang_hooks.init_options_struct,
2700 decode_cmdline_options_to_array_default_mask and
2701 lang_hooks.init_option before decode_options. Update arguments to
2702 decode_options.
2703 * tree.h: Include flags.h instead of options.h.
2704
2705 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2706
2707 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2708
2709 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2710
2711 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
2712 Delete.
2713 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
2714 (FUNCTION_INCOMING_ARG): Delete.
2715 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
2716 (function_arg_slotno): Likewise. Take bool arguments.
2717 (sparc_arg_partial_bytes): Update call to it.
2718 (function_arg): Rename to...
2719 (sparc_function_arg_1): ...this. Take bool arguments.
2720 (sparc_function_arg, sparc_function_incoming_arg): New functions.
2721 (function_arg_advance): Rename to...
2722 (sparc_function_arg_advance): ...this. Take bool argument.
2723 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
2724 (TARGET_FUNCTION_INCOMING_ARG): Define.
2725
2726 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2727
2728 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
2729 Delete.
2730 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2731 * config/bfin/bfin.c (function_arg_advance): Rename to...
2732 (bfin_function_arg_advance): ...this. Make static. Take const_tree
2733 and bool arguments.
2734 (function_arg): Rename to...
2735 (bfin_function_arg): ...this. Make static. Take const_tree and bool
2736 arguments.
2737 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2738
2739 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2740
2741 * config/score/score-protos.h (score_function_arg): Delete.
2742 (score_function_arg_advance): Delete.
2743 * config/score/score3.h (score3_function_arg_advance): Take a
2744 const_tree and a bool.
2745 (score3_function_arg): Likewise.
2746 * config/score/score7.h (score7_function_arg_advance): Likewise.
2747 (score7_function_arg): Likewise.
2748 * config/score/score3.c (score3_classify_arg): Likewise.
2749 (score3_function_arg_advance, score3_function_arg): Likewise.
2750 * config/score/score7.c (score7_classify_arg): Likewise.
2751 (score7_function_arg_advance, score7_function_arg): Likewise.
2752 * config/score/score.c (score_function_arg_advance): Likewise.
2753 (score_function_arg): Likewise. De-const-ify `cum' argument.
2754 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2755
2756 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2757
2758 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
2759 (s390_function_arg): Delete.
2760 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2761 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
2762 (s390_function_arg_integer): Likewise.
2763 (s390_function_arg_advance): Make static. Take a const_tree and
2764 a bool.
2765 (s390_function_arg): Likewise.
2766 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2767
2768 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2769
2770 * config/spu/spu-protos.h (spu_function_arg): Delete.
2771 * config/spu/spu.h (FUNCTION_ARG): Delete.
2772 (FUNCTION_ARG_ADVANCE): Move code to ...
2773 * config/spu/spu.c (spu_function_arg_advance): New function.
2774 (spu_function_arg): Make static. Take a const_tree and a bool.
2775 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
2776 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2777
2778 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2779
2780 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2781
2782 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2783
2784 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
2785 (init_vn_nary_op_from_op): New function.
2786 (init_vn_nary_op_from_stmt): New function.
2787 (vn_nary_op_lookup_1): New function.
2788 (sizeof_vn_nary_op): New function.
2789 (alloc_vn_nary_op_noinit): New function.
2790 (alloc_vn_nary_op): New function.
2791 (vn_nary_op_insert_into): New function.
2792 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
2793 (vn_nary_op_lookup): Likewise.
2794 (vn_nary_op_lookup_stmt): Likewise.
2795 (vn_nary_op_insert_pieces): Likewise.
2796 (vn_nary_op_insert): Likewise.
2797 (vn_nary_op_insert_stmt): Likewise.
2798 (copy_nary): Likewise.
2799 (set_value_id_for_result): New function.
2800 (set_hashtable_value_ids): Call it.
2801
2802 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2803
2804 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2805 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
2806
2807 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
2808
2809 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
2810 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
2811
2812 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
2813
2814 PR debug/45656
2815 * cse.c (cse_extended_basic_block): Preserve cc0 info across
2816 debug isnsn. Skip them when searching for cc0 setter.
2817 (set_live_p): Skip debug insns when searching for cc0 user.
2818
2819 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
2820
2821 PR debug/45673
2822 PR debug/45604
2823 PR debug/45419
2824 PR debug/45408
2825 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
2826 type of MEM_REFs to INTEGER_CSTs.
2827
2828 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
2829
2830 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
2831 m68hc11_print_operand_address.
2832
2833 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
2834
2835 * builtins.c (rewrite_call_expr): Move code to...
2836 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
2837 (rewrite_call_expr_array): New function.
2838 (fold_builtin_sprintf_chk_1): New function.
2839 (fold_builtin_sprintf_chk): Call it.
2840 (gimple_fold_builtin_sprintf_chk): Likewise.
2841 (fold_builtin_snprintf_chk_1): New function.
2842 (fold_builtin_snprintf_chk): Call it.
2843 (gimple_fold_builtin_snprintf_chk): Likewise.
2844 (gimple_rewrite_call_expr): Delete.
2845
2846 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
2847
2848 * config.host: Update copyright year.
2849
2850 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
2851
2852 * config.host (host_lto_plugin_soname): New shell variable.
2853 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
2854 * config.in: Regenerate.
2855 * configure: Regenerate.
2856 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
2857 LTO plugin shared library.
2858
2859 2010-10-07 Richard Henderson <rth@redhat.com>
2860
2861 * target.h (enum unwind_info_type): Move ...
2862 * coretypes.h: ... here.
2863
2864 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
2865
2866 * doc/objc.texi (Fast enumeration protocol): Mention that
2867 'unsigned int' can also be used instead of 'unsigned long' in
2868 countByEnumeratingWithState:objects:count:.
2869
2870 2010-10-07 Martin Jambor <mjambor@suse.cz>
2871
2872 * tree-sra.c (struct access): New field grp_assignment_write.
2873 (dump_access): Dump grp_assignment_write.
2874 (build_accesses_from_assign): Set grp_assignment_write.
2875 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
2876 (mark_read_status): Renamed to mark_rw_status, individual values
2877 renamed too.
2878 (analyze_access_subtree): Changed type of mark_write to
2879 mark_read_status. Fixed propagating of mark_read and
2880 mark_write. Changed benefit estimate. Updated comment.
2881
2882 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
2883
2884 PR Tree-Vect/45847
2885 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
2886 check for vectype_out returned by get_vectype_for_scalar_type().
2887
2888 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
2889
2890 PR target/45805
2891 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
2892 constraint, add register specifier in instruction template.
2893 (neon_vec_pack_trunc_<mode>): Likewise.
2894 (neon_vec_<US>mult_<mode>): Add register specifier to
2895 instruction template.
2896
2897 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
2898
2899 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
2900 cygwin2.o.
2901 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
2902 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
2903 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
2904 (cygwin2.o): Likewise.
2905 * config/i386/cygwin1.c: Delete file.
2906 * config/i386/cygwin2.c: Likewise.
2907 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
2908 make all {%!mno-cygwin} ones unconditional.
2909 (STARTFILE_SPEC): Likewise.
2910 (REAL_LIBGCC_SPEC): Likewise.
2911 (LIB_SPEC): Likewise.
2912 (CXX_WRAP_SPEC): Likewise.
2913 (LINK_SPEC): Likewise.
2914 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
2915 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
2916 (cygwin_gplusplus_include_dir): Delete now-unused array.
2917 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
2918 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
2919 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
2920 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
2921 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
2922 (cygwin_local_include_dir): Delete now-unused array.
2923 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
2924 (cygwin_cross_include_dir): Delete now-unused array.
2925 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
2926 (cygwin_tool_include_dir): Delete now-unused array.
2927 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
2928 (cygwin_standard_include_dir): Delete now-unused array.
2929 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
2930 (GEN_CVT_ARRAY): Delete now-unused macro definition.
2931 (cvt_to_mingw): Delete now-unused array.
2932 (mingw_scan): Remove prototype of deleted function.
2933 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
2934 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
2935 * doc/invoke.texi (-mcygwin): Don't document removed option.
2936 (-mno-cygwin): Likewise.
2937
2938 2010-10-07 Richard Guenther <rguenther@suse.de>
2939
2940 * machmode.h (mode_for_vector): Declare.
2941 * stor-layout.c (mode_for_vector): New function, split out from ...
2942 (layout_type): ... here.
2943 * tree-vectorizer.h (current_vector_size): Declare.
2944 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
2945 mask vector type is available.
2946 (get_vectype_for_scalar_type): Rename to ...
2947 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
2948 size argument.
2949 (get_vectype_for_scalar_type): New wrapper around
2950 get_vectype_for_scalar_type_and_size using current_vector_size.
2951 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
2952 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
2953 of vect_analyze_loop here.
2954 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
2955 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
2956 to autodetect.
2957 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
2958 V8SF to V8SI conversion builtin.
2959
2960 2010-10-07 Richard Guenther <rguenther@suse.de>
2961
2962 * target.def (autovectorize_vector_sizes): New target hook.
2963 * targhooks.c (default_autovectorize_vector_sizes): New function.
2964 * targhooks.h (default_autovectorize_vector_sizes): Declare.
2965 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2966 Document.
2967 * doc/tm.texi: Update.
2968 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
2969 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
2970
2971 2010-10-07 Richard Guenther <rguenther@suse.de>
2972
2973 * target.def (units_per_simd_word): Rename to ...
2974 (preferred_simd_mode): ... this. Return mode instead of size.
2975 * targhooks.c (default_units_per_simd_word): Rename to ...
2976 (default_preferred_simd_mode): ... this. Return word_mode.
2977 * targhooks.h (default_preferred_simd_mode): Declare.
2978 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
2979 (arm_preferred_simd_mode): ... this. Re-implement.
2980 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
2981 (ix86_preferred_simd_mode): ... this. Re-implement.
2982 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
2983 (sparc_preferred_simd_mode): ... this. Re-implement.
2984 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
2985 (mips_preferred_simd_mode): ... this. Re-implement.
2986 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
2987 (rs6000_preferred_simd_mode): ... this. Re-implement.
2988 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
2989 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
2990 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
2991 * doc/tm.texi: Update.
2992
2993 2010-10-07 Richard Guenther <rguenther@suse.de>
2994
2995 PR middle-end/45869
2996 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
2997 of pointers.
2998
2999 2010-10-07 Alan Modra <amodra@gmail.com>
3000
3001 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
3002 rather than sign extension by hand.
3003
3004 2010-10-07 Jan Hubicka <jh@suse.cz>
3005
3006 PR middle-end/45926
3007 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
3008
3009 2010-10-07 Richard Guenther <rguenther@suse.de>
3010
3011 PR bootstrap/45914
3012 * configure.ac: Fix typo.
3013 * configure: Regenerated.
3014
3015 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3016
3017 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
3018 define_builtin_std where it's unnecessary.
3019 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
3020
3021 2010-10-06 Anatoly Sokolov <aesok@post.ru>
3022
3023 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
3024 * doc/tm.texi.in: Regenerate.
3025 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
3026 * targhooks.c (default_class_likely_spilled_p): Don't use the
3027 CLASS_LIKELY_SPILLED_P macro.
3028
3029 * config/arm/arm.md: Update comment.
3030
3031 2010-10-06 Jan Hubicka <jh@suse.cz>
3032
3033 * ipa.c (cgraph_remove_unreachable_nodes): External references can
3034 always be removed.
3035 (cgraph_externally_visible_p): We can not bring local comdats that
3036 are known to linker; fix handling of internal visibility.
3037 (function_and_variable_visibility): Likewise.
3038
3039 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
3040
3041 PR rtl-optimization/45394
3042 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
3043 (struct rtx_subst_pair): Remove AFTER field.
3044 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
3045 (propagate_for_debug): Remove MOVE parameter and adjust.
3046 (try_combine): In the special case where I2 is a PARALLEL, combine only
3047 destinations of SETs and set I2SRC to the I2 source.
3048 Adjust calls to propagate_for_debug throughout.
3049 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
3050 insns.
3051
3052 2010-10-06 Olivier Hainque <hainque@adacore.com>
3053
3054 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
3055 switch on insn codes as sequence of ifs.
3056
3057 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
3058
3059 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
3060 be UI_NONE for picochip.
3061 (picochip_option_override): Do not disable exception flags.
3062 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
3063 Declare.
3064
3065 2010-10-06 Richard Guenther <rguenther@suse.de>
3066
3067 * Makefile.in (regmove.o): Depend on $(TARGET_H).
3068
3069 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3070
3071 Implemented fast enumeration for Objective-C.
3072 * c-parser.c (objc_could_be_foreach_context): New.
3073 (c_lex_one_token): Recognize RID_IN keyword in a potential
3074 Objective-C foreach context.
3075 (c_parser_declaration_or_fndef): Added parameter. Accept
3076 Objective-C RID_IN keyword as terminating a declaration; in that
3077 case, return the declaration in the new parameter.
3078 (c_parser_extenral_declaration): Updated calls to
3079 c_parser_declaration_or_fndef.
3080 (c_parser_declaration_or_fndef): Same change.
3081 (c_parser_compound_statement_nostart): Same change.
3082 (c_parser_label): Same change.
3083 (c_parser_objc_methodprotolist): Same change.
3084 (c_parser_omp_for_loop): Same change.
3085 (c_parser_for_statement): Detect and parse Objective-C foreach
3086 statements.
3087 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
3088 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
3089 fast enumeration parsing code to turn off the c99 error but still
3090 perform checks on the loop declarations.
3091 * c-tree.h (check_for_loop_decls): Updated declaration.
3092 * doc/objc.texi: Document fast enumeration.
3093
3094 2010-10-06 Nick Clifton <nickc@redhat.com>
3095
3096 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
3097 (MDR_REGNUM): Define.
3098 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
3099 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
3100 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
3101 (REGISTER_NAMES): Add MDR.
3102 (DWARF2_DEBUGGING_INFO): Define to 1.
3103 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3104 (F): New function. Sets RTX_FRAME_RELATED_P.
3105 (mn10300_gen_multiple_store): Use F.
3106 (expand_prologue): Use F. Use gen_movsf() to push floating
3107 point registers.
3108 (expand_epilogue): Use gen_movsf() to pop floating point registers.
3109 (mn10300_option_override): Disable combine stack adjust pass.
3110
3111 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
3112
3113 PR target/45901
3114 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
3115 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
3116
3117 2010-10-06 Jakub Jelinek <jakub@redhat.com>
3118
3119 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
3120 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
3121 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
3122 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
3123 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
3124 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
3125 BUILT_IN_TOUPPER): Mark as leaf.
3126
3127 PR middle-end/45838
3128 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
3129 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
3130 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
3131 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
3132 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
3133 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
3134 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
3135
3136 2010-10-05 Anatoly Sokolov <aesok@post.ru>
3137
3138 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
3139 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3140 (m68hc11_class_likely_spilled_p): New function.
3141
3142 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
3143
3144 * c-parser.c (c_parser_objc_method_definition): Updated comment.
3145
3146 2010-10-05 Jan Hubicka <jh@suse.cz>
3147
3148 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
3149 Document.
3150 * opts.c (decode_options): Handle lto partitions.
3151 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
3152 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
3153
3154 2010-10-05 Jan Hubicka <jh@suse.cz>
3155
3156 * cgraphunit.c (assemble_function): Output thunks and aliases before
3157 the function itself.
3158
3159 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
3160
3161 * config/picochip/picochip.c (picochip_option_override): Disable
3162 exception flags for picochip.
3163
3164 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3165
3166 * opts-common.c (handle_option, handle_generated_option,
3167 read_cmdline_option, set_option): Add diagnostic_context
3168 parameter. Update calls among these functions.
3169 (set_option): Don't use global_dc.
3170 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
3171 (decode_options): Pass global_dc to enable_warning_as_error.
3172 (common_handle_option): Pass global_dc to enable_warning_as_error.
3173 (enable_warning_as_error): Add diagnostic_context parameter.
3174 Document parameters. Don't use global_dc. Pass
3175 diagnostic_context parameter to handle_generated_option.
3176 * opts.h (set_option, handle_option, handle_generated_option,
3177 read_cmdline_option, enable_warning_as_error): Add
3178 diagnostic_context parameter.
3179 * Makefile.in (lto-opts.o): Update dependencies.
3180 * coretypes.h (struct diagnostic_context, diagnostic_context):
3181 Declare here.
3182 * diagnostic.h (diagnostic_context): Don't declare typedef here.
3183 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
3184 * langhooks-def.h (struct diagnostic_context): Don't declare here.
3185 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
3186 using diagnostic_context typedef.
3187 * langhooks.c (lhd_initialize_diagnostics): Declare using
3188 diagnostic_context typedef.
3189 * langhooks.h (struct diagnostic_context): Don't declare here.
3190 (initialize_diagnostics, print_error_function): Declare using
3191 diagnostic_context typedef.
3192 * lto-opts.c: Include diagnostic.h.
3193 (lto_reissue_options): Pass global_dc to set_option. Pass
3194 DK_UNSPECIFIED not 0.
3195 * plugin.c (plugins_internal_error_function): Declare using
3196 diagnostic_context typedef.
3197 * plugin.h (struct diagnostic_context): Don't declare here.
3198 (plugins_internal_error_function): Declare using
3199 diagnostic_context typedef.
3200
3201 2010-10-05 Olivier Hainque <hainque@adacore.com>
3202 Nicolas Roche <roche@adacore.com>
3203
3204 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
3205 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
3206
3207 2010-10-05 Ira Rosen <irar@il.ibm.com>
3208
3209 PR tree-optimization/45752
3210 * tree-vect-slp.c (vect_get_mask_element): Remove static
3211 variables, make them function arguments.
3212 (vect_transform_slp_perm_load): Pass new arguments to
3213 vect_get_mask_element.
3214
3215 2010-10-05 Richard Guenther <rguenther@suse.de>
3216
3217 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
3218 (gimple_mod_pow2): Likewise.
3219 (gimple_mod_subtract): Likewise.
3220 (gimple_ic): Likewise.
3221 (gimple_stringop_fixed_value): Likewise.
3222 * tree-profile.c (tree_init_edge_profiler): Mark profile
3223 functions nothrow and leaf.
3224 (add_abnormal_goto_call_edges): Remove.
3225 (tree_gen_edge_profiler): Work on SSA form.
3226 (tree_gen_ic_profiler): Likewise. Simplify.
3227 (do_tree_profiling): Update SSA form.
3228 (pass_tree_profile): Remove.
3229 (do_tree_profiling): Likewise.
3230 (gate_tree_profile_ipa): New function.
3231 (pass_ipa_tree_profile): New.
3232 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
3233 state of instrumented functions.
3234 * passes.c (init_optimization_passes): Remove early non-SSA
3235 inlining. Move profiling after early optimizations.
3236 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
3237 (pass_ipa_early_inline): Likewise.
3238 * tree-pass.h (pass_ipa_early_inline): Remove.
3239 (pass_tree_profile): Likewise.
3240 (pass_ipa_tree_profile): Declare.
3241
3242 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3243 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
3244
3245 * gcc/config/s390/s390.c (z196_cost): New.
3246 (s390_handle_arch_option): Add -march=z196.
3247 (s390_option_override): Use the new cost function and use the z10
3248 defaults also for z196.
3249 (legitimate_reload_constant_p): Adjust comment.
3250 (legitimate_reload_fp_constant_p): New function.
3251 (s390_preferred_reload_class): Distingiush between FP and Int constants.
3252 (preferred_la_operand_p): Avoid la with index on z196.
3253 (s390_adjust_priority): Trigger also for z196.
3254 (s390_issue_rate): Issue rate for z196 is 3.
3255 (s390_z10_fix_long_loop_prediction): Rename to ...
3256 (s390_fix_long_loop_prediction): ... this.
3257 (s390_reorg): Apply the z10 adjustments also for z196.
3258 (s390_loop_unroll_adjust): Do this also for z196.
3259 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
3260 (enum processor_flags): Add PF_Z196.
3261 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
3262 (TARGET_CPU_Z196, TARGET_Z196): New macros.
3263 * gcc/config.gcc: Enable z196 for --with-arch.
3264 * gcc/config/s390/2817.md: New file.
3265 * gcc/config/s390/2084.md: New type for multiply and add.
3266 * gcc/config/s390/2097.md: Likewise.
3267 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
3268 (UNSPECV_ATOMIC_OP): New constants.
3269 (fmadddf, fmaddsf): New values for type attribute.
3270 (z196prop): New insn attribute.
3271 (cpu, cpu_facility): Add z196.
3272 (ATOMIC_Z196): New code iterator.
3273 (noxa): New code attribute.
3274 (gk): New mode attribute.
3275 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
3276 Support load zero for fp constants.
3277 (fixuns_truncdddi2, fixuns_trunctddi2)
3278 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
3279 for z196.
3280 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
3281 (popcounthi2, popcountqi2): New expander.
3282 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
3283 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
3284 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
3285 insn definition.
3286 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
3287 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
3288 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
3289 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
3290 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
3291 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
3292 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
3293 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
3294 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
3295 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
3296 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
3297 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
3298 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
3299 Support new z196 instructions.
3300
3301 2010-10-05 Richard Guenther <rguenther@suse.de>
3302
3303 PR middle-end/45877
3304 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
3305 case where gimplification optimizes away the stmt.
3306
3307 2010-10-04 Jakub Jelinek <jakub@redhat.com>
3308
3309 PR debug/45849
3310 * var-tracking.c (strip_pointer_flags): New function.
3311 (emit_note_insn_var_location): If rtx_equal_p check failed,
3312 retry on locations simplified with simplify_replace_fn_rtx
3313 and strip_pointer_flags as its callback.
3314
3315 2010-10-04 Jan Hubicka <jh@suse.cz>
3316
3317 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
3318 (can_refer_decl_in_current_unit_p): ... this one; reverse return
3319 value; handle comdats too.
3320 (canonicalize_constructor_val): Use it; handle function_decls
3321 correctly.
3322 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3323 * gimple.c (get_base_address): Accept all kinds of decls.
3324
3325 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3326
3327 * flags.h (g_switch_value, g_switch_set): Remove.
3328 * opts.c (g_switch_value, g_switch_set): Remove.
3329 * config/g.opt (G): Add Var(g_switch_value).
3330 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
3331 (alpha_option_override): Check global_options_set.x_g_switch_value
3332 instead of g_switch_set.
3333 (alpha_in_small_data_p): Remove cast in comparison with
3334 g_switch_value.
3335 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
3336 g_switch_value to unsigned HOST_WIDE_INT.
3337 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
3338 with g_switch_value.
3339 (frv_handle_option): Don't handle -G here.
3340 (frv_option_override): Check global_options_set.x_g_switch_value
3341 instead of g_switch_set. Don't modify g_switch_set.
3342 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
3343 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
3344 g_switch_value to unsigned HOST_WIDE_INT.
3345 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
3346 (ia64_option_override): Check global_options_set.x_g_switch_value
3347 instead of g_switch_set.
3348 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
3349 Remove.
3350 (lm32_in_small_data_p): Remove cast in comparison with
3351 g_switch_value.
3352 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
3353 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
3354 HOST_WIDE_INT.
3355 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
3356 (m32r_init): Check global_options_set.x_g_switch_value instead of
3357 g_switch_set.
3358 (m32r_in_small_data_p): Remove cast in comparison with
3359 g_switch_value.
3360 (m32r_file_start): Format g_switch_value with %d.
3361 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
3362 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
3363 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
3364 handle -G here.
3365 (microblaze_option_override): Check
3366 global_options_set.x_g_switch_value instead of g_switch_set.
3367 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
3368 (mips_option_override): Check global_options_set.x_g_switch_value
3369 instead of g_switch_set.
3370 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
3371 (rs6000_file_start): Format g_switch_value with %d.
3372 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
3373 comparisons with g_switch_value.
3374 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3375 global_options_set.x_g_switch_value instead of g_switch_set.
3376 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3377 global_options_set.x_g_switch_value instead of g_switch_set.
3378 * config/score/score.c (score_handle_option): Don't handle -G here.
3379 * config/score/score3.c (score3_option_override): Check
3380 global_options_set.x_g_switch_value instead of g_switch_set.
3381 * config/score/score7.c (score7_option_override): Check
3382 global_options_set.x_g_switch_value instead of g_switch_set.
3383
3384 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
3385
3386 * common.opt (fira-coalesce): Remove.
3387
3388 * doc/invoke.texi (flag_ira_coalesce): Remove.
3389
3390 * ira-color.c (allocno_coalesced_p): Move before
3391 copy_freq_compare_func.
3392 processed_coalesced_allocno_bitmap): Ditto.
3393 (update_conflict_hard_regno_costs): Don't use
3394 ALLOCNO_FIRST_COALESCED_ALLOCNO.
3395 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
3396 (assign_hard_reg): Assume no coalesced allocnos.
3397 (get_coalesced_allocnos_attributes): Remove.
3398 (bucket_allocno_compare_func): Assume no coalesced allocnos.
3399 (push_allocno_to_stack): Ditto.
3400 (remove_allocno_from_bucket_and_push): Use
3401 ira_print_expanded_allocno instead of print_coalesced_allocno.
3402 (push_allocnos_to_stack): Assume uncoalesced allocnos.
3403 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
3404 all_conflicting_hard_regs.
3405 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
3406 (setup_allocno_left_conflicts_size): Ditto.
3407 (put_allocno_into_bucket): Ditto.
3408 (copy_freq_compare_func): Remove.
3409 (copy_freq_compare_func, merge_allocnos): Move before
3410 coalesced_pseudo_reg_freq_compare.
3411 coalesced_allocno_conflict_p): Ditto.
3412 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
3413 parameter. Assume it true.
3414 (color_allocnos): Assume uncoalesced allocnos. Use
3415 ira_print_expanded_allocno instead of print_coalesced_allocno.
3416 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
3417 parameter.
3418
3419 * ira.c: Remove comment about coalescing.
3420
3421 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3422
3423 * config/mips/mips.h (target_flags_explicit): Declare for
3424 GENERATOR_FILE.
3425
3426 2010-10-04 Andi Kleen <ak@linux.intel.com>
3427
3428 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
3429 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
3430
3431 2010-10-04 Matthias Klose <doko@ubuntu.com>
3432
3433 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
3434 multilib osdirname if it exists.
3435 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
3436
3437 2010-10-04 Jakub Jelinek <jakub@redhat.com>
3438
3439 PR middle-end/45876
3440 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
3441 arg0's type or its unsigned counterpart as utype. Convert
3442 arg1 to utype unconditionally.
3443
3444 2010-10-04 Julian Brown <julian@codesourcery.com>
3445
3446 * expr.c (expand_assignment): Add assertion to prevent emitting
3447 null rtx for movmisalign pattern.
3448 (expand_expr_real_1): Likewise.
3449 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
3450 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
3451 (arm_vector_alignment_reachable): New.
3452 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
3453 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
3454 (arm_print_operand): Include alignment qualifier in %A.
3455 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
3456 (movmisalign<mode>): New expander.
3457 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
3458 insn patterns.
3459
3460 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3461
3462 * optc-gen.awk: Define global_options_set. Don't define
3463 target_flags_explicit.
3464 * opth-gen.awk: Declare global_options_set. Define
3465 target_flags_explicit as macro.
3466 * opts-common.c (handle_option): Take opts_set and generated_p
3467 parameters.
3468 (handle_generated_option, read_cmdline_option, set_option): Take
3469 opts_set parameter.
3470 (set_option): Use opts_set instead of hardcoding target_flags and
3471 target_flags_explicit.
3472 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
3473 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
3474 flag_value_profile_transformations_set, flag_peel_loops_set,
3475 flag_branch_probabilities_set, flag_inline_functions_set,
3476 flag_ipa_cp_set, flag_ipa_cp_clone_set,
3477 flag_predictive_commoning_set, flag_unswitch_loops_set,
3478 flag_gcse_after_reload_set): Remove.
3479 (common_handle_option, lang_handle_option, target_handle_option):
3480 Take opts_set parameter. Assert that it is &global_options_set.
3481 (common_handle_option): Don't set _set variables. Check opts_set
3482 instead of such variables.
3483 (enable_warning_as_error): Pass &global_options_set to
3484 handle_generated_option.
3485 * opts.h (cl_option_handler_func.handler, set_option,
3486 handle_option, handle_generated_option, read_cmdline_option): Add
3487 opts_set parameters.
3488 (handle_option): Add generated_p parameter.
3489 * config/i386/i386.c (ix86_function_specific_save,
3490 ix86_function_specific_restore): Updat for renaming of
3491 target_flags_explicit field.
3492 * config/i386/i386.opt (target_flags_explicit): Rename to
3493 ix86_target_flags_explicit.
3494 * config/ia64/ia64.c (ia64_override_options_after_change): Check
3495 global_options_set.x_flag_selective_scheduling and
3496 global_options_set.x_flag_selective_scheduling2, not
3497 sel_sched_switch_set.
3498 * flags.h (sel_sched_switch_set,
3499 flag_speculative_prefetching_set): Remove.
3500 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
3501 that it is &global_options_set.
3502 (process_command): Pass &global_options_set to read_cmdline_option.
3503 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
3504 set_option.
3505 * toplev.c (target_flags_explicit): Remove.
3506
3507 2010-10-04 Jan Hubicka <jh@suse.cz>
3508
3509 PR middle-end/45871
3510 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
3511 use get_ref_base_and_offset to handle references.
3512 (fold_const_aggregate_ref): Update.
3513
3514 2010-10-04 Martin Jambor <mjambor@suse.cz>
3515
3516 PR tree-optimization/45572
3517 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
3518 ipa_check_create_node_params.
3519 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
3520
3521 2010-10-04 Yao Qi <yao@codesourcery.com>
3522
3523 * doc/passes.texi: Clean up.
3524
3525 2010-10-03 Ian Lance Taylor <iant@google.com>
3526
3527 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
3528 referring to a field using a typedef name.
3529 (find_anonymous_field_with_type): New static function.
3530 (convert_to_anonymous_field): New static function.
3531 (convert_for_assignment): If -fplan9-extensions, permit converting
3532 pointer to struct to pointer to anonymous field.
3533 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
3534 (is_duplicate_field): New static function.
3535 (detect_field_duplicates_hash): If -fplan9-extensions, check for
3536 typedef names duplicating field names.
3537 (detect_field_duplicates): Likewise.
3538 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
3539 (C Dialect Options): Document -fplan9-extensions.
3540 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
3541
3542 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
3543
3544 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
3545 revision 164914.
3546 (vect_create_data_ref_ptr): Likewise.
3547 * tree-vect-stmts.c (vectorizable_store): Likewise.
3548 (perm_mask_for_reverse): Likewise.
3549 (reverse_vec_elements): Likewise.
3550 (vectorizable_load): Likewise.
3551
3552 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3553
3554 * cppbuiltin.c: New file.
3555 * cppbuiltin.h: New file.
3556 * Makefile.in: Take into account cppbuiltin.{h,c}.
3557
3558 2010-10-03 Andi Kleen <ak@linux.intel.com>
3559
3560 * lto-cgraph.c (input_cgraph): Check for missing sections.
3561
3562 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
3563
3564 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
3565 to nonimmediate_operand. Force operand 2 to register when allowed.
3566 (*<shiftrt_insn><mode>3_mask): Ditto.
3567 (*<rotate_insn><mode>3_mask): Ditto.
3568
3569 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
3570
3571 PR tree-optimization/45720
3572 PR tree-optimization/45764
3573 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
3574 Don't accept backwards consecutive accesses.
3575 (vect_create_data_ref_ptr): Disallow negative steps.
3576
3577 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
3578 (perm_mask_for_reverse): Removed.
3579 (reverse_vec_elements): Likewise.
3580 (vectorizable_load): Don't handle negative steps.
3581
3582 2010-10-02 Jan Hubicka <jh@suse.cz>
3583
3584 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
3585 call destination is known.
3586
3587 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3588
3589 PR target/45820
3590 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
3591 earlier.
3592
3593 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3594
3595 * doc/install.texi (Configuration): Document build_configargs,
3596 host_configargs, target_configargs.
3597
3598 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
3599
3600 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
3601 (*<shiftrt_insn><mode>3_mask): Ditto.
3602 (*<rotate_insn><mode>3_mask): Ditto.
3603
3604 2010-10-01 Steve Ellcey <sje@cup.hp.com>
3605
3606 PR tree-optimization/44716
3607 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
3608 (HOT_TEXT_SECTION_NAME): Define.
3609
3610 2010-10-01 Nick Clifton <nickc@redhat.com>
3611
3612 * common.opt: Add -fcombine-stack-adjustments.
3613 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
3614 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
3615 flag_combine_stack_adjustments.
3616 * doc/invoke.texi: Document the new option.
3617
3618 2010-10-01 Richard Guenther <rguenther@suse.de>
3619
3620 PR tree-optimization/45854
3621 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
3622
3623 2010-10-01 Anthony Green <green@moxielogic.com>
3624
3625 * config.gcc: Fix moxie-*-rtems* configuration.
3626
3627 2010-10-01 Richard Guenther <rguenther@suse.de>
3628
3629 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
3630 (gen_decl_die): Likewise.
3631
3632 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3633
3634 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
3635 to the function code for SPU MD builtins.
3636 (spu_expand_builtin): Update.
3637 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
3638
3639 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3640
3641 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
3642 sjlj_except_unwind_info.
3643
3644 2010-10-01 Tristan Gingold <gingold@adacore.com>
3645
3646 * configure.ac: Define the nop insn for avr*-*-*
3647 * configure: Regenerate.
3648
3649 2010-10-01 Alan Modra <amodra@gmail.com>
3650
3651 PR target/45807
3652 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
3653 extend toc_restore_insn.
3654
3655 2010-09-30 Richard Guenther <rguenther@suse.de>
3656
3657 PR tree-optimization/43959
3658 * function.c (gimplify_parameters): Use create_tmp_reg instead of
3659 create_tmp_var.
3660
3661 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
3662
3663 * config/sh/sh.c (sh_expand_prologue): Set
3664 current_function_static_stack_size.
3665
3666 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3667
3668 * configure.ac: Check for Solaris 8 ld with .hidden support.
3669 * configure: Regenerate.
3670
3671 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3672
3673 PR middle-end/45758
3674 * graphite.c (graphite_initialize): Call scev_reset.
3675
3676 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3677
3678 * sese.h (scev_analyzable_p): Return false for real or floating
3679 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
3680
3681 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3682
3683 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
3684 and ps.
3685 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
3686 domain.
3687 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
3688 Do not allocate ub_expr, it is passed in initialized.
3689
3690 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3691
3692 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
3693 (build_cloog_prog): Dump CLooG input file when
3694 flag_graphite_dump_cloog is set. This is disabled on trunk.
3695 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
3696
3697 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3698
3699 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
3700 verify_dominators for CDI_POST_DOMINATORS.
3701 * sese.h: Remove comment about CDI_POST_DOMINATORS.
3702 (recompute_all_dominators): Remove call to free_dominance_info
3703 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
3704 for CDI_POST_DOMINATORS.
3705
3706 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3707
3708 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
3709 over pbb_dim_iter_domain.
3710
3711 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3712
3713 * graphite-flattening.c: Fix comments.
3714
3715 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3716
3717 * Makefile.in (OBJS-common): Add graphite-flattening.o.
3718 (graphite-flattening.o): New rule.
3719 * common.opt (floop-flatten): New flag.
3720 * doc/invoke.texi (-floop-flatten): Documented.
3721 * graphite-flattening.c: New.
3722 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
3723 * graphite-poly.h (flatten_all_loops): Declared.
3724 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
3725 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
3726 is set, also set flag_graphite.
3727
3728 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3729
3730 * graphite-poly.c (cloog_checksum): New.
3731 * graphite-poly.h (cloog_checksum): Declared.
3732
3733 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3734
3735 * graphite-poly.c (pbb_number_of_iterations): Removed.
3736 (pbb_number_of_iterations_at_time): Correctly compute the number
3737 of iterations in the transformed loop.
3738 * graphite-poly.h (pbb_number_of_iterations): Removed.
3739
3740 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3741
3742 * graphite-poly.h (lst_update_scattering_seq): Removed.
3743 (lst_update_scattering): Correctly handle outermost loop dewey
3744 renumbering.
3745
3746 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3747
3748 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
3749 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
3750 * graphite-poly.h (lst_niter_for_loop): New.
3751
3752 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3753
3754 * graphite-poly.c (apply_poly_transforms): Do not abort when the
3755 transform read from disk is not legal. Call fatal_error instead.
3756
3757 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3758
3759 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
3760 (print_scop_header): Removed. Inlined in the only call place...
3761 (print_scop): ... here.
3762
3763 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3764
3765 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
3766
3767 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3768
3769 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
3770
3771 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3772
3773 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
3774 (dot_deps_stmt): Same.
3775 * graphite-poly.c (dot_lst): Same.
3776
3777 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3778
3779 * graphite-blocking.c (scop_do_strip_mine): Do not call
3780 graphite_legal_transform.
3781 (scop_do_block): Same.
3782
3783 2010-09-30 Vladimir Kargov <kargov@gmail.com>
3784
3785 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
3786 description.
3787
3788 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3789
3790 * tree-scalar-evolution.c (instantiate_array_ref): New.
3791 (instantiate_scev_r): Also handle ARRAY_REFs.
3792
3793 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3794
3795 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3796 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
3797 RESULT_DECL, and FIELD_DECL. Return false for an
3798 SSA_NAME_IS_DEFAULT_DEF.
3799 (compute_scalar_evolution_in_loop): Do not further analyze the
3800 scalar evolution when no_evolution_in_loop_p returns true.
3801
3802 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3803
3804 * tree-chrec.h (evolution_function_is_affine_p): Do not check
3805 whether CHREC_LEFT is invariant. A function is affine when
3806 CHREC_RIGHT is invariant.
3807
3808 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3809
3810 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
3811 is_gimple_reg.
3812 (rewrite_degenerate_phi): Same.
3813 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
3814
3815 2010-09-30 Vladimir Kargov <kargov@gmail.com>
3816
3817 * graphite-scop-detection.c (graphite_can_represent_scev,
3818 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
3819 graphite_can_represent_loop): Remove outermost_loop.
3820
3821 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3822
3823 PR middle-end/45229
3824 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
3825 handle GIMPLE_CALLs with no LHS.
3826
3827 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
3828
3829 * graphite-poly.c (init_graphite_out_file): New.
3830 (init_graphite_in_file): New.
3831 (apply_poly_transforms): Updated to enable reading and writing of
3832 multiple scop files.
3833
3834 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
3835
3836 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
3837 redundant checks.
3838
3839 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3840
3841 * graphite-clast-to-gimple.c (precision_for_value): Adjust
3842 computation of precision by 1.
3843
3844 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
3845
3846 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
3847 (openscop_read_polyhedron_matrix): New.
3848 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
3849 (openscop_read_N_int): Same.
3850 * graphite-poly.c (openscop_read_N_int): New.
3851 (openscop_read_one_int): New.
3852 (openscop_read_N_string): New.
3853 (openscop_read_one_string): New.
3854 (openscop_read_powerset_matrix): New.
3855 (graphite_read_transforms): Remove.
3856 (graphite_read_scatt): New.
3857 (graphite_read_scop_file): New.
3858 (apply_poly_transforms): Updated to call graphite_read_scop_file.
3859
3860 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3861
3862 * graphite-poly.c: Change include order.
3863
3864 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
3865
3866 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
3867 (cloog_matrix_nrows): New.
3868
3869 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
3870
3871 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
3872 from matrix lines.
3873 * graphite-poly.c (openscop_print_scattering_function_1): Same.
3874 (print_scattering_function_1): Same.
3875 (openscop_print_pbb_domain): Same.
3876 (openscop_print_scop_context): Same.
3877 (print_scop_context): Same.
3878
3879 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
3880
3881 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
3882 (openscop_print_pdr_polyhedron): Print pph.
3883
3884 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3885
3886 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
3887 priority signed types.
3888
3889 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
3890
3891 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
3892 the call to lang_hooks.types.type_for_size. Call
3893 build_nonstandard_integer_type.
3894
3895 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
3896
3897 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
3898 (openscop_print_polyhedron_matrix): New.
3899 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
3900 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
3901 (openscop_print_pdr_powerset): New.
3902 (openscop_print_powerset_matrix): New.
3903 (openscop_print_scattering_function_1): New.
3904 (print_scattering_function): Add support for scattering names and
3905 OpenScop format.
3906 (graphite_write_transforms): Remove.
3907 (print_pdr_access_layout): Updated to support OpenScop format.
3908 (print_pdr): Same.
3909 (openscop_print_pbb_domain): New.
3910 (print_pbb_body): Added a parameter to allow indicating that pbb_body
3911 is not provided.
3912 (print_pbb): Updated to call the new print_pbb_body.
3913 (openscop_print_scop_context): New.
3914 (print_scop_header): New.
3915 (print_scop): Updated to call print_scop_header.
3916 * graphite-poly.h: Document OpenScop format.
3917
3918 2010-09-30 Anatoly Sokolov <aesok@post.ru>
3919
3920 * config/cris/m32c.c (cris_memory_move_cost): New.
3921 (cris_register_move_cost): Make static. Change arguments type from
3922 enum reg_class to reg_class_t.
3923 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3924 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3925 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
3926
3927 2010-09-30 Jakub Jelinek <jakub@redhat.com>
3928
3929 PR target/45843
3930 * config/i386/i386.c (ix86_gimplify_va_arg): Use
3931 INTVAL (XEXP (slot, 1)) as prev_size.
3932
3933 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
3934
3935 PR target/45837
3936 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
3937 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
3938 defined.
3939 * config/rs6000/option-defaults.h (toplevel): Change #if
3940 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
3941 global option changes.
3942
3943 2010-09-30 Jakub Jelinek <jakub@redhat.com>
3944
3945 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
3946
3947 PR tree-optimization/31261
3948 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
3949 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
3950
3951 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3952
3953 PR bootstrap/45796
3954 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
3955 special-casing for generators and turn into ...
3956 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
3957 rule, for better error messages in case of toplevel dependency errors.
3958 (genprog): Add hooks, rename to ...
3959 (genprogerr): ... this, and let genprog also contain check,
3960 checksum, condmd.
3961 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
3962 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
3963 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
3964
3965 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
3966 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3967
3968 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
3969 for GMP, MPFR and MPC.
3970
3971 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3972
3973 * config/sparc/sparc.opt (mimpure-text): Move ...
3974 * config/sol2.opt: ... here. Correct description.
3975 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
3976 * doc/invoke.texi (Option Summary, SPARC Options): Move
3977 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
3978 (Option Summary, Solaris 2 Options): ... here.
3979 (Submodel Options, Solaris 2 Options): New menu entry.
3980 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
3981 (Solaris 2 Options): ... here.
3982
3983 2010-09-30 Michael Eager <eager@eagercon.com>
3984
3985 * extend.texi (interrupt_handler): Add MicroBlaze to list.
3986 (save_volatiles): Describe option for MicroBlaze.
3987 * invoke.texi: Add MicroBlaze Options.
3988 * contrib.texi: Add acknowledgment.
3989 * md.texi: Add MicroBlaze d and z constraints.
3990 * install.texi: Add microblaze-*-elf.
3991 * configure.ac: Add microblaze-*-* to target list.
3992 * configure: Regenerate.
3993 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
3994 * config/microblaze/microblaze-protos.h: New.
3995 * config/microblaze/crti.s: New.
3996 * config/microblaze/predicates.md: New.
3997 * config/microblaze/linux.h: New.
3998 * config/microblaze/microblaze.md: New.
3999 * config/microblaze/constraints.md: New.
4000 * config/microblaze/crtn.s: New.
4001 * config/microblaze/microblaze.opt: New.
4002 * config/microblaze/microblaze-c.c: New.
4003 * config/microblaze/t-microblaze: New.
4004 * config/microblaze/microblaze.c: New.
4005 * config/microblaze/microblaze.h: New.
4006
4007 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4008
4009 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
4010 parse @optional/@required and set the flags as appropriate.
4011
4012 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
4013
4014 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
4015
4016 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4017
4018 * opt-functions.awk (static_var): Update comment.
4019 (var_ref): Return offsetof expression or -1, not variable address.
4020 * optc-gen.awk: Generate structure field initializers instead of
4021 static variables. Expect -1 for missing variables instead of null
4022 pointer. Add gcc_options parameters to generated functions.
4023 * opth-gen.awk: Generate structure fields for static variables.
4024 Add gcc_options parameters to generated functions.
4025 * common.opt (optimize, optimize_size): Add variables.
4026 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
4027 &global_options to cl_target_option_restore.
4028 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
4029 &global_options to cl_optimization_restore, cl_target_option_save
4030 and cl_target_option_restore.
4031 (ix86_set_current_function): Pass &global_options to
4032 cl_target_option_restore.
4033 * config/pdp11/pdp11.h (optimize): Remove.
4034 * config/rs6000/rs6000.h (optimize): Remove.
4035 * config/sh/sh.h (optimize): Remove.
4036 * config/xtensa/xtensa.h (optimize): Remove.
4037 * coretypes.h (struct gcc_options): Declare.
4038 * diagnostic.c (diagnostic_initialize): Initialize
4039 context->option_state.
4040 (diagnostic_report_diagnostic): Pass option_state to
4041 option_enabled hook.
4042 * diagnostic.h (diagnostic_context.option_enabled): Add void *
4043 parameter.
4044 (diagnostic_context.option_state): New field.
4045 * final.c (final_start_function, final, final_scan_insn): Rename
4046 optimize parameter to optimize_p.
4047 * flags.h (optimize, optimize_size): Remove.
4048 * function.c (invoke_set_current_function_hook): Pass
4049 &global_options to cl_optimization_restore.
4050 * gcc.c (driver_handle_option): Take gcc_options parameter.
4051 Assert that it is &global_options.
4052 (process_command): Pass &global_options to read_cmdline_option.
4053 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
4054 option_enabled.
4055 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
4056 &global_options to set_option.
4057 * opts-common.c (handle_option, handle_generated_option,
4058 read_cmdline_option, set_option): Take explicit gcc_options
4059 parameters. Use option_flag_var.
4060 (option_flag_var): New.
4061 * opts.c (common_handle_option, lang_handle_option,
4062 target_handle_option): Take gcc_options parameter. Assert that it
4063 is &global_options.
4064 (read_cmdline_options): Pass &global_options to read_cmdline_option.
4065 (print_filtered_help): Use option_flag_var. Pass &global_options
4066 to option_enabled.
4067 (common_handle_option): Use option_flag_var.
4068 (option_enabled): Take opts parameter. Use option_flag_var.
4069 (get_option_state): Take gcc_options parameter. Use
4070 option_flag_var. Pass gcc_options parameter to option_enabled.
4071 (enable_warning_as_error): Pass &global_options to
4072 handle_generated_option.
4073 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
4074 (cl_option_handler_func.handler): Take gcc_options parameter.
4075 (option_enabled, get_option_state, set_option, handle_option,
4076 handle_generated_option, read_cmdline_option): Take gcc_options
4077 parameters.
4078 * toplev.c (optimize, optimize_size): Remove.
4079 (print_switch_values): Pass &global_options to option_enabled.
4080 (option_affects_pch_p): Use option_flag_var. Pass &global_options
4081 to get_option_state.
4082 (general_init): Initialize global_dc->option_state.
4083 * tree.c (build_optimization_node): Pass &global_options to
4084 cl_optimization_save.
4085 (build_target_option_node): Pass &global_options to
4086 cl_target_option_save.
4087
4088 2010-09-30 Martin Jambor <mjambor@suse.cz>
4089
4090 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
4091 zero sized bit-fields.
4092
4093 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4094
4095 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
4096 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
4097 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
4098 (c_parser_objc_class_declaration): Same change.
4099 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
4100 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4101 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
4102 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
4103 and RID_AT_PUBLIC instead of RID_PUBLIC.
4104 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
4105 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
4106
4107 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
4108
4109 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
4110 Add links to current providers of packages for Solaris and IRIX.
4111
4112 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4113
4114 Merge from 'apple/trunk' branch on FSF servers.
4115 * c-parser.c: Applied change originally in c-parse.in.
4116
4117 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4118
4119 Radar 4281748
4120 * c-decl.c (start_decl): Check for redeclaration of class name.
4121 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
4122
4123 2010-09-29 Steve Ellcey <sje@cup.hp.com>
4124
4125 * config/ia64/ia64.c (ia64_builtin_decl): New.
4126 (TARGET_BUILTIN_DECL): Define.
4127 (ia64_builtins): New.
4128 (ia64_init_builtins): Save decls in ia64_builtins.
4129
4130 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
4131
4132 PR target/40457
4133 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
4134 (move2add_use_add3_insn): Likewise.
4135 (reload_cse_move2add): Likewise.
4136 * rtlanal.c (get_full_rtx_cost): New function.
4137 * rtl.h (struct full_rtx_costs): New.
4138 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
4139 costs_add_n_insns): New inline functions.
4140 (get_full_rtx_cost): Declare.
4141
4142 PR c/45054
4143 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
4144 invariants. Check for reg_equiv_invariant.
4145 (reload): Assert that spilled_pseudos is empty when returning.
4146
4147 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
4148
4149 * config/i386/mingw32.h (TARGET_64BIT): replaced by
4150 TARGET_64BIT_DEFAULT in #if check.
4151
4152 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
4153
4154 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
4155
4156 2010-09-29 Mike Stump <mikestump@comcast.net>
4157
4158 * config/darwin.h (flag_mkernel): Remove.
4159 (flag_apple_kext): Likewise.
4160
4161 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4162 Jack Howarth <howarth@bromo.med.uc.edu>
4163
4164 * config/darwin.opt (undefined): Add.
4165
4166 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
4167
4168 PR testsuite/45664
4169 * configure.ac: Add --enable-indirect-function option.
4170 * config.gcc: Add default_gnu_indirect_function.
4171 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
4172 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
4173 * varasm.c (do_assemble_alias): Adjust for macro name change.
4174 * configure: Rebuilt.
4175 * doc/install.texi: Document --enable-indirect-function.
4176
4177 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4178
4179 * doc/options.texi (Variable, Var, Init): Update documentation
4180 without reference to VarExists.
4181 (VarExists): Remove.
4182 * common.opt, config/i386/i386.opt, config/linux.opt,
4183 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
4184 Don't use VarExists.
4185
4186 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4187
4188 * optc-gen.awk: Generate global_options initializer instead of
4189 individual variables. Add x_ prefix to names of structure members.
4190 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
4191 names of structure members.
4192 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4193 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
4194 * doc/tm.texi: Regenerate.
4195 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4196 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4197 * c-parser.c (disable_extension_diagnostics,
4198 restore_extension_diagnostics): Update names of cpp_options members.
4199 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4200 * common.opt (fcompare-debug-second): Don't use Var.
4201 * config/alpha/alpha.h (target_flags): Remove.
4202 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4203 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4204 * config/bfin/bfin.h (target_flags): Remove.
4205 * config/cris/cris.h (target_flags): Remove.
4206 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
4207 cl_target_option members.
4208 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
4209 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
4210 ix86_can_inline_p): Update names of cl_target_option members.
4211 * config/i386/i386.h (ix86_isa_flags): Remove.
4212 * config/lm32/lm32.h (target_flags): Remove.
4213 * config/mcore/mcore.h (mcore_stack_increment): Remove.
4214 * config/mcore/mcore.md (addsi3): Remove extern declaration of
4215 flag_omit_frame_pointer.
4216 * config/mep/mep.h (target_flags): Remove.
4217 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4218 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
4219 * config/mmix/mmix.h (target_flags): Remove.
4220 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
4221 flag_expensive_optimizations): Remove.
4222 * config/s390/s390.h (flag_pic): Remove.
4223 * config/score/score-conv.h (target_flags): Remove.
4224 * config/sh/sh.h (sh_fixed_range_str): Remove.
4225 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
4226 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4227 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4228 * diagnostic.c (diagnostic_initialize): Update names of
4229 diagnostic_context members.
4230 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
4231 warn_system_headers.
4232 (diagnostic_report_warnings_p): Update for new names.
4233 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
4234 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
4235 HARD_FRAME_POINTER_IS_ARG_POINTER.
4236 * flags.h (flag_compare_debug): Declare.
4237 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4238 * opts.c (flag_compare_debug): Define.
4239 (common_handle_option): Update names of diagnostic_context
4240 members. Handle -fcompare-debug-second.
4241 (fast_math_flags_struct_set_p): Update names of cl_optimization
4242 members.
4243 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4244 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4245 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4246 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4247 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
4248 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
4249 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
4250 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
4251 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
4252
4253 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4254
4255 * config/picochip/picochip.c (picochip_output_internal_label):
4256 This function can now be called for debug CFI labels, which can come
4257 in the middle of a vliw instruction. Postpone until end of vliw.
4258
4259 2010-09-29 Richard Guenther <rguenther@suse.de>
4260
4261 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
4262 (DECL_FILE_SCOPE_P): Use it.
4263 (TYPE_FILE_SCOPE_P): New macro.
4264
4265 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4266
4267 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
4268 a CPP_NAME which is a reserved word, clearly separate cases for
4269 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
4270
4271 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4272
4273 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
4274 token->value with the canonical spelling. Do exactly like C and
4275 C++ and leave it as it is.
4276
4277 2010-09-28 Richard Henderson <rth@redhat.com>
4278
4279 * config/alpha/alpha.c (alpha_builtins): New.
4280 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
4281 (alpha_builtin_function): New.
4282 (alpha_add_builtins, alpha_init_builtins): Use it.
4283
4284 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
4285
4286 * doc/standards.texi (Standards): Expanded the section on
4287 Objective-C and Objective-C++.
4288
4289 2010-09-28 DJ Delorie <dj@redhat.com>
4290
4291 PR target/45800
4292 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
4293 volatile MEMs.
4294
4295 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4296
4297 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
4298 attributes on methods.
4299 (c_parser_objc_method_definition): Handle attributes.
4300 (c_parser_objc_methodproto): Likewise.
4301 (c_parser_objc_maybe_method_attributes): New.
4302 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
4303 missing definition, similar to that in ObjC++.
4304
4305 2010-09-28 Richard Henderson <rth@redhat.com>
4306
4307 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
4308 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
4309 (CONFIG_SJLJ_EXCEPTIONS): Remove.
4310 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
4311 (STACK_CHECK_PROTECT): Likewise.
4312 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
4313 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
4314 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
4315 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
4316 (dwarf2out_assembly_start): Likewise.
4317 * except.c (init_eh): Use targetm.except_unwind_info.
4318 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
4319 (output_one_function_exception_table): Likewise.
4320 * final.c: Unconditionally include dwarf2out.h.
4321 (final_start_function): Unconditionally call dwarf2out routines.
4322 (final_end_function, final_scan_insn): Likewise.
4323 * function.c (expand_function_end): Use targetm.except_unwind_info.
4324 * opts.c (decode_options): Use targetm.except_unwind_info.
4325 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
4326 * target.def (debug_unwind_info, except_unwind_info): New.
4327 * target.h (enum unwind_info_type): New.
4328 * targhooks.c (default_debug_unwind_info): New.
4329 (default_except_unwind_info): New.
4330 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
4331 * targhooks.h: Declare them.
4332 * tree-tailcall.c: Include "target.h"
4333 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
4334 * Makefile.in (tree-tailcall.o): Update.
4335 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
4336 (lhd_gcc_personality): Likewise.
4337
4338 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
4339 (TARGET_EXCEPT_UNWIND_INFO): New.
4340 (DWARF2_UNWIND_INFO): Update.
4341 (TARGET_DEBUG_UNWIND_INFO): New.
4342 * doc/tm.texi: Rebuild.
4343
4344 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
4345 targetm.except_unwind_info.
4346
4347 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
4348 (arm_except_unwind_info): New.
4349 (arm_compute_func_type): Use it.
4350 (arm_expand_prologue, thumb_pushpop): Likewise.
4351 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
4352 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
4353 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
4354 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
4355 (DWARF2_UNWIND_INFO): Remove.
4356 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
4357 (ARM_EABI_UNWIND_TABLES): Remove.
4358
4359 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
4360 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
4361 (ia64_except_unwind_info): New.
4362 (ia64_output_function_prologue): Use it.
4363 (ia64_add_bundle_selector_before): Likewise.
4364 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
4365 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
4366 (TARGET_UNWIND_INFO): Remove.
4367
4368 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
4369
4370 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4371
4372 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
4373 (c_parser_objc_protocol_definition): Likewise.
4374 (c_parser_external_declaration): Provide dummy attribute arguments.
4375 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
4376 (c_parser_objc_class_definition): Handle attributes.
4377 (c_parser_objc_protocol_definition): Likewise.
4378
4379 2010-09-28 Tobias Burnus <burnus@net-b.de>
4380
4381 PR fortran/40569
4382 PR fortran/40568
4383 * toplev.h (save_decoded_options, save_decoded_options_count):
4384 New global variables.
4385 * toplev.c (save_decoded_options, save_decoded_options_count):
4386 Export variables.
4387
4388 2010-09-28 Ian Lance Taylor <iant@google.com>
4389
4390 * config/i386/i386.c (ix86_supports_split_stack): Test
4391 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
4392
4393 2010-09-28 Ian Lance Taylor <iant@google.com>
4394
4395 PR target/45815
4396 * opts.c (decode_options): Don't test whether the target supports
4397 split stack if flag_split_stack == 0.
4398
4399 2010-09-28 Jan Hubicka <jh@suse.cz>
4400
4401 * builtin-attrs.def (ATTR_LEAF): New attribute.
4402 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
4403 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
4404 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
4405 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
4406 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
4407 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
4408 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
4409 * sync-builtins.def: Annotate all builtins by leaf.
4410 * omp-builtins.def: Annotate all builtins by leaf.
4411 * builtins.def: Annotate relevant builtins with leaf attribute.
4412 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
4413 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
4414 leaf.
4415
4416 2010-09-28 Jan Hubicka <jh@suse.cz>
4417
4418 * tree-ssa-ccp.c (fold_ctor_reference): New function.
4419 (fold_const_aggregate_ref): Use it.
4420 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
4421 into external static.
4422
4423 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4424
4425 PR target/44452
4426 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
4427 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
4428 (ix86_solaris_return_in_memory): Remove.
4429 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
4430 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
4431 (TARGET_SUBTARGET_DEFAULT): Redefine.
4432 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
4433 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
4434 (TARGET_SUBTARGET_DEFAULT): Redefine.
4435 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
4436 -mvect8-ret-in-mem.
4437 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
4438
4439 2010-09-29 Alan Modra <amodra@gmail.com>
4440
4441 PR target/45807
4442 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
4443 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
4444 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
4445 Delete.
4446 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
4447 (rs6000_emit_prologue): Don't just create frame save info for r2,
4448 actually save r2.
4449
4450 2010-09-28 Richard Henderson <rth@redhat.com>
4451
4452 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
4453 when 8 bytes are requested.
4454
4455 2010-09-28 Tristan Gingold <gingold@adacore.com>
4456
4457 * config/avr/avr.c (expand_prologue): Set
4458 current_function_static_stack_size.
4459
4460 2010-09-28 Tristan Gingold <gingold@adacore.com>
4461
4462 * config/alpha/alpha.md: Change the initial condition of the
4463 probing loop.
4464
4465 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
4466
4467 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
4468 Split from *avx_<maxmin:code><mode>3.
4469 (*avx_<smaxmin:code><mode>3): Ditto.
4470 * config/i386/i386.md (maxmin): Remove code iterator.
4471
4472 2010-09-27 Ian Lance Taylor <iant@google.com>
4473
4474 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
4475 requires assembler support for CFI directives.
4476
4477 2010-09-27 Richard Henderson <rth@redhat.com>
4478
4479 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
4480
4481 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
4482
4483 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
4484 that AFTER is not in the range FROM..TO, inclusive.
4485
4486 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
4487 Bernd Schmidt <bernds@codesourcery.com>
4488
4489 PR rtl-optimization/45792
4490 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
4491 If not all insns are to be merged, for each edge, stash the
4492 next candidate after the to-be-merged insns before doing the
4493 merge, and use them for the retry at the new insertion point.
4494 Handle CC0 targets when retrying.
4495
4496 2010-09-27 Ian Lance Taylor <iant@google.com>
4497
4498 * common.opt (fsplit-stack): New option.
4499 * opts.c (decode_options): Set flag_split_stack to final value.
4500 * target.def (supports_split_stack): New hook.
4501 * gcc.c (STACK_SPLIT_SPEC): Define.
4502 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
4503 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
4504 (Code Gen Options): Document -fsplit-stack.
4505 * doc/extend.texi (Function Attributes): Mention no_split_stack.
4506 (Function Attributes): Document no_split_stack.
4507 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
4508 TARGET_SUPPORTS_SPLIT_STACK.
4509 * doc/tm.texi: Rebuild.
4510 * function.c (thread_prologue_and_epilogue_insns): If
4511 flag_split_stack, add split stack prologue.
4512 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
4513 * varasm.c (saw_no_split_stack): New static variable.
4514 (assemble_start_function): Set saw_no_split_stack if the function
4515 has the no_split_stack attribute.
4516 (file_end_indicate_split_stack): New function.
4517 * output.h (file_end_indicate_split_stack): Declare.
4518 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
4519 and function.
4520 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
4521 routines.
4522 * config/i386/i386.c (ix86_option_override_internal): Don't set
4523 expand_builtin_va_start to NULL if -fsplit-stack.
4524 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
4525 -fsplit-stack.
4526 (ix86_va_start): If -fsplit-stack, get overflow pointer from
4527 scratch register set by prologue.
4528 (ix86_code_end): If -fsplit-stack, call
4529 file_end_indicate_split_stack.
4530 (ix86_supports_split_stack): New static function.
4531 (SPLIT_STACK_AVAILABLE): Define.
4532 (split_stack_prologue_scratch_regno): New static function.
4533 (split_stack_fn): New static variable.
4534 (ix86_expand_split_stack_prologue): New function.
4535 (ix86_live_on_entry): New static function.
4536 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
4537 (output_pic_addr_const): Likewise.
4538 (i386_asm_output_addr_const_extra): Likewise.
4539 (ix86_expand_call): Change return type to rtx. Return the new
4540 call instruction.
4541 (TARGET_SUPPORTS_SPLIT_STACK): Define.
4542 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4543 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
4544 (split_stack_prologue, split_stack_return): New insns.
4545 (split_stack_space_check): New insn.
4546 * config/i386/i386.h (struct machine_function): Add
4547 split_stack_varargs_pointer field.
4548 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
4549 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4550 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4551 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
4552 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
4553 Declare.
4554 (ix86_expand_call): Update declaration.
4555
4556 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4557
4558 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
4559 code. Added byref, which was missing in the list of codes.
4560 Explain that enumeration values are encoded as the integer type
4561 that the compiler uses to store them. Explain and make examples
4562 of how 'const' interacts with pointers, and the complication of
4563 the encoding of 'const char *'.
4564 (Legacy type encoding): New subsection, explaining that GCC emits
4565 incorrect type encodings for the NeXT runtime for compatibility
4566 reasons.
4567 (@@encode): New subsection, explaining @encode and particularly
4568 that protocol qualifiers are not recognized inside an @encode()
4569 expression.
4570 (Method signatures): New subsection, explaining how method
4571 signatures are encoded.
4572
4573 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4574
4575 Merge from 'apple/trunk' branch on FSF servers. Removed small
4576 change in build_conditional_expr that had been added when fixing
4577 PR objc/27377 and which did the same check in a less complete way.
4578
4579 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4580
4581 Radar 4229905
4582 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
4583 looking for objective-c common pointer types.
4584
4585 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4586
4587 Radar 4154928
4588 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
4589 use their ObjC common type.
4590
4591 2010-09-27 Richard Guenther <rguenther@suse.de>
4592
4593 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
4594
4595 2010-09-27 Jie Zhang <jie@codesourcery.com>
4596
4597 * print-tree.c (print_node): Print in-constant-pool.
4598
4599 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
4600
4601 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
4602 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
4603 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
4604 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
4605
4606 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
4607
4608 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
4609 from pro_epilogue_adjust_stack_<mode>_{1,2}.
4610 (pro_epilogue_adjust_stack_<mode>_add): Rename from
4611 pro_epilogue_adjust_stack_<mode>_3.
4612 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
4613 renamed pro_epilogue_adjust_stack_{si,di}_add.
4614 (ix86_expand_prologue): Use indirect functions. Update for renamed
4615 pro_epilogue_adjust_stack_{si,di}_sub.
4616
4617 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
4618
4619 * config/i386/i386.md (movmsk_df): New insn.
4620 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
4621 sequence for TARGET_SSE_MATH.
4622
4623 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
4624
4625 * config/mips/mips.c (mips_builtin_decls): Declare.
4626 (mips_init_builtins): Store function declarations in
4627 mips_builtin_decls.
4628 (mips_builtin_decl): New function.
4629 (TARGET_BUILTIN_DECL): Define.
4630
4631 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
4632 Richard Henderson <rth@redhat.com>
4633
4634 * config/i386/cygwin.asm: Include auto-host.h.
4635 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
4636 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
4637 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
4638 alignment code from the 64-bit path. Use gas local labels.
4639 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
4640 from _di_2. Remove the useless constant integer argument.
4641 (pro_epilogue_adjust_stack_<mode>_3): New.
4642 (allocate_stack_worker_probe_<mode>): Macroize from
4643 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
4644 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
4645 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
4646 (__chkstk_ms): New function.
4647 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
4648 * gcc/config/i386/t-interix: Likewise.
4649 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
4650 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4651 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
4652 * configure, config.in: Rebuild.
4653
4654 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
4655
4656 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
4657 statements because of the return slot optimization.
4658
4659 2010-09-25 Anatoly Sokolov <aesok@post.ru>
4660
4661 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
4662 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
4663 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4664 (class_likely_spilled_p): Rename to...
4665 (avr_class_likely_spilled_p): ...this. Make static. Change argument
4666 type to reg_class_t.
4667
4668 2010-09-24 Jan Hubicka <jh@suse.cz>
4669
4670 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
4671 (lto_symtab_resolve_symbols): Set it.
4672 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
4673 store resolution field in cgraph/varpool.
4674 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
4675 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
4676 (cgraph_dump_node): Drop used_from_object_file.
4677 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
4678 (cgraph_function_body_availability): Use decl_replaceable_p.
4679 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
4680 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
4681 cgraph_used_from_object_file_p.
4682 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
4683 cgraph_used_from_object_file_p.
4684 (resolution_used_from_other_file_p): New functoin.
4685 (cgraph_used_from_object_file_p): New predicate.
4686 * cgraph.h: Include plugin-api.h
4687 (struct cgraph_local_info): Remove used_from_object_file.
4688 (struct cgraph_node): Add resolution field.
4689 (struct varpool_node): Likewise; remove used_from_object_file;
4690 reove const_value_known.
4691 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
4692 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
4693 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
4694 varpool_used_from_object_file_p): Declare.
4695 (varpool_get_node, varpool_extra_name_alias): Update prototype.
4696 * tree.h (DECL_REPLACEABLE_P): Remove.
4697 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
4698 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
4699 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4700 input_overwrite_node, input_node, input_varpool_node): Stream
4701 resolution.
4702 * expr.c (expand_expr_real_1): Use const_value_known_p
4703 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
4704 const_value_known.
4705 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
4706 (function_and_variable_visibility): Set resolution for local vars
4707 and functions; use varpool_used_from_object_file_p.
4708 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
4709 static functions.
4710 (default_binds_local_p_1): Use resolutoin info.
4711 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
4712 * varpool.c (varpool_get_node): Constify.
4713 (const_value_known_p): Do not use vnode->const_value_known;
4714 use decl_replaceable_p.
4715 (varpool_finalize_decl): Do not set const_value_known.
4716 (cgraph_variable_initializer_availability): Use decl_replaceable_p
4717 (varpool_extra_name_alias): Return new node.
4718 (varpool_used_from_object_file_p): New function.
4719
4720 2010-09-24 Richard Henderson <rth@redhat.com>
4721
4722 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
4723 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
4724 (do_spill): Use REG_CFA_OFFSET.
4725 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
4726 as appropriate.
4727 (ia64_expand_epilogue): Likewise.
4728 (process_set): Split into ...
4729 (process_cfa_adjust_cfa): this,
4730 (process_cfa_register): this,
4731 (process_cfa_offset): and this new function.
4732 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
4733 instead of REG_FRAME_RELATED_EXPR.
4734
4735 2010-09-24 Olivier Hainque <hainque@adacore.com>
4736
4737 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
4738
4739 2010-09-24 Jan Hubicka <jh@suse.cz>
4740
4741 * doc/extend.texi: (attribute leaf): Document.
4742 * tree.c (local_define_builtin): Handle ECF_LEAF.
4743 (build_common_builtin_nodes): Set ECF_LEAF where needed.
4744 * tree.h (ECF_LEAF): New.
4745 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
4746 overwrittable and unavailable functions.
4747 (ipa_init): Put all_module_statics into optimization_summary_obstack.
4748 (copy_global_bitmap): Do not copy all_module_statics.
4749 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
4750 (propagate): Handle overwritable and unavailable leaf functions;
4751 initialize global info for overwritable and unavailable leaf functions;
4752 do not free all module statics.
4753 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
4754 local statics.
4755 * calls.c (flags_from_decl_or_type): Handle leaf.
4756 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
4757 abnormal gotos.
4758
4759 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
4760
4761 * gengtype.c: Reindented.
4762 * gengtype.h: Reindented.
4763 * gengtype-parse.c: Reindented.
4764
4765 2010-09-24 Jan Hubicka <jh@suse.cz>
4766
4767 PR tree-optimization/45738
4768 PR tree-optimization/45741
4769 * expr.c (string_constant): Allow CONST_DECL too;
4770 check that DECL_INITIAL is set.
4771 * varpool.c (const_value_known_p): Only look into VAR_DECL
4772 and CONST_DECL.
4773
4774 2010-09-24 Joseph Myers <joseph@codesourcery.com>
4775
4776 * common.opt (undef): New.
4777
4778 2010-09-24 Jakub Jelinek <jakub@redhat.com>
4779
4780 PR middle-end/45234
4781 * rtl.h (enum global_rtl_index): Add
4782 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
4783 (LAST_VIRTUAL_POINTER_REGISTER): Define.
4784 (virtual_preferred_stack_boundary_rtx,
4785 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
4786 (LAST_VIRTUAL_REGISTER): Increase by one.
4787 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
4788 instead of LAST_VIRTUAL_REGISTER.
4789 * function.c (instantiate_new_reg): Handle
4790 virtual_preferred_stack_boundary_rtx.
4791 * emit-rtl.c (init_virtual_regs): Handle
4792 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
4793 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
4794 * explow.c (round_push): If crtl->preferred_stack_boundary
4795 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
4796 virtual_preferred_stack_boundary_rtx alignment instead of
4797 crtl->preferred_stack_boundary alignment.
4798 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
4799 macros. Never decrease crtl->preferred_stack_boundary,
4800 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
4801 instead of PREFERRED_STACK_BOUNDARY. Don't modify
4802 stack_pointer_delta in dynamic allocation, even when size
4803 is constant.
4804 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
4805 macro.
4806 * print-rtl.c (print_rtx): Handle
4807 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
4808 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
4809 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
4810 * config/frv/frv.c (frv_emit_movsi): Likewise.
4811 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
4812 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
4813 Likewise.
4814
4815 Revert:
4816 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
4817
4818 PR middle-end/45234
4819 * calls.c (expand_call): Make sure that all variable sized
4820 adjustments are multiple of preferred stack boundary after
4821 stack alignment.
4822
4823 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
4824 Dominique Dhumieres <dominiq@lps.ens.fr>
4825
4826 PR bootstrap/45751
4827 * gcc/config/darwin-driver.c (darwin_default_min_version):
4828 Adjust size passed to memcpy in two places.
4829
4830 2010-09-24 Richard Guenther <rguenther@suse.de>
4831
4832 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
4833 Make sure to not call set_type_context with error_mark_node.
4834 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
4835
4836 2010-09-24 Richard Guenther <rguenther@suse.de>
4837
4838 * Makefile.in (OBJS-onestep): Remove.
4839 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
4840 (libbackend.a): Remove onestep support.
4841 (libbackend.o): Remove.
4842 * configure.ac (--enable-intermodule): Remove.
4843 * configure: Regenerate.
4844
4845 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
4846
4847 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
4848 reaching the end of a block if it occurs at a DEBUG_INSN.
4849
4850 2010-09-09 Tristan Gingold <gingold@adacore.com>
4851
4852 PR target/44242
4853 * config/vms/vms-crt0-64.c: Removed.
4854 * config/vms/vms-crt0.c: Removed.
4855 * config/vms/vms-psxcrt0-64.c: Removed.
4856 * config/vms/vms-psxcrt0.c: Removed.
4857 * config/vms/vms-ucrt0.c: New file.
4858 * config/vms/t-vms64: Removed.
4859 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
4860 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
4861 * config.gcc (alpha-dec-vms): Use t-vms.
4862
4863 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
4864
4865 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
4866 underfull hbox in DVI output.
4867 (-fobjc-class-cxx-cdtors): Same change.
4868 (-fobjc-exceptions): Tidied up documentation. Explain what the
4869 option does, but moved the (lenghty) description of the exception
4870 syntax into objc.texi.
4871 (-fobjc-gc): Explain that the option is not useful with the GNU
4872 runtime.
4873 (-fzero-link): Explain that the GNU runtime always works in
4874 "zero-link" mode.
4875 * doc/objc.texi: All sections: simplified @node declarations
4876 removing specification of next, previous, up node.
4877 (Objective-C): Updated introduction.
4878 (Garbage Collection): Updated. The bohem-gc library is now
4879 included in gcc itself. Mention that this section only applies to
4880 the GNU Objective-C runtime.
4881 (compatibility_alias): Small tidy up.
4882 (Exceptions): New section mostly containing text previously in the
4883 description of the -fobjc-exception command-line option.
4884 (Synchronization): Same.
4885
4886 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
4887
4888 * config/i386/i386.md (ix86_code_end): Move the initialization of
4889 xops array near the consumer. Use AX_REG and SP_REG instead of
4890 numerical constants.
4891
4892 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
4893
4894 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
4895 method [methodname]' for an Objective-C method instead of the less
4896 satisfactory 'too many arguments to function' (with no method name).
4897
4898 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
4899
4900 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
4901 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
4902 (execute_update_addresses_taken): Remove parameter. Execute the
4903 optimization unconditionally.
4904 * passes.c (execute_function_todo): Call execute_update_addresses_taken
4905 unconditionally if TODO_rebuild_alias is set, else only when optimizing
4906 if TODO_update_address_taken is set.
4907
4908 2010-09-23 Anatoly Sokolov <aesok@post.ru>
4909
4910 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4911 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
4912 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4913 (arm_output_addr_const_extra): Make static.
4914
4915 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
4916
4917 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
4918 define as unspec_volatile.
4919 ("nops"): Define as unspec_volatile. Use fputs to write to
4920 asm_out_file directly. Output NOPs on separate lines using while loop.
4921 * config/i386/i386.c (ix86_code_end): Use fputs to write to
4922 asm_out_file directly. Output NOPs on separate lines using while loop.
4923
4924 2010-09-23 Richard Guenther <rguenther@suse.de>
4925
4926 PR tree-optimization/45565
4927 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
4928 Make sure to adjust the fndecl before replacing the stmt.
4929
4930 2010-09-23 Richard Guenther <rguenther@suse.de>
4931
4932 PR middle-end/45750
4933 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
4934 gimplifying MEM_REF.
4935
4936 2010-09-23 Alan Modra <amodra@gmail.com>
4937
4938 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
4939 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
4940
4941 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
4942
4943 PR rtl-optimization/44374
4944 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
4945 * df-core.c (df_set_bb_dirty): Set it.
4946 * ifcvt.c (find_memory): Remove function.
4947 (dead_or_predicable): Use can_move_insns_across.
4948 * df.h (can_move_insns_across): Declare function.
4949 * cfgcleanup.c (block_was_dirty): New static variable.
4950 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
4951 than df_get_bb_dirty.
4952 (try_head_merge_bb): New static function.
4953 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
4954 is set.
4955 * df-problems.c: Include "target.h"
4956 (df_simulate_find_uses): New static function.
4957 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
4958 (find_memory, find_memory_store): New static functions.
4959 (can_move_insns_across): New function.
4960 * Makefile.in (df-problems.o): Update dependencies.
4961
4962 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
4963
4964 PR java/44095
4965 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
4966 is specified and the suffix of the file isn't ".c".
4967 * config/sparc/linux64.h (ASM_SPEC): Likewise.
4968
4969 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4970
4971 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
4972 * doc/cppopts.texi: Fix markup of index entry.
4973 * doc/extend.texi (Constructing Calls): Fix markup of
4974 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
4975 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
4976 (Vague Linkage, C++ Attributes): Fix markup of index entries and
4977 keywords.
4978 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
4979 avoid long lines.
4980 (C Dialect Options, C++ Dialect Options, Warning Options)
4981 (Debugging Options, Spec Files, Darwin Options)
4982 (i386 and x86-64 Options, MIPS Options)
4983 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
4984 index entries, avoid abbreviations, allow URLs to wrap, avoid
4985 long lines, avoid overlong pages from long @itemx lists.
4986 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
4987 * doc/standards.texi (Standards): Likewise.
4988 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
4989
4990 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4991
4992 * opts-common.c (prune_options): Make static. Work with decoded
4993 options.
4994 (decode_cmdline_options_to_array): Call prune_options. Don't
4995 resize option array here.
4996 * opts.h (prune_options): Remove prototype.
4997 * gcc.c (process_command): Take decoded options; don't call
4998 decode_cmdline_options_to_array here. Use decoded options for argv[0].
4999 (main): Call decode_cmdline_options_to_array here instead of
5000 prune_options. Update call to process_command.
5001 * config/darwin-driver.c: Include opts.h.
5002 (darwin_default_min_version): Work with decoded options. Don't
5003 handle -b or -V here.
5004 * config/darwin.h (darwin_default_min_version): Update prototype.
5005 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
5006 darwin_default_min_version.
5007 * config/i386/cygwin.h (mingw_scan): Update prototype.
5008 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
5009 * config/i386/cygwin1.c: Include opts.h.
5010 (mingw_scan): Work with decoded options.
5011 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
5012 * config/t-darwin (darwin-driver.o): Update dependencies.
5013
5014 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5015
5016 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
5017 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
5018 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
5019 -force-link, -force-link=, -language, -language=,
5020 -library-directory, -library-directory=, -no-canonical-prefixes,
5021 -no-standard-libraries, -no-warnings, -optimize, -output,
5022 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
5023 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
5024 -print-file-name=, -print-libgcc-file-name,
5025 -print-multi-directory, -print-multi-lib,
5026 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
5027 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
5028 -profile, -save-temps, -shared, -specs, -specs=, -static,
5029 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
5030 symbolic): New.
5031 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
5032 * gcc.c (A Short Introduction to Adding a Command-Line Option):
5033 Remove comment.
5034 (cc1_options): Correct specs for passing down --help,
5035 --target-help and --help=*. Add spec for passing down --version.
5036 (struct option_map, option_map, target_option_translations,
5037 translate_options): Remove.
5038 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
5039 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
5040 OPT_fhelp_ and OPT_ftarget_help.
5041 (process_command): Don't call translate_options. Call
5042 decode_cmdline_options_to_array before checking for
5043 -no-canonical-prefixes using decoded options.
5044 * opts-common.c (tm.h): Update comment on #include.
5045 (find_opt): Allow abbreviations of long options.
5046 (struct option_map, option_map): New.
5047 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
5048 and -mno handling.
5049 (target_option_translations): New.
5050 (decode_cmdline_options_to_array): Handle
5051 TARGET_OPTION_TRANSLATE_TABLE in driver.
5052 * opts.c (common_handle_option): Don't handle OPT_fhelp,
5053 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
5054
5055 2010-09-22 Richard Guenther <rguenther@suse.de>
5056
5057 * tree-inline.c (optimize_inline_calls): Schedule cleanups
5058 only if we inlined something. Block compaction and conditional
5059 folding are done by cfg cleanup. Schedule update-address-taken.
5060 (tree_function_versioning): Remove redundant call to number_blocks.
5061 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
5062 folding is done by cfg cleanup.
5063 * passes.c (init_optimization_passes): Remove update-address-taken
5064 pass after IPA inlining.
5065
5066 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5067
5068 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
5069 to update conditions. Fix reg_mode[] check.
5070
5071 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
5072
5073 * config/picochip/picochip.md (movhicc): Use expand to check whether
5074 movhicc is available and split it after reload.
5075
5076 2010-09-22 Richard Guenther <rguenther@suse.de>
5077
5078 * tree-ssanames.c (release_dead_ssa_names): Do not remove
5079 callee edges here.
5080 * passes.c (init_optimization_passes): Remove early CFG cleanup.
5081 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
5082 (pass_cleanup_cfg): Likewise.
5083 (execute_fixup_cfg): Cleanup.
5084 * tree-pass.h (pass_cleanup_cfg): Remove.
5085
5086 2010-09-22 Martin Jambor <mjambor@suse.cz>
5087
5088 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
5089 builtins if it is true.
5090 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
5091 parameter.
5092
5093 2010-09-22 Martin Jambor <mjambor@suse.cz>
5094
5095 * tree-sra.c (struct access): New field grp_no_warning.
5096 (create_access_replacement): Set TREE_NO_WARNING according to
5097 grp_no_warning.
5098 (create_artificial_child_access): Use build_ref_for_model and set
5099 grp_no_warning if build_user_friendly_ref_for_offset fails.
5100 (propagate_subaccesses_across_link): Likewise.
5101
5102 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
5103
5104 PR target/35664
5105 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
5106 ('f'): Likewise.
5107
5108 2010-09-22 Tristan Gingold <gingold@adacore.com>
5109
5110 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
5111
5112 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
5113
5114 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
5115 * config/i386/i386.c (decide_alg): Update for rename.
5116
5117 2010-09-22 Jakub Jelinek <jakub@redhat.com>
5118
5119 PR rtl-optimization/45739
5120 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
5121 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
5122
5123 2010-09-21 Anatoly Sokolov <aesok@post.ru>
5124
5125 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
5126 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
5127 Remove.
5128 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
5129 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
5130
5131 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5132
5133 PR objc/23710
5134 * c-parser.c (c_parser_objc_method_definition): Check the return
5135 value of objc_start_method_definition and if false is returned,
5136 parse the method definition but emit no code.
5137
5138 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5139
5140 PR objc/25965
5141 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
5142 call objc_get_interface_ivars ().
5143
5144 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
5145
5146 PR target/45694
5147 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
5148 static chain-register is used for 64-bit.
5149
5150 2010-09-21 Richard Guenther <rguenther@suse.de>
5151
5152 * dwarf2out.c (is_cu_die): New function.
5153 (add_pubtype): Use it.
5154 (gen_subprogram_die): Likewise.
5155 (gen_struct_or_union_type_die): Likewise.
5156 (dwarf2out_finish): Likewise.
5157 (comp_unit_die): Rename to ...
5158 (single_comp_unit_die): ... this.
5159 (comp_unit_die): New function lazily constructing and
5160 returning single_comp_unit_die.
5161 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
5162 base_type_die, subrange_type_die, modified_type_die,
5163 lower_bound_default, add_bound_info, add_prototyped_attribute,
5164 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
5165 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
5166 force_decl_die, gen_namespace_die, dwarf2out_decl,
5167 dwarf2out_start_source_file, dwarf2out_end_source_file,
5168 prune_unused_types, dwarf2out_finish): Use it.
5169 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
5170 the global list of translation-unit decls.
5171 (dwarf2out_init): Do not create single_comp_unit_die here.
5172 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
5173
5174 2010-09-21 Richard Guenther <rguenther@suse.de>
5175
5176 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
5177 for bool for C++.
5178
5179 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
5180
5181 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
5182 (qhs_extenddi_cstr): Likewise.
5183 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
5184 them for the source operand.
5185
5186 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
5187
5188 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
5189 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
5190 (ix86_split_ashr): Ditto.
5191 (ix86_split_lshr): Ditto.
5192
5193 2010-09-21 Richard Guenther <rguenther@suse.de>
5194
5195 PR tree-optimization/45580
5196 * tree-ssa-propagate.c (substitute_and_fold): Always replace
5197 regular uses.
5198 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
5199 virtuals fold the call into a regular indirect one.
5200
5201 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5202
5203 PR rtl-optimization/42775
5204 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
5205 scheduling is enabled.
5206
5207 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5208
5209 PR rtl-optimization/45728
5210 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
5211 gen_lowpart_common first and if that fails, force_reg first
5212 before calling gen_lowpart.
5213
5214 PR middle-end/45678
5215 * cfgexpand.c (expand_one_stack_var_at): Use
5216 crtl->max_used_stack_slot_alignment as max_align, instead
5217 of maximum of that and PREFERRED_STACK_BOUNDARY.
5218 Don't call update_stack_alignment.
5219
5220 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
5221
5222 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
5223 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
5224 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
5225 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
5226 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
5227 (build_nonstandard_integer_type): Likewise.
5228 (build_range_type_1): New function, built from...
5229 (build_range_type): ...this. Call build_range_type_1.
5230 (build_nonshared_range_type): New function.
5231 (build_array_type_1): New function, built from...
5232 (build_array_type: ...this. Call build_array_type_1.
5233 (build_nonshared_array_type): New function.
5234 * tree.h (build_nonshared_range_type): Declare.
5235 (build_nonshared_array_type): Likewise.
5236
5237 2010-09-20 Anatoly Sokolov <aesok@post.ru>
5238
5239 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
5240 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5241 (arm_class_likely_spilled_p): New function.
5242
5243 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
5244
5245 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
5246 indirect functions.
5247 (ix86_split_ashl): Ditto.
5248 (ix86_split_ashr): Ditto.
5249 (ix86_split_lshr): Ditto.
5250 (ix86_adjust_counter): Ditto.
5251
5252 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
5253
5254 * c-family/c-common.h (constant_string_class): Documented with
5255 comment identical to the one already in c-common.c.
5256
5257 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5258
5259 * dwarf2out.c (any_cfis_emitted): New static variable.
5260 (add_fde_cfi): Set it.
5261 (dwarf2out_frame_debug): Clear it before processing,
5262 if it is set afterwards, flush any queued reg saves.
5263
5264 PR debug/45124
5265 * dwarf2out.c (add_accessibility_attribute): Assume
5266 DW_ACCESS_private as the default for dwarf_version > 2
5267 and DW_TAG_class_type parent.
5268 (gen_inheritance_die): Assume DW_ACCESS_public as the default
5269 for dwarf_version > 2 and parent other than DW_TAG_class_type.
5270
5271 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5272
5273 PR target/45726
5274 * arm.md (arm_movt): Only enable on machines with MOVT.
5275
5276 2010-09-20 Jie Zhang <jie@codesourcery.com>
5277
5278 * config/arm/arm.c (arm_address_offset_is_imm): New.
5279 (arm_early_store_addr_dep): New.
5280 (arm_early_load_addr_dep): New.
5281 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
5282 (arm_early_load_addr_dep): Declare.
5283 (arm_address_offset_is_imm): Declare.
5284 * config/arm/cortex-m4.md: New file.
5285 * config/arm/cortex-m4-fpu.md: New file.
5286 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
5287 (attr generic_sched): Exclude cortexm4.
5288 (attr generic_vfp): Exclude cortexm4.
5289
5290 2010-09-20 Richard Guenther <rguenther@suse.de>
5291
5292 PR middle-end/45704
5293 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
5294
5295 2010-09-20 Jan Hubicka <jh@suse.cz>
5296
5297 PR tree-optimize/45605
5298 * cgraph.h (const_value_known_p): Declare.
5299 (varpool_decide_const_value_known): Remove.
5300 * tree-ssa-ccp.c (get_base_constructor): Use it.
5301 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
5302 * expr.c (string_constant): Likewise.
5303 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
5304 * ipa.c (ipa_discover_readonly_nonaddressable_var,
5305 function_and_variable_visibility): Likewise.
5306 * gimplify.c (gimplify_call_expr): Likewise.
5307 * gimple-fold.c (get_symbol_constant_value): Likewise.
5308 * varpool.c (varpool_decide_const_value_known): Replace by...
5309 (const_value_known_p): ... this one; handle other kinds of DECLs
5310 too and work for automatic vars.
5311 (varpool_finalize_decl): Use const_value_known_p.
5312
5313 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
5314
5315 PR target/45726
5316 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
5317
5318 2010-09-20 Richard Guenther <rguenther@suse.de>
5319
5320 PR tree-optimization/45705
5321 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
5322
5323 2010-09-20 Jakub Jelinek <jakub@redhat.com>
5324
5325 PR rtl-optimization/45695
5326 * combine.c (try_combine): When splitting a two set pattern,
5327 make sure the pattern which will be put into i2 doesn't use REGs
5328 or MEMs set by insns in between i2 and i3.
5329
5330 2010-09-19 Jan Hubicka <jh@suse.cz>
5331
5332 PR lto/44246
5333 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
5334 processing same node twice.
5335
5336 2010-09-19 Anatoly Sokolov <aesok@post.ru>
5337
5338 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
5339 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5340 (bfin_class_likely_spilled_p): New function
5341
5342 2010-09-19 Ira Rosen <irar@il.ibm.com>
5343
5344 PR tree-optimization/45714
5345 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
5346 created in vectorizable_call instead of the original statement in
5347 def stmt updates.
5348
5349 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
5350
5351 * config/i386/i386-protos.h (split_double_mode): New prototype.
5352 (split_di, split_ti): Remove prototypes.
5353 * config/i386/i386.c (split_double_mode): New function.
5354 (split_di, split_ti): Remove.
5355 (ix86_expand_branch): Use split_double_mode.
5356 (ix86_split_to_parts): Ditto.
5357 (ix86_split_ashl): Ditto.
5358 (ix86_split_ashr): Ditto.
5359 (ix86_split_lshr): Ditto.
5360 (ix86_force_to_memory): Ditto.
5361 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
5362
5363 2010-09-18 Jan Hubicka <jh@suse.cz>
5364
5365 PR tree-optimization/45453
5366 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
5367 virtual functions are reachable.
5368 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
5369 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
5370 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
5371 when modifying function.
5372
5373 2010-09-18 Jan Hubicka <jh@suse.cz>
5374
5375 PR tree-optimization/45605
5376 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
5377 * gimple-fold.c (static_object_in_other_unit_p): New function.
5378 (canonicalize_constructor_val): Use it.
5379 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
5380 returning NULL.
5381 (gimple_fold_obj_type_ref_known_binfo): Use
5382 static_object_in_other_unit_p.
5383
5384 2010-09-18 Richard Guenther <rguenther@suse.de>
5385
5386 PR tree-optimization/45709
5387 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
5388 insertions until after all PHI nodes of the block are processed.
5389
5390 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
5391
5392 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
5393
5394 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
5395
5396 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
5397
5398 2010-09-18 Richard Guenther <rguenther@suse.de>
5399
5400 PR tree-optimization/45709
5401 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
5402
5403 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
5404
5405 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
5406 (dot_deps_stmt): Same.
5407 * graphite-poly.c (dot_lst): Same.
5408 * graphite-scop-detection.c (dot_all_scops): Same.
5409 (dot_scop): Same.
5410
5411 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
5412
5413 Revert:
5414 2009-12-16 Ben Elliston <bje@au.ibm.com>
5415
5416 * tree-data-ref.c (dot_rdg_1): Added back.
5417 (dot_rdg): Same. Added "#if 0" around system call.
5418
5419 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5420 Richard Henderson <rth@redhat.com>
5421
5422 * config/i386/i386.c (initial_ix86_tune_features): Add
5423 X86_TUNE_PAD_SHORT_FUNCTION.
5424 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
5425 (ix86_count_insn): New.
5426 (ix86_pad_short_function): Likewise.
5427 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
5428
5429 * config/i386/i386.h (ix86_tune_indices): Add
5430 X86_TUNE_PAD_SHORT_FUNCTION.
5431 (TARGET_PAD_SHORT_FUNCTION): New.
5432
5433 * config/i386/i386.md (UNSPEC_NOPS): New.
5434 (nops): Likewise.
5435
5436 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5437
5438 PR middle-end/45234
5439 * calls.c (expand_call): Make sure that all variable sized
5440 adjustments are multiple of preferred stack boundary after
5441 stack alignment.
5442
5443 2010-09-17 DJ Delorie <dj@redhat.com>
5444
5445 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
5446 passed an invalid value, print an error instead of ICEing.
5447 (valid_psw_flag): New.
5448 (rx_expand_builtin): Call it for setpsw/clrpsw.
5449 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
5450
5451 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
5452 (bitclr_in_memory): Likewise.
5453 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
5454
5455 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5456
5457 PR middle-end/45678
5458 * cfgexpand.c (update_stack_alignment): New.
5459 (get_decl_align_unit): Use it.
5460 (expand_one_stack_var_at): Call update_stack_alignment.
5461
5462 2010-09-17 Richard Guenther <rguenther@suse.de>
5463
5464 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
5465 Properly copy the read string.
5466
5467 2010-09-17 Joseph Myers <joseph@codesourcery.com>
5468
5469 * doc/options.texi (Variable): Document.
5470 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
5471 generate target_flags declarations explicitly. Don't define
5472 VarExists variables for the driver.
5473 * common.opt (target_flags): New Variable record.
5474 (flag_dump_unnumbered, flag_dump_unnumbered_links,
5475 flag_var_tracking, flag_var_tracking_assignments,
5476 flag_var_tracking_assignments_toggle): Don't mark variables with
5477 VarExists.
5478 * config/i386/i386.c (ix86_isa_flags): Don't define here.
5479 * config/i386/i386.opt (ix86_isa_flags): Define here.
5480 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
5481 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
5482 VarExists.
5483 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
5484 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
5485 Only define for generator programs.
5486 * rtlanal.c (target_flags): Remove.
5487 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
5488 flag_var_tracking_assignments_toggle): Remove.
5489
5490 2010-09-17 Michael Matz <matz@suse.de>
5491
5492 PR tree-optimization/43432
5493 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5494 Accept backwards consecutive accesses.
5495 (vect_create_data_ref_ptr): If step is negative generate
5496 decreasing IVs.
5497 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
5498 (perm_mask_for_reverse, reverse_vec_elements): New functions.
5499 (vectorizable_load): Handle loads with negative steps when easily
5500 possible.
5501
5502 2010-09-03 Jan Hubicka <jh@suse.cz>
5503
5504 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
5505
5506 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
5507
5508 * config/v850/v850.c (v850_function_value_regno_p): Make static.
5509 Adjust comments. Declare.
5510 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
5511 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
5512
5513 2010-09-17 Richard Guenther <rguenther@suse.de>
5514
5515 * common.opt (combine): Remove.
5516 * gcc.c (default_compilers): Remove specs testing combine.
5517 The C compilers no longer can combine.
5518 (option_map): Remove -combine.
5519 (display_help): Remove -combine.
5520 (driver_handle_option): Remove OPT_combine handling.
5521 (compile_input_file_p): Remove.
5522 (do_spec): Remove code concerning combine.
5523 (main): Likewise.
5524 * doc/invoke.texi: Remove traces of -combine.
5525 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
5526
5527 2010-09-17 Richard Guenther <rguenther@suse.de>
5528
5529 PR middle-end/45678
5530 * builtins.c (fold_builtin_memory_op): Always properly adjust
5531 alignment of memory accesses.
5532
5533 2010-09-16 Jan Hubicka <jh@suse.cz>
5534
5535 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
5536 processing clone.
5537
5538 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
5539
5540 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
5541
5542 * config/i386/i386.c (predict_jump): Add prototype.
5543 (flag_opts): Add -m8bit-idiv.
5544 (ix86_split_idivmod): New.
5545
5546 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
5547 Add 2 splitters for SI/DI mode divide.
5548 (divmod<mode>4_1): New pattern.
5549 (udivmod<mode>4_1): Likewise.
5550 (testdi_ccno_1): Likewise.
5551
5552 * config/i386/i386.opt (m8bit-idiv): New.
5553
5554 * doc/invoke.texi: Document -m8bit-idiv.
5555
5556 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
5557
5558 PR bootstrap/45680
5559 * config/i386/i386.c (min_insn_size): Moved out of the
5560 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
5561
5562 2010-09-16 Jan Hubicka <jh@suse.cz>
5563
5564 * lto-cgraph.c (lto_output_node): Fix handling of clones.
5565 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
5566 unreachable clones with reachable clones.
5567 * tree-inline.c (copy_bb): Fix sanity checking when producing
5568 unreachable clone.
5569
5570 2010-09-16 Anatoly Sokolov <aesok@post.ru>
5571
5572 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
5573 (TARGET_MEMORY_MOVE_COST): Define.
5574 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
5575
5576 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
5577
5578 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
5579 maybe_tidy_empty_bb.
5580
5581 Revert:
5582 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
5583 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
5584
5585 2010-09-16 Joseph Myers <joseph@codesourcery.com>
5586
5587 * target.def (target_option.optimization): New hook.
5588 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
5589 TARGET_OPTION_OPTIMIZATION hook.
5590 * doc/tm.texi: Regenerate.
5591 * hooks.c (hook_void_int_int): New.
5592 * hooks.h (hook_void_int_int): Declare.
5593 * opts.c: Don't include tm_p.h.
5594 (decode_options): Use targetm.target_option.optimization instead
5595 of OPTIMIZATION_OPTIONS.
5596 * system.h (OPTIMIZATION_OPTIONS): Poison.
5597 * config/arm/arm-protos.h (arm_optimization_options): Remove.
5598 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
5599 (arm_optimization_options): Rename to arm_option_optimization.
5600 Make static.
5601 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
5602 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
5603 (cris_option_optimization): New.
5604 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
5605 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
5606 (crx_option_optimization): New.
5607 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
5608 * config/frv/frv-protos.h (frv_optimization_options): Remove.
5609 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
5610 (frv_optimization_options): Rename to frv_option_optimization.
5611 Make static.
5612 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
5613 * config/h8300/h8300.c (h8300_option_optimization): New.
5614 (TARGET_OPTION_OPTIMIZATION): Define.
5615 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
5616 * config/i386/i386-protos.h (optimization_options): Remove.
5617 * config/i386/i386.c (optimization_options): Rename to
5618 ix86_option_optimization. Make static.
5619 (TARGET_OPTION_OPTIMIZATION): Define.
5620 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
5621 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
5622 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
5623 (ia64_optimization_options): Rename to ia64_option_optimization.
5624 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
5625 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
5626 commented-out definition.
5627 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
5628 instead of OPTIMIZATION_OPTIONS.
5629 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
5630 (m32r_option_optimization): New.
5631 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
5632 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
5633 Remove.
5634 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
5635 (mcore_option_optimization): New.
5636 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
5637 * config/mep/mep-protos.h (mep_optimization_options): Remove.
5638 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
5639 (mep_optimization_options): Rename to mep_option_optimization.
5640 Make static. Take unused level and size parameters.
5641 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
5642 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
5643 (mmix_option_optimization): New.
5644 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
5645 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
5646 (pdp11_option_optimization): New.
5647 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
5648 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
5649 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
5650 (optimization_options): Rename to rs6000_option_optimization.
5651 Make static.
5652 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
5653 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
5654 * config/rx/rx.c (rx_set_optimization_options): Rename to
5655 rx_option_optimization. Make static. Take unused level and size
5656 parameters.
5657 (TARGET_OPTION_OPTIMIZATION): Define.
5658 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
5659 * config/s390/s390-protos.h (optimization_options): Remove.
5660 * config/s390/s390.c (optimization_options): Rename to
5661 s390_option_optimization. Make static. Don't mark size parameter
5662 unused.
5663 (TARGET_OPTION_OPTIMIZATION): Define.
5664 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
5665 * config/sh/sh-protos.h (sh_optimization_options): Remove.
5666 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
5667 (sh_optimization_options): Rename to sh_option_optimization. Make
5668 static. Don't mark parameters unused.
5669 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
5670 * config/spu/spu-protos.h (spu_optimization_options): Remove.
5671 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
5672 (spu_optimization_options): Rename to spu_option_optimization.
5673 Make static.
5674 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
5675 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
5676 (v850_option_optimization): New.
5677 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
5678 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
5679 (xtensa_option_optimization): New.
5680 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
5681
5682 2010-09-16 Joseph Myers <joseph@codesourcery.com>
5683
5684 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
5685 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
5686 * doc/tm.texi: Regenerate.
5687 * system.h (OVERRIDE_OPTIONS): Poison.
5688 * target.def (override): Default to hook_void_void.
5689 * targhooks.c (default_target_option_override): Remove.
5690 * genmodes.c, machmode.def: Update comments mentioning
5691 OVERRIDE_OPTIONS.
5692 * config/alpha/alpha-modes.def: Update comment mentioning
5693 alpha_override_options.
5694 * config/alpha/alpha-protos.h (override_options): Remove.
5695 * config/alpha/alpha.c (override_options): Rename to
5696 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
5697 (TARGET_OPTION_OVERRIDE): Define.
5698 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
5699 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
5700 of OVERRIDE_OPTIONS.
5701 * config/arc/arc-protos.h (arc_init): Remove.
5702 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
5703 (arc_init): Rename to arc_option_override. Make static.
5704 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
5705 (OVERRIDE_OPTIONS): Remove.
5706 * config/arm/arm-protos.h (arm_override_options): Remove.
5707 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
5708 (arm_override_options): Rename to arm_option_override. Make
5709 static. Call SUBTARGET_OVERRIDE_OPTIONS.
5710 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
5711 * config/arm/arm.md: Update comment referring to arm_override_options.
5712 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
5713 instead of OVERRIDE_OPTIONS.
5714 * config/avr/avr-protos.h (avr_override_options): Remove.
5715 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
5716 (avr_override_options): Rename to avr_option_override. Make static.
5717 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
5718 * config/bfin/bfin-protos.h (override_options): Remove (twice).
5719 * config/bfin/bfin.c (override_options): Rename to
5720 bfin_option_override. Make static.
5721 (TARGET_OPTION_OVERRIDE): Define.
5722 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
5723 * config/cris/cris-protos.h (cris_override_options): Remove.
5724 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
5725 (cris_override_options): Rename to cris_option_override. Make static.
5726 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
5727 * config/frv/frv-protos.h (frv_override_options): Remove.
5728 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
5729 (frv_override_options): Rename to frv_option_override. Make static.
5730 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
5731 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
5732 * config/h8300/h8300.c (h8300_init_once): Rename to
5733 h8300_option_override. Make static.
5734 (TARGET_OPTION_OVERRIDE): Define.
5735 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
5736 * config/i386/i386-protos.h (override_options): Remove.
5737 * config/i386/i386.c (override_options): Rename to
5738 ix86_option_override_internal. Make static. Comments referring
5739 to this function and callers changed.
5740 (ix86_option_override): New.
5741 (TARGET_OPTION_OVERRIDE): Define.
5742 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
5743 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
5744 * config/ia64/ia64.c (ia64_file_start): Update comment referring
5745 to ia64_override_options.
5746 * config/iq2000/iq2000-protos.h (override_options): Remove.
5747 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
5748 (override_options): Rename to iq2000_option_override. Make static.
5749 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
5750 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
5751 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
5752 (lm32_override_options): Rename to lm32_option_override. Make static.
5753 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
5754 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
5755 (m32r_option_override): New.
5756 (m32r_init): Update comment.
5757 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
5758 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
5759 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
5760 (m68hc11_override_options): Rename to m68hc11_option_override.
5761 Make static. Return void.
5762 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
5763 * config/m68k/m68k-protos.h (override_options): Remove.
5764 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
5765 (override_options): Rename to m68k_option_override. Make static.
5766 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
5767 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
5768 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
5769 (mcore_override_options): Rename to mcore_option_override. Make
5770 static.
5771 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
5772 * config/mep/mep-protos.h (mep_override_options): Remove.
5773 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
5774 (mep_override_options): Rename to mep_option_override. Make static.
5775 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
5776 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
5777 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
5778 (mmix_override_options): Rename to mmix_option_override. Make static.
5779 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
5780 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
5781 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
5782 (mn10300_override_options): Rename to mn10300_option_override.
5783 Make static.
5784 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
5785 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
5786 * config/moxie/moxie.c (moxie_override_options): Rename to
5787 moxie_option_override. Make static.
5788 (TARGET_OPTION_OVERRIDE): Define.
5789 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
5790 * config/picochip/picochip-protos.h (picochip_override_options):
5791 Remove. Update comment referring to picochip_override_options.
5792 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
5793 (picochip_override_options): Rename to picochip_option_override.
5794 Make static. Update comment and definition of
5795 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
5796 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
5797 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5798 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5799 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5800 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5801 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5802 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
5803 instead of OVERRIDE_OPTIONS.
5804 * config/rs6000/rs6000-modes.def: Update comment referring to
5805 rs6000_override_options.
5806 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
5807 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
5808 (rs6000_override_options): Rename to
5809 rs6000_option_override_internal. Make static. Commented
5810 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
5811 (rs6000_option_override): New.
5812 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
5813 instead of OVERRIDE_OPTIONS.
5814 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
5815 * config/s390/s390-protos.h (override_options): Remove.
5816 * config/s390/s390.c (override_options): Rename to
5817 s390_option_override. Make static.
5818 (TARGET_OPTION_OVERRIDE): Define.
5819 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
5820 * config/score/score-protos.h (score_override_options): Remove.
5821 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
5822 (score_override_options): Rename to score_option_override. Make
5823 static.
5824 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
5825 Update comment referring to override_options.
5826 * config/score/score3.c (score3_override_options): Rename to
5827 score3_option_override.
5828 * config/score/score3.h (score3_override_options): Rename to
5829 score3_option_override.
5830 * config/score/score7.c (score7_override_options): Rename to
5831 score7_option_override.
5832 * config/score/score7.h (score7_override_options): Rename to
5833 score7_option_override.
5834 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
5835 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
5836 (sparc_override_options): Rename to sparc_option_override. Make
5837 static. Call SUBTARGET_OVERRIDE_OPTIONS.
5838 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
5839 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
5840 instead of OVERRIDE_OPTIONS.
5841 * config/spu/spu-protos.h (spu_override_options): Remove.
5842 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
5843 (spu_override_options): Rename to spu_option_override. Make
5844 static.
5845 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
5846 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
5847 OVERRIDE_OPTIONS.
5848 * config/vax/vax-protos.h (override_options): Remove.
5849 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
5850 (override_options): Rename to vax_option_override. Make static.
5851 Call SUBTARGET_OVERRIDE_OPTIONS.
5852 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
5853 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
5854 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
5855 * config/xtensa/xtensa-protos.h (override_options): Remove.
5856 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
5857 (override_options): Rename to xtensa_option_override. Make static.
5858 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
5859
5860 2010-09-16 Richard Guenther <rguenther@suse.de>
5861
5862 PR tree-optimization/45623
5863 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
5864 (get_constraint_for_component_ref): If computing a constraint
5865 for the rhs handle type punning through unions.
5866 (get_constraint_for_address_of): Adjust.
5867 (get_constraint_for_1): Likewise.
5868 (get_constraint_for): Likewise.
5869 (get_constraint_for_rhs): New function.
5870 (do_structure_copy): Adjust.
5871 (make_constraint_to): Likewise.
5872 (handle_const_call): Likewise.
5873 (find_func_aliases): Likewise.
5874 (process_ipa_clobber): Likewise.
5875 (create_variable_info_for): Likewise.
5876
5877 2010-09-16 Ira Rosen <irar@il.ibm.com>
5878
5879 * tree-vectorizer.c: Fix documentation.
5880 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
5881 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
5882 is_pattern_stmt_p, is_loop_header_bb_p,
5883 stmt_vinfo_set_inside_of_loop_cost,
5884 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
5885 known_alignment_for_access_p): Likewise.
5886 * tree-vect-loop.c: Fix documentation.
5887 (vect_get_cost): Start function name from new line.
5888 * tree-vect-data-refs.c: Fix documentation.
5889 * tree-vect_stmts.c: Likewise.
5890 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
5891 (vectorizable_store): Free vec_oprnds if allocated.
5892 (vectorizable_condition): Initialize several variables to avoid
5893 warnings.
5894 * tree-vect-slp.c: Fix documentation.
5895
5896 2010-09-16 Richard Guenther <rguenther@suse.de>
5897
5898 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
5899 is TS_TRANSLATION_UNIT_DECL.
5900 (initialize_tree_contains_struct): Adjust.
5901 (all_translation_units): New global vector.
5902 (build_translation_unit_decl): New function.
5903 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
5904 (struct tree_translation_unit_decl): New.
5905 (all_translation_units): Declare.
5906 (union tree_node): Add translation_unit_decl member.
5907 (build_translation_unit_decl): Declare.
5908 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
5909 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
5910 New function.
5911 (pack_value_fields): Call it.
5912 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
5913 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
5914 (lto_output_tree_pointers): Call it.
5915 * lto-streamer-in.c (lto_input_tree_ref): Handle references
5916 to TRANSLATION_UNIT_DECL.
5917 (unpack_ts_translation_unit_decl_value_fields): New function.
5918 (unpack_value_fields): Call it.
5919 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
5920 (lto_input_tree_pointers): Call it.
5921 * lto-streamer.c (check_handled_ts_structures): Adjust.
5922 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
5923 * c-decl.c (all_translation_units): Remove.
5924 (pop_scope): Use build_translation_unit_decl.
5925 (collect_all_refs): Adjust.
5926 (for_each_global_decl): Likewise.
5927 (c_write_global_declarations): Likewise.
5928
5929 2010-09-16 Jakub Jelinek <jakub@redhat.com>
5930
5931 PR bootstrap/45686
5932 * fold-const.c (fold_checksum_tree): Change slot from const void **
5933 to void **, use CONST_CAST_TREE to store into *slot.
5934
5935 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
5936
5937 * config/i386/i386.md: Remove unneeded empty conditions and
5938 preparation statements from expanders.
5939 * config/i386/mmx.md: Ditto.
5940 * config/i386/sse.md: Ditto.
5941
5942 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
5943
5944 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
5945
5946 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
5947
5948 PR rtl-optimization/45593
5949 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
5950 insns that were in delay slots as stand-alone insns.
5951
5952 2010-09-15 Ian Lance Taylor <iant@google.com>
5953
5954 * incpath.c (remove_duplicates): If name is not a directory, issue
5955 a warning rather than an error.
5956
5957 2010-09-15 Martin Jambor <mjambor@suse.cz>
5958
5959 PR middle-end/45644
5960 * tree-sra.c (create_access): Check for bit-fields directly.
5961
5962 2010-09-15 Jakub Jelinek <jakub@redhat.com>
5963
5964 PR tree-optimization/45633
5965 * tree-cfg.c (verify_gimple_assign_binary): Allow
5966 MINUS_EXPR with lhs and rhs1 pointer vector and
5967 rhs2 sizetype vector.
5968 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
5969 or vector pointer use TER to optimize pointer subtraction.
5970
5971 2010-09-15 Jie Zhang <jie@codesourcery.com>
5972
5973 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
5974 fcmpd to fcmps.
5975
5976 2010-09-15 Ian Lance Taylor <iant@google.com>
5977
5978 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
5979
5980 2010-09-15 Ian Lance Taylor <iant@google.com>
5981
5982 * function.c (get_arg_pointer_save_area): Set
5983 arg_pointer_save_area_init to true.
5984
5985 2010-09-15 Martin Jambor <mjambor@suse.cz>
5986
5987 * tree-sra.c (generate_subtree_copies): Updated comment.
5988 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
5989 obtained from the statement iterator instead.
5990 (load_assign_lhs_subreplacements): Removed parameters lhs and
5991 right_offset, which is obtained from top_racc instead. Parameter lacc
5992 is now expected to be the root of the processed tree rather than root's
5993 first child. Updated all callers.
5994
5995 2010-09-15 Joseph Myers <joseph@codesourcery.com>
5996
5997 * config/pdp11/pdp11.c (register_move_cost): Rename to
5998 pdp11_register_move_cost.
5999 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
6000 pdp11_register_move_cost.
6001 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
6002 pdp11_register_move_cost instead of register_move_cost.
6003
6004 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
6005
6006 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
6007 pattern for vmovn. Expansion in case of non
6008 -mvectorize-with-neon-quad.
6009 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
6010 non- -mvectorize-with-neon-quad case.
6011 (move_lo_quad_<mode>): New expansion to vmov into low part.
6012 (move_hi_quad_<mode>): New expansion to vmov into high part.
6013 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
6014 (move_lo_quad_v4sf): Likewise.
6015 (move_lo_quad_v8hi): Likewise.
6016 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
6017 low part.
6018 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
6019 high part.
6020 * config/arm/iterators.md (ANY128): New mode iterator.
6021 (V_narrow_pack): New mode attribute.
6022 (V_HALF): Add attribute.
6023 (V_DOUBLE): Add attribute.
6024 (V_mode_nunits): Add attribute.
6025
6026 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
6027
6028 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
6029 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
6030
6031 2010-09-15 Olivier Hainque <hainque@adacore.com>
6032 Jose Ruiz <ruiz@adacore.com>
6033
6034 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
6035 * config/alpha/osf5-unwind.h: New file.
6036
6037 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6038
6039 PR bootstrap/45672
6040 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
6041 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6042 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6043
6044 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6045
6046 * c-lang.h (struct lang_type): Add variable_size GTY option.
6047
6048 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6049
6050 PR bootstrap/45672
6051 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6052
6053 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6054
6055 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
6056 result isn't used in memory address.
6057
6058 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6059
6060 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
6061 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
6062 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6063 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6064 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6065 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6066
6067 * target.def: Add units_per_simd_word to vectorize.
6068
6069 * targhooks.c (default_units_per_simd_word): New.
6070 * targhooks.h (default_units_per_simd_word): Likewise.
6071 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
6072 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6073 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
6074 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6075 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
6076 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6077 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
6078 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
6079
6080 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
6081 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
6082
6083 * tree-vect-stmts.c: Don't include "tm_p.h".
6084 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
6085 with targetm.vectorize.units_per_simd_word.
6086
6087 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
6088
6089 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
6090
6091 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
6092 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
6093
6094 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
6095 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
6096
6097 * doc/tm.texi: Regenerated.
6098
6099 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
6100
6101 * tree-vect-stmts.c: Include "tm_p.h".
6102
6103 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
6104 out of RTX_CODE.
6105
6106 2010-09-14 Martin Jambor <mjambor@suse.cz>
6107
6108 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
6109 location of generated statement. Changed all callers.
6110 (build_ref_for_model): New parameter loc which used to set location of
6111 all generated expressions. Changed all callers.
6112 (generate_subtree_copies): Likewise.
6113 (init_subtree_with_zero): Likewise.
6114 (sra_modify_expr): Set locations of all generated statements and
6115 expressions to the location the original statement.
6116 (handle_unscalarized_data_in_subtree): Likewise.
6117 (load_assign_lhs_subreplacements): Likewise.
6118 (sra_modify_constructor_assign): Likewise.
6119 (sra_modify_assign): Likewise.
6120
6121 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
6122
6123 PR target/45277
6124 PR target/45363
6125 PR target/45407
6126 * doc/install.texi (sparc*-*-*): New section.
6127 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
6128
6129 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6130
6131 PR middle-end/45567
6132 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
6133 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
6134 (expand_builtin): Adjust caller.
6135 (expand_builtin_unop): Only use subtarget if it has the right mode.
6136
6137 2010-09-14 Tristan Gingold <gingold@adacore.com>
6138
6139 * configure.ac (plugins): Fix typos.
6140 * configure: Regenerate.
6141
6142 2010-09-14 Jakub Jelinek <jakub@redhat.com>
6143
6144 PR debug/45660
6145 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
6146 gen_type_die for function/method return type.
6147
6148 2010-09-14 Ira Rosen <irar@il.ibm.com>
6149
6150 PR tree-optimization/45470
6151 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6152 can throw an exception.
6153 * tree-vect-stmts.c (vectorizable_call): Likewise.
6154
6155 2010-09-14 DJ Delorie <dj@redhat.com>
6156
6157 PR target/44749
6158 * config/mep/mep-protos.h (mep_save_register_info,
6159 mep_reinit_regs, mep_init_regs): Declare.
6160
6161 * config/mep/mep.c: Move all target definitions to the end of the
6162 file to avoid the need for duplicate declarations.
6163 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
6164 (mep_reorg_erepeat): Remove unused variables.
6165 (mep_expand_builtin): Likewise.
6166
6167 * config/mep/mep-pragma.c: Don't include rtl.h.
6168 (INVALID_REGNUM): New.
6169 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
6170 functions.
6171 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
6172 Avoid enum/integer math.
6173
6174 2010-09-13 Joseph Myers <joseph@codesourcery.com>
6175
6176 PR target/44749
6177 * config/mep/t-mep (GTM_H): Add insn-constants.h.
6178 * config/mep/mep.c (mep_conditional_register_usage): Take no
6179 parameters.
6180 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
6181 prototype.
6182 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
6183 call to mep_conditional_register_usage.
6184
6185 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
6186
6187 PR debug/43937
6188 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
6189 the DECL as well.
6190
6191 2010-09-13 Jakub Jelinek <jakub@redhat.com>
6192
6193 PR rtl-optimization/45617
6194 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
6195 even if low N bits of X aren't known to be zero.
6196
6197 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
6198
6199 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
6200
6201 * config/i386/i386.c (initial_ix86_tune_features): Add
6202 X86_TUNE_VECTORIZE_DOUBLE.
6203 (ix86_units_per_simd_word): New.
6204
6205 * config/i386/i386.h (ix86_tune_indices): Add
6206 X86_TUNE_VECTORIZE_DOUBLE.
6207 (TARGET_VECTORIZE_DOUBLE): New.
6208 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
6209
6210 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
6211
6212 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
6213 (new_temp_expr_table): Allocate call_cnt vector.
6214 (free_temp_expr_table): Free it.
6215 (process_replaceable): Add call_cnt parm and set in vector.
6216 (find_replaceable_in_bb): Skip replacement if def/use span a call.
6217 (debug_ter): Dump call_cnt value, remove stderr uses.
6218
6219 2010-09-13 Jan Hubicka <jh@suse.cz>
6220
6221 * tree.c (build_zero_cst): New.
6222 * tree.h (build_zero_cst): Declare.
6223 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
6224 (get_base_constructor): Break out from ...
6225 (fold_const_aggregate_ref): Here; handle empty constructors.
6226
6227 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6228
6229 * config/arm/arm.md: (define_attr "conds"): Update comment.
6230 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
6231 conds attribute to clob.
6232 (arm_sync_compare_and_swapsi): Likewise.
6233 (arm_sync_compare_and_swap<mode>): Likewise.
6234 (arm_sync_lock_test_and_setsi): Likewise.
6235 (arm_sync_lock_test_and_set<mode>): Likewise.
6236 (arm_sync_new_<sync_optab>si): Likewise.
6237 (arm_sync_new_nandsi): Likewise.
6238 (arm_sync_new_<sync_optab><mode>): Likewise.
6239 (arm_sync_new_nand<mode>): Likewise.
6240 (arm_sync_old_<sync_optab>si): Likewise.
6241 (arm_sync_old_nandsi): Likewise.
6242 (arm_sync_old_<sync_optab><mode>): Likewise.
6243 (arm_sync_old_nand<mode>): Likewise.
6244
6245 2010-09-13 Olivier Hainque <hainque@adacore.com>
6246
6247 * fwprop.c (forward_propagate_and_simplify): Only attach a
6248 REG_EQUAL note to an insn if the destination is a register.
6249 * gcse.c (try_replace_reg): Likewise.
6250
6251 2010-09-13 Richard Guenther <rguenther@suse.de>
6252
6253 PR tree-optimization/45611
6254 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
6255 (copy_ref_info): Likewise.
6256
6257 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
6258
6259 PR debug/45604
6260 PR debug/45419
6261 PR debug/45408
6262 * tree-pretty-print.c (dump_generic_node): Disregard top-level
6263 types of MEM_REF pointer types to the same type.
6264
6265 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
6266
6267 PR rtl-optimization/41087
6268 * ifcvt.c (noce_get_condition): Don't allow conditions with
6269 side-effects.
6270
6271 2010-09-12 Anatoly Sokolov <aesok@post.ru>
6272
6273 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6274 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
6275 * config/frv/frv.c (frv_register_move_cost): Make static. Change
6276 arguments type to reg_class_t. Add mode argument.
6277 (frv_memory_move_cost): New.
6278 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
6279
6280 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
6281
6282 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
6283 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
6284
6285 2010-09-10 Jan Hubicka <jh@suse.cz>
6286
6287 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
6288
6289 2010-09-10 Richard Guenther <rguenther@suse.de>
6290
6291 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
6292 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
6293 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
6294 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
6295 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
6296
6297 2010-09-10 Richard Guenther <rguenther@suse.de>
6298
6299 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
6300 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
6301 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
6302 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
6303
6304 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
6305
6306 PR middle-end/45634
6307 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
6308 of string folding is of integral type.
6309
6310 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
6311
6312 * doc/invoke.texi (-x): Fix typo.
6313
6314 2010-09-10 Richard Guenther <rguenther@suse.de>
6315
6316 PR debug/44115
6317 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
6318 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6319 Output DECL_DEBUG_EXPR.
6320 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6321 Input DECL_DEBUG_EXPR.
6322
6323 2010-09-10 Richard Guenther <rguenther@suse.de>
6324
6325 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
6326 (build_index_type): Implement in terms of build_range_type.
6327 (build_range_type): Do not allow NULL_TREE type, improve
6328 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
6329 if we didn't hash.
6330 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
6331 create a distinct copy of the type.
6332
6333 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
6334
6335 * configure: Regenerated.
6336 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
6337
6338 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6339
6340 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
6341 * config/arm/cortex-a9-neon.md: New and partially generated.
6342 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
6343
6344 2010-09-10 Richard Guenther <rguenther@suse.de>
6345
6346 * tree.h (build_index_2_type): Remove.
6347 * tree.c (build_index_2_type): Remove.
6348
6349 2010-09-10 Jakub Jelinek <jakub@redhat.com>
6350
6351 PR bootstrap/45630
6352 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
6353 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
6354 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
6355
6356 2010-09-10 Martin Jambor <mjambor@suse.cz>
6357
6358 PR tree-optimization/44972
6359 * tree-sra.c: Include toplev.h.
6360 (build_ref_for_offset): Entirely reimplemented.
6361 (build_ref_for_model): New function.
6362 (build_user_friendly_ref_for_offset): New function.
6363 (analyze_access_subtree): Removed build_ref_for_offset check.
6364 (propagate_subaccesses_across_link): Likewise.
6365 (create_artificial_child_access): Use
6366 build_user_friendly_ref_for_offset.
6367 (propagate_subaccesses_across_link): Likewise.
6368 (ref_expr_for_all_replacements_p): Removed.
6369 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
6370 (sra_modify_expr): Use build_ref_for_model.
6371 (load_assign_lhs_subreplacements): Likewise.
6372 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
6373 checks for return values of build_ref_for_offset.
6374 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
6375 build_ref_for_offset.
6376 * ipa-prop.h: Include gimple.h
6377 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
6378 (ipa_analyze_indirect_call_uses): Update comment.
6379 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
6380 (IPA_PROP_H): Likewise.
6381
6382 2010-09-10 Martin Jambor <mjambor@suse.cz>
6383
6384 PR tree-optimization/44972
6385 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
6386 calling build_ref_for_offset.
6387
6388 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6389
6390 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
6391 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
6392 * config/arm/arm-tune.md: Regenerate.
6393 * doc/invoke.texi (ARM Options): Document it.
6394
6395 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
6396
6397 * config/i386/i386.c: Include sched-int.h.
6398 (TARGET_SCHED_DISPATCH): Defined.
6399 (TARGET_SCHED_DISPATCH_DO): Defined.
6400 (DISPATCH_WINDOW_SIZE): Defined.
6401 (MAX_DISPATCH_WINDOWS): Defined.
6402 (MAX_INSN): Defined.
6403 (MAX_IMM): Defined.
6404 (MAX_IMM_SIZE): Defined.
6405 (MAX_IMM_32): Defined.
6406 (MAX_IMM_64): Defined.
6407 (MAX_LOAD): Defined.
6408 (MAX_STORE): Defined.
6409 (BIG): Defined.
6410 (dispatch_group): New.
6411 (num_allowable_groups): New.
6412 (group_name): New.
6413 (sched_insn_info_s): New.
6414 (dispatch_windows_s): New.
6415 (imm_info_s): New.
6416 (dispatch_window_list): New.
6417 (dispatch_window_list1): New.
6418 (get_mem_group): New.
6419 (is_cmp): New.
6420 (dispatch_violation): New.
6421 (is_branch): New.
6422 (is_prefetch): New.
6423 (init_window): New.
6424 (allocate_window): New.
6425 (init_dispatch_sched): New.
6426 (is_end_basic_block): New.
6427 (process_end_window): New.
6428 (allocate_next_window): New.
6429 (find_constant_1): New.
6430 (find_constant): New.
6431 (get_num_immediates): New.
6432 (has_immediate): New.
6433 (get_insn_path): New.
6434 (get_insn_group): New.
6435 (count_num_restricted): New.
6436 (fits_dispatch_window): New.
6437 (add_insn_window): New.
6438 (add_to_dispatch_window): New.
6439 (debug_dispatch_window_file): New.
6440 (debug_dispatch_window): New.
6441 (debug_insn_dispatch_info_file): New.
6442 (debug_ready_dispatch): New.
6443 (do_dispatch): New.
6444 (has_dispatch): New.
6445 * config/i386/i386.h (debug_ready_dispatch): Declared.
6446 (debug_dispatch_window): Declared.
6447 * config/i386/i386.opt (mdispatch-scheduler): New flag.
6448 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
6449 (TARGET_SCHED_DISPATCH_DO): New.
6450 * doc/tm.texi: Regererated.
6451 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
6452 ready_remove_first_dispatch
6453 (schedule_block): Call targetm.sched.dispatch and
6454 targetm.sched.dispatch_do.
6455 (sched_init): Call targetm.sched.dispatch and
6456 targetm.sched.dispatch_do.
6457 (ready_remove_first_dispatch): New.
6458 (number_in_ready): New.
6459 (get_ready_element): New.
6460 * hooks.c (hook_bool_rtx_int_false): New.
6461 (hook_void_rtx_int): New.
6462 * hooks.h (hook_bool_rtx_int_false): Declared.
6463 (hook_void_rtx_int): Declared.
6464 * sched-int.h (IS_DISPATCH_ON): Defined.
6465 (IS_CMP): Defined.
6466 (DISPATCH_VIOLATION): Defined.
6467 (FITS_DISPATCH_WINDOW): Defined.
6468 (DISPATCH_INIT): Defined.
6469 (ADD_TO_DISPATCH_WINDOW): Defined.
6470 (get_ready_element): Declared.
6471 (number_in_ready): Declared.
6472 * target.def (dispatch): Defined.
6473 (dispatch_do): Defined.
6474
6475 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
6476
6477 PR middle-end/45312
6478 * reload1.c (merge_assigned_reloads): Remove.
6479 (reload_as_needed): Don't call it.
6480
6481 2010-09-09 Anatoly Sokolov <aesok@post.ru>
6482
6483 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
6484 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6485 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6486
6487 2010-09-09 Matthias Klose <doko@ubuntu.com>
6488
6489 PR bootstrap/43847
6490 * configure.ac (--enable-plugin): Enhance for cross builds.
6491 * configure: Regenerate.
6492
6493 2010-09-09 Jan Hubicka <jh@suse.cz>
6494
6495 PR tree-optimization/45598
6496 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
6497 string folding is of integral type.
6498
6499 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6500
6501 * configure.ac (gnu_indirect_function): New test.
6502 * configure: Rebuilt.
6503 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
6504 * defaults.h (IFUNC_ASM_TYPE): Provide default.
6505
6506 * doc/extend.texi (Function Attributes): Document ifunc.
6507 * varasm.c (do_assemble_alias): Deal with ifuncs too.
6508
6509 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
6510
6511 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
6512 epilogue instruction move.
6513
6514 2010-09-09 Jan Hubicka <jh@suse.cz>
6515
6516 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
6517 command line to allow more partitions than input files.
6518
6519 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
6520
6521 PR middle-end/44554
6522 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
6523
6524 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
6525
6526 PR middle-end/40386
6527 * ira.c (pseudo_for_reload_consideration_p): Don't use
6528 flag_ira_share_spill_slots.
6529
6530 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6531
6532 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
6533 point zero operands that fit into a single GPR.
6534 (s390_preferred_reload_class): Ensure we only return general-purpose
6535 register classes.
6536 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
6537 floating-point zero operands into GPRs.
6538 ("*mov<mode>_64"): Likewise.
6539 ("mov<mode>"): Likewise using lhi.
6540
6541 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6542
6543 * config/s390/s390.c (s390_symref_operand_p): Return false for
6544 literal pool references.
6545 (s390_check_qrst_address): Update caller.
6546
6547 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
6548
6549 * config/i386/predicates.md (ext_register_operand): Check that
6550 SUBREG_REG is really a register before looking for REGNO.
6551 (reg_not_xmm0_operand): Handle SUBREGs correctly.
6552 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
6553
6554 2010-09-09 Jakub Jelinek <jakub@redhat.com>
6555
6556 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
6557 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
6558 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
6559 * print-rtl.c (print_rtx): Likewise.
6560 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6561 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
6562 for ADDR_EXPR with non-addressable object.
6563 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
6564 (struct dw_val_struct): Add v.val_decl_ref.
6565 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
6566 Handle DW_OP_GNU_implicit_pointer.
6567 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
6568 (get_ref_die_offset_label): New function.
6569 (implicit_ptr_descriptor): New function.
6570 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
6571 (loc_descriptor): Likewise.
6572 (gen_variable_die): Put even definitions into decl_die_table.
6573 (resolve_addr_in_expr): Resolve still unresolved
6574 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
6575 return false.
6576 (dwarf2out_finish): Call output_location_lists after outputting
6577 .debug_info and .debug_abbrev instead of before.
6578
6579 2010-09-09 Roland McGrath <roland@redhat.com>
6580
6581 * dwarf2out.c (DWARF_REF_SIZE): Define.
6582 (size_of_loc_descr): Use it for DW_OP_call_ref.
6583
6584 2010-09-09 Alan Modra <amodra@gmail.com>
6585
6586 * doc/invoke.text: Reinstate mcmodel=medium.
6587 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6588 CMODEL_MEDIUM as default.
6589 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
6590 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
6591 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
6592 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
6593
6594 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6595
6596 PR target/45250
6597 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
6598 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
6599 (builtin_longjmp): Likewise.
6600 (allocate_stack): Use hard_frame_pointer_rtx instead of
6601 frame_pointer_rtx.
6602 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
6603 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
6604 (pa_can_eliminate): Likewise.
6605 (TARGET_INTERNAL_ARG_POINTER): Define.
6606 (TARGET_CAN_ELIMINATE): Define.
6607 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
6608 pointer.
6609 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
6610 (pa_internal_arg_pointer, pa_can_eliminate,
6611 pa_initial_elimination_offset): New.
6612 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
6613 (HARD_FRAME_POINTER_REGNUM): Set to register three.
6614 (INITIAL_FRAME_POINTER_OFFSET): Delete.
6615 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
6616 Define.
6617 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
6618 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
6619 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
6620 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
6621 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
6622 new soft frame pointer.
6623 * config/pa/pa64-regs.h: Likewise.
6624
6625 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
6626
6627 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
6628 numerical constant.
6629 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
6630
6631 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
6632
6633 PR debug/45531
6634 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
6635
6636 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
6637
6638 PR debug/45419
6639 PR debug/45408
6640 * tree-pretty-print.c (dump_generic_node): Disregard top-level
6641 qualifiers in otherwise equal MEM_REF pointer types.
6642 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
6643 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
6644
6645 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6646
6647 PR target/44392
6648 * config/arm/arm.md (bswapsi2): Handle condition correctly
6649 for armv6 and optimize_size.
6650
6651 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6652
6653 PR other/18555
6654 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
6655
6656 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
6657
6658 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
6659 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
6660 ix86_expand_strlen, legitimate_pic_address_disp_p,
6661 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
6662 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
6663 ix86_check_movabs, ix86_secondary_memory_needed): Change function
6664 prototype to bool.
6665 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
6666 return_in_memory_ms_64, ix86_check_movabs,
6667 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
6668 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
6669 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
6670 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
6671 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
6672 ix86_secondary_memory_needed): Change to bool. Return
6673 "true" and "false" values.
6674 * config/i386/i386.md: Return "true" and "false" values.
6675
6676 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6677
6678 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6679 run_expensive_tests.
6680
6681 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6682
6683 * toplev.c (output_stack_usage): Use lbasename instead of basename.
6684
6685 2010-09-08 Martin Jambor <mjambor@suse.cz>
6686
6687 PR other/45443
6688 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
6689 at -O3.
6690
6691 2010-09-08 Richard Guenther <rguenther@suse.de>
6692
6693 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
6694 (visit): Adjust.
6695 (iterative_hash_gimple_type): Likewise.
6696 (gimple_type_hash): Likewise.
6697 (gimple_register_type): Likewise.
6698 (print_gimple_types_stats): Likewise.
6699 (free_gimple_type_tables): Likewise.
6700
6701 2010-09-08 Michael Matz <matz@suse.de>
6702
6703 PR tree-optimization/43430
6704 * tree-vect-stmts.c (vectorizable_condition): Support multiple
6705 copies for conditional statements if it's not part of a reduction.
6706
6707 2010-09-08 Michael Matz <matz@suse.de>
6708
6709 PR tree-optimization/33244
6710 * tree-ssa-sink.c (statement_sink_location): Don't sink into
6711 empty loop latches.
6712
6713 2010-09-08 Richard Guenther <rguenther@suse.de>
6714
6715 PR tree-optimization/45578
6716 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
6717 Be more careful when transfering alignment information to
6718 the new induction variable.
6719 (copy_ref_info): Likewise.
6720
6721 2010-09-08 Richard Guenther <rguenther@suse.de>
6722
6723 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
6724 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
6725
6726 2010-09-08 Arnaud Charlet <charlet@adacore.com>
6727
6728 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
6729 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
6730
6731 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
6732
6733 PR doc/45587
6734 * doc/md.texi: Fixed modes on several standard pattern names.
6735
6736 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
6737
6738 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
6739 (ashl<mode>3): ...this.
6740 (loongson_psra<V_suffix>): Rename to...
6741 (ashr<mode>3): ...this.
6742 (loongson_psrl<V_suffix>): Rename to...
6743 (lshr<mode>3): ...this.
6744 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
6745 (CODE_FOR_loongson_psllw): Define.
6746 (CODE_FOR_loongson_psrlh): Define.
6747 (CODE_FOR_loongson_psrlw): Define.
6748 (CODE_FOR_loongson_psrah): Define.
6749 (CODE_FOR_loongson_psraw): Define.
6750
6751 2010-09-07 Richard Henderson <rth@redhat.com>
6752
6753 * tree-vect-data-refs.c: Include tm_p.h.
6754 * Makefile.in (tree-vect-data-refs.o): Update deps.
6755 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
6756 Move delarations outside #ifdef RTX_CODE.
6757
6758 2010-09-07 Richard Henderson <rth@redhat.com>
6759
6760 * final.c (rest_of_handle_final): Unconditionally do
6761 output_function_exception_table before assemble_end_function.
6762
6763 2010-09-07 Jan Hubicka <jh@suse.cz>
6764
6765 * tree-inline.c (tree_inlinable_function_p): Do not test
6766 DECL_REPLACEABLE_P.
6767 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
6768 update_callee_keys, cgraph_decide_inlining): Test function availability.
6769 * cif-code.def (OVERWRITABLE): New code.
6770
6771 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
6772 Jack Howarth <howarth@bromo.med.uc.edu>
6773
6774 PR target/36502
6775 PR target/42313
6776 PR target/44651
6777 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
6778 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
6779 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
6780 MAX macro.
6781
6782 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
6783
6784 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
6785 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
6786
6787 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
6788
6789 * config.gcc: Don't append t-android for Android targets.
6790
6791 * config/t-android: Removed.
6792
6793 2010-09-07 Richard Henderson <rth@redhat.com>
6794
6795 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
6796 * doc/tm.texi.in: Add doc marker.
6797 * doc/tm.texi: Rebuild.
6798 * except.c (switch_to_exception_section): Always build.
6799 (output_one_function_exception_table): Move section switch,
6800 personality output, and label output ...
6801 (output_function_exception_table): ... here. Use the new
6802 personality hook.
6803
6804 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
6805 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
6806 TARGET_ASM_INIT_SECTIONS): New.
6807 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
6808 make static.
6809 (TARGET_ASM_UNWIND_EMIT): Update to match.
6810 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
6811
6812 * config/arm/arm.c (arm_asm_emit_except_personality): New.
6813 (arm_asm_init_sections): New.
6814 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
6815
6816 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6817
6818 * config/arm/arm.md: Remove unused variable.
6819
6820 2010-09-07 Anatoly Sokolov <aesok@post.ru>
6821
6822 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6823 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
6824 (m32r_memory_move_cost): New function.
6825
6826 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
6827
6828 * config.gcc: Append t-android for Android targets.
6829
6830 * config/t-android: New.
6831
6832 2010-09-07 Richard Henderson <rth@redhat.com>
6833
6834 * target.def (unwind_emit_before_insn): New hook.
6835 * doc/tm.texi.in: Add @hook marker for it.
6836 * doc/tm.texi: Rebuild.
6837 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
6838
6839 2010-09-07 Martin Jambor <mjambor@suse.cz>
6840
6841 PR fortran/43665
6842 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
6843 are any type attributes.
6844
6845 2010-09-07 Jan Hubicka <jh@suse.cz>
6846
6847 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
6848 array_ref_low_bound in string access folding.
6849
6850 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
6851
6852 PR target/45206
6853 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
6854 eh_return fixup sequence.
6855
6856 2010-09-07 Jan Hubicka <jh@suse.cz>
6857
6858 * gimple-fold.c (maybe_fold_reference): Verify that operand is
6859 gimple_min_invariant.
6860
6861 2010-09-07 Richard Guenther <rguenther@suse.de>
6862
6863 PR middle-end/45569
6864 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
6865 nor CONSTRUCTOR can trap.
6866 * tree-complex.c (update_complex_assignment): Update EH info.
6867
6868 2010-09-07 Richard Guenther <rguenther@suse.de>
6869
6870 PR middle-end/45569
6871 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
6872 * passes.c (execute_function_todo): Do not verify anything if
6873 we saw errors.
6874
6875 2010-09-07 Richard Guenther <rguenther@suse.de>
6876
6877 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
6878
6879 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
6880
6881 PR target/43137
6882 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
6883 New define_mode_attrs.
6884 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
6885 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
6886 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
6887 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
6888 Remove pool_range attribute.
6889 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
6890 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
6891 pool_range and neg_pool_range attributes.
6892 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
6893 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
6894 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
6895
6896 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
6897
6898 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
6899 check glibc.
6900
6901 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
6902
6903 PR target/22152
6904 * config/i386/mmx.md (*mov<mode>_internal_rex64,
6905 *mov<mode>_internal_avx, *mov<mode>_internal,
6906 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
6907 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
6908
6909 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6910
6911 * c-typeck.c (do_warn_double_promotion): Remove.
6912 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
6913 Objective-C++ too.
6914
6915 2010-09-06 Anatoly Sokolov <aesok@post.ru>
6916
6917 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
6918 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
6919 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
6920 argument type to reg_class_t. Change result type to bool.
6921 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6922
6923 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
6924
6925 PR libobjc/19850
6926 * gthr-posix.h (__gthread_objc_thread_detach): Use
6927 _objc_thread_attribs when detaching a thread.
6928 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
6929
6930 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
6931
6932 PR target/45524
6933 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
6934 * configure: Regenerated.
6935
6936 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6937
6938 * combine.c (try_combine): Set subst_low_luid to i0.
6939
6940 2010-09-06 Richard Guenther <rguenther@suse.de>
6941
6942 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
6943 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
6944 (build_aligned_type): Declare.
6945 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
6946 (check_aligned_type): New function.
6947 (build_aligned_type): Likewise.
6948 * expr.c (expand_assignment): Handle misaligned stores via
6949 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
6950 (expand_expr_real_1): Likewise.
6951 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
6952 * tree-vect-stmts.c (vectorizable_store): Do not build
6953 MISALIGNED_INDIRECT_REF but initialize alignment information.
6954 (vectorizable_load): Likewise.
6955 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
6956 handling.
6957 * cfgexpand.c (expand_debug_expr): Likewise.
6958 * dwarf2out.c (loc_list_from_tree): Likewise.
6959 * fold-const.c (maybe_lvalue_p): Likewise.
6960 (operand_equal_p): Likewise.
6961 (build_fold_addr_expr_with_type_loc): Likewise.
6962 * gimplify.c (gimplify_addr_expr): Likewise.
6963 (gimplify_expr): Likewise.
6964 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6965 (verify_gimple_assign_single): Likewise.
6966 * tree-dump.c (dequeue_and_dump): Likewise.
6967 (tree_could_trap_p): Likewise.
6968 * tree-predcom.c (ref_at_iteration): Likewise.
6969 * tree-pretty-print.c (dump_generic_node): Likewise.
6970 (op_code_prio): Likewise.
6971 (op_symbol_code): Likewise.
6972 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6973 * tree-ssa-loop-im.c (for_each_index): Likewise.
6974 (gen_lsm_tmp_name): Likewise.
6975 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6976 (find_interesting_uses_address): Likewise.
6977 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6978 * tree-ssa-operands.c (get_expr_operands): Likewise.
6979 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6980 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6981 (ao_ref_init_from_vn_reference): Likewise.
6982 * tree.c (staticp): Likewise.
6983 (build1_stat): Likewise.
6984 (reference_alias_ptr_type): Likewise.
6985 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6986 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
6987 MISALIGNED_INDIRECT_REF handling.
6988
6989 2010-09-06 Richard Guenther <rguenther@suse.de>
6990
6991 PR tree-optimization/45534
6992 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
6993 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
6994 on the target.
6995 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
6996 valid on the target.
6997
6998 2010-09-06 Andreas Schwab <schwab@redhat.com>
6999
7000 * configure.ac: Quote argument of AC_MSG_WARN.
7001 * configure: Regenerate.
7002
7003 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7004
7005 * sel-sched.c (move_cond_jump): Correct arguments to
7006 maybe_tidy_empty_bb.
7007 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7008
7009 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
7010
7011 PR rtl-optimization/44919
7012 * sel-sched.c (move_cond_jump): Remove assert, check that
7013 the several blocks case can only happen with mutually exclusive
7014 insns instead. Rewrite the movement code to support moving through
7015 several basic blocks.
7016
7017 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
7018
7019 * config/i386/i386.md (iptrsize): New mode attribute.
7020 (tp_seg): Ditto.
7021 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
7022 mode iterator.
7023 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
7024 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
7025 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
7026 (stack_tls_protect_set_<mode>): Ditto from
7027 stack_tls_protect_set_{si,di}. Use %@ to output segment register
7028 of thread base pointer load.
7029 (stack_tls_protect_test_<mode>): Ditto from
7030 stack_tls_protect_test_{si,di}. Use %@ to output segment register
7031 of thread base pointer load.
7032 (stack_protect_set): Rewrite using indirect functions.
7033 (stack_protect_test): Ditto.
7034 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
7035 (ix86_print_operand): Handle '@'.
7036
7037 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
7038
7039 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
7040 MINUS_EXPR.
7041
7042 2010-09-05 Mark Mitchell <mark@codesourcery.com>
7043
7044 * doc/invoke.texi: Document -Wdouble-promotion.
7045 * c-typeck.c (convert_arguments): Check for implicit conversions
7046 from float to double.
7047 (do_warn_double_promotion): New function.
7048 (build_conditional_expr): Use it.
7049 (build_binary_op): Likewise.
7050
7051 2010-09-05 Richard Guenther <rguenther@suse.de>
7052
7053 PR tree-optimization/45535
7054 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
7055 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
7056 dereferencing it.
7057 (indirect_refs_may_alias_p): Likewise.
7058
7059 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
7060
7061 * config/sh/sh.c (sh_option_override): Make static.
7062 Adjust comments. Declare.
7063 (sh_function_value_regno_p): Likewise.
7064 (sh_register_move_cost): Modify the arguments, make static.
7065 Adjust comments. Declare.
7066 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
7067 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7068 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
7069 REGISTER_MOVE_COST): Delete.
7070 * config/sh/sh-protos.h (sh_override_options): Delete.
7071 (sh_register_move_cost): Delete.
7072 (sh_function_value_regno_p): Delete.
7073
7074 2010-09-04 Anatoly Sokolov <aesok@post.ru>
7075
7076 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
7077 m32r_function_value_regno_p): New functions.
7078 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7079 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
7080 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
7081 FUNCTION_VALUE_REGNO_P): Remove.
7082
7083 2010-09-04 Jan Hubicka <jh@suse.cz>
7084
7085 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
7086 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
7087 fold_read_from_constant_string.
7088
7089 * gimple.h (canonicalize_constructor_val): Declare.
7090 * gimple-fold.c (canonicalize_constructor_val): New function.
7091 (get_symbol_constant_value):Use it.
7092 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
7093
7094 2010-09-04 Jan Hubicka <jh@suse.cz>
7095
7096 * tree-switch-conversion.c (build_one_array): Set constructor to be
7097 static.
7098 * varpool.c (varpool_finalize_decl): Compute const_value_known.
7099
7100 2010-09-04 Richard Guenther <rguenther@suse.de>
7101
7102 PR bootstrap/45519
7103 * tree-flow.h (force_gimple_operand_1): Declare.
7104 (force_gimple_operand_gsi_1): Likewise.
7105 * gimplify.c (force_gimple_operand_1): New worker taking a
7106 gimple predicate for ...
7107 (force_gimple_operand): ... which now wraps it.
7108 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
7109 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
7110 last change.
7111 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
7112 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
7113 (create_mem_ref): Likewise.
7114
7115 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
7116
7117 * config/i386/predicates.md (sse_reg_operand): New predicate.
7118 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
7119 predicate for operand 1.
7120 (XFmode push splitter): Use fp_register_operand predicate
7121 for operand 1.
7122 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
7123 (SF-DF float_extend push splitter): Add reload_completed insn
7124 predicate.
7125 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
7126 MODEF mode macro. Add reload_completed insn predicate.
7127
7128 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
7129
7130 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
7131 (struct df_extract_ref): Remove.
7132 (union df_ref_d): Remove extract_ref member.
7133 (df_ref_create): Remove last three arguments.
7134 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
7135 * df-scan.c (df_ref_record): Remove last three arguments, do not
7136 pass them to df_ref_create_structure.
7137 (df_uses_record): Remove first and last three arguments. Replace
7138 first argument with DF_REF_REGULAR, adjust calls to remove the
7139 width, offset and mode. Always call recursively on the second
7140 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
7141 (df_ref_create_structure): Remove first argument.
7142 (struct df_scan_problem_data): Remove ref_extract_pool.
7143 (df_scan_free_internal): Do not free it.
7144 (df_scan_alloc): Do not allocate it.
7145 (df_ref_create): Remove last three arguments, do not pass them to
7146 df_ref_create_structure.
7147 (df_free_ref): Remove DF_REF_EXTRACT case.
7148 (df_notes_rescan): Adjust call to df_uses_record.
7149 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
7150 Remove DF_REF_EXTRACT case.
7151 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
7152 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
7153 and SUBREG definitions.
7154 (df_get_conditional_uses): Remove references to width/offset/mode,
7155 adjust call to df_ref_create_structure.
7156 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
7157 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
7158 calls to df_uses_record and df_ref_record.
7159 * fwprop.c (update_df): Remove references to width/offset/mode,
7160 adjust call to df_ref_create.
7161
7162 2010-09-03 Jan Hubicka <jh@suse.cz>
7163
7164 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
7165 (build_cdtor_fns): Update use of build_cdtor.
7166
7167 2010-09-03 Joseph Myers <joseph@codesourcery.com>
7168
7169 * doc/options.texi (SeparateAlias): Document.
7170 * opt-functions.awk (switch_flags): Handle SeparateAlias.
7171 * opth-gen.awk: Generate enumeration names for options marked
7172 SeparateAlias, but not for those marked Ignore.
7173 * opts-common.c (generate_canonical_option): Don't output separate
7174 argument for options marked CL_SEPARATE_ALIAS.
7175 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
7176 * opts.h (CL_SEPARATE_ALIAS): New.
7177 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
7178 CL_COMMON): Adjust definitions.
7179 * config/i386/darwin.opt, config/mips/sde.opt: New.
7180 * common.opt (fdump-final-insns): New.
7181 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7182 i386/darwin.opt.
7183 (mips*-sde-elf*): Add mips/sde.opt.
7184 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
7185 -mno-data-in-code and -mcode-xonly here.
7186 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
7187 * gcc.c (option_map): Add "j" to --dump entry.
7188 (translate_options): Don't translate -d to -foutput-class-dir= here.
7189
7190 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
7191
7192 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
7193 DR_IS_WRITE.
7194 (compute_all_dependences): Same.
7195 (create_rdg_edge_for_ddr): Same.
7196 * tree-data-ref.h (DR_IS_WRITE): New.
7197 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
7198 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
7199 (write_memrefs_written_at_least_once): Same.
7200 * tree-predcom.c (suitable_component_p): Same.
7201 (determine_roots_comp): Same.
7202 (execute_load_motion): Same.
7203 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
7204 (vect_enhance_data_refs_alignment): Same.
7205 (vect_analyze_group_access): Same.
7206
7207 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
7208
7209 PR testsuite/42843
7210 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
7211 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
7212
7213 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
7214
7215 * dwarf2out.c (file scope): Remove #if0'd code.
7216 (gen_subprogram_die): Same.
7217
7218 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7219
7220 PR middle-end/45484
7221 * dwarf2out.c (flush_queued_reg_saves): Rename to...
7222 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
7223 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
7224 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
7225 * config/i386/i386.c (output_set_got): Call it.
7226
7227 2010-09-03 Michael Matz <matz@suse.de>
7228
7229 PR middle-end/45415
7230 * tree-sra.c (sra_modify_assign): If we modify the statement,
7231 say so.
7232
7233 * tree-ssa.c (verify_ssa): Check number of operands and links
7234 per statement to agree.
7235
7236 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7237 Iain Sandoe <iains@gcc.gnu.org>
7238
7239 PR target/45476
7240 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
7241 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
7242 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
7243
7244 2010-09-03 Richard Guenther <rguenther@suse.de>
7245
7246 * lto-streamer-out.c (output_function): Output function
7247 start and end loci.
7248 * lto-streamer-in.c (input_function): Input function start
7249 and end loci.
7250
7251 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7252
7253 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
7254 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
7255 * configure: Regenerate.
7256 * aclocal.m4: Regenerate.
7257
7258 2010-09-03 Jan Hubicka <jh@suse.cz>
7259
7260 PR lto/44812
7261 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
7262 on functions/variables in other partition.
7263
7264 2010-09-03 Jan Hubicka <jh@suse.cz>
7265
7266 * cgraph.h (struct varpool_node): Add const_value_known.
7267 (varpool_decide_const_value_known): Declare.
7268 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
7269 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
7270 (input_varpool_node): Restore const_value_known.
7271 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
7272 initializer folding.
7273 * ipa.c (ipa_discover_readonly_nonaddressable_var,
7274 function_and_variable_visibility): Compute const_value_known.
7275 * gimple-fold.c (get_symbol_constant_value): Use varpool for
7276 initializer folding.
7277 * varpool.c (varpool_decide_const_value_known): New function.
7278
7279 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
7280
7281 * config/i386/i386.md: Remove empty preparation statements
7282 from splitters.
7283
7284 2010-09-03 Jan Hubicka <jh@suse.cz>
7285
7286 * passes.c (rest_of_decl_compilation): Do not add local vars into
7287 varpool.
7288 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
7289 static or extern vars are in varpool.
7290 (varpool_finalize_decl): Sanity check that only static vars are
7291 finalized.
7292
7293 2010-09-03 Jakub Jelinek <jakub@redhat.com>
7294
7295 PR debug/45500
7296 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
7297 not just generic vectors with BLKmode.
7298
7299 2010-09-03 Richard Guenther <rguenther@suse.de>
7300
7301 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
7302 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
7303 * tree.h (TMR_SYMBOL): Remove.
7304 (TMR_BASE, TMR_OFFSET): Adjust.
7305 (TMR_INDEX2): New.
7306 * alias.c (ao_ref_from_mem): Use TMR_BASE.
7307 * builtins.c (get_object_alignment): Merge TMR_BASE and
7308 TMR_SYMBOL handling.
7309 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
7310 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
7311 handling. Also allow TARGET_MEM_REF as base address.
7312 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
7313 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
7314 base. Gimplify TMR_INDEX2.
7315 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
7316 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7317 (get_addr_base_and_unit_offset): Likewise.
7318 * tree-eh.c (tree_could_trap_p): Likewise.
7319 * tree-pretty-print.c (dump_generic_node): Likewise.
7320 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
7321 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
7322 base to index2.
7323 (get_address_description): Reconstruct addres description
7324 from merged TMR_BASE and TMR_INDEX2.
7325 (maybe_fold_tmr): Fold propagated addresses.
7326 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
7327 MEM_REF and TARGET_MEM_REF paths.
7328 (indirect_refs_may_alias_p): Likewise.
7329 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
7330 instead of TMR_SYMBOL.
7331 * tree-ssa-operands.c (get_tmr_operands): Simplify.
7332 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
7333 according to changes ...
7334 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
7335 Split TARGET_MEM_REF into two fields plus the base.
7336 * tree.c (mem_ref_offset): Simplify.
7337 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
7338 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
7339 Strip NOPs when folding MEM_REF addresses.
7340 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
7341 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
7342 (fold_gimple_assign): ... not here.
7343
7344 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
7345
7346 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
7347 * config/mips/mips.c (mips_shift_truncation_mask): New function.
7348 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7349
7350 2010-09-02 Richard Henderson <rth@redhat.com>
7351
7352 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
7353 instead of readelf in the test.
7354 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
7355 in the .debug_frame section for coff targets.
7356 * configure: Rebuild.
7357
7358 2010-09-02 Anatoly Sokolov <aesok@post.ru>
7359
7360 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
7361 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
7362 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7363 (m32c_class_likely_spilled_p): Make static. Change argument type to
7364 reg_class_t. Change result type to bool.
7365
7366 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7367
7368 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
7369 to convert (double)(long) into a single FRIZ instruction or not
7370 when -ffast-math is used.
7371
7372 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
7373 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
7374 or FRIZ instruction if -ffast-math.
7375 * config/rs6000/rs6000.md (friz): Ditto.
7376
7377 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
7378
7379 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7380
7381 * opth-gen.awk (quote, comma): Remove unused variables.
7382
7383 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
7384
7385 * arm.c (arm_override_options): Correct fall-back code to use
7386 SUBTARGET_CPU_DEFAULT.
7387
7388 2010-09-02 Julian Brown <julian@codesourcery.com>
7389
7390 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
7391 unspecs.
7392 (vcond<mode>, vcondu<mode>): New expanders.
7393 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
7394 comparisons with zero.
7395 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
7396 * config/arm/constraints.md (Dz): New constraint.
7397
7398 2010-09-02 Anatoly Sokolov <aesok@post.ru>
7399
7400 * target.def (class_likely_spilled_p): New hook.
7401 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
7402 * doc/tm.texi: Regenerate.
7403 * targhooks.c (default_class_likely_spilled_p): New function.
7404 * targhooks.h (default_class_likely_spilled_p): Declare.
7405 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
7406 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
7407 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
7408 Use fixed_reg_set instead of fixed_regs.
7409 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
7410 * calls.c (avoid_likely_spilled_reg): Ditto.
7411 * ira-conflicts.c (ira_build_conflicts): Ditto.
7412 * ira.c (update_equiv_regs): Ditto.
7413 * mode-switching.c (create_pre_exit): Ditto.
7414 * regmove.c (find_matches): Ditto.
7415 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
7416 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
7417 (small_register_class_p): New inline function.
7418 (push_secondary_reload, find_reusable_reload, find_reloads): Use
7419 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
7420
7421 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
7422 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
7423 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7424
7425 2010-09-02 Richard Guenther <rguenther@suse.de>
7426
7427 PR tree-optimization/44937
7428 PR tree-optimization/45412
7429 * ipa-split.c (split_function): Properly remove PHI nodes.
7430
7431 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7432
7433 * opts.h (struct cl_option): Add warn_message field.
7434 (struct cl_decoded_option): Add warn_message field.
7435 * doc/options.texi (Ignore, Warn): Document.
7436 * opt-functions.awk (needs_state_p): Don't consider aliases or
7437 ignored options to need state saved.
7438 * optc-gen.awk: Handle Warn and Ignore.
7439 * opth-gen.awk: Output OPT_SPECIAL_ignore.
7440 * opts-common.c (decode_cmdline_option): Set warn_message field.
7441 Handle ignored options.
7442 (decode_cmdline_options_to_array, generate_option,
7443 generate_option_input_file): Set warn_message field.
7444 (read_cmdline_option): Generate warnings from warn_message field.
7445 Handle ignored options.
7446 * common.opt (Wunreachable-code, fargument-alias,
7447 fargument-noalias, fargument-noalias-global,
7448 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
7449 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
7450 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
7451 ftree-salias): Mark Ignore.
7452 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
7453 -mintel-syntax and -mno-intel-syntax here.
7454 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
7455 using Warn.
7456 * opts.c (common_handle_option): Don't handle options marked as
7457 ignored.
7458 (enable_warning_as_error): Handle ignored options.
7459
7460 2010-09-02 Joseph Myers <joseph@codesourcery.com>
7461
7462 PR driver/44076
7463 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
7464 alias_target fields.
7465 * opt-functions.awk (opt_sanitized_name): Don't handle
7466 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
7467 * optc-gen.awk: Generate alias fields.
7468 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
7469 Don't generate such constants for aliases.
7470 * opts-common.c (generate_canonical_option): New.
7471 (decode_cmdline_option): Handle aliases. Use
7472 generate_canonical_option for known options instead of copying the
7473 input option text.
7474 * doc/options.texi (Alias): Document.
7475 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
7476 fstack-check, specs): Mark as aliases.
7477 * gcc.c (driver_handle_option): Canonicalize -L options to joined
7478 arguments.
7479 (driver_handle_option): Don't handle OPT_specs.
7480 * opts.c (common_handle_option): Don't handle options marked as
7481 aliases.
7482 (enable_warning_as_error): Handle aliases.
7483 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
7484 OPT_Wlarger_than_eq.
7485 * tree-optimize.c (tree_rest_of_compilation): Use
7486 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
7487
7488 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
7489
7490 * config/i386/i386.md (nonmemory_operand): New mode attribute.
7491 (push memory peephole2): Macroize peepholes using SWI mode iterator.
7492 (move immediate to memory peephole2): Macroize peepholes using
7493 SWI124 mode iterator.
7494 (non-pairable NOT peephole2): Macroize peepholes using SWI124
7495 mode iterator.
7496 (simple lea add peephole2): Macroize peepholes using SWI48
7497 mode iterator.
7498 (simple lea mult peephole2): Ditto.
7499 (imul by 3,5,9 to lea peephole2): Ditto.
7500 (mov $-1, reg peephole2): Macroize peepholes using SWI248
7501 mode iterator.
7502 (imul $32bit_imm,mem,reg peephole2): Ditto.
7503 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
7504
7505 2010-09-02 Ian Bolton <ian.bolton@arm.com>
7506
7507 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
7508
7509 2010-09-02 Olivier Hainque <hainque@adacore.com>
7510
7511 PR middle-end/44763
7512 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
7513 (allocno_priority_compare_func): Use it instead of a straight
7514 difference computation over priorities.
7515
7516 2010-09-02 Andi Kleen <ak@linux.intel.com>
7517
7518 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
7519
7520 2010-09-02 Ira Rosen <irar@il.ibm.com>
7521
7522 * tree-vectorizer.h (get_later_stmt): New function.
7523 (vect_analyze_data_ref_dependences): Add argument.
7524 * tree-vect-loop.c (vect_analyze_loop): Update call to
7525 vect_analyze_data_ref_dependences.
7526 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
7527 New function.
7528 (vect_analyze_data_ref_dependence): Add argument for basic block
7529 dependencies. Check dependencies in basic block vectorization.
7530 (vect_analyze_data_ref_dependences): Add argument and update call to
7531 vect_analyze_data_ref_dependences.
7532 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
7533 (vect_bb_vectorizable_with_dependencies): New.
7534 (vect_slp_analyze_bb): Check dependencies in basic block.
7535 (vect_schedule_slp_instance): Insert stores before the last store in
7536 SLP instance.
7537
7538 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
7539
7540 PR target/45476
7541 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
7542 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
7543
7544 2010-09-01 Jakub Jelinek <jakub@redhat.com>
7545
7546 PR middle-end/45458
7547 * bb-reorder.c (add_labels_and_missing_jumps): Treat
7548 bbs ending with throwing insns like blocks ending with a call.
7549 (fix_up_fall_thru_edges): Likewise.
7550
7551 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
7552
7553 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
7554 (m32c_function_arg_advance): Delete.
7555 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7556 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
7557 comments. Take a const_tree and a bool. Declare.
7558 (m32c_function_arg_advance): Likewise.
7559 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7560
7561 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
7562
7563 PR target/45476
7564 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
7565 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
7566 * config/i386/mingw32.h: ... here.
7567
7568 2010-09-01 Andi Kleen <ak@linux.intel.com>
7569
7570 PR lto/45475
7571 * lto-streamer-in.c (lto_input_ts_target_option): Add.
7572 (lto_input_tree_pointers): Call lto_input_ts_target_option.
7573 * lto-streamer-out (lto_output_ts_target_option): Add.
7574 (lto_output_tree_pointers): Call lto_output_ts_target_option.
7575
7576 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
7577
7578 PR/target 45452
7579 * config/i386/cygwin.h: Change order of specified import libraries.
7580 * config/i386/mingw32.h: Likewise.
7581 * config/i386/t-cygwin: Likewise.
7582 * config/i386/t-mingw32: Likewise.
7583 * config/i386/t-mingw-w32: Likewise.
7584 * config/i386/t-mingw-w64: Likewise.
7585
7586 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7587
7588 * config/arm/neon-schedgen.ml (core): New type.
7589 (allCores): List of supported cores.
7590 (availability_table): Add supported cores.
7591 (collate_bypasses): Accept core as a parameter.
7592 (worst_case_latencies_and_bypasses): Accept core as a parameter.
7593 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
7594 and coreStr to get tune attribute and prefix for functional units.
7595 (emit_bypasses): Accept core name and use it.
7596 (calculate_per_core_availability_table): New.
7597 (filter_core): New.
7598 (calculate_core_availability_table): New.
7599 (main): Use calculate_core_availablity_table.
7600 * config/arm/cortex-a8-neon.md: Update copyright year.
7601 Regenerated from ml file and merged in.
7602 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
7603 cortex_a8_neon_mrc.
7604
7605 2010-09-01 Ian Bolton <ian.bolton@arm.com>
7606
7607 * Makefile.in (tree-switch-conversion.o): Update dependencies.
7608
7609 2010-09-01 Richard Guenther <rguenther@suse.de>
7610
7611 * alias.c (ao_ref_from_mem): Adjust.
7612 * builtins.c (get_object_alignment): Likewise.
7613 * cfgexpand.c (expand_debug_expr): Likewise.
7614 * gimple.c (get_base_address): Likewise.
7615 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7616 (get_addr_base_and_unit_offset): Likewise. Fix for
7617 both TMR_SYMBOL and TMR_BASE being set.
7618 * tree-eh.c (tree_could_trap_p): Likewise.
7619 * gimplify.c (gimplify_expr): Do not attempt to gimplify
7620 TMR_SYMBOL. Always gimplify TMR_BASE.
7621 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7622 TMR_BASE if there is a TMR_SYMBOL.
7623 * tree-pretty-print.c (dump_generic_node): Adjust.
7624 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
7625 (tree_mem_ref_addr): Likewise.
7626 (create_mem_ref_raw): Likewise.
7627 (move_fixed_address_to_symbol): Likewise.
7628 (create_mem_ref): Likewise.
7629 (dump_mem_address): Likewise.
7630 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
7631 Fix for both TMR_SYMBOL and TMR_BASE being set.
7632 (indirect_refs_may_alias_p): Likewise.
7633 * tree-ssa-operands.c (get_tmr_operands): Adjust.
7634 * tree.def (TARGET_MEM_REF): Adjust documentation.
7635
7636 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
7637
7638 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
7639 Rename from X86_TUNE_ADD_ESP_4.
7640 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
7641 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
7642 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
7643 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
7644 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
7645 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
7646 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
7647 * config/i386/i386.c (initial_ix86_tune_features)
7648 <X86_TUNE_SINGLE_POP>: Invert members.
7649 <X86_TUNE_DOUBLE_POP>: Ditto.
7650 <X86_TUNE_SINGLE_PUSH>: Ditto.
7651 <X86_TUNE_DOUBLE_PUSH>: Ditto.
7652 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
7653 No longer exported.
7654 (push peephole2 patterns): Macroize peepholes using P mode iterator.
7655 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
7656 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
7657 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
7658
7659 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
7660
7661 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
7662 a volatile LHS if the constructor has only one element.
7663
7664 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
7665
7666 PR bootstrap/45321
7667 * tree.c (stdarg_p): Make fntype parameter const.
7668 * tree.h (stdarg_p): Likewise.
7669 (function_args_iterator): Remove unused fntype field.
7670 (function_args_iter_init): Do not initialize fntype
7671 field. Make fntype parameter const.
7672
7673 2010-09-01 Richard Guenther <rguenther@suse.de>
7674
7675 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
7676 estimate.
7677 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
7678 (execute_vrp): Compute number of iteration estimates.
7679 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
7680 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
7681 * tree-data-ref.c (estimated_loop_iterations): Adjust.
7682 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
7683 Infer loop bounds from undefined behavior based on a new parameter.
7684 (estimate_numbers_of_iterations): Likewise.
7685 (scev_probably_wraps_p): Adjust.
7686 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
7687
7688 2010-09-01 Nick Clifton <nickc@redhat.com>
7689
7690 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
7691 where appropriate.
7692 (xstormy16_legitimate_address_p): Use true and false instead of 1
7693 and 0.
7694 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
7695 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
7696 magic constant 2.
7697 (xstormy16_expand_call): Fix comment at start of function.
7698
7699 2010-09-01 Nick Clifton <nickc@redhat.com>
7700
7701 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
7702 when pushing accumulator register.
7703 (rx_get_stack_layout): Always save call clobbered registers inside
7704 interrupt handlers.
7705 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
7706
7707 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
7708
7709 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
7710 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
7711
7712 * libgcc-std.ver (GCC_4.6.0): Define version.
7713
7714 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
7715
7716 * tree-nested.c (convert_all_function_calls): Iterate until after the
7717 sum of static chains in the nest doesn't change.
7718
7719 2010-08-31 Anatoly Sokolov <aesok@post.ru>
7720
7721 * config/m32c/m32c.c (classes_intersect): Remove.
7722 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
7723 reg_classes_intersect_p instead of classes_intersect.
7724 (class_can_hold_mode): Change arguments type from enum reg_class to
7725 reg_class_t. Use reg_class_contents instead of class_contents.
7726 (m32c_register_move_cost): Make static. Change arguments type from
7727 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
7728 classes_intersect. Use reg_class_contents instead of class_contents.
7729 (m32c_memory_move_cost): Make static. Change arguments type from
7730 enum reg_class to reg_class_t.
7731 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7732 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7733 * config/m32c/m32c-protos.h (m32c_register_move_cost,
7734 m32c_memory_move_cost): Remove.
7735
7736 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
7737
7738 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
7739 (arm_function_arg): Delete.
7740 (arm_needs_doubleword_align): Take a const_tree.
7741 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7742 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
7743 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
7744 (arm_function_arg): Make static. Take a const_tree and a bool.
7745 (arm_function_arg_advance): Likewise.
7746 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7747
7748 2010-08-31 Andi Kleen <ak@linux.intel.com>
7749
7750 * common.opt (fwhopr=): Update for -fwhopr=jobserver
7751 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
7752 * lto-wrapper.c (run_gcc): Add jobserver mode.
7753 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
7754 argument.
7755
7756 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
7757
7758 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
7759 (popsi1): Ditto.
7760 (*popdi1_epilogue): Ditto.
7761 (*popsi1_epilogue): Ditto.
7762 (popsi, popdi peephole2 patterns): Update peepholes for changed
7763 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
7764
7765 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
7766 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
7767
7768 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
7769 (override_options): Do not initialize removed ix86_gen_pop1.
7770 (gen_pop): New static function.
7771 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
7772 (release_scratch_register_on_entry): Ditto.
7773 (ix86_restore_reg_using_pop): Ditto.
7774 (ix86_expand_epilogue): Ditto.
7775
7776 2010-08-31 Jakub Jelinek <jakub@redhat.com>
7777
7778 PR middle-end/45461
7779 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
7780
7781 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
7782
7783 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
7784 semicolons.
7785
7786 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7787
7788 * doc/extend.texi: Fix documentation of the return value of
7789 __builtin_choose_expr.
7790
7791 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
7792
7793 * config/v850/v850-protos.h (function_arg): Delete.
7794 * config/v850/v850.h (FUNCTION_ARG): Delete.
7795 (FUNCTION_ARG_ADVANCE): Move code to...
7796 * config/v850/v850.c (v850_function_arg_advance): ...here.
7797 (v850_function_arg): Make static. Take a const_tree and a bool.
7798 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7799
7800 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
7801
7802 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
7803 these...
7804 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
7805 ...and these...
7806 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
7807 ..to here..
7808 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
7809 ...and here.
7810 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7811
7812 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
7813
7814 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
7815 Delete.
7816 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7817 * config/rx/rx.c (rx_function_arg_size): Make static.
7818 (rx_function_arg): Likewise.
7819 (rx_function_arg_advance): New function.
7820 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7821
7822 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
7823
7824 * config/arm/arm.c (arm_override_options): Remove superfluous test.
7825 Fix indentation.
7826
7827 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
7828
7829 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
7830 (dwarf2out_decl) <CONST_DECL>: Likewise.
7831
7832 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
7833
7834 Stack usage support
7835 * common.opt (-fstack-usage): New option.
7836 * doc/invoke.texi (Debugging options): Document it.
7837 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
7838 allocate_dynamic_stack_space.
7839 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
7840 and propagate it to allocate_dynamic_stack_space.
7841 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
7842 * calls.c (initialize_argument_information): Pass TRUE as 4th
7843 argument to allocate_dynamic_stack_space.
7844 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
7845 to 1 when pushing a variable-sized argument onto the stack. Pass
7846 TRUE as 4th argument to allocate_dynamic_stack_space.
7847 Update current_function_pushed_stack_size.
7848 (emit_library_call_value_1): Likewise.
7849 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
7850 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
7851 attempt to find an upper bound. Remove redundant code for the
7852 SETJMP_VIA_SAVE_AREA case.
7853 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
7854 * function.h (struct stack_usage): New structure.
7855 (current_function_static_stack_size): New macro.
7856 (current_function_dynamic_stack_size): Likewise.
7857 (current_function_pushed_stack_size): Likewise.
7858 (current_function_dynamic_alloc_count): Likewise.
7859 (current_function_has_unbounded_dynamic_stack_size): Likewise.
7860 (current_function_allocates_dynamic_stack_space): Likewise.
7861 (struct function): Add new field 'su'.
7862 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
7863 add the value of the dynamic offset to the dynamic stack usage.
7864 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
7865 for variable-sized objects.
7866 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
7867 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
7868 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
7869 BUILT_IN_ALLOCA for variable-sized objects.
7870 * output.h (output_stack_usage): Declare.
7871 * toplev.c (stack_usage_file): New file pointer.
7872 (output_stack_usage): New function.
7873 (open_auxiliary_file): Likewise.
7874 (lang_dependent_init): Open file if flag_stack_usage is set.
7875 (finalize): Close file if stack_usage_file is not null.
7876 * tree.h (ALLOCA_FOR_VAR_P): New macro.
7877 * config/alpha/alpha.c (compute_frame_size): New function.
7878 (alpha_expand_prologue): Use it.
7879 (alpha_start_function): Likewise.
7880 (alpha_expand_epilogue): Likewise. Set stack usage info.
7881 * config/i386/i386.c (ix86_expand_prologue): Likewise.
7882 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7883 * config/mips/mips.c (mips_expand_prologue): Likewise.
7884 * config/pa/pa.c (hppa_expand_prologue): Likewise.
7885 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7886 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7887
7888 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
7889
7890 PR tree-optimization/45427
7891 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
7892 Handle the case that the exit is never taken correctly.
7893 (number_of_iterations_ne): Pass exit_must_be_taken to
7894 number_of_iterations_ne_max.
7895
7896 2010-08-30 Catherine Moore <clm@codesourcery.com>
7897
7898 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
7899 Infer -mdspr2 for the the 74K.
7900
7901 2010-08-30 Jakub Jelinek <jakub@redhat.com>
7902
7903 PR debug/45419
7904 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
7905
7906 PR middle-end/45423
7907 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
7908 and TRUTH_{AND,OR,XOR}_EXPR.
7909 * c-parser.c (c_parser_omp_atomic): Handle boolean
7910 {PRE,POST}_{INC,DEC}REMENT.
7911
7912 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
7913
7914 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
7915 (function_arg): Delete.
7916 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7917 (FUNCTION_INCOMING_ARG): Delete.
7918 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
7919 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
7920 and a bool.
7921 (function_arg): Rename to...
7922 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
7923 a bool.
7924 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
7925 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7926 (TARGET_FUNCTION_INCOMING_ARG): Define.
7927
7928 2010-08-30 Richard Guenther <rguenther@suse.de>
7929
7930 PR tree-optimization/21602
7931 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
7932 using points-to information.
7933
7934 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
7935
7936 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
7937
7938 2010-08-30 Richard Guenther <rguenther@suse.de>
7939
7940 PR tree-optimization/45449
7941 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
7942 variables.
7943
7944 2010-08-30 Joseph Myers <joseph@codesourcery.com>
7945
7946 * opts.h (CL_ERR_NEGATIVE): Define.
7947 * opts.c (unknown_option_callback): Don't postpone warnings for
7948 options marked with CL_ERR_NEGATIVE.
7949 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
7950 for negative versions of CL_REJECT_NEGATIVE options.
7951
7952 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
7953
7954 * config/i386/i386.md (zero_extendsidi2_1): Rename from
7955 zero_extendsidi2_32.
7956 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
7957 using SWI12 mode iterator.
7958 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
7959 to define_insn_and_split pattern.
7960 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
7961 using SWI24 mode iterator.
7962 (*zero_extendqi<mode>2_and): Macroize insn from
7963 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
7964 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
7965 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
7966 SWI24 mode iterator.
7967 (*zero_extendqi<mode>2_movzbl): Ditto from
7968 *zero_extendqi{hi,si}2_movzbl.
7969 (extendsidi2_1): Rename from extendsidi2_32.
7970 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
7971 SWI12 mode iterator.
7972
7973 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
7974
7975 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
7976 general purpose registers.
7977 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
7978 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
7979 with general purpose registers and memory operands. Add associated
7980 CCImode post-reload splitter.
7981 * config/ia64/div.md: Change BImode to CCImode throughout.
7982
7983 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
7984
7985 * config/ia64/ia64.md (cstorebi4): Fix thinko.
7986
7987 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
7988
7989 * config/picochip/picochip.c (reorder_var_tracking_notes): This
7990 function was dropping debug insns which caused PR45299.
7991
7992 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
7993
7994 * config/i386/sse.md (extsuffix): New code attribute.
7995 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
7996 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
7997 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
7998 and sse4_1_zero_extendv4qiv4si2.
7999 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
8000 and sse4_1_zero_extendv2qiv2di2.
8001 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
8002 and sse4_1_zero_extendv4hiv4si2.
8003 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
8004 and sse4_1_zero_extendv2hiv2di2.
8005 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
8006 and sse4_1_zero_extendv2siv2di2
8007
8008 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
8009 using any_extend code iterator.
8010 (*avx_<s>mulv8hi3_highpart): Macroize insn from
8011 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
8012 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
8013
8014 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
8015 gen_sse4_1_sign_extend* functions.
8016 (struct builtin_description bdesc_args): Ditto.
8017
8018 2010-08-27 Xinliang David Li <davidxl@google.com>
8019
8020 PR/45422
8021 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
8022 (iv_ca_set_no_cp): Update used inv expr count.
8023 (iv_ca_set_cp): Ditto.
8024 (iv_ca_new): Initialize new member.
8025 (iv_ca_free): Free memory.
8026
8027 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8028
8029 * config/sh/sh-protos.h (sh_function_arg): Delete.
8030 (sh_function_arg_advance): Delete.
8031 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8032 (PASS_IN_REG_P): Eliminate cast.
8033 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
8034 const_tree and a bool.
8035 (sh_function_arg): Likewise.
8036 (sh_output_mi_thunk): Call sh_function_arg_advance) and
8037 sh_function_arg.
8038 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8039
8040 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
8041 Kaz Kojima <kkojima@gcc.gnu.org>
8042
8043 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
8044 when possible.
8045 (sh_expand_epilogue): Likewise.
8046 * config/sh/sh.md (movml_push_banked): New insn.
8047 (movml_pop_banked): Likewise.
8048
8049 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
8050
8051 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
8052 gen_regexp_oneof, gen_regexp_sequence): Use the string found
8053 in vector element 0 rather than the original string when there's
8054 only one element.
8055 (gen_regexp): Remove extra semicolon.
8056
8057 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
8058 thumb2_movsf_vfp): Set attribute "insn".
8059 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
8060 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
8061 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
8062 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
8063 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
8064 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
8065 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
8066 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
8067 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
8068 if_not_arith, if_arith_not, cond_move_not): Likewise.
8069
8070 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8071
8072 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
8073 New declaration.
8074 (rs6000_allocate_stack_temp): Ditto.
8075 (rs6000_expand_convert_si_to_sfdf): Ditto.
8076
8077 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
8078 line. Update the options set if power6 or power7 server/embedded
8079 type options are used. If we give a warning for no vsx under
8080 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
8081 (rs6000_allocate_stack_temp): New function to allocate a stack
8082 tempoary and adjust the address so it meets either REG+OFFSET or
8083 REG+REG addressing requirements.
8084 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
8085 that they can be used with the LFIWAX/LFIWZX instrucitons.
8086 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
8087 converting signed/unsigned SImode to either SFmode/DFmode.
8088
8089 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
8090 whether certain instructions can be generated.
8091 (TARGET_FCTIDZ): Ditto.
8092 (TARGET_STFIWX): Ditto.
8093 (TARGET_LFIWAX): Ditto.
8094 (TARGET_LFIWZX): Ditto.
8095 (TARGET_FCFIDS): Ditto.
8096 (TARGET_FCFIDU): Ditto.
8097 (TARGET_FCFIDUS): Ditto.
8098 (TARGET_FCTIDUZ): Ditto.
8099 (TARGET_FCTIWUZ): Ditto.
8100
8101 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
8102 (UNSPEC_FCTID): Ditto.
8103 (UNSPEC_LFIWAX): Ditto.
8104 (UNSPEC_LFIWZX): Ditto.
8105 (UNSPEC_FCTIWUZ): Ditto.
8106 (rreg): Use correct constraints.
8107 (SI_CONVERT_FP): New mode attribute for floating point conversion
8108 tests.
8109 (E500_CONVERT): Ditto.
8110 (lfiwax): New insns for converting from integer to floating point
8111 utilizing newer instructions. Attempt to optimize conversions
8112 that come from memory so that we don't load the value into a GPR,
8113 spill it to the stack and reload it into a FPR.
8114 (floatsi<mode>2_lfiwax): Ditto.
8115 (floatsi<mode>2_lfiwax_mem): Ditto.
8116 (floatsi<mode>2_lfiwax_mem2): Ditto.
8117 (lfiwzx): Ditto.
8118 (floatunssi<mode>2_lfiwzx): Ditto.
8119 (floatunssi<mode>2_lfiwzx_mem): Ditto.
8120 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
8121 (floatdidf2_mem): Ditto.
8122 (floatunsdidf2_fcfidu): Ditto.
8123 (floatunsdidf2_mem): Ditto.
8124 (floatunsdisf2): Ditto.
8125 (floatunsdisf2_fcfidus): Ditto.
8126 (floatunsdisf2_mem): Ditto.
8127 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
8128 Use FCFID on 32-bit hosts that support it.
8129 (floatsidf2_internal): Ditto.
8130 (floatunssisf2): Ditto.
8131 (floatunssidf2): Ditto.
8132 (floatunssidf2_internal): Ditto.
8133 (floatsisf2): Ditto.
8134 (floatdidf2): Ditto.
8135 (floatdidf2_fpr): Ditto.
8136 (floatunsdidf2): Ditto.
8137 (floatdisf2): Ditto.
8138 (floatdisf2_fcfids): Ditto.
8139 (floatdisf2_internal1): Ditto.
8140 (fixuns_truncsfsi2): Delete, merge into common pattern for both
8141 SF/DF. Add power7 support.
8142 (fix_truncsfsi2): Ditto.
8143 (fixuns_truncdfsi2): Ditto.
8144 (fixuns_truncdfdi2): Ditto.
8145 (fix_truncdfsi2): Ditto.
8146 (fix_truncdfsi2_internal): Ditto.
8147 (fix_truncdfsi2_internal_gfxopt): Ditto.
8148 (fix_truncdfsi2_mfpgpr): Ditto.
8149 (fctiwz): Ditto.
8150 (btruncdf2): Ditto.
8151 (btruncdf2_fpr): Ditto.
8152 (btructsf2): Ditto.
8153 (ceildf2): Ditto.
8154 (ceildf2_fpr): Ditto.
8155 (ceilsf2): Ditto.
8156 (floordf2): Ditto.
8157 (floordf2_fpr): Ditto.
8158 (floorsf2): Ditto.
8159 (rounddf2): Ditto.
8160 (rounddf2_fpr): Ditto.
8161 (roundsf2): Ditto.
8162 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
8163 (fix_trunc<mode>di2): Ditto.
8164 (fixuns_trunc<mode>si2): Ditto.
8165 (fixuns_trunc<mode>di2): Ditto.
8166 (fctiwz_<mode>): Ditto.
8167 (btrunc<mode>2): Ditto.
8168 (btrunc<mode>2_fpr): Ditto.
8169 (ceil<mode>2): Ditto.
8170 (ceil<mode>2_fpr): Ditto.
8171 (floor<mode>2): Ditto.
8172 (float<mode>2_fpr): Ditto.
8173 (round<mode>2): Ditto.
8174 (round<mode>2_fpr): Ditto.
8175 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
8176 (fixuns_trunc<mode>si2_stfiwx): Ditto.
8177 (fix_truncdfsi2_internal): Ditto.
8178 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
8179 converted value on stack, loaded into GPR, and then stored into
8180 the final destination.
8181 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
8182 FCTIDZ.
8183 (lrint<mode>di2): New insn, provide the lrint builtin functions.
8184 (ftruncdf2): Delete, unused.
8185 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
8186
8187 * config/rs6000/vsx.md (toplevel): Update copyright year.
8188 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
8189 (VSr3): Ditto.
8190
8191 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
8192 Jeremie Salvucci <jeremie.salvucci@free.fr>
8193
8194 * gengtype.c (output_type_enum): Test the right union member.
8195
8196 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
8197
8198 PR target/41484
8199 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
8200 operands for operand 1.
8201 (sse4_1_extendv4qiv4si2): Ditto.
8202 (sse4_1_extendv2qiv2di2): Ditto.
8203 (sse4_1_extendv4hiv4si2): Ditto.
8204 (sse4_1_extendv2hiv2di2): Ditto.
8205 (sse4_1_extendv2siv2di2): Ditto.
8206 (sse4_1_zero_extendv8qiv8hi2): Ditto.
8207 (sse4_1_zero_extendv4qiv4si2): Ditto.
8208 (sse4_1_zero_extendv2qiv2di2): Ditto.
8209 (sse4_1_zero_extendv4hiv4si2): Ditto.
8210 (sse4_1_zero_extendv2hiv2di2): Ditto.
8211 (sse4_1_zero_extendv2siv2di2): Ditto.
8212 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
8213 (*sse4_1_extendv4qiv4si2): Ditto.
8214 (*sse4_1_extendv2qiv2di2): Ditto.
8215 (*sse4_1_extendv4hiv4si2): Ditto.
8216 (*sse4_1_extendv2hiv2di2): Ditto.
8217 (*sse4_1_extendv2siv2di2): Ditto.
8218 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
8219 (*sse4_1_zero_extendv4qiv4si2): Ditto.
8220 (*sse4_1_zero_extendv2qiv2di2): Ditto.
8221 (*sse4_1_zero_extendv4hiv4si2): Ditto.
8222 (*sse4_1_zero_extendv2hiv2di2): Ditto.
8223 (*sse4_1_zero_extendv2siv2di2): Ditto.
8224
8225 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8226
8227 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
8228 (mips_function_arg): Delete.
8229 (mips_function_arg_boundary): Take a const_tree.
8230 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
8231 (mips_arg_info): Likewise.
8232 (mips_setup_incoming_varargs): Call mips_function_arg_advance
8233 instead of FUNCTION_ARG_ADVANCE.
8234 (mips_function_arg_advance): Adjust prototype. Make static.
8235 (mips_function_arg): Likewise.
8236 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8237 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8238
8239 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
8240
8241 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8242 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
8243 (function_arg): Delete.
8244 (function_arg_boundary): Take a const_tree.
8245 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
8246 (rs6000_spe_function_arg): Likewise.
8247 (rs6000_parm_start): Likewise.
8248 (rs6000_arg_size): Likewise.
8249 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
8250 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
8251 (rs6000_mixed_function_arg): Likewise.
8252 (function_arg): Rename to...
8253 (rs6000_function_arg): ...this.
8254 (function_arg_advance): Rename to...
8255 (rs6000_function_arg_advance_1): ...this
8256 (rs6000_function_arg_advance): New function. Call it.
8257 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
8258 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
8259 (rs6000_function_value): Likewise.
8260 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8261
8262 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8263
8264 * config/arm/arm.md (enabled): Test the value of arch_enabled
8265 rather than just using it.
8266
8267 2010-08-27 Olivier Hainque <hainque@adacore.com>
8268 Eric Botcazou <ebotcazou@adacore.com>
8269
8270 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
8271 cover all the possible offsets from this base.
8272 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
8273
8274 2010-08-26 Jakub Jelinek <jakub@redhat.com>
8275
8276 PR tree-optimization/44485
8277 * calls.c (flags_from_decl_or_type): For const or pure
8278 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
8279 together with ECF_CONST resp. ECF_PURE.
8280 * builtins.c (expand_builtin): Use flags_from_decl_or_type
8281 instead of querying flags directly.
8282 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
8283 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
8284
8285 2010-08-26 Richard Guenther <rguenther@suse.de>
8286
8287 PR tree-optimization/45255
8288 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
8289 and externals are also invariant.
8290
8291 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8292
8293 PR rtl-optimization/44858
8294 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
8295 newi2pat, make sure they don't affect newpat.
8296
8297 PR rtl-optimization/45400
8298 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
8299 SUBREG_REG if both modes are of MODE_INT class.
8300
8301 2010-08-25 Julian Brown <julian@codesourcery.com>
8302
8303 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
8304 * config/arm/arm.md (generic_sched): No for Cortex-A5.
8305 (generic_vfp): Likewise.
8306 (cortex-a5.md): Include.
8307 * config/arm/cortex-a5.md: New.
8308
8309 2010-08-25 Richard Guenther <rguenther@suse.de>
8310
8311 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
8312 * gimple.c (gimple_get_alias_set): Remove special handling
8313 for pointers.
8314
8315 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
8316
8317 PR middle-end/45355
8318 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
8319 dead_or_set_p when computing i0_feeds_i2_n.
8320
8321 * combine.c (find_split_point): Undo canonicalization of multiply-add
8322 to (minus x (mult)) when it seems likely that this will increase the
8323 chances of a split.
8324
8325 2010-08-25 Richard Guenther <rguenther@suse.de>
8326
8327 PR lto/44562
8328 * lto-streamer.c (lto_record_common_node): Do not mess with
8329 TYPE_CANONICAL when not in lto.
8330 * gimple.c (gimple_register_type): Likewise.
8331
8332 2010-08-25 Richard Guenther <rguenther@suse.de>
8333
8334 PR tree-optimization/45316
8335 * tree-ssa-pre.c (eliminate): Properly clean EH info.
8336
8337 2010-08-25 Richard Guenther <rguenther@suse.de>
8338
8339 PR tree-optimization/45393
8340 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
8341 and clean EH info. Avoid SSA update.
8342 (execute_cse_sincos): Cleanup the CFG if it has changed.
8343
8344 2010-08-25 Richard Guenther <rguenther@suse.de>
8345
8346 PR middle-end/45379
8347 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
8348 TARGET_MEM_REF in alignment computation.
8349
8350 2010-08-25 Jakub Jelinek <jakub@redhat.com>
8351
8352 PR tree-optimization/45059
8353 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
8354 type conversions from newop{1,2}. Assert t is a comparison and
8355 newop{1,2} after the stripping are gimple vals.
8356
8357 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
8358
8359 * config/arm/iterators.md (VU, SE, V_widen_l): New.
8360 (V_unpack, US): New.
8361 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
8362 (vec_unpack<US>_lo_<mode>): Likewise.
8363 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
8364 (neon_vec_unpack<US>_lo_<mode>): Likewise.
8365 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
8366 (vec_widen_<US>mult_hi_<mode>): Likewise.
8367 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
8368 (neon_vec_<US>mult_hi_<mode>"): Likewise.
8369 (neon_unpack<US>_<mode>): Widening move intermediate step for
8370 vectorizing without -mvectorize-with-neon-quad.
8371 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
8372 for vectorizing without -mvectorize-with-neon-quad.
8373 * config/arm/predicates.md (vect_par_constant_high): Check for
8374 high-half lanes of a vector.
8375 (vect_par_constant_low): Check for low-half lanes of a vector.
8376
8377 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8378
8379 * tree-if-conv.c (struct ifc_dr): New.
8380 (IFC_DR): New.
8381 (DR_WRITTEN_AT_LEAST_ONCE): New.
8382 (DR_RW_UNCONDITIONALLY): New.
8383 (memref_read_or_written_unconditionally): Use the cached values
8384 when possible.
8385 (write_memref_written_at_least_once): Same.
8386 (if_convertible_loop_p): Initialize and free DR->aux fields.
8387
8388 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8389
8390 * gimple.c (gimple_could_trap_p_1): Not static anymore.
8391 Pass an extra bool parameter include_mem.
8392 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
8393 (gimple_assign_rhs_could_trap_p): Same.
8394 * gimple.h (gimple_could_trap_p_1): Declared.
8395 * tree-data-ref.h (same_data_refs_base_objects): New.
8396 (same_data_refs): New.
8397 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
8398 (write_memrefs_written_at_least_once): New.
8399 (ifcvt_memrefs_wont_trap): New.
8400 (operations_could_trap): New.
8401 (ifcvt_could_trap_p): New.
8402 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
8403 Gets a vector of data refs.
8404 (if_convertible_stmt_p): Same.
8405 (if_convertible_loop_p_1): New.
8406 (if_convertible_loop_p): Call if_convertible_loop_p_1.
8407
8408 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
8409
8410 * common.opt (ftree-loop-if-convert-stores): New flag.
8411 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
8412 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
8413 the created statement before GSI.
8414 (if_convertible_phi_p): Allow virtual phi nodes when
8415 flag_loop_if_convert_stores is set.
8416 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
8417 Do not handle types that do not match is_gimple_reg_type.
8418 Remove loop and bb parameters. Call gimple_could_trap_p instead of
8419 when flag_loop_if_convert_stores is set, as LHS can contain
8420 memory refs.
8421 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
8422 to if_convertible_gimple_assign_stmt_p.
8423 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
8424 (replace_phi_with_cond_gimple_assign_stmt): Renamed
8425 predicate_scalar_phi. Do not handle virtual phi nodes.
8426 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
8427 Call predicate_scalar_phi.
8428 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
8429 just after the labels for flag_loop_if_convert_stores, otherwise
8430 insert the predicate in the end of the BB.
8431 (predicate_mem_writes): New.
8432 (combine_blocks): Call predicate_all_scalar_phis. When
8433 flag_loop_if_convert_stores is set, call predicate_mem_writes.
8434 (tree_if_conversion): Call mark_sym_for_renaming when
8435 flag_loop_if_convert_stores is set.
8436 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
8437 flag_loop_if_convert_stores is set.
8438
8439 2010-08-24 Anatoly Sokolov <aesok@post.ru>
8440
8441 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
8442 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
8443 (pa_function_value): Make static.
8444 (override_options): Rename to...
8445 (pa_option_override): ...this. Make static.
8446 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
8447 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
8448 TARGET_OPTION_OVERRIDE): Define.
8449 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
8450 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
8451 Remove.
8452 * config/pa/pa-protos.h (override_options): Remove.
8453
8454 2010-08-24 Richard Guenther <rguenther@suse.de>
8455
8456 PR middle-end/45379
8457 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
8458 if addr->index is NULL or zero.
8459 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
8460 TARGET_MEM_REF more properly.
8461 (indirect_ref_may_alias_decl_p): Likewise.
8462 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
8463 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
8464
8465 2010-08-23 Anatoly Sokolov <aesok@post.ru>
8466
8467 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
8468 (m32c_override_options): Rename to...
8469 (m32c_option_override): ...this. Make static.
8470 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
8471 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
8472 Remove.
8473 * config/m32c/m32c-protos.h (m32c_override_options,
8474 m32c_function_value_regno_p): Remove.
8475
8476 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
8477
8478 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
8479 Fix a typo in a previous commit.
8480
8481 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
8482
8483 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
8484 Pre-initialize innerloop_iters to one.
8485
8486 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
8487
8488 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
8489 existing static function global.
8490
8491 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
8492 is changed to global.
8493
8494 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
8495 may_be_nonaddressable_p on base, and don't collect this reference
8496 if the address of the base could not be taken.
8497
8498 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8499
8500 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
8501 enable the compiler to autovectorize mathmetical functions for
8502 power7 using the Mathematical Acceleration Subsystem library.
8503
8504 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
8505 handle which vector math library we have.
8506 (rs6000_override_options): Add -mveclibabi=mass support.
8507 (rs6000_builtin_vectorized_libmass): New function to handle auto
8508 vectorizing math functions that are in the MASS library.
8509 (rs6000_builtin_vectorized_function): Call it.
8510
8511 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8512 -mveclibabi=mass.
8513
8514 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8515
8516 PR boehm-gc/34544
8517 * gthr-posix.h (__gthread_active_init): Delete.
8518 (__gthread_active_p): Do activity check here.
8519 Don't include errno.h on hppa-hpux. Update comment.
8520 * gthr-posix95.h (__gthread_active_init): Delete.
8521 (__gthread_active_p): Do activity check here.
8522 Don't include errno.h on hppa-hpux. Update comment.
8523 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
8524 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
8525 add -lpthread when -mt or -pthread is specified.
8526 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
8527 (LINK_GCC_C_SEQUENCE_SPEC): Define.
8528 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
8529 (stublib.c, pthread_default_stacksize_np-stub.o,
8530 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
8531 $(T)libgcc_stub.a): Add methods.
8532 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
8533 (stublib.c, pthread_default_stacksize_np-stub.o,
8534 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
8535 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8536 pthread_mutex_unlock): New stubs.
8537
8538 2010-08-22 Joseph Myers <joseph@codesourcery.com>
8539
8540 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
8541 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
8542 options.
8543 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
8544 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
8545 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
8546 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
8547 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
8548 "-l".
8549 * cppspec.c: Include opts.h.
8550 (lang_specific_driver): Use cl_decoded_option structures.
8551 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
8552 * doc/tm.texi: Regenerate.
8553 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
8554 (driver_handle_option): Allow driver options needing no special
8555 processing.
8556 (process_command): Decode options before call to
8557 lang_specific_driver. Pass decoded options to
8558 lang_specific_driver.
8559 * gcc.h (lang_specific_driver): Update prototype.
8560 * gccspec.c: Include opts.h.
8561 (lang_specific_driver): Use cl_decoded_option structures.
8562 * opts-common.c (option_ok_for_language, generate_option,
8563 generate_option_input_file): New.
8564 (decode_cmdline_option): Use option_ok_for_language.
8565 (decode_cmdline_options_to_array): Use generate_option_input_file.
8566 (handle_generated_option): Use generate_option.
8567 * opts.h (generate_option, generate_option_input_file): Declare.
8568
8569 2010-08-22 Anatoly Sokolov <aesok@post.ru>
8570
8571 * config/mips/mips.c (mips_override_options): Rename to...
8572 (mips_option_override): ...this. Make static.
8573 (TARGET_OPTION_OVERRIDE): Define.
8574 (mips_in_small_data_p): Update comment.
8575 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
8576 (FIXED_REGISTERS): Update comment.
8577 * config/mips/mips-protos.h (mips_override_options): Remove.
8578
8579 2010-08-21 Olivier Hainque <hainque@adacore.com>
8580
8581 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
8582
8583 2010-08-21 Olivier Hainque <hainque@adacore.com>
8584
8585 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
8586 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
8587
8588 2010-08-20 Jan Hubicka <jh@suse.cz>
8589
8590 * tree-pass.h (pass_ipa_cdtor_merge): New function.
8591 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
8592 heap allocated.
8593 (record_cdtor_fn): Move to ipa.c; do not test for
8594 have_ctors_dtors.
8595 (build_cdtor): Move to ipa.c; add code avoiding construction
8596 when target have ctors/dtors and there is only one ctor/dtor at given
8597 priority.
8598 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
8599 sort; reverse order of constructors.
8600 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
8601 (cgraph_finalize_function): Do not call record_cdtor_fn.
8602 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
8603 (cgraph_build_static_cdtor): Move to ipa.c.
8604 * ipa.c: Include target.h and tree-iterator.h.
8605 (cgraph_build_static_cdtor, static_ctors, static_dtors,
8606 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
8607 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
8608 pass_ipa_cdtor_merge): New.
8609 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
8610 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
8611 bounds access.
8612
8613 2010-08-20 Jan Hubicka <jh@suse.cz>
8614
8615 PR c++/45307
8616 PR c++/17736
8617 * cgraph.h (cgraph_only_called_directly_p,
8618 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
8619 static cdtors.
8620 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
8621 are not needed.
8622 (cgraph_finalize_function): Static cdtors are reachable.
8623 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
8624
8625 2010-08-20 Jan Hubicka <jh@suse.cz>
8626
8627 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
8628 flag_wpa.
8629 * lto-streamer-out.c (lto_output): Likewise.
8630 * passes.c (ipa_write_optimization_summaries): Initialize statement
8631 uids.
8632
8633 2010-08-20 Olivier Hainque <hainque@adacore.com>
8634
8635 * tree.h (alias_diag_flags): New enum.
8636 (alias_pair): Add an 'emitted_diags' field.
8637 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
8638 (assemble_alias): Initialize emitted_diags of new pairs.
8639
8640 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
8641
8642 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8643 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8644 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8645 (STACK_CHECK_PROTECT): Define.
8646 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
8647 (output_probe_stack_range): Likewise.
8648 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
8649 builtin stack checking is enabled.
8650 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
8651 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8652 (probe_stack_range): New insn.
8653
8654 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
8655
8656 PR target/45336
8657 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
8658 short first.
8659
8660 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
8661 char first.
8662
8663 2010-08-20 Jakub Jelinek <jakub@redhat.com>
8664
8665 PR target/45336
8666 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
8667 to cover zero extension into 64-bit register.
8668 (*sse2_pextrw): Likewise.
8669 (*sse4_1_pextrd_zext): New insn.
8670
8671 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
8672
8673 revert r163410, partially revert r163267.
8674 * config/rs6000/darwin.h (LIB_SPEC): Remove.
8675 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
8676 Darwin versions.
8677
8678 2010-08-20 Jakub Jelinek <jakub@redhat.com>
8679
8680 PR middle-end/44974
8681 * builtins.c (expand_builtin): Don't optimize away
8682 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
8683
8684 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
8685
8686 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
8687 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
8688 alternative 1 of operand 2.
8689
8690 2010-08-20 Jakub Jelinek <jakub@redhat.com>
8691 Paolo Bonzini <bonzini@gnu.org>
8692
8693 * simplify-rtx.c (simplify_unary_operation_1): Optimize
8694 (sign_extend (zero_extend (...)) and
8695 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
8696
8697 2010-08-20 Jakub Jelinek <jakub@redhat.com>
8698
8699 PR rtl-optimization/45353
8700 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
8701 after bb_note is a BARRIER.
8702
8703 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
8704
8705 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
8706 linking libgcc.a.
8707
8708 2010-08-20 Jakub Jelinek <jakub@redhat.com>
8709 Michael Matz <matz@suse.de>
8710
8711 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
8712
8713 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8714
8715 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
8716 (ggc_mark_roots): ...here.
8717
8718 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
8719
8720 * vec.h (FOR_EACH_VEC_ELT): Define.
8721 * c-decl.c: Use it.
8722 * cfgloop.c: Likewise.
8723 * cfgloopmanip.c: Likewise.
8724 * cgraph.c: Likewise.
8725 * cgraphunit.c: Likewise.
8726 * combine.c: Likewise.
8727 * config/bfin/bfin.c: Likewise.
8728 * config/mips/mips.c: Likewise.
8729 * config/rs6000/rs6000.c: Likewise.
8730 * dbxout.c: Likewise.
8731 * df-scan.c: Likewise.
8732 * dominance.c: Likewise.
8733 * dse.c: Likewise.
8734 * dwarf2out.c: Likewise.
8735 * except.c: Likewise.
8736 * expr.c: Likewise.
8737 * function.c: Likewise.
8738 * gcse.c: Likewise.
8739 * genattr.c: Likewise.
8740 * ggc-common.c: Likewise.
8741 * gimplify.c: Likewise.
8742 * graphite-blocking.c: Likewise.
8743 * graphite-clast-to-gimple.c: Likewise.
8744 * graphite-dependences.c: Likewise.
8745 * graphite-interchange.c: Likewise.
8746 * graphite-poly.c: Likewise.
8747 * graphite-scop-detection.c: Likewise.
8748 * graphite-sese-to-poly.c: Likewise.
8749 * graphite.c: Likewise.
8750 * haifa-sched.c: Likewise.
8751 * ifcvt.c: Likewise.
8752 * implicit-zee.c: Likewise.
8753 * ipa-prop.c: Likewise.
8754 * ipa-struct-reorg.c: Likewise.
8755 * ipa.c: Likewise.
8756 * ira-build.c: Likewise.
8757 * ira-color.c: Likewise.
8758 * ira-emit.c: Likewise.
8759 * lambda-code.c: Likewise.
8760 * loop-invariant.c: Likewise.
8761 * loop-unroll.c: Likewise.
8762 * lower-subreg.c: Likewise.
8763 * lto-cgraph.c: Likewise.
8764 * lto-opts.c: Likewise.
8765 * lto-streamer-in.c: Likewise.
8766 * lto-streamer-out.c: Likewise.
8767 * lto-streamer.c: Likewise.
8768 * lto-symtab.c: Likewise.
8769 * matrix-reorg.c: Likewise.
8770 * opts.c: Likewise.
8771 * predict.c: Likewise.
8772 * print-tree.c: Likewise.
8773 * sdbout.c: Likewise.
8774 * sel-sched-dump.c: Likewise.
8775 * sel-sched-ir.c: Likewise.
8776 * sel-sched.c: Likewise.
8777 * sese.c: Likewise.
8778 * stor-layout.c: Likewise.
8779 * tree-cfg.c: Likewise.
8780 * tree-cfgcleanup.c: Likewise.
8781 * tree-chrec.c: Likewise.
8782 * tree-data-ref.c: Likewise.
8783 * tree-emutls.c: Likewise.
8784 * tree-inline.c: Likewise.
8785 * tree-into-ssa.c: Likewise.
8786 * tree-loop-distribution.c: Likewise.
8787 * tree-loop-linear.c: Likewise.
8788 * tree-mudflap.c: Likewise.
8789 * tree-outof-ssa.c: Likewise.
8790 * tree-parloops.c: Likewise.
8791 * tree-predcom.c: Likewise.
8792 * tree-pretty-print.c: Likewise.
8793 * tree-scalar-evolution.c: Likewise.
8794 * tree-ssa-live.c: Likewise.
8795 * tree-ssa-loop-im.c: Likewise.
8796 * tree-ssa-loop-ivcanon.c: Likewise.
8797 * tree-ssa-loop-ivopts.c: Likewise.
8798 * tree-ssa-loop-manip.c: Likewise.
8799 * tree-ssa-loop-niter.c: Likewise.
8800 * tree-ssa-loop-prefetch.c: Likewise.
8801 * tree-ssa-phiprop.c: Likewise.
8802 * tree-ssa-pre.c: Likewise.
8803 * tree-ssa-reassoc.c: Likewise.
8804 * tree-ssa-sccvn.c: Likewise.
8805 * tree-ssa-structalias.c: Likewise.
8806 * tree-ssa.c: Likewise.
8807 * tree-vect-data-refs.c: Likewise.
8808 * tree-vect-loop-manip.c: Likewise.
8809 * tree-vect-loop.c: Likewise.
8810 * tree-vect-patterns.c: Likewise.
8811 * tree-vect-slp.c: Likewise.
8812 * tree-vect-stmts.c: Likewise.
8813 * tree-vrp.c: Likewise.
8814 * tree.c: Likewise.
8815 * value-prof.c: Likewise.
8816 * var-tracking.c: Likewise.
8817 * varasm.c: Likewise.
8818 * vmsdbgout.c: Likewise.
8819
8820 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
8821 Richard Guenther <richard.guenther@gmail.com>
8822
8823 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
8824 copy the src value and return a copy.
8825 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
8826 (C++ Volatiles): Adjust to describe C++ semantics only.
8827
8828 2010-08-20 Joseph Myers <joseph@codesourcery.com>
8829
8830 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
8831 be zero or nonzero.
8832 * doc/tm.texi: Regenerate.
8833 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
8834 * df-scan.c (df_get_exit_block_use_set), reginfo.c
8835 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
8836 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
8837 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
8838 to 1.
8839
8840 2010-08-20 Olivier Hainque <hainque@adacore.com>
8841
8842 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
8843 an extra nop past a sibling call at the very end.
8844
8845 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
8846
8847 PR bootstrap/45350
8848 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
8849 a comment.
8850
8851 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
8852
8853 * target.def (function_arg, function_incoming_arg): Remove const
8854 qualifier on CUMULATIVE_ARGS parameter.
8855 * targhooks.h (default_function_arg, default_function_incoming_arg):
8856 Likewise.
8857 * targhooks.c (default_function_arg, default_function_incoming_arg):
8858 Likewise.
8859 * config/i386/i386.c (ix86_function_arg): Likewise.
8860
8861 2010-08-19 Jakub Jelinek <jakub@redhat.com>
8862
8863 PR target/45336
8864 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
8865 SIGN_EXTENDs or ZERO_EXTENDs.
8866
8867 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
8868
8869 PR target/42172
8870 * combine.c (combine_validate_cost): New arg I0. All callers changed.
8871 Take its cost into account if nonnull.
8872 (insn_a_feeds_b): New static function.
8873 (combine_instructions): Look for four-insn combinations.
8874 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
8875 them into account when computing all_adjacent and looking for other
8876 uses.
8877 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
8878 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
8879 (try_combine): New arg I0. Handle four-insn combinations.
8880 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
8881 like ELIM_I1.
8882
8883 2010-08-19 Jason Merrill <jason@redhat.com>
8884
8885 PR c++/45307
8886 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
8887 if ctor is empty.
8888 (gimplify_modify_expr_rhs): Adjust.
8889
8890 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
8891
8892 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
8893 bitmap_bit_p.
8894 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
8895 * dominance.c (iterate_fix_dominators): Likewise.
8896 * dse.c (set_usage_bits): Likewise.
8897 (set_position_unneeded, record_store): Likewise.
8898 * gimple-fold.c (get_maxval_strlen): Likewise.
8899 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
8900 * ipa-inline.c (update_caller_keys): Likewise.
8901 * ipa-split.c (verify_non_ssa_vars): Likewise.
8902 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
8903 (close_type_exposed_parameter, close_type_full_escape): Likewise.
8904 (close_addressof_down): Likewise.
8905 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
8906 (setup_allocno_left_conflicts_size): Likewise.
8907 (ira_reassign_conflict_allocnos): Likewise.
8908 (ira_reassign_pseudos): Likewise.
8909 * ira-emit.c (change_loop): Likewise.
8910 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
8911 * lto-streamer-out.c (write_symbol): Likewise.
8912 * predict.c (expr_expected_value_1): Likewise.
8913 * regstat.c (regstat_bb_compute_ri): Likewise.
8914 * sel-sched.c (create_block_for_bookkeeping): Likewise.
8915 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
8916 * stmt.c (expand_case): Likewise.
8917 * tree-eh.c (emit_eh_dispatch): Likewise.
8918 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
8919 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
8920 Likewise.
8921 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
8922 (rdg_build_components): Likewise.
8923 * tree-object-size.c (collect_object_sizes_for): Likewise.
8924 * tree-sra.c (convert_callers): Likewise.
8925 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
8926 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
8927 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
8928
8929 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
8930
8931 * config/i386/i386.md (*lea_1): Use P mode iterator.
8932 (lea add splitter): Also handle DImode operands.
8933 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
8934 predicate. Do not use ix86_lea_for_add_ok.
8935 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
8936 (lea ashift splitter): Also handle DImode operands.
8937 (DImode lea ashift splitter): Remove splitter.
8938
8939 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
8940
8941 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
8942 ix86_binary_operator_ok.
8943
8944 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
8945
8946 PR rtl-optimization/44691
8947 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
8948 is not a register.
8949
8950 2010-08-19 Ian Bolton <ian.bolton@arm.com>
8951
8952 PR target/45070
8953 * config/arm/arm.c (arm_output_epilogue): Ensure that return
8954 value of size 1-3 is handled correctly.
8955
8956 2010-08-19 Ian Bolton <ian.bolton@arm.com>
8957
8958 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
8959 type for the conditional has wide enough range.
8960
8961 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
8962
8963 PR target/45327
8964 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
8965 ix86_binary_operator_ok.
8966
8967 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
8968
8969 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
8970 <default>: Swap operands 1 and 2 for alternative 2 to use existing
8971 code to output insn mnemonic. Fix comment.
8972 (*addsi_1_zext): Add r-r-0 alternative 1.
8973 <TYPE_LEA>: Split insn to lea.
8974 <default>: Handle alternative 1.
8975 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
8976 multi-level if_then_else RTX to set "type" attribute.
8977 <default>: Handle alternative 2.
8978 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
8979 Use cond RTX instead of multi-level if_then_else RTX to set
8980 "type" attribute.
8981 <default>: Handle alternatives 2 and 4.
8982 (lea splitters): Update calls to ix86_lea_for_add_ok.
8983
8984 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
8985 argument.
8986 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
8987
8988 2010-08-18 Richard Guenther <rguenther@suse.de>
8989
8990 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
8991 use operand helpers.
8992
8993 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
8994
8995 PR middle-end/45292
8996 * optabs.c (expand_bool_compare_and_swap): Expand pending
8997 pops before trying the optab.
8998
8999 2010-08-18 Yao Qi <yao@codesourcery.com>
9000
9001 PR target/45094
9002 * config/arm/arm.c (output_move_double): Fix typo generating
9003 instructions ('ldr'->'str').
9004
9005 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9006
9007 PR rtl-optimization/42575
9008 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
9009 live ranges.
9010
9011 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
9012
9013 * config/arm/arm-protos.h (arm_expand_sync): New.
9014 (arm_output_memory_barrier, arm_output_sync_insn): New.
9015 (arm_sync_loop_insns): New.
9016 * config/arm/arm.c (FL_ARCH7): New.
9017 (FL_FOR_ARCH7): Include FL_ARCH7.
9018 (arm_arch7): New.
9019 (arm_print_operand): Support %C markup.
9020 (arm_legitimize_sync_memory): New.
9021 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
9022 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
9023 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
9024 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
9025 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
9026 (arm_process_output_sync_insn, arm_output_sync_insn): New.
9027 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
9028 * config/arm/arm.h (struct arm_sync_generator): New.
9029 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
9030 (TARGET_HAVE_MEMORY_BARRIER): New.
9031 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
9032 * config/arm/arm.md: Include sync.md.
9033 (UNSPEC_MEMORY_BARRIER): New.
9034 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
9035 (VUNSPEC_SYNC_OP):New.
9036 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
9037 (sync_result, sync_memory, sync_required_value): New attributes.
9038 (sync_new_value, sync_t1, sync_t2): Likewise.
9039 (sync_release_barrier, sync_op): Likewise.
9040 (length): Add logic to length attribute defintion to call
9041 arm_sync_loop_insns when appropriate.
9042 * config/arm/sync.md: New file.
9043
9044 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9045
9046 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
9047 ENABLE_TREE_CHECKING.
9048 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
9049 and GCC >= 4.3.
9050
9051 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
9052
9053 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
9054 or optimizing for size, always avoid lea if possible.
9055
9056 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
9057
9058 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
9059
9060 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
9061 Dunmmy function with NULL return unless the target is
9062 OSX >= 10.6 (Darwin10).
9063
9064 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
9065
9066 * gcc.c (spec_function): Add remove-outfile.
9067 (remove_outfile_spec_function): New function.
9068 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
9069 * invoke.texi (replace-outfile): Document.
9070
9071 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
9072
9073 PR target/45296
9074 * reginfo.c (globalize_reg): Reject stack registers.
9075
9076 2010-08-17 Richard Guenther <rguenther@suse.de>
9077
9078 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
9079 list of conditional equivalences.
9080 (free_all_edge_infos): Adjust.
9081 (record_equivalences_from_incoming_edge): Likewise.
9082 (record_cond): Likewise.
9083 (build_and_record_new_cond): Likewise.
9084 (record_conditions): Likewise.
9085 (dom_opt_leave_block): Likewise.
9086
9087 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
9088
9089 * doc/invoke.texi (ms-extension): Add documentation.
9090
9091 2010-08-17 Richard Guenther <rguenther@suse.de>
9092
9093 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
9094
9095 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
9096
9097 PR c/40563
9098 * c-decl.c (diagnose_uninitialized_cst_member): New function.
9099 (finish_decl): Use it to issue a -Wc++-compat warning about
9100 uninitialized const field in struct or union.
9101
9102 (finish_struct): Use strip_array_types.
9103
9104 2010-08-17 Jakub Jelinek <jakub@redhat.com>
9105
9106 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
9107 functions.
9108 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
9109 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
9110 call block_nreverse here.
9111 (blocks_nreverse): Rename decl temporary to block.
9112
9113 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
9114
9115 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
9116 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
9117 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
9118 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
9119 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
9120 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
9121 thumb2_iorsi3): Delete.
9122 (orsi_notsi_si): No longer a named pattern.
9123 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
9124 * config/arm/predicates.md (shift_amount_operand): New.
9125 (mult_operator): New.
9126 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
9127 attr enabled): New.
9128 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
9129 arch matches t2.
9130 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
9131 (not_shiftsi_compare0): Likewise, renamed from
9132 arm_notsi_shiftsi_compare0.
9133 (not_shiftsi_compare0_scratch): Likweise, renamed from
9134 arm_notsi_shiftsi_compare0_scratch.
9135 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
9136 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
9137 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
9138 so that the register alternative is disabled when the shift_operator
9139 is MULT. Use "M" as the constraint for constants.
9140 (arith_shiftsi splitter): Enable for TARGET_32BIT.
9141 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
9142 constraint for constants.
9143 (arith_shiftsi_compare0_scratch): Likewise.
9144 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
9145 Handle Thumb2 alternative.
9146
9147 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9148
9149 * doc/options.texi (NoDriverArg): Document.
9150 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
9151 -MDX and -MMDX.
9152 * opt-functions.awk (switch_flags): Handle NoDriverArg.
9153 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
9154 marking for CL_NO_DRIVER_ARG options when in the driver.
9155 * opts.h (CL_NO_DRIVER_ARG): Define.
9156 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9157 CL_COMMON): Update values.
9158
9159 2010-08-16 Joseph Myers <joseph@codesourcery.com>
9160
9161 * common.opt: Add driver options.
9162 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
9163 * doc/options.texi (Driver, RejectDriver): Document.
9164 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
9165 print_prog_name, print_multi_directory, print_sysroot,
9166 print_multi_os_directory, print_multi_lib,
9167 print_sysroot_headers_suffix, report_times, combine_flag,
9168 use_pipes, wrapper_string): Remove.
9169 (save_switch, driver_unknown_option_callback,
9170 driver_wrong_lang_callback, driver_post_handling_callback,
9171 driver_handle_option): New.
9172 (spec_lang, last_language_n_infiles): Make file-scope static
9173 instead of local to process_command.
9174 (process_command): Use decode_cmdline_options_to_array and
9175 read_cmdline_option for option processing. Compute have_c in
9176 prescan of decoded options.
9177 * opt-functions.awk (switch_flags): Handle Driver and
9178 RejectDriver.
9179 (var_type, var_type_struct): Handle Separate options as generating
9180 const char * variables.
9181 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
9182 CL_TARGET to be passed by caller if required.
9183 (decode_cmdline_options_to_array): Update comment.
9184 * opts.c (complain_wrong_lang): Handle options only valid for the
9185 driver.
9186 (decode_options): Update call to decode_cmdline_options_to_array.
9187 (print_filtered_help): Ignore driver-only options.
9188 (print_specific_help): Ignore CL_DRIVER.
9189 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
9190 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
9191 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
9192 Update values.
9193
9194 2010-08-16 Richard Guenther <rguenther@suse.de>
9195
9196 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9197 TARGET_MEM_REF a bit.
9198 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
9199 (create_mem_ref_raw): Always create TMR_OFFSET, store the
9200 alias pointer type via it.
9201 (copy_mem_ref_info): Adjust.
9202 (maybe_fold_tmr): Likewise.
9203 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
9204 (reference_alias_ptr_type): Likewise.
9205 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
9206 adjust documentation of TMR_OFFSET operand.
9207 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
9208 use the alias pointer type.
9209 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
9210 initialize mem attrs but the TMR itself.
9211 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
9212 similar to MEM_REF.
9213 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
9214 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
9215 (unshare_and_remove_ssa_names): Likewise.
9216 (copy_ref_info): Adjust.
9217 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
9218 TARGET_MEM_REF case.
9219 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
9220 at TMR_ORIGINAL.
9221 * tree.h (TMR_ORIGINAL): Remove.
9222 * gimple.c (get_base_address): For TARGET_MEM_REF with a
9223 symbol return that.
9224 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
9225 with a symbol.
9226 (get_addr_base_and_unit_offset): Likewise.
9227 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
9228 TARGET_MEM_REFs.
9229 (indirect_ref_may_alias_decl_p): Likewise.
9230 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
9231
9232 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
9233
9234 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
9235 with GCC version 4.6, the default setting (when not optimizing
9236 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
9237 been changed to -fomit-frame-pointer.
9238
9239 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
9240
9241 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
9242 Darwin10. Do not link libgcc.a for Darwin >= 9.
9243
9244 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
9245
9246 * doc/invoke.texi (Warning Options): Fix terminology and markup
9247 in the description of how unknown warning options are handled.
9248
9249 2010-08-15 Ira Rosen <irar@il.ibm.com>
9250
9251 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
9252 in basic blocks.
9253 (vect_supportable_dr_alignment): Check alignment for basic blocks.
9254 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
9255 data references.
9256 (vect_bb_vectorization_profitable_p): New function.
9257 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
9258 check if it's worthwhile to vectorize the basic block.
9259
9260 2010-08-14 Anatoly Sokolov <aesok@post.ru>
9261
9262 * reload.h (register_move_cost, memory_move_secondary_cost,
9263 secondary_reload_class): Adjust prototype.
9264 * rtl.h (reg_class_subset_p): Adjust prototype.
9265 * reload.c (secondary_reload_class): Change arguments type from
9266 enum reg_class to reg_class_t. Change result type to reg_class_t.
9267 * reginfo.c (register_move_cost, reg_class_subset_p): Change
9268 arguments type from enum reg_class to reg_class_t.
9269 (memory_move_secondary_cost): Change arguments type from
9270 enum reg_class to reg_class_t. Change type of saved_flags to
9271 reg_class_t.
9272
9273 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9274 Remove macros.
9275 (mips_cost): Remove.
9276 (struct mips_rtx_cost_data): Moved to mips.c.
9277 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
9278 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
9279 (mips_cost): Make static.
9280 (mips_canonicalize_move_class): Change argument type to reg_class_t.
9281 Change result type to reg_class_t.
9282 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
9283 type from enum reg_class to reg_class_t.
9284 (mips_register_move_cost): Make static. Change arguments
9285 type from enum reg_class to reg_class_t.
9286 (mips_memory_move_cost): New function.
9287 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9288
9289 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
9290
9291 PR rtl-optimization/43358
9292 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
9293 of a single hard register, using simplify_subreg_regno to decide
9294 what that register should be.
9295
9296 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
9297
9298 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
9299 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
9300 (loongson_pmull<V_suffix>): Rename to...
9301 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
9302
9303 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
9304
9305 * configure.ac: Enable -fomit-frame-pointer on darwin
9306 which support dwarf2.
9307 * config/i386/i386.c (override_options): Same.
9308
9309 2010-08-13 Jie Zhang <jie@codesourcery.com>
9310
9311 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
9312
9313 2010-08-12 Joseph Myers <joseph@codesourcery.com>
9314
9315 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
9316 -MMD.
9317
9318 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
9319
9320 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
9321 up dot_prod pattern searching if a stmt is outside the loop.
9322
9323 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
9324 Uros Bizjak <ubizjak@gmail.com>
9325
9326 * config.gcc: Handle --enable-frame-pointer.
9327
9328 * configure.ac: Add --enable-frame-pointer.
9329 * configure: Regenerated.
9330
9331 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
9332 (override_options): If not configured with --enable-frame-pointer,
9333 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
9334 optimizing for size), -fasynchronous-unwind-tables and
9335 -maccumulate-outgoing-args by default.
9336
9337 2010-08-12 Jakub Jelinek <jakub@redhat.com>
9338
9339 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
9340
9341 PR middle-end/45262
9342 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
9343 -a overflows. Normalize the range.
9344
9345 2010-08-12 Richard Guenther <rguenther@suse.de>
9346
9347 PR tree-optimization/45232
9348 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
9349 for types with undefined overflow.
9350 (reassociate_bb): Allow re-associating of bit and min/max
9351 operations for types with undefined overflow.
9352 * tree-ssa-forwprop.c (associate_plusminus): New function.
9353 (tree_ssa_forward_propagate_single_use_vars): Call it.
9354
9355 2010-08-12 Richard Guenther <rguenther@suse.de>
9356
9357 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
9358 * tree-ssa-alias.c (get_ptr_info): Move ...
9359 * tree-ssanames.c (get_ptr_info): ... here. Initialize
9360 align and misalign fields conservatively.
9361 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
9362 derive alignment information.
9363 (evaluate_stmt): Derive alignment information from memory
9364 allocation functions.
9365 * tree.h (get_pointer_alignment): Make unsigned.
9366 * builtins.c (get_object_alignment): Use alignment information we
9367 have computed for pointers.
9368 (get_pointer_alignment): Likewise. Make conservative, return
9369 and unsigned value.
9370 (expand_builtin_strlen): Adjust.
9371 (expand_builtin_memcmp): Likewise.
9372 (expand_builtin_strcmp): Likewise.
9373 (expand_builtin_strncmp): Likewise.
9374 (get_builtin_sync_mem): Use at least mode alignment.
9375 (fold_builtin_memset): Adjust.
9376 (fold_builtin_memory_op): Likewise.
9377 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
9378 information also dump pointer alignment knowledge.
9379 (dump_gimple_stmt): Likewise.
9380
9381 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
9382
9383 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
9384 (EMPTY_FIELD_BOUNDARY): Remove.
9385 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
9386
9387 2010-08-12 Jakub Jelinek <jakub@redhat.com>
9388
9389 PR debug/45259
9390 * caller-save.c (save_call_clobbered_regs): Only swap notes with
9391 DEBUG_INSNs if n_regs_saved.
9392
9393 2010-08-12 Wei Guozhi <carrot@google.com>
9394
9395 PR target/44999
9396 * config/arm/arm.md (andsi3): Change to zero extension if possible.
9397 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
9398
9399 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
9400
9401 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
9402
9403 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
9404
9405 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9406
9407 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
9408 the case removed in the previous patch, when the only phi argument
9409 is defined in the same loop as the phi node itself. Handle it
9410 separately from the invariant case by both propagating it outside
9411 the region and replacing the phi node with an assign.
9412
9413 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9414
9415 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
9416 constant phi nodes with one argument are is_gimple_min_invariant
9417 and SSA_NAME_IS_DEFAULT_DEF.
9418
9419 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9420
9421 * graphite-cloog-util.c (oppose_constraint):
9422 Extend loop counter's value range (CLOOG_ORG).
9423 (cloog_matrix_to_ppl_constraint): Same.
9424 (new_Constraint_System_from_Cloog_matrix): Same.
9425 * graphite-cloog-compat.h (matrix_num_type): New.
9426
9427 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9428
9429 * graphite.c (graphite_initialize): Do not initialize
9430 CLooG and initialize the Parma Polyhedra Library
9431 manually when using CLOOG_ORG.
9432 (graphite_finalize): Do not finalize CLooG and finalize
9433 the Parma Polyhedra Library manually when using CLOOG_ORG.
9434 * graphite-cloog-compat.h (cloog_initialize): Hide function
9435 when using CLOOG_ORG.
9436 (cloog_finalize): Same.
9437
9438 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9439
9440 * graphite-clast-to-gimple.c (free_scattering): Change
9441 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
9442 (CLOOG_ORG).
9443 (build_cloog_prog): Same.
9444 * graphite-cloog-compat.h (cloog_domain): Removed.
9445 (cloog_scattering): New.
9446 (cloog_set_domain): Removed.
9447 (cloog_set_scattering): New.
9448 (cloog_next_domain): Removed.
9449 (cloog_next_scattering): New.
9450 (cloog_set_next_domain): Removed.
9451 (cloog_set_next_scattering): New.
9452 (CloogScatteringList): New.
9453 (CloogScattering): New.
9454 (cloog_scattering_free): New.
9455 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
9456 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
9457 New.
9458
9459 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9460
9461 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
9462 CloogState.
9463 (set_cloog_options): Same.
9464 (print_clast_stmt): Same.
9465 (scop_to_clast): Same.
9466 (print_generated_program): Same.
9467 (gloog): Same.
9468 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
9469 (scop_to_clast): Extend with CloogState.
9470 * graphite-cloog-util.c: Include graphite-cloog-compat.h
9471 (new_Cloog_Domain_from_ppl_Polyhedron):
9472 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
9473 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
9474 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9475 * graphite-cloog-util.h (build_cloog_prog): Same.
9476 * graphite-cloog-copat.h (build_cloog_prog): New.
9477 (CloogState): New.
9478 (cloog_state_malloc): New.
9479 (cloog_state_free): New.
9480 (cloog_loop_malloc): New.
9481 (cloog_options_malloc): New.
9482 (cloog_statement_alloc): New.
9483 (cloog_domain_from_cloog_matrix): New.
9484 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
9485 (new_Cloog_Domain_from_ppl_Polyhedron): New.
9486
9487 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9488
9489 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
9490 type of NAME now depends on used CLooG version.
9491 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
9492 (gcc_type_for_clast_expr): Same.
9493 (print_clast_stmt): Replace pprint with clast_pprint.
9494 * graphite-cloog-compat.h: Provide compatibility macros for
9495 CLooG Legacy.
9496 (clast_name_p): New.
9497 (clast_expr_term): New.
9498 (clast_expr_red): New.
9499 (clast_expr_bin): New.
9500 (clast_pprint): New.
9501
9502 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9503
9504 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
9505 compatible to newer CLooG releases (CLOOG_ORG).
9506 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
9507 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
9508 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
9509 (build_cloog_prog) : New.
9510 (cloog_program_extract_scalars): New.
9511 (cloog_program_scatter): New.
9512
9513 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9514
9515 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
9516 conditionally (CLOOG_ORG).
9517 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
9518 (cloog_statement_usr): New.
9519 (cloog_domain): Same.
9520 (cloog_set_domain): Same.
9521 (cloog_next_domain): Same.
9522 (cloog_set_next_domain): Same.
9523 (cloog_program_nb_scattdims): Same.
9524 (cloog_program_set_nb_scattdims): Same.
9525 (cloog_program_names): Same.
9526 (cloog_program_set_names): Same.
9527 (cloog_program_set_context): Same.
9528 (cloog_program_set_loop): Same.
9529 (cloog_program_blocklist): Same.
9530 (cloog_program_set_blocklist): Same.
9531 (cloog_program_scaldims): Same.
9532 (cloog_program_set_scaldims): Same.
9533 (cloog_names_nb_parameters): Same.
9534 (cloog_names_set_nb_parameters): Same.
9535 (cloog_names_parameters): Same.
9536 (cloog_names_set_parameters): Same.
9537 (cloog_names_set_nb_iterators): Same.
9538 (cloog_names_set_iterators): Same.
9539 (cloog_names_set_nb_scattering): Same.
9540 (cloog_names_set_scattering): Same.
9541 (cloog_statement_set_usr): Same.
9542 (cloog_loop_set_next): Same.
9543 (cloog_loop_set_domain): Same.
9544 (cloog_loop_set_block): Same.
9545 (cloog_block_list_next): Same.
9546 (cloog_block_list_set_next):
9547 (cloog_block_list_set_block): Same.
9548
9549 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9550
9551 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
9552 a bool.
9553 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
9554 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
9555 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
9556 when something has been changed.
9557 (rewrite_commutative_reductions_out_of_ssa): Same.
9558
9559 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9560
9561 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
9562 handle the case when def is in the sese region.
9563 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
9564 for invariant expressions.
9565 (rewrite_cross_bb_phi_deps): Removed.
9566 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
9567 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
9568 rewrite_cross_bb_phi_deps.
9569
9570 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9571
9572 * graphite-sese-to-poly.c
9573 (rewrite_commutative_reductions_out_of_ssa_loop): Call
9574 scev_analyzable_p only on is_gimple_reg
9575
9576 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9577
9578 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
9579 (rewrite_close_phi_out_of_ssa): Propagate constant values or
9580 parametric expressions outside the scop region.
9581 (rewrite_cross_bb_scalar_deps): Same.
9582 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
9583
9584 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9585
9586 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
9587 SSA_NAME_DEF_STMT only on SSA_NAMEs.
9588
9589 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9590
9591 * tree-scalar-evolution.c (instantiate_scev_name): Do not
9592 instantiate default definitions.
9593
9594 2010-08-11 Vladimir Kargov <kargov@gmail.com>
9595 Sebastian Pop <sebastian.pop@amd.com>
9596
9597 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
9598 (loop_exits_from_bb_p): New.
9599 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
9600 (loop_exits_from_bb_p): Declared.
9601 * graphite-scop-detection.c (scopdet_basic_block_info): Call
9602 loop_exits_to_bb_p.
9603
9604 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9605
9606 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
9607 extra parameter for the region. Call scev_analyzable_p.
9608 (rewrite_reductions_out_of_ssa): Update call to
9609 rewrite_close_phi_out_of_ssa.
9610 (rewrite_cross_bb_phi_deps): Same.
9611 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
9612 parameter for the region. Call scev_analyzable_p.
9613 (rewrite_commutative_reductions_out_of_ssa): Update call to
9614 rewrite_commutative_reductions_out_of_ssa_loop.
9615
9616 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9617
9618 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
9619
9620 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9621
9622 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
9623 SSA scalar phi nodes that can be scev_analyzable_p.
9624
9625 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9626
9627 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
9628 handle SSA_NAME_IS_DEFAULT_DEF.
9629
9630 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9631
9632 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
9633
9634 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9635
9636 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
9637 case non close-phi nodes with one argument.
9638
9639 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9640
9641 * sese.h (scev_analyzable_p): Scevs could be expressions without
9642 chrecs and still be scev_analyzable_p.
9643
9644 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9645
9646 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9647
9648 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9649
9650 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
9651 * cfgloop.h (struct loop): Remove single_iv field.
9652 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
9653 (scop_canonicalize_loops): Removed.
9654 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
9655 over all the loop phi nodes in loop->header.
9656 (build_poly_scop): Remove use of scop_canonicalize_loops.
9657
9658 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9659
9660 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
9661 handle GIMPLE_CALL.
9662
9663 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9664
9665 * tree-chrec.c (chrec_apply): Should only apply to the specified
9666 variable. Also handle multivariate chains of recurrences that
9667 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
9668
9669 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9670
9671 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
9672 (debug_clast_name_indexes_1): Removed.
9673 (debug_clast_name_indexes): Removed.
9674 (pbb_to_depth_to_oldiv): Removed.
9675 (build_iv_mapping): Replace the use of rename_map with iv_map.
9676 (translate_clast_user): Remove uses of rename_map. Allocate and
9677 free iv_map.
9678 (translate_clast_for_loop): Remove uses of rename_map.
9679 (translate_clast_for): Same.
9680 (translate_clast_guard): Same.
9681 (translate_clast): Same.
9682 (gloog): Same.
9683 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
9684 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
9685 * sese.c (set_rename): Now static.
9686 (rename_variables_in_stmt): Removed.
9687 (rename_uses): New.
9688 (is_parameter): Removed.
9689 (is_iv): Removed.
9690 (expand_scalar_variables_call): Removed.
9691 (expand_scalar_variables_ssa_name): Removed.
9692 (expand_scalar_variables_expr): Removed.
9693 (expand_scalar_variables_stmt): Removed.
9694 (expand_scalar_variables): Removed.
9695 (rename_variables): Removed.
9696 (remove_condition): Removed.
9697 (get_true_edge_from_guard_bb): Removed.
9698 (get_false_edge_from_guard_bb): Removed.
9699 (struct igp): Removed.
9700 (default_before_guard): Removed.
9701 (convert_for_phi_arg): Removed.
9702 (add_guard_exit_phis): Removed.
9703 (insert_guard_phis): Removed.
9704 (graphite_copy_stmts_from_block): Now also uses iv_map and a
9705 region. Do not copy conditions. Do not copy induction variables.
9706 Call rename_uses.
9707 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
9708 the translated statement. Use the iv_map for the induction
9709 variable renaming.
9710 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
9711 (set_rename): Removed declaration.
9712 (scev_analyzable_p): ...here.
9713 * tree-chrec.c (chrec_apply_map): New.
9714 * tree-chrec.h (chrec_apply_map): Declared.
9715
9716 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9717
9718 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
9719 insert_loop_close_phis.
9720 * sese.c (name_defined_in_loop_p): Removed.
9721 (expr_defined_in_loop_p): Removed.
9722 (alive_after_loop): Removed.
9723 (close_phi_not_yet_inserted_p): Removed.
9724 (struct alep): Removed.
9725 (add_loop_exit_phis): Removed.
9726 (insert_loop_close_phis): Removed.
9727
9728 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9729
9730 * graphite-cloog-util.c
9731 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
9732 * graphite-poly.c
9733 (psct_scattering_dim_for_loop_depth): Same.
9734
9735 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9736
9737 * graphite-cloog-util.h: Added cloog.h.
9738 * graphite-blocking.c: Removed cloog.h.
9739 * graphite-dependences.c: Same.
9740 * graphite-interchange.c: Same.
9741 * graphite-poly.c: Same.
9742 * graphite-ppl.c: Same.
9743 * graphite-scop-detection.c: Same.
9744 * graphite-sese-to-poly.c:
9745 Removed cloog.h.
9746 Removed graphite-clast-to-gimple.h.
9747 (check_poly_representation): Removed (unused).
9748 * graphite-sese-to-poly.h
9749 (check_poly_representation): Removed (unused).
9750
9751 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9752
9753 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
9754 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
9755 (graphite-cloog-util.o): New.
9756 (graphite-ppl.o): Added graphite-cloog-util.h.
9757 * graphite-clast-to-gimple.c:
9758 Added graphite-cloog-util.h to include statements.
9759 * graphite-cloog-util.c: New.
9760 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
9761 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9762 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9763 (new_C_Polyhedron_from_Cloog_Matrix): Same.
9764 (insert_constraint_into_matrix): Same.
9765 (ppl_Constrain_System_number_of_constraints): Same.
9766 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
9767 (oppose_constraint): Same.
9768 (cloog_matrix_to_ppl_constraint): Same.
9769 (new_Constraint_System_from_Cloog_Matrix): Same.
9770 * graphite-cloog-util.h: New.
9771 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
9772 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9773 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9774 (new_C_Polyhedron_from_Cloog_Matrix): Same.
9775 (insert_constraint_into_matrix): Same.
9776 * graphite-ppl.c:
9777 Added graphite-cloog-util.h to include statements.
9778 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
9779 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9780 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9781 (new_C_Polyhedron_from_Cloog_Matrix): Same.
9782 (insert_constraint_into_matrix): Same.
9783 (ppl_Constrain_System_number_of_constraints): Same.
9784 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
9785 (oppose_constraint): Same.
9786 (cloog_matrix_to_ppl_constraint): Same.
9787 (new_Constraint_System_from_Cloog_Matrix): Same.
9788 * graphite-ppl.h:
9789 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
9790 graphite-cloog-util.h.
9791 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
9792 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9793 (new_C_Polyhedron_from_Cloog_Matrix): Same.
9794 (insert_constraint_into_matrix): Same.
9795
9796 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9797
9798 * graphite-clast-to-gimple.c
9799 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
9800 (precision_for_interval): Same.
9801 (gcc_type_for_interval): Same.
9802 (compute_type_for_level): Same.
9803 * graphite-interchange.c
9804 (lst_interchange_profitable_p): Same.
9805 * graphite-poly.c
9806 (psct_scattering_dim_for_loop_depth): Same.
9807 * graphite-ppl.c
9808 (ppl_max_for_le_pointset): Same.
9809 (ppl_min_for_le_pointset): Same.
9810
9811 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9812
9813 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
9814 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
9815
9816 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9817
9818 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
9819 rewrite_close_phi_out_of_ssa.
9820
9821 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9822
9823 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
9824
9825 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9826
9827 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
9828 rename_map.
9829 * sese.c (debug_rename_map): Same.
9830 (get_rename): Same.
9831 (set_rename): Same.
9832 (rename_variables_in_stmt): Same.
9833 (expand_scalar_variables_call): Same.
9834 (expand_scalar_variables_ssa_name): Same.
9835 (expand_scalar_variables_expr): Same.
9836 (expand_scalar_variables_stmt): Same.
9837 (expand_scalar_variables): Same.
9838 (rename_variables): Same.
9839 (graphite_copy_stmts_from_block): Same.
9840 (copy_bb_and_scalar_dependences): Same.
9841
9842 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9843
9844 * graphite-clast-to-gimple.c (copy_renames): Removed.
9845 (translate_clast_for): Do not call copy_renames.
9846 (translate_clast_guard): Same.
9847
9848 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9849
9850 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
9851 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
9852 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
9853 before rewrite_cross_bb_scalar_deps.
9854
9855 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9856
9857 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
9858 Early return in when flag_associative_math is not set.
9859
9860 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9861
9862 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
9863 of SSA copies on edges except for loop->latch.
9864
9865 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9866
9867 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
9868 Split out of rewrite_reductions_out_of_ssa.
9869 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
9870 Declared.
9871 * graphite.c (graphite_transform_loops): Call it.
9872
9873 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9874
9875 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
9876
9877 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
9878
9879 * dbgcnt.def (graphite_scop): New counter.
9880 * graphite.c: Include dbgcnt.h.
9881 (graphite_transform_loops): Use new counter to limit transformations.
9882 * Makefile.in (graphite.o): Depend on DBGCNT_H.
9883
9884 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9885
9886 * passes.c (init_optimization_passes): Add pass_graphite.
9887 Schedule a pass_copy_prop before pass_graphite_transforms.
9888 * timevar.def (TV_GRAPHITE): Declared.
9889 * tree-pass.h (pass_graphite): Declared.
9890 * tree-ssa-loop.c (pass_graphite): New.
9891
9892 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9893
9894 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
9895 Remove calls to rename_nb_iterations and rename_sese_parameters.
9896 * graphite-clast-to-gimple.h (gloog): Update declaration.
9897 * graphite.c (graphite_transform_loops): Update call to gloog.
9898 * sese.c (rename_variables_in_expr): Removed.
9899 (rename_nb_iterations): Removed.
9900 (rename_sese_parameters): Removed.
9901 * sese.h (rename_nb_iterations): Removed.
9902 (rename_sese_parameters): Removed.
9903
9904 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9905
9906 * graphite-clast-to-gimple.c (gloog): Remove call to
9907 sese_adjust_liveout_phis.
9908 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
9909 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
9910 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
9911 rewrite_phi_out_of_ssa.
9912 * sese.c (get_vdef_before_sese): Removed.
9913 (sese_adjust_vphi): Removed.
9914 (sese_adjust_liveout_phis): Removed.
9915 * sese.h (sese_adjust_liveout_phis): Removed.
9916
9917 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9918
9919 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
9920 argument for the place after which to insert the out of SSA copy.
9921 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
9922 (rewrite_phi_out_of_ssa): Same.
9923 (rewrite_cross_bb_scalar_deps): Same.
9924 (insert_copyout): Removed.
9925 (insert_copyin): Removed.
9926 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
9927 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
9928 insert_copyin.
9929
9930 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9931
9932 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
9933 (rewrite_reductions_out_of_ssa): Same.
9934 (rewrite_commutative_reductions_out_of_ssa): Same.
9935 (build_poly_scop): Do not call these functions.
9936 * graphite-sese-to-poly.h (build_poly_scop): Declared.
9937 (rewrite_reductions_out_of_ssa): Declared.
9938 (rewrite_commutative_reductions_out_of_ssa): Declared.
9939 * graphite.c (graphite_transform_loops): Call on every scop
9940 rewrite_commutative_reductions_out_of_ssa before calling
9941 rewrite_reductions_out_of_ssa and build_scop_bbs.
9942
9943 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9944
9945 * graphite-dependences.c (dot_deps): Make system call to dotty run
9946 in background.
9947 (dot_deps_stmt): Same.
9948 * graphite-poly.c (dot_lst): Same.
9949
9950 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
9951
9952 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
9953 phi_arg_in_outermost_loop.
9954 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
9955 (remove_invariant_phi): Same.
9956
9957 2010-08-11 Anatoly Sokolov <aesok@post.ru>
9958
9959 * target.def (output_addr_const_extra): New hook.
9960 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
9961 * doc/tm.texi: Regenerate.
9962 * targhooks.c (default_asm_output_addr_const_extra): New function.
9963 * targhooks.h (default_asm_output_addr_const_extra): Declare.
9964 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
9965 target hook.
9966
9967 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9968 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
9969 * config/i386/i386.h (output_addr_const_extra): Rename to...
9970 (i386_asm_output_addr_const_extra): ...this. Make static.
9971 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9972
9973 2010-08-11 Richard Henderson <rth@redhat.com>
9974
9975 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
9976
9977 2010-08-11 Nick Clifton <nickc@redhat.com>
9978
9979 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
9980 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
9981 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9982 stormy16-lib2-cmpsi.c.
9983
9984 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
9985 -O2.
9986
9987 2010-08-11 Joseph Myers <joseph@codesourcery.com>
9988
9989 * opts.h (struct cl_option_handler_func): Make handler take
9990 cl_decoded_option structure as parameter, not individual elements.
9991 (struct cl_option_handlers): Make callbacks take cl_decoded_option
9992 structure as parameter, not individual elements.
9993 (handle_option): Take cl_decoded_option structure as parameter,
9994 not individual elements.
9995 (handle_generated_option): Declare.
9996 * opts-common.c (handle_option): Take cl_decoded_option structure
9997 as parameter, not individual elements. Update calls to callback
9998 and handler functions.
9999 (handle_generated_option): New.
10000 (read_cmdline_option): Update calls to callback functions and
10001 handle_option.
10002 * opts.c (common_handle_option, complain_wrong_lang,
10003 unknown_option_callback, post_handling_callback,
10004 lang_handle_option, target_handle_option): Take cl_decoded_option
10005 structure as parameter, not individual elements.
10006 (lang_handle_option, target_handle_option, common_handle_option):
10007 Assert option has at most one argument.
10008 (enable_warning_as_error): Call handle_generated_option instead of
10009 handle_option. Do not pass -Werror argument as argument of
10010 generated option.
10011
10012 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10013
10014 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10015 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10016 (SUBWORD_BOOL_CAS): Likewise.
10017 (SUBWORD_SYNC_OP): Likewise.
10018 (SUBWORD_TEST_AND_SET): Likewise.
10019 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10020 (SUBWORD_SYNC_OP): Likewise.
10021 (OP_AND_FETCH_WORD): Likewise.
10022
10023 2010-08-10 Xinliang David Li <davidxl@google.com>
10024
10025 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
10026 compute max/min offset in address.
10027
10028 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
10029
10030 * ira-live.c: Include sbitmap.h.
10031 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
10032 Compress live ranges even more.
10033
10034 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10035
10036 * coverage.c (ctr_labels): Delete.
10037
10038 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10039
10040 PR bootstrap/45177
10041 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
10042 test here from arm_gen_load_multiple_1.
10043 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
10044 multiple_operation_profitable_p.
10045
10046 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10047
10048 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
10049 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
10050
10051 2010-08-10 Richard Henderson <rth@redhat.com>
10052
10053 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
10054 after saving registers. Assert that SSE registers are only saved
10055 with a sufficiently aligned frame.
10056 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
10057 remove stack_realign_fp handling.
10058 (ix86_expand_prologue): Save int registers before stack_realign_fp,
10059 and do not mark the stack alignment as frame related.
10060 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
10061
10062 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
10063 saves when re-aligning the stack.
10064
10065 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10066
10067 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
10068 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
10069 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
10070
10071 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
10072
10073 * dwarf2out.c (struct die_struct): Move die_tag to the end.
10074
10075 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
10076
10077 * config/arm/iterators.md: New file.
10078 * config/arm/arm.md: Include iterators.md.
10079 (QHSI): Move to new file.
10080 (LTUGEU, cnb, optab, ior_xor): Likewise.
10081 * config/arm/iwmmxt.md (VMMX): Move to new file.
10082 (VSHFT, MMX_char): Likewise.
10083 * config/arm/neon.md (VD): Move to new file.
10084 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
10085 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
10086 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
10087 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
10088 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
10089 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
10090 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
10091 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
10092 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
10093 (Is_d_reg, V_mode_nunits): Likewise.
10094 * config/arm/vec-common.md (VALL): Move to new file.
10095 (VALLW, VINT, VINTW): Likewise.
10096
10097 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
10098
10099 PR middle-end/45182
10100 * combine.c (make_compound_operation): Don't try to convert
10101 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
10102
10103 2010-08-10 Richard Guenther <rguenther@suse.de>
10104
10105 * tree.h (get_object_alignment): Adjust prototype.
10106 * builtins.c (get_object_alignment): Return unsigned int,
10107 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
10108 and TARGET_MEM_REF properly.
10109 (get_pointer_alignment): Adjust.
10110 * emit-rtl.c (get_mem_align_offset): Adjust comment.
10111 (set_mem_attributes_minus_bitpos): Adjust.
10112 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
10113
10114 2010-08-10 Richard Guenther <rguenther@suse.de>
10115
10116 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
10117 (copy_prop_visit_assignment): Simplify.
10118 (copy_prop_visit_stmt): Also visit assignments from
10119 constants.
10120 (copy_prop_visit_phi_node): Use operand_equal_p.
10121
10122 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10123
10124 * ipa-split.c (find_split_points): Free stack.
10125
10126 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10127
10128 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
10129 * tree.c (tree_node_kind): Delete corresponding entries.
10130
10131 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
10132
10133 * alias.c (may_alias_p): Remove unused ret.
10134
10135 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
10136
10137 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
10138 alias_sets_conflict_p.
10139 (walk_mems_1): Moved from alias.c.
10140 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
10141 in alias.c.
10142 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
10143 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
10144 * alias.c (walk_mems_2): Moved to ddg.c.
10145 (walk_mems_1): Ditto.
10146 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
10147 to ddg.c.
10148 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
10149 disambiguation.
10150 *(may_alias_p): New function to check whether two memory expression
10151 may alias or not. Currently used in buidling inter-iteration memory
10152 dependence.
10153 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
10154 (insn_alias_sets_conflict_p): Removed
10155 *rtl.h (may_alias_p): New function prototype.
10156
10157 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10158
10159 * tree.c (nreverse): Assert that we don't have a BLOCK.
10160
10161 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
10162
10163 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
10164 * config/arm/arm.c (arm_get_pcs_model): Likewise.
10165 * config/avr/avr.c (init_cumulative_args): Likewise.
10166 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10167 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10168 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
10169 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
10170 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
10171 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
10172 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
10173 * dwarf2out.c (gen_subprogram_die): Likewise.
10174 * function.c (allocate_struct_function): Likewise.
10175 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
10176 (deserves_ellipsis): Delete.
10177
10178 2010-08-09 Richard Guenther <rguenther@suse.de>
10179
10180 * tree-ssa-copy.c (cached_last_copy_of): Remove.
10181 (valueize_val): New function.
10182 (get_last_copy_of): Remove.
10183 (set_copy_of_val): Simplify.
10184 (dump_copy_of): Likewise.
10185 (copy_prop_visit_cond_stmt): Use valueize_val.
10186 (copy_prop_visit_phi_node): Properly handle unvisited names.
10187 Drop code managing copy-of chains.
10188 (init_copy_prop): Adjust.
10189 (fini_copy_prop): Likewise.
10190 (execute_copy_prop): Remove obsolete comment.
10191
10192 2010-08-09 Richard Guenther <rguenther@suse.de>
10193
10194 PR middle-end/44632
10195 * function.c (gimplify_parameters): Do not clear addressable
10196 bit of the original parameter.
10197
10198 2010-08-09 Richard Guenther <rguenther@suse.de>
10199
10200 PR middle-end/45212
10201 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
10202 alignment from MEM_REF offset only if we took it from the
10203 base object.
10204
10205 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
10206
10207 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
10208
10209 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10210
10211 * c-tree.h (build_arg_info): Declare.
10212 * c-decl.c (build_arg_info): Define.
10213 (get_parm_info): Call it. Delete initialization code.
10214 * c-parser.c (c_parser_parms_declarator): Likewise.
10215 (c_parser_parms_list_declaractor): Likewise.
10216
10217 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10218
10219 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
10220 (struct c_arg_info): Change type of tags field.
10221 * c-decl.c (grokdeclarator): Update for changed type of tags field.
10222 (get_parm_info): Likewise.
10223 (store_parm_decls_newstyle): Likewise.
10224
10225 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
10226
10227 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
10228 (branch_island_list): Delete.
10229 (branch_islands): Declare.
10230 (add_compiler_branch_island): Adjust for branch_islands instead of
10231 branch_island_list.
10232 (macho_branch_islands): Likewise.
10233 (no_previous_def): Likewise.
10234 (get_prev_label): Likewise.
10235
10236 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10237
10238 PR boehm-gc/34544
10239 * gthr-posix.h (__gthread_start): Delete.
10240 (__gthread_active_init): Use pthread_default_stacksize_np instead of
10241 pthread_create to determine if hpux pthreads are active.
10242 * gthr-posix95.h (__gthread_start): Delete.
10243 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
10244
10245 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
10246
10247 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
10248 _WIN64 not expanded.
10249
10250 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
10251 H.J. Lu <hongjiu.lu@intel.com>
10252
10253 PR target/45213
10254 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
10255 to output 32bit SFmode immediate as 8 byte sign extended value.
10256
10257 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
10258
10259 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
10260 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
10261 (SUBWORD_BOOL_CAS): Likewise.
10262 (SUBWORD_SYNC_OP): Likewise.
10263 (SUBWORD_TEST_AND_SET): Likewise.
10264 (FETCH_AND_OP_WORD): Parenthesise INF_OP
10265 (SUBWORD_SYNC_OP): Likewise.
10266 (OP_AND_FETCH_WORD): Likewise.
10267
10268 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10269
10270 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
10271 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
10272 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
10273 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
10274 generic part.
10275 (cortex_a9_sched_adjust_cost): New function.
10276 (xscale_sched_adjust_cost): New function.
10277 * config/arm/arm-protos.h (struct tune_params): New field
10278 sched_adjust_cost.
10279 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
10280
10281 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
10282
10283 PR target/44942
10284 * config/sparc/sparc.c (function_arg_advance): Always take into account
10285 the padding, if any.
10286
10287 2010-08-06 Richard Guenther <rguenther@suse.de>
10288
10289 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
10290 (dump_lattice_value): Dump it.
10291 (get_default_value): Adjust.
10292 (get_constant_value): Likewise.
10293 (set_value_varying): Likewise.
10294 (set_lattice_value): Make sure to not go up the lattice
10295 with bitwise constant values.
10296 (get_value_for_expr): Handle ADDR_EXPRs.
10297 (value_to_double_int): New function.
10298 (get_value_from_alignment): Likewise.
10299 (do_dbg_cnt): Adjust.
10300 (ccp_lattice_meet): Handle partially constant values.
10301 (bit_value_unop_1): New function.
10302 (bit_value_binop_1): Likewise.
10303 (bit_value_unop): Likewise.
10304 (bit_value_binop): Likewise.
10305 (evaluate_stmt): Track partially constant values if
10306 flag_tree_bit_ccp is set.
10307 (ccp_fold_stmt): Dump if we folded a predicate.
10308 (ccp_visit_stmt): Adjust.
10309 * common.opt (ftree-bit-ccp): New flag.
10310 * doc/invoke.texi (ftree-bit-ccp): Document.
10311 * opts.c (decode_options): Enable bit-CCP at -O1.
10312
10313 2010-08-06 Alan Modra <amodra@gmail.com>
10314
10315 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
10316 and -mrelocatable-lib description.
10317
10318 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
10319
10320 From Martin Thuresson <martint@google.com>
10321 * postreload.c (reload_cse_simplify_operands): Use
10322 SET_REGNO_RAW instead of SET_REGNO.
10323 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
10324 SET_REGNO.
10325 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
10326 instead of SET_REGNO.
10327 * rtl.h (SET_REGNO_RAW): New macro.
10328
10329 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
10330
10331 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
10332 computations. Fix formatting issues.
10333 (num_sign_bit_copies1): Likewise.
10334 (canonicalize_condition): Likewise.
10335
10336 2010-08-05 Richard Henderson <rth@redhat.com>
10337
10338 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
10339 (floor_log2): Use clz_hwi.
10340 (exact_log2): Use ctz_hwi.
10341 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
10342 * builtins.c (fold_builtin_bitop): Use them.
10343 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10344 * combine.c (get_pos_from_mask): Use ctz_hwi.
10345 * double-int.c (double_int_ctz): Likewise.
10346 * explow.c (force_reg): Likewise.
10347 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
10348
10349 2010-08-05 Richard Henderson <rth@redhat.com>
10350
10351 PR target/45189
10352 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
10353 the alignment constant is properly sign-extended.
10354
10355 2010-08-05 Richard Guenther <rguenther@suse.de>
10356
10357 * expr.c (store_expr): Use emit_block_move only if both
10358 source and target are MEMs. Use store_bit_field if only
10359 the target is a MEM.
10360
10361 2010-08-05 Richard Henderson <rth@redhat.com>
10362
10363 PR debug/45188
10364 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
10365 (INCOMING_RETURN_ADDR_RTX): Likewise.
10366 (dwarf2out_do_frame): Remove conditional compilation.
10367 (dwarf2out_frame_init): Likewise.
10368
10369 2010-08-05 Nicolas Setton <setton@adacore.com>
10370
10371 * gcov.c (flag_display_progress): New static variable.
10372 (main): Display progress info on standard output if requested.
10373 (options): Add -d/--display-progress.
10374 (print_usage): Print them.
10375 (process_args): Handle them.
10376 * doc/gcov.texi: Document them.
10377
10378 2010-08-05 Martin Jambor <mjambor@suse.cz>
10379
10380 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
10381 (ipcp_insert_stage): Redirect only edges not flagged with
10382 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
10383 discovered constants.
10384
10385 2010-08-05 Martin Jambor <mjambor@suse.cz>
10386
10387 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
10388 (struct ipa_param_descriptor): New fields types and
10389 cannot_devirtualize.
10390 (ipa_param_cannot_devirtualize_p): New function.
10391 (ipa_param_types_vec_empty): Likewise.
10392 (ipa_make_edge_direct_to_target): Declare.
10393 * ipa-cp.c: Fixed first stage driver name in initial comment,
10394 described devirtualization there too.
10395 (ipcp_analyze_node): Call ipa_analyze_params_uses.
10396 (ipcp_print_all_lattices): Print devirtualization info.
10397 (ipa_set_param_cannot_devirtualize): New function.
10398 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
10399 lattice to BOTTOM.
10400 (ipcp_init_stage): Merged into...
10401 (ipcp_generate_summary): ...its caller.
10402 (ipcp_change_tops_to_bottom): Also process type lists.
10403 (ipcp_add_param_type): New function.
10404 (ipcp_copy_types): Likewise.
10405 (ipcp_propagate_types): Likewise.
10406 (ipcp_propagate_stage): Also propagate types.
10407 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
10408 Also return true if propagated types require it.
10409 (ipcp_update_callgraph): Dump redirection info.
10410 (ipcp_process_devirtualization_opportunities): New function.
10411 (ipcp_const_param_count): Include known type information.
10412 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
10413 on new node. Fixed formatting.
10414 * ipa-prop.c (make_edge_direct_to_target): Renamed to
10415 ipa_make_edge_direct_to_target and changed all callers. Made
10416 externally visible.
10417 (ipa_node_duplication_hook): Duplicate types vector.
10418 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
10419 redirect outgoing calls for which we can't get a decl from the
10420 statement. Check that we can get a decl from the call statement.
10421 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
10422 ipa_analyze_params_uses only when ipa-cp is disabled.
10423 * tree-inline.c (get_indirect_callee_fndecl): Removed.
10424 (expand_call_inline): Do not call get_indirect_callee_fndecl.
10425 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
10426 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
10427
10428 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
10429
10430 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
10431 temporary. Emit move from temporary to accum, so REG_EQUAL note will
10432 be attached to this insn in correct mode.
10433
10434 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
10435
10436 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
10437 using REGNO of base_reg directly.
10438
10439 2010-08-05 Jie Zhang <jie@codesourcery.com>
10440
10441 PR tree-optimization/45144
10442 * tree-sra.c (type_consists_of_records_p): Return false
10443 if the record contains bit-field.
10444
10445 2010-08-04 Richard Henderson <rth@redhat.com>
10446
10447 * config/i386/i386.c (struct ix86_frame): Remove padding and
10448 to_allocate members.
10449 (ix86_compute_frame_layout): Don't store them.
10450 (ix86_can_use_return_insn_p): Use a more direct and more obviously
10451 correct condition for the position of the stack pointer.
10452 (ix86_expand_prologue): Compute remaining stack allocation based
10453 on the ultimate stack pointer offset.
10454 (ix86_expand_epilogue): Use more obvious expressions testing for
10455 the stack pointer already pointing to the saved registers.
10456
10457 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
10458 duplication deconstructing the frame pointer. Simplify
10459 deallocation of the local stack frame.
10460
10461 * reg-notes.def (CFA_EXPRESSION): New.
10462 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
10463 (dwarf2out_frame_debug_cfa_expression): New.
10464 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
10465
10466 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
10467 * config/i386/i386.c (ix86_expand_prologue): Set it.
10468 (ix86_expand_epilogue): Clear it.
10469 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
10470 context, add REG_CFA_EXPRESSION notes.
10471
10472 * config/i386/i386.h (struct machine_frame_state): Rename from
10473 machine_cfa_state. Add members tracking SP and FP regardless
10474 of the current CFA register.
10475 (ix86_cfa_state): Remove.
10476 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
10477 and sse_reg_save_offset members.
10478 (ix86_compute_frame_layout): Set them.
10479 (gen_push): Increment sp_offset too.
10480 (choose_baseaddr_len, choose_baseaddr): New.
10481 (ix86_emit_save_reg_using_mov): New.
10482 (ix86_emit_save_regs_using_mov): Use it.
10483 (ix86_emit_save_sse_regs_using_mov): Likewise.
10484 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
10485 compare vs the saved red_zone_offset.
10486 (pro_epilogue_adjust_stack): Adjust sp_offset.
10487 (ix86_adjust_stack_and_probe): Likewise.
10488 (ix86_expand_prologue): Set up, use, and validate the new
10489 frame_state_info members. Use gen_frame_mem.
10490 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
10491 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
10492 new frame_state_info members.
10493 (ix86_emit_leave): Likewise.
10494 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
10495 out-of-range stack pointer offsets here.
10496 (ix86_emit_restore_sse_regs_using_mov): Likewise.
10497 (ix86_expand_epilogue): Use and validate the new frame_state_info
10498 members. Break up and simplify the logic selecting the
10499 restore_regs_via_mov code path. Ensure that there will be no
10500 out-of-range stack pointer offsets.
10501
10502 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
10503
10504 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
10505 argument name to reflect the expected tree; fix indentation.
10506 (ix86_asm_output_function_label): Output the entire 32-bit
10507 ms_hook here as bytes ...
10508 (ix86_expand_prologue): ... not here as insns. Attach the
10509 unwind info for the ms_hook to a blockage insn.
10510 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
10511 (ix86_ms_bitfield_layout_p): Fix indentation.
10512 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
10513
10514 * config/i386/i386.c (ix86_using_red_zone): New.
10515 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
10516 ix86_expand_prologue, ix86_force_to_memory): Use it.
10517
10518 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
10519 saving the int registers.
10520
10521 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
10522 and DWARF2_UNWIND_INFO conditional compilation.
10523
10524 2010-08-04 Richard Henderson <rth@redhat.com>
10525
10526 PR debug/45171
10527 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
10528 an is_naming_typedef_decl.
10529
10530 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
10531
10532 PR rtl-optimization/45162
10533 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
10534 * dce.c (word_dce_process_block): Likewise.
10535
10536 2010-08-04 Steve Ellcey <sje@cup.hp.com>
10537
10538 PR target/44583
10539 * config/ia64/constraints.md (Z): New.
10540 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
10541 (xfreg_or_signed_fp01_operand): New.
10542 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
10543 with fr_reg_or_signed_fp01_operand and constraint G with Z.
10544 (subsf3): Ditto.
10545 (*maddsf4): Ditto.
10546 (*msubsf4): Ditto.
10547 (adddf3): Ditto.
10548 (adddf3_trunc): Ditto.
10549 (subdf3): Ditto.
10550 (*subdf3_trunc): Ditto.
10551 (*madddf4): Ditto.
10552 (*madddf4_trunc): Ditto.
10553 (*msubdf4): Ditto.
10554 (*msubdf4_trunc): Ditto.
10555 (addxf3): Replace xfreg_or_fp01_operand with
10556 xfreg_or_signed_fp01_operand and constraint G with Z.
10557 (*addxf3_truncsf): Ditto.
10558 (*addxf3_truncdf): Ditto.
10559 (subxf3): Ditto.
10560 (*subxf3_truncsf): Ditto.
10561 (*subxf3_truncdf): Ditto.
10562 (*maddxf4): Ditto.
10563 (*maddxf4_truncsf): Ditto.
10564 (*maddxf4_truncdf): Ditto.
10565 (*msubxf4): Ditto.
10566 (*msubxf4_truncsf): Ditto.
10567 (*msubxf4_truncdf): Ditto.
10568
10569 2010-08-04 Richard Guenther <rguenther@suse.de>
10570
10571 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
10572 if either alias-set is zero.
10573
10574 2010-08-04 Richard Guenther <rguenther@suse.de>
10575
10576 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
10577 * tree-ssa-ccp.c: ... here.
10578 * tree-ssa-copy.c: ... and here.
10579 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
10580 value_range_t): Move ...
10581 * tree-vrp.c: ... here.
10582 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
10583 (substitute_and_fold): Adjust prototype.
10584 * tree-ssa-propagate.c (replace_uses_in): Adjust.
10585 (replace_phi_args_in): Likewise.
10586 (substitute_and_fold): Take callback to query lattice instead
10587 of pointer to lattice. Replace SSA name defs with lattice
10588 values first.
10589 * tree-ssa-ccp.c (ccp_finalize): Adjust.
10590 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
10591 (get_value): New function.
10592 (fini_copy_prop): Adjust.
10593 * tree-vrp.c (vrp_finalize): Adjust.
10594
10595 2010-08-04 Richard Guenther <rguenther@suse.de>
10596
10597 PR middle-end/45176
10598 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
10599 points-to set for original MEM_REF.
10600
10601 2010-08-04 Richard Guenther <rguenther@suse.de>
10602
10603 * tree-ssa-ccp.c (get_constant_value): New function.
10604 (get_rhs_assign_op_for_ccp): Remove.
10605 (valueize_op): New function.
10606 (ccp_fold): Use get_constant_value and valueize_op.
10607 (fold_const_aggregate_ref): Likewise.
10608 (ccp_fold_stmt): Likewise.
10609 (visit_assignment): Simplify.
10610
10611 2010-08-04 Richard Guenther <rguenther@suse.de>
10612
10613 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
10614 * double-int.h (double_int_ctz): Declare.
10615 * double-int.c (double_int_ctz): New function.
10616
10617 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
10618
10619 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
10620 Define.
10621 picochip_expand_movmemhi : Expand movmem pattern.
10622 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
10623 Declare.
10624 * config/picochip/picochip.md (movmemhi) : New pattern.
10625
10626 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
10627
10628 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
10629
10630 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
10631
10632 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
10633 NEG as operand of a MULT by merging it with the other operand.
10634 * combine.c (make_compound_operation): Use trunc_int_for_mode when
10635 generating a MULT with constant. Canonicalize PLUS and MINUS involving
10636 MULT.
10637 * config/arm/constraints.md (M): Examine only 32 bits of a
10638 HOST_WIDE_INT.
10639 * config/arm/predicates.md (power_of_two_operand): Likewise.
10640
10641 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10642
10643 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
10644 non-NOTE insns.
10645
10646 2010-08-03 Jan Hubicka <jh@suse.cz>
10647
10648 * ipa-split.c (struct split_point): Add split_part_set_retval.
10649 (find_retval): Forward declare.
10650 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
10651 (consider_split): Compute current->split_part_set_retval.
10652 (visit_bb): Do not look into return value.
10653 (split_function): Handle !split_part_set_retval
10654
10655 2010-08-03 Martin Jambor <mjambor@suse.cz>
10656
10657 * tree-sra.c (completely_scalarize_record): New parameter REF, create
10658 its own access->expr intead of using build_ref_for_offset.
10659
10660 2010-08-03 Joseph Myers <joseph@codesourcery.com>
10661
10662 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
10663 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
10664 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
10665 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
10666 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
10667 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
10668 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
10669 DEFAULT_SWITCH_TAKES_ARG.
10670 * config/rx/rx.opt (-patch=): Remove option.
10671 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
10672 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
10673 * doc/invoke.texi (RX Options): Remove -patch=.
10674 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
10675 (option_map): Remove --profile-blocks, --quiet and --silent.
10676
10677 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
10678
10679 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
10680 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
10681 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
10682 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
10683 Update calls to ix86_expand_compare and ix86_expand_branch.
10684 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
10685 ix86_expand_compare.
10686 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
10687 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
10688 Make static.
10689 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
10690 and ix86_compare_op1. Update calls to ix86_expand_compare.
10691 (ix86_expand_int_movcc): Ditto.
10692 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
10693 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
10694 (ix86_expand_setcc): Ditto.
10695 (ix86_expand_compare): Remove prototype.
10696 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
10697 ix86_compare_op0 and ix86_compare_op1. Update calls
10698 to ix86_expand_branch to directly pass operands[1] and operands[2].
10699 (cbranchxf4): Ditto.
10700 (cbranch<MODEF:mode>4): Ditto.
10701 (cbranchcc4): Ditto.
10702 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
10703 Update calls to ix86_expand_setcc to directly pass operands[2] and
10704 operands[3].
10705 (cstorexf4): Ditto.
10706 (cstore<MODEF:mode>4): Ditto.
10707 (cstorecc4): Ditto.
10708
10709 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
10710
10711 PR target/45063
10712 * caller-save.c (save_call_clobbered_regs): Remove regs from
10713 hard_regs_saved when they are set.
10714
10715 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
10716
10717 PR target/41089
10718 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
10719 as volatile.
10720
10721 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
10722
10723 * common.opt (ftree-loop-distribute-patterns): New.
10724 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
10725 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
10726 at -O3.
10727 * tree-data-ref.c (stores_zero_from_loop): New.
10728 * tree-data-ref.h (stores_zero_from_loop): Declared.
10729 * tree-loop-distribution.c (tree_loop_distribution): Call
10730 stores_zero_from_loop.
10731 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
10732
10733 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
10734
10735 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
10736 into account.
10737
10738 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
10739 * config/arm/arm.c (thumb1_code): New variable.
10740 (arm_override_options): Set it.
10741 (thumb1_final_prescan_insn): Keep track of condition code status.
10742 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
10743 jumps that depend on them.
10744 * config/arm/arm.h (thumb1_code): Declare variable.
10745 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
10746 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
10747 thumb1_cc_mode.
10748 (CC_STATUS_INIT): New macro.
10749 * config/arm/constraints.md (Pd): New constraint.
10750 * config/arm/predicates.md (noov_comparison_operator): New predicate.
10751 * config/arm/arm.md (is_thumb1): New define_attr.
10752 (conds): Set default to "clob" when generating Thumb1 code.
10753 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
10754 code are set. Use two-operand assembly syntax.
10755 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
10756 pattern.
10757 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
10758 codes are set. Use two-operand assembly syntax.
10759 (zero_extendhisi splitter): Remove constraints.
10760 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
10761 thumb1_movsf_insn): Set conds attribute as appropriate.
10762 (cbranchsi4_insn): Use condition code status from struct
10763 machine_function to determine whether the comparison can be eliminated.
10764 Discourage the alternative using high registers.
10765 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
10766 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
10767 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
10768 subsi3_cbranch): Delete.
10769 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
10770 one subtract and one cbranch insn.
10771
10772 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
10773 thumb2_movdf_soft_insn): Delete patterns.
10774 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
10775 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
10776 (pool_range, neg_pool_range): Use them to define defaults.
10777 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
10778 and allow for TARGET_32BIT.
10779
10780 PR target/40457
10781 * config/arm/arm.h (arm_regs_in_sequence): Declare.
10782 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
10783 load_multiple_sequence, store_multiple_sequence): Delete
10784 declarations.
10785 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
10786 declarations.
10787 * config/arm/ldmstm.md: New file.
10788 * config/arm/arm.c (arm_regs_in_sequence): New array.
10789 (load_multiple_sequence): Now static. New args SAVED_ORDER,
10790 CHECK_REGS. All callers changed.
10791 If SAVED_ORDER is nonnull, copy the computed order into it.
10792 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
10793 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
10794 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
10795 If SAVED_ORDER is nonnull, copy the computed order into it.
10796 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
10797 like REGS. Handle Thumb mode.
10798 (arm_gen_load_multiple_1): New function, broken out of
10799 arm_gen_load_multiple.
10800 (arm_gen_store_multiple_1): New function, broken out of
10801 arm_gen_store_multiple.
10802 (arm_gen_multiple_op): New function, with code from
10803 arm_gen_load_multiple and arm_gen_store_multiple moved here.
10804 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
10805 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
10806 changed.
10807 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
10808 * config/arm/predicates.md (commutative_binary_operator): New.
10809 (load_multiple_operation, store_multiple_operation): Handle more
10810 variants of these patterns with different starting offsets. Handle
10811 Thumb-1.
10812 * config/arm/arm.md: Include "ldmstm.md".
10813 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
10814 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
10815 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
10816 peepholes): Delete.
10817 * config/arm/ldmstm.md: New file.
10818 * config/arm/arm-ldmstm.ml: New file.
10819
10820 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
10821 if statement which adds extra costs to frame-related expressions.
10822
10823 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10824
10825 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
10826
10827 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
10828
10829 PR target/45142
10830 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
10831 alternative 2.
10832 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
10833 split V4SI operands.
10834
10835 2010-08-01 Anatoly Sokolov <aesok@post.ru>
10836
10837 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10838 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
10839 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
10840 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
10841
10842 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
10843
10844 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
10845 LOCAL_INCLUDE_DIR.
10846
10847 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
10848
10849 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
10850 used in the call to optab_for_tree_code. Fix the second
10851 is_widening_mult_p call. Check that both unwidened operands
10852 have the same sign.
10853
10854 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
10855
10856 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
10857
10858 2010-07-31 Anatoly Sokolov <aesok@post.ru>
10859
10860 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
10861
10862 2010-07-30 DJ Delorie <dj@redhat.com>
10863
10864 * config/rx/predicates.md (rx_constshift_operand): New.
10865 * config/rx/rx.md (zs_cond): New.
10866 (cbranchsi4): Remove mode.
10867 (*cbranchsi4_<code>): Likewise.
10868 (*tstbranchsi4_<code>): New.
10869 (*tstbranchsi4r_<code>): New.
10870 (*tstbranchsi4m_eq): New.
10871 (*tstbranchsi4m_ne): New.
10872 (cbranchsf4): Remove mode.
10873 (*cbranchsf4_<code>): Likewise.
10874
10875 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
10876
10877 * rtlanal.c (simplify_subreg_regno): Don't treat
10878 HARD_FRAME_POINTER_REGNUM specially.
10879
10880 2010-07-30 Joseph Myers <joseph@codesourcery.com>
10881
10882 * common.opt (-G): Don't define option here.
10883 * config/g.opt: New.
10884 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
10885 rs6000/powerpc and score targets.
10886 * opts.c (common_handle_option): Don't handle -G here.
10887 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
10888 * config/frv/frv.c (frv_handle_option): Handle -G.
10889 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
10890 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
10891 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
10892 * config/mips/mips.c (mips_handle_option): Handle -G.
10893 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
10894 * config/score/score.c (score_handle_option): Handle -G.
10895
10896 2010-07-30 Anatoly Sokolov <aesok@post.ru>
10897
10898 * config/mmix/mmix.c: Include basic-block.h.
10899
10900 2010-07-30 Jakub Jelinek <jakub@redhat.com>
10901
10902 PR debug/45055
10903 PR rtl-optimization/45137
10904 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
10905 prototypes.
10906 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
10907 New functions.
10908 * combine.c (next_nonnote_nondebug_insn): Removed.
10909 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
10910 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
10911 * sched-deps.c (sched_analyze_insn): Likewise.
10912 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
10913 * rtlanal.c (canonicalize_condition): Likewise.
10914 * postreload.c (reload_combine_recognize_pattern): Likewise.
10915 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
10916
10917 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
10918
10919 * config/i386/i386.md (int_cond): Remove code iterator.
10920 (fp_cond): Ditto.
10921 (cbranch<mode>4): Use ordered_comparison_operator predicate
10922 for operator0.
10923 (cstore<mode>4): Ditto for operator1.
10924 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
10925 (add<mode>cc): ditto.
10926
10927 2010-07-30 Richard Guenther <rguenther@suse.de>
10928
10929 PR middle-end/45141
10930 * expr.c (expand_expr_real_1): Check for not handled base address.
10931
10932 2010-07-30 Richard Guenther <rguenther@suse.de>
10933
10934 * ipa-prop.c (ipa_modify_formal_parameters): Use
10935 build_distinct_type_copy.
10936
10937 2010-07-30 Anthony Green <green@moxielogic.com>
10938
10939 * config/moxie/rtems.h: New file.
10940 * config.gcc: Add moxie-rtems support.
10941
10942 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
10943
10944 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
10945 df flags as in run_fast_df_dce.
10946
10947 2010-07-29 Jakub Jelinek <jakub@redhat.com>
10948
10949 Revert:
10950 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
10951
10952 * rtl.def (NOTE): Swap operands 4 and 5.
10953 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
10954 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
10955 Adjust accordingly.
10956 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
10957
10958 2010-07-29 Jakub Jelinek <jakub@redhat.com>
10959
10960 PR debug/45110
10961 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
10962 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
10963 (gen_subprogram_die): Likewise. Remove it when removing declaration's
10964 formal parameters.
10965 (gen_decl_die): Change return type to dw_die_ref, return what
10966 gen_formal_parameter_die returned.
10967
10968 2010-07-29 Martin Jambor <mjambor@suse.cz>
10969
10970 * dbgcnt.def (eipa_sra): New counter.
10971 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
10972
10973 2010-07-29 Xinliang David Li <davidxl@google.com>
10974
10975 PR bootstrap/45119
10976 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
10977 in revision 162652.
10978
10979 2010-07-29 Richard Guenther <rguenther@suse.de>
10980
10981 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
10982 (TV_TREE_STORE_CCP): Likewise.
10983 (TV_TREE_REDPHI): Likewise.
10984
10985 2010-07-29 Richard Guenther <rguenther@suse.de>
10986
10987 * double-int.h (double_int_and_not): New function.
10988 * combine.c (try_combine): Use it.
10989 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
10990
10991 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
10992
10993 PR rtl-optimization/42575
10994 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
10995 Argument AU removed. All callers changed. Ignore artificial refs.
10996 Use return value of df_word_lr_simulate_defs to decide whether an insn
10997 is necessary.
10998 (fast_dce): Rename arg to WORD_LEVEL.
10999 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
11000 static.
11001 (pass_fast_rtl_byte_dce): Delete.
11002 * dce.h (run_word_dce): Declare.
11003 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
11004 All callers changed. Simplify code to only deal with two-word regs.
11005 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
11006 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
11007 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
11008 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
11009 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
11010 (df_word_lr_mark_ref): Declare.
11011 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
11012 df_word_lr_simulate_uses): Declare or rename from byte variants.
11013 (df_byte_lr_simulate_artificial_refs_at_top,
11014 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11015 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
11016 declarations.
11017 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
11018 (enum df_mm): Delete.
11019 * df-byte-scan.c: Delete file.
11020 * df-problems.c (df_word_lr_problem_data): Renamed from
11021 df_byte_lr_problem_data, all members deleted except for
11022 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
11023 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
11024 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
11025 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
11026 df_byte_lr_confluence_0): Delete functions.
11027 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
11028 callers changed.
11029 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
11030 Don't initialize members that were deleted, don't try to discover data
11031 about registers. Ignore hard regs.
11032 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
11033 (df_word_lr_mark_ref): New function.
11034 (df_word_lr_bb_local_compute): Renamed from
11035 df_byte_bb_lr_local_compute; all callers changed. Use
11036 df_word_lr_mark_ref. Assert that artificial refs don't include
11037 pseudos. Ignore hard registers.
11038 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
11039 Assert that exit block uses don't contain pseudos.
11040 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
11041 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
11042 callers changed. Ignore hard regs.
11043 (df_word_lr_transfer_function): Renamed from
11044 df_byte_lr_transfer_function; all callers changed.
11045 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
11046 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
11047 changed.
11048 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
11049 callers changed.
11050 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
11051 confluence operator 0 set to NULL.
11052 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
11053 callers changed.
11054 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
11055 Return bool, true if bitmap changed or insn otherwise necessary.
11056 All callers changed. Simplify using df_word_lr_mark_ref.
11057 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
11058 all callers changed. Simplify using df_word_lr_mark_ref.
11059 * lower-subreg.c: Include "dce.h"
11060 (decompose_multiword_subregs): Call run_word_dce if df available.
11061 * Makefile.in (lower-subreg.o): Adjust dependencies.
11062 (df-byte-scan.o): Delete.
11063 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
11064
11065 2010-07-29 Richard Guenther <rguenther@suse.de>
11066
11067 * tree.c (build_vector): Assert that the vector constant
11068 has enough elements.
11069 (build_vector_from_ctor): Pad with trailing zeros.
11070
11071 2010-07-29 Richard Guenther <rguenther@suse.de>
11072
11073 PR tree-optimization/45120
11074 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11075 Handle offset in DEREFs properly.
11076 (get_constraint_for_1): Handle MEM_REF offset properly.
11077
11078 2010-07-29 Richard Guenther <rguenther@suse.de>
11079
11080 PR middle-end/45034
11081 * convert.c (convert_to_integer): Always use an unsigned
11082 type for narrowed negate and bitwise not.
11083
11084 2010-07-29 Ira Rosen <irar@il.ibm.com>
11085
11086 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
11087 to outer loop when creating reduction epilogue for double reduction,
11088 and switch back to the inner loop when updating the phi nodes.
11089 Update uses of outer loop exit phi nodes in double reduction (instead
11090 of uses of reduction).
11091
11092 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
11093
11094 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
11095 popcount on power7 and parity on power6 systems.
11096 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
11097 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
11098 instructions.
11099
11100 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
11101 (UNSPEC_PARITY): Ditto.
11102 (SFDF): New iterator for SF/DF.
11103 (rreg2): New mode attribute for floating register constraint.
11104 (TARGET_FLOAT): New mode attribute for whether single/double float
11105 is supported.
11106 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
11107 pattern.
11108 (parity<mode>2_cmpb): New insn for parity on power6 and newer
11109 machines.
11110 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
11111 pattern. Add support for fcpsgn instruction added in power6.
11112 (copysignsf3): Delete.
11113 (copysigndf3): Delete.
11114 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
11115 instead of if_then_else in RTL to avoid problems with -0.
11116
11117 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
11118 of if_then_else to mirror scalar code.
11119 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
11120 rs6000.md.
11121
11122 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
11123 instead of if_then_else.
11124
11125 2010-07-28 Xinliang David Li <davidxl@google.com>
11126
11127 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
11128 (dump_cand): Dump var_before/after.
11129 (htab_inv_expr_eq): New function.
11130 (htab_inv_expr_hash): New function.
11131 (tree_ssa_iv_optimize_init): Support pseudo invariants.
11132 (add_candidate_1): consider base type precision.
11133 (set_use_iv_cost): New parameter.
11134 (adjust_setup_cost): Use profile information.
11135 (get_address_cost): Do not hard code width in computing address
11136 offset limits.
11137 (compare_aff_trees): New function.
11138 (get_loop_invariant_expr_id): New function.
11139 (get_computation_cost_at): New parameter and use profile information.
11140 (get_computation_cost): New parameter.
11141 (determine_use_iv_cost_generic): Pass new parameter.
11142 (determine_use_iv_cost_address): Ditto.
11143 (determine_use_iv_cost_condition): Ditto.
11144 (autoinc_possible_for_pair): Ditto.
11145 (determine_use_iv_costs): More dumps.
11146 (iv_ca_get_num_inv_exprs): New function.
11147 (iv_ca_recount_cost): Consider loop invariants in register pressure
11148 cost.
11149 (iv_ca_add_use): New parameter.
11150 (iv_ca_dump): Better dumping.
11151 (iv_ca_extend): New parameter.
11152 (try_add_cand_for): Attempt to get better partial solution.
11153 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
11154 (create_new-ivs): More dumps.
11155 (rewrite_use_compare): Ditto.
11156 (free_loop_data): More cleanup.
11157 (treee_ssa_iv_optimize_finalize): Ditto.
11158
11159 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
11160
11161 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
11162 * config/i386/i386.c (ix86_profile_before_prologue): New.
11163 (override_options): Add special handling for -mfentry.
11164 (ix86_function_regparm): Likewise.
11165 (ix86_function_sseregparm): Likewise.
11166 (ix86_frame_pointer_required): Likewise.
11167 (ix86_expand_prologue): Check for ms_hook_prologue.
11168 (x86_function_profiler): Adjust mcount output.
11169 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
11170 * config/i386/i386.opt (mfentry): New.
11171 * doc/invoke.texi (mfentry): Add documentation.
11172 * doc/tm.texi: Regenerated..
11173 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
11174 * final.c (final_start_function): Replace macro
11175 PROFILE_BEFORE_PROLOGUE by target hook.
11176 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11177 * target.def (profile_before_prologue): New hook.
11178 * targhooks.c (default_profile_before_prologue): New.
11179 * targhooks.h (default_profile_before_prologue): New.
11180
11181 2010-07-28 Jakub Jelinek <jakub@redhat.com>
11182
11183 PR debug/45105
11184 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
11185
11186 PR debug/45103
11187 * dwarf2out.c (dwarf2out_var_location): Always consider
11188 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
11189
11190 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11191
11192 PR rtl-optimization/45107
11193 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
11194
11195 2010-07-28 Richard Guenther <rguenther@suse.de>
11196
11197 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
11198 (set_lattice_value): Do not query an old default value.
11199 (get_value_for_expr): New function. Properly canonicalize
11200 float values.
11201 (ccp_visit_phi_node): Use it.
11202
11203 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
11204
11205 * config/arm/arm.c (arm_pcs_default): Remove static.
11206 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
11207 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
11208 (arm_pcs_default): Declare.
11209
11210 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
11211
11212 * config/rs6000/rs6000.c (rs6000_override_options):
11213 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
11214 ... to darwin_rs6000_override_options.
11215 (rs6000_return_in_memory): Update preceding comment for darwin
11216 64 bit ABI. Use TARGET_MACHO inline.
11217 (rs6000_darwin64_struct_check_p): New.
11218 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
11219 (function_arg): Likewise.
11220 (rs6000_arg_partial_bytes): Likewise.
11221 (rs6000_function_value): Likewise.
11222
11223 2010-07-28 Andi Kleen <ak@linux.intel.com>
11224
11225 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
11226
11227 2010-07-28 Richard Guenther <rguenther@suse.de>
11228
11229 PR middle-end/44903
11230 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
11231 targets try harder to not generate unaligned accesses.
11232
11233 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
11234
11235 PR rtl-optimization/45101
11236 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
11237 for gcse-las.
11238
11239 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11240
11241 PR tree-optimization/44885
11242 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
11243 with non-aliased component.
11244
11245 2010-07-28 Joseph Myers <joseph@codesourcery.com>
11246
11247 * config/darwin-driver.c (SWITCH_TAKES_ARG,
11248 WORD_SWITCH_TAKES_ARG): Remove.
11249 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
11250 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
11251 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
11252 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
11253 definitions from gcc.c.
11254 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
11255 defaults.h.
11256 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
11257 Move to defaults.h.
11258 * opts-common.c: Include tm.h.
11259 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
11260 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
11261 Handle more than one argument. Set canonical_option_num_elements.
11262 (decode_cmdline_options_to_array): Set
11263 canonical_option_num_elements and trailing elements of
11264 canonical_option.
11265 * opts.h (struct cl_decoded_option): Allow four elements in
11266 canonical_option. Add field canonical_option_num_elements.
11267 * Makefile.in (opts-common.o): Update dependencies.
11268
11269 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
11270
11271 PR middle-end/44790
11272 PR middle-end/44993
11273 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
11274 sure the base has address_mode before adding the offset.
11275
11276 2010-07-27 Xinliang David Li <davidxl@google.com>
11277
11278 * tree-flow.h (create_mem_ref): Add one new parameter.
11279 * tree-ssa-address.c (create_mem_ref): New parameter.
11280 (addr_to_parts): Ditto.
11281 (move_variant_to_index): New function.
11282 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
11283
11284 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11285
11286 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
11287 4 and 5.
11288 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
11289 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
11290 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
11291 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
11292 CODE_LABELs and NOTEs.
11293 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
11294 * combine.c (try_combine): Likewise.
11295 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11296 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
11297
11298 2010-07-27 Joseph Myers <joseph@codesourcery.com>
11299
11300 * coretypes.h (struct cl_option_handlers): Declare.
11301 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
11302 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
11303 * langhooks-def.h (lhd_handle_option): Declare.
11304 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
11305 * langhooks.c (lhd_handle_option): New.
11306 * langhooks.h (struct lang_hooks): Update prototype and return
11307 value type of handle_option hook.
11308 * optc-gen.awk: Generate target_flags_explicit definition for the
11309 driver.
11310 * opts-common.c: Include diagnostic.h.
11311 (handle_option): Move from opts.c. Update prototype and return
11312 value type. Use handlers structure.
11313 (read_cmdline_option): Move from opts.c. Update prototype. Use
11314 handlers structure.
11315 (set_option): Move from opts.c.
11316 * opts.c (common_handle_option): Update prototype and return value
11317 type. Update calls to handle_option and enable_warning_as_error.
11318 (unknown_option_callback, post_handling_callback,
11319 lang_handle_option, target_handle_option): New.
11320 (handle_option, read_cmdline_option): Move to opts-common.c.
11321 (read_cmdline_options): Update prototype. Update call to
11322 read_cmdline_option.
11323 (decode_options): Initialize and use handlers structure.
11324 (set_option): Move to opts-common.c.
11325 (enable_warning_as_error): Update prototype. Update call to
11326 handle_option.
11327 * opts.h (struct cl_option_handler_func, struct
11328 cl_option_handlers): New.
11329 (handle_option, enable_warning_as_error): Update prototypes.
11330 (read_cmdline_option): Declare.
11331 * Makefile.in (opts-common.o): Update dependencies.
11332
11333 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11334
11335 * config/arm/arm.c (params.h): Include.
11336 (arm_override_options): Tune gcse-unrestricted-cost.
11337 * config/arm/t-arm (arm.o): Define dependencies.
11338
11339 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11340
11341 PR target/42495
11342 PR middle-end/42574
11343 * basic-block.h (get_dominated_to_depth): Declare.
11344 * dominance.c (get_dominated_to_depth): New function, use
11345 get_all_dominated_blocks as a base.
11346 (get_all_dominated_blocks): Use get_dominated_to_depth.
11347
11348 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
11349 (hoist_exprs): Remove.
11350 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
11351 (compute_code_hoist_vbeinout): Add debug print outs.
11352 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
11353
11354 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
11355 quadratic behavior.
11356 * params.h (MAX_HOIST_DEPTH): New macro.
11357 * doc/invoke.texi (max-hoist-depth): Document.
11358
11359 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11360
11361 PR rtl-optimization/40956
11362 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
11363 constants.
11364
11365 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11366
11367 PR target/42495
11368 PR middle-end/42574
11369 * config/arm/arm.c (legitimize_pic_address): Use
11370 gen_calculate_pic_address pattern to emit calculation of PIC address.
11371 (will_be_in_index_register): New function.
11372 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
11373 (thumb1_legitimate_address_p): Use it provided !strict_p.
11374 * config/arm/arm.md (calculate_pic_address): New expand and split.
11375
11376 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11377
11378 PR target/42495
11379 PR middle-end/42574
11380 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
11381 * config/arm/arm.md (define_split "J", define_split "K"): Make
11382 IRA/reload friendly.
11383
11384 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11385
11386 * gcse.c (insert_insn_end_basic_block): Update signature, remove
11387 unused checks.
11388 (pre_edge_insert, hoist_code): Update.
11389
11390 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11391
11392 PR target/42495
11393 PR middle-end/42574
11394 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
11395
11396 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11397
11398 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
11399
11400 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11401
11402 PR rtl-optimization/40956
11403 PR target/42495
11404 PR middle-end/42574
11405 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
11406 for hoisting.
11407 (hoist_code): Count occurences in current block too.
11408
11409 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11410
11411 * gcse.c (struct expr:max_distance): New field.
11412 (doing_code_hoisting_p): New static variable.
11413 (want_to_gcse_p): Change signature. Allow constrained hoisting of
11414 simple expressions, don't change behavior for PRE. Set max_distance.
11415 (insert_expr_in_table): Set new max_distance field.
11416 (hash_scan_set): Update.
11417 (hoist_expr_reaches_here_p): Stop search after max_distance
11418 instructions.
11419 (find_occr_in_bb): New static function. Use it in ...
11420 (hoist_code): Calculate sizes of basic block before any changes are
11421 done. Pass max_distance to hoist_expr_reaches_here_p.
11422 (one_code_hoisting_pass): Set doing_code_hoisting_p.
11423
11424 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
11425 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
11426 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
11427 macros.
11428 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
11429 Document.
11430
11431 2010-07-27 Jeff Law <law@redhat.com>
11432 Maxim Kuvyrkov <maxim@codesourcery.com>
11433
11434 * gcse.c (compute_transpout, transpout): Remove, move logic
11435 to prune_expressions.
11436 (compute_pre_data): Move pruning of trapping expressions ...
11437 (prune_expressions): ... here. New static function.
11438 (compute_code_hoist_data): Use it.
11439 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
11440
11441 2010-07-27 Xinliang David Li <davidxl@google.com>
11442
11443 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
11444 (rewrite_use_address): Adjust iv update position when needed.
11445
11446 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
11447
11448 * dbgcnt.def (hoist_insn): New debug counter.
11449 * gcse.c (hoist_code): Use it.
11450
11451 2010-07-27 Xinliang David Li <davidxl@google.com>
11452
11453 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
11454 (niter_for_single_dom_exit): Passes additional parameter.
11455 (iv_period): Fix comments.
11456 (may_eliminate_iv): Handles multiple exit loops properly.
11457 (free_tree_niter_desc): New function.
11458 (free_loop_data): Frees up loop iteration descriptors.
11459
11460 2010-07-27 Jakub Jelinek <jakub@redhat.com>
11461
11462 PR target/44542
11463 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
11464 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
11465 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
11466 (expand_one_var): Don't consider DECL_ALIGN for variables for
11467 which expand_one_stack_var_at has been already called.
11468
11469 PR testsuite/44701
11470 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
11471 constraints on IA-64.
11472
11473 2010-07-27 Jie Zhang <jie@codesourcery.com>
11474
11475 PR target/44290
11476 Revert:
11477 2010-07-23 Jie Zhang <jie@codesourcery.com>
11478
11479 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
11480 false if ! tree_versionable_function_p.
11481
11482 2010-07-27 Jakub Jelinek <jakub@redhat.com>
11483
11484 * dwarf2out.c (add_data_member_location_attribute): Use
11485 add_AT_unsigned instead of add_AT_int if offset is non-negative.
11486
11487 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11488
11489 * postreload.c (try_replace_in_use): New static function.
11490 (reload_combine_recognize_const_pattern): Use it here. Allow
11491 substituting into a final add insn, and substituting into a memory
11492 reference in an insn that sets the reg.
11493
11494 2010-07-27 Joseph Myers <joseph@codesourcery.com>
11495
11496 * common.opt (o): Add MissingArgError.
11497 * doc/options.texi (MissingArgError): Document.
11498 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
11499 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
11500 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
11501 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
11502 * langhooks.h (struct lang_hooks): Remove missing_argument.
11503 * optc-gen.awk: Handle MissingArgError and output new structure
11504 field initializers.
11505 * opts.c (read_cmdline_option): Use missing_argument_error field
11506 instead of missing_argument langhook.
11507 * opts.h (struct cl_option): Add missing_argument_error field.
11508 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
11509
11510 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
11511
11512 PR target/29090
11513 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
11514 Darwin64 ABI, for zero-sized objects.
11515
11516 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
11517
11518 PR target/35491
11519 PR target/29090
11520
11521 Merge from Apple local 4.2.1.
11522 2005-05-11 Stan Shebs <shebs@apple.com>
11523 Fix 64-bit varargs for Darwin (Radar 4028089).
11524 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
11525 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11526 Add argument, add case for 8-byte register half-filled with a float.
11527 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
11528 single-precision floats specially.
11529
11530 2010-07-27 Ira Rosen <irar@il.ibm.com>
11531
11532 PR tree-optimization/44152
11533 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
11534 complex numbers for further check.
11535 (vect_supported_load_permutation_p): Check nodes with
11536 complex numbers.
11537
11538 2010-07-27 Joseph Myers <joseph@codesourcery.com>
11539
11540 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
11541 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
11542 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
11543 (LANG_HOOKS_INITIALIZER): Add new hooks.
11544 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
11545 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
11546 and complain_wrong_lang_p. Update init_options prototype.
11547 * c-objc-common.c (c_initialize_diagnostics): First call
11548 c_common_initialize_diagnostics.
11549 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
11550 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
11551 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
11552 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
11553 (hook_uint_void_0): New.
11554 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
11555 (hook_uint_void_0): New.
11556 * opts-common.c (decode_cmdline_option,
11557 decode_cmdline_options_to_array): Also fill in canonical_option field.
11558 * opts.c (complain_wrong_lang): Use langhook to determine whether
11559 to complain instead of special-casing LTO.
11560 (decode_options): Separate lang_mask determination with
11561 option_lang_mask hook from call of init_options hook.
11562 * opts.h (struct cl_decoded_option): Add canonical_option.
11563
11564 2010-07-27 Jakub Jelinek <jakub@redhat.com>
11565
11566 PR tree-optimization/45083
11567 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
11568
11569 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
11570
11571 * postreload.c (reload_combine_recognize_const_pattern): Move test
11572 for limiting the insn movement to the right scope.
11573
11574 PR rtl-optimization/45051
11575 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
11576 than reg_mentioned_p.
11577
11578 2010-07-26 Richard Henderson <rth@redhat.com>
11579
11580 PR target/44132
11581 * tree-emutls.c: New file.
11582 * Makefile.in (OBJS-common): Add it.
11583 * tree-pass.h (pass_ipa_lower_emutls): Declare.
11584 * passes.c (init_optimization_passes): Add it.
11585
11586 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
11587 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
11588 * expr.c (emutls_var_address): Delete.
11589 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
11590 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
11591 (emutls_finish): Delete.
11592 * toplev.c (compile_file): Don't call it.
11593 * tree.h (emutls_decl): Delete.
11594 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
11595 (emutls_finish, emutls_finalize_control_var): Delete.
11596 (emutls_object_type): Move to tree-emutls.c.
11597 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
11598 default_emutls_var_fields, get_emutls_object_type,
11599 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
11600 default_emutls_var_init): Likewise.
11601 (get_variable_section): Don't special case emutls.
11602 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
11603 default_elf_select_section, default_unique_section,
11604 default_encode_section_info): Likewise.
11605 * varpool.c (decide_is_variable_needed): Likewise.
11606 * gimple-iterator.c (update_call_edge_frequencies): New
11607 (gsi_insert_on_edge_immediate): Use it.
11608 (gsi_insert_seq_on_edge_immediate): Likewise.
11609 (gsi_commit_one_edge_insert): Likewise.
11610
11611 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
11612 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
11613 (x86_64_elf_unique_section): Likewise.
11614
11615 2010-07-26 Jan Hubicka <jh@suse.cz>
11616
11617 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
11618 GTY((skip)).
11619
11620 2010-07-26 Anatoly Sokolov <aesok@post.ru>
11621
11622 * target.def (output_source_filename): New hook.
11623 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
11624 * doc/tm.texi: Regenerate.
11625 * toplev.c (output_file_directive) Remove function.
11626 * toplev.h (output_file_directive) Remove.
11627 * output.h (default_asm_output_source_filename,
11628 output_file_directive): Declare.
11629 * varasm.h (default_asm_output_source_filename,
11630 output_file_directive): New functions.
11631
11632 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11633 * config/mips/mips-protos.h (mips_output_filename): Remove.
11634 * config/mips/mips.c (mips_output_filename): Make Static.
11635 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
11636
11637 2010-07-26 Richard Guenther <rguenther@suse.de>
11638
11639 PR tree-optimization/43784
11640 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
11641 if the destination is used by the call.
11642
11643 2010-07-26 Richard Guenther <rguenther@suse.de>
11644
11645 PR middle-end/45073
11646 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
11647 SSA updating on being in SSA form.
11648
11649 2010-07-26 Richard Guenther <rguenther@suse.de>
11650
11651 PR middle-end/45056
11652 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
11653
11654 2010-07-26 Richard Guenther <rguenther@suse.de>
11655
11656 PR tree-optimization/45071
11657 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
11658 adjust op->opcode.
11659
11660 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
11661
11662 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
11663 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
11664 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
11665 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
11666 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
11667 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
11668 save_r31, return_r31, save_interrupt, return_interrupt,
11669 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
11670 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
11671 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
11672 new ABI requirements.
11673 (save_r6_r9, L_callt_save_r6_r9): Remove.
11674 * config/v850/predicates.md (even_reg_operand, disp23_operand,
11675 const_float_1_operand const_float_0_operand): New Predicates.
11676 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
11677 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
11678 * config/v850/t-v850: Update multilibs for new target variants.
11679 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
11680 * config/v850/t-v850e: Likewise.
11681 * config/v850/v850.c (v850_issue_rate): New.
11682 (v850_strict_argument_naming): New.
11683 (function_arg): Modify to generate a different ABI.
11684 (print_operand): Update case 'z' to support float modes.
11685 (output_move_single): Modify to generate appropriate and better
11686 assembly.
11687 (v850_float_z_comparison_operator, v850_select_cc_mode,
11688 v850_float_nz_comparison_operator, v850_gen_float_compare,
11689 v850_gen_compare): New functions to support comparison of float values.
11690 (ep_memory_offset): Add support for V850E2 targets.
11691 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
11692 (INTERRUPT_REGPARM_NUM): Remove.
11693 (compute_register_save_size): Add extra case to save/restore long call.
11694 (use_prolog_function): New function to support prologue.
11695 (expand_prologue): Add support for V850E2 targets and modified
11696 as per the current ABI requirements.
11697 (expand_epilogue): Likewise.
11698 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
11699 (construct_save_jarl): Likewise.
11700 (construct_dispose_instruction): Update as per the current ABI
11701 requirements.
11702 (construct_prepare_instruction): Likewise.
11703 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
11704 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
11705 (CPP_SPEC): Updated to support v850e2 targets.
11706 (STRICT_ALIGNMENT): Modified.
11707 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
11708 (FIXED_REGISTERS): Likewise.
11709 (CALL_USED_REGISTERS): Likewise.
11710 (CONDITIONAL_REGISTER_USAGE): Updated.
11711 (HARD_REGNO_MODE_OK): Updated.
11712 (reg_class): Updated to add even registers.
11713 (REG_CLASS_NAMES): Likewise.
11714 (REG_CLASS_CONTENTS): Likewise.
11715 (REGNO_REG_CLASS): Updated for CC registers.
11716 (REG_CLASS_FROM_LETTER): Added support for even registers.
11717 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
11718 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
11719 ARG_POINTER_REGNUM): Updated.
11720 (FUNCTION_ARG_ADVANCE): Define.
11721 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
11722 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
11723 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
11724 (GO_IF_LEGITIMATE_ADDRESS): Updated.
11725 (SELECT_CC_MODE): Define.
11726 (REGISTER_NAMES): Updated to add psw and fcc registers.
11727 (ADDITIONAL_REGISTER_NAMES): Updated.
11728 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
11729 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
11730 * config/v850/v850.md (define_constants): Define new constants.
11731 (type): Update store,bit1,macc,div,fpu and single attributes.
11732 (cpu): New attribute.
11733 (cc): Add set_z attribute.
11734 (unsign23byte_load, sign23byte_load, unsign23hword_load,
11735 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
11736 23word_store): New instructions for 23-bit displacement load and store.
11737 (movqi_internal, movhi_internal): Update the attributes.
11738 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
11739 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
11740 the attributes.
11741 (v850_tst1): Modified using CC_REGNUM.
11742 (tstsi): Remove.
11743 (cmpsi): Modified as define_expand from define_insn.
11744 (cmpsi_insn, cmpsf, cmpdf): New instructions.
11745 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
11746 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
11747 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
11748 one_cmplsi2): Clobber the CC_REGNUM register.
11749 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
11750 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
11751 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
11752 (setf_insn, set_z_insn, set_nz_insn): New instructions for
11753 v850e2v3 target.
11754 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
11755 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
11756 targets.
11757 (sasf_1, sasf_2): Remove.
11758 (sasf): New instruction.
11759 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
11760 targets. CC_REGNUM register is clobbered and attributes are
11761 updated.
11762 (branch_z_normal, branch_z_invert, branch_nz_normal,
11763 branch_nz_invert): New branch related instructions.
11764 (jump): Updated the attributes.
11765 (switch): Update to support new targets. CC_REGNUM register is
11766 clobbered and attributes are updated.
11767 (call_internal_short, call_internal_long, call_value_internal_short,
11768 call_value_internal_long): Updated the attributes.
11769 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
11770 clobbered and attributes are updated.
11771 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
11772 Update to support new targets. CC_REGNUM register is clobbered.
11773 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
11774 instructions.
11775 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
11776 are updated.
11777 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
11778 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
11779 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
11780 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
11781 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
11782 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
11783 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
11784 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
11785 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
11786 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
11787 point instructions defined for V850e2v3 target.
11788 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
11789 Add support for V850E2 targets and CC_REGNUM register is clobbered.
11790 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
11791 support for new targets.
11792 * config/v850/v850-modes.def: New file.
11793 * config/v850/v850.opt(mstrict-align): Remove.
11794 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
11795 mv850e2v3): New command line options for V850.
11796 * config.gcc: Update the newly added files.
11797 * doc/invoke.texi: Update the newly added command line options for
11798 V850 target.
11799
11800 2010-07-26 Richard Guenther <rguenther@suse.de>
11801
11802 PR tree-optimization/45052
11803 * ipa-pure-const.c (check_stmt): Check volatileness.
11804
11805 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
11806
11807 PR target/44707
11808 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
11809 * config/sparc/sparc.c: Include reload.h.
11810 (legitimize_tls_address): Rename into...
11811 (sparc_legitimize_tls_address): ...this.
11812 (legitimize_pic_address): Rename into...
11813 (sparc_legitimize_pic_address): ...this.
11814 (sparc_expand_move): Adjust to above renaming.
11815 (sparc_tls_referenced_p): Likewise.
11816 (sparc_legitimize_tls_address): Likewise.
11817 (sparc_legitimize_pic_address): Likewise.
11818 (sparc_legitimize_address): Likewise.
11819 (sparc_output_mi_thunk): Likewise.
11820 (sparc_legitimize_reload_address): New global function. Recognize
11821 (lo_sum (high ...) ...) patterns generated by earlier passes.
11822 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
11823
11824 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
11825
11826 PR target/44484
11827 * config/sparc/predicates.md (memory_reg_operand): Delete.
11828 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
11829 (*sync_compare_and_swap): Encode the address form in the pattern.
11830 (*sync_compare_and_swapdi_v8plus): Likewise.
11831
11832 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
11833
11834 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
11835 Streamline paragraph on compatibility with the system compiler.
11836
11837 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
11838
11839 PR middle-end/45035
11840 * alias.c (true_dependence_1): Fix thinko in merge of old
11841 true_dependence and canon_true_dependence.
11842
11843 2010-07-23 Jan Hubicka <jh@suse.cz>
11844
11845 * lto-streamer-out.c (write_symbol): Fix visibilities of external
11846 references.
11847
11848 2010-07-23 Le-Chun Wu <lcwu@google.com>
11849
11850 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
11851 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
11852 and an unnecessary assignment.
11853 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
11854 self-assign warning.
11855 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
11856 unnecessary self-init.
11857
11858 2010-07-23 Richard Guenther <rguenther@suse.de>
11859
11860 PR lto/43071
11861 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
11862 for -flto and -fwhopr.
11863
11864 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
11865
11866 PR target/41943
11867 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
11868 (stmp-int-hdrs): Prefix/postfix headers by include_next.
11869 * config.gcc (user_headers_inc_next_pre): New.
11870 (user_headers_inc_next_post): Likewise.
11871 (*-w64-mingw*): Use for float.h post-fixing, and for
11872 stddef.h/stdarg.h pre-fixing by include_next.
11873 * configure.ac (user_headers_inc_next_post): New.
11874 (user_headers_inc_next_pre): New.
11875 * configure: Regenerated.
11876
11877 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11878
11879 * configure.ac: Don't disable TLS on Solaris 8/9 by default
11880 Set tga_func for Solaris 2/x86 resp. SPARC.
11881 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
11882 (LIB_THREAD_LDFLAGS_SPEC): Define.
11883 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
11884 * configure: Regenerate.
11885 * config.in: Regenerate.
11886 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
11887 -pthread, -threads, LIB_TLS_SPEC with -pthread.
11888 * doc/install.texi (Specific, *-*-solaris2*): Document use of
11889 alternate thread libraries on Solaris 8.
11890 Document TLS patch requirements.
11891 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
11892 Document tls.
11893
11894 PR target/18788
11895 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
11896 -shared.
11897
11898 2010-07-23 Jakub Jelinek <jakub@redhat.com>
11899
11900 * tree.h (struct tree_base): Add nameless_flag bitfield.
11901 (TYPE_NAMELESS, DECL_NAMELESS): Define.
11902 * omp-low.c (create_omp_child_function, scan_omp_parallel,
11903 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
11904 DECL_ARTIFICIAL where needed.
11905 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
11906 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
11907 has DECL_NAMELESS set.
11908
11909 2010-07-23 Martin Jambor <mjambor@suse.cz>
11910
11911 PR tree-optimization/44915
11912 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
11913 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
11914 (analyze_function): Likewise.
11915
11916 2010-07-23 Martin Jambor <mjambor@suse.cz>
11917
11918 PR tree-optimization/44914
11919 * tree-sra.c (sra_modify_function_body): Return true if CFG was
11920 changed, add purging dead eh edges.
11921 (ipa_sra_modify_function_body): Return true if CFG was changed,
11922 simplify purging dead eh edges.
11923 (modify_function): Return true if CFG was changed.
11924 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
11925 was changed.
11926 (ipa_early_sra): Likewise.
11927
11928 2010-07-23 Jie Zhang <jie@codesourcery.com>
11929
11930 PR target/44290
11931 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
11932 if "naked".
11933 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
11934 false if ! tree_versionable_function_p.
11935
11936 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
11937
11938 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
11939 * ipa-pure-const.c (special_builtlin_state): Remove
11940 BUILT_IN_ARGS_INFO case.
11941 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
11942 * builtins.c (expand_builtin): Likewise.
11943 (expand_builtin_args_info): Remove.
11944 * doc/tm.texi (__builtin_args_info): Remove.
11945 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
11946 * doc/tm.text.in: Likewise.
11947
11948 2010-07-23 Richard Guenther <rguenther@suse.de>
11949
11950 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
11951 (lto_symtab_merge_decls_2): Likewise.
11952 * tree-ssa.c (useless_type_conversion_p): Likewise.
11953 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11954 * gimple.c (gtc_visited2, gtc_ob2): Remove.
11955 (struct type_pair_d): Make same_p an array indexed by mode.
11956 Update comment.
11957 (lookup_type_pair): Update initialization.
11958 (struct sccs): Adjust same_p type.
11959 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
11960 Adjust.
11961 (print_gimple_types_stats): Likewise.
11962 * gimple.h (enum gtc_mode): New.
11963 (gimple_types_compatible_p): Adjust prototype.
11964
11965 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
11966
11967 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
11968 again after processing insn.
11969
11970 2010-07-23 Jie Zhang <jie@codesourcery.com>
11971
11972 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
11973 proper words when !tree_versionable_function_p.
11974
11975 2010-07-23 Richard Guenther <rguenther@suse.de>
11976
11977 PR tree-optimization/45037
11978 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
11979
11980 2010-07-23 Jie Zhang <jie@codesourcery.com>
11981
11982 * doc/extend.texi: Remove IP2K from the description of naked attribute.
11983 Add MCORE instead.
11984
11985 2010-07-10 Andi Kleen <ak@linux.intel.com>
11986
11987 PR lto/44992
11988 * lto-opts.c (lto_write_options): Add NULL file_data argument to
11989 lto_get_section_name.
11990 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11991 * lto-streamer-out.c (produce_asm): Likewise.
11992 (copy_function): Likewise.
11993 (produce_symtab): Likewise.
11994 (produce_asm_for_decls): Likewise.
11995 * lto-streamer.c (lto_get_section_name): Add file_data argument.
11996 Rewrite to add random postfix to LTO sections.
11997 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
11998 (lto_get_section_name): Add file_data argument to prototype.
11999
12000 2010-07-10 Andi Kleen <ak@linux.intel.com>
12001
12002 * lto-section-in.c (lto_section_name): Synchronize names
12003 with lto_get_section_name.
12004
12005 2010-07-10 Andi Kleen <ak@linux.intel.com>
12006
12007 * lto-opts.c (lto_read_file_options): Check for missing section.
12008
12009 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12010
12011 * ira.c (check_allocation): Correctly handle the case where an allocno
12012 with two objects was allocated to a single reg.
12013
12014 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
12015
12016 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
12017 (is_widening_mult_p): Likewise.
12018 (convert_to_widen): Use them.
12019 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
12020 well as integer ones.
12021
12022 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
12023
12024 * alias.c (true_dependence_1): New function, merged version of
12025 true_dependence and canon_true_dependence.
12026 (true_dependence): Simplify.
12027 (canon_true_dependence): Simplify.
12028
12029 2010-07-22 Richard Henderson <rth@redhat.com>
12030
12031 PR target/45027
12032 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
12033 of V4SFmode for the SSE saves; increase stack alignment if needed.
12034 (ix86_gimplify_va_arg): Don't increase stack alignment here.
12035
12036 2010-07-22 Jakub Jelinek <jakub@redhat.com>
12037
12038 PR bootstrap/45028
12039 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
12040 call cprop_find_used_regs again via note_uses.
12041
12042 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
12043
12044 * alias.c (get_alias_set): Fix formatting issues.
12045
12046 2010-07-22 Steve Ellcey <sje@cup.hp.com>
12047
12048 PR middle-end/44878
12049 * stmt.c (expand_value_return): Call promote_function_mode with
12050 a for_return argument of 2 when returning by reference.
12051
12052 2010-07-22 Dodji Seketeli <dodji@redhat.com>
12053
12054 PR debug/45024
12055 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
12056 unit DIE if we can find the scope DIE.
12057
12058 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12059
12060 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
12061 changed. Initialize OBJECT_SUBWORD.
12062 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
12063 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
12064 all callers changed.
12065 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
12066 (finish_allocno): Likewise.
12067 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
12068 (remove_low_level_allocnos): Likewise.
12069 (update_bad_spill_attribute): Likewise.
12070 (setup_min_max_allocno_live_range_point): Likewise.
12071 (sort_conflict_id_map): Likewise.
12072 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
12073 (ior_hard_reg_conflicts): New function.
12074 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
12075 (compress_conflict_vecs): Iterate over objects, not allocnos.
12076 (ira_add_live_range_to_object): New function.
12077 (object_range_compare_func): Renamed from allocno_range_compare_func.
12078 All callers changed.
12079 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
12080 subobjects, widen the min/max range of the lowest-order object to
12081 potentially include all other such low-order objects.
12082 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
12083 (check_allocation): Likewise. Use more fine-grained tests for register
12084 conflicts.
12085 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
12086 allocno subobjects.
12087 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
12088 choices about which bits to set in each set. Don't use
12089 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
12090 using the multiple sets we computed.
12091 (push_allocno_to_stack): Iterate over allocno subobjects.
12092 (all_conflicting_hard_regs_coalesced): New static function.
12093 (setup_allocno_available_regs_num): Use it.
12094 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
12095 subobjects.
12096 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
12097 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
12098 by ALLOCNO_NUM_OBJECTS.
12099 (calculate_spill_cost): Likewise.
12100 (color_pass): Express if statement in a more normal way.
12101 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
12102 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
12103 (setup_slot_coalesced_allocno_live_ranges): Likewise.
12104 (allocno_reload_assign): Likewise.
12105 (ira_reassign_pseudos): Likewise.
12106 (fast_allocation): Likewise.
12107 * ira-conflicts.c (build_conflict_bit_table): Likewise.
12108 (print_allocno_conflicts): Likewise.
12109 (ira_build_conflicts): Likewise.
12110 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
12111 callers changed. Test subword 0 of each allocno for conflicts.
12112 (build_object_conflicts): Renamed from build_allocno_conflicts. All
12113 callers changed. Iterate over allocno subobjects.
12114 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
12115 * ira-int.h (struct ira_allocno): New member: num_objects.
12116 Rename object to objects and change it into an array.
12117 (ALLOCNO_OBJECT): Add new argument N.
12118 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
12119 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
12120 (ior_hard_reg_conflicts): Declare.
12121 (ira_add_live_range_to_object): Declare.
12122 (ira_allocno_object_iterator): New.
12123 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
12124 (FOR_EACH_ALLOCNO_OBJECT): New macro.
12125 * ira-lives.c (objects_live): Renamed from allocnos_live; all
12126 uses changed.
12127 (allocnos_processed): New sparseset.
12128 (make_object_born): Renamed from make_allocno_born; take an
12129 ira_object_t argument. All callers changed.
12130 (make_object_dead): Renamed from make_allocno_dead; take an
12131 ira_object_t argument. All callers changed.
12132 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
12133 All callers changed.
12134 (mark_pseudo_regno_live): Iterate over allocno subobjects.
12135 (mark_pseudo_regno_dead): Likewise.
12136 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
12137 functions.
12138 (mark_ref_live): Detect subword accesses and call
12139 mark_pseudo_regno_subword_live as appropriate.
12140 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
12141 (process_bb_nodes_live): Deal with object-related updates first; set
12142 and test bits in allocnos_processed to avoid computing allocno
12143 statistics more than once.
12144 (create_start_finish_chains): Iterate over objects, not allocnos.
12145 (print_object_live_ranges): New function.
12146 (print_allocno_live_ranges): Use it.
12147 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
12148 and objects_live.
12149
12150 2010-07-22 Richard Guenther <rguenther@suse.de>
12151
12152 PR lto/42451
12153 * gimple.c (gtc_next_dfs_num): New global.
12154 (struct sccs): Make value a union, add integer same_p member.
12155 (gtc_visit): New function.
12156 (gimple_types_compatible_p_1): New function, split out from ...
12157 (gimple_types_compatible_p): ... here. Start a DFS walk here.
12158 (iterative_hash_gimple_type): Adjust for sccs change.
12159
12160 2010-07-22 Martin Jambor <mjambor@suse.cz>
12161
12162 PR tree-optimization/44891
12163 * tree-sra.c: Include gimple-pretty-print.h.
12164 (replace_uses_with_default_def_ssa_name): Renamed to
12165 get_repl_default_def_ssa_name, return the new SSA name instead of
12166 replacing the old one.
12167 (sra_modify_assign): Dump a message when removing a load, if the LHS
12168 is an SSA_NAME, do not do any propagation, just set the RHS to a
12169 default definition SSA NAME, type convert if necessary.
12170 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
12171
12172 2010-07-22 Richard Guenther <rguenther@suse.de>
12173
12174 PR tree-optimization/45017
12175 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
12176 TYPE_PRECISION of integral types in addition to size.
12177
12178 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
12179
12180 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
12181 when no C library is specified.
12182
12183 2010-07-22 Martin Jambor <mjambor@suse.cz>
12184
12185 * ipa-prop.h (struct ipa_node_params): Updated comment.
12186 (struct ipa_edge_args): Likewise.
12187 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
12188
12189 2010-07-22 Martin Jambor <mjambor@suse.cz>
12190
12191 * cgraphunit.c (verify_edge_count_and_frequency): New function.
12192 (verify_cgraph_node): Verify frequencies of indirect edges.
12193 * tree-inline.c (tree_function_versioning): Update frequencies of
12194 indirect edges.
12195
12196 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12197
12198 PR target/43698
12199 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
12200 Set *arm_rev to be predicable.
12201
12202 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12203
12204 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
12205 (LINK_COMMAND_SPEC_A): New.
12206 (DSYMUTIL): New.
12207 (DSYMUTIL_SPEC): New.
12208 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
12209 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
12210
12211 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
12212
12213 * calls.c (load_register_parameters): Move check for zero
12214 sized items so that only the call to
12215 mem_overlaps_already_clobbered_arg_p () is protected.
12216
12217 2010-07-22 Jan Hubicka <jh@suse.cz>
12218
12219 * ipa-pure-const.c (varying_state): Break out from ...
12220 (get_function_state): ... here; always return varying_state
12221 when state would be NULL otherwise.
12222 (remove_node_data): Do not free varying state.
12223
12224 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
12225
12226 PR bootstrap/44970
12227 PR middle-end/45009
12228 * postreload.c: Include "target.h".
12229 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
12230 into account.
12231 (fixup_debug_insns): Don't copy the rtx.
12232 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
12233 Don't copy when replacing. Call fixup_debug_insns in the case where
12234 we merged one add with another.
12235 (reload_combine_recognize_pattern): Fail if there aren't any uses.
12236 Try harder to determine whether we're picking a valid index register.
12237 Don't set store_ruid for an insn we're going to scan in the
12238 next iteration.
12239 (reload_combine): Remove unused code.
12240 (reload_combine_note_use): When updating use information for
12241 an old insn, ignore a use that occurs after store_ruid.
12242 * Makefile.in (postreload.o): Update dependencies.
12243
12244 * function.c (record_hard_reg_sets): Restrict the previous change
12245 to cases where the incoming nominal mode is the same as the
12246 incoming promoted mode and everything happens in MODE_INT.
12247
12248 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12249
12250 PR debug/45015
12251 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
12252 ASM_OPERANDS_OUTPUT_IDX.
12253 (adjust_insn): For inline asm with multiple sets ensure first
12254 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
12255 the insn.
12256
12257 2010-07-21 Richard Henderson <rth@redhat.com>
12258
12259 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
12260 comparison for avoiding xmm register saves. Emit the xmm register
12261 saves explicitly.
12262 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
12263 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
12264 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
12265 Remove patterns and the associated splitters.
12266
12267 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
12268
12269 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
12270 and imagine parts of a complex, so that they can have the same
12271 base and fall into the same group.
12272
12273 2010-07-21 Richard Guenther <rguenther@suse.de>
12274
12275 PR lto/45018
12276 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
12277 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
12278 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
12279
12280 2010-07-21 Martin Jambor <mjambor@suse.cz>
12281
12282 PR tree-optimization/44900
12283 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
12284 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
12285
12286 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
12287
12288 PR middle-end/44738
12289 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
12290
12291 2010-07-21 Richard Guenther <rguenther@suse.de>
12292
12293 PR middle-end/45013
12294 * tree-ssa.c (useless_type_conversion_p): Dispatch to
12295 gimple_types_compatible_p only when in lto.
12296 * gimple.c (gimple_types_compatible_p): Use canonical types
12297 to speed up comparison.
12298
12299 2010-07-21 Richard Guenther <rguenther@suse.de>
12300
12301 * tree-flow.h (referenced_var): Move define ...
12302 * tree-flow-inline.h (referenced_var): ... here as an inline
12303 function. Assert here ...
12304 * tree-dfa.c (referenced_var_lookup): ... instead of here.
12305 * tree-ssa.c (maybe_optimize_var): Check if the variable
12306 is in referenced vars.
12307 (execute_update_addresses_taken): Remove old broken check.
12308 * gimple-pretty-print.c (pp_points_to_solution): Use
12309 referenced_var_lookup.
12310 * tree-into-ssa.c (dump_decl_set): Likewise.
12311
12312 2010-07-21 Jakub Jelinek <jakub@redhat.com>
12313
12314 PR debug/45003
12315 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
12316 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
12317 ZERO_EXTEND here.
12318
12319 2010-07-20 Richard Henderson <rth@redhat.com>
12320
12321 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
12322
12323 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
12324
12325 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
12326 computing the sum of the stack pointer and a large constant.
12327 * config/arm/constraints.md (M): Remove superfluous parentheses.
12328 (Pc): New constraint.
12329
12330 2010-07-20 Jakub Jelinek <jakub@redhat.com>
12331
12332 PR debug/45006
12333 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
12334 operand's type if exp is tcc_unary class tree.
12335
12336 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
12337
12338 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
12339 Reverse sense of if_then_else condition.
12340
12341 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
12342
12343 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
12344 * config/rs6000/rs6000.c (rs6000_override_options): Set
12345 rs6000_block_move_inline_limit appropriately.
12346 (expand_block_move): Use rs6000_block_move_inline_limit.
12347 * doc/invoke.texi (mblock-move-inline-limit): Document.
12348
12349 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
12350
12351 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
12352 FROM and TO. All callers changed. Don't look for tracked uses,
12353 just scan the RTL for DEBUG_INSNs and substitute.
12354 (reload_combine_recognize_pattern): Call fixup_debug_insns.
12355 (reload_combine): Ignore DEBUG_INSNs.
12356
12357 2010-07-20 Jakub Jelinek <jakub@redhat.com>
12358
12359 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
12360 depth to 8 from 5.
12361
12362 PR debug/45003
12363 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
12364 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
12365 instead of the result's type.
12366
12367 2010-07-20 Richard Guenther <rguenther@suse.de>
12368
12369 PR tree-optimization/44977
12370 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
12371 SSA form.
12372
12373 2010-07-20 Richard Guenther <rguenther@suse.de>
12374
12375 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
12376 (lto_symtab_merge_decls_2): Likewise.
12377 * gimple.h (gimple_types_compatible_p): Declare.
12378 * gimple.c (gimple_queue_type_fixup): Remove.
12379 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
12380 (gimple_compatible_complete_and_incomplete_type_p): New function.
12381 (gimple_types_compatible_p): Adjust.
12382 (gimple_register_type): Remove type fixup code.
12383 (print_gimple_types_stats): Adjust.
12384 (free_gimple_type_tables): Likewise.
12385 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
12386 * tree-ssa.c (useless_type_conversion_p): Likewise.
12387
12388 2010-07-20 Richard Guenther <rguenther@suse.de>
12389
12390 PR middle-end/44971
12391 PR middle-end/44988
12392 * tree-ssa.c (maybe_optimize_var): New function split out from ...
12393 (execute_update_addresses_taken): ... here.
12394 (non_rewritable_mem_ref_base): Likewise.
12395 (execute_update_addresses_taken): Do not iterate over all referenced
12396 vars but just all local decls and parms.
12397 Properly check call and asm arguments and rewrite call arguments.
12398
12399 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
12400
12401 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
12402 to top level.
12403 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
12404 definitions ...
12405 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
12406 New macro.
12407 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
12408
12409 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
12410
12411 * gengtype.c (start_root_entry): New function, split out from
12412 write_root. Check whether V is null and raise an error if so.
12413 (write_field_root): Check for V being null. Don't raise an error here;
12414 set V to null instead.
12415 (write_root): Update comment above function. Use start_root_entry.
12416
12417 2010-07-19 Xinliang David Li <davidxl@google.com>
12418
12419 PR testsuite/44932
12420 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
12421 def edges.
12422 (find_uninit_use): Add dump.
12423 (is_use_properly_guarded): Ditto.
12424 (warn_uninitialized_phi): Ditto.
12425 (execute_late_warn_uninitialized): Ditto.
12426
12427 2010-07-19 Richard Guenther <rguenther@suse.de>
12428
12429 PR middle-end/44941
12430 * expr.c (emit_block_move_hints): Move zero size check first.
12431 Move asserts to more useful places.
12432 * calls.c (load_register_parameters): Check for zero size.
12433
12434 2010-07-19 Richard Henderson <rth@redhat.com>
12435
12436 * tree-optimize.c (execute_all_early_local_passes): New. Change
12437 cgraph_state here ...
12438 (execute_early_local_optimizations): ... not here. Remove.
12439 (pass_early_local_passes, pass_all_early_optimizations): Update.
12440
12441 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
12442
12443 * postreload.c (reload_combine_closest_single_use): Ignore the
12444 number of uses for DEBUG_INSNs.
12445 (fixup_debug_insns): New static function.
12446 (reload_combine_recognize_const_pattern): Use it. Don't let the
12447 main loop be affected by DEBUG_INSNs.
12448 Really disallow moving adds past a jump insn.
12449 (reload_combine_recognize_pattern): Don't update use_ruid here.
12450 (reload_combine_note_use): Do it here.
12451 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
12452
12453 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
12454
12455 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
12456 of a loop.
12457 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
12458
12459 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
12460
12461 * config/i386/darwin.h: Define darwin_emit_branch_islands.
12462 (TARGET_MACHO_BRANCH_ISLANDS): New.
12463 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
12464 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
12465 default value.
12466 * config/i386/i386.c (output_pic_addr_const): Do not emit
12467 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
12468 (x86_output_mi_thunk): Adjust symbol creation.
12469 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
12470 Remove out of date comment.
12471 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
12472 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
12473 (DARWIN_GENERATE_ISLANDS): Ditto.
12474 (output_call): Do not emit branch islands unless
12475 darwin_emit_branch_islands is set.
12476 * config/darwin.c: Declare darwin_emit_branch_islands.
12477 (machopic_indirect_data_reference): Do not emit unless
12478 darwin_emit_branch_islands is set.
12479 (darwin_override_options): Set darwin_emit_branch_islands
12480 where it is needed.
12481 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
12482
12483 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12484
12485 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12486 sse_runtime, sse2_runtime.
12487
12488 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
12489
12490 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
12491 low half of a single-register SCmode return value before ORing
12492 it with the high half.
12493 * config/mips/mips16.S (MERGE_GPRf): Likewise.
12494
12495 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12496
12497 PR target/44805
12498 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
12499 on all targets.
12500
12501 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
12502
12503 PR target/42235
12504 * postreload.c (reload_cse_move2add): Return bool, true if anything.
12505 changed. All callers changed.
12506 (move2add_use_add2_insn): Likewise.
12507 (move2add_use_add3_insn): Likewise.
12508 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
12509 reload_combine.
12510 (RELOAD_COMBINE_MAX_USES): Bump to 16.
12511 (last_jump_ruid): New static variable.
12512 (struct reg_use): New members CONTAINING_MEM and RUID.
12513 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
12514 (reload_combine_split_one_ruid, reload_combine_split_ruids,
12515 reload_combine_purge_insn_uses, reload_combine_closest_single_use
12516 reload_combine_purge_reg_uses_after_ruid,
12517 reload_combine_recognize_const_pattern): New static functions.
12518 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
12519 is true for our reg and that we have available index regs.
12520 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
12521 callers changed. Use them to initialize fields in struct reg_use.
12522 (reload_combine): Initialize last_jump_ruid. Be careful when to
12523 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
12524 Call reload_combine_recognize_const_pattern.
12525 (reload_combine_note_store): Update REAL_STORE_RUID field.
12526
12527 2010-07-16 Jason Merrill <jason@redhat.com>
12528
12529 * Makefile.in (opts-common.o): Depend on options.h.
12530
12531 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
12532
12533 * tree.c (build_common_builtin_nodes): Use build_function_type_list
12534 instead of build_function_type.
12535 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
12536 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
12537
12538 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
12539
12540 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
12541 do all the work.
12542 (rs6000_emit_int_cmove): Use function pointers for insn generation.
12543 Don't force values into registers unnecessarily.
12544 (output_isel): Assert that we're not given conditions we can't handle.
12545 Delete corresponding code.
12546 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
12547 scc_comparison_operator constraint. Permit 0 for the consequent
12548 operand. Permit any GPR for the alternative operand.
12549 (isel_unsigned_<mode>): Likewise.
12550
12551 2010-07-16 Jakub Jelinek <jakub@redhat.com>
12552
12553 PR target/44942
12554 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
12555 argument to const_tree.
12556 * config/i386/i386.c (function_arg_advance): If padding needs to be
12557 inserted before argument, increment cum->words by number of padding
12558 words as well.
12559 (contains_aligned_value_p): Change argument to const_tree.
12560 (ix86_function_arg_boundary): Change second argument to const_tree.
12561
12562 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
12563
12564 PR target/42235
12565 * function.c (record_hard_reg_sets): New static function.
12566 (assign_parm_setup_reg): If an optab for extending exists and the
12567 generated code clobbbers no hard regs, emit the insn directly and
12568 create a REG_EQUIV note.
12569
12570 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
12571
12572 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
12573 TREE_CHAIN.
12574 * c-typeck.c (push_init_level): Likewise.
12575 (process_init_element): Likewise.
12576
12577 2010-07-15 Anatoly Sokolov <aesok@post.ru>
12578
12579 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
12580 (integer_three_node): Add.
12581 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
12582 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
12583 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
12584 of call build_int_cst.
12585 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
12586 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
12587 (find_interesting_uses_address): Ditto.
12588 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
12589 * tree-eh.c (lower_eh_constructs_2): Ditto.
12590 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
12591 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
12592 * expmed.c (expand_divmod): Ditto.
12593 * tree-mudflap.c (mx_register_decls): Ditto.
12594 * varasm.c (array_size_for_constructor): Ditto.
12595 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
12596 * c-parser.c (c_parser_postfix_expression): Ditto.
12597
12598 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
12599
12600 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
12601 New static variables.
12602 (reload_combine_recognize_pattern): New static function, broken out
12603 of reload_combine.
12604 (reload_combine): Use it. Only initialize first_index_reg and
12605 last_index_reg once.
12606
12607 2010-07-15 Richard Henderson <rth@redhat.com>
12608
12609 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
12610 when done.
12611
12612 2010-07-15 Jan Hubicka <jh@suse.cz>
12613
12614 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
12615 comdats for broken gold.
12616 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
12617
12618 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
12619
12620 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
12621
12622 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
12623
12624 * tree.h (DECL_CHAIN): Define.
12625 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
12626 * c-decl.c: Likewise.
12627 * c-parser.c: Likewise.
12628 * c-typeck.c: Likewise.
12629 * cfgexpand.c: Likewise.
12630 * cgraph.c: Likewise.
12631 * cgraphunit.c: Likewise.
12632 * combine.c: Likewise.
12633 * config/alpha/alpha.c: Likewise.
12634 * config/arm/arm.c: Likewise.
12635 * config/frv/frv.c: Likewise.
12636 * config/i386/i386.c: Likewise.
12637 * config/i386/winnt-cxx.c: Likewise.
12638 * config/ia64/ia64.c: Likewise.
12639 * config/iq2000/iq2000.c: Likewise.
12640 * config/mep/mep.c: Likewise.
12641 * config/mips/mips.c: Likewise.
12642 * config/pa/som.h: Likewise.
12643 * config/rs6000/rs6000.c: Likewise.
12644 * config/s390/s390.c: Likewise.
12645 * config/sh/sh.c: Likewise.
12646 * config/sh/symbian-cxx.c: Likewise.
12647 * config/sparc/sparc.c: Likewise.
12648 * config/spu/spu.c: Likewise.
12649 * config/stormy16/stormy16.c: Likewise.
12650 * config/vxworks.c: Likewise.
12651 * config/xtensa/xtensa.c: Likewise.
12652 * coverage.c: Likewise.
12653 * dbxout.c: Likewise.
12654 * dwarf2out.c: Likewise.
12655 * emit-rtl.c: Likewise.
12656 * expr.c: Likewise.
12657 * function.c: Likewise.
12658 * gimple-low.c: Likewise.
12659 * gimple-pretty-print.c: Likewise.
12660 * gimplify.c: Likewise.
12661 * integrate.c: Likewise.
12662 * ipa-inline.c: Likewise.
12663 * ipa-prop.c: Likewise.
12664 * ipa-split.c: Likewise.
12665 * ipa-struct-reorg.c: Likewise.
12666 * ipa-type-escape.c: Likewise.
12667 * langhooks.c: Likewise.
12668 * lto-cgraph.c: Likewise.
12669 * omp-low.c: Likewise.
12670 * stor-layout.c: Likewise.
12671 * tree-cfg.c: Likewise.
12672 * tree-complex.c: Likewise.
12673 * tree-dfa.c: Likewise.
12674 * tree-dump.c: Likewise.
12675 * tree-inline.c: Likewise.
12676 * tree-mudflap.c: Likewise.
12677 * tree-nested.c: Likewise.
12678 * tree-object-size.c: Likewise.
12679 * tree-pretty-print.c: Likewise.
12680 * tree-sra.c: Likewise.
12681 * tree-ssa-live.c: Likewise.
12682 * tree-ssa-loop-niter.c: Likewise.
12683 * tree-ssa-math-opts.c: Likewise.
12684 * tree-ssa-reassoc.c: Likewise.
12685 * tree-ssa-sccvn.c: Likewise.
12686 * tree-ssa-structalias.c: Likewise.
12687 * tree-tailcall.c: Likewise.
12688 * tree-vrp.c: Likewise.
12689 * tree.c: Likewise.
12690 * var-tracking.c: Likewise.
12691 * varasm.c: Likewise.
12692
12693 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12694
12695 PR target/44877
12696 * config/spu/spu.c (spu_expand_builtin_1): Allow references
12697 (as well as pointers) as argument to mask_for_load builtins.
12698
12699 2010-07-15 Richard Guenther <rguenther@suse.de>
12700
12701 PR tree-optimization/44946
12702 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
12703 with accessing only padding properly.
12704
12705 2010-07-15 Jan Hubicka <jh@suse.cz>
12706
12707 * ipa.c (function_and_variable_visibility): Variables marked as used
12708 should not be localized.
12709
12710 2010-07-15 Jan Hubicka <jh@suse.cz>
12711
12712 * cgraph.c: Include lto-streamer.h
12713 (change_decl_assembler_name): Work when assembler name hash is at place.
12714 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
12715 be sure to rename it to avoid name clash.
12716 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
12717 Localize hidden symbols only when locally defined.
12718
12719 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
12720
12721 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
12722
12723 2010-07-15 Magnus Granberg <zorry@gentoo.org>
12724 Kevin F. Quinn <kevquinn@gentoo.org>
12725
12726 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
12727 * common.opt: Add -Wtrampolines.
12728 * doc/invoke.texi: Add -Wtrampolines.
12729
12730 2010-07-15 Jie Zhang <jie@codesourcery.com>
12731
12732 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
12733 cortex_a8_issue_ls.
12734
12735 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
12736
12737 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
12738 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
12739
12740 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12741
12742 * config/spu/spu.c (reg_names): Remove prototype.
12743 (call_used_regs): Likewise.
12744
12745 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
12746
12747 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
12748 "unused" with attribute "used".
12749 (__JCR_END__): Likewise.
12750 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
12751 "used" attribute.
12752 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
12753
12754 2010-07-14 Richard Guenther <rguenther@suse.de>
12755
12756 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
12757 (maybe_fixup_decls): Likewise.
12758 (input_gimple_stmt): Do not fixup anything.
12759 * lto-streamer-out.c (output_gimple_stmt): Make sure all
12760 non-automatic variable uses are wrapped inside a MEM_REF.
12761
12762 2010-07-14 Richard Henderson <rth@redhat.com>
12763
12764 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
12765 for functions.
12766 * varasm.c (assemble_variable): Remove early exit for functions;
12767 assert that we're given a variable.
12768
12769 2010-07-14 Jie Zhang <jie@codesourcery.com>
12770
12771 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
12772 cortex_a8_default when neon_type is not none.
12773
12774 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
12775
12776 * lower-subreg.c (subreg_context): New static bitmap.
12777 (decompose_multiword_subregs): Allocate and free it.
12778 (find_decomposable_subregs): Set a bit in it for a register that
12779 occurs in a subreg that changes mode but not size.
12780 (can_decompose_p): Test it instead of non_decomposable_context.
12781
12782 2010-07-14 Richard Guenther <rguenther@suse.de>
12783
12784 PR tree-optimization/44824
12785 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
12786 is_gimple_mem_ref_addr.
12787 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
12788 non-decl_address_invariant_p addresses.
12789
12790 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
12791
12792 * reload.c (find_reloads): Revert code to penalize small register
12793 classes that was brought in with the IRA merge.
12794
12795 2010-07-14 Richard Guenther <rguenther@suse.de>
12796
12797 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
12798 as base of ARRAY_REFs.
12799
12800 2010-07-14 Richard Guenther <rguenther@suse.de>
12801
12802 PR middle-end/44930
12803 * tree-pretty-print.c (do_niy): Do not print a newline.
12804
12805 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
12806
12807 * ira-int.h (struct ira_object): New.
12808 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
12809 (struct ira_allocno): Remove members min, max,
12810 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
12811 conflict_allocnos_num and conflict_vec_p. Add new member object.
12812 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
12813 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
12814 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
12815 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
12816 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
12817 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
12818 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
12819 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
12820 an ira_object_t rather than ira_allocno_t. All uses changed.
12821 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
12822 contains a vector of ira_object_t; all uses changed.
12823 (ira_objects_num): Declare variable.
12824 (ira_create_allocno_object): Declare function.
12825 (ira_conflict_vector_profitable_p): Adjust prototype.
12826 (ira_allocate_conflict_vec): Renamed from
12827 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
12828 (ira_allocate_object_conflicts): Renamed from
12829 ira_allocate_allocno_conflicts; first arg now ira_object_t.
12830 (struct ira_object_iterator): New.
12831 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
12832 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
12833 to conflict_vec_p. All uses changed.
12834 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
12835 Changed to take into account that conflicts are now tracked for
12836 objects.
12837 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
12838 Args changed to accept ira_object_t. All uses changed.
12839 (allocnos_conflict_p): New static function.
12840 (collected_conflict_objects): Renamed from collected_allocno_objects;
12841 now a vector of ira_object_t. All uses changed.
12842 (build_conflict_bit_table): Changed to take into account that
12843 conflicts are now tracked for objects.
12844 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
12845 (print_allocno_conflicts, ira_build_conflicts): Likewise.
12846 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
12847 setup_allocno_left_conflicts_size, allocno_reload_assign,
12848 fast_allocation): Likewise.
12849 * ira-lives.c (make_hard_regno_born, make_allocno_born)
12850 process_single_reg_class_operands, process_bb_node_lives): Likewise.
12851 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
12852 Likewise.
12853 * ira-build.c (ira_objects_num): New variable.
12854 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
12855 contains a vector of ira_object_t; all uses changed.
12856 (ira_object_id_map_vec): Corresponding change.
12857 (object_pool): New static variable.
12858 (initiate_allocnos): Initialize it.
12859 (finish_allocnos): Free it.
12860 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
12861 New functions.
12862 (ira_create_allocno): Don't set members that were removed.
12863 (ira_set_allocno_cover_class): Don't change conflict hard regs.
12864 (merge_hard_reg_conflicts): Changed to take into account that
12865 conflicts are now tracked for objects.
12866 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
12867 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
12868 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
12869 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
12870 setup_min_max_conflict_allocno_ids, ): Likewise.
12871 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
12872 to ira_object_t; all callers changed.
12873 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
12874 to ira_object_t, all callers changed.
12875 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
12876 to ira_object_t, all callers changed.
12877 (conflict_check, curr_conflict_check_tick): Renamed from
12878 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
12879 changed.
12880 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
12881 arg changed to ira_object_t, all callers changed.
12882 (create_cap_allocno): Call ira_create_allocno_object.
12883 (finish_allocno): Free the corresponding object.
12884 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
12885 callers changed. Adjusted for dealing with objects.
12886 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
12887 dealing with objects.
12888 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
12889
12890 * ira-int.h (struct live_range): Rename allocno member to object
12891 and change type to ira_object_t.
12892 (struct ira_object): New member live_ranges.
12893 (struct ira_allocno): Remove member live_ranges.
12894 (ALLOCNO_LIVE_RANGES): Remove.
12895 (OBJECT_LIVE_RANGES): New macro.
12896 (ira_create_live_range, ira_copy_live_range_list,
12897 ira_merge_live_range_list, ira_live_ranges_intersect_p,
12898 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
12899 * ira-build.c (ira_create_object): Initialize live ranges here.
12900 (ira_create_allocno): Not here.
12901 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
12902 changed to ira_object_t, all callers changed.
12903 (copy_live_range): Rename from copy_allocno_live_range, all callers
12904 changed.
12905 (ira_copy_live_range_list): Rename from
12906 ira_copy_allocno_live_range_list, all callers changed.
12907 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
12908 all callers changed.
12909 (ira_live_ranges_intersect_p): Rename from
12910 ira_allocno_live_ranges_intersect_p, all callers changed.
12911 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
12912 callers changed.
12913 (ira_finish_live_range_list): Rename from
12914 ira_finish_allocno_live_range_list, all callers changed.
12915 (change_object_in_range_list): Rename from change_allocno_in_range_list,
12916 last arg changed to ira_object_t, all callers changed.
12917 (finish_allocno): Changed to expect live ranges in the allocno's object.
12918 (move_allocno_live_ranges, copy_allocno_live_ranges,
12919 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
12920 ira_flattening, ira_build): Likewise.
12921 * ira-color.c (allocnos_have_intersected_live_ranges_p,
12922 slot_coalesced_allocno_live_ranges_intersect,
12923 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
12924 * ira-conflicts.c (build_conflict_bit_table): Likewise.
12925 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
12926 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
12927 make_allocno_dead, create_start_finish_chains,
12928 remove_some_program_points_and_update_live_ranges,
12929 ira_debug_live_range_list): Likewise.
12930
12931 * ira-int.h (ira_object_conflict_iterator): Rename from
12932 ira_allocno_conflict_iterator.
12933 (ira_object_conflict_iter_init): Rename from
12934 ira_allocno_conflict_iter_init, second arg changed to
12935 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
12936 FOR_EACH_ALLOCNO_CONFLICT.
12937 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
12938 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
12939 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
12940 * ira-conflicts.c (print_allocno_conflicts): Likewise.
12941
12942 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
12943
12944 PR other/44874
12945 * tree-dump.c (dump_options): Add enumerate_locals entry.
12946 Add TDF_NOID exclusion to all entry.
12947 * tree-dump.h (dump_enumerated_decls): Declare.
12948 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
12949 Don't display type uid.
12950 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
12951 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
12952 * tree-ssa-live.c: Include gimple.h.
12953 (numbered_tree_d): New struct.
12954 (numbered_tree): New typedef.
12955 (DEF_VEC_O (numbered_tree): New.
12956 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
12957 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
12958 (dump_enumerated_decls): Likewise.
12959 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
12960 debug info and flag_dump_final_insns, call dump_enumerated_decls.
12961 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
12962 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
12963
12964 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
12965
12966 * expmed.h (MAX_BITS_PER_WORD): Move to...
12967 * defaults.h (MAX_BITS_PER_WORD): ...here.
12968
12969 2010-07-13 DJ Delorie <dj@redhat.com>
12970
12971 * config/h8300/h8300.c (h8300_init_once): Default to
12972 -fstrict_volatile_bitfields.
12973
12974 * config/sh/sh.c (sh_override_options): Default to
12975 -fstrict_volatile_bitfields.
12976
12977 * config/rx/rx.c (rx_option_override): New.
12978
12979 * config/m32c/m32c.c (m32c_override_options): Default to
12980 -fstrict_volatile_bitfields.
12981
12982 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
12983
12984 * tree.h (build_function_call_expr): Delete.
12985 (build_call_expr_loc_array): New function.
12986 (build_call_expr_loc_vec): New function.
12987 * tree-flow.h (struct omp_region): Change type of ws_args field
12988 to a VEC.
12989 * builtins.c (build_function_call_expr): Delete.
12990 (build_call_expr_loc_array): New function.
12991 (build_call_expr_loc): Call it. Use XALLOCAVEC.
12992 (build_call_expr): Likewise.
12993 (build_call_expr_loc_vec): New function.
12994 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
12995 build_function_call_expr.
12996 * expr.c (emutls_var_address): Likewise.
12997 * varasm.c (emutls_common_1): Likewise.
12998 * omp-low.c (expand_omp_atomic_mutex): Likewise.
12999 (expand_omp_taskreg): Adjust for new type of region->ws_args.
13000 (get_ws_args_for): Return a VEC instead of a tree.
13001 (expand_parallel_call): Call build_call_expr_loc_vec instead of
13002 build_function_call_expr.
13003 * stor-layout.c (self_referential_size): Likewise.
13004
13005 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13006
13007 PR testsuite/44701
13008 * recog.c (constrain_operands): Allow side-effects in memory
13009 operands if either < or > constraint is used, rather than if
13010 both < and > is used.
13011
13012 2010-07-13 Richard Guenther <rguenther@suse.de>
13013
13014 PR middle-end/44911
13015 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
13016 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
13017 without name.
13018
13019 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
13020
13021 PR target/44761
13022 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
13023 to variable emited.
13024 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
13025 * config/sh/sh.md (symGOT_load): Likewise.
13026 (symDTPOFF2reg): Likewise.
13027 (symTPOFF2reg): Likewise.
13028
13029 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13030
13031 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
13032 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
13033
13034 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13035
13036 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
13037 explanation.
13038 Find ucontext_t * on Solaris 11.
13039 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
13040 Handle new Solaris 11 __sighndlr patterns.
13041
13042 2010-07-13 Jakub Jelinek <jakub@redhat.com>
13043
13044 PR debug/44901
13045 * vec.h (VEC_block_remove): Fix comment.
13046 * tree-ssa-live.c (remove_unused_locals): Don't use
13047 VEC_unordered_remove on local_decls, instead replace a single
13048 vector element in each iteration if at least one element had
13049 to be removed and VEC_truncate at the end.
13050 * omp-low.c (expand_omp_taskreg): Likewise.
13051
13052 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13053
13054 * c-decl.c (finish_function): Fix typo in comment.
13055
13056 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
13057
13058 PR bootstrap/44921
13059 * postreload.c (move2add_use_add3_insn): Silence gcc warning
13060 on min_regno.
13061
13062 2010-07-12 Jakub Jelinek <jakub@redhat.com>
13063
13064 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
13065 (simplify_stmt_using_ranges): Use it.
13066
13067 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13068
13069 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
13070 member. Do not mark as GTY(()).
13071 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
13072 (spu_builtin_decls): New static variable.
13073 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
13074 (spu_init_builtins): Likewise.
13075 (spu_builtin_mul_widen_even): Likewise.
13076 (spu_builtin_mul_widen_odd): Likewise.
13077 (spu_builtin_mask_for_load): Likewise.
13078 (spu_builtin_vec_perm): Likewise.
13079 * config/spu/spu-c.c: Include "target.h".
13080 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
13081 of using spu_builtins[].fndecl.
13082
13083 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13084
13085 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
13086 imply -minterlink-mips16.
13087
13088 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13089
13090 * config/mips/mips.h (mips16_globals): Declare.
13091 (SWITCHABLE_TARGET): Define.
13092 * config/mips/mips.c: Include target-globals.h.
13093 (mips16_globals): New variable.
13094 (mips_set_mips16_mode): Use save_target_globals and
13095 restore_target_globals instead of target_reinit.
13096
13097 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13098
13099 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
13100 to say that the function can be called more than once.
13101 * target-globals.c (save_target_globals): Call init_reg_sets.
13102
13103 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13104
13105 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
13106 * bb-reorder.h: New file.
13107 * bb-reorder.c (default_target_bb_reorder): New variable.
13108 (this_target_bb_reorder): New conditional variable.
13109 (uncond_jump_length): Redefine as a macro.
13110 * target-globals.h (this_target_bb_reorder): Declare.
13111 (target_globals): Add a bb_reorder field.
13112 (restore_target_globals): Copy the bb_reorder field to
13113 this_target_bb-reorder.
13114 * target-globals.c: Include bb-reorder.h.
13115 (default_target_globals): Initialize the bb_reorder field.
13116 (save_target_globals): Likewise.
13117
13118 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13119
13120 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
13121 * gcse.h: New file.
13122 * gcse.c: Include gcse.h.
13123 (default_target_gcse): New variable.
13124 (this_target_gcse): New conditional variable.
13125 (can_copy): Redefine as a macro.
13126 (can_copy_init_p): New macro.
13127 (can_copy_p): Remove can_copy_init_p.
13128 * target-globals.h (this_target_gcse): Declare.
13129 (target_globals): Add a gcse field.
13130 (restore_target_globals): Copy the gcse field to this_target_gcse.
13131 * target-globals.c: Include gcse.h.
13132 (default_target_globals): Initialize the gcse field.
13133 (save_target_globals): Likewise.
13134
13135 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13136
13137 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
13138 and x_ira_prohibited_mode_move_regs_initialized_p.
13139 (ira_prohibited_mode_move_regs): Redefine as a macro.
13140 * ira.c (ira_prohibited_mode_move_regs): Delete.
13141 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
13142
13143 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13144
13145 * reload.h (target_reload): Add x_cached_reg_save_code and
13146 x_cached_reg_restore_code.
13147 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
13148 Redefine as macros.
13149
13150 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13151
13152 * Makefile.in (target-globals.o): Depend on builtins.h.
13153 * builtins.h: New file.
13154 * builtins.c: Include builtins.h.
13155 (default_target_builtins): New variable.
13156 (this_target_builtins): New conditional variable.
13157 (apply_args_mode, apply_result_mode): Redefine as macros.
13158 * target-globals.h (this_target_builtins): Declare.
13159 (target_globals): Add a builtins field.
13160 (restore_target_globals): Copy the builtins field to
13161 this_target_builtins.
13162 * target-globals.c: Include builtins.h.
13163 (default_target_globals): Initialize the builtins field.
13164 (save_target_globals): Likewise.
13165
13166 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13167
13168 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
13169 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
13170 from expmed.c.
13171 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
13172 (alg_hash, alg_hash_used_p): New macros.
13173 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
13174 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
13175 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
13176
13177 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13178
13179 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
13180 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
13181 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
13182 (this_op_costs, costs_classes): Redefine as macros.
13183 (record_reg_classes): Don't take op_costs as a parameter.
13184 (record_operand_costs): Likewise. Update calls to record_reg_classes.
13185 (scan_one_insn): Update call to record_operand_costs.
13186
13187 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13188
13189 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
13190 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
13191 (target_ira_int): New structure.
13192 (default_target_ira_int): Declare.
13193 (this_target_ira_int): Declare as a variable or define as a macro.
13194 (ira_reg_mode_hard_regset, ira_register_move_cost)
13195 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
13196 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
13197 (prohibited_class_mode_regs, ira_important_classes_num)
13198 (ira_important_classes, ira_reg_class_intersect)
13199 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
13200 (ira_reg_class_union): Redefine as macros.
13201 * ira.h (target_ira): New structure.
13202 (default_target_ira): Declare.
13203 (this_target_ira): Declare as a variable or define as a macro.
13204 (ira_available_class_regs, ira_hard_regno_cover_class)
13205 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
13206 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
13207 (ira_class_hard_regs_num): Redefine as macros.
13208 * ira.c (default_target_ira, default_target_ira_int): New variables.
13209 (this_target_ira, this_target_ira_int): New conditional variables.
13210 (ira_reg_mode_hard_regset, ira_memory_move_cost)
13211 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
13212 (ira_class_subset_p): Delete.
13213 (no_unit_alloc_regs): Redefine as a macro.
13214 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
13215 (ira_class_hard_regs_num, ira_class_hard_reg_index)
13216 (ira_available_class_regs): Delete.
13217 (alloc_reg_class_subclasses): Redefine as a macro.
13218 (ira_reg_class_cover_size, ira_reg_class_cover)
13219 (ira_important_classes_num, ira_important_classes)
13220 (ira_important_class_nums, ira_class_translate): Delete.
13221 (cover_class_order): Document the variable's lifetime.
13222 (reorder_important_classes): Don't set ira_important_class_nums.
13223 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
13224 (ira_reg_class_super_classes, ira_reg_class_union)
13225 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
13226 Delete.
13227 (setup_reg_class_nregs): Don't set ira_max_regs.
13228 (prohibited_class_mode_regs): Delete.
13229 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
13230 (target_globals): Add ira and ira_int fields.
13231 (restore_target_globals): Copy the ira field to this_target_ira
13232 and the ira_int field to this_target_ira_int.
13233 * target-globals.c: Include ira-int.h.
13234 (default_target_globals): Initialize the ira and ira_int fields.
13235 (save_target_globals): Likewise.
13236
13237 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13238
13239 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
13240 * cfgloop.h (target_cfgloop): New structure.
13241 (default_target_cfgloop): Declare.
13242 (this_target_cfgloop): Declare as a variable or define as a macro.
13243 (target_avail_regs, target_clobbered_regs, target_res_regs)
13244 (target_reg_cost, target_spill_cost): Redefine as macros.
13245 * cfgloopanal.c (default_target_cfgloop): New variable.
13246 (this_target_cfgloop): New conditional variable.
13247 (target_avail_regs, target_clobbered_regs, target_res_regs)
13248 (target_reg_cost, target_spill_cost): Delete.
13249 * target-globals.h (this_target_cfgloop): Declare.
13250 (target_globals): Add a cfgloop field.
13251 (restore_target_globals): Copy the cfgloop field to
13252 this_target_cfgloop.
13253 * target-globals.c: Include cfgloop.h.
13254 (default_target_globals): Initialize the cfgloop field.
13255 (save_target_globals): Likewise.
13256
13257 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13258
13259 * regs.h (target_regs): Add x_direct_load, x_direct_store and
13260 x_float_extend_from_mem.
13261 (direct_load, direct_store, float_extend_from_mem): New macros.
13262 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
13263
13264 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13265
13266 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
13267 (target-globals.o): Depend on $(LIBFUNCS_H).
13268 * libfuncs.h: Include hashtab.h.
13269 (libfunc_entry): Moved from optabs.c.
13270 (target_libfuncs): New structure.
13271 (default_target_libfuncs): Declare.
13272 (this_target_libfuncs): Declare as a variable or define as a macro.
13273 (libfunc_table): Redefine as a macro.
13274 * optabs.c (default_target_libfuncs): New variable.
13275 (this_target_libfuncs): New conditional variable.
13276 (libfunc_table): Delete.
13277 (libfunc_entry): Moved to optabs.h.
13278 (libfunc_hash): Redefine as a macro.
13279 (hash_libfunc, eq_libfunc): Fix comments.
13280 (init_optabs): Use libfunc_hash to detect cases where the function
13281 has already been called. Clear the hash table instead of
13282 recreating it.
13283 * target-globals.h (this_target_libfuncs): Declare.
13284 (target_globals): Add a libfuncs field.
13285 (restore_target_globals): Copy the libfuncs field to
13286 this_target_libfuncs.
13287 * target-globals.c: Include libfuncs.h.
13288 (default_target_globals): Initialize the libfuncs field.
13289 (save_target_globals): Likewise.
13290
13291 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13292
13293 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
13294 in all dependency lists.
13295
13296 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13297
13298 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
13299 * optabs.h (target_optabs): New structure.
13300 (default_target_optabs): Declare.
13301 (this_target_optabs): Declare as a variable or define as a macro.
13302 (optab_table, convert_optab_table, direct_optab_table): Redefine
13303 as macros.
13304 * optabs.c (default_target_optabs): New variable.
13305 (this_target_optabs): New conditional variable.
13306 (optab_table, convert_optab_table, direct_optab_table): Delete.
13307 * target-globals.h (this_target_optabs): Declare.
13308 (target_globals): Add a optabs field.
13309 (restore_target_globals): Copy the optabs field to
13310 this_target_optabs.
13311 * target-globals.c: Include expr.h and optabs.h.
13312 (default_target_globals): Initialize the optabs field.
13313 (save_target_globals): Likewise.
13314
13315 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13316
13317 * flags.h (target_flagstate): Add x_flag_excess_precision.
13318 (flag_excess_precision): Redefine as a macro.
13319 * toplev.c (flag_excess_precision): Delete.
13320
13321 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13322
13323 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
13324 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
13325 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
13326 (no_caller_save_reg_set): Redefine as a macro.
13327 * reload.h (target_reload): Add x_caller_save_initialized_p and
13328 x_regno_save_mode.
13329 (caller_save_initialized_p): Redefine as a macro.
13330 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
13331 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
13332 (regno_save_mode): Redefine as a macro.
13333
13334 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13335
13336 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
13337 * expmed.h: New file.
13338 * expmed.c (default_target_costs): New variable.
13339 (this_target_costs): New conditional variable.
13340 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
13341 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
13342 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
13343 * target-globals.h (this_target_expmed): Declare.
13344 (target_globals): Add a expmed field.
13345 (restore_target_globals): Copy the expmed field to
13346 this_target_expmed.
13347 * target-globals.c: Include expmed.h.
13348 (default_target_globals): Initialize the expmed field.
13349 (save_target_globals): Likewise.
13350
13351 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13352
13353 * Makefile.in (target-globals.o): Depend on reload.h.
13354 * reload.h (target_reload): New structure.
13355 (default_target_reload): Declare.
13356 (this_target_reload): Declare as a variable or define as a macro.
13357 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
13358 * reload1.c (default_target_reload): New variable
13359 (this_target_reload): New conditional variable.
13360 (indirect_symref_ok, double_reg_address_ok): Delete.
13361 (spill_indirect_levels): Redefine as a macro.
13362 * target-globals.h (this_target_reload): Declare.
13363 (target_globals): Add a reload field.
13364 (restore_target_globals): Copy the reload field to
13365 this_target_reload.
13366 * target-globals.c: Include hard-reg-set.h.
13367 (default_target_globals): Initialize the reload field.
13368 (save_target_globals): Likewise.
13369
13370 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13371
13372 * rtl.h (target_rtl): Add x_static_reg_base_value.
13373 * alias.c (static_reg_base_value): Redefine as a macro.
13374
13375 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13376
13377 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
13378 (GTFILES): Remove reginfo.c.
13379 * rtl.h (target_rtl): Add x_top_of_stack.
13380 (top_of_stack): New macro.
13381 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
13382 (top_of_stack): Delete.
13383
13384 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13385
13386 * regs.h (target_regs): Add x_hard_regs_of_mode,
13387 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
13388 x_may_move_out_cost and x_last_mode_for_init_move_cost.
13389 (have_regs_of_mode, contains_reg_of_mode, move_cost)
13390 (may_move_in_cost, may_move_out_cost): Redefine as macros.
13391 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
13392 (may_move_in_cost, may_move_out_cost): Delete.
13393 (last_mode_for_init_move_cost): Redefine as a macro.
13394
13395 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13396
13397 * hard-reg-set.h (target_hard_regs): New structure.
13398 (default_target_hard_regs): Declare.
13399 (this_target_hard_regs): Declare as a variable or define as a macro.
13400 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
13401 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
13402 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
13403 (reg_class_size, reg_class_subclasses, reg_class_subunion)
13404 (reg_class_superunion, reg_names): Redefine as macros.
13405 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
13406 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
13407 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
13408 (reg_class_contents, reg_class_size, reg_class_subclasses)
13409 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
13410 (default_target_hard_regs): New variable
13411 (this_target_hard_regs, initial_call_really_used_regs)
13412 (initial_reg_alloc_order): New conditional variables.
13413 (initial_reg_names): New variable.
13414 (init_reg_sets): Assert that initial_call_really_used_regs,
13415 initial_reg_alloc_order and initial_reg_names
13416 are all the same size as their variable counterparts. Use them to
13417 initialize those counterparts.
13418 * target-globals.h (this_target_hard_regs): Declare.
13419 (target_globals): Add a hard_regs field.
13420 (restore_target_globals): Copy the hard_regs field to
13421 this_target_hard_regs.
13422 * target-globals.c: Include hard-reg-set.h.
13423 (default_target_globals): Initialize the hard_regs field.
13424 (save_target_globals): Likewise.
13425
13426 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13427
13428 * Makefile.in (target-globals.o): Depend on $(RTL_H).
13429 * rtl.h (target_rtl): New structure.
13430 (default_target_rtl): Declare.
13431 (this_target_rtl): Declare as a variable or define as a macro.
13432 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
13433 Redefine as macros.
13434 * emit-rtl.c (default_target_rtl): New variable.
13435 (this_target_rtl): New conditional variable.
13436 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
13437 (return_address_pointer_rtx): Delete.
13438 (initial_regno_reg_rtx): New macro.
13439 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
13440 (init_emit_regs): Likewise.
13441 * target-globals.h (this_target_rtl): Declare.
13442 (target_globals): Add a rtl field.
13443 (restore_target_globals): Copy the rtl field to this_target_rtl.
13444 * target-globals.c: Include rtl.h.
13445 (default_target_globals): Initialize the rtl field.
13446 (save_target_globals): Likewise.
13447
13448 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13449
13450 * Makefile.in (target-globals.o): Depend on $(REGS_H).
13451 * regs.h (target_reg_modes): New structure.
13452 (default_target_reg_modes): Declare.
13453 (this_target_reg_modes): Declare as a variable or define as a macro.
13454 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
13455 * reginfo.c (default_target_reg_modes): New variable.
13456 (this_target_reg_modes): New conditional variable.
13457 (hard_regno_nregs, reg_raw_mode): Delete.
13458 * target-globals.h (this_target_regs): Declare.
13459 (target_globals): Add a regs field.
13460 (restore_target_globals): Copy the regs field to this_target_regs.
13461 * target-globals.c: Include regs.h.
13462 (default_target_globals): Initialize the regs field.
13463 (save_target_globals): Likewise.
13464
13465 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
13466
13467 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
13468 * doc/tm.texi: Regenerate.
13469 * Makefile.in (OBJS-common): Add target-globals.o.
13470 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
13471 and target-globals.h.
13472 (target-globals.o): New rule.
13473 (GTFILES): Include $(srcdir)/target-globals.h.
13474 * defaults.h (SWITCHABLE_TARGET): Define.
13475 * gengtype.c (open_base_files): Add target-globals.h to the
13476 list of includes.
13477 * target-globals.h: New file.
13478 * target-globals.c: Likewise.
13479
13480 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
13481 * flags.h (target_flag_state): New structure.
13482 (default_target_flag_state): Declare.
13483 (this_target_flag_state): Declare as a variable or define as a macro.
13484 (align_loops_log): Redefine as a macro.
13485 (align_loops_max_skip, align_jumps_log): Likewise.
13486 (align_jumps_max_skip, align_labels_log): Likewise.
13487 (align_labels_max_skip, align_functions_log): Likewise.
13488 * toplev.c (default_target_flag_state): New variable.
13489 (this_target_flag_state): New conditional variable.
13490 (align_loops_log): Delete.
13491 (align_loops_max_skip, align_jumps_log): Likewise.
13492 (align_jumps_max_skip, align_labels_log): Likewise.
13493 (align_labels_max_skip, align_functions_log): Likewise.
13494 * target-globals.h (this_target_flag_state): Declare.
13495 (target_globals): Add a flag_state field.
13496 (restore_target_globals): Copy the flag_state field to
13497 this_target_flag_state.
13498 * target-globals.c: Include flags.h.
13499 (default_target_globals): Initialize the flag_state field.
13500 (save_target_globals): Likewise.
13501
13502 2010-07-12 Jie Zhang <jie@codesourcery.com>
13503
13504 * postreload.c (reg_symbol_ref[]): New.
13505 (move2add_use_add2_insn): New.
13506 (move2add_use_add3_insn): New.
13507 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
13508 (move2add_note_store): Likewise.
13509
13510 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
13511
13512 PR rtl-optimization/44752
13513 * genautomata.c (main): Don't emit an empty file even if there
13514 is no automaton.
13515
13516 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13517
13518 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
13519 ix86_solaris_return_in_memory.
13520 * config/i386-protos.h: Reflect this.
13521 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
13522 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
13523 Move ...
13524 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
13525
13526 2010-07-12 Jie Zhang <jie@codesourcery.com>
13527
13528 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
13529 align the stack when it's going to be saved.
13530
13531 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13532
13533 PR pch/14940
13534 * config/host-solaris.c (mmap_fixed): New function.
13535 (sol_gt_pch_get_address): Use it.
13536 (sol_gt_pch_use_address): Likewise.
13537
13538 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13539
13540 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
13541 pentiumpro on Solaris 8 and 9/x86.
13542 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
13543 Document SSE/SSE2 support.
13544 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
13545
13546 2010-07-12 Andi Kleen <ak@linux.intel.com>
13547
13548 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
13549 instead of gcc_assert to print better error message for multiple
13550 prevailing defs.
13551
13552 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
13553
13554 * config/i386/i386.c (ix86_asm_output_function_label): Change format
13555 string placeholder from 0x%x to %#x.
13556 (ix86_code_end): Use putc to output '\n'.
13557 (ix86_print_operand) <case ';'>: Use putc to output ';'.
13558
13559 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
13560
13561 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
13562 in directive -export.
13563
13564 2010-07-10 Anatoly Sokolov <aesok@post.ru>
13565
13566 * reginfo.h (reg_classes_intersect_p): Change arguments type to
13567 reg_class_t.
13568 * rtl.h (reg_classes_intersect_p): Adjust prototype.
13569
13570 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13571 Remove macros.
13572 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
13573 rs6000_memory_move_cost): Remove
13574 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
13575 TARGET_MEMORY_MOVE_COST): Define.
13576 (rs6000_register_move_cost): Make static. Change arguments type from
13577 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
13578 (rs6000_memory_move_cost): Make static. Change arguments type from
13579 'enum reg_class' to reg_class_t.
13580
13581 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
13582
13583 PR middle-end/42505
13584 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
13585 lookup code into....
13586 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
13587 new functions.
13588 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
13589 * cfgloopanal.c (target_clobbered_regs): Define.
13590 (init_set_costs): Initialize target_clobbered_regs.
13591 (estimate_reg_pressure_cost): Add call_p argument. When true,
13592 adjust the number of available registers to exclude the
13593 call-clobbered registers.
13594 * cfgloop.h (target_clobbered_regs): Declare.
13595 (estimate_reg_pressure_cost): Adjust declaration.
13596 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
13597 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
13598 (determine_set_costs): Dump target_clobbered_regs.
13599 (loop_body_includes_call): New function.
13600 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
13601 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
13602 call_p flag through.
13603 (best_gain_for_invariant): Likewise.
13604 (find_invariants_to_move): Likewise.
13605 (move_single_loop_invariants): Likewise, using already-computed
13606 has_call field.
13607
13608 2010-07-10 Richard Guenther <rguenther@suse.de>
13609 Joern Rennecke <joern.rennecke@embecosm.com>
13610
13611 PR debug/44832
13612 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
13613 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
13614 unless they have DECL_IGNORED_P set.
13615
13616 2010-07-10 Richard Guenther <rguenther@suse.de>
13617
13618 PR lto/44889
13619 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
13620 helper function.
13621 (gimple_types_compatible_p): Similar to pointed-to
13622 types allow and merge a mix of complete and incomplete aggregate.
13623 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
13624 (iterative_hash_gimple_type): Adjust for that.
13625
13626 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
13627
13628 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
13629
13630 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
13631
13632 PR objc/44140
13633 * config/darwin.c (output_objc_section_asm_op): Save and restore
13634 section when outputting ObjC section list.
13635
13636 2010-07-09 Jan Hubicka <jh@suse.cz>
13637
13638 * lto-streamer-out.c (produce_symtab): Do not write alias
13639 cgraph/varpool nodes.
13640
13641 2010-07-09 Jan Hubicka <jh@suse.cz>
13642
13643 * tree-inline.c (declare_return_variable): Fix ICE while
13644 inlining DECL_BY_VALUE function not in SSA form
13645
13646 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
13647
13648 PR tree-optimization/44576
13649 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
13650 New. Pull out from is_loop_prefetching_profitable to implement
13651 the trip count to ahead ratio heuristic.
13652 (mem_ref_count_reasonable_p): New. Pull out from
13653 is_loop_prefetching_profitable to implement the instruction to
13654 memory reference ratio heuristic. Also consider not reasonable if
13655 the memory reference count is above a threshold (to avoid
13656 explosive compilation time.
13657 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
13658 is_loop_prefetching_profitable to implement the instruction to
13659 prefetch ratio heuristic.
13660 (is_loop_prefetching_profitable): Removed.
13661 (loop_prefetch_arrays): Distribute the cost analysis across the
13662 function to allow early exit of the prefetch analysis.
13663 is_loop_prefetching_profitable is splitted into three functions,
13664 with each one called as early as possible.
13665 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
13666 number of memory references in a loop is considered too many.
13667
13668 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
13669
13670 * reload.c (find_reloads): Don't clear badop if we have a winreg
13671 alternative, but not win, and the class only has fixed regs.
13672 * hard-reg-set.h (class_only_fixed_regs): Declare.
13673 * reginfo.c (class_only_fixed_regs): New array.
13674 (init_reg_sets_1): Initialize it.
13675 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
13676 discourage alternatives using the stack pointer.
13677
13678 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
13679
13680 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
13681
13682 * config/arm/arm.md (cbranchqi4): Fix array size.
13683 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
13684 calculating length.
13685
13686 2010-07-09 Richard Guenther <rguenther@suse.de>
13687
13688 * gimple.c (struct type_fixup_s): New struct and VEC type.
13689 (gimple_register_type_fixups): New static global.
13690 (gimple_queue_type_fixup): New function.
13691 (gimple_types_compatible_p): Queue type fixups instead of
13692 applying them here.
13693 (gimple_register_type): Apply queued fixups for the
13694 canonical type. Empty the type fixup queue.
13695
13696 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
13697
13698 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
13699 * configure: Regenerate.
13700 * config.in: Ditto.
13701
13702 2010-07-09 Jakub Jelinek <jakub@redhat.com>
13703 Denys Vlasenko <dvlasenk@redhat.com>
13704 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13705
13706 PR tree-optimization/28632
13707 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
13708 (extract_range_from_binary_expr): Further optimize
13709 BIT_AND_EXPR and BIT_IOR_EXPR.
13710
13711 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
13712
13713 * tree-if-conv.c (fold_or_predicates): New.
13714 (add_to_predicate_list): Call it.
13715
13716 2010-07-09 Richard Guenther <rguenther@suse.de>
13717
13718 PR middle-end/44890
13719 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
13720 if base is a pointer.
13721 * tree-cfg.c (verify_expr): Update MEM_REF checking.
13722
13723 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13724
13725 PR target/44877
13726 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
13727 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
13728 builtin mask for load/store builtins.
13729
13730 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
13731
13732 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
13733 for "lock addl".
13734 * configure: Regenerate.
13735 * config/i386/i386.c (ix86_print_operand) <case ';'>:
13736 Remove TARGET_MACHO.
13737
13738 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
13739
13740 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
13741 default ISA flags.
13742 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
13743
13744 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
13745
13746 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
13747
13748 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13749
13750 * config/picochip/picochip.md (commsTestPort): Emit more
13751 efficient sequence for tstport instruction.
13752
13753 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
13754
13755 * config/i386/i386.c (ix86_veclib_handler): Make static.
13756
13757 2010-07-09 Richard Guenther <rguenther@suse.de>
13758
13759 PR tree-optimization/44852
13760 * tree-ssa-alias.c: Include toplev.h for exact_log2.
13761 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
13762 in MEM_REF.
13763 (indirect_refs_may_alias_p): Likewise.
13764 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
13765
13766 2010-07-09 Richard Guenther <rguenther@suse.de>
13767
13768 PR tree-optimization/44882
13769 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
13770 sets do conflict.
13771 (vectorizable_load): Likewise.
13772
13773 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
13774
13775 PR target/40657
13776 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
13777 All callers changed.
13778 Handle the case when we're called for the epilogue.
13779 (thumb_unexpanded_epilogue): Use it.
13780 (thumb1_expand_epilogue): Likewise.
13781
13782 2010-07-09 Jakub Jelinek <jakub@redhat.com>
13783
13784 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
13785 both ranges are range_int_cst_p with non-negative minimum,
13786 try harder to derive smaller range.
13787
13788 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13789
13790 * genrecog.c: Include diagnostic-core.h before toplev.h.
13791 * genoutput.c: Likewise.
13792 * genextract.c: Likewise.
13793 * genautomata.c: Likewise.
13794 * genemit.c: Likewise.
13795 * genpeep.c: Likewise.
13796 * genattrtab.c: Likewise.
13797 * genconditions.c: Likewise.
13798 * genpreds.c: Likewise.
13799
13800 2010-07-08 Andi Kleen <ak@linux.intel.com>
13801
13802 * lto-section-in.c (lto_section_name): Add missing comma.
13803
13804 2010-07-08 Anatoly Sokolov <aesok@post.ru>
13805
13806 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
13807 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
13808 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
13809 (ia64_override_options): Rename to...
13810 (ia64_option_override): ... this one. Make static.
13811
13812 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13813
13814 PR middle-end/44843
13815 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
13816 pointed-to type of the offset in a MEM_REF to compute the alignment.
13817
13818 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
13819
13820 * final.c (final_scan_insn): Replace
13821 TARGET_UNWIND_INFO macro check by unwind_emit
13822 hook NULL check.
13823 * targhooks.c (default_unwind_emit): Removed.
13824 * targhooks.h (default_unwind_emit): Likewise.
13825 * target.def (unwind_emit): Set default value to NULL.
13826
13827 * config/i386/i386-protos.h (ix86_asm_output_function_label):
13828 New prototype.
13829 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
13830 for NULL fntype argument and allow 64-bit targets.
13831 (ix86_asm_output_function_label): New function.
13832 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
13833 (ix86_handle_fndecl_attribute): Likewise.
13834 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
13835 * doc/doc/tm.texi: Regenerated.
13836 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
13837 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
13838 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
13839 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
13840 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
13841 * config/elfos.h: Likewise.
13842 * config/i386/cygming.h: Likewise.
13843 * config/netbsd-aout.h: Likewise.
13844 * config/openbsd.h: Likewise.
13845 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
13846 by ix86_asm_output_function_label function call.
13847 * varasm.c (assemble_start_function): Use
13848 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
13849
13850 2010-07-08 Jan Hubicka <jh@suse.cz>
13851
13852 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
13853 New function.
13854 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
13855 Declare.
13856 * ipa-cp.c (ipcp_estimate_growth): Use it.
13857 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
13858 Likewise.
13859
13860 2010-07-08 Jan Hubicka <jh@suse.cz>
13861
13862 * tree-inline.c (declare_return_variable): Allocate annotation for new
13863 temporary.
13864
13865 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
13866
13867 PR tree-optimization/44710
13868 * tree-if-conv.c (parse_predicate): New.
13869 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
13870 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
13871
13872 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
13873
13874 * common.opt (ftree-loop-if-convert): New flag.
13875 * doc/invoke.texi (ftree-loop-if-convert): Documented.
13876 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
13877 when flag_tree_loop_if_convert is set.
13878
13879 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
13880
13881 * config/i386/i386.c: Use short syntax for function calls
13882 through function pointers.
13883 * config/i386/i386.md: Ditto.
13884
13885 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13886
13887 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
13888
13889 2010-07-08 Richard Guenther <rguenther@suse.de>
13890
13891 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
13892 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
13893
13894 2010-07-08 Jakub Jelinek <jakub@redhat.com>
13895
13896 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
13897 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
13898 (loc_list_from_tree): Likewise.
13899 (output_loc_operands): Handle outputting DW_OP_const[48]u
13900 with loc->dtprel set.
13901 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
13902
13903 2010-07-08 Jan Hubicka <jh@suse.cz>
13904
13905 * ipa.c: Include pointer-set.h
13906 (cgraph_externally_visible_p): New attribute ALIASED;
13907 when in LTO, hidden symbols are local unless they are aliased.
13908 (function_and_variable_visibility): Compute aliased nodes;
13909 handle LTO and hidden symbol on functions and vars.
13910 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
13911 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
13912
13913 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13914
13915 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13916 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13917 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13918 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13919 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13920 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
13921 (ix86_gen_probe_stack_range): Likewise.
13922 (override_options): Set them.
13923 (ix86_target_stack_probe): New function.
13924 (ix86_compute_frame_layout): Force use of push instructions to
13925 save registers if stack checking with probes is enabled.
13926 (get_scratch_register_on_entry): New function.
13927 (release_scratch_register_on_entry): Likewise.
13928 (ix86_adjust_stack_and_probe): Likewise.
13929 (output_adjust_stack_and_probe): Likewise.
13930 (ix86_emit_probe_stack_range): Likewise.
13931 (output_probe_stack_range): Likewise.
13932 (ix86_expand_prologue): Emit stack checking code if static built-in
13933 stack checking is enabled.
13934 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
13935 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
13936 (output_adjust_stack_and_probe): Likewise.
13937 (output_probe_stack_range): Likewise.
13938 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13939 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
13940 TARGET_STACK_PROBE.
13941 (allocate_stack_worker_64): Likewise.
13942 (allocate_stack): Likewise.
13943 (adjust_stack_and_probe): New insn.
13944 (probe_stack_range): Likewise.
13945
13946 2010-07-08 Richard Guenther <rguenther@suse.de>
13947
13948 PR tree-optimization/44831
13949 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
13950 a MEM_REF preserving TBAA info of the original dereference.
13951 Dereference the original pointer if the address is not invariant.
13952 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
13953 at least one invariant address that we are going to dereference.
13954
13955 2010-07-08 Richard Guenther <rguenther@suse.de>
13956
13957 PR tree-optimization/44861
13958 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
13959 information when building MEM_REFs.
13960 (vectorizable_load): Likewise.
13961 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
13962
13963 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13964
13965 * config/sol2-c.c: Do not include diagnostic-core.h.
13966
13967 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13968
13969 PR bootstrap/44768
13970 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
13971 with respect to current_function_decl. Pass decl of the function.
13972 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
13973 * ipa-inline.c (compute_inline_parameters): Pass decl to
13974 estimated_stack_frame_size.
13975
13976 2010-07-08 Richard Guenther <rguenther@suse.de>
13977
13978 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13979 New function.
13980 (valueize_refs): Call it.
13981
13982 2010-07-08 Richard Guenther <rguenther@suse.de>
13983
13984 PR rtl-optimization/44838
13985 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
13986 SSA form do not use pointer equivalence.
13987
13988 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
13989
13990 * dwarf2out.c (AT_linkage_name): Delete.
13991 (add_linkage_attr): New function.
13992 (add_linkage_name): Call it to emit the linkage attribute.
13993 (dwarf2out_finish): Likewise.
13994 (move_linkage_attr): Explicitly accept both attribute variants.
13995
13996 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13997
13998 * toplev.h: Do not include diagnostic-core.h.
13999 Include diagnostic-core.h in every file that includes toplev.h.
14000 * c-tree.h: Do not include toplev.h.
14001 * pretty-print.h: Update comment.
14002 * Makefile.in: Update dependencies.
14003 * alias.c: Include diagnostic-core.h in every file that includes
14004 toplev.h.
14005 * attribs.c: Likewise.
14006 * auto-inc-dec.c: Likewise.
14007 * bb-reorder.c: Likewise.
14008 * bt-load.c: Likewise.
14009 * caller-save.c: Likewise.
14010 * calls.c: Likewise.
14011 * cfg.c: Likewise.
14012 * cfganal.c: Likewise.
14013 * cfgbuild.c: Likewise.
14014 * cfgcleanup.c: Likewise.
14015 * cfghooks.c: Likewise.
14016 * cfgloop.c: Likewise.
14017 * combine.c: Likewise.
14018 * config/alpha/alpha.c: Likewise.
14019 * config/arc/arc.c: Likewise.
14020 * config/arm/arm.c: Likewise.
14021 * config/arm/pe.c: Likewise.
14022 * config/avr/avr.c: Likewise.
14023 * config/bfin/bfin.c: Likewise.
14024 * config/cris/cris.c: Likewise.
14025 * config/crx/crx.c: Likewise.
14026 * config/darwin-c.c: Likewise.
14027 * config/darwin.c: Likewise.
14028 * config/fr30/fr30.c: Likewise.
14029 * config/frv/frv.c: Likewise.
14030 * config/h8300/h8300.c: Likewise.
14031 * config/host-darwin.c: Likewise.
14032 * config/i386/i386.c: Likewise.
14033 * config/i386/netware.c: Likewise.
14034 * config/i386/nwld.c: Likewise.
14035 * config/i386/winnt-cxx.c: Likewise.
14036 * config/i386/winnt-stubs.c: Likewise.
14037 * config/i386/winnt.c: Likewise.
14038 * config/ia64/ia64-c.c: Likewise.
14039 * config/ia64/ia64.c: Likewise.
14040 * config/iq2000/iq2000.c: Likewise.
14041 * config/lm32/lm32.c: Likewise.
14042 * config/m32c/m32c-pragma.c: Likewise.
14043 * config/m32c/m32c.c: Likewise.
14044 * config/m32r/m32r.c: Likewise.
14045 * config/m68hc11/m68hc11.c: Likewise.
14046 * config/m68k/m68k.c: Likewise.
14047 * config/mcore/mcore.c: Likewise.
14048 * config/mep/mep-pragma.c: Likewise.
14049 * config/mep/mep.c: Likewise.
14050 * config/mmix/mmix.c: Likewise.
14051 * config/mn10300/mn10300.c: Likewise.
14052 * config/moxie/moxie.c: Likewise.
14053 * config/pa/pa.c: Likewise.
14054 * config/pdp11/pdp11.c: Likewise.
14055 * config/picochip/picochip.c: Likewise.
14056 * config/rs6000/rs6000-c.c: Likewise.
14057 * config/rs6000/rs6000.c: Likewise.
14058 * config/rx/rx.c: Likewise.
14059 * config/s390/s390.c: Likewise.
14060 * config/score/score.c: Likewise.
14061 * config/score/score3.c: Likewise.
14062 * config/score/score7.c: Likewise.
14063 * config/sh/sh.c: Likewise.
14064 * config/sh/symbian-base.c: Likewise.
14065 * config/sh/symbian-c.c: Likewise.
14066 * config/sh/symbian-cxx.c: Likewise.
14067 * config/sol2-c.c: Likewise.
14068 * config/sol2.c: Likewise.
14069 * config/sparc/sparc.c: Likewise.
14070 * config/spu/spu.c: Likewise.
14071 * config/stormy16/stormy16.c: Likewise.
14072 * config/v850/v850-c.c: Likewise.
14073 * config/v850/v850.c: Likewise.
14074 * config/vax/vax.c: Likewise.
14075 * config/vxworks.c: Likewise.
14076 * config/xtensa/xtensa.c: Likewise.
14077 * convert.c: Likewise.
14078 * cse.c: Likewise.
14079 * cselib.c: Likewise.
14080 * dbgcnt.c: Likewise.
14081 * dbxout.c: Likewise.
14082 * ddg.c: Likewise.
14083 * dominance.c: Likewise.
14084 * emit-rtl.c: Likewise.
14085 * explow.c: Likewise.
14086 * expmed.c: Likewise.
14087 * fixed-value.c: Likewise.
14088 * fold-const.c: Likewise.
14089 * fwprop.c: Likewise.
14090 * gcse.c: Likewise.
14091 * ggc-common.c: Likewise.
14092 * ggc-page.c: Likewise.
14093 * ggc-zone.c: Likewise.
14094 * gimple-low.c: Likewise.
14095 * gimplify.c: Likewise.
14096 * graph.c: Likewise.
14097 * haifa-sched.c: Likewise.
14098 * ifcvt.c: Likewise.
14099 * implicit-zee.c: Likewise.
14100 * integrate.c: Likewise.
14101 * ira-build.c: Likewise.
14102 * ira-color.c: Likewise.
14103 * ira-conflicts.c: Likewise.
14104 * ira-costs.c: Likewise.
14105 * ira-lives.c: Likewise.
14106 * ira.c: Likewise.
14107 * lists.c: Likewise.
14108 * loop-doloop.c: Likewise.
14109 * loop-iv.c: Likewise.
14110 * lto-opts.c: Likewise.
14111 * lto-symtab.c: Likewise.
14112 * main.c: Likewise.
14113 * modulo-sched.c: Likewise.
14114 * optabs.c: Likewise.
14115 * params.c: Likewise.
14116 * plugin.c: Likewise.
14117 * postreload-gcse.c: Likewise.
14118 * postreload.c: Likewise.
14119 * predict.c: Likewise.
14120 * profile.c: Likewise.
14121 * real.c: Likewise.
14122 * regcprop.c: Likewise.
14123 * reginfo.c: Likewise.
14124 * regmove.c: Likewise.
14125 * reorg.c: Likewise.
14126 * resource.c: Likewise.
14127 * rtl.c: Likewise.
14128 * rtlanal.c: Likewise.
14129 * sched-deps.c: Likewise.
14130 * sched-ebb.c: Likewise.
14131 * sched-rgn.c: Likewise.
14132 * sdbout.c: Likewise.
14133 * sel-sched-dump.c: Likewise.
14134 * sel-sched-ir.c: Likewise.
14135 * simplify-rtx.c: Likewise.
14136 * stmt.c: Likewise.
14137 * stor-layout.c: Likewise.
14138 * store-motion.c: Likewise.
14139 * targhooks.c: Likewise.
14140 * tree-cfg.c: Likewise.
14141 * tree-cfgcleanup.c: Likewise.
14142 * tree-dump.c: Likewise.
14143 * tree-eh.c: Likewise.
14144 * tree-inline.c: Likewise.
14145 * tree-nomudflap.c: Likewise.
14146 * tree-object-size.c: Likewise.
14147 * tree-optimize.c: Likewise.
14148 * tree-outof-ssa.c: Likewise.
14149 * tree-phinodes.c: Likewise.
14150 * tree-profile.c: Likewise.
14151 * tree-ssa-ccp.c: Likewise.
14152 * tree-ssa-coalesce.c: Likewise.
14153 * tree-ssa-live.c: Likewise.
14154 * tree-ssa-loop-niter.c: Likewise.
14155 * tree-ssa-loop-prefetch.c: Likewise.
14156 * tree-ssa-loop.c: Likewise.
14157 * tree-ssa-structalias.c: Likewise.
14158 * tree-ssa-uninit.c: Likewise.
14159 * tree-ssa.c: Likewise.
14160 * tree-vect-data-refs.c: Likewise.
14161 * tree-vect-loop-manip.c: Likewise.
14162 * tree-vect-loop.c: Likewise.
14163 * tree-vect-patterns.c: Likewise.
14164 * tree-vect-stmts.c: Likewise.
14165 * tree-vrp.c: Likewise.
14166 * varasm.c: Likewise.
14167 * vec.c: Likewise.
14168 * web.c: Likewise.
14169 * xcoffout.c: Likewise.
14170
14171 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
14172
14173 * gengtype.c (write_field_root): New function.
14174 (write_root): Use it.
14175
14176 2010-07-07 Wei Guozhi <carrot@google.com>
14177
14178 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14179 of lowest bits to lshift/compare): Add a missing line.
14180
14181 2010-07-07 Wei Guozhi <carrot@google.com>
14182
14183 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
14184 of lowest bits to lshift/compare): New.
14185
14186 2010-07-07 Tom Tromey <tromey@redhat.com>
14187
14188 * doc/tm.texi: Update.
14189 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
14190 Add @hook.
14191 * target.def (want_debug_pub_sections): New hook.
14192 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
14193 * dwarf2out.c (add_pubname_string): Check
14194 targetm.want_debug_pub_sections.
14195 (add_pubname): Likewise.
14196 (add_pubtype): Likewise.
14197
14198 2010-07-07 Jie Zhang <jie@codesourcery.com>
14199
14200 * genautomata.c (output_automata_list_min_issue_delay_code):
14201 Correctly decompress min_issue_delay.
14202
14203 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14204
14205 PR rtl-optimization/44404
14206 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
14207 possible, use reg_overlap_mentioned_p instead.
14208
14209 2010-07-07 Duncan Sands <baldrick@free.fr>
14210
14211 PR middle-end/41355
14212 * tree.c (build_function_type_skip_args): Copy the original type using
14213 build_distinct_type_copy rather than copy_node.
14214
14215 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14216
14217 PR target/44850
14218 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
14219 revision 161876.
14220 (ix86_expand_prologue): Likewise.
14221 (ix86_handle_fndecl_attribute): Likewise.
14222 (ix86_asm_declare_function_name): Likewise.
14223 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14224 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14225 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
14226 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
14227 * doc/extend.texi: Likewise.
14228
14229 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
14230
14231 PR target/44844
14232 * config/i386/i386.md (rdrand<mode>): Changed to expand to
14233 retry if the carry flag isn't valid.
14234 (rdrand<mode>_1): New.
14235
14236 2010-07-07 Richard Guenther <rguenther@suse.de>
14237
14238 PR middle-end/44790
14239 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
14240 for expanding the constant offset for MEM_REFs.
14241
14242 2010-07-07 Richard Guenther <rguenther@suse.de>
14243
14244 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
14245 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
14246 * gimple.h (is_gimple_operand): Remove.
14247 * gimple.c (is_gimple_operand): Likewise.
14248 (walk_gimple_op): Fix wi->val_only setting for calls.
14249 * tree-cfg.c (verify_gimple_call): Fix argument validation.
14250 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
14251 invalid gimple calls.
14252
14253 2010-07-06 Jan Hubicka <jh@suse.cz>
14254
14255 * lto-cgraph.c (output_cgraph): Add missing declaration.
14256
14257 2010-07-06 Jan Hubicka <jh@suse.cz>
14258
14259 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
14260 partition.
14261
14262 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
14263
14264 * doc/gimple.texi (GIMPLE_DEBUG): Document.
14265 * doc/rtl.texi (Debug Information): New node.
14266 (NOTE_INSN_VAR_LOCATION): Document.
14267 (debug_insn): Likewise.
14268 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
14269
14270 2010-07-07 Jan Hubicka <jh@suse.cz>
14271
14272 With parts by Richard Guenther.
14273
14274 PR middle-end/44813
14275 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
14276 for functions passed by reference.
14277 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
14278 in memory when passed by reference.
14279 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
14280 beggining.
14281 * ipa-split.c (split_function): Cleanup way return value is passed;
14282 handle SSA DECL_BY_REFERENCE retvals.
14283 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
14284 DECL_BY_REFERENCE is set.
14285 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
14286 find_what_p_points_to): Handle RESULT_DECL.
14287 * tree-inline.c (declare_return_variable): Get new entry_block argument;
14288 when passing by reference ensure that RESULT_DECL is gimple_val.
14289 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
14290 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
14291
14292 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
14293
14294 PR rtl-optimization/44787
14295 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
14296 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
14297
14298 2010-07-06 Jan Hubicka <jh@suse.cz>
14299
14300 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
14301 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
14302 with body can prevail.
14303 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
14304 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
14305 * cgraph.c (cgraph_get_node_or_alias): New function.
14306 * cgraph.h (cgraph_get_node_or_alias): Declare.
14307
14308 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
14309
14310 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
14311 support.
14312 (ix86_expand_prologue): Likewise.
14313 (ix86_handle_fndecl_attribute): Likewise.
14314 (ix86_asm_declare_function_name): New function for
14315 ASM_DECLARE_FUNCTION_NAME.
14316 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
14317 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
14318 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
14319 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
14320 * doc/extend.texi: Adjust documentation about ms_hook_prologue
14321 attribute.
14322
14323 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14324
14325 * config/i386/i386.md (immediate_operand): New mode attribute.
14326
14327 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
14328 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
14329 using P mode iterator.
14330 (pro_epilogue_adjust_stack_di_2): Rename from
14331 pro_epilogue_adjust_stack_rex64_2.
14332
14333 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
14334
14335 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14336
14337 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
14338 through gen_mov_insv_1 function pointer.
14339 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
14340 gen_truncxf<mode>2 through gen_truncxf function pointer.
14341 (remainder<mode>3): Ditto.
14342 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
14343 (allocate_stack): Call gen_allocate_stack_worker_64 or
14344 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
14345 function pointer.
14346 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
14347 function pointer.
14348
14349 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
14350
14351 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
14352 operand constraint instead of <r><i>m.
14353
14354 2010-07-06 Richard Guenther <rguenther@suse.de>
14355
14356 PR middle-end/44828
14357 * convert.c (convert_to_integer): Watch out for overflowing
14358 MULT_EXPR as well.
14359
14360 2010-07-05 Jan Hubicka <jh@suse.cz>
14361
14362 * lto-streamer.c (write_symbol_vec): Rename to ...
14363 (write_symbol) ... this one; write only symbol given and when
14364 present in cache. Sanity check that what is defined is present
14365 in cgraph/varpool with body/finalized decl.
14366 (write_symbols_of_kind): Remove.
14367 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
14368 pairs to produce symtab.
14369 (produce_asm_for_decls): Update call of produce_symtab; don't do so
14370 when doing WPA streaming.
14371
14372 2010-07-05 Jan Hubicka <jh@suse.cz>
14373
14374 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
14375 function is still available to fold into.
14376
14377 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
14378
14379 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
14380 * function.h (struct_function): Change type of local_decls field
14381 to a VEC.
14382 (add_local_decl): New function.
14383 (FOR_EACH_LOCAL_DECL): New macro.
14384 * cfgexpand.c (init_vars_expansion): Adjust for new type of
14385 cfun->local_decls.
14386 (estimated_stack_frame_size): Likewise.
14387 (expand_used_vars): Likewise.
14388 * cgraphbuild.c (build_cgraph_edges): Likewise.
14389 * function.c (instantiate_decls_1): Likewise.
14390 * ipa-struct-reorg.c (build_data_structure): Likewise.
14391 * ipa-type-escape.c (analyze_function): Likewise.
14392 * lto-streamer-in.c (input_function): Likewise.
14393 * lto-streamer-out.c (output_function): Likewise.
14394 * tree-ssa-live.c (remove_unused_locals): Likewise.
14395 * tree.c (free_lang_data_in_decl): Likewise.
14396 (find_decls_types_in_node): Likewise.
14397 * omp-low.c (remove_exit_barrier): Likewise.
14398 (expand_omp_taskreg): Likewise.
14399 (list2chain): Rename to...
14400 (vec2chain): ...this. Adjust.
14401 * cgraphunit.c (assemble_thunk): Call add_local_decl.
14402 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
14403 * gimple-low.c (record_vars_into): Likewise.
14404 * tree-inline.c (remap_decls): Likewise.
14405 (declare_return_variable): Likewise.
14406 (declare_inline_vars): Likewise.
14407 (copy_forbidden): Adjust for new type of cfun->local_decls.
14408 (add_local_variables): New function.
14409 (expand_call_inline): Call it.
14410 (tree_function_versioning): Likewise.
14411
14412 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
14413
14414 AVX Programming Reference (June, 2010)
14415 * config/i386/cpuid.h (bit_F16C): New.
14416 (bit_RDRND): Likewise.
14417 (bit_FSGSBASE): Likewise.
14418
14419 * config/i386/i386-builtin-types.def: Add
14420 "DEF_FUNCTION_TYPE (UINT16)", function types for
14421 float16 <-> float conversions and
14422 "DEF_FUNCTION_TYPE (VOID, UINT64)".
14423
14424 * config/i386/i386-c.c (ix86_target_macros_internal): Support
14425 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
14426 OPTION_MASK_ISA_F16C.
14427
14428 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
14429 (OPTION_MASK_ISA_RDRND_SET): Likewise.
14430 (OPTION_MASK_ISA_F16C_SET): Likewise.
14431 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
14432 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
14433 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
14434 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
14435 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
14436 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
14437 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
14438 (override_options): Handle them.
14439 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
14440 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
14441 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
14442 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
14443 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
14444 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
14445 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
14446 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
14447 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
14448 (bdesc_args): Likewise.
14449 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
14450 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
14451 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
14452 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
14453 Handle non-memory store.
14454
14455 * config/i386/i386.h (TARGET_FSGSBASE): New.
14456 (TARGET_RDRND): Likewise.
14457 (TARGET_F12C): Likewise.
14458
14459 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
14460 (UNSPEC_VCVTPS2PH): Likewise.
14461 (UNSPECV_RDFSBASE): Likewise.
14462 (UNSPECV_RDGSBASE): Likewise.
14463 (UNSPECV_WRFSBASE): Likewise.
14464 (UNSPECV_WRGSBASE): Likewise.
14465 (UNSPECV_RDRAND): Likewise.
14466 (rdfsbase<mode>): Likewise.
14467 (rdgsbase<mode>): Likewise.
14468 (wrfsbase<mode>): Likewise.
14469 (wrgsbase<mode>): Likewise.
14470 (rdrand<mode>): Likewise.
14471
14472 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
14473
14474 * config/i386/immintrin.h (_rdrand_u16): New.
14475 (_rdrand_u32): Likewise.
14476 (_readfsbase_u32): Likewise.
14477 (_readfsbase_u64): Likewise.
14478 (_readgsbase_u32): Likewise.
14479 (_readgsbase_u64): Likewise.
14480 (_writefsbase_u32): Likewise.
14481 (_writefsbase_u64): Likewise.
14482 (_writegsbase_u32): Likewise.
14483 (_writegsbase_u64): Likewise.
14484 (_rdrand_u64): Likewise.
14485 (_cvtsh_ss): Likewise.
14486 (_mm_cvtph_ps): Likewise.
14487 (_mm256_cvtph_ps): Likewise.
14488 (_cvtss_sh): Likewise.
14489 (_mm_cvtps_ph): Likewise.
14490 (_mm256_cvtps_ph): Likewise.
14491
14492 * config/i386/sse.md (vcvtph2ps): New.
14493 (*vcvtph2ps_load): Likewise.
14494 (vcvtph2ps256): Likewise.
14495 (vcvtps2ph): Likewise.
14496 (*vcvtps2ph): Likewise.
14497 (*vcvtps2ph_store): Likewise.
14498 (vcvtps2ph256): Likewise.
14499
14500 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
14501
14502 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
14503
14504 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
14505
14506 PR bootstrap/44512
14507 * genenums.c (main): Output include of insn-constants.h
14508 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
14509
14510 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
14511
14512 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
14513 (override_options): Initialize it.
14514 (ix86_expand_prologue): Use it.
14515
14516 2010-07-05 Jakub Jelinek <jakub@redhat.com>
14517
14518 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
14519
14520 2010-07-05 Anatoly Sokolov <aesok@post.ru>
14521
14522 * double-int.h (fit_double_type): Remove declaration.
14523 * double-int.c (fit_double_type): Remove function.
14524 * tree.h (int_fits_type_p): Adjust prototype.
14525 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
14526 instead of fit_double_type.
14527 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
14528 instead of fit_double_type and build_int_cst_wide.
14529 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
14530 instead of fit_double_type and build_int_cst_wide.
14531 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
14532 of fit_double_type.
14533
14534 2010-07-05 Jan Hubicka <jh@suse.cz>
14535
14536 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
14537 in_other_partition.
14538 * lto-cgraph.c (referenced_from_other_partition_p,
14539 reachable_from_other_partition_p): Use in_other_partition flags.
14540 (output_node, output_varpool_node): COMDAT nodes always have private
14541 copies and thus are never used from other partition.
14542
14543 2010-07-05 Anatoly Sokolov <aesok@post.ru>
14544
14545 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
14546 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
14547 * config/ia64/ia64.c Include reload.h.
14548 (ia64_memory_move_cost): New function.
14549 (TARGET_MEMORY_MOVE_COST): Define.
14550 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
14551 memory_move_cost.
14552
14553 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
14554
14555 PR middle-end/42505
14556 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
14557 comments about cost model.
14558 (try_add_cand_for): Add second strategy for choosing initial set
14559 based on original IVs, controlled by ORIGINALP argument.
14560 (get_initial_solution): Add ORIGINALP argument.
14561 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
14562 (find_optimal_iv_set): Try two different strategies for choosing
14563 the IV set, and return the one with lower cost.
14564
14565 2010-07-05 Richard Guenther <rguenther@suse.de>
14566
14567 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
14568
14569 2010-07-05 Richard Guenther <rguenther@suse.de>
14570
14571 * tree.c (reference_alias_ptr_type): New function.
14572 * tree.h (reference_alias_ptr_type): Declare.
14573 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
14574 allow non-TARGET_MEM_REF new refs.
14575 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
14576 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
14577 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
14578 (create_mem_ref): Get alias pointer type. Adjust calls to
14579 create_mem_ref_raw.
14580 (maybe_fold_tmr): Likewise.
14581 * tree-flow.h (create_mem_ref): Adjust prototype.
14582
14583 2010-07-05 Jakub Jelinek <jakub@redhat.com>
14584
14585 PR c++/44808
14586 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
14587 *from_p is VAR_DECL.
14588
14589 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
14590
14591 * tree.h (build_call_list): Remove.
14592 * tree.c (build_call_list): Remove.
14593
14594 2010-07-05 Richard Guenther <rguenther@suse.de>
14595
14596 * double-int.h (double_int_sub): Declare.
14597 * double-int.c (double_int_sub): New function.
14598 * dwarf2out.c (field_byte_offset): Use it.
14599 * fixed-value.c (do_fixed_add): Likewise.
14600 (do_fixed_multiply): Likewise.
14601 (do_fixed_divide): Likewise.
14602 * tree-predcom.c (add_ref_to_chain): Likewise.
14603 (determine_roots_comp): Likewise.
14604 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14605
14606 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
14607
14608 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
14609 implementations.
14610
14611 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
14612
14613 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
14614 * arm-modes.def (CC_NOTB): Don't define.
14615 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
14616 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
14617 (LTUGEU): New code_iterator.
14618 (cnb, optab): New corresponding code_attrs.
14619 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
14620 to canonical form. Operands 1 and 2 are commutative. Parametrize
14621 using LTUGEU.
14622 (addsi3_carryin_shift_<optab>): Likewise.
14623 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
14624 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
14625 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
14626 (subsi3_compare): Renamed from subsi3_compare0_c.
14627 Change CC_NOTB to CC.
14628 (arm_subsi3_insn): Allow constants for operand 0.
14629 (compare_scc peephole for eq case): New.
14630 (compare_scc splitters): Change CC_NOTB to CC.
14631
14632 2010-07-05 Richard Guenther <rguenther@suse.de>
14633
14634 * tree-ssa-loop-im.c (for_each_index): Do not handle
14635 ALIGN_INDIRECT_REF.
14636 (gen_lsm_tmp_name): Likewise.
14637 * tree-dump.c (dequeue_and_dump): Likewise.
14638 * tree-pretty-print.c (dump_generic_node): Likewise.
14639 (op_code_prio): Likewise.
14640 (op_symbol_code): Likewise.
14641 * tree.c (staticp): Likewise.
14642 (build1_stat): Likewise.
14643 * tree.h (INDIRECT_REF_P): Likewise.
14644 * fold-const.c (maybe_lvalue_p): Likewise.
14645 (operand_equal_p): Likewise.
14646 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14647 (ao_ref_init_from_vn_reference): Likewise.
14648 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
14649 (find_interesting_uses_address): Likewise.
14650 * dwarf2out.c (loc_list_from_tree): Likewise.
14651 * gimplify.c (gimplify_expr): Likewise.
14652 * tree-eh.c (tree_could_trap_p): Likewise.
14653 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14654 * cfgexpand.c (expand_debug_expr): Likewise.
14655 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
14656 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
14657 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
14658 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
14659 * tree-ssa-operands.c (get_expr_operands): Likewise.
14660 * expr.c (safe_from_p): Likewise.
14661 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
14662 * tree-vect-data-refs.c (vect_setup_realignment): Build
14663 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
14664 * tree-vect-stmts.c (vectorizable_load): Likewise.
14665 * tree.def (ALIGN_INDIRECT_REF): Remove.
14666
14667 2010-07-05 Richard Guenther <rguenther@suse.de>
14668
14669 PR tree-optimization/44784
14670 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
14671 for inserted stmts.
14672 (find_or_generate_expression): Fix SCCVN insertion check.
14673
14674 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
14675
14676 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
14677 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
14678 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
14679 directives.
14680
14681 2010-07-05 Ira Rosen <irar@il.ibm.com>
14682
14683 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
14684 statements that are not vectorized.
14685 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
14686 in INSIDE_COST.
14687
14688 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
14689
14690 PR bootstrap/44820
14691 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
14692
14693 2010-07-05 Richard Guenther <rguenther@suse.de>
14694
14695 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
14696 RESULT_DECLs properly.
14697
14698 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
14699
14700 PR rtl-optimization/44695
14701 * config/i386/i386.md (extract_code): Removed.
14702 (<u>divmodqi4): Likewise.
14703 (divmodqi4): New.
14704 (udivmodqi4): Likewise.
14705 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
14706 (udivmodhiqi3): Likewise.
14707
14708 2010-07-04 Jan Hubicka <jh@suse.cz>
14709
14710 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
14711
14712 2010-07-04 Jan Hubicka <jh@suse.cz>
14713
14714 * cgraphunit.c (init_cgraph): Only initialize dump file if it
14715 is not already initialized.
14716
14717 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
14718
14719 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
14720 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
14721 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
14722 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
14723 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
14724 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
14725 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
14726 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
14727 (sync_new_nand_optab): Redefine as macros.
14728 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
14729 Delete.
14730 (direct_optab_index): New enum.
14731 (direct_optab_d): New structure.
14732 (direct_optab): New typedef.
14733 (direct_optab_table): Declare.
14734 (direct_optab_handler, set_direct_optab_handler): New functions.
14735 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
14736 (sync_lock_release_optab): New macros.
14737 * optabs.c (direct_optab_table): New variable.
14738 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
14739 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
14740 cmpstr_optab and cmpstrn_optab.
14741 (emit_conditional_move): Likewise for movcc_optab.
14742 (can_conditionally_move_p): Likewise for movcc_gen_code.
14743 (init_insn_codes): Clear direct_optab_table.
14744 (init_optabs): Don't initialize the new "direct optabs" here.
14745 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
14746 vcond_gen_code.
14747 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
14748 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
14749 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
14750 (expand_sync_operation): Likewise other sync_*_optabs.
14751 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
14752 to sync_compare_and_swap_optab.
14753 (expand_sync_lock_test_and_set): Use direct_optab_handler for
14754 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
14755 to the names of both.
14756 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
14757 cmpstr_optab and cmpstrn_optab.
14758 (expand_builtin_lock_release): Likewise sync_lock_release.
14759 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
14760 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
14761 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
14762 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
14763 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
14764 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
14765 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
14766 (sync_lock_test_and_set, sync_lock_release): Delete.
14767 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
14768 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
14769 * genopinit.c (optabs): Use set_direct_optab_handler for the new
14770 macro optabs.
14771 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
14772 the "optab" local variable. Use direct_optab_handler for optab and
14773 sync_compare_and_swap_optab.
14774 * reload1.c (reload_in_optab, reload_out_optab): Delete.
14775 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
14776 reload_in_optab and reload_out_optab.
14777 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
14778 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
14779 * config/pa/pa.c (pa_secondary_reload): Likewise.
14780 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
14781 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
14782 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
14783 (VMSupportsCS8_builtin): Likewise.
14784
14785 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
14786
14787 * optabs.h (optab_handlers): Change type of insn_code to int.
14788 (optab_handler, set_optab_handler, convert_optab_handler)
14789 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
14790 CODE_FOR_nothing".
14791 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
14792 (init_insn_codes): Zero both the above arrays.
14793 (init_optabs): Never call init_insn_codes first time around.
14794
14795 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
14796
14797 * optabs.h (optab_handler, convert_optab_handler): Turn into
14798 inline functions that return an insn code.
14799 (set_optab_handler, set_convert_optab_handler): New functions.
14800 * builtins.c: Replace optab_handler(X)->insn_code with
14801 optab_handler or set_optab_handler thoughout. Likewise
14802 convert_optab_handler(X)->insn_code with convert_optab_handler
14803 and set_convert_optab_handler.
14804 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
14805 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
14806 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
14807 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14808 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
14809 config/spu/spu.c: Likewise.
14810
14811 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
14812
14813 PR target/44531
14814 * config.gcc (sh*-*-*): Use regular expressions instead of
14815 the 'i' modifier for sed substitutions.
14816
14817 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
14818
14819 * gimple.c (gimple_body): Comments added.
14820
14821 2010-07-04 Richard Guenther <rguenther@suse.de>
14822
14823 PR middle-end/44809
14824 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
14825 of an INDIRECT_REF.
14826
14827 2010-07-04 Richard Guenther <rguenther@suse.de>
14828
14829 PR tree-optimization/44479
14830 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
14831 extra SSA name copy statements which preserves points-to
14832 information.
14833 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14834 Copy points-to information for all pointers. Properly handle
14835 MEM_REFs.
14836 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
14837 copy statements.
14838 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
14839 dependency.
14840
14841 2010-07-04 Richard Guenther <rguenther@suse.de>
14842
14843 PR middle-end/44785
14844 * tree-inline.c (initialize_inlined_parameters): Do not
14845 re-use pointer-map slot over remap_type call.
14846
14847 2010-07-04 Richard Guenther <rguenther@suse.de>
14848
14849 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
14850
14851 2010-07-04 Richard Guenther <rguenther@suse.de>
14852
14853 PR tree-optimization/44656
14854 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
14855 again after value-replacing in the defintions lhs.
14856
14857 2010-07-04 Ira Rosen <irar@il.ibm.com>
14858 Revital Eres <eres@il.ibm.com>
14859
14860 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
14861 Document new arguments.
14862 * doc/tm.texi: Regenerate.
14863 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
14864 Handle unaligned store.
14865 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
14866 * target.def (builtin_vectorization_cost): Add new arguments.
14867 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
14868 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
14869 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
14870 (vect_vfa_segment_size): Fix indentation.
14871 * tree-vectorizer.h (struct _vect_peel_info): New.
14872 (struct _vect_peel_extended_info): New.
14873 (struct _loop_vec_info): Add new field for peeling hash table and a
14874 macro for its access.
14875 (VECT_MAX_COST): Define.
14876 (vect_get_load_cost): Declare.
14877 (vect_get_store_cost, vect_get_known_peeling_cost,
14878 vect_get_single_scalar_iteraion_cost): Likewise.
14879 (vect_supportable_dr_alignment): Add new argument.
14880 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
14881 field.
14882 (destroy_loop_vec_info): Free peeling hash table.
14883 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
14884 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
14885 vect_analyze_slp. Fix indentation.
14886 (vect_get_single_scalar_iteraion_cost): New function.
14887 (vect_get_known_peeling_cost): Likewise.
14888 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
14889 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
14890 statement. Move outside cost calculation inside unknown peeling case.
14891 Call vect_get_known_peeling_cost for known amount of peeling.
14892 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
14893 reference to the print message of forced alignment.
14894 (vect_verify_datarefs_alignment): Update call to
14895 vect_supportable_dr_alignment.
14896 (vect_get_data_access_cost): New function.
14897 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
14898 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
14899 vect_peeling_hash_choose_best_peeling): Likewise.
14900 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
14901 to store all the accesses in the loop and find best possible access to
14902 align using peeling for known alignment case. For unknown alignment
14903 check if stores are preferred or if peeling is worthy.
14904 (vect_find_same_alignment_drs): Analyze pairs of loads too.
14905 (vect_supportable_dr_alignment): Add new argument and check aligned
14906 accesses according to it.
14907 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
14908 (cost_for_stmt): Call vect_get_stmt_cost.
14909 (vect_model_simple_cost): Likewise.
14910 (vect_model_store_cost): Call vect_get_stmt_cost. Call
14911 vect_get_store_cost to calculate the cost of the statement.
14912 (vect_get_store_cost): New function.
14913 (vect_model_load_cost): Call vect_get_stmt_cost. Call
14914 vect_get_load_cost to calculate the cost of the statement.
14915 (vect_get_load_cost): New function.
14916 (vectorizable_store): Update call to vect_supportable_dr_alignment.
14917 (vectorizable_load): Likewise.
14918 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
14919 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
14920 arguments. Handle unaligned store.
14921 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
14922 (rs6000_builtin_support_vector_misalignment): Return true for word and
14923 double word alignments for VSX.
14924 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
14925 vect_supportable_dr_alignment and builtin_vectorization_cost.
14926
14927 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14928
14929 PR target/44597
14930 * config/pa/predicates.md (prefetch_cc_operand): Remove.
14931 (prefetch_nocc_operand): Likewise.
14932 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
14933 (prefetch_20): New insn.
14934 (prefetch_cc): Remove.
14935 (prefetch_nocc): Likewise.
14936
14937 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
14938
14939 * expr.c (vector_mode_valid_p): Move to c-common.c.
14940 * expr.h (vector_mode_valid_p): Do not declare here.
14941 * system.h: Poison GCC_EXPR_H in front-ends.
14942 * Makefile.in: Update dependencies.
14943
14944 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14945
14946 PR target/44705
14947 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
14948
14949 2010-07-03 Jan Hubicka <jh@suse.cz>
14950
14951 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
14952 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
14953 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
14954 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
14955 Likewise.
14956
14957 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
14958 Update timevars.V
14959 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
14960 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
14961 TV_IPA_LTO_DECL_OUT): New.
14962 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
14963
14964 2010-07-03 Jan Hubicka <jh@suse.cz>
14965
14966 * ipa-inline.c (update_edge_key): Break out from ...
14967 update_callers_keys): ... here;
14968 (update_callee_keys): Update only the edges from caller to callee.
14969 (update_all_calle_keys): Do what update_calle_keys did.
14970 (decide_inlining_of_small_functions): Avoid recomputing of all
14971 callees when badness increase.
14972
14973 2010-07-03 Jie Zhang <jie@codesourcery.com>
14974
14975 * config/arm/arm.c (arm_attr_length_move_neon): New.
14976 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
14977 * config/arm/neon.md (define_mode_attr V_slen): Remove.
14978 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
14979 to compute length attribute.
14980
14981 2010-07-03 Jie Zhang <jie@codesourcery.com>
14982
14983 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
14984 as predicate for operand 1 and remove its constraint.
14985 * config/arm/predicates.md (vfp_register_operand): New.
14986 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
14987 (*push_fp_multi): Likewise.
14988
14989 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
14990
14991 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
14992
14993 2010-07-03 Jan Hubicka <jh@suse.cz>
14994
14995 * config/i386/i386.c (override_options): Revert accidental commit.
14996
14997 2010-07-02 Le-Chun Wu <lcwu@google.com>
14998
14999 PR c++/44128
15000 * doc/invoke.texi: Update documentation of -Wshadow.
15001
15002 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
15003 Julian Brown <julian@codesourcery.com>
15004 Sandra Loosemore <sandra@codesourcery.com>
15005
15006 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
15007 comparisons. Adjust to take both operands.
15008 (arm_select_cc_mode): Handle DImode comparisons.
15009 (arm_gen_compare_reg): Generate a scratch register for DImode
15010 comparisons which require one. Use xor for Thumb equality checks.
15011 (arm_const_double_by_immediates): New.
15012 (arm_print_operand): Allow 'Q' and 'R' for constants.
15013 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
15014 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
15015 arm_canonicalize_comparison.
15016 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
15017 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
15018 prototype.
15019 (arm_const_double_by_immediates): Declare.
15020 * config/arm/constraints.md (Di): New constraint.
15021 * config/arm/predicates.md (arm_immediate_di_operand)
15022 (arm_di_operand, cmpdi_operand): New.
15023 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
15024 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
15025 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
15026 (cstoredi4): Handle non-Cirrus also.
15027
15028 2010-07-02 Julian Brown <julian@codesourcery.com>
15029 Sandra Loosemore <sandra@codesourcery.com>
15030
15031 PR target/43703
15032 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
15033 (smax<mode>3): Disable for NEON float modes when
15034 flag_unsafe_math_optimizations is false.
15035 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
15036 (*mul<mode>3_neon)
15037 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
15038 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
15039 for NEON float modes when flag_unsafe_math_optimizations is false.
15040 (quad_halves_<code>v4sf): Only enable if
15041 flag_unsafe_math_optimizations is true.
15042 * doc/invoke.texi (ARM Options): Add note about floating point
15043 vectorization requiring -funsafe-math-optimizations.
15044
15045 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15046 Julian Brown <julian@codesourcery.com>
15047
15048 * config/arm/neon.md (UNSPEC_VABA): Delete.
15049 (UNSPEC_VABAL): Delete.
15050 (UNSPEC_VABS): Delete.
15051 (UNSPEC_VMUL_N): Delete.
15052 (adddi3_neon): New.
15053 (subdi3_neon): New.
15054 (mul<mode>3add<mode>_neon): Make the pattern named.
15055 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15056 (neon_vadd<mode>): Replace with define_expand, and move the remaining
15057 unspec parts...
15058 (neon_vadd<mode>_unspec): ...to this.
15059 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
15060 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
15061 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
15062 (neon_vaba<mode>): Rewrite in terms of vabd.
15063 (neon_vabal<mode>): Rewrite in terms of vabdl.
15064 (neon_vabs<mode>): Rewrite without unspec.
15065 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
15066 (*arm_subdi3): Likewise.
15067 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
15068 No_op attribute to disable assembly output checks.
15069 * config/arm/arm_neon.h: Regenerated.
15070 * doc/arm-neon-intrinsics.texi: Regenerated.
15071
15072 2010-07-02 Jan Hubicka <jh@suse.cz>
15073
15074 * ipa-split.c (split_function): For aggregate values, set the return
15075 slot optimization bit. When passing DECL_BY_REFERENCE, produce
15076 *<retval> = fncall.part ().
15077 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
15078
15079 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15080
15081 * config/arm/neon.md (UNSPEC_VAND): Delete.
15082 (UNSPEC_VBIC): Delete.
15083 (UNSPEC_VCLZ): Delete.
15084 (UNSPEC_VCNT): Delete.
15085 (UNSPEC_VEOR): Delete.
15086 (UNSPEC_VORN): Delete.
15087 (UNSPEC_VORR): Delete.
15088 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
15089 core registers too.
15090 (anddi3_neon): Likewise.
15091 (orndi3_neon): Likewise.
15092 (bicdi3_neon): Likewise.
15093 (xordi3_neon): Likewise.
15094 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
15095 rid of unspec and handle unused operand.
15096 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
15097 * config/arm/predicates.md (imm_for_neon_logic_operand):
15098 Require TARGET_NEON.
15099 (imm_for_neon_inv_logic_operand): Likewise.
15100 * config/arm/arm.md (define_split for logical_binary_operator):
15101 Disable for NEON registers.
15102 (anddi3): Add new define_expand, and rename the insn. Disable
15103 this insn for NEON, where anddi3_neon now applies.
15104 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
15105 (iordi3): As for anddi3.
15106 (xordi3): Likewise.
15107 * config/arm/neon.ml (Vand): Split DImode variants and mark them
15108 as No_op to disable testing for exact instruction match.
15109 (Vorr): Likewise.
15110 (Veor): Likewise.
15111 (Vbic): Likewise.
15112 (Vorn): Likewise.
15113 * config/arm/arm_neon.h: Regenerated.
15114 * doc/arm-neon-intrinsics.texi: Regenerated.
15115
15116 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15117
15118 * expr.h (emit_stack_probe): Declare.
15119 * explow.c (emit_stack_probe): Make global.
15120 (anti_adjust_stack_and_probe): Fix comments.
15121 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15122 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15123 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15124 * config/sparc/sparc.c: Include except.h.
15125 (sparc_emit_probe_stack_range): New function.
15126 (output_probe_stack_range): Likewise.
15127 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
15128 built-in stack checking is enabled.
15129 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
15130 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15131 (probe_stack_range): New insn.
15132
15133 2010-07-02 Richard Guenther <rguenther@suse.de>
15134
15135 PR target/43958
15136 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
15137 for argument alignment.
15138
15139 2010-07-02 Jan Hubicka <jh@suse.cz>
15140
15141 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
15142 walk backwards from entry_bb to check only those basic block of header
15143 that might lead to execution of split part.
15144 (consider_split) ... here.
15145 (find_return_bb): Allow assignment in return BB.
15146 (find_retval): New.
15147 (split_function): Fix name of cloned function; take care of updating
15148 return value in return_bb containing move.
15149
15150 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
15151
15152 PR target/44771
15153 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
15154 used variable insn.
15155
15156 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
15157
15158 * implicit-zee.c (combine_reaching_defs): Fix long lines.
15159 (is_set_with_extension_DI): Delete.
15160 (struct zero_extend_info): New structure.
15161 (add_removable_zero_extend): New function.
15162 (find_removable_zero_extends): Use note_stores to find SETs.
15163 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
15164
15165 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15166
15167 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
15168 is_miss_rate_acceptable. Pull total_positions computation
15169 out of the loops. Early return if miss_positions exceeds
15170 the acceptable threshold.
15171 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
15172 is_miss_rate_acceptable after renaming of compute_miss_rate.
15173
15174 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
15175
15176 PR middle-end/44576
15177 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
15178 of 1000) for miss rate if the address diference is greater than or
15179 equal to the cache line size (the two reference will never hit the
15180 same cache line).
15181
15182 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
15183
15184 PR target/42835
15185 * config/arm/arm-modes.def (CC_NOTB): New mode.
15186 * config/arm/arm.c (get_arm_condition_code): Handle it.
15187 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
15188 * config/arm/arm.md (subsi3_compare0_c): New pattern.
15189 (compare_scc): Now a define_and_split. Add a number of extra
15190 splitters before it.
15191
15192 PR target/42172
15193 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
15194 and ZERO_EXTEND.
15195 (arm_rtx_costs_1): Likewise.
15196 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
15197 * config/arm/arm.md (is_arch6): New attribute.
15198 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
15199 extendqisi2): Tighten the code somewhat, avoiding invalid
15200 RTL to occur in the expander patterns.
15201 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
15202 (thumb1_zero_extendhisi2_v6): Delete.
15203 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
15204 (thumb1_extendhisi2_v6): Delete.
15205 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
15206 (thumb1_extendqisi2_v6): Delete.
15207 (zero_extendhisi2 for register input splitter): New.
15208 (zero_extendqisi2 for register input splitter): New.
15209 (thumb1_extendhisi2 for register input splitter): New.
15210 (extendhisi2 for register input splitter): New.
15211 (extendqisi2 for register input splitter): New.
15212 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
15213 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
15214 and add support for a register alternative requiring a split.
15215 (thumb1_zero_extendqisi2): Likewise.
15216 (arm_zero_extendqisi2): Likewise.
15217 (arm_extendhisi2): Likewise.
15218 (arm_extendqisi2): Likewise.
15219
15220 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15221
15222 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
15223 instead of an unspec.
15224 (neon_expand_vector_init): Likewise.
15225 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
15226 (UNSPEC_VDUP_LANE): Delete.
15227 (UNSPEC VDUP_N): Delete.
15228 (UNSPEC_VGET_HIGH): Delete.
15229 (UNSPEC_VGET_LANE): Delete.
15230 (UNSPEC_VGET_LOW): Delete.
15231 (UNSPEC_VMVN): Delete.
15232 (UNSPEC_VSET_LANE): Delete.
15233 (V_double_vector_mode): New.
15234 (vec_set<mode>_internal): Make code emitted match that for the
15235 corresponding intrinsics.
15236 (vec_setv2di_internal): Likewise.
15237 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
15238 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
15239 (neon_vset_lane<mode>): Combine double and quad patterns and
15240 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
15241 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
15242 (neon_vdup_n<mode>): Rewrite RTL without unspec.
15243 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
15244 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
15245 with neon_vdup_lanev2di, adjusting the pattern from the latter
15246 to be predicable for consistency.
15247 (neon_vdup_lane<mode>_internal): New.
15248 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
15249 to avoid using an unspec.
15250 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
15251 (neon_vdup_lanev2di): Turn into a define_expand.
15252 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
15253 (neon_vget_high<mode>): Replace with....
15254 (neon_vget_highv16qi): New pattern using canonical RTL.
15255 (neon_vget_highv8hi): Likewise.
15256 (neon_vget_highv4si): Likewise.
15257 (neon_vget_highv4sf): Likewise.
15258 (neon_vget_highv2di): Likewise.
15259 (neon_vget_low<mode>): Replace with....
15260 (neon_vget_lowv16qi): New pattern using canonical RTL.
15261 (neon_vget_lowv8hi): Likewise.
15262 (neon_vget_lowv4si): Likewise.
15263 (neon_vget_lowv4sf): Likewise.
15264 (neon_vget_lowv2di): Likewise.
15265
15266 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
15267 test for this emitting vmov.
15268 (Vset_lane): Likewise.
15269 (Vdup_n): Likewise.
15270 (Vmov_n): Likewise.
15271
15272 * doc/arm-neon-intrinsics.texi: Regenerated.
15273
15274 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
15275
15276 * config/arm/neon.md (vec_extractv2di): Correct error in register
15277 numbering to reconcile with neon_vget_lanev2di.
15278
15279 2010-07-02 Richard Guenther <rguenther@suse.de>
15280
15281 * tree-ssa-structalias.c (pt_solution_set_var): New function.
15282 * tree-ssa-alias.h (pt_solution_set_var): Declare.
15283 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
15284 points-to information.
15285
15286 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
15287
15288 * config/s390/s390.c (override_options): Adopt prefetching
15289 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
15290
15291 2010-07-02 Jan Hubicka <jh@suse.cz>
15292
15293 * df-problems.c (df_kill_notes): Do not collect dead notes.
15294 (df_set_note): Just call add_reg_note.
15295 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
15296 df_create_unused_note): Do not deal with lists of old notes.
15297 (df_note_bb_compute): Likewise.
15298
15299 2010-07-02 Richard Guenther <rguenther@suse.de>
15300
15301 * tree-ssa-structalias.c (find_func_aliases): Handle
15302 pointer alignment via BIT_AND_EXPR.
15303 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
15304
15305 2010-07-02 Richard Guenther <rguenther@suse.de>
15306
15307 * tree-data-ref.c (initialize_data_dependence_relation): Handle
15308 mismatching number of dimensions properly.
15309
15310 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15311
15312 PR target/44707
15313 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
15314 (lo_sum (high ...) ...) patterns generated by earlier passes.
15315
15316 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15317
15318 * doc/install.texi (Prerequisites): Document Perl requirement on
15319 Solaris 2.
15320 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
15321
15322 2010-07-02 Richard Guenther <rguenther@suse.de>
15323
15324 PR middle-end/44777
15325 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
15326
15327 2010-07-02 Jan Hubicka <jh@suse.cz>
15328
15329 PR middle-end/44706
15330 * predict.c (predict_paths_for_bb): Handle case when control dependence
15331 BB has only abnormal edges.
15332
15333 2010-07-02 Richard Guenther <rguenther@suse.de>
15334
15335 PR tree-optimization/44748
15336 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
15337 the embedded conversion in MEM_REFs.
15338
15339 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
15340
15341 * reload.c: Include toplev.h.
15342 * recog.c: Likewise.
15343 * Makefile.in: Adjust dependencies.
15344
15345 2010-07-01 Jakub Jelinek <jakub@redhat.com>
15346
15347 PR debug/44694
15348 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
15349 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
15350
15351 2010-07-01 Richard Guenther <rguenther@suse.de>
15352
15353 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
15354 types for offsets.
15355
15356 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
15357
15358 PR target/44732
15359 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
15360 Fix argument types.
15361
15362 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
15363
15364 PR target/44727
15365 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15366 Make sure operand 0 dies.
15367
15368 2010-07-01 Richard Guenther <rguenther@suse.de>
15369
15370 PR middle-end/42834
15371 PR middle-end/44468
15372 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
15373 * doc/generic.texi (References to storage): Document MEM_REF.
15374 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
15375 (print_call_name): Likewise.
15376 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
15377 (build_simple_mem_ref_loc): New function.
15378 (mem_ref_offset): Likewise.
15379 * tree.h (build_simple_mem_ref_loc): Declare.
15380 (build_simple_mem_ref): Define.
15381 (mem_ref_offset): Declare.
15382 * fold-const.c: Include tree-flow.h.
15383 (operand_equal_p): Handle MEM_REF.
15384 (build_fold_addr_expr_with_type_loc): Likewise.
15385 (fold_comparison): Likewise.
15386 (fold_unary_loc): Fold
15387 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
15388 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
15389 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
15390 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
15391 (ptr_deref_may_alias_ref_p_1): Likewise.
15392 (ao_ref_base_alias_set): Properly differentiate base object for
15393 offset and TBAA.
15394 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
15395 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
15396 (indirect_refs_may_alias_p): Likewise.
15397 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
15398 chasing code.
15399 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
15400 (call_may_clobber_ref_p_1): Likewise.
15401 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
15402 * expr.c (expand_assignment): Handle MEM_REF.
15403 (store_expr): Handle MEM_REFs from STRING_CSTs.
15404 (store_field): If expanding a MEM_REF of a non-addressable
15405 decl use bitfield operations.
15406 (get_inner_reference): Handle MEM_REF.
15407 (expand_expr_addr_expr_1): Likewise.
15408 (expand_expr_real_1): Likewise.
15409 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
15410 * alias.c (ao_ref_from_mem): Handle MEM_REF.
15411 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
15412 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
15413 (dr_analyze_indices): Likewise.
15414 (dr_analyze_alias): Likewise.
15415 (object_address_invariant_in_loop_p): Likewise.
15416 * gimplify.c (mark_addressable): Handle MEM_REF.
15417 (gimplify_cond_expr): Build MEM_REFs.
15418 (gimplify_modify_expr_to_memcpy): Likewise.
15419 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
15420 (gimple_fold_indirect_ref): Adjust.
15421 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
15422 * tree.def (MEM_REF): New tree code.
15423 * tree-dfa.c: Include toplev.h.
15424 (get_ref_base_and_extent): Handle MEM_REF.
15425 (get_addr_base_and_unit_offset): New function.
15426 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
15427 * gimple-fold.c (may_propagate_address_into_dereference): Handle
15428 MEM_REF.
15429 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
15430 accesses if the array has just one dimension. Remove always true
15431 parameter. Do not require type compatibility here.
15432 (maybe_fold_offset_to_component_ref): Remove.
15433 (maybe_fold_stmt_indirect): Remove.
15434 (maybe_fold_reference): Remove INDIRECT_REF handling.
15435 Fold back to non-MEM_REF.
15436 (maybe_fold_offset_to_address): Simplify. Deal with type
15437 mismatches here.
15438 (maybe_fold_reference): Likewise.
15439 (maybe_fold_stmt_addition): Likewise. Also handle
15440 &ARRAY + I in addition to &ARRAY[0] + I.
15441 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
15442 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
15443 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
15444 * tree-ssa.c (useless_type_conversion_p): Make most pointer
15445 conversions useless.
15446 (warn_uninitialized_var): Handle MEM_REF.
15447 (maybe_rewrite_mem_ref_base): New function.
15448 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
15449 to SSA form.
15450 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
15451 INDIRECT_REF handling.
15452 (copy_tree_body_r): Handle MEM_REF.
15453 * gimple.c (is_gimple_addressable): Adjust.
15454 (is_gimple_address): Likewise.
15455 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
15456 invariant base are invariant.
15457 (is_gimple_min_lval): Adjust.
15458 (is_gimple_mem_ref_addr): New function.
15459 (get_base_address): Handle MEM_REF.
15460 (count_ptr_derefs): Likewise.
15461 (get_base_loadstore): Likewise.
15462 * gimple.h (is_gimple_mem_ref_addr): Declare.
15463 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
15464 * tree-cfg.c (verify_address): New function, split out from ...
15465 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
15466 the address operand of MEM_REFs. Verify MEM_REFs. Reject
15467 INDIRECT_REFs.
15468 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
15469 INDIRECT_REF. Allow conversions.
15470 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
15471 a register does not change its size.
15472 (verify_types_in_gimple_reference): Verify MEM_REF.
15473 (verify_gimple_assign_single): Disallow INDIRECT_REF.
15474 Handle MEM_REF.
15475 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
15476 New.
15477 (mark_address_taken): Handle MEM_REF.
15478 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
15479 (get_asm_expr_operands): Pass opf_not_non_addressable.
15480 (get_expr_operands): Handle opf_[not_]non_addressable.
15481 Handle MEM_REF. Remove INDIRECT_REF handling.
15482 * tree-vrp.c (check_array_ref): Handle MEM_REF.
15483 (search_for_addr_array): Likewise.
15484 (check_array_bounds): Likewise.
15485 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
15486 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
15487 (ref_always_accessed_p): Likewise.
15488 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
15489 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
15490 Handle MEM_REF.
15491 * cgraphbuild.c (mark_load): Properly check for NULL result
15492 from get_base_address.
15493 (mark_store): Likewise.
15494 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
15495 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
15496 handling for MEM_REF.
15497 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
15498 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
15499 * builtins.c (stabilize_va_list_loc): Use the function ABI
15500 valist type if we couldn't canonicalize the argument type.
15501 Always dereference with the canonical va-list type.
15502 (maybe_emit_free_warning): Handle MEM_REF.
15503 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
15504 memmove to memcpy.
15505 * builtins.c (fold_builtin_memory_op): Use ref-all types
15506 for all memcpy foldings.
15507 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
15508 (build_outer_var_ref): Likewise.
15509 (scan_omp_1_op): Likewise.
15510 (lower_rec_input_clauses): Likewise.
15511 (lower_lastprivate_clauses): Likewise.
15512 (lower_reduction_clauses): Likewise.
15513 (lower_copyprivate_clauses): Likewise.
15514 (expand_omp_atomic_pipeline): Likewise.
15515 (expand_omp_atomic_mutex): Likewise.
15516 (create_task_copyfn): Likewise.
15517 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
15518 Remove old union trick. Initialize constant offsets.
15519 (ao_ref_init_from_vn_reference): Likewise. Do not handle
15520 INDIRECT_REF. Init base_alias_set properly.
15521 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
15522 (vn_reference_fold_indirect): Adjust for MEM_REFs.
15523 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
15524 for ARRAY_REFs.
15525 (may_insert): Remove.
15526 (visit_reference_op_load): Do not test may_insert.
15527 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
15528 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
15529 a field to store the constant offset this op applies.
15530 (run_scc_vn): Adjust prototype.
15531 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
15532 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
15533 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
15534 bother about volatile qualifiers on pointers.
15535 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
15536 * tree-ssa-loop-ivopts.c
15537 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
15538 (strip_offset_1): Likewise.
15539 (find_interesting_uses_address): Replace INDIRECT_REF handling with
15540 MEM_REF handling.
15541 (get_computation_cost_at): Likewise.
15542 * ipa-pure-const.c (check_op): Handle MEM_REF.
15543 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
15544 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
15545 and constants.
15546 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
15547 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
15548 (eliminate_local_variables_1): Likewise.
15549 (create_call_for_reduction_1): Likewise.
15550 (create_loads_for_reductions): Likewise.
15551 (create_loads_and_stores_for_name): Likewise.
15552 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
15553 (ssa_accessed_in_tree): Handle MEM_REF.
15554 (ssa_accessed_in_assign_rhs): Likewise.
15555 (update_type_size): Likewise.
15556 (analyze_accesses_for_call_stmt): Likewise.
15557 (analyze_accesses_for_assign_stmt): Likewise.
15558 (transform_access_sites): Likewise.
15559 (transform_allocation_sites): Likewise.
15560 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
15561 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15562 not handle INDIRECT_REF.
15563 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
15564 (cond_store_replacement): Likewise.
15565 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
15566 MEM_REF, no not handle INDIRECT_REFs.
15567 (insert_into_preds_of_block): Properly initialize avail.
15568 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
15569 for ARRAY_REFs. Properly handle reference lookups that
15570 require a bit re-interpretation.
15571 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
15572 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
15573 (build_ref_for_offset_1): Remove.
15574 (build_ref_for_offset): Build MEM_REFs.
15575 (gate_intra_sra): Disable for now.
15576 (sra_ipa_modify_expr): Handle MEM_REF.
15577 (ipa_early_sra_gate): Disable for now.
15578 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
15579 MEM_REF handling.
15580 (disqualify_base_of_expr): Likewise.
15581 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
15582 MEM_REF handling.
15583 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
15584 Use mem_ref_offset. Remove bogus folding.
15585 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
15586 (make_fancy_name_1): Add support for MEM_REF.
15587 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
15588 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
15589 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
15590 (compute_complex_ancestor_jump_func): Likewise.
15591 (ipa_analyze_virtual_call_uses): Likewise.
15592 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
15593 INDIRECT_REF folding with more generalized MEM_REF folding.
15594 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
15595 (forward_propagate_addr_into_variable_array_index): Also handle
15596 &ARRAY + I in addition to &ARRAY[0] + I.
15597 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
15598 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
15599 creates assignments with overlap.
15600 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
15601 (get_frame_field): Likewise.
15602 (get_nonlocal_debug_decl): Likewise.
15603 (convert_nonlocal_reference_op): Likewise.
15604 (struct nesting_info): Add mem_refs pointer-set.
15605 (create_nesting_tree): Allocate it.
15606 (convert_local_reference_op): Insert to be folded mem-refs.
15607 (fold_mem_refs): New function.
15608 (finalize_nesting_tree_1): Perform defered folding of mem-refs
15609 (free_nesting_tree): Free the pointer-set.
15610 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
15611 (vectorizable_load): Likewise.
15612 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
15613 (propagate_with_phi): Likewise.
15614 * tree-object-size.c (addr_object_size): Handle MEM_REFs
15615 instead of INDIRECT_REFs.
15616 (compute_object_offset): Handle MEM_REF.
15617 (plus_stmt_object_size): Handle MEM_REF.
15618 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
15619 for &MEM_REF.
15620 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
15621 (symbol_marked_for_renaming): Likewise.
15622 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
15623 (fold-const.o): Add $(TREE_FLOW_H).
15624 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
15625 (find_func_clobbers): Likewise.
15626 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
15627 (decompose_access): Likewise.
15628 (replace_field_acc): Likewise.
15629 (replace_field_access_stmt): Likewise.
15630 (insert_new_var_in_stmt): Likewise.
15631 (get_stmt_accesses): Likewise.
15632 (reorg_structs_drive): Disable.
15633 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
15634 (ix86_canonical_va_list_type): Likewise.
15635
15636 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
15637
15638 PR other/44566
15639 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
15640 * target.def (struct gcc_target): Replace enum reg_class with
15641 reg_class_t in hook argument / return types.
15642 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
15643 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
15644 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
15645 * targhooks.h (default_branch_target_register_class): Likewise.
15646 (default_ira_cover_classes, default_secondary_reload): Likewise.
15647 (default_memory_move_cost, default_register_move_cost): Likewise.
15648 * targhooks.c (default_branch_target_register_class): Likewise.
15649 (default_ira_cover_classes, default_secondary_reload): Likewise.
15650 (default_memory_move_cost, default_register_move_cost): Likewise.
15651 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
15652 * bt-load.c (branch_target_load_optimize): Likewise.
15653 * ira.c (setup_cover_and_important_classes): Likewise.
15654 * ira-costs.c (copy_cost): Likewise.
15655 * reload1.c (emit_input_reload_insns): Likewise.
15656 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15657 * config/frv/frv.c (frv_secondary_reload): Likewise.
15658 * config/s390/s390.c (s390_secondary_reload): Likewise.
15659 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
15660 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
15661 (ix86_register_move_cost): Likewise.
15662 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
15663 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
15664 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
15665 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
15666 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
15667 (rs6000_ira_cover_classes): Likewise.
15668 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
15669 * config/picochip/picochip-protos.h (picochip_secondary_reload):
15670 Likewise.
15671 * config/pa/pa.c (pa_secondary_reload): Likewise.
15672 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
15673 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
15674 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
15675 * doc/tm.texi: Regenerate.
15676
15677 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
15678
15679 PR bootstrrap/44726
15680 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
15681 use.
15682 (build_alias_set_optimal_p): Likewise.
15683 (build_base_obj_set_for_drs): Likewise.
15684
15685 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
15686
15687 * target.def: Remove comment about licensing problems of function
15688 declarations.
15689
15690 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
15691 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
15692 * doc/tm.texi: Regenerate.
15693
15694 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
15695 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
15696
15697 * target.def (enum_va_list_p): Use DEFHOOK.
15698 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
15699 Rename ptype to ptree.
15700 * doc/tm.texi: Regenerate.
15701
15702 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
15703 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
15704 * doc/tm.texi: Regenerate.
15705
15706 * target.def (memory_move_cost): Use DEFHOOK.
15707 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
15708 Rename regclass AKA class to rclass.
15709 * doc/tm.texi: Regenerate.
15710
15711 * target.def (pragma_parse): Use DEFHOOK.
15712 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
15713 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
15714 * doc/tm.texi: Regenerate.
15715
15716 * target.def (pass_by_reference): Use DEFHOOK.
15717 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
15718 * doc/tm.texi: Regenerate.
15719
15720 * target.def (resolve_overloaded_builtin): Rename params to arglist.
15721 Use DEFHOOK.
15722 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
15723 * doc/tm.texi: Regenerate.
15724
15725 * target.def (return_pops_args): Use DEFHOOK.
15726 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
15727 Rename stack-size to size.
15728 * doc/tm.texi: Regenerate.
15729
15730 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
15731 last-sched_cycle to last_clock, cur_cycle to clock.
15732 * doc/tm.texi.in: Use @hook.
15733 * doc/tm.texi: Regenerate.
15734
15735 * target.def (print_operand, print_operand_address): Update comment.
15736 (print_operand_punct_valid_p): Likewise.
15737
15738 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
15739
15740 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
15741 to rtl.h.
15742 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
15743 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
15744 * rtl-error.h: New.
15745 * regrename.c: Do not include toplev.h. Include rtl-error.h.
15746 * rtl-error.c: Likewise.
15747 * reload.c: Likewise.
15748 * recog.c: Likewise.
15749 * sel-sched.c: Likewise.
15750 * function.c: Likewise.
15751 * reg-stack.c: Likewise.
15752 * cfgrtl.c: Likewise.
15753 * reload1.c: Likewise.
15754 * final.c: Include rtl-error.
15755 * Makefile.in: Adjust dependencies.
15756
15757 2010-06-30 Jan Hubicka <jh@suse.cz>
15758
15759 PR middle-end/PR44706
15760 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
15761 to return the value.
15762
15763 2010-06-30 Michael Matz <matz@suse.de>
15764
15765 PR bootstrap/44699
15766 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
15767 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
15768 a gimple reg, attach the original VDEF to the last store in the
15769 sequence.
15770
15771 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
15772
15773 PR other/44034
15774 * config/darwin.c (darwin_override_options): Use renamed
15775 targetm.asm_out.emit_unwind_label.
15776
15777 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
15778
15779 PR tree-optimization/39799
15780 * tree-inline.c (remap_ssa_name): Initialize variable only if
15781 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15782
15783 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
15784
15785 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
15786
15787 2010-06-30 Richard Guenther <rguenther@suse.de>
15788
15789 PR target/44722
15790 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
15791 against oscillation with reverse peephole2.
15792
15793 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
15794
15795 PR target/44721
15796 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15797 Fix last commit.
15798
15799 2010-06-30 Nick Clifton <nickc@redhat.com>
15800
15801 * config/rx/rx-modes.def: New file.
15802 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
15803 (CC_REGNUM): Define.
15804 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
15805 register.
15806 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
15807 (SELECT_CC_MODE): Define.
15808 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
15809 (reg:CC CC_REG) instead of (cc0).
15810 (attr "cc"): Delete.
15811 (cbranchsi4): Do not split compare and branch here. Instead move
15812 it to...
15813 (cbranchsi4_<code>): ... here. New patterns.
15814 (cmpsi): Call rx-compare_redundant to find out if it is necessary
15815 to emit the compare instruction.
15816 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
15817 cc_status flags.
15818 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
15819 FIRST_PSEUDO_REGNUM.
15820 (rx_expand_prologue, rx_expand_epilogue): Likewise.
15821 (rx_notice_update_cc): Delete.
15822 (rx_cc_modes_compatible): New function.
15823 (flags_needed_for_conditional): New function.
15824 (flags_from_mode): New function.
15825 (rx_compare_redundant): New function - scans backwards through
15826 insn list to find out if condition flags are already set correctly.
15827 (TARGET_CC_MODES_COMPATIBLE): Define.
15828 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
15829
15830 * config/rx/rx.h (BRANCH_COST): Define.
15831 (REGISTER_MOVE_COST): Define.
15832 * config/rx/predicates (rx_source_operand): Allow all constant types.
15833 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
15834 (tstsi4): New pattern.
15835 * config/rx/rx.c (rx_memory_move_cost): Define.
15836 (TARGET_MEMORY_MOVE_COST): Define.
15837
15838 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
15839
15840 * tree.h (block_may_fallthru): Declare here.
15841 * tree-flow.h (block_may_fallthru): Do not declare here.
15842 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
15843 bitmap.h
15844 * Makefile.in (c-typeck.o): Update dependencies.
15845
15846 2010-06-30 Jakub Jelinek <jakub@redhat.com>
15847
15848 PR debug/44694
15849 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
15850 * cselib.c (cfa_base_preserved_regno): New static variable.
15851 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
15852 of REGNO (cfa_base_preserved_val->locs->loc).
15853 (cselib_preserve_cfa_base_value): Add regno argument, set
15854 cfa_base_preserved_regno to it.
15855 (cselib_invalidate_regno): Allow removal of registers other than
15856 cfa_base_preserved_regno from cfa_base_preserved_val.
15857 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
15858 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
15859 of MEM addresses, if not on LHS.
15860 (reverse_op): Don't add reverse ops for cfa_base_rtx.
15861 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
15862
15863 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
15864
15865 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
15866 static variables.
15867 (peep2_buf_position): New static function.
15868 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
15869 peephole2_optimize): Use it.
15870 (peep2_attempt, peep2_update_life): New static functions, broken out
15871 of peephole2_optimize.
15872 (peep2_fill_buffer): New static function.
15873 (peephole2_optimize): Change the main loop to try to fill the buffer
15874 with the maximum number of insns before matching them against
15875 peepholes. Use a forward scan. Remove special case for targets with
15876 conditional execution.
15877 * genrecog.c (change_state): Delete dead code.
15878 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
15879 Rewrite so as not to expect the second insn to have had a peephole
15880 applied yet.
15881
15882 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
15883
15884 * genhooks.c (emit_findices): Cast field precision to int.
15885 (emit_documentation): Likewise.
15886
15887 2010-06-29 Jakub Jelinek <jakub@redhat.com>
15888
15889 PR tree-optimization/43801
15890 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
15891 if old_decl was DECL_ONE_ONLY.
15892
15893 PR debug/44668
15894 * dwarf2out.c (add_accessibility_attribute): New function.
15895 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
15896 instead of adding DW_AT_accessibility manually.
15897 (gen_enumeration_type_die, gen_struct_or_union_type_die,
15898 gen_typedef_die): Use it.
15899
15900 2010-06-29 Douglas B Rupp <rupp@gnat.com>
15901
15902 * vmsdbgout.c (full_name): Just output the file name if not native.
15903
15904 2010-06-29 Douglas B Rupp <rupp@gnat.com>
15905
15906 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
15907 (funcnam_table): New static table.
15908 (funcnum_table): New static table.
15909 (write_rtnbeg): Write value saved in funcnum_table.
15910 (write_rtnend): Write value saved in funcnum_table.
15911 (vmsdbgout_begin_function): Save current function info in
15912 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
15913 (vmsdbgout_finish): Iterate over funcnum_table.
15914
15915 2010-06-29 Douglas B Rupp <rupp@gnat.com>
15916
15917 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
15918 (vmsdbgout_type_decl): Declare
15919 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
15920 (FUNC_EPILOGUE_LABEL): New macro
15921 (vmsdbgout_begin_epilogue): New function.
15922 (vmsdbgout_type_decl): New function.
15923
15924 2010-06-29 Douglas B Rupp <rupp@gnat.com>
15925
15926 * vmsdbg.h: Update copyright.
15927
15928 2010-06-29 Douglas B Rupp <rupp@gnat.com>
15929
15930 * vmsdbg.h (DST_K_TBG): New DST constant.
15931 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
15932 (write_modbeg): Cast module_language to avoid warning.
15933 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
15934
15935 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
15936
15937 PR other/44034
15938 * target.def, doc/tm.texi.in, genhooks.c: New files.
15939 * target.h: Instead of defining individual hook members,
15940 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
15941 include target.def.
15942 * target-def.h: Instead of defining individual hook initializers,
15943 include target-hooks-def.h.
15944 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
15945 targetm.live_on_entry -> targetm.extra_live_on_entry
15946 targetm.sched.md_finish ->targetm.sched.finish
15947 targetm.sched.md_init -> targetm.sched.init
15948 targetm.sched.md_init_global -> targetm.sched.init_global
15949 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
15950 targetm.asm_out.except_table_label ->
15951 targetm.asm_out.emit_except_table_label
15952 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
15953 targetm.target_help -> targetm.help
15954 targetm.vectorize.builtin_support_vector_misalignment ->
15955 targetm.vectorize.support_vector_misalignment
15956 targetm.file_start_app_off -> targetm.asm_file_start_app_off
15957 targetm.file_start_file_directive ->
15958 targetm.asm_file_start_file_directive
15959 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
15960 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
15961 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
15962 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
15963 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
15964 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
15965 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
15966 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
15967 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
15968 * Makefile.in (TARGET_H): Depend on target.def.
15969 (TARGET_DEF_H): Depend on target-hooks-def.h.
15970 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
15971 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
15972 * doc/tm.texi: Regenerate.
15973
15974 * Makefile.in (s-tm-texi): Remove stray tab / rule.
15975
15976 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
15977 (targetm.sched.init): Likewise.
15978
15979 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
15980
15981 PR bootstrap/44713
15982 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
15983 (function_arg_advance_32): Const-ify TYPE parameter.
15984 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
15985 (ix86_function_arg_advance): Change type of NAMED to bool.
15986 (function_arg_32): Const-ify CUM and TYPE parameters.
15987 (function_arg_64): Likewise. Change type of NAMED to bool.
15988 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
15989 to bool.
15990 (ix86_function_arg): Change type of NAMED to bool.
15991 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
15992 last argument as a bool.
15993
15994 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
15995
15996 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
15997 (OVERRIDE_OPTIONS): Add note of obsolescence.
15998 Replace references with references to TARGET_OPTION_OVERRIDE.
15999 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
16000 the macro).
16001 * targhooks.c (default_target_option_override): New function.
16002 * targhooks.h (default_target_option_override): Declare.
16003 * target.h (struct gcc_target): Add override member to
16004 target_option member.
16005 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
16006 targetm.target_option.override call.
16007 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
16008 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
16009
16010 2010-06-29 Jan Hubicka <jh@suse.cz>
16011
16012 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
16013
16014 2010-06-29 Jan Hubicka <jh@suse.cz>
16015
16016 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
16017 unreachable.
16018 (rebuild_frequencies): New function.
16019 * predict.h (rebuild_frequencies): Declare.
16020 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
16021 entry block and edge reaching new_entry.
16022 (tree_function_versioning): When doing partial cloning, rebuild
16023 frequencies when done.
16024 * passes.c (execute_function_todo): Use rebild_frequencies.
16025
16026 2010-06-29 Richard Guenther <rguenther@suse.de>
16027
16028 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
16029 * tree-flow.h (enum noalias_state): Remove.
16030 (struct var_ann_d): Remove noalias_state member.
16031
16032 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
16033
16034 PR target/43902
16035 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
16036 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
16037 (maddhidi4): Likewise.
16038
16039 Revert parts of the change for PR25130.
16040 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
16041 MEM_ALIAS_SET.
16042
16043 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16044
16045 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
16046 targetm.calls.function_incoming_arg, and
16047 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
16048 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
16049 * target.h (struct gcc_target): Add function_arg_advance,
16050 function_arg, and function_incoming_arg fields.
16051 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
16052 (TARGET_FUNCTION_INCOMING_ARG): Define.
16053 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
16054 and TARGET_FUNCTION_INCOMING_ARG.
16055 * targhooks.h (default_function_arg_advance): Declare.
16056 (default_function_arg, default_function_incoming_arg): Declare.
16057 * targhooks.c (default_function_arg_advance): New function.
16058 (default_function_arg, default_function_incoming_arg): New function.
16059 * config/i386/i386.c (function_arg_advance): Rename to...
16060 (ix86_function_arg_advance): ...this. Make static.
16061 (function_arg): Rename to...
16062 (ix86_function_arg): ...this. Make static.
16063 (TARGET_FUNCTION_ARG_ADVANCE): Define.
16064 (TARGET_FUNCTION_ARG): Define.
16065 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
16066 (FUNCTION_ARG): Delete.
16067 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
16068 (function_arg): Delete prototype.
16069
16070 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
16071
16072 * reginfo.c (init_reg_sets_1): Adjust comments.
16073 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
16074 * calls.c (prepare_call_address): Likewise.
16075 (emit_call_1): Use targetm.calls.return_pops_args.
16076 (expand_call): Likewise.
16077 * function.c (assign_parms): Likewise.
16078 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
16079 * target.h (struct gcc_target) [struct calls]: Add
16080 return_pops_args field.
16081 * targhooks.h (default_return_pops_args): Declare.
16082 * targhooks.c (default_return_pops_args): Define.
16083 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
16084 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
16085 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
16086 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
16087 documentation.
16088 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
16089 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
16090 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
16091 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
16092 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
16093 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
16094 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
16095 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
16096 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
16097 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
16098 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
16099 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
16100 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
16101 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
16102 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
16103 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
16104 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
16105 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
16106 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
16107 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
16108 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
16109 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
16110 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
16111 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
16112 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
16113 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
16114 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
16115 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
16116 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
16117 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
16118 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
16119 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
16120 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
16121 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
16122 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
16123 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
16124 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
16125 * config/i386/i386.c (ix86_return_pops_args): Make static.
16126 Constify arguments.
16127 (TARGET_RETURN_POPS_ARGS): Define.
16128 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
16129 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
16130 (TARGET_RETURN_POPS_ARGS): Define.
16131 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
16132 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
16133 (TARGET_RETURN_POPS_ARGS): Define.
16134
16135 2010-06-29 Richard Guenther <rguenther@suse.de>
16136
16137 PR middle-end/44667
16138 * tree-inline.c (initialize_inlined_parameters): Make sure
16139 to remap the inlined parameter variable substitutions types.
16140
16141 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
16142
16143 PR rtl-optimization/44659
16144 * combine.c (make_compound_operation) <SUBREG>: Do not return the
16145 result of force_to_mode if it partially re-expanded the compound.
16146
16147 2010-06-28 Jan Hubicka <jh@suse.cz>
16148
16149 PR middle-end/44671
16150 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
16151 RESULT_DECL.
16152
16153 2010-06-28 Anatoly Sokolov <aesok@post.ru>
16154
16155 * double-int.h (force_fit_type_double): Remove declaration.
16156 * double-int.c (force_fit_type_double): Move to tree.c.
16157 * tree.h (force_fit_type_double): Declare.
16158 * tree.h (force_fit_type_double): Moved from double-int.c. Use
16159 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
16160 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
16161 * convert.c (convert_to_pointer): Adjust call to
16162 force_fit_type_double.
16163 * tree-vrp.c (extract_range_from_assert,
16164 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
16165 * fold-const.c: Update comment.
16166 (int_const_binop, fold_convert_const_int_from_int,
16167 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
16168 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
16169 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
16170 round_up_loc): Adjust call to force_fit_type_double.
16171
16172 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16173
16174 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
16175
16176 2010-06-28 Martin Jambor <mjambor@suse.cz>
16177
16178 * tree-sra.c (convert_callers): New parameter, change fndecls of
16179 recursive calls.
16180 (modify_function): Pass the old decl to convert_callers.
16181
16182 2010-06-28 Martin Jambor <mjambor@suse.cz>
16183
16184 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
16185 ipa_check_create_node_params and ipa_initialize_node_params with
16186 checking asserts they are not necessary.
16187
16188 2010-06-28 Jan Hubicka <jh@suse.cz>
16189
16190 PR tree-optimization/44687
16191 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
16192
16193 2010-06-28 Martin Jambor <mjambor@suse.cz>
16194
16195 PR c++/44535
16196 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
16197 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
16198 instead of BINFO_BASE_BINFO.
16199
16200 2010-06-28 Michael Matz <matz@suse.de>
16201
16202 PR middle-end/44592
16203 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
16204 proper VDEF chain for intermediate stores in the sequence.
16205
16206 2010-06-28 Jan Hubicka <jh@suse.cz>
16207
16208 PR tree-optimization/44357
16209 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
16210 uninlinable functions.
16211
16212 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16213
16214 * config.gcc (powerpc*-*-*): Handle titan.
16215 * config/rs6000/rs6000.c (titan_cost): New costs.
16216 (rs6000_override_options): Add "titan" to processor_target_table.
16217 Add Titan to branch alignment logic.
16218 Correctly set rs6000_cost for titan.
16219 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
16220 * config/rs6000/titan.md: New file.
16221 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
16222
16223 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16224
16225 * tree-browser.c (TB_history_stack): Convert to a VEC.
16226 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
16227 (TB_history_prev): Likewise.
16228
16229 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
16230
16231 * vec.h (vec_heap_free): Add parentheses around free.
16232
16233 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
16234
16235 * system.h: Poison GCC_EXCEPT_H for front-end files.
16236
16237 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
16238 langhook.
16239 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
16240 Define to NULL by default.
16241 * except.h: Define GCC_EXCEPT_H.
16242 (doing_eh): Remove prototype.
16243 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
16244 (lang_protect_cleanup_actions): Remove.
16245 * except.c (lang_protect_cleanup_actions): Remove.
16246 (doing_eh): Remove.
16247 (gen_eh_region): Don't check doing_eh here.
16248 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
16249 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
16250 instead of lang_protect_cleanup_actions.
16251 * omp-low.c (maybe_catch_exception): Likewise.
16252 * Makefile.in: Update dependencies.
16253
16254 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
16255
16256 * cgraph.h (struct varpool_node): new used_from_object_file flag.
16257 (struct cgraph_local_info): new used_from_object_file flag.
16258 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
16259 (cgraph_clone_node): initialize used_from_object_file.
16260 (cgraph_create_virtual_clone): initialize used_from_object_file.
16261 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
16262 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
16263 when compiling with -fwhole-program.
16264 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
16265 internal resolver.
16266 * ipa.c (function_and_variable_visibility): Set externally_visible
16267 flag of varpool_node if used_from_object_file flag is set.
16268 (cgraph_externally_visible_p): check used_from_object_file flag.
16269 * doc/invoke.texi (-fwhole-program option): Change description of
16270 externally_visible attribute accordingly.
16271 * doc/extend.texi (externally_visible): Ditto.
16272
16273 2010-06-27 Jan Hubicka <jh@suse.cz>
16274
16275 * params.def (max-inline-insns-auto): Default to 40.
16276 * doc/invoke.texi (max-inline-insns-auto): Document the change.
16277
16278 2010-06-27 Jan Hubicka <jh@suse.cz>
16279
16280 PR middle-end/44671
16281 PR middle-end/44686
16282 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
16283 signature change.
16284 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
16285 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
16286
16287 2010-06-27 Anatoly Sokolov <aesok@post.ru>
16288
16289 * target.h (struct gcc_target): Add register_move_cost field.
16290 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
16291 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
16292 * targhooks.c (default_register_move_cost): New function.
16293 * targhooks.h (default_register_move_cost): Declare function.
16294 * defaults.h (REGISTER_MOVE_COST): Delete.
16295 * ira-int.h (ira_register_move_cost): Update comment.
16296 * ira.c (ira_register_move_cost): Update comment.
16297 * reload.h (register_move_cost): Declare.
16298 * reginfo.c (register_move_cost): New function.
16299 (move_cost): Update comment.
16300 (init_move_cost, memory_move_secondary_cost): Replace
16301 REGISTER_MOVE_COST with register_move_cost.
16302 * postreload.c (reload_cse_simplify_set): (Ditto.).
16303 * reload.c (find_valid_class, find_reloads): (Ditto.).
16304 * reload1.c (choose_reload_regs): (Ditto.).
16305 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
16306 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
16307 * doc/md.texi (can_create_pseudo_p): Update documentation.
16308
16309 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16310 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16311 * config/i386/i386.h (ix86_memory_move_cost): Make static.
16312 (TARGET_MEMORY_MOVE_COST): Define.
16313
16314 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16315 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
16316 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
16317 (TARGET_MEMORY_MOVE_COST): Define.
16318
16319 2010-06-27 Richard Guenther <rguenther@suse.de>
16320
16321 PR tree-optimization/44683
16322 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
16323 false edge from the inverted condition.
16324
16325 2010-06-27 Richard Guenther <rguenther@suse.de>
16326
16327 PR middle-end/44684
16328 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
16329 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
16330 for register LHS. Or non-store assignments.
16331
16332 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
16333
16334 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
16335 (sparc_emit_set_const64): Likewise. Remove disabled code.
16336 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
16337 (sparc_emit_set_const64): Likewise.
16338
16339 2010-06-26 Catherine Moore <clm@codesourcery.com>
16340
16341 * config/mips/mips.md (alu_type): New attribute.
16342 (type): Infer type from alu_type.
16343 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
16344 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
16345 *subsi3_extended, negsi2, negdi2, *low<mode>,
16346 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
16347 xor<mode>3, *nor<mode>3,
16348 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
16349 *zero_extendhi_truncqi): Set alu_type instead of type.
16350
16351 2010-06-26 Douglas B Rupp <rupp@gnat.com>
16352
16353 * config/alpha/alpha.c (alpha_need_linkage): Adjust
16354 splay_tree_new_ggc call.
16355 (alpha_use_linkage): Likewise.
16356
16357 2010-06-26 Joseph Myers <joseph@codesourcery.com>
16358
16359 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
16360 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
16361 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
16362 (static_specs): Remove switches_need_spaces.
16363 (process_command, do_self_spec): Hardcode handling "-o" instead of
16364 checking switches_need_spaces.
16365 * system.h (SWITCHES_NEED_SPACES): Poison.
16366
16367 2010-06-26 Richard Guenther <rguenther@suse.de>
16368
16369 PR tree-optimization/44393
16370 * tree-loop-distribution.c (generate_loops_for_partition): Fix
16371 stmt removal and VOP renaming.
16372 (generate_memset_zero): Remove redundant stmt updating.
16373 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
16374 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
16375
16376 2010-06-26 Jan Hubicka <jh@suse.cz>
16377
16378 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
16379 edges comming from header are equivalent.
16380 (visit_bb): Handle PHIs correctly.
16381 * tree-inline.c (copy_phis_for_bb): Be able to copy
16382 PHI from entry edge.
16383 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
16384
16385 2010-06-26 Richard Guenther <rguenther@suse.de>
16386
16387 PR middle-end/44674
16388 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
16389 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
16390
16391 2010-06-26 Joseph Myers <joseph@codesourcery.com>
16392
16393 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
16394 add_infile, alloc_switch): New.
16395 (process_command): Remove variable lang_n_infiles. Process
16396 options in a single pass. Use new functions for allocating
16397 infiles and switches arrays. Properly skip operands of
16398 -Xpreprocessor and -Xassembler.
16399
16400 2010-06-26 Jan Hubicka <jh@suse.cz>
16401
16402 PR middle-end/44671
16403 * cgraphunit.c (cgraph_function_versioning): Remove wrong
16404 cgraph_make_decl_local call; fix typo copying RTL data.
16405
16406 2010-06-25 DJ Delorie <dj@redhat.com>
16407
16408 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
16409 (m32c_output_aligned_common): Likewise.
16410 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
16411 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16412 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
16413 (m32c_register_pragmas): Register it.
16414 * config/m32c/m32c.c (m32c_get_pragma_address): New.
16415 (m32c_insert_attributes): Set #pragma address decls volatile.
16416 (pragma_entry_eq): New.
16417 (pragma_entry_hash): New.
16418 (m32c_note_pragma_address): New.
16419 (m32c_get_pragma_address): New.
16420 (m32c_output_aligned_common): New.
16421 * doc/extend.texi: Document the new pragma.
16422
16423 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
16424 also.
16425 * config/m32c/predicates.md (m32c_any_operand): Check the code
16426 instead of memory_operand so as to allow matching volatile MEMs.
16427 (m32c_nonimmediate_operand): Likewise.
16428 (mra_operand): Allow volatiles.
16429
16430 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
16431
16432 PR debug/44610
16433 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
16434 address if the offset is unknown.
16435
16436 2010-06-25 Douglas B Rupp <rupp@gnat.com>
16437
16438 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
16439 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
16440 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
16441 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
16442 to ia64_start_function. Invoke it.
16443 * config/ia64/ia64.c (ia64_start_function): Call new function
16444 dwarf2out_vms_debug_main_pointer.
16445
16446 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16447
16448 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
16449 statements computing the true predicate.
16450
16451 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16452
16453 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
16454 to boolean_true_node.
16455 (reset_bb_predicate): New.
16456 (predicate_bbs): Call reset_bb_predicate.
16457
16458 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16459
16460 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
16461 (tree_if_conversion): Returns true when something has been changed.
16462 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
16463 changed something.
16464
16465 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
16466
16467 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
16468 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
16469 * tree-if-conv.c: Include dbgcnt.h.
16470 (tree_if_conversion): Use if_conversion_tree to count the number of
16471 if-convertible loops.
16472
16473 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
16474
16475 * common.opt (fprefetch-loop-arrays): Re-define
16476 -fprefetch-loop-arrays as a tri-state option with the initial
16477 value of -1.
16478 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
16479 pass only when flag_prefetch_loop_arrays > 0.
16480 * toplev.c (process_options): Note that, with tri-states,
16481 flag_prefetch_loop_arrays>0 means prefetching is enabled.
16482 * config/i386/i386.c (override_options): Enable prefetching at -O3
16483 for a set of CPUs that sw prefetching is helpful.
16484 (software_prefetching_beneficial_p): New. Return TRUE if software
16485 prefetching is beneficial for the given CPU.
16486
16487 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
16488
16489 PR rtl-optimization/44326
16490 * implicit-zee.c (find_removable_zero_extends): Replace
16491 INSN_P with NONDEBUG_INSN_P.
16492
16493 2010-06-25 Martin Jambor <mjambor@suse.cz>
16494
16495 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
16496 (struct ipa_node_params): Removed the modification_analysis_done flag.
16497 (ipa_is_param_modified): Removed.
16498 (ipa_analyze_node): Declare.
16499 (ipa_compute_jump_functions): Remove declaration.
16500 (ipa_count_arguments): Likewise.
16501 (ipa_detect_param_modifications): Likewise.
16502 (ipa_analyze_params_uses): Likewise.
16503 * ipa-prop.c (struct param_analysis_info): New type.
16504 (visit_store_addr_for_mod_analysis): Removed.
16505 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
16506 moved down in the file.
16507 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
16508 (ipa_count_arguments): Made static.
16509 (mark_modified): New function.
16510 (is_parm_modified_before_call): New function.
16511 (compute_pass_through_member_ptrs): New parameter parms_info, call
16512 is_parm_modified_before_call instead of ipa_is_param_modified.
16513 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
16514 it to compute_pass_through_member_ptrs.
16515 (ipa_compute_jump_functions): New parameter parms_info, pass it to
16516 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
16517 on the callee if it is analyzed. Made static.
16518 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
16519 is_parm_modified_before_call instead of ipa_is_param_modified.
16520 (ipa_analyze_call_uses): New parameter parms_info, pass it to
16521 ipa_analyze_indirect_call_uses.
16522 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
16523 ipa_analyze_call_uses.
16524 (ipa_analyze_params_uses): New parameter parms_info, pass it to
16525 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
16526 (ipa_analyze_node): New function.
16527 (ipa_print_node_params): Do not dump the modified flag.
16528 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
16529 it. Do not stream the modified parameter flag.
16530 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
16531 it. Do not stream the modified parameter flag.
16532 * ipa-cp.c (ipcp_analyze_node): Removed.
16533 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
16534 with only a call to ipa_analyze_node.
16535 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
16536 node with only a call to ipa_analyze_node.
16537
16538 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
16539
16540 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
16541
16542 2010-06-25 Jan Hubicka <jh@suse.cz>
16543
16544 * tree-pass.h (pass_split_functions): Declare.
16545 * opts.c (decode_options): Enable function splitting at -O2
16546 * timevar.def (TV_IPA_FNSPLIT): New macro.
16547 * ipa-split.c: New file.
16548 * common.opt (-fpartial-inlining): New flag.
16549 * Makefile.in (ipa-split.o): New object file.
16550 * passes.c (init_optimization_passes): Add ipa-split.
16551 * params.def (partial-inlining-entry-probability): New parameters.
16552 * doc/invoke.texi (-fpartial-inlining): New.
16553
16554 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
16555
16556 PR 44665
16557 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
16558 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
16559 (gimplify_expr): Likewise.
16560
16561 2010-06-25 Martin Jambor <mjambor@suse.cz>
16562
16563 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
16564 statements instead of bailing out on them.
16565 (ipa_analyze_indirect_call_uses): Do not require that loads from the
16566 parameter are in the same BB as the condition. Update comments.
16567
16568 2010-06-25 Jakub Jelinek <jakub@redhat.com>
16569
16570 PR middle-end/43866
16571 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
16572 true or always false, return NULL_TREE.
16573 (tree_unswitch_single_loop): Optimize conditions even when reaching
16574 max-unswitch-level parameter. If num > 0, optimize first all conditions
16575 using entry checks, then do still reachable block discovery and consider
16576 only conditions in still reachable basic blocks in the loop.
16577
16578 PR tree-optimization/44539
16579 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
16580 the call doesn't have LHS, but has VDEF.
16581
16582 2010-06-25 Joseph Myers <joseph@codesourcery.com>
16583
16584 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
16585 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
16586 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
16587 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
16588 * system.h (MODIFY_TARGET_NAME): Poison.
16589
16590 2010-06-25 Alan Modra <amodra@gmail.com>
16591
16592 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
16593 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
16594 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
16595 CMODEL_LARGE as default.
16596 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
16597 (offsettable_ok_by_alignment): Delete.
16598 (rs6000_emit_move): Remove mcmodel=medium optimization.
16599
16600 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
16601
16602 With large parts from Jim Wilson:
16603 PR target/43902
16604 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
16605 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
16606 * optabs.c (optab_for_tree_code): Likewise.
16607 (expand_widen_pattern_expr): Likewise.
16608 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
16609 out of execute_optimize_widening_mul.
16610 (convert_plusminus_to_widen): New function.
16611 (execute_optimize_widening_mul): Use the two new functions.
16612 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
16613 Remove code to generate widening multiply-accumulate. Add support
16614 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
16615 * gimple-pretty-print.c (dump_ternary_rhs): New function.
16616 (dump_gimple_assign): Call it when appropriate.
16617 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
16618 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
16619 (expand_gimple_stmt_1): Likewise.
16620 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
16621 WIDEN_MULT_MINUS_EXPR.
16622 * tree-ssa-operands.c (get_expr_operands): Likewise.
16623 * tree-inline.c (estimate_operator_cost): Likewise.
16624 * gimple.c (extract_ops_from_tree_1): Renamed from
16625 extract_ops_from_tree. Add new arg for a third operand; fill it.
16626 (gimple_build_assign_stat): Support operations with three operands.
16627 (gimple_build_assign_with_ops_stat): Likewise.
16628 (gimple_assign_set_rhs_from_tree): Likewise.
16629 (gimple_assign_set_rhs_with_ops_1): Renamed from
16630 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
16631 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
16632 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
16633 WIDEN_MULT_MINUS_EXPR.
16634 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
16635 (extract_ops_from_tree_1): Adjust declaration.
16636 (gimple_assign_set_rhs_with_ops_1): Likewise.
16637 (gimple_build_assign_with_ops): Pass NULL for last operand.
16638 (gimple_build_assign_with_ops3): New macro.
16639 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
16640 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
16641 functions.
16642 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
16643 (verify_gimple_assign): Call it.
16644 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
16645 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
16646 functions for dealing with three-operand statements.
16647 * tree.c (commutative_ternary_tree_code): New function.
16648 * tree.h (commutative_ternary_tree_code): Declare it.
16649 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
16650 ternary statements.
16651 (gimple_assign_nonzero_warnv_p): Likewise.
16652 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
16653 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
16654 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
16655 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
16656 (struct hashtable_expr): New member ternary in the union.
16657 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
16658 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
16659 (iterative_hash_hashable_expr): Likewise.
16660 (print_expr_hash_elt): Handle EXPR_TERNARY.
16661 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
16662 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
16663 statements. Handle GIMPLE_TERNARY_RHS.
16664
16665 2010-06-25 Jan Hubicka <jh@suse.cz>
16666
16667 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
16668
16669 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
16670
16671 PR c/44517
16672 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
16673 parameters are not good.
16674 (c_parser_parameter_declaration): Error unknown type name if the type
16675 name can't start declaration specifiers.
16676
16677 2010-06-25 Joseph Myers <joseph@codesourcery.com>
16678
16679 * gcc.c (translate_options): Don't mention +e in comment.
16680 (process_command): Don't handle +e specially.
16681
16682 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
16683
16684 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
16685
16686 * ira-build.c (merge_hard_reg_conflicts): New function.
16687 (create_cap_allocno, copy_info_to_removed_store_destinations,
16688 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
16689 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
16690 (remove_unnecessary_allocnos, remove_low_level_allocnos)
16691 copy_nifo_to_removed_store_destination): Use them.
16692 * ira-lives.c (make_hard_regno_born): New function, split out of
16693 make_regno_born.
16694 (make_allocno_born): Likewise.
16695 (make_hard_regno_dead): New function, split out of make_regno_dead.
16696 (make_allocno_dead): Likewise.
16697 (inc_register_pressure): New function, split out of set_allocno_live.
16698 (dec_register_pressure): New function, split out of clear_allocno_live.
16699 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
16700 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
16701 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
16702 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
16703 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
16704 mark_pseudo_regno_live.
16705 (process_bb_node_lives): Use mark_pseudo_regno_live,
16706 make_hard_regno_born and make_allocno_dead.
16707 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
16708 set_allocno_live, clear_allocno_live): Delete functions.
16709
16710 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
16711 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
16712 functions.
16713 (ira_flattening): Use ira_parent_allocno.
16714 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
16715 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
16716
16717 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
16718 statement.
16719
16720 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
16721 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
16722 minmax_set_iter_cond, minmax_set_iter_next,
16723 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
16724 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
16725 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
16726 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
16727 uses changed.
16728
16729 * ira-int.h (struct live_range, live_range_t): Renamed from struct
16730 ira_allocno_live_range and allocno_live_range_t; all uses changed.
16731 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
16732 All uses changed.
16733
16734 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
16735
16736 * thumb2.md (thumb2_tlobits_cbranch): Delete.
16737 (peephole2 to convert zero_extract/compare of single bit to
16738 lshift/compare): New.
16739
16740 2010-06-24 Anatoly Sokolov <aesok@post.ru>
16741
16742 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
16743 recursive call and call to 'int_const_binop'.
16744 (build_range_check, fold_cond_expr_with_comparison, unextend,
16745 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
16746 multiple_of_p): Adjust call to const_binop.
16747
16748 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
16749
16750 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
16751 determine size of XFmode operand.
16752 (XFmode extended DFmode push splitter): Ditto.
16753 (XFmode extended SFmode push splitter): Ditto.
16754
16755 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
16756
16757 PR target/44588
16758 * config/i386/i386.md (extract_code): New.
16759 (<u>divmodqi4): Likewise.
16760 (divmodhiqi3): Likewise.
16761 (udivmodhiqi3): Likewise.
16762 (<u>divqi3): Remvoved.
16763
16764 2010-06-24 Jakub Jelinek <jakub@redhat.com>
16765
16766 PR middle-end/44492
16767 * recog.h (struct recog_data): Add is_asm field.
16768 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
16769 present in constraints of inline-asm operand and memory operand
16770 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
16771 (extract_insn): Initialize recog_data.is_asm.
16772 * doc/md.texi (Constraints): Document operand side-effect rules.
16773
16774 2010-06-24 Andi Kleen <ak@linux.intel.com>
16775
16776 * c-parser.c (c_parser_conditional_expression): Call
16777 warn_for_omitted_condop.
16778 * doc/invoke.texi: Document omitted condop warning.
16779
16780 2010-06-24 Nick Clifton<nickc@redhat.com>
16781
16782 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
16783 insn in the sequence is a jump insn before setting its label.
16784
16785 2010-06-24 Alan Modra <amodra@gmail.com>
16786
16787 * collect2.c (main): Match exactly --version and --help.
16788
16789 2010-06-24 DJ Delorie <dj@redhat.com>
16790
16791 * config/m32c/m32c-pragma.c: Don't include rtl.h.
16792
16793 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
16794
16795 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
16796 using X87MODEF mode iterator.
16797 (pushsf splitter): Macroize splitter using P mode iterator.
16798 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
16799 mode iterator.
16800
16801 (*movxf_internal): Rename from *movxf_integer.
16802 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
16803 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
16804 (*movdf_internal): Rename from *movdf_integer.
16805 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
16806 (*movsf_internal): Rename from *movdf_1.
16807
16808 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
16809
16810 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
16811 (const_gimple_seq_node): Removed typedefs.
16812
16813 * gimple.h (gimple_seq_node_d, gimple_seq_node)
16814 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
16815
16816 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
16817
16818 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
16819 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
16820 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
16821 and CODE_FOR_vec_extract_lo_v4df.
16822
16823 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
16824 Changed to define_insn_and_split.
16825 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
16826 (vec_extract_lo_v16hi): Likewise.
16827 (vec_extract_lo_v32qi): Likewise.
16828 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
16829 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
16830
16831 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
16832
16833 PR target/44640
16834 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
16835 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
16836 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
16837 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
16838 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
16839
16840 PR target/44640
16841 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
16842
16843 PR other/44644
16844 * df-core.c (struct df): Rename to df_d.
16845 * df.h (struct df): Likewise.
16846 * dse.h (struct df): Remove forward declaration.
16847 * recog.h (struct insn_data): Rename to:
16848 (struct_insn_data_d). Adjusted all users.
16849
16850 2010-06-23 Arnaud Charlet <charlet@adacore.com
16851
16852 PR ada/22220
16853 * doc/install.texi: Update requirements to build GNAT.
16854
16855 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
16856
16857 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
16858 enum type.
16859 (m68k_sched_attr_opx_type): Remove unreachable return.
16860 (m68k_sched_attr_opy_type): Likewise.
16861 (m68k_sched_attr_size): Likewise.
16862 (sched_get_opxy_mem_type): Likewise.
16863 (m68k_sched_attr_op_mem): Likewise.
16864
16865 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
16866
16867 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
16868 new statement and adjust VDEF only if necessary. Remove superfluous
16869 call to maybe_clean_or_replace_eh_stmt.
16870 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
16871 copy the flags.
16872 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
16873 * tree-inline.c (copy_bb): ...and not there.
16874
16875 2010-06-22 Cary Coutant <ccoutant@google.com>
16876
16877 * dwarf2out.c (is_nested_in_subprogram): New function.
16878 (should_move_die_to_comdat): Use it.
16879 (copy_ancestor_tree): Don't mark DIEs here.
16880 (copy_decls_walk): Start walk from root of newly-added tree;
16881 mark DIEs here instead.
16882
16883 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
16884
16885 * config/i386/i386.md (unit): Also check sseishft1.
16886
16887 2010-06-22 Jan Hubicka <jh@suse.cz>
16888
16889 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
16890 enabled.
16891
16892 2010-06-22 Jan Hubicka <jh@suse.cz>
16893
16894 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
16895 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
16896 Return true if something changed.
16897 * df.h (df_confluence_function_n): Return bool.
16898 * df-core.c (df_worklist_propagate_forward,
16899 df_worklist_propagate_backward): Track changes and ages.
16900 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
16901 track ages.
16902 * dse.c (dse_confluence_n): Return always true.
16903
16904 2010-06-22 Jan Hubicka <jh@suse.cz>
16905
16906 * bitmap.c (bitmap_clear_bit): Micro optimize.
16907
16908 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
16909
16910 * config/i386/i386.md (SWI1248x): New mode iterator.
16911 (SWI48x): Ditto.
16912 (SWI12): Ditto.
16913 (SWI24): Ditto.
16914
16915 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
16916 SWI1248x mode iterator.
16917 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
16918 using SWI124 mode iterator.
16919 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
16920 mode iterator.
16921 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
16922 *pushdi2_prologue_rex64 using P mode iterator.
16923 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
16924 using SWI48 mode iterator.
16925 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
16926 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
16927 using SWI1248x mode iterator.
16928 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
16929 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
16930 SWI48 mode iterator.
16931 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
16932 iterator.
16933 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
16934 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
16935 SWI12 mode iterator.
16936 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
16937 SWI12 mode iterator.
16938 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
16939 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
16940 SWI24 mode iterator.
16941 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
16942 SWI48 mode iterator.
16943 (mov<mode>_insn_1): New expander.
16944 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
16945 using SWI48x mode iterator.
16946
16947 (*movoi_internal_avx): Rename from *movoi_internal.
16948 (*movti_internal_rex64): Rename from *movti_rex64.
16949 (*movti_internal_sse): Rename from *movti_sse.
16950 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
16951 (*movdi_internal): Rename from *movdi_2.
16952 (*movsi_internal): Rename from *movsi_1.
16953 (*movhi_internal): Rename from *movhi_1.
16954 (*movqi_internal): Rename from *movqi_1.
16955
16956 (insv): Update the call to gen_movsi_insv_1 for rename.
16957 * config/i386/i386.c (promote_duplicated_reg): Ditto.
16958
16959 2010-06-22 Jan Hubicka <jh@suse.cz>
16960
16961 * passes.c (execute_function_todo): Move call of statistics_fini_pass
16962 to ...
16963 (execute_todo) ... this one.
16964
16965 2010-06-22 Alan Modra <amodra@gmail.com>
16966
16967 PR target/44364
16968 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16969 * caller-save.c (insert_restore, insert_save): Use non-validate
16970 form of adjust_address.
16971
16972 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16973
16974 PR target/39690
16975 * config/pa/pa.c (override_options): Disable
16976 -freorder-blocks-and-partition.
16977
16978 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
16979
16980 PR target/44615
16981 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
16982
16983 * config/i386/i386.md (type): Add sseishft1
16984
16985 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
16986 (ppro_insn_load): Likewise.
16987 (ppro_insn_store): Likewise.
16988 (ppro_insn_both): Likewise.
16989
16990 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
16991 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
16992 for type.
16993 (*vec_extractv2di_1_avx): Likewise.
16994 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
16995 type. Remove atom_unit.
16996 (*vec_extractv2di_1_sse2): Likewise.
16997
16998 2010-06-21 DJ Delorie <dj@redhat.com>
16999
17000 * diagnostic.h (diagnostic_classification_change_t): New.
17001 (diagnostic_context): Add history and push/pop list.
17002 (diagnostic_push_diagnostics): Declare.
17003 (diagnostic_pop_diagnostics): Declare.
17004 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
17005 from pragmas in a history chain instead of the global table.
17006 (diagnostic_push_diagnostics): New.
17007 (diagnostic_pop_diagnostics): New.
17008 (diagnostic_report_diagnostic): Scan history chain to find state
17009 of diagnostics as of the diagnostic location.
17010 * opts.c (set_option): Pass UNKNOWN_LOCATION to
17011 diagnostic_classify_diagnostic.
17012 (enable_warning_as_error): Likewise.
17013 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
17014 use in the history chain.
17015 * doc/extend.texi: Document pragma GCC diagnostic changes.
17016
17017 2010-06-21 Jakub Jelinek <jakub@redhat.com>
17018
17019 * dwarf2out.c (add_linkage_name): New function. Don't add
17020 anything to DW_TAG_member DIEs.
17021 (add_name_and_src_coords_attributes): Use it.
17022 (gen_variable_die): Call it for C++ static data members if
17023 specification is DW_TAG_member.
17024
17025 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
17026 C++ char16_t and char32_t.
17027
17028 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
17029 * genattrtab.c: Include vecprim.h.
17030 (cached_attrs, cached_attr_count, attrs_seen_once,
17031 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
17032 attrs_cached_after): New variables.
17033 (find_attrs_to_cache): New function.
17034 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
17035 (write_test_expr): Add attrs_cached argument, return it too,
17036 attempt to cache non-const attributes used more than once in
17037 a single case handling.
17038 (write_attr_get): Use find_attrs_to_cache, for caching candidates
17039 emit cached_* variables. Adjust write_attr_set callers.
17040 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
17041 to find attributes that should be cached in this block. Adjust
17042 write_test_expr callers.
17043 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
17044 callers.
17045 (make_automaton_attrs): Adjust write_test_expr caller.
17046
17047 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
17048 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
17049 (make_automaton_attrs): If find_tune_attr returns non-NULL,
17050 write separate internal_dfa_insn_code_* and insn_default_latency_*
17051 functions for each attribute's value and emit init_sched_attrs
17052 function and function pointers.
17053 * genattr.c (const_attrs, reservations): New variables.
17054 (gen_attr): Add const attributes to const_attrs vector.
17055 (check_tune_attr, find_tune_attr): New functions.
17056 (main): Add reservations to reservations vector. If find_tune_attr
17057 returns true, add prototype for init_sched_attrs and make
17058 internal_dfa_insn_code and insn_default_latency function pointers,
17059 otherwise define init_sched_attrs as dummy macro.
17060 * cfgexpand.c: Include insn-attr.h.
17061 (gimple_expand_cfg): Call init_sched_attrs.
17062
17063 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
17064
17065 PR target/44575
17066 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
17067 va_arg from a set of register save slots into a temporary,
17068 if the container is bigger than type size, do the copying
17069 using smaller mode or using memcpy.
17070
17071 PR bootstrap/44426
17072 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
17073 prototype.
17074 (sel_print_to_dot): Remove macro.
17075 (sel_print): Likewise. New prototype.
17076 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
17077 (sel_print): New function.
17078
17079 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17080
17081 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
17082 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
17083
17084 2010-06-21 Nick Clifton <nickc@redhat.com>
17085
17086 * config/rx/rx.h (PTRDIFF_TYPE): Define.
17087 (SMALL_REGISTER_CLASS): Define (to zero).
17088 (PRINT_OPERAND): Delete.
17089 (PRINT_OPERAND_ADDRESS): Delete.
17090 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
17091 (rx_print_operand_address): Delete prototype.
17092 * config/rx/rx.c (rx_print_operand): Make static.
17093 Allow %H and %L to handle CONST_DOUBLEs.
17094 (rx_print_operand_address): Make static.
17095 (rx_gen_move_template): Rename local variable 'template' to
17096 out_template.
17097 (rx_function_arg): Do not pass unknown sized objects in registers.
17098 (TARGET_PRINT_OPERAND): Define.
17099 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17100
17101 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
17102
17103 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
17104
17105 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
17106
17107 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
17108 stack-alignment for simple leaf-functions.
17109
17110 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17111
17112 * doc/install.texi: Document bootstrap-lto.
17113
17114 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
17115
17116 PR debug/44248
17117 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
17118 (input_function): Drop them here, if VTA is disabled.
17119
17120 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
17121
17122 PR target/44546
17123 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
17124 New predicate.
17125 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
17126 ix86_swapped_fp_comparsion_operator instead of
17127 ix86_fp_comparison_operator.
17128
17129 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
17130 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
17131 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
17132 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
17133 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
17134 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
17135
17136 2010-06-20 Joseph Myers <joseph@codesourcery.com>
17137
17138 PR other/32998
17139 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
17140 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
17141 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
17142 (decode_cmdline_option): Update for this return value. Set
17143 orig_option_with_args_text field. Set arg field for unknown
17144 options. Make static.
17145 (decode_cmdline_options_to_array): New.
17146 (prune_options): Update handling of find_opt return value.
17147 * opts.c (read_cmdline_option): Take decoded option. Return void.
17148 (read_cmdline_options): Take decoded options.
17149 (decode_options): Add parameters for decoded options. Use
17150 decode_cmdline_options_to_array. Use decoded options for -O
17151 scan. Use integral_argument for -O parameters. Update call to
17152 read_cmdline_options.
17153 (enable_warning_as_error): Update handling of find_opt return value.
17154 * opts.h: Update comment on unknown options.
17155 (struct cl_decoded_option): Update comments on opt_index and arg.
17156 Add orig_option_with_args_text.
17157 (decode_cmdline_option): Remove.
17158 (decode_cmdline_options_to_array): Declare.
17159 (decode_options): Update prototype.
17160 * toplev.c (save_argv): Remove.
17161 (save_decoded_options, save_decoded_options_count): New.
17162 (read_integral_parameter): Remove.
17163 (print_switch_values): Use decoded options.
17164 (toplev_main): Don't set save_argv. Update call to decode_options.
17165 * toplev.h (read_integral_parameter): Remove.
17166 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
17167
17168 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
17169
17170 PR target/44072
17171 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
17172 immediate.
17173 * constraints.md (Pw, Px): New constraints.
17174 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
17175
17176 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
17177
17178 * config/i386/sse.md (fma4modesuffixf4): Removed.
17179 (ssemodesuffixf2s): Likewise.
17180 (ssemodesuffixf4): Likewise.
17181 (ssemodesuffixf2c): Likewise.
17182 (ssescalarmodesuffix2s): Likewise.
17183 (avxmodesuffixf2c): Likewise.
17184 (ssemodesuffix): New.
17185 (ssescalarmodesuffix): Likewise.
17186 Update patterns with ssemodesuffix and ssescalarmodesuffix.
17187
17188 2010-06-19 Philip Herron <herron.philip@googlemail.com>
17189
17190 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
17191
17192 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
17193
17194 * stor-layout.c (debug_rli): Remove unused local variables.
17195
17196 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
17197
17198 PR rtl-optimization/40900
17199 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
17200 original expression for later reuse.
17201 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
17202 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
17203
17204 2010-06-18 Anatoly Sokolov <aesok@post.ru>
17205
17206 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
17207 double_int_fits_in_uhwi_p): Implement as static inline.
17208 (double_int_xor): New inline function.
17209 (double_int_lrotate, double_int_rrotate, double_int_max,
17210 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17211 double_int_smin): Declare.
17212 (lrotate_double, rrotate_double): Remove declaration.
17213 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
17214 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
17215 (double_int_lrotate, double_int_rrotate, double_int_max,
17216 double_int_umax, double_int_smax, double_int_min, double_int_umin,
17217 double_int_smin): New function.
17218 * fold-const.c (int_const_binop): Clean up, use double_int_*
17219 functions.
17220 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
17221 double_int_* and immed_double_int_const functions.
17222
17223 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17224
17225 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
17226 * function.c (types_used_by_cur_var_decl): Likewise.
17227 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
17228
17229 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
17230
17231 * tree.h (record_layout_info): Change type of pending_statics field
17232 to a VEC.
17233 * stor-layout.c (start_record_layout): Store NULL into
17234 pending_statics.
17235 (debug_rli): Call debug_vec_tree instead of debug_tree.
17236 (place_field): Likewise.
17237 (finish_record_layout): Likewise.
17238
17239 2010-06-18 Alan Modra <amodra@gmail.com>
17240
17241 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
17242
17243 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17244
17245 PR target/43740
17246 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
17247 for SET source operand from SET destination operand.
17248
17249 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
17250
17251 PR rtl-optimization/39871
17252 * reload1.c (init_eliminable_invariants): For flag_pic, disable
17253 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
17254 (function_invariant_p): Rule out a plus of frame or arg pointer with
17255 a SYMBOL_REF.
17256 * ira.c (find_reg_equiv_invariant_const): Likewise.
17257
17258 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
17259
17260 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
17261 print_operand_address and puts to output the operand for CONST.
17262
17263 2010-06-17 Jakub Jelinek <jakub@redhat.com>
17264
17265 PR debug/44572
17266 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
17267 hook.
17268
17269 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17270
17271 * v850-protos.h (print_operand): Delete.
17272 (print_operand_address): Delete.
17273 * v850.h (PRINT_OPERAND): Delete.
17274 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17275 (PRINT_OPERAND_ADDRESS): Delete.
17276 * v850.c (print_operand_address): Rename to...
17277 (v850_print_operand_address): ...this. Make static. Call
17278 v850_print_operand.
17279 (print_operand): Rename to...
17280 (v850_print_operand): ...this. Make static. Call
17281 v850_print_operand_address.
17282 (v850_print_operand_punct_valid_p): New function.
17283 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17284 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17285
17286 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17287
17288 * config/sh/sh-protos.h (print_operand): Delete.
17289 (print_operand_address): Delete.
17290 * config/sh/sh.h (PRINT_OPERAND): Delete.
17291 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17292 (PRINT_OPERAND_ADDRESS): Delete.
17293 * config/sh/sh.c (sh_print_operand_address): Make static.
17294 (sh_print_operand): Make static. Call sh_print_operand_address
17295 and sh_print_operand.
17296 (sh_print_operand_punct_valid_p): New function.
17297 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17298 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17299
17300 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17301
17302 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
17303 (mcore_print_operand_address): Delete.
17304 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
17305 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17306 (PRINT_OPERAND_ADDRESS): Delete.
17307 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
17308 (mcore_print_operand): Make static.
17309 (mcore_print_operand_punct_valid_p): New function.
17310 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
17311 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17312
17313 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17314
17315 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
17316 (print_operand_address): Delete.
17317 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
17318 (PRINT_OPERAND_ADDRESS): Delete.
17319 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
17320 static.
17321 (m68hc11_print_operand): Make static.
17322 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17323
17324 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17325
17326 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
17327 (m32r_print_operand_address): Delete.
17328 * config/m32r/m32r.h (m32r_punct_chars): Delete.
17329 (PRINT_OPERAND): Delete.
17330 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17331 (PRINT_OPERAND_ADDRESS): Delete.
17332 * config/m32r/m32r.c (m32r_punct_chars): Make static.
17333 (m32r_print_operand_address): Make static.
17334 (m32r_print_operand): Make static.
17335 (m32r_print_operand_punct_valid_p): New function.
17336 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17337 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17338
17339 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17340
17341 * config/iq2000/iq2000-protos.h (print_operand): Delete.
17342 (print_operand_address): Delete.
17343 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
17344 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17345 (PRINT_OPERAND_ADDRESS): Delete.
17346 (iq2000_print_operand_punct): Delete.
17347 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
17348 (iq2000_print_operand_address): Make static.
17349 (iq2000_print_operand): Make static.
17350 (iq2000_print_operand_punct_valid_p): New function.
17351 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17352 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17353
17354 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17355
17356 * config/frv/frv-protos.h (frv_print_operand): Delete.
17357 (frv_print_operand_address): Delete.
17358 * config/frv/frv.h (PRINT_OPERAND): Delete.
17359 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17360 (PRINT_OPERAND_ADDRESS): Delete.
17361 * config/frv/frv.c (frv_print_operand_address): Make static.
17362 (frv_print_operand): Make static.
17363 (frv_print_operand_punct_valid_p): New function.
17364 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17365 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17366
17367 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
17368
17369 * tree.h (vec_member): Declare.
17370 * tree.c (vec_member): Define.
17371
17372 2010-06-17 Richard Guenther <rguenther@suse.de>
17373
17374 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
17375 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
17376
17377 2010-06-17 Richard Guenther <rguenther@suse.de>
17378
17379 * tree-inline.c (declare_return_variable): Remove bogus code.
17380
17381 2010-06-17 Richard Guenther <rguenther@suse.de>
17382
17383 * gimplify.c (gimplify_bind_expr): Always promote complex
17384 and vector variables to registers if possible.
17385
17386 2010-06-17 Richard Guenther <rguenther@suse.de>
17387
17388 * expr.c (get_inner_reference): Use double_int for bit_offset
17389 calculation.
17390
17391 2010-06-16 DJ Delorie <dj@redhat.com>
17392
17393 * common.opt (-fstrict-volatile-bitfields): new.
17394 * doc/invoke.texi: Document it.
17395 * fold-const.c (optimize_bit_field_compare): For volatile
17396 bitfields, use the field's type to determine the mode, not the
17397 field's size.
17398 * expr.c (expand_assignment): Likewise.
17399 (get_inner_reference): Likewise.
17400 (expand_expr_real_1): Likewise.
17401 * expmed.c (store_fixed_bit_field): Likewise.
17402 (extract_bit_field_1): Likewise.
17403 (extract_fixed_bit_field): Likewise.
17404
17405 2010-06-16 Richard Guenther <rguenther@suse.de>
17406
17407 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
17408
17409 2010-06-16 Douglas B Rupp <rupp@gnat.com>
17410
17411 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
17412 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
17413 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
17414 * debug.c: Likewise.
17415 * sdbout.c: Likewise.
17416 * vmsdbgout.c: Likewise.
17417 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
17418 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
17419 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
17420 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
17421 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
17422 * dwarf2out.c (dw_fde_struct): New fields
17423 dw_fde_vms_{end,begin}_prologue.
17424 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
17425 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
17426 (dwarf2out_vms_end_prologue): New function.
17427 (dwarf2out_vms_begin_epilogue): New function.
17428 (dw_val_struct): New value dw_val_class_vms_delta.
17429 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
17430 begin_epilogue for VMS.
17431 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
17432 new static functions.
17433 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
17434 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
17435 static functions.
17436 (print_die): New case dw_val_class_vms_delta.
17437 (attr_checksum): Likewise.
17438 (same_dw_val_p: Likewise.
17439 (size_of_die): Likewise.
17440 (value_format): Likewise.
17441 (output_die): Likewise.
17442 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
17443 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
17444 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
17445 dwarf2out_cfi_begin_epilogue
17446 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
17447
17448 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
17449
17450 * config/cris/cris-protos.h (cris_print_operand): Delete.
17451 (cris_print_operand_address): Delete.
17452 * config/cris/cris.h (PRINT_OPERAND): Delete.
17453 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17454 (PRINT_OPERAND_ADDRESS): Delete.
17455 * config/cris/cris.c (cris_print_operand_address): Make static.
17456 (cris_print_operand): Make static.
17457 (cris_print_operand_punct_valid_p): New function.
17458 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17459 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17460
17461 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
17462
17463 * config/arm/arm-protos.h (arm_print_operand): Delete.
17464 (arm_print_operand_address): Delete.
17465 * config/arm/arm.h (PRINT_OPERAND): Delete.
17466 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
17467 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
17468 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
17469 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
17470 (arm_print_operand): Make static.
17471 (arm_print_operand_punct_valid_p): New function.
17472 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
17473 (TARGET_PRINT_OPERAND_ADDRESS): Define.
17474
17475 2010-06-16 Nick Clifton <nickc@redhat.com>
17476
17477 * config/rx/constraints.md (NEGint4): New constraint.
17478 * config/rx/rx.md (attr cc): Add set_zsc.
17479 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
17480 initialised.
17481 (cmpsf): Likewise.
17482 (call_internal): Clobber the cc0 register.
17483 (call_value_internal): Likewise.
17484 (cstoresi4): Likewise.
17485 (movsieq): Likewise.
17486 (movsine): Likewise.
17487 (addsi3): Add alternative to handle small negative constants.
17488 (sunsi3): Likewise.
17489 (addsi3): Do not set the O bit in the cc0 register.
17490 (adddi3): Likewise.
17491 (subsi3): Likewise.
17492 (subdi3): Likewise.
17493 (andsi3): Reorder alternatives to prefer shorter forms.
17494 (mulsi3): Likewise.
17495 (iorsi3): Likewise.
17496 (negsi2): Note that the cc0 flags are set.
17497 (rotlsi3): Note that only the Z and S bits are set in cc0.
17498 (lshrsi3): Likewise.
17499 (ashlsi3): Likewise.
17500 (subsf3): Use %Q for the MEM operand.
17501 (fix_truncsfsi2): Likewise.
17502 (floatsisf2): Likewise.
17503 (bitset): Remove early clobber from destination.
17504 (bitset_in_memory): Likewise.
17505 (lrintsf2): Clobber the cc0 register.
17506 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
17507 (rx_print_operand): Handle %N.
17508
17509 2010-06-16 Jan Hubicka <jh@suse.cz>
17510
17511 * df-core.c (df_compact_blocks): Free problem_temps vector.
17512
17513 2010-06-16 Martin Jambor <mjambor@suse.cz>
17514
17515 PR tree-optimization/43905
17516 * tree-sra.c: Include tree-inline.h.
17517 (create_abstract_origin): Removed.
17518 (modify_function): Version the call graph node instead of creating
17519 abstract origins and dealing with same_body aliases.
17520 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
17521 function is versionable.
17522 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
17523
17524 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
17525
17526 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
17527 (CHOOSE_DYNAMIC_LINKER): Update.
17528
17529 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
17530
17531 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
17532 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
17533 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
17534 *prefetch_3dnow_rex.
17535
17536 2010-06-15 Anatoly Sokolov <aesok@post.ru>
17537
17538 * target.h (struct asm_out):Add declare_constant_name field.
17539 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
17540 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
17541 * output.h (default_asm_declare_constant_name): Declare.
17542 (assemble_label): Update prototype.
17543 * varasm.c (assemble_constant_contents): Use
17544 targetm.asm_out.declare_constant_name target hook.
17545 (assemble_label): Add 'file' argument.
17546 (default_asm_declare_constant_name): New function.
17547 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
17548 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
17549 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
17550
17551 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
17552 * config/darwin.c (darwin_asm_declare_constant_name): New function.
17553 (machopic_output_indirection): Update assemble_label argument list.
17554 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
17555 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
17556
17557 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
17558
17559 PR middle-end/44391
17560 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
17561 size_one_node for pointer types. Do not call gmp_cst_to_tree.
17562
17563 2010-06-15 Richard Guenther <rguenther@suse.de>
17564
17565 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
17566
17567 2010-06-15 Paul Brook <paul@codesourcery.com>
17568
17569 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
17570 hard-float ABI.
17571
17572 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
17573
17574 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
17575 don't get a vector type for output.
17576
17577 2010-06-15 Jakub Jelinek <jakub@redhat.com>
17578
17579 PR fortran/44536
17580 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
17581 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
17582 (LANG_HOOKS_DECLS): Add it.
17583 * gimplify.c (omp_notice_variable): Call
17584 lang_hooks.decls.omp_report_decl.
17585
17586 2010-06-15 Martin Jambor <mjambor@suse.cz>
17587
17588 PR lto/44464
17589 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
17590 on the newly dead SSA name.
17591
17592 2010-06-15 Alan Modra <amodra@gmail.com>
17593
17594 * doc/invoke.texi: Add mcmodel to powerpc options.
17595 * configure.ac: Add HAVE_LD_LARGE_TOC test.
17596 * configure: Regenerate.
17597 * config.in: Regenerate.
17598 * config/rs6000/linux64.opt (mcmodel): New.
17599 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
17600 (TARGET_CMODEL, SET_CMODEL): Define.
17601 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
17602 select CMODEL_MEDIUM default.
17603 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
17604 (TARGET_CMODEL): Define default.
17605 * config/rs6000/rs6000.c (cmodel): New variable.
17606 (rs6000_explicit_options): Add cmodel field.
17607 (rs6000_handle_option): Handle -mcmodel.
17608 (create_TOC_reference): Add largetoc_reg param. Generate high,
17609 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
17610 (rs6000_delegitimize_address): Recognise new toc reference rtl
17611 and minimal-toc rtl.
17612 (rs6000_legitimize_reload_address): Handle new toc references.
17613 (print_operand_address): Handle legitimate_constant_pool_address_p
17614 match before lo_sum.
17615 (rs6000_eliminate_indexed_memrefs): Tidy.
17616 (rs6000_emit_move): Tweak threshold for inlining constants.
17617 Keep rs6000_emit_allocate_stack large stack frame offsets
17618 loaded into r0 inline.
17619 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
17620 (tocrel_base, tocrel_offset): New variables.
17621 (toc_relative_expr_p): Set them here.
17622 (print_operand_address): Skip over any offset on constant pool address.
17623 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
17624 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
17625 (offsettable_ok_by_alignment): New function.
17626 (rs6000_emit_move): Address suitably aligned local symbol_refs
17627 relative to the toc pointer for -mcmodel=medium.
17628 (legitimate_constant_pool_address_p): Make param const_rtx. Add
17629 strict param. Allow lo_sum version of addressing. Verify reg
17630 used for -mminimal-toc and -mcmodel != small. Update all callers.
17631 * config/rs6000/constraints.md: Update for above change.
17632 * config/rs6000/predicates.md: Likewise.
17633 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
17634 code.
17635 (tls_gd): Split for -mcmodel=medium/large.
17636 (tls_gd_high, tls_gd_low): New.
17637 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
17638 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
17639 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
17640 (largetoc_high, largetoc_low): New.
17641 (cmptf_internal2): Add clobber.
17642 * config/rs6000/rs6000-protos.h: Update.
17643
17644 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
17645
17646 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
17647 true if no prefetch is going to be generated for a given group.
17648 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
17649 estimate the prefetch_count.
17650 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
17651 prefetch count by considering the unroll_factor and prefetch_mod
17652 for is_loop_prefetching_profitable.
17653
17654 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
17655
17656 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
17657 anything if the argument is not a MEM.
17658
17659 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
17660
17661 PR debug/43650
17662 PR debug/44181
17663 PR debug/44247
17664 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
17665 debug stmts.
17666 (canonicalize_loop_ivs): Likewise.
17667
17668 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
17669
17670 PR debug/43656
17671 * haifa-sched.c (setup_insn_reg_pressure_info,
17672 update_register_pressure): Reject debug insns.
17673 (ready_sort): Don't setup reg pressure for debug insns.
17674 (schedule_insn): Don't update reg pressure for debug insns.
17675
17676 2010-06-14 Richard Guenther <rguenther@suse.de>
17677
17678 * lto-streamer.c (cached_bp): Remove.
17679 (bitpack_delete): Likewise.
17680 (bitpack_create): Likewise.
17681 (bp_get_next_word): Likewise.
17682 (bp_pack_value, bp_unpack_value): Move ...
17683 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
17684 Re-implement.
17685 (struct bitpack_d): Likewise.
17686 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
17687 New inline functions.
17688 * lto-streamer-out.c (lto_output_bitpack): Remove.
17689 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
17690 (pack_value_fields): Adjust.
17691 (lto_write_tree): Likewise.
17692 (output_gimple_stmt): Likewise.
17693 (output_function): Likewise.
17694 * lto-streamer-in.c (input_gimple_stmt): Adjust.
17695 (input_function): Likewise.
17696 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
17697 (lto_input_bitpack): Remove.
17698 (lto_materialize_tree): Adjust.
17699 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
17700 * lto-cgraph.c (lto_output_edge): Adjust.
17701 (lto_output_node): Likewise.
17702 (lto_output_varpool_node): Likewise.
17703 (lto_output_ref): Likewise.
17704 (input_node): Likewise.
17705 (input_varpool_node): Likewise.
17706 (input_ref): Likewise.
17707 (input_edge): Likewise.
17708 (output_node_opt_summary): Likewise.
17709 (input_node_opt_summary): Likewise.
17710 * ipa-pure-const.c (pure_const_write_summary): Likewise.
17711 (pure_const_read_summary): Likewise.
17712 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
17713 (ipa_read_indirect_edge_info): Likewise.
17714 (ipa_write_node_info): Likewise.
17715 (ipa_read_node_info): Likewise.
17716
17717 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
17718
17719 PR target/44534
17720 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
17721 (vec_extract_lo_v16hi): Likewise.
17722 (vec_extract_lo_v32qi): Likewise.
17723
17724 2010-06-14 Jakub Jelinek <jakub@redhat.com>
17725
17726 PR bootstrap/44426
17727 * tree.h (build_call_expr): Don't define as vararg macro, instead
17728 add a prototype.
17729 * builtins.c (build_call_nofold): Remove.
17730 (expand_builtin_int_roundingfn, expand_builtin_pow,
17731 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
17732 expand_builtin_memset_args, expand_builtin_strcmp,
17733 expand_builtin_strncmp, expand_builtin_memory_chk): Use
17734 build_call_nofold_loc instead of build_call_nofold.
17735 (build_call_expr): New function.
17736
17737 PR tree-optimization/44508
17738 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
17739 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
17740 don't eliminate trivially dead stmts.
17741 * tree-vrp.c (vrp_finalize): Pass false as last argument
17742 to substitute_and_fold.
17743 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
17744 to substitute_and_fold.
17745 * tree-ssa-ccp.c (ccp_finalize): Likewise.
17746
17747 PR bootstrap/44509
17748 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
17749
17750 2010-06-14 Ira Rosen <irar@il.ibm.com>
17751
17752 PR tree-optimization/44507
17753 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
17754 to build initial vector for BIT_AND_EXPR.
17755 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
17756
17757 2010-06-14 Jakub Jelinek <jakub@redhat.com>
17758
17759 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
17760 adjust z10prop set_attr.
17761
17762 2010-06-13 Jan Hubicka <jh@suse.cz>
17763
17764 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
17765 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
17766 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
17767 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
17768 datastructure checks into checking asserts.
17769 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
17770 * tree-ssa-sccvn.c (VN_INFO): Likewise.
17771 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
17772 df_ref_create_structure): Likewise.
17773 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
17774 pool_free): Use gcc_checking_assert.
17775 * alias.c (get_alias_set): Likewise.
17776 * var-tracking.c (variable_htab_free, shared_hash_copy,
17777 canonicalize_values_mark, variable_merge_over_cur): Likewise.
17778 * lto-streamer.c (bp_unpack_value): Likewise.
17779
17780 2010-06-13 Richard Guenther <rguenther@suse.de>
17781
17782 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
17783 Do not stream but initialize TYPE_CANONICAL to NULL.
17784 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
17785 * gimple.c (gimple_types_compatible_p): Disregard
17786 TYPE_STRUCTURAL_EQUALITY_P.
17787 (gimple_register_type): Use TYPE_CANONICAL as cache.
17788 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
17789 before registering common types.
17790 * config/i386/i386.c (ix86_function_arg_boundary): Do not
17791 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
17792 * tree.h (TYPE_CANONICAL): Clarify documentation.
17793
17794 2010-06-13 Anatoly Sokolov <aesok@post.ru>
17795
17796 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
17797 LIBCALL_VALUE): Remove macros.
17798 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
17799 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17800 TARGET_FUNCTION_VALUE_REGNO_P): Define.
17801 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
17802 (ia64_function_value): Make static. Handle receiving the function
17803 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
17804
17805 2010-06-12 Jan Hubicka <jh@suse.cz>
17806
17807 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
17808 at correct place.
17809
17810 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
17811
17812 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
17813
17814 2010-06-12 Jan Hubicka <jh@suse.cz>
17815
17816 * df-core.c (df_clear_bb_info): New function.
17817 (df_set_blocks): bb_info is always allocated.
17818 (df_get_bb_info): Use block_info_elt_size.
17819 (df_set_bb_info): Likewise.
17820 (df_compact_blocks): Update for new block_info.
17821 (grow_bb_info): New function.
17822 * df-problems.c (df_grow_bb_info): Move to df-core.c
17823 (df_rd_set_bb_info): Remove.
17824 (df_rd_free_bb_info): Do not free block pool.
17825 (df_rd_alloc): Do not create pool, use check for
17826 obstack presence instead of NULL pointer for new blocks.
17827 (df_rd_free): DO not free alloc pool; clear block_info.
17828 (problem_RD): Add size of block info structure.
17829 (df_lr_set_bb_info): Remove.
17830 (df_lr_free_bb_info): Do not free block pool.
17831 (df_lr_alloc): Do not create pool, use check for
17832 obstack presence instead of NULL pointer for new blocks.
17833 (df_lr_free): DO not free alloc pool; clear block_info.
17834 (problem_LR): Add size of block info structure.
17835 (df_live_set_bb_info): Remove.
17836 (df_live_free_bb_info): Do not free block pool.
17837 (df_live_alloc): Do not create pool, use check for
17838 obstack presence instead of NULL pointer for new blocks.
17839 (df_live_free): DO not free alloc pool; clear block_info.
17840 (problem_LIVE): Add size of block info structure.
17841 (problem_CHAIN): Add size of block info structure.
17842 (df_byte_lr_set_bb_info): Remove.
17843 (df_byte_lr_free_bb_info): Do not free block pool.
17844 (df_byte_lr_alloc): Do not create pool, use check for
17845 obstack presence instead of NULL pointer for new blocks.
17846 (df_byte_lr_free): DO not free alloc pool; clear block_info.
17847 (problem_BYTE_LR): Add size of block info structure.
17848 (problem_NOTE): Add size of block info structure.
17849 (df_byte_MD_set_bb_info): Remove.
17850 (df_byte_MD_free_bb_info): Do not free block pool.
17851 (df_byte_MD_alloc): Do not create pool, use check for
17852 obstack presence instead of NULL pointer for new blocks.
17853 (df_byte_MD_free): DO not free alloc pool; clear block_info.
17854 (problem_BD): Add size of block info structure.
17855 * df-scan.c (df_scan_free_internal): Free block pool.
17856 (df_scan_set_bb_info): Remove.
17857 (df_scan_free_bb_info): Check for artificial_defs instead
17858 of bb_info being non-NULL.
17859 (df_scan_alloc): DO not create df_scan_block pool.
17860 (problem_SCAN): Set size of block info.
17861 (df_bb_refs_record): Do not allocate bb_info.
17862 * df.h (df_problem): Add block_info_elt_size.
17863 (struct dataflow): Change block_info to void *.
17864 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
17865 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
17866 in-line structures.
17867
17868 2010-06-12 Jan Hubicka <jh@suse.cz>
17869
17870 PR tree-optimize/44485
17871 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
17872 containing use of return value of noreturn function.
17873
17874 2010-06-12 Anatoly Sokolov <aesok@post.ru>
17875
17876 * targhooks.c (default_function_value): Don't use
17877 FUNCTION_OUTGOING_VALUE.
17878 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
17879 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
17880
17881 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
17882
17883 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
17884 Add crtfastmath.o to extra_parts.
17885 * config/mips/crtfastmath.c: New.
17886 * config/mips/linux.h (ENDFILE_SPEC): New.
17887
17888 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
17889
17890 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
17891 old_type in parameter.
17892 (gcc_type_for_value): Update call to gcc_type_for_interval.
17893 (compute_type_for_level_1): Renamed compute_type_for_level.
17894 Update call to gcc_type_for_interval.
17895
17896 2010-06-11 Joseph Myers <joseph@codesourcery.com>
17897
17898 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
17899 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
17900
17901 2010-06-11 Joseph Myers <joseph@codesourcery.com>
17902
17903 * opts-common.c: Include options.h.
17904 (integral_argument): Move from opts.c.
17905 (decode_cmdline_option): New. Based on read_cmdline_option.
17906 * opts.c (integral_argument): Move to opts-common.c.
17907 (read_cmdline_option): Move most contents to
17908 decode_cmdline_option. Use %qs in diagnostics.
17909 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
17910 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
17911 decode_cmdline_option): New.
17912
17913 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
17914
17915 PR target/44481
17916 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
17917 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
17918 (partiysi2_cmp): Ditto.
17919 (*partiyhi2_cmp): Ditto.
17920 (*parityqi2_cmp): Remove.
17921
17922 2010-06-11 Jan Hubicka <jh@suse.cz>
17923
17924 * bitmap.h (bmp_iter_next_bit): New.
17925 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
17926
17927 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
17928 Eric Botcazou <ebotcazou@adacore.com>
17929
17930 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
17931 computed cost.
17932
17933 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
17934
17935 * config/i386/i386.md (unspec): New define_c_enum.
17936 (unspecv): Ditto.
17937
17938 2010-06-10 Jakub Jelinek <jakub@redhat.com>
17939
17940 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
17941
17942 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
17943
17944 PR middle-end/44483
17945 * tree-if-conv.c (bb_predicate_s): New struct.
17946 (bb_predicate_p): New.
17947 (bb_has_predicate): New.
17948 (bb_predicate): New.
17949 (set_bb_predicate): New.
17950 (bb_predicate_gimplified_stmts): New.
17951 (set_bb_predicate_gimplified_stmts): New.
17952 (add_bb_predicate_gimplified_stmts): New.
17953 (init_bb_predicate): New.
17954 (free_bb_predicate): New.
17955 (is_predicated): Use bb_predicate.
17956 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
17957 (predicate_bbs): Same. Gimplify the condition of the basic blocks
17958 before processing their successors.
17959 (clean_predicate_lists): Removed.
17960 (find_phi_replacement_condition): Use bb_predicate.
17961 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
17962 computations.
17963 (insert_gimplified_predicates): New.
17964 (combine_blocks): Call insert_gimplified_predicates.
17965 (tree_if_conversion): Call free_bb_predicate instead of
17966 clean_predicate_lists.
17967
17968 2010-10-11 Paul Brook <paul@codesourcery.com>
17969
17970 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
17971 * config/arm/arm.c (all_architectures): Change v7e-m default to
17972 cortexm4.
17973 * config/arm/arm-cores.def: Add cortex-m4.
17974 * config/arm/arm-tune.md: Regenerate.
17975
17976 2010-06-11 Jan Hubicka <jh@suse.cz>
17977
17978 * ipa-pure-const.c (special_builtlin_state): New function.
17979 (check_call): Use it instead of special casign BUILT_IN_RETURN.
17980 (propagate_pure_const): Use it.
17981
17982 2010-06-11 Jan Hubicka <jh@suse.cz>
17983
17984 * df-problems.c (df_live_scratch): Convert to bitmap_head.
17985 (df_live_alloc): Initialize df_live_scratch when initializing
17986 problem_data.
17987 (df_live_transfer_function): Update uses of df_live_scratch.
17988 (df_live_free): Free problem_data; clear df_live_scratch before
17989 releasing the obstack.
17990 (df_md_free): Free problem data.
17991
17992 2010-06-11 Jan Hubicka <jh@suse.cz>
17993
17994 * doc/invoke.texi (Wsuggest-attribute): Document.
17995 (Wmissing-noreturn): Remove.
17996 * ipa-pure-const.c (warn_function_noreturn): New function.
17997 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
17998 warn_missing_noreturn.
17999 * common.opt (Wsuggest-attribute=noreturn): New.
18000 * tree-flow.h (warn_function_noreturn): Declare.
18001 * tree-cfg.c (execute_warn_function_noreturn): Use
18002 warn_function_noreturn.
18003 (gate_warn_function_noreturn): New.
18004 (pass_warn_function_noreturn): Update.
18005
18006 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18007
18008 * c-typeck.c (handle_warn_cast_qual): Add loc
18009 parameter. Improve warning message.
18010 (build_c_cast): Pass location to handle_warn_cast_qual.
18011
18012 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
18013
18014 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
18015 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
18016 insn mnemonic.
18017 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
18018
18019 2010-06-10 Dodji Seketeli <dodji@redhat.com>
18020
18021 Fix bootstap on mips
18022 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
18023 be naming typedefs.
18024
18025 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
18026
18027 * system.h (helper_const_non_const_cast): New inline for
18028 gcc version <= 4.0.
18029 (CONST_CAST2): For gcc version <= 4.0 use
18030 new helper to do const/non-const casting.
18031
18032 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18033
18034 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
18035 * Makefile.in (OBJS-common): Include insn-enums.o.
18036 (insn-enums.o): New rule.
18037 (simple_generated_c): Add insn-enums.c.
18038 (build/genenums.o): New rule.
18039 (genprogmd): Add "enums".
18040 * genconstants.c (print_enum_type): Declare a C string array
18041 for each enum.
18042 * genenums.c: New file.
18043 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
18044 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
18045 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
18046
18047 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18048
18049 * doc/md.texi (define_enum_attr): Document.
18050 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
18051 * read-md.h (lookup_enum_type): Declare.
18052 * read-md.c (lookup_enum_type): New function.
18053 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
18054 * genattrtab.c (attr_desc): Add an enum_name field.
18055 (evaluate_eq_attr): Take the associated attribute as argument.
18056 Get the enum prefix from the enum_name field, if defined.
18057 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
18058 (simplify_test_exp): Pass attr to evaluate_eq_attr.
18059 (add_attr_value): New function, split out from...
18060 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
18061 (write_test_expr): Pass attr to evaluate_eq_attr.
18062 (write_attr_get): Use the enum_name as the enum tag, if defined.
18063 (write_attr_valueq): Use the enum_name as a prefix, if defined.
18064 (find_attr): Initialize enum_name.
18065 (main): Handle DEFINE_ENUM_ATTR.
18066 * gensupport.c (process_rtx): Likewise.
18067 * config/mips/mips.h (mips_tune_attr): Delete.
18068 * config/mips/mips.md (cpu): Use define_attr_enum.
18069
18070 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18071
18072 * doc/md.texi (define_c_enum, define_enum): Document.
18073 * read-md.h (md_constant): Add a parent_enum field.
18074 (enum_value, enum_type): New structures.
18075 (upcase_string, traverse_enum_types): Declare.
18076 * read-md.c (enum_types): New variable.
18077 (upcase_string, add_constant): New functions.
18078 (handle_constants): Don't create the hash table here.
18079 Use add_constant.
18080 (traverse_md_constants): Don't check for a null md_constants.
18081 (decimal_string, handle_enum, traverse_enum_types): New functions.
18082 (read_md_files): Initialize md_constants and md_enums.
18083 * genconstants.c (print_md_constant): Ignore info argument.
18084 Only print constants that belong to no enum.
18085 (print_enum_type): New function.
18086 (main): Don't pass stdout to print_md_constant. Call print_enum_type
18087 for each defined enum type.
18088 * config/mips/mips.md (processor): New define_enum.
18089 (unspec): New define_c_enum.
18090 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
18091 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
18092 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
18093 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
18094 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
18095 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
18096 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
18097 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
18098 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
18099 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
18100 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
18101 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
18102 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
18103 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
18104 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
18105 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
18106 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
18107 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
18108 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
18109 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
18110 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
18111 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
18112 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18113 (UNSPEC_RDDSP): Move to mips-dsp.md.
18114 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
18115 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
18116 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
18117 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
18118 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
18119 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
18120 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
18121 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
18122 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
18123 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
18124 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
18125 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
18126 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
18127 Moved to mips-dspr2.md.
18128 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
18129 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
18130 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
18131 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
18132 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
18133 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
18134 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18135 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18136 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18137 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18138 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18139 UNSPEC_LOONGSON_PSADBH)
18140 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18141 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18142 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
18143 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18144 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18145 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18146 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
18147 (cpu): Update comment.
18148 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
18149 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
18150 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
18151 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
18152 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
18153 UNSPEC_LOONGSON_PCMPEQ)
18154 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
18155 UNSPEC_LOONGSON_PINSR_0)
18156 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
18157 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
18158 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
18159 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
18160 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
18161 UNSPEC_LOONGSON_PSADBH)
18162 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
18163 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
18164 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
18165 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
18166 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
18167 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
18168 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
18169 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
18170 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
18171 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
18172 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
18173 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
18174 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
18175 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
18176 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
18177 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
18178 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
18179 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
18180 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
18181 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
18182 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
18183 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
18184 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
18185 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
18186 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
18187 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
18188 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
18189 (UNSPEC_RDDSP): Moved from mips.md.
18190 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
18191 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
18192 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
18193 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
18194 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
18195 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
18196 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
18197 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
18198 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
18199 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
18200 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
18201 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
18202 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
18203 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
18204 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
18205 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
18206 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
18207 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
18208 (UNSPEC_SCC): Moved from mips.md.
18209 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
18210 "processor_type" to "processor".
18211 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
18212 * config/mips/mips.h (processor_type): Delete.
18213 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
18214 "processor_type" to "processor".
18215
18216 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18217
18218 * configure.ac (tm_include_list): Add insn-constants.h.
18219 * configure: Regenerate.
18220 * Makefile.in (GTM_H): Move insn-constants.h here from...
18221 (TM_H): ...here.
18222 * mkconfig.sh: Remove special handling for insn-constants.h.
18223
18224 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18225
18226 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
18227 (BUILD_MD): ...this new variable.
18228 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
18229 that include the old contents of simple_generated_h and
18230 simple_generated_c.
18231 (simple_generated_h, simple_generated_c): Include them. Add
18232 insn-constants.h.
18233 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
18234 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
18235 Remove these dependencies from the main rule and include
18236 insn-conditions.md in the command line only if it appears
18237 in the dependency list.
18238 (insn-constants.h, s-constants): Delete.
18239 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
18240 or gensupport.h.
18241 (build/genmddeps.o): Likewise.
18242 (genprogrtl): New variable that contains everything from genprogmd
18243 except mddeps and constants.
18244 (genprogmd): Redefine in terms of genprogrtl. Make these programs
18245 depend on $(BUILD_MD)
18246 (genprog): New variable. Make these programs depend on
18247 $(BUILD_ERRORS).
18248 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
18249 (main): Use read_md_files instead of init_rtx_reader_args.
18250 * genconstants.c: As for genmddeps.c.
18251 * read-md.h (read_skip_construct): Declare.
18252 * read-md.c (read_skip_construct): New function.
18253 (handle_file): Allow a null handle_directive, skipping the
18254 construct if so.
18255 (parse_include): Update the comment accordingly.
18256
18257 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18258
18259 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
18260 * genmddeps.c: Include read-md.h.
18261 (main): Call init_rtx_reader_args instead of init_md_reader_args.
18262 * genattr.c (main): Likewise.
18263 * genattrtab.c (main): Likewise.
18264 * genautomata.c (main): Likewise.
18265 * gencodes.c (main): Likewise.
18266 * genconditions.c (main): Likewise.
18267 * genconfig.c (main): Likewise.
18268 * genconstants.c (main): Likewise.
18269 * genemit.c (main): Likewise.
18270 * genextract.c (main): Likewise.
18271 * genflags.c (main): Likewise.
18272 * genopinit.c (main): Likewise.
18273 * genoutput.c (main): Likewise.
18274 * genpeep.c (main): Likewise.
18275 * genrecog.c (main): Likewise.
18276 * genpreds.c (main): Likewise.
18277 * gensupport.h (in_fname): Move to read-md.h.
18278 (init_md_reader_args_cb): Rename to...
18279 (init_rtx_reader_args_cb): ...this and return a bool.
18280 (init_md_reader_args): Rename to...
18281 (init_rtx_reader_args): ...this and return a bool.
18282 (include_callback): Move to read-md.h.
18283 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
18284 (file_name_list, first_dir_md_include): Move to read-md.c
18285 (first_bracket_include): Delete unused variable.
18286 (last_dir_md_include): Move to read-md.c.
18287 (process_include): Delete, moving code to read-md.c:handle_include.
18288 (process_rtx): Don't handle INCLUDE.
18289 (save_string): Delete.
18290 (rtx_handle_directive): New function.
18291 (init_md_reader_args_cb): Rename to...
18292 (init_rtx_reader_args_cb): ...this and return a boolean success value.
18293 Use read_md_args.
18294 (init_md_reader_args): Rename to...
18295 (init_rtx_reader_args): ...this and return a boolean success value.
18296 * rtl.def (INCLUDE): Delete.
18297 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
18298 argument.
18299 * read-rtl.c (read_conditions): Don't gobble ')' here.
18300 (read_mapping): Likewise.
18301 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
18302 Handle top-level non-rtx constructs here rather than in read_rtx_1.
18303 Store the whole queue in *X. Remove call to init_md_reader.
18304 (read_rtx_1): Rename to...
18305 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
18306 Don't handle top-level non-rtx constructs here. Don't handle (nil)
18307 here.
18308 (read_nested_rtx): New function. Handle (nil) here rather than
18309 in read_rtx_code.
18310 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
18311 gobble ')' here.
18312 * read-md.h (directive_handler_t): New type.
18313 (in_fname, include_callback): Moved from read-md.h.
18314 (read_constants, init_md_reader): Delete.
18315 (read_md_files): Declare.
18316 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
18317 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
18318 from gensupport.c.
18319 (read_constants): Rename to...
18320 (handle_constants): ...this. Don't gobble ')' here.
18321 (handle_include, handle_file, handle_toplevel_file)
18322 (parse_include): New functions, mostly taken from gensupport.c.
18323 (init_md_reader): Subsume into...
18324 (read_md_files): ...this new function.
18325
18326 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18327
18328 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
18329 (unread_char): Decrement read_md_lineno after putting back '\n'.
18330 * read-md.c (fatal_with_file_and_line): Push back any characters
18331 that we decide not to add to the context.
18332 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
18333 fatal_expected_char in cases where '/' ends a line (for example).
18334 (read_name): Don't increment read_md_lineno here.
18335 (read_escape): Likewise.
18336 (read_quoted_string): Likewise.
18337 (read_braced_string): Likewise.
18338
18339 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18340
18341 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
18342 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
18343 * genconstants.c: Include read-md.h.
18344 * read-rtl.c (md_constants): Move to read-md.c.
18345 (md_name): Move to read-md.h.
18346 (initialize_iterators): Use leading_string_hash instead of def_hash
18347 and leading_string_eq_p instead of def_name_eq_p.
18348 (read_name): Move to read-md.c.
18349 (def_hash, def_name_eq_p): Delete.
18350 (read_constants, traverse_md_constants): Move to read-md.c.
18351 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
18352 * read-md.h: Include hashtab.h.
18353 (md_name): Moved from read-rtl.c.
18354 (md_constant): Moved from read-md.h.
18355 (leading_string_hash, leading_string_eq_p, read_name)
18356 (read_constants, traverse_md_constants): Declare.
18357 * read-md.c (md_constants): Moved from read-rtl.c.
18358 (leading_string_hash, leading_string_eq_p): New functions.
18359 (read_name, read_constants, traverse_md_constants): Moved from
18360 read-rtl.c.
18361
18362 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18363
18364 * read-rtl.c (md_name): New structure.
18365 (read_name): Take an md_name instead of a buffer pointer.
18366 Use the "string" field instead of strcpy when expanding constants.
18367 (read_constants): Remove the tmp_char argument. Update the calls
18368 to read_name, using two local name buffers instead of the tmp_char
18369 argument. Merge the constant-creation code.
18370 (read_conditions): Remove the tmp_char argument. Update the calls
18371 to read_name, using a local name buffer instead of the tmp_char
18372 argument.
18373 (read_mapping): Replace tmp_char variable with a local name buffer.
18374 Update the calls to read_name.
18375 (read_rtx_1): Likewise. Update the calls to read_constants and
18376 read_conditions.
18377
18378 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18379
18380 * Makefile.in (build/read-md.o): Depend on errors.h.
18381 * read-md.h (error_with_line): Declare.
18382 * read-md.c: Include errors.h.
18383 (message_with_line_1): New function, extracted from...
18384 (message_with_line): ...here.
18385 (error_with_line): New function.
18386 * genattrtab.c: If a call to message_with_line is followed by
18387 "have_error = 1;", replace both statements with a call to
18388 error_with_line.
18389 * genoutput.c: Likewise.
18390 * genpreds.c: Likewise.
18391 * genrecog.c: If a call to message_with_line is followed by
18392 "error_count++;", replace both statements with a call to
18393 error_with_line.
18394 (errorcount): Delete.
18395 (main): Don't check it.
18396 * gensupport.c: If a call to message_with_line is followed by
18397 "errors = 1;", replace both statements with a call to error_with_line.
18398 (errors): Delete.
18399 (process_define_cond_exec): Check have_error instead of errors.
18400 (init_md_reader_args_cb): Likewise. Don't set errors.
18401
18402 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18403
18404 * read-md.h (read_md_file): Declare.
18405 (read_char, unread_char): New functions.
18406 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
18407 (read_quoted_string, read_string): Remove FILE * argument.
18408 * read-md.c (read_md_file): New variable.
18409 (read_md_filename, read_md_lineno): Update comments and remove
18410 unnecessary initialization.
18411 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
18412 (read_escape, read_quoted_string, read_braced_string, read_string):
18413 Remove FILE * argument. Update calls accordingly, using read_char
18414 and unread_char instead of getc and ungetc.
18415 * rtl.h (read_rtx): Remove FILE * argument.
18416 * read-rtl.c (iterator_group): Remove FILE * argument from
18417 "find_builtin".
18418 (iterator_traverse_data): Remove "infile" field.
18419 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
18420 (add_mapping, read_name, read_constants, read_conditions)
18421 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
18422 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
18423 Remove file arguments from all calls, using read_char and unread_char
18424 instead of getc and ungetc.
18425 * gensupport.c (process_include): Preserve read_md_file around
18426 the include. Set read_md_file to the handle of the included file.
18427 Update call to read_rtx.
18428 (init_md_reader_args_cb): Set read_md_file to the handle of the file
18429 and remove local FILE *. Update calls to read_rtx.
18430
18431 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18432
18433 * read-md.h (read_rtx_lineno): Rename to...
18434 (read_md_lineno): ...this.
18435 (read_rtx_filename): Rename to...
18436 (read_md_filename): ...this.
18437 (copy_rtx_ptr_loc): Rename to...
18438 (copy_md_ptr_loc): ...this.
18439 (print_rtx_ptr_loc): Rename to...
18440 (print_md_ptr_loc): ...this.
18441 * read-md.c: Likewise. Update references after renaming.
18442 (string_obstack): Replace RTL with MD in comment.
18443 (set_rtx_ptr_loc): Rename to...
18444 (set_md_ptr_loc): ...this.
18445 (get_rtx_ptr_loc): Rename to...
18446 (get_md_ptr_loc): ...this.
18447 * genconditions.c: Update references after renaming.
18448 * genemit.c: Likewise.
18449 * genoutput.c: Likewise.
18450 * genpreds.c: Likewise.
18451 * gensupport.c: Likewise.
18452 * read-rtl.c: Likewise.
18453
18454 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
18455
18456 * Makefile.in (READ_MD_H): New variable.
18457 (BUILD_RTL): Add build/read-md.o.
18458 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
18459 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
18460 (build/genattrtab.o, build/genconditions.o build/genemit.o)
18461 (build/genextract.o, build/genflags.o, build/genoutput.o)
18462 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
18463 (build/read-md.o): New rule.
18464 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
18465 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
18466 * coretypes.h: ...here.
18467 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
18468 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
18469 * genattr.c: Include read-md.h.
18470 * genattrtab.c: Likewise.
18471 * genconditions.c: Likewise.
18472 * genemit.c: Likewise.
18473 * genextract.c: Likewise.
18474 * genflags.c: Likewise.
18475 * genoutput.c: Likewise.
18476 * genpreds.c: Likewise.
18477 * genrecog.c: Likewise.
18478 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
18479 (join_c_conditions, print_c_condition, read_rtx_filename)
18480 (read_rtx_lineno): Move to read-md.h.
18481 * read-rtl.c: Include read-md.h.
18482 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
18483 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
18484 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
18485 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
18486 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
18487 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
18488 (read_braced_string, read_string): Move to read-md.c.
18489 (read_rtx): Move some initialization to init_md_reader and call
18490 init_md_reader here.
18491 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
18492 Move to read-md.h.
18493 * gensupport.c: Include read-md.h.
18494 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
18495 * read-md.h, read-md.c: New files.
18496
18497 2010-06-10 Anatoly Sokolov <aesok@post.ru>
18498
18499 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18500 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18501 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
18502 * config/moxie/moxie.c (moxie_function_value): Make static.
18503 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
18504 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
18505
18506 2010-06-10 Martin Jambor <mjambor@suse.cz>
18507
18508 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
18509 * dbgcnt.def (tree_sra): New counter.
18510 * tree-sra.c: Include dbgcnt.h.
18511 (gate_intra_sra): Check tree_sra debug counter.
18512
18513 2010-06-10 Martin Jambor <mjambor@suse.cz>
18514
18515 PR tree-optimization/44258
18516 * tree-sra.c (build_access_subtree): Return false iff there is a
18517 partial overlap.
18518 (build_access_trees): Likewise.
18519 (analyze_all_variable_accesses): Disqualify candidates if
18520 build_access_trees returns true for them.
18521
18522 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
18523
18524 PR debug/41371
18525 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
18526 tail-recurse into canonical node. Fast-forward over
18527 non-canonical VALUEs.
18528
18529 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
18530
18531 PR boostrap/44470
18532 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
18533 (*addsi_1_zext) <TYPE_LEA>: Likewise.
18534 (add lea splitter): Likewise.
18535 (add_zext lea splitter): Likewise.
18536
18537 2010-06-10 Joseph Myers <joseph@codesourcery.com>
18538
18539 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
18540
18541 2010-06-10 Jan Hubicka <jh@suse.cz>
18542
18543 * df-problems.c (df_live_problem_data): Add live_bitmaps.
18544 (df_live_alloc): Initialize problem data and live_osbtacks.
18545 (df_live_finalize): Remove obstack, problem data; do not
18546 clear all bitmaps.
18547 (df_live_top_dump, df_live_bottom_dump): Do not dump old
18548 data when not allocated.
18549 (df_live_verify_solution_start): Do not allocate problem data.
18550 (df_live_verify_solution_end): Check if out is allocated.
18551 (struct df_md_problem_data): New structure.
18552 (df_md_alloc): Allocate problem data.
18553 (df_md_free): Free problem data; do not clear bitmaps.
18554
18555 2010-06-10 Jan Beulich <jbeulich@novell.com>
18556
18557 PR bootstrap/37304
18558 * configure.ac: Replace $() with ${} when intending to expand
18559 variables rather than invoking commands.
18560 * configure: Re-generate.
18561
18562 2010-06-10 Jan Hubicka <jh@suse.cz>
18563
18564 PR rtl-optimization/44460
18565 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
18566 TYPE_NEEDS_CONSTRUCTING sanity check.
18567
18568 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
18569
18570 * doc/include/fdl.texi: Move to GFDL version 1.3.
18571
18572 * doc/cpp.texi: Move to GFDL version 1.3.
18573 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
18574 * doc/gccint.texi: Move to GFDL version 1.3.
18575 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
18576 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
18577 * doc/invoke.texi: Move to GFDL version 1.3.
18578
18579 2010-06-09 Jan Hubicka <jh@suse.cz>
18580
18581 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
18582 Break out from ...
18583 (propagate) ... here; swap the order.
18584
18585 2010-06-09 Jan Hubicka <jh@suse.cz>
18586
18587 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
18588 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
18589 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
18590 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
18591
18592 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
18593
18594 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
18595 Do not the gather memory reference in the outer loop if the step
18596 is not a constant.
18597
18598 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
18599
18600 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
18601 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
18602 8 to 4. Minor change of the related comments.
18603
18604 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
18605
18606 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
18607 the scev analysis when the variable is not used outside the loop
18608 in a close phi node: call compute_overall_effect_of_inner_loop.
18609
18610 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
18611
18612 * graphite-sese-to-poly.c (single_pred_cond): Renamed
18613 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
18614 (build_sese_conditions_before): Renamed call to single_pred_cond.
18615 (build_sese_conditions_after): Same.
18616
18617 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
18618
18619 * graphite-poly.h: Fix comments and indentation.
18620 * graphite-sese-to-poly.c: Same.
18621 (build_sese_conditions_before): Compute stmt and gbb only when needed.
18622 * tree-chrec.c: Fix comments and indentation.
18623 (tree-ssa-loop-niter.c): Same.
18624
18625 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
18626
18627 PR rtl-optimization/42461
18628 * dce.c (deletable_insn_p): Return true for const or pure calls again.
18629 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
18630
18631 2010-06-09 Jan Hubicka <jh@suse.cz>
18632
18633 * bitmap.c (bitmap_and): Walk array forward.
18634 (bitmap_and_compl_into): Likewise.
18635 (bitmap_xor): Likewise.
18636 (bitmap_xor_into): Likewise.
18637 (bitmap_equal_p): Likewise.
18638 (bitmap_intersect_p): Likewise.
18639 (bitmap_intersect_compl_p): Likewise.
18640 (bitmap_ior_and_into): Likewise.
18641 (bitmap_elt_copy): Likewise.
18642 (bitmap_and_compl): Likewise.
18643 (bitmap_elt_ior): Likewise.
18644
18645 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
18646
18647 * opts-common.c (prune_options): Ensure replacement argv array
18648 is correctly terminated by a NULL entry.
18649
18650 2010-06-09 Jan Hubicka <jh@suse.cz>
18651
18652 * cgraph.h (varpool_first_static_initializer,
18653 varpool_next_static_initializer): Make checking only when
18654 checking enabled.
18655 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
18656 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
18657 gcc_assert to gcc_checking_assert.
18658 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
18659 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
18660 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
18661 op_iter_init_phiuse, op_iter_init_phidef,
18662 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
18663 gcc_checking_assert.
18664 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
18665 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
18666 partition_is_global, live_on_entry, live_on_exit,
18667 live_merge_and_clear): Likewise.
18668 * system.h (gcc_checking_assert): New macro.
18669 * gimple.h (set_bb_seq): Use gcc_checking_assert.
18670
18671 2010-06-09 Jason Merrill <jason@redhat.com>
18672
18673 * Makefile.in (TAGS): Collect tags info from c-family.
18674
18675 2010-06-09 Jan Hubicka <jh@suse.cz>
18676
18677 * gimple.h (gcc_gimple_checking_assert): New macro.
18678 (gimple_set_def_ops, gimple_set_use_ops,
18679 gimple_set_vuse, gimple_set_vdef,
18680 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
18681 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
18682 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
18683 gimple_asm_output_op, gimple_asm_output_op_ptr,
18684 gimple_asm_set_output_op, gimple_asm_clobber_op,
18685 gimple_asm_set_clobber_op, gimple_asm_label_op,
18686 gimple_asm_set_label_op, gimple_try_set_kind,
18687 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
18688 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
18689 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
18690 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
18691 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
18692 gimple_omp_for_set_initial, gimple_omp_for_final,
18693 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
18694 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
18695 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
18696 conditional with ENABLE_GIMPLE_CHECKING.
18697 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
18698
18699 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
18700
18701 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
18702 (get_computation_cost_at): Use it.
18703 (determine_use_iv_cost_condition): Likewise.
18704 (determine_iv_cost): Likewise.
18705
18706 2010-06-09 Richard Guenther <rguenther@suse.de>
18707
18708 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
18709 replace constants.
18710
18711 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
18712
18713 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
18714
18715 2010-06-09 Martin Jambor <mjambor@suse.cz>
18716
18717 PR tree-optimization/44423
18718 * tree-sra.c (dump_access): Dump also grp_assignment_read.
18719 (analyze_access_subtree): Pass negative allow_replacements to children
18720 if the current type is scalar.
18721
18722 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
18723
18724 PR testsuite/42843
18725 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
18726 * doc/plugins.texi (Plugin license check): Update information
18727 on type of plugin_is_GPL_compatible.
18728 * Makefile.in (PLUGINCC): Define as $(COMPILER).
18729 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
18730
18731 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
18732
18733 * config/arm/arm.c (thumb2_reorg): New function.
18734 (arm_reorg): Call it.
18735 * config/arm/thumb2.md (define_peephole2 for flag clobbering
18736 arithmetic operations): Delete.
18737
18738 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
18739
18740 PR target/44067
18741 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
18742 e500v2 target.
18743
18744 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
18745
18746 PR plugins/44459
18747 * gcc-plugin.h: Encapsulate all declarations in extern "C".
18748
18749 2010-06-08 Jan Hubicka <jh@suse.cz>
18750
18751 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
18752 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
18753
18754 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
18755
18756 PR tree-optimization/39874
18757 PR middle-end/28685
18758 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
18759 Declare.
18760 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
18761 same_bool_result_p): New.
18762 (and_var_with_comparison, and_var_with_comparison_1,
18763 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
18764 (or_var_with_comparison, or_var_with_comparison_1,
18765 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
18766 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
18767 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
18768 of combine_comparisons.
18769 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
18770
18771 2010-06-08 Anatoly Sokolov <aesok@post.ru>
18772
18773 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18774 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18775 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
18776 pdp11_function_value_regno_p): New functions.
18777 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18778 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18779
18780 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
18781
18782 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
18783 Thumb-2 in the MINUS case.
18784
18785 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
18786
18787 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
18788
18789 * doc/gty.texi (GTY Options): Document typed GC allocation and
18790 variable_size GTY option.
18791
18792 * ggc-internal.h: New.
18793
18794 * ggc.h: Update copyright year.
18795 (digit_string): Move to stringpool.c.
18796 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
18797 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
18798 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
18799 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
18800 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
18801 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
18802 (ggc_force_collect, ggc_get_size, ggc_statistics)
18803 (ggc_print_common_statistics): Move to ggc-internal.h.
18804 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
18805 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
18806 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
18807 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
18808 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
18809 (ggc_alloc_zone_pass_stat): Remove.
18810 (ggc_internal_alloc_stat, ggc_internal_alloc)
18811 (ggc_internal_cleared_alloc_stat): New.
18812 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
18813 (ggc_internal_vec_alloc_stat)
18814 (ggc_internal_cleared_vec_alloc_stat)
18815 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
18816 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
18817 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
18818 (ggc_cleared_alloc_ptr_array_two_args): New.
18819 (htab_create_ggc, splay_tree_new_ggc): Redefine.
18820 (ggc_splay_alloc): Change the type of the first argument to
18821 enum gt_types_enum.
18822 (ggc_alloc_string): Make macro.
18823 (ggc_alloc_string_stat): New.
18824 (ggc_strdup): Redefine.
18825 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
18826 (ggc_alloc_rtvec_sized): New.
18827 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
18828 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
18829 (ggc_internal_cleared_alloc_zone_stat)
18830 (ggc_internal_zone_alloc_stat)
18831 (ggc_internal_zone_cleared_alloc_stat)
18832 (ggc_internal_zone_vec_alloc_stat)
18833 (ggc_alloc_zone_rtx_def_stat)
18834 (ggc_alloc_zone_tree_node_stat)
18835 (ggc_alloc_zone_cleared_tree_node_stat)
18836 (ggc_alloc_cleared_gimple_statement_d_stat): New.
18837
18838 * ggc-common.c: Include ggc-internal.h.
18839 (ggc_internal_cleared_alloc_stat): Rename from
18840 ggc_alloc_cleared_stat.
18841 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
18842 (ggc_calloc): Remove.
18843 (ggc_cleared_alloc_htab_ignore_args): New.
18844 (ggc_cleared_alloc_ptr_array_two_args): New.
18845 (ggc_splay_alloc): Add obj_type parameter.
18846 (init_ggc_heuristics): Formatting fixes.
18847
18848 * ggc-none.c: Update copyright year.
18849 (ggc_alloc_stat): Rename to ggc_alloc_stat.
18850 (ggc_alloc_cleared_stat): Rename to
18851 ggc_internal_cleared_alloc_stat.
18852 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
18853
18854 * ggc-page.c: Update copyright year. Include ggc-internal.h.
18855 Remove references to ggc_alloc in comments.
18856 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
18857 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
18858 (new_ggc_zone, destroy_ggc_zone): Remove.
18859 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
18860
18861 * ggc-zone.c: Include ggc-internal.h. Remove references to
18862 ggc_alloc in comments.
18863 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
18864 (ggc_internal_alloc_zone_pass_stat): New.
18865 (ggc_internal_cleared_alloc_zone_stat): New.
18866 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
18867 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
18868 (new_ggc_zone, destroy_ggc_zone): Remove.
18869
18870 * stringpool.c: Update copyright year. Include ggc-internal.h
18871 (digit_vector): Make static.
18872 (digit_string): Moved from ggc.h.
18873 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
18874 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
18875
18876 * Makefile.in (GGC_INTERNAL_H): New.
18877 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
18878 $(GGC_INTERNAL_H) to dependencies.
18879
18880 * gentype.c: Update copyright year.
18881 (walk_type): Accept variable_size GTY option.
18882 (USED_BY_TYPED_GC_P): New macro.
18883 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
18884 whitespace at the end of strings.
18885 (get_type_specifier, variable_size_p): New functions.
18886 (alloc_quantity, alloc_zone): New enums.
18887 (write_typed_alloc_def): New function.
18888 (write_typed_struct_alloc_def): Likewise.
18889 (write_typed_typed_typedef_alloc_def): Likewise.
18890 (write_typed_alloc_defns): Likewise.
18891 (output_typename, write_splay_tree_allocator_def): Likewise.
18892 (write_splay_tree_allocators): Likewise.
18893 (main): Call write_typed_alloc_defns and
18894 write_splay_tree_allocators.
18895
18896 * lto-streamer.h (lto_file_decl_data_ptr): New.
18897
18898 * passes.c (order): Define using cgraph_node_ptr.
18899
18900 * strinpool.c (struct string_pool_data): Declare nested_ptr using
18901 ht_identifier_ptr.
18902
18903 * gimple.h (union gimple_statement_d): Likewise.
18904
18905 * rtl.h (struct rtx_def): Likewise.
18906 (struct rtvec_def): Likewise.
18907
18908 * tree.h (union tree_node): Likewise.
18909
18910 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
18911
18912 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
18913
18914 * tree-scalar-evolution.c (scev_initialize): Likewise.
18915
18916 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
18917
18918 * dwarf2asm.c (dw2_force_const_mem): Likewise.
18919
18920 * omp-low.c (lower_omp_critical): Likewise.
18921
18922 * bitmap.h (struct bitmap_head_def): Update comment to not
18923 reference ggc_alloc.
18924
18925 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
18926
18927 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
18928
18929 * ipa-prop.c (duplicate_ggc_array): Rename to
18930 duplicate_ipa_jump_func_array. Use typed GC allocation.
18931 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
18932
18933 * gimple.c (gimple_alloc_stat): Use
18934 ggc_alloc_cleared_gimple_statement_d_stat.
18935
18936 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
18937
18938 * tree.c (make_node_stat): Use
18939 ggc_alloc_zone_cleared_tree_node_stat.
18940 (make_tree_vec_stat): Likewise.
18941 (build_vl_exp_stat): Likewise.
18942 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
18943 (make_tree_binfo_stat): Likewise.
18944 (tree_cons_stat): Likewise.
18945
18946 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
18947 (shallow_copy_rtx_stat): Likewise.
18948 (make_node_stat): Likewise.
18949
18950 * lto-symtab.c: Fix comment.
18951
18952 * tree-cfg.c (create_bb): Update comment to not reference
18953 ggc_alloc_cleared.
18954 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
18955
18956 * varpool.c (varpool_node): Use typed GC allocation.
18957 (varpool_extra_name_alias): Likewise.
18958
18959 * varasm.c (emutls_decl): Likewise.
18960 (get_unnamed_section): Likewise.
18961 (get_noswitch_section): Likewise.
18962 (get_section): Likewise.
18963 (get_block_for_section): Likewise.
18964 (build_constant_desc): Likewise.
18965 (create_constant_pool): Likewise.
18966 (force_const_mem): Likewise.
18967
18968 * tree.c (build_vl_exp_stat): Likewise.
18969 (build_real): Likewise.
18970 (build_string): Likewise.
18971 (decl_debug_expr_insert): Likewise.
18972 (decl_value_expr_insert): Likewise.
18973 (type_hash_add): Likewise.
18974 (build_omp_clause): Likewise.
18975
18976 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
18977
18978 * tree-ssa.c (init_tree_ssa): Likewise.
18979
18980 * tree-ssa-structalias.c (heapvar_insert): Likewise.
18981
18982 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18983
18984 * tree-ssa-loop-niter.c (record_estimate): Likewise.
18985
18986 * tree-ssa-alias.c (get_ptr_info): Likewise.
18987
18988 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18989
18990 * tree-phinodes.c (allocate_phi_node): Likewise.
18991
18992 * tree-iterator.c (tsi_link_before): Likewise.
18993 (tsi_link_after): Likewise.
18994
18995 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18996
18997 * tree-dfa.c (create_var_ann): Likewise.
18998
18999 * tree-cfg.c (create_bb): Likewise.
19000
19001 * toplev.c (alloc_for_identifier_to_locale): Likewise.
19002 (general_init): Likewise.
19003
19004 * stringpool.c (stringpool_ggc_alloc): Likewise.
19005 (gt_pch_save_stringpool): Likewise.
19006
19007 * sese.c (if_region_set_false_region): Likewise.
19008
19009 * passes.c (do_per_function_toporder): Likewise.
19010
19011 * optabs.c (set_optab_libfunc): Likewise.
19012 (set_conv_libfunc): Likewise.
19013
19014 * lto-symtab.c (lto_symtab_register_decl): Likewise.
19015
19016 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19017 (input_eh_region): Likewise.
19018 (input_eh_lp): Likewise.
19019 (make_new_block): Likewise.
19020 (unpack_ts_real_cst_value_fields): Likewise.
19021
19022 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19023
19024 * lto-cgraph.c (input_node_opt_summary): Likewise.
19025
19026 * loop-init.c (loop_optimizer_init): Likewise.
19027
19028 * lambda.h (lambda_vector_new): Likewise.
19029
19030 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
19031
19032 * ira.c (update_equiv_regs): Likewise.
19033
19034 * ipa.c (cgraph_node_set_new): Likewise.
19035 (cgraph_node_set_add): Likewise.
19036 (varpool_node_set_new): Likewise.
19037 (varpool_node_set_add): Likewise.
19038
19039 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
19040 (duplicate_ipa_jump_func_array): Likewise.
19041 (ipa_read_node_info): Likewise.
19042
19043 * ipa-cp.c (ipcp_create_replace_map): Likewise.
19044
19045 * integrate.c (get_hard_reg_initial_val): Likewise.
19046
19047 * gimple.c (gimple_alloc_stat): Likewise.
19048 (gimple_build_omp_for): Likewise.
19049 (gimple_seq_alloc): Likewise.
19050 (gimple_copy): Likewise.
19051
19052 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
19053 (gsi_insert_after_without_update): Likewise.
19054
19055 * function.c (add_frame_space): Likewise.
19056 (insert_temp_slot_address): Likewise.
19057 (assign_stack_temp_for_type): Likewise.
19058 (allocate_struct_function): Likewise.
19059 (types_used_by_var_decl_insert): Likewise.
19060
19061 * except.c (init_eh_for_function): Likewise.
19062 (gen_eh_region): Likewise.
19063 (gen_eh_region_catch): Likewise.
19064 (gen_eh_landing_pad): Likewise.
19065 (add_call_site): Likewise.
19066
19067 * emit-rtl.c (get_mem_attrs): Likewise.
19068 (get_reg_attrs): Likewise.
19069 (start_sequence): Likewise.
19070 (init_emit): Likewise.
19071
19072 * dwarf2out.c (new_cfi): Likewise.
19073 (queue_reg_save): Likewise.
19074 (dwarf2out_frame_init): Likewise.
19075 (new_loc_descr): Likewise.
19076 (find_AT_string): Likewise.
19077 (new_die): Likewise.
19078 (add_var_loc_to_decl): Likewise.
19079 (clone_die): Likewise.
19080 (clone_as_declaration): Likewise.
19081 (break_out_comdat_types): Likewise.
19082 (new_loc_list): Likewise.
19083 (loc_descriptor): Likewise.
19084 (add_loc_descr_to_each): Likewise.
19085 (add_const_value_attribute): Likewise.
19086 (tree_add_const_value_attribute): Likewise.
19087 (add_comp_dir_attribute): Likewise.
19088 (add_name_and_src_coords_attributes): Likewise.
19089 (lookup_filename): Likewise.
19090 (store_vcall_insn): Likewise.
19091 (dwarf2out_init): Likewise.
19092
19093 * dbxout.c (dbxout_init): Likewise.
19094
19095 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19096
19097 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19098
19099 * config/score/score7.c (score7_output_external): Likewise.
19100
19101 * config/score/score3.c (score3_output_external): Likewise.
19102
19103 * config/s390/s390.c (s390_init_machine_status): Likewise.
19104
19105 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19106 (rs6000_init_machine_status): Likewise.
19107 (output_toc): Likewise.
19108
19109 * config/pa/pa.c (pa_init_machine_status): Likewise.
19110 (get_deferred_plabel): Likewise.
19111
19112 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19113
19114 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19115
19116 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19117
19118 * config/mep/mep.c (mep_init_machine_status): Likewise.
19119 (mep_note_pragma_flag): Likewise.
19120
19121 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19122
19123 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19124
19125 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19126
19127 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19128 (i386_pe_maybe_record_exported_symbol): Likewise.
19129
19130 * config/i386/i386.c (get_dllimport_decl): Likewise.
19131 (ix86_init_machine_status): Likewise.
19132 (assign_386_stack_local): Likewise.
19133
19134 * config/frv/frv.c (frv_init_machine_status): Likewise.
19135
19136 * config/darwin.c (machopic_indirection_name): Likewise.
19137
19138 * config/cris/cris.c (cris_init_machine_status): Likewise.
19139
19140 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19141
19142 * config/avr/avr.c (avr_init_machine_status): Likewise.
19143
19144 * config/arm/arm.c (arm_init_machine_status): Likewise.
19145
19146 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19147 (alpha_need_linkage): Likewise.
19148 (alpha_use_linkage): Likewise.
19149
19150 * cgraph.c (cgraph_allocate_node): Likewise.
19151 (cgraph_create_edge_1): Likewise.
19152 (cgraph_create_indirect_edge): Likewise.
19153 (cgraph_add_asm_node): Likewise.
19154
19155 * cfgrtl.c (init_rtl_bb_info): Likewise.
19156
19157 * cfgloop.c (alloc_loop): Likewise.
19158 (rescan_loop_exit): Likewise.
19159
19160 * cfg.c (init_flow): Likewise.
19161 (alloc_block): Likewise.
19162 (unchecked_make_edge): Likewise.
19163
19164 * c-parser.c (c_parse_init): Likewise.
19165 (c_parse_file): Likewise.
19166
19167 * c-decl.c (bind): Likewise.
19168 (record_inline_static): Likewise.
19169 (push_scope): Likewise.
19170 (make_label): Likewise.
19171 (lookup_label_for_goto): Likewise.
19172 (finish_struct): Likewise.
19173 (finish_enum): Likewise.
19174 (c_push_function_context): Likewise.
19175
19176 * bitmap.c (bitmap_element_allocate): Likewise.
19177 (bitmap_gc_alloc_stat): Likewise.
19178
19179 * alias.c (record_alias_subset): Likewise.
19180 (init_alias_analysis): Likewise.
19181
19182 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
19183
19184 * fold-const.c (fold_comparison): Remove redundant parenthesis.
19185 * tree-inline.c (expand_call_inline): Pass translated return value of
19186 cgraph_inline_failed_string to diagnostic function.
19187
19188 2010-06-08 Andrew Pinski <pinskia@gmail.com>
19189 Shujing Zhao <pearly.zhao@oracle.com>
19190
19191 PR c/37724
19192 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
19193 implicit bad conversions is initialization.
19194 (error_init): Use gmsgid instead of msgid for argument name and change
19195 the call for error.
19196 (pedwarn_init): Use gmsgid instead of msgid for argument name and
19197 change the call for pedwarn.
19198 (warning_init): Use gmsgid instead of msgid for argument name and
19199 change the call for warning.
19200
19201 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
19202
19203 * config/mips/mips-protos.h (mips_print_operand): Delete.
19204 (mips_print_operand_address): Delete.
19205 * config/mips/mips.h (mips_print_operand_punct): Delete.
19206 (PRINT_OPERAND): Delete.
19207 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19208 (PRINT_OPERAND_ADDRESS): Delete.
19209 * config/mips/mips.c (mips_print_operand_punct): Make static.
19210 (mips_print_operand_address): Make static.
19211 (mips_print_operand): Make static. Call
19212 mips_print_operand_punct_valid_p.
19213 (mips_print_operand_punct_valid_p): New function.
19214 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19215 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19216
19217 2010-06-07 Jan Hubicka <jh@suse.cz>
19218
19219 PR middle-end/44454
19220 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
19221 are allocated.
19222
19223 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
19224
19225 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
19226 name of RECORD.
19227
19228 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19229
19230 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19231 attributes): Document gas.
19232
19233 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
19234
19235 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
19236 <TYPE_LEA>: Split instruction.
19237 <default>: Remove alternative 2 handling.
19238 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
19239 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
19240 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
19241
19242 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
19243 (ashift_zext lea splitter): Use DImode for multiplication.
19244
19245 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
19246 to generate addition.
19247
19248 2010-06-07 Joseph Myers <joseph@codesourcery.com>
19249
19250 * common.opt (fira-verbose): Use Var.
19251 (fpcc-struct-return): Use Init instead of VarExists.
19252 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
19253 toplev.c.
19254 * flags.h (flag_signed_char, flag_short_enums,
19255 flag_pcc_struct_return, flag_ira_verbose,
19256 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
19257 * toplev.c (flag_detailed_statistics, flag_signed_char,
19258 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
19259 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
19260 * toplev.h (flag_crossjumping, flag_if_conversion,
19261 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
19262 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
19263 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
19264 flag_cprop_registers, time_report, flag_ira_loop_pressure,
19265 flag_ira_coalesce, flag_ira_move_spills,
19266 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
19267
19268 2010-06-07 Jan Hubicka <jh@suse.cz>
19269
19270 * df-core.c (df_analyze_problem): Do verification after allocation.
19271
19272 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
19273 (df_lr_alloc): Initialize problem data; move bitmaps to
19274 lr_bitmaps obstack.
19275 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
19276 (df_lr_verify_solution_start): Do not initialize problem data;
19277 allocate bitmaps in lr_bitmaps.
19278 (df_lr_verify_solution_end): Do not free problem data.
19279
19280 2010-06-07 Jan Hubicka <jh@suse.cz>
19281
19282 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
19283 if caller is noreturn.
19284 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
19285 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
19286 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
19287 * ipa-pure-const.c (check_decl): Add IPA parameter.
19288 (state_from_flags): New function.
19289 (better_state, worse_state): New functions.
19290 (check_call): When in IPA mode, do not care about callees.
19291 (check_load, check_store): Update.
19292 (check_ipa_load, check_ipa_store): New.
19293 (check_stmt): When in IPA mode, use IPA checkers.
19294 (analyze_function): Use state_from_flags.
19295 (propagate): Check indirect edges and references.
19296
19297 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
19298
19299 PR rtl-optimization/44404
19300 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
19301 of count_occurrences to see if it's safe to modify mem_insn.
19302
19303 2010-06-07 Richard Guenther <rguenther@suse.de>
19304
19305 * gimplify.c (gimplify_cleanup_point_expr): For empty body
19306 and EH-only cleanup drop the cleanup instead of inserting it
19307 unconditionally.
19308
19309 2010-06-07 Ira Rosen <irar@il.ibm.com>
19310
19311 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
19312 documentation.
19313 * targhooks.c (default_builtin_vectorization_cost): New function.
19314 * targhooks.h (default_builtin_vectorization_cost): Declare.
19315 * target.h (enum vect_cost_for_stmt): Define.
19316 (builtin_vectorization_cost): Change argument and comment.
19317 * tree-vectorizer.h: Remove cost model macros.
19318 * tree-vect-loop.c: Include target.h.
19319 (vect_get_cost): New function.
19320 (vect_estimate_min_profitable_iters): Replace cost model macros with
19321 calls to vect_get_cost.
19322 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
19323 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
19324 default implementation.
19325 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
19326 calls to target hook builtin_vectorization_cost.
19327 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
19328 Likewise.
19329 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
19330 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
19331 implementation to return costs.
19332 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
19333 * config/spu/spu.h: Remove vectorizer cost model macros.
19334 * config/i386/i386.h: Likewise.
19335 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
19336 a call to target hook builtin_vectorization_cost.
19337
19338 2010-06-06 Sriraman Tallam <tmsriram@google.com>
19339
19340 PR target/44319
19341 * config/i386/i386.c (override_options): Turn zee pass on for level 2
19342 and above and defer till target is known.
19343 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
19344 turn off otherwise.
19345
19346 2010-05-25 Jan Hubicka <jh@suse.cz>
19347
19348 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
19349 (df_compact_blocks): Likewise.
19350 * df.h (struct df): Turn hardware_regs_used,
19351 regular_block_artificial_uses, eh_block_artificial_uses,
19352 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
19353 bitmap_head.
19354 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
19355 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
19356 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
19357 df_scan_blocks, df_insn_delete, df_insn_rescan,
19358 df_insn_rescan_debug_internal, df_insn_rescan_all,
19359 df_process_deferred_rescans, df_process_deferred_rescans,
19360 df_notes_rescan, df_get_call_refs, df_get_call_refs,
19361 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
19362 df_record_entry_block_defs, df_record_exit_block_uses,
19363 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
19364 df_scan_verify): Update.
19365
19366 2010-05-25 Dodji Seketeli <dodji@redhat.com>
19367
19368 PR c++/44188
19369 * c-common.c (is_typedef_decl): Move this definition ...
19370 * tree.c (is_typedef_decl): ... here.
19371 (typdef_variant_p): Move definition here from cp/tree.c.
19372 * c-common.h (is_typedef_decl): Move this declaration ...
19373 * tree.h (is_typedef_decl): ... here.
19374 (typedef_variant_p): Move declaration here from cp/cp-tree.h
19375 * dwarf2out.c (is_naming_typedef_decl): New function.
19376 (gen_tagged_type_die): Split out of ...
19377 (gen_type_die_with_usage): ... this function. When an anonymous
19378 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
19379 is emitted for the typedef.
19380 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
19381 anonymous tagged types.
19382
19383 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
19384
19385 PR c/20000
19386 * c-decl.c (grokdeclarator): Delete warning.
19387
19388 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
19389
19390 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
19391 newly built CALL_EXPR.
19392 * tree-profile.c (tree_profiling): Don't profile functions produced
19393 for built-in stuff.
19394
19395 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
19396
19397 PR bootstrap/44427
19398 PR bootstrap/44428
19399 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
19400 endianness-independent.
19401
19402 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
19403
19404 * c-common.c: Move to c-family/.
19405 * c-common.def: Likewise.
19406 * c-common.h: Likewise.
19407 * c-cppbuiltin.c: Likewise.
19408 * c-dump.c: Likewise.
19409 * c-format.c: Likewise.
19410 * c-format.h : Likewise.
19411 * c-gimplify.c: Likewise.
19412 * c-lex.c: Likewise.
19413 * c-omp.c: Likewise.
19414 * c.opt: Likewise.
19415 * c-opts.c: Likewise.
19416 * c-pch.c: Likewise.
19417 * c-ppoutput.c: Likewise.
19418 * c-pragma.c: Likewise.
19419 * c-pragma.h: Likewise.
19420 * c-pretty-print.c: Likewise.
19421 * c-pretty-print.h: Likewise.
19422 * c-semantics.c: Likewise.
19423 * stub-objc.c: Likewise.
19424
19425 * gengtype.c (get_file_langdir): Special-case files in c-family/.
19426 (get_output_file_with_visibility): Fix name for c-common.h.
19427 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
19428
19429 * c-tree.h: Update include path for moved files.
19430 * c-lang.c: Likewise.
19431 * c-lang.h: Likewise.
19432 * c-parser.c: Likewise.
19433 * c-convert.c: Likewise.
19434 * c-decl.c: Likewise.
19435 * c-objc-common.c: Likewise.
19436 * configure.ac: Make sure c-family/ exists in the build directory.
19437 * configure: Regenerate.
19438 * Makefile.in: Update paths for moved files. Regroup files per
19439 location and update dependencies. Move generated_files down after
19440 ALL_GTFILES_H.
19441
19442 * config/spu/spu-c.c: Update paths for moved files.
19443 * config/mep/mep-pragma.c: Likewise.
19444 * config/darwin-c.c: Likewise.
19445 * config/i386/msformat-c.c: Likewise.
19446 * config/i386/i386-c.c: Likewise.
19447 * config/avr/avr-c.c: Likewise.
19448 * config/sol2-c.c: Likewise.
19449 * config/ia64/ia64-c.c: Likewise.
19450 * config/rs6000/rs6000-c.c: Likewise.
19451 * config/arm/arm.c: Likewise.
19452 * config/arm/arm-c.c: Likewise.
19453 * config/h8300/h8300.c: Likewise.
19454 * config/v850/v850-c.c: Likewise.
19455
19456 * config/t-darwin: Fix dependencies for moved files.
19457 * config/t-sol2: Fix dependencies for moved files.
19458 * config/mep/t-mep: Fix dependencies for moved files.
19459 * config/ia64/t-ia64: Fix dependencies for moved files.
19460 * config/rs6000/t-rs6000: Fix dependencies for moved files.
19461 * config/v850/t-v850: Fix dependencies for moved files.
19462 * config/v850/t-v850e: Fix dependencies for moved files.
19463
19464 * config/m32c/m32c-pragma.c
19465
19466 * po/exgettext: Look in c-family/ also.
19467
19468 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
19469
19470 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
19471 (mark_control_dependent_edges_necessary): Call it instead of marking
19472 the last statement manually.
19473 (propagate_necessity): Likewise.
19474
19475 2010-06-05 Jan Hubicka <jh@suse.cz>
19476
19477 * basic-block.h (compute_dominance_frontiers): Updated.
19478 (compute_idf): Likewise.
19479
19480 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
19481 for dominance frontiers.
19482 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
19483 (insert_updated_phi_nodes_for): Likewise.
19484 (update_ssa): Likewise.
19485 * cfganal.c (compute_dominance_frontiers_1): Likewise.
19486 (compute_dominance_frontiers): Likewise.
19487 (compute_idf): Likewise.
19488 * df-problems.c (df_md_local_compute): Likewise.
19489
19490 2010-06-05 Anatoly Sokolov <aesok@post.ru>
19491
19492 * target.h (struct gcc_target): Add memory_move_cost field.
19493 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
19494 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
19495 * targhooks.c (default_memory_move_cost): New function.
19496 * targhooks.h (default_memory_move_cost): Declare function.
19497 * reload.h (memory_move_cost): Declare.
19498 (memory_move_secondary_cost): Change type of 'in' argument to bool.
19499 * reginfo.c (memory_move_cost): New function.
19500 (memory_move_secondary_cost): Change type of 'in' argument to bool.
19501 * ira.h (ira_memory_move_cost): Update comment.
19502 * ira.c (ira_memory_move_cost): Update comment.
19503 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
19504 with memory_move_cost.
19505 * postreload.c (reload_cse_simplify_set): (Ditto.).
19506 * reload1.c (choose_reload_regs): (Ditto.).
19507 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
19508 (MEMORY_MOVE_COST): Revise documentation.
19509
19510 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
19511 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
19512 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
19513 type of 'in' argument to bool.
19514 (TARGET_MEMORY_MOVE_COST): Define.
19515
19516 2010-06-05 Jan Hubicka <jh@suse.cz>
19517
19518 * ipa-pure-const.c (propagate): Fix typo in handling of functions
19519 that cannot return. Be more careful when merging the results with
19520 previously known ones.
19521
19522 2010-06-05 Matthias Klose <doko@ubuntu.com>
19523
19524 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
19525 function to add the -iplugindir option.
19526 (find_plugindir_spec_function): Add new declaration and function.
19527 (static_spec_func): Use it for "find-plugindir".
19528
19529 2010-06-05 Jakub Jelinek <jakub@redhat.com>
19530
19531 PR c++/44361
19532 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
19533 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
19534 statement expression.
19535
19536 2010-06-05 Jan Hubicka <jh@suse.cz>
19537
19538 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
19539 (df_rd_problem_data): Convert sparse_invalidated_by_call,
19540 dense_invalidated_by_call to bitmap head.
19541 (df_rd_alloc, df_rd_bb_local_compute_process_def,
19542 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
19543 df_rd_start_dump, df_lr_verify_transfer_functions,
19544 df_live_verify_transfer_functions, df_chain_create_bb,
19545 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
19546 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
19547 df_simulate_one_insn_forwards, df_md_alloc,
19548 df_md_bb_local_compute_process_def,
19549 df_md_bb_local_compute_process_def, df_md_local_compute,
19550 df_md_transfer_function df_md_free): Update.
19551
19552 2010-06-05 Joseph Myers <joseph@codesourcery.com>
19553
19554 PR c/44322
19555 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
19556 target type for ADDR_EXPR; require no changes to qualifiers except
19557 for function types.
19558 * c-tree.h (c_build_type_variant): Remove.
19559
19560 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
19561
19562 * genautomata.c (get_excl_set): Do work per element, not per char.
19563 (check_presence_pattern_sets): Similar.
19564 (check_absence_pattern_sets): Similar.
19565
19566 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
19567
19568 * genautomata.c (curr_state_pass_num): Delete.
19569 (min_issue_delay_pass_states): Delete.
19570 (min_issue_delay): Delete.
19571 (initiate_min_issue_delay_pass_states): Delete.
19572 (output_min_issue_delay_table): Compute min_issue_delay_vect
19573 using a breadth-first search variant.
19574 (output_tables): Don't call initiate_min_issue_delay_pass_states.
19575
19576 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
19577
19578 PR boostrap/44421
19579 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
19580 (df_byte_lr_bb_local_compute): Likewise.
19581
19582 2010-06-03 Jason Merrill <jason@redhat.com>
19583
19584 Implement noexcept operator (5.3.7)
19585 * c-common.c (c_common_reswords): Add noexcept.
19586 * c-common.h (enum rid): Add RID_NOEXCEPT.
19587
19588 2010-06-04 Joseph Myers <joseph@codesourcery.com>
19589
19590 * config/darwin-driver.c (darwin_default_min_version): Use
19591 GCC-specific formats in diagnostics.
19592 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
19593 diagnostics.
19594 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
19595 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
19596 eval_spec_function, handle_braces, process_brace_body, main,
19597 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
19598 getenv_spec_function, compare_version_strings,
19599 version_compare_spec_function): Use GCC-specific formats in
19600 diagnostics.
19601
19602 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
19603
19604 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
19605 that operand 0 and operand 1 are equal.
19606 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
19607 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
19608 and operand 1 are equal.
19609 <default>: Ditto. Remove ??? comment.
19610 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
19611 and operand 1 are equal.
19612 <default>: Ditto. Remove ??? comment.
19613 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
19614 are equal.
19615 (*add<mode>_4) <default>: Ditto.
19616 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
19617
19618 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
19619
19620 * config/i386/i386-protos.h (ix86_print_operand): Declare.
19621 * config/i386/i386.c (ix86_print_operand): Make non-static.
19622 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
19623 * output.h (output_operand): Declare.
19624 * final.c (output_operand): Make non-static.
19625
19626 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
19627
19628 PR rtl-optimization/44013
19629 * sched-deps.c (add_dependence_list_and_free): Don't free lists
19630 when processing debug insns.
19631
19632 PR debug/41371
19633 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
19634 recursing. Check that recursion is bounded. Rename inner var
19635 to avoid hiding incoming argument.
19636
19637 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
19638
19639 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
19640 operands[2] == 255.
19641 (*addqi_3): Ditto.
19642 (*addqi_4): Ditto.
19643 (*addqi_5): Ditto.
19644 (*addqi_ext_1_rex64): Ditto.
19645 (*addqi_ext_1): Ditto.
19646
19647 (*addqi_4): Check for incdec_operand in QImode.
19648
19649 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
19650 using SWI mode iterator.
19651 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
19652 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
19653 mode iterator.
19654 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
19655 using SWI mode iterator.
19656
19657 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
19658
19659 PR c/25880
19660 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
19661 * c-format.c (gcc_diag_flag_specs): Add hash.
19662 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
19663 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
19664 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
19665 pp_c_cv_qualifiers. Handle qualifiers spelling here.
19666 (pp_c_type_qualifier_list): Call the function above.
19667 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
19668 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
19669 (WARN_FOR_QUALIFIERS): New macro.
19670 (convert_for_assignment): Use it.
19671
19672 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
19673
19674 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
19675
19676 2010-06-04 Jan Hubicka <jh@suse.cz>
19677
19678 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
19679 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
19680 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
19681 DF_BYTE_LR_OUT): Update for embedded bitmaps.
19682 * fwprop.c (single_def_use_enter_block): Likewise.
19683 * ddg.c (create_ddg_dep_from_intra_loop_link,
19684 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
19685 * loop-iv.c (latch_dominating_def): Likewise.
19686 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
19687 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
19688 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
19689 df_rd_transfer_function, df_rd_top_dump,
19690 df_rd_bottom_dump): Update.
19691 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
19692 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
19693 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
19694 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
19695 df_lr_verify_solution_start, df_lr_verify_solution_end,
19696 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
19697 df_live_free_bb_info, df_live_alloc, df_live_reset,
19698 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
19699 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
19700 df_live_verify_solution_start, df_live_verify_solution_end,
19701 df_live_verify_transfer_functions, df_chain_create_bb,
19702 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
19703 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
19704 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
19705 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
19706 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
19707 df_byte_lr_transfer_function, df_byte_lr_top_dump,
19708 df_byte_lr_bottom_dump, df_create_unused_note,
19709 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
19710 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
19711 df_md_transfer_function, df_md_init, df_md_confluence_0,
19712 df_md_confluence_n,
19713 df_md_top_dump, df_md_bottom_dump): Update.
19714 (struct df_lr_problem_data): Embedd bitmap headers.
19715
19716 2010-06-04 Jan Hubicka <jh@suse.cz>
19717
19718 * dce.c (dce_process_block): Do not re-scan already marked
19719 instructions.
19720
19721 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
19722
19723 PR rtl-optimization/39871
19724 PR rtl-optimization/40615
19725 PR rtl-optimization/42500
19726 PR rtl-optimization/42502
19727 * ira.c (init_reg_equiv_memory_loc: New function.
19728 (ira): Call it twice.
19729 * reload.h (calculate_elim_costs_all_insns): Declare.
19730 * ira-costs.c: Include "reload.h".
19731 (regno_equiv_gains): New static variable.
19732 (init_costs): Allocate it.
19733 (finish_costs): Free it.
19734 (ira_costs): Call calculate_elim_costs_all_insns.
19735 (find_costs_and_classes): Take estimated elimination costs
19736 into account.
19737 (ira_adjust_equiv_reg_cost): New function.
19738 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
19739 * reload1.c (init_eliminable_invariants, free_reg_equiv,
19740 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
19741 (elim_bb): New static variable.
19742 (reload): Move code out of here into init_eliminable_invariants and
19743 free_reg_equiv. Call them.
19744 (calculate_elim_costs_all_insns): New function.
19745 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
19746 all callers changed. If FOR_COSTS is true, don't call alter_reg,
19747 but call note_reg_elim_costly if we turned a valid memory address
19748 into an invalid one.
19749 * Makefile.in (ira-costs.o): Depend on reload.h.
19750
19751 2010-06-04 Julian Brown <julian@codesourcery.com>
19752
19753 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
19754 for pool ranges.
19755
19756 2010-06-04 Richard Guenther <rguenther@suse.de>
19757
19758 PR lto/41584
19759 * cgraph.h (struct varpool_node): Add lto_file_data field.
19760 * lto-cgraph.c (input_varpool_node): Initialize it.
19761
19762 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
19763
19764 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
19765 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
19766 predicate in "type" attribute calculation.
19767 (*addsi_1_zext): Ditto.
19768 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
19769 (*addsi_2_zext): Ditto.
19770 (*add<mode>_3): Ditto.
19771 (*addsi_3_zext): Ditto.
19772 (*add<mode>_5): Ditto.
19773
19774 2010-06-03 Jan Hubicka <jh@suse.cz>
19775
19776 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
19777 of bitmap_bit_p.
19778 * cfganal.c (compute_dominance_frontiers_1): Likewise.
19779
19780 2010-06-03 Jan Hubicka <jh@suse.cz>
19781
19782 * df-problems.c (df_create_unused_note, df_note_bb_compute):
19783 micro-optimize the checks when to add new note.
19784
19785 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
19786
19787 * final.c (output_asm_insn): Call
19788 targetm.asm_out.print_operand_punct_valid_p. Update comments.
19789 (output_operand): Call targetm.asm_out.print_operand. Update comments.
19790 (output_address): Call targetm.asm_out.print_operand_address.
19791 Update comments.
19792 * target.h (struct gcc_target): Add print_operand,
19793 print_operand_address, and print_operand_punct_valid_p fields.
19794 * targhooks.h (default_print_operand): Declare.
19795 (default_print_operand_address): Declare.
19796 (default_print_operand_punct_valid_p): Declare.
19797 * targhooks.c (default_print_operand): Define.
19798 (default_print_operand_address): Define.
19799 (default_print_operand_punct_valid_p): Define.
19800 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
19801 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
19802 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
19803 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
19804 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
19805 * vmsdbgout.c (addr_const_to_string): Update comment.
19806 * config/i386/i386.c (print_operand): Rename to...
19807 (ix86_print_operand): ...this. Make static.
19808 (print_operand_address): Rename to...
19809 (ix86_print_operand_address): ...this. Make static. Call
19810 ix86_print_operand instead of PRINT_OPERAND.
19811 (ix86_print_operand_punct_valid_p): New function.
19812 (TARGET_PRINT_OPERAND): Define.
19813 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19814 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19815 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
19816 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19817 (PRINT_OPERAND): Delete.
19818 (PRINT_OPERAND_ADDRESS): Delete.
19819 * config/i386/i386-protos.h (print_operand): Delete prototype.
19820 (print_operand_address): Delete prototype.
19821
19822 2010-06-03 Richard Guenther <rguenther@suse.de>
19823
19824 PR tree-optimization/44403
19825 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19826 Preserve pointer qualifiers.
19827 (vect_create_data_ref_ptr): Likewise.
19828
19829 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
19830
19831 PR c++/44294
19832 * defaults.h (MAX_FIXED_MODE_SIZE): New.
19833
19834 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
19835
19836 2010-06-03 Jakub Jelinek <jakub@redhat.com>
19837
19838 PR debug/44375
19839 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
19840 return false if merging the bbs would lead to goto_locus
19841 location being lost from the IL.
19842
19843 2010-06-03 Jan Hubicka <jh@suse.cz>
19844 Jakub Jelinek <jakub@redhat.com>
19845
19846 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
19847 set->regs[i] is NULL or has just one entry.
19848
19849 2010-06-03 Jan Hubicka <jh@suse.cz>
19850
19851 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
19852 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
19853
19854 2010-06-03 Paul Brook <paul@codesourcery.com>
19855
19856 * config/arm/arm.c (FL_TUNE): Define.
19857 (arm_default_cpu, arm_cpu_select): Remove.
19858 (all_cores): Populate core field.
19859 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
19860 (arm_find_cpu): New function.
19861 (arm_handle_option): Lookup cpu/architecture names.
19862 (arm_override_options): Cleanup mcpu/march/mtune handling.
19863 (arm_file_start): Ditto.
19864
19865 2010-06-03 Alan Modra <amodra@gmail.com>
19866
19867 PR target/44169
19868 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
19869 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
19870 rtx to gen_load_toc_v4_PIC_1b. Tidy.
19871 (rs6000_emit_load_toc_table): Likewise.
19872
19873 2010-06-02 Jan Hubicka <jh@suse.cz>
19874
19875 * passes.c (init_optimization_passes): Put ipa reference
19876 after ipa pure-const.
19877
19878 2010-06-02 Jan Hubicka <jh@suse.cz>
19879
19880 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
19881 calls_read_all and calls_write_all.
19882 (get_reference_optimization_summary): Fix formatting.
19883 (is_proper_for_analysis): Check that decl is not readonly.
19884 (propagate_bits): Check CONST/PURE/noreturn flags.
19885 (ipa_init): Move all_module_statics to optimization_summary_obstack.
19886 (analyze_function): Ignore indirect edges.
19887 (copy_global_bitmap): For all module statics, do nothing.
19888 (generate_summary): Do not print calls_read_all/calls_write_all.
19889 (read_write_all_from_decl): Take node as argument; check
19890 cgraph_node_cannot_return.
19891 (propagate): Reorganize read_all/write_all computation;
19892 check indirect edges; check ecf flags; use all_module_statics
19893 in the results; do not free all_module_statics.
19894 (stream_out_bitmap): Handle all_module_statics.
19895 (ipa_reference_write_optimization_summary): Likewise; use
19896 varpool/cgraph encoders to get boundaries.
19897 (ipa_reference_read_optimization_summary): Read in all_module_statics;
19898 use it when possible.
19899
19900 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19901
19902 PR target/44218
19903 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
19904 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
19905
19906 * doc/extend.texi (powerpc builtins): Document vec_recip,
19907 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
19908
19909 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
19910 (rs6000_emit_swrsqrt): Ditto.
19911 (rs6000_emit_swdivsf): Delete.
19912 (rs6000_emit_swdivdf): Ditto.
19913 (rs6000_emit_swrsqrtsf): Ditto.
19914
19915 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
19916 describe the reciprocal estimate support for each type.
19917 (recip_options): Map -mrecip=<opt> into option bits.
19918 (gen_2arg_fn_t): New typedef for binary rtx gen function.
19919 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
19920 reciprocal estimate instructions.
19921 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
19922 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
19923 Set up rs6000_recip_bits based on the -mrecip* options. Print the
19924 cost information if -mdebug=cost or -mdebug=reg.
19925 (rs6000_override_options): Set -mrecip-precision for power6, and
19926 power7 machines. If -mvsx or -mdfp, enable various options that
19927 came in previous instruction set ISAs, unless the option was
19928 explicitly disabled by the command line option. Parse
19929 -mrecip=<opt> options.
19930 (rs6000_builtin_vectorized_function): Add support for vectorizing
19931 the reciprocal estimate builtins and expansions.
19932 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
19933 (bdesc_2arg): Add reciprocal estimate builtins.
19934 (bdesc_1arg): Add reciprocal square root estimate builtins.
19935 (rs6000_expand_builtin): Rewrite to use a switch statement,
19936 instead of multiple if/then/elses. Add reciprocal estimate builtins.
19937 (rs6000_init_builtins): Create declarations for reciprocal
19938 estimate builtins.
19939 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
19940 sized, prefer traditional floating point registers, if integer
19941 vector types, prefer altivec registers. Don't actually look at
19942 the memory address any more.
19943 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
19944 builtins.
19945 (rs6000_load_constant_and_splat): New helper function to load up
19946 the constant for reciprocal estimate instructions.
19947 (rs6000_emit_madd): New helper function for generating
19948 multiply/add type instructions, based on the current switches.
19949 (rs6000_emit_msub): Ditto.
19950 (rs6000_emit_mnsub): Ditto.
19951 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
19952 replace a divide with a reciprocal estimate and fixup, adding
19953 support for machines with high precision and vectors.
19954 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
19955 low precision machines.
19956 (rs6000_emit_swdiv): New common function to be called to replace a
19957 division with reciprocal estimate and fixup.
19958 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
19959 for double and vector types. Add support for high precision machines.
19960
19961 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
19962 the reciprocal estimate instructions can be generated.
19963 (TARGET_FRE): Ditto.
19964 (TARGET_FRSQRTES): Ditto.
19965 (TARGET_FRSQRTE): Ditto.
19966 (RS6000_RECIP_*): New macros for reciprocal estimate support.
19967
19968 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
19969 square root estimate on vectors.
19970 (re<mode>2): New insn for reciprocal division estimate on vectors.
19971
19972 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
19973 New builtin.
19974 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
19975 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
19976 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
19977 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
19978 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
19979 (RS6000_BUILTIN_RSQRT): Ditto.
19980 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
19981 floating point builtin.
19982
19983 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
19984 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
19985 __RECIP_PRECISION__ based on the command line switches.
19986 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
19987
19988 * config/rs6000/rs6000.opt (-mrecip): Document add support for
19989 replacing division instructions with reciprocal estimate and fixup.
19990 (-mrecip=<opt>): New option.
19991 (-mrecip-precision): Ditto.
19992
19993 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
19994 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
19995 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
19996 precision scalar.
19997
19998 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
19999 (UNSPEC_VREFP): Ditto.
20000 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
20001 conterparts with regard to support of -mno-fused-madd and -ffast-math.
20002 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
20003 reciprocal estimate instructions to be generated.
20004 (altivec_vrefp): Ditto.
20005
20006 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
20007 estimate support.
20008 (rreg): New mode attribute for reciprocal estimate support.
20009 (recip<mode>3): New insn for division using reciprocal estimate
20010 and fixup builtins.
20011 (divide define_split): New define_split to convert floating point
20012 division to use reciprocal estimate if the user used the
20013 appropriate options and the split is run when we can add new
20014 pseudo registers for the fixup.
20015 (rsqrt<mode>2): New insn for reciprocal square root support.
20016 (recipsf3): Move into recip<mode>3.
20017 (recipdf3): Ditto.
20018 (fres): Use TARGET_FRES.
20019 (rsqrtsf2): Move into rsqrt<mode>2.
20020 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
20021 (copysignsf3): Add support for VSX.
20022 (fred): Use TARGET_FRE.
20023 (fred_fpr): Ditto.
20024 (rsqrtdf_internal1): New function for frsqrte instruciton.
20025
20026 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
20027 (vec_rsqrt): Ditto.
20028
20029 2010-06-03 Richard Guenther <rguenther@suse.de>
20030
20031 PR middle-end/44291
20032 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
20033 (set_user_assembler_libfunc): Likewise.
20034
20035 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20036
20037 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
20038 defaults.h.
20039 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
20040 to defaults.h
20041 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
20042 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
20043 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
20044 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
20045 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
20046 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
20047 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
20048 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
20049 * defaults.h: Updated for above mentioned changes.
20050
20051 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
20052
20053 * c-common.c: Remove header include of tm_p.h.
20054 * Makefile.in (c-common.o): Remove TM_P_H dependency.
20055
20056 2010-06-02 Jakub Jelinek <jakub@redhat.com>
20057
20058 * tree.h (struct tree_decl_map): New type.
20059 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
20060 (tree_decl_map_hash): New prototype.
20061 (debug_expr_for_decl, value_expr_for_decl): Change into
20062 tree_decl_map hashtab from tree_map.
20063 (init_ttree): Adjust initialization.
20064 (tree_decl_map_hash): New function.
20065 (decl_debug_expr_lookup, decl_debug_expr_insert,
20066 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
20067
20068 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20069
20070 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
20071 linker emulations.
20072 * configure: Regenerate.
20073 * config.in: Regenerate.
20074
20075 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
20076 (X86_64_EMULATION): Define.
20077 (TARGET_LD_EMULATION): Use them.
20078
20079 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
20080 (SPARC64_EMULATION): Define.
20081 (LINK_ARCH_SPEC): Use them.
20082
20083 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20084
20085 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
20086 smallest_mode_for_size for computing the precision types of new
20087 graphite IVs. Do not call lang_hooks.types.type_for_size.
20088
20089 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20090
20091 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
20092 information.
20093 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
20094
20095 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
20096
20097 PR middle-end/44363
20098 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
20099 return false instead.
20100
20101 2010-06-02 Jan Hubicka <jh@suse.cz>
20102
20103 PR middle-end/44295
20104 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
20105 create new cgraph node to check callee.
20106
20107 2010-06-02 Richard Guenther <rguenther@suse.de>
20108
20109 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
20110
20111 2010-06-02 Richard Guenther <rguenther@suse.de>
20112
20113 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
20114 (lto_wrapper_cleanup): ... this. Do not exit.
20115 (fatal): Adjust. Exit here.
20116 (fatal_perror): Likewise.
20117 (fatal_signal): New function.
20118 (main): Set up signal handlers to cleanup temporary files.
20119 * Makefile.in (lto-wrapper.o): Adjust dependencies.
20120
20121 2010-06-02 Richard Guenther <rguenther@suse.de>
20122
20123 PR tree-optimization/44377
20124 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
20125
20126 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20127
20128 * config/s390/2097.md (z10_fhex): Remove insn reservation.
20129 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
20130 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
20131 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
20132 instruction.
20133 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
20134
20135 2010-06-02 Jan Hubicka <jh@suse.cz>
20136
20137 * bitmap.c (bitmap_descriptor): Add search_iter.
20138 (bitmap_find_bit): Increment it.
20139 (print_statistics): Print it.
20140
20141 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
20142
20143 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
20144 instead of gimple_build_call_vec. Delete unnecessary local variable.
20145
20146 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20147
20148 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
20149 change from yesterday.
20150
20151 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
20152
20153 * c-ada-spec.c: Clean up redundant includes.
20154
20155 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
20156
20157 * gimplify.c: Do not include except.h and optabs.h.
20158 (gimplify_body): Do not initialize RTL profiling.
20159 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
20160 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
20161 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
20162 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
20163 langhooks.h.
20164
20165 * tree-pretty-print.h: Include pretty-print.h.
20166 * gimple-pretty-print.h: Include pretty-print.h.
20167
20168 * tree-pretty-print.c: Do not include diagnostic.h.
20169 * tree-vrp.c: Likewise.
20170 * tree-tailcall.c: Likewise
20171 * tree-scalar-evolution.c: Likewise
20172 * tree-ssa-dse.c: Likewise
20173 * tree-chrec.c: Likewise
20174 * tree-ssa-sccvn.c: Likewise
20175 * tree-ssa-copyrename.c: Likewise
20176 * tree-nomudflap.c: Likewise
20177 * tree-call-cdce.c: Likewise
20178 * tree-stdarg.c: Likewise
20179 * tree-ssa-math-opts.c: Likewise
20180 * tree-nrv.c: Likewise
20181 * tree-ssa-sink.c: Likewise
20182 * tree-browser.c: Likewise
20183 * tree-ssa-loop-ivcanon.c: Likewise
20184 * tree-ssa-loop.c: Likewise
20185 * tree-parloops.c: Likewise
20186 * tree-ssa-address.c: Likewise
20187 * tree-ssa-ifcombine.c: Likewise
20188 * tree-if-conv.c: Likewise
20189 * tree-data-ref.c: Likewise
20190 * tree-affine.c: Likewise
20191 * tree-ssa-phiopt.c: Likewise
20192 * tree-ssa-coalesce.c: Likewise
20193 * tree-ssa-pre.c: Likewise
20194 * tree-ssa-live.c: Likewise
20195 * tree-predcom.c: Likewise
20196 * tree-ssa-forwprop.c: Likewise
20197 * tree-ssa-dce.c: Likewise
20198 * tree-ssa-ter.c: Likewise
20199 * tree-ssa-loop-prefetch.c: Likewise
20200 * tree-optimize.c: Likewise
20201 * tree-ssa-phiprop.c: Likewise
20202 * tree-object-size.c: Likewise
20203 * tree-outof-ssa.c: Likewise
20204 * tree-ssa-structalias.c: Likewise
20205 * tree-switch-conversion.c: Likewise
20206 * tree-ssa-reassoc.c: Likewise
20207 * tree-ssa-operands.c: Likewise
20208 * tree-vectorizer.c: Likewise
20209 * tree-vect-data-refs.c: Likewise
20210 * tree-vect-generic.c: Likewise
20211 * tree-vect-stmts.c: Likewise
20212 * tree-vect-patterns.c: Likewise
20213 * tree-vect-slp.c: Likewise
20214 * tree-vect-loop.c: Likewise
20215 * tree-ssa-loop-ivopts.c: Likewise
20216 * tree-ssa-loop-im.c: Likewise
20217 * tree-ssa-loop-niter.c: Likewise
20218 * tree-ssa-loop-unswitch.c: Likewise
20219 * tree-ssa-loop-manip.c: Likewise
20220 * tree-ssa-loop-ch.c: Likewise
20221 * tree-dump.c: Likewise
20222 * tree-complex.c: Likewise
20223
20224 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
20225 * tree-ssa-uninit.c: Likewise
20226 * tree-ssa-threadupdate.c: Likewise
20227 * tree-ssa-uncprop.c: Likewise
20228 * tree-ssa-ccp.c: Likewise
20229 * tree-ssa-dom.c: Likewise
20230 * tree-ssa-propagate.c: Likewise
20231 * tree-ssa-alias.c: Likewise
20232 * tree-dfa.c: Likewise
20233 * tree-cfgcleanup.c: Likewise
20234 * tree-sra.c: Likewise
20235 * tree-ssa-copy.c: Likewise
20236 * tree-ssa.c: Likewise
20237 * tree-profile.c: Likewise
20238 * tree-cfg.c: Likewise
20239 * tree-ssa-threadedge.c: Likewise
20240 * tree-vect-loop-manip.c: Likewise
20241
20242 * tree-inline.c: Do not include diagnostic.h and expr.h.
20243 Include rtl.h.
20244 (copy_decl_for_dup_finish): Do not use NULL_RTX.
20245
20246 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
20247 * tree-loop-distribution.c: Likewise.
20248
20249 2010-06-01 Jan Hubicka <jh@suse.cz>
20250
20251 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
20252
20253 2010-06-01 Jan Hubicka <jh@suse.cz>
20254
20255 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
20256 remove return value.
20257 (split_bbs_on_noreturn_calls) .... here.
20258 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
20259 * tree-flow.h (fixup_noreturn_call): New.
20260
20261 2010-06-01 Jan Hubicka <jh@suse.cz>
20262
20263 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
20264
20265 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
20266
20267 * tree.h (build_nt_call_list): Delete.
20268 * tree.c (build_nt_call_list): Delete.
20269
20270 2010-06-01 Jan Hubicka <jh@suse.cz>
20271
20272 * fwprop.c: Make emit-rtl.h include last.
20273 * rtlanal.c: Include emit-rtl.h.
20274 * genautomata.c: Output emit-rtl include into insn-automata.c
20275 * df-scan.c: Include emit-rtl.h.
20276 * haifa-sched.c: Indlude emit-rtl.h.
20277 * mode-switching.c: Indlude emit-rtl.h.
20278 * graph.c: Indlude emit-rtl.h.
20279 * sel-sched.c: Include emit-rtl.h.
20280 * sel-sched-ir.c: Include emit-rtl.h.
20281 * ira-build.c: Include emit-rtl.h.
20282 * emit-rtl.c (first_insn, last_insn): Remove defines.
20283 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
20284 Move to emit-rtl.h.
20285 (set_new_first_and_last_insn, get_last_insn_anywhere,
20286 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
20287 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
20288 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
20289 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
20290 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
20291 Use accessor functions.
20292 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20293 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20294 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20295 mem_expr_equal_p): Move here from rtl.h.
20296 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
20297 Move here from emit-rtl.c; make inline.
20298 * cfglayout.h: Include emit-rtl.h.
20299 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
20300 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
20301 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
20302 mem_expr_equal_p, get_insns, set_first-insn,
20303 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
20304 * reg-stack.c: Include emit-rtl.h.
20305 * dce.c: Likewise.
20306
20307 2010-06-01 Jan Hubicka <jh@suse.cz>
20308
20309 * cgraph.h (tree_function_versioning): Update prototype.
20310 (cgraph_function_versioning): Update prototype.
20311 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
20312 bitmap.
20313 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
20314 (cgraph_materialize_clone, save_inline_function_body): Update use of
20315 tree_function_versioning.
20316 * tree-inline.c (copy_bb): Look for previous copied block to link
20317 after; fix debug output.
20318 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
20319 (copy_body): Likewise.
20320 (expand_call_inline): Update use of copy_body.
20321 (tree_function_versioning): Update use of copy body; accept
20322 blocks_to_copy and new_entry.
20323
20324 2010-06-01 Jan Hubicka <jh@suse.cz>
20325
20326 * gegenrtl.c: Remove unnecesary prototypes.
20327 (gendecl): Remove.
20328 (gendef): Produce static inline.
20329 (gencode): Remove.
20330 (main): Do not decode parameters; generate header only.
20331 * Makefile.in (genrtl.c): Remove.
20332
20333 2010-06-01 Jan Hubicka <jh@suse.cz>
20334
20335 * tree-switch-conversion.c (build_one_array): Make it readonly.
20336
20337 2010-06-01 Richard Guenther <rguenther@suse.de>
20338
20339 * optabs.c (init_optabs): Guard all accesses to reinit.
20340 * ipa-pure-const.c (propagate): Fix another typo.
20341 * opts.c (common_handle_option): Split assignment to bool.
20342 * c-opts.c (c_common_handle_option): Likewise.
20343
20344 2010-06-01 Arnaud Charlet <charlet@adacore.com>
20345 Matthew Gingell <gingell@adacore.com>
20346
20347 * doc/invoke.texi: Mention -fdump-ada-spec.
20348 * tree-dump.c (dump_files): Add ada-spec.
20349 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
20350 * tree-pass.h (tree_dump_index): Add TDI_ada.
20351 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
20352 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
20353 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
20354 * c-decl.c: Include c-ada-spec.h.
20355 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
20356 functions.
20357 (c_write_global_declarations): Add handling of -fdump-ada-spec.
20358 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
20359 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
20360 * c-ada-spec.h, c-ada-spec.c: New files.
20361
20362 2010-06-01 Richard Guenther <rguenther@suse.de>
20363
20364 PR lto/43853
20365 * ipa-pure-const.c (get_function_state): Hand back varying state
20366 if we do not have one.
20367 (has_function_state): New function.
20368 (duplicate_node_data): Adjust.
20369 (remove_node_data): Likewise.
20370 (pure_const_write_summary): Likewise.
20371 (propagate): Likewise. Fix typo.
20372
20373 2010-06-01 Jan Hubicka <jh@suse.cz>
20374
20375 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
20376 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
20377 (execute_all_ipa_transforms): Do not play with the states.
20378
20379 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
20380
20381 * config/arm/t-linux-androideabi: New.
20382 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
20383
20384 2010-06-01 Jan Hubicka <jh@suse.cz>
20385
20386 * tree-inline.c (estimate_num_insns): For stdarg functions look
20387 into call statement to count cost of argument passing.
20388
20389 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
20390
20391 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
20392 argument for fprintf.
20393 (ix86_output_addr_diff_elt): Likewise.
20394 (x86_function_profiler): Likewise.
20395 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
20396 (LPREFIX): Likewise.
20397 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20398
20399 2010-05-31 Jakub Jelinek <jakub@redhat.com>
20400
20401 PR target/44338
20402 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
20403 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
20404 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
20405 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
20406 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
20407 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
20408 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
20409 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
20410 TARGET_FUSED_MADD.
20411
20412 2010-05-31 Jan Hubicka <jh@suse.cz>
20413
20414 * tree.h (tree_range_check_failed): Declare noreturn.
20415
20416 2010-05-31 Jan Hubicka <jh@suse.cz>
20417
20418 * gimple.c (gimple_call_builtin_p): New function.
20419 * gimple.h (gimple_call_builtin_p): Declare.
20420 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
20421 to exit.
20422 (execute_warn_function_return): BUILT_IN_RETURN is return.
20423 (split_critical_edges): Return edges are not critical.
20424 (is_ctrl_altering_stmt): Builtin_in_return is altering.
20425 (gimple_verify_flow_info): Handle built_in_return.
20426 (execute_warn_function_return): Handle built_in_return.
20427 * ipa-pure-const.c (check_call): Ignore builtin_return.
20428
20429 2010-05-31 Jakub Jelinek <jakub@redhat.com>
20430
20431 PR middle-end/44337
20432 * expr.c (expand_assignment): Don't store anything for out-of-bounds
20433 array accesses with non-MEM.
20434
20435 PR tree-optimization/44182
20436 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
20437 newly needs to end a bb is followed by debug stmts, instead return
20438 true from the function at the end.
20439 (maybe_move_debug_stmts_to_successors): New function.
20440 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
20441
20442 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
20443
20444 PR target/44161
20445 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
20446
20447 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
20448
20449 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
20450 for nested functions in non-optimized compilation.
20451
20452 2010-05-31 Richard Guenther <rguenther@suse.de>
20453
20454 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
20455
20456 2010-05-30 Jan Hubicka <jh@suse.cz>
20457
20458 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
20459
20460 2010-05-30 Richard Guenther <rguenther@suse.de>
20461
20462 PR lto/42975
20463 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
20464 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
20465 no longer needed.
20466
20467 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
20468
20469 * config/darwin.c (output_objc_section_asm_op): Add comment.
20470 (name_needs_quotes): Add '_' to list of valid comment chars.
20471 (machopic_output_function_base_name): Remove unneeded quotes.
20472 (darwin_encode_section_info): Adjust asm whitespace.
20473 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
20474 (ASM_OUTPUT_LOCAL): Ditto.
20475 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
20476 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
20477 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
20478
20479 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
20480
20481 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
20482 RS6000_OUTPUT_BASENAME unconditionally.
20483 (rs6000_output_function_epilogue): Likewise.
20484
20485 2010-05-30 Jan Hubicka <jh@suse.cz>
20486
20487 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
20488 nodes.
20489
20490 2010-05-30 Richard Guenther <rguenther@suse.de>
20491
20492 * tree-cfg.c (verify_gimple_assign_single): Implement
20493 verification for COND_EXPR rhs.
20494
20495 2010-05-30 Jan Hubicka <jh@suse.cz>
20496
20497 * cgraph.h (cgraph_dump_file): Declare.
20498 * cgraphunit.c (cgraph_dump_file): Export.
20499 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
20500
20501 2010-05-30 Jan Hubicka <jh@suse.cz>
20502
20503 * dwarf2out.c (reference_to_unused,
20504 premark_types_used_by_global_vars_helper): Avoid creation of new
20505 varpool nodes.
20506
20507 2010-05-30 Jan Hubicka <jh@suse.cz>
20508
20509 * cgraph.h (cgraph_node_cannot_return,
20510 cgraph_edge_cannot_lead_to_return): New functions.
20511 * cgraph.c (cgraph_node_cannot_return,
20512 cgraph_edge_cannot_lead_to_return): Use them.
20513 * ipa-pure-const.c (pure_const_names): New static var.
20514 (check_call): Handle calls not leading to return.
20515 (pure_const_read_summary): Dump info read.
20516 (propagate): Dump info about propagation process; ignore side effects
20517 of functions not leading to exit; fix handling of pure functions.
20518
20519 2010-05-30 Jan Hubicka <jh@suse.cz>
20520
20521 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
20522 for tail call epilogues.
20523
20524 2010-05-30 Jan Hubicka <jh@suse.cz>
20525
20526 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
20527 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
20528 dump files.
20529
20530 2010-05-29 Jan Hubicka <jh@suse.cz>
20531
20532 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
20533 node; remove references in node we no longer keep in cgrpah but need
20534 body of.
20535
20536 2010-05-29 Jan Hubicka <jh@suse.cz>
20537
20538 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
20539
20540 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20541
20542 PR target/44165
20543 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
20544
20545 2010-05-29 Jan Hubicka <jh@suse.cz>
20546
20547 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
20548 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
20549 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
20550 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
20551 debug_names_replaced_by, debug_update_ssa): Likewise.
20552 * sbitmap.c (debug_sbitmap): Likewise.
20553 * genrecog.c (debug_decision, debug_decision_list): Likewise.
20554 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
20555 debug_tree_chain): Likewise.
20556 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
20557 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
20558 * optabs.c (debug_optab_libfuncs): Likewise.
20559 (verify_loop_closed_ssa): Likewise.
20560 * value-prof.c (verify_histograms): Likewise.
20561 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
20562 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
20563 * cfghooks.c (verify_flow_info): Likewise.
20564 * fold-const.c (debug_fold_checksum): Likewise.
20565 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
20566 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
20567 Likewise.
20568 * omega.c (debug_omega_problem): Likewise.
20569 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
20570 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
20571 * dominance.c (verify_dominators, debug_dominance_info,
20572 debug_dominance_tree): Likewise.
20573 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
20574 * df_regno_debug, df_ref_debug,
20575 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
20576 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
20577 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
20578 * sel-sched.c (debug_state): Likewise.
20579 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
20580 Likewise.
20581 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
20582 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
20583 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
20584 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
20585 Likewise.
20586 * c-pretty-print.c (debug_c_tree): Likewise.
20587 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
20588 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
20589 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
20590 * ebitmap.c (debug_ebitmap): Likewise.
20591 * function.c (debug_find_var_in_block_tree): Likewise.
20592 * print-rtl.c (debug_rtx): Likewise.
20593 (debug_rtx_count): Likewise.
20594 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
20595 * stor-layout.c (debug_rli): Likewise.
20596 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
20597 * tree-data-ref.c (debug_data_references,
20598 debug_data_dependence_relations, debug_data_reference,
20599 debug_data_dependence_relation, debug_rdg_vertex,
20600 debug_rdg_component, debug_rdg): Likewise.
20601 * tree-affine.c (debug_aff): Likewise.
20602 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
20603 Likewise.
20604 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
20605 * emit-rtl.c (verify_rtl_sharing): Likewise.
20606 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
20607 debug_value_expressions): Likewise.
20608 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
20609 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
20610 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
20611 * cfglayout.c (verify_insn_chain): Likewise.
20612 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
20613 debug_clast_stmt, debug_generated_program): Likewise.
20614 * ggc-page.c (debug_print_page_list): Likewise.
20615 * tree-ssa-ter.c (debug_ter): Likewise.
20616 * graphite-dependences.c (debug_pddr): Likewise.
20617 * sched-deps.c (debug_ds): Likewise.
20618 * tree-ssa.c (verify_ssa): Likewise.
20619 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
20620 debug_scattering_functions, debug_iteration_domains, debug_pdr,
20621 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
20622 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
20623 * tree-inline.c (debug_find_tree): Likewise.
20624 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
20625 debug_ppl_powerset_matrix): Likewise.
20626 * var-tracking.c (debug_dv): Likewise.
20627 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
20628 * cfgloop.c (verify_loop_structure): Likewise.
20629 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
20630 * c-common.c (verify_sequence_points): Likewise.
20631 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
20632 debug_candidates, debug_rgn_dependencies): Likewise.
20633 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
20634 * debug_constraint_graph, debug_solution_for_var,
20635 debug_sa_points_to_info): Likewise.
20636 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
20637 Likewie.
20638 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
20639 debug_loops, debug_loop, debug_loop_num): Likewise.
20640 * passes.c (debug_pass): Likewise.
20641 (dump_properties): Likewise; add cfglayout property.
20642 (debug_properties): Likewise.
20643 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
20644 * varpool.c (debug_varpool): Likewise.
20645 * regcprop.c (debug_value_data): Likewise.
20646 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
20647 debug_immediate_uses_for): Likewise.
20648
20649 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
20650
20651 PR bootstrap/44315
20652 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
20653 Filter out insn-flags.h.
20654
20655 2010-05-29 Jan Hubicka <jh@suse.cz>
20656
20657 * cgraph.h (struct varpool_node_set_def,
20658 struct cgraph_node_set_def): Remove unused AUX pointer.
20659 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
20660 VEC_empty macro.
20661
20662 2010-05-29 Jan Hubicka <jh@suse.cz>
20663
20664 PR middle-end/44324
20665 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
20666
20667 2010-05-29 Richard Guenther <rguenther@suse.de>
20668
20669 * lto-streamer.c (cached_bp): New global variable.
20670 (bitpack_create): Return the cached bitpack, if available.
20671 (bitpack_delete): Clear and cache the bitpack, if appropriate.
20672 (bp_pack_value): Remove redundant asserts.
20673
20674 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
20675
20676 PR middle-end/44306
20677 * tree-if-conv.c (is_true_predicate): New.
20678 (is_predicated): Use is_true_predicate.
20679 (add_to_predicate_list): Same. Do not use unshare_expr.
20680 (add_to_dst_predicate_list): Same.
20681
20682 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
20683
20684 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
20685 field on edges.
20686 (predicate_bbs): Same.
20687 (clean_predicate_lists): Same.
20688 (find_phi_replacement_condition): Do not AND the predicate from
20689 edge->aux.
20690
20691 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
20692
20693 PR bootstrap/44315
20694 * Makefile.in (build/gencondmd.o): Add a missing `\'.
20695
20696 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20697
20698 PR target/44261
20699 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
20700 (negdf2): Adjust expander pattern and use negdf2_slow.
20701 (negsf2): Likewise.
20702
20703 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
20704
20705 * basic-block.h (struct control_flow_graph): Move last_label_uid field
20706 up.
20707 * df.h (struct df_base_ref): Move regno field up.
20708 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
20709 * expr.h (struct separate_ops): Move location field up.
20710 * optabs.h (struct optab_d): Move libcall_basename field down.
20711 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
20712 * config/i386/i386.h (struct machine_function): Convert call_abi field
20713 into a bitfield. Move cfa field to the end of the structure.
20714
20715 2010-05-29 Jan Hubicka <jh@suse.cz>
20716
20717 * varpool.c (varpool_get_node): Fix lookup.
20718
20719 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
20720
20721 * config/spu/spu-protos.h: Do not include rtl.h. Protect
20722 RTL specific prototypes with #ifdef RTX_CODE.
20723 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
20724 * config/spu/t-spu-elf: Fix dependencies.
20725
20726 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
20727
20728 2010-05-29 Mike Stump <mikestump@comcast.net>
20729
20730 PR bootstrap/44315
20731 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
20732 TM_H when building to avoid dependency loops.
20733
20734 2010-05-29 Jan Hubicka <jh@suse.cz>
20735
20736 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
20737 refs and body; not the whole node for masters of materialized clones.
20738
20739 2010-05-29 Mike Stump <mikestump@comcast.net>
20740
20741 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
20742
20743 2010-05-29 Jan Hubicka <jh@suse.cz>
20744
20745 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
20746 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
20747 use of clone_function_name.
20748 * cgraph.h (cgraph_create_virtual_clone,
20749 cgraph_function_versioning): update prototypes.
20750 (clone_function_name): Declare.
20751 * ipa-cp.c (ipcp_insert_stage): Update call of
20752 cgraph_create_virtual_clone.
20753 * omp-low.c (create_omp_child_function_name): Use
20754 cgraph_create_virtual_clone.
20755 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
20756 (cgraph_function_versioning): Take SUFFIX argument; produce new name
20757 and make decl local.
20758
20759 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
20760
20761 * vec.h: Include statistics.h
20762 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
20763 with VEC_H.
20764
20765 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
20766
20767 * c-lex.c: Do not include c-tree.h.
20768 * c-pretty-print.c: Likewise.
20769 * c-opts.c: Likewise.
20770 * c-gimplify.c: Likewise.
20771 * c-common.c: Likewise.
20772 * c-dump.c: Likewise. Include c-common.h.
20773
20774 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
20775
20776 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
20777 before including diagnostic-core.h.
20778 (c_cpp_error): New prototype moved from c-tree.h.
20779 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
20780 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
20781 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
20782 (c_cpp_error): Prototype moved to c-common.h.
20783 * Makefile.in: Update dependency for C_COMMON_H.
20784
20785 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
20786
20787 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
20788 * c-common.c (c_register_addr_space): Remove here.
20789 * c-decl.c (c_register_addr_space): Re-add here.
20790
20791 2010-05-28 Mike Stump <mikestump@comcast.net>
20792
20793 * config/darwin-c.c: Remove c-tree.h include.
20794
20795 2010-05-28 Joseph Myers <joseph@codesourcery.com>
20796
20797 * gcc.c: Include diagnostic.h.
20798 (error_count): Remove. All users changed to use errorcount.
20799 (programname): Remove. All users changed to use progname.
20800 (fancy_abort, internal_error, fatal_error, error, warning, inform,
20801 fnotice): Remove.
20802 (execute): Don't include "Internal error" and bug reporting
20803 information in argument of internal_error call.
20804 (process_command): Don't increment error_count after calling
20805 perror_with_name.
20806 (input_filename): Rename to gcc_input_filename. All users
20807 changed.
20808 (main): Call diagnostic_initialize. Register delete_temp_files
20809 with atexit. Use seen_error to test for errors.
20810 * gcc.h: Include diagnostic-core.h.
20811 (fatal_error, error, warning): Remove.
20812 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
20813 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
20814 (gcc.o): Update dependencies.
20815
20816 2010-05-28 Jeff Law <law@redhat.com>
20817
20818 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
20819 functions.
20820 * ira.h (ira_bad_reload_regno): Declare
20821 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
20822
20823 * ira-color.c (update_curr_costs): Free updated hard reg costs.
20824 (ira_reassign_conflict_allocnos): Remove bogus asserts.
20825 (allocno_reload_assign): Likewise.
20826
20827 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
20828
20829 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
20830 build1_stat.
20831
20832 2010-05-28 Richard Guenther <rguenther@suse.de>
20833
20834 PR lto/44312
20835 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
20836 Stream fixed-point constants mode.
20837 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
20838 and TYPE_PRECISION.
20839 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
20840 Stream fixed-point constants mode.
20841 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
20842 and TYPE_PRECISION.
20843
20844 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
20845
20846 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
20847 only place it was called from.
20848 (number_of_latch_executions): Do not return chrec_dont_know when the
20849 may_be_zero is a runtime condition: instead, return a COND_EXPR
20850 including the may_be_zero condition.
20851 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
20852 of nb_iterations.
20853 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
20854 COND_EXPRs.
20855
20856 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
20857
20858 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
20859 generate COND_EXPRs for degenerate_phi_result.
20860
20861 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
20862
20863 PR middle-end/44293
20864 * tree-if-conv.c (if_convertible_loop_p): Check the
20865 if-convertibility of phi nodes in non predicated BBs.
20866
20867 2010-05-28 Joseph Myers <joseph@codesourcery.com>
20868
20869 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
20870
20871 2010-05-28 Joseph Myers <joseph@codesourcery.com>
20872
20873 PR driver/15303
20874 * gcc.c (inform, warning, inform): New functions.
20875 (fatal_ice): Rename to internal_error; change cmsgid parameter to
20876 gmsgid. All callers changed.
20877 (notice): Rename to fnotice; add parameter fp. All callers changed.
20878 (fatal_error): Rename to fatal_signal. All users changed.
20879 (fatal): Rename to fatal_error; change cmsgid parameter to
20880 gmsgid. All callers changed.
20881 (process_command): Use warning instead of error for warnings.
20882 (end_going_arg): Don't use _() around argument of error.
20883 (do_spec_1): Use inform for message from %n specs. Use warning
20884 instead of error for warnings.
20885 (main): Use inform for comparison messages. Use warning for
20886 message about unused linker input.
20887 (error): Increment error_count. Print "error: ".
20888 * gcc.h (fatal): Change to fatal_error.
20889 (warning): Declare.
20890 * config/darwin-driver.c (darwin_default_min_version): Use warning
20891 instead of fprintf for warnings.
20892 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
20893
20894 2010-05-28 Julian Brown <julian@codesourcery.com>
20895
20896 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
20897 (*thumb2_addsi3_compare0_scratch): New.
20898 * config/arm/constraints.md (Pv): New.
20899 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
20900 for ARM mode only.
20901 (*addsi3_compare0_scratch): Likewise.
20902
20903 2010-05-28 Jan Hubicka <jh@suse.cz>
20904
20905 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
20906 check.
20907 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
20908 only on local statics.
20909
20910 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
20911
20912 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
20913
20914 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
20915
20916 PR bootstrap/44314
20917 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
20918 (OPTION_GLIBC): Define.
20919
20920 2010-05-28 Jakub Jelinek <jakub@redhat.com>
20921
20922 PR debug/41048
20923 * dwarf2out.c (double_int_type_size_in_bits): New function.
20924 (round_up_to_align): Change first argument and return value to
20925 double_int.
20926 (field_byte_offset): Work internally on double_ints.
20927
20928 PR target/43636
20929 * builtins.c (expand_movstr): Use a temporary pseudo instead
20930 of target even when target is not NULL and not const0_rtx, but
20931 fails movstr predicate.
20932 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
20933
20934 2010-05-28 Joseph Myers <joseph@codesourcery.com>
20935
20936 * final.c (rest_of_clean_state): Use %m in errors instead of
20937 strerror (errno).
20938 * gengtype.c (read_input_list, close_output_files): Use xstrerror
20939 instead of strerror.
20940 * toplev.c (process_options): Use %m in errors instead of strerror
20941 (errno).
20942 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
20943 (errno).
20944
20945 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
20946
20947 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
20948 (ix86_canonical_va_list_type): Make static. Add declaration.
20949 (ix86_enum_va_list): Make static. Reindent.
20950 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
20951 (ix86_canonical_va_list_type): Ditto.
20952 (ix86_enum_va_list): Ditto.
20953
20954 2010-05-28 Richard Guenther <rguenther@suse.de>
20955
20956 * lto-wrapper.c (run_gcc): With -save-temps generate a
20957 user-visible ltrans filename. Fixup ltrans unit numbering.
20958
20959 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
20960
20961 * c-common.c (c_common_nodes_and_builtins): Replace use
20962 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
20963 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
20964 to ix86_enum_va_list.
20965 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
20966 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
20967 (TARGET_ENUM_VA_LIST_P): Add hook description.
20968 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
20969 * target.h (gcc_target): Add enum_va_list hook.
20970
20971 PR bootstrap/44299
20972 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
20973 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
20974 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
20975
20976 2010-05-28 Alan Modra <amodra@gmail.com>
20977
20978 PR target/44266
20979 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
20980 emit_library_call machinery to set up __tls_get_addr calls.
20981
20982 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20983
20984 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
20985
20986 2010-05-28 Dodji Seketeli <dodji@redhat.com>
20987
20988 Revert fix for PR c++/44188
20989 * c-common.c (is_typedef_decl): Revert the moving of this
20990 definition ...
20991 * tree.c (is_typedef_decl): ... here.
20992 (typdef_variant_p): Revert the moving of this definition
20993 here from cp/tree.c.
20994 * c-common.h (is_typedef_decl): Revert the moving of this
20995 declaration ...
20996 * tree.h (is_typedef_decl): ... here.
20997 (typedef_variant_p): Revert the moving of this declaration here
20998 from cp/cp-tree.h
20999 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
21000 (gen_tagged_type_die): Revert the splitting out of ...
21001 (gen_type_die_with_usage): ... this function. Revert the anonymous
21002 tagged type handling.
21003 (gen_typedef_die): Revert emitting DW_TAG_typedef for
21004 typedefs naming anonymous tagged types.
21005
21006 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21007
21008 * config/rs6000/rs6000-modes.def (PSImode): Delete.
21009
21010 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
21011
21012 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
21013 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
21014 throughout.
21015 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
21016 "xer" to "ca".
21017 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
21018 XER_REGS to CA_REGS throughout.
21019 * config/rs6000/rs6000.h: Same.
21020 (ADDITIONAL_REGISTER_NAMES): Add "xer".
21021 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
21022 that mode_iterator "P" is the size for arithmetic carries as well.
21023 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
21024
21025 2010-05-28 Jakub Jelinek <jakub@redhat.com>
21026
21027 PR bootstrap/44255
21028 * combine.c (struct rtx_subst_pair): Define unconditionally.
21029 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
21030 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
21031 Call make_compound_operation on pair->to.
21032 (propagate_for_debug): Don't call make_compound_operation here.
21033 Always use simplify_replace_fn_rtx.
21034
21035 2010-05-27 Sterling Augustine <sterling@tensilica.com>
21036
21037 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
21038 * config/xtensa/xtensa.c (override_options): Check
21039 TARGET_FORCE_NO_PIC and set flag_pic.
21040 * config/xtensa/xtensa.opt: Document -mforce-no-pic
21041
21042 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21043
21044 PR bootstrap/44299
21045 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
21046 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
21047
21048 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21049
21050 * diagnostic-core.h: New. Contents moved from diagnostic.h and
21051 toplev.h.
21052 * diagnostic.c: Don't include toplev.h.
21053 (progname): Define. Moved from toplev.c.
21054 (seen_error): New function.
21055 * diagnostic.h: Include diagnostic-core.h.
21056 (diagnostic_t, emit_diagnostic): Don't declare here.
21057 * toplev.c (progname): Move to toplev.c.
21058 (emit_debug_global_declarations, compile_file, finalize,
21059 do_compile, toplev_main): Use seen_error.
21060 * toplev.h: Include diagnostic-core.h.
21061 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
21062 internal_error, warning, warning_at, error, error_n, error_at,
21063 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
21064 verbatim, fnotice, progname): Move to diagnostic-core.h.
21065 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
21066 (expand_builtin_expect): Use seen_error.
21067 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
21068 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
21069 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
21070 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
21071 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
21072 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
21073 errorcount for errors.
21074 * c-opts.c (c_common_finish): Use seen_error.
21075 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21076 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
21077 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
21078 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
21079 (get_coverage_counts): Use seen_error.
21080 * dwarf2out.c (dwarf2out_finish): Use seen_error.
21081 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
21082 gimplify_body): Use seen_error.
21083 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
21084 * ipa-pure-const.c (gate_pure_const): Use seen_error.
21085 * ipa-reference.c (gate_reference): Use seen_error.
21086 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
21087 * lambda-code.c: Include diagnostic-core.h instead of
21088 diagnostic.h.
21089 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
21090 * lto-compress.c: Include diagnostic-core.h instead of
21091 diagnostic.h.
21092 * lto-section-in.c: Include diagnostic-core.h instead of
21093 diagnostic.h.
21094 * lto-streamer-out.c: Include diagnostic-core.h instead of
21095 diagnostic.h.
21096 * lto-streamer.c: Include diagnostic-core.h instead of
21097 diagnostic.h.
21098 (gate_lto_out): Use seen_error.
21099 * matrix-reorg.c: Include diagnostic-core.h instead of
21100 diagnostic.h.
21101 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
21102 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
21103 (gate_expand_omp, lower_omp_1): Use seen_error.
21104 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
21105 (rest_of_decl_compilation, rest_of_type_compilation,
21106 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
21107 * tree-cfg.c (label_to_block_fn): Use seen_error.
21108 * tree-inline.c (optimize_inline_calls): Use seen_error.
21109 * tree-mudflap.c (mudflap_finish_file): Use
21110 seen_error.
21111 * tree-optimize.c (gate_all_optimizations,
21112 gate_all_early_local_passes, gate_all_early_optimizations): Use
21113 seen_error.
21114 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
21115 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
21116 (varpool_remove_unreferenced_decls,
21117 varpool_assemble_pending_decls): Use seen_error.
21118 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
21119 (TOPLEV_H, DIAGNOSTIC_H): Update.
21120 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
21121 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
21122 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
21123 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
21124 coverage.o, lambda-code.o): Update dependencies.
21125
21126 2010-05-25 Dodji Seketeli <dodji@redhat.com>
21127
21128 PR c++/44188
21129 * c-common.c (is_typedef_decl): Move this definition ...
21130 * tree.c (is_typedef_decl): ... here.
21131 (typdef_variant_p): Move definition here from cp/tree.c.
21132 * c-common.h (is_typedef_decl): Move this declaration ...
21133 * tree.h (is_typedef_decl): ... here.
21134 (typedef_variant_p): Move declaration here from cp/cp-tree.h
21135 * dwarf2out.c (is_naming_typedef_decl): New function.
21136 (gen_tagged_type_die): Split out of ...
21137 (gen_type_die_with_usage): ... this function. When an anonymous
21138 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21139 is emitted for the typedef.
21140 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21141 anonymous tagged types.
21142
21143 2010-05-27 Jason Merrill <jason@redhat.com>
21144
21145 * print-tree.c (debug_vec_tree): New fn.
21146 (print_vec_tree): New fn.
21147 * tree.h: Declare them.
21148 * gdbinit.in (pvt): New command.
21149
21150 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
21151
21152 * gdbinit.in (pdd): New command.
21153
21154 2010-05-27 Jan Hubicka <jh@suse.cz>
21155
21156 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
21157 (update_caller_keys): Return early if there are no callers;
21158 only update fibheap when decresing the key.
21159 (update_callee_keys): Avoid recursion.
21160 (decide_inlining_of_small_functions): When badness does not match;
21161 re-insert into fibheap.
21162
21163 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
21164
21165 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
21166 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
21167 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
21168 (ALL_HOST_OBJS): Now a union of the above two.
21169 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
21170 all files in ALL_HOST_FRONTEND_OBJS.
21171 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
21172
21173 * c-common.c: Pretend to be a backend file by undefining
21174 IN_GCC_FRONTEND (still need rtl.h here).
21175
21176 2010-05-27 Jan Hubicka <jh@suse.cz>
21177
21178 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
21179 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
21180
21181 2010-05-27 Jan Hubicka <jh@suse.cz>
21182
21183 * sched-ebb.c: Rename struct deps to struct deps_desc.
21184 * ddg.c: Likewise.
21185 * sel-sched-ir.c: Likewise.
21186 * sched-deps.c: Likewise.
21187 * sched-int.h: Likewise.
21188 * sched-rgn.c: Likewise.
21189
21190 2010-05-27 Jon Beniston <jon@beniston.com>
21191
21192 PR 43726
21193 * config/lm32/lm32.h: Remove definition of
21194 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
21195
21196 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
21197
21198 PR lto/44230
21199 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
21200
21201 2010-05-27 Richard Guenther <rguenther@suse.de>
21202
21203 PR tree-optimization/44284
21204 * tree-vect-stmts.c (vectorizable_assignment): Handle
21205 sign-changing conversions as simple copy.
21206
21207 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21208
21209 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
21210 Bionic C library.
21211 (__gthread_active_p): Check for pthread_create if compiling against
21212 Bionic C library.
21213
21214 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21215
21216 Support compilation for Android platform. Reimplement -mandroid.
21217
21218 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
21219 (*android*): Set ANDROID_DEFAULT.
21220 (arm*-*-linux*): Include linux-android.h.
21221 (arm*-*-eabi*): Don't include previous -mandroid implementation.
21222 * config/arm/eabi.h: Remove, move Android-specific parts ...
21223 * config/linux-android.h: ... here. New file.
21224 * config/arm/eabi.opt: Rename to ...
21225 * config/linux-android.opt: ... this.
21226 (mandroid): Allow -mno-android option. Initialize based on
21227 ANDROID_DEFAULT.
21228 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
21229 Move logic to corresponding LINUX_TARGET_* macros.
21230 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
21231 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
21232 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
21233 Android definitions.
21234 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
21235 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
21236 Document.
21237
21238 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
21239
21240 Add support for Bionic C library
21241
21242 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
21243 macro.
21244 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
21245 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
21246
21247 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
21248 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
21249 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
21250 to support multiple C libraries. Handle Bionic.
21251 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
21252 (BIONIC_DYNAMIC_LINKER64): Define.
21253 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
21254 Update.
21255 (TARGET_HAS_SINCOS): Enable for Bionic.
21256
21257 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
21258 the last option specified on command line take effect.
21259 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
21260 (mbionic): New.
21261 (mglibc, muclibc): Update.
21262
21263 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
21264 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
21265 DEFAULT_LIBC.
21266
21267 * doc/invoke.texi (-mglibc, -muclibc): Update.
21268 (-mbionic): Document.
21269
21270 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21271
21272 * c-common.h (c_register_addr_space): Add prototype.
21273 (ADDR_SPACE_KEYWORD): Remove.
21274 * c-common.c (c_register_addr_space): New function.
21275 (c_addr_space_name): Reimplement.
21276 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
21277
21278 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
21279 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
21280
21281 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
21282 Remove TARGET_ADDR_SPACE_KEYWORDS.
21283
21284 2010-05-27 Joseph Myers <joseph@codesourcery.com>
21285
21286 * input.c: New file.
21287 * input.h (main_input_filename): Move declaration to toplev.h.
21288 * toplev.c (input_location, line_table): Move to input.c
21289 * toplev.h (main_input_filename): Move declaration from input.h.
21290 * tree.c (expand_location): Move to input.c.
21291 * Makefile.in (OBJS-common): Add input.o.
21292 (input.o): Add dependencies.
21293
21294 2010-05-27 Richard Guenther <rguenther@suse.de>
21295
21296 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
21297 for non-existant files.
21298 (fork_execute): Mark args_name file as deleted.
21299
21300 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
21301
21302 PR bootstrp/44287
21303 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
21304 (narrow_signed_type): Likewise.
21305
21306 2010-05-26 Jan Hubicka <jh@suse.cz>
21307
21308 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
21309 edge only when checking is enabled; check using former_clone_of;
21310 check inline clones too.
21311 (cgraph_materialize_clone): Record former_clone_of pointer.
21312 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
21313 combining redirections; dump args_to_skip bitmap
21314 (cgraph_materialize_all_clones): Do no redirection here.
21315 * ipa-inline.c (inline_transform): Do redirection here.
21316 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
21317 cheking only).
21318
21319 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21320
21321 * config/avr/avr-c.c: Do not include regs.h.
21322 Include cpplib.h for cpp_define and tree.h for c-common.h.
21323 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
21324 * config/avr/t-avr: Fix dependencies for avr-c.o.
21325
21326 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21327
21328 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
21329 string instead of SYMBOL_REF rtx.
21330 * rtl.h (set_stack_check_libfunc): Move prototype from here...
21331 * libfuncs.h: ...to here. Adjust for explow.c change.
21332
21333 2010-05-26 Joseph Myers <joseph@codesourcery.com>
21334
21335 * pretty-print.c: Don't include ggc.h.
21336 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
21337 (identifier_to_locale): Use them for allocation.
21338 * pretty-print.h (identifier_to_locale_alloc,
21339 identifier_to_locale_free): Declare.
21340 * toplev.c (alloc_for_identifier_to_locale): New.
21341 (general_init): Set identifier_to_locale_alloc and
21342 identifier_to_locale_free.
21343 * Makefile.in (pretty-print.o): Update dependencies.
21344
21345 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
21346
21347 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
21348 pointer types if they have different alignment or mode.
21349
21350 2010-05-26 Anatoly Sokolov <aesok@post.ru>
21351
21352 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21353 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21354 * config/sparc/sparc-protos.h (function_value): Remove declaration.
21355 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
21356 sparc_function_value_regno_p): New functions.
21357 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21358 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21359 (function_value): Rename to...
21360 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
21361 argument to 'outgoing'.
21362 (function_arg_record_value, function_arg_union_value,
21363 function_arg_vector_value): Update comment.
21364
21365 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
21366
21367 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
21368 (fde_needed_for_eh_p): New predicate.
21369 (output_call_frame_info): Use it throughout to decide whether FDEs
21370 are needed for EH purpose.
21371 (dwarf2out_begin_prologue): Reorder assignments.
21372
21373 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21374
21375 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
21376 special case loop->header.
21377 (is_predicated): New.
21378 (if_convertible_loop_p): Call it.
21379
21380 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21381
21382 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
21383 iterator in parameter. Do not generate code during the analysis.
21384 (tree_if_convert_cond_stmt): Removed.
21385 (tree_if_convert_stmt): Removed.
21386 (predicate_bbs): New.
21387 (if_convertible_loop_p): Call predicate_bbs.
21388 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
21389 now contains all the analysis part.
21390
21391 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21392
21393 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
21394 statements in the analysis part.
21395 (tree_if_convert_stmt): Update comment.
21396 (remove_conditions_and_labels): New.
21397 (combine_blocks): Call remove_conditions_and_labels.
21398 (tree_if_conversion): Update comment.
21399
21400 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21401
21402 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
21403 than 2 predecessors or more than 2 successors.
21404
21405 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21406
21407 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
21408 of loops in which the data dependence analysis fails.
21409
21410 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21411
21412 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
21413 CDI_POST_DOMINATORS.
21414 (tree_if_conversion): Same.
21415
21416 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21417
21418 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
21419
21420 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
21421
21422 * tree-if-conv.c: Update copyright years. Fix comments.
21423 Fix indentation.
21424
21425 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
21426
21427 * builtin-types.def (BT_INT128): New primitive type.
21428 (BT_UINT128): Likewise.
21429 * c-common.c (c_common_r): Add __int128 keyword.
21430 (c_common_type_for_size): Handle __int128.
21431 (c_common_type_for_mode): Likewise.
21432 (c_common_signed_or_unsigned_type): Likewise.
21433 (c_common_nodes_and_builtins): Add builtin type
21434 if target supports 128-bit integer scalar.
21435 * c-common.h (enum rid): Add RID_INT128.
21436 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
21437 if target supports 128-bit integer scalar.
21438 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
21439 (finish_declspecs): Likewise.
21440 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
21441 (c_token_starts_declspecs): Likewise.
21442 (c_parser_declspecs): Likewise.
21443 (c_parser_attributes): Likewise.
21444 (c_parser_objc_selector): Likewise.
21445 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
21446 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
21447 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
21448 * tree.c (make_or_reuse_type): Likewise.
21449 (make_unsigned_type): Likewise.
21450 (build_common_tree_nodes_2): Likewise.
21451 * tree.h (enum integer_type_kind): Add itk_int128 and
21452 itk_unsigned_int128.
21453 (int128_integer_type_node): New define.
21454 (int128_unsigned_type_node): New define.
21455 * doc/extend.texi: Add documentation about __int128 type.
21456
21457 2010-05-26 Richard Guenther <rguenther@suse.de>
21458
21459 * tree-ssa-sccvn.c (copy_nary): Adjust.
21460 (copy_phis): Rename to ...
21461 (copy_phi): ... this. Adjust.
21462 (copy_references): Rename to ...
21463 (copy_reference): ... this. Adjust.
21464 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
21465 result into the valid table.
21466
21467 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21468
21469 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
21470 insn-config.h, insn-codes.h, recog.h, and optabs.h.
21471
21472 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21473
21474 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
21475
21476 2010-05-26 Richard Guenther <rguenther@suse.de>
21477
21478 * opts.c (common_handle_option): Handle OPT_Ofast.
21479
21480 2010-05-26 Joseph Myers <joseph@codesourcery.com>
21481
21482 * diagnostic.c: Don't include opts.h.
21483 (permissive_error_option): Define.
21484 (diagnostic_initialize): Take n_opts parameter. Allocate memory
21485 for classify_diagnostic. Don't use memset for
21486 classify_diagnostic. Initialize new and recently added fields.
21487 (diagnostic_classify_diagnostic): Use context->n_opts instead of
21488 N_OPTS.
21489 (diagnostic_report_diagnostic): Pass context parameter to
21490 diagnostic_report_warnings_p. Use option_enabled and option_name
21491 hooks from context.
21492 (emit_diagnostic): Use permissive_error_option.
21493 (permerror): Likewise.
21494 * diagnostic.h: Don't include options.h.
21495 (struct diagnostic_context): Add n_opts, opt_permissive,
21496 inhibit_warnings, warn_system_headers, option_enabled and
21497 option_name fields. Change classify_diagnostic to a pointer.
21498 * opts-diagnostic.h: New file.
21499 * opts.c: Include opts-diagnostic.h.
21500 (common_handle_option): Set global_dc fields for -Wfatal-errors,
21501 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
21502 (option_name): New function.
21503 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
21504 (c_common_handle_option): Set global_dc->permissive for
21505 -fpermissive.
21506 * c-common.c (c_cpp_error): Save and restore
21507 global_dc->warn_system_headers, not variable warn_system_headers.
21508 * toplev.c: Include opts-diagnostic.h.
21509 (general_init): Update call to diagnostic_initialize. Set
21510 global_dc->show_column, global_dc->option_enabled and
21511 global_dc->option_name.
21512 (process_options): Don't set global_dc fields here.
21513 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
21514 (diagnostic.o, opts.o, toplev.o): Update dependencies.
21515
21516 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
21517
21518 * config/picochip/picochip.md (movsi): Split a movsi from a
21519 const after reload.
21520
21521 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21522
21523 * ggc-zone.c: Update copyright year.
21524 (poison_region): Mark memory for Valgrind as undefined before
21525 memset () call and inaccessible afterwards.
21526 (ggc_pch_total_size): Change type of i to int.
21527
21528 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21529
21530 * ggc-common.c (ggc_free_overhead): Allow empty slot.
21531
21532 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
21533
21534 * ggc-common.c: Update copyright year.
21535 (ggc_rlimit_bound): Remove prototype. Compile only if
21536 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
21537 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
21538 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
21539 (ggc_min_heapsize_heuristic): Likewise.
21540
21541 2010-05-26 Richard Guenther <rguenther@suse.de>
21542
21543 PR rtl-optimization/44164
21544 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
21545 no-common access-path disambiguation.
21546 (indirect_ref_may_alias_decl_p): Adjust.
21547 (indirect_refs_may_alias_p): Likewise.
21548 (refs_may_alias_p_1): Likewise.
21549
21550 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21551
21552 * c-typeck.c: Do not include expr.h.
21553
21554 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
21555
21556 * rtl.h (decl_default_tls_model): Move prototype from here...
21557 * output.h: ...to here.
21558 * c-decl.c: Do not include rtl.h.
21559 * c-pragma.c: Likewise.
21560 * c-parser.c: Likewise.
21561 * c-gimplify.c: Likewise. And also not hard-reg-set.
21562 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
21563 FIXME note for it. Add a FIXME note for expr.h.
21564 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
21565 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
21566 defined.
21567
21568 2010-05-26 Jakub Jelinek <jakub@redhat.com>
21569
21570 PR target/44199
21571 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
21572 or total_size is larger than red zone size for non-V4 ABI, emit a
21573 stack_tie resp. frame_tie insn before stack pointer restore.
21574 * config/rs6000/rs6000.md (frame_tie): New insn.
21575
21576 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
21577
21578 * function.h (struct function): Add can_throw_non_call_exceptions bit.
21579 * lto-streamer-in.c (input_function): Stream it in.
21580 * lto-streamer-out.c (output_function): Stream it out.
21581 * function.c (allocate_struct_function): Set it.
21582 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
21583 for flag_non_call_exceptions.
21584 * cfgbuild.c (control_flow_insn_p): Likewise.
21585 (make_edges): Likewise.
21586 * cfgexpand.c (expand_stack_alignment): Likewise.
21587 * combine.c (distribute_notes): Likewise.
21588 * cse.c (cse_extended_basic_block): Likewise.
21589 * except.c (insn_could_throw_p): Likewise.
21590 * gcse.c (simple_mem): Likewise.
21591 * ipa-pure-const.c (check_call): Likewise.
21592 (check_stmt ): Likewise.
21593 * lower-subreg.c (lower-subreg.c): Likewise.
21594 * optabs.c (emit_libcall_block): Likewise.
21595 (prepare_cmp_insn): Likewise.
21596 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
21597 * postreload.c (rest_of_handle_postreload): Likewise.
21598 * reload1.c (reload_as_needed): Likewise.
21599 (emit_input_reload_insns): Likewise.
21600 (emit_output_reload_insns): Likewise.
21601 (fixup_abnormal_edges): Likewise.
21602 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
21603 * store-motion.c (find_moveable_store): Likewise.
21604 * tree-eh.c (stmt_could_throw_p): Likewise.
21605 (tree_could_throw_p): Likewise.
21606 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
21607 * config/arm/arm.c (arm_expand_prologue): Likewise.
21608 (thumb1_expand_prologue): Likewise.
21609 * config/rx/rx.md (cbranchsf4): Likewise.
21610 (cmpsf): Likewise.
21611 * config/s390/s390.c (s390_emit_prologue): Likewise.
21612 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
21613 (inline_forbidden_into_p): New predicate.
21614 (expand_call_inline): Use it to forbid inlining.
21615 (tree_can_inline_p): Likewise.
21616
21617 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
21618
21619 * config/i386/i386-c.c: Do not include rtl.h.
21620 * config/i386/t-i386: Update dependencies.
21621
21622 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
21623
21624 * attribs.c: Do not include rtl.h.
21625 * Makefile.in: Update dependencies.
21626
21627 2010-05-25 Anatoly Sokolov <aesok@post.ru>
21628
21629 * double-int.h (double_int_and): New.
21630 * combine.c (try_combine): Clean up, use double_int_* and
21631 immed_double_int_const functions.
21632
21633 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21634
21635 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
21636 stderr to /dev/null instead of grep -q.
21637 * configure: Regenerate.
21638
21639 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
21640
21641 * Makefile.in (EXCEPT_H): Fix typo.
21642
21643 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
21644
21645 * ira-build.c (update_conflict_hard_reg_costs): New.
21646 (ira_build): Call update_conflict_hard_reg_costs.
21647
21648 2010-05-25 Jakub Jelinek <jakub@redhat.com>
21649
21650 PR debug/41371
21651 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
21652 ENABLE_CHECKING.
21653 (intersect_loc_chains): Walk the s2var's loc_chain together
21654 with s1node chain as long as the locations are equal, don't
21655 call find_loc_in_1pdv in that case.
21656
21657 PR debug/42801
21658 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
21659 (copy_bind_expr): ... instead of here.
21660 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
21661 if the block hasn't been remapped.
21662 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
21663 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
21664
21665 2010-05-25 Richard Guenther <rguenther@suse.de>
21666
21667 PR middle-end/44069
21668 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
21669 out-of-bounds array accesses.
21670
21671 2010-05-25 Richard Guenther <rguenther@suse.de>
21672
21673 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
21674 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
21675 (run_gcc): Re-organize to make cleanup easier.
21676
21677 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21678
21679 * config/s390/s390.c (optimization_options): Fix and move the
21680 flag_prefetch_loop_arrays override ...
21681 (override_options): ... here.
21682
21683 2010-05-25 Joseph Myers <joseph@codesourcery.com>
21684
21685 * diagnostic.c: Don't include plugin.h.
21686 (diagnostic_report_diagnostic): Don't handle plugins specially
21687 here. Pass context to internal_error callback.
21688 * diagnostic.h (struct diagnostic_context): Add context parameter
21689 to internal_error callback.
21690 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
21691 * plugin.h (struct diagnostic_context): Declare.
21692 (warn_if_plugins, plugins_internal_error_function): Declare.
21693 * toplev.c (general_init): Set global_dc->internal_error.
21694 * Makefile.in (diagnostic.o): Update dependencies.
21695
21696 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
21697
21698 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
21699 * config/rs6000/t-darwin64: New.
21700 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
21701 build crt2.
21702
21703 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
21704
21705 PR 44203
21706 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
21707 match the original (and intended) behaviour before r159557. This
21708 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
21709 in two ways.
21710
21711 2010-05-25 Richard Guenther <rguenther@suse.de>
21712
21713 * doc/invoke.texi: Document -Ofast.
21714 * target.h (struct gcc_target): Add handle_ofast.
21715 * target-def.h (TARGET_HANDLE_OFAST): Add.
21716 (TARGET_INITIALIZER): Adjust.
21717 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
21718 * common.opt (Ofast): Add.
21719
21720 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
21721
21722 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
21723 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
21724
21725 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
21726
21727 PR target/43610
21728 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
21729 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
21730 false_rtx. Use false_rtx to compute the correct *ptest for reversed
21731 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
21732
21733 2010-05-25 Jakub Jelinek <jakub@redhat.com>
21734
21735 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
21736 DW_OP_minus with negated offset instead of DW_OP_plus.
21737 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
21738
21739 2010-05-25 Wei Guozhi <carrot@google.com>
21740
21741 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
21742 tst instruction and a new alternative.
21743 * config/arm/constraints.md (Pu): New constraint.
21744
21745 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
21746
21747 * function.c (assign_stack_local_1): Initialize variable
21748 to avoid warning when bootstrapping at -O3.
21749
21750 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
21751
21752 * configure.ac (all_lang_makefiles): Remove everything related to it.
21753 * configure: Regenerate.
21754 * Makefile.in: Fix reference to ada Make-lang.in.
21755 Remove support for LANG_MAKEFILES.
21756
21757 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
21758 Sandra Loosemore <sandra@codesourcery.com>
21759
21760 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
21761 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
21762 description. Add arm_neon_fp16_ok.
21763 (Add Options): Add arm_neon and arm_neon_fp16.
21764
21765 2010-05-24 Joseph Myers <joseph@codesourcery.com>
21766
21767 * diagnostic.c: Don't include flags.h.
21768 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
21769 context parameters. Check flags in the context passed as a parameter.
21770 (diagnostic_build_prefix): Add context parameter. Check
21771 show_column flag in context.
21772 (diagnostic_action_after_output): Check fatal_errors flag in context.
21773 (diagnostic_report_current_module): Check show_column flag in context.
21774 (default_diagnostic_starter): Update call to
21775 diagnostic_build_prefix.
21776 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
21777 (emit_diagnostic): Pass context to permissive_error_kind.
21778 (permerror): Pass context to permissive_error_kind.
21779 * diagnostic.h (struct diagnostic_context): Add show_column,
21780 pedantic_errors, permissive and fatal_errors fields.
21781 (diagnostic_build_prefix): Update prototype.
21782 * langhooks.c
21783 * toplev.c (process_options): Set flags in global_dc from
21784 flag_show_column, flag_pedantic_errors, flag_permissive,
21785 flag_fatal_errors.
21786 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
21787 to diagnostic_build_prefix.
21788 * Makefile.in (diagnostic.o): Update dependencies.
21789
21790 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
21791
21792 * config/i386/ia32intrin.h (__crc32q): Define only if
21793 __SSE4_2__ is defined.
21794
21795 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
21796
21797 PR target/44132
21798 PR middle-end/43602
21799 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
21800 DECL_VISIBILITY_SPECIFIED.
21801 (emutls_decl): Set DECL_PRESERVE_P and copy
21802 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
21803 (emutls_finalize_control_var): New callback.
21804 (emutls_finish): Finalize emutls control variables.
21805 * toplev.c (compile_file): Move the call to emutls_finish ()
21806 before varpool_assemble_pending_decls ().
21807
21808 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
21809
21810 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
21811 added to the preprocessor condition.
21812
21813 2010-05-24 Paul Brook <paul@codesourcery.com>
21814
21815 * gengtype-lex.l: Add HARD_REG_SET.
21816 * expr.c (expand_expr_real_1): Record writes to hard registers.
21817 * function.c (rtl_data): Add asm_clobbers.
21818 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
21819 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
21820 Use crtl->asm_clobbers.
21821
21822 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21823
21824 * doc/makefile.texi (Makefile): Mention stages 'profile'
21825 and 'feedback' for profiledbootstrap.
21826
21827 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
21828
21829 PR target/44245
21830 * config/i386/i386.c (def_builtin): Properly check
21831 OPTION_MASK_ISA_64BIT.
21832
21833 2010-05-23 Joseph Myers <joseph@codesourcery.com>
21834
21835 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
21836 typedefs with different but compatible types. Allow duplicate
21837 typedefs with the same type except for pedantic non-C1X, but give
21838 warning for variably modified types.
21839 * c-typeck.c (tagged_types_tu_compatible_p,
21840 function_types_compatible_p, type_lists_compatible_p,
21841 comptypes_internal): Add parameter different_types_p; set
21842 *different_types_p for different but compatible types. All
21843 callers changed.
21844 (comptypes_check_different_types): New.
21845 * c-tree.h (comptypes_check_different_types): Declare.
21846
21847 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
21848
21849 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
21850 * jump.c: Include basic-block.h.
21851 * profile.c: Likewise.
21852 * tree-profile.c: Likewise.
21853 * coverage.c: Likewise.
21854 * basic-block.h (optimize_function_for_size_p): Move to function.h.
21855 (optimize_function_for_speed_p): Likewise.
21856 * function.h (optimize_function_for_size_p,
21857 optimize_function_for_speed_p): Moved here from basic-block.h.
21858 * Makefile.in: Update dependencies.
21859
21860 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21861
21862 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
21863 before calling make; allow override through $MAKE.
21864 * doc/invoke.texi (Optimize Options): Document override.
21865
21866 2010-05-23 Anatoly Sokolov <aesok@post.ru>
21867
21868 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
21869 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21870 (rs6000_mode_dependent_address_ptr): Make static.
21871 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21872 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
21873 Remove.
21874
21875 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
21876
21877 PR target/43869
21878 * config/i386/i386.c: Make sure that the correct regparm is passed.
21879
21880 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
21881
21882 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
21883 * sbitmap.c: ...to here to internalize sbitmap element access.
21884 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
21885 Explain why basic-block.h is included.
21886 * function.h: Include tm.h for CUMULATIVE_ARGS.
21887 * Makefile.in: Update dependencies.
21888
21889 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
21890
21891 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
21892 New core types.
21893 * sbitmap.h (struct sbitmap_def): Do not typedef here.
21894 * sbitmap.c: Include sbitmap.h.
21895 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
21896 hard-reg-set.h. Split everything related to regsets out from here...
21897 * regset.h: ...to here. New file.
21898 * df.h: Include regset.h and sbitmap.h.
21899 * tree-flow.h: Likewise.
21900 * cfgloop.h: Likewise.
21901 * except.h: Do not include sbitmap.h. Include hashtab.h.
21902 * cgraph.h: Include vec.h and function.h.
21903 * reload.h (struct insn_chain): Change types of live_throughout
21904 and dead_or_set from regset_head to bitmap_head.
21905 (compute_use_by_pseudos): Be defined also if regset.h is not included.
21906 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
21907 spilled_regs from regset_head to bitmap_head to avoid dependency
21908 in regset.h.
21909 * sel-sched-ir.h: Include regset.h.
21910 * reload.c: Include df.h before reload.h.
21911 * caller-save.c: Likewise.
21912 * reload1.c: Likewise.
21913 * ira.c: Likewise.
21914 (mark_elimination): Update type of r to bitmap, consistent with
21915 DF_LR_IN.
21916 * dominance.c: Include bitmap.h.
21917 * modulo-sched.c: Include df.h.
21918 * cfganal.c: Include bitmap.h and sbitmap.h.
21919 * cfgbuild.c: Include sbitmap.h.
21920 * lcm.c: Include sbitmap.h.
21921 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
21922 * domwalk.c: Include sbitmap.h, exclude ggc.h.
21923 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
21924 * cselib.c: Include bitmap.h.
21925 * tree-optimize.c: Include regset.h.
21926 * stmt.c: Include bitmap.h.
21927 * Makefile.in: Update dependencies.
21928
21929 2010-05-22 Jan Hubicka <jh@suse.cz>
21930
21931 * cgraph.h (struct varpool_node): Add same_comdat_group.
21932 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
21933 pointer.
21934 (output_varpool): Update call of lto_output_varpool_node.
21935 (input_varpool): Read same_comdat_group pointer.
21936 (input_varpool_1): Fixup same_comdat_group pointer.
21937 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
21938 group is needed, all are.
21939 * varpool.c (varpool_remove_node): Remove node from same comdat group
21940 linklist too.
21941 (varpool_analyze_pending_decls): Walk same comdat groups.
21942
21943 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
21944
21945 * rtl.h (union rtunion_def): Remove rt_bit member.
21946 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
21947 * print-rtl (print_rtx): Do not print the member.
21948 * gengtype.c (adjust_field_rtx_def): Do not handle it.
21949 * gengenrtl.c (type_from_format): Likewise.
21950 (accessor_from_format): Likewise.
21951
21952 2010-05-22 Joseph Myers <joseph@codesourcery.com>
21953
21954 * dbgcnt.c: Include toplev.h instead of errors.h.
21955 * ira-emit.c: Don't include errors.h.
21956 * ira.c: Include toplev.h instead of errors.h.
21957 * lto-compress.c: Include toplev.h instead of errors.h.
21958 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
21959 ira.o, dbgcnt.o): Update dependencies.
21960
21961 2010-05-22 Richard Guenther <rguenther@suse.de>
21962
21963 * gimple.c (gimple_types_compatible_p): Check type qualifications
21964 before merging pointer to complete and pointer to incomplete type.
21965 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
21966 we use our own resolution algorithm. The gold linker plugin
21967 doesn't do the job we want it to do here.
21968
21969 2010-05-22 Anatoly Sokolov <aesok@post.ru>
21970
21971 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21972 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21973 (sparc_mode_dependent_address_p): New function.
21974
21975 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
21976
21977 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
21978
21979 * timevar.c: Do not include any core headers.
21980 (timevar_print): De-i18n-ize.
21981 (print_time): Likewise.
21982 * timevar.h (timevar_push, timevar_pop): Make inline functions.
21983
21984 2010-05-21 Joseph Myers <joseph@codesourcery.com>
21985
21986 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
21987 langhooks-def.h.
21988 (diagnostic_initialize): Initialize x_data not last_function.
21989 (diagnostic_report_current_function): Move to tree-diagnostic.c.
21990 (default_diagnostic_starter): Call
21991 diagnostic_report_current_module not
21992 diagnostic_report_current_function.
21993 (diagnostic_report_diagnostic): Initialize x_data not
21994 abstract_origin.
21995 (verbatim): Likewise.
21996 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
21997 x_data.
21998 (struct diagnostic_context): Change last_function to x_data.
21999 (diagnostic_auxiliary_data): Replace with
22000 diagnostic_context_auxiliary_data and
22001 diagnostic_info_auxiliary_data.
22002 (diagnostic_last_function_changed, diagnostic_set_last_function,
22003 diagnostic_report_current_function): Move to tree-diagnostic.h.
22004 (print_declaration, dump_generic_node, print_generic_stmt,
22005 print_generic_stmt_indented, print_generic_expr,
22006 print_generic_decl, debug_c_tree, dump_omp_clauses,
22007 print_call_name, debug_generic_expr, debug_generic_stmt,
22008 debug_tree_chain, default_tree_printer): Move to
22009 tree-pretty-print.h.
22010 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
22011 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
22012 gimple-pretty-print.h.
22013 * pretty-print.c: Don't include tree.h
22014 (pp_base_format): Don't handle %K here.
22015 (pp_base_tree_identifier): Move to tree-pretty-print.c.
22016 * pretty-print.h (text_info): Change abstract_origin to x_data.
22017 (pp_tree_identifier, pp_unsupported_tree,
22018 pp_base_tree_identifier): Move to tree-pretty-print.h.
22019 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
22020 tree-pretty-print.h: New files.
22021 * tree-pretty-print.c: Include tree-pretty-print.h.
22022 (percent_K_format): New. Moved from pretty-print.c.
22023 (pp_base_tree_identifier): Move from pretty-print.c.
22024 * c-objc-common.c: Include tree-pretty-print.h.
22025 (c_tree_printer): Handle %K here.
22026 * langhooks.c: Include tree-diagnostic.h.
22027 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
22028 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
22029 (default_tree_printer): Handle %K using percent_K_format.
22030 (general_init): Use default_tree_diagnostic_starter.
22031 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
22032 (free_lang_data): Use default_tree_diagnostic_starter.
22033 * c-pretty-print.c: Include tree-pretty-print.h.
22034 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22035 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22036 * dwarf2out.c: Include tree-pretty-print.h.
22037 * except.c: Include tree-pretty-print.h.
22038 * gimple-pretty-print.c: Include tree-pretty-print.h and
22039 gimple-pretty-print.h.
22040 * gimplify.c: Include tree-pretty-print.h.
22041 * graphite-poly.c: Include tree-pretty-print.h and
22042 gimple-pretty-print.h.
22043 * ipa-cp.c: Include tree-pretty-print.h.
22044 * ipa-inline.c: Include gimple-pretty-print.h.
22045 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22046 * ipa-pure-const.c: Include gimple-pretty-print.h.
22047 * ipa-struct-reorg.c: Include tree-pretty-print.h and
22048 gimple-pretty-print.h.
22049 * ipa-type-escape.c: Include tree-pretty-print.h.
22050 * print-rtl.c: Include tree-pretty-print.h.
22051 * print-tree.c: Include gimple-pretty-print.h.
22052 * sese.c: Include tree-pretty-print.h.
22053 * tree-affine.c: Include tree-pretty-print.h.
22054 * tree-browser.c: Include tree-pretty-print.h.
22055 * tree-call-cdce.c: Include gimple-pretty-print.h.
22056 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
22057 * tree-chrec.c: Include tree-pretty-print.h.
22058 * tree-data-ref.c: Include tree-pretty-print.h and
22059 gimple-pretty-print.h.
22060 * tree-dfa.c: Include tree-pretty-print.h.
22061 * tree-if-conv.c: Include tree-pretty-print.h and
22062 gimple-pretty-print.h.
22063 * tree-inline.c: Include tree-pretty-print.h.
22064 * tree-into-ssa.c: Include tree-pretty-print.h and
22065 gimple-pretty-print.h.
22066 * tree-nrv.c: Include tree-pretty-print.h.
22067 * tree-object-size.c: Include tree-pretty-print.h and
22068 gimple-pretty-print.h.
22069 * tree-outof-ssa.c: Include tree-pretty-print.h and
22070 gimple-pretty-print.h.
22071 * tree-parloops.c: Include tree-pretty-print.h and
22072 gimple-pretty-print.h.
22073 * tree-predcom.c: Include tree-pretty-print.h and
22074 gimple-pretty-print.h.
22075 * tree-scalar-evolution.c: Include tree-pretty-print.h and
22076 gimple-pretty-print.h.
22077 * tree-sra.c: Include tree-pretty-print.h.
22078 * tree-ssa-address.c: Include tree-pretty-print.h.
22079 * tree-ssa-alias.c: Include tree-pretty-print.h.
22080 * tree-ssa-ccp.c: Include tree-pretty-print.h and
22081 gimple-pretty-print.h.
22082 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
22083 * tree-ssa-copy.c: Include tree-pretty-print.h and
22084 gimple-pretty-print.h.
22085 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
22086 * tree-ssa-dce.c: Include tree-pretty-print.h and
22087 gimple-pretty-print.h.
22088 * tree-ssa-dom.c: Include tree-pretty-print.h and
22089 gimple-pretty-print.h.
22090 * tree-ssa-dse.c: Include gimple-pretty-print.h.
22091 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
22092 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
22093 * tree-ssa-live.c: Include tree-pretty-print.h and
22094 gimple-pretty-print.h.
22095 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
22096 gimple-pretty-print.h.
22097 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
22098 gimple-pretty-print.h.
22099 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
22100 gimple-pretty-print.h.
22101 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
22102 gimple-pretty-print.h.
22103 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
22104 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
22105 * tree-ssa-operands.c: Include tree-pretty-print.h and
22106 gimple-pretty-print.h.
22107 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
22108 gimple-pretty-print.h.
22109 * tree-ssa-pre.c: Include tree-pretty-print.h and
22110 gimple-pretty-print.h.
22111 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
22112 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
22113 gimple-pretty-print.h.
22114 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
22115 gimple-pretty-print.h.
22116 * tree-ssa-sink.c: Include gimple-pretty-print.h.
22117 * tree-ssa-ter.c: Include tree-pretty-print.h and
22118 gimple-pretty-print.h.
22119 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
22120 * tree-ssa.c: Include tree-pretty-print.h and
22121 gimple-pretty-print.h.
22122 * tree-stdarg.c: Include gimple-pretty-print.h.
22123 * tree-switch-conversion.c: Include gimple-pretty-print.h.
22124 * tree-tailcall.c: Include tree-pretty-print.h and
22125 gimple-pretty-print.h.
22126 * tree-vect-data-refs.c: Include tree-pretty-print.h and
22127 gimple-pretty-print.h.
22128 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
22129 gimple-pretty-print.h.
22130 * tree-vect-loop.c: Include tree-pretty-print.h and
22131 gimple-pretty-print.h.
22132 * tree-vect-patterns.c: Include gimple-pretty-print.h.
22133 * tree-vect-slp.c: Include tree-pretty-print.h and
22134 gimple-pretty-print.h.
22135 * tree-vect-stmts.c: Include tree-pretty-print.h and
22136 gimple-pretty-print.h.
22137 * tree-vectorizer.c: Include tree-pretty-print.h.
22138 * tree-vrp.c: Include tree-pretty-print.h and
22139 gimple-pretty-print.h.
22140 * value-prof.c: Include tree-pretty-print.h and
22141 gimple-pretty-print.h.
22142 * var-tracking.c: Include tree-pretty-print.h.
22143 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
22144 (tree-diagnostic.o): New dependencies.
22145 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
22146 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
22147 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
22148 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
22149 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
22150 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
22151 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
22152 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
22153 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
22154 tree-ssa-address.o, tree-ssa-loop-niter.o,
22155 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
22156 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
22157 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
22158 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
22159 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
22160 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
22161 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
22162 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
22163 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
22164 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
22165 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
22166 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
22167 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
22168 tree-switch-conversion.o, var-tracking.o, value-prof.o,
22169 cfgexpand.o, pretty-print.o): Update dependencies.
22170
22171 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
22172
22173 * tree-ssa-structalias.c: Remove tm_p.h from include.
22174
22175 2010-05-21 Jeff Law <law@redhat.com>
22176
22177 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
22178
22179 2010-05-21 Jason Merrill <jason@redhat.com>
22180
22181 * tree-eh.c (cleanup_is_dead_in): New.
22182 (lower_try_finally): Don't generate a dead cleanup region.
22183 (lower_cleanup): Likewise.
22184
22185 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22186
22187 PR debug/44223
22188 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
22189 unchain each use from the cyclic next_regno_use chain first.
22190
22191 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22192
22193 * real: Do not include gmp.h, mpfr.h, and mpc.h.
22194 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
22195 (real_value_negate, real_value_abs): New prototypes.
22196 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
22197 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
22198 new include file for interface between MPFR and REAL_VALUE_TYPE.
22199 * real.c: Include realmpfr.h.
22200 (real_arithmetic2): Remove legacy function.
22201 (real_value_negate): New.
22202 (real_value_abs): New.
22203 (mfpr_from_real, real_from_mpfr): Move from here...
22204 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
22205 * builtins.c: Include realmpfr.h.
22206 * fold-const.c: Include realmpfr.h.
22207 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
22208 (fold_negate_const): Likewise.
22209 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
22210 * toplev.c: Include realmpfr.h.
22211 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
22212 and real_value_negate.
22213 * fixed-value.c (check_real_for_fixed_mode): Likewise.
22214 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
22215 (vfp3_const_double_index): Likewise.
22216 (arm_print_operand): Likewise.
22217 * Makefile.in: Update dependencies.
22218
22219 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22220
22221 * config/s390/s390.c (override_options): Increase the default
22222 of max-completely-peel-times.
22223
22224 2010-05-21 Julian Brown <julian@codesourcery.com>
22225 Mark Mitchell <mark@codesourcery.com>
22226
22227 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
22228 sibling calls for Thumb-1.
22229 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
22230 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
22231 Thumb-2.
22232 (*call_insn, *call_value_insn): Don't use for Thumb-2.
22233 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
22234 for Thumb-2.
22235 (return): New expander.
22236 (*arm_return): New name for ARM return insn.
22237 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
22238
22239 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
22240
22241 * config.gcc (sparc64-*-rtems*): New target.
22242
22243 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22244
22245 * tree.c (build_function_decl_skip_args): Fix grammar.
22246 (build_function_type_list_1): Fix typos, adjust formatting.
22247
22248 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
22249
22250 * tree.h: Include real.h and fixed-value.h as basic datatypes.
22251 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
22252 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
22253 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
22254 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
22255 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
22256 tree-pretty-print.c, tree-loop-distribution.c,
22257 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
22258 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
22259 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
22260 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
22261 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
22262 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
22263 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
22264 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
22265 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
22266 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
22267 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
22268 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
22269 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
22270 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
22271 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
22272 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
22273 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
22274 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
22275 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
22276 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
22277 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
22278 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
22279 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
22280 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
22281 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
22282 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
22283 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
22284 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
22285 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
22286 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
22287 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
22288 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
22289 config/score/score7.c, config/score/score.c, config/arm/arm.c,
22290 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
22291 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
22292 config/bfin/bfin.c: Clean up redundant includes.
22293 * Makefile.in: Update accordingly.
22294
22295 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
22296
22297 PR middle-end/44204
22298 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
22299 statement has no arguments.
22300
22301 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
22302
22303 PR/44139
22304 * varasm.c (emutls_decl): Merge attributes to new decl.
22305
22306 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
22307
22308 PR middle-end/44101
22309 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
22310 around the uniquized constructor if its type requires a conversion.
22311
22312 2010-05-21 Jakub Jelinek <jakub@redhat.com>
22313
22314 PR debug/44205
22315 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
22316 at -O0 goto_locus of any of the incoming edges differs from
22317 goto_locus of outgoing edge, or gimple_location of any of the
22318 labels differs.
22319
22320 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
22321
22322 * ira.c (ira_non_ordered_class_hard_regs): Define.
22323 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
22324 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
22325 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
22326 cost of unaligned hard regs when allocating multi-reg pseudos.
22327
22328 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
22329
22330 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
22331 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
22332 for TARGET_NO_FLOAT.
22333 * config/mips/mips.c (mips_file_start): Expand conditional expression
22334 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
22335 (mips_override_options): Move -mno-float override -msoft-float and
22336 -mhard-float.
22337 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
22338 Condition(TARGET_SUPPORTS_NO_FLOAT).
22339 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
22340 __mips_no_float here.
22341 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
22342 (TARGET_SUPPORTS_NO_FLOAT): Define.
22343 * config/mips/sdemtk.opt: Delete.
22344
22345 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
22346
22347 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
22348
22349 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
22350
22351 PR target/43733
22352 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
22353 * configure: Regenerate.
22354 * config.in: Regenerate.
22355 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
22356 instead of sahf only for 64bit targets.
22357
22358 2010-05-20 Jakub Jelinek <jakub@redhat.com>
22359
22360 PR debug/44178
22361 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
22362 setup_ref_regs for DEBUG_INSNs.
22363
22364 2010-05-20 Jan Hubicka <jh@suse.cz>
22365
22366 PR middle-end/44197
22367 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
22368
22369 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22370
22371 PR bootstrap/43870
22372 * df-scan.c (df_ref_compare): Stabilize sort.
22373
22374 2010-05-20 Jakub Jelinek <jakub@redhat.com>
22375
22376 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
22377 argument. Don't use DW_OP_piece if offset is non-zero,
22378 put offset into second DW_OP_bit_piece argument.
22379 (dw_sra_loc_expr): Adjust callers. For memory expressions
22380 compute offset.
22381
22382 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
22383
22384 PR target/44202
22385 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
22386 settings for 16-bit-constant "addo" alternative.
22387
22388 2010-05-19 James E. Wilson <wilson@codesourcery.com>
22389
22390 * config/mips/mips-dsp.md (add<DSPV:mode>3,
22391 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
22392
22393 PR target/43764
22394 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
22395 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
22396 Use it.
22397
22398 2010-05-19 Joseph Myers <joseph@codesourcery.com>
22399
22400 * diagnostic.c (FLOAT, FFS): Don't undefine.
22401 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
22402 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
22403 include ordering.
22404
22405 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
22406
22407 * combine.c (propagate_for_debug): Call make_compound_operation
22408 on the source value.
22409 (try_combine): When implementing a split chosen by find_split_point,
22410 either copy i2src or set it to null. Assert that i2src is not null
22411 before substituting into CALL_INSN_FUNCTION_USAGE.
22412
22413 2010-05-19 Anatoly Sokolov <aesok@post.ru>
22414
22415 * double-int.h (double_int_ior): New function.
22416 * tree.h (build_int_cst_wide_type): Remove.
22417 * tree.c (build_int_cst_wide_type): Remove.
22418 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
22419 of build_int_cst_wide_type.
22420 * stor-layout.c (set_sizetype): (Ditto.).
22421 * dojump.c (do_jump): Use build_int_cstu instead of
22422 build_int_cst_wide_type.
22423
22424 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
22425
22426 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
22427 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
22428 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
22429 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
22430 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
22431 propagate the 'data' argument to copy_tree_r.
22432 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
22433 Propagate 'data' argument to walk_tree.
22434 (copy_if_shared): New function.
22435 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
22436 (unmark_visited): New function.
22437 (unshare_body): Call copy_if_shared instead of doing it manually.
22438 (unvisit_body): Call unmark_visited instead of doing it manually.
22439
22440 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
22441
22442 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
22443 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
22444 * hooks.c: Likewise.
22445 * target-def.h (TARGET_FOLD_BUILTIN): Define to
22446 hook_tree_tree_int_treep_bool_null.
22447 * target.h (struct gcc_target): Update signature of fold_builtin
22448 field.
22449 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
22450 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
22451 instead of the call expression.
22452 (fold_builtin_call_array): Pass n and argarray directly.
22453 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
22454 consing a list.
22455 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
22456 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
22457 `i' and use it in place of `arity'.
22458 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
22459 Dereference `args' directly.
22460 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
22461
22462 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22463
22464 * doc/sourcebuild.texi (Effective-Target Keywords): Document
22465 3dnow, sse3, sse2.
22466 (Directives): Document optional dg-require-effective-target
22467 selector.
22468
22469 2010-05-19 Richard Guenther <rguenther@suse.de>
22470
22471 PR lto/44196
22472 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
22473
22474 2010-05-19 Richard Guenther <rguenther@suse.de>
22475
22476 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
22477 * common.opt (fwhopr=): New.
22478 * opts.c (common_handle_option): Handle OPT_fwhopr.
22479 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
22480 * collect2.c (main): Match -fwhopr*.
22481 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
22482 Execute ltrans stage in parallel when jobs is bigger than 1.
22483
22484 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22485
22486 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
22487 pentiumpro on Solaris 8/x86 with Sun as.
22488 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
22489 hidden alias bug.
22490 (gcc_cv_as_ix86_quad): Check for .quad directive.
22491 * configure: Regenerate.
22492 * config.in: Regenerate.
22493 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
22494
22495 2010-05-19 Martin Jambor <mjambor@suse.cz>
22496
22497 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
22498 also for indirect edges. Actual printing moved...
22499 (ipa_print_node_jump_functions_for_edge): ...here.
22500 (ipa_compute_jump_functions): Renamed to
22501 ipa_compute_jump_functions_for_edge and made static.
22502 (ipa_compute_jump_functions): New function.
22503 (make_edge_direct_to_target): Check if the number of arguments on
22504 the newly direct edge is the same as the number of parametrs of
22505 the callee.
22506 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
22507 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
22508 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
22509 analysis functions unconditionally, call the new
22510 ipa_analyze_params_uses on the node instead of every edge.
22511
22512 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
22513
22514 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
22515 to tree.
22516 (dump_mem_ref): Adopt debug code to handle a tree as step. This
22517 also checks for a constant int vs. non-constant but
22518 loop-invariant steps.
22519 (find_or_create_group): Change the sort algorithm to only consider
22520 steps that are constant ints.
22521 (idx_analyze_ref): Adopt code to handle a tree instead of a
22522 HOST_WIDE_INT for step.
22523 (gather_memory_references_ref): Handle tree instead of int and be
22524 prepared to see a NULL_TREE.
22525 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
22526 prefetches if the step cannot be calculated at compile time.
22527 (issue_prefetch_ref): Issue prefetches for non-constant but
22528 loop-invariant steps.
22529
22530 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
22531
22532 Revert:
22533 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
22534
22535 * tree.h (build_call_list): Remove.
22536 * tree.c (build_call_list): Remove.
22537
22538 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
22539
22540 * tree.h (build_call_list): Remove.
22541 * tree.c (build_call_list): Remove.
22542
22543 2010-05-18 Jan Hubicka <jh@suse.cz>
22544
22545 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
22546
22547 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
22548
22549 PR rtl-optimization/43332
22550 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
22551
22552 2010-05-18 Anatoly Sokolov <aesok@post.ru>
22553
22554 * tree.h (build_int_cstu): Implement as static inline.
22555 * tree.c (build_int_cstu): Remove function.
22556 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
22557 sign extended.
22558
22559 2010-05-18 Richard Guenther <rguenther@suse.de>
22560
22561 PR lto/44143
22562 * lto-wrapper.c (verbose): New variable. Initialize from -v.
22563 (debug): Initialize from -save-temps.
22564 (collect_execute): Print command-line when verbose.
22565 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
22566 for ltrans invocation. Produce -dumpbase flag again.
22567 (process_args): Remove.
22568 (main): Simplify.
22569 * collect2.c (maybe_run_lto_and_relink): Only pass object
22570 files to lto-wrapper.
22571 * gcc.c (LINK_COMMAND_SPEC): Likewise.
22572
22573 2010-05-18 Jan Hubicka <jh@suse.cz>
22574
22575 * opts.c (decode_options): Do not disable whopr at ipa_cp.
22576 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
22577
22578 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
22579
22580 PR lto/44184
22581 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
22582 in a GIMPLE_ASM.
22583 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
22584 in a GIMPLE_ASM.
22585
22586 2010-05-18 Jakub Jelinek <jakub@redhat.com>
22587
22588 PR debug/41371
22589 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
22590 rtx_equal_p inline.
22591
22592 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
22593
22594 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
22595 lto-macho as lto_binary_reader.
22596
22597 * darwin.c (darwin_asm_named_section): Do not add assembler comment
22598 after .section directive; just print it before the directive instead.
22599
22600 2010-05-17 Jan Hubicka <jh@suse.cz>
22601
22602 * cgraph.c (cgraph_create_virtual_clone): Only check
22603 versionable_function_p when not in wpa and checking is enabled.
22604 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
22605 there are no more functions to materialize.
22606
22607 2010-05-17 Jan Hubicka <jh@suse.cz>
22608
22609 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
22610 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
22611 New functions.
22612 (output_cgraph): Call output_cgraph_opt_summary.
22613 (input_cgrpah): Call input_cgraph_opt_summary.
22614 (output_cgraph_opt_summary_p, output_node_opt_summary,
22615 input_node_opt_summary, input_cgraph_opt_section): New functions.
22616 * lto-section-in.c (lto_section_name): Add cgraphopt.
22617 * tree-inline.c (tree_function_versioning): Handle parm_num.
22618 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
22619 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
22620
22621 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
22622
22623 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
22624 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
22625 the insn to prefetch ratio heuristic to loops with known trip count.
22626
22627 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
22628
22629 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
22630 (schedule_prefetches): Do not generate a prefetch if the unroll factor
22631 is far from what is required by the prefetch.
22632
22633 2010-05-17 Jan Hubicka <jh@suse.cz>
22634
22635 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
22636 (ipcp_estimate_growth): Likewise.
22637 (ipcp_const_param_count): Likewise.
22638 (ipcp_insert_stage): Likewise.
22639 * ipa-prop.c (visit_load_for_mod_analysis): New function.
22640 (visit_store_addr_for_mod_analysis): Set used flag.
22641 (ipa_detect_param_modifications): Set used flag for SSE params;
22642 update use of walk_stmt_load_store_addr_ops.
22643 (ipa_print_node_params): Print used flag.
22644 (ipa_write_node_info): Stream used flag.
22645 (ipa_read_node_info): Likewise.
22646 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
22647 (ipa_is_param_used): New function.
22648 (lto_ipa_fixup_call_notes): Remove unused declaration.
22649
22650 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22651
22652 PR target/44074
22653 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
22654 * configure: Regenerate.
22655 * config.in: Regenerate.
22656 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
22657 !HAVE_AS_IX86_REP_LOCK_PREFIX.
22658 Don't emit whitespace.
22659 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
22660 (*rep_movsi): Likewise.
22661 (*rep_movsi_rex64): Likewise.
22662 (*rep_movqi): Likewise.
22663 (*rep_movqi_rex64): Likewise.
22664 (*rep_stosdi_rex64): Likewise.
22665 (*rep_stossi): Likewise.
22666 (*rep_stossi_rex64): Likewise.
22667 (*rep_stosqi): Likewise.
22668 (*rep_stosqi_rex64): Likewise.
22669 (*cmpstrnqi_nz_1): Use {%;} after repz.
22670 (*cmpstrnqi_nz_rex_1): Likewise.
22671 (*cmpstrnqi_1): Likewise.
22672 (*cmpstrnqi_rex_1): Likewise.
22673 (*strlenqi_1): Use {%;} after repnz.
22674 (*strlenqi_rex_1): Likewise.
22675 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
22676 (*sync_compare_and_swap<mode>): Likewise.
22677 (sync_double_compare_and_swap<mode>): Likewise.
22678 (*sync_double_compare_and_swapdi_pic): Likewise.
22679 (sync_old_add<mode>): Likewise.
22680 (sync_add<mode>): Likewise.
22681 (sync_sub<mode>): Likewise.
22682 (sync_<code><mode>): Likewise.
22683
22684 2010-05-17 Martin Jambor <mjambor@suse.cz>
22685
22686 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
22687 otr_token and polymorphic.
22688 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
22689 (cgraph_clone_edge): Copy the above fields.
22690 * tree.c (get_binfo_at_offset): New function.
22691 * tree.h (get_binfo_at_offset): Declare.
22692 * ipa-prop.h (enum jump_func_type): Added known_type jump function
22693 type, reordered items, updated comments.
22694 (union jump_func_value): Added base_type field, reordered fields.
22695 (enum ipa_lattice_type): Moved down in the file.
22696 (struct ipa_param_descriptor): New field polymorphic.
22697 (ipa_is_param_polymorphic): New function.
22698 * ipa-prop.c: Include gimple.h and gimple-fold.h.
22699 (ipa_print_node_jump_functions): Print known type jump functions.
22700 (compute_complex_pass_through): Renamed to...
22701 (compute_complex_assign_jump_func): this.
22702 (compute_complex_ancestor_jump_func): New function.
22703 (compute_known_type_jump_func): Likewise.
22704 (compute_scalar_jump_functions): Create known type and complex ancestor
22705 jump functions.
22706 (ipa_note_param_call): New parameter polymorphic, set the corresponding
22707 flag in the call note accordingly.
22708 (ipa_analyze_call_uses): Renamed to...
22709 (ipa_analyze_indirect_call_uses): this. New parameter target, define
22710 variable var only in the block where it is used.
22711 (ipa_analyze_virtual_call_uses): New function.
22712 (ipa_analyze_call_uses): Likewise.
22713 (combine_known_type_and_ancestor_jfs): Likewise.
22714 (update_jump_functions_after_inlining): Implemented handling of a
22715 number of new jump function types combination.
22716 (print_edge_addition_message): Removed.
22717 (make_edge_direct_to_target): New function.
22718 (try_make_edge_direct_simple_call): Likewise.
22719 (try_make_edge_direct_virtual_call): Likewise.
22720 (update_call_notes_after_inlining): Renamed to...
22721 (update_indirect_edges_after_inlining): this. Moved edge creation for
22722 indirect calls to try_make_edge_direct_simple_call, also calls
22723 try_make_edge_direct_virtual_call for virtual calls.
22724 (ipa_print_node_params): Changed the header message.
22725 (ipa_write_jump_function): Stream also known type jump functions.
22726 (ipa_read_jump_function): Likewise.
22727 (ipa_write_indirect_edge_info): Stream new fields in
22728 cgraph_indirect_call_info.
22729 (ipa_read_indirect_edge_info): Likewise.
22730 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
22731 GIMPLE_FOLD_H.
22732
22733 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22734
22735 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
22736
22737 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
22738
22739 * tree.h (CALL_EXPR_ARGS): Delete.
22740 (call_expr_arglist): Delete.
22741 * tree.c (call_expr_arglist): Delete.
22742 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
22743 targetm.fold_builtin.
22744 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
22745 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
22746 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
22747 arglist parameter. Use CALL_EXPR_ARG.
22748 (picochip_expand_builtin_3op): Likewise.
22749 (picochip_expand_builtin_2opvoid): Likewise.
22750 (picochip_expand_array_get): Likewise.
22751 (picochip_expand_array_put): Likewise.
22752 (picochip_expand_array_testport): Likewise.
22753 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
22754 rather than arglist.
22755 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
22756 CALL_EXPR_ARGS.
22757 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
22758 than TREE_VALUE and TREE_CHAIN.
22759 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
22760 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
22761 the arglist.
22762
22763 2010-05-17 Jakub Jelinek <jakub@redhat.com>
22764
22765 PR bootstrap/42347
22766 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
22767 to have no fallthru edge.
22768
22769 PR middle-end/44102
22770 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
22771 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
22772 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
22773 add BARRIER after previous bb if needed.
22774
22775 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
22776
22777 * tree.c (build_function_type_list_1): Remove bogus assert condition.
22778
22779 2010-05-17 Alan Modra <amodra@gmail.com>
22780
22781 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
22782 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
22783 with copy_reg rtx param.
22784 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
22785 Correct cases where code for ABI_V4 did not initialise the reg
22786 used to access frame. Also leave frame_reg_rtx as sp for large
22787 frames that save no regs.
22788
22789 2010-05-17 Martin Jambor <mjambor@suse.cz>
22790
22791 PR middle-end/44133
22792 * tree-sra.c (create_access_replacement): New parameter rename, mark
22793 the replaement for renaming only when it is true.
22794 (get_access_replacement): Pass true in the rename parameter of
22795 create_access_replacement.
22796 (get_unrenamed_access_replacement): New function.
22797 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
22798 replacement declaration from it.
22799
22800 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
22801
22802 * function.c (try_fit_stack_local, add_frame_space): New static
22803 functions.
22804 (assign_stack_local_1): Use them. Look for opportunities to use
22805 space previously wasted on alignment.
22806 * function.h (struct frame_space): New.
22807 (struct rtl_data): Add FRAME_SPACE_LIST member.
22808 * reload1.c (something_was_spilled): New static variable.
22809 (alter_reg): Set it.
22810 (reload): Test it in addition to testing if the frame size changed.
22811
22812 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
22813
22814 * config/s390/s390.c: Define sane prefetch settings and activate
22815 flag_prefetch_loop_arrays on -O3.
22816 * config/s390/s390.h: Declare that read can use write prefetch.
22817
22818 2010-05-17 Jakub Jelinek <jakub@redhat.com>
22819
22820 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
22821 build.
22822
22823 2010-05-16 Jan Hubicka <jh@suse.cz>
22824
22825 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
22826 function body; do not check stdarg field of struct function.
22827
22828 2010-05-16 Jan Hubicka <jh@suse.cz>
22829
22830 * cgraph.c (dump_cgraph_node): Dump versionable flag.
22831 * cgraph.h (cgraph_local_info): Add versionable flag.
22832 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
22833 (ipcp_versionable_function_p): Use it.
22834 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
22835 versionable flag.
22836
22837 2010-05-16 Jan Hubicka <jh@suse.cz>
22838
22839 * cgraph.c (cgraph_clone_node): Take decl argument and insert
22840 clone into hash when it is different from orig.
22841 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
22842 * cgraph.h (cgraph_clone_node): Update prototype.
22843 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
22844 (lto_cgraph_encoder_delete): Delete body map.
22845 (lto_cgraph_encoder_size): Move to header.
22846 (lto_cgraph_encoder_encode_body_p,
22847 lto_set_cgraph_encoder_encode_body): New.
22848 (lto_output_node): Do not take written_decls argument; output clone_of
22849 pointer.
22850 (add_node_to): Add include_body_argument; call
22851 lto_set_cgraph_encoder_encode_body on master of the clone.
22852 (add_references): Update use of add_node_to.
22853 (compute_ltrans_boundary): Likewise.
22854 (output_cgraph): Do not create written_decls bitmap.
22855 (input_node): Take nodes argument; stream in clone_of correctly.
22856 (input_cgraph_1): Update use of input_node.
22857 * lto-streamer-out.c (lto_output): Use encoder info to decide
22858 what bodies to output.
22859 * ipa-inline.c (cgraph_clone_inlined_nodes,
22860 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
22861 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
22862 (lto_cgraph_encoder_size): Define here.
22863 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
22864 Declare.
22865
22866 2010-05-16 Richard Guenther <rguenther@suse.de>
22867
22868 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
22869 -fipa-type-escape.
22870 * ipa-type-escape.c (gate_type_escape_vars): Run when
22871 -fipa-struct-reorg runs.
22872 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
22873 * common.opt (fipa-type-escape): Remove.
22874
22875 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
22876
22877 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
22878 (decode_options): Likewise.
22879 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
22880
22881 2010-05-16 Jan Hubicka <jh@suse.cz>
22882
22883 * ipa.c (function_and_variable_visibility): Also bring local all
22884 aliases.
22885
22886 2010-05-16 Richard Guenther <rguenther@suse.de>
22887
22888 * alias.c (nonoverlapping_memrefs_p): Remove use of
22889 IPA type-escape information.
22890
22891 2010-05-16 Joseph Myers <joseph@codesourcery.com>
22892
22893 * c-common.c (c_common_reswords): Add _Static_assert for C.
22894 * c-parser.c (c_token_starts_declaration,
22895 c_parser_next_token_starts_declaration,
22896 c_parser_static_assert_declaration_no_semi,
22897 c_parser_static_assert_declaration): New.
22898 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
22899 Handle static assertions if static_assert_ok.
22900 (c_parser_external_declaration, c_parser_declaration_or_fndef,
22901 c_parser_compound_statement_nostart, c_parser_label,
22902 c_parser_for_statement, c_parser_objc_methodprotolist,
22903 c_parser_omp_for_loop): All callers of
22904 c_parser_declaration_or_fndef changed.
22905 (c_parser_struct_declaration): Handle static assertions.
22906 (c_parser_compound_statement_nostart): Use
22907 c_parser_next_token_starts_declaration and
22908 c_token_starts_declaration to detect start of declarations.
22909 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
22910 Likewise.
22911
22912 2010-05-16 Anatoly Sokolov <aesok@post.ru>
22913
22914 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22915 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22916 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22917 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22918 (mmix_function_outgoing_value): Rename to...
22919 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
22920 (mmix_function_value_regno_p): Make static.
22921 (mmix_libcall_value): New function.
22922 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
22923 mmix_function_value_regno_p): Remove declaration.
22924
22925 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
22926
22927 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
22928 BUILT_IN_ALLOCA if stack checking is enabled.
22929
22930 2010-05-16 Richard Guenther <rguenther@suse.de>
22931
22932 * var-tracking.c (vars_copy_1): Inline ...
22933 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
22934 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
22935 (variable_merge_over_cur): Adjust. Merge asserts.
22936 (variable_merge_over_src): Likewise.
22937 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
22938 (variable_post_merge_new_vals): Merge asserts.
22939 (variable_post_merge_perm_vals): Likewise.
22940 (find_mem_expr_in_1pdv): Likewise.
22941 (dataflow_set_different_value): Remove.
22942 (onepart_variable_different_p): Merge asserts.
22943 (variable_different_p): Likewise.
22944 (dataflow_set_different_1): Inline ...
22945 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
22946 (emit_notes_for_differences_1): Merge asserts.
22947
22948 2010-05-16 Richard Guenther <rguenther@suse.de>
22949
22950 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
22951 * optabs.c (libfunc_decl_hash): Likewise.
22952 * varasm.c (emutls_decl): Likewise.
22953
22954 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
22955
22956 * c-decl.c: Don't include gimple.h.
22957 (merge_decls): Do not copy gimple_body.
22958
22959 2010-05-15 Jason Merrill <jason@redhat.com>
22960
22961 * c.opt: Add -fnothrow-opt.
22962
22963 2010-05-15 Jan Hubicka <jh@suse.cz>
22964
22965 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
22966 analyzed.
22967 * passes.c (ipa_write_summaries): Write all analyzed nodes.
22968
22969 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
22970
22971 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
22972 * Makefile.in: Add it.
22973 Fix all other Makefile dependencies for changes below.
22974 * tree.h: Include it instead of defining VEC primitives here.
22975 * gimple.h: Likewise.
22976 * rtl.h: Likewise.
22977 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
22978 * except.h: Include vecir.h, break dependence on tree.h.
22979
22980 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
22981 Move from here...
22982 * tree-iterator.c: ...to here.
22983 * tree-iterator.h: Fix file introduction comment. Add extern markers.
22984
22985 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
22986 tm_p.h.
22987 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
22988 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
22989 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
22990 tree-mudflap.h, and target.h.
22991 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
22992 predict.h, tree-inline.h, gimple.h, and langhooks.h.
22993 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
22994 Add FIXME for why gimple.h is still included (should be unnecessary
22995 since GCC 4.5 gimplification unit-at-a-time).
22996 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
22997 * c-pragma.c: Add FIXME for why function.h needs to be included just
22998 for cfun, at front-end level.
22999 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
23000 Do not include ggc.h, but include vecprim.h for VEC(char).
23001 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
23002 Explain why target.h is included.
23003 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
23004 Explain why gimple.h is included.
23005 * c-ppoutput.c: Do not include tm.h.
23006 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
23007 * c-parses.c: Explain why rtl.h is included, and that this (and only
23008 this) is also why tm.h must be included.
23009 Do not include except.h.
23010 * c-lang.c: Do not include ggc.h.
23011
23012 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
23013
23014 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
23015
23016 2010-05-15 Joseph Myers <joseph@codesourcery.com>
23017
23018 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
23019 unions by default if those structs and unions have no tags. Do
23020 not condition anonymous struct and unions handling on flag_iso.
23021 Allow anonymous structs and unions for C1X.
23022 (finish_struct): Do not diagnose lack of named fields when
23023 anonymous structs and unions present for C1X. Accept flexible
23024 array members in structure with anonymous structs or unions but no
23025 directly named fields.
23026 * doc/extend.texi (Unnamed Fields): Update.
23027
23028 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
23029
23030 * gimple.h (compare_field_offset): Rename into...
23031 (gimple_compare_field_offset): ...this.
23032 * gimple.c (compare_field_offset): Rename into...
23033 (gimple_compare_field_offset): ...this. Compare the full access if
23034 the offset is self-referential.
23035 (gimple_types_compatible_p): Adjust for above renaming.
23036 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
23037 DECL_NONADDRESSABLE_P flag of fields before merging them.
23038
23039 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
23040
23041 * tree.h (ctor_to_list): Delete.
23042 * tree.c (ctor_to_list): Delete.
23043
23044 2010-05-15 Jan Hubicka <jh@suse.cz>
23045
23046 * ipa-reference.c: Include toplev.h
23047 (is_proper_for_analysis): Only add to all_module_statics
23048 if it is allocated.
23049 (write_node_summary_p, stream_out_bitmap,
23050 ipa_reference_write_optimization_summary,
23051 ipa_reference_read_optimization_summary): New.
23052 (struct ipa_opt_pass_d pass_ipa_reference): Add
23053 optimization summary streaming.
23054 * lto-cgraph.c (referenced_from_this_partition_p,
23055 reachable_from_this_partition_p): New functions.
23056 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
23057 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
23058 * opts.c (decode_options): Enable ipa_reference.
23059 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
23060 * lto-streamer.h (referenced_from_this_partition_p,
23061 reachable_from_this_partition_p): Declare.
23062
23063 2010-05-15 Richard Guenther <rguenther@suse.de>
23064
23065 PR tree-optimization/44038
23066 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
23067 taking the address of a V_C_E of a constant.
23068
23069 2010-05-14 Jan Hubicka <jh@suse.cz>
23070
23071 * tree.h (memory_identifier_string): Remove.
23072 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
23073 (ipa_reference_global_vars_info_d): Remove statics_not_read and
23074 statics_not_written.
23075 (ipa_reference_optimization_summary_d): New structure.
23076 (ipa_reference_optimization_summary_t): New type and vector.
23077 (ipa_reference_vars_info_d): Embedd structures instead of using
23078 pointers.
23079 (reference_vars_to_consider): Remove out of GGC space.
23080 (module_statics_escape): Remove.
23081 (global_info_obstack): Rename to ...
23082 (optimization_summary_obstack): ... this one.
23083 (initialization_status_t): Remove.
23084 (memory_identifier_string): Remove.
23085 (get_reference_vars_info): Fix indenting.
23086 (set_reference_vars_info): Likewise.
23087 (get_reference_optimization_summary): New.
23088 (set_reference_optimization_summary): New.
23089 (get_global_reference_vars_info): Remove.
23090 (ipa_reference_get_read_global): Remove.
23091 (ipa_reference_get_written_global): Remove.
23092 (ipa_reference_get_not_read_global): Update.
23093 (ipa_reference_get_not_written_global): Update.
23094 (is_proper_for_analysis): Outlaw addressable.
23095 (propagate_bits): Update for new datastructures.
23096 (analyze_variable): Remove.
23097 (init_function_info): Update for new datastructures.
23098 (clean_function_local_data): Remove.
23099 (clean_function): Remove.
23100 (copy_global_bitmap): Use optimizations_summary_obstack.
23101 (duplicate_node_data): Duplicate optimization summary only.
23102 (remove_node_data): Remove optimization summary only.
23103 (generate_summary): Do not analyze variables; do not compute
23104 module_statics_escape; do not prune solutions by it.
23105 (read_write_all_from_decl): Fix typos in comments.
23106 (propagate): Doscover readonly and nonaddressable first;
23107 update for new datastructures; share global bitmaps.
23108 * ipa-reference.h (ipa_reference_get_read_global,
23109 ipa_reference_get_written_global): Remove.
23110 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
23111 * Makefile.in: Remove ipa-refereference from GT files.
23112
23113 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23114
23115 PR debug/44112
23116 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
23117 for all SYMBOL_REF_DECLs.
23118
23119 2010-05-14 Jan Hubicka <jh@suse.cz>
23120
23121 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
23122 (varpool_all_refs_explicit_p): New inline function.
23123 * ipa-reference.c: Update comment.
23124 (module_statics_written): Remove.
23125 (get_static_decl): Remove.
23126 (ipa_init): Do not initialize module_statics_written.
23127 (analyze_function): Likewise.
23128 (generate_summary): Likewise; do not compute module_statics_readonly
23129 and do not update variable flags.
23130 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
23131 * ipa.c: Inlucde flags.h
23132 (cgraph_local_node_p): New.
23133 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
23134 promote functions to local.
23135 (ipa_discover_readonly_nonaddressable_vars): New function.
23136 (function_and_variable_visibility): Use cgraph_local_node_p.
23137 * varpool.c (varpool_finalize_decl): Set force_output for
23138 DECL_PRESERVE_P vars.
23139
23140 2010-05-14 Jan Hubicka <jh@suse.cz>
23141
23142 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
23143
23144 2010-05-14 Richard Guenther <rguenther@suse.de>
23145
23146 PR tree-optimization/44119
23147 * tree-ssa-pre.c (eliminate): Properly mark replacement of
23148 a PHI node necessary.
23149
23150 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
23151
23152 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
23153
23154 2010-05-14 Jason Merrill <jason@redhat.com>
23155
23156 PR c++/44127
23157 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
23158 (gimple_call_set_nothrow): New.
23159 * gimple.c (gimple_build_call_from_tree): Call it.
23160 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
23161
23162 PR c++/44127
23163 * gimplify.c (gimplify_seq_add_stmt): No longer static.
23164 * gimple.h: Declare it.
23165 * gimple.c (gimple_build_eh_filter): No ops.
23166
23167 2010-05-14 Jan Hubicka <jh@suse.cz>
23168
23169 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
23170 nodes already in queue.
23171 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
23172 re-enqueueing node.
23173
23174 2010-05-14 Jakub Jelinek <jakub@redhat.com>
23175
23176 PR debug/44136
23177 * cfgexpand.c (expand_debug_expr): If non-memory op0
23178 has BLKmode, return NULL.
23179
23180 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
23181
23182 * config.gcc: Add support for --with-cpu option for bdver1.
23183 * config/i386/i386.h (TARGET_BDVER1): New macro.
23184 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
23185 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23186 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
23187 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
23188 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
23189 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
23190 (processor_type): Add PROCESSOR_BDVER1.
23191 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
23192 processor_type in config/i386/i386.h.
23193 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
23194 movaps <reg, reg> instead of movapd <reg, reg> when replacing
23195 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
23196 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
23197 to emit packed xor instead of packed double/packed integer
23198 xor for SSE and AVX when moving a zero value.
23199 * config/i386/sse.md: Add check for
23200 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
23201 movapd/movdqa for SSE and AVX.
23202 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
23203 single logical operations i.e and, or and xor instead of packed double
23204 logical operations for SSE and AVX.
23205 * config/i386/i386-c.c (ix86_target_macros_internal):
23206 Add PROCESSOR_BDVER1.
23207 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
23208 (has_fma4, has_xop): New.
23209 * config/i386/i386.c (bdver1_cost): New variable.
23210 (m_BDVER1): New macro.
23211 (m_AMD_MULTIPLE): Add m_BDVER1.
23212 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
23213 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
23214 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
23215 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
23216 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
23217 x86_tune_sse_partial_reg_dependency,
23218 x86_tune_sse_unaligned_load_optimal,
23219 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
23220 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
23221 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
23222 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
23223 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
23224 Enable/disable for bdver1.
23225 (processor_target_table): Add bdver1_cost.
23226 (cpu_names): Add bdver1.
23227 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
23228 processor_alias_table.
23229 (ix86_expand_vector_move_misalign): Change.
23230 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
23231 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
23232 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
23233 of movupd/movdqu for SSE and AVX.
23234 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
23235 (ix86_tune_adjust_cost): Add code for bdver1.
23236 (standard_sse_constant_opcode): Add check for
23237 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
23238 of packed double xor for SSE and AVX.
23239
23240 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
23241
23242 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
23243 result to unsigned.
23244
23245 2010-05-14 Tristan Gingold <gingold@adacore.com>
23246
23247 * toplev.c (default_debug_hooks): Remove this variable.
23248 (process_options): Remove assignments to default_debug_hooks.
23249
23250 2010-05-14 Martin Jambor <mjambor@suse.cz>
23251
23252 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
23253 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
23254 * langhooks.h (struct lang_hooks_for_decls): Removed field
23255 fold_obj_type_ref.
23256 * tree.c (free_lang_data): Remove assignment to
23257 lang_hooks.fold_obj_type_ref.
23258 * tree.def (OBJ_TYPE_REF): Update comment.
23259
23260 2010-05-14 Richard Guenther <rguenther@suse.de>
23261
23262 PR tree-optimization/44124
23263 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
23264
23265 2010-05-14 Alan Modra <amodra@gmail.com>
23266
23267 PR target/44075
23268 * config/rs6000/rs6000.c (struct machine_function): Reorder
23269 fields for better packing. Add lr_save_state.
23270 (rs6000_ra_ever_killed): Return lr_save_state if set.
23271 (rs6000_emit_eh_reg_restore): Set lr_save_state.
23272
23273 2010-05-13 Jan Hubicka <jh@suse.cz>
23274
23275 * varpool.c (decide_is_variable_needed): Drop code checking
23276 TREE_SYMBOL_REFERENCED.
23277
23278 2010-05-13 Jan Hubicka <jh@suse.cz>
23279
23280 * final.c (output_addr_const): Do not call mark_decl_referenced.
23281 * cgraphunit.c (process_function_and_variable_attributes): Use
23282 mark_needed_node dirrectly.
23283 (assemble_thunk): Do not call mark_decl_referenced.
23284
23285 2010-05-13 Anatoly Sokolov <aesok@post.ru>
23286
23287 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
23288
23289 2010-05-13 Jeff Law <law@redhat.com>
23290
23291 * ira-conflicts.c (print_allocno_conflicts): New function broken out
23292 from...
23293 (print_conflicts): Call print_allocno_conflicts.
23294
23295 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23296
23297 PR debug/44104
23298 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
23299 if it is NULL.
23300
23301 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
23302
23303 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
23304 t-mingw-w64 or t-mingw-w32 for multilib configuration.
23305 * config/i386/t-mingw-w32: New.
23306 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
23307
23308 2010-05-13 Martin Jambor <mjambor@suse.cz>
23309
23310 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
23311 gimple-fold.c).
23312 * gimple-fold.c (get_base_binfo_for_type): New function.
23313 (gimple_get_relevant_ref_binfo): Likewise.
23314 (gimple_fold_obj_type_ref_known_binfo): Likewise.
23315 (gimple_fold_obj_type_ref): Likewise.
23316 (fold_gimple_call): Simplify condition for folding virtual calls
23317 and call gimple_fold_obj_type_ref.
23318 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
23319 (gimple_fold_obj_type_ref_known_binfo): Likewise.
23320
23321 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
23322
23323 * config/rs6000/rs6000-protos.h
23324 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
23325 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
23326 (rs6000_debug_mode_dependent_address)
23327 (rs6000_mode_dependent_address_ptr): Likewise.
23328
23329 2010-05-13 Jakub Jelinek <jakub@redhat.com>
23330
23331 PR debug/43983
23332 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
23333 by SRA.
23334 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
23335 * tree-sra.c (create_access_replacement): Call unshare_expr before
23336 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
23337 * dwarf2out.c: Include tree-flow.h.
23338 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
23339 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
23340 Handle DW_OP_bit_piece.
23341 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
23342 construct_piece_list, adjust_piece_list): New functions.
23343 (add_var_loc_to_decl): Handle SRA optimized variables.
23344 Adjust for var_loc_note to loc field renaming.
23345 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
23346 in VAR_LOCATION note.
23347 (new_loc_descr_op_bit_piece): New function.
23348 (dw_sra_loc_expr): New function.
23349 (dw_loc_list): Use it. Don't handle the last range after the
23350 loop, handle it inside of the loop. Adjust for var_loc_note
23351 to loc field renaming.
23352 (add_location_or_const_value_attribute): Only special case
23353 single entry loc lists if loc is NOTE_P. Adjust for
23354 var_loc_note to loc field renaming.
23355 (dwarf2out_var_location): Don't set newloc->var_loc_note
23356 and newloc->next here.
23357
23358 2010-05-12 Jan Hubicka <jh@suse.cz>
23359
23360 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
23361 flag.
23362 * cgraph.h (cgraph_only_called_directly_p,
23363 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
23364 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
23365 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
23366 (assemble
23367 * ipa.c (cgraph_remove_unreachable_nodes): Use
23368 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
23369 flags.
23370 * tree-inline.c (copy_bb): Check address_taken flag.
23371 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
23372 externally_visible flag.
23373
23374 2010-05-12 Jason Merrill <jason@redhat.com>
23375
23376 PR bootstrap/44048
23377 PR target/44099
23378 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
23379 * sdbout.c (plain_type_1): Likewise.
23380 * dwarf2out.c (is_base_type): Likewise.
23381 (gen_type_die_with_usage): Likewise. Generate
23382 DW_TAG_unspecified_type for any LANG_TYPE.
23383
23384 2010-05-12 Jan Hubicka <jh@suse.cz>
23385
23386 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
23387 indrect edges too.
23388 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
23389 (cgraph_clone_edge): Update.
23390 (cgraph_node_remove_callees): Remove indirect calls too.
23391 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
23392 (cgraph_create_indirect_edge): Update prototype.
23393 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
23394 is_proper_for_analysis.
23395 (add_new_function, visited_nodes, function_insertion_hook_holder,
23396 get_local_reference_vars_info, mark_address_taken, mark_address,
23397 mark_load, mark_store, check_asm_memory_clobber, check_call,
23398 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
23399 (ipa_init): Do not initialize visited_nodes;
23400 function_insertion_hook_holder.
23401 (analyze_variable): Rewrite.
23402 (analyze_function): Rewrite.
23403 (copy_local_bitmap): Remove.
23404 (duplicate_node_dat): Do not duplicate local info.
23405 (generate_summary): Simplify to only walk cgraph.
23406 (write_node_summary_p, ipa_reference_write_summary,
23407 ipa_reference_read_summary): Remove.
23408 (propagate): Do not remove function insertion;
23409 generate summary.
23410 (pass_ipa_reference): NULLify summary handling fields.
23411 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
23412 (input_edge): Input ecf_flags.
23413 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
23414 (update_indirect_edges_after_inlining): Ignore edges with unknown
23415 param.
23416
23417 2010-05-12 Sriraman Tallam <tmsriram@google.com>
23418
23419 * implicit-zee.c: New file.
23420 * tree-pass.h (pass_implicit_zee): Declare.
23421 * passes.c (init_optimization_passes): Add zee pass.
23422 * common.opt (fzee): New flag.
23423 * timevar.def (TV_ZEE): Define.
23424 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
23425 and beyond.
23426 * Makefile.in (implicit-zee.o): Add new build file.
23427
23428 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
23429 Nathan Froyd <froydnj@codesourcery.com>
23430
23431 * c-common.c (sync_resolve_params): Remove write-only variable.
23432
23433 2010-05-12 Anatoly Sokolov <aesok@post.ru>
23434
23435 * target.h (struct gcc_target): Add mode_dependent_address_p field.
23436 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
23437 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
23438 * targhooks.c (default_mode_dependent_address_p): New function.
23439 * targhooks.h (default_mode_dependent_address_p): Declare function.
23440 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
23441 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
23442 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
23443 target hook. Change return type to bool.
23444 * recog.h (mode_dependent_address_p): Change return type to bool.
23445
23446 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
23447 Nathan Froyd <froydnj@codesourcery.com>
23448
23449 * tree-mudflap.c (build_function_type_0, build_function_type_1,
23450 build_function_type_2, build_function_type_3): Remove.
23451 (mudflap_init): Use build_function_type_list.
23452
23453 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
23454 Nathan Froyd <froydnj@codesourcery.com>
23455
23456 * coverage.c (build_fn_info_value): Call build_constructor instead of
23457 build_constructor_from_list.
23458 (build_ctr_info_value): Likewise.
23459 (build_gcov_info): Likewise.
23460
23461 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
23462
23463 * tree.c (build_constructor): Compute TREE_CONSTANT for the
23464 resultant constructor.
23465 (build_constructor_single): Don't set TREE_CONSTANT.
23466 (build_constructor_from_list): Don't compute TREE_CONSTANT.
23467
23468 2010-05-12 Jan Hubicka <jh@suse.cz>
23469
23470 * cgraph.h (struct varpool_node): Add aux.
23471 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
23472 * varpool.c (varpool_remove_node): Do not remove initializer.
23473 (varpool_reset_queue): Export.
23474 (varpool_finalize_decl): Volatile vars are forced to be output.
23475 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
23476 replaced decl.
23477 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
23478 process_references, varpool_can_remove_if_no_refs): New functions.
23479 (cgraph_remove_unreachable_nodes): Handle variables too.
23480
23481 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
23482
23483 PR target/44088
23484 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
23485
23486 2010-05-12 Jakub Jelinek <jakub@redhat.com>
23487
23488 PR middle-end/44085
23489 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
23490 change value of ORT_TASK.
23491 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
23492 (omp_notice_threadprivate_variable): New function.
23493 (omp_notice_variable): Call it for threadprivate variables.
23494 If enclosing ctx is a task, print enclosing task rather than
23495 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
23496 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
23497 if task has untied clause.
23498
23499 PR debug/42278
23500 * dwarf2out.c (base_type_die): Don't add name attribute here.
23501 (modified_type_die): Instead of sizetype use
23502 its underlying original type. If a DW_TAG_base_type doesn't
23503 have name added, add __unknown__.
23504 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
23505 always call force_type_die instead.
23506
23507 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
23508
23509 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
23510 for __stack_chk_guard.
23511
23512 2010-05-11 Jakub Jelinek <jakub@redhat.com>
23513
23514 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
23515 don't call start_source_file debug hook here...
23516 (finish_options): ... but here, after outputting predefined and
23517 command line defines and undefs.
23518
23519 PR middle-end/44071
23520 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
23521 no fallthru edge.
23522 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
23523 optimizing away empty bb with no successors, move over its
23524 footer chain to fallthru predecessor.
23525 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
23526 (rtl_split_edge): For asm goto call patch_jump_insn even if
23527 splitting fallthru edge.
23528
23529 PR c++/44059
23530 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
23531 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
23532 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
23533 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
23534 on DW.ref.* decls.
23535
23536 PR c++/44062
23537 * c-parser.c (c_parser_expression): Mark LHS of a comma
23538 expression as read if it is a decl, handled component or
23539 COMPOUND_EXPR with that on the RHS.
23540 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
23541 if it is a decl or handled component.
23542
23543 2010-05-11 Jan Hubicka <jh@suse.cz>
23544
23545 * lto-symtab.c (lto_symtab_free): New function.
23546 * lto-streamer.h (lto_symtab_free): Declare.
23547
23548 2010-05-11 Jan Hubicka <jh@suse.cz>
23549
23550 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
23551 that if function is needed it is reachable.
23552 (lto_output_node): See if it the function is reachable or referenced.
23553 (output_cgraph): Update call of lto_output_node.
23554 * lto-streamer.h (reachable_from_other_partition_p): Declare.
23555
23556 2010-05-11 Jan Hubicka <jh@suse.cz>
23557
23558 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
23559 Mark as used.
23560
23561 2010-05-11 Jan Hubicka <jh@suse.cz>
23562
23563 PR tree-optimize/44063
23564 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
23565 queue.
23566 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
23567 limits.
23568 (estimate_function_body_sizes): Compute sizes even when disregarding.
23569
23570 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
23571
23572 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
23573
23574 2010-05-11 Jan Hubicka <jh@suse.cz>
23575
23576 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
23577 into every boundary.
23578
23579 2010-05-11 Jan Hubicka <jh@suse.cz>
23580
23581 * matrix-reorg.c (matrix_reorg): Rebuild edges.
23582
23583 2010-05-11 Jan Hubicka <jh@suse.cz>
23584
23585 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
23586 lto_streamer_cache_delete): Put nodes into heap.
23587 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
23588 heap.
23589
23590 2010-05-11 Jan Hubicka <jh@suse.cz>
23591
23592 * cgraphbuild.c (cgraph_rebuild_references): New.
23593 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
23594 out extern inlines.
23595 * cgraph.h (cgraph_rebuild_references): Declare.
23596 * tree-inline.c (tree_function_versioning): Use it.
23597 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
23598
23599 2010-05-11 Jan Hubicka <jh@suse.cz>
23600
23601 * cgraph.c: Include ipa-utils.h
23602 (cgraph_create_virtual_clone): Update references.
23603 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
23604
23605 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
23606
23607 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
23608 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
23609 cache size.
23610
23611 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
23612
23613 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
23614
23615 2010-05-11 Jakub Jelinek <jakub@redhat.com>
23616
23617 * gcc.c (execute): For -### don't quote arguments that
23618 contain just alphanumerics and _/-. characters.
23619 * doc/invoke.texi: Document that change for -###.
23620
23621 PR debug/44023
23622 * df-problems.c (struct dead_debug): Add to_rescan field.
23623 (dead_debug_init): Clear to_rescan field.
23624 (dead_debug_finish): Rescan all debug insns in to_rescan
23625 bitmap and free the bitmap.
23626 (dead_debug_insert_before): Instead of rescanning debug insns
23627 immediately queue their rescanning until dead_debug_finish.
23628 (df_note_bb_compute): After dead_debug_add do continue instead
23629 of break.
23630
23631 2010-05-10 Jakub Jelinek <jakub@redhat.com>
23632
23633 PR debug/44028
23634 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
23635 clear also INSN_REG_USE_LIST.
23636
23637 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23638
23639 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
23640
23641 2010-05-10 Jan Hubicka <jh@suse.cz>
23642
23643 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
23644 commited change.
23645
23646 2010-05-10 Jan Hubicka <jh@suse.cz>
23647
23648 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
23649 Allocate encoders.
23650 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
23651 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
23652 (lto_streamer_cache_create): Init alloc pool.
23653 (lto_streamer_cache_delete): Free alloc pool.
23654 * lto-streamer.h: Include alloc pool.
23655 (lto_streamer_cache_d): Use alloc pool.
23656 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
23657
23658 2010-05-10 Jan Hubicka <jh@suse.cz>
23659
23660 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
23661 * cgraphbuild.c: Include except.h
23662 (record_type_list, record_eh_tables): New function.
23663 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
23664
23665 2010-05-10 Jan Hubicka <jh@suse.cz>
23666
23667 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
23668 __frame_dummy_init_array_entry, force_to_data): Attribute as used
23669 rather than unused.
23670
23671 2010-05-10 Michael Matz <matz@suse.de>
23672
23673 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
23674 (can_reassociate_p): Use FLOAT_TYPE_P.
23675 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
23676 (vect_force_simple_reduction): ... this.
23677 * tree-parloops.c (gather_scalar_reductions): Use
23678 vect_force_simple_reduction.
23679 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
23680 vect_is_simple_reduction, add modify argument, if true rewrite
23681 "a-b" into "a+(-b)".
23682 (vect_is_simple_reduction, vect_force_simple_reduction): New
23683 functions.
23684 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
23685
23686 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
23687 Vladimir Makarov <vmakarov@redhat.com>
23688
23689 PR rtl-optimization/44012
23690 * ira-build.c (remove_unnecessary_allocnos): Nullify
23691 regno_allocno_map of the removed allocno.
23692
23693 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23694
23695 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
23696 to /dev/null.
23697 * configure: Regenerate.
23698
23699 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23700
23701 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
23702 unused.
23703 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
23704 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
23705 support in Sun ld.
23706 * configure: Regenerate.
23707
23708 2010-05-10 Richard Guenther <rguenther@suse.de>
23709
23710 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
23711 marked if the entry identifier is marked.
23712
23713 2010-05-10 Richard Guenther <rguenther@suse.de>
23714
23715 * c-common.c (struct c_common_attributes): Add fnspec attribute.
23716 (handle_fnspec_attribute): New function.
23717 * gimple.h (gimple_call_return_flags): Declare.
23718 (gimple_call_arg_flags): Likewise.
23719 * gimple.c (gimple_call_arg_flags): New function.
23720 (gimple_call_return_flags): Likewise.
23721 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
23722 New argument flags.
23723 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
23724 return value flags.
23725 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
23726 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
23727 main work to ...
23728 (make_heapvar_for): ... this new function.
23729 (handle_rhs_call): Handle fnspec attribute argument specifiers.
23730 (handle_lhs_call): Likewise.
23731 (find_func_aliases): Adjust.
23732
23733 2010-05-10 Richard Guenther <rguenther@suse.de>
23734
23735 PR tree-optimization/44050
23736 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
23737
23738 2010-05-10 Wei Guozhi <carrot@google.com>
23739
23740 PR target/42879
23741 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
23742
23743 2010-05-09 Joseph Myers <joseph@codesourcery.com>
23744
23745 PR c/10676
23746 * c-typeck.c (lookup_field): Take a type directly. Update
23747 recursive calls.
23748 (build_component_ref): Update call to lookup_field.
23749 (set_init_label): Use lookup_field to find initialized field.
23750 Handle returned list of fields like a sequence of designators.
23751
23752 2010-05-09 Richard Guenther <rguenther@suse.de>
23753
23754 PR middle-end/44024
23755 * fold-const.c (tree_single_nonzero_warnv_p): Properly
23756 handle &FUNCTION_DECL.
23757
23758 2010-05-09 Joseph Myers <joseph@codesourcery.com>
23759
23760 PR c/4784
23761 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
23762 structures and unions recursively.
23763 (detect_field_duplicates): Move duplicate detection with a hash to
23764 detect_field_duplicates_hash. Always use a hash if anonymous
23765 structures or unions are present.
23766 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
23767 give errors.
23768
23769 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
23770
23771 PR target/44046
23772 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
23773 detect Atom, Core 2 and Core i7.
23774
23775 2010-05-09 Richard Guenther <rguenther@suse.de>
23776
23777 * gcc.c (store_arg): Handle temporary file deletion for
23778 joined arguments.
23779
23780 2010-05-09 Richard Guenther <rguenther@suse.de>
23781
23782 PR middle-end/44043
23783 * ipa-inline.c (estimate_function_body_sizes): Return after
23784 disregarding inline limits.
23785
23786 2010-05-09 Richard Guenther <rguenther@suse.de>
23787
23788 * gcc.c (store_arg): Revert last change.
23789
23790 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
23791
23792 PR middle-end/28685
23793 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
23794 (optimize_ops_list): Call it.
23795
23796 2010-05-08 Richard Guenther <rguenther@suse.de>
23797
23798 PR tree-optimization/44030
23799 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
23800 NECESSARY flag if we propagate from a inserted expression.
23801
23802 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
23803
23804 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
23805 domain types as equal if they are both PLACEHOLDER_EXPRs.
23806
23807 2010-05-08 Richard Guenther <rguenther@suse.de>
23808
23809 * lto-wrapper.c (run_gcc): Remove linker output from
23810 command line for LTRANS invocation.
23811
23812 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
23813
23814 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
23815 lto-macho as lto_binary_reader.
23816 * target.h (struct gcc_target): New hooks lto_start and lto_end.
23817 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
23818 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
23819 in lto_start and lto_end calls.
23820 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
23821 magic numbers.
23822 (scan_prog_file): Update is_elf_or_coff call.
23823 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
23824
23825 * collect2.c (main): Fix enum comparison.
23826
23827 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
23828 Add prototypes.
23829 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
23830 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
23831 and TARGET_ASM_LTO_END.
23832 * darwin.c: Include obstack.h and lto-streamer.h.
23833 (lto_section_names_offset, lto_section_names_obstack,
23834 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
23835 global variables.
23836 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
23837 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
23838 to a temporary file.
23839 (darwin_asm_lto_end): New function. Restore asm_out_file.
23840 (darwin_asm_named_section): For LTO sections, replace the name with
23841 the offset of the section name in a string table, and build this
23842 table.
23843 (darwin_file_start): Initialize global vars for LTO support.
23844 (darwin_file_end): If output to asm_out_file was redirected, append it
23845 to the proper asm_out_file here. Add the section names section.
23846
23847 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
23848
23849 * c-pragma.c (pending_weak_d, pending_weak): New.
23850 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
23851 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
23852 handle_pragma_weak): Update the uses of pending_weaks.
23853
23854 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23855
23856 PR documentation/44016
23857 * doc/standards.texi (Standards): Link to unversioned
23858 cxx0x_status.html page.
23859
23860 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
23861
23862 PR target/43708
23863 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
23864 in addition to TREE_USED, to avoid "set but unused" warnings.
23865
23866 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
23867
23868 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
23869 (is_loop_prefetching_profitable): Do not insert prefetches
23870 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
23871 times the prefetch ahead distance.
23872
23873 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
23874
23875 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
23876 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
23877 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
23878 the unroll_factor.
23879
23880 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
23881
23882 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
23883 a diagnostic info when the insn-to-mem ratio is too small.
23884
23885 2010-05-07 Richard Guenther <rguenther@suse.de>
23886
23887 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
23888 the linker plugin.
23889 (store_arg): Queue temp_filename for deletion instead of
23890 the whole argument.
23891
23892 2010-05-07 Richard Guenther <rguenther@suse.de>
23893
23894 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
23895 (run_gcc): Handle LTRANS phase invocation.
23896 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
23897
23898 2010-05-07 Jakub Jelinek <jakub@redhat.com>
23899
23900 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
23901 this is also meaningful on PARM_DECLs and RESULT_DECLs.
23902
23903 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23904
23905 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
23906
23907 2010-05-07 Richard Guenther <rguenther@suse.de>
23908
23909 PR tree-optimization/44020
23910 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
23911 code when PRE is not yet initialized.
23912
23913 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23914
23915 * config/mips/dbxmdebug.h: Remove.
23916 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
23917
23918 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
23919
23920 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
23921 with null pointer and also warn about ordered comparison of zero with
23922 pointer if -Wextra.
23923
23924 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
23925
23926 * graphite-blocking.c
23927 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
23928 * graphite-clast-to-gimple.c
23929 (clast_to_gcc_expression): Same.
23930 (precision_for_value): Same.
23931 (precision_for_interval): Same.
23932 (gcc_type_for_interval): Same.
23933 (graphite_create_new_guard): Same.
23934 (compute_bounds_for_level): Same.
23935 (graphite_create_new_loop_guard): Same.
23936 * graphite-interchange.c
23937 (build_linearized_memory_access): Same.
23938 (pdr_stride_in_loop): Same.
23939 (memory_strides_in_loop_1): Same.
23940 (memory_strides_in_loop): Same.
23941 (extend_scattering): Same.
23942 (psct_scattering_dim_for_loop_depth): Same.
23943 (pbb_number_of_iterations): Same.
23944 * graphite-poly.h
23945 (debug_iteration_domains): Same.
23946 * graphite-ppl.c
23947 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
23948 (ppl_set_inhomogeneous_gmp): Same.
23949 (ppl_strip_loop): Same.
23950 (ppl_lexico_compare_linear_expressions): Same.
23951 (ppl_read_polyhedron_matrix): Same.
23952 (ppl_max_for_le_pointset): Same.
23953 * graphite-ppl.h
23954 (ppl_read_polyhedron_matrix): Same.
23955 (tree_int_to_gmp): Same.
23956 (gmp_cst_to_tree): Same.
23957 (ppl_set_inhomogeneous): Same.
23958 (ppl_set_inhomogeneous_tree): Same.
23959 (ppl_set_coef): Same.
23960 (ppl_set_coef_tree): Same.
23961 * graphite-sese-to-poly.c
23962 (build_pbb_scattering_polyhedrons): Same.
23963 (build_scop_scattering): Same.
23964 (scan_tree_for_params_right_scev): Same.
23965 (scan_tree_for_params): Same.
23966 (find_params_in_bb): Same.
23967 (find_scop_parameters): Same.
23968 (add_upper_bounds_from_estimated_nit): Same.
23969 (build_loop_iteration_domains): Same.
23970 (add_condition_to_domain): Same.
23971 (pdr_add_memory_accesses): Same.
23972
23973 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
23974
23975 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
23976 CLooG's value_* macros to their respective mpz_* counterparts.
23977 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
23978 (graphite_create_new_loop_guard): Same.
23979 * graphite-interchange.c (build_linearized_memory_access): Same.
23980 (pdr_stride_in_loop): Same.
23981 (memory_strides_in_loop_1): Same.
23982 (1st_interchange_profitable_p): Same.
23983 * graphite-poly.c (extend_scattering): Same.
23984 (psct_scattering_dim_for_loop_depth): Same.
23985 (pbb_number_of_iterations): Same.
23986 (pbb_number_of_iterations_at_time): Same.
23987 * graphite-poly.h (new_1st_loop): Same.
23988 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
23989 (oppose_constraint): Same.
23990 (insert_constraint_into_matrix): Same.
23991 (ppl_set_inhomogeneous_gmp): Same.
23992 (ppl_set_coef_gmp): Same.
23993 (ppl_strip_loop): Same.
23994 (ppl_lexico_compare_linear_expressions): Same.
23995 (ppl_max_for_le_pointset): Same.
23996 (ppl_min_for_le_pointset): Same.
23997 (ppl_build_realtion): Same.
23998 * graphite-ppl.h (gmp_cst_to_tree): Same.
23999 (ppl_set_inhomogeneous): Same.
24000 (ppl_set_inhomogeneous_tree): Same.
24001 (ppl_set_coef): Same.
24002 (ppl_set_coef_tree): Same.
24003 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24004 (build_scop_scattering): Same.
24005 (add_value_to_dim): Same.
24006 (scan_tree_for_params_right_scev): Same.
24007 (scan_tree_for_params_int): Same.
24008 (scan_tree_for_params): Same.
24009 (find_params_in_bb): Same.
24010 (find_scop_parameters): Same.
24011 (add_upper_bounds_from_estimated_nit): Same.
24012 (build_loop_iteration_domains): Same.
24013 (create_linear_expr_from_tree): Same.
24014 (add_condition_to_domain): Same.
24015 (pdr_add_memory_accesses): Same.
24016
24017 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
24018 Jason Merrill <jason@redhat.com>
24019
24020 * c-common.c (c_common_reswords): Add nullptr.
24021 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
24022 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
24023 (gen_type_die_with_usage): Likewise.
24024 * dbxout.c (dbxout_type): Likewise.
24025 * sdbout.c (plain_type_1): Likewise.
24026
24027 2010-05-06 Jason Merrill <jason@redhat.com>
24028
24029 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
24030 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
24031 ret appropriately.
24032 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
24033
24034 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
24035 stripping WITH_SIZE_EXPR.
24036 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
24037 change.
24038
24039 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24040
24041 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
24042 list of obsolete configurations.
24043 Disabled check for obsolete configurations.
24044 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
24045 Removed support for previous versions.
24046 * config/mips/iris.h: Removed.
24047 * config/mips/iris5.h: Removed.
24048 * config/mips/iris6.h: Merged old iris.h contents.
24049 (TARGET_IRIX): Removed.
24050 (DRIVER_SELF_SPECS): Removed mabi=32.
24051 (IDENT_ASM_OP): Removed undef.
24052 (STARTFILE_SPEC): Removed mabi=32.
24053 (ENDFILE_SPEC): Likewise.
24054 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
24055 (MACHINE_TYPE): Update for IRIX 6.5.
24056 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
24057 TARGET_IRIX by TARGET_IRIX6.
24058 (mips_file_start): Likewise.
24059 (mips_output_external): Remove IRIX 5/6 O32 support.
24060 (mips_output_function_prologue): Likewise.
24061 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
24062 TARGET_IRIX6.
24063 (TARGET_CPU_CPP_BUILTINS): Likewise.
24064 (TARGET_IRIX): Removed.
24065 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
24066 (MULTILIB_DIRNAMES): Removed 32.
24067 (MULTILIB_OSDIRNAMES): Removed ../lib.
24068 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
24069 (Specific, mips-sgi-irix5): Document removal.
24070 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
24071 Remove references to older IRIX 6 releases and the O32 ABI.
24072
24073 2010-05-06 Jakub Jelinek <jakub@redhat.com>
24074
24075 PR bootstrap/43994
24076 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
24077 instead of DF_REF_REAL_REG.
24078
24079 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
24080
24081 PR target/43888
24082 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
24083 handling to still return true for x64 targets.
24084
24085 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24086
24087 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
24088
24089 2010-05-06 Jan Hubicka <jh@suse.cz>
24090
24091 PR tree-optimization/43791
24092 * ipa-inline.c (update_caller_keys): Remove bogus
24093 disregard_inline_limits check.
24094
24095 2010-05-06 Michael Matz <matz@suse.de>
24096
24097 PR tree-optimization/43984
24098 * tree-ssa-pre.c (inserted_phi_names): Remove.
24099 (inserted_exprs): Change to bitmap.
24100 (create_expression_by_pieces): Set bits, don't append to vector.
24101 (insert_into_preds_of_block): Don't handle inserted_phi_names.
24102 (eliminate): Don't look at inserted_phi_names, remove deleted
24103 insns from inserted_exprs.
24104 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
24105 (init_pre, fini_pre): Allocate and free bitmaps.
24106 (execute_pre): Insert insns on edges before elimination.
24107
24108 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
24109
24110 * tree.c (initializer_zerop): Handle STRING_CST.
24111
24112 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
24113
24114 PR 40989
24115 * doc/invoke.texi (Wimplicit): Document as C only.
24116 * opts.c (common_handle_option): Add argument kind.
24117 (handle_option): Rename as read_cmdline_option. Factor out code to...
24118 (handle_option): ... here. New.
24119 (handle_options): Rename as read_cmdline_options.
24120 (decode_options): Update call.
24121 (set_option): Use option index instead of option pointer. Classify
24122 diagnostics correctly.
24123 (enable_warning_as_error): Call handle_option.
24124 * opts.h (set_option): Update declaration.
24125 (handle_option): Declare.
24126 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
24127 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
24128 * c-opts.c (set_Wimplicit): Delete.
24129 (c_family_lang_mask): New static constant.
24130 (c_common_handle_option): Add argument kind. Use handle_option
24131 instead of set_Wimplicit.
24132 (c_common_post_options): warn_implicit and warn_implicit_int
24133 are disabled by default.
24134 * c-common.c (warn_implicit): Do not define here.
24135 * c-common.h (warn_implicit): Do not declare here.
24136 (c_common_handle_option): Update declaration.
24137 * lto-opts.c (lto_reissue_options): Update call to set_option.
24138
24139 2010-05-06 Richard Guenther <rguenther@suse.de>
24140
24141 PR tree-optimization/43571
24142 * domwalk.c (walk_dominator_tree): Walk the dominator
24143 sons in more optimal order.
24144
24145 2010-05-06 Richard Guenther <rguenther@suse.de>
24146
24147 PR tree-optimization/43934
24148 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
24149 (stmt_cost): Likewise.
24150 (extract_true_false_args_from_phi): New helper.
24151 (determine_max_movement): For PHI nodes verify we can hoist them
24152 and compute their cost.
24153 (determine_invariantness_stmt): Handle PHI nodes.
24154 (move_computations_stmt): Likewise. Hoist PHI nodes in
24155 if-converted form using COND_EXPRs.
24156 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
24157 (tree_ssa_lim): Likewise.
24158 * tree-flow.h (tree_ssa_lim): Adjust prototype.
24159 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
24160
24161 2010-05-06 Richard Guenther <rguenther@suse.de>
24162
24163 PR tree-optimization/43987
24164 * tree-ssa-structalias.c (could_have_pointers): For possibly
24165 address-taken variables force pointers to be recorded.
24166 (create_variable_info_for_1): Likewise.
24167 (push_fields_onto_fieldstack): Pass in wheter all fields
24168 must have pointers.
24169 (find_func_aliases): Query types instead of vars whether
24170 they contain pointers where appropriate.
24171
24172 2010-05-06 Jan Hubicka <jh@suse.cz>
24173
24174 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
24175 (record_reference, mark_address, mark_load, mark_store): Record
24176 references.
24177 (record_references_in_initializer): Update call of record_references.
24178 (rebuild_cgraph_edges): Remove all references before rebuiding.
24179 * cgraph.c (cgraph_create_node): Clear ref list.
24180 (cgraph_remove_node): Remove references.
24181 (dump_cgraph_node): Dump references.
24182 (cgraph_clone_node): Clone references.
24183 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
24184 (struct cgraph_node, varpool_node): Add ref_lst.
24185 * ipa-ref.c: New file.
24186 * ipa-ref.h: New file.
24187 * ipa-ref-inline.h: New file.
24188 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
24189 (referenced_from_other_partition_p): New function.
24190 (lto_output_varpool_node): Take set arugment; call
24191 referenced_from_other_partition.
24192 (lto_output_ref): New.
24193 (add_references): New.
24194 (output_refs): New.
24195 (output_cgraph): Compute boundary based on references; output refs.
24196 (output_varpool): Accept cgraph_node_set argument.
24197 (input_ref): New.
24198 (input_refs): New.
24199 (input_cgraph): Call input_refs.
24200 * lto-section-in.c (lto_section_name): Add refs.
24201 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
24202 (ipa-ref.o): New file.
24203 * varpool.c (varpool_node): Clear ipa ref list.
24204 (varpool_remove_node): Remove references.
24205 (dump_varpool_node): Dump references.
24206 (varpool_assemble_decl): Only compile finalized ones.
24207 (varpool_extra_name_alias): Initialize ref list.
24208 * lto-streamer.c (lto-get_section_name): Add .refs section.
24209 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
24210 (referenced_from_other_partition_p): Declared.
24211
24212 2010-05-06 Ira Rosen <irar@il.ibm.com>
24213
24214 PR tree-optimization/43901
24215 * tree-vect-stmts.c (vectorizable_call): Assert that vector
24216 type is not NULL if it's transformation phase, and return
24217 FALSE if it's analysis.
24218 (vectorizable_conversion, vectorizable_operation,
24219 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
24220
24221 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
24222
24223 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24224 Delete.
24225 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
24226 New define.
24227 * config/mips/mips-protos.h
24228 (mips_small_register_classes_for_mode_p): Delete prototype.
24229
24230 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
24231
24232 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
24233 * config/arm/arm.c (multiple_operation_profitable_p,
24234 compute_offset_order): New static functions.
24235 (load_multiple_sequence, store_multiple_sequence): Use them.
24236 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
24237 memory offsets, not register numbers.
24238 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
24239
24240 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
24241
24242 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
24243 (get_pending_sizes, put_pending_size, put_pending_sizes):
24244 Update the uses of pending_sizes.
24245 * c-decl.c (store_parm_decls): Likewise.
24246 * c-tree.h (struct c_arg_info): Likewise.
24247 * tree.h: Update the prototype for get_pending_sizes and
24248 put_pending_sizes.
24249
24250 2010-05-05 Jason Merrill <jason@redhat.com>
24251
24252 PR debug/43370
24253 * c-common.c (handle_aligned_attribute): Respect
24254 ATTR_FLAG_TYPE_IN_PLACE.
24255
24256 PR testsuite/43758
24257 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
24258 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24259 (TARGET_INITIALIZER): Use it.
24260 * c-common.c (attribute_takes_identifier_p): Call it.
24261 * c-common.h: Update prototype.
24262 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
24263 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
24264
24265 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24266
24267 PR debug/43950
24268 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
24269 DW_ID_down_case for Fortran compilation units.
24270
24271 2010-05-05 Jan Hubicka <jh@suse.cz>
24272
24273 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
24274 handle aliases.
24275
24276 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
24277
24278 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
24279 a variable-sized RESULT_DECL.
24280
24281 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
24282
24283 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
24284
24285 2010-05-05 Jason Merrill <jason@redhat.com>
24286
24287 PR c++/43787
24288 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
24289 returns GS_OK.
24290 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
24291
24292 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
24293 Jakub Jelinek <jakub@redhat.com>
24294
24295 PR debug/43478
24296 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
24297 (dead_debug_init, dead_debug_finish): New functions.
24298 (dead_debug_add, dead_debug_insert_before): Likewise.
24299 (df_note_bb_compute): Initialize a dead_debug object, add dead
24300 debug uses to it, insert debug bind insns before death insns,
24301 reset debug insns that refer to pending uses at the end.
24302 * rtl.h (make_debug_expr_from_rtl): New prototype.
24303 * varasm.c (make_debug_expr_from_rtl): New function.
24304
24305 2010-05-05 Jan Hubicka <jh@suse.cz>
24306
24307 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
24308 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
24309 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
24310 lto_varpool_encoder_deref, lto_varpool_encoder_size,
24311 lto_varpool_encoder_encode_initializer_p,
24312 lto_set_varpool_encoder_encode_initializer): New functions.
24313 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
24314 call output_varpool.
24315 (input_varpool_node): Do not always set analyzed.
24316 (input_cgraph_1): Return vector of cgraph nodes.
24317 (input_varpool_1): Return vector of varpools.
24318 (input_cgraph): Free the vectors.
24319 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24320 output only initializers needed.
24321 (lto_output): Only call output_cgraph.
24322 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
24323 * lto-section-out.c (lto_new_out_decl_state): Initialize
24324 state->varpool_node_encoder.
24325 * lto-streamer.h (lto_varpool_encoder_d): New.
24326 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
24327 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
24328 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
24329 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
24330 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
24331 Declare.
24332 (output_varpool, input_varpool): Remove declarations.
24333
24334 2010-05-05 Jan Hubicka <jh@suse.cz>
24335
24336 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
24337 with body can prevail.
24338
24339 2010-05-05 Jan Hubicka <jh@suse.cz>
24340
24341 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
24342 size.
24343
24344 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
24345
24346 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
24347
24348 * gengtype.h (erro_at_line): Constify pos argument.
24349
24350 * gengtype.c: Include hashtab.h.
24351 (enum gc_used): Document GC_MAYBE_POINTED_TO.
24352 (error_at_line): Constify pos argument.
24353 (do_typedef): Initialize p->opt field.
24354 (get_file_gtfilename): Fix comment typo.
24355 (struct walk_type_data): Constify line field.
24356 (get_output_file_for_structure): New function.
24357 (write_local_func_for_structure): Constify orig_s argument.
24358 Use get_output_file_for_structure.
24359 (write_func_for_structure): Use get_output_file_for_structure.
24360 (INDENT): New define.
24361 (dump_pair, dump_type, dump_type_list, dump_typekind)
24362 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
24363 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
24364 functions.
24365 (seen_types): New variable.
24366 (main): New variable do_dump. Process "-d" command line option.
24367 Call dump_everything if dump requested.
24368
24369 2010-05-05 Jakub Jelinek <jakub@redhat.com>
24370
24371 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
24372 in a temporary instead of invoking the macro multiple times.
24373 (track_expr_p): Likewise.
24374
24375 2010-05-04 Neil Vachharajani <nvachhar@google.com>
24376
24377 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
24378 per new semantics.
24379 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
24380 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
24381 conditions for printing notes.
24382 * common.opt (-Wcoverage-mismatch): Allow negative, default to
24383 true, update documentation.
24384 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
24385
24386 2010-05-04 Jakub Jelinek <jakub@redhat.com>
24387
24388 PR c/43981
24389 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
24390 on dimen.
24391
24392 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
24393
24394 PR target/43799
24395 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
24396 (*sse_prologue_save_insn1): Likewise.
24397 (SSE prologue save splitter): Likewise.
24398
24399 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
24400
24401 * tree.c (free_lang_data_in_one_sizepos): New inline function.
24402 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
24403 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
24404 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
24405 all decls. Call it on DECL_FIELD_OFFSET of fields.
24406 (find_decls_types_r): Follow DECL_VALUE_EXPR.
24407 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
24408
24409 2010-05-04 Martin Jambor <mjambor@suse.cz>
24410
24411 * tree-sra.c (build_access_from_expr_1): The first parameter type
24412 changed to simple tree.
24413 (build_access_from_expr): Likewise, gsi parameter was eliminated.
24414 (scan_assign_result): Renamed to assignment_mod_result, enum elements
24415 renamed as well.
24416 (build_accesses_from_assign): Removed all parameters except for a
24417 simple gimple statement. Now returns a simple bool.
24418 (scan_function): All non-analysis parts moved to separate functions
24419 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
24420 parameters and updated both callers.
24421 (sra_modify_expr): Removed parameter data.
24422 (sra_modify_function_body): New function.
24423 (perform_intra_sra): Call sra_modify_function_body to modify the
24424 function body.
24425 (replace_removed_params_ssa_names): Parameter data changed into
24426 adjustments vector.
24427 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
24428 changed the parameter dont_convert to convert with the opposite
24429 meaning.
24430 (sra_ipa_modify_assign): Parameter data changed into adjustments
24431 vector, return value changed to bool.
24432 (ipa_sra_modify_function_body): New function.
24433 (sra_ipa_reset_debug_stmts): Updated a comment.
24434 (modify_function): Use ipa_sra_modify_function_body to modify function
24435 body.
24436
24437 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
24438
24439 PR middle-end/43671
24440 * alias.c (true_dependence): Handle the same VALUE in x and mem.
24441 (canon_true_dependence): Likewise.
24442 (write_dependence_p): Likewise.
24443
24444 2010-05-04 Jan Hubicka <jh@suse.cz>
24445
24446 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
24447 * cgraphbuild.c: Include ipa-utils.h
24448 (record_reference_ctx): New struct.
24449 (record_reference): Simplify to work on initializers; not statements.
24450 (mark_address, mark_load, mark_store): New.
24451 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
24452 walk PHI nodes too.
24453 (record_references_in_initializer): Update use of record_reference.
24454 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
24455 walk PHI nodes too.
24456
24457 2010-05-04 Jan Hubicka <jh@suse.cz>
24458
24459 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
24460 node will be removed anyway.
24461 (lto_varpool_replace_node): Allow also unanalyzed nodes;
24462 relink aliases of node into prevailing node.
24463 * varpool.c (varpool_remove_node): Remove aliases properly;
24464 when removing node, remove all its aliases too; remove DECL_INITIAL
24465 of removed node; ggc_free the varpool node.
24466
24467 2010-05-04 Richard Guenther <rguenther@suse.de>
24468
24469 PR tree-optimization/43879
24470 * tree-ssa-structalias.c (alias_get_name): Use
24471 DECL_ASSEMBLER_NAME if available.
24472 (create_function_info_for): Return the varinfo node.
24473 (ipa_pta_execute): Associate same-body aliases and extra names
24474 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
24475
24476 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
24477
24478 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
24479
24480 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
24481
24482 PR bootstrap/43964
24483 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
24484 only if HONOR_REG_ALLOC_ORDER is not defined.
24485
24486 2010-05-04 Richard Guenther <rguenther@suse.de>
24487
24488 PR tree-optimization/43949
24489 * tree-vrp.c (extract_range_from_binary_expr): Only handle
24490 TRUNC_MOD_EXPR.
24491
24492 2010-04-26 Jason Merrill <jason@redhat.com>
24493
24494 * c.opt (-fstrict-enums): New.
24495 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
24496
24497 2010-05-03 David Ung <davidu@mips.com>
24498 James E. Wilson <wilson@codesourcery.com>
24499
24500 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
24501 emit the trap instruction before the divide for TUNE_74K.
24502
24503 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
24504
24505 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
24506 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
24507 based on the above, for new target hook.
24508
24509 * hooks.c (hook_bool_mode_true): New generic hook.
24510 * hooks.h (hook_bool_mode_true): Add prototype.
24511
24512 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
24513 target hook.
24514 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
24515 target hook, set to hook_bool_mode_false.
24516 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
24517 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
24518 with targetm.small_register_classes_for_mode_p.
24519 (find_reusable_reload): Likewise.
24520 (combine_reloads): Likewise.
24521 * reload1.c (reload_as_needed): Likewise.
24522 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
24523 * ifcvt.c (noce_process_if_block, check_cond_move_block,
24524 dead_or_predicable): Likewise.
24525 * regmove.c (optimize_reg_copy_1): Likewise.
24526 * calls.c (prepare_call_address): Likewise.
24527 (precompute_register_parameters): Likewise.
24528
24529 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
24530 hook definition.
24531 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
24532 implementation of the hook that considers all register classes
24533 small except for SH64.
24534 (sh_override_options): Use the new hook.
24535 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
24536 Add prototype.
24537
24538 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
24539 hook definition.
24540 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
24541 implementation of the hook that considers all register classes
24542 small for THUMB1.
24543 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
24544 Add prototype.
24545
24546 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
24547 hook definition.
24548 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
24549 implementation of the hook that considers all register classes
24550 small for MIPS16.
24551 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
24552 Add prototype.
24553
24554 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
24555 hook definition.
24556 * config/m32c/m32c.h: Likewise.
24557 * config/pdp11/pdp11.h: Likewise.
24558 * config/avr/avr.h: Likewise.
24559 * config/xtensa/xtensa.h: Likewise.
24560 * config/m68hc11/m68hc11.h: Likewise.
24561 * config/mn10300/mn10300.h: Likewise.
24562 * config/mcore/mcore.h: Likewise.
24563 * config/h8300/h8300.h: Likewise.
24564 * config/bfin/bfin.h: Likewise.
24565
24566 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
24567 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
24568
24569 2010-05-03 Anatoly Sokolov <aesok@post.ru>
24570
24571 * double-int.h (tree_to_double_int): Remove macro.
24572 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
24573 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
24574 (tree_to_double_int): New function.
24575 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
24576 Move ...
24577 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
24578
24579 2010-05-03 Richard Guenther <rguenther@suse.de>
24580
24581 PR tree-optimization/43971
24582 * tree-ssa-structalias.c (get_constraint_for_1): Fix
24583 constraints in the !flag_delete_null_pointer_checks case.
24584
24585 2010-05-03 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR debug/43972
24588 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
24589 result mode matches original rtl mode.
24590
24591 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
24592
24593 PR target/43888
24594 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
24595
24596 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
24597
24598 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
24599 when processing flag options.
24600
24601 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
24602
24603 * gcov-iov.c (main): Change format string placeholder
24604 from %#08x to 0x%08x.
24605 * genchecksum.c (dosum): Change format string placeholder
24606 from %#02x to 0x%02x.
24607
24608 2010-05-02 Richard Guenther <rguenther@suse.de>
24609
24610 PR tree-optimization/43879
24611 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
24612
24613 2010-05-02 Bruno Haible <bruno@clisp.org>
24614
24615 * doc/extend.texi (Function Attributes): Fix a typo.
24616
24617 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
24618
24619 Revert:
24620 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
24621 placeholder from 0x%x to %#x.
24622 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
24623 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
24624 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
24625 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
24626 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
24627 * config/i386/i386.c (ix86_target_string): Ditto.
24628 * config/i386/i386.c (output_pic_addr_const): Ditto.
24629 (print_operand): Ditto.
24630
24631 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
24632
24633 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
24634 placeholder from 0x%x to %#x.
24635 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
24636 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
24637 (ASM_OUTPUT_DEBUG_DATA): Ditto.
24638 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
24639 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
24640 * optc-gen.awk: Ditto.
24641 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
24642 (HOST_WIDE_INT_PRINT_HEX): Ditto.
24643 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
24644 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
24645
24646 2010-05-01 Anatoly Sokolov <aesok@post.ru>
24647
24648 * target.h (struct calls): Add function_value_regno_p field.
24649 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
24650 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
24651 * targhooks.c (default_function_value_regno_p): New function.
24652 * targhooks.h (default_function_value_regno_p): Declare function.
24653 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
24654 * builtins.c. (apply_result_size): (Ditto.).
24655 * combine.c. (likely_spilled_retval_p): (Ditto.).
24656 * mode-switching.c. Include 'target.h'.
24657 (create_pre_exit): Use function_value_regno_p hook.
24658 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
24659 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
24660 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
24661
24662 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
24663 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
24664 (ix86_function_value_regno_p): Declare as static, change argument
24665 type to const unsigned int.
24666 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
24667
24668 2010-05-01 Richard Guenther <rguenther@suse.de>
24669
24670 PR tree-optimization/43949
24671 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
24672 types.
24673 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
24674
24675 2010-05-01 Anatoly Sokolov <aesok@post.ru>
24676
24677 * rtl.h (CONST_DOUBLE_P): Define.
24678 (rtx_to_double_int): Declare.
24679 * emit-rtl.c (rtx_to_double_int): New function.
24680 * dwarf2out.c (insert_double): New function.
24681 (loc_descriptor, add_const_value_attribute): Clean up, use
24682 rtx_to_double_int and insert_double functions.
24683
24684 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
24685
24686 * doc/extend.texi (Inline): Add missing return keyword to examples.
24687 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
24688 "command-line".
24689
24690 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
24691
24692 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
24693 the variable part of the offset as well. Use highest_pow2_factor for
24694 all alignment checks.
24695
24696 2010-04-30 Richard Guenther <rguenther@suse.de>
24697
24698 PR tree-optimization/43879
24699 * tree-ssa-structalias.c (type_could_have_pointers): Functions
24700 can have pointers.
24701
24702 2010-04-30 Jan Hubicka <jh@suse.cz>
24703
24704 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
24705 varpool.
24706 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
24707
24708 2010-04-30 Jan Hubicka <jh@suse.cz>
24709
24710 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
24711 New.
24712 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
24713 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
24714 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
24715 cgraph_node_set_needs_ltrans_p): Remove.
24716
24717 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
24718
24719 * sdbout.c: Include vec.h, do not include varray.h.
24720 (deferred_global_decls, sdbout_global_decl,
24721 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
24722 * toplev.c: Do not include varray.h.
24723 (dump_memory_report): Do not dump VARRAY statistics.
24724 * gengtype.c (open_base_file): Ignore varray.h.
24725 * Makefile.in: Update for abovementioned changes.
24726 Remove all traces of varray.c and varray.h.
24727 * varray.c: Remove file.
24728 * varray.h: Remove file.
24729
24730 2010-04-30 Jan Hubicka <jh@suse.cz>
24731
24732 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
24733 references.
24734
24735 2010-04-30 Jan Hubicka <jh@suse.cz>
24736
24737 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
24738 needed.
24739
24740 2010-04-30 Richard Guenther <rguenther@suse.de>
24741
24742 * tree-ssa-structalias.c (get_constraint_for_1): Generate
24743 constraints for CONSTRUCTOR.
24744
24745 2010-04-30 Richard Guenther <rguenther@suse.de>
24746
24747 PR lto/43946
24748 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
24749 first after all lowering passes.
24750
24751 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
24752
24753 * toplev.c: Include varray.h for statistics dumping.
24754 * tree.h: Do not declare varray_head_tag.
24755 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
24756 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
24757 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
24758 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
24759 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
24760 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
24761 c-common.c, c-common.h, reg-stack.c, basic-block.h,
24762 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
24763 include varray.h.
24764 * Makefile.in: Update for abovementioned changes.
24765
24766 2010-04-30 Jakub Jelinek <jakub@redhat.com>
24767
24768 PR debug/43942
24769 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
24770
24771 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
24772
24773 * config/picochip/picochip.c (picochip_legitimize_address): Define.
24774 Use this function to do machine-specific conversion.
24775 (picochip_legitimize_reload_address): Likewise.
24776 (picochip_legitimate_address_p): Check valid base register only if
24777 strict.
24778 (picochip_check_conditional_copy): Check for modw only if opnd is
24779 register.
24780 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
24781 to call the function in c.
24782 * config/picochip/picochip-protos.h
24783 (picochip_legitimize_reload_address): Define.
24784 * config/picochip/picochip.md (supported_compare1): Define.
24785
24786 2010-04-30 Jan Hubicka <jh@suse.cz>
24787
24788 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
24789 (cgraph_global_info): Remove inlined.
24790 (LTO_cgraph_tag_names): Remove.
24791 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
24792 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
24793 simplify cgraph tags and document.
24794 (lto_output_node): Use only LTO_cgraph_unavail_node and
24795 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
24796 for_functions_valid, global info, process and output flags.
24797 (input_overwrite_node): Initialize estimated stack size and
24798 estimated growth. Do not read flags we no longer store.
24799 (input_node): Likewise do not read info no longer stored.
24800 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
24801 flag.
24802
24803 2010-04-30 Richard Guenther <rguenther@suse.de>
24804
24805 PR tree-optimization/43879
24806 * tree-ssa-structalias.c (get_constraint_for_1): Properly
24807 handle non-zero initializers.
24808
24809 2010-04-30 Richard Guenther <rguenther@suse.de>
24810
24811 * builtins.c (fold_builtin_1): Delete free (0).
24812
24813 2010-04-29 Jan Hubicka <jh@suse.cz>
24814
24815 * gengtype.c (open_base_files): Add lto-streamer.h
24816 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
24817 (pass_ipa_cp): GGC collect.
24818 * toplev. (compile_file): Do not output symbols.
24819 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
24820 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
24821 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
24822 * lto-section-in.c: Include ggc.h
24823 (lto_new_in_decl_state): Alloc in GGC.
24824 (lto_delete_in_decl_state): Likewise.
24825 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
24826 Collect.
24827
24828 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
24829
24830 PR target/42895
24831 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
24832 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
24833 (HONOR_REG_ALLOC_ORDER): Describe new macro.
24834 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
24835 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
24836 account only if HONOR_REG_ALLOC_ORDER is not defined.
24837 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
24838 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
24839
24840 2010-04-29 Jon Grant <04@jguk.org>
24841
24842 * collect2.c (vflag): Change type from int to bool.
24843 (debug): Likewise.
24844 (helpflag): New global bool.
24845 (main): Set vflag and debug with boolean, not integer truth values.
24846 Accept new "--help" option and output usage text if found.
24847 * collect2.h (vflag): Update prototype.
24848 (debug): Likewise.
24849
24850 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
24851
24852 PR bootstrap/43936
24853 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
24854
24855 2010-04-29 Richard Guenther <rguenther@suse.de>
24856
24857 PR bootstrap/43935
24858 * plugin.h (invoke_plugin_callbacks): Annotate arguments
24859 with ATTRIBUTE_UNUSED.
24860
24861 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
24862
24863 PR target/43921
24864 * config/i386/i386.c (get_some_local_dynamic_name): Replace
24865 INSN_P with NONDEBUG_INSN_P.
24866 (distance_non_agu_define): Likewise.
24867 (distance_agu_use): Likewise.
24868
24869 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
24870
24871 From Dominique d'Humieres <dominiq@lps.ens.fr>
24872 PR bootstrap/43858
24873 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
24874 test_set.
24875
24876 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
24877
24878 * plugin.h (invoke_plugin_callbacks): New inline function.
24879 * plugin.c (flag_plugin_added): New global flag.
24880 (add_new_plugin): Initialize above flag.
24881 (invoke_plugin_callbacks): Rename to ...
24882 (invoke_plugin_callbacks_full): ... this.
24883
24884 2010-04-28 Jan Hubicka <jh@suse.cz>
24885
24886 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
24887 (lto_varpool_replace_node): New.
24888 (lto_symtab_resolve_symbols): Resolve varpool nodes.
24889 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
24890 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
24891 * cgraph.h (varpool_node_ptr): New type.
24892 (varpool_node_ptr): New vector.
24893 (varpool_node_set_def): New structure.
24894 (varpool_node_set): New type.
24895 (varpool_node_set): New vector.
24896 (varpool_node_set_element_def): New structure.
24897 (varpool_node_set_element, const_varpool_node_set_element): New types.
24898 (varpool_node_set_iterator): New type.
24899 (varpool_node): Add prev pointers, add used_from_other_partition,
24900 in_other_partition.
24901 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
24902 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
24903 varpool_get_node, varpool_remove_node): Declare.
24904 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
24905 varpool_node_set_size): New inlines.
24906 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
24907 * tree-pass.h (varpool_node_set_def): Forward declare.
24908 (ipa_opt_pass_d): Summary writting takes vnode sets too.
24909 (ipa_write_optimization_summaries): Update prototype.
24910 * ipa-cp.c (ipcp_write_summary): Update.
24911 * ipa-reference.c (ipa_reference_write_summary): Update.
24912 * lto-cgraph.c (lto_output_varpool_node): New static function.
24913 (output_varpool): New function.
24914 (input_varpool_node): New static function.
24915 (input_varpool_1): New function.
24916 (input_cgraph): Input varpool.
24917 * ipa-pure-const.c (pure_const_write_summary): Update.
24918 * lto-streamer-out.c (lto_output): Update, output varpool too.
24919 (write_global_stream): Kill WPA hack.
24920 (produce_asm_for_decls): Update.
24921 (output_alias_pair_p): Handle variables.
24922 (output_unreferenced_globals): Output only needed partition of varpool.
24923 * ipa-inline.c (inline_write_summary): Update.
24924 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
24925 cgraph.
24926 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
24927 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
24928 varpool_node_set_new, varpool_node_set_add,
24929 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
24930 debug_varpool_node_set): New functions.
24931 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
24932 (execute_one_pass): Process new decls too.
24933 (ipa_write_summaries_2): Pass around vsets.
24934 (ipa_write_summaries_1): Likewise.
24935 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
24936 to add.
24937 (ipa_write_optimization_summaries_1): Pass around vsets.
24938 (ipa_write_optimization_summaries): Likewise.
24939 * varpool.c (varpool_get_node): New.
24940 (varpool_node): Update doubly linked lists.
24941 (varpool_remove_node): New.
24942 (dump_varpool_node): More dumping.
24943 (varpool_enqueue_needed_node): Update doubly linked lists.
24944 (decide_is_variable_needed): Kill ltrans hack.
24945 (varpool_finalize_decl): Kill lto hack.
24946 (varpool_assemble_decl): Skip decls in other partitions.
24947 (varpool_assemble_pending_decls): Update doubly linkes lists.
24948 (varpool_empty_needed_queue): Likewise.
24949 (varpool_extra_name_alias): Likewise.
24950 * lto-streamer.c (lto_get_section_name): Add vars section.
24951 * lto-streamer.h (lto_section_type): Update.
24952 (output_varpool, input_varpool): Declare.
24953
24954 2010-04-28 Mike Stump <mikestump@comcast.net>
24955
24956 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
24957
24958 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
24959
24960 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
24961 record or union type with RECORD_OR_UNION_TYPE_P predicate.
24962 (lto_input_ts_type_tree_pointers): Likewise.
24963 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
24964 (lto_output_ts_type_tree_pointers): Likewise.
24965
24966 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
24967
24968 Uniquization of constants at the Tree level
24969 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
24970 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
24971 bit to the end.
24972 (tree_output_constant_def): Declare.
24973 * gimplify.c (gimplify_init_constructor): When using block copy, first
24974 uniquize the constant constructor on the RHS.
24975 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
24976 DECL_IN_CONSTANT_POOL flag.
24977 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
24978 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
24979 constant pool.
24980 (assemble_variable): Deal with symbols belonging to the tree constant
24981 pool.
24982 (get_constant_section): Add ALIGN parameter and simplify.
24983 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
24984 (assemble_constant_contents): Use the expression of the VAR_DECL.
24985 (output_constant_def_contents): Use the alignment of the VAR_DECL.
24986 (tree_output_constant_def): New global function.
24987 (mark_constant): Use the expression of the VAR_DECL.
24988 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
24989 its expression.
24990 (output_object_block): Likewise and assemble the expression.
24991
24992 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
24993
24994 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
24995 hash_tree, eq_tree): New tree hash table.
24996 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
24997 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
24998 lto_orig_address_remove): Reimplement.
24999
25000 2010-04-28 Xinliang David Li <davidxl@google.com>
25001
25002 PR c/42643
25003 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
25004 (compute_uninit_opnds_pos): New function.
25005 (is_non_loop_exit_postdominating): New function.
25006 (compute_control_dep_chain): New function.
25007 (find_pdom): New function.
25008 (convert_control_dep_chain_into_preds): New function.
25009 (find_predicates): New function.
25010 (find_control_equiv_block): New function.
25011 (collect_phi_def_edges): New function.
25012 (find_def_preds): New function.
25013 (find_dom): New function.
25014 (dump_predicates): New function.
25015 (get_cmp_code): New function.
25016 (is_value_included_in): New function.
25017 (find_matching_predicate_in_rest_chains): New function.
25018 (use_pred_not_overlap_with_undef_path_pred): New function.
25019 (is_use_properly_guarded): New function.
25020 (normalize_cond_1): New function.
25021 (is_and_or_or): New function.
25022 (normalize_cond): New function.
25023 (is_gcond_subset_of): New function.
25024 (is_subset_of_any): New function.
25025 (is_or_set_subset_of): New function.
25026 (is_and_set_subset_of): New function.
25027 (is_norm_cond_subset_of): New function.
25028 (is_pred_expr_subset_of): New function.
25029 (is_pred_chain_subset_of): New function.
25030 (is_included_in): New function.
25031 (is_superset_of): New function.
25032 (find_uninit_use): New function.
25033 (warn_uninitialized_phi): New function.
25034 (compute_possibly_undefined_names): New function.
25035 (ssa_undefined_value_p): New function.
25036 (execute_late_warn_uninitialized): New function.
25037 * tree-ssa.c (ssa_undefined_value_p): Removed.
25038 (warn_uninit): Changed to extern.
25039 (warn_uninitialized_phi): Removed.
25040 (warn_uninitialized_vars): Changed to extern.
25041 (execute_late_warn_uninitialized): Removed
25042 * tree-flow.h: Add new prototypes.
25043 * timevar.def: Add new time variable.
25044 * Makefile.in: Add new build file.
25045
25046 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
25047
25048 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
25049 type if available.
25050
25051 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25052
25053 PR target/22224
25054 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
25055
25056 2010-04-28 Martin Jambor <mjambor@suse.cz>
25057
25058 * cgraph.h (struct cgraph_node): New field indirect_calls.
25059 (struct cgraph_indirect_call_info): New type.
25060 (struct cgraph_edge): Removed field indirect_call. New fields
25061 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
25062 (cgraph_create_indirect_edge): Declare.
25063 (cgraph_make_edge_direct): Likewise.
25064 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
25065 * ipa-prop.h (struct ipa_param_call_note): Removed.
25066 (struct ipa_node_params): Removed field param_calls.
25067 (ipa_create_all_structures_for_iinln): Declare.
25068 * cgraph.c: Described indirect edges and uids in initial comment.
25069 (cgraph_add_edge_to_call_site_hash): New function.
25070 (cgraph_edge): Search also among the indirect edges, use
25071 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
25072 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
25073 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
25074 site hash.
25075 (initialize_inline_failed): Assign a reason to indirect edges.
25076 (cgraph_create_edge_1): New function.
25077 (cgraph_create_edge): Moved some functionality to
25078 cgraph_create_edge_1.
25079 (cgraph_create_indirect_edge): New function.
25080 (cgraph_edge_remove_callee): Add an assert checking for
25081 non-indirectness.
25082 (cgraph_edge_remove_caller): Special-case indirect edges.
25083 (cgraph_remove_edge): Likewise.
25084 (cgraph_set_edge_callee): New function.
25085 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
25086 (cgraph_make_edge_direct): New function.
25087 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
25088 the declaration of the call statement matches.
25089 (cgraph_node_remove_callees): Special-case indirect edges.
25090 (cgraph_clone_edge): Likewise.
25091 (cgraph_clone_node): Clone also the indirect edges.
25092 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
25093 indirect_call, dump count of indirect_calls edges.
25094 * ipa-prop.c (iinlining_processed_edges): New variable.
25095 (ipa_note_param_call): Create indirect edges instead of
25096 creating notes. New parameter node.
25097 (ipa_analyze_call_uses): New parameter node, pass it on to
25098 ipa_note_param_call.
25099 (ipa_analyze_stmt_uses): Likewise.
25100 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
25101 (print_edge_addition_message): Work on edges rather than on notes.
25102 (update_call_notes_after_inlining): Likewise, renamed to
25103 update_indirect_edges_after_inlining.
25104 (ipa_create_all_structures_for_iinln): New function.
25105 (ipa_free_node_params_substructures): Do not free notes.
25106 (ipa_edge_duplication_hook): Propagate bits within
25107 iinlining_processed_edges bitmap.
25108 (ipa_node_duplication_hook): Do not duplicate notes.
25109 (free_all_ipa_structures_after_ipa_cp): Renamed to
25110 ipa_free_all_structures_after_ipa_cp.
25111 (free_all_ipa_structures_after_iinln): Renamed to
25112 ipa_free_all_structures_after_iinln.
25113 (ipa_write_param_call_note): Removed.
25114 (ipa_read_param_call_note): Removed.
25115 (ipa_write_indirect_edge_info): New function.
25116 (ipa_read_indirect_edge_info): Likewise.
25117 (ipa_write_node_info): Do not stream notes, do stream information
25118 in indirect edges.
25119 (ipa_read_node_info): Likewise.
25120 (lto_ipa_fixup_call_notes): Removed.
25121 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
25122 * ipa-inline.c (pass_ipa_inline): Likewise.
25123 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
25124 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
25125 * tree-inline.c (copy_bb): Removed an unnecessary double check for
25126 is_gimple_call.
25127 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
25128 edges.
25129 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
25130 (output_cgraph): Stream also indirect edges.
25131 (lto_output_edge): Added capability to stream indirect edges.
25132 (input_edge): Likewise.
25133 (input_cgraph_1): Likewise.
25134 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
25135 of indirect edges.
25136
25137 2010-04-28 Richard Guenther <rguenther@suse.de>
25138
25139 PR tree-optimization/43879
25140 PR tree-optimization/43909
25141 * tree-ssa-structalias.c (struct variable_info): Add
25142 only_restrict_pointers flag.
25143 (new_var_info): Initialize it. Increment stats.total_vars here.
25144 (create_function_info_for): Do not increment stats.total_vars here.
25145 (get_function_part_constraint): Fix build with C++.
25146 (insert_into_field_list): Remove.
25147 (push_fields_onto_fieldstack): Properly merge fields.
25148 (create_variable_info_for): Split and simplify.
25149 (create_variable_info_for_1): New piece.
25150 (intra_create_variable_infos): Properly make restrict constraints
25151 from parameters.
25152
25153 2010-04-28 Richard Guenther <rguenther@suse.de>
25154
25155 PR c++/43880
25156 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
25157
25158 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
25159 Jan Hubicka <hubicka@ucw.cz>
25160
25161 * doc/invoke.texi (-Wsuggest-attribute=const,
25162 -Wsuggest-attribute=pure): Document.
25163 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
25164 (function_always_visible_to_compiler_p,
25165 suggest_attribute, warn_function_pure, warn_function_const):
25166 New functions.
25167 (check_call): Improve debug info.
25168 (analyze_function): Do not check availability.
25169 (add_new_function): Check availability.
25170 (propagate): Output warnings.
25171 (skip_function_for_local_pure_const): New function.
25172 (local_pure_const): Use it; output warnings.
25173 * common.opt (Wsuggest-attribute=const,
25174 Wsuggest-attribute=pure): New.
25175
25176 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25177
25178 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
25179 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
25180 or DW_CFA_def_cfa_offset{,_sf}.
25181
25182 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25183
25184 * tree.h: Fix truncated long macros.
25185
25186 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
25187
25188 * collect2.c (TARGET_64BIT): Redefine to target's default.
25189 * tlink.c: Likewise.
25190 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
25191 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
25192 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
25193 for underscoring __USER_LABEL_PREFIX__.
25194 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
25195 (SUB_LINK_ENTRY32): New.
25196 (SUB_LINK_ENTRY64): New.
25197 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
25198 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
25199 (SUB_LINK_ENTRY64): New.
25200 (SUB_LINK_ENTRY): New.
25201 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
25202 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
25203 x64 target is choosen.
25204 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
25205 * configure: Regenerated.
25206 * configure.ac (leading-mingw64-underscores): Option added.
25207
25208 2010-04-27 Jan Hubicka <jh@suse.cz>
25209
25210 * doc/invoke.texi (-fipa-profile): Document.
25211 * opts.c (decode_options): Enable ipa-profile at -O1.
25212 * timevar.def (TV_IPA_PROFILE): Define.
25213 * common.opt (fipa-profile): Add.
25214 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
25215 flag for clones.
25216 (cgraph_propagate_frequency): Handle only local ones.
25217 * tree-pass.h (pass_ipa_profile): Declare.
25218 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
25219 (pass_ipa_profile): Use TV_IPA_PROFILE.
25220 * ipa.c (ipa_profile): New function.
25221 (gate_ipa_profile): Likewise.
25222 (pass_ipa_profile): New global variable.
25223 * passes.c (pass_ipa_profile): New.
25224
25225 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
25226
25227 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
25228
25229 2010-04-27 Martin Jambor <mjambor@suse.cz>
25230
25231 PR middle-end/43812
25232 * ipa.c (dissolve_same_comdat_group_list): New function.
25233 (function_and_variable_visibility): Call
25234 dissolve_same_comdat_group_list when comdat group contains external or
25235 newly local nodes.
25236 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
25237 lists are circular and that they contain only DECL_ONE_ONLY nodes.
25238
25239 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
25240
25241 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
25242 (const_hash_1) <VECTOR_CST>: New case.
25243 (compare_constant) <VECTOR_CST>: Likewise.
25244 <ADDR_EXPR>: Deal with LABEL_REFs.
25245 (copy_constant) <VECTOR_CST>: New case.
25246
25247 2010-04-27 Jan Hubicka <jh@suse.cz>
25248
25249 * cgraph.c (cgraph_propagate_frequency): New function.
25250 * cgraph.h (cgraph_propagate_frequency): Declare.
25251 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
25252 cgraph_propagate_frequency.
25253
25254 2010-04-27 Jakub Jelinek <jakub@redhat.com>
25255
25256 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
25257
25258 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
25259
25260 PR target/40657
25261 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
25262 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
25263 here to determine which regs to push and how much stack to reserve.
25264
25265 2010-04-27 Jie Zhang <jie@codesourcery.com>
25266
25267 * doc/gimple.texi (gimple_statement_with_ops): Remove
25268 addresses_taken field.
25269 (gimple_statement_with_memory_ops): Likewise.
25270
25271 2010-04-27 Jan Hubicka <jh@suse.cz>
25272
25273 * tree-inline.c (eni_inlining_weights): Remove.
25274 (estimate_num_insns): Special case more builtins.
25275
25276 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
25277
25278 PR c/32207
25279 * c-typeck.c (build_binary_op): Move forward check for comparison
25280 pointer with null pointer constant and adjust the diagnostic message.
25281
25282 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
25283
25284 PR lto/42776
25285 * configure.ac (gcc_cv_as_section_has_align): Set if installed
25286 binutils supports extended .section directive needed by LTO, or
25287 warn if older binutils found.
25288 (LTO_BINARY_READER): New AC_SUBST'd variable.
25289 (LTO_USE_LIBELF): Likewise.
25290 * config.gcc (lto_binary_reader): New target-specific configure
25291 variable.
25292 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
25293 (LTO_USE_LIBELF): Likewise.
25294 * configure: Regenerate.
25295
25296 * collect2.c (is_elf): Rename from this ...
25297 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
25298 object files in addition to ELF-formatted ones.
25299 (scan_prog_file): Caller updated. Also allow for LTO info marker
25300 symbol to be prefixed or not by an extra underscore.
25301
25302 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
25303 * config/i386/winnt.c: Also #include lto-streamer.h
25304 (i386_pe_asm_named_section): Specify 1-byte section alignment for
25305 LTO named sections.
25306 (i386_pe_asm_output_aligned_decl_common): Add comment.
25307 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
25308
25309 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
25310
25311 PR target/43889
25312 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
25313 Add missing earlyclobber for second alternative.
25314
25315 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
25316
25317 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
25318 bits for artificial defs at the top of the block.
25319 * fwprop.c (single_def_use_enter_block): Don't call it.
25320
25321 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
25322
25323 PR 43715
25324 * configure.ac: Use "$gcc_cv_nm -g" on darwin
25325 instead of "$gcc_cv_objdump -T".
25326 Use "-undefined dynamic_lookup" on darwin.
25327 * configure: Regenerate.
25328
25329 2010-04-26 Jakub Jelinek <jakub@redhat.com>
25330
25331 PR c/43893
25332 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
25333
25334 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
25335
25336 * c-parser.c (struct c_token): Move location field up.
25337 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
25338 (struct c_declspecs): Convert typespec_word, storage_class, and
25339 default_int_p into bitfields.
25340 (struct c_declarator): Move loc field up.
25341
25342 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
25343
25344 * cfgloop.h (struct loop): Move can_be_parallel field up.
25345 * ipa-prop.h (struct ip_node_params): Move bitfields up.
25346 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
25347 down.
25348 (struct iv_cand): Convert pos field into a bitfield.
25349 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
25350 field up.
25351 (struct _stmt_vec_info): Shuffle fields for better packing.
25352
25353 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
25354
25355 * varasm.c (IN_NAMED_SECTION): Remove guard.
25356 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
25357 (IN_NAMED_SECTION_P): ...this.
25358 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
25359 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
25360
25361 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
25362
25363 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
25364 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
25365 of shadowing it. Fix comments.
25366
25367 2010-04-26 Jan Hubicka <jh@suse.cz>
25368
25369 * cgraph.c (cgraph_create_node): Set node frequency to normal.
25370 (cgraph_clone_node): Copy function frequency.
25371 * cgraph.h (node_frequency): New enum
25372 (struct cgraph_node): Add.
25373 * final.c (rest_of_clean_state): Update.
25374 * lto-cgraph.c (lto_output_node): Output node frequency.
25375 (input_overwrite_node): Input node frequency.
25376 * tre-ssa-loop-ivopts (computation_cost): Update.
25377 * lto-streamer-out.c (output_function): Do not output function
25378 frequency.
25379 * predict.c (maybe_hot_frequency_p): Update and handle functions
25380 executed once.
25381 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
25382 attribute lookup.
25383 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
25384 (compute_function_frequency): Set noreturn functions to be executed
25385 once.
25386 (choose_function_section): Update.
25387 * lto-streamer-in.c (input_function): Do not input function frequency.
25388 * function.c (allocate_struct_function): Do not initialize function
25389 frequency.
25390 * function.h (function_frequency): Remove.
25391 (struct function): Remove function frequency.
25392 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
25393 (try_update): Update.
25394 * tree-inline.c (initialize_cfun): Do not update function frequency.
25395 * passes.c (pass_init_dump_file): Update.
25396 * i386.c (ix86_compute_frame_layout): Update.
25397 (ix86_pad_returns): Update.
25398
25399 2010-04-26 Jie Zhang <jie@codesourcery.com>
25400
25401 PR tree-optimization/43833
25402 * tree-vrp.c (range_int_cst_p): New.
25403 (range_int_cst_singleton_p): New.
25404 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
25405 when both operands are constants. Use range_int_cst_p in
25406 BIT_IOR_EXPR case.
25407
25408 2010-04-26 Jan Hubicka <jh@suse.cz>
25409
25410 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
25411
25412 2010-04-26 Richard Guenther <rguenther@suse.de>
25413
25414 PR lto/43080
25415 * gimple.c (gimple_decl_printable_name): Deal gracefully
25416 with a NULL DECL_NAME.
25417
25418 2010-04-26 Richard Guenther <rguenther@suse.de>
25419
25420 PR lto/42425
25421 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
25422 if emitting debug information and it is either a function
25423 or a namespace decl.
25424
25425 2010-04-26 Ira Rosen <irar@il.ibm.com>
25426
25427 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
25428 determine if the statement is vectorizable, and a macro to access it.
25429 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
25430 Skip statements that can't be vectorized. If the analysis fails,
25431 mark the statement as unvectorizable if vectorizing basic block.
25432 (vect_compute_data_refs_alignment): Likewise.
25433 (vect_verify_datarefs_alignment): Skip statements marked as
25434 unvectorizable. Add print.
25435 (vect_analyze_group_access): Skip statements that can't be
25436 vectorized. If the analysis fails, mark the statement as
25437 unvectorizable if vectorizing basic block.
25438 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
25439 * tree-vect-stmts.c (vectorizable_store): Fix the number of
25440 generated stmts for SLP.
25441 (new_stmt_vec_info): Initialize the new field.
25442 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
25443 statements marked as unvectorizable.
25444
25445 2010-04-25 Joseph Myers <joseph@codesourcery.com>
25446
25447 * c-common.c (flag_isoc1x): New.
25448 (flag_isoc99): Update comment.
25449 * c-common.h (flag_isoc1x): New.
25450 (flag_isoc99): Update comment.
25451 * c-cppbuiltin.c (builtin_define_float_constants): Also define
25452 __<type>_DECIMAL_DIG__.
25453 * c-opts.c (set_std_c1x): New.
25454 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
25455 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
25456 * c.opt (-std=c1x, -std=gnu1x): New options.
25457 * doc/cpp.texi: Mention -std=c1x.
25458 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
25459 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
25460 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
25461 * doc/standards.texi: Mention C1X.
25462 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
25463 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
25464 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
25465 Define for C1X.
25466
25467 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
25468
25469 * config/i386/gmon-sol2.c (_mcleanup): Change format string
25470 placeholder from 0x%x to %#x.
25471 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25472 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25473 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25474 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25475 * config/i386/i386.c (ix86_target_string): Ditto.
25476 (output_pic_addr_const): Ditto.
25477 (print_operand): Ditto.
25478
25479 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
25480
25481 * combine.c (find_split_point): Add third argument. Use it
25482 to find nested multiply-accumulate instructions. Adjust calls.
25483 (try_combine): Adjust call to find_split_point.
25484
25485 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
25486
25487 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
25488
25489 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
25490
25491 PR tree-optimization/41442
25492 * fold-const.c (merge_truthop_with_opposite_arm): New function.
25493 (fold_binary_loc): Call it.
25494
25495 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
25496
25497 * toplev.c (general_init): Set default for fdiagnostics-show-option.
25498 * opts.c (common_handle_option): Allow disabling it.
25499 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
25500
25501 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
25502
25503 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
25504 between modes if both types are integral.
25505
25506 2010-04-23 Richard Guenther <rguenther@suse.de>
25507
25508 PR tree-optimization/43572
25509 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
25510
25511 2010-04-23 Richard Guenther <rguenther@suse.de>
25512
25513 PR lto/43455
25514 * tree-inline.c (tree_can_inline_p): Also check compatibility
25515 of return types.
25516
25517 2010-04-23 Martin Jambor <mjambor@suse.cz>
25518
25519 PR tree-optimization/43846
25520 * tree-sra.c (struct access): New flag grp_assignment_read.
25521 (build_accesses_from_assign): Set grp_assignment_read.
25522 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
25523 (enum mark_read_status): New type.
25524 (analyze_access_subtree): Propagate grp_assignment_read, create
25525 accesses also if both direct_read and root->grp_assignment_read.
25526
25527 2010-04-23 Martin Jambor <mjambor@suse.cz>
25528
25529 PR middle-end/43835
25530 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
25531 function does not have type attributes.
25532
25533 2010-04-23 Richard Guenther <rguenther@suse.de>
25534
25535 PR lto/42653
25536 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
25537 of FUNCTION_DECLs.
25538
25539 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25540
25541 * sese.h (create_if_region_on_edge): Remove.
25542
25543 * sese.c (create_if_region_on_edge): Make static.
25544
25545 * tree-inline.c: Do not include ggc.h.
25546
25547 * expr.c: Do not include ggc.h.
25548
25549 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
25550 dependencies.
25551
25552 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
25553
25554 PR target/43744
25555 * config/sh/sh.c (find_barrier): Don't emit a constant pool
25556 in the middle of insns for casesi_worker_2.
25557
25558 2010-04-22 David Edelsohn <edelsohn@gnu.org>
25559
25560 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
25561
25562 2010-04-22 Ira Rosen <irar@il.ibm.com>
25563
25564 PR tree-optimization/43842
25565 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
25566 loop unrolling in update of exit phis. Fix comment.
25567 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
25568 least two reduction statements in the loop before starting SLP
25569 analysis.
25570
25571 2010-04-22 Nick Clifton <nickc@redhat.com>
25572
25573 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
25574
25575 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
25576
25577 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
25578 to simplify a + ~a.
25579
25580 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25581
25582 * tree-parloops.c (loop_parallel_p): New argument
25583 parloop_obstack. Pass it down.
25584 (parallelize_loops): New variable parloop_obstack. Initialize it,
25585 pass it down, free it.
25586
25587 * tree-loop-linear.c (linear_transform_loops): Pass down
25588 lambda_obstack.
25589
25590 * tree-data-ref.h (lambda_compute_access_matrices): New argument
25591 of type struct obstack *.
25592
25593 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
25594 scratch_obstack. Initialize it, pass down, free it.
25595
25596 * lambda.h (lambda_loop_new): Remove.
25597 (lambda_matrix_new, lambda_matrix_inverse)
25598 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
25599 argument of type struct obstack *.
25600
25601 * lambda-trans.c (lambda_trans_matrix_new): New argument
25602 lambda_obstack. Pass it down, use obstack allocation for ret.
25603 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
25604 it down.
25605
25606 * lambda-mat.c (lambda_matrix_get_column)
25607 (lambda_matrix_project_to_null): Remove.
25608 (lambda_matrix_new): New argument lambda_obstack. Use obstack
25609 allocation for mat.
25610 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
25611 lambda_obstack.
25612
25613 * lambda-code.c (lambda_loop_new): New function.
25614 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
25615 (lambda_compute_auxillary_space, lambda_compute_target_space)
25616 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
25617 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
25618 (build_access_matrix): New argument lambda_obstack. Use obstack
25619 allocation for am.
25620 (lambda_compute_step_signs, lambda_compute_access_matrices): New
25621 argument lambda_obstack. Pass it down.
25622
25623 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
25624
25625 * optabs.h (expand_widening_mult): Declare.
25626
25627 2010-04-22 Richard Guenther <rguenther@suse.de>
25628
25629 PR tree-optimization/43845
25630 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
25631 lookup the CALL_EXPR function and arguments.
25632
25633 2010-04-22 Nick Clifton <nickc@redhat.com>
25634
25635 * config/stormy16/stormy16.c
25636 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
25637 * config/stormy16/stormy16.h: Tidy up formatting.
25638 (DONT_USE_BUILTIN_SETJMP): Remove definition.
25639 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
25640 (ineqbranchsi): Delete pattern.
25641 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
25642 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
25643 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
25644 stormy16-lib2-ucmpsi2.c.
25645
25646 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
25647
25648 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
25649 df_simulate_find_noclobber_defs as appropriate. Keep track of an
25650 extra set merge_set_noclobber, and use it to relax the final test
25651 slightly.
25652 * df.h (df_simulate_find_noclobber_defs): Declare.
25653 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
25654 conditional defs.
25655 (df_simulate_find_noclobber_defs): New function.
25656
25657 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
25658
25659 * config/i386/i386.md: Use {} around multi-line preparation statements.
25660
25661 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25662
25663 * c-tree.h (push_init_level, pop_init_level, set_init_index)
25664 (process_init_element): New argument of type struct obstack *.
25665
25666 * c-typeck.c (push_init_level, pop_init_level, set_designator)
25667 (set_init_index, set_init_label, set_nonincremental_init)
25668 (set_nonincremental_init_from_string, find_init_member)
25669 (output_init_element, output_pending_init_elements)
25670 (process_init_element): New argument braced_init_obstack. Pass it
25671 down.
25672 (push_range_stack, add_pending_init): New argument
25673 braced_init_obstack. Use obstack allocation.
25674
25675 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
25676 braced_init_obstack. Pass it down.
25677 (c_parser_braced_init): New variables ret, braced_init_obstack.
25678 Initialize obstack, pass it down and finally free it.
25679
25680 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
25681
25682 PR middle-end/29274
25683 * tree-pass.h (pass_optimize_widening_mul): Declare.
25684 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
25685 gate_optimize_widening_mul): New static functions.
25686 (pass_optimize_widening_mul): New.
25687 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
25688 <case MULT_EXPR>: Remove support for widening multiplies.
25689 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
25690 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
25691 simplify_gen_unary rather than directly building extensions.
25692 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
25693 WIDEN_MULT_EXPR.
25694 * expmed.c (expand_widening_mult): New function.
25695 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
25696
25697 2010-04-21 Jan Hubicka <jh@suse.cz>
25698
25699 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
25700 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
25701 * lto-wpa-fixup.c: Remove.
25702 * Makefile.in (lto-wpa-fixup.o): Remove.
25703 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
25704 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
25705 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
25706
25707 2010-04-21 Jan Hubicka <jh@suse.cz>
25708
25709 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
25710 add write_optimization_summary, read_optimization_summary.
25711 (ipa_write_summaries_of_cgraph_node_set): Remove.
25712 (ipa_write_optimization_summaries): Declare.
25713 (ipa_read_optimization_summaries): Declare.
25714 * ipa-cp.c (pass_ipa_cp): Update.
25715 * ipa-reference.c (pass_ipa_reference): Update.
25716 * ipa-pure-const.c (pass_ipa_pure_const): Update.
25717 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
25718 Update.
25719 * ipa-inline.c (pass_ipa_inline): Update.
25720 * ipa.c (pass_ipa_whole_program): Update.
25721 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
25722 * passes.c (ipa_write_summaries_1): Do not test wpa.
25723 (ipa_write_optimization_summaries_1): New.
25724 (ipa_write_optimization_summaries): New.
25725 (ipa_read_summaries): Do not test ltrans.
25726 (ipa_read_optimization_summaries_1): New.
25727 (ipa_read_optimization_summaries): New.
25728
25729 2010-04-21 Jan Hubicka <jh@suse.cz>
25730
25731 * lto-cgraph.c (lto_output_node): Do not output comdat groups
25732 for boundary nodes.
25733 (output_cgraph): Do not arrange comdat groups for boundary nodes.
25734
25735 2010-04-21 Jakub Jelinek <jakub@redhat.com>
25736
25737 PR debug/40040
25738 * dwarf2out.c (add_name_and_src_coords_attributes): Add
25739 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
25740
25741 2010-04-21 Jan Hubicka <jh@suse.cz>
25742
25743 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
25744
25745 2010-04-21 Jan Hubicka <jh@suse.cz>
25746
25747 * varpool.c (decide_is_variable_needed): Variable is always needed
25748 during ltrans.
25749
25750 2010-04-21 Jan Hubicka <jh@suse.cz>
25751
25752 * opts.c (decode_options): Enable pure-const pass for whopr.
25753
25754 2010-04-21 Jan Hubicka <jh@suse.cz>
25755
25756 * cgraph.c (dump_cgraph_node): Dump also assembler name.
25757 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
25758 at WPA dumping.
25759 (cgraph_decide_inlining): Do not expect callee to be removed in all
25760 cases.
25761
25762 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
25763
25764 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
25765
25766 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
25767
25768 * config/i386/i386.md (x86_shrd): Add athlon_decode and
25769 amdfam10_decode attributes.
25770
25771 2010-04-21 Jakub Jelinek <jakub@redhat.com>
25772
25773 PR middle-end/43570
25774 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
25775 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
25776 (lower_copyprivate_clauses): Use private var in outer
25777 context instead of original var. Make sure the types
25778 are correct for VLAs.
25779
25780 2010-04-21 Richard Guenther <rguenther@suse.de>
25781
25782 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
25783 to non-pointer objects.
25784
25785 2010-04-21 Jakub Jelinek <jakub@redhat.com>
25786
25787 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
25788 last chain entry if it starts with the still current label.
25789 (add_location_or_const_value_attribute): Check that
25790 loc_list->first->next is NULL instead of comparing ->first with ->last.
25791 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
25792 to add_var_loc_to_decl.
25793
25794 * dwarf2out.c (output_call_frame_info): For dw_cie_version
25795 >= 4 add also address size and segment size fields into CIE header.
25796
25797 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
25798 long as address size is the same as sizeof (void *) and
25799 segment size is 0.
25800 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
25801 address size or segment size is unexpected, return DW_EH_PE_omit.
25802 (classify_object_over_fdes): If get_cie_encoding returned
25803 DW_EH_PE_omit, return -1.
25804 (init_object): If classify_object_over_fdes returned -1,
25805 pretend there were no FDEs at all.
25806
25807 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
25808
25809 * config/i386/i386.md (bswap<mode>2): Macroize expander from
25810 bswap{si,di}2 using SWI48 mode iterator.
25811 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
25812 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
25813 set modrm attribute of bswap insn to 0 and remove length attribute.
25814 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
25815 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
25816 set mode attribute to <MODE> and remove length attribute.
25817
25818 2010-04-20 James E. Wilson <wilson@codesourcery.com>
25819
25820 PR rtl-optimization/43520
25821 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
25822 zero available registers.
25823
25824 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25825
25826 * builtins.c (fold_builtin_cproj): Fold more cases.
25827
25828 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25829
25830 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
25831 (fold_builtin_1): Fold builtin cproj.
25832 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
25833 Use ATTR_CONST_NOTHROW_LIST.
25834
25835 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
25836
25837 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
25838 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
25839 ffsi2_no_cmove for !TARGET_CMOVE.
25840 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
25841 (ffssi2): Remove expander.
25842 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
25843 mode iterator.
25844 (ctz<mode>2): Ditto from ctz{si,di}2.
25845 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
25846 mode iterator.
25847 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
25848 mode iterator.
25849
25850 2010-04-20 Jakub Jelinek <jakub@redhat.com>
25851
25852 * dwarf2out.c (AT_linkage_name): Define.
25853 (clone_as_declaration): Handle DW_AT_linkage_name.
25854 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
25855 of DW_AT_MIPS_linkage_name.
25856 (move_linkage_attr): Likewise.
25857 (dwarf2out_finish): Likewise.
25858
25859 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
25860
25861 PR middle-end/41952
25862 * fold-const.c (fold_comparison): New folding rule.
25863
25864 2010-04-20 Anatoly Sokolov <aesok@post.ru>
25865
25866 * double-int.h (double_int_setbit): Declare.
25867 * double-int.c (double_int_setbit): New function.
25868 * rtl.h (immed_double_int_const): Declare.
25869 * emit-rtl.c (immed_double_int_const): New function.
25870 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
25871 and immed_double_int_const functions.
25872 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
25873 expand_copysign_bit): (Ditto.).
25874 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
25875 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
25876 * dojump.c (prefer_and_bit_test): (Ditto.).
25877 * expr.c (convert_modes, reduce_to_bit_field_precision,
25878 const_vector_from_tree): (Ditto.).
25879 * expmed.c (mask_rtx, lshift_value): (Ditto.).
25880
25881 2010-04-20 Jan Hubicka <jh@suse.cz>
25882
25883 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
25884 (dump_cgraph_node): Dump new flags.
25885 * cgraph.h (struct cgraph_node): Add flags
25886 reachable_from_other_partition and in_other_partition.
25887 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
25888 other partition can not be removed.
25889 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
25890 the other partition must be output; silence sanity checking on
25891 leaking functions bodies from other paritition.
25892 * lto-cgraph.c (reachable_from_other_partition_p): New function.
25893 (lto_output_node): Output new flags; do not sanity check that inline
25894 clones are output; drop lto_forced_extern_inline_p code; do not mock
25895 visibility flags at partition boundaries.
25896 (add_node_to): New function.
25897 (output_cgraph): Use it to sort functions so masters appear before
25898 clones.
25899 (input_overwrite_node): Input new flags.
25900 * passes.c (ipa_write_summaries): Do not call
25901 lto_new_extern_inline_states.
25902 * lto-section-out.c (forced_extern_inline,
25903 lto_new_extern_inline_states lto_delete_extern_inline_states,
25904 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
25905 * lto-streamer.h (lto_new_extern_inline_states,
25906 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
25907 lto_forced_extern_inline_p): Kill.
25908
25909 2010-04-20 Richard Guenther <rguenther@suse.de>
25910
25911 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
25912 from vars that can have pointers.
25913 (process_constraint): Dump useless constraints.
25914
25915 2010-04-20 Richard Guenther <rguenther@suse.de>
25916
25917 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
25918 (dump_sa_points_to_info): Remove asserts.
25919 (init_base_vars): nothing_id isn't an escape point nor does it
25920 have pointers.
25921
25922 2010-04-20 Jakub Jelinek <jakub@redhat.com>
25923
25924 * tree.h (TYPE_REF_IS_RVALUE): Define.
25925 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
25926 should_move_die_to_comdat, prune_unused_types_walk): Handle
25927 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
25928 (modified_type_die, gen_reference_type_die): Emit
25929 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
25930 if TYPE_REF_IS_RVALUE and -gdwarf-4.
25931
25932 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25933
25934 PR target/43635
25935 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
25936 calls for -fpic -m31 if they have been sibcall optimized.
25937
25938 2010-04-19 James E. Wilson <wilson@codesourcery.com>
25939
25940 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
25941 ar.lc fixed and call-used.
25942
25943 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
25944
25945 2010-04-19 Jan Hubicka <jh@suse.cz>
25946
25947 * opts.c (decode_options): Disable whpr incompatible passes.
25948 * lto/lto.c (lto_1_to_1_map): Skip clones.
25949 (read_cgraph_and_symbols): Do not mark everything as needed.
25950 (do_whole_program_analysis): Do map only after optimizing;
25951 set proper cgraph_state; use passmanager.
25952
25953 2010-04-19 DJ Delorie <dj@redhat.com>
25954
25955 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
25956 POINTER_PLUS_EXPR and fix them.
25957
25958 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
25959
25960 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
25961 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
25962 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
25963 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
25964 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
25965 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
25966 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
25967 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
25968 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
25969 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
25970 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
25971
25972 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
25973
25974 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
25975 (check_cond_move_block): Likewise.
25976 (cond_move_process_if_block): Likewise.
25977 (noce_find_if_block): Improve formatting.
25978 (find_if_header): Pass 0 to memset and tweak conditions.
25979 (cond_exec_find_if_block): Fix long lines and tweak conditions.
25980
25981 2010-04-19 Jakub Jelinek <jakub@redhat.com>
25982
25983 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
25984 for -gdwarf-4.
25985
25986 PR middle-end/43337
25987 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
25988 with non-local decl doesn't need chain.
25989
25990 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
25991
25992 * ira-color.c (allocno_reload_assign): Avoid accumulating
25993 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
25994
25995 2010-04-19 Martin Jambor <mjambor@suse.cz>
25996
25997 * gimple.h (create_tmp_reg): Declare.
25998 * gimplify.c (create_tmp_reg): New function.
25999 (gimplify_return_expr): Use create_tmp_reg.
26000 (gimplify_omp_atomic): Likewise.
26001 (gimple_regimplify_operands): Likewise.
26002 * tree-dfa.c (make_rename_temp): Likewise.
26003 * tree-predcom.c (predcom_tmp_var): Likewise.
26004 (reassociate_to_the_same_stmt): Likewise.
26005 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
26006 (get_replaced_param_substitute): Likewise.
26007 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
26008 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
26009 * tree-ssa-pre.c (get_representative_for): Likewise.
26010 (create_expression_by_pieces): Likewise.
26011 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
26012 (create_tailcall_accumulator): Likewise.
26013
26014 2010-04-19 Martin Jambor <mjambor@suse.cz>
26015
26016 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
26017 new_stmt.
26018 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
26019
26020 2010-04-19 Richard Guenther <rguenther@suse.de>
26021
26022 PR tree-optimization/43796
26023 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
26024 from SCEV in the lattice.
26025 (vrp_visit_phi_node): Dump change.
26026
26027 2010-04-19 Richard Guenther <rguenther@suse.de>
26028
26029 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
26030 * configure: Re-generated.
26031
26032 2010-04-19 Richard Guenther <rguenther@suse.de>
26033
26034 PR tree-optimization/43783
26035 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
26036 constant ARRAY_REF operands two and three if possible.
26037
26038 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
26039
26040 PR target/43766
26041 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
26042
26043 2010-04-19 Jie Zhang <jie@codesourcery.com>
26044
26045 PR target/43662
26046 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
26047
26048 2010-04-19 Ira Rosen <irar@il.ibm.com>
26049
26050 PR tree-optimization/37027
26051 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
26052 and macro to access it.
26053 (vectorizable_reduction): Add argument.
26054 (vect_get_slp_defs): Likewise.
26055 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
26056 statements for possible use in SLP.
26057 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
26058 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
26059 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
26060 add new argument.
26061 (vectorizable_reduction): Likewise.
26062 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
26063 vect_get_slp_defs.
26064 (vectorizable_type_demotion, vectorizable_type_promotion,
26065 vectorizable_store): Likewise.
26066 (vect_analyze_stmt): Update call to vectorizable_reduction.
26067 (vect_transform_stmt): Likewise.
26068 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
26069 (vect_build_slp_tree): Fix indentation. Check that there are no loads
26070 from different interleaving chains in same node.
26071 (vect_slp_rearrange_stmts): New function.
26072 (vect_supported_load_permutation_p): Allow load permutations for
26073 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
26074 inside SLP nodes if necessary.
26075 (vect_analyze_slp_instance): Handle reductions.
26076 (vect_analyze_slp): Try to build SLP instances originating from groups
26077 of reductions.
26078 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
26079 (vect_get_constant_vectors): Create initial vectors for reductions
26080 according to reduction code. Add new argument.
26081 (vect_get_slp_defs): Add new argument, pass it to
26082 vect_get_constant_vectors.
26083 (vect_schedule_slp_instance): Remove SLP tree root statements.
26084
26085 2010-04-19 Jakub Jelinek <jakub@redhat.com>
26086
26087 * tree.h (ENUM_IS_SCOPED): Define.
26088 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
26089 for ENUM_IS_SCOPED enums.
26090
26091 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
26092
26093 * fold-const.c (fold_comparison): Use ssizetype.
26094 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
26095 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
26096 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
26097 * tree-object-size.c (compute_object_sizes): Use size_type_node.
26098
26099 * tree.h (initialize_sizetypes): Remove parameter.
26100 (build_common_tree_nodes): Remove second parameter.
26101 * stor-layout.c (initialize_sizetypes): Remove parameter.
26102 Always create an unsigned type.
26103 (set_sizetype): Assert that the passed type is unsigned and simplify.
26104 * tree.c (build_common_tree_nodes): Remove second parameter.
26105 Adjust call to initialize_sizetypes.
26106 * c-decl.c (c_init_decl_processing): Remove second argument in call to
26107 build_common_tree_nodes.
26108
26109 2010-04-18 Matthias Klose <doko@ubuntu.com>
26110
26111 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
26112
26113 2010-04-18 Ira Rosen <irar@il.ibm.com>
26114
26115 PR tree-optimization/43771
26116 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
26117 load permutation doesn't have gaps.
26118
26119 2010-04-18 Jan Hubicka <jh@suse.cz>
26120
26121 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
26122 (sse_prologue_save_insn expander): Use new pattern.
26123 (sse_prologue_save_insn1): New pattern and splitter.
26124 (sse_prologue_save_insn): Update to deal also with 64bit aligned
26125 blocks.
26126 * i386.c (setup_incoming_varargs_64): Do not compute jump
26127 destination here.
26128 (ix86_gimplify_va_arg): Update alignment needed.
26129 (ix86_local_alignment): Do not align all local arrays to 128bit.
26130
26131 2010-04-17 Jan Hubicka <jh@suse.cz>
26132
26133 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
26134
26135 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26136
26137 * arm.md (negdi2): Remove redundant code to force values into a
26138 register.
26139
26140 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26141
26142 * arm/bpabi.S: Add EABI alignment attributes to objects.
26143 * arm/bpabi-v6m.S: Likewise.
26144 * arm/crti.asm: Likewise.
26145 * arm/crtn.asm: Likewise.
26146 * arm/lib1funcs.asm: Likewise.
26147 * arm/libunwind.S: Likewise.
26148
26149 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
26150
26151 * arm-protos.h (tune_params): New structure.
26152 * arm.c (current_tune): New variable.
26153 (arm_constant_limit): Delete.
26154 (struct processors): Add pointer to the tune parameters.
26155 (arm_slowmul_tune): New tuning option.
26156 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
26157 (all_cores): Adjust to pick up the tuning model.
26158 (arm_constant_limit): New function.
26159 (arm_override_options): Select the appropriate tuning model. Delete
26160 initialization of arm_const_limit.
26161 (arm_split_constant): Use the new constant-limit model.
26162 (arm_rtx_costs): Pick up the current tuning model.
26163 * arm.md (is_strongarm, is_xscale): Delete.
26164 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
26165 for Xscale variant architectures.
26166 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
26167
26168 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26169
26170 * config/arm/arm.c (arm_gen_constant): Remove unused variable
26171 can_shift.
26172 (arm_rtx_costs_1): Remove unused variable extra_cost.
26173 (arm_unwind_emit_set): Use variable offset.
26174 (thumb1_output_casesi): Remove unused variable flags.
26175
26176 2010-04-16 Jeff Law <law@redhat.com>
26177
26178 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
26179 needing assignment rather than doing a two-phase assignment. Remove
26180 unused variable 'm'.
26181
26182 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26183
26184 PR bootstrap/43767
26185 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
26186
26187 2010-04-16 Doug Kwan <dougkwan@google.com>
26188
26189 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
26190 (next_operand_entry_id): New static variable.
26191 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
26192 (add_to_ops_vec): Assigned unique ID to operand entry.
26193 (struct oecount_s): New field ID.
26194 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
26195 (undistribute_ops_list): Assign unique IDs to oecounts.
26196 (init_reassoc): reset next_operand_entry_id.
26197
26198 2010-04-16 Doug Kwan <dougkwan@google.com>
26199
26200 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
26201 missing left parenthesis.
26202
26203 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
26204
26205 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
26206 *btdi_rex64 using SWI48 mode iterator.
26207 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
26208 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
26209 *jcc_btdi_mask_rex64.
26210
26211 2010-04-16 Anatoly Sokolov <aesok@post.ru>
26212
26213 * double-int.h (tree_to_double_int): Convert to macro.
26214 * double-int.c (tree_to_double_int): Remove.
26215
26216 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26217
26218 PR debug/43762
26219 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
26220 with want_address 2 and in case a single element list might be
26221 possible, call it again with want_address 0.
26222
26223 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26224
26225 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
26226 case 'W' print operands for HI mode.
26227 * config/h8300/h8300.h (Y0, Y2) : New constraints.
26228 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
26229 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
26230 * config/h8300/predicate.md (bit_register_indirect_operand): New.
26231
26232 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
26233
26234 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
26235 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
26236 #xx:3 and #xx:4 mode.
26237
26238 * config/h8300/h8300.md (inverted load with HImode dest): Add
26239 support for H8300SX.
26240
26241 * config/h8300/predicate.md (bit_operand): Allow immediate values that
26242 satisfy 'U' constraint.
26243
26244 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26245
26246 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
26247 * configure: Regenerate.
26248 * config.in: Regenerate.
26249 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
26250 works.
26251
26252 2010-04-16 Richard Guenther <rguenther@suse.de>
26253
26254 * tree.h (struct tree_decl_minimal): Move pt_uid ...
26255 (struct tree_decl_common): ... here.
26256 (DECL_PT_UID): Adjust.
26257 (SET_DECL_PT_UID): Likewise.
26258 (DECL_PT_UID_SET_P): Likewise.
26259
26260 2010-04-16 Richard Guenther <rguenther@suse.de>
26261
26262 PR tree-optimization/43572
26263 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
26264 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
26265 * tree-flow.h (is_call_clobbered): Remove.
26266 * tree-flow-inline.h (is_call_clobbered): Likewise.
26267 * tree-dfa.c (dump_variable): Do not dump call clobber state.
26268 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
26269 (execute_return_slot_opt): Adjust.
26270 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
26271 check for call clobbered vars here.
26272 (find_tail_calls): Move tailcall verification to the
26273 proper place.
26274
26275 2010-04-16 Diego Novillo <dnovillo@google.com>
26276
26277 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
26278
26279 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26280
26281 PR target/40603
26282 * config/arm/arm.md (cbranchqi4): New pattern.
26283 * config/arm/predicates.md (const0_operand,
26284 cbranchqi4_comparison_operator): New predicates.
26285
26286 2010-04-16 Richard Guenther <rguenther@suse.de>
26287
26288 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
26289 (dump_gimple_stmt): Likewise.
26290
26291 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
26292
26293 * recog.h (struct recog_data): New field is_operator.
26294 (struct insn_operand_data): New field is_operator.
26295 * recog.c (extract_insn): Set recog_data.is_operator.
26296 * genoutput.c (output_operand_data): Emit code to set the
26297 is_operator field.
26298 * reload.c (find_reloads): Use it rather than testing for an
26299 empty constraint string.
26300
26301 PR target/41514
26302 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
26303 If the previous insn is a cbranchsi4_insn with the same arguments,
26304 omit the compare instruction.
26305
26306 * config/arm/arm.md (addsi3_cbranch): If destination is a high
26307 register, inputs must be low registers and we need a low register
26308 scratch. Handle alternative 2 like alternative 3.
26309
26310 2010-04-16 Jakub Jelinek <jakub@redhat.com>
26311
26312 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
26313 don't call get_addr on both. If one expression is a VALUE and
26314 the other a REG, check VALUE's locs if the REG isn't among them.
26315
26316 2010-04-16 Christian Bruel <christian.bruel@st.com>
26317
26318 * config/sh/sh.h (sh_frame_pointer_required): New function.
26319 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
26320 (flag_omit_frame_pointer) Set.
26321 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
26322 (rounded_frame_size): Adjust size with outgoing_args_size.
26323 (sh_set_return_address): Must return from stack pointer.
26324 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
26325 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
26326 (ACCUMULATE_OUTGOING_ARGS): Define.
26327 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
26328 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
26329
26330 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
26331
26332 PR target/43471
26333 * config/sh/sh.c (sh_legitimize_reload_address): Use
26334 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
26335 Remove a unneeded check for offset_base.
26336
26337 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
26338
26339 * configure: Regenerated.
26340
26341 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26342
26343 * config/s390/s390.c (s390_call_save_register_used): Switch back
26344 to HARD_REGNO_NREGS.
26345
26346 2010-04-15 Richard Guenther <rguenther@suse.de>
26347
26348 * alias.c (alias_set_subset_of): Handle alias-set zero
26349 child properly.
26350
26351 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
26352 Julian Brown <julian@codesourcery.com>
26353
26354 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
26355 alternatives according to use of high and low regs.
26356 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
26357 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
26358 optimizing for size on Thumb-2.
26359
26360 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
26361
26362 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
26363
26364 2010-04-15 Richard Guenther <rguenther@suse.de>
26365
26366 * tree-ssa-structalias.c (struct variable_info): Add
26367 is_fn_info flag.
26368 (new_var_info): Initialize it.
26369 (dump_constraints): Support printing last added constraints.
26370 (debug_constraints): Adjust.
26371 (dump_constraint_graph): Likewise.
26372 (make_heapvar_for): Check for NULL cfun.
26373 (get_function_part_constraint): New function.
26374 (get_fi_for_callee): Likewise.
26375 (find_func_aliases): Properly implement IPA PTA constraints.
26376 (process_ipa_clobber): New function.
26377 (find_func_clobbers): Likewise.
26378 (insert_into_field_list_sorted): Remove.
26379 (create_function_info_for): Properly allocate vars for IPA mode.
26380 Do not use insert_into_field_list_sorted.
26381 (create_variable_info_for): Properly generate constraints for
26382 global vars in IPA mode.
26383 (dump_solution_for_var): Always dump the solution.
26384 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
26385 (find_what_var_points_to): Adjust.
26386 (pt_solution_set): Change.
26387 (pt_solution_ior_into): New function.
26388 (pt_solution_empty_p): Export.
26389 (pt_solution_includes_global): Adjust.
26390 (pt_solution_includes_1): Likewise.
26391 (pt_solutions_intersect_1): Likewise.
26392 (dump_sa_points_to_info): Check some invariants.
26393 (solve_constraints): Move constraint dumping ...
26394 (compute_points_to_sets): ... here.
26395 (ipa_pta_execute): ... and here.
26396 (compute_may_aliases): Do not re-compute points-to info
26397 locally if IPA info is available.
26398 (ipa_escaped_pt): New global var.
26399 (ipa_pta_execute): Properly implement IPA PTA.
26400 * tree-into-ssa.c (dump_decl_set): Support dumping
26401 decls not in referenced-vars.
26402 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
26403 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
26404 (dump_points_to_solution): Likewise.
26405 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
26406 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
26407 (remap_gimple_stmt): Reset call clobber/use information if necessary.
26408 (copy_decl_to_var): Copy DECL_PT_UID.
26409 (copy_result_decl_to_var): Likewise.
26410 * tree.c (make_node_stat): Initialize DECL_PT_UID.
26411 (copy_node_stat): Copy it.
26412 * tree.h (DECL_PT_UID): New macro.
26413 (SET_DECL_PT_UID): Likewise.
26414 (DECL_PT_UID_SET_P): Likewise.
26415 (struct tree_decl_minimal): Add pt_uid member.
26416 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
26417 (pt_solution_empty_p): Declare.
26418 (pt_solution_set): Adjust.
26419 (ipa_escaped_pt): Declare.
26420 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
26421 * gimple-pretty-print.c (pp_points_to_solution): New function.
26422 (dump_gimple_call): Dump call clobber/use information.
26423 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
26424 * tree-pass.h (TDF_ALIAS): New dump option.
26425 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
26426 * doc/invoke.texi (-fipa-pta): Update documentation.
26427
26428 2010-04-15 Richard Guenther <rguenther@suse.de>
26429
26430 * Makefile.in (OBJS-common): Add gimple-fold.o.
26431 (gimple-fold.o): New rule.
26432 * tree.h (maybe_fold_offset_to_reference,
26433 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
26434 prototypes ...
26435 * gimple.h: ... here.
26436 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
26437 may_propagate_address_into_dereference): Move prototypes ...
26438 * gimple.h: ... here.
26439 * tree-ssa-ccp.c (get_symbol_constant_value,
26440 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
26441 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
26442 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
26443 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
26444 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
26445 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
26446 gimplify_and_update_call_from_tree): Move ...
26447 * gimple-fold.c: ... here. New file.
26448 (ccp_fold_builtin): Rename to ...
26449 (gimple_fold_builtin): ... this.
26450 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
26451
26452 2010-04-15 Richard Guenther <rguenther@suse.de>
26453
26454 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
26455 fit_double_type, force_fit_type_double, add_double_with_sign,
26456 neg_double, mul_double_with_sign, lshift_double, rshift_double,
26457 lrotate_double, rrotate_double, div_and_round_double): Move ...
26458 * double-int.c: ... here.
26459 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
26460 add_double, neg_double, mul_double_with_sign, mul_double,
26461 lshift_double, rshift_double, lrotate_double, rrotate_double,
26462 div_and_round_double): Move prototypes ...
26463 * double-int.h: ... here.
26464
26465 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
26466
26467 PR target/43742
26468 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
26469 matching constraints to ensure inputs match the output.
26470
26471 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
26472
26473 PR target/43742
26474 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
26475 in an input-only operand.
26476
26477 2010-04-15 Anatoly Sokolov <aesok@post.ru>
26478
26479 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
26480 (double_int_not, double_int_lshift, double_int_rshift): Declare.
26481 (double_int_negative_p): Convert to static inline function.
26482 * double-int.c (double_int_lshift, double_int_lshift): New functions.
26483 (double_int_negative_p): Remove.
26484 * tree.h (lshift_double, rshift_double):
26485 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
26486 * fold-const.c (fold_convert_const_int_from_real,
26487 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
26488 (lshift_double): Change type of arith argument to bool.
26489 (rshift_double): Change type of arith argument to bool. Correct
26490 comment.
26491 * expmed.c (mask_rtx, lshift_value): (Ditto.).
26492
26493 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
26494
26495 PR target/21803
26496 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
26497 at the start and end of the then/else blocks, and omit them from the
26498 conversion.
26499 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
26500 argument; all callers changed. Pass zero to old_insns_match_p instead.
26501 (flow_find_head_matching_sequence): New function.
26502 (old_insns_match_p): Check REG_EH_REGION notes for calls.
26503 * basic-block.h (flow_find_cross_jump,
26504 flow_find_head_matching_sequence): Declare functions.
26505
26506 2010-04-14 Jason Merrill <jason@redhat.com>
26507
26508 PR c++/36625
26509 * c-common.c (attribute_takes_identifier_p): New fn.
26510 * c-common.h: Declare it.
26511
26512 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26513
26514 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
26515 splitter condition.
26516 (*udivmod<mode>4): Ditto.
26517
26518 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26519
26520 * config/i386/i386.md (maxmin_int): Rename code attribute from
26521 maxminiprefix and update all users.
26522 (maxmin_float): Ditto from maxminfprefix.
26523 (logic): Ditto from logicprefix.
26524 (absneg_mnemonic): Ditto from absnegprefix.
26525 * config/i386/mmx.md: Update all users of maxminiprefix,
26526 maxminfprefix and logicprefix for rename.
26527 * config/i386/sse.md: Ditto.
26528 * config/i386/sync.md (sync_<code><mode>): Update for
26529 logicprefix rename.
26530
26531 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
26532
26533 PR 42966
26534 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
26535 warnings converted to errors.
26536
26537 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26538
26539 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
26540 used insn_type variable.
26541 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
26542 to avoid set-but-not-used warning.
26543
26544 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26545
26546 * df-core.c (df_ref_debug): Change format string placeholder
26547 from 0x%x to %#x.
26548 * dwarf2asm.c (dw2_asm_output_data_raw,
26549 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
26550 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
26551 * dwarf2out.c (output_cfi, output_cfi_directive,
26552 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
26553 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
26554 Ditto.
26555 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
26556 * print-rtl.c (print_rtx): Ditto.
26557
26558 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26559
26560 PR middle-end/42694
26561 * builtins.c (expand_builtin_pow_root): New function to expand pow
26562 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
26563 series of sqrt and cbrt calls under -ffast-math.
26564 (expand_builtin_pow): Call it.
26565
26566 2010-04-14 Michael Matz <matz@suse.de>
26567
26568 PR tree-optimization/42963
26569 * tree-cfg.c (touched_switch_bbs): New static variable.
26570 (group_case_labels_stmt): New function broken out from ...
26571 (group_case_labels): ... here, use the above.
26572 (start_recording_case_labels): Allocate touched_switch_bbs.
26573 (end_recording_case_labels): Deallocate it, call
26574 group_case_labels_stmt.
26575 (gimple_redirect_edge_and_branch): Remember index of affected BB.
26576
26577 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26578
26579 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
26580 from insn template.
26581
26582 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
26583
26584 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
26585
26586 2010-04-13 Jan Hubicka <jh@suse.cz>
26587
26588 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
26589 of optimized out static functions.
26590 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
26591 cost computation. Also sanity check for overflows.
26592 (update_caller_keys): Update cgraph_edge_badness call; properly
26593 update fibheap and sanity check that it is up to date.
26594 (add_new_edges_to_heap): Update cgraph_edge_badness.
26595 (cgraph_decide_inlining_of_small_function): Likewise;
26596 add sanity checking that badness in heap is up to date;
26597 improve dumping of reason; Update badness of calls to the
26598 offline copy of function currently inlined; dump badness
26599 of functions not inlined because of unit growth limits.
26600
26601 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
26602
26603 PR middle-end/32628
26604 * c-common.c (pointer_int_sum): Disregard overflow that occured only
26605 because of sign-extension change when converting to sizetype here...
26606 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
26607
26608 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
26609 the folding to constants. Remove redundant final conversion.
26610 (fold_binary) <associate>: Do not associate if the re-association of
26611 constants alone overflows.
26612 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
26613 to the end of the list.
26614 (multiple_of_p) <COND_EXPR>: New case.
26615
26616 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
26617
26618 * opt-functions.awk (opt_sanitized_name): New.
26619 (opt_enum): New.
26620 * optc-gen.awk: Use it
26621 * opth-gen.awk: Use it.
26622
26623 2010-04-13 Martin Jambor <mjambor@suse.cz>
26624
26625 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
26626 (sra_modify_assign): Delete stmts loading dead data even if racc has no
26627 children. Call replace_uses_with_default_def_ssa_name to handle
26628 SSA_NAES on lhs.
26629
26630 2010-04-13 Michael Matz <matz@suse.de>
26631
26632 PR middle-end/43730
26633 * builtins.c (expand_builtin_interclass_mathfn): Also create
26634 a register if the predicate doesn't match.
26635
26636 2010-04-13 Diego Novillo <dnovillo@google.com>
26637
26638 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
26639 * c-pch.c: Include timevar.h.
26640 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
26641 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
26642 * ggc-common.c: Include timevar.h.
26643 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
26644 * timevar.def (TV_PCH_SAVE): Define.
26645 (TV_PCH_CPP_SAVE): Define.
26646 (TV_PCH_PTR_REALLOC): Define.
26647 (TV_PCH_PTR_SORT): Define.
26648 (TV_PCH_RESTORE): Define.
26649 (TV_PCH_CPP_RESTORE): Define.
26650
26651 2010-04-13 Michael Matz <matz@suse.de>
26652
26653 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
26654 into MINUS_EXPRs.
26655 (can_reassociate_p): New function.
26656 (break_up_subtract_bb, reassociate_bb): Use it.
26657
26658 2010-04-13 Richard Guenther <rguenther@suse.de>
26659
26660 PR bootstrap/43737
26661 * builtins.c (c_readstr): Fix assert.
26662
26663 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
26664
26665 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
26666 when generating cltd insn.
26667
26668 (*ashl<mode>3_1): Remove special handling for register operand 2.
26669 (*ashlsi3_1_zext): Ditto.
26670 (*ashlhi3_1): Ditto.
26671 (*ashlhi3_1_lea): Ditto.
26672 (*ashlqi3_1): Ditto.
26673 (*ashlqi3_1_lea): Ditto.
26674 (*<shiftrt_insn><mode>3_1): Ditto.
26675 (*<shiftrt_insn>si3_1_zext): Ditto.
26676 (*<shiftrt_insn>qi3_1_slp): Ditto.
26677 (*<rotate_insn><mode>3_1): Ditto.
26678 (*<rotate_insn>si3_1_zext): Ditto.
26679 (*<rotate_insn>qi3_1_slp): Ditto.
26680
26681 2010-04-13 Richard Guenther <rguenther@suse.de>
26682
26683 * tree-ssa-structalias.c (callused_id): Remove.
26684 (call_stmt_vars): New.
26685 (get_call_vi): Likewise.
26686 (lookup_call_use_vi): Likewise.
26687 (lookup_call_clobber_vi): Likewise.
26688 (get_call_use_vi): Likewise.
26689 (get_call_clobber_vi): Likewise.
26690 (make_transitive_closure_constraints): Likewise.
26691 (handle_const_call): Adjust to do per-call call-used handling.
26692 (handle_pure_call): Likewise.
26693 (find_what_var_points_to): Remove general callused handling.
26694 (init_base_vars): Likewise.
26695 (init_alias_vars): Initialize call_stmt_vars.
26696 (compute_points_to_sets): Process call-used and call-clobbered
26697 vars for call statements.
26698 (delete_points_to_sets): Free call_stmt_vars.
26699
26700 2010-04-13 Richard Guenther <rguenther@suse.de>
26701
26702 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26703 Only add RW dependence for dependence distance zero.
26704 Adjust maximal vectorization factor according to dependences.
26705 Move alignment handling ...
26706 (vect_find_same_alignment_drs): ... here. New function.
26707 (vect_analyze_data_ref_dependences): Adjust.
26708 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
26709 (vect_analyze_data_refs): Adjust minimal vectorization factor
26710 according to data references.
26711 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
26712 dependences before determining the vectorization factor.
26713 Analyze alignment after determining the vectorization factor.
26714 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
26715 dependences before alignment.
26716 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
26717 Adjust prototype.
26718 (vect_analyze_data_refs): Likewise.
26719 (MAX_VECTORIZATION_FACTOR): New define.
26720
26721 2010-04-13 Duncan Sands <baldrick@free.fr>
26722
26723 * except.h (lang_eh_type_covers): Remove.
26724 * except.c (lang_eh_type_covers): Likewise.
26725
26726 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26727 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26728
26729 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
26730 * config/s390/s390.c: Replace UNTIS_PER_WORD with
26731 UNITS_PER_LONG where it is ABI relevant.
26732 (s390_return_addr_rtx): Likewise.
26733 (s390_back_chain_rtx): Likewise.
26734 (s390_frame_area): Likewise.
26735 (s390_frame_info): Likewise.
26736 (s390_initial_elimination_offset): Likewise.
26737 (save_gprs): Likewise.
26738 (s390_emit_prologue): Likewise.
26739 (s390_emit_epilogue): Likewise.
26740 (s390_function_arg_advance): Likewise.
26741 (s390_function_arg): Likewise.
26742 (s390_va_start): Likewise.
26743 (s390_gimplify_va_arg): Likewise.
26744 (s390_function_profiler): Likewise.
26745 (s390_optimize_prologue): Likewise.
26746 (s390_rtx_costs): Likewise.
26747 (s390_secondary_reload): Likewise.
26748 (s390_promote_function_mode): Likewise.
26749 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
26750 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
26751 registers available.
26752 (s390_unwind_word_mode): New function.
26753 (s390_function_value): Split 64 bit values into register pair if
26754 used as return value.
26755 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
26756 function call parameters. Handle parallels.
26757 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
26758 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
26759 (DWARF_CIE_DATA_ALIGNMENT): New macro.
26760 (s390_expand_setmem): Remove unused variable src_addr.
26761 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
26762 deal with 64 bit registers.
26763 * config/s390/s390.h: Define __zarch__ predefined macro.
26764 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
26765 (UNITS_PER_LONG): New macro.
26766 * libjava/include/s390-signal.h: Define extended ucontext
26767 structure containing the upper halfs of the 64 bit registers.
26768
26769 2010-04-13 Simon Baldwin <simonb@google.com>
26770
26771 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
26772
26773 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
26774
26775 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
26776 rvalue on the RHS if the LHS is of a non-renamable type.
26777 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
26778
26779 2010-04-13 Matthias Klose <doko@ubuntu.com>
26780
26781 * gcc.c (cc1_options): Handle -iplugindir before processing
26782 the cc1 spec. Only add -iplugindir once.
26783 (cpp_unique_options): Add -iplugindir option if -fplugin* options
26784 found.
26785 * common.opt (iplugindir): Remove `Separate' property, initialize.
26786 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
26787 option.
26788 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
26789 (distclean): Remove plugin dir.
26790 * doc/invoke.texi: Document -iplugindir.
26791
26792 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
26793
26794 * doc/plugins.texi (Loading Plugins): Document short
26795 -fplugin=foo option.
26796 (Plugin API): Mention default_plugin_dir_name function.
26797
26798 * gcc.c (find_file_spec_function): Add new declaration.
26799 (static_spec_func): Use it for "find-file".
26800 (find_file_spec_function): Add new function.
26801 (cc1_options): Add -iplugindir option if -fplugin* options found.
26802
26803 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
26804
26805 * plugin.c (add_new_plugin): Updated comment, and handle short
26806 plugin name.
26807 (default_plugin_dir_name): Added new function.
26808
26809 * common.opt (iplugindir): New option to set the plugin directory.
26810
26811 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
26812
26813 * config/i386/i386.md (any_rotate): New code iterator.
26814 (rotate_insn): New code attribute.
26815 (rotate): Ditto.
26816 (SWIM124): New mode iterator.
26817 (<rotate_insn>ti3): New expander.
26818 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
26819 any_rotate code iterator.
26820 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
26821 using any_rotate code iterator and SWIM124 mode iterator.
26822 (ix86_rotlti3): New insn_and_split pattern.
26823 (ix86_rotrti3): Ditto.
26824 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
26825 ix86_rotl{di,ti}3 patterns.
26826 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
26827 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
26828 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
26829 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
26830 code iterator and SWI mode iterator.
26831 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
26832 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
26833 code iterator.
26834 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
26835 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
26836 (bswap rotatert splitter): Add splitter.
26837 (bswap splitter): Macroize splitter using any_rotate code iterator.
26838 Add insn predicate to split only for TARGET_USE_XCHGB or when
26839 optimizing function for size.
26840
26841 2010-04-12 Steve Ellcey <sje@cup.hp.com>
26842
26843 * config/pa/pa.c (emit_move_sequence): Remove use of
26844 deleted variable flag_argument_noalias.
26845
26846 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26847
26848 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
26849 configurations.
26850 Add to unsupported targets list.
26851 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
26852 sparc*-sun-solaris2.[567]* from target lists.
26853 * configure: Regenerate.
26854 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
26855 removal.
26856 Remove Solaris 7 patch references.
26857 (Specific, sparc-sun-solaris2.7): Removed.
26858 (sparc-sun-solaris2*): Update Solaris 7 example.
26859 (sparc64-*-solaris2*): Likewise.
26860
26861 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26862
26863 * config.build (alpha*-dec-osf4*): Remove.
26864 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
26865 of obsolete configurations.
26866 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
26867 support.
26868 * config/alpha/t-osf4: Renamed to ...
26869 * config/alpha/t-osf5: ... this.
26870 * config/alpha/osf.h: Renamed to ...
26871 * config/alpha/osf5.h: ... this.
26872 Merged old osf5.h contents.
26873 Update comments.
26874 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
26875 (EXTRA_SPECS): Removed.
26876 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
26877 reflect removal of Tru64 UNIX V4.0/V5.0 support.
26878 Document that.
26879
26880 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26881
26882 * doc/contrib.texi (Contributors, Rainer Orth): Update.
26883
26884 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
26885
26886 PR/43702
26887 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
26888 __thiscall convention.
26889
26890 2010-04-12 Steve Ellcey <sje@cup.hp.com>
26891
26892 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
26893 orig_base.
26894 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
26895
26896 2010-04-12 Steve Ellcey <sje@cup.hp.com>
26897
26898 * function.c (assign_parms_initialize_all): Add unused attribute
26899 to fntype.
26900
26901 2010-04-12 Richard Guenther <rguenther@suse.de>
26902
26903 * gsstruct.def (GSS_CALL): New.
26904 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
26905 * gimple.h: Include tree-ssa-alias.h.
26906 (struct gimple_statement_call): New.
26907 (union gimple_statement_struct_d): Add gimple_call member.
26908 (gimple_call_reset_alias_info): Declare.
26909 (gimple_call_use_set): New function.
26910 (gimple_call_clobber_set): Likewise.
26911 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
26912 * gimple.c (gimple_call_reset_alias_info): New function.
26913 (gimple_build_call_1): Call it.
26914 * lto-streamer-in.c (input_gimple_stmt): Likewise.
26915 * tree-inline.c (remap_gimple_stmt): Likewise.
26916 (expand_call_inline): Remove callused handling.
26917 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
26918 * tree-dfa.c (dump_variable): Likewise.
26919 * tree-parloops.c (parallelize_loops): Likewise.
26920 * tree-ssa.c (init_tree_ssa): Likewise.
26921 (delete_tree_ssa): Likewise.
26922 * tree-flow-inline.h (is_call_used): Remove.
26923 * tree-flow.h (struct gimple_df): Remove callused member.
26924 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
26925 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
26926 (ref_maybe_used_by_call_p_1): Simplify.
26927 (call_may_clobber_ref_p_1): Likewise.
26928 * tree-ssa-structalias.c (compute_points_to_sets): Set
26929 the call stmt used and clobbered sets.
26930 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
26931 (find_tail_calls): Verify the tail call.
26932
26933 2010-04-12 Richard Guenther <rguenther@suse.de>
26934
26935 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
26936 single-iteration always-inline inlining.
26937 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
26938 (cgraph_decide_inlining): Do not handle always-inline specially.
26939 (try_inline): Remove always-inline cycle detection special case.
26940 Do not recurse on always-inlines.
26941 (cgraph_early_inlining): Do not iterate if not optimizing.
26942 (cgraph_gate_early_inlining): remove.
26943 (pass_early_inline): Run unconditionally.
26944 (gate_cgraph_decide_inlining): New function.
26945 (pass_ipa_inline): Use it. Do not run the IPA inliner if
26946 not inlining or optimizing.
26947 (cgraph_decide_inlining_of_small_functions): Also consider
26948 always-inline functions.
26949 (cgraph_default_inline_p): Return true for nodes which should
26950 disregard inline limits.
26951 (estimate_function_body_sizes): Assume zero size and time for
26952 nodes which are marked as disregarding inline limits.
26953 (cgraph_decide_recursive_inlining): Do not perform recursive
26954 inlining on always-inline nodes.
26955
26956 2010-04-12 Jakub Jelinek <jakub@redhat.com>
26957
26958 PR bootstrap/43699
26959 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
26960 for exprs satisfying handled_component_p.
26961
26962 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
26963
26964 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
26965 non-constant aggregate elements.
26966
26967 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
26968 is a real initialization.
26969
26970 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
26971
26972 PR c/36774
26973 * c-decl.c (start_function): Move forward check for nested function.
26974
26975 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
26976
26977 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
26978 * config/sh/sh.c: Include reload.h.
26979 (sh_legitimize_reload_address): New.
26980 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
26981 sh_legitimize_reload_address.
26982
26983 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
26984
26985 * config/sh/sh.md (*movqi_pop): New insn pattern.
26986 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
26987
26988 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
26989
26990 * config/i386/i386.md (any_shiftrt): New code iterator.
26991 (shiftrt_insn): New code attribute.
26992 (shiftrt): Ditto.
26993 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
26994 using any_shiftrt code iterator.
26995 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
26996 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
26997 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
26998 pattern from corresponding peephole2 patterns.
26999 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
27000 using any_shiftrt code iterator.
27001 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
27002 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
27003 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
27004 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
27005 *{ashr,lshr}<mode>3_cmp_zext.
27006 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
27007
27008 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27009
27010 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
27011 scratch register.
27012 (*lshr<mode>3_cconly): Ditto.
27013
27014 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
27015
27016 * config/i386/i386.md (lshr<mode>3): Macroize expander from
27017 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27018 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27019 pattern from *lshr{di,ti}3_1 and corresponding splitters using
27020 DWI mode iterator.
27021 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27022 from corresponding peephole2 patterns.
27023 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
27024 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
27025 and *lshrdi3_1_rex64 using SWI mode iterator.
27026 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
27027 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
27028 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
27029 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
27030 and *lshrdi3_cmp_rex64 using SWI mode iterator.
27031 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
27032 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
27033 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
27034 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
27035 SWI mode iterator.
27036
27037 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
27038
27039 * config/i386/i386.md (ashr<mode>3): Macroize expander from
27040 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
27041 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
27042 pattern from *ashr{di,ti}3_1 and corresponding splitters using
27043 DWI mode iterator.
27044 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
27045 from corresponding peephole2 patterns.
27046 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
27047 (ashrsi3_cvt): Rename from ashrsi3_31.
27048 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
27049 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
27050 and x86_64_shift_adj_3 using SWI48 mode iterator.
27051 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
27052 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
27053 and *ashrdi3_1_rex64 using SWI mode iterator.
27054 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
27055 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
27056 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
27057 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
27058 and *ashrdi3_cmp_rex64 using SWI mode iterator.
27059 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
27060 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
27061 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
27062 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
27063 SWI mode iterator.
27064 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
27065 * config/i386/i386.c (ix86_split_ashr): Update for renamed
27066 x86_shift<mode>_adj_3 expanders.
27067
27068 2010-04-10 Wei Guozhi <carrot@google.com>
27069
27070 PR target/42601
27071 * config/arm/arm.c (arm_pic_static_addr): New function.
27072 (legitimize_pic_address): Call arm_pic_static_addr when it detects
27073 a static symbol.
27074 (arm_output_addr_const_extra): Output expression for new pattern.
27075 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
27076
27077 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
27078
27079 * ira-costs.c (record_reg_classes): Ignore alternatives that are
27080 not enabled.
27081
27082 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
27083 * web.c: Include "insn-config.h" and "recog.h".
27084 (union_match_dups): New function.
27085 (web_main): Call it.
27086 (union_defs): Don't try to recognize match_dups.
27087
27088 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
27089 if doing so would replace the entire pattern.
27090
27091 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27092
27093 PR target/43707
27094 PR target/43709
27095 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
27096 and splitter pattern. Change splitter operand 1 predicate to
27097 nonmemory_operand.
27098
27099 2010-04-09 Martin Jambor <mjambor@suse.cz>
27100
27101 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
27102 lattices are addresses of CONST_DECLs with the same initial value.
27103 (ipcp_print_all_lattices): Print values of CONST_DECLs.
27104 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
27105
27106 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
27107 Bernd Schmidt <bernds@codesourcery.com>
27108
27109 * loop-invariant.c (replace_uses): New static function.
27110 (move_invariant_reg): Use it to ensure we can replace the uses.
27111
27112 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
27113
27114 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
27115 function template.
27116 (picochip_override_options): Enable section anchors only above -O1.
27117 (picochip_reorg): Fixed a couple of build warnings.
27118
27119 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27120
27121 * configure.ac (plugin -rdynamic test): Log result.
27122 * configure: Regenerate.
27123 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
27124 (RDYNAMIC_SPEC): Define.
27125 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
27126
27127 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27128
27129 * configure.ac: Determine Sun ld version numbers.
27130 (comdat_group): Restrict GNU ld version checks to gld.
27131 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
27132 (enable_comdat): Support --enable-comdat.
27133 * configure: Regenerate.
27134 * doc/install.texi (Configuration): Document --enable-comdat.
27135
27136 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27137
27138 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
27139 * config/sol2-gld.h: ... here.
27140 * config.gcc (sparc*-*-solaris2*): Reflect this.
27141 (i[34567]86-*-solaris2*): Use it.
27142
27143 2010-04-09 Steve Ellcey <sje@cup.hp.com>
27144
27145 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
27146 setup_clocks_p.
27147 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
27148
27149 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27150
27151 PR 42965
27152 * diagnostic.c (diagnostic_initialize): Initialize
27153 some_warnings_are_errors.
27154 (diagnostic_finish): New.
27155 (diagnostic_action_after_output): Call it before exiting.
27156 (diagnostic_report_diagnostic): Do not print message here. Set
27157 some_warnings_are_errors.
27158 * diagnostic.h (diagnostic_context): Delete
27159 issue_warnings_are_errors_message. Add some_warnings_are_errors.
27160 (diagnostic_finish): Declare.
27161 * toplev.c (toplev_main): Call it before exit.
27162
27163 2010-04-09 Jason Merrill <jason@redhat.com>
27164
27165 PR c++/42623
27166 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
27167 for incomplete type.
27168
27169 PR c++/41788
27170 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
27171 based on a warning flag.
27172
27173 2010-04-09 Richard Guenther <rguenther@suse.de>
27174
27175 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
27176
27177 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
27178
27179 PR bootstrap/43684
27180 * varasm.c (default_assemble_visibility): Wrap vars that are
27181 set, but unused, by targets without GAS.
27182 * config/rs6000/rs6000.c (paired_emit_vector_compare):
27183 Remove set, but unused, vars.
27184 (rs6000_legitimize_tls_address): Likewise.
27185 (altivec_expand_dst_builtin): Likewise.
27186 * config/darwin.c (machopic_classify_symbol): Likewise.
27187 (machopic_indirection_name): Likewise.
27188
27189 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
27190
27191 * config/i386/i386.md (DWI): New mode iterator.
27192 (S): New mode attribute.
27193 (shift_operand): Ditto.
27194 (shift_immediate_operand): Ditto.
27195 (ashl_input_operand): Ditto.
27196 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
27197 using SDWIM mode iterator.
27198 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
27199 pattern from *ashl{di,ti}3_1 and corresponding splitters using
27200 DWI mode iterator.
27201 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
27202 from corresponding peephole2 patterns.
27203 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
27204 and x86_64_shift_adj_1 using SWI48 mode iterator.
27205 (x86_shift<mode>_adj_2): Ditto.
27206 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
27207 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
27208 using SWI48 mode iterator.
27209 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
27210 *ashldi3_cmp_rex64 using SWI mode iterator.
27211 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
27212 *ashldi3_cconly_rex64 using SWI mode iterator.
27213 * config/i386/i386.c (ix86_split_ashl): Update for renamed
27214 x86_shift<mode>_adj_{1,2}.
27215 (ix86_split_ashr): Ditto.
27216 (ix86_split_lshr): Ditto.
27217
27218 2010-04-09 Richard Guenther <rguenther@suse.de>
27219
27220 * target.h (builtin_conversion): Pass in input and output types.
27221 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
27222 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
27223 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
27224 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
27225
27226 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
27227 Handle AVX modes.
27228 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
27229
27230 2010-04-09 Richard Guenther <rguenther@suse.de>
27231
27232 PR target/43152
27233 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
27234
27235 2010-04-09 Richard Guenther <rguenther@suse.de>
27236
27237 * tree-vectorizer.h (struct _stmt_vec_info): Document
27238 that vectype is the type of the LHS.
27239 (supportable_widening_operation, supportable_narrowing_operation):
27240 Get both input and output vector types as arguments.
27241 (vect_is_simple_use_1): Declare.
27242 (get_same_sized_vectype): Likewise.
27243 * tree-vect-loop.c (vect_determine_vectorization_factor):
27244 Set STMT_VINFO_VECTYPE to the vector type of the def.
27245 (vectorizable_reduction): Adjust.
27246 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
27247 Adjust. Specify the output vector type.
27248 (vect_pattern_recog_1): Adjust.
27249 * tree-vect-stmts.c (get_same_sized_vectype): New function.
27250 (vectorizable_call): Adjust.
27251 (vectorizable_conversion): Likewise.
27252 (vectorizable_operation): Likewise.
27253 (vectorizable_type_demotion): Likewise.
27254 (vectorizable_type_promotion): Likewise.
27255 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
27256 the def.
27257 (vect_is_simple_use_1): New function.
27258 (supportable_widening_operation): Get both input and output
27259 vector types.
27260 (supportable_narrowing_operation): Likewise.
27261 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
27262
27263 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
27264
27265 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
27266 __thiscall and _thiscall as predefined macros.
27267 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
27268 thiscall attribute handling.
27269 (ix86_comp_type_attributes): Likewise.
27270 (ix86_function_regparm): Likewise.
27271 (ix86_return_pops_args): Likewise.
27272 (init_cumulative_args): Likewise.
27273 (find_drap_reg): Likewise.
27274 (ix86_static_chain): Likewise.
27275 (x86_this_parameter): Likewise.
27276 (x86_output_mi_thunk): Likewise.
27277 (ix86_attribute_table): Add description for thiscall attribute.
27278 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
27279 * doc/extend.texi: Add documentation for thiscall.
27280
27281 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
27282
27283 PR c++/28584
27284 * c.opt (Wint-to-pointer-cast): Available in C++.
27285 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
27286
27287 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
27288
27289 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
27290 * calls.c (expand_call): Pass the function type to aggregate_value_p.
27291 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
27292 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
27293 function type instead. Reorder and simplify checks.
27294
27295 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
27296
27297 2010-04-08 Jing Yu <jingyu@google.com>
27298 Zdenek Dvorak <ook@ucw.cz>
27299
27300 PR tree-optimization/42720
27301 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
27302 loop unswitch conditions here from ...
27303 (tree_unswitch_single_loop): ... here.
27304
27305 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
27306
27307 * tree-if-conv.c: Fix comments and simplify logic.
27308
27309 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
27310
27311 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
27312 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
27313 (main_tree_if_conversion): Update call to tree_if_conversion.
27314
27315 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
27316
27317 PR 42485
27318 * doc/invoke.texi (-b,-V): Delete.
27319 * doc/tm.texi: Do not mention -b.
27320 * gcc.c (display_help): Delete -b and -V.
27321 (process_command): Delete -b and -V.
27322 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
27323
27324 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
27325 Wolfgang Gellerich <gellerich@de.ibm.com>
27326
27327 Implement target hook for loop unrolling
27328 * target.h (loop_unroll_adjust): Add a new target hook function.
27329 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
27330 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
27331 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
27332 (s390_loop_unroll_adjust): Implement the new target hook for s390.
27333 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
27334 target hook.
27335 (decide_unroll_stupid): Likewise.
27336
27337 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27338
27339 PR target/43643
27340 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
27341
27342 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27343
27344 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
27345 (Specific, *-*-solaris2*): Likewise.
27346 Don't prefer Sun as over GNU as.
27347
27348 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
27349
27350 * config/s390/s390.c (override_options): Adjust the z10 defaults
27351 for max-unroll-times, max-completely-peeled-insns
27352 and max-completely-peel-times.
27353
27354 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27355
27356 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
27357 instructions for z10.
27358 (s390_expand_setmem): Likewise.
27359 (s390_expand_cmpmem): Likewise.
27360
27361 2010-04-08 Richard Guenther <rguenther@suse.de>
27362
27363 PR tree-optimization/43679
27364 * tree-ssa-pre.c (eliminate): Only propagate copies.
27365
27366 2010-04-08 Jakub Jelinek <jakub@redhat.com>
27367
27368 PR bootstrap/43681
27369 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
27370 set but not used variable warning.
27371
27372 2010-04-08 Wei Guozhi <carrot@google.com>
27373
27374 PR target/41653
27375 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
27376 (arm_size_rtx_costs): Call the new function when optimized for size.
27377
27378 2010-04-08 Jakub Jelinek <jakub@redhat.com>
27379
27380 PR debug/43670
27381 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
27382 op0 is not a MEM, just return NULL instead of assertion
27383 failure.
27384 (discover_nonconstant_array_refs): Don't walk debug stmts.
27385
27386 2010-04-08 Doug Kwan <dougkwan@google.com>
27387
27388 * configure.ac: Recognize gold and do not use its version number
27389 to test ld features.
27390 * configure: Regenerate.
27391
27392 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
27393
27394 PR middle-end/40815
27395 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
27396 (negate_value): Move code to push elements to broken_up_substracts ...
27397 (eliminate_plus_minus_pair): ... here. Push operands that have no
27398 negative pair to plus_negates.
27399 (repropagate_negates, init_reassoc, fini_reassoc): Update.
27400
27401 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27402
27403 * doc/install.texi (Configuration): Move description of
27404 --enable-lto, --with-libelf*, --enable-gold from Java section to
27405 general section.
27406
27407 * doc/generic.texi (Working with declarations)
27408 (Function Properties, C and C++ Trees): Fix typos.
27409 * doc/sourcebuild.texi (Top Level): Likewise.
27410
27411 2010-04-07 Jakub Jelinek <jakub@redhat.com>
27412
27413 PR c/18624
27414 * tree.h (DECL_READ_P): Define.
27415 (struct tree_decl_common): Add decl_read_flag.
27416 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
27417 a set but not used warning.
27418 (merge_decls): Merge DECL_READ_P flag.
27419 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
27420 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
27421 * c-common.c (handle_used_attribute, handle_unused_attribute):
27422 Likewise.
27423 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
27424 New prototypes.
27425 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
27426 New functions.
27427 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
27428 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
27429 c_parser_binary_expression, c_parser_cast_expression,
27430 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
27431 Call default_function_array_read_conversion instead of
27432 default_function_array_conversion where needed.
27433 (c_parser_unary_expression, c_parser_conditional_expression,
27434 c_parser_postfix_expression_after_primary, c_parser_initelt):
27435 Likewise. Call mark_exp_read where needed.
27436 (c_parser_statement_after_labels, c_parser_asm_operands,
27437 c_parser_typeof_specifier, c_parser_sizeof_expression,
27438 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
27439 where needed.
27440 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
27441 New.
27442 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
27443 (warn_unused_but_set_parameter): Default to warn_unused
27444 && extra_warnings.
27445 * doc/invoke.texi: Document -Wunused-but-set-variable and
27446 -Wunused-but-set-parameter.
27447
27448 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
27449 used count variable.
27450 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
27451 when operandN variables aren't used in the body of the expander
27452 or splitter.
27453 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
27454 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
27455 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
27456 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
27457 FOR_EACH_IMM_USE_ON_STMT): Likewise.
27458 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
27459 * tree.c (PROCESS_ARG): Likewise.
27460
27461 2010-04-07 Simon Baldwin <simonb@google.com>
27462
27463 * diagnostic.h (diagnostic_override_option_index): New macro to
27464 set a diagnostic's option_index.
27465 * c-tree.h (c_cpp_error): Add warning reason argument.
27466 * opts.c (_warning_as_error_callback): New.
27467 (register_warning_as_error_callback): Store callback for
27468 warnings enabled via enable_warning_as_error.
27469 (enable_warning_as_error): Call callback, minor code tidy.
27470 * opts.h (register_warning_as_error_callback): Declare.
27471 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
27472 response to -Werror=.
27473 (c_common_init_options): Register warning_as_error_callback in opts.c.
27474 * common.opt: Add -Wno-cpp option.
27475 * c-common.c (struct reason_option_codes_t): Map cpp warning
27476 reason codes to gcc option indexes.
27477 * (c_option_controlling_cpp_error): New function, lookup the gcc
27478 option index for a cpp warning reason code.
27479 * (c_cpp_error): Add warning reason argument, call
27480 c_option_controlling_cpp_error for diagnostic_override_option_index.
27481 * doc/invoke.texi: Document -Wno-cpp.
27482
27483 2010-04-07 Richard Guenther <rguenther@suse.de>
27484
27485 * ipa-reference.c (mark_load): Use get_base_address.
27486 (mark_store): Likewise.
27487
27488 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
27489 inserting GIMPLE_NOPs into the IL.
27490 * tree-ssa-structalias.c (get_constraint_for_component_ref):
27491 Explicitly strip handled components and indirect references.
27492
27493 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
27494 folding address expressions.
27495 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
27496 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
27497 operand_equal_p to compare decls.
27498 (ptr_deref_may_alias_decl_p): Likewise.
27499 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
27500 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
27501 Handle reversed comparison ops.
27502 * tree-sra.c (asm_visit_addr): Use get_base_address.
27503 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
27504 * ipa-reference.c (mark_address): Use get_base_address.
27505
27506 2010-04-07 Richard Guenther <rguenther@suse.de>
27507
27508 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
27509 Propagate constants everywhere.
27510
27511 2010-04-07 Jakub Jelinek <jakub@redhat.com>
27512
27513 PR debug/43516
27514 * tree.c (MAX_INT_CACHED_PREC): Define.
27515 (nonstandard_integer_type_cache): New array.
27516 (build_nonstandard_integer_type): Cache results for precision
27517 <= MAX_INT_CACHED_PREC.
27518
27519 2010-04-07 Richard Guenther <rguenther@suse.de>
27520
27521 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
27522 -fargument-noalias-global, -fargument-noalias-anything): Remove.
27523 * common.opt: Likewise.
27524 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
27525 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
27526 (nonoverlapping_memrefs_p): Likewise.
27527 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
27528 * opts.c (common_handle_option): Handle OPT_fargument_alias,
27529 OPT_fargument_noalias, OPT_fargument_noalias_anything and
27530 OPT_fargument_noalias_global for backward compatibility.
27531
27532 2010-04-07 Richard Guenther <rguenther@suse.de>
27533
27534 PR tree-optimization/43270
27535 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
27536 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
27537 * tree-ssa-pre.c (phi_translate_1): Adjust.
27538 (fully_constant_expression): Split out vn_reference handling to ...
27539 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
27540 Fold reads from constant strings.
27541 (vn_reference_lookup): Handle fully constant references.
27542 (vn_reference_lookup_pieces): Likewise.
27543 * Makefile.in (expmed.o-warn): Add -Wno-error.
27544
27545 2010-04-07 Martin Jambor <mjambor@suse.cz>
27546
27547 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
27548
27549 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
27550
27551 PR driver/41594
27552 * gcc.c: Add -static-libstdc++ to list of recognized options.
27553
27554 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27555
27556 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
27557
27558 2010-04-07 Richard Guenther <rguenther@suse.de>
27559
27560 PR middle-end/42617
27561 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
27562 bases build simple mem attributes to retain points-to information.
27563
27564 2010-04-07 Richard Guenther <rguenther@suse.de>
27565
27566 PR middle-end/42617
27567 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
27568 preserve points-to related information.
27569
27570 2010-04-07 Richard Guenther <rguenther@suse.de>
27571
27572 PR middle-end/42617
27573 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
27574 discard plain indirect references.
27575 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
27576 * tree.c (tree_nop_conversion): Likewise.
27577
27578 2010-04-07 Dodji Seketeli <dodji@redhat.com>
27579
27580 PR debug/43628
27581 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
27582
27583 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
27584
27585 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
27586 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
27587
27588 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
27589
27590 * tree-if-conv.c: Fix indentation and comments.
27591
27592 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
27593
27594 * tree-if-conv.c: Sort static functions in topological order.
27595
27596 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
27597
27598 * tree-if-conv.c: Fix indentation and comments.
27599
27600 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
27601
27602 PR middle-end/43519
27603 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
27604 lang_hooks.types.type_for_size instead of
27605 build_nonstandard_integer_type.
27606 When converting an unsigned type to signed, double its precision.
27607 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
27608 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
27609 (graphite_create_new_loop_guard): When ub + 1 wraps around,
27610 use lb <= ub.
27611
27612 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
27613
27614 PR middle-end/43519
27615 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
27616 POINTER_PLUS_EXPR for pointer types.
27617
27618 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
27619
27620 PR middle-end/43519
27621 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
27622 * graphite-clast-to-gimple.c: Include langhooks.h.
27623 (max_signed_precision_type): New.
27624 (max_precision_type): Takes two types as arguments.
27625 (precision_for_value): New.
27626 (precision_for_interval): New.
27627 (gcc_type_for_interval): New.
27628 (gcc_type_for_value): New.
27629 (gcc_type_for_clast_term): New.
27630 (gcc_type_for_clast_red): New.
27631 (gcc_type_for_clast_bin): New.
27632 (gcc_type_for_clast_expr): Split up into several functions.
27633 (gcc_type_for_clast_eq): Rewritten.
27634 (compute_bounds_for_level): New.
27635 (compute_type_for_level_1): New.
27636 (compute_type_for_level): New.
27637 (gcc_type_for_cloog_iv): Removed.
27638 (gcc_type_for_iv_of_clast_loop): Rewritten.
27639 (graphite_create_new_loop): Compute the lower and upper bound types
27640 with gcc_type_for_clast_expr.
27641 (graphite_create_new_loop_guard): Same.
27642 (find_cloog_iv_in_expr): Removed.
27643 (compute_cloog_iv_types_1): Removed.
27644 (compute_cloog_iv_types): Removed.
27645 (gloog): Do not call compute_cloog_iv_types.
27646 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
27647 GBB_CLOOG_IV_TYPES.
27648 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
27649 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
27650 (GBB_CLOOG_IV_TYPES): Removed.
27651
27652 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
27653
27654 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
27655 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
27656 (detect_commutative_reduction): Same.
27657
27658 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
27659
27660 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
27661 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
27662 argument.
27663 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
27664 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
27665 (rewrite_commutative_reductions_out_of_ssa): Same.
27666 * passes.c (execute_function_todo): Call verify_ssa for every pass
27667 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
27668 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
27669 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
27670 with an extra argument.
27671 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
27672 verify_ssa only when the extra argument is true.
27673 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
27674 with an extra argument.
27675 (tree_transform_and_unroll_loop): Same.
27676
27677 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
27678
27679 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
27680 for all the passes of the LNO having LOOP_CLOSED_SSA.
27681 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
27682 * tree-loop-distribution.c (pass_loop_distribution): Same.
27683 * tree-pass.h (TODO_verify_loops): Removed.
27684 * tree-ssa-loop.c (pass_tree_loop_init): Same.
27685 (pass_lim): Same.
27686 (pass_tree_unswitch): Same.
27687 (pass_predcom): Same.
27688 (pass_vectorize): Same.
27689 (pass_linear_transform): Same.
27690 (pass_graphite_transforms): Same.
27691 (pass_iv_canon): Same.
27692 (pass_complete_unroll): Same.
27693 (pass_complete_unrolli): Same.
27694 (pass_parallelize_loops): Same.
27695 (pass_loop_prefetch): Same.
27696 (pass_iv_optimize): Same.
27697
27698 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
27699
27700 PR middle-end/32824
27701 * passes.c (init_optimization_passes): Move pass_lim before
27702 pass_copy_prop and pass_dce_loop.
27703
27704 2010-04-06 Jakub Jelinek <jakub@redhat.com>
27705
27706 PR target/43667
27707 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
27708 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
27709 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
27710 MULTI_* defines for 4 argument vpermil2p* builtins.
27711
27712 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
27713
27714 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
27715 * config/i386/i386.c (x86_maybe_negate_const_int): New.
27716 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
27717 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
27718 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
27719 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
27720 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
27721 Use x86_maybe_negate_const_int to output insn mnemonic.
27722 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
27723 check from instruction predicate. Update comments.
27724 * config/i386/sync.md (sync_add<mode>): Use
27725 x86_maybe_negate_const_int to output insn mnemonic.
27726
27727 2010-04-06 Jan Hubicka <jh@suse.cz>
27728
27729 PR tree-optimization/42906
27730 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
27731 IGNORE_SELF argument. Set visited_control_parents for fully
27732 processed BBs.
27733 (find_obviously_necessary_stmts): Update call of
27734 mark_control_dependent_edges_necessary.
27735 (propagate_necessity): Likewise. Handle PHI edges more curefully.
27736
27737 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
27738
27739 * config/i386/i386.md: Remove comment about 'e' and 'E'
27740 operand modifier.
27741
27742 2010-04-06 Richard Guenther <rguenther@suse.de>
27743
27744 PR tree-optimization/43627
27745 * tree-vrp.c (extract_range_from_unary_expr): Widenings
27746 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
27747 not varying.
27748
27749 2010-04-06 Jakub Jelinek <jakub@redhat.com>
27750
27751 * BASE-VER: Change to 4.6.0.
27752
27753 PR target/43638
27754 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
27755 handling.
27756
27757 2010-04-06 Richard Guenther <rguenther@suse.de>
27758
27759 PR middle-end/43661
27760 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
27761
27762 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27763
27764 * doc/invoke.texi (Optimize Options): Document that LTO
27765 won't remove object access purely due to incompatible
27766 declarations.
27767
27768 2010-04-04 Matthias Klose <doko@ubuntu.com>
27769
27770 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
27771 Initialize variable.
27772
27773 2010-04-03 Richard Guenther <rguenther@suse.de>
27774
27775 PR middle-end/42509
27776 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
27777 require a non-NULL MEM_OFFSET.
27778
27779 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
27780
27781 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
27782 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
27783 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
27784 config/alpha/predicates.md, config/arm/arm.md,
27785 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
27786 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
27787 config/darwin9.h, config/darwin.c, config/darwin.h,
27788 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
27789 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
27790 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
27791 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
27792 config/mips/mips.md, config/mn10300/mn10300.c,
27793 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
27794 config/rs6000/aix.h, config/rs6000/dfp.md,
27795 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
27796 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
27797 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
27798 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
27799 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
27800 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
27801 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
27802 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
27803 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
27804 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
27805 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
27806 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
27807 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
27808 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
27809 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
27810 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
27811 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
27812 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
27813 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
27814 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
27815 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
27816 opt-functions.awk, opth-gen.awk, params.def, passes.c,
27817 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
27818 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
27819 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
27820 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
27821 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
27822 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
27823 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
27824 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
27825 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
27826 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
27827 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
27828 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
27829 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
27830 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
27831
27832 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27833
27834 PR other/43620
27835 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
27836 * aclocal.m4: Regenerate.
27837
27838 2010-04-02 Richard Guenther <rguenther@suse.de>
27839
27840 PR tree-optimization/43629
27841 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
27842 if we have seen a constant value.
27843
27844 2010-04-02 Joseph Myers <joseph@codesourcery.com>
27845
27846 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
27847
27848 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
27849
27850 PR target/43469
27851 * arm.c (legitimize_tls_address): Adjust call to
27852 gen_tls_load_dot_plus_four.
27853 (arm_note_pic_base): New function.
27854 (arm_cannot_copy_insn_p): Use it.
27855 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
27856 constraint.
27857
27858 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27859
27860 PR bootstrap/43531
27861
27862 Revert:
27863 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27864
27865 * Makefile.in ($(out_object_file)): Depend on
27866 gt-$(basename $(notdir $(out_file))).h.
27867
27868 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
27869
27870 * config.gcc (lm32-*-rtems*): Add t-lm32.
27871
27872 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
27873
27874 * config.gcc: Add lm32-*-rtems*.
27875 * config/lm32/rtems.h: New file.
27876
27877 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
27878
27879 PR target/42609
27880 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
27881
27882 2010-04-01 Jakub Jelinek <jakub@redhat.com>
27883
27884 * dwarf2out.c (output_compilation_unit_header): For
27885 -gdwarf-4 use version 4 instead of version 3.
27886 (output_line_info): For version 4 and above emit additional
27887 maximum ops per insn header field.
27888 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
27889
27890 * dwarf2out.c (is_c_family, is_java): Remove.
27891 (lower_bound_default): New function.
27892 (add_bound_info, gen_descr_array_type_die): Use it.
27893
27894 2010-04-01 Dodji Seketeli <dodji@redhat.com>
27895
27896 PR debug/43325
27897 * dwarf2out.c (gen_variable_die): Allow debug info for variable
27898 re-declaration when it happens in a function.
27899
27900 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
27901
27902 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
27903 (cgraph_remove_function_insertion_hook): Same.
27904 (cgraph_call_function_insertion_hooks): Same.
27905
27906 2010-04-01 Richard Guenther <rguenther@suse.de>
27907
27908 PR middle-end/43614
27909 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
27910 and TREE_THIS_VOLATILE.
27911 (copy_ref_info): Likewise.
27912 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
27913 * tree.c (build6_stat): Ignore side-effects of all but arg5
27914 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
27915 TARGET_MEM_REF.
27916
27917 2010-04-01 Richard Guenther <rguenther@suse.de>
27918
27919 PR tree-optimization/43607
27920 * ipa-type-escape.c (check_call): Do not access non-existing
27921 arguments.
27922
27923 2010-04-01 Richard Guenther <rguenther@suse.de>
27924
27925 PR middle-end/43602
27926 Revert
27927 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
27928 Jack Howarth <howarth@bromo.med.uc.edu>
27929
27930 * tree-profile.c (tree_init_ic_make_global_vars): Make static
27931 variables TLS.
27932
27933 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27934
27935 * doc/install.texi (Prerequisites): Document libelf usability on
27936 IRIX 5/6 and Solaris 2.
27937 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
27938 Update GNU as, GNU ld requirements.
27939 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
27940 Document Sun Studio compiler download.
27941 Update and simplify as, ld recommendations.
27942 (Specific, *-*-solaris2.7): Note obsoletion, removal.
27943
27944 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27945
27946 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
27947 with_tune_32 to pentium4.
27948
27949 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
27950
27951 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
27952
27953 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27954
27955 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
27956 obsoletion, removal.
27957 Update IDO URL.
27958 Document GNU as requirement.
27959 Update configure requirements.
27960 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
27961 Recomment IRIX 6.5.18+.
27962 Document IDF/IDL requirement.
27963 Document GNU as requirement.
27964 Document GNU ld bootstrap failure.
27965 Remove freeware.sgi.com reference.
27966
27967 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27968
27969 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
27970 UNIX V4.0, V5.0 obsoletion, removal.
27971 Remove --with-gc=simple reference.
27972 Update VM requirements during bootstrap.
27973 Remove -oldas bootstrap description.
27974 Update binutils reference.
27975 Remove comparison failure note.
27976
27977 2010-03-31 Richard Guenther <rguenther@suse.de>
27978 Zdenek Dvorak <ook@ucw.cz>
27979 Sebastian Pop <sebastian.pop@amd.com>
27980
27981 PR middle-end/43464
27982 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
27983 with multiple arguments.
27984 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
27985
27986 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
27987
27988 * graphite-dependences.c (print_pddr): Call print_pdr with an
27989 extra argument.
27990 * graphite-poly.c (debug_pdr): Add an extra argument for the
27991 verbosity level.
27992 (print_pdr): Same.
27993 (print_pbb_domain): Same.
27994 (print_pbb): Same.
27995 (print_scop_context): Same.
27996 (print_scop): Same.
27997 (print_cloog): Same.
27998 (debug_pbb_domain): Same.
27999 (debug_pbb): Same.
28000 (print_pdrs): Same.
28001 (debug_pdrs): Same.
28002 (debug_scop_context): Same.
28003 (debug_scop): Same.
28004 (debug_cloog): Same.
28005 (print_scop_params): Same.
28006 (debug_scop_params): Same.
28007 (print_iteration_domain): Same.
28008 (print_iteration_domains): Same.
28009 (debug_iteration_domain): Same.
28010 (debug_iteration_domains): Same.
28011 (print_scattering_function): Same.
28012 (print_scattering_functions): Same.
28013 (debug_scattering_function): Same.
28014 (debug_scattering_functions): Same.
28015 * graphite-poly.h (debug_pdr): Update declaration.
28016 (print_pdr): Same.
28017 (print_pbb_domain): Same.
28018 (print_pbb): Same.
28019 (print_scop_context): Same.
28020 (print_scop): Same.
28021 (print_cloog): Same.
28022 (debug_pbb_domain): Same.
28023 (debug_pbb): Same.
28024 (print_pdrs): Same.
28025 (debug_pdrs): Same.
28026 (debug_scop_context): Same.
28027 (debug_scop): Same.
28028 (debug_cloog): Same.
28029 (print_scop_params): Same.
28030 (debug_scop_params): Same.
28031 (print_iteration_domain): Same.
28032 (print_iteration_domains): Same.
28033 (debug_iteration_domain): Same.
28034 (debug_iteration_domains): Same.
28035 (print_scattering_function): Same.
28036 (print_scattering_functions): Same.
28037 (debug_scattering_function): Same.
28038 (debug_scattering_functions): Same.
28039
28040 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28041
28042 * graphite-poly.c (print_scattering_function_1): New.
28043 (print_scattering_function): Call it.
28044 (print_scop_params): Remove spaces at the end of lines.
28045 (print_cloog): New.
28046 (debug_cloog): New.
28047 * graphite-poly.h (print_cloog): Declared.
28048 (debug_cloog): Declared.
28049
28050 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28051
28052 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
28053 in loop->header.
28054 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
28055 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
28056 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
28057 to switch between adding the IV bump in loop->latch or in loop->header.
28058
28059 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
28060
28061 * graphite-poly.c (print_scattering_function): Pretty print following
28062 the scoplib format.
28063 (print_pdr): Same.
28064 (print_pbb_domain): Same.
28065 (dump_gbb_cases): Same.
28066 (dump_gbb_conditions): Same.
28067 (print_pdrs): Same.
28068 (print_pbb): Same.
28069 (print_scop_params): Same.
28070 (print_scop_context): Same.
28071 (print_scop): Same.
28072 (print_pbb_body): New.
28073 (lst_indent_to): New.
28074 (print_lst): Start new lines with a #.
28075 * graphite-poly.h (pbb_bb): New.
28076 (pbb_index): Use pbb_bb.
28077 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
28078 disjuncts.
28079 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
28080
28081 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28082
28083 * dwarf2out.c (size_of_die): For -gdwarf-4 use
28084 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
28085 and 0 instead of 1 for dw_val_class_flag.
28086 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
28087 dw_val_class_range_list, dw_val_class_loc_list,
28088 dw_val_class_lineptr and dw_val_class_macptr, use
28089 DW_FORM_flag_present for dw_val_class_flag and
28090 DW_FORM_exprloc for dw_val_class_loc.
28091 (output_die): For -gdwarf-4 print dw_val_class_loc
28092 size as uleb128 instead of 1 or 2 bytes and don't print
28093 anything for dw_val_class_flag.
28094
28095 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
28096 instead of cselib_lookup following by tweaking locs->setting_insn.
28097
28098 PR bootstrap/43596
28099 * cselib.c (cselib_process_insn): Clear cselib_current_insn
28100 even before returning from label, setjmp call or volatile asm
28101 handling.
28102
28103 2010-03-31 Richard Guenther <rguenther@suse.de>
28104
28105 PR middle-end/43600
28106 * cgraphunit.c (cgraph_output_in_order): Do not allocate
28107 temporary data on stack.
28108
28109 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28110
28111 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
28112 (PUSHSECTION_ASM_OP): Remove.
28113 (POPSECTION_ASM_OP): Remove.
28114 (PUSHSECTION_FORMAT): Remove.
28115 * config/sol2.h (PUSHSECTION_FORMAT): Define.
28116 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
28117 * config/sol2.c (solaris_output_init_fini): Use it.
28118
28119 2010-03-31 Jie Zhang <jie@codesourcery.com>
28120
28121 PR 43574
28122 * opt-functions.awk (var_type_struct): Use signed char type
28123 for simple variables.
28124
28125 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28126
28127 * config/sol2.c: Include output.h.
28128 (solaris_assemble_visibility): New function.
28129 * config/t-sol2 (sol2.o): Add output.h dependency.
28130 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
28131 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
28132 Redefine.
28133
28134 2010-03-31 Jakub Jelinek <jakub@redhat.com>
28135
28136 PR target/43580
28137 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
28138 V2SImode or XFmode on PRE_DEC.
28139
28140 PR debug/43557
28141 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
28142 BLKmode.
28143
28144 2010-03-31 Jie Zhang <jie@codesourcery.com>
28145
28146 PR 43562
28147 * reload.h (caller_save_initialized_p): Declare.
28148 * toplev.c (backend_init_target): Don't call
28149 init_caller_save but set caller_save_initialized_p to false.
28150 * caller-save.c (caller_save_initialized_p): Define.
28151 (init_caller_save): Check caller_save_initialized_p.
28152 * ira.c (ira): Call init_caller_save if flag_caller_saves.
28153
28154 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28155
28156 PR target/39048
28157 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
28158 and soft-fp/t-softfp to tmake_file.
28159 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
28160 (LIBGCC2_TF_CEXT): Define.
28161 (TF_SIZE): Define.
28162
28163 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
28164
28165 PR debug/42977
28166 * cselib.c (n_useless_values): Document handling of debug locs.
28167 (n_useless_debug_values, n_debug_values): New variables.
28168 (new_elt_loc_list): Don't add to debug values, keep count.
28169 (promote_debug_loc): New.
28170 (cselib_reset_table): Zero new variables.
28171 (entry_and_rtx_equal_p): Promote debug locs.
28172 (discard_useless_locs): Increment n_useless_debug_values for
28173 debug values.
28174 (remove_useless_values): Adjust n_useless_values and n_debug_values
28175 with n_useless_debug_values.
28176 (add_mem_for_addr): Promote debug locs.
28177 (cselib_lookup_mem): Likewise.
28178 (cselib_lookup_addr): Renamed to...
28179 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
28180 (cselib_log_lookup): ... this. Turn into...
28181 (cselib_lookup_addr): ... new wrapper.
28182 (cselib_lookup_from_insn): New.
28183 (cselib_invalidate_regno): Increment n_useless_debug_values for
28184 debug values.
28185 (cselib_invalidate_mem): Likewise.
28186 (cselib_process_insn): Take n_deleted and n_debug_values into
28187 account to guard remove_useless_value call.
28188 (cselib_finish): Zero n_useless_debug_values.
28189 * cselib.h (cselib_lookup_from_insn): Declare.
28190 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
28191 (sched_analyze_2): Likewise.
28192
28193 2010-03-30 Jakub Jelinek <jakub@redhat.com>
28194
28195 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
28196 functions.
28197 (adjust_mems): Replace narrowing SUBREG of expression containing
28198 just PLUS, MINUS, MULT and ASHIFT of registers and constants
28199 with operations in the narrower mode.
28200
28201 PR debug/43593
28202 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
28203 regs_invalidated_by_call instead all call_used_reg_set registers.
28204
28205 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
28206
28207 PR middle-end/43430
28208 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
28209 pointer comparisons with types_compatible_p.
28210 * tree-vect-stmts.c (vectorizable_call): Same.
28211 (vectorizable_condition): Same.
28212
28213 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28214
28215 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
28216 stack check if the mask would be zero.
28217
28218 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
28219 Jack Howarth <howarth@bromo.med.uc.edu>
28220
28221 * tree-profile.c (tree_init_ic_make_global_vars): Make static
28222 variables TLS.
28223
28224 2010-03-30 Joseph Myers <joseph@codesourcery.com>
28225
28226 PR other/25232
28227 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
28228 and __unordtf2.
28229 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
28230 Include ___unordxf2 and ___unordtf2.
28231 * config/i386/libgcc-glibc.ver: Do not define inheritance from
28232 GCC_4.4.0 here.
28233
28234 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
28235
28236 * config/lm32/t-lm32: New file.
28237 * config.gcc: Use the above file when targetting lm32.
28238
28239 2010-03-28 Duncan Sands <baldrick@free.fr>
28240
28241 * Makefile.in (PLUGIN_HEADERS): Add except.h.
28242
28243 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28244
28245 PR middle-end/43431
28246 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
28247 Improve vectorization cost model diagnostic.
28248
28249 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
28250
28251 PR middle-end/43436
28252 * tree-vect-data-refs.c (vect_analyze_data_refs): When
28253 compute_data_dependences_for_loop returns false, early exit
28254 and output an extra diagnostic for the failed data reference
28255 analysis.
28256
28257 2010-03-29 Richard Guenther <rguenther@suse.de>
28258
28259 PR tree-optimization/43560
28260 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
28261 (can_sm_ref_p): Treat stores to readonly locations as trapping.
28262
28263 2010-03-29 Jie Zhang <jie@codesourcery.com>
28264
28265 PR 43564
28266 * toplev.c (process_options): Set optimization_default_node
28267 and optimization_current_node.
28268 * opts.c (decode_options): Don't set optimization_default_node
28269 and optimization_current_node.
28270
28271 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
28272
28273 * config/rtems.h: Abandon -qrtems_debug.
28274
28275 2010-03-28 Jan Hubicka <jh@suse.cz>
28276
28277 PR tree-optimization/43505
28278 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
28279 map should not be copied.
28280
28281 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28282
28283 PR middle-end/41674
28284 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
28285 cdtors, set DECL_PRESERVE_P.
28286 * ipa.c (cgraph_externally_visible_p): Return true if declaration
28287 should be preseved.
28288
28289 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
28290
28291 PR tree-optimization/43528
28292 * stor-layout.c (place_field): Check that constant fits into
28293 unsigned HWI when skipping calculation of MS bitfield layout.
28294
28295 2010-03-27 Jan Hubicka <jh@suse.cz>
28296
28297 PR middle-end/43391
28298 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
28299 notice_global_symbol work.
28300
28301 2010-03-27 Jakub Jelinek <jakub@redhat.com>
28302
28303 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
28304 instead of dwarf2out_decl.
28305 (struct var_loc_node): Remove section_label field.
28306 (dwarf2out_function_decl): New function.
28307 (dwarf2out_var_location): Don't set section_label field.
28308 (dwarf2out_begin_function): Don't empty decl_loc_table here.
28309
28310 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
28311
28312 PR tree-optimization/43544
28313 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
28314 First argument for builtin vectorized function hook is now a
28315 tree to be able to distinguish between machine specific and
28316 standard builtins.
28317 * targhooks.c (default_builtin_vectorized_function): Ditto.
28318 * targhooks.h (default_builtin_vectorized_function): Ditto.
28319 * target.h (struct gcc_target): Ditto.
28320 * tree-vect-stmts.c (vectorizable_function): Ditto.
28321 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
28322 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
28323 Ditto.
28324
28325 2010-03-26 Joseph Myers <joseph@codesourcery.com>
28326
28327 PR c/43381
28328 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
28329 nested binding iff it is a FUNCTION_DECL.
28330 (store_parm_decls_newstyle): Pass nested=true to bind for
28331 FUNCTION_DECLs amongst parameters.
28332
28333 2010-03-26 Jakub Jelinek <jakub@redhat.com>
28334
28335 * var-tracking.c (vt_expand_loc_callback): Don't run
28336 cselib_expand_value_rtx_cb in dummy mode if
28337 cselib_dummy_expand_value_rtx_cb returned false.
28338
28339 * var-tracking.c (emit_note_insn_var_location): For one part
28340 notes with offset 0, don't add EXPR_LIST around the location.
28341 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
28342 add_location_or_const_value_attribute): Adjust for that change.
28343
28344 PR debug/43540
28345 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
28346 into first operand and location into second.
28347 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
28348 dw_cfi_oprnd_loc for DW_CFA_expression.
28349 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
28350 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
28351 assume first argument is regnum and second argument is location.
28352
28353 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
28354
28355 PR target/42113
28356 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
28357 of scratch register to DImode. Split to DImode comparison operator.
28358 Use SImode subreg of scratch register in the multiplication.
28359 (*cmp_sadd_sidi): Ditto.
28360 (*cmp_ssub_si): Ditto.
28361 (*cmp_ssub_sidi): Ditto.
28362
28363 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
28364
28365 PR target/43524
28366 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
28367 Remove invalid assert and wrong comment.
28368
28369 2010-03-26 Jakub Jelinek <jakub@redhat.com>
28370
28371 PR debug/43516
28372 * flags.h (final_insns_dump_p): New extern.
28373 * final.c (final_insns_dump_p): New variable.
28374 (rest_of_clean_state): Set it before -fdump-final-insns=
28375 dumping, clear afterwards.
28376 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
28377 MEM_ALIAS_SET on MEMs.
28378
28379 2010-03-26 David S. Miller <davem@davemloft.net>
28380
28381 * configure.ac: Fix sparc GOTDATA_OP bug check.
28382 * configure: Rebuild.
28383
28384 2010-03-26 Alan Modra <amodra@gmail.com>
28385
28386 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
28387
28388 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28389
28390 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
28391 TLS_SECTION_ASM_FLAG.
28392
28393 2010-03-25 Jakub Jelinek <jakub@redhat.com>
28394
28395 PR bootstrap/43511
28396 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
28397 Clear first_function_block_is_cold.
28398
28399 PR c/43385
28400 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
28401 argument if the argument is truth_value_p.
28402
28403 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28404
28405 * config/rs6000/constraints.md: Update copyright year for my changes.
28406
28407 PR target/43484
28408 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
28409 used in reg+reg addressing, swap registers.
28410
28411 2010-03-24 Jakub Jelinek <jakub@redhat.com>
28412
28413 PR debug/43293
28414 * target.h (struct gcc_target): Add code_end hook.
28415 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
28416 if not yet defined.
28417 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
28418 * toplev.c (compile_file): Call targetm.asm_out.code_end
28419 hook before unwind info/debug info output.
28420 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
28421 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
28422 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
28423 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
28424 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
28425 * config/i386/i386.c (ix86_file_end): Renamed to...
28426 (ix86_code_end): ... this. Make static. Don't call
28427 file_end_indicate_exec_stack. Emit unwind info using
28428 final_start_function/final_end_function.
28429 (darwin_x86_file_end): Remove.
28430 (TARGET_ASM_CODE_END): Define.
28431 * config/i386/i386.h (TARGET_ASM_FILE_END,
28432 NEED_INDICATE_EXEC_STACK): Don't define.
28433 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
28434 (TARGET_ASM_FILE_END): Define to darwin_file_end.
28435 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
28436 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
28437
28438 PR target/43498
28439 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
28440 at the beginning and final_end_function at the end.
28441 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
28442
28443 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28444
28445 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
28446 and Sun as TLS syntax.
28447 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
28448 * configure: Regenerate.
28449 * config.in: Regenerate.
28450 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
28451 (default_elf_asm_named_section): Use it.
28452 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
28453 (i386_output_dwarf_dtprel): Likewise.
28454 (output_addr_const_extra): Likewise.
28455 (output_pic_addr_const): Lowercase @GOTTPOFF.
28456 (output_addr_const_extra): Likewise.
28457 (output_pic_addr_const): Lowercase @GOTNTPOFF.
28458 (output_addr_const_extra): Likewise.
28459 (output_pic_addr_const): Lowercase @INDNTPOFF.
28460 (output_addr_const_extra): Likewise.
28461 (output_pic_addr_const): Lowercase @NTPOFF.
28462 (output_addr_const_extra): Likewise.
28463 (output_pic_addr_const): Lowercase @TPOFF.
28464 (output_addr_const_extra): Likewise.
28465 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
28466 (*tls_global_dynamic_64): Likewise.
28467 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
28468 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
28469
28470 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
28471 (ASM_OUTPUT_TLS_COMMON): Use it.
28472 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
28473
28474 PR target/38118
28475 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
28476 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
28477 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
28478 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
28479 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
28480 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
28481
28482 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28483
28484 * config/i386/i386.c (override_options): Don't accept
28485 -mtls-dialect=sun any longer.
28486 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
28487 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
28488 (*tls_local_dynamic_base_32_sun): Likewise.
28489 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
28490
28491 2010-03-24 Jakub Jelinek <jakub@redhat.com>
28492
28493 PR debug/43508
28494 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28495 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
28496
28497 PR debug/43479
28498 * ira.c (adjust_cleared_regs): New function.
28499 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
28500
28501 PR debug/19192
28502 PR debug/43479
28503 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
28504 from gimple_block.
28505 * expr.c (expand_expr_real): Restore previous
28506 curr_insn_source_location and curr_insn_block after
28507 expand_expr_real_1 call.
28508 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
28509 instead of expand_expr_real_1.
28510
28511 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
28512
28513 PR rtl-optimization/43413
28514 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
28515 hard regs too.
28516
28517 2010-03-22 James E. Wilson <wilson@codesourcery.com>
28518
28519 PR target/43348
28520 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
28521 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
28522
28523 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
28524
28525 * config/i386/i386.c (ix86_target_string): Add -mfma.
28526 Fix a typo in comment.
28527
28528 2010-03-22 Mike Stump <mikestump@comcast.net>
28529
28530 PR target/23071
28531 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
28532 Don't overly align based upon packed packed fields.
28533
28534 2010-03-22 Jason Merrill <jason@redhat.com>
28535
28536 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
28537 Use () rather than [], and move before the element type.
28538
28539 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28540
28541 * doc/configfiles.texi (Configuration Files): Removed
28542 fixinc/Makefile*, intl/Makefile.*.
28543 * doc/makefile.texi: Fixed markup. Abstract from version
28544 control system used.
28545 (Makefile): Removed obsolete java/parse.y example.
28546 * doc/sourcebuild.texi: Likewise.
28547 (Top Level): Added config, gnattools, libdecnumber, libgcc,
28548 libgomp, libssp. Removed fastjar.
28549 (Miscellaneous Docs): Clarify location.
28550 Added COPYING3, COPYING3.LIB.
28551 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
28552
28553 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28554
28555 PR target/38085
28556 * config/i386/i386.c (x86_function_profiler)
28557 [!NO_PROFILE_COUNTERS]: Fix typo.
28558 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
28559 instead of callq.
28560
28561 2010-03-22 Janis Johnson <janis187@us.ibm.com>
28562 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28563
28564 * doc/sourcebuild.texi (Test Directives): Split into six
28565 subsections, with most of the current text in new subsections
28566 Directives, Selectors, and Final Actions.
28567 (Directives): Split list of test directives into multiple
28568 subsubsections.
28569 (Selectors): Describe use and syntax of selectors.
28570 (Effective-Target Keywords): Describe all existing keywords.
28571 (Add Options): Describe features for dg-add-options.
28572 (Require Support): Describe variants of dg-require-support.
28573 (Final Actions): Describe commands to use in dg-final.
28574
28575 2010-03-22 Michael Matz <matz@suse.de>
28576
28577 PR middle-end/43475
28578 * recog.c (validate_replace_rtx_group): Replace also in
28579 REG_EQUAL and REG_EQUIV notes.
28580
28581 2010-03-22 Richard Guenther <rguenther@suse.de>
28582
28583 PR tree-optimization/43390
28584 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
28585 sure vector extracts are type correct.
28586
28587 2010-03-22 Richard Guenther <rguenther@suse.de>
28588
28589 PR middle-end/40106
28590 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
28591 x * sqrt (x) even when optimizing for size if the target
28592 has native support for sqrt.
28593
28594 2010-03-22 Jakub Jelinek <jakub@redhat.com>
28595
28596 * varasm.c (make_decl_rtl_for_debug): Also clear
28597 flag_mudflap for the duration of make_decl_rtl call.
28598
28599 PR debug/43443
28600 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
28601 locs from preserved VALUEs.
28602
28603 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28604
28605 PR middle-end/42718
28606 * pa.md (movmemsi): Set align to one if zero.
28607 (movmemdi): Likewise.
28608
28609 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
28610
28611 PR target/42321
28612 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
28613 with their corresponding prologue pushes.
28614
28615 2010-03-20 Andrew Pinski <pinskia@gmail.com>
28616
28617 PR target/43156
28618 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
28619 at the begining or end.
28620 (spu_expand_epilogue): Likewise.
28621
28622 2010-03-20 Richard Guenther <rguenther@suse.de>
28623
28624 PR rtl-optimization/43438
28625 * combine.c (make_extraction): Properly zero-/sign-extend an
28626 extraction of the low part of a CONST_INT. Also handle
28627 CONST_DOUBLE.
28628
28629 2010-03-19 Mike Stump <mikestump@comcast.net>
28630
28631 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
28632 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
28633 (override_options): Use SUBTARGET32_DEFAULT_CPU.
28634
28635 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
28636
28637 PR c/43211
28638 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
28639 an error.
28640
28641 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
28642
28643 PR rtl-optimization/42258
28644 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
28645 use that may match DEF.
28646
28647 PR target/40697
28648 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
28649 the cost of loading the constant rather than assuming
28650 COSTS_N_INSNS (1).
28651 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
28652 outer code is AND, do the same tests as the andsi3 expander and
28653 return COSTS_N_INSNS (1) if and is cheap.
28654
28655 * optabs.c (avoid_expensive_constant): Fix formatting.
28656
28657 2010-03-19 Michael Matz <matz@suse.de>
28658
28659 PR c++/43116
28660 * attribs.c (decl_attributes): When rebuilding a function pointer
28661 type use the same qualifiers as the original pointer type.
28662
28663 2010-03-19 Martin Jambor <mjambor@suse.cz>
28664
28665 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
28666 and is_gimple_ip_invariant_address.
28667
28668 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28669
28670 Revert
28671 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28672
28673 * config/arm/arm.c (arm_override_options): Turn off
28674 flag_dwarf2_cfi_asm for AAPCS variants.
28675
28676 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28677
28678 PR target/43399
28679 * config/arm/arm.c (emit_multi_reg_push): Update comments.
28680 Use PRE_MODIFY instead of PRE_DEC.
28681 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
28682 (vfp_emit_fstmd): Likewise.
28683
28684 2010-03-19 Michael Matz <matz@suse.de>
28685
28686 PR target/43305
28687 * builtins.c (expand_builtin_interclass_mathfn,
28688 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
28689 if that fails.
28690
28691 2010-03-19 Richard Guenther <rguenther@suse.de>
28692
28693 PR tree-optimization/43415
28694 * tree-ssa-pre.c (phi_translate): Split out worker to ...
28695 (phi_translate_1): ... this.
28696 (phi_translate): Move all caching here. Cache all NARY
28697 and REFERENCE translations.
28698
28699 2010-03-19 David S. Miller <davem@davemloft.net>
28700
28701 With help from Eric Botcazou.
28702 * config/sparc/sparc.c: Include dwarf2out.h.
28703 (emit_pic_helper): Delete.
28704 (pic_helper_symbol_name): Delete.
28705 (pic_helper_emitted_p): Delete.
28706 (pic_helper_needed): New.
28707 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
28708 (get_pc_thunk_name): New.
28709 (load_pic_register): Remove 'delay_pic_helper' arg. Use
28710 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
28711 Set pic_helper_needed to true. Don't call emit_pic_helper.
28712 (sparc_expand_prologue): Update load_pic_register call.
28713 (sparc_output_mi_thunk): Likewise.
28714 (sparc_file_end): Emit a hidden comdat symbol for the PIC
28715 thunk if possible. Output CFI information as needed.
28716
28717 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
28718 Jack Howarth <howarth@bromo.med.uc.edu>
28719
28720 PR target/36399
28721 * config/i386/i386.h: Fix ABI on darwin x86-32.
28722
28723 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
28724
28725 * tree.h: Declare make_decl_rtl_for_debug.
28726 * varasm.c (make_decl_rtl_for_debug): New.
28727 * dwarf2out.c (rtl_for_decl_location): Call it.
28728 * cfgexpand.c (expand_debug_expr): Call it.
28729
28730 2010-03-18 Jakub Jelinek <jakub@redhat.com>
28731
28732 PR bootstrap/43399
28733 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
28734 mem_mode.
28735
28736 PR bootstrap/43403
28737 * var-tracking.c (vt_init_cfa_base): Do nothing if
28738 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
28739
28740 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
28741
28742 PR debug/42873
28743 * var-tracking.c (canonicalize_vars_star): New.
28744 (dataflow_post_merge_adjust): Use it.
28745
28746 2010-03-18 Jakub Jelinek <jakub@redhat.com>
28747
28748 PR debug/43058
28749 * var-tracking.c (non_suitable_const): New function.
28750 (add_uses): For DEBUG_INSNs with constants, don't record any
28751 value, instead just the constant value itself.
28752 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
28753 is not VAR_LOC_UNKNOWN_P, set var to the constant.
28754 (emit_notes_in_bb): Likewise.
28755 (emit_note_insn_var_location): For onepart variables if
28756 cur_loc is a VOIDmode constant, use DECL_MODE.
28757
28758 2010-03-18 Martin Jambor <mjambor@suse.cz>
28759
28760 PR middle-end/42450
28761 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
28762 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
28763 all non-clones. Moved call redirection...
28764 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
28765 (cgraph_materialize_all_clones): Dispose of all
28766 combined_args_to_skip bitmaps.
28767 (verify_cgraph_node): Do not check for edges pointing to wrong
28768 nodes in inline clones.
28769 * tree-inline.c (copy_bb): Call
28770 cgraph_redirect_edge_call_stmt_to_callee.
28771 * ipa.c (cgraph_remove_unreachable_nodes): Call
28772 cgraph_node_remove_callees even when there are used clones.
28773
28774 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
28775
28776 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
28777
28778 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
28779
28780 PR target/43383
28781 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
28782 for 32bit.
28783
28784 2010-03-18 Michael Matz <matz@suse.de>
28785
28786 PR middle-end/43419
28787 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
28788 into sqrt(x) if we need to preserve signed zeros.
28789
28790 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
28791 Eric Botcazou <ebotcazou@adacore.com>
28792
28793 PR rtl-optimization/43360
28794 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
28795 note if we don't know its invariant status.
28796
28797 2010-03-18 Michael Matz <matz@suse.de>
28798
28799 PR tree-optimization/43402
28800 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
28801 PHI chains of ssa names registered for update.
28802
28803 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
28804
28805 PR target/42427
28806 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
28807 non-offsettable and pre_modify update addressing.
28808 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
28809 and "2" alternatives "#".
28810 (*movdd_softfloat32): Make all alternatives "#";
28811 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
28812 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
28813 (*movdf_softfloat32): Make all alternatives "#";
28814 (movdi): Use the new DIFD mode iterator to create a common splitter
28815 for movdi, movdf and movdd patterns.
28816
28817 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
28818
28819 * common.opt (dumpdir): Remove redundant tab.
28820
28821 2010-03-17 Martin Jambor <mjambor@suse.cz>
28822
28823 PR tree-optimization/43347
28824 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
28825 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
28826
28827 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
28828
28829 PR rtl-optimization/42216
28830 * regrename.c (create_new_chain): New function, broken out from...
28831 (scan_rtx_reg): ... here. Call it. Handle the case where we are
28832 appending a use to an empty chain.
28833 (build_def_use): Remove previous changes that convert OP_INOUT to
28834 OP_OUT operands; instead detect the case where an OP_INOUT operand
28835 uses a previously untracked register and create an empty chain for it.
28836
28837 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28838
28839 * doc/extend.texi (Function Attributes): Rewrite unfinished
28840 sentence in ms_abi documentation.
28841
28842 2010-03-17 Alan Modra <amodra@gmail.com>
28843
28844 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
28845 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
28846 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
28847 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
28848
28849 2010-03-16 Richard Henderson <rth@redhat.com>
28850
28851 PR middle-end/43365
28852 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
28853 (lower_try_finally): Save and restore eh_seq around the expansion
28854 of the try-finally.
28855
28856 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
28857
28858 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
28859 statements before splitting block.
28860
28861 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28862
28863 * doc/sourcebuild.texi (Testsuites): Fix markup.
28864 Use pathnames relative to gcc/testsuite.
28865 (Test Directives): Move description of how timeout is determined.
28866 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
28867 (C Tests): Correct gcc.misc-tests directory.
28868 Framework tests now live in gcc.test-framework.
28869
28870 2010-03-16 Richard Guenther <rguenther@suse.de>
28871
28872 PR middle-end/43379
28873 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
28874 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
28875
28876 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
28877 Alexandre Oliva <aoliva@redhat.com>
28878
28879 PR tree-optimization/42917
28880 * lambda-code.c (remove_iv): Skip debug statements.
28881 (lambda_loopnest_to_gcc_loopnest): Likewise.
28882 (not_interesting_stmt): Debug statements are not interesting.
28883
28884 2010-03-16 Jakub Jelinek <jakub@redhat.com>
28885
28886 PR debug/43051
28887 PR debug/43092
28888 * cselib.c (cselib_preserve_constants,
28889 cfa_base_preserved_val): New static variables.
28890 (preserve_only_constants): New function.
28891 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
28892 clear its REG_VALUES. If cselib_preserve_constants, don't
28893 empty the whole hash table, but preserve there VALUEs with constants,
28894 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
28895 (cselib_preserve_cfa_base_value): New function.
28896 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
28897 (cselib_init): Change argument to int bitfield. Set
28898 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
28899 is in it.
28900 (cselib_finish): Clear cselib_preserve_constants and
28901 cfa_base_preserved_val.
28902 * cselib.h (enum cselib_record_what): New enum.
28903 (cselib_init): Change argument to int.
28904 (cselib_preserve_cfa_base_value): New prototype.
28905 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
28906 * dse.c (dse_step1): Likewise.
28907 * cfgcleanup.c (thread_jump): Likewise.
28908 * sched-deps.c (sched_analyze): Likewise.
28909 * gcse.c (local_cprop_pass): Likewise.
28910 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
28911 If FN is non-NULL, call the callback always and whenever it returns
28912 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
28913 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
28914 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
28915 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
28916 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
28917 * var-tracking.c: Include recog.h.
28918 (bb_stack_adjust_offset): Remove.
28919 (vt_stack_adjustments): Don't call it, instead just gather the
28920 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
28921 (adjust_stack_reference): Remove.
28922 (compute_cfa_pointer): New function.
28923 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
28924 (struct adjust_mem_data): New type.
28925 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
28926 functions.
28927 (get_address_mode): New function.
28928 (replace_expr_with_values): Use it.
28929 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
28930 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
28931 (adjust_sets): Remove.
28932 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
28933 Use get_address_mode.
28934 (get_adjusted_src): Remove.
28935 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
28936 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
28937 (add_with_sets): Don't call adjust_sets.
28938 (fp_setter, vt_init_cfa_base): New functions.
28939 (vt_initialize): Change return type to bool. Move most of pool etc.
28940 initialization to the beginning of the function from end. Pass
28941 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
28942 If !frame_pointer_needed, call vt_stack_adjustment before mos
28943 vector is filled, call vt_init_cfa_base if argp/framep has been
28944 eliminated to sp. If frame_pointer_needed and argp/framep has
28945 been eliminated to hard frame pointer, set
28946 hard_frame_pointer_adjustment and call vt_init_cfa_base after
28947 encountering fp setter in the prologue. For MO_ADJUST, call
28948 log_op_type before pusing the op into mos vector, not afterwards.
28949 Call adjust_insn before cselib_process_insn/add_with_sets,
28950 call cancel_changes (0) afterwards.
28951 (variable_tracking_main_1): Adjust for vt_initialize calling
28952 vt_stack_adjustments and returning whether it succeeded or not.
28953
28954 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
28955
28956 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
28957 debug statements.
28958
28959 2010-03-15 Jakub Jelinek <jakub@redhat.com>
28960
28961 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
28962 has been set.
28963 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
28964 drap_reg has not been set.
28965
28966 2010-03-15 Michael Matz <matz@suse.de>
28967
28968 PR middle-end/43300
28969 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
28970 use it to expand block copies.
28971 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
28972 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
28973 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
28974
28975 2010-03-15 Richard Guenther <rguenther@suse.de>
28976
28977 PR tree-optimization/43367
28978 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
28979 elimination check.
28980
28981 2010-03-15 Richard Guenther <rguenther@suse.de>
28982
28983 PR tree-optimization/43317
28984 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
28985
28986 2010-03-15 Martin Jambor <mjambor@suse.cz>
28987
28988 PR tree-optimization/43141
28989 * tree-sra.c (create_abstract_origin): New function.
28990 (modify_function): Call create_abstract_origin.
28991
28992 2010-03-15 Chris Demetriou <cgd@google.com>
28993
28994 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
28995 wasn't copied.
28996
28997 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
28998
28999 PR middle-end/43354
29000 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
29001 call insert_out_of_ssa_copy for default definitions.
29002
29003 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29004
29005 * graphite-clast-to-gimple.c (my_long_long): Defined.
29006 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
29007 * graphite-sese-to-poly.c (my_long_long): Defined.
29008 (scop_ivs_can_be_represented): Use it.
29009
29010 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29011
29012 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
29013 graphite-max-bbs-per-function, and loop-block-tile-size.
29014 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
29015 with "maximum".
29016 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
29017
29018 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29019
29020 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
29021 forward declaration.
29022 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
29023 (add_upper_bounds_from_estimated_nit): New.
29024 (build_loop_iteration_domains): Use it.
29025
29026 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29027
29028 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
29029
29030 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29031
29032 PR middle-end/43306
29033 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
29034 should be an INTEGER_CST. Also handle CASE_CONVERT.
29035
29036 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29037
29038 * graphite.c (graphite_initialize): To bound the number of bbs per
29039 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
29040 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
29041 * doc/invoke.texi: Document it.
29042
29043 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29044
29045 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
29046 * graphite-sese-to-poly.h (build_poly_scop): Same.
29047
29048 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
29049
29050 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
29051 the number of parameters in the scop. Use as an upper bound
29052 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
29053 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
29054 * doc/invoke.texi: Document it.
29055
29056 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
29057
29058 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
29059 * doc/c-tree.texi: Remove.
29060 * doc/generic.texi: Merge c-tree.texi here.
29061 * doc/gccint.texi (Trees): Remove menu entry.
29062 (c-tree.texi): Remove @include.
29063 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
29064 * doc/languages.texi (Reading RTL): Ditto.
29065
29066 2010-03-12 Steve Ellcey <sje@cup.hp.com>
29067
29068 PR target/42869
29069 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
29070
29071 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
29072
29073 PR middle-end/42431
29074 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
29075 code added to work around reload clobbering CONST insns.
29076
29077 2010-03-12 Jakub Jelinek <jakub@redhat.com>
29078
29079 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
29080 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
29081 (cselib_preserve_only_values): Remove retain argument, don't
29082 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
29083 * cselib.h (cselib_preserve_only_values): Remove retain argument.
29084 * var-tracking.c (micro_operation): Move insn field before union.
29085 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
29086 (struct variable_tracking_info_def): Remove n_mos field, change
29087 mos into a vector of micro_operations.
29088 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
29089 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
29090 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
29091 changing into a vector.
29092 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
29093 come before all other uops generated by add_stores.
29094 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
29095 argument removal.
29096 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
29097 a vector. Run just one pass over the bbs instead of separate counting
29098 and computation phase.
29099 (vt_finalize): Free VTI (bb)->mos vector instead of array.
29100
29101 PR debug/43329
29102 * tree-inline.c (remap_decls): Put old_var rather than origin_var
29103 into *nonlocalized_list vector.
29104 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
29105 even if origin is non-NULL.
29106 (gen_variable_die): Likewise.
29107 (process_scope_var): Don't change origin.
29108 (gen_decl_die): Likewise.
29109 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
29110 before adding new edges instead of after it, fix moving over
29111 debug stmts.
29112
29113 2010-03-11 David S. Miller <davem@davemloft.net>
29114
29115 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
29116 of four.
29117 * configure: Rebuild.
29118
29119 2010-03-11 Martin Jambor <mjambor@suse.cz>
29120
29121 PR tree-optimization/43257
29122 * tree.c (assign_assembler_name_if_neeeded): New function.
29123 (free_lang_data_in_cgraph): Assembler name assignment moved to the
29124 above new function.
29125 * tree.h (assign_assembler_name_if_neeeded): Declare.
29126 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
29127 the function if needed.
29128
29129 2010-03-11 Chris Demetriou <cgd@google.com>
29130
29131 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
29132 include/stdint-gcc.h, and include/stdint.h world-readable.
29133
29134 2010-03-11 Richard Guenther <rguenther@suse.de>
29135
29136 PR tree-optimization/43255
29137 * tree-vrp.c (process_assert_insertions_for): Do not insert
29138 asserts for trivial conditions.
29139
29140 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29141
29142 PR tree-optimization/43280
29143 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
29144 generation. Move calculation of size out of the if branch.
29145 (find_bswap): Modify compare number generation.
29146
29147 2010-03-11 Richard Guenther <rguenther@suse.de>
29148
29149 PR lto/43200
29150 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
29151 (input_gimple_stmt): Fixup handled component types during
29152 operand read. Also fix up decls in ADDR_EXPRs.
29153
29154 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
29155
29156 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
29157 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
29158
29159 2010-03-10 Jan Hubicka <jh@suse.cz>
29160
29161 PR c/43288
29162 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
29163 * varasm.c (get_variable_section): Don't do that here...
29164 (make_decl_rtl): ... and here.
29165 (do_assemble_alias): Produce decl RTL.
29166 (assemble_alias): Likewise.
29167
29168 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29169
29170 PR debug/43290
29171 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
29172 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
29173 of fde->vdrap_reg.
29174 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
29175 (based_loc_descr): Only express drap or vdrap regno based expressions
29176 using DW_OP_fbreg when not optimizing.
29177 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
29178 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
29179 REG_CFA_SET_VDRAP note.
29180
29181 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
29182
29183 PR tree-optimization/43236
29184 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
29185 error in calculation of base address in reverse iteration case.
29186 (generate_builtin): Take number of latch executions if the statement
29187 is in the latch.
29188
29189 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
29190
29191 PR middle-end/42859
29192 * tree-eh.c: Include pointer-set.h.
29193 (lower_eh_dispatch): Filter out duplicate case labels and
29194 remove the unneeded edge when the label is unused. Return
29195 true when some edges are removed.
29196 (execute_lower_eh_dispatch): When any lowering resulted in
29197 removing an edge, also delete unreachable blocks.
29198
29199 2010-03-10 Jakub Jelinek <jakub@redhat.com>
29200
29201 PR bootstrap/43287
29202 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
29203 UNSPEC_MACHOPIC_OFFSET.
29204
29205 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
29206
29207 PR target/43294
29208 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
29209 (m68k_delegitimize_address): New function.
29210
29211 2010-03-09 Jakub Jelinek <jakub@redhat.com>
29212
29213 PR debug/43299
29214 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
29215
29216 PR debug/43299
29217 * var-tracking.c (adjust_sets): New function.
29218 (count_with_sets, add_with_sets): Use it.
29219 (get_adjusted_src): New inline function.
29220 (add_stores): Use it.
29221
29222 PR debug/43304
29223 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
29224 call cselib_dummy_expand_value_rtx_cb instead of
29225 cselib_expand_value_rtx_cb.
29226
29227 PR debug/43293
29228 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
29229 * config/i386/i386.c: Include debug.h and dwarf2out.h.
29230 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
29231 and .cfi_endproc around the pic thunks.
29232 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
29233 all queued unwind info register saves are saved before the call.
29234 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
29235 considered as sp-=4 for unwind info and the pop as sp+=4 which
29236 also clobbers dest, but doesn't actually restore it.
29237
29238 PR debug/43290
29239 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
29240 RTX_FRAME_RELATED_P.
29241
29242 2010-03-09 Jie Zhang <jie@codesourcery.com>
29243
29244 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
29245 whitespaces in output template.
29246
29247 2010-03-09 Jie Zhang <jie@codesourcery.com>
29248
29249 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
29250 out array boundary.
29251
29252 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29253
29254 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
29255 builtins.exp in a separate job.
29256
29257 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29258
29259 * graphite-sese-to-poly.c (add_param_constraints): Use
29260 lower_bound_in_type and upper_bound_in_type.
29261
29262 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29263
29264 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
29265 instead of unsigned_type_node.
29266
29267 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29268 Reza Yazdani <reza.yazdani@amd.com>
29269
29270 PR middle-end/43065
29271 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
29272 on pointer type parameters.
29273
29274 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29275
29276 PR middle-end/42644
29277 PR middle-end/42130
29278 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
29279 handle conversions from pointer to integers.
29280 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
29281 induction variable, to be able to work with code generated by CLooG.
29282 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
29283 (build_poly_scop): Bail out if we cannot codegen a loop.
29284
29285 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
29286
29287 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
29288 code generation with gloog_error.
29289
29290 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29291
29292 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
29293 Call fold_convert on all the returned values.
29294 (expand_scalar_variables_expr): Pass to
29295 expand_scalar_variables_ssa_name the type of the resulting expression.
29296
29297 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29298
29299 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
29300 ppl_min_for_le_pointset.
29301 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
29302 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
29303
29304 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29305
29306 * graphite-dependences.c (map_into_dep_poly): Removed.
29307 (dependence_polyhedron_1): Use combine_context_id_scat.
29308
29309 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29310
29311 * graphite-poly.h (struct poly_scattering): Add layout documentation.
29312 (struct poly_bb): Same.
29313 (combine_context_id_scat): New.
29314
29315 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29316
29317 PR middle-end/42326
29318 * sese.c (name_defined_in_loop_p): Return false for default
29319 definitions.
29320
29321 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29322
29323 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
29324 and clean up the logic.
29325
29326 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
29327
29328 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
29329 early return.
29330
29331 2010-03-08 Jakub Jelinek <jakub@redhat.com>
29332
29333 * var-tracking.c (remove_cselib_value_chains): Define only for
29334 ENABLE_CHECKING.
29335 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
29336 delete_slot_part, emit_notes_for_differences_1): Don't call
29337 remove_cselib_value_chains here.
29338 (set_slot_part, emit_notes_for_differences_2): Don't call
29339 add_cselib_value_chains here.
29340 (preserved_values): New vector.
29341 (preserve_value): New function.
29342 (add_uses, add_stores, vt_add_function_parameters): Use it
29343 instead of cselib_preserve_value.
29344 (changed_values_stack): New vector.
29345 (check_changed_vars_0): New function.
29346 (check_changed_vars_1, check_changed_vars_2): Use it.
29347 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
29348 changed_values_stack VALUEs.
29349 (vt_emit_notes): For all preserved_values call
29350 add_cselib_value_chains. If ENABLE_CHECKING call
29351 remove_cselib_value_chains before verifying value_chains is empty.
29352 Initialize and free changed_values_stack.
29353 (vt_initialize): Initialize preserved_values.
29354 (vt_finalize): Free preserved_values.
29355
29356 2010-03-08 Richard Guenther <rguenther@suse.de>
29357
29358 PR tree-optimization/43269
29359 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
29360 region detection.
29361
29362 2010-03-08 Martin Jambor <mjambor@suse.cz>
29363
29364 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
29365 (ipa_is_param_called): Removed.
29366 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
29367 (ipa_print_node_params): Do not print the called flag.
29368 (ipa_write_node_info): Do not stream the called flag.
29369 (ipa_read_node_info): Likewise.
29370
29371 2010-03-07 Jakub Jelinek <jakub@redhat.com>
29372
29373 PR debug/43176
29374 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
29375 * cselib.c (struct expand_value_data): Add dummy field.
29376 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
29377 dummy to false.
29378 (cselib_dummy_expand_value_rtx_cb): New function.
29379 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
29380 any rtl.
29381 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
29382 * var-tracking.c: Include pointer-set.h.
29383 (variable): Change n_var_parts to char from int. Add
29384 cur_loc_changed and in_changed_variables fields.
29385 (variable_canonicalize): Remove.
29386 (shared_var_p): New inline function.
29387 (unshare_variable): Maintain cur_loc_changed and
29388 in_changed_variables fields. If var was in changed_variables,
29389 replace it there with new_var. Just copy cur_loc instead of
29390 resetting it to something else.
29391 (variable_union): Don't recompute cur_loc. Use shared_var_p.
29392 (dataflow_set_union): Don't call variable_canonicalize.
29393 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
29394 of their DEBUG_EXPR_TREE_DECLs.
29395 (canonicalize_loc_order_check): Verify that cur_loc is NULL
29396 and in_changed_variables and cur_loc_changed is false.
29397 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
29398 and cur_loc_changed. Don't update cur_loc here.
29399 (variable_merge_over_src): Don't call variable_canonicalize.
29400 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
29401 removing loc that is equal to cur_loc, clear cur_loc,
29402 set cur_loc_changed and ensure variable_was_changed is called.
29403 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
29404 compare pointers in cur_loc check, if it is equal to loc,
29405 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
29406 (variable_different_p): Remove compare_current_location argument,
29407 don't compare cur_loc.
29408 (dataflow_set_different_1): Adjust variable_different_p caller.
29409 (variable_was_changed): If dv had some var in changed_variables
29410 already, reset in_changed_variables flag for it and propagate
29411 cur_loc_changed over to the new variable. On empty var
29412 always set cur_loc_changed. Set in_changed_variables on whatever
29413 var is added to changed_variables.
29414 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
29415 Use shared_var_p. When removing loc that is equal to cur_loc,
29416 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
29417 end, don't set it to something else, just call variable_was_changed.
29418 (delete_slot_part): Use shared_var_p. When cur_loc equals to
29419 loc being removed, clear cur_loc and set cur_loc_changed.
29420 Set cur_loc_changed if all locations have been removed.
29421 (struct expand_loc_callback_data): New type.
29422 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
29423 allocated. Always create SUBREGs if simplify_subreg failed.
29424 Prefer to use cur_loc, when that fails and still in
29425 changed_variables (and seen first time) recompute it. Set
29426 cur_loc_changed of variables which had to change cur_loc and
29427 compute elcd->cur_loc_changed if any of the subexpressions used
29428 had to change cur_loc.
29429 (vt_expand_loc): Adjust to pass arguments in
29430 expand_loc_callback_data structure.
29431 (vt_expand_loc_dummy): New function.
29432 (emitted_notes): New variable.
29433 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
29434 that weren't used for any other decl in current
29435 emit_notes_for_changes call call vt_expand_loc_dummy to update
29436 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
29437 first loc_chain location if NULL before. Always use just
29438 cur_loc instead of first loc_chain location. When cur_loc_changed
29439 is false, when not --enable-checking=rtl just don't emit any note.
29440 When rtl checking, compute the note and assert it is the same
29441 as previous note. Clear cur_loc_changed and in_changed_variables
29442 at the end before removing from changed_variables.
29443 (check_changed_vars_3): New function.
29444 (emit_notes_for_changes): Traverse changed_vars to call
29445 check_changed_vars_3 on each changed var.
29446 (emit_notes_for_differences_1): Clear cur_loc_changed and
29447 in_changed_variables. Recompute cur_loc of new_var.
29448 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
29449 (vt_emit_notes): Initialize and destroy emitted_notes.
29450
29451 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
29452
29453 PR rtl-optimization/42220
29454 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
29455 Use verify_reg_tracked to determine if we should use OP_OUT rather
29456 than OP_INOUT.
29457 (build_def_use): If we see an in-out operand for a register that we
29458 know nothing about, treat is an output if possible, fail the block if
29459 not.
29460
29461 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
29462
29463 PR debug/42897
29464 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
29465 permanently.
29466
29467 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
29468
29469 PR debug/42897
29470 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
29471 uses of relevant DEFs that are dead outside the loop too.
29472
29473 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
29474
29475 * var-tracking.c (dataflow_set_merge): Swap src and src2.
29476 Reverted:
29477 2010-01-13 Jakub Jelinek <jakub@redhat.com>
29478 PR debug/41371
29479 * var-tracking.c (values_to_unmark): New variable.
29480 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
29481 values_to_unmark vector. Moved body to...
29482 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
29483 instead queue it into values_to_unmark vector.
29484 (vt_find_locations): Free values_to_unmark vector.
29485
29486 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
29487
29488 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
29489 (site.exp): Export them when plugins are enabled.
29490
29491 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
29492
29493 PR middle-end/42326
29494 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
29495 that contain scevs.
29496 (chrec_fold_multiply): Same.
29497
29498 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29499
29500 PR c/43248
29501 * c-decl.c (build_compound_literal): Return early if init is
29502 an error_mark_node.
29503
29504 2010-03-04 Martin Jambor <mjambor@suse.cz>
29505
29506 PR tree-optimization/43164
29507 PR tree-optimization/43191
29508 * tree-sra.c (type_consists_of_records_p): Reject records with
29509 zero-size bit-fields at the end.
29510
29511 2010-03-04 Mike Stump <mikestump@comcast.net>
29512
29513 * Makefile.in (TAGS): Remove *.y.
29514
29515 2010-03-04 Richard Guenther <rguenther@suse.de>
29516
29517 PR tree-optimization/40761
29518 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
29519 in reverse order.
29520 (my_rev_post_order_compute): New function.
29521 (init_pre): Call it.
29522
29523 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
29524
29525 PR middle-end/43209
29526 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
29527 decrease the cost of an IV candidate when the cost is infinite.
29528
29529 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29530
29531 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
29532 Use '3DNow!' for the extension of that name, ensure normal space
29533 after the string.
29534 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
29535
29536 2010-03-03 Jeff Law <law@redhat.com>
29537
29538 * PR middle-end/32693
29539 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
29540 than gen_rtx_SUBREG.
29541 (extract_bit_field_1): Likewise.
29542
29543 2010-03-03 Janis Johnson <janis187@us.ibm.com>
29544
29545 * doc/sourcebuild.texi (Test directives): Document that arguments
29546 include-opts and exclude-opts are now optional for dg-skip-if,
29547 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
29548
29549 2010-03-03 Jason Merrill <jason@redhat.com>
29550
29551 PR c++/12909
29552 * cgraph.h (varpool_node): Add extra_name field.
29553 * varpool.c (varpool_extra_name_alias): New.
29554 (varpool_assemble_decl): Emit extra name aliases.
29555 (varpool_mark_needed_node): Look past an extra name alias.
29556 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
29557 * lto-streamer-in.c (lto_input_tree): Read it.
29558 * lto-streamer-out.c (output_unreferenced_globals): Write it.
29559
29560 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
29561
29562 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
29563 (sparc*-*-solaris2*): ...this.
29564
29565 2010-03-03 Jakub Jelinek <jakub@redhat.com>
29566
29567 PR debug/43229
29568 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
29569 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
29570 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
29571 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
29572
29573 PR debug/43237
29574 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
29575 fallthrough to default handling, just with want_address 0 instead of 2.
29576 For single element lists, add_AT_loc directly, otherwise create an
29577 artificial variable DIE and stick location list to it.
29578
29579 PR debug/43177
29580 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
29581 (VAL_EXPR_HAS_REVERSE): Define.
29582 (reverse_op): New function.
29583 (add_stores): For reversible operations add an extra MO_VAL_USE.
29584
29585 2010-03-02 Jason Merrill <jason@redhat.com>
29586
29587 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
29588
29589 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
29590
29591 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
29592 (sparc64-*-linux*): Likewise.
29593 (sparc64-*-solaris2*): Include assembler files before linker ones.
29594 (sparc-*-solaris2*): Simplify and reorder to match previous case.
29595 * config/sparc/gas.h: Delete.
29596 * config/sparc/sol2-64.h: Add copyright notice.
29597 * config/sparc/sol2-gas-bi.h: Likewise.
29598 * config/sparc/sol2-gld.h: Likewise.
29599 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
29600 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
29601 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
29602 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
29603 (sparc_elf_asm_named_section): Rename into...
29604 (sparc_solaris_elf_asm_named_section): ...this. Always define.
29605
29606 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
29607
29608 * config/alpha/alpha.c (override_options): Fix -mtune error message.
29609
29610 2010-03-02 Jeff Law <law@redhat.com>
29611
29612 PR middle-end/42431
29613 * reload1.c (rtx_p, substitute_stack): Declare.
29614 (substitute): Record addresses of changed rtxs.
29615 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
29616 Restore the original rtx when complete.
29617 (reload): Free subsitute_stack when complete.
29618
29619 2010-03-02 Janis Johnson <janis187@us.ibm.com>
29620
29621 * doc/gccint.texi (menu): Add Testsuites as a chapter.
29622 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
29623 new chapter.
29624 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
29625 LTO Testing, gcov Testing, profopt Testing, compat Testing,
29626 Torture Tests): Change from subsection to section.
29627
29628 2010-03-02 Jakub Jelinek <jakub@redhat.com>
29629 Steven Bosscher <steven@gcc.gnu.org>
29630
29631 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
29632 instead of bb.
29633
29634 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
29635
29636 PR middle-end/42640
29637 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
29638 the assignment from the new induction variable to the assignment
29639 of the value from the original loop PHI function.
29640
29641 2010-03-01 Janis Johnson <janis187@us.ibm.com>
29642 Daniel Jacobowitz <dan@codesourcery.com>
29643
29644 * doc/sourcebuild.texi (Test directives): Clarify options to
29645 dg-skip-if.
29646
29647 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29648
29649 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
29650 Disable cfi directives unless GCC and gas agree on using read-only
29651 .eh_frame sections for 64-bit.
29652 * configure: Regenerate.
29653
29654 2010-03-01 Richard Guenther <rguenther@suse.de>
29655
29656 PR tree-optimization/43220
29657 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
29658 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
29659
29660 2010-03-01 Richard Guenther <rguenther@suse.de>
29661 Martin Jambor <mjambor@suse.cz>
29662
29663 PR middle-end/41250
29664 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
29665 gimplified parameters.
29666
29667 2010-03-01 Christian Bruel <christian.bruel@st.com>
29668
29669 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
29670
29671 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
29672
29673 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
29674
29675 2010-03-01 Richard Guenther <rguenther@suse.de>
29676
29677 PR middle-end/43213
29678 * expr.c (expand_assignment): Use the alias-oracle to tell
29679 if the rhs aliases the result decl.
29680
29681 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29682
29683 PR pch/14940
29684 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
29685 to sol_gt_pch_get_address.
29686 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
29687 64-bit, SPARC and x86.
29688 (sol_gt_pch_get_address): New function.
29689
29690 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
29691
29692 * toplev.h (inform_n, error_n): Declare.
29693 * diagnostic.c (inform_n, error_n): New function.
29694
29695 2010-03-01 Jakub Jelinek <jakub@redhat.com>
29696
29697 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
29698 has no rtl yet when processing local_decls, queue it and recheck
29699 if deferred stack allocation hasn't assigned it rtl.
29700
29701 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
29702
29703 * config/sh/sh.c (unspec_bbr_uid): New.
29704 (gen_block_redirect): Use it instead of INSN_UID.
29705 (gen_far_branch): Likewise.
29706
29707 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
29708
29709 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
29710 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
29711
29712 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29713
29714 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
29715 (Warning Options): -Wno-conversion-null is valid for
29716 Objective-C++ as well.
29717 * doc/tm.texi (Named Address Spaces): Likewise.
29718 * doc/plugins.texi (Plugins): Replace TABs with spaces.
29719 * doc/tree-ssa.texi (Tree SSA): Likewise.
29720
29721 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
29722
29723 PR bootstrap/43202
29724 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
29725 by default. Don't set the default arch for
29726 i[34567]86-*-darwin*|x86_64-*-darwin*.
29727
29728 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
29729
29730 PR bootstrap/43202
29731 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
29732 default. Set the default 32bit/64bit archs with $with_arch
29733 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
29734
29735 2010-02-27 Richard Guenther <rguenther@suse.de>
29736
29737 PR tree-optimization/43186
29738 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
29739 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
29740 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
29741 unroller iterations.
29742
29743 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
29744
29745 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
29746 required and i[34567]86-*-* targets don't support 64bit ISA.
29747
29748 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
29749
29750 PR ada/43096
29751 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
29752 the same alias set.
29753
29754 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
29755
29756 * config.gcc: Set the default arch at least to Prescott for
29757 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
29758 if SSE math is enabled.
29759
29760 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
29761
29762 * diagnostic.c (diagnostic_initialize): Update.
29763 (diagnostic_report_diagnostic): Test inhibit_notes_p for
29764 informative notes.
29765 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
29766 (diagnostic_inhibit_notes): New.
29767 * toplev.c (process_options): inhibit notes with -fcompare-debug.
29768
29769 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
29770
29771 PR c/20631
29772 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
29773 * doc/standards.texi: Likewise.
29774 * doc/extend.texi: Likewise.
29775 * doc/trouble.texi: Likewise.
29776 * doc/cppopts.texi: Likewise.
29777 * doc/install.texi: Likewise.
29778 * c.opt (std=c90,std=gnu90): New options.
29779 * c-opts.c (c_common_handle_option): Handle them.
29780
29781 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
29782
29783 PR c/24577
29784 * c-decl.c (undeclared_variable): Use an informative note.
29785
29786 2010-02-26 Richard Guenther <rguenther@suse.de>
29787
29788 PR tree-optimization/43186
29789 * gimple.h (gimple_fold): Remove.
29790 * gimple.c (gimple_fold): Remove. Inline into single user ...
29791 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
29792 Try harder for conditions.
29793
29794 2010-02-26 Jakub Jelinek <jakub@redhat.com>
29795
29796 PR debug/43190
29797 * function.c (used_types_insert): Don't skip through named pointer
29798 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
29799 and it is different from the main variant's type.
29800
29801 2010-02-26 Nick Clifton <nickc@redhat.com>
29802
29803 * config/rx/rx.md (sminsi3): Remove bogus alternative.
29804
29805 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
29806
29807 * config.gcc: Support --with-fpmath=sse for x86.
29808
29809 * config/i386/ssemath.h: New.
29810
29811 * doc/install.texi (--with-fpmath=sse): Documented.
29812
29813 2010-02-26 Richard Guenther <rguenther@suse.de>
29814
29815 PR tree-optimization/43188
29816 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
29817 vector types of over-aligned element type.
29818
29819 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
29820
29821 PR target/43175
29822 * config/i386/i386.c (expand_vec_perm_blend): Use correct
29823 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
29824
29825 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
29826
29827 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
29828
29829 2010-02-26 Jakub Jelinek <jakub@redhat.com>
29830
29831 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
29832 * var-tracking.c: Include diagnostic.h.
29833 (debug_dv): New function.
29834 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
29835
29836 PR debug/43160
29837 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
29838 (add_value_chain, add_value_chains, remove_value_chain,
29839 remove_value_chains): Handle DEBUG_EXPRs.
29840 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
29841
29842 PR debug/43161
29843 * regcprop.c (struct queued_debug_insn_change): New type.
29844 (struct value_data_entry): Add debug_insn_changes field.
29845 (struct value_data): Add n_debug_insn_changes field.
29846 (debug_insn_changes_pool): New variable.
29847 (free_debug_insn_changes, apply_debug_insn_changes,
29848 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
29849 (kill_value_one_regno): Call free_debug_insn_changes if needed.
29850 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
29851 fields.
29852 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
29853 changes for them.
29854 (copyprop_hardreg_forward_1): Don't call apply_change_group for
29855 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
29856 changes, call cprop_find_used_regs via note_stores.
29857 (copyprop_hardreg_forward): When copying vd from predecessor
29858 which has any queued DEBUG_INSN changes, make sure the pointers are
29859 cleared. At the end call df_analyze and then if there are any
29860 DEBUG_INSN changes queued at the end of some basic block for still
29861 live registers, apply them.
29862 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
29863
29864 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
29865
29866 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
29867 (arm*-*-*): Ditto.
29868
29869 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
29870
29871 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
29872 targets. Set the default with_cpu/with_arch from arch/cpu.
29873 Allow x86-64 and native for with_cpu/with_arch.
29874
29875 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
29876
29877 * ebitmap.c: Change calls to verify_popcount with calls to
29878 sbitmap_verify_popcount.
29879 (ebitmap_clear_bit): Fixed map->cacheindex test and
29880 map>cache update when bit clearing results in an empty
29881 element.
29882
29883 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
29884
29885 PR target/43154
29886 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
29887 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
29888 and support both V2DF and V2DI modes.
29889 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
29890 support both V2DF and V2DI modes.
29891 (general): Delete trailing whitespace from a few patterns.
29892
29893 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29894 V2DF/V2DI interleave high/low builtins.
29895
29896 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
29897 new VSX builtins.
29898
29899 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
29900 interleave high/low functions.
29901
29902 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
29903
29904 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
29905 #pragma extern_prefix.
29906
29907 2010-02-25 Jakub Jelinek <jakub@redhat.com>
29908
29909 PR debug/43166
29910 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
29911 BLKmode, assert op0 is a MEM and just adjust its mode.
29912
29913 PR debug/43165
29914 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
29915 if bitpos isn't multiple of mode's bitsize.
29916
29917 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
29918
29919 * c.opt (-ftemplate-depth=): New.
29920 (-ftemplate-depth-): Deprecate.
29921 * optc-gen.awk: Handle -ftemplate-depth=.
29922 * opth-gen.awk: Likewise.
29923 * c-opts.c (c_common_handle_option): Likewise.
29924 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
29925
29926 2010-02-24 Jason Merrill <jason@redhat.com>
29927
29928 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
29929
29930 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29931
29932 * cfg.c (alloc_aux_for_block): Remove inline.
29933 (alloc_aux_for_edge): Likewise.
29934
29935 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29936
29937 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
29938
29939 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29940
29941 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
29942 * config/i386/sol2-gas.h: New file.
29943 * config.gcc (i[34567]86-*-solaris2*): Use it.
29944
29945 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
29946
29947 PR c/43128
29948 * c-typeck.c (ep_convert_and_check): New.
29949 (build_conditional_expr): Use it.
29950 (build_binary_op): Likewise.
29951
29952 2010-02-24 Jakub Jelinek <jakub@redhat.com>
29953
29954 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
29955
29956 PR debug/43150
29957 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
29958 bounds even for -O+.
29959 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
29960 expr needs to have DECL_NAME set.
29961
29962 2010-02-24 Nick Clifton <nickc@redhat.com>
29963
29964 * config/mep/mep.c: Include gimple.h.
29965 (mep_function_uses_sp): Delete unused function.
29966 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
29967 parameters. Use unsigned integers to count args. Return a
29968 NULL_RTX instead of an error_mark_node. Toidy up formatting.
29969
29970 2010-02-23 Jakub Jelinek <jakub@redhat.com>
29971
29972 PR target/43107
29973 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
29974 greater or equal to nelt instead of 2 * nelt.
29975 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
29976 with nelt - 1.
29977
29978 2010-02-23 Jason Merrill <jason@redhat.com>
29979
29980 PR debug/42800
29981 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
29982 in cfun->local_decls even if they have register types.
29983
29984 PR c++/42837
29985 * stor-layout.c (place_field): Don't warn about unnecessary
29986 DECL_PACKED if the type is packed.
29987
29988 2010-02-23 Jakub Jelinek <jakub@redhat.com>
29989
29990 PR target/43139
29991 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
29992 GOTOFF relocs, even when the base reg isn't pic pointer.
29993
29994 2010-02-23 Michael Matz <matz@suse.de>
29995
29996 PR debug/43077
29997 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
29998 (expand_gimple_basic_block): Generate and use debug temps if there
29999 are debug uses left after the last real use of TERed ssa names.
30000 Unlink debug immediate uses when they are expanded.
30001
30002 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
30003
30004 PR 43123
30005 * config/i386/i386.c (override_options): Reorganise to provide
30006 better error messages.
30007
30008 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30009
30010 PR middle-end/43083
30011 * graphite-scop-detection.c (create_single_exit_edge): Move
30012 the call to find_single_exit_edge to....
30013 (create_sese_edges): ...here. Don't handle multiple edges
30014 exiting the function.
30015 (build_graphite_scops): Don't handle multiple edges
30016 exiting the function.
30017
30018 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30019
30020 PR middle-end/43097
30021 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
30022 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
30023
30024 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
30025
30026 PR middle-end/43026
30027 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
30028
30029 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
30030
30031 PR c++/43126
30032 * c-typeck.c (convert_arguments): Print declaration location.
30033 * c-common.c (validate_nargs): Rename as
30034 builtin_function_validate_nargs.
30035 (check_builtin_function_arguments): Update.
30036
30037 2010-02-22 Richard Guenther <rguenther@suse.de>
30038
30039 PR lto/43045
30040 * tree-inline.c (declare_return_variable): Use the type of
30041 the call stmt lhs if available.
30042
30043 2010-02-22 Duncan Sands <baldrick@free.fr>
30044
30045 * passes.c (register_pass): Always consider all pass lists when
30046 ref_pass_instance_number is zero.
30047
30048 2010-02-22 Richard Guenther <rguenther@suse.de>
30049
30050 PR tree-optimization/42749
30051 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
30052 parameter. Do arithmetic in the original type.
30053 (update_accumulator_with_ops): Likewise.
30054 (adjust_accumulator_values): Adjust.
30055
30056 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30057
30058 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
30059 (QI to BLKmode splitter): New splitter.
30060
30061 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
30062
30063 * config/i386/i386.c (initial_ix86_tune_features): Turn on
30064 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
30065
30066 2010-02-22 Richard Guenther <rguenther@suse.de>
30067
30068 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
30069
30070 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
30071
30072 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
30073 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
30074 ($(T)crti.o, $(T)crtn.o): Remove rules.
30075
30076 2010-02-21 Tobias Burnus <burnus@net-b.de>
30077
30078 PR fortran/35259
30079 * doc/invoke.texi (-fassociative-math): Document that this
30080 option is automatically enabled for Fortran.
30081
30082 2010-02-20 David S. Miller <davem@davemloft.net>
30083
30084 * configure.ac: Test if linker and assembler properly support
30085 GOTDATA_OP relocations.
30086 * configure: Rebuild.
30087 * config.in: Likewise.
30088 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
30089 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
30090 (movsi_high_pic): Likewise.
30091 (movdi_lo_sum_pic): Likewise.
30092 (movdi_high_pic): Likewise.
30093 (movsi_pic_gotdata_op): New pattern.
30094 (movdi_pic_gotdata_op): Likewise.
30095 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
30096 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
30097
30098 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
30099
30100 PR target/43067
30101 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
30102 attribute to ssemul.
30103 (xop_mulv2div2di3_high): Ditto.
30104
30105 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30106
30107 PR c++/35669
30108 * c.opt (Wconversion-null): New option.
30109 * doc/invoke.texi (Wconversion-null): Document.
30110
30111 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30112
30113 * common.opt (Wlarger-than-): Add Undocumented.
30114
30115 2010-02-19 Mike Stump <mikestump@comcast.net>
30116
30117 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
30118
30119 2010-02-19 Jason Merrill <jason@redhat.com>
30120
30121 PR target/40332
30122 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
30123 * configure: Likewise.
30124
30125 2010-02-20 Alan Modra <amodra@gmail.com>
30126
30127 PR middle-end/42344
30128 * cgraph.h (cgraph_make_decl_local): Declare.
30129 * cgraph.c (cgraph_make_decl_local): New function.
30130 (cgraph_make_node_local): Use it.
30131 * cgraphunit.c (cgraph_function_versioning): Likewise.
30132 * ipa.c (function_and_variable_visibility): Likewise.
30133
30134 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30135
30136 PR bootstrap/43121
30137 * except.c (sjlj_emit_function_enter): Don't call
30138 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
30139 directly.
30140 * rtl.h (add_reg_br_prob_note): Remove prototype.
30141
30142 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
30143
30144 PR 41779
30145 * c-common.c (conversion_warning): Remove widening conversions
30146 before checking the conversion of integers to reals.
30147
30148 2010-02-19 Mike Stump <mikestump@comcast.net>
30149
30150 PR middle-end/43125
30151 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
30152
30153 PR objc/43061
30154 * cgraphunit.c (process_function_and_variable_attributes): Check
30155 DECL_PRESERVE_P instead of looking up attribute "used".
30156 * ipa-pure-const.c (check_decl): Likewise.
30157 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
30158 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
30159 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
30160 instead of attribute "used".
30161 * config/sol2-c.c (solaris_pragma_init): Likewise.
30162 (solaris_pragma_fini): Likewise.
30163
30164 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30165
30166 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
30167 Use XCNEW instead of xcalloc.
30168 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
30169 XNEW instead of xmalloc.
30170 (get_fields): Use XNEWVEC instead of xmalloc.
30171
30172 PR debug/43084
30173 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
30174 populate vars array.
30175 (create_new_general_access): For debug stmts just reset value.
30176 (get_stmt_accesses): For accesses within debug stmts just record them
30177 using add_access_to_acc_sites instead of preventing the peeling or
30178 counting them as accesses.
30179
30180 PR middle-end/42233
30181 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
30182
30183 2010-02-19 Richard Guenther <rguenther@suse.de>
30184
30185 PR tree-optimization/42916
30186 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
30187 instructions.
30188
30189 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
30190
30191 * configure.ac: Replace all uses of changequote in macro arguments
30192 with proper quoting.
30193
30194 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30195
30196 PR middle-end/42233
30197 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
30198
30199 2010-02-19 Richard Guenther <rguenther@suse.de>
30200
30201 PR tree-optimization/42944
30202 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
30203 test for aliasing with errno.
30204
30205 2010-02-19 Jakub Jelinek <jakub@redhat.com>
30206
30207 PR middle-end/42233
30208 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
30209 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
30210 * dojump.c: Include output.h.
30211 (inv): New inline function.
30212 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
30213 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
30214 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
30215 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
30216 argument, pass it down to other calls.
30217 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
30218 add REG_BR_PROB note to the conditional jump.
30219 * cfgexpand.c (add_reg_br_prob_note): Removed.
30220 (expand_gimple_cond): Don't call it, add the probability
30221 as last argument to jumpif_1/jumpifnot_1.
30222 * Makefile.in (dojump.o): Depend on output.h.
30223 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
30224 callers.
30225 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
30226 * stmt.c (do_jump_if_equal): Likewise.
30227 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
30228 * loop-unswitch.c (compare_and_jump_seq): Likewise.
30229 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
30230 Likewise.
30231 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
30232 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
30233 jumpifnot_1 callers.
30234 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
30235 callers.
30236 (store_expr): Adjust jumpifnot caller.
30237 (store_constructor): Adjust jumpif caller.
30238
30239 PR middle-end/42233
30240 * gimplify.c (gimple_boolify): For __builtin_expect call
30241 gimple_boolify also on its first argument.
30242
30243 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
30244
30245 * configure.ac (gnu-unique-object): Wrap regexps using [] in
30246 changequote block.
30247 (__stack_chk_fail): Ditto. Remove quadrigraphs.
30248 * configure: Regenerated.
30249
30250 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30251
30252 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
30253 lang_hooks.types_compatible_p instead of comptypes.
30254
30255 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30256
30257 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
30258 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
30259 if __prefer_thumb__ is defined.
30260
30261 2010-02-18 Martin Jambor <mjambor@suse.cz>
30262
30263 PR tree-optimization/43066
30264 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
30265 array with zero-sized element type.
30266
30267 2010-02-18 Jakub Jelinek <jakub@redhat.com>
30268
30269 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
30270 rtx, allocate struct var_loc_node here and return it to the
30271 caller, and only if it is actually needed.
30272 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
30273 move it earlier and return immediately if it returns NULL.
30274
30275 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
30276
30277 * config/sparc/gas.h: New file. Restore
30278 TARGET_ASM_NAMED_SECTION to its ELF default.
30279 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
30280 check !HAVE_GNU_AS.
30281 * config/sparc/sparc.c (sparc_elf_asm_named_section):
30282 Likewise. Add ATTRIBUTE_UNUSED to prototype.
30283 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
30284 after sparc/sysv4.h.
30285
30286 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
30287
30288 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
30289
30290 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
30291
30292 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
30293 patterns from predicated pattern.
30294
30295 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
30296
30297 PR target/43103
30298 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
30299 for insn mnemonic suffix.
30300
30301 2010-02-17 Richard Guenther <rguenther@suse.de>
30302
30303 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
30304 to loop PHI nodes.
30305
30306 2010-02-17 Jakub Jelinek <jakub@redhat.com>
30307
30308 PR debug/42918
30309 * caller-save.c (save_call_clobbered_regs): If BB ends with
30310 a DEBUG_INSN, move any notes in between last real insn and the last
30311 DEBUG_INSN after the last DEBUG_INSN.
30312
30313 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
30314
30315 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
30316 Fix return type. Fix argument type. Explain meaning of return value.
30317
30318 2010-02-16 Richard Guenther <rguenther@suse.de>
30319
30320 PR tree-optimization/41043
30321 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
30322 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
30323 statements ...
30324 (vrp_visit_phi_node): ... but only for loop PHI nodes.
30325
30326 2010-02-16 Ira Rosen <irar@il.ibm.com>
30327
30328 PR tree-optimization/43074
30329 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
30330 * tree-vect-loop.c (vect_analyze_loop_operations): Add
30331 vectorizable cycles in hybrid SLP check.
30332 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
30333
30334 2010-02-16 Richard Guenther <rguenther@suse.de>
30335
30336 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
30337 (true_dependence): If memrefs_conflict_p computes must-alias
30338 trust it. Move TBAA check after offset-based disambiguation.
30339 (canon_true_dependence): Likewise.
30340
30341 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
30342
30343 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
30344 * doc/invoke.texi: Document it.
30345 * var-tracking.c: Include toplev.h and params.h.
30346 (vt_find_locations): Return bool indicating success. Compute
30347 hash sizes unconditionally. Check new parameter, report.
30348 (variable_tracking_main_1): Check vt_find_locations results and
30349 retry. Renamed from...
30350 (variable_tracking_main): ... this. New wrapper to preserve
30351 flag_var_tracking_assignments.
30352 * Makefile.in (var-tracking.o): Adjust dependencies.
30353
30354 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
30355 Jakub Jelinek <jakub@redhat.com>
30356
30357 PR target/42854
30358 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
30359 if weak_import attribute is present.
30360 * config/darwin.c (machopic_select_section): Likewise.
30361
30362 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
30363
30364 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
30365 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
30366 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
30367 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
30368
30369 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
30370 types.
30371
30372 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30373 Fix argument types.
30374
30375 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
30376 Rewrite text to refer to the names.
30377
30378 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
30379
30380 * config/i386/i386-builtin-types.def
30381 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
30382 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
30383 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
30384 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
30385 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
30386 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
30387 IX86_BUILTIN_VPERMIL2PS256.
30388 (MULTI_ARG_4_DF2_DI_I): Defined.
30389 (MULTI_ARG_4_DF2_DI_I1): Defined.
30390 (MULTI_ARG_4_SF2_SI_I): Defined.
30391 (MULTI_ARG_4_SF2_SI_I1): Defined.
30392 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
30393 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
30394 __builtin_ia32_vpermil2ps256.
30395 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
30396 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
30397 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
30398 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
30399 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
30400 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
30401 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
30402 CODE_FOR_xop_vpermil2v8sf3.
30403 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
30404 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
30405 * config/i386/xopintrin.h (_mm_permute2_pd): New.
30406 (_mm256_permute2_pd): New.
30407 (_mm_permute2_ps): New.
30408 (_mm256_permute2_ps): New.
30409
30410 2010-02-15 Nick Clifton <nickc@redhat.com>
30411
30412 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
30413 boolean parameters. Use emit_jump_insn when emitting a pop
30414 instruction containing a return insn.
30415 (push): Use 'true' rather than '1' as second parameter to F.
30416 (h8300_expand_prologue): Likewise.
30417 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
30418 (h8300_expand_epilogue): Likewise.
30419
30420 2010-02-15 Richard Guenther <rguenther@suse.de>
30421
30422 PR middle-end/43068
30423 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
30424 if that is zero.
30425
30426 2010-02-15 Nick Clifton <nickc@redhat.com>
30427
30428 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
30429 delta.
30430
30431 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
30432
30433 * intl.c (fake_ngettext): New function.
30434 * intl.h (fake_ngettext): Declare.
30435 (ngettext): Define macro.
30436 * collect2.c (notice_translated): New function.
30437 (main): Use notice_translated and ngettext.
30438 * collect2.h (notice_translated): Declare.
30439
30440 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
30441
30442 * reorg.c (delete_computation): Comment fixes.
30443 * caller-save.c (setup_save_areas): Idem.
30444 * sel-sched-dump.c (dump_lv_set): Idem.
30445 * rtl.def: Idem.
30446
30447 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30448
30449 * config/s390/s390.c (s390_sched_init): New function.
30450 (TARGET_SCHED_INIT): Target hook defined.
30451
30452 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
30453 Jack Howarth <howarth@bromo.med.uc.edu>
30454 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
30455
30456 PR target/42982
30457 Partial revert of unintended change in fix for PR41605.
30458 * config/darwin.h: Fix typo.
30459 * config/darwin9.h: Same.
30460
30461 2010-02-11 Jakub Jelinek <jakub@redhat.com>
30462
30463 * c-pch.c (pch_init): Clear v.
30464
30465 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30466
30467 PR middle-end/42930
30468 * graphite-scop-detection.c (graphite_can_represent_scev): Call
30469 graphite_can_represent_init for MULT_EXPR.
30470
30471 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30472
30473 PR middle-end/42914
30474 PR middle-end/42530
30475 * graphite-sese-to-poly.c (remove_phi): New.
30476 (translate_scalar_reduction_to_array): Call remove_phi.
30477
30478 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30479
30480 PR middle-end/42771
30481 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
30482 * graphite-clast-to-gimple.h (gloog): Update declaration.
30483 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
30484 * graphite-poly.h (struct poly_bb): Add missing comments.
30485 (struct scop): Add poly_scop_p field.
30486 (POLY_SCOP_P): New.
30487 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
30488 * graphite.c (graphite_transform_loops): Build the polyhedral
30489 representation for each scop before code generation.
30490 * sese.c (rename_variables_in_operand): Removed.
30491 (rename_variables_in_expr): Return the renamed expression.
30492 (rename_sese_parameters): New.
30493 * sese.h (rename_sese_parameters): Declared.
30494
30495 2010-02-11 Richard Guenther <rguenther@suse.de>
30496
30497 PR tree-optimization/42998
30498 * tree-ssa-pre.c (create_expression_by_pieces): Treat
30499 POINTER_PLUS_EXPR properly.
30500
30501 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
30502 Changpeng Fang <changpeng.fang@amd.com>
30503
30504 PR middle-end/40886
30505 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
30506 the cost of an IV candidate when the IV is used in a test against zero.
30507
30508 * gcc.dg/tree-ssa/ivopts-3.c: New.
30509
30510 2010-02-11 Richard Guenther <rguenther@suse.de>
30511
30512 PR lto/41664
30513 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
30514 pointer-vs-decl case by swapping refs. Handle some cases
30515 of pointer-vs-decl disambiguations more conservatively.
30516 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
30517 to false after expanding.
30518
30519 2010-02-11 Richard Guenther <rguenther@suse.de>
30520
30521 PR driver/43021
30522 * gcc.c (process_command): Handle LTO file@offset case more
30523 appropriately.
30524
30525 2010-02-11 Jakub Jelinek <jakub@redhat.com>
30526
30527 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
30528 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
30529 of DEBUG_INSNs.
30530 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
30531
30532 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
30533 if MEM's mode size isn't DWARF2_ADDR_SIZE.
30534 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
30535 Optimize eq/ne comparisons when both arguments are known to be
30536 zero-extended.
30537 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
30538 Don't mask operands unnecessarily if they are known to be already
30539 zero-extended.
30540
30541 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
30542
30543 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
30544 instead of loop.
30545
30546 2010-02-10 Richard Guenther <rguenther@suse.de>
30547
30548 PR tree-optimization/43017
30549 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
30550 for wrapping signed arithmetic.
30551
30552 2010-02-10 Jakub Jelinek <jakub@redhat.com>
30553
30554 PR debug/43010
30555 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
30556 if no debug info should be emitted for it.
30557
30558 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
30559
30560 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
30561 note when flag_exceptions is set.
30562
30563 2010-02-10 Duncan Sands <baldrick@free.fr>
30564
30565 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
30566
30567 2010-02-10 Richard Guenther <rguenther@suse.de>
30568
30569 PR c/43007
30570 * tree.c (get_unwidened): Handle constants.
30571 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
30572
30573 2010-02-10 Martin Jambor <mjambor@suse.cz>
30574
30575 PR lto/42985
30576 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
30577 check for variable argument counts independently.
30578
30579 2010-02-10 Christian Bruel <christian.bruel@st.com>
30580
30581 PR target/42841
30582 * config/sh/sh.c (find_barrier): Increase length for non delayed
30583 conditional branches.
30584
30585 2010-02-10 Christian Bruel <christian.bruel@st.com>
30586
30587 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
30588
30589 2010-02-10 Jakub Jelinek <jakub@redhat.com>
30590
30591 * builtins.c (set_builtin_user_assembler_name): Also handle
30592 ffs if int is smaller than word.
30593
30594 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
30595
30596 PR middle-end/42973
30597 * ira-conflicts.c (get_dup): Remove.
30598 (process_reg_shuffles): Add new parameter. Use it as an
30599 additional guard for copy generation.
30600 (add_insn_allocno_copies): Rewrite.
30601
30602 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
30603
30604 * common.opt (fsched2-use-traces): Preserved for backward
30605 compatibility.
30606 * doc/invoke.texi: Remove the documentation about option
30607 -fsched2-use-traces.
30608 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
30609 flag_sched2_use_traces.
30610 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
30611 the backward compatibility flag section.
30612
30613 2010-02-09 Richard Guenther <rguenther@suse.de>
30614
30615 PR tree-optimization/43008
30616 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
30617 make HEAP variables initialized from global memory if they
30618 are not known builtin functions.
30619 (find_func_aliases): Adjust.
30620
30621 2010-02-09 Richard Guenther <rguenther@suse.de>
30622
30623 PR tree-optimization/43000
30624 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
30625 arithmetic manually.
30626
30627 2010-02-08 Jakub Jelinek <jakub@redhat.com>
30628
30629 PR tree-optimization/42931
30630 * tree-loop-linear.c (try_interchange_loops): Don't call
30631 double_int_mul if estimated_loop_iterations failed.
30632
30633 2010-02-08 Martin Jambor <mjambor@suse.cz>
30634
30635 PR middle-end/42898
30636 * tree-sra.c (build_accesses_from_assign): Do not mark in
30637 should_scalarize_away_bitmap if stmt has volatile ops.
30638 (sra_modify_assign): Do not process assigns piecemeal if if stmt
30639 has volatile ops.
30640
30641 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
30642
30643 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
30644
30645 2010-02-07 Adam Nemet <adambnmet@gmail.com>
30646
30647 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
30648 before the pattern.
30649
30650 2010-02-07 Andrew Pinski <pinskia@gmail.com>
30651
30652 PR middle-end/42946
30653 * df-core.c (df_finish_pass): Change type of saved_flags to int.
30654
30655 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
30656
30657 PR middle-end/42988
30658 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
30659 to unknown_dependence.
30660 (graphite_legal_transform_dr): Handle the unknown_dependence.
30661 (graphite_carried_dependence_level_k): Same.
30662
30663 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
30664
30665 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
30666
30667 2010-02-07 Richard Guenther <rguenther@suse.de>
30668
30669 PR middle-end/42991
30670 * expr.c (get_inner_reference): Always initialize *pbitsize.
30671
30672 2010-02-07 Richard Guenther <rguenther@suse.de>
30673
30674 PR middle-end/42956
30675 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
30676 new ARRAY_REFs on variable size element or minimal index arrays.
30677 Complete.
30678 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
30679 gimple_fold_indirect_ref.
30680
30681 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
30682
30683 PR target/42957
30684 * arm.c (arm_override_options): Just return if the user has specified
30685 an invalid fpu name.
30686
30687 2010-02-03 Jason Merrill <jason@redhat.com>
30688
30689 PR c++/42870
30690 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
30691 i386_pe_maybe_record_exported_symbol.
30692
30693 2010-02-05 Steve Ellcey <sje@cup.hp.com>
30694
30695 PR target/42924
30696 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
30697 (pa_delegitimize_address): New function.
30698
30699 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
30700
30701 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
30702 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
30703
30704 2010-02-05 Richard Guenther <rguenther@suse.de>
30705
30706 PR lto/42762
30707 * lto-streamer-in.c (get_resolution): Deal with references
30708 to undefined functions.
30709
30710 2010-02-05 Richard Guenther <rguenther@suse.de>
30711
30712 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
30713 (fold_const_aggregate_ref): Likewise.
30714 (ccp_fold_stmt): Substitute loads.
30715 (maybe_fold_reference): Verify types before substituting.
30716 Unshare properly.
30717 (fold_gimple_assign): Unshare properly.
30718 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
30719
30720 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
30721
30722 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
30723 for rs6000_gen_cell_microcode.
30724
30725 2010-02-04 Richard Guenther <rguenther@suse.de>
30726
30727 PR rtl-optimization/42952
30728 * dse.c (const_or_frame_p): Remove MEM handling.
30729
30730 2010-02-04 Nick Clifton <nickc@redhat.com>
30731
30732 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
30733 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30734 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
30735 (mn10300_asm_output_mi_thunk): New function.
30736 (mn10300_can_output_mu_thunk): New function.
30737 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
30738 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
30739 (FUNCTION_ARG): Delete incorrect comment.
30740
30741 2010-02-03 Jason Merrill <jason@redhat.com>
30742
30743 PR c++/40138
30744 * fold-const.c (operand_equal_p): Handle erroneous types.
30745
30746 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
30747
30748 * config/h8300/h8300.md (can_delay): Fix attibute condition.
30749
30750 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
30751
30752 PR rtl-optimization/42941
30753 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
30754 of xmalloc.
30755
30756 2010-02-03 Jason Merrill <jason@redhat.com>
30757
30758 PR c++/35652
30759 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
30760
30761 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
30762
30763 PR debug/42896
30764 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
30765 (cselib_reset_table): Renamed from...
30766 (cselib_reset_table_with_next_value): ... this.
30767 (cselib_get_next_uid): Renamed from...
30768 (cselib_get_next_unknown_value): ... this.
30769 * cselib.c (next_uid): Renamed from...
30770 (next_unknown_value): ... this.
30771 (cselib_clear_table): Adjust.
30772 (cselib_reset_table): Adjust. Renamed from...
30773 (cselib_reset_table_with_next_value): ... this.
30774 (cselib_get_next_uid): Adjust. Renamed from...
30775 (cselib_get_next_unknown_value): ... this.
30776 (get_value_hash): Use hash.
30777 (cselib_hash_rtx): Likewise.
30778 (new_cselib_val): Adjust. Set and dump uid.
30779 (cselib_lookup_mem): Pass next_uid as hash.
30780 (cselib_subst_to_values): Likewise.
30781 (cselib_log_lookup): Dump uid.
30782 (cselib_lookup): Pass next_uid as hash. Adjust.
30783 (cselib_process_insn): Adjust.
30784 (cselib_init): Initialize next_uid.
30785 (cselib_finish): Adjust.
30786 (dump_cselib_table): Likewise.
30787 * dse.c (canon_address): Dump value uid.
30788 * print-rtl.c (print_rtx): Print value uid.
30789 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
30790 (dvuid): New type.
30791 (dv_uid): New function, sort of renamed from...
30792 (dv_htab_hash): ... this, reimplemented in terms of it and...
30793 (dv_uid2hash): ... this. New.
30794 (variable_htab_eq): Drop excess assertions.
30795 (tie_break_pointers): Removed.
30796 (canon_value_cmp): Compare uids.
30797 (variable_post_merge_New_vals): Print uids.
30798 (vt_add_function_parameters): Adjust.
30799 (vt_initialize): Reset table. Adjust.
30800
30801 2010-02-03 Richard Guenther <rguenther@suse.de>
30802
30803 PR tree-optimization/42944
30804 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
30805 (call_may_clobber_ref_p_1): Likewise. Properly handle
30806 malloc and calloc clobbering errno.
30807
30808 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
30809
30810 * doc/invoke.texi: Fix name of sched1 dump.
30811
30812 * opts.c (decode_options): Set flag_tree_switch_conversion
30813 only conditionally on optimize >= 2.
30814
30815 * gcse.c: Assorted comment fixes in pass description.
30816
30817 2010-02-03 Anthony Green <green@moxielogic.com>
30818
30819 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
30820 nop padding in order to maintain alignment of storage location of
30821 target function address.
30822 (moxie_trampoline_init): Store target function address at newly
30823 aligned location.
30824 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
30825 to 32.
30826 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
30827
30828 2010-02-03 Richard Guenther <rguenther@suse.de>
30829
30830 PR middle-end/42927
30831 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
30832
30833 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30834
30835 * config.gcc: Reenable check for obsolete targets.
30836 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
30837 mips-sgi-irix6.[0-4]*.
30838
30839 2010-02-02 Nick Clifton <nickc@redhat.com>
30840
30841 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
30842 constant size of 4 as being the same as 0.
30843 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
30844 can take values in the range 0..4.
30845
30846 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
30847
30848 PR java/41991
30849 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
30850 as _darwin10_Unwind_FindEnclosingFunction().
30851 * libgcc-libsystem.ver: New.
30852
30853 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
30854
30855 PR target/41399
30856 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
30857 implicitly set registers.
30858
30859 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
30860
30861 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
30862 (arm_override_options): Allow automatic selection of the thread
30863 pointer register if thumb2.
30864 (legitimize_pic_address): Improve code sequences for Thumb2.
30865 (arm_call_tls_get_addr): Likewise.
30866 (legitimize_tls_address): Likewise.
30867 * arm.md (pic_load_addr_arm): Delete. Replace with ...
30868 (pic_load_addr_32bit): ... this. New named pattern.
30869 * thumb2.md (pic_load_addr_thumb2): Delete.
30870 (pic_load_dot_plus_four): Delete.
30871 (tls_load_dot_plus_four): New named pattern.
30872
30873 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30874
30875 PR libgomp/29986
30876 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
30877 Document fix for TLS bug.
30878
30879 2010-01-31 Richard Guenther <rguenther@suse.de>
30880
30881 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
30882 conservatively correct.
30883
30884 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30885
30886 PR target/42850
30887 Revert:
30888 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30889
30890 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
30891
30892 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30893
30894 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
30895
30896 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
30897
30898 * config.gcc: Adjust order of makefile fragments for mingw targets.
30899
30900 2010-01-31 Richard Guenther <rguenther@suse.de>
30901
30902 PR middle-end/42898
30903 * gimplify.c (gimplify_init_constructor): For volatile LHS
30904 initialize a temporary.
30905
30906 2010-01-31 Matthias Klose <doko@ubuntu.com>
30907
30908 * configure.ac: Fix __stack_chk_fail check for cross builds configured
30909 --with-headers
30910 * configure: Regenerate.
30911
30912 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
30913
30914 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30915 the same alias set and their sizes different constantness.
30916 (aliasing_component_refs_p): Revert 2009-10-24 change.
30917
30918 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30919
30920 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
30921 unused.
30922
30923 2010-01-29 Richard Guenther <rguenther@suse.de>
30924
30925 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
30926 Assert we successfully updated the call.
30927
30928 2010-01-29 Jakub Jelinek <jakub@redhat.com>
30929
30930 PR rtl-optimization/42889
30931 * df.h (df_set_bb_dirty_nonlr): New prototype.
30932 * df-core.c (df_set_bb_dirty_nonlr): New function.
30933 * df-scan.c (df_insn_rescan): Call it instead of
30934 df_set_bb_dirty for DEBUG_INSNs.
30935
30936 2010-01-29 Richard Guenther <rguenther@suse.de>
30937
30938 PR middle-end/37448
30939 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
30940 quadratic behavior in most cases.
30941
30942 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
30943
30944 PR target/42891
30945 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
30946 in the call to gen_x86_movsicc_0_m1.
30947
30948 2010-01-28 Richard Guenther <rguenther@suse.de>
30949
30950 PR tree-optimization/42871
30951 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
30952
30953 2010-01-28 Richard Guenther <rguenther@suse.de>
30954
30955 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
30956 into call arguments.
30957
30958 2010-01-28 Richard Guenther <rguenther@suse.de>
30959
30960 PR middle-end/42883
30961 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
30962 the forwarder if the destination is an EH landing pad.
30963
30964 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
30965
30966 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
30967 block list passed to gimple_duplicate_sese_tail.
30968 (parallelize_loops): Avoid parallelization when the function
30969 has_nonlocal_label.
30970 Avoid parallelization when the preheader is IRREDUCIBLE.
30971 Try to optimize when estimated_loop_iterations_int is unresolved.
30972 Add the loop's location to the dump file.
30973 * tree-cfg.c (add_phi_args_after_redirect): Remove.
30974 (gimple_duplicate_sese_tail): Remove the check for the latch.
30975 Redirect nexits to the exit block.
30976 Remove handling of the incoming edges to the latch.
30977 Redirect the backedge from the copied latch to the exit bb.
30978
30979 2010-01-28 Michael Matz <matz@suse.de>
30980
30981 PR target/42881
30982 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
30983 Wrap force_reg into a sequence, emit it before user.
30984
30985 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
30986
30987 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
30988 (arm_rev): New.
30989 (arm_legacy_rev): Likewise.
30990 (thumb_legacy_rev): Likewise.
30991
30992 2010-01-27 Jakub Jelinek <jakub@redhat.com>
30993
30994 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
30995 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
30996 on MEM's address failed, try avoid_constant_pool_reference and
30997 recurse if it returned something different.
30998 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
30999 address, try avoid_constant_pool_reference and recurse if it
31000 returned something different.
31001 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
31002 address and avoid_constant_pool_reference returned something
31003 different, don't set have_address.
31004
31005 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
31006
31007 PR debug/42861
31008 * var-tracking.c (val_store): Add modified argument, obey it.
31009 Adjust callers.
31010 (count_uses): Move down logging of main.
31011 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
31012 don't need resolution.
31013 (emit_notes_in_bb): Likewise.
31014
31015 2010-01-27 Richard Guenther <rguenther@suse.de>
31016
31017 PR middle-end/42878
31018 * tree-inline.c (remap_decl): Delay remapping of SSA name
31019 default definitions until we need them.
31020
31021 2010-01-27 Jakub Jelinek <jakub@redhat.com>
31022
31023 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31024 (rs6000_delegitimize_address): New function.
31025
31026 * config/s390/s390.c (s390_delegitimize_address): Call
31027 delegitimize_mem_from_attrs.
31028
31029 PR middle-end/42874
31030 * tree-inline.c (cannot_copy_type_1): Removed.
31031 (copy_forbidden): Don't forbid copying of functions containing
31032 records/unions with variable length fields.
31033
31034 2010-01-27 Christian Bruel <christian.bruel@st.com>
31035
31036 Revert:
31037 PR target/42841
31038 * config/sh/sh.c (find_barrier): Increase length for non delayed
31039 conditional branches.
31040
31041 2010-01-27 Matthias Klose <doko@ubuntu.com>
31042
31043 * configure.ac (gnu-unique-object): Fix ldd version check.
31044 * configure: Regenerate.
31045
31046 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31047
31048 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
31049 HAVE_GNU_AS value.
31050 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
31051 Test for HAVE_GNU_AS value.
31052
31053 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31054
31055 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
31056 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
31057 INT64_TYPE): Define.
31058 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
31059 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
31060 INT_LEAST64_TYPE): Define.
31061 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
31062 UINT_LEAST64_TYPE): Define.
31063 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
31064 INT_FAST64_TYPE): Define.
31065 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
31066 UINT_FAST64_TYPE): Define.
31067 (INTMAX_TYPE, UINTMAX_TYPE): Define.
31068 (INTPTR_TYPE, UINTPTR_TYPE): Define.
31069 (SIG_ATOMIC_TYPE): Define.
31070
31071 2010-01-26 Richard Guenther <rguenther@suse.de>
31072
31073 * df-scan.c (df_scan_set_bb_info): Remove assert.
31074 (df_insn_rescan_debug_internal): Merge asserts.
31075 (df_install_ref): Likewise.
31076 (df_mark_reg): Use bitmap_set_range.
31077 (df_hard_reg_used_p): Remove assert.
31078 (df_hard_reg_used_count): Likewise.
31079
31080 2010-01-26 Richard Guenther <rguenther@suse.de>
31081
31082 PR rtl-optimization/42685
31083 * web.c (web_main): Ignore DEBUG_INSNs.
31084
31085 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
31086
31087 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
31088
31089 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
31090 Fix types of fndecl and arglist parameters.
31091
31092 2010-01-26 Richard Guenther <rguenther@suse.de>
31093
31094 PR middle-end/42806
31095 * tree-eh.c (unsplit_eh): Skip debug insns.
31096
31097 2010-01-26 Richard Guenther <rguenther@suse.de>
31098
31099 PR tree-optimization/42250
31100 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
31101
31102 2010-01-26 Jakub Jelinek <jakub@redhat.com>
31103
31104 PR fortran/42866
31105 * omp-low.c (expand_omp_sections): Only use single_pred if
31106 l2_bb is single_pred_p.
31107
31108 2010-01-25 Christian Bruel <christian.bruel@st.com>
31109
31110 PR target/42841
31111 * config/sh/sh.c (find_barrier): Increase length for non delayed
31112 conditional branches.
31113 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
31114
31115 2010-01-24 David S. Miller <davem@davemloft.net>
31116
31117 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
31118 define if not using GAS.
31119 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31120 Likewise. Delete SECTION_MERGE code, which is only applicable
31121 when using GAS.
31122
31123 2010-01-24 Mark Mitchell <mark@codesourcery.com>
31124
31125 PR c++/42748
31126 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
31127 mangling of va_list in system headers.
31128
31129 2010-01-23 Toon Moene <toon@moene.org>
31130
31131 * tree-predcom.c (combine_chains): Return NULL, not false.
31132
31133 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
31134
31135 * tree-loop-distribution.c (distribute_loop): Fix declaration and
31136 initialization of variable res to agree with return type.
31137
31138 2010-01-22 Steve Ellcey <sje@cup.hp.com>
31139
31140 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
31141 * tree-sra.c: Add include of expr.h.
31142
31143 2010-01-22 Jakub Jelinek <jakub@redhat.com>
31144
31145 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
31146 insert the debug stmt on the single non-EH edge from the stmt.
31147
31148 2010-01-22 Richard Henderson <rth@redhat.com>
31149
31150 PR tree-opt/42833
31151 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
31152 the RHS until after generate_subtree_copies has insertted its
31153 code before the current statement.
31154
31155 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
31156
31157 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
31158
31159 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
31160
31161 2010-01-21 Martin Jambor <mjambor@suse.cz>
31162
31163 PR tree-optimization/42585
31164 * tree-sra.c (struct access): New field grp_total_scalarization.
31165 (dump_access): Dump the new field.
31166 (should_scalarize_away_bitmap): New variable.
31167 (cannot_scalarize_away_bitmap): Likewise.
31168 (sra_initialize): Allocate new bitmaps.
31169 (sra_deinitialize): Free new bitmaps.
31170 (create_access_1): New function.
31171 (create_access): Parts moved to create_access_1.
31172 (type_consists_of_records_p): New function.
31173 (completely_scalarize_record): Likewise.
31174 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
31175 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
31176 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
31177 access.
31178 (analyze_all_variable_accesses): Completely scalarize small eligible
31179 records.
31180
31181 2010-01-21 Martin Jambor <mjambor@suse.cz>
31182
31183 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
31184
31185 2010-01-21 Andrew Haley <aph@redhat.com>
31186
31187 * gcc.c (process_command): Move lang_specific_driver before
31188 setting cc_libexec_prefix.
31189
31190 2010-01-21 Richard Guenther <rguenther@suse.de>
31191
31192 PR middle-end/19988
31193 * fold-const.c (negate_expr_p): Pretend only negative
31194 real constants are easily negatable.
31195
31196 2010-01-20 Janis Johnson <janis187@us.ibm.com>
31197 Jason Merrill <jason@redhat.com>
31198
31199 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
31200 (TYPE_TRANSPARENT_AGGR): this, for union and record.
31201 * calls.c (initialize argument_information): Handle it.
31202 * c-common.c (handle_transparent_union_attribute): Use new name.
31203 * c-decl.c (finish_struct): Ditto.
31204 * c-typeck.c (type_lists_compatible_p): Ditto.
31205 (convert_for_assignment): Use new name and also handle record.
31206 * function.c (aggregate_value_p): Handle it.
31207 (pass_by_reference): Ditto.
31208 (assign_parm_data_types): Ditto.
31209 * print-tree.c (print_node): Ditto.
31210 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
31211 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
31212 * tree.c (first_field): New fn.
31213
31214 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
31215
31216 PR target/42818
31217 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
31218 even when linking statically, for now.
31219
31220 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31221
31222 PR debug/42715
31223 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
31224 without a cselib val.
31225 (count_uses): Accept MO_VAL_SET with no val on stores.
31226 (add_stores): Likewise.
31227
31228 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31229
31230 * var-tracking.c (check_value_val): Add a compile time assertion.
31231 (dv_is_decl_p): Simplify.
31232 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
31233 gcc_assert if ENABLE_CHECKING.
31234
31235 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
31236
31237 PR debug/42782
31238 * var-tracking.c: Include tree-flow.h.
31239 (mem_dies_at_call): New.
31240 (dataflow_set_preserve_mem_locs): Use it.
31241 (dataflow_set_remove_mem_locs): Likewise.
31242 (dump_var): Renamed from dump_variable. Adjust all callers.
31243 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
31244 * Makefile.in (var-tracking.o): Adjust deps.
31245
31246 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
31247
31248 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
31249
31250 2010-01-20 Richard Guenther <rguenther@suse.de>
31251
31252 PR tree-optimization/42717
31253 * tree-ssa-dce.c (get_live_post_dom): Remove.
31254 (forward_edge_to_pdom): Take an arbitrary edge to copy
31255 degenerate PHI args from.
31256 (remove_dead_stmt): Use the first post-dominator even if it
31257 does not contain live statements as redirection destination.
31258
31259 2010-01-20 Richard Guenther <rguenther@suse.de>
31260
31261 * tree-inline.c (estimate_num_insns): Handle EH builtins.
31262
31263 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31264
31265 * sel-sched.c (create_speculation_check): Remove set but not used
31266 variable twin.
31267 (try_transformation_cache): Remove set but not used variable ds.
31268 (calculate_privileged_insns): Remove set but not used variables
31269 cur_insn and min_spec_insn.
31270 (find_best_expr): Remove set but not used variable avail_n.
31271 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
31272 variable e.
31273 * cgraphunit.c (assemble_thunk): Remove set but not used variable
31274 false_label.
31275 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
31276 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
31277 new_scop_exit_edge.
31278
31279 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
31280
31281 PR bootstrap/42786
31282 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
31283 cpu types. Add support for *-sse3 cpu types.
31284 (x86_64-*-*): Ditto.
31285
31286 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31287
31288 PR middle-end/42803
31289 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
31290 argument, call initializer_constant_valid_p_1 instead of
31291 initializer_constant_valid_p, pass CACHE to it, return NULL
31292 immediately if first call returns NULL.
31293 (initializer_constant_valid_p_1): New function.
31294 (initializer_constant_valid_p): Use it.
31295
31296 2010-01-20 Thomas Quinot <quinot@adacore.com>
31297
31298 * tree.def (PLACEHOLDER_EXPR): Fix comment.
31299
31300 2010-01-20 Jakub Jelinek <jakub@redhat.com>
31301
31302 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
31303 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
31304 (loc_list_from_tree): Don't handle unsigned division. Handle
31305 signed modulo using DW_OP_{over,over,div,mul,minus}.
31306 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
31307 modulo instead of signed.
31308
31309 2010-01-20 DJ Delorie <dj@redhat.com>
31310
31311 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
31312 (Fpa): Pass it
31313 (h8300_emit_stack_adjustment): Propogate it.
31314 (push): Pass it.
31315 (h8300_expand_prologue): Likewise.
31316 (h8300_expand_epilogue): Likewise.
31317
31318 2010-01-19 Michael Matz <matz@suse.de>
31319
31320 PR tree-optimization/41783
31321 * tree-data-ref.c (toplevel): Include flags.h.
31322 (dump_data_dependence_relation): Also dump the inputs if the
31323 result will be unknown.
31324 (split_constant_offset_1): Look through some conversions.
31325 * tree-predcom.c (determine_roots_comp): Restart a new chain if
31326 the offset from last element is too large.
31327 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
31328 (reassociate_to_the_same_stmt): Handle vector registers.
31329 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
31330 (e.g. conversions).
31331 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
31332 wide_prolog_niters argument, emit widening instructions.
31333 (vect_do_peeling_for_alignment): Adjust caller, use widened
31334 variant of the iteration cound.
31335 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
31336
31337 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31338
31339 PR target/38697
31340 * config/arm/neon-testgen.m (emit_automatics): New parameter
31341 features. Adjust for Fixed_return_reg feature.
31342 (test_intrinsic): Call emit_automatics with new feature.
31343 * config/arm/neon.ml: Update copyright years.
31344 (features): New Fixed_return_reg feature.
31345 (ops): Update feature for Vget_low.
31346
31347 2010-01-19 Jakub Jelinek <jakub@redhat.com>
31348
31349 PR tree-optimization/42719
31350 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
31351 stmt uses.
31352
31353 PR debug/42728
31354 * fwprop.c (all_uses_available_at): Return false if def_set dest
31355 is a REG that is used in def_insn.
31356
31357 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
31358
31359 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
31360
31361 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
31362 Add argument names.
31363
31364 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
31365
31366 * target.h (struct gcc_target) <secondary_reload>: Change type
31367 of last argument to secondary_reload_info *.
31368
31369 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
31370
31371 PR target/42774
31372 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
31373 memory references with unaligned offsets. Remove CQImode handling.
31374 (unaligned_memory_operand): Return 1 for memory references with
31375 unaligned offsets. Remove CQImode handling.
31376
31377 2010-01-18 Richard Guenther <rguenther@suse.de>
31378
31379 PR middle-end/39954
31380 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
31381 builtin calls.
31382
31383 2010-01-18 Richard Guenther <rguenther@suse.de>
31384
31385 PR tree-optimization/42781
31386 * tree-ssa-structalias.c (find_what_var_points_to): Skip
31387 restrict processing only if the original variable was artificial.
31388
31389 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
31390
31391 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
31392 find number of popped argument bytes.
31393
31394 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
31395 Fix the text that describes the return value for invalid insns.
31396
31397 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
31398
31399 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
31400 Clarify what 'cost of the -dependence' is. Fix quoting.
31401
31402 * toplev.c (default_get_pch_validity): Rename argument to "sz".
31403 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
31404
31405 2010-01-17 Jakub Jelinek <jakub@redhat.com>
31406
31407 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
31408 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
31409
31410 2010-01-17 Richard Guenther <rguenther@suse.de>
31411
31412 PR middle-end/42248
31413 * function.c (split_complex_args): Take a VEC to modify.
31414 (assign_parms_augmented_arg_list): Build a VEC instead of
31415 a chain of PARM_DECLs.
31416 (assign_parms_unsplit_complex): Take a VEC of arguments.
31417 Do not fixup unmodified parms.
31418 (assign_parms): Deal with the VEC.
31419 (gimplify_parameters): Likewise.
31420
31421 2010-01-17 Richard Guenther <rguenther@suse.de>
31422
31423 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
31424 node existence check.
31425 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
31426 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
31427 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
31428 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
31429 (gimple_execute_on_growing_pred): Likewise.
31430
31431 2010-01-17 Richard Guenther <rguenther@suse.de>
31432
31433 PR tree-optimization/42773
31434 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
31435 (compute_antic_aux): Likewise.
31436 (compute_partial_antic_aux): Likewise.
31437
31438 2010-01-17 Jie Zhang <jie.zhang@analog.com>
31439
31440 PR debug/42767
31441 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
31442 and US_TRUNCATE.
31443
31444 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
31445
31446 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
31447 appearance.
31448
31449 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
31450 Fix markup for strict argument.
31451
31452 (TARGET_SCHED_REORDER2): Fix argument types.
31453
31454 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
31455 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
31456
31457 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
31458 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
31459
31460 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
31461 Add argument name.
31462
31463 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
31464 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
31465 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
31466 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
31467 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
31468
31469 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
31470
31471 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
31472
31473 (TARGET_ASM_RELOC_RW_MASK): Add return type.
31474 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
31475
31476 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
31477
31478 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
31479 Use prototype.
31480
31481 (TARGET_ASM_NAMED_SECTION): Fix argument list.
31482
31483 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
31484 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
31485
31486 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
31487
31488 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
31489
31490 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
31491 referring to it. Fix language.
31492
31493 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
31494
31495 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
31496
31497 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
31498
31499 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
31500
31501 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
31502 '@var{stream}. Remove stray 'and'.
31503
31504 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
31505
31506 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
31507
31508 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
31509
31510 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
31511 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
31512
31513 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
31514 Fix description of return value.
31515 Rename argument "sz" to "len."
31516
31517 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
31518 Clarify meaning of 'true' return value.
31519
31520 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
31521
31522 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
31523 rep_mode versus mode_rep.
31524
31525 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
31526
31527 (TARGET_BUILTIN_DECL): Fix name.
31528
31529 (TARGET_COMMUTATIVE_P): Fix type of first argument.
31530
31531 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
31532
31533 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
31534
31535 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
31536
31537 (TARGET_RELAXED_ORDERING): Use @deftypevr.
31538
31539 (TARGET_GET_DRAP_RTX): Note that this is a hook.
31540 Clarify language.
31541
31542 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
31543 Rename argument tm_fn to md_fn.
31544
31545 (TARGET_OPTION_PRINT): Fix argument list.
31546
31547 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
31548
31549 PR target/42664
31550 * config/i386/i386.c (ix86_fixup_binary_operands):
31551 Revert FMA4 fixup of operands.
31552
31553 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31554
31555 PR gcc/42525
31556 * Makefile.in (write_entries_to_file, install-plugin):
31557 Use \012 instead of \n with tr.
31558
31559 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
31560
31561 * configure.ac (HAVE_AS_REF): New C macro.
31562 * configure: Regenerate.
31563 * config.in: Likewise.
31564 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
31565 if HAVE_AS_REF.
31566 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
31567 if HAVE_AS_REF.
31568
31569 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
31570
31571 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
31572
31573 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
31574
31575 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
31576
31577 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
31578
31579 (TARGET_IN_SMALL_DATA_P): Fix argument type.
31580
31581 (TARGET_BINDS_LOCAL_P): Fix argument type.
31582
31583 (TARGET_ASM_FILE_END): Use prototype.
31584
31585 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
31586
31587 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
31588
31589 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
31590
31591 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
31592
31593 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
31594 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
31595
31596 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
31597 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
31598
31599 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
31600 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
31601 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
31602 (TARGET_ADDR_SPACE_CONVERT): Likewise.
31603
31604 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
31605
31606 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
31607
31608 (TARGET_INIT_BUILTINS): Use prototype.
31609
31610 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
31611 Put 'const char *' in braces. Fix parameter types.
31612 (TARGET_INVALID_CONVERSION): Fix parameter types.
31613 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
31614 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
31615
31616 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
31617 Fix argument type.
31618
31619 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
31620
31621 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
31622
31623 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
31624
31625 * doc/tm.texi (TARGET_HELP): Fix return type.
31626
31627 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
31628 in braces. Fix argument types.
31629
31630 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
31631
31632 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
31633
31634 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
31635
31636 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
31637 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
31638
31639 (TARGET_MANGLE_TYPE): Fix argument types.
31640
31641 (TARGET_IRA_COVER_CLASSES): Use prototype.
31642
31643 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
31644
31645 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
31646
31647 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
31648
31649 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
31650
31651 (TARGET_CALLEE_COPIES): Fix argument types.
31652
31653 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
31654
31655 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
31656
31657 (TARGET_FUNCTION_VALUE): Fix argument types.
31658
31659 (TARGET_RETURN_IN_MSB): Fix argument type.
31660
31661 (TARGET_RETURN_IN_MEMORY): Fix argument types.
31662
31663 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
31664
31665 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
31666
31667 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
31668 agree with return type.
31669
31670 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
31671
31672 2010-01-15 Jing Yu <jingyu@google.com>
31673
31674 PR rtl-optimization/42691
31675 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
31676 a pseudo to a constant and are merged, and adjust comments.
31677
31678 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
31679
31680 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
31681
31682 2010-01-15 Richard Guenther <rguenther@suse.de>
31683
31684 PR middle-end/42739
31685 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
31686 labels of computed or non-local gotos to the destination.
31687 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
31688 landing pad label is the first label.
31689
31690 2010-01-15 Richard Guenther <rguenther@suse.de>
31691
31692 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
31693
31694 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31695
31696 PR target/42747
31697 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
31698 to allow generation of the xssqrtdp instruction on power7.
31699 (sqrtdf2_fpr): Ditto.
31700
31701 2010-01-14 Jakub Jelinek <jakub@redhat.com>
31702
31703 PR middle-end/42674
31704 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
31705 functions with noreturn attribute.
31706
31707 PR c++/42608
31708 * varasm.c (declare_weak): Add weak attribute to decl if it
31709 doesn't have one already.
31710 (assemble_external): Only add decls to weak_decls if they also
31711 have weak attribute.
31712
31713 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
31714
31715 * var-tracking.c (var_reg_delete): Don't delete the association
31716 between REGs and values or one-part variables if the register
31717 isn't clobbered.
31718
31719 2010-01-14 Jakub Jelinek <jakub@redhat.com>
31720
31721 PR debug/42657
31722 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
31723 because its first operand is a non-localized variable.
31724
31725 2010-01-14 Martin Jambor <mjambor@suse.cz>
31726
31727 PR tree-optimization/42706
31728 * tree-sra.c (encountered_recursive_call): New variable.
31729 (encountered_unchangable_recursive_call): Likewise.
31730 (sra_initialize): Initialize both new variables.
31731 (callsite_has_enough_arguments_p): New function.
31732 (scan_function): Call decl and flags check only for IPA-SRA, check
31733 whether there is a recursive call and whether it has enough arguments.
31734 (all_callers_have_enough_arguments_p): New function.
31735 (convert_callers): Look for recursive calls only when
31736 encountered_recursive_call is set.
31737 (ipa_early_sra): Bail out either if
31738 !all_callers_have_enough_arguments_p or
31739 encountered_unchangable_recursive_call.
31740
31741 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31742
31743 * sel-sched.c: Add 2010 to copyright years.
31744 * sel-sched-ir.c: Likewise.
31745 * sel-sched-ir.h: Likewise.
31746
31747 2010-01-14 Martin Jambor <mjambor@suse.cz>
31748
31749 PR tree-optimization/42714
31750 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
31751 constructors specially.
31752
31753 2010-01-14 Andi Kleen <ak@linux.intel.com>
31754
31755 * config/i386/drivers-i386.c (detect_caches_intel):
31756 Add l2sizekb parameter and fill in.
31757 (host_detect_local_cpu): Add l2sizekb, fill in.
31758 Add Atom small cache heuristic.
31759
31760 2010-01-14 Andi Kleen <ak@linux.intel.com>
31761
31762 * config/i386/drivers-i386.c (detect_caches_cpuid4):
31763 Add level3 parameter and fill in.
31764 (detect_caches_intel): Handle level3 cache.
31765
31766 2010-01-14 Andi Kleen <ak@linux.intel.com>
31767
31768 * config/i386/drivers-i386.c (host_detect_local_cpu):
31769 Fix core duo detection.
31770
31771 2010-01-14 Andi Kleen <ak@linux.intel.com>
31772
31773 * config/i386/drivers-i386.c (host_detect_local_cpu):
31774 Fix Atom detection.
31775
31776 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31777
31778 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
31779 (rs6000_variable_issue_1): this. Use...
31780 (rs6000_variable_issue): here. Reimplement. Print debug info.
31781
31782 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31783
31784 * sel-sched-ir.c (sel_restore_other_notes): Rename to
31785 sel_restore_notes. Update all callers. Call reemit_notes
31786 for all insns.
31787
31788 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
31789
31790 PR rtl-optimization/42246
31791 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
31792 loops.
31793
31794 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
31795
31796 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
31797 all successors is the same as number of successors in current region.
31798
31799 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31800
31801 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
31802 to rename is not separable. Otherwise check that its LHS is not NULL.
31803
31804 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31805
31806 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
31807
31808 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31809
31810 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
31811 available registers when failed to discover LHS register class.
31812 Fix indentation. Update comment.
31813
31814 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
31815 Alexander Monakov <amonakov@ispras.ru>
31816
31817 PR rtl-optimization/42389
31818 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
31819 to can_issue_more.
31820 (advance_state_on_fence): Likewise.
31821 (sel_target_adjust_priority): Print debug output only when
31822 sched_verbose >= 4, not 2.
31823 (get_expr_cost): Do not issue all unique insns on the next cycle.
31824 (fill_insns): Initialize can_issue_more from the value saved
31825 with the fence.
31826 * sel-sched-ir.c (flist_add): New parameter issue_more.
31827 Init FENCE_ISSUE_MORE with it.
31828 (merge_fences): Likewise.
31829 (init_fences): Update call to flist_add.
31830 (add_to_fences, add_clean_fence_to_fences)
31831 (add_dirty_fence_to_fences): Likewise.
31832 (move_fence_to_fences): Update call to merge_fences.
31833 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
31834 sched groups.
31835 * sel-sched-ir.h (struct _fence): New field issue_more.
31836 (FENCE_ISSUE_MORE): New accessor macro.
31837
31838 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
31839
31840 PR rtl-optimization/42388
31841 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
31842 that have no predecessors nor successors. Do not call move_bb_info
31843 for empty blocks outside of current region.
31844
31845 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31846
31847 PR rtl-optimization/42294
31848 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
31849 * sel-sched.c (move_exprs_to_boundary): Transitively add all
31850 originators' originators.
31851
31852 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
31853
31854 PR rtl-optimization/39453
31855 PR rtl-optimization/42246
31856 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
31857 for pipelining_p.
31858 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
31859
31860 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
31861 Alexander Monakov <amonakov@ispras.ru>
31862
31863 PR middle-end/42245
31864 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
31865 (maybe_tidy_empty_bb): ... here. Make static. Add new
31866 argument. Update all callers.
31867 (tidy_control_flow): ... and here. Recompute topological order
31868 of basic blocks in region if necessary.
31869 (sel_redirect_edge_and_branch): Change return type. Return true
31870 if topological order might have been invalidated.
31871 (purge_empty_blocks): Export and move from...
31872 * sel-sched.c (purge_empty_blocks): ... here.
31873 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
31874 (maybe_tidy_empty_bb): Delete prototype.
31875 (purge_empty_blocks): Declare.
31876
31877 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
31878
31879 PR rtl-optimization/42249
31880 * sel-sched.c (try_replace_dest_reg): When chosen register
31881 and original register is the same, do not bail out early, but
31882 still check all original insns for validity of replacing destination
31883 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
31884 in this case.
31885
31886 2010-01-14 Jakub Jelinek <jakub@redhat.com>
31887
31888 PR c/42721
31889 Port from no-undefined-overflow branch:
31890 2009-03-09 Richard Guenther <rguenther@suse.de>
31891
31892 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
31893
31894 2010-01-14 Richard Guenther <rguenther@suse.de>
31895
31896 PR lto/42665
31897 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
31898
31899 2010-01-14 Ira Rosen <irar@il.ibm.com>
31900
31901 PR tree-optimization/42709
31902 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
31903 as scalar type in creation of constant vector operand.
31904
31905 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31906
31907 PR testsuite/42414
31908 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
31909 (check-parallel-%): Match `testsuite' directory component only
31910 at the end.
31911
31912 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
31913
31914 PR translation/39521
31915 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
31916 strings with _().
31917
31918 2010-01-13 Richard Guenther <rguenther@suse.de>
31919
31920 PR tree-optimization/42730
31921 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
31922 offset zero.
31923
31924 2010-01-13 Steve Ellcey <sje@cup.hp.com>
31925
31926 PR target/pr42542
31927 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
31928 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
31929 them signed.
31930
31931 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
31932
31933 * config/bfin/libgcc-bfin.ver: Regenerate based on current
31934 libgcc-std.ver. Add entries for ___smulsi3_highpart and
31935 ___umulsi3_highpart.
31936
31937 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
31938 rather than schedule_insns if the pass is enabled.
31939
31940 2010-01-13 Martin Jambor <mjambor@suse.cz>
31941
31942 PR tree-optimization/42704
31943 * tree-sra.c (sra_modify_assign): Do not delete assignments to
31944 SSA_NAMEs.
31945
31946 2010-01-13 Martin Jambor <mjambor@suse.cz>
31947
31948 PR tree-optimization/42703
31949 * tree-sra.c (analyze_access_subtree): Check that we can build a
31950 reference to the original data within the aggregate.
31951
31952 2010-01-13 Richard Guenther <rguenther@suse.de>
31953
31954 PR tree-optimization/42705
31955 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
31956
31957 2010-01-13 Richard Guenther <rguenther@suse.de>
31958
31959 PR middle-end/42716
31960 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
31961
31962 2010-01-13 Jakub Jelinek <jakub@redhat.com>
31963
31964 PR debug/41371
31965 * var-tracking.c (values_to_unmark): New variable.
31966 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31967 values_to_unmark vector. Moved body to...
31968 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
31969 instead queue it into values_to_unmark vector.
31970 (vt_find_locations): Free values_to_unmark vector.
31971
31972 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
31973
31974 * config/s390/s390.c (override_options): Set
31975 default of max-pending-list-length to 256
31976
31977 2010-01-13 Richard Guenther <rguenther@suse.de>
31978
31979 PR lto/42678
31980 * tree-pass.h (PROP_gimple_lcx): New.
31981 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
31982 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
31983 before the final cleanup_eh.
31984 (dump_properties): Dump PROP_gimple_lcx.
31985 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
31986 (tree_lower_complex_O0): Remove.
31987 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
31988 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
31989 tree_lower_complex, schedule TODO_update_ssa.
31990 * lto-streamer-out.c (output_function): Stream the functions
31991 properties.
31992 * lto-streamer-in.c (input_function): Likewise.
31993 (lto_read_body): Do not override them here.
31994
31995 2010-01-12 Joseph Myers <joseph@codesourcery.com>
31996
31997 PR c/42708
31998 * c-typeck.c (build_c_cast): Fold value cast to union type before
31999 wrapping it in a CONSTRUCTOR.
32000
32001 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32002
32003 PR rtl-optimization/42699
32004 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
32005 involved.
32006
32007 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32008
32009 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32010 SUBTARGET_WARN_UNUSED_SPEC): Move ...
32011 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
32012 SUBTARGET_WARN_UNUSED_SPEC): ... here
32013 * config/mips/iris5.h (LIBGCC_SPEC): Define.
32014
32015 2010-01-12 Julian Brown <julian@codesourcery.com>
32016
32017 * config/arm/neon-schedgen.ml (Utils): Don't try to
32018 open missing module.
32019 (find_with_result): New.
32020
32021 2010-01-12 Jakub Jelinek <jakub@redhat.com>
32022
32023 PR debug/42662
32024 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
32025 sharing when canonicalizing ({lt,ge}u (plus a b) b).
32026
32027 PR tree-optimization/42645
32028 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
32029 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
32030 decl_map, set processing_debug_stmt to -1 and return name without
32031 any remapping.
32032
32033 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
32034
32035 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
32036 binutils version, and reword target configuration description.
32037
32038 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32039
32040 * config/avr/avr.h (LINKER_NAME): Remove.
32041
32042 2010-01-11 Janis Johnson <janis187@us.ibm.com>
32043
32044 PR target/42416
32045 * config/rs6000/rs6000.c (rs6000_override_options): On targets
32046 that support VSX, warn for -mno-altivec if vsx is not disabled,
32047 and disable vsx.
32048
32049 2010-01-11 Joseph Myers <joseph@codesourcery.com>
32050 Shujing Zhao <pearly.zhao@oracle.com>
32051
32052 PR translation/42469
32053 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
32054 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
32055 character between option name and help text.
32056 * c.opt (imultilib): Likewise.
32057
32058 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
32059
32060 * lto-streamer-out.c (output_unreferenced_globals): Output static
32061 variables.
32062
32063 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
32064
32065 PR rtl-optimization/42621
32066 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
32067 optimizing for size.
32068 (duplicate_computed_gotos): Remove now-redundant check.
32069
32070 2010-01-10 Steve Ellcey <sje@cup.hp.com>
32071
32072 PR target/37454
32073 * configure.ac: Save and restore LDFLAGS and LIBS
32074 * configure: Regenerate.
32075
32076 2010-01-10 Richard Guenther <rguenther@suse.de>
32077
32078 PR middle-end/42667
32079 * builtins.c (fold_builtin_strlen): Add type argument and
32080 convert the resulting length to it.
32081 (fold_builtin_1): Adjust.
32082
32083 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32084
32085 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
32086 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
32087 1 insn.
32088 (num_insns_constant_wide): Adjust for that change.
32089
32090 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32091
32092 PR debug/42631
32093 * web.c (union_defs): Add used argument, to combine uses of
32094 uninitialized regs.
32095 (entry_register): Adjust type and tests of used argument.
32096 (web_main): Widen used for new use. Pass it to union_defs.
32097 * df.h (union_defs): Adjust prototype.
32098
32099 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32100
32101 PR debug/42630
32102 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
32103 uses in new incoming argument. Free body.
32104 (reset_debug_uses_in_loop): New.
32105 (analyze_insn_to_expand_var): Call the latter if the former found
32106 anything. Fix whitespace. Reject invalid dest overlaps before
32107 going through all insns in the loop.
32108
32109 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32110
32111 PR debug/42629
32112 * haifa-sched.c (dying_use_p): Debug insns don't count.
32113
32114 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32115
32116 PR middle-end/42363
32117 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
32118 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
32119 (verify_gimple_call): Reject LHS in noreturn calls.
32120
32121 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32122
32123 PR debug/42604
32124 PR debug/42395
32125 * tree-vect-loop-manip.c (adjust_info): New type.
32126 (adjust_vec): New pointer to vector.
32127 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
32128 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
32129 (slpeel_update_phis_for_duplicate_loop): Use them.
32130 (slpeel_update_phi_nodes_for_guard1): Likewise.
32131 (slpeel_update_phi_nodes_for_guard2): Likewise.
32132 (slpeel_tree_peel_loop_to_edge): Likewise.
32133 (vect_update_ivs_after_vectorizer): Likewise.
32134
32135 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32136
32137 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
32138 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
32139
32140 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
32141
32142 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
32143 bogus uninitialized warning.
32144
32145 2010-01-09 Richard Guenther <rguenther@suse.de>
32146
32147 PR middle-end/42512
32148 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
32149 the evolution is compatible with the initial condition.
32150
32151 2010-01-09 Jakub Jelinek <jakub@redhat.com>
32152
32153 * gcc.c (process_command): Update copyright notice dates.
32154 * gcov.c (print_version): Likewise.
32155 * gcov-dump.c (print_version): Likewise.
32156 * mips-tfile.c (main): Likewise.
32157 * mips-tdump.c (main): Likewise.
32158
32159 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
32160
32161 PR target/41885
32162 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
32163 (rotlhi3): Delete.
32164 (rotlhi3_8): Delete.
32165 (rotlsi3): Delete.
32166 (rotlsi3_8): Delete.
32167 (rotlsi3_16): Delete.
32168 (rotlsi3_24): Delete.
32169 (rotl<mode>3): New.
32170 (*rotw<mode>3): New.
32171 (*rotb<mode>3): New.
32172 * config/avr/avr.c (avr_rotate_bytes): New function.
32173 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
32174
32175 2010-01-08 Steve Ellcey <sje@cup.hp.com>
32176
32177 PR target/37454
32178 * configure.ac: Modify -rdynamic check.
32179 * configure: Regenerate.
32180
32181 2010-01-08 DJ Delorie <dj@redhat.com>
32182
32183 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
32184 register popping order.
32185
32186 2010-01-08 Richard Guenther <rguenther@suse.de>
32187
32188 PR lto/42528
32189 * c.opt (fsigned-char): Also let LTO handle this option.
32190 (funsigned-char): Likewise.
32191
32192 2010-01-07 Richard Guenther <rguenther@suse.de>
32193
32194 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
32195 (gimple_op): Likewise.
32196 (gimple_op_ptr): Likewise.
32197 (gimple_assign_set_lhs): Remove gcc_assert.
32198 (gimple_assign_set_rhs1): Likewise.
32199 (gimple_assign_set_rhs2): Likewise.
32200 (gimple_call_set_lhs): Likewise.
32201 (gimple_call_set_fn): Likewise.
32202 (gimple_call_set_fndecl): Likewise.
32203 (gimple_call_fndecl): Likewise.
32204 (gimple_call_return_type): Likewise.
32205 (gimple_call_set_chain): Likewise.
32206 (gimple_call_num_args): Likewise.
32207 (gimple_call_set_arg): Likewise.
32208 (gimple_cond_set_code): Likewise.
32209 (gimple_cond_set_lhs): Likewise.
32210 (gimple_cond_set_rhs): Likewise.
32211 (gimple_cond_set_true_label): Likewise.
32212 (gimple_cond_set_false_label): Likewise.
32213 (gimple_label_set_label): Likewise.
32214 (gimple_goto_set_dest): Likewise.
32215 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
32216 (gimple_debug_bind_get_value): Likewise.
32217 (gimple_debug_bind_get_value_ptr): Likewise.
32218 (gimple_debug_bind_set_var): Likewise.
32219 (gimple_debug_bind_set_value): Likewise.
32220 (gimple_debug_bind_reset_value): Likewise.
32221 (gimple_debug_bind_has_value_p): Likewise.
32222 (gimple_return_retval_ptr): Remove gcc_assert.
32223 (gimple_return_retval): Likewise.
32224 (gimple_return_set_retval): Likewise.
32225 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
32226 (safe_referenced_var_iterator): Remove.
32227 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
32228 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
32229 (fill_referenced_var_vec): Remove.
32230 (first_readonly_imm_use): Remove redundant gcc_assert.
32231 (phi_arg_index_from_use): Combine gcc_asserts.
32232 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
32233 (first_imm_use_stmt): Remove redundant gcc_assert.
32234 * tree-cfg.c (verify_gimple_call): Verify function and chain
32235 operands. Verify arguments.
32236 (verify_types_in_gimple_stmt): Verify condition code and labels.
32237
32238 2010-01-07 Richard Guenther <rguenther@suse.de>
32239
32240 PR tree-optimization/42641
32241 * sese.c (rename_map_elt_info): Use the SSA name version, do
32242 not hash pointers.
32243
32244 2010-01-07 Jakub Jelinek <jakub@redhat.com>
32245
32246 PR tree-optimization/42625
32247 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
32248 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
32249
32250 2010-01-07 Duncan Sands <baldrick@free.fr>
32251
32252 * Makefile.in (PLUGIN_HEADERS): Add version.h.
32253
32254 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
32255
32256 PR target/42511
32257 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
32258 note itself is not function_invariant_p.
32259
32260 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
32261
32262 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
32263 Do not add the DF_NOTE problem.
32264 * store-motion.c (execute_rtl_store_motion): Likewise.
32265
32266 2010-01-07 Martin Jambor <mjambor@suse.cz>
32267
32268 PR tree-optimization/42157
32269 * tree-sra.c (compare_access_positions): Stabilize sort if both
32270 accesses have integer types, return zero immediately if they are the
32271 same.
32272
32273 2010-01-06 Richard Henderson <rth@redhat.com>
32274
32275 PR middle-end/41883
32276 * haifa-sched.c (add_to_note_list): Merge into ...
32277 (concat_note_lists): ... here, and ...
32278 (unlink_other_notes, rm_other_notes): Merge into...
32279 (remove_notes): ... here. Create REG_SAVE_NOTEs for
32280 NOTE_INSN_EPILOGUE_BEG.
32281
32282 2010-01-06 Richard Guenther <rguenther@suse.de>
32283
32284 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
32285 not inline regular functions into always-inline functions.
32286
32287 2010-01-06 Nick Clifton <nickc@redhat.com>
32288
32289 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
32290 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
32291 used together.
32292 (OVERRIDE_OPTIONS): Delete.
32293 (OPTIMIZATION_OPTIONS): Define.
32294 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
32295 * config/rx/rx.c (rx_handle_option): Issue an error message if
32296 -mcpu=rx200 and -fpu are used together.
32297 (rx_set_optimization_options): New function. Issue an error
32298 message if an optimization attribute attempts to reset the FPU/
32299 math optimization pairing.
32300 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
32301 * config/rx/rx.opt: Set the default to 32-bit doubles.
32302 * config/rx/t-rx: Add multilibs for -nofpu option.
32303 * doc/invoke.texi: Update documentation of RX options.
32304
32305 2010-01-06 Richard Guenther <rguenther@suse.de>
32306
32307 * tree-ssa-pre.c (name_to_id): New global.
32308 (alloc_expression_id): Simplify SSA name handling.
32309 (lookup_expression_id): Likewise.
32310 (init_pre): Zero name_to_id.
32311 (fini_pre): Free it.
32312
32313 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
32314
32315 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
32316
32317 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
32318
32319 PR target/42542
32320 * config/i386/sse.md (smaxv2di3): New.
32321 (umaxv2di3): Likewise.
32322 (sminv2di3): Likewise.
32323 (uminv2di3): Likewise.
32324
32325 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
32326
32327 PR target/42564
32328 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
32329 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
32330 (legitimize_tls_address): Likewise.
32331 (sparc_tls_referenced_p): Likewise.
32332 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
32333 and adjust calls to legitimize_pic_address.
32334 (legitimate_constant_p) Use sparc_tls_referenced_p.
32335 (legitimate_pic_operand_p): Likewise.
32336 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
32337 (sparc_tls_symbol_ref_1): Delete.
32338 (sparc_tls_referenced_p): Make static, recognize specific patterns.
32339 (legitimize_tls_address): Make static, handle CONST patterns.
32340 (legitimize_pic_address): Make static, remove unused parameter and
32341 adjust recursive calls.
32342 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
32343 and adjust call to legitimize_pic_address.
32344 (sparc_output_mi_thunk): Likewise.
32345
32346 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
32347 H.J. Lu <hongjiu.lu@intel.com>
32348
32349 PR target/42542
32350 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
32351 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
32352 operands to make them signed.
32353
32354 Revert:
32355 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32356
32357 PR target/42542
32358 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
32359 GTU to GT for V4SI and V2DI.
32360
32361 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
32362 (umin<mode>3): Removed.
32363 (uminv8hi3): New.
32364 (uminv4si3): Likewise.
32365
32366 2010-01-05 Martin Jambor <mjambor@suse.cz>
32367
32368 PR tree-optimization/42462
32369 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
32370 current_function_decl to helper functions and macros.
32371
32372 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32373
32374 PR bootstrap/41771
32375 * flags.h: Don't include real.h.
32376 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
32377 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
32378 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
32379 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
32380 * dominance.c: Update copyright.
32381 * gimple.c (walk_gimple_op): Remove inline.
32382 * tree-ssa-reassoc.c: Include real.h.
32383 * Makefile.in (FLAGS_H): Remove $(REAL_H).
32384 (tree-ssa-reassoc.o): Depend on $(REAL_H).
32385
32386 2010-01-05 Nick Clifton <nickc@redhat.com>
32387
32388 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
32389 register to push into the stack frame when the accumulator has to
32390 be saved during interrupts.
32391
32392 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
32393
32394 * doc/invoke.texi: Remove the documentation about option
32395 -Wunreachable-code.
32396 * common.opt (Wunreachable-code): Preserved for backward
32397 compatibility.
32398 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
32399 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
32400 the backward compatibility flag section.
32401
32402 2010-01-05 Richard Guenther <rguenther@suse.de>
32403
32404 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
32405
32406 2010-01-05 Jakub Jelinek <jakub@redhat.com>
32407
32408 PR other/42611
32409 * cfgexpand.c (expand_one_var): Diagnose too large variables.
32410
32411 PR tree-optimization/42508
32412 * tree-sra.c (convert_callers): Check for recursive call
32413 by comparing cgraph nodes instead of decls.
32414 (modify_function): Call ipa_modify_formal_parameters also
32415 on all same_body aliases.
32416
32417 * cgraphunit.c (cgraph_materialize_all_clones): Compare
32418 cgraph nodes when checking for same_body aliases.
32419
32420 2010-01-05 Richard Guenther <rguenther@suse.de>
32421
32422 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
32423 allocation and lookup.
32424 (get_or_alloc_expr_for_constant): Likewise.
32425 (phi_translate): Sink allocation.
32426
32427 2010-01-04 Richard Guenther <rguenther@suse.de>
32428
32429 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
32430 a new entry only if needed.
32431 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
32432 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
32433 hashtable lookup.
32434 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
32435 the result array.
32436 (phi_translate): Handle CONSTANTs early.
32437
32438 2010-01-04 Martin Jambor <mjambor@suse.cz>
32439
32440 PR tree-optimization/42398
32441 * tree-sra.c (struct access): Removed flag grp_different_types.
32442 (dump_access): Do not dump the removed flag.
32443 (sort_and_splice_var_accesses): Do not set the removed flag.
32444 (sra_modify_expr): Check for type compatibility directly.
32445
32446 2010-01-04 Martin Jambor <mjambor@suse.cz>
32447
32448 PR tree-optimization/42366
32449 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
32450 edges with variable number of parameters.
32451 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
32452 flag instead of asserting it.
32453 (ipa_read_node_info): Read uses_analysis_done flag.
32454
32455 2010-01-04 Richard Guenther <rguenther@suse.de>
32456
32457 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
32458 iterative_hash_* as intended.
32459 (vn_reference_compute_hash): Likewise. Simplify hashing
32460 SSA names.
32461 (vn_reference_lookup_2): Likewise.
32462 (vn_nary_op_compute_hash): Likewise.
32463 (vn_phi_compute_hash): Likewise.
32464 (expressions_equal_p): Remove strange code.
32465 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
32466 (pre_expr_hash): Likewise. Simplify hashing SSA names.
32467 (bitmap_insert_into_set_1): Take value-id as parameter.
32468 (add_to_value): Pass it.
32469 (bitmap_insert_into_set): Likewise.
32470 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
32471
32472 2010-01-04 Jakub Jelinek <jakub@redhat.com>
32473
32474 PR driver/42442
32475 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
32476 (do_self_spec): For switches with SWITCH_IGNORE set set also
32477 SWITCH_IGNORE_PERMANENTLY.
32478 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
32479 of SWITCH_IGNORE.
32480
32481 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
32482
32483 * lto-streamer-out.c (output_unreferenced_globals): Output the full
32484 tree of an unreferenced global var.
32485
32486 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32487
32488 PR target/42542
32489 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
32490 GTU to GT for V4SI and V2DI.
32491
32492 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
32493 (umin<mode>3): Removed.
32494 (uminv8hi3): New.
32495 (uminv4si3): Likewise.
32496
32497 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
32498
32499 PR lto/42581
32500 * collect2.c (main): Turn on trace in collect2 if -v is passed
32501 to gcc with LTO.
32502
32503 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
32504
32505 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
32506 description of expression operand.
32507
32508 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
32509
32510 * configure.ac: Add install-html to target_list for Make-hooks.
32511 * configure: Regenerate.
32512 * fortran/Make-lang.in (F95_HTMLFILES): New.
32513 (fortran.html): Use it.
32514 (fortran.install-html): New.
32515 * Makefile.in (install-html): Add lang.install-html.
32516 * java/Make-lang.in (JAVA_HTMLFILES): New.
32517 (java.html): Use it.
32518 (java.install-html): New.
32519 * objc/Make-lang.in (objc.install-html): New.
32520 * objcp/Make-lang.in (obj-c++.install-html): New.
32521 * cp/Make-lang.in (c++.install-html): New.
32522 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
32523 * lto/Make-lang.in (lto.install-html): New.
32524
32525 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
32526
32527 PR lto/42520
32528 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
32529
32530 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
32531
32532 PR rtl-optimization/41862
32533 * store-motion.c (store_killed_in_insn, compute_store_table,
32534 remove_reachable_equiv_notes, replace_store_insn,
32535 build_store_vectors): Ignore all DEBUG_INSNs.
32536
32537 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
32538
32539 PR lto/41564
32540 * common.opt: Add dumpdir.
32541
32542 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
32543 isn't specified.
32544 (option_map): Add --dumpdir.
32545
32546 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
32547
32548 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
32549
32550 * opts.c (decode_options): Try dump_dir_name first if
32551 dump_base_name isn't an absolute path.
32552 (common_handle_option): Handle OPT_dumpdir.
32553
32554 * toplev.c (dump_dir_name): New.
32555 (print_switch_values): Also ignore -dumpdir.
32556
32557 * toplev.h (dump_dir_name): New.
32558
32559 2010-01-03 Richard Guenther <rguenther@suse.de>
32560
32561 PR tree-optimization/42589
32562 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
32563 double-word expansion of bswap32.
32564
32565 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
32566
32567 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
32568 with BLOCK_FOR_INSN.
32569 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
32570 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
32571 noce_process_if_block): Likewise.
32572 * gcse.c (compute_local_properties, insert_expr_in_table,
32573 insert_set_in_table, canon_list_insert, find_avail_set,
32574 pre_insert_copy_insn): Likewise.
32575
32576 * basic-block.h (BLOCK_NUM): Move from here...
32577 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
32578
32579 2010-01-03 Richard Guenther <rguenther@suse.de>
32580
32581 PR tree-optimization/42438
32582 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
32583 contains_may_not_return_call flag.
32584 (BB_MAY_NOTRETURN): New.
32585 (valid_in_sets): Trapping nary operations are not valid
32586 in blocks that may not return.
32587 (insert_into_preds_of_block): Remove check for trapping expressions.
32588 (compute_avail): Compute also BB_MAY_NOTRETURN.
32589
32590 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
32591
32592 * doc/invoke.texi: Add 2010 to copyright years.
32593
32594 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
32595
32596 * config/sparc/sparc.c: Fix formatting nits.
32597
32598 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
32599 Alexander Monakov <amonakov@ispras.ru>
32600
32601 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
32602
32603 2010-01-02 Richard Guenther <rguenther@suse.de>
32604
32605 PR middle-end/42577
32606 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
32607 (simplify_switch_using_ranges): Mark to be removed edges
32608 as non-executable.
32609
32610 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32611
32612 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32613
32614 * collect2.c (scan_libraries): Add missing argument in call to
32615 scan_prog_file.
32616
32617 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
32618
32619 PR target/42448
32620 * config/alpha/predicates.md (aligned_memory_operand): Return false
32621 for CQImode.
32622 (unaligned_memory_operand): Return true for CQImode.
32623 * config/alpha/alpha.c (get_aligned_mem): Assert that location
32624 doesn not cross aligned SImode word boundary.
32625
32626 2010-01-02 Anatoly Sokolov <aesok@post.ru>
32627
32628 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
32629 Remove.
32630 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
32631 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
32632
32633 2010-01-02 Richard Guenther <rguenther@suse.de>
32634
32635 PR lto/41597
32636 * toplev.c (compile_file): Emit LTO marker properly. Change
32637 it to __gnu_lto_v1.
32638 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
32639
32640 2010-01-01 Richard Guenther <rguenther@suse.de>
32641
32642 PR debug/42455
32643 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
32644
32645 2010-01-01 Richard Guenther <rguenther@suse.de>
32646
32647 PR c/42570
32648 * c-decl.c (grokdeclarator): For zero-size arrays force
32649 structural equality checks as layout_type does.
32650
32651 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
32652
32653 * builtins.c: Update copyright to 2010.
32654
32655 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
32656
32657 PR lto/42531
32658 * lto-streamer-out.c (produce_asm): Revert the last change.
32659 (copy_function): Likewise.
32660
32661 * lto-streamer.c (lto_get_section_name): Skip any leading
32662 asterisk in name.
32663
32664 2010-01-01 Richard Guenther <rguenther@suse.de>
32665
32666 PR middle-end/42559
32667 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
32668 for LABEL_DECLs.
32669
32670 \f
32671 Copyright (C) 2010 Free Software Foundation, Inc.
32672
32673 Copying and distribution of this file, with or without modification,
32674 are permitted in any medium without royalty provided the copyright
32675 notice and this notice are preserved.