]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
config.build (ia64-hp-*vms*): New target.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
a9a25daa
DR
12009-08-09 Douglas B Rupp <rupp@gnat.com>
2
3 * config.build (ia64-hp-*vms*): New target.
4 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
5 with ia64-hp-*vms*.
6 * config.gcc (ia64-hp-*vms*): New target.
7 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
8 with ia64-hp-*vms*.
9 * config.host (ia64-hp-*vms*): New target.
10 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
11 with ia64-hp-*vms*.
12
55194b0b
RG
132009-08-08 Richard Guenther <rguenther@suse.de>
14
15 PR tree-optimization/40991
16 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
17
d686d892
RS
182009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
19
20 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
21 mode check. Do truncations in an integer mode.
22 (force_to_mode): Handle subregs for all mode types. Only do
23 arithmetic simplifications on integer modes.
24
0adef8e9
RG
252009-08-07 Richard Guenther <rguenther@suse.de>
26
27 PR tree-optimization/40999
28 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
29 (maybe_fold_reference): Lookup constant initializers.
30 (fold_gimple_assign): Likewise.
31
60419cc8
RG
322009-08-07 Richard Guenther <rguenther@suse.de>
33
34 * tree-ssa.c (useless_type_conversion_p_1): Only for types
35 that require structural equality defer to the langhook.
36
685b0d13
MJ
372009-08-07 Martin Jambor <mjambor@suse.cz>
38
39 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
40 comments.
41 (struct ipa_pass_through_data): New type.
42 (struct ipa_ancestor_jf_data): New type.
43 (union jump_func_value): Removed field formal_id, added fields
44 pass_through and ancestor.
45 (struct ipa_param_call_note): Changed type of formal_id to int from
46 unsigned.
47 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
48 operations jump functions and ancestor jump functions.
49 (compute_complex_pass_through): New function.
50 (compute_scalar_jump_functions): Call compute_complex_pass_through,
51 reflect changes in the jump function strucutre.
52 (update_jump_functions_after_inlining): Ignore complex pass-through
53 and ancestor jump functions.
54 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
55 polynomial pass-through with operation jump functions.
56
17f6e37d
JJ
572009-08-07 Jakub Jelinek <jakub@redhat.com>
58
59 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
60 fde->dw_fde_begin as begin label instead of hot/cold label.
61 Use LLSDAC label instead of LLSDA for second section lsda.
62 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
63 label instead of LLSDA if it is true.
64 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
65 callers.
66 * except.c (add_call_site, dw2_size_of_call_site_table): Add
67 SECTION argument. Use it as index into crtl->eh.call_site_record
68 array.
69 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
70 use it to determine how to print table entries instead of using
71 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
72 label instead of normal begin label as base.
73 (sjlj_assign_call_site_values): Adjust add_call_site caller.
74 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
75 ensure no EH range spans between sections and that landing pads
76 are always in the corresponding section.
77 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
78 for crtl->eh.call_site_record being an array rather than scalar.
79 (output_one_function_exception_table): New function, copied
80 from output_function_exception_table. Adjust
81 dw2_size_of_call_site_table, dw2_output_call_site_table
82 callers. For SECOND section use *C suffixed labels.
83 (output_function_exception_table): Call
84 output_one_function_exception_table and, when doing hot/cold
85 partitioning, also another time for the second section.
86 * opts.c: Include except.h.
87 (decode_options): Allow -freorder-blocks-and-partition with
88 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
89 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
90 * function.h (struct rtl_eh): Change call_site_record from
91 scalar into array of 2 elements.
92
3f84bf08
MJ
932009-08-07 Martin Jambor <mjambor@suse.cz>
94
95 * ipa-prop.c (count_formal_params_1): New function.
96 (ipa_get_vector_of_formal_parms): New function.
97 (get_vector_of_formal_parm_types): New function.
98 (ipa_modify_formal_parameters): New function.
99 (ipa_modify_call_arguments): New function.
100 (index_in_adjustments_multiple_times_p): New function.
101 (ipa_combine_adjustments): New function.
102 (ipa_dump_param_adjustments): New function.
103 * ipa-prop.h (struct ipa_parm_adjustment): New type.
104 (ipa_get_vector_of_formal_parms): Declare.
105 (ipa_modify_formal_parameters): Declare.
106 (ipa_modify_call_arguments): Declare.
107 (ipa_combine_adjustments): Declare.
108 (ipa_dump_param_adjustments): Declare.
109 (build_ref_for_offset): Declare.
110 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
111 * tree-sra.c: Include ipa-prop.c.
112 (build_ref_for_offset): Make public.
113
48c4de16
TS
1142009-08-06 Thomas Schwinge <tschwinge@gnu.org>
115
116 * gcc/doc/extend.texi (__builtin_extract_return_address)
117 (__builtin_frob_return_address): Document.
118
f36d140e
PB
1192009-08-06 Paul Brook <paul@codesourcery.com>
120
121 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
122 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
123 implementation on ARMv6-M.
124
14a782c8
RE
1252009-08-06 Richard Earnshaw <rearnsha@arm.com>
126
127 * doc/extend.texi (pcs): Document new attribute for ARM.
128
0f1a24df
RE
1292009-08-06 Richard Earnshaw <rearnsha@arm.com>
130
131 * arm.c (pcs_attribute_args): Comment out unsupported attribute
132 variants.
133
a9717079
RE
1342009-08-06 Richard Earnshaw <rearnsha@arm.com>
135
136 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
137 warning ().
138
d8e6aede
RE
1392009-08-06 Richard Earnshaw <rearnsha@arm.com>
140
141 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
142
390b17c2
RE
1432009-08-06 Richard Earnshaw <rearnsha@arm.com>
144
145 Merge ARM/hard_vfp_branch to trunk.
146
147 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
148
149 * arm.c (libcall_eq): New function.
150 (libcall_hash): New function.
151 (add_libcall): New function.
152 (arm_libcall_uses_aapcs_base): New function.
153 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
154 libcalls using the base PCS.
155 (arm_init_cumulative_args): Likewise.
156
157 2009-07-20 Joseph Myers <joseph@codesourcery.com>
158
159 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
160 Use base ABI for conversion libfuncs between HFmode and SFmode.
161
162 2009-05-12 Joseph Myers <joseph@codesourcery.com>
163
164 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
165 V4SImode as representatives of all 64-bit and 128-bit vector
166 types. Allow vector types without vector modes.
167 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
168 without vector modes like BLKmode.
169 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
170 BLKmode. Avoid unsupported vector modes or TImode moves for
171 non-TARGET_NEON.
172 (aapcs_vfp_allocate_return_reg): Likewise.
173 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
174 V8QImode if TARGET_NEON || TARGET_IWMMXT.
175
176 2009-05-12 Joseph Myers <joseph@codesourcery.com>
177
178 * config/arm/arm.c (arm_handle_pcs_attribute): New.
179 (arm_get_pcs_model): Pass attribute arguments to
180 arm_pcs_from_attribute.
181 (arm_init_cumulative_args): Use base AAPCS for conversions from
182 floating-point types to DImode.
183 (arm_attribute_table): Add pcs attribute.
184 (arm_handle_pcs_attribute): New.
185 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
186 conversions from floating-point types to DImode, also declare them
187 to use base AAPCS and declare functions they call to use base
188 AAPCS and their RTABI names.
189
190 2009-05-12 Joseph Myers <joseph@codesourcery.com>
191
192 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
193 -mfloat-abi=hard not being supported for VFP.
194
195 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
196
197 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
198 SYMBOL_REF to hard_libcall_value.
199
200 2009-03-05 Joseph Myers <joseph@codesourcery.com>
201 Richard Earnshaw <rearnsha@arm.com>
202
203 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
204 has been put on the stack, all remaining co-processory arguments for
205 that co-processor also go on the stack.
206
207 2009-03-05 Joseph Myers <joseph@codesourcery.com>
208
209 * config/arm/arm.c (arm_return_in_memory): Handle returning
210 vectors of suitable size in registers also for AAPCS case.
211
212 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
213
214 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
215
216 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
217
218 ARM Hard-VFP calling convention
219 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
220 * target.h (gcc_target): Add libcall_value to table of call hooks.
221 * targhooks.h (default_libcall_value): Default implementation.
222 * targhooks.c (default_libcall_value): Likewise.
223 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
224 * optabs.c (expand_unop): Use it.
225 * expr.h (hard_libcall_value): Pass the function RTX through.
226 * calls.c (emit_library_call_value_1): Update call to
227 hard_libcall_value.
228 * explow.c (hard_libcall_value): Use new target hook.
229 * testsuite/lib/target-supports.exp
230 (check_effective_target_arm_hard_vfp_ok): New hook.
231 (check_effective_target_arm_neon_ok): Improve test for neon
232 availability.
233 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
234 * config/arm/arm.c: Include cgraph.h
235 (TARGET_FUNCTION_VALUE): Override default hook.
236 (arm_pcs_default): New variable.
237 (arm_override_options): Don't fault hard calling convention with VFP.
238 Add support for AAPCS variants.
239 (arm_function_value): Make static. Handle AAPCS variants.
240 (arm_libcall_value): New function.
241 (arm_apply_result_size): Handle VFP registers in results.
242 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
243 conventions.
244 (pcs_attribute_args): New variable.
245 (arm_pcs_from_attribute): New function.
246 (arm_get_pcs_model): New function.
247 (aapcs_vfp_cum_init): New function.
248 (aapcs_vfp_sub_candidate): New function.
249 (aapcs_vfp_is_return_candidate): New function.
250 (aapcs_vfp_is_call_candidate): New function.
251 (aapcs_vfp_allocate): New function.
252 (aapcs_vfp_allocate_return_reg): New function.
253 (aapcs_vfp_advance): New function.
254 (aapcs_cp_arg_layout): New variable.
255 (aapcs_select_call_coproc): New function.
256 (aapcs_select_return_coproc): New function.
257 (aapcs_allocate_return_reg): New function.
258 (aapcs_libcall_value): New function.
259 (aapcs_layout_arg): New function.
260 (arm_init_cumulative_args): Initialize AAPCS args data.
261 (arm_function_arg): Handle AAPCS variants using new interface.
262 (arm_arg_parital_bytes): Likewise.
263 (arm_function_arg_advance): New function.
264 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
265 calling conventions.
266 (arm_setup_incoming_varargs): Handle new AAPCS args data.
267 * arm.h (NUM_VFP_ARG_REGS): Define.
268 (LIBCALL_VALUE): Update.
269 (FUNCTION_VALUE): Delete.
270 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
271 (arm_pcs): New enum.
272 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
273 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
274 (FUNCTION_ARG_REGNO_P): Add VFP regs.
275 * arm-protos.h (arm_function_arg_advance): Add.
276 (aapcs_libcall_value): Add.
277 (arm_function_value): Delete.
278
4dbf26d5
UB
2792009-08-06 Uros Bizjak <ubizjak@gmail.com>
280 H.J. Lu <hongjiu.lu@intel.com>
281
282 PR target/40957
283 * config/i386/i386.c (standard_sse_mode_p): Remove.
284 (standard_sse_constant_p): Return 2 for integer mode
285 vector_all_ones_operand when SSE2 is enabled.
286 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
287 (ix86_expand_vector_move): Do not check for negative values from
288 standard_sse_constant_p.
289
e52201b6
RG
2902009-08-06 Richard Guenther <rguenther@suse.de>
291
292 * tree-ssa.c (useless_type_conversion_p_1): Make function and
293 array type comparisons frontend independent.
294 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
295 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
296 out array reference lower bound and element size operands.
297 (ao_ref_init_from_vn_reference): Properly compute the offset
298 for ARRAY_RANGE_REF.
299 (vn_reference_fold_indirect): Fill out array reference lower
300 bound and element size operands.
301 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
302 a non gimple valued reference operand which can happen for
303 array reference lower bound or element size.
304 (create_component_ref_by_pieces_1): Properly generate the
305 element size operand for array references.
306
b92fbdd7
RB
3072009-08-06 Richard Guenther <rguenther@suse.de>
308
309 PR tree-optimization/40964
310 * tree.c (iterative_hash_host_wide_int): Export.
311 * tree.h (iterative_hash_host_wide_int): Declare.
312 * tree-ssa-structalias.c (heapvar_map): New struct.
313 (heapvar_map_eq): New function.
314 (heapvar_map_hash): Likewise.
315 (heapvar_lookup): Adjust.
316 (heapvar_insert): Likewise.
317 (make_constraint_from_heapvar): Allow multiple heap variables
318 per decl at different offsets.
319 (init_alias_heapvars): Adjust.
320
068ca03a
DD
3212009-08-04 David Daney <ddaney@caviumnetworks.com>
322
323 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
324 * mips_output_sync_loop (mips_output_sync_loop): Only emit
325 trailing sync if TARGET_SYNC_AFTER_SC.
326
40a4a37b
DD
3272009-08-05 David Daney <ddaney@caviumnetworks.com>
328
329 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
330 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
331 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
332 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
333 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
334 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
335 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
336 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
337 test_and_set_12): Rewrite calls to mips_output_sync_loop.
338 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
339 the prototype declaration match the definition.
340 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
341 instructions explicitly. Add barrier_before and operands
342 parameters.
343 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
344 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
345 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
346 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
347 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
348 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
349
dcbd7063
AP
3502009-08-05 Andrew Pinski <pinskia@gmail.com>
351
352 * tree-ssa-alias.c: Fix intervals to use [) syntax.
353
2c4389d8
UB
3542009-08-05 Uros Bizjak <ubizjak@gmail.com>
355 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
356
357 PR target/40906
358 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
359 source operand.
360
403c7520
JJ
3612009-08-05 Jakub Jelinek <jakub@redhat.com>
362
363 PR rtl-optimization/40924
364 * dse.c (canon_address): Before calling cselib_expand_value_rtx
365 make sure canon_rtx (mem_address) isn't simpler than
366 canon_rtx (expanded_mem_address).
367
64393e40
LF
3682009-08-05 Li Feng <nemokingdom@gmail.com>
369
370 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
371 for each poly_bb_p.
372 (build_scop_drs): Build alias set for each SCoP.
373
5dce6dbd
SL
3742009-08-04 Sandra Loosemore <sandra@codesourcery.com>
375
376 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
377 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
378 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
379 (MIPS_ARCH_FLOAT_SPEC): Likewise.
380 (BASE_DRIVER_SELF_SPECS): Likewise.
381
f9fc1a02
AP
3822009-08-04 Andrew Pinski <pinskia@gmail.com>
383
384 * tree-ssa-alias.c: Fix some comment typos.
385
09a7d0af
KK
3862009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
387
388 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
389 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
390
50cd60be
JJ
3912009-08-03 Janis Johnson <janis187@us.ibm.com>
392
393 PR c/39902
394 * simplify-rtx.c (simplify_binary_operation_1): Disable
395 simplifications for decimal float operations.
396
1768a052
JJ
3972009-08-03 Jakub Jelinek <jakub@redhat.com>
398
399 PR middle-end/40943
400 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
401 operand of INDIRECT_REF.
402
42a9ba1d
UB
4032009-08-03 Uros Bizjak <ubizjak@gmail.com>
404
405 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
406 constants referencing TLS symbols.
407
9f774cb0
ST
4082009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
409
410 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
411 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
412
907dd6ae
RG
4132009-08-03 Richard Guenther <rguenther@suse.de>
414
415 * tree.c (make_vector_type): Build a main variant first,
416 get the canonical one and then build the variant.
417 * tree-ssa.c (useless_type_conversion_p_1): Handle
418 fixed-point types.
419 (useless_type_conversion_p): Conversions to pointers to
420 incomplete record types are useless.
421
2329c6f5
RG
4222009-08-03 Richard Guenther <rguenther@suse.de>
423
424 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
425 file will be created.
426 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
427 * toplev.c (compile_file): Adjust comment.
428
d055ce45
KK
4292009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
430
431 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
432 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
433 (TARGET_PROMOTE_FUNCTION_MODE): Define.
434 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
435 (sh_promote_function_mode): Fix typo.
436
b1680483
AK
4372009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
438
42a9ba1d 439 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
b1680483 440
4ce3042d
JDA
4412009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
442
443 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
444 declaration arguments.
445
0589e07d
UB
4462009-08-02 Uros Bizjak <ubizjak@gmail.com>
447
448 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
449 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
450 (ix86_split_ashl): Ditto.
451 (ix86_expand_vector_init_one_nonzero): Ditto.
452 (ix86_expand_vector_set): Ditto.
453 (ix86_expand_reduc_v4sf): Ditto.
454
4552009-08-02 Paolo Bonzini <bonzini@gnu.org>
6e957ac8
PB
456
457 * explow.c (promote_function_mode): Remove assert.
458 * config/sh/sh.c (sh_promote_function_mode): Declare.
459
be3e4ef6
JDA
4602009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
461
6e957ac8
PB
462 * config/pa/pa.c (pa_promote_function_mode): Declare.
463 Change to static. Fix promote_mode call.
02095c50 464
1f7ec57e
JDA
465 * gthr-dce.h (CONST_CAST2): Define if not defined.
466 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
467
be3e4ef6
JDA
468 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
469
6e957ac8 4702009-08-01 Paolo Bonzini <bonzini@gnu.org>
cde0f3fd
PB
471
472 * expr.c (store_constructor): Use promote_decl_mode. Remove
473 now write-only variable unsignedp.
474 (expand_expr_real_1): Use promote_decl_mode.
475 * expr.h (promote_function_mode, promote_decl_mode): New.
476 (promote_mode): Remove last argument.
477 * function.c (assign_temp): Drop last argument of promote_mode.
478 (assign_parm_find_data_types): Use promote_function_mode.
479 (assign_parm_setup_reg): Likewise.
480 (expand_function_end): Use promote_function_mode.
481 * calls.c (initialize_argument_information): Use promote_function_mode.
482 (precompute_arguments): Use promote_mode instead of checking if
483 only PROMOTE_FUNCTION_MODE is defined.
484 (expand_call): When making sibcall decisions, use promote_function_mode.
485 Below, remove an if for targetm.calls.promote_function_return and
486 and use promote_function_mode.
487 (emit_library_call_value_1): Use promote_function_mode, fix bug
488 where promote_mode was passed FOR_CALL == 0 for a return value in an
489 assertion.
490 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
491 * explow.c (promote_function_mode, promote_decl_mode): New.
492 (promote_mode): Keep only the FOR_CALL == 0 case.
493 * combine.c (setup_incoming_promotion): Remove test of
494 promote_function_args. Use promote_function_mode.
495 * stmt.c (expand_value_return): Use promote_decl_mode.
496 (expand_decl): Use promote_decl_mode.
497
498 * expr.c (store_constructor): Use promote_decl_mode. Remove
499 now write-only variable unsignedp.
500 (expand_expr_real_1): Use promote_decl_mode.
501 * expr.h (promote_function_mode, promote_decl_mode): New.
502 (promote_mode): Remove last argument.
503 * function.c (assign_temp): Drop last argument of promote_mode.
504 (assign_parm_find_data_types): Use promote_function_mode.
505 (assign_parm_setup_reg): Likewise.
506 (expand_function_end): Use promote_function_mode.
507 * calls.c (initialize_argument_information): Use promote_function_mode.
508 (precompute_arguments): Use promote_mode instead of checking if
509 only PROMOTE_FUNCTION_MODE is defined.
510 (expand_call): When making sibcall decisions, use promote_function_mode.
511 Below, remove an if for targetm.calls.promote_function_return and
512 and use promote_function_mode.
513 (emit_library_call_value_1): Use promote_function_mode, fix bug
514 where promote_mode was passed FOR_CALL == 0 for a return value in an
515 assertion.
516 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
517 * explow.c (promote_function_mode, promote_decl_mode): New.
518 (promote_mode): Keep only the FOR_CALL == 0 case.
519 * combine.c (setup_incoming_promotion): Remove test of
520 promote_function_args. Use promote_function_mode.
521 * stmt.c (expand_value_return): Use promote_decl_mode.
522 (expand_decl): Use promote_decl_mode.
523
524 * explow.c (promote_function_mode): Just call the target hook.
525 * targhooks.c (default_promote_function_mode,
526 default_promote_function_mode_always_promote): New.
527 * targhooks.h (default_promote_function_mode,
528 default_promote_function_mode_always_promote): Declare.
529 * target.h (promote_function_args, promote_function_return): Remove.
530 (promote_function_mode): New.
531 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
532 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
533 (TARGET_PROMOTE_FUNCTION_MODE): New.
534 (TARGET_CALLS): Adjust.
535 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
536 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
537
538 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
539 * config/s390/s390.c (s390_promote_function_mode): ... here,
540 with pointer handling.
541 (TARGET_PROMOTE_FUNCTION_MODE): Define.
542 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
543
544 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
545 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
546 with pointer handling.
547 (TARGET_PROMOTE_FUNCTION_MODE): Define.
548 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
549
550 * config/sh/sh-protos.h (sh_promote_function_mode): New.
551 * config/sh/sh.c (sh_promote_function_mode): New.
552 (TARGET_PROMOTE_FUNCTION_MODE): Define.
553 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
554
555 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
556 * config/cris/cris.c (cris_promote_function_mode): ... here.
557 (TARGET_PROMOTE_FUNCTION_MODE): Define.
558 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
559
560 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
561 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
562 (TARGET_PROMOTE_FUNCTION_MODE): Define.
563 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
564
565 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
0589e07d
UB
566 * config/arm/arm.c (arm_promote_function_mode): ... here, without
567 complex type handling.
cde0f3fd
PB
568 (TARGET_PROMOTE_FUNCTION_MODE): Define.
569 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
570
571 * config/pa/pa.c (pa_promote_function_mode): New.
572 (TARGET_PROMOTE_FUNCTION_MODE): Define.
573 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
574
575 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
576 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
577 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
578 * config/xtensa/xtensa.c: Likewise.
579 * config/stormy16/stormy16.c: Likewise.
580 * config/iq2000/iq2000.c: Likewise.
581 * config/rs6000/rs6000.c: Likewise.
582 * config/picochip/picochip.c: Likewise.
583 * config/arc/arc.c: Likewise.
584 * config/mcore/mcore.c: Likewise.
585 * config/score/score.c: Likewise.
586 * config/mips/mips.c: Likewise.
587 * config/bfin/bfin.c: Likewise.
588 * config/ia64/ia64.c: Likewise (disabled though).
589
590 * config/frv/frv.h: Remove pointless remark.
591
592 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
593 TARGET_PROMOTE_FUNCTION_ARGS,
594 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
595 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
596
3cf0e270
SP
5972009-08-01 Sebastian Pop <sebastian.pop@amd.com>
598
599 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
600 -floop-parallelize-all.
601 * toplev.c (process_options): Rename flag_graphite_force_parallel to
602 flag_loop_parallelize_all.
603 * tree-ssa-loop.c (gate_graphite_transforms): Same.
604 * graphite.c (graphite_transform_loops): Same.
605 * common.opt: Same.
606 * graphite-poly.c (apply_poly_transforms): Same.
607
6f7b8b70
RE
6082009-07-31 Richard Earnshaw <rearnsha@arm.com>
609
610 PR tree-optimization/40914
611 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
612 if set, then check the delta field of the PMF record.
613 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
614 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
615 call is stored in the delta.
616
17320477
AN
6172009-07-31 Adam Nemet <anemet@caviumnetworks.com>
618
619 * config/mips/mips.md (*clear_upper32_dext): New pattern.
620
e61c6562
UB
6212009-07-31 Uros Bizjak <ubizjak@gmail.com>
622
623 * config/i386/bsd.h (ASM_BYTE): New define.
624 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
625 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
626 .byte. Use fputs or putc instead of fprintf where appropriate.
627 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
628 fputs or putc instead of fprintf where appropriate.
629 * config/i386/i386elf.h: Ditto.
630 * config/i386/sysv4.h: Ditto.
631
632 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
633 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
634 (*tls_global_dynamic_64): Ditto.
635
ea2002ba
CB
6362009-07-31 Christian Bruel <christian.bruel@st.com>
637
638 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
639
17eb4921
RR
6402009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
641
642 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
643 Remove dead code for MINUS.
644
23865616
AG
6452009-07-31 Anthony Green <green@moxielogic.com>
646
647 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
648 $r12 in prologue.
649 (moxie_expand_epilogue): Ditto for epilogue.
650 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
651 incoming arguments.
652 (moxie_function_arg): Ditto.
653 (moxie_pass_by_reference): Ditto.
654 (moxie_arg_partial_bytes): Ditto.
655 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
656 (FUNCTION_ARG_ADVANCE) Ditto.
657 (REG_PARM_STACK_SPACE) Ditto.
658 (FUNCTION_ARG_REGNO_P) Dito.
659
660 * config.gcc: Add moxie linux config support.
661 * gcc/config/moxie/uclinux.h: New file.
662
20e19db4
DD
6632009-07-31 DJ Delorie <dj@redhat.com>
664
665 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
666 (UNSPECV_SP_SWITCH_E): New.
667 (sp_switch_1): Change to an unspec.
668 (sp_switch_2): Change to an unspec. Don't use post-inc when we
669 replace $r15.
670 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
671 reference the new stack's address
672
204b560f
SP
6732009-07-30 Sebastian Pop <sebastian.pop@amd.com>
674
675 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
676 graphite-clast-to-gimple.o, graphite-dependences.o,
677 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
678 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
679 (graphite-blocking.o,
680 graphite-clast-to-gimple.o, graphite-dependences.o,
681 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
682 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
683 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
684 * cfgloop.h (struct loop): Add can_be_parallel field.
685 * common.opt (fgraphite-identity): Moved up.
686 (fgraphite-force-parallel): New flag.
687 * graphite.c: Rewrite.
688 * graphite.h: Rewrite.
689 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
690 after Graphite.
691 * toplev.c (graphite_out_file): New file descriptor.
692 (graphite_in_file): New.
693 (process_options): flag_graphite_force_parallel cannot be used without
694 Graphite.
695 * tree-ssa-loop.c: Include toplev.h.
696 (gate_graphite_transforms): Enable flag_graphite for
697 flag_graphite_force_parallel.
698
2abae5f1
SP
6992009-07-30 Sebastian Pop <sebastian.pop@amd.com>
700
701 * ChangeLog.graphite: New.
702 * graphite-blocking.c: New.
703 * graphite-clast-to-gimple.c: New.
704 * graphite-clast-to-gimple.h: New.
705 * graphite-dependences.c: New.
706 * graphite-dependences.h: New.
707 * graphite-interchange.c: New.
708 * graphite-poly.c: New.
709 * graphite-poly.h: New.
710 * graphite-ppl.c: New.
711 * graphite-ppl.h: New.
712 * graphite-scop-detection.c: New.
713 * graphite-scop-detection.h: New.
714 * graphite-sese-to-poly.c: New.
715 * graphite-sese-to-poly.h: New.
716 * sese.c: New.
717 * sese.h: New.
718
e7c705bb
SP
7192009-07-30 Sebastian Pop <sebastian.pop@amd.com>
720
721 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
722 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
723
765deab7
SP
7242009-07-30 Sebastian Pop <sebastian.pop@amd.com>
725
726 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
727 (scev_is_linear_expression): Return false if the evolution is not
728 affine multivariate.
729
ed91d661
SP
7302009-07-30 Sebastian Pop <sebastian.pop@amd.com>
731
732 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
733 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
734
a37d995a
SP
7352009-07-30 Sebastian Pop <sebastian.pop@amd.com>
736
737 * tree-data-ref.c (debug_data_references): New.
738 (debug_data_reference): New.
739 * tree-data-ref.h (debug_data_references): Declared.
740 (debug_data_reference): Declared.
741
ae5b9860
SP
7422009-07-30 Sebastian Pop <sebastian.pop@amd.com>
743
744 * tree-data-ref.c (stmt_simple_memref_p: Removed.
745 * tree-data-ref.h (scop_p): Removed.
746 (struct data_reference): Remove field scop.
747 (DR_SCOP): Removed.
748 (stmt_simple_memref_p): Removed.
749
8e74b397
SP
7502009-07-30 Sebastian Pop <sebastian.pop@amd.com>
751
752 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
753 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
754 basic block empty.
755
109e0d57
SP
7562009-07-30 Sebastian Pop <sebastian.pop@amd.com>
757
758 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
759
66a7961b
SP
7602009-07-30 Sebastian Pop <sebastian.pop@amd.com>
761
762 * doc/invoke.texi (-fgraphite-identity): Documented.
763
52bdd655
SP
7642009-07-30 Sebastian Pop <sebastian.pop@amd.com>
765
766 * tree-scalar-evolution.c: Fix comment.
767 (instantiate_scev_1): Return unknow from scev instantiation if the
768 result is not above instantiate_below.
769
42e6eec5
SP
7702009-07-30 Sebastian Pop <sebastian.pop@amd.com>
771
772 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
773 static anymore. Instantiate the symbols that may have been introduced
774 by chrec_apply.
775 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
776 Declared.
777
77806925
DD
7782009-07-30 DJ Delorie <dj@redhat.com>
779
780 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
781 .vliw directive to VLIW sections.
782
6efbd53f
RW
7832009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
784
785 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
786 New variables.
787 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
788 (AUTOHEADER): New variable.
789 ($(srcdir)/cstamp-h.in): Use it.
790
29e6733c
MM
7912009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
792 Pat Haugen <pthaugen@us.ibm.com>
793 Revital Eres <ERES@il.ibm.com>
794
795 * config/rs6000/vector.md (VEC_F): Add VSX support.
796 (VEC_A): Ditto.
797 (VEC_N): Ditto.
798 (mov<mode>): Ditto.
799 (vector_load_<mode>): Ditto.
800 (vector_store_<mode>): Ditto.
801 (vector GPR move split): Ditto.
802 (vec_reload_and_plus_<mptrsize>): Ditto.
803 (vec_reload_and_reg_<mptrsize>): Ditto.
804 (add<mode>3): Ditto.
805 (sub<mode>3): Ditto.
806 (mul<mode>3): Ditto.
807 (neg<mode>2): Ditto.
808 (abs<mode>2): Ditto.
809 (smin<mode>3): Ditto.
810 (smax<mode>3): Ditto.
811 (vector_eq<mode>): Ditto.
812 (vector_gt<mode>): Ditto.
813 (vector_ge<mode>): Ditto.
814 (vector_gtu<mode>): Ditto.
815 (vector_select_<mode>_uns): Ditto.
816 (vector_eq_<mode>_p): Ditto.
817 (vector_gt_<mode>_p): Ditto.
818 (vector_ge_<mode>_p): Ditto.
819 (vector_gtu_<mode>_p): Ditto.
820 (cr6_test_for_zero): Ditto.
821 (cr6_test_for_zero_reverse): Ditto.
822 (cr6_test_for_lt): Ditto.
823 (cr6_test_for_lt_reverse): Ditto.
824 (xor<mode>3): Ditto.
825 (ior<mode>3): Ditto.
826 (and<mode>3): Ditto.
827 (one_cmpl<mode>2): Ditto.
828 (nor<mode>2): Ditto.
829 (andc<mode>2): Ditto.
830 (float<VEC_int<mode>2): Ditto.
831 (unsigned_float<VEC_int><mode>2): Ditto.
832 (fix_trunc<mode><VEC_int>2): Ditto.
833 (fixuns_trunc<mode><VEC_int>2): Ditto.
834 (vec_init<mode>):
835 (vec_set<mode>): Ditto.
836 (vec_extract<mode>): Ditto.
837 (vec_interleave_highv4sf): Ditto.
838 (vec_interleave_lowv4sf): Ditto.
839 (vec_realign_load_<mode>): Ditto.
840 (vec_shl_<mode>): Ditto.
841 (vec_shr_<mode>): Ditto.
842 (div<mode>3): New patterns for VSX.
843 (vec_interleave_highv2df): Ditto.
844 (vec_interleave_lowv2df): Ditto.
845 (vec_pack_trunc_v2df): Ditto.
846 (vec_pack_sfix_trunc_v2df): Ditto.
847 (vec_pack_ufix_trunc_v2df): Ditto.
848 (vec_unpacks_hi_v4sf): Ditto.
849 (vec_unpacks_lo_v4sf): Ditto.
850 (vec_unpacks_float_hi_v4si): Ditto.
851 (vec_unpacku_float_lo_v4si): Ditto.
852 (vec_unpacku_float_hi_v4si): Ditto.
853 (vec_unpacks_float_lo_v4si): Ditto.
854 (movmisalign<mode>): Ditto.
855 (vector_ceil<mode>2): New patterns for vectorizing math library.
856 (vector_floor<mode>2): Ditto.
857 (vector_btrunc<mode>2): Ditto.
858 (vector_copysign<mode>3): Ditto.
859
860 * config/rs6000/predicates.md (easy_vector_constant_msb): New
e61c6562 861 predicate for setting the high bit in each word, used for copysign.
29e6733c
MM
862
863 * config/rs6000/ppc-asm.h (f19): Whitespace.
864 (f32-f63): Define if VSX.
865 (v0-v31): Define if Altivec.
866 (vs0-vs63): Define if VSX.
867
868 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
869
870 * config/rs6000/power7.md: New file, provide tuning parameters for
871 -mcpu=power7.
872
e61c6562 873 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
29e6733c
MM
874 (rs6000_cpu_cpp_builtins): Ditto.
875 (altivec_overloaded_builtins): Ditto.
876 (altivec_resolve_overloaded_builtin): Ditto.
877
878 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
879 debug switch to disable vectorizing simple math builtin
880 functions.
881
882 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
883 Vectorize simple math builtin functions.
884 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
885 hook to vectorize math builtins.
886 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
887 (rs6000_builtin_conversion): Add VSX/power7 support.
888 (rs6000_builtin_vec_perm): Ditto.
889 (vsplits_constant): Add support for loading up a vector constant
890 with just the high bit set in each part.
891 (rs6000_expand_vector_init): Add VSX/power7 support.
892 (rs6000_expand_vector_set): Ditto.
893 (rs6000_expand_vector_extract): Ditto.
894 (rs6000_emit_move): Ditto.
895 (bdesc_3arg): Ditto.
896 (bdesc_2arg): Ditto.
897 (bdesc_1arg): Ditto.
898 (rs6000_expand_ternop_builtin): Ditto.
899 (altivec_expand_builtin): Ditto.
900 (rs6000_expand_unop_builtin): Ditto.
901 (rs6000_init_builtins): Ditto.
902 (altivec_init_builtins): Ditto.
903 (builtin_function_type): Ditto.
904 (rs6000_common_init_builtins): Ditto.
905 (rs6000_handle_altivec_attribute); Ditto.
906 (rs6000_mangle_type): Ditto.
907 (rs6000_vector_mode_supported_p): Ditto.
908 (rs6000_mode_dependent_address): Altivec addresses with AND -16
909 are mode dependent.
910
911 * config/rs6000/vsx.md: New file for VSX support.
912
913 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
914 identifing values with just the most significant bit set.
915 (enum rs6000_builtins): Add builtins for VSX. Add simple math
916 vectorized builtins.
917
918 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
919 (UNSPEC_VRFIM): Delete.
920 (splitter for loading up vector with most significant bit): New
921 splitter for vectorizing copysign.
922 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
923 vectorizing simple math functions.
e61c6562 924 (altivec_vrfip): Add support for vectorizing simple math functions.
29e6733c
MM
925 (altivec_vrfim): Ditto.
926 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
927
928 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
929 (power7.md, vsx.md): Include for power7 support.
930 (copysigndf3): Use VSX instructions if -mvsx.
931 (negdf2_fpr): Ditto.
932 (absdf2_fpr): Ditto.
933 (nabsdf2_fpr): Ditto.
934 (adddf3_fpr): Ditto.
935 (subdf3_fpr): Ditto.
936 (muldf3_fpr): Ditto.
937 (divdf3_fpr): Ditto.
938 (fix_truncdfdi2_fpr): Ditto.
939 (cmpdf_internal1): Ditto.
940 (fred, fred_fpr): Convert into expander/insn to add VSX support.
941 (btruncdf2, btruncdf2_fpr): Ditto.
942 (ceildf2, ceildf2_fpr): Ditto.
943 (floordf2, floordf2_fpr): Ditto.
944 (floatdidf2, floatdidf2_fpr): Ditto.
945 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
946 (fmsubdf4_fpr): Ditto.
947 (fnmadddf4_fpr_1): Ditto.
948 (fnmadddf4_fpr_2): Ditto.
949 (fnmsubdf4_fpr_1): Ditto.
950 (fnmsubdf4_fpr_2): Ditto.
951 (fixuns_truncdfdi2): Add expander for VSX support.
952 (fix_truncdfdi2): Ditto.
953 (fix_truncdfsi2): Ditto.
954 (ftruncdf2): Ditto.
955 (btruncsf2): Whitespace.
956 (movdf_hardfloat32): Add support for VSX registers.
957 (movdf_softfloat32): Ditto.
958 (movdf_hardfloat64): Ditto.
959 (movdf_hardfloat64_mfpgpr): Ditto.
960 (movdf_softfloat64): Ditto.
961 (movti splitters): Add check for vector registers supporting
962 TImode in the future.
963 (bpermd): Add power7 bpermd instruction.
964
965 * config/rs6000/altivec.h (vec_div): Define if VSX.
966 (vec_mul): Ditto.
967 (vec_msub): Ditto.
968 (vec_nmadd): Ditto.
969 (vec_nearbyint): Ditto.
970 (vec_rint): Ditto.
971 (vec_sqrt): Ditto.
e61c6562
UB
972 (all predicates): Use the generic builtin function, and not the V4SF
973 specific function so that the predicates will work with VSX's V2DF.
29e6733c
MM
974 (vec_all_*): Ditto.
975 (vec_any_*): Ditto.
976
977 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
978 Document new VSX functions and types.
979
980 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
981 switches.
982
983 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
984 "wa", and "j" constraints. Modify "v" to talk about Altivec
985 instead of just vector.
986
f5045c96
AM
9872009-07-30 Andrew MacLeod <amacleod@redhat.com>
988
989 PR debug/26475
990 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
991 location for phi arguments.
992 (rewrite_update_phi_arguments): Find locations for reaching defs.
993 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
994 Add location to add_phi_arg calls.
995 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
996 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
997 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
998 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
999 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
1000 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
1001 * tree-phinodes.c (make_phi_node): Initialize location.
1002 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
1003 (add_phi_arg): Add location parameter.
1004 (remove_phi_arg_num): Move location when moving phi argument.
1005 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
1006 location.
1007 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
1008 slpeel_update_phi_nodes_for_guard1,
1009 slpeel_update_phi_nodes_for_guard2,
1010 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
1011 vect_loop_versioning): Set locations.
1012 * tree-parloops.c (create_phi_for_local_result,
1013 transform_to_exit_first_loop, create_parallel_loop): Add locations.
1014 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
1015 * tree-vect-loop.c (get_initial_def_for_induction,
1016 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
1017 locations.
1018 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
1019 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
1020 (gimple_phi_arg_set_location): New. Set locus.
1021 (gimple_phi_arg_has_location): New. Check for locus.
1022 (redirect_edge_var_map_location): New. Return locus from var_map.
1023 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
1024 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
1025 combining PHI arguments.
1026 (cond_store_replacement): Set location.
1027 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
1028 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
1029 scop_add_exit_phis_edge): Add locations.
1030 * tree-cfgcleanup.c (remove_forwarder_block,
1031 remove_forwarder_block_with_phi): Add locations.
1032 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
1033 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
1034 locations.
1035 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
1036 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
1037 flush_pending_stmts): Add source location.
1038 * lambda-code.c (perfect_nestify): Maintain location stack with argument
1039 stack to preserve locations.
1040 * tree-vect-stmts.c (vectorizable_load): Add location.
1041 * tree-inline.c (copy_phis_for_bb): Copy locus.
1042 (setup_one_parameter): Add call locus to inlined parameter stmts.
1043 (initialize_inlined_parameters): Pass in call location as parameter
1044 assignment locus.
1045 (tree_function_versioning): Pass location to setup_one_parameter.
1046 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
1047 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
1048 copy and edge lists.
1049 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
1050 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
1051 locus parameter and override the stmt default if provided.
1052 (new_elim_graph, clear_elim_graph, delete_elim_graph,
1053 elim_graph_add_edge, elim_graph_remove_succ_edge,
1054 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
1055 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
1056 eliminate_phi): Add locus info in elimination graph for each edge and
1057 value copy.
1058 (insert_backedge_copies): Copy locus if present.
1059 * tree-flow.h (struct _edge_var_map): Add locus field.
1060 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
1061 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
1062 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
1063 locations.
1064 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
1065
2d4b90b1
MJ
10662009-07-30 Martin Jambor <mjambor@suse.cz>
1067
1068 PR tree-optimization/40570
1069 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
1070 use inlining loops.
1071
08dab97a
RL
10722009-07-30 Razya Ladelsky <razya@il.ibm.com>
1073
1074 * ssa-loop-manip.c: Include langhooks.h.
1075 (rewrite_phi_with_iv): New.
1076 (rewrite_all_phi_nodes_with_iv): New.
1077 (canonicalize_loop_ivs): Move here from tree-parloops.c.
1078 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
1079 * tree-parloops.c (loop_parallel_p): Move out all conditions
1080 except dependency check.
1081 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
1082 (gen_parallel_loop): Call canonicalize_loop_ivs without
1083 reduction_list argument.
1084 (build_new_reduction): New.
1085 (gather_scalar_reductions): New.
1086 (try_get_loop_niter): New.
1087 (try_create_reduction_list): New.
1088 (parallleize_loops): Change the parallel conditions check.
1089 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1090 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
1091
88c2fd3d
DK
10922009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
1093
1094 * opt-functions.awk (opt_args): Allow argument to be enclosed in
1095 curly braces.
1096 * doc/options.texi (Option properties): Mention new quoting syntax.
1097
5ea8f977
DR
10982009-07-29 Douglas B Rupp <rupp@gnat.com>
1099
1100 * config/alpha/alpha.c (alpha_start_function):
1101 Handle VMS_DEBUG_MAIN_POINTER
1102 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
1103 * doc/invoke.texi: Document -mdebug-main switch.
1104
9b2a5ef7
RH
11052009-07-29 Richard Henderson <rth@redhat.com>
1106
1107 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
1108 (cgraph_create_edge_including_clones): Likewise.
1109 * tree-inline.c (copy_bb): Operate on the correct edges
1110 when updating the callgraph.
1111
71cd2220
DR
11122009-07-29 Douglas B Rupp <rupp@gnat.com>
1113
1114 * config/alpha/vms-cc.c: Deleted.
1115 * config/alpha/vms-ld.c: Deleted.
1116 * config/alpha/t-vms64: Moved to config/vms
1117 * config/alpha/vms-crt0-64.c: Moved to config/vms
1118 * config/alpha/vms-crt0.c: Moved to config/vms
1119 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
1120 * config/alpha/vms-psxcrt0.c: Moved to config/vms
1121 * config/alpha/xm-vms.h: Moved to config/vms
1122 * config/alpha/x-vms: Moved to config/vms
1123 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
1124 config/vms/t-vms.
1125 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
1126 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
1127 (version): Set.
1128 * config/vms/t-vms64: Moved here from config/alpha
1129 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
1130 (argc,argv,envp): Enforce 32bit malloc'ing.
1131 * config/vms/vms-psxcrt0-64.c: Likewise.
1132 * config/vms/vms-crt0.c: Moved here from config/alpha.
1133 * config/vms/vms-psxcrt0.c: Likewise.
1134 * config/vms/vms-crtl-64.h: New file.
1135 * config/vms/vms-crtl.h: New file.
1136 * config/vms/vms.opt: New file.
1137 * config/vms/xm-vms64.h: New file.
1138 * config/vms/xm-vms.h: Moved here from config/alpha.
1139 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
1140 Set.
1141 * config/vms/x-vms: Moved here from config/alpha.
1142 (version, VMS_EXTRA_PARTS): Moved to t-vms.
1143 (vms-ld.o, vms-cc.o): Removed.
1144 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
1145
82b75b46
DR
11462009-07-29 Douglas B Rupp <rupp@gnat.com>
1147
1148 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
1149 correct stack (obvious VMS fix).
1150
c2cffdc8
DR
11512009-07-29 Douglas B Rupp <rupp@gnat.com>
1152
1153 * dwarf2out.c (output_file_names): Output VMS style file name, size,
1154 date, version info if VMS_DEBUGGING_INFO defined.
1155 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
1156 size, date calculating code moved here.
1157
0244b03f
PB
11582009-07-29 Paul Brook <paul@codesourcery.com>
1159
1160 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
1161 do_push/do_pop.
1162
bc4eac6d
UB
11632009-07-29 Uros Bizjak <ubizjak@gmail.com>
1164
1165 PR target/40577
1166 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
1167 to DImode when generating insq_le insn.
1168
6f1595d3
DR
11692009-07-28 Douglas B Rupp <rupp@gnat.com>
1170
1171 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
1172 New macro set for VMS_DEBUGGGING_INFO.
1173 (AT_string_form): Use it.
1174
820ca276
DD
11752009-07-28 DJ Delorie <dj@redhat.com>
1176
1177 * config/mep/mep.c (vtext_section): New.
1178 (vftext_section): New.
1179 (ftext_section): New.
1180 (mep_select_section): Add support for functions.
1181 (mep_unique_section): Likewise.
1182 (mep_asm_init_sections): Likewise.
3fb0a660 1183 (mep_encode_section_info): Remove it from here.
820ca276
DD
1184
1185 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1186
e2121f17
PB
11872009-07-28 Paolo Bonzini <bonzinI@gnu.org>
1188
1189 * tree.h (TREE_DEPRECATED): Document it is used for types too.
1190 (TYPE_VECTOR_OPAQUE): Use default_def_flag
1191
dde08f9b
DR
11922009-07-28 Douglas B Rupp <rupp@gnat.com>
1193
1194 * dwarf2out.c (output_file_names): Test new macro
1195 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
1196 (add_comp_dir_attribute): Likewise.
1197
032502c2
KT
11982009-07-28 Kai Tietz <kai.tietz@onevision.com>
1199
1200 * config/i386/mingw-w64.h (LINK_SPEC): Add
1201 separating space between commands.
1202
b29c2ffd
JH
12032009-07-28 Jan Hubicka <jh@suse.cz>
1204
1205 PR tree-optimization/40759
1206 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
1207 for renaming.
1208
683a1be6
DD
12092009-07-27 DJ Delorie <dj@redhat.com>
1210
1211 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
1212 types are dword-aligned.
1213 (mep_expand_va_start): Likewise.
1214
cf157324 12152009-07-27 Olivier Hainque <hainque@adacore.com>
bc4eac6d 1216 Douglas B Rupp <rupp@gnat.com>
cf157324
OH
1217
1218 * convert.c (convert_to_pointer): Don't assume the target
1219 pointer type is POINTER_SIZE long. Fetch its precision instead.
1220
d4d798a3
DR
12212009-07-27 Douglas B Rupp <rupp@gnat.com>
1222
1223 * system.h (fopen): Undefine if macro.
1224
5823ade1
JJ
12252009-07-27 Jakub Jelinek <jakub@redhat.com>
1226
1227 * dwarf2out.c (output_cfi_p): Removed.
1228 (output_cfis): New function.
1229 (output_fde): New function, split from output_call_frame_info.
1230 (output_call_frame_info): Use it.
1231 (dwarf2out_switch_text_section): Use output_cfis.
1232
648abd76
KT
12332009-07-24 Kai Tietz <kai.tietz@onevision.com>
1234
1235 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
1236 TARGET_BI_ARCH is specified without enabling SJLJ.
1237 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
1238 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
1239
4b89636e
MP
12402009-07-26 Mikael Pettersson <mikpe@it.uu.se>
1241
1242 * arm.md (negdi2): Use DImode if forcing a value into a register.
1243
63827fb8
IR
12442009-07-26 Ira Rosen <irar@il.ibm.com>
1245
1246 PR tree-optimization/40801
1247 * tree-vect-stmts.c (vectorizable_call): Get previous copy
1248 of vector operand from the previous copy of vector statement.
1249 Pass the correct definition type value to
1250 vect_get_vec_def_for_stmt_copy().
1251
db9369bb
JDA
12522009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1253
1254 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
1255 const char ** conversion.
1256
2df77822
DD
12572009-07-25 David Daney <ddaney@caviumnetworks.com>
1258
1259 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
1260 fancy_abort() if !ENABLE_ASSERT_CHECKING.
1261 (gcc_unreachable): Invoke __builtin_unreachable() if
1262 !ENABLE_ASSERT_CHECKING.
1263
1e211590
DD
12642009-07-25 David Daney <ddaney@caviumnetworks.com>
1265
1266 PR rtl-optimization/40445
1267 * emit-rtl.c (next_nonnote_insn_bb): New function.
1268 * rtl.h (next_nonnote_insn_bb): Declare new function.
1269 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
1270 with no successors that is the successor of the ENTRY_BLOCK.
1271 Continue from the top after removing an empty fallthrough block.
1272 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
1273 of next_nonnote_insn.
1274
ba21aba3
DD
12752009-07-25 David Daney <ddaney@caviumnetworks.com>
1276
bc4eac6d 1277 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
ba21aba3 1278
86631ea3
MJ
12792009-07-25 Martin Jambor <mjambor@suse.cz>
1280
1281 * c-common.c (c_common_attribute_table): New element for noclone.
1282 (handle_noclone_attribute): New function. Forward-declare.
1283 * tree-inline.c (tree_versionable_function_p): Check for noclone
1284 attribute.
1285 * doc/extend.texi (Labels as Values): Document need for noclone.
1286 (Function Attributes): Document noclone attribute.
1287
0cf856b7
JJ
12882009-07-25 Jakub Jelinek <jakub@redhat.com>
1289
1290 PR rtl-optimization/34999
1291 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
1292 and dw_fde_switched_cold_to_hot fields.
1293 (output_cfi_p): New function.
1294 (output_call_frame_info): If fde->dw_fde_switched_sections,
1295 output 2 FDEs instead of one with corrupted header.
1296 (dwarf2out_do_cfi_startproc): New function.
1297 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
1298 and fde->dw_fde_switched_cold_to_hot.
1299 (dwarf2out_switch_text_section): Compute
1300 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
1301 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
1302 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
1303 Otherwise, compute fde->dw_fde_switch_cfi.
1304
2a2869d6
CC
13052009-07-24 Cary Coutant <ccoutant@google.com>
1306
1307 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
1308
cbea518e
CC
13092009-07-24 Cary Coutant <ccoutant@google.com>
1310
1311 * cfghooks.c (split_block): Copy discriminator to new block.
1312 * tree-cfg.c (assign_discriminator): Check location of last
1313 instruction in block as well as first.
1314
87da3843
UB
13152009-07-24 Uros Bizjak <ubizjak@gmail.com>
1316
1317 * config/i386/linux.c: Use fputs or putc instead of fprintf
1318 where appropriate.
1319 * config/i386/gas.h: Ditto.
1320 * config/i386/x86-64.h: Ditto.
1321 * config/i386/att.h: Ditto.
1322
a22fb74c
AK
13232009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1324
1325 * expmed.c (emit_store_flag): Use a recursive call to optimize the
1326 xor case.
1327
5b9633c8
MJ
13282009-07-24 Martin Jambor <mjambor@suse.cz>
1329
1330 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
1331 (ipa_push_func_to_list_1): Declare.
1332 (ipa_push_func_to_list): New function.
1333
1334 * ipa-prop.c (ipa_push_func_to_list_1): New function.
1335 (ipa_init_func_list): Call ipa_push_func_to_list_1.
1336 (ipa_push_func_to_list): Removed.
1337 (ipa_pop_func_from_list): Clear node_enqueued flag.
1338
ff5b964d
AK
13392009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
1340
1341 * config/s390/s390.c (override_options): Default
1342 max-unrolled-insns to 100 for z10 tuning.
1343
223cf84d
TG
13442009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1345
1346 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
1347 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
1348 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
1349 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
1350 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
1351 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
1352 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
1353
3a802a9e
KT
13542009-07-24 Kai Tietz <kai.tietz@onevision.com>
1355
1356 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
1357 use default set in mingw32.h header.
1358 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
1359 64-bit /mingw/include path.
1360 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
1361 path.
1362
c580edc8
NV
13632009-07-23 Neil Vachharajani <nvachhar@google.com>
1364
1365 PR rtl-optimization/40209
1366 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
1367
0d42d490
UB
13682009-07-23 Uros Bizjak <ubizjak@gmail.com>
1369
1370 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
1371 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
1372 with the rest of string where appropriate. Use fputs or putc
1373 instead of fprintf where appropriate.
1374
a72c65c7
MM
13752009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1376 Pat Haugen <pthaugen@us.ibm.com>
1377 Revital Eres <ERES@il.ibm.com>
1378
1379 * config/rs6000/vector.md: New file. Move most of the vector
1380 expander support here from altivec.md to allow for the VSX vector
1381 unit in the future. Add support for secondary_reload patterns.
1382 Rewrite the patterns for vector comparison, and vector comparison
1383 predicate instructions so that the RTL expresses the desired
1384 behavior, instead of using unspec.
1385
1386 * config/rs6000/constraints.md ("f" constraint): Use
1387 rs6000_constraints to hold the precalculated register class.
1388 ("d" constraint): Ditto.
1389 ("wd" constraint): New constraint for VSX.
1390 ("wf" constraint): Ditto.
1391 ("ws" constraint): Ditto.
1392 ("wa" constraint): Ditto.
1393 ("wZ" constraint): Ditto.
1394 ("j" constraint): Ditto.
1395
1396 * config/rs6000/predicates.md (vsx_register_operand): New
1397 predicate for VSX.
1398 (vfloat_operand): New predicate for vector.md.
1399 (vint_operand): Ditto.
1400 (vlogical_operand): Ditto.
1401 (easy_fp_constant): If VSX, 0.0 is an easy constant.
1402 (easy_vector_constant): Add VSX support.
1403 (altivec_indexed_or_indirect_operand): New predicate for
1404 recognizing Altivec style memory references with AND -16.
1405
1406 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
1407 for vector secondary reload support.
87da3843
UB
1408 (rs6000_vector_reg_class): Delete, replacing it with
1409 rs6000_constraints.
a72c65c7
MM
1410 (rs6000_vsx_reg_class): Ditto.
1411 (rs6000_constraints): New array to hold the register classes of
1412 each of the register constraints that can vary at runtime.
1413 (builtin_mode_to_type): New static array for builtin function type
1414 creation.
1415 (builtin_hash_table): New static hash table for builtin function
1416 type creation.
1417 (TARGET_SECONDARY_RELOAD): Define target hook.
1418 (TARGET_IRA_COVER_CLASSES): Ditto.
1419 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
0d42d490 1420 registers are 128 bits if VSX memory reference instructions are used.
a72c65c7
MM
1421 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
1422 unit is being used.
1423 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
1424 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
1425 Print several of the scheduling related parameters.
1426 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
1427 rs6000_constraints instead of rs6000_vector_reg_class. Move
1428 -mdebug=reg code to rs6000_debug_reg_global. Add support for
1429 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
1430 Altivec. Add VSX support. Setup for secondary reload support on
1431 Altivec/VSX registers.
1432 (rs6000_override_options): Make power7 set the scheduling groups
1433 like the power5. Add support for new debug switches to override
1434 the scheduling defaults. Temporarily disable -mcpu=power7 from
1435 setting -mvsx. Add support for debug switches -malways-hint,
1436 -msched-groups, and -malign-branch-targets.
1437 (rs6000_buitlin_conversion): Add support for returning unsigned
1438 vector conversion functions to fix regressions due to stricter
1439 type checking.
1440 (rs6000_builtin_mul_widen_even): Ditto.
1441 (rs6000_builtin_mul_widen_odd): Ditto.
1442 (rs6000_builtin_vec_perm): Ditto.
1443 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
1444 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
1445 to zero a register.
1446 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
1447 generated upstream.
1448 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
1449 VSX types for bit operations. Changes to accomidate vector.md.
1450 (bdesc_2arg): Ditto.
1451 (bdesc_1arg): Ditto.
1452 (struct builtin_description_predicates): Rewrite predicate
1453 handling so that RTL describes the operation, instead of passing
1454 the instruction to be used as a string argument.
1455 (bdesc_altivec_preds): Ditto.
1456 (altivec_expand_predicate_builtin): Ditto.
1457 (altivec_expand_builtin): Ditto.
1458 (rs6000_expand_ternop_builtin): Use a switch instead of an if
1459 statement for vsldoi support.
0d42d490 1460 (altivec_expand_ld_builtin): Change to use new names from vector.md.
a72c65c7
MM
1461 (altivec_expand_st_builtin): Ditto.
1462 (paired_expand_builtin): Whitespace changes.
1463 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
1464 builtin_mode_to_type table for secondary reload. Call
1465 builtin_function_type to build random builtin functions.
1466 (altivec_init_builtins): Change to use builtin_function_type to
1467 create builtin function types dynamically as we need them.
1468 (builtin_hash_function): New support for hashing the tree types
1469 for builtin function as we need it, rather than trying to build
0d42d490 1470 all of the trees that we need. Add initial preliminary VSX support.
a72c65c7
MM
1471 (builtin_function_type): Ditto.
1472 (builtin_function_eq): Ditto.
1473 (builtin_hash_struct): Ditto.
1474 (rs6000_init_builtins): Ditto.
1475 (rs6000_common_init_builtins): Ditto.
1476 (altivec_init_builtins): Ditto.
1477 (rs6000_common_init_builtins): Ditto.
1478 (enum reload_reg_type): New enum for simplifing reg classes.
1479 (rs6000_reload_register_type): Simplify register classes into GPR,
0d42d490 1480 Vector, and other registers. Altivec and VSX addresses in reload.
a72c65c7
MM
1481 (rs6000_secondary_reload_inner): Ditto.
1482 (rs6000_ira_cover_classes): New target hook, that returns the
1483 appropriate cover classes, based on -mvsx being used or not.
1484 (rs6000_secondary_reload_class): Add VSX support.
1485 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
1486 (get_vsel_insn): Ditto.
1487 (rs6000_emit_vector_compare): Rewrite vector conditional support
1488 so that where we can, we use RTL operators, instead of blindly use
1489 UNSPEC.
1490 (rs6000_emit_vector_select): Ditto.
1491 (rs6000_emit_vector_cond_expr): Ditto.
0d42d490 1492 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
a72c65c7 1493 (create_TOC_reference): Add -mdebug=addr support.
0d42d490 1494 (emit_frame_save): VSX loads/stores need register indexed addressing.
a72c65c7
MM
1495
1496 * config/rs6000/rs6000.md: Include vector.md.
1497
1498 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
1499
1500 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1501 support for V2DI, V2DF in logical, permute, select operations.
1502
1503 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
1504 switch for vsx/power7.
1505 (-mvsx-scalar-memory): Ditto.
1506 (-mvsx-align-128): Ditto.
1507 (-mallow-movmisalign): Ditto.
1508 (-mallow-df-permute): Ditto.
1509 (-msched-groups): Ditto.
1510 (-malways-hint): Ditto.
1511 (-malign-branch-targets): Ditto.
1512
1513 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
1514 hook instead.
1515 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
1516 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
1517 (rs6000_vector_reg_class): Delete.
1518 (rs6000_vsx_reg_class): Ditto.
1519 (enum rs6000_reg_class_enum): New enum for the constraints that
1520 vary based on target switches.
1521 (rs6000_constraints): New array to hold the register class for all
1522 of the register constraints that vary based on the switches used.
1523 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
1524 (enum rs6000_builtins): Add unsigned varients for the builtin
1525 declarations returned by target hooks for expanding multiplies,
1526 select, and permute operations. Add VSX builtins.
1527 (enum rs6000_builtin_type_index): Add entries for VSX.
1528 (V2DI_type_node): Ditto.
1529 (V2DF_type_node): Ditto.
1530 (unsigned_V2DI_type_node): Ditto.
1531 (bool_long_type_node): Ditto.
1532 (intDI_type_internal_node): Ditto.
1533 (uintDI_type_internal_node): Ditto.
1534 (double_type_internal_node): Ditto.
1535
1536 * config/rs6000/altivec.md (whole file): Move all expanders to
1537 vector.md from altivec.md. Rename insn matching functions to be
1538 altivec_foo.
1539 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
1540 (altivec_vcmp*): Ditto.
1541 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
1542 (VM): New iterator for moves that includes the VSX types.
1543 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
1544 (altivec_vperm_<mode>_uns): New, for unsigned types.
0d42d490 1545 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
a72c65c7
MM
1546 (altivec_eq<mode>): Ditto.
1547 (altivec_gt<mode>): Ditto.
1548 (altivec_gtu<mode>): Ditto.
1549 (altivec_eqv4sf): Ditto.
1550 (altivec_gev4sf): Ditto.
1551 (altivec_gtv4sf): Ditto.
1552 (altivec_vcmpbfp_p): Ditto.
1553
6d53a79f
RE
15542009-07-23 Richard Earnshaw <rearnsha@arm.com>
1555
1e0b18db 1556 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
6d53a79f
RE
1557 unsigned HWI.
1558
33ecc126
UB
15592009-07-23 Uros Bizjak <ubizjak@gmail.com>
1560
1561 PR target/40832
011a3198 1562 * config/i386/i386.c (output_387_ffreep): Rewrite to use
33ecc126
UB
1563 ASM_SHORT instead of .word.
1564 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
1565 instead of .word in asm template.
1566
db1a8d98
VM
15672009-07-22 Vladimir Makarov <vmakarov@redhat.com>
1568
1569 PR target/37488
1570 * ira-lives.c (bb_has_abnormal_call_pred): New function.
1571 (process_bb_node_lives): Use it.
1572
1573 * ira.c (setup_cover_and_important_classes): Don't setup
1574 ira_important_class_nums. Add cover classes to the end of
1575 important classes.
011a3198
UB
1576 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
1577 New.
db1a8d98
VM
1578 (find_reg_class_closure): Use reorder_important_classes.
1579
1580 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
1581
1582 * config/i386/i386.c (i386_ira_cover_classes): New function.
1583 (TARGET_IRA_COVER_CLASSES): Redefine.
1584
1585 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
1586 importance of order of cover classes in the array.
1587
cae63f88
DN
15882009-07-22 Diego Novillo <dnovillo@google.com>
1589
1590 * tree-pass.h (TDF_EH): Define.
1591 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
1592 contains TDF_EH, print the EH region number holding GS.
1593 * tree-dump.c (dump_options): Add "eh".
1594 * doc/invoke.texi: Document it.
1595
61ed6392
DK
15962009-07-22 Doug Kwan <dougkwan@google.com>
1597
1598 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
1599
a8338640
MM
16002009-07-22 Michael Matz <matz@suse.de>
1601
1602 PR tree-optimization/35229
1603 PR tree-optimization/39300
1604
1605 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
1606 (inhibit_phi_insertion): New function.
1607 (insert_into_preds_of_block): Call it for REFERENCEs.
1608 (init_pre): Initialize and finalize scalar evolutions.
1609 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
1610
1a66936f
UB
16112009-07-22 Uros Bizjak <ubizjak@gmail.com>
1612
1613 * config/i386/predicates.md (zero_extended_scalar_load_operand):
1614 Use CONST_VECTOR_NUNITS to determine number of elements.
1615
4fe6dea8
AK
16162009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
1617
1618 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
1619 (U, W): Constraints are now deprecated and will be removed if we
1620 run out of letters.
1621 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
1622 the file.
1623 ("prefetch"): Add the stcmh instruction for prefetching.
1624 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
1625 changes.
1626 (s390_short_displacement): Return always true if compiling for
1627 machines not providing the long displacement facility.
1628 (s390_mem_constraint): Support the new constraint letter Z.
1629 (s390_check_qrst_address): New function.
1630
072ebd49
DD
16312009-07-21 DJ Delorie <dj@redhat.com>
1632
1633 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
1634 alone too.
1635
4afe7ad7
JM
16362009-07-21 Jason Merrill <jason@redhat.com>
1637
1638 * c-common.c (max_tinst_depth): Increase default to 1024.
1639
848e6317
UB
16402009-07-21 Uros Bizjak <ubizjak@gmail.com>
1641
1642 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
1643 (vec_unpacku_float_lo_v4si): Ditto.
1644
54e86f6b
UB
16452009-07-21 Uros Bizjak <ubizjak@gmail.com>
1646
1647 PR target/40811
1648 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
1649 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
1650 (builtin_description): Add __builtin_ia32_cvtudq2ps.
1651 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
1652
4a2b7f24
JJ
16532009-07-21 Jakub Jelinek <jakub@redhat.com>
1654
1655 PR tree-optimization/40813
1656 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
1657 it.
1658
a1516d08
KK
16592009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
1660
1661 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
1662 with a NOP_EXPR if needed.
1663
cba146eb
PB
16642009-07-21 Paul Brook <paul@codesourcery.com>
1665
1666 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
1667 Terminate debug dump with newline.
1668
ef8d9a0e
JDA
16692009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1670
1671 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
1672 Cast "1" to unsigned HOST_WIDE_INT.
1673 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
1674 deposit length to the maximum length - lsb. Extend length if
1675 HOST_BITS_PER_WIDE_INT is 32.
1676
d48e9cea
OR
16772009-07-20 Olatunji Ruwase <tjruwase@google.com>
1678
1679 * cgraph.h (constant_pool_htab): New function.
1680 (constant_descriptor_tree): Move from varasm.c.
1681 * varasm.c (constant_pool_htab): New function.
1682 (constant_descriptor_tree): Move to cgraph.h.
1683
9c8e65c3
OR
16842009-07-20 Olatunji Ruwase <tjruwase@google.com>
1685
848e6317 1686 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9c8e65c3 1687
3e014341
SZ
16882009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
1689
1690 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
1691 $(VARRAY_H).
1692
d0763469
XDL
16932009-07-20 Xinliang David Li <davidxl@google.com>
1694
1695 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
1696
752fd2a8
AN
16972009-07-20 Adam Nemet <anemet@caviumnetworks.com>
1698
1699 * config/mips/mips.md (move_type): Add arith.
1700 (type): Handle arith.
1701 (zero_extendsidi2): Rename this into ...
1702 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
1703 (zero_extendsidi2): New expander.
1704 (*zero_extendsidi2_dext): New pattern.
1705
621114bc
NC
17062009-07-20 Nick Clifton <nickc@redhat.com>
1707
1708 * config.gcc (mips64-*-*): Add definition of tm_defines in order
1709 to set MIPS_ABI_DEFAULT.
1710 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
1711
e338758d
JJ
17122009-07-20 Jakub Jelinek <jakub@redhat.com>
1713
38027156
JJ
1714 * tree-object-size.c (addr_object_size): Handle unions with
1715 array in it as last field of structs in __bos (, 1) as __bos (, 0).
1716
e338758d
JJ
1717 PR tree-optimization/40792
1718 * tree.c (build_function_type_skip_args): Remove bogus assert.
1719
08ad1d6d 17202009-07-20 Jan Hubicka <jh@suse.cz>
848e6317 1721 Martin Jambor <mjambor@suse.cz>
08ad1d6d
JH
1722
1723 * cgraph.h (combined_args_to_skip): New field.
1724 * cgraph.c (cgraph_create_virtual_clone): Properly handle
1725 combined_args_to_skip and args_to_skip.
1726 * tree-inline.c (update_clone_info): New function.
1727 (tree_function_versioning): Call update_clone_info.
1a66936f
UB
1728 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
1729 functions.
08ad1d6d
JH
1730 (cgraph_materialize_all_clones): More extensive dumping, working
1731 with combined_args_to_skip rather than args_to_skip.
1732
4bbe8262
IR
17332009-07-20 Ira Rosen <irar@il.ibm.com>
1734
1735 * tree-vectorizer.h (vectorizable_condition): Add parameters.
1736 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
1737 (get_initial_def_for_reduction): Likewise.
1738 (vectorizable_reduction): Skip the check of first operand in case
1739 of COND_EXPR. Add check that it is outer loop vectorization if
1740 nested cycle was detected. Call vectorizable_condition() for
1741 COND_EXPR. If reduction epilogue cannot be created do not fail for
1742 nested cycles (if it is not double reduction). Assert that there
1743 is only one type in the loop in case of COND_EXPR. Call
1744 vectorizable_condition() to vectorize COND_EXPR.
1745 * tree-vect-stmts.c (vectorizable_condition): Update comment.
1746 Add parameters. Allow nested cycles if called from
1747 vectorizable_reduction(). Use reduction vector variable if provided.
1748 (vect_analyze_stmt): Call vectorizable_reduction() before
1749 vectorizable_condition().
1750 (vect_transform_stmt): Update call to vectorizable_condition().
1751
6a799f6e
CB
17522009-07-20 Christian Bruel <christian.bruel@st.com>
1753
1754 * config/sh/sh.opt (-mfmovd): Resurrect and document.
1755 * doc/invoke.texi (-mfmovd): Likewise.
1756 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
1757
eab09a51
JH
17582009-07-20 Jan Hubicka <jh@suse.cz>
1759
1760 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
1761 when handling SSA name.
1762
a915ab00
JH
17632009-07-19 Jan Hubicka <jh@suse.cz>
1764
1765 PR tree-optimization/40676
1766 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
1767 virtual PHIs in empty BBs.
1768
827f4079
AN
17692009-07-18 Adam Nemet <anemet@caviumnetworks.com>
1770
1771 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
1772 re-expanded the compound use gen_lowpart instead to convert to the
1773 desired mode.
1774
f3ce1088
AN
17752009-07-18 Adam Nemet <anemet@caviumnetworks.com>
1776
1777 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
1778 OUTER_CONST arguments.
1779 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
1780 the new wider mode will be masked off.
1781 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
1782
3e63dd3a
AN
17832009-07-18 Adam Nemet <anemet@caviumnetworks.com>
1784
1785 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
1786 high-order bits are zero.
1787
b641d7fc
AN
17882009-07-18 Adam Nemet <anemet@caviumnetworks.com>
1789
1790 * combine.c (simplify_shift_const_1): Split code to determine
1791 shift_mode into ...
1792 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
1793 new bits shifted in are identical to the old sign bit.
1794
33922890
RG
17952009-07-18 Richard Guenther <rguenther@suse.de>
1796
1797 PR c/40787
1798 * gimplify.c (gimplify_call_expr): Reject code using results from
1799 functions returning void.
1800
1d447995
RS
18012009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
1802
1803 * doc/md.texi: Document the new PowerPC "es" constraint.
1804 Document that "m" can include automodified addresses on this target,
1805 and explain how %U must be used. Extend the "Q" and "Z" documentation
1806 to suggest "es" as well as "m".
1807 * config/rs6000/constraints.md (es): New memory constraint.
1808 (Q, Z): Update strings to match new documentation.
1809
406d1650
RS
18102009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
1811
1812 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
1813 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
1814 * config/rs6000/predicates.md (volatile_mem_operand): Use
1815 offsettable_nonstrict_memref_p.
1816 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
1817 (*floatunssidf2_internal): Likewise.
1818 (*fix_truncdfsi2_internal): Likewise.
1819 (*fix_trunctfsi2_internal): Likewise.
1820
a0ce0e6e
AS
18212009-07-17 Anatoly Sokolov <aesok@post.ru>
1822
1823 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
1824 atmega32u2 devices.
1825 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1826
a406865a
RG
18272009-07-17 Richard Guenther <rguenther@suse.de>
1828
1829 PR c/40401
1830 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
1831 (pass_warn_unused_result): Likewise.
1832 (TODO_set_props): Remove.
1833 * omp-low.c (diagnose_omp_structured_block_errors): Change to
1834 run as a pass.
1835 (pass_diagnose_omp_blocks): Define.
1836 * c-decl.c (pop_file_scope): Do not finalize the CU here.
1837 (c_gimple_diagnostics_recursively): Remove.
1838 (finish_function): Do not call it.
1839 (c_write_global_declarations): Continue after errors.
1840 Finalize the CU here.
1841 * c-gimplify.c (c_genericize): Do not gimplify here.
1842 * c-common.c (c_warn_unused_result): Move ...
1843 * tree-cfg.c (do_warn_unused_result): ... here.
1844 (run_warn_unused_result): New function.
1845 (gate_warn_unused_result): New function.
1846 (pass_warn_unused_result): New pass.
1847 * c-common.h (c_warn_unused_result): Remove.
1848 * flags.h (flag_warn_unused_result): Declare.
1849 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
1850 * opts.c (flag_warn_unused_result): Initialize to false.
1851 * toplev.c (compile_file): Add comment.
1852 * omp-low.c (create_omp_child_function): Do not register
1853 the function with the frontend.
1854 (diagnose_omp_structured_block_errors): Prepare to be
1855 called as optimization pass.
1856 (gate_diagnose_omp_blocks): New function.
1857 (pass_diagnose_omp_blocks): New pass.
1858 * cgraph.h (cgraph_optimize): Remove.
1859 (cgraph_analyze_function): Likewise.
1860 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
1861 * cgraphunit.c (cgraph_lower_function): Lower nested functions
1862 before their parents here.
1863 (cgraph_finalize_function): Not here.
1864 (cgraph_analyze_function): Gimplify functions here.
1865 (cgraph_finalize_compilation_unit): Continue after errors.
1866 Optimize the callgraph from here.
1867 (cgraph_optimize): Make static.
1868 * langhooks.c (write_global_declarations): Finalize the CU.
1869 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
1870 (gimplify_function_tree): Assert we gimplify only once.
1871 Set PROP_gimple_any property.
1872 * tree-nested.c (gimplify_all_functions): New function.
1873 (lower_nested_functions): Gimplify all nested functions.
1874 * gimple.h (diagnose_omp_structured_block_errors): Remove.
1875 * passes.c (init_optimization_passes): Add pass_warn_unused_result
1876 and pass_diagnose_omp_blocks after gimplification. Do not
1877 set TODO_set_props on all_lowering_passes.
1878 (execute_one_pass): Do not handle TODO_set_props.
1879 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
1880 (gimplify.o): Add tree-pass.h dependency.
1881 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
1882 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
1883 (unsave_r): Likewise.
1884 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
1885 temporary variable.
1886
2e687c2c
SL
18872009-07-17 Sandra Loosemore <sandra@codesourcery.com>
1888
1889 * doc/service.texi (Service): Restore previously removed link,
1890 which isn't broken after all.
1891
7763473e
RG
18922009-07-17 Richard Guenther <rguenther@suse.de>
1893
1894 PR tree-optimization/40321
1895 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
1896 PHI nodes to the maximal set.
1897 (make_values_for_phi): Add PHI arguments to the maximal set.
1898 (execute_pre): Dump PHI_GEN and the maximal set.
1899
4f934809
JJ
19002009-07-17 Jakub Jelinek <jakub@redhat.com>
1901
1902 PR c++/40780
1903 * gimplify.c (gimplify_conversion): Don't change non-conversions into
1904 VIEW_CONVERT_EXPR.
1905
63a26b78
SL
19062009-07-16 Sandra Loosemore <sandra@codesourcery.com>
1907
1908 * doc/extend.texi (Nested Functions): Replace broken link with
1909 textual reference.
1910 * doc/service.texi (Service): Remove broken link.
1911
3ac337c3
L
19122009-07-16 H.J. Lu <hongjiu.lu@intel.com>
1913
1914 PR bootstrap/40781
1915 * builtins.c (expand_builtin_memcmp): Use loc instead of
1916 EXPR_LOCATION (exp).
1917 (expand_builtin_strncmp): Likewise.
1918
db3927fb
AH
19192009-07-17 Aldy Hernandez <aldyh@redhat.com>
1920 Manuel López-Ibáñez <manu@gcc.gnu.org>
1921
1922 PR 40435
1923 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
1924 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
1925 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
1926 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
1927 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
1928 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
1929 tree-inline.c, c-common.c, c-common.h, gimple.c,
1930 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
1931 convert.c: Add location argument to fold_{unary,binary,ternary},
1932 fold_build[123], build_call_expr, build_size_arg,
1933 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
1934 fold_build1_initializer, fold_build2_initializer,
1935 fold_build3_initializer, fold_build_call_array,
1936 fold_build_call_array_initializer, fold_single_bit_test,
1937 omit_one_operand, omit_two_operands, invert_truthvalue,
1938 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
1939 combine_comparisons, fold_builtin_*, fold_call_expr,
1940 build_range_check, maybe_fold_offset_to_address, round_up,
1941 round_down.
1942
c32097d8
JM
19432009-07-16 Jason Merrill <jason@redhat.com>
1944
1945 PR libstdc++/37907
1946 * c-common.c (c_common_reswords): Add __is_standard_layout
1947 and __is_trivial.
1948 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
1949 * doc/implement-cxx.texi: New.
1950 * doc/gcc.texi: Include it.
1951
b3c5a409
DD
19522009-07-16 DJ Delorie <dj@redhat.com>
1953
1954 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
1955 compares that may be indirectly affected by previous instructions.
1956
a41d064d
KG
19572009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1958
1959 * builtins.c (do_mpc_arg2): New.
1960 (fold_builtin_2): Fold builtin cpow.
1961 * real.h (HAVE_mpc_pow): New.
1962
db87b56d
BM
19632009-07-16 Bingfeng Mei <bmei@broadcom.com>
1964
9e7c935a
UB
1965 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
1966 comparison to skip unprofitable schedule
1967
ba0c638e
SB
19682009-07-16 Simon Baldwin <simonb@google.com>
1969
1970 * gcc.c (option_map): New flag -no-canonical-prefixes.
1971 * (display_help): Print help text for new flag.
1972 * (process_command): Move options translation and language specifics
1973 and handle new flag early. Use it to set a function pointer to a
1974 prefix builder. Replace make_relative_prefix calls with calls to
1975 the function pointed to. Ignore new flag in regular options handling.
1976 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
1977
11af2d7b
DD
19782009-07-15 DJ Delorie <dj@redhat.com>
1979
1980 * config/mep/mep.md (sibcall_internal): Change register to avoid
1981 argument registers.
1982 (sibcall_value_internal): Likewise.
1983
9d2bb902
EB
19842009-07-15 Eric Botcazou <ebotcazou@adacore.com>
1985
1986 PR rtl-optimization/40710
1987 * resource.c (mark_target_live_regs): Reset DF problem to LR.
1988
da45599c
AN
19892009-07-15 Adam Nemet <anemet@caviumnetworks.com>
1990
1991 * config/mips/mips.md (*extenddi_truncate<mode>,
1992 *extendsi_truncate<mode>): Change type attribute to move_type
1993 with shift_shift. Split out code handling exts from here ...
1994 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
1995 pattern.
1996 (*extendhi_truncateqi): Change type attribute to move_type with
1997 shift_shift. Split out code handling exts from here ...
1998 (*extendhi_truncateqi_exts): ... to this new pattern.
1999
31f44cd0 20002009-07-15 Uros Bizjak <ubizjak@gmail.com>
1fba7394 2001
31f44cd0
UB
2002 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
2003 instead of "and" with inverted sign bit mask value. Use
2004 "nonimmediate_operand" for operand 1 and operand 2 predicate.
2005 Allocate registers only for operand 4 and operand 5.
1fba7394 2006
b4e4232d
JJ
20072009-07-15 Jakub Jelinek <jakub@redhat.com>
2008
2009 PR middle-end/40747
2010 * fold-const.c (fold_cond_expr_with_comparison): When folding
2011 < and <= to MIN, make sure the MIN uses the same type as the
2012 comparison's operands.
2013
fa01135d
RE
20142009-07-15 Richard Earnshaw <rearnsha@arm.com>
2015
2016 * arm.md (ior_xor): New code iterator.
2017 (split for ior/xor with shift and zero-extend): New split pattern.
2018 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
2019
b41e33fe
RG
20202009-07-15 Richard Guenther <rguenther@suse.de>
2021
2022 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
2023 offset member.
2024
c9b2f286
RG
20252009-07-15 Richard Guenther <rguenther@suse.de>
2026
2027 PR middle-end/40753
1fba7394 2028 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
c9b2f286 2029
31d29c40
MK
20302009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
2031
2032 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
2033 handle 2.6.30 kernel.
2034
18e67adf
DD
20352009-07-15 DJ Delorie <dj@redhat.com>
2036
2037 * config/mep/mep.md (sibcall_internal): Change register to allow
2038 for 24-bit addresses.
2039 (sibcall_value_internal): Likewise.
2040
96809b41
GS
20412009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
2042
1fba7394
UB
2043 * doc/invoke.texi: Added descriptions of the scheduling heuristics
2044 that are enabled/disabled by the flags introduced by a previous patch.
96809b41 2045
54a1e1d0
DD
20462009-07-14 DJ Delorie <dj@redhat.com>
2047
2048 * config/mep/mep.md (sibcall_internal): Include non-toggling
2049 non-jmp case.
2050 (sibcall_value_internal): Likewise.
2051
2a4c0366
TG
20522009-07-14 Taras Glek <tglek@mozilla.com>
2053 Rafael Espindola <espindola@google.com>
2054
2055 * doc/sourcebuild.texi: Document install-plugin target.
2056 * configure.ac: Added install-plugin target to language makefiles.
2057 * configure: Regenerate.
2058 * Makefile.in: (install-plugin): Install more headers,
2059 depend on lang.install-plugin.
2060
2349c14b
MLI
20612009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2062
2063 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
2064 translation.
2065
a9d1723f
DD
20662009-07-14 DJ Delorie <dj@redhat.com>
2067
2068 * config/mep/mep.c (mep_vliw_jmp_match): New function.
2069 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
2070 * config/mep/mep.md (sibcall_internal): Change test from
2071 mep_vliw_mode_match to mep_vliw_jmp_match.
2072 (sibcall_value_internal): Likewise.
2073
af766f2d
UB
20742009-07-14 Uros Bizjak <ubizjak@gmail.com>
2075
2076 * config/i386/sse.md (copysign<mode>3): New expander.
2077 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
2078 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
2079 Use ix86_build_const_vector.
2080 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
2081 IX86_BUILTIN_CPYSGNPD.
2082 (builtin_description): Add __builtin_ia32_copysignps and
2083 __builtin_ia32_copysignpd.
2084 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
2085 and BUILT_IN_COPYSIGNF.
2086
b35c8160
JM
20872009-07-13 Jason Merrill <jason@redhat.com>
2088
2089 * builtins.c (can_trust_pointer_alignment): New fn.
2090 (get_pointer_alignment): Factor it out from here.
2091 * tree.h: Declare it.
2092
e02e8e58
DE
20932009-07-14 David Edelsohn <edelsohn@gnu.org>
2094
2095 * config/rs6000/predicates.md (offsettable_mem_operand): Test
2096 RTX_AUTOINC class.
2097
4fdaccea
DS
20982009-07-14 Dodji Seketeli <dodji@redhat.com>
2099
2100 PR debug/40705
2101 PR c++/403057
2102 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
2103
0b200b80 21042009-07-14 Richard Guenther <rguenther@suse.de>
af766f2d 2105 Andrey Belevantsev <abel@ispras.ru>
0b200b80
RG
2106
2107 PR middle-end/40745
2108 * cfgexpand.c (partition_stack_vars): Do not bother to update
2109 alias information when not optimizing.
2110
55b34b5f 21112009-07-14 Richard Guenther <rguenther@suse.de>
848e6317 2112 Andrey Belevantsev <abel@ispras.ru>
55b34b5f
RG
2113
2114 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
2115 (pt_solution_set): Likewise.
2116 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
2117 * tree-ssa-structalias.c (pt_solution_set): New function.
2118 * final.c (rest_of_clean_state): Free SSA data structures.
2119 * print-rtl.c (print_decl_name): Remove.
2120 (print_mem_expr): Implement in terms of print_generic_expr.
2121 * alias.c (ao_ref_from_mem): New function.
2122 (rtx_refs_may_alias_p): Likewise.
2123 (true_dependence): Query alias-export info.
2124 (canon_true_dependence): Likewise.
2125 (write_dependence_p): Likewise.
2126 * tree-dfa.c (get_ref_base_and_extent): For void types leave
2127 size unknown.
2128 * emit-rtl.c (component_ref_for_mem_expr): Remove.
2129 (mem_expr_equal_p): Use operand_equal_p.
2130 (set_mem_attributes_minus_bitpos): Do not use
2131 component_ref_for_mem_expr.
2132 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
2133 (update_alias_info_with_stack_vars): Likewise.
2134 (partition_stack_vars): Call update_alias_info_with_stack_vars.
2135 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
2136 explicitly nor clear stmt operands.
2137 Free the decl-to-pointer map.
2138 * tree-optimize.c (execute_free_datastructures): Do not free
2139 SSA data structures here.
2140 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
2141 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
2142 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
2143 dependencies.
2144 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
2145
a46f0964
DD
21462009-07-13 DJ Delorie <dj@redhat.com>
2147
1700c2e7
DD
2148 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
2149 unrolling at the right iteration count.
2150
a46f0964
DD
2151 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
2152 calculations.
2153
ee4764a8
GS
21542009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
2155
af766f2d
UB
2156 * haifa-sched.c (rank_for_schedule): Introduced flags to
2157 enable/disable individual scheduling heuristics.
2158 * common.opt: Introduced flags to enable/disable individual
2159 heuristics in the scheduler.
2160 * doc/invoke.texi: Introduced flags to enable/disable individual
2161 heuristics in the scheduler.
ee4764a8 2162
9122666c
KT
21632009-07-13 Kai Tietz <kai.tietz@onevision.com>
2164
2165 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
2166 config/i386/mingw-tls.c.
2167 * config/i386/mingw-tls.c: Removed.
2168
2f3e235b
IR
21692009-07-13 Ira Rosen <irar@il.ibm.com>
2170
2171 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
2172 checks access only relevant statements.
2173 (vectorizable_reduction): Likewise.
2174
f345f84a
KT
21752009-07-12 Kai Tietz <kai.tietz@onevision.com>
2176
2177 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
2178 just for 32-bit case.
2179
f645e9a2
JH
21802009-07-12 Jan Hubicka <jh@suse.cz>
2181
2182 PR tree-optimization/40585
2183 * except.c (expand_resx_expr): When there already is resume
2184 instruction, produce linked list.
2185 (build_post_landing_pads): Assert that resume is empty.
2186 (connect_post_landing_pads): Handle resume lists.
2187 (dump_eh_tree): Dump resume list.
2188
06066f92
IR
21892009-07-12 Ira Rosen <irar@il.ibm.com>
2190
2191 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2192 with additional argument.
7c8b1a77 2193 * tree-vectorizer.h (enum vect_def_type): Add
06066f92
IR
2194 vect_double_reduction_def.
2195 (vect_is_simple_reduction): Add argument.
7c8b1a77 2196 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
06066f92
IR
2197 indentation.
2198 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
2199 vect_is_simple_reduction with additional argument.
2200 (vect_analyze_loop_operations): Handle exit phi nodes in case of
2201 double reduction.
2202 (reduction_code_for_scalar_code): Handle additional codes by
2203 returning ERROR_MARK for them. Fix comment and indentation.
2204 (vect_is_simple_reduction): Fix comment, add argument to specify
2205 double reduction. Detect double reduction.
2206 (get_initial_def_for_induction): Fix indentation.
2207 (get_initial_def_for_reduction): Fix comment and indentation.
2208 Handle double reduction. Create initial definitions that do not
2209 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
2210 (vect_create_epilog_for_reduction): Fix comment, add argument to
2211 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
2212 epilogue result extraction. Create double reduction phi node and
2213 replace relevant uses.
2214 (vectorizable_reduction): Call vect_is_simple_reduction with
2215 additional argument. Fix indentation. Update epilogue code treatment
7c8b1a77 2216 according to the changes in reduction_code_for_scalar_code. Check
06066f92
IR
2217 for double reduction. Call vect_create_epilog_for_reduction with
2218 additional argument.
2219 * tree-vect-stmts.c (process_use): Handle double reduction, update
2220 documentation.
2221 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
2222 (vect_get_vec_def_for_operand): Likewise.
2223
b20231fe
DS
22242009-07-12 Danny Smith <dansmister@gmail.com>
2225
2226 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
2227 dllexport if !TREE_PUBLIC.
2228 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
2229
97c281da
AS
22302009-07-11 Anatoly Sokolov <aesok@post.ru>
2231
2232 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
2233 (avr_extra_arch_macro) Remove declatation.
2234 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
2235 (avr_extra_arch_macro) Declare as static.
2236 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
2237
6b45de00
JH
22382009-07-11 Jan Hubicka <jh@suse.cz>
2239
2240 PR middle-end/48388
2241 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
2242
dd67163f
JJ
22432009-07-11 Jakub Jelinek <jakub@redhat.com>
2244
3e3a9a6a
JJ
2245 PR debug/40713
2246 * dwarf2out.c (dw_fde_struct): Add in_std_section and
2247 cold_in_std_section bits.
2248 (dwarf2out_begin_prologue): Initialize them.
2249 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
2250 if already covered by text_section or cold_text_section range.
2251
ae58e548
JJ
2252 PR rtl-optimization/40667
2253 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
2254 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
2255 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
2256 * config/i386/i386.c (ix86_minimum_alignment): New function.
2257 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
2258 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
2259 * emit-rtl.c (gen_reg_rtx): Likewise.
2260 * function.c (assign_parms): Likewise. If nominal_type needs
2261 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
2262 rather than passed_type's alignment.
2263
dd67163f
JJ
2264 PR target/40668
2265 * function.c (assign_parm_setup_stack): Adjust
2266 MEM_OFFSET (data->stack_parm) if promoted_mode is different
2267 from nominal_mode on big endian.
2268
e9edda23
PB
22692009-07-11 Paolo Bonzini <bonzini@gnu.org>
2270
2271 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
2272
82e45095
DD
22732009-07-10 DJ Delorie <dj@redhat.com>
2274
2275 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
2276
98ac6510
MM
22772009-07-10 Mark Mitchell <mark@codesourcery.com>
2278
2279 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
2280 attribute.
2281 (thumb2_cbnz): Likewise.
2282
b96c5923
DD
22832009-07-10 David Daney <ddaney@caviumnetworks.com>
2284
2285 PR target/39079
2286 * config.gcc (supported_defaults): Add synci.
2287 (with_synci): Add validation.
2288 (all_defaults): Add synci.
2289 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
2290 ISA_HAS_SYNCI.
2291 (synci): Same.
2292 * config/mips/mips.opt (msynci): New option.
2293 * config/mips/mips.c (mips_override_options): Warn on use of
2294 -msynci for targets that do now support it.
2295 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2296 msynci.
2297 * gcc/doc/invoke.texi (-msynci): Document the new option.
2298 * doc/install.texi (--with-synci): Document the new option.
2299
182e00b1
RG
23002009-07-10 Richard Guenther <rguenther@suse.de>
2301
2302 PR tree-optimization/40496
2303 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
2304 the PHI result with a compatible type.
2305
156f545a
MLI
23062009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
2307
2308 PR 25509
2309 PR 40614
2310 * c.opt (Wunused-result): New.
2311 * doc/invoke.texi: Document it.
2312 * c-common.c (c_warn_unused_result): Use it.
2313
06c43499
DD
23142009-07-09 DJ Delorie <dj@redhat.com>
2315
5cec9f59
DD
2316 * targhooks.c (default_target_can_inline_p): Rename from
2317 default_target_option_can_inline_p.
2318 * targhooks.h (default_target_can_inline_p): Likewise.
2319 * target-def.h (TARGET_CAN_INLINE_P): Rename from
2320 TARGET_OPTION_CAN_INLINE_P.
2321 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
2322 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
2323 (mep_target_can_inline_p): Rename from
2324 mep_target_option_can_inline_p.
2325
2326 PR target/40626
b9263ae5
DD
2327 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
2328 registers used to pass vectors.
2329
06c43499
DD
2330 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
2331
a80b0574
TT
23322009-07-09 Tom Tromey <tromey@redhat.com>
2333
2334 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
2335 * config/mmix/mmix.c: Include dwarf2.h.
2336 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
2337 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
2338 * config/sh/sh.c: Include dwarf2.h.
2339 * config/i386/i386.c: Include dwarf2.h.
2340 * Makefile.in (DWARF2_H): Remove 'elf'.
2341 * except.c: Include dwarf2.h.
2342 * unwind-dw2.c: Include dwarf2.h.
2343 * dwarf2out.c: Include dwarf2.h.
2344 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
2345 * unwind-dw2-fde.c: Include dwarf2.h.
2346 * dwarf2asm.c: Include dwarf2.h.
2347
356c23b3 23482009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7c8b1a77 2349
356c23b3 2350 * haifa-sched.c (insn_finishes_cycle_p): New static function.
7c8b1a77
UB
2351 (max_issue): Use it.
2352 * sched-int.h (struct sched_info: insn_finishes_block_p): New
2353 scheduler hook.
2354 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
2355 (region_sched_info): Update.
2356 * sched-ebb.c (ebb_sched_info): Update.
2357 * modulo-sched.c (sms_sched_info): Update.
356c23b3
MK
2358 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
2359
5223c588
MK
23602009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
2361
2362 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
8d4cf6d7
BS
2363
23642009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
2365
2366 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
2367
b9da76de
JJ
23682009-07-09 Jakub Jelinek <jakub@redhat.com>
2369
2370 PR middle-end/40692
2371 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
2372 arg1 with arg01 if arg1 is already INTEGER_CST.
2373
fcaf7e12
AN
23742009-07-08 Adam Nemet <anemet@caviumnetworks.com>
2375
7c8b1a77
UB
2376 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
2377 Transform (and (truncate)) into (truncate (and)).
fcaf7e12 2378
3f36bac2
AN
23792009-07-08 Adam Nemet <anemet@caviumnetworks.com>
2380
2381 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
2382 creating LHS paradoxical subregs. Fix surrounding returns to
2383 use NULL_RTX rather than 0.
2384
ae30c1fa
DD
23852009-07-08 DJ Delorie <dj@redhat.com>
2386
2387 * config/mep/mep.c: (mep_option_can_inline_p): New.
2388 (TARGET_OPTION_CAN_INLINE_P): Define.
2389
3d78d293
MW
23902009-07-08 Mark Wielaard <mjw@redhat.com>
2391
2392 PR debug/40659
2393 * dwarf2out.c (add_data_member_location_attribute): When we have
2394 only a constant offset don't emit a new location description using
2395 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
2396 dwarf_version > 2.
2397
ac2e563f
RH
23982009-07-08 Richard Henderson <rth@redhat.com>
2399
2400 PR target/38900
2401 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
2402 (enum reg_class): Add CLOBBERED_REGS.
2403 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2404 * config/i386/i386.c (ix86_conditional_register_usage): Moved
2405 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
2406 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
2407 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
2408 force 64-bit sibcalls into R11.
2409 * config/i386/constraints.md (U): New constraint.
2410 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
2411 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
2412 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
2413
8ed77e22
SZ
24142009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
2415
2416 * basic-block.h (dump_regset, debug_regset): Remove duplicate
2417 prototypes.
2418 * c-objc-common.h (c_initialize_diagnostics): Ditto.
2419 * ebitmap.h (dump_ebitmap): Ditto.
2420 * optabs.h (optab_libfunc): Ditto.
2421 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
2422 * tree-flow.h (vect_can_force_dr_alignment_p,
3f36bac2 2423 get_vectype_for_scalar_type): Ditto.
8ed77e22 2424 (vectorize_loops): Move prototype to ...
3f36bac2 2425 * tree-vectorizer.h: ... here. Also, adjust comment.
8ed77e22
SZ
2426 (vect_set_verbosity_level): Remove duplicate prototype.
2427 * tree-ssa-loop.c: Include tree-vectorizer.h.
2428 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
2429
c6075b13
NC
24302009-07-08 Nick Clifton <nickc@redhat.com>
2431
2432 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
2433 forward slash.
2434
d1b5afd5
DD
24352009-07-08 DJ Delorie <dj@redhat.com>
2436
2437 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
2438 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
2439 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
2440 written to.
2441 * config/mep/intrinsics.md: Regenerated.
2442 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
2443 registers when asm() or calls are detected.
3f36bac2 2444
d665b6e5
MLI
24452009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2446
2447 PR c++/31246
2448 * gimplify.c (gimplify_expr): Propagate no_warning flag when
2449 gimplifying.
2450 * gimple (gimple_build_call_from_tree): Likewise.
2451 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
2452 no_warning flag before warning.
3f36bac2 2453
5e278028
MLI
24542009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2455
2456 * tree.c (set_expr_locus): Remove.
2457 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
2458 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
2459 EXPR_LOCATION.
2460 * gimplify.c (internal_get_tmp_var): Likewise.
2461 (gimplify_call_expr): Likewise.
2462 (gimplify_one_sizepos): Likewise.
2463
ed3346c2
EB
24642009-07-07 Eric Botcazou <ebotcazou@adacore.com>
2465
2466 PR debug/40666
2467 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
2468 to variables for debugging purposes.
2469
4db19cc7
ML
24702009-06-23 Mark Loeser <mark@halcy0n.com>
2471
2472 PR build/40010
2473 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
2474
72f90fde
MLI
24752009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2476
2477 * pretty-print.c (pp_base_format): Remove %J.
2478 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2479 gcc_cxxdiag_char_table): Likewise.
2480 (init_dynamic_diag_info): Likewise.
4db19cc7 2481
dcb91ebe
MLI
24822009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2483
2484 * pretty-print.c (pp_base_format): Remove %H.
2485 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2486 gcc_cxxdiag_char_table): Likewise.
2487 (init_dynamic_diag_info): Likewise.
2488 * config/mep/mep.c (mep_select_section): Likewise.
2489
cf400ddb
DS
24902009-07-07 Duncan Sands <baldrick@free.fr>
2491
7c8b1a77
UB
2492 * final.c (pass_clean_state): Give the pass a name.
2493 * passes.c (pass_rest_of_compilation): Likewise.
2494 * tree-optimize.c (pass_all_optimizations): Likewise.
cf400ddb 2495
d575725b
L
24962009-07-07 H.J. Lu <hongjiu.lu@intel.com>
2497
2498 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
2499 an extra 'decl' for error_at.
2500
535536b4
JJ
25012009-07-07 Jakub Jelinek <jakub@redhat.com>
2502
2503 PR middle-end/40669
2504 * tree-tailcall.c (adjust_return_value_with_ops,
2505 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
2506 if it has complex or vector type.
2507
f062f8f2
OH
25082009-07-07 Olivier Hainque <hainque@adacore.com>
2509
d575725b
L
2510 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
2511 pthread symbols.
f062f8f2 2512
cac1b0ee
BS
25132009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
2514
2515 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
2516
c5d75364
MLI
25172009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2518
7c8b1a77 2519 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
c5d75364
MLI
2520 * c-decl.c: Likewise.
2521 * function.c: Likewise.
2522 * varasm.c: Likewise.
2523 * tree-ssa.c: Likewise.
2524 * c-common.c: Likewise.
2525 * tree-cfg.c: Likewise.
2526 * config/spu/spu.c: Likewise.
2527 * config/ia64/ia64.c: Likewise.
2528 * config/v850/v850.c: Likewise.
2529
b932c20b
DD
25302009-07-06 DJ Delorie <dj@redhat.com>
2531
2532 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
2533 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
2534 unspecified accesses to control registers.
2535 * config/mep/intrinsics.md: Regenerate.
2536 * config/mep/intrinsics.h: Regenerate.
2537 * config/mep/mep-intrin.h: Regenerate.
3f36bac2 2538
fab922b1
MLI
25392009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2540
2541 * c-lex.c: Replace %H by an explicit location. Update all calls.
2542 * c-common.c: Likewise.
2543 * c-decl.c: Likewise.
2544 * c-typeck.c: Likewise.
2545 * fold-const.c: Likewise.
2546 * gimplify.c: Likewise.
2547 * stmt.c: Likewise.
2548 * tree-cfg.c: Likewise.
2549 * tree-ssa-loop-niter.c: Likewise.
2550 * tree-vrp.c: Likewise.
2551 * value-prof.c: Likewise.
2552
66350781
DN
25532009-07-06 Diego Novillo <dnovillo@google.com>
2554
2555 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
2556 if it has one. Handle cases where VAR does not have an
2557 annotation or cfun is NULL.
2558
d251bfca
DN
25592009-07-06 Diego Novillo <dnovillo@google.com>
2560
2561 * tree.c: Include debug.h.
2562 (initialize_tree_contains_struct): New.
2563 (init_ttree): Call it.
2564 (tree_node_structure_for_code): Factor out of ...
2565 (tree_node_structure): ... here.
2566 * treestruct.def (TS_PHI_NODE): Remove.
2567 (TS_GIMPLE_STATEMENT): Remove.
2568
e923c8ea
DN
25692009-07-06 Diego Novillo <dnovillo@google.com>
2570
7c8b1a77 2571 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
e923c8ea
DN
2572 (debug_tree_chain): Handle cycles.
2573
7a61cf6f
NC
25742009-07-06 Nick Clifton <nickc@redhat.com>
2575 DJ Delorie <dj@redhat.com>
2576
2577 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2578 __FMOVD_ENABLED__ is defined.
2579 * config/sh/sh.h
2580 (TARGET_FMOVD): Provide a default definition.
2581 (MASK_FMOVD): Likewise.
2582 (TARGET_CPU_CPP_BUILTINS): Define
2583 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2584 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
7c8b1a77 2585 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
7a61cf6f
NC
2586 (split for DF load from memory into register): Also handle
2587 MEMs which consist of REG+DISP addressing.
2588 (split for DF store from register to memory): Likewise.
2589 (movsf_ie): Always use single fp_mode.
2590 * config/sh/sh.c (sh_override_options): Do not automatically
2591 enable TARGET_MOVD for the SH2A when supporting doubles - leave
2592 that to the -mfmovd command line switch.
2593 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
2594 (fldi_ok): Always allow.
2595 * config/sh/sh.opt (mfmovd): Remove this switch.
2596 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2597
83f63251
R
25982009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
2599 Kaz Kojima <kkojima@gcc.gnu.org>
2600
2601 PR rtl-optimization/30807
2602 * postreload.c (reload_combine): For every new use of REG_SUM,
2603 record the use of BASE.
2604
172d54e0
JH
26052009-07-06 Jan Hubicka <jh@suse.cz>
2606
2607 * params.def: Revert my accidental commit at 2009-06-30.
2608
34097e36
ILT
26092009-07-04 Ian Lance Taylor <iant@google.com>
2610
2611 PR target/40636
2612 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
2613 EXPORTED_CONST.
2614 (mingw_format_attribute_overrides): Likewise.
2615
bd5b2c2d
JJ
26162009-07-04 Jakub Jelinek <jakub@redhat.com>
2617
2618 PR debug/40596
2619 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
2620 don't check cfa.reg. Instead of cfa.indirect use
2621 fde && fde->drap_reg != INVALID_REGNUM test.
2622
39ba6ab7
EB
26232009-07-04 Eric Botcazou <ebotcazou@adacore.com>
2624
2625 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
2626
54a0ac2d
VM
26272009-07-03 Vladimir Makarov <vmakarov@redhat.com>
2628
2629 PR target/40587
7c8b1a77 2630 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3f36bac2 2631
fae1034e
RG
26322009-07-03 Richard Guenther <rguenther@suse.de>
2633
2634 PR tree-optimization/40640
2635 * tree-switch-conversion.c (build_arrays): Perform arithmetic
2636 in original type.
2637
ba8978d0
JH
26382009-07-03 Jan Hubicka <jh@suse.cz>
2639
2640 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
2641 for size, reduce amount of inlining.
2642
d73fb533
RG
26432009-07-03 Richard Guenther <rguenther@suse.de>
2644
2645 PR middle-end/34163
7c8b1a77
UB
2646 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
2647 if t +- x is known to not overflow and the conversion widens the
2648 operation.
d73fb533
RG
2649 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
2650
7351bcaa
JH
26512009-07-03 Jan Hubicka <jh@suse.cz>
2652
2653 * ipa-pure-const.c (analyze): Update loop optimizer init.
2654 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
2655 try_remove_empty_loop, remove_empty_loops): Remove.
2656 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
2657 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
2658 to mark regular loops as neccesary.
2659 (degenerate_phi_p): New function.
2660 (propagate_necessity, remove_dead_phis): Use it.
2661 (forward_edge_to_pdom): Likewise.
2662 (eliminate_unnecessary_stmts): Take care to remove uses of results of
2663 virtual PHI nodes that became unreachable.
2664 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
2665 * tree-flow.h (remove_empty_loops): Remove.
2666 * passes.c (init_optimization_passes): Remove.
2667
5071eab7
UB
26682009-07-03 Uros Bizjak <ubizjak@gmail.com>
2669
2670 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
2671 can_create_pseudo_p.
2672 (*fix_trunc<mode>_i387_1): Ditto.
2673 (*floathi<mode>2_1): Ditto.
2674 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
2675 (*fistdi2_1): Ditto.
2676 (*fist<mode>2_1): Ditto.
2677 (frndintxf2_floor): Ditto.
2678 (*fist<mode>2_floor_1): Ditto.
2679 (frndintxf2_ceil): Ditto.
2680 (*fist<mode>2_ceil_1): Ditto.
2681 (frndintxf2_trunc): Ditto.
2682 (frndintxf2_mask_pm): Ditto.
2683 (fxam<mode>2_i387_with_temp): Ditto.
2684 * config/i386/sse.md (mulv16qi3): Ditto.
2685 (*sse2_mulv4si3): Ditto.
2686 (mulv2di3): Ditto.
2687 (sse4_2_pcmpestr): Ditto.
2688 (sse4_2_pcmpistr): Ditto.
2689
1fc41282
JH
26902009-07-03 Jan Hubicka <jh@suse.cz>
2691
2692 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
2693 (mark_stmt_necessary): Set it.
2694 (mark_operand_necessary): Set it.
2695 (mark_control_dependent_edges_necessary): Set it.
2696 (mark_virtual_phi_result_for_renaming): New function.
2697 (get_live_post_dom): New function.
2698 (forward_edge_to_pdom): New function.
2699 (remove_dead_stmt): Fix handling of control dependences.
2700 (tree_dce_init): Init new bitmap.
2701 (tree_dce_done): Free it.
2702
02583d3c
RG
27032009-07-02 Richard Guenther <rguenther@suse.de>
2704
2705 PR bootstrap/40617
2706 * tree-ssa-structalias.c (new_var_info): Initialize
2707 is_restrict_var.
2708
3c1832c3
JH
27092009-07-02 Jan Hubicka <jh@suse.cz>
2710
2711 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
2712 local.
2713
92355a9c
PB
27142009-07-02 Paolo Bonzini <bonzini@gnu.org>
2715
2716 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
2717 instead of recomputing it. Adjust calls.
2718 (emit_store_flag): Adjust recursive calls.
2719
91deb937
RG
27202009-07-02 Richard Guenther <rguenther@suse.de>
2721
2722 * tree-ssa-live.c (remove_unused_locals): Do not remove
2723 heap variables.
2724 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
2725 of DECL_EXTERNAL for HEAP variables.
2726 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
2727 HEAP variables. Do not adjust RESTRICT vars.
2728 (find_what_var_points_to): Nobody cares if something
2729 points to READONLY.
2730
2011dbb0
BE
27312009-07-02 Ben Elliston <bje@au.ibm.com>
2732
2733 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
2734 pc_low and pc_high declarations to the top of the function.
2735
f2082f90
DD
27362009-07-01 DJ Delorie <dj@redhat.com>
2737
2738 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
2739 registers as fixed.
5071eab7 2740 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
f2082f90
DD
2741 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
2742 unspecified accesses to control registers.
2743 * config/mep/intrinsics.md: Regenerate.
2744 * config/mep/intrinsics.h: Regenerate.
2745 * config/mep/mep-intrin.h: Regenerate.
3f36bac2 2746
9df748c0
AG
27472009-07-01 Anthony Green <green@moxielogic.com>
2748
2749 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2750 instruction when possible.
2751 (moxie_expand_prologue): Ditto. Also, save an instruction and
3f36bac2 2752 some complexity by popping off of $r12 instead of $sp.
9df748c0
AG
2753 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
2754 operands.
3f36bac2 2755
997704f1
RH
27562009-07-01 Richard Henderson <rth@redhat.com>
2757
2758 PR bootstrap/40347
2759 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
2760 contained no insns, reposition note before last insn.
2761
9f2af3ce
RH
27622009-07-01 Richard Henderson <rth@redhat.com>
2763
2764 PR debug/40431
2765 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
2766 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
2767
d66a97e2
MM
27682009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2769
2770 PR bootstrap/40558
2771 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
2772 darwin9 for printing reg addresses with %y.
2773
479b1013
AN
27742009-07-01 Adam Nemet <anemet@caviumnetworks.com>
2775
2776 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
2777 truncation from operands in binary operations.
2778
c600a155
AN
27792009-07-01 Adam Nemet <anemet@caviumnetworks.com>
2780
2781 Revert:
2782 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
2783 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2784 subreg of op0 to the original op0.
2785
2786 * expmed.c (store_bit_field_1): Use a temporary as the destination
2787 instead of a paradoxical subreg when we need to truncate the result.
2788
a12e9a5f
DD
27892009-07-01 DJ Delorie <dj@redhat.com>
2790
5071eab7
UB
2791 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
2792 names to VLIW variants.
a12e9a5f
DD
2793 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
2794 * config/mep/intrinsics.md: Regenerate.
2795 * config/mep/intrinsics.h: Regenerate.
2796 * config/mep/mep-intrin.h: Regenerate.
2797
2a5bd62a
JJ
27982009-07-01 Jakub Jelinek <jakub@redhat.com>
2799
2800 PR debug/40462
2801 * jump.c (returnjump_p): Revert last patch.
2802 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
2803
3232e9d8
JDA
28042009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2805
4aa7f896
JDA
2806 PR target/40575
2807 * pa.md (casesi32p): Use jump table label to determine the offset
2808 of the jump table.
2809 (casesi64p): Likewise.
2810
5071eab7
UB
2811 * pa.c (forward_branch_p): Return bool type. Use instruction
2812 addresses when available. Assert that INSN has a jump label.
3232e9d8
JDA
2813 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
2814 have a jump label.
2815
14c41b9b
RG
28162009-07-01 Richard Guenther <rguenther@suse.de>
2817
2818 PR tree-optimization/19831
2819 * tree-ssa-dce.c (propagate_necessity): Calls to functions
5071eab7 2820 that only act as barriers do not make any previous stores necessary.
14c41b9b
RG
2821 * tree-ssa-structalias.c (handle_lhs_call): Delay making
2822 HEAP variables global, do not add a constraint from nonlocal.
2823 (find_func_aliases): Handle escapes through return statements.
2824 (compute_points_to_sets): Make escaped HEAP variables global.
2825
1ed20a40
PB
28262009-07-01 Paolo Bonzini <bonzini@gnu.org>
2827
2828 PR bootstrap/40597
2829 * expmed.c (emit_store_flag): Perform a conversion if necessary,
2830 after reducing a DImode cstore to SImode.
2831
ce3aea35
PB
28322009-07-01 Paolo Bonzini <bonzini@gnu.org>
2833
2834 * expr.c (expand_expr_real_1): Reinstate fallthrough to
2835 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
2836
1df34d4d
MR
28372009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
2838
2839 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
2840 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
2841 to 0.
2842 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
2843 and umod_optab if TARGET_BSD_DIVMOD.
2844 * config/vax/lib1funcs.asm: New file.
2845 * config/vax/t-linux: New file.
2846 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
2847
085e05ac
JJ
28482009-06-30 Jakub Jelinek <jakub@redhat.com>
2849
5ccde5a0
JJ
2850 PR c++/40566
2851 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
2852 to type arguments that have void type.
2853
085e05ac
JJ
2854 PR debug/40573
2855 * dwarf2out.c (gen_formal_parameter_die): Call
2856 equate_decl_number_to_die if node is different from origin.
2857
9fb374d6
AG
28582009-06-30 Anthony Green <green@moxielogic.com>
2859
2860 Clean up moxie port for --enable-build-with-cxx.
2861 * config/moxie/moxie.c (moxie_function_value): First two
2862 parameters are const_tree, not tree.
2863 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
2864 (REG_CLASS_NAMES): Ditto.
2865 (REGNO_REG_CLASS): Ditto.
2866 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
2867 (moxie_function_value): Fix constyness of arguments.
2868
f82a627c
EB
28692009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2870
2871 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
2872 finalize_size_functions before further processing.
2873 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
2874 (variable_size): Call self_referential_size on size expressions
2875 that contain a PLACEHOLDER_EXPR.
2876 (size_functions): New static variable.
2877 (copy_self_referential_tree_r): New static function.
2878 (self_referential_size): Likewise.
2879 (finalize_size_functions): New global function.
2880 * tree.c: Include tree-inline.h.
2881 (push_without_duplicates): New static function.
2882 (find_placeholder_in_expr): New global function.
2883 (substitute_in_expr) <tcc_declaration>: Return the replacement object
2884 on equality.
2885 <tcc_expression>: Likewise.
2886 <tcc_vl_exp>: If the replacement object is a constant, try to inline
2887 the call in the expression.
2888 * tree.h (finalize_size_functions): Declare.
2889 (find_placeholder_in_expr): Likewise.
2890 (FIND_PLACEHOLDER_IN_EXPR): New macro.
2891 (substitute_placeholder_in_expr): Update comment.
2892 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
2893 is true.
2894 (copy_tree_body_r): Likewise.
2895 (copy_tree_body): New static function.
2896 (maybe_inline_call_in_expr): New global function.
2897 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
2898 (maybe_inline_call_in_expr): Declare.
2899 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
2900 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
2901 GIMPLE_H.
2902
67635176
RG
29032009-06-30 Richard Guenther <rguenther@suse.de>
2904
2905 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
2906 continue walking.
2907 (propagate_necessity): Do not mark reaching defs of stores
2908 as necessary.
2909
2de58650
JH
29102009-06-30 Jan Hubicka <jh@suse.cz>
2911
2912 * cfgloopanal.c (check_irred): Move into ...
2913 (mark_irreducible_loops): ... here; return true if ireducible
2914 loops was found.
2915 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
2916 (analyze_function): Try to prove loop finiteness.
2917 * cfgloop.h (mark_irreducible_loops): Update prototype.
2918 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
2919
46db44cc
BS
29202009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
2921
2922 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
2923
1825a1f3
IR
29242009-06-30 Ira Rosen <irar@il.ibm.com>
2925
2926 PR tree-optimization/40542
2927 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
2928 types.
2929
71d4d3eb
MJ
29302009-06-30 Martin Jambor <mjambor@suse.cz>
2931
2932 PR tree-optimization/40582
2933 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
2934 than useless_type_conversion_p.
2935 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
2936 proper place.
2937
f57017cd
MJ
29382009-06-30 Martin Jambor <mjambor@suse.cz>
2939
2940 PR middle-end/40554
2941 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2942
42bc61e0
RG
29432009-06-30 Richard Guenther <rguenther@suse.de>
2944
2945 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
2946 use ao_ref references.
2947 (walk_aliased_vdefs): Likewise.
2948 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
2949 * tree-ssa-dce.c (struct ref_data): Remove.
2950 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
2951 (mark_aliased_reaching_defs_necessary): Adjust.
2952 (mark_all_reaching_defs_necessary_1): Likewise.
2953
ef12ae45
PB
29542009-06-30 Paolo Bonzini <bonzini@gnu.org>
2955
2956 PR boostrap/40597
2957 * expmed.c (emit_cstore): New name of emit_store_flag_1.
2958 (emit_store_flag_1): Extract from emit_store_flag, adjust
2959 calls to (what now is) emit_cstore.
2960 (emit_store_flag): Call emit_store_flag_1 and also use it
2961 for what used to be recursive calls.
2962
791b59e3
WG
29632009-06-30 Wei Guozhi <carrot@google.com>
2964
2965 PR/40416
2966 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
2967 if the target bb post dominates from bb.
2968 * config/i386/i386.c (memory_address_length): Check existence of base
2969 register before using it.
2970
7a61cf6f
NC
29712009-06-30 Nick Clifton <nickc@redhat.com>
2972 DJ Delorie <dj@redhat.com>
2973
2974 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2975 __FMOVD_ENABLED__ is defined.
2976 * config/sh/sh.h
2977 (TARGET_FMOVD): Provide a default definition.
2978 (MASK_FMOVD): Likewise.
2979 (TARGET_CPU_CPP_BUILTINS): Define
2980 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2981 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2982 two fmov instructions depending upon whether TARGET_FMOVD is
2983 enabled.
2984 (split for DF load from memory into register): Also handle
2985 MEMs which consist of REG+DISP addressing.
2986 (split for DF store from register to memory): Likewise.
2987 * config/sh/sh.opt (mfmovd): Remove this switch.
2988 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2989 * config/sh/sh.c (sh_override_options): Do not automatically
2990 enable TARGET_MOVD for the SH2A when supporting doubles - leave
2991 that to the -mfmovd command line switch.
2992
2993 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
2994 the SH4 and SH4A.
2995 (fldi_ok): Always allow.
2996 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
2997
5a99fe3e
DD
29982009-06-29 DJ Delorie <dj@redhat.com>
2999
3000 * doc/install.texi (mep-x-elf): Correct chip's full name.
3001
ddaa3488
L
30022009-06-29 H.J. Lu <hongjiu.lu@intel.com>
3003
3004 * doc/extend.texi: Fix typo.
3005
bbf531f0
TT
30062009-06-29 Tom Tromey <tromey@redhat.com>
3007
3008 * dwarf2.h: Remove.
3009 * Makefile.in (DWARF2_H): New variable.
3010 (except.o): Use it.
3011 (dwarf2out.o): Likewise.
3012 (dwarf2asm.o): Likewise.
3013 * config/i386/t-i386: Use DWARF2_H.
3014 * except.c: Include elf/dwarf2.h.
3015 * unwind-dw2.c: Include elf/dwarf2.h.
3016 * dwarf2out.c: Include elf/dwarf2.h.
3017 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
3018 <dtprel>: New field.
3019 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
3020 (size_of_loc_descr): Likewise.
3021 (output_loc_operands_raw): Likewise.
3022 (output_loc_operands): Handle new dtprel field.
3023 (loc_checksum): Update.
3024 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
3025 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
3026 * unwind-dw2-fde.c: Include elf/dwarf2.h.
3027 * dwarf2asm.c: Include elf/dwarf2.h.
3028 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
3029 * config/mmix/mmix.c: Include elf/dwarf2.h.
3030 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
3031 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
3032 * config/sh/sh.c: Include elf/dwarf2.h.
3033 * config/i386/i386.c: Include elf/dwarf2.h.
3034
e2491744
DD
30352009-06-29 DJ Delorie <dj@redhat.com>
3036
bae38135
DD
3037 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
3038
e2491744
DD
3039 * doc/extend.texi: Add MeP attributes and pragmas.
3040 * doc/invoke.text: Add MeP Options.
3041 * doc/contrib.texi: Add MeP contribution.
3042 * doc/md.texi: Add MeP constraints.
3043 * doc/install.texi: Add MeP target.
3044
b52b1749
AS
30452009-06-30 Anatoly Sokolov <aesok@post.ru>
3046
3047 * target.h (struct gcc_target): Add frame_pointer_required field.
3048 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
3049 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
3050 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
3051 hook.
3052 * reload1.c (update_eliminables): (Ditto.).
3053 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
3054 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
3055 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
3056
3057 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
3058
3059 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
3060 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3061 (arm_frame_pointer_required): New function.
3062
3063 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
3064 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3065 (avr_frame_pointer_required_p): Declare as static.
3066 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
3067
3068 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
3069 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3070 (bfin_frame_pointer_required): Make as static, change return type
3071 to bool.
3072 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
3073
3074 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
3075 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3076 (cris_frame_pointer_required): New function.
3077
3078 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
3079
3080 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
3081 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3082 (fr30_frame_pointer_required): New function.
3083
3084 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
3085 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3086 (frv_frame_pointer_required): Make as static, change return type
3087 to bool.
3088 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
3089
3090 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
3091 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3092 (ix86_frame_pointer_required): Make as static, change return type to
3093 bool.
3094 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
3095
3096 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
3097 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3098
3099 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
3100
3101 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
3102
3103 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
3104
3105 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
3106 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3107 (mips_frame_pointer_required): Make as static.
3108 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
3109
3110 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
3111 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3112 (mmix_frame_pointer_required): Mew function.
3113
3114 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
3115 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3116
3117 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
3118
3119 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
3120
3121 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
3122
3123 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
3124 (CAN_ELIMINATE): Redefine.
3125 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
3126 (sparc_frame_pointer_required): New function.
3127 (sparc_can_eliminate): New function.
3128 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
3129
3130 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
3131 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3132
3133 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
3134 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3135 (xtensa_frame_pointer_required): Make as static, change return type
3136 to bool.
3137 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
3138 Remove.
3139
5071eab7 31402009-06-29 Olatunji Ruwase <tjruwase@google.com>
78bf7bd0
OR
3141
3142 * doc/plugins.texi: Document PLUGIN_START_UNIT.
3143 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
3144 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
3145 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
3146 (register_callback): Handle PLUGIN_START_UNIT.
3147 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
3148
96da8066
EB
31492009-06-29 Eric Botcazou <ebotcazou@adacore.com>
3150
3151 * tree.c (process_call_operands): Propagate TREE_READONLY from the
3152 operands.
3153 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
3154 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
3155
356ecb15
DJ
31562009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
3157
3158 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
3159 move cost.
3160
897eef7b
UB
31612009-06-29 Uros Bizjak <ubizjak@gmail.com>
3162
3163 * doc/extend.texi (Additional Floating Types): __float128 is also
3164 supported on i386 targets.
3165
74d27244
RG
31662009-06-29 Richard Guenther <rguenther@suse.de>
3167
3168 PR middle-end/14187
3169 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3170 flag.
3171 (pt_solutions_same_restrict_base): Declare.
3172 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
3173 flag.
3174 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
3175 (make_constraint_from, make_copy_constraint): Move earlier.
3176 (make_constraint_from_heapvar): New function.
3177 (make_constraint_from_restrict): Likewise.
3178 (handle_lhs_call): Use it.
3179 (find_func_aliases): Use it to track conversions to restrict
3180 qualified pointers.
3181 (struct fieldoff): Add only_restrict_pointers flag.
3182 (push_fields_onto_fieldstack): Initialize it.
3183 (create_variable_info_for): Track global restrict qualified pointers.
3184 (intra_create_variable_infos): Use make_constraint_from_heapvar.
3185 Track restrict qualified pointer arguments.
3186 (set_uids_in_ptset): Use varinfo is_global_var flag.
3187 (find_what_var_points_to): Set the vars_contains_restrict flag.
3188 Always create the points-to solution for sets including restrict tags.
3189 (pt_solutions_same_restrict_base): New function.
3190 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
3191 qualified pointers use pt_solutions_same_restrict_base as
3192 additional source for disambiguation.
3193
5b21f0f3
RG
31942009-06-29 Richard Guenther <rguenther@suse.de>
3195
3196 PR middle-end/38212
3197 * alias.c (find_base_decl): Remove.
3198 (get_deref_alias_set_1): Remove restrict handling.
3199 * c-common.c (c_apply_type_quals_to_decl): Do not set
3200 DECL_POINTER_ALIAS_SET.
3201 * gimplify.c (find_single_pointer_decl_1): Remove.
3202 (find_single_pointer_decl): Likewise.
3203 (internal_get_tmp_var): Remove restrict handling.
3204 (gimple_regimplify_operands): Likewise.
3205 * omp-low.c (expand_omp_atomic_pipeline): Do not set
3206 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
3207 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
3208 * tree.c (restrict_base_for_decl): Remove.
3209 (init_ttree): Do not allocate it.
3210 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
3211 LABEL_DECL_UID for label decls.
3212 (copy_node_stat): Do not copy restrict information.
3213 (decl_restrict_base_lookup): Remove.
3214 (decl_restrict_base_insert): Likewise.
3215 (print_restrict_base_statistics): Likewise.
3216 (dump_tree_statistics): Do not call print_restrict_base_statistics.
3217 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
3218 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
3219 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
3220 (LABEL_DECL_UID): Adjust.
3221 (DECL_BASED_ON_RESTRICT_P): Remove.
3222 (DECL_GET_RESTRICT_BASE): Likewise.
3223 (SET_DECL_RESTRICT_BASE): Likewise.
3224 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
3225
3226 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
3227 instead of DECL_POINTER_ALIAS_SET.
3228 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3229 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
3230 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
3231
09a782eb
RG
32322009-06-29 Richard Guenther <rguenther@suse.de>
3233
3234 PR tree-optimization/40579
3235 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
3236 the IL to simplify has constants that overflowed.
3237
1e9ae5ab
UB
32382009-06-28 Uros Bizjak <ubizjak@gmail.com>
3239
3240 PR tree-optimization/40550
3241 * tree-vect-generic.c (expand_vector_operations_1): Compute in
3242 vector_compute_type only when the size of vector_compute_type is
3243 less than the size of type.
3244
c703e618
EB
32452009-06-28 Eric Botcazou <ebotcazou@adacore.com>
3246
3247 * fold-const.c (contains_label_1): Fix comments.
3248 (contains_label_p): Do not walk trees multiple time.
3249
0948ccb2
PB
32502009-06-28 Paolo Bonzini <bonzini@gnu.org>
3251
897eef7b
UB
3252 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
3253 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
3254 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
3255 ix86_fp_comparison_operator.
3256 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
3257 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
3258 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
3259 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
3260 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
3261 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
3262 (related splits): Change predicate to ix86_fp_comparison_operator.
3263 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
3264 instead of ix86_fp_comparison_codes.
3265 (ix86_trivial_fp_comparison_operator,
3266 ix86_fp_comparison_operator): New.
3267 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
3268 (ix86_expand_compare): Eliminate last two parameters.
3269 (ix86_fp_jump_nontrivial_p): Kill.
3270 * config/i386/i386.c (put_condition_code): Eliminate call to
3271 ix86_fp_comparison_codes and subsequent assertion.
3272 (ix86_fp_comparison_codes): Eliminate.
3273 (ix86_fp_swap_condition): New.
3274 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
3275 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
3276 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
3277 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
3278 and ix86_fp_swap_condition.
3279 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
3280 Use ix86_fp_comparison_strategy.
3281 (ix86_expand_compare): Likewise. Eliminate last two arguments.
3282 (ix86_fp_jump_nontrivial_p): Eliminate.
3283 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
3284 call to ix86_expand_compare.
3285 (ix86_split_fp_branch, ix86_expand_setcc,
3286 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
3287 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
0948ccb2 3288
accbd151
PB
32892009-06-28 Paolo Bonzini <bonzini@gnu.org>
3290
897eef7b
UB
3291 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
3292 related to jump_clobbers.
3293 * config/arm/arm.md (conds): Remove jump_clob case.
3294 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
3295 splits): Change comparison_operator to arm_comparison_operator.
3296 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
3297 Eliminate.
accbd151 3298
45475a3f
PB
32992009-06-28 Paolo Bonzini <bonzini@gnu.org>
3300
897eef7b
UB
3301 * dojump.c (do_compare_rtx_and_jump): Try swapping the
3302 condition for floating point modes.
3303 * expmed.c (emit_store_flag_1): Move here a bigger part
3304 of emit_store_flag.
3305 (emit_store_flag): Try swapping the condition for floating point
3306 modes.
3307 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
45475a3f 3308
495499da
PB
33092009-06-28 Paolo Bonzini <bonzini@gnu.org>
3310
897eef7b
UB
3311 * expr.c (expand_expr_real_1): Just use do_store_flag.
3312 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
3313 emit_store_flag_force.
3314 * expmed.c (emit_store_flag_force): Copy here trick
3315 previously in expand_expr_real_1. Try reversing the comparison.
3316 (emit_store_flag_1): Work if target is NULL.
3317 (emit_store_flag): Work if target is NULL, using the result mode
3318 from the comparison. Use split_comparison, restructure final part
3319 to simplify conditionals.
495499da 3320
337e5d98
PB
33212009-06-28 Paolo Bonzini <bonzini@gnu.org>
3322
897eef7b
UB
3323 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
3324 * dojump.c (do_jump): Change handling of floating-point
3325 ops to use just do_compare_and_jump.
3326 (split_comparison): New.
3327 (do_compare_rtx_and_jump): Add here logic coming previously
3328 in do_jump, using split_comparison.
337e5d98 3329
2ca57608
L
33302009-06-27 H.J. Lu <hongjiu.lu@intel.com>
3331
3332 PR target/40489
3333 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
3334
8122ccf1
PB
33352009-06-27 Paolo Bonzini <bonzini@gnu.org>
3336
3337 * tree-ssa-alias.c: Fix unintentional commit.
3338
b9cafe60
PB
33392009-06-27 Paolo Bonzini <bonzini@gnu.org>
3340
3341 * passes.c (execute_one_pass): Fix unintentional commit.
3342
4c78c26b
PB
33432009-06-27 Paolo Bonzini <bonzini@gnu.org>
3344
2ca57608
L
3345 * df-problems.c (df_set_seen, df_unset_seen): Delete.
3346 (df_rd_local_compute, df_md_local_compute): Inline them.
4c78c26b 3347
2ca57608
L
3348 (df_md_scratch): New.
3349 (df_md_alloc, df_md_free): Allocate/free it.
3350 (df_md_local_compute): Only include live registers in init.
3351 (df_md_transfer_function): Prune the in-set computed by
3352 the confluence function, and the gen-set too.
4c78c26b
PB
3353
33542009-06-27 Paolo Bonzini <bonzini@gnu.org>
c6741572
PB
3355
3356 PR rtl-optimization/26854
2ca57608
L
3357 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
3358 * df-problems.c (df_rd_add_problem): Fix comment.
3359 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
3360 df_md_simulate_artificial_defs_at_top,
3361 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
3362 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
3363 df_md_transfer_function, df_md_init, df_md_confluence_0,
3364 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
3365 problem_MD, df_md_add_problem): New.
3366 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
3367 df_md_get_bb_info): New.
1e9ae5ab 3368 (DF_LAST_PROBLEM_PLUS1): Adjust.
2ca57608
L
3369
3370 * Makefile.in (fwprop.o): Include domwalk.h.
3371 * fwprop.c: Include domwalk.h.
3372 (reg_defs, reg_defs_stack): New.
3373 (bitmap_only_bit_between): Remove.
3374 (process_defs): New.
3375 (process_uses): Use reg_defs and local_md instead of
3376 bitmap_only_bit_between and local_rd.
3377 (single_def_use_enter_block): New, from build_single_def_use_links.
3378 (single_def_use_leave_block): New.
3379 (build_single_def_use_links): Remove code moved to
3380 single_def_use_enter_block, invoke domwalk.
3381 (use_killed_between): Adjust comment.
c6741572 3382
7ff23740
PB
33832009-06-27 Paolo Bonzini <bonzini@gnu.org>
3384
3385 * bitmap.h (bitmap_ior_and_into): New.
3386 * bitmap.c (bitmap_ior_and_into): New.
3387
ccf5c864
PB
33882009-06-27 Paolo Bonzini <bonzini@gnu.org>
3389
2ca57608
L
3390 * domwalk.h (struct dom_walk_data): Remove all callbacks except
3391 before_dom_children_before_stmts and after_dom_children_after_stmts.
3392 Rename the two remaining callbacks to just before_dom_children and
3393 after_dom_children. Remove other GIMPLE statement walking bits.
3394 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
3395 * graphite.c: Do not include domwalk.h.
3396 * tree-into-ssa.c (interesting_blocks): New global.
3397 (struct mark_def_sites_global_data): Remove it and names_to_rename.
3398 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
3399 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
3400 now that they're not domwalk callbacks.
3401 (rewrite_initialize_block): Rename to...
3402 (rewrite_enter_block): ... this, place after called functions. Test
3403 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
3404 (rewrite_finalize_block): Rename to...
3405 (rewrite_leave_block): ... this, place after called functions.
3406 (rewrite_update_init_block): Rename to...
3407 (rewrite_update_enter_block): ... this, place after called functions.
3408 Test interesting_blocks, call rewrite_update_stmt and
3409 rewrite_update_phi_arguments.
3410 (rewrite_update_fini_block): Rename to...
3411 (rewrite_leave_block): ... this, place after called functions.
3412 (rewrite_blocks): Remove last argument, simplify initialization of
3413 walk_data.
3414 (mark_def_sites_initialize_block): Rename to...
3415 (mark_def_sites_block): ... this, call mark_def_sites.
3416 (mark_def_sites_blocks): Remove argument, simplify initialization of
3417 walk_data.
3418 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
3419 (update_ssa): Likewise.
3420 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
3421 callback.
3422 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
3423 (dom_opt_initialize_block): Rename to...
3424 (dom_opt_enter_block): ... this, place after called functions. Walk
3425 statements here, inline propagate_to_outgoing_edges.
3426 (dom_opt_finalize_block): Rename to...
3427 (dom_opt_leave_block): ... this, place after called functions.
3428 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
3429 domwalk callback.
3430 (dse_enter_block, dse_record_phi): New.
3431 (dse_record_phis): Delete.
3432 (dse_finalize_block): Rename to...
3433 (dse_leave_block): ... this.
3434 (tree_ssa_dse): Simplify initialization of walk_data.
3435 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
3436 Adjust initialization of walk_data.
3437 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
3438 * tree-ssa-loop-phiopt.c (get_non_trapping):
3439 Adjust initialization of walk_data.
3440 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
3441 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
3442 it's not a domwalk callback.
3443 (uncprop_initialize_block): Rename to...
3444 (dse_enter_block): ... this, call uncprop_into_successor_phis.
3445 (dse_finalize_block): Rename to...
3446 (dse_leave_block): ... this.
3447 (tree_ssa_uncprop): Simplify initialization of walk_data.
3448 * Makefile.in: Adjust dependencies.
ccf5c864 3449
75d28030
RE
34502009-06-27 Richard Earnshaw <rearnsha@arm.com>
3451
3452 * arm.md (casesi): Fix test for Thumb1.
3453 (thumb1_casesi_internal_pic): Likewise.
3454 (thumb1_casesi_dispatch): Likewise.
3455
9833720d
DG
34562009-06-26 Daniel Gutson <dgutson@codesourcery.com>
3457
3458 * config/arm/arm-cores.def: Added core cortex-m0.
3459 * config/arm/arm-tune.md: Regenerated.
3460 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
3461
bb7681bf
DD
34622009-06-26 DJ Delorie <dj@redhat.com>
3463
3464 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
3465
3466 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
3467 the scheduler doesn't tag jump insns.
3468
a35120a3
L
34692009-06-26 H.J. Lu <hongjiu.lu@intel.com>
3470
3471 * c-decl.c (merge_decls): Re-indent.
3472
4b6e55df
JJ
34732009-06-26 Janis Johnson <janis187@us.ibm.com>
3474
3475 PR c/39902
3476 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
3477 Special-case decimal float constants.
3478
27dbd3ac
RH
34792009-06-26 Richard Henderson <rth@redhat.com>
3480
3481 * function.h (struct function): Add cannot_be_copied_reason,
3482 and cannot_be_copied_set.
3483 * tree-inline.c (has_label_address_in_static_1): Rename from
3484 inline_forbidden_p_2; don't set inline_forbidden_reason here.
3485 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
3486 don't set inline_forbidden_reason.
3487 (copy_forbidden): New function, split out of inline_forbidden_p.
3488 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
3489 (inline_forbidden_p): Use copy_forbidden.
3490 (tree_versionable_function_p): Likewise.
3491 (inlinable_function_p): Merge into tree_inlinable_function_p.
3492 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
3493 * ipa-cp.c (ipcp_versionable_function_p): New function.
3494 (ipcp_cloning_candidate_p): Use it.
3495 (ipcp_node_modifiable_p): Likewise.
3496
efb303b1
OR
34972009-06-26 Olatunji Ruwase <tjruwase@google.com>
3498
3499 * builtins.c (expand_builtin_alloca): Handle builtin alloca
3500 that is marked not to be inlined. Remove flag_mudflap use.
3501 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
3502 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
3503
947e21c1
SE
35042009-06-26 Steve Ellcey <sje@cup.hp.com>
3505
3506 PR bootstrap/40338
3507 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
3508 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
3509
bae4cf87
KT
35102009-06-26 Kai Tietz <kai.tietz@onevision.com>
3511
3512 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
3513 shared libgcc.
3514 (__mingwthr_remove_key_dtor): Likewise.
3515
46aaa417
RG
35162009-06-26 Richard Guenther <rguenther@suse.de>
3517
1e9ae5ab 3518 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
46aaa417 3519
b3c54c8f
SB
35202009-06-26 Steven Bosscher <steven@gcc.gnu.org>
3521
3522 PR middle-end/40525
3523 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
3524 try the non-cond_exec path also.
3525
f5e66865
JDA
35262009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3527
3528 PR target/40468
3529 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
3530 (output_cbranch): Use new functions.
3531 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
3532 Likewise.
3533
8beb65e3
MM
35342009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3535 Pat Haugen <pthaugen@us.ibm.com>
3536 Revital Eres <ERES@il.ibm.com>
3537
d66a97e2
MM
3538 * config/rs6000/rs6000.c (print_operand): Correct lossage message
3539 for %c error. Add %x support to print VSX registers as a unified
3540 register set, instead of separate float and altivec registers.
3541 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
3542 %y case, and add support for VSX pre-modify addresses.
3543 (output_toc): Add assert for CONST containing an integer constant
3544 in the PLUS case.
3545 (rs6000_adjust_cost): Add POWER7 support.
3546 (insn_must_be_first_in_group): Ditto.
3547 (insn_must_be_last_in_group): Ditto.
3548 (rs6000_emit_popcount): Ditto.
3549 (rs6000_vector_mode_supported_p): Ditto.
3550
8beb65e3
MM
3551 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
3552 Change some of the functions called by macros to being called
3553 through a pointer, so debug functions can be inserted if
3554 -mdebug=addr or -mdebug=cost.
3555 (rs6000_preferred_reload_class_ptr): Ditto.
3556 (rs6000_secondary_reload_class_ptr): Ditto.
3557 (rs6000_secondary_memory_needed_ptr): Ditto.
3558 (rs6000_cannot_change_mode_class_ptr): Ditto.
3559 (rs6000_secondary_reload_inner): Ditto.
3560 (rs6000_legitimize_reload_address): Ditto.
3561 (rs6000_legitimize_reload_address_ptr): Ditto.
3562 (rs6000_mode_dependent_address): Ditto.
3563 (rs6000_mode_dependent_address_ptr): Ditto.
3564
3565 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
3566 function to return true if the mode allows reg + integer
3567 addresses.
3568 (virtual_stack_registers_memory_p): New function to return true if
3569 the address refers to a virtual stack register.
3570 (rs6000_legitimate_offset_address_p): Move code to say whether a
3571 mode supports reg+int addressing to reg_offset_addressing_ok_p and
3572 call it.
3573 (rs6000_legitimate_address_p): Add checks for modes that only can
3574 do reg+reg addressing. Start adding VSX support.
3575 (rs6000_legitimize_reload_address): Ditto.
3576 (rs6000_legitimize_address): Ditto.
3577 (rs6000_debug_legitimate_address_p): New debug functions for
3578 -mdebug=addr and -mdebug=cost.
3579 (rs6000_debug_rtx_costs): Ditto.
3580 (rs6000_debug_address_costs): Ditto.
3581 (rs6000_debug_adjust_cost): Ditto.
3582 (rs6000_debug_legitimize_address): Ditto.
3583 (rs6000_legitimize_reload_address_ptr): Point to call normal
3584 function or debug function. Make functions called via pointer
3585 static.
3586 (rs6000_mode_dependent_address_ptr): Ditto.
3587 (rs6000_secondary_reload_class_ptr): Ditto.
3588 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
3589 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
3590 into a friendlier error.
3591 (rs6000_init_builtins): Add initial VSX support.
3592 (rs6000_adjust_cost): Fix some spacing issues.
3593
3594 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
3595 (REG_CLASS_NAMES): Ditto.
3596 (REG_CLASS_CONTENTS): Ditto.
3597 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
3598 pointer, to add -mdebug=addr support.
3599 (CANNOT_CHANGE_MODE_CLASS): Ditto.
3600 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
3601 -mdebug=addr support.
3602 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
3603 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
3604 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
3605
3606 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
3607 16-bit values.
3608 (bswapsi*): Set attribute types for load/store. Add combiner
3609 patterns to eliminate zero extend on 64-bit.
3610 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
3611 stdbrx if the hardware supports those instructions.
3612
96be7a11
ILT
36132009-06-25 Ian Lance Taylor <iant@google.com>
3614
3615 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
3616 (Link Options): Document -static-libstdc++.
3617
777a3a6a
AP
36182009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
3619
3620 PR target/38731
3621 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
3622 DATA_ALIGNMENT instead.
3623
1cb367ae
RG
36242009-06-25 Richard Guenther <rguenther@suse.de>
3625
3626 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
3627 indirect references against the callused/escaped solutions.
3628 (call_may_clobber_ref_p_1): Likewise.
3629
fac52fdd
MJ
36302009-06-25 Martin Jambor <mjambor@suse.cz>
3631
3632 PR tree-optimization/40493
3633 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
3634 (enum unscalarized_data_handling): New type.
3635 (handle_unscalarized_data_in_subtree): Return what has been done.
3636 (load_assign_lhs_subreplacements): Handle left flushes differently.
3637 (sra_modify_assign): Use unscalarized_data_handling, simplified
3638 condition determining whether to remove the statement.
3639
3cb71167 36402009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
c8aca64f
EB
3641
3642 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
3643 excerpt - @ should be doubled for texinfo.
3cb71167 3644
5a82ecd9
ILT
36452009-06-24 Ian Lance Taylor <iant@google.com>
3646
3647 * config/arc/arc.c: Include "df.h".
3648 (arc_attribute_table): Make static. Move higher in file.
3649 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
3650 (output_shift): Initialize n later to avoid warning.
3651 * config/arm/arm.c (arm_attribute_table): Make static. Move
3652 higher in file.
3653 * config/avr/avr.c (avr_attribute_table): Make static. Move
3654 higher in file.
3655 (reg_class_tab): Change array type from int to enum reg_class.
3656 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
3657 LABEL_REF.
3658 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
3659 (lshrhi3_out): Likewise.
3660 (class_likely_spilled_p): Change return type to bool.
3661 (avr_rtx_costs): Use local code variable with enum type.
3662 * config/avr/avr.md (movmemhi): Use add_reg_note.
3663 (andhi3, andsi3): Don't use AS2 with "and".
3664 (iorhi3, iorsi3): Don't use AS2 with "or".
1e9ae5ab 3665 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
5a82ecd9
ILT
3666 * config/crx/crx.c: Include "df.h".
3667 (crx_attribute_table): Make static.
3668 * config/m32r/m32r.c: Include "df.h".
3669 (m32r_attribute_table): Make static. Move higher in file.
3670 (pop): Use add_reg_note.
3671 (block_move_call): Change 0 to LCT_NORMAL in function call.
3672 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
3673 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
3674 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
3675 declare, not just when TREE_CODE is defined.
3676 * config/m68hc11/m68hc11.c: Include "expr.h".
3677 (m68hc11_attribute_table): Make static. Move higher in file.
3678 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
3679 function call.
3680 (m68hc11_register_indirect_p): Likewise.
3681 (m68hc11_function_arg_padding): Change return type to enum
3682 direction.
3683 (emit_move_after_reload): Use add_reg_note.
3684 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
3685 (m68hc11_split_logical): Likewise.
3686 (m68hc11_rtx_costs): Add local code_and outer_code variables with
3687 enum type.
3688 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
3689 to VOIDmode in function call.
3690 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
3691 tree is defined.
3692 (m68hc11_split_logical): Update declaration.
3693 (m68hc11_function_arg_padding): Update declaration.
3694 * config/mcore/mcore.c (regno_reg_class): Change form array of int
3695 to array of enum reg_class.
3696 (mcore_attribute_table): Make static. Move higher in file.
3697 (mcore_rtx_costs): Add cast to enum type.
3698 * config/mcore/mcore.h (regno_reg_class): Update declaration.
3699 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
3700 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
3701 in file.
3702 * config/sh/predicates.md (trapping_target_operand): Rename and to
3703 and_expr.
3704 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
3705 higher in file.
3706 * config/spu/spu.c (spu_attribute_table): Make static. Move
3707 higher in file.
3708 * config/v850/v850.c (v850_attribute_table): Make static. Move
3709 higher in file.
3710 (v850_rtx_costs): Use local code with enum type.
3711 (expand_epilogue): Add cast.
3712 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
3713
b4589acc
TY
37142009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
3715
3716 PR target/40515
3717 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
3718 -m2a-single-only and -m2a-nofpu.
3719 * config/sh/sh.opt: Document m2a generates FPU code.
3720
3be639f7
AS
37212009-06-24 Anatoly Sokolov <aesok@post.ru>
3722
3723 * defaults.h (CAN_ELIMINATE): Provide default.
3724 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
3725 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
3726 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
3727 * config/spu/spu.h (CAN_ELIMINATE): Delete.
3728 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
3729 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
3730 * config/cris/cris.h (CAN_ELIMINATE): Delete.
3731 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
3732 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
3733 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
3734
b6402fc3
DD
37352009-06-24 DJ Delorie <dj@redhat.com>
3736
3737 * mep-ext-cop.cpu: Fix copyright notice.
3738 * mep-default: Fix copyright notice.
3739 * mep-core: Fix copyright notice.
3740 * mep: Fix copyright notice.
3741 * mep-ivc2: Fix copyright notice.
3742 * mep-c5: Fix copyright notice.
3743
ead1eb1d
DC
37442009-06-24 Denis Chertykov <chertykov@gmail.com>
3745
3746 * doc/contrib.texi (Contributors):
3747
fb6234e0
AK
37482009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
3749
3750 PR middle-end/40501
3751 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
3752 src and dst operands if necessary.
3753
7acf4da6
DD
37542009-06-23 DJ Delorie <dj@redhat.com>
3755
3756 Add MeP port.
3757 * config.gcc: Add mep support.
3758 * recog.c: Resurrect validate_replace_rtx_subexp().
3759 * recog.h: Likewise.
3760 * config/mep/: Add new port:
3761 * config/mep/constraints.md: New file.
3762 * config/mep/default.h: New file.
3763 * config/mep/intrinsics.h: New file.
3764 * config/mep/intrinsics.md: New file.
3765 * config/mep/ivc2-template.h: New file.
3766 * config/mep/mep-c5.cpu: New file.
3767 * config/mep/mep-core.cpu: New file.
3768 * config/mep/mep-default.cpu: New file.
3769 * config/mep/mep-ext-cop.cpu: New file.
3770 * config/mep/mep-intrin.h: New file.
3771 * config/mep/mep-ivc2.cpu: New file.
3772 * config/mep/mep-lib1.asm: New file.
3773 * config/mep/mep-lib2.c: New file.
3774 * config/mep/mep-pragma.c: New file.
3775 * config/mep/mep-protos.h: New file.
3776 * config/mep/mep-tramp.c: New file.
3777 * config/mep/mep.c: New file.
3778 * config/mep/mep.cpu: New file.
3779 * config/mep/mep.h: New file.
3780 * config/mep/mep.md: New file.
3781 * config/mep/mep.opt: New file.
3782 * config/mep/predicates.md: New file.
3783 * config/mep/t-mep: New file.
3784
00020c16
ILT
37852009-06-23 Ian Lance Taylor <iant@google.com>
3786
3787 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
3788 from loose_warn into c_loose_warn and from strict_warn into
3789 c_strict_warn. Set and substitute warn_cxxflags. Check for
3790 --enable-build-with-cxx. Set and substitute
3791 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
3792 * Makefile.in (CXXFLAGS): New variable.
3793 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
3794 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
3795 the default is the same as $(STRICT_WARN).
3796 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
3797 (CXX): New variable.
3798 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
3799 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
3800 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
3801 (HOST_LIBS): New variable.
3802 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
3803 (ALL_CXXFLAGS): New variable.
3804 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
3805 * doc/install.texi (Configuration): Document
3806 --enable-build-with-cxx, --with-stage1-ldflags,
3807 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
3808 * configure: Rebuild.
3809
2d8b752f 38102009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9df5bfe4 3811
2d8b752f
EB
3812 * config/arm/arm.c (arm_override_options): Fix braces and formatting
3813 from previous commit.
9df5bfe4 3814
73267076
ILT
38152009-06-23 Ian Lance Taylor <iant@google.com>
3816
3817 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
3818
9a476c9c
ILT
38192009-06-23 Ian Lance Taylor <iant@google.com>
3820
3821 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
3822 with ATTRIBUTE_UNUSED.
3823
cacf1ca8
MM
38242009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3825 Pat Haugen <pthaugen@us.ibm.com>
2d8b752f 3826 Revital Eres <eres@il.ibm.com>
cacf1ca8
MM
3827
3828 * config.in (HAVE_AS_POPCNTD): Add default definition.
3829 (HAVE_AS_LWSYNC): Ditto.
3830
3831 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
3832 release number.
3833 (gcc_cv_as_powerpc_cmpb): Ditto.
3834 (gcc_cv_as_powerpc_dfp): Ditto.
3835 (gcc_cv_as_powerpc_vsx): Ditto.
3836 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
3837 supporting the popcntd/lwsync instructions.
3838 (gcc_cv_as_powerpc_lwsync): Ditto.
3839 * configure: Regenerate.
3840
3841 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
3842 -mcpu=native and -mcpu=power7.
3843 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3844
3845 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
3846 a variable instead of a mask to reduce the number of mask bits.
3847 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3848 (-mbit-word): Ditto.
3849 (-mregnames): Ditto.
3850 * config/rs6000/rs6000.opt (-mupdate): Ditto.
3851 (-mfused-madd): Ditto.
3852
3853 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
3854 2.06 instructions.
3855 (-mvsx): New switch for VSX instructions.
3856 (-misel): Move from a variable to a mask to allow it to be set by
3857 -mcpu=.
3858
3859 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
3860 function declaration to an array declaration.
3861 (rs6000_hard_regno_nregs): New external array declaration.
3862
3863 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
3864 files included by rs6000.md.
3865
3866 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3867 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
3868
3869 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
3870 a target mask.
3871 (rs6000_debug_reg): New -mdebug= variables.
3872 (rs6000_debug_addr): Ditto.
3873 (rs6000_debug_cost): Ditto.
3874 (rs6000_pmode): New variable to hold Pmode.
3875 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
3876 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
3877 calculated at compiler start.
3878 (rs6000_hard_regno_nregs): Change function to an array which holds
3879 HARD_REGNO_NREGS calculated at compiler start.
3880 (rs6000_explicit_options): Delete isel field.
3881 (rs6000_vector_unit): New array to hold which vector unit
3882 supports arithmetic options for a given type.
3883 (rs6000_vector_mem): New array to hold which vector unit supports
3884 memory reference operations for a given type.
3885 (rs6000_vector_align): New array to given the alignment of each
3886 vector type.
3887 (power7_cost): New basic costs for power7.
3888 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
3889 (rs6000_hard_regno_nregs_internal): New function, moved from
3890 HARD_REGNO_NREGS, to calculate the number of registers each hard
3891 register takes for each type.
3892 (rs6000_debug_reg_print): New function for -mdebug=reg support.
1e9ae5ab 3893 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
cacf1ca8
MM
3894 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
3895 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
3896 unit information here so it is calculated once at compiler startup
3897 time.
3898 (rs6000_override_options): Make -misel a target mask. Add more
3899 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
3900 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
3901 -mdebug=cost.
3902 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
3903 (rs6000_handle_option): Move -misel from variable to target mask.
3904 (rs6000_builtin_mask_for_load): Add VSX support.
3905 (rs6000_conditional_register_usage): Ditto.
3906 (USE_ALTIVEC_FOR_ARG_P): Ditto.
3907 (function_arg_boundary): Ditto.
3908 (rs6000_expand_builtin): Ditto.
3909 (def_builtin): Make abort message a little friendlier.
3910 (rs6000_emit_int_cmove): Add support for 64-bit isel.
3911
3912 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
3913 assembler support the popcntd instruction instead of a vsx
3914 instruction to enable power7 support.
3915 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
3916 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
3917 option to the assembler if -mcpu=native.
3918 (ASM_CPU_NATIVE_SPEC): Ditto.
3919 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
3920 ISA 2.06 features.
3921 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
3922 the lwsync instruction.
3923 (enum processor_type): Add PROCESSOR_POWER7.
3924 (rs6000_debug_reg): New -mdebug= options.
3925 (rs6000_debug_addr): Ditto.
3926 (rs6000_debug_cost): Ditto.
3927 (rs6000_isel): Delete.
3928 (enum rs6000_vector): New enum to say what vector unit we have.
3929 (VECTOR_UNIT_*): New macros to say which vector unit has
3930 arithmetic operations for a given type.
3931 (VECTOR_MEM_*): New macros to say which vector unit has memory
3932 operations for a given type.
3933 (TARGET_LDBRX): Whether the machine supports the ldbrx
3934 instruction.
3935 (TARGET_ISEL): Delete, -misel moved to be a mask.
3936 (TARGET_ISEL64): New macro for 64-bit isel support.
3937 (UNITS_PER_VSX_WORD): New macro.
3938 (POINTER_SIZE): Move to be an external variable, rather than
3939 calculating whether we are generating 32 ot 64-bit code.
3940 (Pmode): Ditto.
3941 (STACK_BOUNDARY): Add VSX support.
3942 (LOCAL_ALIGNMENT): Ditto.
3943 (SLOW_UNALIGNED_ACCESS): Ditto.
3944 (VSX_REGNO_P): New macro for VSX support.
3945 (VFLOAT_REGNO_P): Ditto.
3946 (VINT_REGNO_P): Ditto.
3947 (VLOGICAL_REGNO_P): Ditto.
3948 (VSX_VECTOR_MODE): Ditto.
3949 (VSX_SCALAR_MODE): Ditto.
3950 (VSX_MODE): Ditto.
3951 (VSX_MOVE_MODE): Ditto.
3952 (VSX_REG_CLASS_P): Ditto.
3953 (HARD_REGNO_NREGS): Instead of calling a function, use an array
3954 lookup.
3955 (UNITS_PER_SIMD_WORD): Add VSX support.
3956 (MODES_TIEABLE_P): Ditto.
3957 (STARTING_FRAME_OFFSET): Ditto.
3958 (STACK_DYNAMIC_OFFSET): Ditto.
3959 (EPILOGUE_USES): Ditto.
3960 (REGNO_REG_CLASS): Move to array lookup.
3961 (CLASS_MAX_NREGS): Ditto.
3962 (rs6000_vector_reg_class): Add declaration.
3963 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
3964 overlap with the floating point and Altivec registers.
3965
3966 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
3967
3968 * config/rs6000/driver-rs6000.c (asm_names): New static array to
3969 give the appropriate asm switches if -mcpu=native.
3970 (host_detect_local_cpu): Add support for "asm".
3971 (host_detect_local_cpu): Follow GNU code guidelines for name.
3972
3973 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
3974 -mbit-word to a variable instead of being a target mask.
3975
3976 * config/rs6000/sync.md (lwsync): If the assembler supports it,
3977 emit the lwsync instruction instead of emitting the instruction as
3978 an integer constant.
3979
3980 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
3981 fixuns_trundfsi2, move expander into rs6000.md.
3982
3983 * config/rs6000/rs6000.md (cpu): Add power7.
3984 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
3985 (logical predicate patterns): Change the single instruction
3986 primitives that set CR0 to be fast_compare instead of compare.
3987 (norsi*): Ditto.
3988 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
3989 (popcntddi2): Ditto.
3990 (popcount<mode>): Ditto.
3991 (floating multiply/add insns): Name the floating point
3992 multiply/add insns.
3993 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
3994 (isel_unsigned_<mode>): Ditto.
3995 (fixuns_trundfsi2): Move expander here from spe.md.
3996 (smindi3): Define if we have -misel on 64-bit systems.
3997 (smaxdi3): Ditto.
3998 (umindi3): Ditto.
3999 (umaxdi3): Ditto.
4000
59ab92d2
AS
40012009-06-23 Anatoly Sokolov <aesok@post.ru>
4002
4003 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
4004 extra_objs.
4005 * config/avr/avr.c (avr_current_device): New variable.
4006 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
4007 (avr_arch, mcu_type_s): Move to avr.h.
4008 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
4009 default_data_section_start fields.
4010 (avr_arch): Moved from avr.c.
4011 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
4012 library_name fields.
4013 (avr_current_device, avr_mcu_types, avr_arch_types,
4014 avr_device_to_arch, avr_device_to_data_start,
4015 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
4016 (EXTRA_SPEC_FUNCTIONS): Define.
4017 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
4018 options mapping. Use device_to_arch and device_to_data_start insted.
4019 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
4020 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
4021 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
4022 * config/avr/driver-avr.c: New file.
4023 * config/avr/avr-devices.c: New file.
4024
8593e0b6
JJ
40252009-06-23 Jakub Jelinek <jakub@redhat.com>
4026
7eb3f1f7
JJ
4027 * var-tracking.c (unshare_variable): Force initialized to
4028 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
4029 (set_variable_part): Likewise.
4030 (struct variable_union_info): Remove pos_src field.
4031 (vui_vec, vui_allocated): New variables.
4032 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
4033 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
4034 == 1 use a simpler sorting algorithm. Compute pos field right
4035 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
4036 Avoid quadratic comparison if !flag_var_tracking_uninit.
4037 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
4038 unshare_variable unconditionally.
4039 (dataflow_set_different_2): Removed.
4040 (dataflow_set_different): Don't traverse second hash table.
4041 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
4042 unconditionally to var_reg_set or var_mem_set.
4043 (emit_notes_in_bb): Likewise.
4044 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
4045 unshare_variable.
4046 (emit_note_insn_var_location): Don't set initialized to
4047 VAR_INIT_STATUS_INITIALIZED early.
4048 (vt_finalize): Free vui_vec if needed, clear vui_vec and
4049 vui_allocated.
4050 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
4051
8593e0b6
JJ
4052 * tree-object-size.c (addr_object_size): Instead of checking
4053 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
4054 are no FIELD_DECLs following it.
4055
fef015a8
AK
40562009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
4057
4058 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
4059 order to match bswaps with signed source operands.
4060
b6d83244
RO
40612009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4062
4063 * sdbout.c (sdbout_one_type): Fix braces in switch.
4064
0bbf2ffa
RG
40652009-06-23 Richard Guenther <rguenther@suse.de>
4066
4067 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
4068 member.
4069 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
4070 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
4071 var_callused, callused_tree, var_storedanything, storedanything_tree,
4072 var_integer, integer_tree): Remove global variables.
4073 (new_var_info): Do not pass new id, append the new var to the
4074 global variable vector.
4075 (do_ds_constraint): Use is_global_var member of the variable-info.
4076 (new_scalar_tmp_constraint_exp): Adjust.
4077 (create_function_info_for): Likewise.
4078 (create_variable_info_for): Likewise.
4079 (find_what_var_points_to): Remove dead code.
4080 (init_base_vars): Simplify.
4081 (compute_points_to_sets): Adjust.
4082
28a5fb2e
AN
40832009-06-22 Adam Nemet <anemet@caviumnetworks.com>
4084
4085 * combine.c (try_combine): Dump information about the insns we're
4086 combining.
4087
cfb8805e
AN
40882009-06-22 Adam Nemet <anemet@caviumnetworks.com>
4089
4090 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
4091 check when calling force_to_mode on TRUNCATE's operand.
4092
df4ba119
ILT
40932009-06-22 Ian Lance Taylor <iant@google.com>
4094
897eef7b 4095 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
df4ba119 4096
c986683b
SB
40972009-06-22 Steven Bosscher <steven@gcc.gnu.org>
4098
4099 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
4100
5c6927bd
RW
41012009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4102
4103 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
4104 override library linkage flags such as -static-libgcc or
4105 -shared-libgcc.
4106
19973be2
MK
41072009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
4108
4109 * config/m68k/m68k-devices.def: Add line for MCF5221x.
4110
7a5d2eb8
ILT
41112009-06-22 Ian Lance Taylor <iant@google.com>
4112
4113 * config/linux.opt: Put mglibc ahead of muclibc.
4114
4115 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
4116 for duplicate decls.
4117
86e3c83a
MK
41182009-06-22 Matthias Klose <doko@ubuntu.com>
4119
4120 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
4121
0a7d7dea
MK
41222009-06-22 Steven Bosscher <steven@gcc.gnu.org>
4123
4124 PR objc/28050
4125 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
4126 instead of NULL if a parser error occurs.
4127
a77264d5
RO
41282009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4129
4130 * dwarf2out.c (dwarf2_debug_hooks): Initialize
4131 non-DWARF2_DEBUGGING_INFO version.
4132
54f549af
KT
41332009-06-22 Kai Tietz <kai.tietz@onevision.com>
4134
34481f28
UB
4135 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
4136 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4137
4138 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
54f549af
KT
4139 (LIBGCC2_TF_CEXT): Define.
4140 (TF_SIZE): Define.
4141
7cea01df
RR
41422009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4143
4144 PR target/40463
4145 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
4146
3ce14752
RR
41472009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4148
34481f28
UB
4149 * config/arm/arm.c (arm_override_options): Disable
4150 -mcaller-super-interworking and -mcallee-super-interworking.
4151 * doc/invoke.texi (ARM Options): Document this.
3ce14752 4152
d58bc084
NS
41532009-06-22 Nathan Sidwell <nathan@codesourcery.com>
4154
4155 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
4156 * config/arm/constraints.md (j): New constraint for movw operands.
4157 (N): Remove thumb2 meaning.
4158 * config/arm/arm.md (*arm_movw): Delete.
4159 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
4160 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
4161 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
4162
ac6cb60c
MJ
41632009-06-22 Martin Jambor <mjambor@suse.cz>
4164
4165 PR tree-optimization/40492
4166 * tree-sra.c (sra_modify_assign): Pass zero offsets to
4167 build_ref_for_offset.
4168
481683e1
SZ
41692009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
4170
4171 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
4172 JUMP_TABLE_DATA_P predicates where applicable.
4173 * auto-inc-dec.c: Ditto.
4174 * builtins.c: Ditto.
4175 * caller-save.c: Ditto.
4176 * calls.c: Ditto.
4177 * cfgcleanup.c: Ditto.
4178 * cfglayout.c: Ditto.
4179 * cfgrtl.c: Ditto.
4180 * combine.c: Ditto.
4181 * combine-stack-adj.c: Ditto.
4182 * cse.c: Ditto.
4183 * cselib.c: Ditto.
4184 * dbxout.c: Ditto.
4185 * df-scan.c: Ditto.
4186 * dse.c: Ditto.
4187 * dwarf2asm.c: Ditto.
4188 * dwarf2out.c: Ditto.
4189 * emit-rtl.c: Ditto.
4190 * except.c: Ditto.
4191 * explow.c: Ditto.
4192 * expmed.c: Ditto.
4193 * expr.c: Ditto.
4194 * final.c: Ditto.
4195 * function.c: Ditto.
4196 * fwprop.c: Ditto.
4197 * gcse.c: Ditto.
4198 * genpreds.c: Ditto.
4199 * genrecog.c: Ditto.
4200 * ifcvt.c: Ditto.
4201 * ira-costs.c: Ditto.
4202 * ira-lives.c: Ditto.
4203 * jump.c: Ditto.
4204 * loop-iv.c: Ditto.
4205 * lower-subreg.c: Ditto.
4206 * modulo-sched.c: Ditto.
4207 * optabs.c: Ditto.
4208 * postreload.c: Ditto.
4209 * print-rtl.c: Ditto.
4210 * recog.c: Ditto.
4211 * reginfo.c: Ditto.
4212 * regmove.c: Ditto.
4213 * reload1.c: Ditto.
4214 * reload.c: Ditto.
4215 * reorg.c: Ditto.
4216 * rtlanal.c: Ditto.
4217 * rtl.c: Ditto.
4218 * sched-vis.c: Ditto.
4219 * sdbout.c: Ditto.
4220 * sel-sched-ir.c: Ditto.
4221 * simplify-rtx.c: Ditto.
4222 * targhooks.c: Ditto.
4223 * var-tracking.c: Ditto.
4224 * vmsdbgout.c: Ditto.
4225
1407d6cf
MK
42262009-06-22 Matthias Klose <doko@ubuntu.com>
4227
4228 * Makefile.in (install-plugin): Always use DESTDIR.
4229
28326880
OH
42302009-06-22 Olivier Hainque <hainque@adacore.com>
4231
4232 * config/pa/pa.c (output_call): Don't optimize post call jumps
4233 into return address adjustments if the call may throw.
4234
907dd0c7
RE
42352009-06-21 Richard Earnshaw <rearnsha@arm.com>
4236
4237 * arm.c (thumb1_output_casesi): New function.
4238 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
4239 optimizing for size or PIC.
4240 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
4241 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
4242 (casesi): Handle Thumb-1 when optimizing for size or PIC.
4243 (thumb1_casesi_internal_pic): New expand rule.
4244 (thumb1_casesi_dispatch): New pattern.
4245 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
4246 thumb-1 mode.
4247 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
4248 in the text seciton when PIC or optimizing for size.
4249 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4250 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
4251 preservation properties of code.
4252 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
4253 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
4254 (__gnu_thumb1_case_si): New function.
4255 * t-arm (LIB1ASMSRC): Define here.
4256 (LIB1ASMFUNCS): Add some common functions.
4257 * t-arm-elf (LIB1ASMSRC): Delete.
4258 (LIB1ASMFUNCS): Append to existing set.
4259 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4260 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4261 * t-symbian (LIB1ASMFUNCS): Likewise.
4262 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4263 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4264
2cee1509
RG
42652009-06-21 Richard Guenther <rguenther@suse.de>
4266
4267 PR tree-optimization/38729
4268 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
4269 to loops with a single exit if -fno-expensive-optimizations.
4270
d24686d7
JJ
42712009-06-21 Jakub Jelinek <jakub@redhat.com>
4272
4273 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
4274 (dataflow_set): Change vars type from htab_t to shared_hash.
4275 (shared_hash_pool, empty_shared_hash): New variables.
4276 (vars_clear): Removed.
4277 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
4278 shared_hash_find_slot_unshare, shared_hash_find_slot,
4279 shared_hash_find_slot_noinsert, shared_hash_find): New
4280 static inlines.
4281 (shared_hash_unshare, shared_hash_destroy): New functions.
4282 (unshare_variable): Unshare set->vars if shared, use
4283 shared_hash_htab.
4284 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
4285 (get_init_value, find_src_set_src, dump_dataflow_set,
4286 clobber_variable_part, emit_notes_for_differences): Use
4287 shared_hash_htab.
4288 (dataflow_set_init): Remove second argument, set vars to
4289 empty_shared_hash instead of creating a new htab.
4290 (dataflow_set_clear): Call shared_hash_destroy and set vars
4291 to empty_shared_hash instead of calling vars_clear.
4292 (dataflow_set_copy): Don't call vars_copy, instead just share
4293 the src htab with dst.
4294 (variable_union): Use shared_hash_*, use initially NO_INSERT
4295 lookup if set->vars is shared. Don't keep slot cleared before
4296 calling unshare_variable. Unshare set->vars if needed.
4297 Even ->refcount == 1 vars must be unshared if set->vars is shared
4298 and var needs to be modified.
4299 (variable_canonicalize): New function.
4300 (dataflow_set_union): If dst->vars is empty, just share src->vars
4301 with dst->vars and traverse with variable_canonicalize to canonicalize
4302 and unshare what is needed.
4303 (dataflow_set_different): If old_set and new_set use the same shared
4304 htab, they aren't different. If number of htab elements is different,
4305 htabs are different. Use shared_hash_*.
4306 (dataflow_set_destroy): Call shared_hash_destroy instead of
4307 htab_delete.
4308 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
4309 second argument to dataflow_set_init.
4310 (vt_initialize): Likewise. Initialize shared_hash_pool and
4311 empty_shared_hash, move bb in/out initialization afterwards.
4312 Use variable_htab_free instead of NULL as changed_variables del hook.
4313 (variable_was_changed): Change type of second argument to pointer to
4314 dataflow_set. When inserting var into changed_variables, bump
4315 refcount. Unshare set->vars if set is shared htab and slot needs to
4316 be cleared.
4317 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
4318 lookup if set->vars is shared. Unshare set->vars if needed.
4319 Even ->refcount == 1 vars must be unshared if set->vars is shared
4320 and var needs to be modified. Adjust variable_was_changed caller.
4321 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
4322 vars must be unshared if set->vars is shared and var needs to be
4323 modified. Adjust variable_was_changed caller.
4324 (emit_note_insn_var_location): Don't pool_free var.
4325 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
4326 instead of 1.
4327 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
4328 free_alloc_pool on shared_hash_pool.
4329
525b459f
AG
43302009-06-20 Anthony Green <green@moxielogic.com>
4331
4332 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
4333 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
4334
825be69e
RG
43352009-06-20 Richard Guenther <rguenther@suse.de>
4336
4337 * tree-ssa-structalias.c (find_func_aliases): For memset use
4338 a constraint from NULL if we memset to zero.
4339 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
4340 we explicitly handle that do not read from memory.
4341 (call_may_clobber_ref_p_1): Properly handle builtins that may
4342 set errno.
4343
b14e9388
RG
43442009-06-20 Richard Guenther <rguenther@suse.de>
4345
4346 PR tree-optimization/40495
4347 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
4348 (new_scalar_tmp_constraint_exp): New function.
4349 (process_constraint): Do not create temporary decls.
4350 (process_all_all_constraints): Likewise.
4351 (handle_const_call): Likewise.
4352 (create_function_info_for): Do not set decl.
4353
c885ca89
ILT
43542009-06-19 Ian Lance Taylor <iant@google.com>
4355
4356 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
4357 (rs6000_attribute_table): Make static; move before use.
4358
6569d386
EB
43592009-06-19 Eric Botcazou <ebotcazou@adacore.com>
4360
4361 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
4362 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
4363 Propagate the TREE_READONLY flag without overwriting it.
4364 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
4365 Propagate the TREE_READONLY flag onto the result.
4366 (process_call_operands): Move around. Use correct constant value.
4367
ce41c38b
RR
43682009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4369
4370 PR target/40482
897eef7b 4371 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
ce41c38b
RR
4372 * config/arm/arm.md: Likewise.
4373
96be7a11 43742009-06-19 Ian Lance Taylor <iant@google.com>
d130ae11
ILT
4375
4376 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
4377 to GIMPLE_ERROR_MARK.
4378
4379 * c-typeck.c (build_conditional_expr): Add op1_original_type and
897eef7b 4380 op2_original_type parameters. Warn about using different enum types.
d130ae11
ILT
4381 * c-parser.c (c_parser_conditional_expression): Pass original
4382 types to build_conditional_expr.
4383 * c-tree.h (build_conditional_expr): Update declaration.
4384
d4aa4f4b
ILT
43852009-06-19 Ian Lance Taylor <iant@google.com>
4386
4387 * config/i386/i386.c (ix86_function_specific_save): Test that
4388 fields match values, rather than testing the values are in a
4389 certain range.
4390
779704e7
RG
43912009-06-19 Richard Guenther <rguenther@suse.de>
4392
4393 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4394 ADDR_EXPR pointers.
4395 (ptr_derefs_may_alias_p): Likewise.
4396 (ptr_deref_may_alias_ref_p_1): New function.
4397 (ptr_deref_may_alias_ref_p): Likewise.
4398 (ref_maybe_used_by_call_p_1): Handle builtins that are not
4399 covered by looking at the ESCAPED solution.
4400 (call_may_clobber_ref_p_1): Likewise.
4401 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
4402 Handle NULL_TREE offset. Do not produce redundant constraints.
4403 (process_all_all_constraints): New helper function.
4404 (do_structure_copy): Use it.
4405 (handle_lhs_call): Likewise.
4406 (find_func_aliases): Handle some builtins with pointer arguments
4407 and/or return values explicitly.
4408
217655da
ILT
44092009-06-19 Ian Lance Taylor <iant@google.com>
4410
4411 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
4412
50ae5fea
ILT
44132009-06-19 Ian Lance Taylor <iant@google.com>
4414
4415 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
4416
642324bb
ILT
44172009-06-19 Ian Lance Taylor <iant@google.com>
4418
4419 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
4420 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
4421 version.
4422
4423 * c-decl.c (finish_decl): If -Wc++-compat, warn about
4424 uninitialized const.
4425
dc491a25
ILT
44262009-06-19 Ian Lance Taylor <iant@google.com>
4427
4428 * dse.c (struct store_info): Rename bitmap field to bmap. Change
4429 all uses.
4430
4431 * c-decl.c (in_struct, struct_types): Remove.
4432 (struct c_binding): Add in_struct field.
4433 (c_binding_ptr): Define type, along with VEC.
4434 (struct c_struct_parse_info): Define.
4435 (struct_parse_info): New static variable.
4436 (bind): Initialize in_struct field.
4437 (start_struct): Remove enclosing_in_struct and
4438 enclosing_struct_types parameters. Add
4439 enclosing_struct_parse_info parameter. Change all callers. Set
4440 struct_parse_info rather than in_struct and struct_types.
4441 (grokfield): If -Wc++-compat and there is a symbol binding for the
4442 field name, set the in_struct flag and push it on the
4443 struct_parse_info->fields vector.
4444 (warn_cxx_compat_finish_struct): New static function.
4445 (finish_struct): Remove enclosing_in_struct and
4446 enclosing_struct_types parameters. Add
4447 enclosing_struct_parse_info parameter. Change all callers. Don't
4448 set C_TYPE_DEFINED_IN_STRUCT here. Call
4449 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
4450 parameter. Only push on struct_types if warn_cxx_compat.
4451 (finish_enum): Only push on struct_types if warn_cxx_compat.
4452 (declspecs_add_type): Add loc parameter. Change all callers.
4453 Change all error calls to error_at. Pass loc, not input_location,
4454 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
4455 defined in a struct. If -Wc++-compat and parsing a struct, record
4456 that a typedef name was used.
4457 * c-parser.c (c_parser_declspecs): Get location to pass to
4458 declspecs_add_type.
4459 (c_parser_struct_or_union_specifier): Update calls to start_struct
4460 and finish_struct.
4461 * c-tree.h (struct c_struct_parse_info): Declare.
4462 (finish_struct, start_struct): Update declarations.
4463 (declspecs_add_type): Update declaration.
4464
88eeff6f
ILT
44652009-06-19 Ian Lance Taylor <iant@google.com>
4466
4467 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
4468 variable with an anonymous type.
4469
28a876a4
UB
44702009-06-19 Uros Bizjak <ubizjak@gmail.com>
4471
4472 * see.c: Remove for real.
4473
dc6707b8
UB
44742009-06-19 Uros Bizjak <ubizjak@gmail.com>
4475
4476 * optabs.h (enum optab_index): Add new OTI_significand.
4477 (significand_optab): Define corresponding macro.
4478 * optabs.c (init_optabs): Initialize significand_optab.
4479 * genopinit.c (optabs): Implement significand_optab using
4480 significand?f2 patterns.
4481 * builtins.c (expand_builtin_mathfn): Handle
4482 BUILT_IN_SIGNIFICAND{,F,L}.
4483 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
4484 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4485
4486 * config/i386/i386.md (significandxf2, significand<mode>2): New
4487 expanders to implement significandf, significand and significandl
4488 built-ins as inline x87 intrinsics.
4489
dd26af70
AS
44902009-06-18 Anatoly Sokolov <aesok@post.ru>
4491
4492 * config/avr/avr.c (avr_override_options): Remove setting value of
4493 PARAM_INLINE_CALL_COST.
4494
394bd84d
RH
44952009-06-18 Richard Henderson <rth@redhat.com>
4496
4497 PR 40488
4498 * tree-pass.h (TDF_ASMNAME): New.
4499 * tree-dump.c (dump_options): Add asmname.
4500 * doc/invoke.texi: Document it.
4501
4502 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
4503 (dump_decl_name): ...here.
4504 (dump_function_name): New flags arg; mind TDF_ASMNAME.
4505 (dump_generic_node): Update dump_function_name calls.
4506 (print_call_name): New flags arg; update all dump calls.
4507 * diagnostic.h (print_call_name): Update.
4508 * gimple-pretty-print.c (dump_gimple_call): Update.
4509
2a457a9b
L
45102009-06-18 H.J. Lu <hongjiu.lu@intel.com>
4511
4512 PR target/40470
4513 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
4514
fca5bb5c
DN
45152009-06-18 Diego Novillo <dnovillo@google.com>
4516
4517 * doc/plugins.texi: Document plugin_is_GPL_compatible.
4518 * plugin.c (str_license): Declare.
4519 (try_init_one_plugin): Assert that the symbol
4520 'plugin_is_GPL_compatible' exists.
4521
b6680d72
SD
45222009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
4523
4524 * see.c: Remove.
4525 * Makefile.in (OBJS-common): Remove see.o.
4526 (see.o): Remove.
4527 * common.opt (fsee): Mark as preserved for backward compatibility.
4528 * opts.c (common_handle_option): Add OPT_fsee to the backward
4529 compatibility section.
4530 * passes.c (init_optimization_passes, pass_see): Remove pass.
4531 * timevar.def (TV_SEE): Remove.
4532 * tree-pass.h (pass_see): Remove declaration.
4533 * doc/invoke.texi (-fsee): Remove documentation.
b6680d72 4534
2a45675f
MJ
45352009-06-18 Martin Jambor <mjambor@suse.cz>
4536
4537 * tree-sra.c: Include statistics.h
4538 (sra_stats): New variable.
4539 (sra_initialize): Clear sra_stats.
4540 (create_access_replacement): Increment sra_stats.replacements.
4541 (get_access_replacement): Do not return twice.
4542 (analyze_all_variable_accesses): Increment statistics counter by the
4543 number of scalarized aggregates.
4544 (generate_subtree_copies): Increment sra_stats.subtree_copies.
4545 (sra_modify_expr): Increment sra_stats.exprs.
4546 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
4547 (sra_modify_assign): Increment sra_stats.exprs,
4548 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
4549 (perform_intra_sra): Update statistics counters.
4550 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
4551
bdc4827b
SL
45522009-06-18 Sandra Loosemore <sandra@codesourcery.com>
4553
4554 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
4555 (arm_scalar_mode_supported_p): New function.
4556
d9dd51dc
PB
45572009-06-18 Paul Brook <paul@codesourcery.com>
4558 Sandra Loosemore <sandra@codesourcery.com>
4559
4560 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
4561 (__extendhfsf2, __truncsfhf2): Define.
4562 * config/arm/fp16.c: New file.
4563 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
4564 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
4565
0fd8c3ad
SL
45662009-06-18 Sandra Loosemore <sandra@codesourcery.com>
4567
4568 * doc/extend.texi (Half-Precision): New section.
4569 * doc/invoke.texi (Option Summary): List -mfp16-format.
4570 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
4571 * config/arm/arm.opt (mfp16-format=): New.
4572 * config/arm/arm.c: Include intl.h.
4573 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
4574 (TARGET_INVALID_RETURN_TYPE): Redefine.
4575 (TARGET_PROMOTED_TYPE): Redefine.
4576 (TARGET_CONVERT_TO_TYPE): Redefine.
4577 (arm_fp16_format): Define.
4578 (all_fpus): Add entry for neon-fp16.
4579 (fp_model_for_fpu): Likewise.
4580 (struct fp16_format): Declare.
4581 (all_fp16_formats): Define.
4582 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
4583 functions.
4584 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
4585 and no ldrh.
4586 (arm_legitimate_index_p): Treat HFmode like HImode.
4587 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
4588 (coproc_secondary_reload_class): Special-case HFmode.
4589 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
4590 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
4591 (arm_init_fp16_builtins): New.
4592 (arm_init_builtins): Call it.
4593 (arm_invalid_parameter_type): New.
4594 (arm_invalid_return_type): New.
4595 (arm_promoted_type): New.
4596 (arm_convert_to_type).
4597 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
4598 format.
4599 (arm_emit_fp16_const): New function.
4600 (arm_mangle_type): Mangle __fp16 as "Dh".
4601 * config/arm/arm.h (TARGET_VFPD32): Make it know about
4602 FPUTYPE_NEON_FP16.
4603 (TARGET_NEON_FP16): New.
4604 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
4605 (enum fputype): Add FPUTYPE_NEON_FP16.
4606 (enum arm_fp16_format_type): Declare.
4607 (arm_fp16_format): Declare.
4608 (LARGEST_EXPONENT_IS_NORMAL): Define.
4609 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
4610 * config/arm/arm-modes.def (HFmode): Define.
4611 * config/arm/vfp.md: (*movhf_vfp): New.
4612 (extendhfsf2): New.
4613 (truncsfhf2): New.
4614 * config/arm/arm.md: (fpu): Add neon_fp16.
4615 (floatsihf2, floatdihf2): New.
4616 (fix_trunchfsi2, fix_trunchfdi2): New.
4617 (truncdfhf2): New.
4618 (extendhfdf2): New.
4619 (movhf): New.
4620 (*arm32_movhf): New.
4621 (*thumb1_movhf): New.
4622 (consttable_2): Add check for HFmode constants.
4623 (consttable_4): Handle HFmode constants.
4624
2c2f70e1
UB
46252009-06-18 Uros Bizjak <ubizjak@gmail.com>
4626
4627 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
4628
db4fa1c1
OH
46292009-06-17 Olivier Hainque <hainque@adacore.com>
4630
4631 * collect2.c (main): Use CONST_CAST2 to perform char ** to
4632 const char ** conversion in AIX specific section.
4633
6bec4135
L
46342009-06-17 H.J. Lu <hongjiu.lu@intel.com>
4635
4636 * config/i386/i386.c (ix86_special_builtin_type): Remove
4637 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
4638 (bdesc_special_args): Updated.
4639 (ix86_init_mmx_sse_builtins): Likewise.
4640 (ix86_expand_special_args_builtin): Likewise.
4641
958d6d58
RH
46422009-06-17 Richard Henderson <rth@redhat.com>
4643
4644 * tree-pretty-print.c (maybe_dump_asm_name): New.
4645 (dump_decl_name): Use it.
4646 (PRINT_FUNCTION_NAME): Merge into...
4647 (dump_function_name): ... here. Use maybe_dump_asm_name.
4648
ed5ef2e4
CC
46492009-06-17 Cary Coutant <ccoutant@google.com>
4650
4651 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
4652 Change caller.
4653 * debug.c (struct gcc_debug_hooks): Change placeholder for
4654 source_line hook.
4655 (debug_nothing_int_charstar_int): Replaced by...
4656 (debug_nothing_int_charstar_int_bool): ...this.
4657 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
4658 source_line prototype.
4659 (debug_nothing_int_charstar_int): Replaced by...
4660 (debug_nothing_int_charstar_int_bool): ...this.
4661 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
4662 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
4663 Output is_stmt operand when necessary.
01a0acb7 4664 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
ed5ef2e4
CC
4665 (notice_source_line): Add is_stmt parameter.
4666 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
4667 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
4668 Change callers.
4669 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
4670 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
4671
b0f43ca0
ILT
46722009-06-17 Ian Lance Taylor <iant@google.com>
4673
4674 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
4675 Change all uses.
4676 (struct store_by_pieces_d): Rename from store_by_pieces. Change
4677 call uses.
4678
23314e77
AN
46792009-06-17 Adam Nemet <anemet@caviumnetworks.com>
4680
4681 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
4682 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
4683 tree_strip_sign_nop_conversions and
4684 tree_ssa_strip_useless_type_conversions rather than stripping
4685 the operations here.
4686 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
4687 Declare them.
4688 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
4689 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
4690 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
4691 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
4692 functions.
4693
799dbb0f
ME
46942009-06-17 Michael Eager <eager@eagercon.com>
4695
c637b0fa
UB
4696 * config/rs6000/constraints.md (register_constraint "d"): New.
4697 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
4698 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4699 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
4700 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
4701 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4702 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
4703 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
4704 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
799dbb0f
ME
4705 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
4706 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
c637b0fa
UB
4707 __fctiwz): Same.
4708 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
799dbb0f
ME
4709 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
4710 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
4711 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
c637b0fa
UB
4712 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4713 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
4714 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
4715 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
4716 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
4717 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
4718 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
4719 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
4720 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
799dbb0f
ME
4721 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
4722
1469de3c
ILT
47232009-06-16 Ian Lance Taylor <iant@google.com>
4724
4725 * profile.c (total_num_never_executed): Don't define.
4726 (compute_branch_probabilities): Don't count or print
4727 num_never_executed.
4728 (init_branch_prob): Don't set total_num_never_executed.
4729 (end_branch_prob): Don't print total_num_never_executed.
4730
2cb0a60d
DD
47312009-06-17 David Daney <ddaney@caviumnetworks.com>
4732
c637b0fa 4733 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2cb0a60d 4734
82882240
DE
47352009-06-17 David Edelsohn <edelsohn@gnu.org>
4736
4737 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
4738 (nabstd2_fpr): Same.
4739
a1a65f89
SE
47402009-06-17 Steve Ellcey <sje@cup.hp.com>
4741
4742 * expr.c (expand_assignment): Change complex type check.
4743
07ae5620
BS
47442009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
4745
4746 * doc/plugins.texi (Building GCC plugins): Added new section.
4747
5eb4df45
ILT
47482009-06-17 Ian Lance Taylor <iant@google.com>
4749
4750 * c-pch.c (get_ident): Don't set size of templ array.
4751 (pch_init): Don't set size of partial_pch array.
4752
4753 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
4754 string constant to intialize an array whose size is the length of
4755 the string.
4756
4d61856d
RG
47572009-06-17 Richard Guenther <rguenther@suse.de>
4758
4759 PR tree-optimization/40389
4760 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
4761 to addressable types.
4762 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
4763
3cb8677c
RG
47642009-06-17 Richard Guenther <rguenther@suse.de>
4765
4766 PR middle-end/40460
4767 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
4768 if there is no evolution of left in the loop bail out.
4769 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
4770 chrec_fold_multiply.
4771
a4d99c86
R
47722009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
4773 Janis Johnson <janis187@us.ibm.com>
4774
4775 PR target/39254
4776 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
4777 for the symbol ref of a constant that is the source of a move
4778 - nor for any other not-obvious-label-ref constants.
4779
8dd1bca0
OR
47802009-06-16 Olatunji Ruwase <tjruwase@google.com>
4781
1469de3c 4782 * plugin.c (position_pass): Skip newly inserted pass during list
8dd1bca0
OR
4783 traversal to avoid repeated insertion.
4784
8019538f
ILT
47852009-06-16 Ian Lance Taylor <iant@google.com>
4786
4787 * vec.h (VEC_stack_alloc): Define different version if
4788 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
4789 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
4790 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
4791 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
4792
7c45393e
L
47932009-06-16 H.J. Lu <hongjiu.lu@intel.com>
4794
4795 * config.gcc (extra_headers): Add ia32intrin.h for x86.
4796
4797 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
4798 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
4799 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
4800 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
4801 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
4802 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 4803 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
4804 (bdesc_special_args): Add __builtin_ia32_rdtsc and
4805 __builtin_ia32_rdtscp.
4806 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
4807 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
c637b0fa 4808 and __builtin_ia32_rorhi.
7c45393e
L
4809 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
4810 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 4811 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
4812 (ix86_expand_args_builtin): Likewise.
4813 (ix86_expand_special_args_builtin): Likewise.
4814
4815 * config/i386/i386.md (UNSPECV_RDTSCP): New.
4816 (UNSPECV_RDTSC): Likewise.
4817 (UNSPECV_RDPMC): Likewise.
c637b0fa 4818 (*bsr): Renamed to ...
7c45393e 4819 (bsr): This
c637b0fa 4820 (*bsr_rex64): Renamed to ...
7c45393e
L
4821 (bsr_rex64): This.
4822 (rdpmc): New.
4823 (*rdpmc): Likewise.
4824 (*rdpmc_rex64): Likewise.
4825 (rdtsc): Likewise.
4826 (*rdtsc): Likewise.
4827 (*rdtsc_rex64): Likewise.
4828 (rdtscp): Likewise.
4829 (*rdtscp): Likewise.
4830 (*rdtscp_rex64): Likewise.
4831
4832 * config/i386/ia32intrin.h: New.
4833
4834 * config/i386/x86intrin.h: Include <ia32intrin.h>.
4835
504b33d8
ILT
48362009-06-16 Ian Lance Taylor <iant@google.com>
4837
4838 * ira-build.c (copy_info_to_removed_store_destinations):
4839 Initialize parent_a.
4840
f9551830
ILT
48412009-06-16 Ian Lance Taylor <iant@google.com>
4842
4843 * c-decl.c (grokdeclarator): Change size_varies to bool.
4844
c32e2175
ILT
48452009-06-16 Ian Lance Taylor <iant@google.com>
4846
4847 * sel-sched.c: Make forward declarations of move_op_hooks and
4848 fur_hooks explicitly extern.
4849
415a06c2
ILT
48502009-06-16 Ian Lance Taylor <iant@google.com>
4851
c637b0fa 4852 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
415a06c2
ILT
4853 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
4854
675f99c9
ILT
48552009-06-16 Ian Lance Taylor <iant@google.com>
4856
4857 * resource.c (mark_referenced_resources): Change
4858 include_delayed_effects parameter to bool. Change all callers.
4859 (mark_end_of_function_resources): Likewise.
4860 * reorg.c (insn_references_resource_p): Likewise.
4861 (insn_sets_resource_p): Likewise.
4862 * resource.h (mark_referenced_resources): Update declaration.
4863 (mark_end_of_function_resources): Update declaration.
4864
a322799d
DE
48652009-06-16 David Edelsohn <edelsohn@gnu.org>
4866
4867 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
4868
c58c92f5
DE
48692009-06-16 David Edelsohn <edelsohn@gnu.org>
4870
4871 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
4872 GCC can bootstrap on AIX with GNU Binutils 2.20.
4873
95228603
ILT
48742009-06-16 Ian Lance Taylor <iant@google.com>
4875
4876 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
4877
9c727c9a
ILT
48782009-06-16 Ian Lance Taylor <iant@google.com>
4879
4880 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
4881 inline, not extern inline.
4882 (exact_log2): Likewise.
4883 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
4884 test CLZ_HWI.
4885 (exact_log2): Likewise, but don't test CTZ_HWI.
4886
5fd8300b
ILT
48872009-06-16 Ian Lance Taylor <iant@google.com>
4888
4889 * bitmap.c (bitmap_clear): Don't declare as inline.
4890 * gimple.c (gimplify_assign): Likewise.
4891 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4892 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
4893 (sched_scan_info): Remove duplicate definition.
4894
7d882b83
ILT
48952009-06-16 Ian Lance Taylor <iant@google.com>
4896
4897 * c-common.c (skip_evaluation): Don't define.
4898 (c_inhibit_evaluation_warnings): Define global variable.
4899 (overflow_warning): Check c_inhibit_evaluation_warnings rather
4900 than skip_evaluation.
4901 (convert_and_check, warn_for_div_by_zero): Likewise.
4902 * c-common.h (skip_evaluation): Don't declare.
4903 (c_inhibit_evaluation_warnings): Declare.
4904 * c-parser.c (c_parser_typeof_specifier): Set
4905 c_inhibit_evaluation_warnings rather than skip_evaluation.
4906 (c_parser_conditional_expression): Likewise.
4907 (c_parser_binary_expression): Likewise.
4908 (c_parser_sizeof_expression): Likewise.
4909 (c_parser_alignof_expression): Likewise.
4910 * c-typeck.c (build_indirect_ref): Check
4911 c_inhibit_evaluation_warnings rather than skip_evaluation.
4912 (build_conditional_expr, build_binary_op): Likewise.
4913
2e407842
RG
49142009-06-16 Richard Guenther <rguenther@suse.de>
4915
4916 * tree-ssa-alias.c (is_escape_site): Remove.
4917 * tree-ssa-alias.h (enum escape_type): Remove.
4918 (is_escape_site): Likewise.
4919 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
4920 via casts and asms without deferring to is_escape_site.
4921
f2ff8872
JJ
49222009-06-16 Jakub Jelinek <jakub@redhat.com>
4923
4924 PR middle-end/40446
4925 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
4926 use gen_lowpart if op0 has complex mode.
4927
de70bb20
RG
49282009-06-16 Richard Guenther <rguenther@suse.de>
4929
4930 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
4931 variables add them to ESCAPED.
c637b0fa 4932 (find_func_aliases): Do not make all indirectly stored values escaped.
de70bb20 4933
daa0eeb8
RAE
49342009-06-16 Rafael Avila de Espindola <espindola@google.com>
4935
4936 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
4937 make_decl_one_only.
4938
0ec19b8c
MJ
49392009-06-16 Martin Jambor <mjambor@suse.cz>
4940
4941 PR tree-optimization/40432
4942 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
4943 check whether we need to force gimple register operand.
4944
2b26b801
MJ
49452009-06-16 Martin Jambor <mjambor@suse.cz>
4946
4947 PR tree-optimization/40413
4948 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
4949 build_ref_for_offset.
4950 (propagate_subacesses_accross_link): Fix a typo in a comment.
4951
7c5222ff
IR
49522009-06-16 Ira Rosen <irar@il.ibm.com>
4953
4954 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
4955 with additional parameter.
c637b0fa 4956 * tree-vectorizer.h (enum vect_def_type): Add new value
7c5222ff
IR
4957 vect_nested_cycle.
4958 (enum vect_relevant): Add comments.
4959 (vect_is_simple_reduction): Add new argument.
4960 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
4961 Detect nested cycles.
4962 (vect_is_simple_reduction): Update documentation, add an argument to
4963 distinguish inner-loop reduction from nested cycle, detect nested
4964 cycles, fix printings and indentation, don't swap operands in case
4965 of nested cycle.
4966 (get_initial_def_for_reduction): Handle subtraction.
4967 (vect_create_epilog_for_reduction): Add new argument to specify
4968 reduction variable.
4969 (vect_finalize_reduction): Handle subtraction, fix comments.
c637b0fa
UB
4970 (vectorizable_reduction): Handle nested cycles. In case of nested
4971 cycle keep track of the reduction variable position. Call
7c8b1a77 4972 vect_is_simple_reduction with additional parameter. Use original
7c5222ff
IR
4973 statement code in reduction epilogue for nested cycle. Call
4974 vect_create_epilog_for_reduction with additional parameter.
c637b0fa
UB
4975 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
4976 inner-loop vectorization.
7c5222ff
IR
4977 (vect_recog_widen_sum_pattern): Likewise.
4978 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
4979 and reductions.
4980 (vect_mark_stmts_to_be_vectorized): Likewise.
4981 (vect_get_vec_def_for_operand): Handle nested cycles.
4982
d376d545
RW
49832009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4984
4985 * doc/invoke.texi (Debugging Options): Fix option index entries
4986 for -fdump-statistics, -frandom-seed add entries for
4987 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
4988 (FRV Options): Fix entries for -mTLS, -mtls.
4989 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
4990 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
4991 (M68hc1x Options): Fix @itemx for -mnominmax.
4992 (MCore Options): Fix entry for -mno-lsim.
4993 (MMIX Options): Fix entry for -mabi=mmixware.
4994 (PDP-11 Options): Fix entry for -mbcopy-builtin.
4995
bd117bb6
BS
49962009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
4997
4998 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
4999 Mention the plugin mode of gengtype.
c637b0fa 5000 * doc/gty.texi (Source Files Containing Type Information): Likewise.
bd117bb6
BS
5001 * gengtype.c: Updated copyright.
5002 (plugin_files, nb_plugin_files) Added new static variables.
5003 (measure_input_list) Care about plugin_files.
5004 (write_rtx_next): Added early return in plugin mode.
5005 (create_file): Updated copyright year in generated file. Added
5006 asserts.
5007 (oprintf): Added early return if NULL outf.
5008 (get_output_file_with_visibility): Care of plugin_files.
5009 (get_output_file_name): May return null.
5010 (write_local): Added early return.
5011 (put_mangled_filename): Ditto.
5012 (finish_root_table): Added check for base_files.
5013 (write_roots): Care about null when plugins.
5014 (main): Added plugin mode.
5015
e1b7793c
ILT
50162009-06-15 Ian Lance Taylor <iant@google.com>
5017
c637b0fa 5018 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
e1b7793c
ILT
5019 * gcov.c (read_count_file): Add braces around variables declared
5020 before label.
5021
5022 * c.opt (Wjump-misses-init): New warning.
5023 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
5024 -Wall and -Wc++-compat if not already set.
5025 (c_common_post_options): Clear warn_jump_misses_init if it was not
5026 set.
5027 * c-decl.c (struct c_binding): Change type field to a union with
5028 new label field. Make it the first field in the struct. Update
5029 references to type to use u.type instead.
5030 (struct c_spot_bindings): Define.
5031 (struct c_goto_bindings): Define.
5032 (c_goto_bindings_p): Define, along with VECs.
5033 (struct c_label_vars): Define.
5034 (struct c_scope): Add has_label_bindings field.
5035 (bind_label, set_spot_bindings): New static functions.
5036 (decl_jump_unsafe, update_spot_bindings): New static functions.
5037 (update_label_decls): New static function.
5038 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
5039 Update binding u.label field to shadowed field.
5040 (c_binding_start_stmt_expr): New function.
5041 (c_binding_end_stmt_expr): New function.
5042 (pushdecl): Don't call c_begin_vm_scope.
5043 (make_label): Add defining and p_label_vars parameters. Change
5044 all callers.
5045 (lookup_label): Correct test for whether a label has not yet been
5046 defined. Call bind_label rather than bind.
5047 (warn_about_goto): New static function.
5048 (lookup_label_for_goto): New function.
5049 (declare_label): Call bind_label rather than bind.
5050 (check_earlier_gotos): New static function.
5051 (define_label): Don't give errors about jumping into statement
5052 expressions or scopes of variably modified types. Call
5053 set_spot_bindings and check_earlier_gotos. Call bind_label
5054 instead of bind. Don't set label_context_stack_se or
5055 label_context_stack_vm.
5056 (c_get_switch_bindings): New function.
5057 (c_release_switch_bindings): New function.
5058 (c_check_switch_jump_warnings): New function.
5059 (start_function): Don't set label_context_stack_se or
5060 label_context_stack_vm.
5061 (finish_function): Likewise.
5062 * c-typeck.c (label_context_stack_se): Don't define.
5063 (label_context_stack_vm): Don't define.
5064 (c_finish_goto_label): Call lookup_label_for_goto rather than
5065 lookup_label. Don't give errors about jumping into a statement
5066 expression or the scope of a variably modified type. Don't set
5067 label_context_stack_se or label_context_stack_vm.
5068 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
5069 fields. Add bindings field.
5070 (c_start_case): Don't set deleted fields. Set bindings field.
5071 (do_case): Rework order of tests. Don't check blocked_stmt_expr
5072 or blocked_vm. Call c_check_switch_jump_warnings.
5073 (c_finish_case): Don't test blocked_stmt_expr field. Call
5074 c_release_switch_bindings.
5075 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
5076 c_switch_stack. Don't walk label_context_stack_se labels. Don't
5077 set label_context_stack_se. Call c_bindings_start_stmt_expr.
5078 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
5079 c_switch_stack. Don't walk label_context_stack_se labels. Don't
5080 set label_context_stack_se. Call c_bindings_end_stmt_expr.
5081 (c_begin_vm_scope, c_end_vm_scope): Don't define.
5082 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
5083 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
5084 (C_DECL_UNJUMPABLE_VM): Don't define.
5085 (C_DECL_UNDEFINABLE_VM): Don't define.
5086 (struct c_label_list): Don't define.
5087 (struct c_label_context_se): Don't define.
5088 (struct c_label_context_vm): Don't define.
5089 (struct c_spot_bindings): Declare.
5090 (c_bindings_start_stmt_expr): Declare.
5091 (c_bindings_end_stmt_expr): Declare.
5092 (lookup_label_for_goto): Declare.
5093 (c_get_switch_bindings, c_release_switch_bindings): Declare.
5094 (c_check_switch_jump_warnings): Declare.
5095 (label_context_stack_se, label_context_stack_vm): Don't declare.
5096 (c_finish_goto_label): Update declaration.
5097 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
5098 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
5099 (Warning Options): Document -Wjump-misses-init.
5100
98a129b9
JJ
51012009-06-15 Jakub Jelinek <jakub@redhat.com>
5102
5103 * tree-object-size.c (addr_object_size): Fix a pasto in the last
5104 change.
5105
19751f1f
RAE
51062009-06-15 Rafael Avila de Espindola <espindola@google.com>
5107
5108 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
5109
d40eb158
AH
51102009-06-15 Aldy Hernandez <aldyh@redhat.com>
5111
5112 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
5113
51142009-06-15 Aldy Hernandez <aldyh@redhat.com>
5115
5116 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
5117
fc26fae3
RAE
51182009-06-15 Rafael Avila de Espindola <espindola@google.com>
5119
5120 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
5121 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
5122 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
5123 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
c637b0fa
UB
5124 * dwarf2asm.c (dw2_force_const_mem): Update call to
5125 make_decl_one_only.
fc26fae3
RAE
5126 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
5127 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
5128 * langhooks.c (lhd_comdat_group): Remove.
5129 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
5130 * tree.h (DECL_COMDAT_GROUP): New.
5131 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
5132 (tree_decl_with_vis): Add comdat_group. Remove one_only.
5133 (make_decl_one_only): Change signature.
5134 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
5135 make_decl_one_only.
5136 (make_decl_one_only): Change signature.
5137 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
5138
0eb92735
RG
51392009-06-15 Richard Guenther <rguenther@suse.de>
5140
5141 PR middle-end/40439
5142 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
5143
0ab352d5
AK
51442009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5145
5146 * tree-ssa-math-opts.c: Remove extra divide.
5147
677fbff4
AK
51482009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5149
5150 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
5151
03bd2f1a
AK
51522009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5153
5154 * passes.c: Add bswap pass.
5155 * tree-pass.h: Add pass_optimize_bswap declaration.
5156 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
5157 Include rtl.h, expr.h and optabs.h for optab_handler check.
5158 (struct symbolic_number, pass_optimize_bswap): New definition.
5159 (do_shift_rotate, verify_symbolic_number_p): New functions.
5160 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
5161 (gate_optimize_bswap): New function.
5162 * tree.c (widest_int_cst_value): New function.
5163 * tree.h (widest_int_cst_value): Prototype added.
5164
fb4c4640
SB
51652009-06-14 Steven Bosscher <steven@gcc.gnu.org>
5166
5167 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
5168 REG_EQUAL/REG_EQUIV notes.
5169
1d24fdd9
RG
51702009-06-14 Richard Guenther <rguenther@suse.de>
5171
5172 PR middle-end/40389
5173 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
5174 has its address taken if NRV was applied and it is addressable.
5175 * tree-ssa-structalias.c (get_constraint_for_address_of): New
5176 function split out from ...
5177 (get_constraint_for_1): ... here.
5178 (handle_rhs_call): Use it to mark the return slot escaped if
5179 it is addressable and NRV was applied.
5180
4b29c5e5
AH
51812009-06-13 Aldy Hernandez <aldyh@redhat.com>
5182
5183 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
5184 Change first argument type to location_t.
5185 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
5186 Do not set input_location.
5187 Use loc instead of input_location throughout.
5188
e1e6dc73
RG
51892009-06-13 Richard Guenther <rguenther@suse.de>
5190
1d24fdd9 5191 PR tree-optimization/40421
e1e6dc73
RG
5192 * tree-predcom.c (should_unroll_loop_p): Remove.
5193 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
5194
8012b923
MM
51952009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5196
5197 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5198 Add location argument.
5199
4c4bde29
AH
52002009-06-13 Aldy Hernandez <aldyh@redhat.com>
5201
5202 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
5203 build_decl.
5204 * config/s390/s390.c (s390_build_builtin_va_list): Same.
5205 (s390_gimplify_va_arg): Pass location to create_artificial_label.
5206 * config/spu/spu-protos.h: Add location to
5207 spu_resolve_overloaded_builtin.
5208 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
5209 spu_build_builtin_va_list.
5210 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
5211 argument. Pass location to build_function_call_vec.
5212 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
5213 build_decl.
5214 (emit_fpu_switch): Same.
5215 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
5216 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
5217 to build_decl and create_artificial_label.
5218 (xtensa_gimplify_va_arg_expr): Same.
5219 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
5220 (xstormy16_gimplify_va_arg_expr): Same.
5221 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
5222 * config/arm/arm.c (arm_build_builtin_va_list): Same.
5223 * config/mips/mips.c (mips_build_builtin_va_list): Same.
5224 (mips16_build_function_stub): Same.
5225 (mips16_build_call_stub): Same.
5226
81beb031
RE
52272009-06-13 Richard Earnshaw <rearnsha@arm.com>
5228
5229 PR target/40327
5230 * arm/constraints.md (Pa, Pb): New constraints.
5231 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
5232 split pattern to deal with them.
5233
98f6c600
JS
52342009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
5235
5236 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
5237 fix index entry for -Xpreprocessor.
5238
71856685
AH
52392009-06-12 Aldy Hernandez <aldyh@redhat.com>
5240
5241 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5242 Add location argument to build_decl call.
5243 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
5244 (rs6000_init_builtins): Same.
5245 (spe_init_builtins): Same.
5246 (rs6000_gimplify_va_arg): Add location argument to
5247 create_artificial_label call.
5248
756b65f5
SB
52492009-06-12 Steven Bosscher <steven@gcc.gnu.org>
5250
5251 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
5252 * combine-stack-adj.c (pass_stack_adjustments): Use it.
5253 * Makefile.in: Fix GGC dependency for gcse.o.
5254
c2255bc4
AH
52552009-06-12 Aldy Hernandez <aldyh@redhat.com>
5256
5257 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
5258 * gimple-pretty-print.c (dump_gimple_stmt): Same.
5259 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
5260 created.
5261 * c-parser.c (c_parser_binary_expression): Use current column while
5262 building binary operations.
5263 * common.opt (fshow-column): Enable by default.
5264 * tree-vrp.c (check_array_ref): Use warning_at.
5265 (check_array_bounds): Use location from call back if expr has no
5266 location.
5267 * tree.h: Add location argument to maybe_fold_*.
5268 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
5269 (maybe_fold_offset_to_array_ref): Add location argument and use it.
5270 (maybe_fold_offset_to_component_ref): Same.
5271 (maybe_fold_offset_to_reference): Same.
5272 (maybe_fold_offset_to_address): Same.
5273 (maybe_fold_stmt_indirect): Same.
5274 (maybe_fold_stmt_addition): Same.
5275 (fold_stmt_r): Pass location to maybe_fold_*.
5276 (fold_gimple_assign): Same.
5277 * c-tree.h: Add location argument to finish_decl,
5278 default_function_array_conversion, store_init_value.
5279 * c-decl.c (define_label): Use error_at.
5280 (c_make_fname_decl): Pass location to finish_decl.
5281 (finish_decl): New location argument.
5282 (build_compound_literal): Pass location to store_init_value.
5283 (grokdeclarator): Pass location to finish_decl.
5284 (grokfield): Same.
5285 * c-typeck.c (array_to_pointer_conversion): New location argument.
5286 (function_to_pointer_conversion): Same.
5287 (default_function_array_conversion): Same.
5288 (parser_build_unary_op): Pass location to overflow_warning.
5289 (parser_build_binary_op): Same. Use warning_at.
5290 (build_unary_op): Pass location to array_to_pointer_conversion.
5291 (build_c_cast): Pass location to digest_init.
5292 (build_modify_expr): New location argument.
5293 (convert_for_assignment): Same.
5294 (store_init_value): Same.
5295 (digest_init): Same.
5296 (output_init_element): Pass location to digest_init and
5297 array_to_pointer_conversion.
5298 (c_finish_return): Pass location to convert_for_assignment.
5299 * gimplify.c (gimplify_conversion): Pass location to
5300 maybe_fold_offset_to_address.
5301 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
5302 to maybe_fold_stmt_addition.
5303 * c-omp.c (c_finish_omp_atomic): Pass new location to
5304 build_modify_expr.
5305 (c_finish_omp_for): Same.
5306 * c-common.c (overflow_warning): New argument.
5307 * c-common.h: New argument to build_modify_expr, overflow_warning.
5308 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
5309 finish_decl.
5310 (c_parser_initializer): Pass location to
5311 default_function_array_conversion.
5312 (c_parser_initelt): Same.
5313 (c_parser_initval): Same.
5314 (c_parser_asm_operands): Same.
5315 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
5316 (c_parser_conditional_expression): Same.
5317 (c_parser_binary_expression): Add location info to stack. Use it.
5318 (c_parser_unary_expression): Pass location to
5319 default_function_array_conversion, parser_build_unary_op,
5320 build_indirect_ref, c_parser_postfix_expression_after_primary.
5321 (c_parser_postfix_expression_after_primary): New location argument.
5322 Use it.
5323 (c_parser_expression_conv): Pass location to
5324 default_function_array_conversion.
5325 (c_parser_expr_list): Same.
5326 (c_parser_omp_atomic): Same.
5327 (c_parser_omp_for_loop): Same.
5328 * c-tree.h: (struct c_declarator): Add comment to id_loc.
5329 (build_array_declarator): New argument.
5330 * c-decl.c (build_array_declarator): Add location argument.
5331 (grokdeclarator): Set id_loc for cdk_array.
5332 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
5333 build_array_declarator.
5334 * tree.c (build_omp_clause): Add location argument.
5335 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
5336 (OMP_CLAUSE_LOCATION): New macro.
5337 (struct tree_omp_clause): Add location field.
5338 (build_omp_clause): Add argument.
5339 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
5340 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
5341 build_omp_clause.
5342 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
5343 (cp_parser_omp_clause_collapse): Same.
5344 (cp_parser_omp_clause_default): Same.
5345 (cp_parser_omp_clause_if): Same.
5346 (cp_parser_omp_clause_nowait): Same.
5347 (cp_parser_omp_clause_num_threads): Same.
5348 (cp_parser_omp_clause_ordered): Same.
5349 (cp_parser_omp_clause_schedule): Same.
5350 (cp_parser_omp_clause_untied): Same.
5351 (cp_parser_omp_for_loop): Same.
5352 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
5353 * c-tree.h (c_start_case): Add location argument.
5354 (c_process_expr_stmt): Same.
5355 (c_finish_goto_*): Same.
5356 * tree-parloops.c (initialize_reductions): Pass location to
5357 build_omp_clause.
5358 (create_parallel_loop): Same.
5359 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
5360 (gfc_trans_omp_reduction_list): Same.
5361 (gfc_trans_omp_clauses): Same.
5362 (gfc_trans_omp_do): Same.
5363 * c-typeck.c (c_finish_goto_label): Same.
5364 (c_finish_goto_ptr): New location argument.
5365 (c_start_case): Same.
5366 (emit_side_effect_warnings): Same.
5367 (c_process_expr_stmt): Same.
5368 (c_finish_stmt_expr): Same.
5369 (c_finish_omp_clauses): Use error_at instead of error.
5370 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
5371 build_omp_clause.
5372 * c-omp.c (c_split_parallel_clauses): New location argument.
5373 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
5374 to build_omp_clause.
5375 (convert_local_reference_stmt): Same.
5376 (convert_gimple_call): Same.
5377 * c-common.h (c_split_parallel_clauses): New argument.
5378 * c-parser.c (c_parser_statement_after_labels): Pass location to
5379 c_finish_goto_label.
5380 (c_parser_switch_statement): Pass location to c_start_case.
5381 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
5382 and c_process_expr_stmt.
5383 (c_parser_omp_variable_list): Add location argument.
c637b0fa 5384 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
c2255bc4
AH
5385 (c_parser_omp_clause_default): Same.
5386 (c_parser_omp_clause_if): Same.
5387 (c_parser_omp_clause_num_threads): Same.
5388 (-c_parser_omp_clause_ordered): Same.
5389 (c_parser_omp_clause_reduction): Pass location to
5390 c_parser_omp_variable_list.
5391 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
5392 (c_parser_omp_clause_untied): Same.
5393 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
c637b0fa 5394 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
c2255bc4
AH
5395
5396 * c-tree.h (check_for_loop_decls, undeclared_variable,
5397 build_component_ref, build_array_ref, build_external_ref,
5398 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
5399 build_conditional_expr, build_compound_expr, c_cast_expr,
5400 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
5401 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
5402 argument.
5403 * c-semantics.c (build_stmt): Same.
5404 (build_case_label): Same.
5405 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
5406 (undeclared_variable): New argument.
5407 (make_label): Same.
5408 (lookup_label): Pass location on down.
5409 (define_label): Same.
5410 (finish_decl): Same.
5411 (build_compound_literal): Same.
5412 (finish_struct): Same.
5413 (finish_function): Do not set location here.
5414 (check_for_loop_decls): New argument.
5415 * tree.c (save_expr): Set location.
5416 (build_empty_stmt): New argument.
5417 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
5418 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
5419 * builtins.c (gimplify_va_arg_expr): Use locations.
5420 (expand_builtin_sync_operation): Same.
5421 * c-typeck.c (build_component_ref): New argument.
5422 (build_array_ref): Same.
5423 (build_external_ref): Same.
5424 (c_expr_sizeof_expr): Same.
5425 (c_expr_sizeof_type): Same.
5426 (parser_build_unary_op): Same.
5427 (build_conditional_expr): Same.
5428 (build_compound_expr): Pass location on down.
5429 (build_compound_expr): New argument.
5430 (build_c_cast): Same.
5431 (c_cast_expr): Same.
5432 (build_asm_expr): Same.
5433 (c_finish_return): Same.
5434 (c_process_expr_stmt): Pass location on down.
5435 (c_finish_stmt_expr): New argument.
5436 (push_clenaup): Same.
5437 (c_finish_omp_parallel): Same.
5438 (c_finish_omp_task): Same.
5439 * gimplify.c (gimplify_call_expr): Pass location on down.
5440 * c-omp.c (c_finish_omp_master): New argument.
5441 (c_finish_omp_critical): Same.
5442 (c_finish_omp_ordered): Same.
5443 (c_finish_omp_barrier): Same.
5444 (-c_finish_omp_taskwait): Same.
5445 (c_finish_omp_atomic): Same.
5446 (c_finish_omp_flush): Same.
5447 * tree-inline.c (copy_tree_body_r): Pass location on down.
5448 (inline_forbidden_p): Remove use of input_location.
5449 * c-gimplify.c (c_build_bind_expr): New argument.
5450 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
5451 (c_sizeof_or_alignof_type): New argument.
5452 (c_alignof_expr): Same.
5453 (build_va_arg): Same.
5454 (c_add_case_label): Same.
5455 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
5456 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
5457 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
5458 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
5459 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
5460 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
5461 New argument.
5462 * stub-objc.c (objc_build_selector_expr): Same.
5463 (objc_build_throw_stmt): Same.
5464 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
5465 (c_parser_initelt): Same.
5466 (c_parser_compound_statement): Same.
5467 (c_parser_compound_statement_nostart): Same.
5468 (c_parser_label): Same.
5469 (c_parser_statement_after_labels): Same.
5470 (c_parser_if_body): Same.
5471 (c_parser_else_body): Same.
5472 (c_parser_if_statement): Same.
5473 (c_parser_switch_statement): Same.
5474 (c_parser_while_statement): Same.
5475 (c_parser_do_statement): Same.
5476 (c_parser_for_statement): Same.
5477 (c_parser_asm_statement): Same.
5478 (c_parser_conditional_expression): Same.
5479 (c_parser_binary_expression): Same.
5480 (c_parser_cast_expression): Same.
5481 (c_parser_unary_expression): Same.
5482 (c_parser_sizeof_expression): Same.
5483 (c_parser_alignof_expression): Same.
5484 (c_parser_postfix_expression): Same.
5485 (c_parser_expression): Same.
5486 (c_parser_objc_receiver): Same.
5487 (c_parser_omp_variable_list): Same.
5488 (c_parser_omp_structured_block): Same.
5489 (c_parser_omp_atomic): New argument.
5490 (c_parser_omp_barrier): Same.
5491 (c_parser_omp_critical): Same.
5492 (c_parser_omp_flush): Pass location on down.
5493 (c_parser_omp_for_loop): New argument.
5494 (c_parser_omp_for): Same.
5495 (c_parser_omp_master): Same.
5496 (c_parser_omp_ordered): Same.
5497 (c_parser_omp_sections_scope): Same.
5498 (c_parser_omp_sections): Same.
5499 (c_parser_omp_parallel): Same.
5500 (c_parser_omp_single): Same.
5501 (c_parser_omp_task): Same.
5502 (c_parser_omp_taskwait): Pass location on down.
5503 (c_parser_omp_construct): Same.
5504 (c_parser_omp_threadprivate): Same.
5505 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
5506 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
5507 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
5508 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
5509 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
5510 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
5511 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
5512 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
5513 config/i386/i386.c, stmt.c:
5514 Add location argument to the following function definitions and/or
5515 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
5516 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
5517 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
5518 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
5519 do_case, c_finish_bc_stmt, build_compound_literal,
5520 build_function_call.
5521 * c-decl.c (build_compound_literal): Add location argument.
5522 Make all diagnostic calls use location.
5523 (start_struct): Same.
5524 (finish_struct): Same.
5525 (start_enum): Same.
5526 (build_enumerator): Same.
5527 (start_function): Same.
5528 (grokdeclarator): Make all diagnostic calls use location.
5529 (store_parm_decls_oldstyle): Same.
5530 * c-typeck.c (build_function_call): Add location argument.
5531 Make all diagnostic calls use location.
5532 (do_case): Same.
5533 (c_finish_bc_stmt): Same.
5534 * tree-nested.c (get_trampoline_type): Add argument.
5535 Pass location to build_decl.
5536 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
5537 * rtl.h (RTL_LOCATION): New.
5538 * c-common.c (c_add_case_label): Add location argument.
5539 Make all diagnostic calls use location.
5540 * c-common.h: Add location argument to make_fname_decl, do_case,
5541 c_add_case_label, build_function_call, resolve_overloaded_builtin.
5542 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
5543 Set it appropriately for every case. Pass enum_loc to start_enum
5544 call. Pass value_loc first to build_enumerator. Pass enum_loc to
5545 parser_xref_tag.
5546 (c_parser_struct_or_union_specifier): Save location. Use it for
5547 start_struct, finish_struct, and parser_xref_tag.
5548
3d8b2a98
ILT
55492009-06-12 Ian Lance Taylor <iant@google.com>
5550
c637b0fa 5551 * fold-const.c (fold_unary): Rename local variable and to and_expr.
3d8b2a98
ILT
5552
5553 * c-opts.c (c_common_handle_option): For -Wc++-compat set
5554 cpp_opts->warn_cxx_operator_names.
5555
737142ce
AP
55562009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
5557
5558 PR tree-opt/38865
5559 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
5560 is returns NULL and OP is a VCE, look through the VCE.
5561
d3a0d55d
ILT
55622009-06-12 Ian Lance Taylor <iant@google.com>
5563
5564 PR bootstrap/40430
5565 * collect2.c (main): Use CONST_CAST2 in code inside #if
5566 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
5567
f85882d8
JY
55682009-06-12 Joey Ye <joey.ye@intel.com>
5569
5570 PR middle-end/39146
5571 * cfgexpand.c (get_decl_align_unit): Update
5572 max_used_stack_slot_alignment with align instead of
5573 stack_alignment_needed.
5574
5575 * function.c (assign_stack_local_1): Update
5576 max_used_stack_slot_alignment with alignment_in_bits instead
5577 of stack_alignment_needed.
5578 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
5579 here.
5580
fc9f468b
JJ
55812009-06-12 Jakub Jelinek <jakub@redhat.com>
5582
5583 * dwarf2out.c (last_var_location_insn): New variable.
5584 (dwarf2out_end_epilogue): Clear last_var_location_insn.
5585 (dwarf2out_var_location): Don't record anything after last real
5586 insn. Only change labels if there were any real instructions
5587 in between last note and this one, or if changed sections.
5588
7c1db202
RH
55892009-06-11 Richard Henderson <rth@redhat.com>
5590
f85882d8 5591 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15cb981a
RH
5592 note when storing the frame pointer in a register.
5593 (FRP): Don't redefine to nothing for epilogue.
5594 (alpha_expand_epilogue): Mark register and sp restores.
5595 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
5596
7c1db202
RH
5597 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
5598 when gen_lowpart is needed.
5599
f2ae7631
RH
56002009-06-11 Richard Henderson <rth@redhat.com>
5601
42755c21
RH
5602 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
5603
f2ae7631
RH
5604 * dwarf2out.c (need_data_align_sf_opcode): New.
5605 (div_data_align): Move earlier.
5606 (def_cfa_1, reg_save): Use it.
5607
8ed0ce99
L
56082009-06-11 H.J. Lu <hongjiu.lu@intel.com>
5609
5610 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
5611 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
5612 (ix86_handle_option): Handle OPT_mcrc32.
5613 (ix86_target_string): Add -mcrc32.
5614 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
5615
5616 * config/i386/i386.h (TARGET_CRC32): New.
5617
c637b0fa 5618 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
8ed0ce99
L
5619 (sse4_2_crc32di): Likewise.
5620
c637b0fa 5621 * config/i386/i386.opt (mcrc32): New.
8ed0ce99
L
5622
5623 * doc/invoke.texi: Document -mcrc32.
5624
9fd68a1f
RH
56252009-06-11 Richard Henderson <rth@redhat.com>
5626
8ed0ce99 5627 * common.opt (gdwarf-): Accept a version number.
9fd68a1f
RH
5628 * doc/invoke.texi (gdwarf-): Update docs.
5629 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
5630 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
5631 version level, and record it.
5632
5633 * dwarf2.h (DW_CIE_VERSION): Remove.
5634 * dwarf2out.c (DWARF_VERSION): Remove.
5635 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
5636 (output_call_frame_info): Use CIE version 3 for dwarf3,
5637 or if the return register column is out of range for version 1.
5638 (dwarf_stack_op_name): Add all dwarf3 values.
5639 (DEBUG_PUBTYPES_SECTION): New.
5640 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
5641 encoding change for dwarf3.
5642 (output_die) [dw_val_class_die_ref]: Likewise.
5643 (output_compilation_unit_header): Emit correct version for dwarf3.
5644 (output_line_info): Likewise.
5645 (output_pubnames): Update for DWARF_VERSION removal.
5646 (output_aranges): Likewise.
5647 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
5648 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
5649 (dwarf2out_finish): Likewise.
5650
4de8ce3b
DD
56512009-06-11 David Daney <ddaney@caviumnetworks.com>
5652
5653 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
5654 in r148403.
5655
468059bc
DD
56562009-06-11 David Daney <ddaney@caviumnetworks.com>
5657
5658 PR c/39252
5659 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
5660 * builtins.c (expand_builtin_unreachable): New function.
5661 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
5662 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
5663 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
5664 successors.
5665 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
5666 searching for missing barriers.
5667
b5a6e96f
FXC
56682009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5669
5670 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
5671 when -fprofile-generate* was passed.
5672 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
5673
6be6462e
AG
56742009-06-11 Anthony Green <green@moxielogic.com>
5675
c637b0fa 5676 * config/moxie/moxie.md: Define length attribute for all instructions.
6be6462e
AG
5677 (rCC): Define.
5678 (*b<cond:code>): Support limited branch ranges for new PC-relative
5679 branch instructions.
5680 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
5681
caaabe0a
JJ
56822009-06-11 Jakub Jelinek <jakub@redhat.com>
5683
e5219642
JJ
5684 * config/i386/i386.c (min_insn_size): Use get_attr_length
5685 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
5686 For __asm return 0.
5687
caaabe0a
JJ
5688 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
5689 instead of emit_insn_before.
5690
a567fa6a
ILT
56912009-06-10 Ian Lance Taylor <iant@google.com>
5692
5693 PR bootstrap/40408
5694 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
5695 GIMPLE_SWITCH.
5696
6a753d5f
RE
56972009-06-10 Revital Eres <eres@il.ibm.com>
5698
5699 * passes.c (init_optimization_passes): Reschedule
5700 predictive-commoning pass before complete unroll pass.
5701
a550d677
MJ
57022009-06-10 Martin Jambor <mjambor@suse.cz>
5703
5704 * cgraph.c (cgraph_node_can_be_local_p): New function.
5705 (cgraph_make_node_local): New function.
5706 * cgraph.h (cgraph_node_can_be_local_p): Declare.
5707 (cgraph_make_node_local): Declare.
5708
d8259b07
NF
57092009-06-10 Nathan Froyd <froydnj@codesourcery.com>
5710
5711 * tree.h (tree_base): Add packed_flag and user_align fields.
5712 Decrease size of spare field.
5713 (TYPE_USER_ALIGN): Use user_align from tree_base.
5714 (DECL_USER_ALIGN): Likewise.
5715 (TYPE_PACKED): Use packed_flag from tree_base.
5716 (DECL_PACKED): Likewise.
5717 (tree_type): Delete packed_flag and user_align fields. Widen
5718 precision field. Widen mode field and shuffle fields to align
5719 mode on an 8-bit boundary.
5720 (tree_decl_common): Delete decl_flag_1 and user_align fields.
5721 Renumber decl_flag_* fields. Fix comments. Widen
5722 decl_common_unused field.
c637b0fa 5723 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
d8259b07
NF
5724 (DECL_EXTERNAL): Likewise.
5725 (DECL_BIT_FIELD): Likewise.
5726 (DECL_NONADDRESSABLE_P): Likewise.
5727 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
5728 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
5729
c2569604
ILT
57302009-06-10 Ian Lance Taylor <iant@google.com>
5731
5732 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
5733 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
5734 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
5735 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
5736 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
5737 DEF_VEC_ALLOC_FUNC_P.
5738 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
5739 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
5740 DEF_VEC_ALLOC_FUNC_O.
5741 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
5742 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
5743 DEF_VEC_ALLOC_FUNC_I.
5744 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
5745 (vec_stack_p_reserve_exact_1): Declare.
5746 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
5747 (vec_stack_free): Declare.
5748 (VEC_stack_alloc): Define.
5749 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
5750 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
5751 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
5752 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
5753 for void_p.
5754 (stack_vecs): New static variable.
5755 (vec_stack_p_reserve_exact_1): New function.
5756 (vec_stack_o_reserve_1): New static function.
5757 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
5758 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
5759 (vec_stack_free): New function.
5760 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
5761 (VEC_df_ref_stack_alloc): Define.
5762 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
5763 DEF_VEC_ALLOC_P_STACK.
5764 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
5765 (struct df_collection_rec): Change _vec fields to VEC. Remove
5766 _use fields.
5767 (df_free_collection_rec): Adjust for new fields.
5768 (df_insn_rescan): Use new df_collection_rec fields.
5769 (df_notes_rescan, df_canonize_collection_rec): Likewise.
5770 (df_ref_create_structure, df_ref_record): Likewise.
5771 (df_get_conditional_uses, df_get_call_refs): Likewise.
5772 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
5773 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
5774 (df_record_exit_block_uses, df_bb_verify): Likewise.
c637b0fa 5775 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
c2569604
ILT
5776 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
5777 Remove count parameter. Change return type to void. Change all
5778 callers.
5779 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
5780 Remove count parameter. Change return type to void. Change all
5781 callers.
5782 (df_install_refs): Change old_vec parameter to VEC. Remove count
5783 parameter. Change all callers.
5784 (df_install_mws): Change old_vec parameter to VEC. Remove count
5785 parameter. Change all callers.
5786 (df_refs_verify): Change new_rec parameter to VEC. Change call
5787 callers.
5788 (df_mws_verify): Likewise.
5789
e7aae3e8
AO
57902009-06-10 Alexandre Oliva <aoliva@redhat.com>
5791
5792 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
5793
412ac8d5
L
57942009-06-10 H.J. Lu <hongjiu.lu@intel.com>
5795
5796 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
5797
cceb575c
AG
57982009-06-10 Anthony Green <green@moxielogic.com>
5799
5800 * config/moxie/crti.asm: New file.
5801 * config/moxie/crtn.asm: New file.
5802 * config/moxie/moxie.c: New file.
5803 * config/moxie/moxie.h: New file.
5804 * config/moxie/sfp-machine.h: New file.
5805 * config/moxie/moxie-protos.h: New file.
5806 * config/moxie/t-moxie: Created.
5807 * config/moxie/t-moxie-softfp: Created.
5808 * config/moxie/moxie.md: Created.
5809 * config/moxie/constraints.md: Created.
5810 * config.gcc: Add moxie support.
5811 * doc/md.texi (Machine Constraints): Add moxie constraints.
5812 * doc/contrib.texi (Contributors): Mention moxie port.
5813 * doc/install.texi (Specific): Mention the moxie port.
5814
bf406687
ILT
58152009-06-09 Ian Lance Taylor <iant@google.com>
5816
5817 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
5818 compiling with C++.
5819 * optabs.c (optab_table): Only use designated initializers if
5820 HAVE_DESIGNATED_INITIALIZERS is defined.
5821 (convert_optab_table): Likewise.
5822 (init_optabs): Always call init_insn_codes if
5823 HAVE_DESIGNATED_INITIALIZERS is not defined.
5824
744aa42f
ILT
58252009-06-09 Ian Lance Taylor <iant@google.com>
5826
5827 * targhooks.c (default_builtin_vectorized_function): Change fn
5828 parameter to unsigned int.
5829 (default_builtin_vectorized_conversion): Change code parameter to
5830 unsigned int.
5831 (default_builtin_reciprocal): Change fn parameter to unsigned int.
5832 * targhooks.h: Update declarations.
5833 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
5834 parameter to unsigned int.
5835
5836 * c-typeck.c (comptypes_check_enum_int): New static function.
5837 (comptypes_internal): Add enum_and_int_p parameter. Change all
5838 callers.
5839 (comp_target_types): Add location parameter. Change all callers.
5840 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
5841 Change all callers.
5842 (function_types_compatible_p, type_lists_compatible_p): Likewise.
5843 (build_conditional_expr): Add colon_loc parameter. Change all
5844 callers.
c637b0fa 5845 (convert_for_assignment): Add location parameter. Change all callers.
744aa42f
ILT
5846 * c-parser.c (c_parser_conditional_expression): Pass location of
5847 colon to build_conditional_expr.
5848 * c-tree.h (build_conditional_expr): Update declaration.
5849
bcbe3b25
SP
58502009-06-09 Sebastian Pop <sebastian.pop@amd.com>
5851
5852 * graphite.c: Revert previous patch.
5853
dc2a6925
SP
58542009-06-09 Sebastian Pop <sebastian.pop@amd.com>
5855
5856 PR bootstrap/40103
5857 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
5858
d81f5387
GS
58592009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
5860
8ed0ce99
L
5861 * tree-ssa-loop-prefetch.c
5862 (loop_prefetch_arrays): Fixed a portability problem in printf format
5863 string.
d81f5387 5864
8056eb4f
MJ
58652009-06-09 Martin Jambor <mjambor@suse.cz>
5866
5867 PR tree-optimization/40351
c637b0fa
UB
5868 * tree-sra.c (propagate_subacesses_accross_link): Check that a
5869 refrence to a potential artifical subaccess can be constructed.
8056eb4f 5870
bd9a3465
KK
58712009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5872
5873 * config/sh/sh-protos.h (sh_optimization_options): Declare.
5874 (sh_override_options): Likewise.
5875 * config/sh/sh.c: Include params.h.
5876 (sh_optimization_options): New.
5877 (sh_override_options): Likewise.
5878 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
5879 (OVERRIDE_OPTIONS): Use sh_override_options.
5880
8845deab
JJ
58812009-06-08 Jakub Jelinek <jakub@redhat.com>
5882
5883 * dwarf2out.c (emit_cfa_remember): New variable.
5884 (add_fde_cfi): If emit_cfa_remember, recurse to add
5885 DW_CFA_remember_state first.
5886 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
5887 instead just set emit_cfa_remember.
5888
9ea81b0c
JH
58892009-06-08 Jan Hubicka <jh@suse.cz>
5890
5891 PR debug/40126
5892 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
5893
21ecdec5
JH
58942009-06-08 Jan Hubicka <jh@suse.cz>
5895
5896 PR middle-end/39834
c637b0fa
UB
5897 * cgraphunit.c (save_inline_function_body): Do not copy transform
5898 hooks for saved inline bodies.
21ecdec5
JH
5899 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
5900 for given function.
5901
72e48218
AN
59022009-06-08 Adam Nemet <anemet@caviumnetworks.com>
5903
5904 * jump.c (returnjump_p): Handle delayed branches. Add missing
5905 function comment.
5906
6ce2002b
JH
59072009-06-08 Jan Hubicka <jh@suse.cz>
5908
5909 PR middle-end/40102
5910 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
5911 original node might've been modified.
5912 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
5913
eb9ed98a
JJ
59142009-06-08 Jakub Jelinek <jakub@redhat.com>
5915
5916 * tree-object-size.c (addr_object_size): Add OSI argument.
5917 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
5918 (compute_builtin_object_size, expr_object_size): Adjust callers.
5919 (plus_stmt_object_size): Call addr_object_size instead of
5920 compute_builtin_object_size.
5921
db34470d 59222009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
8ed0ce99 5923 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
db34470d
GS
5924
5925 * tree-ssa-loop-prefetch.c
5926 (gather_memory_references): Introduced a counter for the number of
5927 memory references.
5928 (anything_to_prefetch_p): Introduced a counter for the number of
5929 prefetches.
5930 (is_loop_prefetching_profitable): New function with a cost model
5931 for prefetching.
5932 (loop_prefetch_arrays): Use the new cost model to determine if
5933 prefetching is profitable.
5934 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
5935 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5936 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
5937 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5938 * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO,
5939 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5940
eb7adebc
MM
59412009-06-08 Michael Matz <matz@suse.de>
5942
5943 PR debug/40012
eb7adebc
MM
5944 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
5945 partitions use the same.
5946 (expand_one_var): Deal with DECL_RTL sometimes begin set also
5947 for basevars of SSA_NAMEs.
5948 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
5949 to not expand them twice.
5950 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
5951 multiple places.
5952
2153915d
AO
59532009-06-08 Alexandre Oliva <aoliva@redhat.com>
5954
5955 * common.opt (fcompare-debug=, fcompare-debug-second): New.
5956 (fdump-final-insns=, gtoggle): New.
5957 * doc/invoke.texi: Document them.
5958 * final.c (rest_of_clean_state): Dump final insn stream.
5959 * gcc.c (invoke_as): Hook in -fcompare-debug.
5960 (static_spec_functions): Add compare-debug-dump-opt,
5961 compare-debug-self-opt and compare-debug-auxbase-opt.
5962 (compare_debug, compare_debug_second, compare_debug_opt): New.
5963 (switches_debug_check, n_switches_debug_check): New.
5964 (debug_auxbase_opt, debug_check_temp_file): New.
5965 (process_command): Handle -fno-compare-debug, -fcompare-debug and
5966 -fcompare-debug=*.
5967 (do_self_spec): Handle arguments after switches.
5968 (do_spec_1): Add .gk extension to temp file basenames for compare.
5969 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
5970 (cc1_options): Use it instead of normal auxbase computation for
5971 the second compare-debug compilation.
5972 (compare_files): New.
5973 (main): Set up and implement compare debug mode.
5974 (compare_debug_dump_opt_spec_function): New.
5975 (compare_debug_self_opt_spec_function): New.
5976 (compare_debug_auxbase_opt_spec_function): New.
5977 * toplev.c (process_options): Handle flag_gtoggle,
5978 flag_dump_final_insns.
5979 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
5980 during -fcompare-debug-second compilation.
5981
cdb88468
ILT
59822009-06-07 Ian Lance Taylor <iant@google.com>
5983
c637b0fa 5984 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
cdb88468
ILT
5985 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
5986
5987 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
5988 with no default node. Change warning with %H to warning_at.
5989 Don't clear warn_switch around case checking.
5990 * doc/invoke.texi (Warning Options): Clarify distinction between
5991 -Wswitch and -Wswitch-enum.
5992
4fe8e1a2
BRF
59932009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5994
5995 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
5996
69952c1d
BRF
59972009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5998
5999 * gbl-ctors.h: Add header guard.
6000
b2ad0284
BRF
60012009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6002
6003 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
6004 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
6005 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
6006 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
6007 prototypes for removed functions.
6008 (expressions_equal_p): Move to ...
6009 * tree-ssa-sccvn.h: ... here and ...
6010 * matrix-reorg.c: ... adjust includes.
6011
c3df55f9
BRF
60122009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6013
6014 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
6015
b5a7159f
BRF
60162009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6017
6018 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
6019 (finish_function): Remove erroneous whitespace.
6020
95bca6b0
BRF
60212009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6022
2cd713a0
BRF
6023 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
6024 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
249eb506
BRF
6025
60262009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6027
6028 * errors.c (internal_error): Commentary typo fix.
6029 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
6030 * tree-ssa-pre.c: Ditto.
95bca6b0 6031
2cd713a0
BRF
60322009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6033
6034 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
6035 them is supposed to hold actual statements.
6036
5bca4e80
ILT
60372009-06-06 Ian Lance Taylor <iant@google.com>
6038
6039 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
6040 empty statements can now have attributes.
6041
47ac44d6
SZ
60422009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
6043
6044 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
6045 * config/mips/mips.md: Ditto.
6046
19b905ce
NF
60472009-06-05 Nathan Froyd <froydnj@codesourcery.com>
6048
6049 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
6050 _RELOCATABLE.
6051 (__eabi_uconvert): Likewise.
6052
16702e19
NF
60532009-06-05 Nathan Froyd <froydnj@codesourcery.com>
6054
6055 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
6056 CFI_* definitions with IN_GCC.
6057
a735afd1
DE
60582009-06-05 David Edelsohn <edelsohn@gnu.org>
6059
6060 * xcoffout.h (xcoffout_source_line): Update prototype.
6061
26a347c5
KG
60622009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6063
6064 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
6065 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
6066
9f706f23
JJ
60672009-06-05 Jakub Jelinek <jakub@redhat.com>
6068
6069 PR middle-end/40340
6070 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
6071 inlined_function_outer_scope_p blocks for artificial inlines
6072 even at -g0/-g1.
6073 * tree.c (tree_nonartificial_location): Rewrite using
6074 block_nonartificial_location.
6075
8f439681
RE
60762009-06-05 Revital Eres <eres@il.ibm.com>
6077 Leehod Baruch <leehod@il.ibm.com>
6078
6079 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
6080 (expand_expr_real_1): Remove comment.
6081 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6082 Vectorize misaligned access when the target supports it.
c637b0fa 6083 (vect_supportable_dr_alignment): Check for unaligned access support.
8f439681
RE
6084 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
6085 and remove asset.
6086
b89f8e3c
JB
60872009-06-05 Julian Brown <julian@codesourcery.com>
6088
6089 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
6090 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
6091
47d1f191
RG
60922009-06-05 Richard Guenther <rguenther@suse.de>
6093
6094 PR bootstrap/40350
6095 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
6096 as possibly unused.
6097
9f706f23 60982009-06-05 Jakub Jelinek <jakub@redhat.com>
75707b28
JJ
6099
6100 * config/s390/s390.c (global_not_special_regno_p): New static inline.
6101 (save_gprs): Don't tell unwinder when a global register is saved.
6102 (s390_emit_epilogue): Emit needed epilogue unwind info.
6103
90f06248
AO
61042009-06-05 Alexandre Oliva <aoliva@redhat.com>
6105
6106 * dwarf2out.c (deferred_asm_name): New.
6107 (add_name_and_src_coords_attributes): Defer creation of
6108 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
6109 computed yet.
6110 (move_linkage_attr): New.
6111 (dwarf2out_finish): Revisit deferrals and emit attributes at the
6112 right place.
6113
c10348e5
AO
61142009-06-05 Alexandre Oliva <aoliva@redhat.com>
6115
6116 * tree-nested.c (finalize_nesting_tree_1): Declare the
6117 frame_decl in the binding tree.
6118
6c52e687
CC
61192009-06-04 Cary Coutant <ccoutant@google.com>
6120
6121 * basic-block.h (struct basic_block_def): Add discriminator field.
6122 * dbxout.c (dbxout_source_line): Add new parameter. Change all
6123 callers.
6124 * debug.c (do_nothing_debug_hooks): Add additional entry.
6125 (debug_nothing_int_charstar_int): New function.
c637b0fa 6126 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
6c52e687
CC
6127 (debug_nothing_int_charstar_int): New declaration.
6128 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
6129 discriminator value in .loc directive.
6130 * final.c (last_discriminator): New variable.
6131 (discriminator): New variable.
6132 (final_start_function): Initialize above variables, pass current
6133 discriminator to debug hook.
6134 (notice_source_line): Check for discriminator change.
6135 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
6136 * sdbout.c (sdbout_source_line): New parameter.
6137 * tree-cfg.c (struct locus_discrim_map): New structure type.
6138 (discriminator_per_locus): New hash table.
6139 (build_gimple_cfg): Allocate and free discriminator hash table.
6140 (make_edges): Call assign_discriminator.
6141 (locus_map_hash): New function.
6142 (locus_map_eq): New function.
6143 (next_discriminator_for_locus): New function.
6144 (same_line_p): New function.
6145 (assign_discriminator): New function.
6146 (make_cond_expr_edges): Call assign_discriminator.
6147 (make_gimple_switch_edges): Likewise.
6148 (first_non_label_stmt): New function.
6149 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
6150 all callers.
6151 * xcoffout.c (xcoffout_source_line): Add new parameter.
6152
6153 * configure.ac (gcc_cv_as_discriminator): New configury check for
6154 gas support for discriminator.
6155 * configure: Regenerate.
6156 * config.in: Regenerate.
6157
e07e020b
RR
61582009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6159
6160 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
6161 val after checking for integers.
6162
72fa3605
UB
61632009-06-04 Uros Bizjak <ubizjak@gmail.com>
6164
6165 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
6166 X64_REGPARM_MAX.
6167 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
6168 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
6169 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
6170 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
6171 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
6172 X64_SSE_REGPARM_MAX.
6173 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
6174 X64_SSE_REGPARM_MAX.
6175
bdde878c
AO
61762009-06-04 Alexandre Oliva <aoliva@redhat.com>
6177
6178 * gcc.c (report_times_to_file): New.
6179 (execute): Implement it.
6180 (process_command): Support -time=.
6181 * doc/invoke.texi: Document it.
6182
2ce59df7
AO
61832009-06-04 Alexandre Oliva <aoliva@redhat.com>
6184
6185 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
6186 that have value exprs.
6187
78bd9046
AO
61882009-06-04 Alexandre Oliva <aoliva@redhat.com>
6189
6190 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
6191 declarations for constants until...
6192 (dw2_output_indirect_constant_1): ... this point.
6193
e63d4106
RE
61942009-06-04 Richard Earnshaw <rearnsha@arm.com>
6195
6196 PR target/10242
6197 * arm.md (arm_addsi3): Don't try to split an add with an
6198 eliminable register until after reload has completed.
6199
6bc7bc14
ILT
62002009-06-03 Ian Lance Taylor <iant@google.com>
6201
6202 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
6203 * genattrtab.c (write_length_unit_log): Likewise.
6204 * genchecksum.c (dosum): Likewise.
6205 * gengtype.c (write_rtx_next): Likewise.
6206 (finish_root_table, write_roots): Likewise.
6207 * gimple.c (gimple_ops_offset_): Likewise.
6208 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
6209 * config/arc/arc.c (arc_attribute_table): Likewise.
6210 * config/arm/arm.c (arm_attribute_table): Likewise.
6211 * config/avr/avr.c (avr_attribute_table): Likewise.
6212 * config/crx/crx.c (crx_attribute_table): Likewise.
6213 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
6214 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
6215 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
6216 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
6217 * config/sh/sh.c (sh_attribute_table): Likewise.
6218 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
6219 * config/spu/spu.c (spu_attribute_table): Likewise.
6220 * config/v850/v850.c (v850_attribute_table): Likewise.
6221
6222 * config/alpha/alpha.c (vms_attribute_table): Make static.
6223 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
6224 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
6225 * config/mips/mips.c (mips_attribute_table): Likewise.
6226
6227 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
6228 $(SYSTEM_H).
6229 (cc1-checksum.o): Likewise.
6230
19d892fd
SE
62312009-06-03 Steve Ellcey <sje@cup.hp.com>
6232
6233 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
6234
679f3354
JJ
62352009-06-03 Jakub Jelinek <jakub@redhat.com>
6236
ff35822b
JJ
6237 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
6238 insn if it is changing sp. Use gen_add3_insn instead of
6239 conditionally gen_addsi3 and gen_adddi3.
6240 (offset_below_red_zone_p): New static inline function.
6241 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
6242 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
6243 * config/rs6000/ppc-asm.h: Include auto-host.h.
6244 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
6245 CFI_RESTORE): Define.
6246 * config/rs6000/crtresxgpr.asm: Add unwind info.
6247 * config/rs6000/crtresxfpr.asm: Likewise.
6248 * config/rs6000/crtresgpr.asm: Likewise.
6249 * config/rs6000/crtresfpr.asm: Likewise.
6250 * config/rs6000/crtsavgpr.asm: Likewise.
6251 * config/rs6000/crtsavfpr.asm: Likewise.
6252
dc6707b8
UB
6253 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
6254 argument of DWARF2_FRAME_REG_OUT macros.
679f3354 6255
2e94c12d
JB
62562009-06-03 Julian Brown <julian@codesourcery.com>
6257
6258 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
6259 words or less (including TImode) in core registers.
6260
3111cce0
RG
62612009-06-03 Richard Guenther <rguenther@suse.de>
6262
6263 PR middle-end/40328
6264 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
6265
5e1b50f6
AB
62662009-06-03 Andrey Belevantsev <abel@ispras.ru>
6267
6268 * statistics.c (statistics_counter_event): Do not record event
6269 in pass dump if its number == -1.
6270 (curr_statistics_hash): Add assert that we never get passes
6271 with static number == -1.
6272
6f11d690
RG
62732009-06-03 Richard Guenther <rguenther@suse.de>
6274 Andrey Belevantsev <abel@ispras.ru>
6275
6276 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
6277 non-BLKmode arrays addressable.
6278
88961471
MK
62792009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
6280
6281 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
6282 * config/m68k/m68k.h: ... here.
6283 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
6284 m68k and fido.
6285
9961eb45
MJ
62862009-06-03 Martin Jambor <mjambor@suse.cz>
6287
6288 PR tree-optimization/40323
6289 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
6290 assignment.
6291
2f2c62a0
RG
62922009-06-03 Richard Guenther <rguenther@suse.de>
6293
6294 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6295 consistently.
6296
d6ced3b7
SZ
62972009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
6298
6299 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
6300 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
6301 JUMP_TABLE_DATA_P where applicable.
6302 * config/sh/sh.c: Ditto.
6303 * config/sh/sh.h: Ditto.
6304 * config/sh/sh.md: Ditto.
6305 * config/sh/symbian.c: Ditto.
6306
f3afc8a7
UB
63072009-06-03 Uros Bizjak <ubizjak@gmail.com>
6308
6309 * config/i386/driver-i386.c (describe_cache): Optimize
6310 concatenation of strings. Use snprintf instead of sprintf.
6311 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
6312 target when not compiling with GCC.
6313
1964788a
KK
63142009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
6315
6316 * config/sh/sh.c: Revert last change.
6317 (sh_expand_epilogue): Emit a blockage insn before the frame
6318 pointer adjustment unconditionally.
6319
8633c315
RS
63202009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6321
6322 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
6323 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
6324 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
6325 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
6326 to COLLECT_GCC_OPTIONS.
6327
781a1758
RS
63282009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6329
6330 * collect2.c (target_system_root): New variable.
6331 (main): Handle --sysroot=.
6332 (ignore_library): Strip the sysroot from the library path.
6333
dfb636dc
RS
63342009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6335
6336 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
6337 (collect2.o): Depend on collect2-aix.h.
6338 (collect2-aix.o): New rule.
6339 * collect2-aix.h: New file.
6340 * collect2-aix.c: Likewise.
6341 * collect2.c: Include collect2-aix.h. Don't undefine
6342 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
6343 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
6344 Use TARGET_AIX_VERSION instead of _AIX51.
6345 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
6346 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
6347 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
6348 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
6349 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
6350
51136ae8
RS
63512009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6352
6353 * collect2.c (ignore_library): Avoid premature post-increment
6354 and null deference.
6355
7f142d33
RS
63562009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6357
6358 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
6359 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
6360 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
6361 CROSS_DIRECTORY_STRUCTURE too.
6362 (LINK_LIBG_SPEC): Likewise.
6363 (LIB_SPEC): Add %R to sysroot paths.
6364 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
6365 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
6366 * config/rs6000/aix51.h: As for aix43.h.
6367 * config/rs6000/aix52.h: Likewise.
6368 * config/rs6000/aix53.h: Likewise.
6369 * config/rs6000/aix61.h: Likewise.
6370 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
6371 to the beginning of sysroot paths.
6372
9e74b7d2
AO
63732009-06-02 Alexandre Oliva <aoliva@redhat.com>
6374
6375 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
6376 INSN_LISTs that are out of the REG_NOTE range.
6377
a9f6ecee
AO
63782009-06-02 Alexandre Oliva <aoliva@redhat.com>
6379
6380 * loop-unroll.c (struct iv_to_split): Add pointer to next.
6381 (struct var_to_expand): Likewise.
6382 (struct opt_info): Add head and tail for linked lists of the above.
6383 (analyze_insn_to_expand_var): Initialize next.
6384 (analyze_iv_to_split_insn): Likewise.
6385 (analyze_insns_in_loop): Create linked lists.
6386 (allocate_basic_variable): Simplify for use without hash table.
6387 (insert_var_expansion_initialization): Likewise, make it type-safer.
6388 (combine_var_copies_in_loop_exit): Likewise.
6389 (apply_opt_in_copies): Walk lists rather than hash tables.
6390 (release_var_copies): Simplified and inlined by hand into...
6391 (free_opt_info): ... this function.
6392
69596c69
RG
63932009-06-02 Richard Guenther <rguenther@suse.de>
6394
6395 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6396 for field decls.
6397
fe8a7779
AO
63982009-06-02 Alexandre Oliva <aoliva@redhat.com>
6399
6400 * cfgexpand.c (gimple_expand_cfg): Discard the source location
6401 only for builtins that are not overridden.
6402
1bcca2c5
AO
64032009-06-02 Alexandre Oliva <aoliva@redhat.com>
6404
6405 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
6406 label string.
6407
8588f797
AO
64082009-06-02 Alexandre Oliva <aoliva@redhat.com>
6409
6410 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
6411
45f39d78
AO
64122009-06-02 Alexandre Oliva <aoliva@redhat.com>
6413
6414 * combine.c (move_deaths): Compare LUIDs within the same BB only.
6415
2aa7c49b
AO
64162009-06-02 Alexandre Oliva <aoliva@redhat.com>
6417
6418 * common.opt (fdump-unnumbered-links): New.
6419 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
6420 * print-rtl.c (flag_dump_unnumbered_links): New.
6421 (print_rtx): Test it.
6422
55b2829b
RE
64232009-06-02 Richard Earnshaw <rearnsha@arm.com>
6424
6425 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
6426 push/pop multiple to 8-byte alignment.
e63d4106 6427
6c0d7021
JJ
64282009-06-01 Jakub Jelinek <jakub@redhat.com>
6429
0aa34d44
JJ
6430 * config/i386/i386.c (queued_cfa_restores): New static variable.
6431 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
6432 functions.
6433 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
6434 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
6435 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
6436 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
6437 note unconditionally.
6438 (ix86_emit_restore_regs_using_mov): Likewise.
6439 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6440 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
6441 it through to ix86_emit_restore_reg_using_pop.
6442 (ix86_emit_leave): Add RED_OFFSET argument. Call
6443 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
6444 instead of adding REG_CFA_OFFSET note unconditionally.
6445 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
6446 the above functions. Call ix86_add_queued_cfa_restore_notes when
6447 needed.
6448
6449 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
6450 force output of the label even for dwarf2out_do_cfi_asm.
6451 (add_fde_cfi): If -g2 and above and cfi might change CFA,
6452 force creation of CFI label and chain DW_CFA_set_loc jumping to it
6453 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
6454 caller.
6455 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
6456 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
6457 dwarf2out_cfi_label callers.
6458 * tree.h (dwarf2out_cfi_label): Adjust prototype.
6459 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
6460 Adjust dwarf2out_cfi_label callers.
6461 * config/vax/vax.c (vax_output_function_prologue): Likewise.
6462
604a6be9
JJ
6463 * config/i386/i386.h (struct machine_cfa_state,
6464 struct machine_function): Guard with ifndef USED_FOR_TARGET
6465 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
6466
df0026a7
JJ
6467 PR other/40024
6468 * emutls.c (__emutls_get_address): Change arr->size to mean number
6469 of allocated arr->data entries instead of # of slots + 1.
6470
6c0d7021
JJ
6471 PR middle-end/40316
6472 * recog.c (peep2_reinit_state): New function.
6473 (peephole2_init_state): Use it at the end of a basic block and also
6474 when seeing a RTX_FRAME_RELATED_P insn.
6475
49df2fb8
SE
64762009-06-01 Steve Ellcey <sje@cup.hp.com>
6477
6478 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
6479 fixuns_truncrfdi2): New.
6480 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
6481 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
6482 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
6483 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
6484 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
6485 *recip_approx): Remove.
6486 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
6487 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
6488 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
6489 move to div.md.
6490 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
6491 setf_exp_rf): New.
6492
67165eb3
ILT
64932009-06-01 Ian Lance Taylor <iant@google.com>
6494
6495 * attribs.c (register_attribute): Use CONST_CAST.
6496 * collect2.c (main): Use CONST_CAST2.
6497 (scan_prog_file): Likewise.
6498 * gcc.c (process_command, main): Likewise.
6499 * toplev.c (toplev_main): Likewise.
6500
6501 * c-typeck.c (handle_warn_cast_qual): New static function,
6502 partially broken out of build_c_cast.
6503 (build_c_cast): Call handle_warn_cast_qual.
6504 * doc/invoke.texi (Warning Options): Document new effect of
6505 -Wcast-qual.
6506
e74fe492
AH
65072009-06-01 Aldy Hernandez <aldyh@redhat.com>
6508
6509 * diagnostic.c (diagnostic_build_prefix): Always print columns.
6510 (diagnostic_report_current_module): Print columns.
6511 * common.opt (flag_show_column): Enable by default.
6512
7eba2d1f
LM
65132009-06-01 Luis Machado <luisgpm@br.ibm.com>
6514
6515 * alias.c (find_base_term): Check for NULL term before returning.
6516
ee88d9aa
MK
65172009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6518
6519 Revert due to PR40320:
ee88d9aa
MK
6520 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6521 * calls.c (emit_library_call_value_1): Don't force_operand for move
6522 and push insns.
6523
324c9b02 65242009-06-01 Olivier Hainque <hainque@adacore.com>
40d0d9e4 6525 Eric Botcazou <ebotcazou@adacore.com>
324c9b02
OH
6526
6527 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
6528 to be processed as a bitfield for constructor output purposes.
6529 * output.h (initializer_constant_valid_for_bitfield_p): Declare
6530 new function.
6531 * varasm.c (oc_local_state): New type, output_constructor
6532 local state to support communication with helpers.
6533 (oc_outer_state): New type, output_constructor outer state of
6534 relevance in recursive calls.
6535 (output_constructor_array_range): New output_constructor helper,
6536 extracted code for an array range element.
6537 (output_constructor_regular_field): New output_constructor helper,
6538 extracted code for an element that is not a bitfield.
6539 (output_constructor_bitfield): New output_constructor helper,
6540 extracted code for a bitfield element. Accept an OUTER state
6541 argument for recursive processing. Recurse on record or array
6542 CONSTRUCTOR values, possibly past noop conversions.
62295314 6543 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
324c9b02
OH
6544 VALUE is a valid constant-valued expression for use in a static
6545 bit-field initializer.
62295314
OH
6546 (output_constructor): Rework to use helpers. Accept and honor an
6547 OUTER state argument for recursive calls. Return total size. Be
324c9b02
OH
6548 prepared for nested constructors initializing bitfields.
6549 (output_constant): Feed OUTER in calls to output_constructor.
6550
0980d7fe
MK
65512009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6552
6553 * calls.c (emit_library_call_value_1): Don't force_operand for move
6554 and push insns.
6555
29661412
NC
65562009-06-01 Nick Clifton <nickc@redhat.com>
6557
6558 * doc/invoke.texi (IA-64 Options): Fix typo.
6559
e9dbe7bb
IR
65602009-06-01 Ira Rosen <irar@il.ibm.com>
6561
6562 PR tree-optimization/39129
7c8b1a77 6563 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
e9dbe7bb 6564 printed message.
7c8b1a77 6565 (vect_do_peeling_for_loop_bound): Use
e9dbe7bb
IR
6566 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6567 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6568 (vect_loop_versioning): Likewise.
6569 (vect_create_cond_for_alias_checks): Fix indentation.
7c8b1a77 6570 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
e9dbe7bb
IR
6571 macros.
6572 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
6573 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7c8b1a77 6574 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
e9dbe7bb 6575 "control flow in loop".
7c8b1a77 6576 (vect_estimate_min_profitable_iters): Use
e9dbe7bb
IR
6577 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6578 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6579 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6580 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7c8b1a77
UB
6581 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
6582 statement belongs to a group of strided accesses with the exact code
e9dbe7bb
IR
6583 check.
6584 (vectorizable_load): Likewise.
6585 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
6586 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
6587
5ac69a80
GP
65882009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
6589
6590 * config/freebsd-stdint.h: New file.
6591 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
6592 Add freebsd-stdint.h to tm_file.
6593
54b2b460
RE
65942009-06-01 Richard Earnshaw <rearnsha@arm.com>
6595
6596 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
6597 (thumb2_extendhidi2): Likewise.
6598
a7ca77cf
ILT
65992009-05-31 Ian Lance Taylor <iant@google.com>
6600
f3afc8a7 6601 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
c50d84e3
ILT
6602
66032009-05-31 Ian Lance Taylor <iant@google.com>
6604
f3afc8a7 6605 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
a7ca77cf
ILT
6606 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
6607 (ipa-reference.o): Depend upon gt-ipa-reference.h.
6608
1aec401e
JM
66092009-05-31 Jason Merrill <jason@redhat.com>
6610
6611 * tree-pretty-print.c (print_call_name): Take the callee, not the
f3afc8a7 6612 call itself. Make non-static. Use dump_function_name for functions.
1aec401e
JM
6613 (dump_generic_node): Adjust.
6614 * diagnostic.h: Declare print_call_name.
6615 * gimple-pretty-print.c (dump_gimple_call): Use it.
6616
ed7910bb
KK
66172009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
6618
6619 * config/sh/sh.md (ashldi3_std): New define_expand.
6620 (ashldi3): Use it.
6621
47ea8d4e
KK
66222009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
6623
6624 PR target/40313
6625 * config/sh/sh.c: Include debug.h.
6626 (sh_expand_epilogue): Emit a blockage insn before the frame
6627 pointer adjustment also when dwarf2out_do_frame returns true.
6628
405e8b49
RE
66292009-05-31 Richard Earnshaw <rearnsha@arm.com>
6630
6631 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
6632 (thumb2_extendqidi2): New pattern.
6633
71ece343
IR
66342009-05-31 Ira Rosen <irar@il.ibm.com>
6635
6636 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
6637 mark phis for renaming.
6638 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
6639 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
6640 Call mark_sym_for_renaming.
6641 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
f3afc8a7
UB
6642 * tree-vect-loop.c (vect_transform_loop): Remove
6643 vect_memsyms_to_rename initialization and a call to
6644 mark_set_for_renaming.
71ece343 6645
b3041944
JJ
66462009-05-31 Jakub Jelinek <jakub@redhat.com>
6647
6648 PR middle-end/40304
6649 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
6650 frame related even if !set_cfa && style < 0.
6651
a1bda0d7
KT
66522009-05-30 Kai Tietz <kai.tietz@onevision.com>
6653
6654 * config/i386/mingw-tls.c: New file.
f3afc8a7
UB
6655 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
6656 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
6657 defining _WIN32 but not __CYGWIN__.
a1bda0d7 6658
acd26225
KG
66592009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6660
6661 * configure.ac: Add MPC support.
6662
6663 * config.in, configure: Regenerate.
6664
cd9c1ca8
RH
66652009-05-29 Richard Henderson <rth@redhat.com>
6666
6667 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
6668 NOTE_INSN_BASIC_BLOCK.
6669 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
6670 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
6671 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
6672 to be deleted.
6673 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
6674 add in_use field.
6675 (add_cfi): Disable check redefining cfa away from drap.
6676 (lookup_cfa_1): Add remember argument; handle remember/restore.
6677 (lookup_cfa): Pass remember argument.
6678 (cfa_remember): New.
6679 (compute_barrier_args_size_1): Remove sibcall check.
6680 (dwarf2out_frame_debug_def_cfa): New.
6681 (dwarf2out_frame_debug_adjust_cfa): New.
6682 (dwarf2out_frame_debug_cfa_offset): New.
6683 (dwarf2out_frame_debug_cfa_register): New.
6684 (dwarf2out_frame_debug_cfa_restore): New.
6685 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
6686 (dwarf2out_begin_epilogue): New.
6687 (dwarf2out_frame_debug_restore_state): New.
6688 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
6689 DW_CFA_restore_state.
6690 (output_cfi_directive): Likewise.
6691 (convert_cfa_to_fb_loc_list): Likewise.
6692 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
6693 * dwarf2out.h: Update.
6694 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
6695 (copy_insn_1): Early out for null.
6696 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
6697 and dwarf2out_frame_debug_restore_state.
6698 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
6699 (prologue_insn_hash, epilogue_insn_hash): New.
6700 (free_after_compilation): Adjust freeing accordingly.
6701 (record_insns): Create hash table if needed; push insns into
6702 hash instead of array.
6703 (maybe_copy_epilogue_insn): New.
6704 (contains): Search hash table instead of array.
6705 (sibcall_epilogue_contains): Remove.
6706 (thread_prologue_and_epilogue_insns): Split eh_return insns
6707 and mark them as epilogues.
6708 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
6709 scanning in terms of basic blocks.
6710 * insn-notes.def (CFA_RESTORE_STATE): New.
6711 * jump.c (returnjump_p_1): Accept EH_RETURN.
6712 (eh_returnjump_p_1, eh_returnjump_p): New.
6713 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
6714 CFA_REGISTER, CFA_RESTORE): New.
6715 * rtl.def (EH_RETURN): New.
6716 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
6717
6718 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
6719 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
6720
6721 * config/i386/i386.c (gen_push): Update cfa state.
6722 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
6723 add a CFA_ADJUST_CFA note.
6724 (ix86_dwarf_handle_frame_unspec): Remove.
6725 (ix86_expand_prologue): Update cfa state.
6726 (ix86_emit_restore_reg_using_pop): New.
6727 (ix86_emit_restore_regs_using_pop): New.
6728 (ix86_emit_leave): New.
6729 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
6730 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
6731 * config/i386/i386.h (struct machine_cfa_state): New.
6732 (ix86_cfa_state): New.
6733 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
6734 (eh_return_internal): Merge from eh_return_<mode>,
6735 use eh_return rtx, split w/ epilogue.
6736
72b5577d
ILT
67372009-05-29 Ian Lance Taylor <iant@google.com>
6738
6739 * builtins.c (validate_gimple_arglist): Don't use va_arg with
6740 enum type.
6741 * calls.c (emit_library_call_value_1): Likewise.
6742
6743 * c-typeck.c (c_build_va_arg): New function.
6744 * c-tree.h (c_build_va_arg): Declare.
6745 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
6746 instead of build_va_arg.
6747
7a2faca1
EB
67482009-05-29 Eric Botcazou <ebotcazou@adacore.com>
6749
6750 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
6751 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
6752 (ptr_difference_cost): Use affine combinations to compute it.
6753 (difference_cost): Likewise.
6754 (get_computation_cost_at): Compute more accurate cost for addresses
6755 if the ratio is a multiplier allowed in addresses.
6756 For non-addresses, consider that an additional offset or symbol is
6757 added only once.
6758
725fd454
JJ
67592009-05-29 Jakub Jelinek <jakub@redhat.com>
6760
a0987204
JJ
6761 * config/i386/i386.c (ix86_decompose_address): Avoid useless
6762 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
6763
725fd454
JJ
6764 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
6765 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
6766 (prefix_rex): For UNIT_MMX don't imply the prefix by default
6767 if MODE_DI.
6768 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
6769 to 1 for TYPE_SSE{IADD1,CVT1}.
6770 (prefix_vex_imm8): Removed.
6771 (length_vex): Only pass 1 as second argument to
6772 ix86_attr_length_vex_default if prefix_extra is 0.
6773 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
6774 (length): For prefix vex computation use length_immediate
6775 attribute instead of prefix_vex_imm8.
6776 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
6777 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
6778 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
6779 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
6780 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
6781 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
6782 a space in between the operands.
6783 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
6784 if one operand is 0xff and the other one si, di, bp or sp.
6785 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
6786 other one si, di, bp or sp.
6787 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
6788 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
6789 type and mode attributes.
6790 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
6791 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
6792 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
6793 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
6794 prefix_data16 attribute iff MODE_DF.
6795 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
6796 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
6797 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
6798 constm128_operand in length_immediate computation.
6799 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
6800 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
6801 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
6802 length_immediate attribute to 1.
6803 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
6804 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
6805 for certain alternatives.
6806 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
6807 prefix_data16 attribute if MODE_V1DF.
6808 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
6809 length_immediate to 1.
6810 (set_got_rex64, set_rip_rex64): Remove length attribute, set
6811 length_address to 4, set mode attribute to MODE_DI.
6812 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
6813 (fxam<mode>2_i387): Set length attribute to 4.
6814 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
6815 *prefetch_3dnow_rex): Override length_address attribute.
6816 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
6817 attributes.
6818 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
6819 (constm128_operand): Removed.
6820 * config/i386/i386.c (memory_address_length): For
6821 disp && !index && !base in 64-bit mode account for SIB byte if
6822 print_operand_address can't optimize disp32 into disp32(%rip)
6823 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
6824 for fs: or gs: segment.
6825 (ix86_attr_length_immediate_default): When checking if shortform
6826 is possible, truncate immediate to the length of the non-shortened
6827 immediate.
6828 (ix86_attr_length_address_default): Ignore MEM_P operands
6829 with X constraint.
6830 (ix86_attr_length_vex_default): Only check for DImode on
6831 GENERAL_REG_P operands.
6832 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
6833 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
6834 (sse_cvttps2pi): Clear prefix_rep attribute.
6835 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
6836 attribute.
6837 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
6838 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
6839 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
6840 iff operand 2 is const_int_operand.
6841 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
6842 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
6843 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
6844 instead of vex.
6845 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
6846 prefix_data16.
6847 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
6848 prefix_data16 attribute for movlpd and movhpd instructions.
6849 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
6850 length_immediate for shufpd instruction.
6851 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
6852 (avx_cmpp<avxmodesuffixf2c><mode>3,
6853 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
6854 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
6855 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
f3afc8a7 6856 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
725fd454
JJ
6857 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
6858 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
6859 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
6860 prefix_data16 attribute for the first alternative to 1.
6861 (*avx_loadlps): Override length_immediate for the first alternative.
6862 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
6863 attributes for second alternative.
6864 (*vec_concatv2sf_sse4_1): Override length_immediate and
6865 prefix_data16 attributes for second alternative.
6866 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
6867 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
6868 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
6869 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
6870 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
6871 prefix_data16 and length_immediate to 1.
6872 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
6873 to 1.
6874 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
f3afc8a7 6875 prefix_extra attribute for variants that don't have 0f prefix alone.
725fd454
JJ
6876 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
6877 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
6878 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
6879 *sse4_1_pextrd): Set length_immediate to 1.
6880 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
6881 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
6882 to 1.
6883 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
6884 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
6885 length_immediate to 1 for second alternative.
6886 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
6887 prefix_extra and length_immediate attributes for the first
6888 alternative.
6889 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
6890 first alternative.
6891 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
6892 to 1 for the first and third alternative.
6893 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
6894 alternative.
6895 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
6896 attribute.
6897 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
6898 attribute to 0.
6899 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
6900 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
6901 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
6902 *avx_psign<mode>3): Set prefix_extra attribute to 1.
6903 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
6904 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
6905 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
6906 ssse3_psign<mode>3): Override prefix_rex attribute.
f3afc8a7 6907 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
725fd454
JJ
6908 (ssse3_palignrti): Override length_immediate to 1.
6909 (ssse3_palignrdi): Override length_immediate to 1, override
6910 prefix_rex attribute.
f3afc8a7 6911 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
725fd454
JJ
6912 (sse4a_extrqi): Override length_immediate to 2.
6913 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
6914 (sse4a_insertq): Override prefix_data16 to 0.
6915 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
6916 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
6917 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
6918 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
6919 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
6920 and length_immediate to 1.
6921 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
6922 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
6923 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
6924 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
6925 and length_immediate to 1.
6926 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
6927 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
6928 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
6929 avx_ptest256): Override prefix_extra to 1.
6930 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
6931 Override prefix_data16 and length_immediate to 1.
6932 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
6933 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
6934 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
6935 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
6936 prefix_data16 to 0 and prefix_extra to 2.
6937 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
6938 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
6939 attribute.
6940 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
6941 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
6942 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
6943 and prefix_extra to 2.
6944 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
6945 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
6946 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
6947 avx_vpermilvar<mode>3,
6948 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
6949 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
6950 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
6951 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
6952 Override prefix_extra to 1.
6953 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
6954 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
6955 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
6956 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
6957 prefix_extra and length_immediate to 1.
6958 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
6959 modrm to 0.
6960 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
6961 to 1 for the first alternative.
6962 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
6963 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
6964 cases.
6965 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
6966 *movv2sf_internal_avx, *movv2sf_internal): Override
6967 prefix_rep attribute for certain alternatives.
6968 (*mov<mode>_internal): Override prefix_rep or prefix_data16
6969 attributes for certain alternatives.
6970 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
6971 attributes for certain alternatives.
6972 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
6973 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
6974 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
6975 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
6976 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
6977 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
6978 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
6979 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
6980 length_immediate to 1 if operand 2 is const_int_operand.
6981 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
f3afc8a7 6982 *vec_extractv2si_1): Set length_immediate attribute to 1.
725fd454
JJ
6983 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
6984 using old 3DNOW insn rather than SSE/3DNOW_A.
6985 (mmx_emms, mmx_femms): Clear modrm attribute.
6986
0674b9d0
MJ
69872009-05-29 Martin Jambor <mjambor@suse.cz>
6988
6989 * tree-sra.c: New implementation of SRA.
6990
6991 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
6992 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
6993 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
6994 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
6995 (SRA_MAX_STRUCTURE_COUNT): Removed.
6996 (SRA_FIELD_STRUCTURE_RATIO): Removed.
6997 * doc/invoke.texi (sra-max-structure-size): Removed.
6998 (sra-field-structure-ratio): Removed.
6999
616f21df
JJ
70002009-05-29 Jakub Jelinek <jakub@redhat.com>
7001
7002 PR middle-end/40291
7003 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
7004 before expansion.
7005
da7ba240
AB
70062009-05-29 Andrey Belevantsev <abel@ispras.ru>
7007
7008 PR rtl-optimization/40101
7009 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
7010 seqno. Adjust comment.
7011 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
7012 inserting bookkeeping before a jump, the jump is not scheduled.
7013 When no positive seqno found, provide a value. Add comment.
7014
71dcd609
RG
70152009-05-29 Richard Guenther <rguenther@suse.de>
7016
7017 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
7018 short-cutting on the first component.
7019
a900ae6b
JJ
70202009-05-29 Jakub Jelinek <jakub@redhat.com>
7021
7022 PR middle-end/39958
7023 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
7024 for trees other than decls/types.
7025
821bb7f8
RG
70262009-05-29 Richard Guenther <rguenther@suse.de>
7027
7028 * tree-ssa-operands.c (get_expr_operands): Do not handle
7029 INDIRECT_REFs in the handled-component case. Remove
7030 unused get_ref_base_and_extent case.
7031 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
7032 tree_low_cst and host_integerp where possible.
7033 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
7034 codes for equivalence.
7035 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
7036
e997fb9c
DB
70372009-05-29 David Billinghurst <billingd@gcc.gnu.org>
7038
7039 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
7040 to tmake_file for i[34567]86-*-cygwin*.
7041
58195b74
JJ
70422009-05-29 Jakub Jelinek <jakub@redhat.com>
7043
7044 PR target/40017
7045 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
7046 (altivec_categorize_keyword, init_vector_keywords,
7047 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
7048 similar to bool.
7049
055df276
KT
70502009-05-29 Kai Tietz <kai.tietz@onevision.com>
7051
7052 * tree.c (handle_dll_attribute): Check if node is
7053 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
7054
f5939ef3
RE
70552009-05-29 Richard Earnshaw <rearnsha@arm.com>
7056
7057 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
7058 component.
7059 (thumb2_zero_extendqidi2): Likewise.
7060
c185de40
KK
70612009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
7062
7063 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
7064 instead of gen_movrt.
7065 * config/sh/sh.md (movrt): Remove.
7066
bf3c6caf
SE
70672009-05-28 Steve Ellcey <sje@cup.hp.com>
7068
f3afc8a7 7069 * doc/invoke.texi (IA-64 Options):
bf3c6caf
SE
7070 Add -msdata, -mfused-madd, -mno-inline-float-divide,
7071 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
7072 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
7073 -msched-prefer-non-control-spec-insns,
7074 -msched-stop-bits-after-every-cycle,
7075 -msched-count-spec-in-critical-path,
7076 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
f3afc8a7 7077 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
bf3c6caf
SE
7078 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
7079 and -msched-spec-verbose.
7080
8a66e987
JM
70812009-05-28 Joseph Myers <joseph@codesourcery.com>
7082
f3afc8a7 7083 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8a66e987
JM
7084 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
7085 error if used.
7086 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
7087
b45d2719
RG
70882009-05-28 Richard Guenther <rguenther@suse.de>
7089
7090 * tree-ssa-alias.c (ao_ref_init): New function.
7091 (ao_ref_base): Likewise.
7092 (ao_ref_base_alias_set): Likewise.
7093 (ao_ref_alias_set): Likewise.
7094 (refs_may_alias_p_1): Change signature.
7095 (refs_may_alias_p): Adjust.
7096 (refs_anti_dependent_p): Likewise.
7097 (refs_output_dependent_p): Likewise.
7098 (call_may_clobber_ref_p_1): Change signature.
7099 (call_may_clobber_ref_p): Adjust.
7100 (stmt_may_clobber_ref_p_1): New function split out from ...
7101 (stmt_may_clobber_ref_p): ... here.
7102 (maybe_skip_until): Adjust signature.
7103 (get_continuation_for_phi): Likewise.
7104 (walk_non_aliased_vuses): Likewise.
7105 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
7106 (ao_ref_init): Declare.
7107 (ao_ref_base): Likewise.
7108 (ao_ref_alias_set): Likewise.
7109 (stmt_may_clobber_ref_p_1): Likewise.
7110 (walk_non_aliased_vuses): Adjust.
7111 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
7112 (get_ref_from_reference_ops): remove.
7113 (vn_reference_lookup_2): Adjust signature.
7114 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
f3afc8a7 7115 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
b45d2719
RG
7116 (vn_reference_lookup): Adjust.
7117 (vn_reference_insert): Likewise.
7118 (vn_reference_insert_pieces): Adjust signature.
7119 (visit_reference_op_call): Adjust.
7120 * tree-ssa-pre.c (get_expr_type): Simplify.
7121 (phi_translate_1): Adjust.
7122 (compute_avail): Likewise.
7123 (translate_vuse_through_block): Do not re-build trees.
7124 (value_dies_in_block_x): Likewise.
7125 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
7126 fields.
7127 (vn_reference_lookup_pieces): Adjust declaration.
7128 (vn_reference_insert_pieces): Likewise.
7129
554223b6
BK
71302009-05-28 Benjamin Kosnik <bkoz@redhat.com>
7131
7132 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
7133 with checking disabled.
7134
233215fe
DK
71352009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
7136
7137 PR target/37216
7138
7139 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
7140 macro definition for support of three-operand format aligned
7141 .comm directive in assembler on cygwin/pe/mingw target OS.
7142 * configure: Regenerate.
7143 * config.h: Regenerate.
7144
7145 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
7146 aligned form of .comm directive if -mpe-aligned-commons is in effect.
7147 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
7148
7149 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
7150 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
7151
24adb18f
IR
71522009-05-28 Ira Rosen <irar@il.ibm.com>
7153
7154 PR tree-optimization/40254
7155 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
7156 in analysis of basic blocks.
7157
2c5bfdf7
AN
71582009-05-28 Adam Nemet <anemet@caviumnetworks.com>
7159
7160 PR middle-end/33699
f3afc8a7 7161 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
2c5bfdf7
AN
7162 * target-def.h (TARGET_CONST_ANCHOR): New macro.
7163 (TARGET_INITIALIZER): Use it.
7164 * cse.c (CHEAPER): Move it up to the other macros.
7165 (insert): Rename this ...
7166 (insert_with_costs): ... to this. Add cost parameters. Update
7167 function comment.
7168 (insert): New function. Call insert_with_costs.
7169 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
7170 find_reg_offset_for_const, try_const_anchors): New functions.
7171 (cse_insn): Call try_const_anchors. Adjust cost of src_related
7172 when using a const-anchor. Call insert_const_anchors.
f3afc8a7 7173 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2c5bfdf7
AN
7174 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
7175
9e6aced0
AO
71762009-05-28 Alexandre Oliva <aoliva@redhat.com>
7177
7178 * tree-inline.c (remap_decls): Enable nonlocalized variables
7179 when not optimizing.
7180
89fbbe4e
AO
71812009-05-28 Alexandre Oliva <aoliva@redhat.com>
7182
7183 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
7184 Simplify other tests involving optimize.
7185
e455776a
TT
71862009-05-27 Tom Tromey <tromey@redhat.com>
7187
7188 * unwind-dw2.c (_Unwind_DebugHook): New function.
7189 (uw_install_context): Call _Unwind_DebugHook.
7190
cea32bca
TT
71912009-05-27 Tom Tromey <tromey@redhat.com>
7192
7193 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
7194
c607156f
ILT
71952009-05-27 Ian Lance Taylor <iant@google.com>
7196
7197 * Makefile.in (LINKER, LINKER_FLAGS): Define.
7198 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
7199 (ALL_LINKERFLAGS): Define.
7200 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
7201 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7202 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
7203 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7204 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
7205 $(LINKER_FOR_BUILD).
7206 (build/gcov-iov$(build_exeext)): Likewise.
7207
ec0a1343
JB
72082009-05-27 Julian Brown <julian@codesourcery.com>
7209
7210 * gcse.c (target.h): Include.
7211 (can_assign_to_reg_without_clobbers_p): Check that the target allows
7212 copy of argument to a pseudo register.
7213
ac80ba07
DN
72142009-05-27 Diego Novillo <dnovillo@google.com>
7215
7216 * tree-ssa-live.c (dump_scope_block): Document arguments.
7217 (dump_scope_blocks): Document.
7218 (debug_scope_blocks): New.
7219 * tree-flow.h (debug_scope_blocks): Declare.
7220
d1803a17
DC
72212009-05-21 Denis Chertykov <denisc@overta.ru>
7222
f3afc8a7 7223 * doc/contrib.texi (Contributors): Add myself to the list.
d1803a17 7224
51fb7760 72252009-05-27 Olivier Hainque <hainque@adacore.com>
ceadb728
OH
7226
7227 * expr.c (target_align): New function. Alignment the TARGET of an
7228 assignment may be assume to have.
7229 (highest_pow2_factor_for_target): Use it instead of relying on
7230 immediate tree attributes of TARGET, not necessarily honored when
7231 intermediate bitfields are involved.
7232
634fa334
L
72332009-05-27 H.J. Lu <hongjiu.lu@intel.com>
7234
7235 PR target/40266
7236 * config/i386/driver-i386.c (host_detect_local_cpu): Support
7237 AVX, SSE4, AES, PCLMUL and POPCNT.
7238
65332587
DN
72392009-05-27 Diego Novillo <dnovillo@google.com>
7240
7241 * tree-pretty-print.c (dump_location): New.
7242 (dump_generic_node): Call it.
7243 Factor code to handle BLOCK nodes ...
7244 (dump_block_node): ... here.
7245
3e17e31d
RAE
72462009-05-27 Rafael Avila de Espindola <espindola@google.com>
7247
f3afc8a7
UB
7248 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
7249 with it.
3e17e31d
RAE
7250 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
7251 included.
7252 * gcc-plugin.h: Include config.h and system.h.
7253 (IN_GCC): Define if not defined.
7254
5e370570
HPN
72552009-05-27 Hans-Peter Nilsson <hp@axis.com>
7256
7257 PR middle-end/40249
7258 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
7259 with -fno-inline.
7260
d000f0d9
SZ
72612009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
7262
7263 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
7264 applicable.
7265 * config/m32r/m32r.h: Ditto.
7266 * config/m32r/m32r.md: Ditto.
7267 * config/m32r/predicates.md: Ditto.
7268
82f331ff
AO
72692009-05-27 Alexandre Oliva <aoliva@redhat.com>
7270
7271 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
7272
ae2392a9
BS
72732009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
7274
7275 * doc/plugins.texi
7276 (Loading plugins): typo.
7277 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
7278 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
7279 (Interacting with the GCC Garbage Collector): Added new section.
7280 (Giving information about a plugin): Added new section for
7281 PLUGIN_INFO.
ae2392a9
BS
7282 * ggc.h (ggc_register_root_tab): Added declaration.
7283 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
7284 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
7285 (register_callback): Improved comment in declaration.
f3afc8a7
UB
7286 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
7287 (extra_root_vec) Added static variable for dynamic roots registration.
ae2392a9
BS
7288 (ggc_register_root_tab) Added new routine.
7289 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
7290 PLUGIN_GGC_MARKING event.
7291 * ggc-zone.c: Include plugin.h.
7292 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
7293 * ggc-page.c: Include plugin.h.
7294 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
7295 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
7296 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
7297 (register_callback): check lack of callbacks for
7298 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
7299 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
7300 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
7301 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
7302 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
7303 dependency on plugin.h.
7304 (plugin.o): Added dependency on ggc.h...
7305
f0cfd3a8
RG
73062009-05-26 Richard Guenther <rguenther@suse.de>
7307
7308 PR middle-end/40248
7309 Revert
7310 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7311 with mismatched comparison modes.
7312
7313 * expr.c (expand_expr_real_1): Expand the operand of a
7314 VIEW_CONVERT_EXPR in its natural mode.
7315
7980bfb8
ILT
73162009-05-26 Ian Lance Taylor <iant@google.com>
7317
7318 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
7319 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
7320 (ALL_COMPILERFLAGS): Define.
7321 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
7322 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7323 (collect2$(exeext), collect2.o): Likewise.
7324 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
7325 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
7326 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
7327 (libbackend.o, intl.o, cppdefault.o): Likewise.
7328 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7329 (build/%.o): Use $(COMPILER_FOR_BUILD).
7330 (build/gen%$(build_exeext)): Likewise.
7331 (build/gcov-iov$(build_exeext)): LIkewise.
7332 * config/t-darwin (darwin.o): Use $(COMPILER).
7333 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
7334 * config/t-sol2 (sol2-c.o): Likewise.
7335 (sol2.o): Likewise.
7336 * config/t-vxworks (vxworks.o): Likewise.
7337 * config/x-darwin (host-darwin.o): Likewise.
7338 * config/x-hpux (host-hpux.o): Likewise.
7339 * config/x-linux (host-linux.o): Likewise.
7340 * config/x-solaris (host-solaris.o): Likewise.
7341 * config/alpha/x-alpha (driver-alpha.o): Likewise.
7342 * config/arm/t-arm (arm-c.o): Likewise.
7343 * config/arm/t-pe (pe.o): Likewise.
7344 * config/arm/t-wince-pe (pe.o): Likewise.
7345 * config/i386/t-cygming (winnt.o): Likewise.
7346 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
7347 * config/i386/t-cygwin (cygwin1.o): Likewise.
7348 (cygwin2.o): Likewise.
7349 * config/i386/t-i386 (i386-c.o): Likewise.
7350 * config/i386/t-interix (winnt.o): Likewise.
7351 * config/i386/t-netware (netware.o): Likewise.
7352 * config/i386/t-nwld (nwld.o): Likewise.
7353 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
7354 * config/i386/x-i386 (driver-i386.o): Likewise.
7355 * config/i386/x-cygwin (host-cygwin.o): Likewise.
7356 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
7357 * config/ia64/t-ia64 (ia64-c.o): Likewise.
7358 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
7359 * config/mips/x-native (driver-native.o): Likewise.
7360 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
7361 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
7362 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
7363 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
7364 * config/score/t-score-elf (score7.o): Likewise.
7365 (score3.o): Likewise.
7366 * config/sh/t-sh (sh-c.o): Likewise.
7367 * config/sh/t-symbian (sh-c.o): Likewise.
7368 (symbian.o): Likewise.
7369 * config/spu/t-spu-elf (spu-c.o): Likewise.
7370 * config/v850/t-v850 (v850-c.o): Likewise.
7371 * config/v850/t-v850e (v850-c.o): Likewise.
7372
23977d3c
RG
73732009-05-26 Richard Guenther <rguenther@suse.de>
7374
7375 PR tree-optimization/40122
7376 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
7377 VECTOR_CSTs if possible.
7378 (fold_gimple_assign): Likewise.
7379
3d62b895
RG
73802009-05-26 Richard Guenther <rguenther@suse.de>
7381
7382 PR middle-end/40252
7383 * fold-const.c (fold_binary): Use the correct types for building
7384 rotates.
7385
12346147
RG
73862009-05-26 Richard Guenther <rguenther@suse.de>
7387
7388 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
7389 redundant calls to merge_alias_info.
7390 (bump_vector_ptr): Likewise.
7391 * tree-ssa-copy.c (merge_alias_info): Remove.
7392 (replace_exp_1): Remove call to merge_alias_info.
7393 (propagate_tree_value): Likewise.
7394 (fini_copy_prop): Propagate points-to info.
7395 * tree-flow.h (merge_alias_info): Remove.
7396
807d5e6f
HS
73972009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
7398
7399 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
7400
85057983
JH
74012009-05-25 Jan Hubicka <jh@suse.cz>
7402
7403 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
7404 * cgraph.h (struct inline_summary): New filed self_wize,
7405 size_inlining_benefit, self_time and time_inlining_benefit.
7406 (struct cgraph_global_info): Replace insns by time ans size fields.
7407 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
7408 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
7409 (ipcp_update_callgraph): Do not touch function bodies.
7410 * ipa-inline.c: Include except.h
7411 (MAX_TIME): New constant.
7412 (overall_insns): Remove.
7413 (leaf_node_p): New.
7414 (overall_size, max_benefit): New static variables.
7415 (cgraph_estimate_time_after_inlining): New function.
7416 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
7417 (cgraph_clone_inlined_nodes): Update size.
7418 (cgraph_mark_inline_edge): Update size.
7419 (cgraph_estimate_growth): Use size info.
7420 (cgraph_check_inline_limits): Check size.
7421 (cgraph_default_inline_p): Likewise.
7422 (cgraph_edge_badness): Compute badness based on benefit and size cost.
7423 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
7424 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
7425 and times.
85057983
JH
7426 (cgraph_decide_inlining): Likewise.
7427 (cgraph_decide_inlining_incrementally): Likewise; honor
7428 PARAM_EARLY_INLINING_INSNS.
7429 (likely_eliminated_by_inlining_p): New predicate.
7430 (estimate_function_body_sizes): New function.
7431 (compute_inline_parameters): Use it.
7432 * except.c (must_not_throw_labels): New function.
7433 * except.h (must_not_throw_labels): Declare.
7434 * tree-inline.c (init_inline_once): Kill inlining_weigths
7435 * tree-ssa-structalias.c: Avoid uninitialized warning.
7436 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
7437 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
7438 (PARAM_INLINE_CALL_COST): Remove.
7439 (PARAM_EARLY_INLINING_INSNS): New.
7440
01df5c8a
RG
74412009-05-25 Richard Guenther <rguenther@suse.de>
7442
7443 PR tree-optimization/36327
7444 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
f3afc8a7 7445 callback for reference translation or lookup at the point of may-defs.
01df5c8a
RG
7446 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
7447 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
7448 for union COMPONENT_REFs.
7449 (vn_reference_lookup_3): New callback. Lookup from memset
7450 and CONSTRUCTOR assignment, translate through struct copies.
7451 (vn_reference_lookup_pieces): Make sure to not free the
7452 passed operands array. Adjust walk_non_aliased_vuses call.
7453 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
7454 make sure we do not leak memory.
7455
6b8ed145
RG
74562009-05-25 Richard Guenther <rguenther@suse.de>
7457
7458 * tree-ssa-alias.h (dump_points_to_solution): Declare.
7459 * tree-inline.c (expand_call_inline): Reset the escaped and
7460 callused solutions.
7461 * tree-ssa-structalias.c (pass_build_ealias): New.
7462 * tree-pass.h (pass_build_ealias): Declare.
7463 * passes.c (init_optimization_passes): Add PTA during
7464 early optimizations.
7465 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
7466 and CALLUSED solutions.
7467 (dump_points_to_solution): New function, split out from ...
7468 (dump_points_to_info_for): ... here.
7469 * tree-parloops.c (parallelize_loops): Reset the escaped and
7470 callused solutions.
7471
0adcf178
RO
74722009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7473
7474 PR bootstrap/40027
7475 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
7476 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
7477
12aaf609
IR
74782009-05-25 Ira Rosen <irar@il.ibm.com>
7479
7480 PR tree-optimization/40238
7481 * tree-vect-stmts.c (vect_init_vector): Insert initialization
7482 statements after basic block's labels.
7483 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
7484 to free the allocated memory.
7485
7f9a14e3
KK
74862009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
7487
7488 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
7489 return address with a USE.
7490
b842d478
RG
74912009-05-24 Richard Guenther <rguenther@suse.de>
7492
7493 PR middle-end/40233
7494 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
7495 array type from the main variant of the inner type.
7496
8db7b33f
JBG
74972009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7498
7499 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
7500 definition to bool (from int) to un-break build.
7501 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
7502
cff4e50d
PB
75032009-05-24 Paolo Bonzini <bonzini@gnu.org>
7504
7505 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
7506 discard_stmt_changes): Delete.
7507 * tree-ssa-operands.c (scb_stack): Delete.
7508 (init_ssa_operands): Do not initialize it.
7509 (fini_ssa_operands): Do not free it.
7510 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
7511
7512 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
7513 update_stmt, remove the others. Fix comments.
7514 * tree-dfa.c (optimize_stack_restore): Likewise.
7515 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
7516 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
7517 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7518 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
7519 Likewise.
7520 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
7521 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
f3afc8a7
UB
7522 (dom_opt_finalize_block): Likewise, adjusting access to
7523 stmts_to_rescan.
cff4e50d
PB
7524 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
7525 (stmts_to_rescan): Change item type to gimple.
7526 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
7527
a70d6342
IR
75282009-05-24 Ira Rosen <irar@il.ibm.com>
7529
7530 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
7531 * tree-pass.h (pass_slp_vectorize): New pass.
7532 * params.h (SLP_MAX_INSNS_IN_BB): Define.
7533 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
7534 * tree-vectorizer.c (timevar.h): Include.
7535 (user_vect_verbosity_level): Declare.
7536 (vect_location): Fix comment.
7537 (vect_set_verbosity_level): Update user_vect_verbosity_level
7538 instead of vect_verbosity_level.
7539 (vect_set_dump_settings): Add an argument. Ignore user defined
7540 verbosity if dump flags require higher level of verbosity. Print to
7541 stderr only for loop vectorization.
7542 (vectorize_loops): Update call to vect_set_dump_settings.
7543 (execute_vect_slp): New function.
7544 (gate_vect_slp): Likewise.
7545 (struct gimple_opt_pass pass_slp_vectorize): New.
7546 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
7547 access its members.
7548 (vec_info_for_bb): New function.
7549 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
7550 (VECTORIZATION_ENABLED): New macro.
7551 (SLP_ENABLED, SLP_DISABLED): Likewise.
7552 (vect_is_simple_use): Add bb_vec_info argument.
7553 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
7554 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7555 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7556 vect_schedule_slp, vect_analyze_slp): Likewise.
7557 (vect_analyze_stmt): Add slp_tree argument.
7558 (find_bb_location): Declare.
7559 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7560 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
7561 (vect_analyze_loop_operations, vect_analyze_loop,
7562 get_initial_def_for_induction, vect_create_epilog_for_reduction,
7563 vect_finalize_reduction, vectorizable_reduction,
7564 vectorizable_live_operation, vect_transform_loop): Likewise.
7565 * tree-data-ref.c (dr_analyze_innermost): Update comment,
7566 skip evolution analysis if analyzing a basic block.
7567 (dr_analyze_indices): Likewise.
7568 (initialize_data_dependence_relation): Skip the test whether the
7569 object is invariant for basic blocks.
7570 (compute_all_dependences): Skip dependence analysis for data
7571 references in basic blocks.
7572 (find_data_references_in_stmt): Don't fail in case of invariant
7573 access in basic block.
7574 (find_data_references_in_bb): New function.
7575 (find_data_references_in_loop): Move code to
782dc37a 7576 find_data_references_in_bb and add a call to it.
a70d6342
IR
7577 (compute_data_dependences_for_bb): New function.
7578 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
7579 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
7580 that STEP is 0.
7581 (vect_analyze_data_ref_dependence): Check for interleaving in case of
7582 unknown dependence in basic block and fail in case of dependence in
7583 basic block.
7584 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
7585 dependence instances from either loop or basic block vectorization
7586 info.
7587 (vect_compute_data_ref_alignment): Check if it is loop vectorization
7588 before calling nested_in_vect_loop_p.
7589 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
7590 dependence instances from either loop or basic block vectorization
7591 info.
7592 (vect_verify_datarefs_alignment): Likewise.
7593 (vect_enhance_data_refs_alignment): Adjust function calls.
7594 (vect_analyze_data_refs_alignment): Likewise.
7595 (vect_analyze_group_access): Fix printing. Skip different checks if
7596 DR_STEP is 0. Keep strided stores either in loop or basic block
7597 vectorization data structure. Fix indentation.
7598 (vect_analyze_data_ref_access): Fix comments, allow zero step in
7599 basic blocks.
7600 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
7601 dependence instances from either loop or basic block vectorization
7602 info.
7603 (vect_analyze_data_refs): Update comment. Call
7604 compute_data_dependences_for_bb to analyze basic blocks.
7605 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
7606 case of loop vectorization. In case of basic block vectorization use
782dc37a 7607 data-ref itself as a base.
a70d6342
IR
7608 (vect_create_data_ref_ptr): In case of basic block vectorization:
7609 don't advance the pointer, add new statements before the current
7610 statement. Adjust function calls.
7611 (vect_supportable_dr_alignment): Support only aligned accesses in
7612 basic block vectorization.
7613 * common.opt (ftree-slp-vectorize): New flag.
7614 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
7615 (vect_pattern_recog_1): Likewise.
7616 * tree-vect-stmts.c (process_use): Likewise.
7617 (vect_init_vector): Add new statements in the beginning of the basic
7618 block in case of basic block SLP.
7619 (vect_get_vec_def_for_operand): Adjust function calls.
7620 (vect_finish_stmt_generation): Likewise.
7621 (vectorizable_call): Add assert that it is loop vectorization, adjust
7622 function calls.
7623 (vectorizable_conversion, vectorizable_assignment): Likewise.
7624 (vectorizable_operation): In case of basic block SLP, take
7625 vectorization factor from statement's type and skip the relevance
7626 check. Adjust function calls.
7627 (vectorizable_type_demotion): Add assert that it is loop
7628 vectorization, adjust function calls.
7629 (vectorizable_type_promotion): Likewise.
7630 (vectorizable_store): Check for outer loop only in case of loop
7631 vectorization. Adjust function calls. For basic blocks, skip the
7632 relevance check and don't advance pointers.
7633 (vectorizable_load): Likewise.
7634 (vectorizable_condition): Add assert that it is loop vectorization,
7635 adjust function calls.
7636 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
7637 that it is not reduction, get vector type, call only supported
782dc37a 7638 functions, skip loop specific parts.
a70d6342
IR
7639 (vect_transform_stmt): Check for outer loop only in case of loop
7640 vectorization.
7641 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
7642 (vect_is_simple_use): Fix comment, add new argument, fix conditions
7643 for external definition.
7644 * passes.c (pass_slp_vectorize): New pass.
7645 * tree-vect-slp.c (find_bb_location): New function.
7646 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
7647 check for patterns only in loops.
7648 (vect_build_slp_tree): Add argument, adjust function calls, fail in
7649 case of multiple types in basic block SLP.
7650 (vect_mark_slp_stmts_relevant): New function.
7651 (vect_supported_load_permutation_p): Fix comment.
7652 (vect_analyze_slp_instance): Add argument. In case of basic block
7653 SLP, take vectorization factor from statement's type, check that
7654 unrolling factor is 1. Adjust function call. Save SLP instance in
7655 either loop or basic block vectorization structure. Return FALSE,
7656 if SLP failed.
7657 (vect_analyze_slp): Add argument. Get strided stores groups from
7658 either loop or basic block vectorization structure. Return FALSE
7659 if basic block SLP failed.
7660 (new_bb_vec_info): New function.
7661 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
7662 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
7663 (vect_schedule_slp): Add argument. Get SLP instances from either
7664 loop or basic block vectorization structure. Set vectorization factor
7665 to be 1 for basic block SLP.
7666 (vect_slp_transform_bb): New function.
7667 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
7668
0676c393
MM
76692009-05-23 Mark Mitchell <mark@codesourcery.com>
7670
7671 * final.c (shorten_branches): Do not align labels for jump tables.
7672 (final_scan_insn): Use JUMP_TABLE_DATA_P.
7673
94324dae
EB
76742009-05-23 Eric Botcazou <ebotcazou@adacore.com>
7675
7676 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
7677 Remove outdated reference to flow.c and fix nits.
7678 * doc/gccint.texi: Tweak RTL description.
7679 * doc/rtl.texi: Likewise.
7680
92bffc14
DC
76812009-05-23 Denis Chertykov <chertykov@gmail.com>
7682
7683 * config/avr/avr.c: Change my email address.
7684 * config/avr/avr.h: Likewise.
7685 * config/avr/avr.md: Likewise.
7686 * config/avr/avr-protos.h: Likewise.
7687 * config/avr/libgcc.S: Likewise.
7688
eec9405e
TS
76892009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
7690
7691 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
7692 (spu_split_load, spu_split_store): Change return type to int.
7693 (spu_split_convert): Declare.
7694 * config/spu/predicates.md (spu_mem_operand): Remove.
7695 (spu_mov_operand): Update.
7696 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
7697 * config/spu/spu.c (regno_aligned_for_load): Remove.
7698 (reg_aligned_for_addr, spu_expand_load): Define.
7699 (spu_expand_extv): Reimplement and handle MEM.
7700 (spu_expand_insv): Handle MEM.
7701 (spu_sched_reorder): Handle insn's with length 0.
7702 (spu_legitimate_address_p): Reimplement.
7703 (store_with_one_insn_p): Return TRUE for any mode with size
7704 larger than 16 bytes.
7705 (address_needs_split): Define.
7706 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
7707 operands.
7708 (spu_convert_move): Define.
782dc37a 7709 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
eec9405e
TS
7710 (spu_split_store): Change all MEM's to TImode.
7711 (spu_init_expanders): Preallocate registers that correspond to
7712 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
7713 mark_reg_pointer.
7714 (spu_split_convert): Define.
7715 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
7716 (_move<mode>, _movdi, _movti): Update predicate and condition.
7717 (load, store): Change to define_split.
7718 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
7719 extend<mode>ti2.
7720 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
7721 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
7722 define_insn_and_split of lshr<mode>3.
7723 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
7724 (<v>ashr<mode>3_imm): Define.
7725 (extv, extzv, insv): Allow MEM operands.
7726 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
7727 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
7728 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
7729 (_spu_convert2): Change to define_insn_and_split and remove the
7730 corresponding define_peephole2.
7731 (stack_protect_set, stack_protect_test, stack_protect_test_si):
7732 Change predicates to memory_operand.
7733
7d31a807
MM
77342009-05-22 Mark Mitchell <mark@codesourcery.com>
7735
7736 * config/arm/thumb2.md: Add 16-bit multiply instructions.
7d31a807 7737
d021d274
MM
77382009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7739
7740 PR tree-optimization/40219
7741 * tree.c (iterative_hash_expr): Make sure the builtin function is
7742 a normal builtin function and not a front end or back end builtin
7743 before indexing into the built_in_decls array.
7744
4d7a65ea
RG
77452009-05-22 Richard Guenther <rguenther@suse.de>
7746
7747 PR middle-end/38964
7748 * alias.c (write_dependence_p): Do not use TBAA for answering
7749 anti-dependence or output-dependence.
782dc37a 7750 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
4d7a65ea
RG
7751 (emit_pointer_definition): Remove.
7752 (emit_alias_warning): Likewise.
7753 (find_what_var_points_to): Remove TBAA pruning code.
7754 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
7755 violations.
7756 (compute_points_to_sets): Remove code computing the set of
7757 dereferenced pointers.
7758 * tree-data-ref.c (dr_may_alias_p): Properly use the split
7759 oracle for querying anti and output dependencies.
7760 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
7761 if TBAA may be applied.
7762 (refs_anti_dependent_p): New function.
7763 (refs_output_dependent_p): Likewise.
7764 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
7765 (refs_output_dependent_p): Likewise.
7766 * doc/tree-ssa.texi (Memory model): New section.
7767 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7768 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7769 * cfgexpand.c (expand_gimple_basic_block): Do not handle
7770 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
7771 * expr.c (expand_expr_real_1): Likewise.
7772 * gimple-low.c (lower_stmt): Likewise.
7773 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
7774 (dump_gimple_cdt): Remove.
7775 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7776 (gimple_size): Likewise.
7777 (walk_gimple_op): Likewise.
7778 (is_gimple_stmt): Likewise.
7779 (walk_stmt_load_store_addr_ops): Likewise.
7780 (gimple_build_cdt): Remove.
7781 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7782 * gimple.h (gimple_cdt_new_type): Remove.
7783 (gimple_cdt_new_type_ptr): Likewise.
7784 (gimple_cdt_set_new_type): Likewise.
7785 (gimple_cdt_location): Likewise.
7786 (gimple_cdt_location_ptr): Likewise.
7787 (gimple_cdt_set_location): Likewise.
7788 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7789 * tree-cfg.c (remove_useless_stmts_1): Do not handle
7790 GIMPLE_CHANGE_DYNAMIC_TYPE.
7791 (verify_types_in_gimple_stmt): Likewise.
7792 * tree-inline.c (estimate_num_insns): Likewise.
7793 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
7794 (copy_decl_to_var): Likewise.
7795 (copy_result_decl_to_var): Likewise.
7796 * tree-pretty-print.c (dump_generic_node): Do not handle
7797 CHANGE_DYNAMIC_TYPE_EXPR.
7798 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7799 * tree-ssa-operands.c (get_expr_operands): Likewise.
7800 * tree-ssa-structalias.c (struct variable_info): Remove
7801 no_tbaa_pruning member.
7802 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
7803 (unify_nodes): Do not copy it.
7804 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7805 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
7806 (set_uids_in_ptset): Do not check it.
7807 (find_what_var_points_to): Likewise.
7808 (compute_tbaa_pruning): Remove.
7809 (compute_points_to_sets): Do not call it.
7810 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7811 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7812 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
7813 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
7814 (DECL_NO_TBAA_P): Likewise.
7815 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
7816 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
7817 (expand_omp_atomic_pipeline): Do not set it.
7818 * print-tree.c (print_node): Do not dump it.
7819 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7820 redundant check.
7821
83a6ac60
VM
78222009-05-22 Vladimir Makarov <vmakarov@redhat.com>
7823
7824 PR target/39856
7825 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
7826 for clobber.
7827
fe2978fb
MM
78282009-05-22 Mark Mitchell <mark@codesourcery.com>
7829
7830 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
7831 non-external.
7832
134ef638
BE
78332009-05-22 Ben Elliston <bje@au.ibm.com>
7834
7835 * Makefile.in (bversion.h, s-bversion): New targets.
7836 (TOPLEV_H): Add bversion.h.
7837 * toplev.h: Include "bversion.h".
7838 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
7839 the __format__ attribute only if compiling with the same version
7840 of GCC as the sources (the "build version").
7841
52fc669d
BE
78422009-05-22 Ben Elliston <bje@au.ibm.com>
7843
7844 * c-format.c (handle_format_attribute): Fix comment typo.
7845
583ca921
SE
78462009-05-21 Steve Ellcey <sje@cup.hp.com>
7847
7848 PR target/37846
7849 * config/ia64/ia64.opt (mfused-madd): New.
7850 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
7851 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
7852 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
7853 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
7854 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
7855 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
7856 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
7857 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
7858 instruction if !TARGET_FUSED_MADD.
7859 (fpma, fpms): Remove colon from name.
7860
150e3929
RG
78612009-05-22 Richard Guenther <rguenther@suse.de>
7862
7863 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7864 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
7865 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7866 TARGET_MEM_REF.
7867 (create_expression_by_pieces): Only convert if necessary.
7868 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
7869 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
7870
9a2b090c
AN
78712009-05-21 Adam Nemet <anemet@caviumnetworks.com>
7872
7873 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
7874 regular pattern from a template and rename it ...
7875 (*extzv_truncsi_exts): ... to this.
7876
33b92c9d
RG
78772009-05-21 Richard Guenther <rguenther@suse.de>
7878
7879 * cgraph.h (struct cgraph_node): Remove inline_decl member.
7880 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
7881 (cgraph_default_inline_p): Likewise.
7882 (cgraph_decide_inlining_incrementally): Likewise.
7883
cabf85c3
L
78842009-05-21 H.J. Lu <hongjiu.lu@intel.com>
7885 Uros Bizjak <ubizjak@gmail.com>
7886
7887 * config/i386/cpuid.h (bit_MOVBE): New.
7888
7889 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
7890
7891 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
7892 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
7893 (ix86_handle_option): Handle OPT_mmovbe.
7894 (ix86_target_string): Add -mmovbe.
7895 (pta_flags): Add PTA_MOVBE.
7896 (processor_alias_table): Add PTA_MOVBE to "atom".
7897 (override_options): Handle PTA_MOVBE.
7898
7899 * config/i386/i386.h (TARGET_MOVBE): New.
7900
7901 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
7902 (*bswapsi_movbe): New.
7903 (*bswapdi_movbe): Likewise.
7904 (bswapdi2): Renamed to ...
7905 (*bswapdi_1): This.
7906 (bswapdi2): New expander.
7907
7908 * config/i386/i386.opt (mmovbe): New.
7909
7910 * doc/invoke.texi: Document -mmovbe.
7911
9fefa0aa
TG
79122009-05-21 Taras Glek <tglek@mozilla.com>
7913
7914 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
7915 * gcc-plugin.h (plugin_init): Updated signature.
7916 * gcc-plugin.h (plugin_name_args): Moved to this header.
cabf85c3
L
7917 * doc/plugins.texi (plugin_init): Updated documention to reflect
7918 API change.
9fefa0aa
TG
7919 * doc/plugins.texi (plugin_name_args): Added to documention.
7920
1ea9fe56
MM
79212009-05-21 Mark Mitchell <mark@codesourcery.com>
7922
7923 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
7924 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
7925
52f84254
SZ
79262009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
7927
7928 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
7929 JUMP_TABLE_DATA_P predicates where applicable.
7930 * config/i386/predicates.md: Ditto.
7931 * config/i386/sse.md: Ditto.
7932
a952487c
JJ
79332009-05-21 Jakub Jelinek <jakub@redhat.com>
7934
93cac287
JJ
7935 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
7936 operand2 -128 override length_immediate attribute to 1.
7937 * config/i386/predicates.md (constm128_operand): New predicate.
7938
a952487c
JJ
7939 * config/i386/i386.c (memory_address_length): Handle %r12
7940 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
7941 also check REGNO.
7942 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
7943 mode look through optional ZERO_EXTEND and SUBREG.
7944 * config/i386/i386.md (R12_REG): New define_constant.
7945 (prefix_data16): For sse unit set also for MODE_TI insns.
7946 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
7947 insns set if operand 1 is ext_QIreg_operand.
7948 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
7949 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
7950 immediate.
7951 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
7952 mode from MODE_DI to MODE_SI.
7953 (movdi_1_rex64): Override modrm and length_immediate attributes
7954 only for movabs (TYPE_IMOV, alternative 2).
7955 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
7956 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7957 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7958 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7959 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
7960 prefix_rex attribute if DImode.
7961 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
7962 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
7963 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
7964 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
7965 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
7966 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
7967 Likewise. For TYPE_IMOV clear length_immediate attribute.
7968 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
7969 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
7970 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
7971 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
7972 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
7973 or one operand TYPE_ISHIFT.
7974 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
7975 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
7976 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
7977 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
7978 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
7979 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
7980 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
7981 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
7982 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
7983 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
7984 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
7985 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
7986 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
7987 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
7988 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
7989 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
7990 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
7991 set mode attribute, don't override length attribute.
7992 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
7993 to 1.
7994 (return_internal_long): Set length attribute to 2 instead of 1.
7995 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
7996 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
7997 prefix_rex attribute.
782dc37a
UB
7998 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
7999 New predicates.
8000 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
a952487c 8001
64af62c2
RR
80022009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8003
8004 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
8005
c166b898
ILT
80062009-05-20 Ian Lance Taylor <iant@google.com>
8007
8008 * tree.c (build_tree_list_vec_stat): New function.
8009 (ctor_to_vec): New function.
8010 (build_nt_call_vec): New function.
8011 (build_call_array): Change args to be a const pointer.
8012 (build_call_vec): New function.
8013 * tree.h (build_nt_call_vec): Declare.
8014 (build_tree_list_vec_stat): Declare.
8015 (build_tree_list_vec): Define.
8016 (build_call_array): Update declaration.
8017 (build_call_vec): Declare.
8018 (ctor_to_vec): Declare.
8019 * c-common.c (tree_vector_cache): New static variable.
8020 (make_tree_vector): New function.
8021 (release_tree_vector): New function.
8022 (make_tree_vector_single): New function.
8023 (make_tree_vector_copy): New function.
8024 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
8025 (make_tree_vector_single, make_tree_vector_copy): Declare.
8026 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
8027 (c_parser_expr_list): Don't manage cache here, instead call
8028 make_tree_vector.
8029 (c_parser_release_expr_list): Remove static function.
8030 (c_parser_vec_to_tree_list): Remove static function.
8031 (c_parser_attributes): Call build_tree_list_vec instead of
8032 c_parser_vec_to_tree_list. Call release_tree_vector instead of
8033 c_parser_release_expr_list.
8034 (c_parser_postfix_expression_after_primary): Likewise.
8035 (c_parser_objc_keywordexpr): Likewise.
8036
40449a90
SL
80372009-05-20 Sandra Loosemore <sandra@codesourcery.com>
8038
8039 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
8040 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
8041 TARGET_CONVERT_TO_TYPE.
8042 * hooks.c (hook_tree_const_tree_null): Define.
8043 * hooks.h (hook_tree_const_tree_null): Declare.
8044 * target.h (struct gcc_target): Add invalid_parameter_type,
8045 invalid_return_type, promoted_type, and convert_to_type fields.
8046 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
8047 (TARGET_INVALID_RETURN_TYPE): Define.
8048 (TARGET_PROMOTED_TYPE): Define.
8049 (TARGET_CONVERT_TO_TYPE): Define.
8050 (TARGET_INITIALIZER): Update for new fields.
8051 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
8052 (grokparms): Check targetm.invalid_parameter_type.
8053 * c-typeck.c (default_conversion): Check targetm.promoted_type.
8054 * c-convert.c (convert): Check targetm.convert_to_type.
8055
642d97ff
AN
80562009-05-20 Adam Nemet <anemet@caviumnetworks.com>
8057
8058 * config/mips/mips.md (*extenddi_truncate<mode>,
8059 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
8060 defintions.
8061 (*extendhi_truncateqi): New define_insn_and_sptit.
8062
776248b8
JJ
80632009-05-20 Jakub Jelinek <jakub@redhat.com>
8064
8065 PR middle-end/40204
8066 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
782dc37a 8067 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
776248b8 8068
d98e8686
EB
80692009-05-20 Eric Botcazou <ebotcazou@adacore.com>
8070
8071 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
8072 the operand of VIEW_CONVERT_EXPR.
8073
37c50435
L
80742009-05-20 H.J. Lu <hongjiu.lu@intel.com>
8075
8076 * config/i386/driver-i386.c (host_detect_local_cpu): Check
f3afc8a7 8077 extended family and model for Intel processors. Support Intel Atom.
37c50435 8078
dbb6088f
OH
80792009-05-20 Olivier Hainque <hainque@adacore.com>
8080
8081 * gstab.h (stab_code_type): Define, to be used instead of the
8082 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
8083 notice.
8084 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
8085 occurrences by stab_code_type.
8086 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
8087
7ec49257
MJ
80882009-05-20 Martin Jambor <mjambor@suse.cz>
8089
8090 * tree-flow.h (insert_edge_copies_seq): Undeclare.
8091 (sra_insert_before): Likewise.
8092 (sra_insert_after): Likewise.
8093 (sra_init_cache): Likewise.
8094 (sra_type_can_be_decomposed_p): Likewise.
8095 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
8096 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
8097 (sra_insert_before): Likewise.
8098 (sra_insert_after): Likewise.
8099 (sra_init_cache): Likewise.
8100 (insert_edge_copies_seq): Made static and moved upwards.
8101
8102 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
8103 case.
8104
8105 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
8106
8107 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
8108 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
8109 simple copies.
8110
0328ae4d
RG
81112009-05-20 Richard Guenther <rguenther@suse.de>
8112
8113 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
8114 with mismatched comparison modes.
8115
a7994a57 81162009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
782dc37a 8117
a7994a57 8118 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
782dc37a
UB
8119 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
8120 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
8121 with shifts for Thumb2.
8122 (orsi_notsi): New for orn.
8123 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
8124 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
8125 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
8126 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
8127 Don't invert remainder for IOR.
a7994a57 8128
e36dc339
ZD
81292009-05-19 Zdenek Dvorak <ook@ucw.cz>
8130
8131 PR tree-optimization/40087
8132 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
8133 number_of_iterations_ne): Rename never_infinite argument.
8134 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
8135 number_of_iterations_le): Handle pointer-type ivs when
8136 exit_must_be_taken is false.
8137 (number_of_iterations_cond): Do not always assume that
8138 exit_must_be_taken if the control variable is a pointer.
8139
5cfd5d9b
AP
81402009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
8141
8142 * c-typeck.c (build_binary_op): Allow % on integal vectors.
8143 * doc/extend.texi (Vector Extension): Document that % is allowed too.
8144
2f1c7156
L
81452009-05-19 H.J. Lu <hongjiu.lu@intel.com>
8146
8147 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
8148 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
8149
7bb27074
MLI
81502009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8151
8152 PR c/40172
8153 * c.opt (Wlogical-op): Disabled by default.
8154 * c-opt (c_common_post_options): Do not enable Wlogical-op with
8155 Wextra.
8156 * doc/invoke.texi (Wlogical-op): Likewise.
8157
5aefc6a0
EB
81582009-05-19 Eric Botcazou <ebotcazou@adacore.com>
8159
8160 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
8161 into CASE_CONVERT.
8162 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
8163 Propagate the type of the first operand.
8164 <ASSERT_EXPR>: Simplify.
8165 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
8166 Rewrite using the RHS code as discriminant.
8167 <NOP_EXPR>: Turn into CASE_CONVERT.
8168 <PLUS_EXPR>: Propagate the type of the first operand.
8169
f3a83111
SE
81702009-05-19 Steve Ellcey <sje@cup.hp.com>
8171
8172 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
8173 (ia64_dconst_0_375): New.
8174 * config/ia64/ia64.c (ia64_override_options): Remove
8175 -minline-sqrt-min-latency warning.
8176 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
8177 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
8178 * config/ia64/ia64.md (*sqrt_approx): Remove.
8179 (sqrtsf2): Remove #if 0.
8180 (sqrtsf2_internal_thr): Rewrite and move to div.md.
8181 (sqrtdf): Remove assert.
8182 (sqrtdf2_internal_thr): Rewrite and move to div.md.
8183 (sqrtxf2): Remove #if 0.
8184 (sqrtxf2_internal_thr): Rewrite and move to div.md.
8185 * div.md (sqrt_approx_rf): New.
8186 (sqrtsf2_internal_thr): New implementation.
8187 (sqrtsf2_internal_lat): New.
8188 (sqrtdf2_internal_thr: New implementation.
8189 (sqrtxf2_internal): New implementation.
8190
1ffc7157
FXC
81912009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
8192 Hans-Peter Nilsson <hp@axis.com>
8193
8194 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
8195 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
8196 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
8197 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
8198 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
8199 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
8200 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
8201 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
8202 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
8203 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
8204 * c-common.c: ...from here.
8205
db91d9ef
MLI
82062009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8207
f3afc8a7 8208 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
db91d9ef 8209
bbb9d91f
KG
82102009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8211
8212 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
8213
ce883f54
BE
82142009-05-19 Ben Elliston <bje@au.ibm.com>
8215
8216 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
8217 assignments with memcpy calls.
8218 (add_fdes): Likewise.
8219 (binary_search_unencoded_fdes): Likewise.
8220 (linear_search_fdes): Eliminate type puns.
8221
377f099a
RG
82222009-05-19 Richard Guenther <rguenther@suse.de>
8223
8224 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
8225 not falsely claim to have propagated into all uses.
8226
848bc769
BE
82272009-05-19 Ben Elliston <bje@au.ibm.com>
8228
8229 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
8230 version to v3.0.
8231
1bb99877
KK
82322009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
8233
8234 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
8235 * config/sh/sh.c (sh_legitimate_address_p): Make static.
8236 (TARGET_LEGITIMATE_ADDRESS_P): New.
8237 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8238 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8239
82725547
DS
82402009-05-18 Dodji Seketeli <dodji@redhat.com>
8241
8242 PR debug/40109
8243 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
8244 child of the containing namespace's DIE.
8245
f6a1e430
AN
82462009-05-18 Adam Nemet <anemet@caviumnetworks.com>
8247
8248 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
8249 *zero_extendhi_truncqi): Move after the zero_extend patterns.
8250 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
8251 extend patterns.
8252
6a90d232
L
82532009-05-18 H.J. Lu <hongjiu.lu@intel.com>
8254
8255 PR target/39942
8256 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
8257 gen_align with gen_pad.
8258 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
8259 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
8260
8261 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
8262 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
8263
8264 * config/i386/i386.md (align): Renamed to ...
8265 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
8266 ASM_OUTPUT_MAX_SKIP_PAD.
8267
c4406f74
AS
82682009-05-18 Andreas Schwab <schwab@linux-m68k.org>
8269
06555043
AS
8270 * config.gcc: Fix variable syntax.
8271
c4406f74
AS
8272 PR target/39531
8273 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
8274 before calling exact_log2.
8275 (output_iorsi3): Likewise.
8276 (output_xorsi3): Likewise.
8277
99052692
KK
82782009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
8279
8280 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
8281 for the none zero constant operand except for EQ and NE
8282 comprisons even when the first operand is R0.
8283
f4aa3848
AK
82842009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
8285
8286 * config/s390/2064.md: Remove trailing whitespaces.
8287 * config/s390/2084.md: Likewise.
8288 * config/s390/constraints.md: Likewise.
8289 * config/s390/fixdfdi.h: Likewise.
8290 * config/s390/libgcc-glibc.ver: Likewise.
8291 * config/s390/s390-modes.def: Likewise.
8292 * config/s390/s390-protos.h: Likewise.
8293 * config/s390/s390.c: Likewise.
8294 * config/s390/s390.h: Likewise.
8295 * config/s390/s390.md: Likewise.
8296 * config/s390/tpf-unwind.h: Likewise.
8297
ab7256e4
MK
82982009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8299
8300 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
8301
75df395f
MK
83022009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8303
8304 M68K TLS support.
8305 * configure.ac (m68k-*-*): Check if binutils support TLS.
8306 * configure: Regenerate.
8307 * config/m68k/predicates.md (symbolic_operand): Extend comment.
8308 * config/m68k/constraints.md (Cu): New constraint.
8309 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
8310 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
8311 (movsi): Handle TLS symbols.
8312 (addsi3_5200): Handle XTLS symbols, indent.
8313 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
8314 (m68k_tls_reference_p): Declare.
8315 (m68k_legitimize_address): Declare.
8316 (m68k_unwrap_symbol): Declare.
8317 * config/m68k/m68k.opt (mxtls): New option.
8318 * config/m68k/m68k.c (ggc.h): Include.
8319 (m68k_output_dwarf_dtprel): Implement hook.
8320 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
8321 (m68k_expand_prologue): Load GOT pointer when function needs it.
8322 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
8323 (m68k_legitimate_constant_address_p): Same.
8324 (m68k_decompose_address): Handle TLS references.
8325 (m68k_get_gp): New static function.
8326 (enum m68k_reloc): New contants.
8327 (TLS_RELOC_P): New macro.
8328 (m68k_wrap_symbol): New static function.
8329 (m68k_unwrap_symbol): New function.
8330 (m68k_final_prescan_insn_1): New static function.
8331 (m68k_final_prescan_insn): New function.
8332 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
8333 functions.
8334 (legitimize_pic_address): Handle TLS references..
8335 (m68k_tls_get_addr, m68k_get_tls_get_addr)
8336 (m68k_libcall_value_in_a0_p)
8337 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
8338 (m68k_call_m68k_read_tp): Helper variables and functions for ...
8339 (m68k_legitimize_tls_address): Handle TLS references.
8340 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
8341 New functions.
8342 (m68k_legitimize_address): Handle TLS symbols.
8343 (m68k_get_reloc_decoration): New static function.
8344 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
8345 UNSPEC_RELOC32.
8346 (m68k_output_dwarf_dtprel): Implement hook.
8347 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
8348 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
8349 m68k_call_* routines.
8350 (sched_attr_op_type): Handle TLS symbols.
8351 (gt-m68k.h): Include.
8352 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
8353 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
8354
8b75fc9b
MJ
83552009-05-18 Martin Jambor <mjambor@suse.cz>
8356
8357 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
8358 (visit_store_addr_for_mod_analysis): New function.
8359 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
8360 (determine_cst_member_ptr): Use gimple_assign_single_p.
8361 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
8362 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
8363 operands. Don't check number of operands of a NOP_EXPR.
8364
f133d4a2
EF
83652009-05-18 Eric Fisher <joefoxreal@gmail.com>
8366
8367 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
8368
ae8af500
L
83692009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8370
8371 PR c/40172
8372 * c-common.c (warn_logical_operator): Don't warn if one of
8373 expression isn't always true or false.
8374
25e8fde8
KT
83752009-05-17 Kai Tietz <kai.tietz@onevision.com>
8376
ae8af500
L
8377 * config/i386/biarch32.h: New file.
8378 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 8379
ef67af22
AN
83802009-05-17 Adam Nemet <anemet@caviumnetworks.com>
8381
8382 * config/mips/mips.md (*zero_extend<mode>_trunchi,
8383 *zero_extend<mode>_truncqi): Merge these into ...
8384 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
8385 Name the pattern following this as *zero_extendhi_truncqi.
8386
e2d87023
BL
83872009-05-16 Brad Lucier <lucier@math.purdue.edu>
8388
8389 PR middle-end/39301
8390 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
8391 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
8392 (output_info): Make field HOST_WIDEST_INT.
8393 (print_statistics): Use HOST_WIDEST_INT_PRINT.
8394 (dump_bitmat_statistics): Same.
8395
428ddbf0
FXC
83962009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
8397
8398 * config.gcc (use_gcc_stdint): Set to wrap.
8399 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
8400 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
8401 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8402 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8403 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8404 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8405 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8406 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
8407
1ab8a8c2
JM
84082009-05-16 Joseph Myers <joseph@codesourcery.com>
8409
8410 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
8411 tune_64.
8412 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
8413 Move definitions earlier.
8414 (OPT_ARCH64, OPT_ARCH32): Define.
8415 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
8416 and tune_64.
8417
70544f44
RE
84182009-05-16 Richard Earnshaw <rearnsha@arm.com>
8419
8420 PR target/40153
8421 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
8422 implies.
8423
6241ded1
RE
84242009-05-16 Richard Earnshaw <rearnsha@arm.com>
8425
8426 * arm.md (movdi2): Copy non-reg values to DImode registers.
8427
a99c6711
JJ
84282009-05-16 Jakub Jelinek <jakub@redhat.com>
8429
40a8f07a
JJ
8430 PR target/39942
8431 * final.c (label_to_max_skip): New function.
8432 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
8433 CODE_LABEL_NUMBER <= max_labelno.
8434 * output.h (label_to_max_skip): New prototype.
8435 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
8436 (ix86_avoid_jump_mispredicts): ... this. Don't define if
8437 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
8438 Handle CODE_LABELs with >= 16 byte alignment or with
8439 max_skip == (1 << align) - 1.
8440 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
8441 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
8442
a99c6711
JJ
8443 PR target/39942
8444 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
8445 .p2align 3 if MAX_SKIP is smaller than 7.
8446 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8447
7e5487a2
ILT
84482009-05-15 Ian Lance Taylor <iant@google.com>
8449
8450 * alias.c (struct alias_set_entry_d): Rename from struct
8451 alias_set_entry. Change all uses.
8452 * except.c (struct call_site_record_d): Rename from struct
8453 call_site_record. Change all uses.
8454 * except.h (struct eh_region_d): Rename from struct eh_region.
8455 Change all uses.
8456 * gcse.c (struct hash_table_d): Rename from struct hash_table.
8457 Change all uses.
8458 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
8459 ivtype_map_elt. Change all uses.
8460 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
8461 Change all uses.
8462 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
8463 * graphite.h (struct name_tree_d): Rename from struct name_tree.
8464 Change all uses.
8465 (struct sese_d): Rename from struct sese. Change all uses.
782dc37a
UB
8466 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
8467 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
7e5487a2
ILT
8468 * optabs.h (struct optab_d): Rename from struct optab. Change all
8469 uses.
8470 (struct convert_optab_d): Rename from struct convert_optab.
8471 Change all uses.
8472 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
8473 ipa_opt_pass. Change all uses.
8474 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
8475 all uses.
8476
8477 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
8478 defined as a typedef.
8479 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
8480 defined as a tag.
8481
a243fb4a
MLI
84822009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8483
8484 PR 16302
8485 * fold-const.c (make_range,build_range_check,merge_ranges): Move
8486 declaration to...
8487 (merge_ranges): Returns bool.
8488 * tree.h (make_range): .. to here.
8489 (build_range_check): Likewise.
8490 (merge_ranges): Likewise. Renamed from merge_ranges.
8491 * c-typeck.c (parser_build_binary_op): Update calls to
8492 warn_logical_operator.
8493 * c-common.c (warn_logical_operator): Add new warning.
8494 * c-common.h (warn_logical_operator): Update declaration.
8495
1b53c5f3
MLI
84962009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
8497
782dc37a 8498 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
1b53c5f3 8499
c128599a
KG
85002009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8501
f9bab007
KG
8502 * doc/install.texi: Document MPC requirements, flags etc.
8503
c128599a
KG
8504 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
8505 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
8506 Evaluate constant arguments.
8507 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
8508 (fold_builtin_1): Likewise, also evaluate constant arguments.
8509 Remove superfluous break.
8510 (do_mpc_ckconv): New.
8511 * real.h: Include mpc.h.
8512 * toplev.c (print_version): Output MPC version info if available.
8513
d33e4b70
SL
85142009-05-15 Sandra Loosemore <sandra@codesourcery.com>
8515
782dc37a 8516 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
d33e4b70 8517
a02ab464
L
85182009-05-15 H.J. Lu <hongjiu.lu@intel.com>
8519
8520 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
8521 only once.
8522
796bda22
JH
85232009-05-15 Jan Hubicka <jh@suse.cz>
8524
8525 * doc/invoke.texi (max-early-inliner-iterations): New flag.
8526 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
8527 (try_inline): Fix return value.
8528 (cgraph_decide_inlining_incrementally): Honor new value.
8529 (cgraph_early_inlining): Handle indirect inlining.
8530 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
8531
d88e5c37
JH
85322009-05-15 Jan Hubicka <jh@suse.cz>
8533
8534 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
8535 * cgraphunit.c (cgraph_finalize_function): Set it.
8536 (cgraph_expand_function): Use it.
8537
ae63687c
SL
85382009-05-15 Sandra Loosemore <sandra@codesourcery.com>
8539
8540 * real.c (encode_ieee_half): Define.
8541 (decode_ieee_half): Define.
8542 (ieee_half_format): Define.
8543 (arm_half_format): Define.
8544 * real.h (ieee_half_format): Declare.
8545 (arm_half_format): Declare.
8546
1bd74ad9
SL
85472009-05-15 Sandra Loosemore <sandra@codesourcery.com>
8548
8549 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
8550 swapped, and reversed optabs exist before trying to use them.
8551
dc34db56
PB
85522009-05-15 Paul Brook <paul@codesourcery.com>
8553 Sandra Loosemore <sandra@codesourcery.com>
8554
dc34db56
PB
8555 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
8556 loads. Allow PRE_DEC.
8557 (output_move_neon): Handle PRE_DEC.
8558 (arm_print_operand): Add 'A' for neon structure loads.
8559 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
8560 * config/arm/neon.md (neon_mov): Update comment.
8561 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
8562 calls.
8563 (Um): New constraint.
8564
1d405d7b
JH
85652009-05-15 Jan Hubicka <jh@suse.cz>
8566
8567 Revert the following patch until testsuite fallout is fixed:
8568 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8569 * cgraph.h (struct inline_summary): New filed self_wize,
8570 size_inlining_benefit, self_time and time_inlining_benefit.
8571 (struct cgraph_global_info): Replace insns by time ans size fields.
8572 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8573 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8574 (ipcp_update_callgraph): Do not touch function bodies.
8575 * ipa-inline.c: Include except.h
782dc37a 8576 (MAX_TIME): New constant.
1d405d7b
JH
8577 (overall_insns): Remove
8578 (overall_size, max_benefit): New static variables.
8579 (cgraph_estimate_time_after_inlining): New function.
8580 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8581 (cgraph_clone_inlined_nodes): Update size.
8582 (cgraph_mark_inline_edge): Update size.
8583 (cgraph_estimate_growth): Use size info.
8584 (cgraph_check_inline_limits): Check size.
8585 (cgraph_default_inline_p): Likewise.
8586 (cgraph_edge_badness): Compute badness based on benefit and size cost.
8587 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
8588 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8589 and times.
1d405d7b 8590 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
8591 (cgraph_decide_inlining_incrementally): Likewise; honor
8592 PARAM_EARLY_INLINING_INSNS.
1d405d7b
JH
8593 (likely_eliminated_by_inlining_p): New predicate.
8594 (estimate_function_body_sizes): New function.
8595 (compute_inline_parameters): Use it.
8596 * except.c (must_not_throw_labels): New function.
8597 * except.h (must_not_throw_labels): Declare.
8598 * tree-inline.c (init_inline_once): Kill inlining_weigths
8599 * tree-ssa-structalias.c: Avoid uninitialized warning.
8600 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8601 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8602 (PARAM_INLINE_CALL_COST): Remove.
8603 (PARAM_EARLY_INLINING_INSNS): New.
8604
7ffa47ca
RG
86052009-05-15 Richard Guenther <rguenther@suse.de>
8606
8607 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
8608 not TODO_update_ssa.
8609
828552ed
RG
86102009-05-15 Richard Guenther <rguenther@suse.de>
8611
8612 PR tree-optimization/39999
8613 * gimple.h (gimple_expr_type): Use the expression type looking
8614 through useless conversions.
8615 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
8616 (vn_nary_op_insert_stmt): Likewise.
8617 (simplify_binary_expression): Likewise.
8618
248fc9f3
RG
86192009-05-15 Richard Guenther <rguenther@suse.de>
8620
8621 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8622 New options, enabled by default.
8623 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8624 Document.
8625 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
8626 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
8627 * tree-ssa-structalias.c (gate_tree_pta): New function.
8628 (pass_build_alias): Use it.
8629
16b29cc4
JM
86302009-05-15 Joseph Myers <joseph@codesourcery.com>
8631
8632 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
8633 recurse on an invariant address if a conversion from a pointer
8634 type to a wider integer type is involved.
8635
125cae84
JH
86362009-05-15 Jan Hubicka <jh@suse.cz>
8637
8638 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8639 * cgraph.h (struct inline_summary): New filed self_wize,
8640 size_inlining_benefit, self_time and time_inlining_benefit.
8641 (struct cgraph_global_info): Replace insns by time ans size fields.
8642 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8643 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8644 (ipcp_update_callgraph): Do not touch function bodies.
8645 * ipa-inline.c: Include except.h
782dc37a 8646 (MAX_TIME): New constant.
125cae84
JH
8647 (overall_insns): Remove
8648 (overall_size, max_benefit): New static variables.
8649 (cgraph_estimate_time_after_inlining): New function.
8650 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8651 (cgraph_clone_inlined_nodes): Update size.
8652 (cgraph_mark_inline_edge): Update size.
8653 (cgraph_estimate_growth): Use size info.
8654 (cgraph_check_inline_limits): Check size.
8655 (cgraph_default_inline_p): Likewise.
8656 (cgraph_edge_badness): Compute badness based on benefit and size cost.
8657 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
8658 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8659 and times.
125cae84 8660 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
8661 (cgraph_decide_inlining_incrementally): Likewise; honor
8662 PARAM_EARLY_INLINING_INSNS.
125cae84
JH
8663 (likely_eliminated_by_inlining_p): New predicate.
8664 (estimate_function_body_sizes): New function.
8665 (compute_inline_parameters): Use it.
8666 * except.c (must_not_throw_labels): New function.
8667 * except.h (must_not_throw_labels): Declare.
8668 * tree-inline.c (init_inline_once): Kill inlining_weigths
8669 * tree-ssa-structalias.c: Avoid uninitialized warning.
8670 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8671 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8672 (PARAM_INLINE_CALL_COST): Remove.
8673 (PARAM_EARLY_INLINING_INSNS): New.
8674 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
8675 (inline-call-cost): Remove.
8676 (early-inlining-insns): New.
8677
84fb43a1
EB
86782009-05-15 Eric Botcazou <ebotcazou@adacore.com>
8679
8680 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
8681 for bounds.
8682 (print_int_cst_bounds_in_octal_p): Likewise.
8683 (dbxout_type): Adjust calls to above functions. Be prepared to deal
8684 with subtypes.
8685 * dwarf2out.c (base_type_die): Likewise.
8686 (is_subrange_type): Delete.
8687 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
8688 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
f3afc8a7
UB
8689 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
8690 if the destination type is boolean.
84fb43a1
EB
8691 (build_range_check): Do not special-case subtypes.
8692 (fold_sign_changed_comparison): Likewise.
8693 (fold_unary): Likewise.
8694 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
8695 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
8696 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
f3afc8a7
UB
8697 * tree.c (subrange_type_for_debug_p): New predicate based on the
8698 former is_subrange_type.
84fb43a1
EB
8699 * tree.h (subrange_type_for_debug_p): Declare.
8700 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
8701 (convert_affine_scev): Remove call to above function.
8702 (chrec_convert_aggressive): Likewise.
8703 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
8704 false for conversions involving subtypes.
8705 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
8706 (vrp_val_min): Likewise.
8707 (needs_overflow_infinity): Likewise.
8708 (extract_range_from_unary_expr): Likewise.
8709
331d9186
PB
87102009-05-15 Paolo Bonzini <bonzini@gnu.org>
8711
e9351712
L
8712 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8713 * config/frv/frv.c: Likewise.
8714 * config/s390/s390.c: Likewise.
8715 * config/sparc/sparc.h: Likewise.
8716 * config/i386/i386.h: Likewise.
8717 * config/i386/i386.c: Likewise.
8718 * config/crx/crx.c: Likewise.
8719 * config/m68hc11/m68hc11.h: Likewise.
8720 * config/iq2000/iq2000.c: Likewise.
8721 * config/mn10300/mn10300.h: Likewise.
8722 * config/mn10300/mn10300.c: Likewise.
8723 * config/m68k/m68k.c: Likewise.
8724 * config/rs6000/rs6000.c: Likewise.
8725 * config/rs6000/xcoff.h: Likewise.
8726 * config/rs6000/linux64.h: Likewise.
8727 * config/rs6000/sysv4.h: Likewise.
8728 * config/score/score3.c: Likewise.
8729 * config/score/score7.c: Likewise.
8730 * config/score/score.c: Likewise.
8731 * config/arm/arm.md: Likewise.
8732 * config/mips/mips.c: Likewise.
8733 * config/mips/mips.md: Likewise.
8734 * config/bfin/bfin.h: Likewise.
8735 * config/pa/pa.c: Likewise.
8736 * config/pa/constraints.md: Likewise.
8737
8738 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
8739 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
8740 * config/pdp11/pdp11.h: Use memory_address_p instead.
331d9186 8741
09639a83
ILT
87422009-05-14 Ian Lance Taylor <iant@google.com>
8743
8744 * passes.c (finish_optimization_passes): Change i to int.
8745 * plugin.c (plugins_active_p): Change event to int.
8746 (dump_active_plugins): Likewise.
8747 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
8748 Add cast.
8749 * tree.c (tree_range_check_failed): Change c to unsigned int.
8750 (omp_clause_range_check_failed): Likewise.
8751 (build_common_builtin_nodes): Change mode to int. Add cast.
8752 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
8753 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
8754
8755 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
8756 ++ or -- with a variable of enum type.
8757
c04a56bf
SB
87582009-05-14 Steven Bosscher <steven@gcc.gnu.org>
8759
8760 PR driver/40144
8761 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
8762
237ee620
SB
87632009-05-14 Steven Bosscher <steven@gcc.gnu.org>
8764
8765 * store-motion.c: Do not include params.h
8766 * Makefile.in: Fix dependencies for various files.
8767
1154c4fa
SB
87682009-05-14 Steven Bosscher <steven@gcc.gnu.org>
8769
8770 * auto-inc-dec.c: Fix pass description, remove apparent
8771 accidental duplication.
8772
61c27353
L
87732009-05-14 H.J. Lu <hongjiu.lu@intel.com>
8774
8775 PR middle-end/40147
8776 * ipa-utils.h (memory_identifier_string): Moved to ...
8777 * tree.h (memory_identifier_string): Here. Add GTY(()).
8778
c6c3dba9
PB
87792009-05-14 Paolo Bonzini <bonzini@gnu.org>
8780
8781 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
8782 in the former documentation of...
8783 (GO_IF_LEGITIMATE_ADDRESS): ... this.
8784 * ira-conflicts.c (get_dup_num): Use address_operand.
8785 * targhooks.c (default_legitimate_address_p): New.
8786 * targhooks.h (default_legitimate_address_p): New.
8787 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
8788 Call hook.
8789 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
8790 * target.h (struct target): Add legitimate_address_p.
8791 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
8792 (TARGET_INITIALIZER): Include it.
8793
8794 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8795 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
8796 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
8797 (TARGET_LEGITIMATE_ADDRESS_P): New.
8798
8799 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8800 (REG_OK_STRICT_P): Delete.
8801 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
8802 (frv_legitimate_address_p_1): ... this.
8803 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
8804 (frv_legitimate_address_p_1): ... the renamed old
8805 frv_legitimate_address_p.
8806 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
8807 (TARGET_LEGITIMATE_ADDRESS_P): New.
8808
8809 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8810 * config/s390/s390-protos.h (legitimate_address_p): Remove.
8811 * config/s390/s390.c (legitimate_address_p): Rename to...
8812 (s390_legitimate_address_p): ... this, make static.
8813 (legitimize_address): Adjust call.
8814 (TARGET_LEGITIMATE_ADDRESS_P): New.
8815 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
8816
8817 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8818 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
8819 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
8820 (TARGET_LEGITIMATE_ADDRESS_P): New.
8821
8822 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8823 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
8824 * config/spu/spu.c (spu_legitimate_address): Rename to...
8825 (spu_legitimate_address_p): ... this, make static.
8826 (TARGET_LEGITIMATE_ADDRESS_P): New.
8827
8828 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8829 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
8830 * config/sparc/sparc.c (legitimate_address_p): Rename to...
8831 (sparc_legitimate_address_p): ... this, make static and return bool.
8832 (legitimize_address): Adjust call.
8833 (TARGET_LEGITIMATE_ADDRESS_P): New.
8834
8835 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8836 * config/i386/i386-protos.h (legitimate_address_p): Remove.
8837 * config/i386/i386.c (legitimate_address_p): Rename to...
8838 (ix86_legitimate_address_p): ... this, make static.
8839 (constant_address_p): Move after it, adjust call.
8840 (TARGET_LEGITIMATE_ADDRESS_P): New.
8841
8842 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8843 * config/avr/avr-protos.h (legitimate_address_p): Remove.
8844 * config/avr/avr.c (legitimate_address_p): Rename to...
8845 (avr_legitimate_address_p): ... this, make static.
8846 (legitimize_address): Adjust call.
8847 (TARGET_LEGITIMATE_ADDRESS_P): New.
8848
8849 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8850 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
8851 * config/crx/crx.c (crx_legitimate_address_p): Make static.
8852 (TARGET_LEGITIMATE_ADDRESS_P): New.
8853
8854 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8855 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
8856 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
8857 (TARGET_LEGITIMATE_ADDRESS_P): New.
8858
8859 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8860 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
8861 Remove.
8862 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8863 Make static.
8864 (TARGET_LEGITIMATE_ADDRESS_P): New.
8865
8866 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8867 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
8868 Remove.
8869 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
8870 Rename to...
8871 (m68hc11_legitimate_address_p): ... this, make static.
8872 (go_if_legitimate_address_internal): Rename to...
8873 (m68hc11_legitimate_address_p_1): ... this.
8874 (legitimize_address): Adjust call.
8875 (TARGET_LEGITIMATE_ADDRESS_P): New.
8876
8877 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
782dc37a
UB
8878 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
8879 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
c6c3dba9
PB
8880 (TARGET_LEGITIMATE_ADDRESS_P): New.
8881
8882 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8883 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
8884 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
8885 (mn10300_legitimate_address_p): ... this, make static.
8886 (TARGET_LEGITIMATE_ADDRESS_P): New.
8887
8888 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8889 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
8890 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
8891 (TARGET_LEGITIMATE_ADDRESS_P): New.
8892
8893 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8894 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
8895 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
8896 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8897 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
8898 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
8899 (rs6000_legitimate_address_p): ... this, make static.
8900 (TARGET_LEGITIMATE_ADDRESS_P): New.
8901 (REG_MODE_OK_FOR_BASE_P): Delete.
8902 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
8903
8904 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8905 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
8906 Delete.
8907 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
8908 static, adjust types.
8909 (TARGET_LEGITIMATE_ADDRESS_P): New.
8910
8911 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8912 * config/score/score.c (score_address_p): Rename to...
8913 (score_legitimate_address_p): ... this.
8914 (TARGET_LEGITIMATE_ADDRESS_P): New.
8915 * config/score/score3.c (score3_address_p): Rename to...
8916 (score3_legitimate_address_p): ... this.
8917 * config/score/score7.c (score7_address_p): Rename to...
8918 (score7_legitimate_address_p): ... this.
8919
8920 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
8921 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
8922 GO_IF_LEGITIMATE_ADDRESS): Delete.
8923 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
8924 thumb2_legitimate_address_p): Delete.
8925 (arm_legitimate_address_p): Rename to...
8926 (arm_legitimate_address_outer_p): ... this.
8927 * config/arm/constraints.md ("Uq"): Adjust call.
8928 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
f3afc8a7
UB
8929 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
8930 to...
c6c3dba9 8931 (arm_legitimate_address_outer_p): ... this.
f3afc8a7
UB
8932 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
8933 static.
c6c3dba9
PB
8934 (TARGET_LEGITIMATE_ADDRESS_P): New.
8935
8936 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8937 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
8938 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
8939 (TARGET_LEGITIMATE_ADDRESS_P): New.
8940
8941 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8942 * config/vax/vax-protos.h (legitimate_address_p): Remove.
8943 * config/vax/vax.c (legitimate_address_p): Rename to...
8944 (vax_legitimate_address_p): ... this, make static.
8945 (TARGET_LEGITIMATE_ADDRESS_P): New.
8946
8947 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8948 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
8949 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
8950 (TARGET_LEGITIMATE_ADDRESS_P): New.
8951
8952 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8953 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
8954 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
8955 (mmix_legitimate_address_p): ... this, make static.
8956 (TARGET_LEGITIMATE_ADDRESS_P): New.
8957
8958 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8959 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
8960 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
8961 (TARGET_LEGITIMATE_ADDRESS_P): New.
8962
3bd0d9c8
PB
89632009-05-14 Paolo Bonzini <bonzini@gnu.org>
8964
8965 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
8966 of MODE_COMPLEX_INT.
8967
fe049033
RO
89682009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8969
8970 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
8971 LCT_NORMAL in function call.
8972 * mips-tdump.c (print_file_desc): Add cast to enum type.
8973 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
8974 (mark_stabs): Add casts to enum types.
8975 (parse_stabs_common): Add casts to enum types.
16f7ad42 8976
b0907a6c
AN
89772009-05-13 Adam Nemet <anemet@caviumnetworks.com>
8978
8979 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
8980 Check for invalid values of LETTER.
8981
d1c8e08a
TG
89822009-05-13 Taras Glek <tglek@mozilla.com>
8983
f3afc8a7
UB
8984 * attribs.c (register_attribute): moved out attribute registration
8985 into register_attribute.
8986 * doc/plugins.texi: Documented register_attribute and
8987 PLUGIN_ATTRIBUTES.
16f7ad42
TG
8988 * gcc-plugin.h: Added forward decl for register_attribute.
8989 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
8990 * plugin.c (register_callback, invoke_plugin_callbacks): Added
8991 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 8992
4ed7f970
DK
89932009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
8994
8995 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
8996 values even in sentinel and empty entries.
8997 (ms_printf_flag_specs): Likewise.
8998 (ms_scanf_flag_specs): Likewise.
8999 (ms_strftime_flag_specs): Likewise.
9000 (ms_print_char_table): Likewise.
9001 (ms_scan_char_table): Likewise.
9002 (ms_time_char_table): Likewise.
9003
3d8fa148
DK
90042009-05-13 Doug Kwan <dougkwan@google.com>
9005
9006 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
9007
f06257d3
AN
90082009-05-13 Adam Nemet <anemet@caviumnetworks.com>
9009
9010 * config/mips/mips.md (store): Add attributes for QI and HI.
9011 Update comment.
9012 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
9013 (truncdi<mode>2): ... this new pattern.
9014
fb201767
BH
90152009-05-13 Brad Hards <bradh@kde.org>
9016
9017 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
9018
c7bda60e 90192009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
9020 Ben Elliston <bje@au.ibm.com>
9021
9022 PR middle-end/40035
9023 * dse.c (check_mem_read_rtx): Guard against width == -1.
9024
ce985b43
MM
90252009-05-13 Michael Matz <matz@suse.de>
9026
9027 PR middle-end/39976
9028 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
9029 (trivially_conflicts_p): New function.
9030 (insert_backedge_copies): Use it.
9031
7de1d221
JJ
90322009-05-13 Janis Johnson <janis187@us.ibm.com>
9033
9034 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
9035 (handle_stdc_pragma): Use new enum constant names.
9036 (handle_pragma_float_const_decimal64): Ditto.
9037
bfefafc6
ILT
90382009-05-13 Ian Lance Taylor <iant@google.com>
9039
9040 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
9041 tree.def.
9042
286c4fcb
NS
90432009-05-13 Nathan Sidwell <nathan@codesourcery.com>
9044
9045 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
9046 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
9047 multilibs.
9048 * config/m68k/m68k.h (FL_UCLINUX): Define.
9049
ebaa6ea7
JH
90502009-05-13 Jan Hubicka <jh@suse.cz>
9051
9052 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
9053
2b703e1a
KK
90542009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
9055
9056 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
9057 unless -fschedule-insns is specified.
9058
c3537723
KK
90592009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
9060
9061 PR target/39561
9062 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
9063 TARGET_EXPAND_CBRANCHDI4.
9064 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
9065 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
9066 (cmpeqdi): Fix comment.
9067
cdeed45a
KK
90682009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
9069
9070 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
9071 (sh_legitimate_address_p): Likewise.
9072 * config/sh/sh.c (sh_legitimate_index_p): New.
9073 (sh_legitimate_address_p): Likewise.
9074 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
9075 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
9076 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
9077 (MAYBE_BASE_REGISTER_RTX_P): New macro.
9078 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
9079 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
9080 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
9081 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
9082 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
9083
02f0b13a
JH
90842009-05-12 Jan Hubicka <jh@suse.cz>
9085
9086 * tree-inline.c (estimate_operator_cost): Add operands;
9087 when division happens by constant, it is cheap.
9088 (estimate_num_insns): Loads and stores are not having cost of 0;
9089 EH magic stuff is cheap; when computing runtime cost of switch,
9090 use log2 base of amount of its cases; builtin_expect has cost of 0;
9091 compute cost for moving return value of call.
9092 (init_inline_once): Initialize time_based flags.
9093 * tree-inline.h (eni_weights_d): Add time_based flag.
9094
ecb7f6de
PB
90952009-05-12 Paolo Bonzini <bonzini@gnu.org>
9096
9097 * df-core.c: Update head documentation.
9098
c24151ce
MM
90992009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9100
9101 PR bootstrap/40118
9102 * rs6000.c (rs6000_generate_compare): Use op1b instead of
9103 shadowing exisiting variable op1.
9104
fbdf817d
UB
91052009-05-12 Uros Bizjak <ubizjak@gmail.com>
9106
704bf7c8 9107 PR target/37179
fbdf817d
UB
9108 * config/i386/driver-i386.c (processor_signatures): New enum.
9109 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
9110 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
9111 processor signature to detect geode processor.
9112
5e8d1826
PB
91132009-05-12 Paolo Bonzini <bonzini@gnu.org>
9114
9115 Revert:
9116
9117 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
9118
9119 * optabs.c (prepare_cmp_insn): Temporarily disable test that
9120 causes spurious differences between trunk and cond-optab branch.
9121
f90b7a5a
PB
91222009-05-12 Paolo Bonzini <bonzini@gnu.org>
9123
fbdf817d
UB
9124 * dojump.c (compare_from_rtx): Delete.
9125 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
9126 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
9127 if the comparison does not satisfy the predicate; test predicates for
9128 operands 2 and 3 of a cstore pattern. Don't try cstore optab
9129 further if one existing pattern fails.
fbdf817d 9130 * expr.h (compare_from_rtx): Delete.
f90b7a5a 9131 (prepare_operand): Declare it.
fbdf817d 9132 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 9133 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
9134 HAVE_conditional_trap, emit_cmp_insn): Delete.
9135 (can_compare_p): Delete cmp_optab case.
f90b7a5a 9136 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
9137 Accept other parameters by value.
9138 (prepare_operand): Make non-static.
9139 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
9140 other parameters by value. Try to widen operands here based on
9141 an optab_methods argument and looking at cbranch_optab.
9142 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
9143 loop. Use cbranch_optab directly.
9144 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
9145 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
9146 assertion.
9147 (emit_conditional_move, emit_conditional_add): Inline what's needed
9148 of compare_from_rtx, using new prepare_cmp_insn for the rest.
9149 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
9150 with COMPARE. Move cmov_optab and cstore_optab above
9151 with cbranch_optab, move cmp_optab down with ucmp_optab,
9152 remove tst_otpab. Do not initialize trap_rtx.
9153 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
9154 for trap code. Do not check HAVE_conditional_trap. Use
9155 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
9156 * optabs.h (OTI_cmp): Mark as used only for libcalls.
9157 (OTI_ctrap, ctrap_optab): New.
9158 (tst_optab): Delete.
9159 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
9160 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
9161 with lookup of ctrap_optab.
f3afc8a7
UB
9162 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
9163 Delete.
fbdf817d
UB
9164 (ctrap_optab): New.
9165
9166 * combine.c (combine_simplify_rtx, simplify_set): Do not
9167 special case comparing against zero for cc0 machines.
f90b7a5a
PB
9168 * simplify-rtx.c (simplify_binary_operation_1): Never remove
9169 COMPARE on cc0 machines.
9170 (simplify_relational_operation): Return a new expression when
9171 a COMPARE could be removed.
fbdf817d
UB
9172 * final.c (final_scan_insn): Compare cc_status values
9173 against LHS of a (compare FOO (const_int 0)) cc0 source.
9174 Also check if cc_status.value is the full compare.
f90b7a5a 9175
fbdf817d
UB
9176 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
9177 (cstoreMM4): Document.
f90b7a5a 9178 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 9179 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
9180 (Dependent Patterns): Eliminate obsolete information referring to
9181 the old jump optimization phase.
fbdf817d 9182 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
9183 of compares with 0 on cc0 machines.
9184 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
9185 avoiding references to cc0. Remove text about storing operands
9186 in cmpMM.
9187 * doc/tm.texi (Condition Codes): Include blurb on different
9188 condition code representations, separate into subsections for
9189 CC0, MODE_CC and conditional execution.
9190
fbdf817d
UB
9191 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
9192 alpha_emit_setcc): Accept operands and a machine mode.
9193 * config/alpha/alpha.c (alpha_emit_conditional_branch):
9194 Get code/op0/op1 from operands, use machine mode argument
9195 instead of alpha_compare.fp_p. Emit the branch here.
9196 (alpha_emit_setcc): Likewise, and return boolean.
9197 (alpha_emit_conditional_move): Likewise. Assert that
9198 cmp_op_mode == cmp_mode, and simplify accordingly.
9199 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
9200 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
9201 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
9202 Delete.
9203 (stack probe test): Use cbranchdi4.
9204 * config/alpha/predicates.md (alpha_cbranch_operator): New.
9205
9206 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
9207 * config/arc/arc.h (movsicc, movsfcc): Use it.
9208 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
9209 (cbranchsi4, cstoresi4): New.
9210 (cmpsi, bCC and sCC expanders): Remove.
9211
9212 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
9213 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
9214 * config/arm/predicates.md (arm_comparison_operator): Only include
9215 floating-point operators if there is a hardware floating-point unit.
9216 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
9217 deferring to cbranch_cc and cstore_cc respectively.
9218 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
9219 cbranch_cc, cstore_cc): New.
9220 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 9221 arm_compare_op1.
fbdf817d
UB
9222 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
9223
9224 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
9225 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
9226 as an argument.
9227 (adjust_insn_length): Adjust calls.
9228 (avr_reorg): Handle (compare (foo) (const_int 0)).
9229 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
9230 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
9231 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
9232 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
9233 (bCC): Remove.
9234 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
9235 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
9236
fbdf817d
UB
9237 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
9238 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 9239 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
9240 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
9241 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
9242 (bfin_optimize_loop): Use cbranch expander.
9243 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
9244 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
9245 (bfin_bimode_comparison_operator): ... this.
9246 (bfin_direct_comparison_operator): New.
f90b7a5a 9247
fbdf817d
UB
9248 * config/cris/cris.c (cris_normal_notice_update_cc): Look
9249 inside (compare FOO (const_int 0)).
9250 (cris_rtx_costs): Handle ZERO_EXTRACT.
9251 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
9252 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
9253 (*tstdi_v32): Delete.
9254 (*cmpdi_non_v32): Add M alternative for operand 1.
9255 (cmpsi, cmp<mode>): Make private.
9256 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
9257 with COMPARE.
9258 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
9259
9260 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
9261 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
9262 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
9263 (cc_reg_operand): New.
9264 (any_cond): Delete.
fbdf817d
UB
9265 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
9266 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
9267 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
9268 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
9269 crx_expand_scond): Delete.
9270
9271 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
9272 (cbranchsi4): New.
9273 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
9274 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
9275
9276 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
9277 cstoresi4, cstoresf4, cstoredf4): New.
9278 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
9279 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
9280 Receive the entire operands array.
9281 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
9282 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
9283 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
9284 Get test/op0/op1 from the operands array.
9285 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
9286
9287 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
9288 (h8300_expand_store): New.
9289 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
9290 (const_int 0)).
9291 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
9292 (h8300_expand_store): New.
9293 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
9294 or do not try to produce (set (cc0) REG).
9295 (peepholes): Wrap arguments with COMPARE. Add a peephole to
9296 change a compare into a move to a scratch register. Disable some
9297 peepholes when comparing with zero.
9298 (tstsi, tsthi, tstsi, cmpqi): Make private.
9299 (cmphi): Delete.
9300 (bCC, sCC): Delete.
9301 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
9302 cstoresi4): New.
f90b7a5a
PB
9303
9304 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
9305 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
9306 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
9307 (ix86_emit_i387_log1p): Use cbranchxf2.
9308 (ix86_expand_setcc): Return void.
9309 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
9310 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
9311 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
9312 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
9313 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
9314 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
9315 (sCC and bCC expanders): Remove.
9316 (stack_protect_test): Use cbranchcc4.
9317
fbdf817d
UB
9318 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
9319 Delete.
9320 (ia64_expand_compare): Accept three rtx by reference and return void.
9321 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
9322 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
9323 from *expr. Update *expr with the BImode comparison to do.
9324 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
9325 cmptf, bCC, sCC, conditional_trap): Delete.
9326 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
9327 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
9328 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
9329 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
9330 * config/ia64/predicates.md (ia64_cbranch_operator): New.
9331
9332 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
9333 type of last argument.
9334 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
9335 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
9336 use machine mode argument instead of branch_type. Remove dead
9337 code for floating-point comparisons.
9338 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
9339 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
9340 Remove.
9341 (cbranchsi4, cstoresi4): New.
9342 * config/iq2000/predicates.md (reg_or_const_operand): New.
9343
9344 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
9345 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
9346 (b<code>_op): Rewrite to...
9347 (bcc_op): ... this, using match_operator.
9348 (s<code>_op): Rewrite to...
9349 (scc_op): ... this, using match_operator.
9350 (s<code>_24_op): Rewrite to...
9351 (scc_op_24): ... this, using match_operator.
9352 (s<code>_<mode>): Rewrite to...
9353 (cstore<mode>4): ... this, using match_operator.
9354 (s<code>_<mode>_24): Rewrite to...
9355 (cstore<mode>4_24): ... this, using match_operator.
9356 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
9357 m32c_unpend_compare, m32c_expand_scc): Delete.
9358 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
9359 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
9360 (m32c_expand_movcc): Change NE to EQ if necessary.
9361 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
9362
9363 * config/m32r/m32r-protos.h (gen_cond_store): New.
9364 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
9365 (gen_cond_store): New, from sCC patterns.
9366 (m32r_expand_block_move): Use cbranchsi4.
9367 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
9368 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
9369 (cbranchsi4, cstoresi4): New.
9370
9371 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
9372 Delete.
9373 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 9374 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
9375 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
9376 Delete.
9377 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
9378 cmphi, cmpqi, bCC): Delete.
9379 (cbranchsi4, cbranchhi4, cbranchqi4): New.
9380 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
9381 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
9382 sets with COMPARE.
9383
9384 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
9385 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
9386 * config/m68k/constraints.md (H): New.
9387 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
9388 the define_insn below.
9389 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
9390 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
9391 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
9392 patterns): Wrap RHS with COMPARE.
9393 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
9394 (*cmpdi_internal): Name this pattern.
9395 (cmpdi): Change to define_insn.
9396 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
9397 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
9398 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
9399 predicate.
9400 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
9401 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
9402 (conditional_trap): Change to...
9403 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
9404 (*conditional_trap): Use the ordered_comparison_operator and
9405 const1_operand predicates.
9406 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
9407 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
9408 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
9409 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
9410
9411 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
9412 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
9413 (mcore_gen_compare): New.
9414 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
9415 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
9416 (mcore_gen_compare): ... this.
9417 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
9418 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
9419 (stack probe pattern): Use cbranchsi4.
9420
9421 * config/mips/predicates.md (mips_cstore_operator): New.
9422 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
9423 * config/mips/mips.md (any_cond): Delete.
9424 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
9425 always succeed.
9426 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
9427 fixuns_truncsfdi2): Use cbranch patterns.
9428 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
9429 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
9430 Adjust call to mips_expand_conditional_branch.
9431 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
9432 cstore<GPR:mode>4.
9433 * config/mips/mips-protos.h (mips_expand_conditional_branch,
9434 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
9435 * config/mips/mips.c (cmp_operands): Delete.
9436 (mips_emit_compare): Get comparison operands from *op0/*op1.
9437 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
9438 that it succeeds. Use op0/op1 instead of cmp_operands.
9439 (mips_expand_conditional_branch, mips_expand_conditional_move,
9440 mips_expand_conditional_trap): Likewise.
9441 (mips_block_move_loop): Use cbranch patterns.
9442 * config/mips/mips.h (cmp_operands): Delete.
9443
9444 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
9445 (mmix_gen_compare_reg): Just return a register in the right CC mode.
9446 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
9447 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
9448 (*cmpcc_folded): Rename to...
9449 (*cmpdi_folded): this.
9450 (*cmpcc): Rename to...
9451 (*cmps): ... this.
9452 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
9453 (bCC): Remove.
9454 (cbranchdi4): New.
9455 (cbranchdf4): New. Handle invalid comparisons here.
9456 * config/mmix/predicates.md (float_comparison_operator): New.
9457
9458 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
9459 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
9460 * config/mn10300/mn10300.md (tst): Delete.
9461 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
9462 Name these patterns and wrap RHS in a compare.
9463 (*cmpsi): Make this pattern private. Include tst.
9464 (*cmpsf): Make this pattern private.
9465 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
9466 (compare with zero peepholes): Likewise.
9467 (bCC): Remove.
9468 (cbranchsi4, cbranchsf4): New.
9469 (casesi): Use cbranchsi4.
9470
9471 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
9472 hppa_branch_type): Delete.
9473 (return_addr_rtx): Use cbranchsi4.
9474 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
9475 Emit CCFPmode comparison here.
9476 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
9477 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
9478 hppa_branch_type): Delete.
9479 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
9480 (movsicc, movdicc): Remove references to hppa_compare_op0,
9481 hppa_compare_op1 and compare_from_rtx.
9482 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
9483 (casesi): Use cbranchsi4.
9484
9485 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
9486 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
9487 * config/pdp11/pdp11.md (register_or_const0_operand): New.
9488 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
9489 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
9490 (bCC): Delete.
9491 (cbranchdf4, cbranchhi4, cbranchqi4): New.
9492 (*branch, *branch_inverted): New.
9493
9494 * config/picochip/picochip.md (cbranchhi4): Use
9495 ordered_comparison_operator.
9496 (cmphi, bCC): Remove.
9497
9498 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
9499 (trap_comparison_operator): Delete.
9500 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
9501 rs6000_emit_cbranch): Accept mode and operands.
9502 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
9503 rs6000_compare_fp_p): Delete.
9504 (rs6000_generate_compare): Accept mode and comparison. Extract code
9505 and op0/op1 from there. Replace references to rs6000_compare_op0
9506 and rs6000_compare_op1.
9507 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
9508 extract result from passed operands.
9509 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
9510 extract loc from passed operands.
9511 (rs6000_emit_cmove): Likewise.
9512 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
9513 rs6000_compare_fp_p): Delete.
9514 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
9515 (cbranch<GPR>4, cbranch<FP>4): New.
9516 (cstore<mode>4): New. Consolidate here all choices about when to use
9517 portable or specialized sCC sequences.
9518 (stack_protect_test): Use cbranchsi4.
9519 (conditional_trap): Replace with ctrap<GPR>4.
9520 (conditional trap insn): Replace trap_comparison_operator with
9521 ordered_comparison_operator.
9522
9523 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
9524 (s390_emit_prologue): Use ctrap.
9525 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
9526 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
9527 New predicates replacing...
9528 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
9529 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
9530 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
9531 (add<mode>cc): Do not use s390_compare_op0/op1.
9532 (s<code>): Change to...
9533 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
9534 (seq): Change to...
9535 (cstorecc4): ... this. Handle EQ or NE equally.
9536 (*sne): Un-privatize for use in cstorecc4.
9537 (b<code>): Change to...
9538 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
9539 (conditional_trap): Replace with...
9540 (ctrap<GPR>4, ctrap<FP>4): ... these.
9541 (stack_protect): Use cbranchcc4.
9542
9543 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
9544 * config/score/score-protos.h (score_gen_cmp): Delete.
9545 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
9546 (score_block_move-loop): Use cbranchsi4.
9547 * config/score/score.md (cbranchsi4): New.
9548 (cmpsi, bCC): Delete.
9549 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
9550 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9551 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
9552 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9553 * config/score/score3.h (score3_gen_cmp): Delete.
9554 * config/score/score7.h (score7_gen_cmp): Delete.
9555
9556 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
9557 (sh_emit_scc_to_t): ... this. Return void.
9558 (from_compare): Rename to...
9559 (sh_emit_compare_and_branch): ... this.
9560 (sh_emit_compare_and_set): New.
9561 (sh_expand_t_scc): Accept operands.
9562 * config/sh/predicates.md (sh_float_comparison_operator): New.
9563 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
9564 (prepare_scc_operands): Rename to...
9565 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
9566 arguments.
9567 (sh_emit_cheap_store_flag): New.
f90b7a5a 9568 (sh_emit_set_t_insn): New.
fbdf817d
UB
9569 (from_compare): Rename to...
9570 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
9571 handling of TARGET_SH2E floating point to avoid recursive call.
9572 Generate branch here.
9573 (sh_emit_compare_and_set): New.
9574 (sh_expand_t_scc): Get op0/op1 from arguments.
9575 (sh_emit_cheap_store_flag): New.
9576 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
9577 cases.
f90b7a5a 9578 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
9579 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
9580 (movsicc, movdicc): Do nothing when it recreated operands from
9581 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
9582 prepare_scc_operands (now sh_emit_scc_to_t).
9583 (udivdi3): Use cstoresi4.
9584 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
9585 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
9586 (cbranchint4_media, cbranchfp4_media): New.
9587 (casesi): Use cbranchdi4.
9588 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
9589 Delete.
9590 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
9591 (movnegt): Remove second operand.
9592 (cbranchsf4, cbranchdf4): New.
9593 (stack_protect): Use cbranchdi4/cbranchsi4.
9594
9595 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
9596 (gen_compare_reg): Accept comparison, extract part of it to...
9597 (gen_compare_reg_1): ... this.
9598 (gen_compare_operator): Delete.
9599 (gen_v9_scc): Accept separate destination, comparison code and arms.
9600 Do not use sparc_compare_op0/sparc_compare_op1.
9601 (emit_scc_insn, emit_conditional_branch_insn): New.
9602 (emit_v9_brxx): Make static. Remove useless assertion.
9603 (sparc_emit_float_lib_cmp): Return RTL instead of calling
9604 emit_cmp_insn.
9605 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
9606 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
9607 sparc_emit_float_lib_cmp): Adjust prototype.
9608 (emit_scc_insn, emit_conditional_branch_insn): New.
9609 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
9610 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
9611 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
9612 iterators to the top.
9613 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
9614 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 9615 snedi_special_trunc): Delete.
fbdf817d 9616 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 9617 and snedi_special_trunc.
fbdf817d
UB
9618 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
9619 cbranchdi4, cbranch<F:mode>4): New.
9620 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
9621 here. Use gen_compare_reg instead of gen_compare_operator.
9622 (conditional_trap): Replace with...
9623 (ctrapsi4, ctrapdi4): ... this.
9624 (stack_protect_test): Use cbranchcc4.
9625
9626 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
9627 argument to rtx.
9628 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
9629 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
9630 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
9631 from operands[0] or operands[3] depending on is_set.
9632 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
9633 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
9634 cmpdf, bCC), sCC: Remove.
9635 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
9636 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
9637 cstoredf4): New.
9638 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
9639 spu_emit_branch_or_set.
9640
9641 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
9642 Add two arguments.
9643 * config/stormy16/stormy16.h (xstormy16_compare_op0,
9644 xstormy16_compare_op1): Delete.
9645 * config/stormy16/stormy16.c (xstormy16_compare_op0,
9646 xstormy16_compare_op1): Delete.
9647 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
9648 Adjust calls.
9649 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
9650 (cmphi, cmpsi, bCC): Remove.
9651
9652 * config/v850/v850.md (tstsi, cmpsi): Fold into...
9653 (*cmpsi): ... this one.
9654 (cbranchsi4, cstoresi4): New.
9655 (bCC expanders): Delete.
9656 (sCC insns): Fold into...
9657 (*setcc): ... this one.
9658 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
9659 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
9660 (movsicc): Simplify.
9661 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
9662
fbdf817d
UB
9663 * config/vax/vax-protos.h (cond_name): New.
9664 (vax_output_conditional_branch): Remove.
9665 * config/vax/vax.c (cond_name): New.
9666 (vax_output_conditional_branch): Remove.
9667 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
9668 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
9669 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
9670 (bit<VAXint>): Wrap source with (compare).
9671 (b<code> and following unnamed pattern): Rename to *branch and
9672 *branch_reversed. Change macroization to match_operator.
9673 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
9674
9675 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
9676 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
9677 Change last argument to machine_mode.
9678 (xtensa_expand_scc): Add machine_mode argument.
9679 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
9680 (gen_conditional_move, xtensa_expand_conditional_branch,
9681 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
9682 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
9683 Adjust operand numbers.
9684 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
9685 Delete.
9686 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
9687 (cmpsi, cmpsf, b<code>, s<code>): Delete.
9688 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 9689
16670495
PB
96902009-05-12 Paolo Bonzini <bonzini@gnu.org>
9691
9692 * optabs.c (prepare_cmp_insn): Temporarily disable test that
9693 causes spurious differences between trunk and cond-optab branch.
9694
4a4a4e99
AO
96952009-05-12 Alexandre Oliva <aoliva@redhat.com>
9696
9697 PR target/37137
9698 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
9699
72b9acff
AO
97002009-05-12 Alexandre Oliva <aoliva@redhat.com>
9701
9702 * tree.c (iterative_hash_pointer): Delete.
9703 (iterative_hash_expr): Short-circuit handling of NULL pointer.
9704 Hash UIDs and versions of SSA names. Don't special-case built-in
9705 function declarations.
9706
b7dd69ac
ILT
97072009-05-11 Ian Lance Taylor <iant@google.com>
9708
9709 PR bootstrap/40103
9710 * graphite.c: Force -Wc++-compat to only be a warning before
9711 #including "cloog/cloog.h".
9712
ed102b70
MJ
97132009-05-11 Martin Jambor <mjambor@suse.cz>
9714
9715 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
9716
08f1af2e
JH
97172009-05-11 Jan Hubicka <jh@suse.cz>
9718
9719 * tree-ssa-loop-ivcanon.c: Include target.h
9720 (struct loop_size): new structure.
9721 (constant_after_peeling): New predicate.
9722 (tree_estimate_loop_size): New function.
9723 (estimated_unrolled_size): Rewrite for new estimates.
9724 (try_unroll_loop_completely): Use new estimates.
9725 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
9726
a7d39bd3
AP
97272009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
9728
9729 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
9730 libcpp interface change.
9731 (spu_macro_to_expand): Likewise.
9732
f5a1f0d0
PB
97332009-05-11 Paolo Bonzini <bonzini@gnu.org>
9734
9735 PR tree-optimization/40026
9736 * gimplify.c (gimplify_init_constructor): Change initial conditional
9737 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
9738 optimize_compound_literals_in_ctor.
9739
c260f01f
NS
97402009-05-11 Nathan Sidwell <nathan@codesourcery.com>
9741
9742 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
9743 New devices.
9744 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
9745
df398a37
L
97462009-05-11 H.J. Lu <hongjiu.lu@intel.com>
9747
9748 * tree-vect-data-refs.c (vect_analyze_group_access): Use
9749 HOST_WIDE_INT for gap.
9750
4da39468
IR
97512009-05-11 Ira Rosen <irar@il.ibm.com>
9752
9753 PR tree-optimization/40074
9754 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
9755 account in group size and step comparison.
9756
4effdf02
RG
97572009-05-11 Richard Guenther <rguenther@suse.de>
9758
9759 * passes.c (init_optimization_passes): Strip now incorrect comment.
9760 (execute_function_todo): Do not set PROP_alias.
9761 * tree-pass.h (PROP_alias): Remove.
9762 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
9763 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
9764 * tree-nrv.c (pass_return_slot): Likewise.
9765 * tree-object-size.c (pass_object_sizes): Likewise.
9766 * tree-ssa-dom.c (pass_dominator): Likewise.
9767 (pass_phi_only_cprop): Likewise.
9768 * tree-ssa-dse.c (pass_dse): Likewise.
9769 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9770 (pass_cselim): Likewise.
9771 * tree-ssa-pre.c (pass_pre): Likewise.
9772 (pass_fre): Likewise.
9773 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9774 * tree-ssa-sink.c (pass_sink_code): Likewise.
9775 * tree-stdarg.c (pass_stdarg): Likewise.
9776 * tree-tailcall.c (pass_tail_calls): Likewise.
9777 * tree-vrp.c (pass_vrp): Likewise.
9778
24b97832
ILT
97792009-05-10 Ian Lance Taylor <iant@google.com>
9780
9781 * basic-block.h (enum profile_status): Break out of struct
9782 control_flow_graph.
9783 * cgraph.h (struct inline_summary): Break out of struct
9784 cgraph_local_info.
9785 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
9786 of struct cgraph_order_sort.
fbdf817d 9787 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
9788 * cse.c (struct branch_path): Break out of struct
9789 cse_basic_block_data.
9790 * except.h (enum eh_region_type): Break out of struct eh_region.
9791 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 9792 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
9793 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
9794 ggc_pch_data.
fbdf817d
UB
9795 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
9796 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
9797 * sched-int.h (enum post_call_group): New enum, broken out of
9798 struct deps.
9799 (struct deps_reg): Break out of struct deps.
9800 * target.h (struct asm_int_op): Break out of struct gcc_target.
9801 * tree-eh.c (struct goto_queue_node): Break out of struct
9802 leh_tf_state.
9803 * tree-inline.h (enum copy_body_cge_which): Break out of
9804 copy_body_data.
9805 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
9806
9807 * c-decl.c (in_struct, struct_types): New static variables.
9808 (pushtag): Add loc parameter. Change all callers.
9809 (lookup_tag): Add ploc parameter. Change all callers.
9810 (check_compound_literal_type): New function.
9811 (parser_xref_tag): Add loc parameter. Change all callers. If
9812 -Wc++-compat, warn about struct/union/enum types defined within a
9813 struct or union.
9814 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
9815 and loc parameters. Change all callers. Change error calls to
9816 error_at, using loc. For a redefinition, if the location of the
9817 original definition is known, report it. Set in_struct and
fbdf817d 9818 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
9819 (finish_struct): Add new parameters enclosing_in_struct and
9820 enclosing_struct_types. Change all callers. Set
9821 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
9822 in the struct. If in a struct, add this struct to struct_types.
9823 (start_enum): Add loc parameter. Change all callers. Use
9824 error_at for errors, using loc. For a redefinition, if the
9825 location of the original definition is known, report it. If in a
9826 struct, add this enum type to struct_types. If -Wc++-compat warn
9827 if in sizeof, typeof, or alignof.
fbdf817d
UB
9828 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
9829 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
9830 (c_parser_enum_specifier): Get enum location for start_enum.
9831 (c_parser_struct_or_union_specifier): Get struct location for
9832 start_struct. Save in_struct and struct_types status between
9833 start_struct and finish_struct.
9834 (c_parser_cast_expression): Get location of cast.
9835 (c_parser_alignof_expression): Get location of type.
9836 (c_parser_postfix_expression): Likewise.
9837 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
9838 parameter. Change all callers. Call check_compound_literal_type.
9839 Use type_loc for error about variable size type.
9840 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
9841 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
9842 (c_cast_expr): Add loc parameter. Change all callers. If
9843 -Wc++-compat, warn about defining a type in a cast.
9844 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
9845 (start_enum, start_struct, finish_struct): Update declarations.
9846 (parser_xref_tag, c_cast_expr): Update declarations.
9847 (check_compound_literal_type): Declare.
9848
7a2738fa
BE
98492009-05-11 Ben Elliston <bje@au.ibm.com>
9850
9851 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
9852 for recent libcpp interface change.
9853 (rs6000_macro_to_expand): Likewise.
9854
af618949
MM
98552009-05-10 Michael Matz <matz@suse.de>
9856
9857 PR target/40031
9858 * config/arm/arm.c (require_pic_register): Emit on entry edge,
9859 not at entry of function.
9860
b7d7a473
RG
98612009-05-10 Richard Guenther <rguenther@suse.de>
9862
9863 PR tree-optimization/40081
9864 Revert
9865 * tree-sra.c (instantiate_element): Instantiate scalar replacements
9866 using the main variant of the element type. Do not fiddle with
9867 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9868
9869 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
9870 structs with volatile fields.
9871
078c3644
JH
98722009-05-10 Jan Hubicka <jh@suse.cz>
9873
9874 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
9875 (estimate_move_cost): Assert that it does not get called for
9876 VOID_TYPE_P.
078c3644
JH
9877 (estimate_num_insns): Skip VOID types in argument handling.
9878 (optimize_inline_calls): Delete unreachable blocks and verify that
9879 callgraph is valid.
9880
39ff5a96
JH
98812009-05-10 Jan Hubicka <jh@suse.cz>
9882
9883 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
9884 * cgraph.c (cgraph_mark_address_taken_node): New function.
9885 (dump_cgraph_node): Dump new flag.
9886 * cgraph.h (struct cgraph_node): Add address_taken.
9887 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
9888 * ipa.c (cgraph_postorder): Prioritize functions with address taken
9889 since new direct calls can be born.
9890
9a0c6187
JM
98912009-05-10 Joseph Myers <joseph@codesourcery.com>
9892
9893 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
9894 tok->val.node.node.
9895
4b685e14
JH
98962009-05-10 Jan Hubicka <jh@suse.cz>
9897
9898 PR middle-end/40084
fb0be169
EB
9899 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
9900 argument; rewrite.
4b685e14
JH
9901 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
9902 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
9903 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
9904 (fold_marked_statements): Update call to
9905 cgraph_update_edges_for_call_stmt.
4b685e14 9906
29d08eba
JM
99072009-05-10 Joseph Myers <joseph@codesourcery.com>
9908
9909 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
9910 identifiers in diagnostics.
9911 * config/arm/arm.c (arm_handle_fndecl_attribute,
9912 arm_handle_isr_attribute): Likewise.
9913 * config/avr/avr.c (avr_handle_progmem_attribute,
782dc37a 9914 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
29d08eba
JM
9915 * config/bfin/bfin.c (handle_int_attribute,
9916 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
9917 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
9918 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
9919 Likewise.
9920 * config/darwin.c (darwin_handle_kext_attribute,
9921 darwin_handle_weak_import_attribute): Likewise.
9922 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
9923 h8300_handle_eightbit_data_attribute,
9924 h8300_handle_tiny_data_attribute): Likewise.
9925 * config/i386/i386.c (ix86_handle_cconv_attribute,
782dc37a 9926 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
29d08eba
JM
9927 * config/i386/winnt.c (ix86_handle_shared_attribute,
9928 ix86_handle_selectany_attribute): Likewise.
9929 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
9930 * config/m32c/m32c.c (function_vector_handler): Likewise.
9931 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
9932 m68hc11_handle_fntype_attribute): Likewise.
9933 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
9934 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
9935 * config/mips/mips.c (mips_insert_attributes,
9936 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
9937 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
9938 rs6000_handle_struct_attribute): Likewise.
9939 * config/sh/sh.c (sh_insert_attributes,
9940 sh_handle_resbank_handler_attribute,
9941 sh_handle_interrupt_handler_attribute,
9942 sh2a_handle_function_vector_handler_attribute,
9943 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
9944 Likewise.
9945 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
9946 * config/spu/spu.c (spu_handle_fndecl_attribute,
9947 spu_handle_vector_attribute): Likewise.
9948 * config/stormy16/stormy16.c
9949 (xstormy16_handle_interrupt_attribute): Likewise.
9950 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
9951 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
9952
f41c4af3
JM
99532009-05-10 Joseph Myers <joseph@codesourcery.com>
9954
782dc37a 9955 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
f41c4af3
JM
9956 (pp_translate_identifiers): New.
9957 (pp_identifier): Only conditionally translate identifier to locale
9958 character set.
9959 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
9960 (pp_base_tree_identifier): Only conditionally translate identifier
9961 to locale character set.
9962 * c-pretty-print.c (M_): Define.
9963 (pp_c_type_specifier, pp_c_primary_expression): Mark English
9964 fragments for conditional translation with M_.
9965 * tree-pretty-print.c (maybe_init_pretty_print): Disable
9966 identifier translation.
9967
896d7dbd
RG
99682009-05-10 Richard Guenther <rguenther@suse.de>
9969
9970 PR tree-optimization/40081
9971 * tree-sra.c (instantiate_element): Instantiate scalar replacements
9972 using the main variant of the element type. Do not fiddle with
9973 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9974
9a23acef
JH
99752009-05-09 Jan Hubicka <jh@suse.cz>
9976
9977 PR middle-end/40080
9978 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
9979 indirect calls; verify cgraph afterwards.
9980
d563610d
JH
99812009-05-09 Jan Hubicka <jh@suse.cz>
9982
9983 PR bootstrap/40082
9984 * ipa.c (update_inlined_to_pointer): New function.
9985 (cgraph_remove_unreachable_nodes): Use it.
9986
f08a18d0
JH
99872009-05-09 Jan Hubicka <jh@suse.cz>
9988
9989 * tree-eh.c (struct leh_state): Remove prev_try.
9990 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
9991 not track prev_try.
9992 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
9993 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
9994 remove_eh_handler_and_replace, foreach_reachable_handler,
9995 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
9996 * except.h (struct eh_region): Remove eh_region_u_cleanup.
9997 (gen_eh_region_cleanup): Update prototype.
9998
0afd7219
JH
99992009-05-09 Jan Hubicka <jh@suse.cz>
10000
10001 PR middle-end/40043
10002 * except.c (copy_eh_region): Always set prev_try.
10003 (redirect_eh_edge_to_label): Find outer try.
10004 (foreach_reachable_handler): When looking for prev try
10005 handle case where previous try is not going to be taken.
10006
ad6c0864
MM
100072009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10008
10009 PR tree-optimization/40049
10010 * tree-vect-stmts.c (vectorizable_operation): If the machine has
10011 only vector/vector shifts, convert the type of the constant to the
10012 appropriate type to avoid building incorrect trees, which
10013 eventually have problems with garbage collection.
10014
c94f9067
JM
100152009-05-08 Joseph Myers <joseph@codesourcery.com>
10016
10017 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
10018 -1 for complex floating-point types if honoring signed zeros.
10019
9187e02d
JH
100202009-05-08 Jan Hubicka <jh@suse.cz>
10021
20acb8a2
EB
10022 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
10023 argument; handle correctly when profile is absent.
9187e02d
JH
10024 (build_cgraph_edges): Update.
10025 (rebuild_cgraph_edges): Update.
20acb8a2
EB
10026 * cgraph.c: Do not include varray.h.
10027 (cgraph_set_call_stmt_including_clones): New function.
10028 (cgraph_create_edge_including_clones): Likewise
10029 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
10030 (cgraph_update_edges_for_call_stmt): Handle clones.
10031 (cgraph_remove_node): Handle clone tree.
10032 (cgraph_remove_node_and_inline_clones): New function.
10033 (dump_cgraph_node): Dump clone tree.
10034 (cgraph_clone_node): Handle clone tree.
20acb8a2 10035 (clone_function_name): Bring here from tree-inline.c.
9187e02d 10036 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
10037 * cgraph.h (ipa_replace_map): Move here from ipa.h.
10038 (cgraph_clone_info): New function.
9187e02d 10039 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
10040 (cgraph_remove_node_and_inline_clones,
10041 cgraph_set_call_stmt_including_clones,
10042 cgraph_create_edge_including_clones,
10043 cgraph_create_virtual_clone): Declare.
9187e02d
JH
10044 (cgraph_function_versioning): Use VEC argument.
10045 (compute_call_stmt_bb_frequency): Update prototype.
10046 (cgraph_materialize_all_clones): New function.
10047 * ipa-cp.c (ipcp_update_cloned_node): Remove.
10048 (ipcp_create_replace_map): Update to VECtors.
10049 (ipcp_update_callgraph): Use virtual clones.
10050 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
10051 (ipcp_update_profiling): Do not update local profiling.
10052 (ipcp_insert_stage): Use VECtors and virtual clones.
10053 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
10054 (clone_of_p): New function.
10055 (cgraph_preserve_function_body_p): Use clone tree.
10056 (cgraph_optimize): Materialize clones.
10057 (cgraph_function_versioning): Update for VECtors.
10058 (save_inline_function_body): Use clone tree.
20acb8a2
EB
10059 (cgraph_materialize_clone): New function.
10060 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
10061 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
10062 * ipa.c: Include gimple.h.
10063 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
10064 * ipa-prop.c (ipa_note_param_call): Update call to
10065 compute_call_stmt_bb_frequencycall.
9187e02d 10066 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 10067 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
10068 (copy_bb): Handle updating of clone tree; add new edge when new call
10069 appears.
10070 (expand_call_inline): Be strict about every call having edge.
10071 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
10072 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
10073 (tree_function_versioning): Use VECtors; always remove unreachable
10074 blocks and fold conditionals.
10075 * tree-inline.h: Do not include varray.h.
9187e02d
JH
10076 (tree_function_versioning): Remove.
10077 * Makefile.in (GTFILES): Remove tree-inline.c
10078 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
10079 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
10080 tree.
9187e02d 10081
9b86d6bb
L
100822009-05-08 H.J. Lu <hongjiu.lu@intel.com>
10083 Andrew Morrow <acm@google.com>
10084
10085 PR c/36892
10086 * c-common.c (c_common_attribute_table): Permit deprecated
10087 attribute to take an optional argument.
10088 (handle_deprecated_attribute): If the optional argument to
10089 __attribute__((deprecated)) is not a string ignore the attribute
10090 and emit a warning.
10091
10092 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
10093 * c-typeck.c (build_component_ref): Likewise.
10094 (build_external_ref): Likewise.
10095
10096 * toplev.c (warn_deprecated_use): Add an attribute argument.
10097 Emit the message associated with __attribute__((deprecated)).
10098
10099 * toplev.h (warn_deprecated_use): Updated.
10100
10101 * doc/extend.texi: Document new optional parameter to
10102 __attribute__((deprecated))
10103
82ad047f
ME
101042009-05-08 Michael Eager <eager@eagercon.com>
10105
10106 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
10107 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
10108
788d3075
RG
101092009-05-08 Richard Guenther <rguenther@suse.de>
10110
10111 PR tree-optimization/40062
10112 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
10113 Avoid exponential behavior.
10114
00952e97
PB
101152009-05-08 Paolo Bonzini <bonzini@gnu.org>
10116
10117 PR rtl-optimization/33928
10118 PR 26854
10119 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
10120 process_uses, build_single_def_use_links): New.
10121 (update_df): Update use_def_ref.
10122 (forward_propagate_into): Use get_def_for_use instead of use-def
10123 chains.
10124 (fwprop_init): Call build_single_def_use_links and let it initialize
10125 dataflow.
10126 (fwprop_done): Free use_def_ref.
10127 (fwprop_addr): Eliminate duplicate call to df_set_flags.
10128 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
10129 df_rd_simulate_one_insn): New.
10130 (df_rd_bb_local_compute_process_def): Update head comment.
10131 (df_chain_create_bb): Use the new RD simulation functions.
10132 * df.h (df_rd_simulate_artificial_defs_at_top,
10133 df_rd_simulate_one_insn): New.
10134 * opts.c (decode_options): Enable fwprop at -O1.
10135 * doc/invoke.texi (-fforward-propagate): Document this.
10136
2ca862e9
JM
101372009-05-08 Joseph Myers <joseph@codesourcery.com>
10138
10139 PR c/24581
10140 * c-typeck.c (build_binary_op): Handle arithmetic between one real
10141 and one complex operand specially.
10142 * tree-complex.c (some_nonzerop): Do not identify a real value as
10143 zero if flag_signed_zeros.
10144
3e807ffc
PB
101452009-05-08 Paolo Bonzini <bonzini@gnu.org>
10146
10147 PR rtl-optimization/33928
7925c06c 10148 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 10149
1bfdbb29
PB
101502009-05-08 Paolo Bonzini <bonzini@gnu.org>
10151
10152 PR rtl-optimization/33928
e913423f
EB
10153 * loop-invariant.c (struct use): Add addr_use_p.
10154 (struct def): Add n_addr_uses.
10155 (struct invariant): Add cheap_address.
10156 (create_new_invariant): Set cheap_address.
10157 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
10158 (record_uses): Pass df_ref to record_use.
10159 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
10160 used only as such.
1bfdbb29 10161
702cb2a0
KK
101622009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
10163
10164 * config/sh/sh.c: Do not include c-pragma.h.
10165
5e8df753
AP
101662009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
10167
10168 * config/spu/spu.c: Remove include of c-common.h.
10169
6ec637a4
JJ
101702009-05-07 Janis Johnson <janis187@us.ibm.com>
10171
10172 PR c/39037
10173 * c-common.h (mark_valid_location_for_stdc_pragma,
10174 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
10175 clear_float_const_decimal64, float_const_decimal64_p): New.
10176 * c.opt (Wunsuffixed-float-constants): New.
10177 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
10178 unsuffixed float constant, handle new warning.
10179 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
10180 * c-decl.c (c_scope): New flag float_const_decimal64.
10181 (set_float_const_decimal64, clear_float_const_decimal64,
10182 float_const_decimal64_p): New.
10183 (push_scope): Set new flag.
10184 * c-parser.c (c_parser_translation_unit): Mark when it's valid
10185 to use STDC pragmas.
10186 (c_parser_external_declaration): Ditto.
10187 (c_parser_compound_statement_nostart): Ditto.
10188 * c-pragma.c (valid_location_for_stdc_pragma,
10189 mark_valid_location_for_stdc_pragma,
10190 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
10191 handle_pragma_float_const_decimal64): New.
10192 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
10193 * cp/semantics.c (valid_location_for_stdc_pragma_p,
10194 set_float_const_decimal64, clear_float_const_decimal64,
10195 float_const_decimal64_p): New dummy functions.
10196 * doc/extend.texi (Decimal Float): Remove statement that the
10197 pragma, and suffix for double constants, are not supported.
10198 * doc/invoke.texi (Warning Options): List new option.
10199 (-Wunsuffixed-float-constants): New.
10200
45b9b2e9
SB
102012009-05-08 Steven Bosscher <steven@gcc.gnu.org>
10202
10203 * config/i386/i386.c: Do not include c-common.h.
10204
e71da632
MH
102052009-05-07 Mark Heffernan <meheff@google.com>
10206
10207 * doc/invoke.texi (Debugging Options): Document change of debugging
10208 dump location.
e913423f 10209 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
10210 aux_base_name directory.
10211
fe4c7bc6
HS
102122009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
10213
10214 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
10215 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
10216
3b3e44eb
RAE
102172009-05-07 Rafael Avila de Espindola <espindola@google.com>
10218
10219 * Makefile.in (install-plugin): Simplify a bit.
10220
fac41238
PB
102212009-05-07 Paolo Bonzini <bonzini@gnu.org>
10222
10223 * Makefile.in (OBJS-common): Add regcprop.o.
10224 (regcprop.o): New.
10225 * timevar.def (TV_CPROP_REGISTERS): New.
10226 * regrename.c (regrename_optimize): Return 0.
10227 (rest_of_handle_regrename): Delete.
10228 (pass_rename_registers): Point to regrename_optimize.
10229 (struct value_data_entry, struct value_data,
10230 kill_value_one_regno, kill_value_regno, kill_value,
10231 set_value_regno, init_value_data, kill_clobbered_value,
10232 kill_set_value, kill_autoinc_value, copy_value,
10233 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
10234 replace_oldest_value_reg, replace_oldest_value_addr,
10235 replace_oldest_value_mem, copyprop_hardreg_forward_1,
10236 debug_value_data, validate_value_data): Move...
10237 * regcprop.c: ... here.
10238 (rest_of_handle_cprop): Delete.
10239 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
10240
472e0df9
JJ
102412009-05-07 Jakub Jelinek <jakub@redhat.com>
10242
10243 PR middle-end/40057
10244 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
10245 GEN_INT for 1 << bitnum.
10246 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
10247 build_int_cst_type.
10248
0d50d55a
UB
102492009-05-07 Uros Bizjak <ubizjak@gmail.com>
10250
10251 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 10252 Remove wrong description of "nand" operation.
0d50d55a 10253
22f597f1
RG
102542009-05-06 Richard Guenther <rguenther@suse.de>
10255 Adam Nemet <anemet@caviumnetworks.com>
10256
10257 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
10258 comment. Add that if LHS is not a gimple register, then RHS1 has
10259 to be a single object (GIMPLE_SINGLE_RHS).
10260
641cac0b
AN
102612009-05-06 Adam Nemet <anemet@caviumnetworks.com>
10262
10263 * expr.c (get_def_for_expr): Move it up in the file.
10264 (store_field): When expanding a bit-field store, look at the
10265 defining gimple stmt for the masking conversion.
10266
5a5c6435
JJ
102672009-05-06 Janis Johnson <janis187@us.ibm.com>
10268
10269 PR middle-end/39986
10270 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
10271 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
10272 32-bit memcpy into long.
10273
96474f36
JJ
102742009-05-06 Jakub Jelinek <jakub@redhat.com>
10275
10276 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
10277 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
10278 new_reg_loc_descr.
10279 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
10280 instead of appending DW_OP_deref*.
10281
529ff441
MM
102822009-05-06 Michael Matz <matz@suse.de>
10283
10284 PR middle-end/40021
10285 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
10286 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
10287
9419a9fd
RAE
102882009-05-06 Rafael Avila de Espindola <espindola@google.com>
10289
10290 * Makefile.in (install-plugin): Fix srcdir handling.
10291
fff1894c
AB
102922009-05-06 Andrey Belevantsev <abel@ispras.ru>
10293
10294 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
10295 when processing for not_regs_needed bitmap.
10296 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
10297 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
10298 handling it for rhs.
10299
700ae70c
L
103002009-05-06 H.J. Lu <hongjiu.lu@intel.com>
10301
ab3426a7 10302 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 10303 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
10304 * config/i386/predicates.md (incdec_operand): Likewise.
10305 (aligned_operand): Likewise.
10306 * config/i386/sse.md (divv8sf3): Likewise.
10307 (sqrtv8sf2): Likewise.
10308
67341fb5
L
103092009-05-06 H.J. Lu <hongjiu.lu@intel.com>
10310
10311 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
10312
10313 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
10314
87946f42
L
103152009-05-06 H.J. Lu <hongjiu.lu@intel.com>
10316
10317 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
10318 ssemodesuffixf2c with avxmodesuffixf2c.
10319
1202aec1
JM
103202009-05-06 Joseph Myers <joseph@codesourcery.com>
10321
10322 PR c/40032
aa016ff7 10323 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 10324
6e57a01d
JJ
103252009-05-05 Jakub Jelinek <jakub@redhat.com>
10326
10327 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
10328 (struct tree_base): Adjust spacing for 8 bit boundaries.
10329 (struct tree_decl_common): Add decl_by_reference_flag bit.
10330 (DECL_BY_REFERENCE): Adjust.
10331 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
10332 print DECL_BY_REFERENCE bit.
10333 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
10334 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
10335 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
10336 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
10337 unconditionally.
10338
32f579f6
JJ
10339 PR middle-end/39666
10340 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
10341 range of the type, but default label is missing, add it with one
10342 of the existing labels instead of adding a new label for it.
10343
617ab743
JM
103442009-05-05 Joseph Myers <joseph@codesourcery.com>
10345
10346 * dwarf.h: Remove.
10347
bf016de8
RAE
103482009-05-05 Rafael Avila de Espindola <espindola@google.com>
10349
10350 * Makefile.in (enable_plugin, plugin_includedir): New.
10351 (install): Depend on install-plugin.
10352 (PLUGIN_HEADERS): New.
10353 (install-plugin): New.
10354 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
10355
7f8fdb9f
RG
103562009-05-05 Richard Guenther <rguenther@suse.de>
10357
10358 PR tree-optimization/40022
10359 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
10360 the only vuse.
10361 (phivn_valid_p): Fix tuplification error, simplify.
10362 (phiprop_insert_phi): Add dumps.
10363 (propagate_with_phi): Simplify.
10364
8d972839
RG
103652009-05-05 Richard Guenther <rguenther@suse.de>
10366
10367 PR middle-end/40023
aa016ff7 10368 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 10369
66ba9b0b
SZ
103702009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
10371
10372 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
10373 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
10374 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
10375 block_ultimate_origin): Rearrange the declarations line to match the
10376 comment that indicates the .c file which the functions are defined.
10377 (dwarf2out_*, set_decl_rtl): Add comment.
10378 (get_base_address): Adjust comment.
10379 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
10380 declarations line and add comment.
10381 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 10382
4f1e4960
JM
103832009-05-04 Joseph Myers <joseph@codesourcery.com>
10384
10385 * attribs.c (decl_attributes): Use %qE for identifiers in
10386 diagnostics.
10387 * cgraphunit.c (verify_cgraph_node): Translate function names to
10388 locale character set in diagnostics.
10389 * coverage.c (get_coverage_counts): Use %qE for identifiers in
10390 diagnostics.
10391 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
10392 Document that functions are named in UTF-8.
10393 * expr.c (expand_expr_real_1): Translate function names to locale
10394 character set in diagnostics.
10395 * gimplify.c (omp_notice_variable, omp_is_private,
10396 gimplify_scan_omp_clauses): Use %qE for identifiers in
10397 diagnostics.
10398 * langhooks.c (lhd_print_error_function): Translate function names
10399 to locale character set.
10400 * langhooks.h (decl_printable_name): Document that return value is
10401 in internal character set.
10402 * stmt.c: Include pretty-print.h
10403 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
10404 diagnostics.
10405 (resolve_operand_name_1): Translate named operand name to locale
10406 character set.
10407 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
10408 diagnostics.
10409 * toplev.c (announce_function): Translate function names to locale
10410 character set.
10411 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
10412 (default_tree_printer): Use pp_identifier or translate identifiers
10413 to locale character set. Mark "<anonymous>" for translation.
10414 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
10415 for identifiers in diagnostics.
10416 * tree.c (handle_dll_attribute): Use %qE for identifiers in
10417 diagnostics.
10418 * varasm.c (output_constructor): Use %qE for identifiers in
10419 diagnostics.
10420
40540e68
RAE
104212009-05-04 Rafael Avila de Espindola <espindola@google.com>
10422
10423 * configure.ac: use ` ` instead of $()
10424 * configure: Regenerate.
10425
33fc884c
BE
104262009-05-05 Ben Elliston <bje@au.ibm.com>
10427
10428 * config/pa/linux-atomic.c: Eliminate conditional include of
10429 errno.h on non-LP64 systems to simplify build requirements.
10430
88388a52
JM
104312009-05-04 Joseph Myers <joseph@codesourcery.com>
10432
10433 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
10434 diagnostics.
10435 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
10436 and pass value to identifier_to_locale.
10437 (warn_variable_length_array): Make name a tree.
10438 (grokdeclarator): Separate diagnostic texts for named and unnamed
10439 declarators. Use %qE for named declarators.
10440 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
10441 diagnostics.
10442 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
10443 identifiers in diagnostics.
10444 * c-typeck.c (push_member_name, start_init): Pass identifiers to
10445 identifier_to_locale. Mark "anonymous" strings for translation.
10446
960c5c79
ME
104472009-05-04 Michael Eager <eager@eagercon.com>
10448
10449 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 10450 address for DImode/DFmode only if double-precision FP regs.
960c5c79 10451
d083fbba
ME
104522009-05-04 Michael Eager <eager@eagercon.com>
10453
10454 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
10455 TARGET_SINGLE_FLOAT check.
10456
c3ba8d32
ME
104572009-05-04 Michael Eager <eager@eagercon.com>
10458
10459 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
10460
edce9f18
ME
104612009-05-04 Michael Eager <eager@eagercon.com>
10462
10463 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
10464 * config/rs6000/t-xilinx: New
10465
506d7b68
PB
104662009-05-04 Paolo Bonzini <bonzini@gnu.org>
10467
e913423f 10468 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
10469 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
10470 * gcc/explow.c (memory_address): Use target hook.
10471 * gcc/targhooks.c (default_legitimize_address): New.
10472 * gcc/targhooks.h (default_legitimize_address): New.
10473 * gcc/target.h (legitimize_address): New.
10474 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
10475 (TARGET_INITIALIZER): Include it.
10476 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
10477
10478 * config/bfin/bfin-protos.h (legitimize_address): Remove.
10479 * config/bfin/bfin.c (legitimize_address): Remove.
10480 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
10481 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
10482 Remove.
506d7b68
PB
10483 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
10484 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
10485
10486 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
10487 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
10488 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
10489 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
10490 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
10491 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
10492 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
10493 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
10494 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
10495 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
10496 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
10497 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
10498 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
10499 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
10500 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
10501 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
10502 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
10503 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
10504 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
10505 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
10506 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
10507 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
10508 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
10509
10510 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
10511 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
10512 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
10513 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
10514 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
10515 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
10516 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
10517 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
10518 (thumb_legitimize_address): Delete.
10519 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
10520 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
10521 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
10522 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
10523 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
10524 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
10525 Delete.
10526 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
10527 Delete.
506d7b68
PB
10528
10529 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
10530 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
10531 * config/m32r/m32r.c (m32r_legitimize_address): New.
10532 * config/m68k/m68k.c (m68k_legitimize_address): New.
10533 * config/score/score.c (score_legitimize_address): Standardize.
10534 * config/score/score3.c (score3_legitimize_address): Standardize.
10535 * config/score/score3.h (score3_legitimize_address): Adjust.
10536 * config/score/score7.c (score7_legitimize_address): Standardize.
10537 * config/score/score7.h (score7_legitimize_address): Adjust.
10538 * config/sh/sh.c (sh_legitimize_address): New.
10539 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
10540
10541 * gcc/config/s390/s390.c (legitimize_address): Rename to...
10542 (s390_legitimize_address): ... this.
10543 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
10544 (sparc_legitimize_address): ... this.
10545 * gcc/config/i386/i386.c (legitimize_address): Rename to...
10546 (ix86_legitimize_address): ... this.
10547 * gcc/config/avr/avr.c (legitimize_address): Rename to...
10548 (avr_legitimize_address): ... this.
10549 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
10550 (mn10300_legitimize_address): ... this.
10551 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
10552 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
10553 (alpha_expand_mov): Adjust call.
10554
10555 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
10556 * config/spu/spu.c (spu_legitimize_address): Likewise.
10557 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
10558 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
10559
a3af5087
JM
105602009-05-04 Joseph Myers <joseph@codesourcery.com>
10561
10562 * intl.c (locale_encoding, locale_utf8): New.
10563 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
10564 * intl.h (locale_encoding, locale_utf8): Declare.
10565 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
10566 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
10567 New.
10568 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
10569 argument.
10570 (pp_tree_identifier): Define to call pp_base_tree_identifier.
10571 (pp_base_tree_identifier): Declare as function.
10572 (identifier_to_locale): Declare.
10573 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 10574 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 10575
ea5cd5f1
RG
105762009-05-04 Richard Guenther <rguenther@suse.de>
10577
10578 PR middle-end/40015
10579 * builtins.c (fold_builtin_memory_op): Do not decay to element
10580 type if the size matches the whole array.
10581
ddc2690a
KH
105822009-05-04 Kazu Hirata <kazu@codesourcery.com>
10583
10584 * expmed.c (synth_mult): When trying out a shift, pass the result
10585 of a signed shift.
10586
ef268d34
KH
105872009-05-04 Kazu Hirata <kazu@codesourcery.com>
10588
10589 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
10590 (shiftsub1_cost): New.
10591 (init_expmed): Compute shiftsub1_cost.
10592 (synth_mult): Optimize multiplications by constants of the form
10593 -(2^^m-1) for some constant positive integer m.
10594
255d3827
RG
105952009-05-03 Richard Guenther <rguenther@suse.de>
10596
10597 PR c/39983
10598 * c-typeck.c (array_to_pointer_conversion): Do not built
10599 ADDR_EXPRs of arrays of pointer-to-element type.
10600 * c-gimplify.c (c_gimplify_expr): Revert change fixing
10601 up wrong ADDR_EXPRs after-the-fact.
10602 * c-common.c (strict_aliasing_warning): Strip pointer
10603 conversions for obtaining the original type.
10604 * builtins.c (fold_builtin_memset): Handle array types.
10605 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
10606 and array types
10607
16c33770
RG
106082009-05-03 Richard Guenther <rguenther@suse.de>
10609
10610 PR middle-end/23329
10611 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
10612 Do not lose casts from array types with unknown extent to array
10613 types with known extent.
10614 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
10615 alias set compatibility.
10616
62a67c94
MLI
106172009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
10618
10619 * flags.h (extra_warnings): Delete.
10620 * toplev.c (process_options): Handle Wuninitialized here.
10621 * opts.c (extra_warnings): Delete.
10622 (set_Wextra): Delete.
10623 (common_handle_option): -Wextra can be handled automatically.
10624 * c-opts.c (c_common_handle_option): Delete obsolete code.
10625 (c_common_post_options): Simplify comment.
10626 * common.opt (W): Add Var.
10627 (Wextra): Add Var.
10628 (Wuninitialized): Initialize to -1.
10629
8c7926c4
AN
106302009-05-03 Adam Nemet <anemet@caviumnetworks.com>
10631 Richard Guenther <rguenther@suse.de>
10632
10633 * expr.c (get_def_for_expr): New function.
10634 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
10635 SSA rather than trees.
10636 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
10637 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
10638
fa5da7de
JM
106392009-05-03 Joseph Myers <joseph@codesourcery.com>
10640
10641 * c-common.c (reswords): Add _Imaginary.
10642 * c-common.c (enum rid): Add RID_IMAGINARY.
10643
2ddd5020
PB
106442009-05-03 Paolo Bonzini <bonzini@gnu.org>
10645
10646 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
10647 Patch by Richard Guenther.
10648
aea88c05
AS
106492009-05-03 Anatoly Sokolov <aesok@post.ru>
10650
10651 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
10652 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10653 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
10654 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
10655 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
10656 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
10657 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
10658 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
10659 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
10660 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
10661 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
10662 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
10663 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
10664 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
10665 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
10666 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
10667 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
10668 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
10669
85e59f3a
RG
106702009-05-02 Richard Guenther <rguenther@suse.de>
10671
10672 PR tree-optimization/39940
10673 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
10674 doing so.
10675
4636b850
RG
106762009-05-02 Richard Guenther <rguenther@suse.de>
10677
10678 PR middle-end/40001
10679 * tree-ssa.c (execute_update_addresses_taken): Properly check
10680 if we can mark a variable DECL_GIMPLE_REG_P.
10681 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
10682 back to the end of the function.
10683 (is_gimple_reg_type): Remove complex type special casing.
10684 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
10685 if not optimizing.
10686
5e10cb5a
BE
106872009-05-02 Ben Elliston <bje@au.ibm.com>
10688
10689 * doc/collect2.texi (Collect2): Document search path behaviour
10690 when configured with --with-ld.
10691
048bf48b
JH
106922009-05-02 Jan Hubicka <jh@suse.cz>
10693
10694 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
10695 parameter; update callers.
aa016ff7
UB
10696 (coalesce_cost_edge): EH edges are costier because they needs
10697 splitting even if not critical and even more costier when there are
10698 multiple EH predecestors.
048bf48b 10699
d5c5f9ab
JH
107002009-05-02 Jan Hubicka <jh@suse.cz>
10701
10702 * except.c (remove_eh_handler_and_replace): Handle updating after
10703 removing TRY blocks.
10704
2ed1959a
EB
107052009-05-02 Eric Botcazou <ebotcazou@adacore.com>
10706
10707 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
10708
d363a7e7
SB
107092009-05-02 Steven Bosscher <steven@gcc.gnu.org>
10710
10711 * varasm.c: Do not include c-pragma.h.
10712 * attribs.c: Do not incude c-common.h.
10713
9c3d55b4
MM
107142009-05-01 Michael Matz <matz@suse.de>
10715
10716 * calls.c (initialize_argument_information): Handle SSA names like
10717 decls with a non MEM_P DECL_RTL.
10718
ea264ca5
SB
107192009-05-01 Steven Bosscher <steven@gcc.gnu.org>
10720
10721 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
10722 * ipa-utils.c: Likewise.
10723 * ipa-type-escape.c: Likewise.
10724 * cgraphunit.c Do not include c-common.h.
10725 * ipa-pure-const.c: Likewise.
10726 * tree-if-conv.c: Likewise.
10727 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
10728 * ipa-struct-reorg.c: Likewise.
10729 * tree-nomudflap.c: Likewise.
10730 * tree-ssa-structalias.c: Likewise.
10731
6c5d4d1a
SB
107322009-05-01 Steven Bosscher <steven@gcc.gnu.org>
10733
10734 * store-motion.c: Many cleanups to make this pass a first-class
10735 citizen instead of an appendix to gcse load motion. Add TODO list
10736 to make this pass faster/cleaner/better.
10737
10738 (struct ls_expr): Post gcse.c-split cleanups.
10739 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
10740 "stores" field to "avail_stores".
10741 (pre_ldst_mems): Rename to store_motion_mems.
10742 (pre_ldst_table): Rename to store_motion_mems_table.
10743 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
10744 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
10745 (ldst_entry): Rename to st_expr_entry, update users.
10746 (free_ldst_entry): Rename to free_st_expr_entry, update users.
10747 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
10748 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
10749 update caller.
6c5d4d1a
SB
10750 (first_ls_expr): Rename to first_st_expr, update users.
10751 (next_ls_expr): Rename to next_st_expr, update users.
10752 (print_ldst_list): Rename to print_store_motion_mems. Print names of
10753 fields properly for store motion instead of names inherited from load
10754 motion in gcse.c.
10755 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
10756 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
10757 are done with it.
10758
10759 (ae_kill): Rename to st_kill, update users.
10760 (ae_gen): Rename to st_avloc, update users.
10761 (transp): Rename to st_transp, update users.
10762 (pre_insert_map): Rename to st_insert_map, update users.
10763 (pre_delete_map): Rename to st_delete_map, update users.
10764 (insert_store, build_store_vectors, free_store_memory,
10765 one_store_motion_pass): Update for abovementioned changes.
10766
10767 (gcse_subst_count, gcse_create_count): Remove.
10768 (one_store_motion_pass): New statistics counters "n_stores_deleted"
10769 and "n_stores_created", local variables.
10770
10771 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
10772 use for_each_rtx.
10773
10774 (regvec, compute_store_table_current_insn): Remove.
10775 (reg_set_info, reg_clear_last_set): Remove.
10776 (compute_store_table): Use DF caches instead of local dataflow
10777 solvers.
10778
b02cec6e
JM
107792009-05-01 Joseph Myers <joseph@codesourcery.com>
10780
10781 * c-objc-common.c (c_tree_printer): Print identifiers with
10782 pp_identifier, not pp_string. Mark "({anonymous})" for
10783 translation.
10784 * c-pretty-print.c (pp_c_ws_string): New.
10785 (pp_c_cv_qualifier, pp_c_type_specifier,
10786 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
10787 pp_c_storage_class_specifier, pp_c_function_specifier,
10788 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
10789 pp_c_primary_expression, pp_c_postfix_expression,
10790 pp_c_unary_expression, pp_c_shift_expression,
10791 pp_c_relational_expression, pp_c_equality_expression,
10792 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
10793 use pp_string and pp_c_ws_string in place of pp_identifier and
10794 pp_c_identifier for non-identifiers. Mark English strings for
10795 translation.
10796 * c-pretty-print.h (pp_c_ws_string): Declare.
10797
cd533689
PP
107982009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10799 Roland McGrath <roland@redhat.com>
10800
aa016ff7 10801 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
10802 (ENABLE_LD_BUILDID): New configuration option.
10803 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
10804 (LINK_BUILDID_SPEC): New macro.
10805 (init_spec): If defined, prepend it between LINK_EH_SPEC and
10806 link_spec.
10807 * doc/install.texi: Document --enable-linker-build-id option.
10808 * configure: Rebuild.
10809 * config.in: Rebuild.
10810
ba6adec4
AN
108112009-04-30 Adam Nemet <anemet@caviumnetworks.com>
10812
10813 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
10814 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
10815 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
10816 MIPS_GP_SAVE_AREA_SIZE.
10817 * config/mips/mips.c (struct mips_frame_info): Update comment
10818 before arg_pointer_offset and hard_frame_pointer_offset.
10819 (mips_compute_frame_info): Update diagram before function: to
10820 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
10821 indicate the position of frame_pointer_rtx with -fstack-protector and
10822 to show args_size. Don't allocate cprestore area for leaf functions
10823 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
10824 cprestore_size.
10825 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
10826
48f5b722
MM
108272009-04-30 Michael Matz <matz@suse.de>
10828
ba6adec4
AN
10829 PR tree-optimization/39955
10830 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 10831
b65d6744
DK
108322009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
10833
10834 * ira.c (setup_cover_and_important_classes): Use safe macro
10835 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
10836 directly.
10837 * genpreds.c (write_tm_preds_h): Output suitable definition of
10838 REG_CLASS_FOR_CONSTRAINT.
10839
f136c8ae
RAE
108402009-04-30 Rafael Avila de Espindola <espindola@google.com>
10841
10842 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
10843 instead of an int.
10844 * bitmap.c (bitmap_descriptor): Likewise.
10845 * ggc-common.c (loc_descriptor): Likewise.
10846 * varray.c (varray_descriptor): Likewise.
10847 * vec.c (vec_descriptor): Likewise.
10848
43fcece8 108492009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
10850
10851 * Makefile.in (dce.o): Add $(EXCEPT_H).
10852 * dce.c: Include except.h and delete redundant vector definitions.
10853 (deletable_insn_p): Return false for non-call insns that can throw
10854 if DF is running.
10855
df35c271
SB
108562009-04-30 Steven Bosscher <steven@gcc.gnu.org>
10857
10858 * gcse.c (ae_gen): Remove.
10859 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
10860 and make non-static function to make it available in store-motion.c.
10861 Update call sites with search-and-replace.
10862 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
10863 extract_mentioned_regs, extract_mentioned_regs_helper,
10864 find_moveable_store, compute_store_table, load_kills_store, find_loads,
10865 store_killed_in_insn, store_killed_after, store_killed_before,
10866 build_store_vectors, insert_insn_start_basic_block, insert-store,
10867 remove_reachable_equiv_notes, replace_store_insn, delete_store,
10868 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
10869 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
10870 * store-motion.c: ...new file. Also copy data structures from gcse.c
10871 and clean up to remove parts not used by store motion.
10872 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
10873 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
10874
f711a87a
RR
108752009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10876
10877 PR target/38571
10878 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
10879 when optimizing for size.
10880
fa5ed76e
HPN
108812009-04-30 Hans-Peter Nilsson <hp@axis.com>
10882
10883 * gcse.c (gcse_constant_p): Fix typo in last change.
10884
0acbbdb0
RAE
108852009-04-30 Rafael Avila de Espindola <espindola@google.com>
10886
10887 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
10888
82f5c05d
AK
108892009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
10890
10891 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
10892
6d8f135b
JW
108932009-04-29 James E. Wilson <wilson@codesourcery.com>
10894
10895 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
10896 CONST_HIGH_PART result.
10897
c21ca196
AS
108982009-04-29 Anatoly Sokolov <aesok@post.ru>
10899
10900 * config/avr/avr.c (initial_elimination_offset): Rename to
10901 avr_initial_elimination_offset.
10902 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
10903 change return type to bool.
10904 (avr_can_eliminate): New function.
10905 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
10906 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
10907 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 10908 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
10909 avr_initial_elimination_offset.
10910 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
10911 (avr_initial_elimination_offset): Define.
10912
2a34bece 109132009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 10914 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
10915
10916 PR rtl-optimization/39938
10917 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
10918 * cfgrtl.c: Include insn-attr.h.
10919 (rest_of_pass_free_cfg): New function.
10920 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
10921 * resource.c (init_resource_info): Remove call to df_analyze.
10922
5dc7911e
RG
109232009-04-29 Richard Guenther <rguenther@suse.de>
10924
10925 PR target/39943
10926 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
10927 allow conversion to signed integers.
10928
1fe479fd
RG
109292009-04-29 Richard Guenther <rguenther@suse.de>
10930
10931 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
10932 shifts of floating point vectors if the shift amount is
10933 a constant multiple of the element size.
10934
8e001680
AK
109352009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
10936 Michael Matz <matz@suse.de>
10937
10938 PR middle-end/39927
10939 PR bootstrap/39929
10940 * tree-outof-ssa.c (emit_partition_copy): New function.
10941 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10942 insert_part_to_rtx_on_edge): Perform the partition base var
10943 copy using emit_partition_copy.
10944 (insert_value_copy_on_edge): Convert constants to the right mode.
10945 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
10946 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
10947
e50e3081
BS
109482009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
10949
10950 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
10951 scan backwards to try to find a constant to initialize it.
10952
4e5d521b
BS
10953 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
10954 insn before the loop_end instruction, don't look past labels.
10955
7c90021d
RG
109562009-04-29 Richard Guenther <rguenther@suse.de>
10957
10958 PR middle-end/39937
10959 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
10960 loose type conversions.
10961 (forward_propagate_addr_expr): Fix tuplification bug. Remove
10962 stmts only if there are no uses of its definition.
10963
97a988bc
BS
109642009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
10965
10966 * config/bfin/bfin.h (splitting_loops): Declare.
10967 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
10968 Reorder bit definitions to be ascending.
10969 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
10970 * config/bfin/bfin.c (splitting_loops): New variable.
10971 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
10972 (struct loop_info): Remove members INIT and LOOP_INIT.
10973 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
10974 the LSETUP sequence. Allow LC to be loaded from any register, but
10975 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
10976 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
10977 set to 1.
10978 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
10979 of reload_completed.
aa016ff7 10980
97a988bc
BS
10981 From Jie Zhang:
10982 * config/bfin/bfin.md (movsi_insn): Refine constraints.
10983
0c463e16
RAE
109842009-04-29 Rafael Avila de Espindola <espindola@google.com>
10985
10986 * Makefile.in (PLUGIN_VERSION_H): New.
10987 (OBJS-common): Remove plugin-version.o.
10988 (plugin.o): Depend on (PLUGIN_VERSION_H).
10989 (plugin-version.o): Remove.
10990 * configure: Regenerate
10991 * configure.ac: Create plugin-version.h.
10992 * gcc-plugin.h (plugin_gcc_version): Remove.
10993 (plugin_default_version_check): Change signature.
10994 * plugin-version.c: Remove.
10995 * plugin.c: Include plugin-version.h.
10996 (str_plugin_gcc_version_name): Remove.
10997 (try_init_one_plugin): Pass gcc version to plugin_init.
10998 (plugin_default_version_check): Both gcc and plugin versions are now
10999 arguments.
11000
307e7eab
BS
110012009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
11002
11003 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
11004 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
11005 Remove special case testing for last insn of inner loops. Don't fail
11006 if the loop ends with a jump, emit an extra nop instead.
307e7eab 11007
c5d96723
BS
11008 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
11009 DREGS rather than comparing directly. Remove code that tries to
11010 account for latencies.
11011
de0b4ad5
RG
110122009-04-29 Richard Guenther <rguenther@suse.de>
11013
11014 PR tree-optimization/39941
11015 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
11016 eliminating an indirect call.
11017
3a19701a
RG
110182009-04-29 Richard Guenther <rguenther@suse.de>
11019
11020 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
11021 parameter. Allow invariants as base if !require_lvalue.
11022 (verify_gimple_assign_single): Adjust.
11023
a0a31d1e
BS
110242009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
11025
11026 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
11027 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
11028 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
11029 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
11030 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
11031 a VEC_SELECT.
aa016ff7
UB
11032 * config/bfin/bfin.c (bfin_expand_builtin,
11033 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 11034
795bd26a
RG
110352009-04-28 Richard Guenther <rguenther@suse.de>
11036
11037 * tree-vect-loop.c (get_initial_def_for_induction): Use
11038 correct types for pointer increment.
11039
04be270f
KG
110402009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11041
11042 * toplev.c (print_version): Update GMP version string calculation.
11043
e1a3b85c
EB
110442009-04-28 Eric Botcazou <ebotcazou@adacore.com>
11045
11046 PR rtl-optimization/39938
11047 * resource.c (init_resource_info): Add call to df_analyze.
11048
8224166e
UB
110492009-04-28 Uros Bizjak <ubizjak@gmail.com>
11050
11051 * config/alpha/alpha.md (usegp): Cast the result of
11052 alpha_find_lo_sum_using_gp to enum attr_usegp.
11053 * config/alpha/alpha.c (override_options): Remove end-of-structure
11054 marker element from cpu_table. Use array size of cpu_table to handle
11055 -mcpu and -mtune options.
11056 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
11057
c5f0fe67
JM
110582009-04-28 Joseph Myers <joseph@codesourcery.com>
11059
11060 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
11061 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
11062 tune_32 and tune_64.
11063 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
11064 support on PowerPC.
11065 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
11066 * config/rs6000/option-defaults.h: ... here. New file.
11067 (OPT_64, OPT_32): Define.
11068 (MASK_64BIT): Define to 0 if not already defined.
11069 (OPT_ARCH64, OPT_ARCH32): Define.
11070 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
11071 and tune_64.
11072
0c48a567
RR
110732009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11074
11075 * config/arm/arm.c (arm_override_options): Emit error on using
11076 fpa with AAPCS.
11077
f1028b9d
UB
110782009-04-28 Uros Bizjak <ubizjak@gmail.com>
11079
11080 PR rtl-optimization/39914
11081 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
11082 registers for allocnos created from user-defined variables only
11083 when not optimizing.
11084
e0dd989a
RG
110852009-04-28 Richard Guenther <rguenther@suse.de>
11086
11087 PR middle-end/39937
11088 * fold-const.c (fold_binary): Use distribute_real_division only
11089 on float types.
11090
9a17c91d
SE
110912009-04-28 Steve Ellcey <sje@cup.hp.com>
11092
11093 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
11094 add hpux-stdint.h to tm_file.
11095 (hppa[12]*-*-hpux11*): Ditto.
11096 (ia64*-*-hpux*): Ditto.
11097 * config/hpux-stdint.h: New.
60839f5d 11098 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 11099 __STDC_EXT__ for all compiles.
60839f5d
EB
11100 * config/pa/pa-hpux.h: Ditto.
11101 * config/pa/pa-hpux10.h: Ditto.
11102 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 11103
af04e659
CM
111042009-04-28 Catherine Moore <clm@codesourcery.com>
11105
11106 * debug.h (set_name): Add comment.
11107
04ef80ce
AP
111082009-04-28 Andrew Pinski <pinskia@gmail.com>
11109
11110 PR target/39929
11111 * config/darwin.c (machopic_gen_offset): Check
11112 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
11113 * config/arm/arm.c (require_pic_register): Likewise.
11114
65ad77af
PB
111152009-04-28 Paolo Bonzini <bonzini@gnu.org>
11116
8224166e
UB
11117 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
11118 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
11119 m32c_promote_prototypes): Delete.
65ad77af 11120
1b15a008
MM
111212009-04-28 Michael Matz <matz@suse.de>
11122
11123 PR middle-end/39922
11124 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
11125 constants.
11126
7569a6cc
RG
111272009-04-28 Richard Guenther <rguenther@suse.de>
11128
f1028b9d 11129 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 11130
ead204d9
RR
111312009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11132
11133 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
11134 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
11135 * config/arm/arm-tune.md: Regenerate.
11136
f2c45f08 111372009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 11138
f2c45f08
AM
11139 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
11140 block if there are complex incoming edges.
11141 (sel_merge_blocks): Remove useless assert.
11142 (sel_redirect_edge_and_branch): Check that edge was redirected.
11143 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
11144 (sel_find_rgns): Delete declaration.
11145 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
11146 the region when it is not a preheader.
11147
7a00d767
UB
111482009-04-28 Uros Bizjak <ubizjak@gmail.com>
11149
11150 PR c/39323
11151 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
11152
448ee662
RG
111532009-04-28 Richard Guenther <rguenther@suse.de>
11154
11155 * tree.h (SSA_NAME_VALUE): Remove.
11156 (struct tree_ssa_name): Remove value_handle member.
11157 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
11158 array for jump threading.
11159 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
11160 SSA_NAME_VALUEs.
11161 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
11162 * tree-flow.h (threadedge_initialize_values): Declare.
11163 (threadedge_finalize_values): Likewise.
11164 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
11165 (SSA_NAME_VALUE): Define.
11166 (threadedge_initialize_values): New function.
11167 (threadedge_finalize_values): Likewise.
11168 * tree-ssa-dom.c (ssa_name_values): New global variable.
11169 (SSA_NAME_VALUE): Define.
f1028b9d 11170 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 11171
8644a673
IR
111722009-04-28 Ira Rosen <irar@il.ibm.com>
11173
11174 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11175 Use REPORT_VECTORIZED_LOCATIONS instead
11176 REPORT_VECTORIZED_LOOPS.
11177 * tree-vectorizer.c (vect_verbosity_level): Make static.
11178 (vect_loop_location): Rename to vect_location.
11179 (vect_set_verbosity_level): Update comment.
11180 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
11181 and vect_location.
11182 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
11183 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
11184 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
11185 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
11186 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 11187 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7a00d767 11188 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
11189 REPORT_UNVECTORIZED_LOCATIONS.
11190 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
11191 and vect_used_in_loop and to vect_unused_in_scope and
11192 vect_used_in_scope.
11193 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
11194 (vect_verbosity_level): Remove declaration.
11195 (vect_analyze_operations): Likewise.
11196 (vect_analyze_stmt): Declare.
11197 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
11198 REPORT_UNVECTORIZED_LOCATIONS.
11199 (vect_get_loop_niters): Fix indentation.
11200 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
11201 (vect_analyze_loop_operations): New function.
11202 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
11203 vect_analyze_operations.
11204 (vect_is_simple_reduction): Use new names.
11205 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
11206 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
11207 to specify whether the data references can be a part of interleaving
11208 chain.
8644a673
IR
11209 (vect_analyze_data_ref_dependence): Use new names.
11210 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
11211 (vect_create_addr_base_for_vector_ref): Remove redundant code.
11212 * tree-vect-patterns.c (widened_name_p): Use new names.
11213 (vect_recog_dot_prod_pattern): Likewise.
11214 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
11215 (process_use, vect_mark_stmts_to_be_vectorized,
11216 vect_model_simple_cost, vect_model_store_cost,
11217 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
11218 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
11219 vectorizable_operation, vectorizable_type_demotion,
11220 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
11221 vectorizable_condition): Likewise.
11222 (vect_analyze_operations): Split into vect_analyze_loop_operations
11223 and ...
11224 (vect_analyze_stmt): ... new function.
11225 (new_stmt_vec_info): Use new names.
11226 (vect_is_simple_use): Use new names and fix comment.
11227 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
11228 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
11229
b91322f2
UB
112302009-04-28 Uros Bizjak <ubizjak@gmail.com>
11231
11232 PR target/39911
11233 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
11234 and integer modes for x87 operands. Do not ICE for unsupported size,
11235 generate error instead. Generate error for unsupported operand types.
11236 ['z']: Do not handle HImode memory operands specially. Warning
11237 for floating-point operands. Fallthru to 'Z' for unsupported operand
11238 types. Do not ICE for unsupported size, generate error instead.
11239 (output_387_binary_op): Use %Z to output operands.
11240 (output_fp_compare): Ditto.
11241 (output_387_reg_move): Ditto.
11242
b2ed71b6
BE
112432009-04-28 Ben Elliston <bje@au.ibm.com>
11244
11245 PR c++/35652
11246 Revert:
11247
11248 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11249
11250 * builtins.c (c_strlen): Do not warn here.
11251 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
11252 * c-common.c (pointer_int_sum): Take an explicit location.
11253 Warn about offsets out of bounds.
11254 * c-common.h (pointer_int_sum): Adjust declaration.
11255
81f40b79
ILT
112562009-04-27 Ian Lance Taylor <iant@google.com>
11257
11258 * collect2.c (is_ctor_dtor): Change type of ret field in struct
11259 names to symkind.
11260 * dce.c (run_fast_df_dce): Change type of old_flags to int.
11261 * df-core.c (df_set_flags): Change return type to int. Change
11262 type of old_flags to int.
11263 (df_clear_flags): Likewise.
11264 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
11265 (df_get_conditional_uses): Likewise.
11266 * df.h (df_set_flags, df_clear_flags): Update declarations.
11267 * dwarf2out.c (struct indirect_string_node): Change type of form
11268 field to enum dwarf_form.
11269 (AT_string_form): Change return type to enum dwarf_form.
11270 * fixed-value.c (fixed_compare): Add cast to enum type.
11271 * fwprop.c (update_df): Change 0 to VOIDmode.
11272 * gensupport.c: Change 0 to UNKNOWN.
11273 * gimple.h (gimple_cond_code): Add cast to enum type.
11274 * haifa-sched.c (reemit_notes): Add cast to enum type.
11275 * hooks.c (hook_int_void_no_regs): Remove function.
11276 * hooks.h (hook_int_void_no_regs): Remove declaration.
11277 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 11278 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
11279 * real.c (real_arithmetic): Add cast to enum type.
11280 (real_compare): Likewise.
11281 * target.h (struct gcc_target): Change return type of
11282 branch_target_register_class to enum reg_class.
11283 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
11284 default_branch_target_register_class.
7a00d767 11285 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 11286 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 11287 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
11288 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
11289 cast to int.
11290 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
11291 ERROR_MARK.
11292 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
11293 vect_uninitialized_def. Change 0 to ERROR_MARK.
11294 * tree-vect-stmts.c (supportable_widening_operation): Don't
11295 initialize icode1 and icode2.
7a00d767 11296 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
11297 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
11298 and to STD_C89.
11299 (cmn_err_flag_specs): Change 0 to STD_C89.
11300 (cmn_err_char_table): Likewise.
11301 * config/arm/arm.c (get_arm_condition_code): Change type of code
11302 to enum arm_cond_code.
11303 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
11304 (IWMMXT_BUILTIN2): Likewise.
11305 (neon_builtin_type_bits): Don't define typedef.
11306 (neon_builtin_datum): Change type of bits field to int.
11307 (arm_expand_neon_args): Add cast to enum type.
11308 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
11309 TLS_MODEL_NONE.
11310 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
11311 casts to enum type.
11312 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
11313 MIPS_FP_COND_f.
11314 * config/mips/mips.md (jal_macro): Return enum constant.
11315 (single_insn): Likewise.
11316 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
11317 CODE_FOR_nothing.
11318 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11319 casts to enum type.
11320 * config/s390/s390.c (s390_tune_flags): Change type to int.
11321 (s390_arch_flags): Likewise.
7a00d767 11322 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
11323 * config/s390/s390.h (s390_tune_flags): Update declaration.
11324 (s390_arch_flags): Likewise.
11325 * config/sh/sh.c (prepare_move_operands): Compare
11326 tls_symbolic_operand result with enum constant.
11327 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
11328 (sh_expand_prologue): Add cast to enum type.
11329 (sh_expand_epilogue): Likewise.
11330 (tls_symbolic_operand): Change return type to enum tls_model.
11331 (fpscr_set_from_mem): Add cast to enum type.
11332 (legitimize_pic_address): Compare tls_symbolic_operand result with
11333 enum constant.
11334 (sh_target_reg_class): Change return type to enum reg_class.
11335 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
11336 PROCESSOR_xxx.
7a00d767
UB
11337 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
11338 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
11339 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
11340 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
11341 (delayed_branch, tls_call_delay): Likewise.
11342 (eligible_for_sibcall_delay): Likewise.
11343 (eligible_for_return_delay): Likewise.
11344 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
11345 (spu_expand_builtin_1): Likewise.
11346
11347 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
11348 for all types of conversions.
11349 (output_init_element): Issue -Wc++-compat warning if needed when
11350 initializing a bitfield with enum type.
11351 * c-parser.c (c_parser_expression): Set original_type to
11352 original_type of right hand operand of comman operator.
11353
e4ae5e77
RW
113542009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11355
11356 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
11357 grammar nits.
7a00d767 11358 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
11359 * doc/cpp.texi (Standard Predefined Macros)
11360 (Implementation-defined behavior): Likewise.
7a00d767 11361 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
11362 * doc/gimple.texi (GIMPLE Exception Handling)
11363 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 11364 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
11365 * doc/invoke.texi (Warning Options, Optimize Options)
11366 (AVR Options, Darwin Options): Likewise.
11367 (Optimize Options): Reformulate -fwhole-program description.
11368 * doc/loop.texi (Lambda): Likewise.
11369 * doc/md.texi (Output Template, Define Constraints)
11370 (Standard Names, Insn Splitting): Likewise.
11371 * doc/options.texi (Option properties): Likewise.
11372 * doc/passes.texi (Tree-SSA passes): Likewise.
11373 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
11374 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
11375 (File Names and DBX): Likewise.
11376 * doc/trouble.texi (Incompatibilities): Likewise.
11377
1883802f 113782009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
11379
11380 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
11381 instruction is correct.
11382
1883802f 113832009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
11384
11385 Allow non-constant arguments to conversion intrinsics.
11386 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
11387 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
11388 * spu.c (print_operand): Handle 'v' and 'w'.
11389 (exp2_immediate_p, spu_gen_exp2): Define.
11390 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
11391 spu_convtf_1): Update parameter descriptions.
7a00d767 11392 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
11393 * constraints.md ('v', 'w'): New.
11394 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
11395 Remove.
11396 (i2f, I2F): New define_mode_attr.
11397 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
11398 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
11399 fixuns_truncv4sfv4si2): Update to use mode attribute.
11400 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
11401 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
11402 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
11403 patterns for combine.
11404
5f39ad47
SB
114052009-04-27 Steven Bosscher <steven@gcc.gnu.org>
11406
11407 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
11408 (cprop, hoist, pre, store_motion): New debug counters.
11409 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
11410 is not an RTL pass anymore.
11411 (pass_profiling): Remove extern decl for pass removed in 2005.
11412 (pass_gcse, pass_jump_bypass): Remove.
11413 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
11414 to 0 for clean state.
11415 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
11416 * cse.c (gate_handle_cse_after_global_opts,
11417 rest_of_handle_cse_after_global_opts): New functions.
11418 (pass_cse_after_global_opts): New pass, does local CSE.
11419 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
11420 (TV_CPROP): New timevar.
11421 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
11422 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
11423 (gcse_main, recompute_all_luids): Remove.
11424 (compute_hash_table_work): Call max_reg_num instead of reading
11425 max_gcse_regno.
11426 (cprop_jump): Don't set run_jump_opt_after_gcse.
11427 (constprop_register): Always allow to alter jumps.
11428 (cprop_insn): Likewise.
11429 (do_local_cprop): Likewise.
11430 (local_cprop_pass): Likewise. Return non-zero if something changed.
11431 (cprop): Remove function, fold interesting bits into one_cprop_pass.
11432 (find_implicit_sets): Add note about missed optimization opportunity.
11433 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
11434 pass_rtl_cprop execute function.
11435 Don't bother tracking the pass number, each pass gets its own dumpfile
11436 now anyway.
11437 Always allow to alter jumpsand bypass jumps.
11438 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
11439 will just find no suitable set.
11440 (pre_edge_insert): Fix dumping, this function is for PRE only.
11441 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
11442 pass_rtl_pre execute function.
11443 (hoist_code): Return non-zero if something changed. Keep track of
11444 substitutions and insertions for statistics gathering similar to PRE.
11445 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
11446 called from the pass_rtl_hoist execute function. Show pass statistics.
11447 (compute_store_table): Use max_reg_num directly instead of using the
11448 formerly global max_gcse_regno.
11449 (build_store_vectors): Likewise.
11450 (replace_store_insn): Fix dumping.
11451 (store_motion): Rename to ...
11452 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
11453 pass, called from the pass_rtl_store_motion execute function. Keep
11454 track of substitutions and insertions for statistics gathering similar
11455 to PRE.
11456 (bypass_jumps): Remove, fold interesting bits into ...
11457 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
11458 from the pass_rtl_cprop execute function.
11459 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11460 pass_jump_bypass): Remove.
11461 (gate_handle_gcse, rest_of_handle_gcse): Remove.
11462 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
11463 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
11464 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
11465 (gate_rtl_store_motion, execute_rtl_store_motion,
11466 pass_rtl_store_motion): New.
11467 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
11468 make it clear that -fcse-skip-blocks is a no-op for backward compat.
11469 * passes.c (init_optimization_passes): Remove pass_gcse and
11470 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
11471 and cse_after_global_opts in place of pass_gcse. Schedule cprop
11472 instead of pass_jump_bypass.
11473
c685de4a
RG
114742009-04-27 Richard Guenther <rguenther@suse.de>
11475
11476 PR middle-end/39928
11477 * gimplify.c (gimplify_expr): If we are required to create
11478 a temporary make sure it ends up as register.
11479
72d41f29
L
114802009-04-27 H.J. Lu <hongjiu.lu@intel.com>
11481
11482 PR target/39903
11483 * config/i386/i386.c (construct_container): Don't call
11484 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
11485 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
11486
e97809c6
MM
114872009-04-27 Michael Matz <matz@suse.de>
11488
11489 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
11490 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
11491 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
11492 (dump_replaceable_exprs): Take a bitmap.
11493 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
11494 array.
11495 (expand_gimple_basic_block): Likewise.
11496 * tree-ssa-ter.c (struct temp_expr_table_d): Make
11497 replaceable_expressions member a bitmap.
11498 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
11499 (mark_replaceable): Likewise.
11500 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
11501 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
11502
211ca15c
RG
115032009-04-27 Richard Guenther <rguenther@suse.de>
11504
11505 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
11506 (verify_stmts): Dispatch to gimple/type verification code.
11507 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
11508 issue with call argument types.
11509
fca5f3d1
MM
115102009-04-27 Michael Matz <matz@suse.de>
11511
11512 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
11513 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
11514 to above.
11515
a1fa3e79 115162009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 11517 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
11518
11519 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
11520 a label's basic block.
11521 (mark_target_live_regs): Tidy and rework obsolete comments.
11522 Change back DF problem to LIVE. If a label starts a basic block,
11523 assume that all registers that used to be live then still are.
11524 (init_resource_info): If a label starts a basic block, set its
11525 BLOCK_FOR_INSN accordingly.
11526 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
11527
33b223c0
RG
115282009-04-27 Richard Guenther <rguenther@suse.de>
11529
11530 * tree-flow-inline.h (function_ann): Remove.
11531 (get_function_ann): Likewise.
11532 * tree-dfa.c (create_function_ann): Remove.
11533 * tree-flow.h (struct static_var_ann_d): Remove.
11534 (struct function_ann_d): Likewise.
11535 (union tree_ann_d): Remove fdecl member.
11536 (function_ann_t): Remove.
11537 (function_ann, get_function_ann, create_function_ann): Remove
11538 declarations.
11539
e3136fa2
UB
115402009-04-27 Uros Bizjak <ubizjak@gmail.com>
11541
11542 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
11543
f87c9042
JH
115442009-04-27 Jan Hubicka <jh@suse.cz>
11545
11546 * ipa-pure-const.c (struct funct_state_d): New fields
11547 state_previously_known, looping_previously_known; remove
11548 state_set_in_source.
11549 (analyze_function): Use new fields.
11550 (propagate): Avoid assumption that state_set_in_source imply
11551 nonlooping.
11552
11553 * tree-ssa-loop-niter.c (finite_loop_p): New function.
11554 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
11555 * cfgloop.h (finite_loop_p): Declare.
11556
33abd718
MM
115572009-04-26 Michael Matz <matz@suse.de>
11558
e3136fa2 11559 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 11560
ddc34084
MM
115612009-04-26 Michael Matz <matz@suse.de>
11562
11563 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
11564 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
11565 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
11566 pass_mark_used_blocks): Remove.
11567 * tree-optimize.c (pass_free_datastructures,
11568 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
11569 * passes.c (init_optimization_passes): Don't call
11570 pass_mark_used_blocks, remove dead code.
11571
1fec7ed4
L
115722009-04-26 H.J. Lu <hongjiu.lu@intel.com>
11573
11574 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
11575 * tree-ssa-live.h (register_ssa_partition): Likewise.
11576
4e3825db
MM
115772009-04-26 Michael Matz <matz@suse.de>
11578
11579 Expand from SSA.
11580 * builtins.c (fold_builtin_next_arg): Handle SSA names.
11581 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
11582 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
11583 SSA names.
11584 (compare_pairs): Swap cost comparison.
11585 (coalesce_ssa_name): Don't use change_partition_var.
11586 * tree-nrv.c (struct nrv_data): Add modified member.
11587 (finalize_nrv_r): Set it.
11588 (tree_nrv): Use it to update statements.
11589 (pass_nrv): Require PROP_ssa.
11590 * tree-mudflap.c (mf_decl_cache_locals,
11591 mf_build_check_statement_for): Use make_rename_temp.
11592 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
11593 * alias.c (find_base_decl): Handle SSA names.
11594 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
11595 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
11596 * rtl.h (set_reg_attrs_for_parm): Declare.
11597 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
11598 to "optimized", remove unused locals at finish.
11599 (execute_free_datastructures): Make global, call
11600 delete_tree_cfg_annotations.
11601 (execute_free_cfg_annotations): Don't call
11602 delete_tree_cfg_annotations.
11603
11604 * ssaexpand.h: New file.
11605 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 11606 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
11607 (expand_expr_real_1): Expand SSA names.
11608 * cfgexpand.c (toplevel): Include ssaexpand.h.
11609 (SA): New global variable.
11610 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
11611 (SSAVAR): New macro.
11612 (set_rtl): New helper function.
11613 (add_stack_var): Deal with SSA names, use set_rtl.
11614 (expand_one_stack_var_at): Likewise.
11615 (expand_one_stack_var): Deal with SSA names.
11616 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
11617 before unique numbers.
11618 (expand_stack_vars): Use set_rtl.
11619 (expand_one_var): Accept SSA names, add asserts for them, feed them
11620 to above subroutines.
11621 (expand_used_vars): Expand all partitions (without default defs),
11622 then only the local decls (ignoring those expanded already).
11623 (expand_gimple_cond): Remove edges when jumpif() expands an
11624 unconditional jump.
11625 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
11626 or remove abnormal edges. Ignore insns setting the LHS of a TERed
11627 SSA name.
11628 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
11629 members of SA; deal with PARM_DECL partitions here; expand
11630 all PHI nodes, free tree datastructures and SA. Commit instructions
11631 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
11632 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
11633 info and statements at start, collect garbage at finish.
11634 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
11635 (VAR_ANN_PARTITION) Remove.
11636 (change_partition_var): Don't declare.
11637 (partition_to_var): Always return SSA names.
11638 (var_to_partition): Only accept SSA names.
11639 (register_ssa_partition): Only check argument.
11640 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
11641 member.
11642 (delete_var_map): Don't free it.
11643 (var_union): Only accept SSA names, simplify.
11644 (partition_view_init): Mark only useful SSA names as used.
11645 (partition_view_fini): Only deal with SSA names.
11646 (change_partition_var): Remove.
11647 (dump_var_map): Use ssa_name instead of partition_to_var member.
11648 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
11649 basic blocks.
11650 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
11651 (struct _elim_graph): New member const_dests; nodes member vector of
11652 ints.
11653 (set_location_for_edge): New static helper.
11654 (create_temp): Remove.
11655 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 11656 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
11657 (new_elim_graph): Allocate const_dests member.
11658 (clean_elim_graph): Truncate const_dests member.
11659 (delete_elim_graph): Free const_dests member.
11660 (elim_graph_size): Adapt to new type of nodes member.
11661 (elim_graph_add_node): Likewise.
11662 (eliminate_name): Likewise.
11663 (eliminate_build): Don't take basic block argument, deal only with
11664 partition numbers, not variables.
11665 (get_temp_reg): New static helper.
11666 (elim_create): Use it, deal with RTL temporaries instead of trees.
11667 (eliminate_phi): Adjust all calls to new signature.
11668 (assign_vars, replace_use_variable, replace_def_variable): Remove.
11669 (rewrite_trees): Only do checking.
11670 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
11671 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
11672 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
11673 contains_tree_r, MAX_STMTS_IN_LATCH,
11674 process_single_block_loop_latch, analyze_edges_for_bb,
11675 perform_edge_inserts): Remove.
11676 (expand_phi_nodes): New global function.
11677 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
11678 functions, initialize new parameter, remember partitions having a
11679 default def.
11680 (finish_out_of_ssa): New global function.
11681 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
11682 don't reset in_ssa_p here, don't disable TER when mudflap.
11683 (pass_del_ssa): Remove.
11684 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
11685 partition members.
11686 (execute_free_datastructures): Declare.
11687 * Makefile.in (SSAEXPAND_H): New variable.
11688 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
11689 * basic-block.h (commit_one_edge_insertion): Declare.
11690 * passes.c (init_optimization_passes): Move pass_nrv and
11691 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
11692 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
11693 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
11694 (redirect_branch_edge): Deal with super block when expanding, split
11695 out jump patching itself into ...
11696 (patch_jump_insn): ... here, new static helper.
11697
17c665a9
MM
116982009-04-26 Michael Matz <matz@suse.de>
11699
11700 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
11701 beyond num_ssa_names.
11702 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
11703 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
11704
92061771
JJ
117052009-04-26 Jakub Jelinek <jakub@redhat.com>
11706
ce372372
JJ
11707 PR inline-asm/39543
11708 * fwprop.c (forward_propagate_asm): New function.
11709 (forward_propagate_and_simplify): Propagate also into __asm, if it
11710 doesn't increase the number of referenced registers.
11711
92061771
JJ
11712 PR c/39889
11713 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
11714
117152009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
11716
11717 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
11718 note_nonlocal_vla_type for nonlocal VLAs.
11719 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
11720 contains_remapped_vars, remap_vla_decls): New functions.
11721 (convert_nonlocal_reference_stmt): If not optimizing, call
11722 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
11723 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
11724 if it wasn't found in var_map.
11725 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
11726 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
11727 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
11728 declare_vars.
11729 * gimplify.c (nonlocal_vlas): New variable.
11730 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
11731 referenced VLAs.
11732 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 11733
4561e242
JJ
11734 * dwarf2out.c (loc_descr_plus_const): New function.
11735 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
11736 mem_loc_descriptor, loc_descriptor_from_tree_1,
11737 descr_info_loc, gen_variable_die): Use it.
11738
a9548ddf
JJ
11739 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
11740 !TREE_STATIC VAR_DECLs.
11741 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
11742 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
11743 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
11744 DECL_BY_REFERENCE is valid.
11745 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
11746 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
11747 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
11748 Copy DECL_BY_REFERENCE.
11749 (struct nesting_copy_body_data): New type.
11750 (nesting_copy_decl): New function.
11751 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
11752 if they have variable length.
11753
10555d08
MM
117542009-04-26 Michael Matz <matz@suse.de>
11755
11756 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
11757 mark new temporaries for renaming.
11758
e11187cc
JM
117592009-04-26 Joseph Myers <joseph@codesourcery.com>
11760
11761 PR c/39581
11762 * c-decl.c (global_bindings_p): Return negative value.
11763 (c_variable_size): New. Based on variable_size from
11764 stor-layout.c.
11765 (grokdeclarator): Call c_variable_size not variable_size.
11766
f6a51d31
UB
117672009-04-26 Uros Bizjak <ubizjak@gmail.com>
11768
11769 * config/i386/i386.c (print_operand) ['z']: Fix typo.
11770
4b97723d
KT
117712009-04-26 Kai Tietz <kai.tietz@onevision.com>
11772
11773 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
11774 Redefine it to just use mingw/include.
11775 (ASM_SPEC): Rules for -m32 and -m64.
11776 (LINK_SPEC): Use Likewise.
11777 (SPEC_32): New define.
11778 (SPEC_64): Likewise.
11779 (SUB_LINK_SPEC): Likewise.
11780 (MULTILIB_DEFAULTS): New define.
11781 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
11782 Add multilib options.
11783 (MULTILIB_DIRNAMES): Likewise.
11784 (MULTILIB_OSDIRNAMES): Likewise.
11785 (LIBGCC): Likewise.
11786 (INSTALL_LIBGCC): Likewise.
11787
991d6621
JM
117882009-04-26 Joseph Myers <joseph@codesourcery.com>
11789
11790 PR c/39556
11791 * c-tree.h (enum c_inline_static_type): New.
11792 (record_inline_static): Declare.
11793 * c-decl.c (struct c_inline_static, c_inline_statics,
11794 record_inline_static, check_inline_statics): New.
11795 (pop_file_scope): Call check_inline_statics.
11796 (start_decl): Call record_inline_static instead of pedwarning
11797 directly for static in inline function.
11798 * c-typeck.c (build_external_ref): Call record_inline_static
11799 instead of pedwarning directly for static referenced in inline
11800 function.
11801
4a81774c
SB
118022009-04-26 Steven Bosscher <steven@gcc.gnu.org>
11803
11804 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
11805 not new but only being rescanned.
11806 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
11807 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
11808 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
11809 record_set_info, compute_set, grealloc): Remove.
11810 (recompute_all_luids): New function.
11811 (gcse_main): Don't compute sets, and don't do related memory
11812 allocations/free-ing. If something changed before the end of the
11813 pass, update LUIDs using recompute_all_luids.
11814 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
11815 (free_gcse_mem): Don't free it either.
11816 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
11817 Use the df insn LUIDs.
11818 (load_killed_in_block): Likewise.
11819 (compute_hash_table_work): Don't compute reg_set_in_block.
11820 (compute_transp): Use DF_REG_DEF_CHAINs.
11821 (local_cprop_pass): Don't use compute_sets and related functions.
11822 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
11823 Use get_max_uid() instead of max_cuid.
11824 (insert_insn_end_basic_block, pre_insert_copy_insn,
11825 update_ld_motion_stores): Don't try to
11826 keep reg_set tables up to date.
11827 (pre_insert_copies): Use df insn LUIDs.
11828 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
11829 (reg_set_info): Don't use extra bitmap argument.
11830 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
11831 information to compute regs_set_in_block.
11832 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
11833 (bypass_jumps): Don't use compute_sets and friends.
11834
e8f99a9d
RW
118352009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11836
11837 PR testsuite/39710
11838 * opts.c (undocumented_msg): Do not leave blank even with
11839 ENABLE_CHECKING.
11840
6895bac8
JM
118412009-04-25 Joseph Myers <joseph@codesourcery.com>
11842
11843 * c-decl.c (build_enumerator): Allow values folding to integer
11844 constants but not integer constant expressions with a pedwarn if
11845 pedantic.
11846
24070fcb
JM
118472009-04-25 Joseph Myers <joseph@codesourcery.com>
11848
11849 PR c/39582
11850 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
11851 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
11852 type is an integer constant.
11853
d6d89aa1
UB
118542009-04-25 Uros Bizjak <ubizjak@gmail.com>
11855
11856 PR target/39897
11857 * config/i386/i386.c (print_operand) ['z']: Revert handling of
11858 HImode operands.
11859
92f6fd0b
JM
118602009-04-25 Joseph Myers <joseph@codesourcery.com>
11861
11862 PR c/39564
11863 * c-decl.c (grokdeclarator): Diagnose declarations of functions
11864 with variably modified return type and no storage class
11865 specifiers, except for the case of nested functions. Distinguish
11866 extern declarations of functions with variably modified return
11867 types from those of objects with variably modified types.
11868
a3710436
JH
118692009-04-25 Jan Hubicka <jh@suse.cz>
11870
11871 * tree.c (list_equal_p): New function.
11872 * tree.h (list_equal_p): Declare.
11873 * coretypes.h (edge_def, edge, const_edge, basic_block_def
11874 basic_block_def, basic_block, const_basic_block): New.
11875 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
11876 (redirect_eh_edge): New function.
11877 (make_eh_edge_update_phi): EH edges are not abnormal.
11878 * except.c: Include tree-flow.h.
11879 (list_match): New function.
11880 (eh_region_replaceable_by_p): New function.
11881 (replace_region): New function.
11882 (hash_type_list): New function.
11883 (hash_eh_region): New function.
11884 (eh_regions_equal_p): New function.
11885 (merge_peers): New function.
11886 (remove_unreachable_regions): Verify EH tree when checking;
11887 merge peers.
11888 (copy_eh_region_1): New function.
11889 (copy_eh_region): New function.
11890 (push_reachable_handler): New function.
11891 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
11892 regions without label but with live RESX.
11893 * except.h (redirect_eh_edge_to_label): New.
11894 * tree-flow.h (redirect_eh_edge): New.
11895 * coretypes.h (edge_def, edge, const_edge, basic_block_def
11896 basic_block_def, basic_block, const_basic_block): Remove.
11897 * Makefile.in (except.o): Add dependency on tree-flow.h
11898 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
11899 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
11900 Remove.
11901
3764d512
EB
119022009-04-25 Eric Botcazou <ebotcazou@adacore.com>
11903
11904 PR bootstrap/39645
11905 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
11906 on the destination of memcpy.
11907
1c62e8f2
PB
119082009-04-25 Paolo Bonzini <bonzini@gnu.org>
11909
11910 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
11911 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
11912 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
11913
496a4ef5
JH
119142009-04-25 Jan Hubicka <jh@suse.cz>
11915
11916 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
11917 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
11918 to be reached by different label than left.
11919 (update_eh_edges): Update comment; remove edge_to_remove if possible
11920 and return true if suceeded.
11921 (cleanup_empty_eh): Accept sharing map; handle shared regions.
11922 (cleanup_eh): Compute sharing map.
11923 * except.c (remove_eh_handler_and_replace): Add argument if we should
11924 update regions.
11925 (remove_unreachable_regions): Update for label sharing.
11926 (label_to_region_map): Likewise.
11927 (get_next_region_sharing_label): New function.
11928 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
11929 prev_try pointers.
11930 (remove_eh_handler): Update.
11931 (remove_eh_region_and_replace_by_outer_of): New function.
11932 * except.h (struct eh_region): Add next_region_sharing_label.
11933 (remove_eh_region_and_replace_by_outer_of,
11934 get_next_region_sharing_label): Declare.
11935 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
11936
119372009-04-25 Jan Hubicka <jh@suse.cz>
11938
11939 * tree-cfg.c (split_critical_edges): Split also edges where we can't
11940 insert code even if they are not critical.
11941
119422009-04-25 Jan Hubicka <jh@suse.cz>
11943
11944 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11945 (gimple_can_remove_branch_p): EH edges won't remove branch by
11946 redirection.
11947 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
11948 updating of non-abnormal EH edges.
11949 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11950 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
11951 (split_critical_edges): Split also edges where emitting code on them
11952 will lead to splitting later.
11953
a3a5e3d1
UB
119542009-04-25 Uros Bizjak <ubizjak@gmail.com>
11955 H.J. Lu <hongjiu.lu@intel.com>
11956
11957 PR target/39590
11958 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
11959 the configured assembler supports fildq and fistpq mnemonics.
11960 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
11961 * configure: Regenerated.
11962 * config.in: Ditto.
11963
11964 * config/i386/i386.c (print_operand): Handle 'Z'.
11965 ['z']: Remove handling of special fild/fist suffixes.
11966 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
11967 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
11968 suffix of fild insn.
11969 (*floatsi<mode>2_vector_mixed): Ditto.
11970 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
11971 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
11972 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11973 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
11974 * config/i386/gas.h (GAS_MNEMONICS): Remove.
11975
23750d7f
BE
119762009-04-25 Ben Elliston <bje@au.ibm.com>
11977
11978 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
11979 the source of a set operation.
11980
e6ff3083
AS
119812009-04-25 Anatoly Sokolov <aesok@post.ru>
11982
11983 * target.h (struct gcc_target): Add case_values_threshold field.
11984 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
11985 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
11986 * targhooks.c (default_case_values_threshold): New function.
11987 * targhooks.h (default_case_values_threshold): Declare function.
11988 * stmt.c (expand_case): Use case_values_threshold target hook.
11989 * expr.h (case_values_threshold): Remove declartation.
11990 * expr.c (case_values_threshold): Remove function.
11991 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
11992
11993 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
11994 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11995 (avr_case_values_threshold): Declare as static.
11996 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
11997
11998 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
11999 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
12000 (mn10300_case_values_threshold): New function.
12001
569c72fc
L
120022009-04-24 H.J. Lu <hongjiu.lu@intel.com>
12003
12004 * ira.c (setup_cover_and_important_classes): Add enum cast.
12005
ff3cb468
VM
120062009-04-24 Vladimir Makarov <vmakarov@redhat.com>
12007
12008 * genpreds.c (write_enum_constraint_num): Output definition of
12009 CONSTRAINT_NUM_DEFINED_P macro.
12010 * ira.c (setup_cover_and_important_classes): Use
12011 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
12012
4f7be849
DD
120132009-04-24 DJ Delorie <dj@redhat.com>
12014
12015 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
12016 __SH2A_SINGLE_ONLY__ also.
12017
735b94a7
SE
120182009-04-24 Steve Ellcey <sje@cup.hp.com>
12019
12020 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
12021 (movdf_internal): Ditto.
12022 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
12023 SFmode and DFmode constants.
12024 (ia64_print_operand): Add 'G' format for printing
12025 floating point constants.
12026
77a30264
RG
120272009-04-24 Richard Guenther <rguenther@suse.de>
12028
12029 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
12030 from unsigned additions.
12031
2b6da65c
JM
120322009-04-24 Joseph Myers <joseph@codesourcery.com>
12033
12034 * c-typeck.c (set_init_index): Allow array designators that are
12035 not integer constant expressions with a pedwarn if pedantic.
12036
f5a17c43
BS
120372009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
12038
12039 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
12040 zero if no overlap in nonzero bits between the operands.
12041
32e8bb8e
ILT
120422009-04-24 Ian Lance Taylor <iant@google.com>
12043
12044 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
12045 (record_dead_and_set_regs): Likewise.
12046 * df.h (struct df_mw_hardreg): Change flags field to int.
12047 (struct df_base_ref): Likewise.
12048 (struct df): Change changeable_flags field to int.
12049 * df-scan.c (df_defs_record): Change clobber_flags to int.
12050 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
12051 constants rather than #define macros.
12052 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
12053 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
12054 (enum dwarf_calling_convention): Likewise.
12055 (enum dwarf_line_number_x_ops): Likewise.
12056 (enum dwarf_call_frame_info): Likewise.
12057 (enum dwarf_source_language): Likewise.
12058 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
12059 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
12060 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
12061 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
12062 * genrecog.c (maybe_both_true_2): Change c to int.
12063 (write_switch): Likewise. Add cast to enum type.
12064 * gimplify.c (gimplify_omp_for): Handle return values from
12065 gimplify_expr using MIN rather than bitwise or.
12066 (gimplify_expr): Add cast to enum type.
12067 * ipa-prop.c (update_jump_functions_after_inlining): Change
12068 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
12069 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
12070 Add casts to enum type.
32e8bb8e
ILT
12071 (setup_cover_and_important_classes): Change cl to int. Add casts
12072 to enum type.
12073 (setup_class_translate): Change cl and mode to int.
12074 (ira_init_once): Change mode to int.
12075 (free_register_move_costs): Likewise.
12076 (setup_prohibited_mode_move_regs): Add casts to enum type.
12077 * langhooks.c (add_builtin_function_common): Rework assertion that
12078 value fits bitfield.
12079 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
12080 * omega.c (omega_do_elimination): Avoid math on enum types.
12081 * optabs.c (expand_vec_shift_expr): Remove casts to int.
12082 * opts.c (set_debug_level): Change 2 to enum constant. Use new
12083 int local to handle integral_argment value.
12084 * regmove.c (try_auto_increment): Change PUT_MODE to
12085 PUT_REG_NOTE_KIND.
12086 * reload.c (push_secondary_reload): Add casts to enum type.
12087 (secondary_reload_class, find_valid_class): Likewise.
12088 * reload1.c (emit_input_reload_insns): Likewise.
12089 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
12090 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
12091 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
12092 constant.
12093 * tree.c (build_common_builtin_nodes): Add casts to enum type.
12094 * tree-complex.c (complex_lattice_t): Typedef to int rather than
12095 enum type.
12096 (expand_complex_libcall): Add casts to enum type.
12097 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
12098 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
12099 with ERROR_MARK, not NUM_TREE_CODES.
12100 (vect_create_epilog_for_reduction): Likewise.
12101 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 12102 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
12103 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
12104 enum machine_mode.
12105 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
12106 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 12107 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
12108 * var-tracking.c (get_init_value): Change return type to enum
12109 var_init_status.
12110 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
12111 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
12112 arm_fp_model.
12113 (arm_override_options): Add casts to enum type.
12114 (arm_emit_tls_decoration): Likewise.
12115 * config/i386/i386.c (ix86_function_specific_restore): Add casts
12116 to enum type.
12117 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
12118 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
12119 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
12120 enum type.
12121 * config/s390/s390.c (code_for_builtin_64): Change to array of
12122 enum insn_code.
12123 (code_for_builtin_31): Likewise.
12124 (s390_expand_builtin): Change code_for_builtin to enum insn_code
12125 const *.
12126 * config/sparc/sparc.c (sparc_override_options): Change value
12127 field in struct code_model to enum cmodel. In initializer change
12128 0 to NULL and add cast to enum type.
12129
12130 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
12131 Change all callers. Issue a -Wc++-compat warning using
12132 lhs_origtype if necessary.
12133 (convert_for_assignment): Issue -Wc++-compat warnings about
12134 invalid conversions to enum type on assignment.
12135 * c-common.h (build_modify_expr): Update declaration.
12136
ac4fc08a
NC
121372009-04-24 Nick Clifton <nickc@redhat.com>
12138
12139 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
12140 (function_arg_advance): Likewise.
12141 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
12142 5th alternative.
12143
f22e891a
AK
121442009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
12145
12146 * config/s390/constraints.md ('I', 'J'): Fix condition.
12147
ad58aabe
DN
121482009-04-24 Diego Novillo <dnovillo@google.com>
12149
12150 * gengtype-parse.c (parse_error): Add newline after message.
12151
879a4a01
L
121522009-04-24 H.J. Lu <hongjiu.lu@intel.com>
12153
12154 * config/i386/sse.md (avxmodesuffixs): Removed.
12155 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
12156 (*avx_pinsr<ssevecsize>): This.
12157
f63426af
BS
121582009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
12159
12160 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
12161 follow chains of regs with a single definition, and allow expressions
12162 that are function_invariant_p.
ce72fe6c 12163 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 12164
30349c74
PB
121652009-04-24 Paolo Bonzini <bonzini@gnu.org>
12166
12167 PR middle-end/39867
12168 * fold-const.c (fold_cond_expr_with_comparison): When folding
12169 > and >= to MAX, make sure the MAX uses the same type as the
12170 comparison's operands.
12171
8d8256c1
NC
121722009-04-24 Nick Clifton <nickc@redhat.com>
12173
12174 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
12175 addressing for DImode accesses.
12176 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 12177 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 12178
6216f94e
JJ
121792009-04-24 Jakub Jelinek <jakub@redhat.com>
12180
12181 PR rtl-optimization/39794
12182 * alias.c (canon_true_dependence): Add x_addr argument.
12183 * rtl.h (canon_true_dependence): Adjust prototype.
12184 * cse.c (check_dependence): Adjust canon_true_dependence callers.
12185 * cselib.c (cselib_invalidate_mem): Likewise.
12186 * gcse.c (compute_transp): Likewise.
12187 * dse.c (scan_reads_nospill): Likewise.
12188 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
12189 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
12190 canon_base_addr of the group, plus optional offset.
12191 (struct group_info): Rename canon_base_mem to
12192 canon_base_addr.
12193 (get_group_info): Set canon_base_addr to canon_rtx of base, not
12194 canon_rtx of base_mem.
12195
6de7a512
PB
121962009-04-23 Paolo Bonzini <bonzini@gnu.org>
12197
12198 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12199 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
12200
4a3a2376
UW
122012009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12202
12203 * config/spu/spu-builtins.h: Delete file.
12204
12205 * config/spu/spu.h (enum spu_builtin_type): Move here from
12206 spu-builtins.h.
12207 (struct spu_builtin_description): Likewise. Add GTY marker.
12208 Do not use enum spu_function_code or enum insn_code.
12209 (spu_builtins): Add extern declaration.
12210
12211 * config/spu/spu.c: Do not include "spu-builtins.h".
12212 (enum spu_function_code, enum spu_builtin_type_index,
12213 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
12214 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
12215 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
12216 unsigned_V2DI_type_node): Move here from spu-builtins.h.
12217 (spu_builtin_types): Make static. Add GTY marker.
12218 (spu_builtins): Add extern declaration with GTY marker.
12219 Include "gt-spu.h".
12220
12221 * config/spu/spu-c.c: Do not include "spu-builtins.h".
12222 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
12223 Check programmatically whether all parameters are scalar.
12224
12225 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
12226
bbaba73f
EB
122272009-04-23 Eric Botcazou <ebotcazou@adacore.com>
12228
12229 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
12230 assignment from the constructor either if the target is volatile.
12231
ee93c1c6
DJ
122322009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
12233
12234 * config/arm/arm.md (insv): Do not share operands[0].
12235
b2f21330
NS
122362009-04-23 Nathan Sidwell <nathan@codesourcery.com>
12237
12238 * config/vxlib-tls.c (active_tls_threads): Delete.
12239 (delete_hook_installed): New.
12240 (tls_delete_hook): Don't delete the delete hook.
12241 (tls_destructor): Delete it here.
12242 (__gthread_set_specific): Adjust installing the delete hook.
12243 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
12244 __gthread_leave_tsd_dtor_context.
12245
4782dfa7
RAE
122462009-04-23 Rafael Avila de Espindola <espindola@google.com>
12247
12248 * c-format.c (gcc_tdiag_char_table): Add support for %E.
12249
bf758008
UB
122502009-04-23 Uros Bizjak <ubizjak@gmail.com>
12251
12252 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
12253 enum type.
12254 (alpha_rtx_costs): Ditto.
12255 (emit_unlikely_jump): Use add_reg_note.
12256 (emit_frame_store_1): Ditto.
12257 (alpha_expand_prologue): Ditto.
12258 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12259 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
12260
7323a100
NC
122612009-04-23 Nick Clifton <nickc@redhat.com>
12262
12263 * config/v850/v850.md (epilogue): Remove suppressed code.
12264 (return): Rename to return_simple and remove test of frame size.
12265 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
12266 to gen_return_simple.
12267
360032ba
JY
122682009-04-22 Jing Yu <jingyu@google.com>
12269
12270 PR testsuite/39781
12271 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
12272
53650abe
AP
122732009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12274
12275 PR C/31499
12276 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
12277 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
12278 value is a VECTOR_CST, the element type is the element type of the
12279 vector.
12280
89043e8a
DD
122812009-04-22 DJ Delorie <dj@redhat.com>
12282
12283 * config/m32c/m32c.h: Update GTY annotations to new syntax.
12284
023f059b
JJ
122852009-04-22 Jakub Jelinek <jakub@redhat.com>
12286
12287 * alias.c (find_base_term): Move around LO_SUM case, so that
12288 CONST falls through into PLUS/MINUS handling.
12289
2c0eba5a
JJ
12290 PR c/39855
12291 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
12292 into 0, use omit_one_operand.
12293
9a461028
BE
122942009-04-23 Ben Elliston <bje@au.ibm.com>
12295
12296 * config/rs6000/linux-unwind.h (get_regs): Remove type
12297 puns. Change the type of `pc' to an array of unsigned ints and
12298 update all users. Constify frame24.
12299
653e2568
DD
123002009-04-22 DJ Delorie <dj@redhat.com>
12301
12302 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
12303 declarations before code.
12304 (current_function_special_page_vector): Likewise.
12305 (m32c_expand_insv): Silence a warning.
12306
60839f5d 123072009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
12308
12309 * alias.c: Update GTY annotations to new syntax.
12310 * basic-block.h: Likewise.
12311 * bitmap.h: Likewise.
12312 * c-common.h: Likewise.
12313 * c-decl.c: Likewise.
12314 * c-parser.c: Likewise.
12315 * c-pragma.c: Likewise.
12316 * c-tree.h: Likewise.
12317 * cfgloop.h: Likewise.
12318 * cgraph.h: Likewise.
12319 * config/alpha/alpha.c: Likewise.
12320 * config/arm/arm.h: Likewise.
12321 * config/avr/avr.h: Likewise.
12322 * config/bfin/bfin.c: Likewise.
12323 * config/cris/cris.c: Likewise.
12324 * config/darwin.c: Likewise.
12325 * config/frv/frv.c: Likewise.
12326 * config/i386/i386.c: Likewise.
12327 * config/i386/i386.h: Likewise.
12328 * config/i386/winnt.c: Likewise.
12329 * config/ia64/ia64.h: Likewise.
12330 * config/iq2000/iq2000.c: Likewise.
12331 * config/mips/mips.c: Likewise.
12332 * config/mmix/mmix.h: Likewise.
12333 * config/pa/pa.c: Likewise.
12334 * config/pa/pa.h: Likewise.
12335 * config/rs6000/rs6000.c: Likewise.
12336 * config/s390/s390.c: Likewise.
12337 * config/sparc/sparc.c: Likewise.
12338 * config/xtensa/xtensa.c: Likewise.
12339 * cselib.h: Likewise.
12340 * dbxout.c: Likewise.
12341 * dwarf2out.c: Likewise.
12342 * except.c: Likewise.
12343 * except.h: Likewise.
12344 * fixed-value.h: Likewise.
12345 * function.c: Likewise.
12346 * function.h: Likewise.
12347 * gimple.h: Likewise.
12348 * integrate.c: Likewise.
12349 * optabs.c: Likewise.
12350 * output.h: Likewise.
12351 * real.h: Likewise.
12352 * rtl.h: Likewise.
12353 * stringpool.c: Likewise.
12354 * tree-data-ref.c: Likewise.
12355 * tree-flow.h: Likewise.
12356 * tree-scalar-evolution.c: Likewise.
12357 * tree-ssa-address.c: Likewise.
12358 * tree-ssa-alias.h: Likewise.
12359 * tree-ssa-operands.h: Likewise.
12360 * tree.c: Likewise.
12361 * tree.h: Likewise.
12362 * varasm.c: Likewise.
12363 * varray.h: Likewise.
12364 * vec.h: Likewise.
bf758008 12365 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
12366 * doc/gty.texi: Update GTY documentation to new syntax.
12367 * gengtype-lex.l: Enforce attribute-like syntax for GTY
12368 annotations on structs.
12369 * gengtype-parse.c: Likewise.
12370
a123d175
MH
123712009-04-22 Mark Heffernan <meheff@google.com>
12372
bf758008 12373 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 12374
4c7c486a
KH
123752009-04-22 Kazu Hirata <kazu@codesourcery.com>
12376
12377 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
12378 where appropriate.
12379
6e782a29
KH
123802009-04-22 Kazu Hirata <kazu@codesourcery.com>
12381
12382 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
12383 the same as a PLUS without a shift. Increase the cost of a
12384 CONST_INT in MULT.
12385
38d2336a
MLI
123862009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12387
12388 * Makefile.in: Update dependencies.
bf758008 12389 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
12390 * errors.h: Remove bogus comment about compatibility.
12391 (warning): Update declaration.
12392 * genautomata.c: Update all calls to warning.
12393 * gimple.c: Do not include errors.h. Include toplev.h.
12394 * tree-ssa-structalias.c: Do not include errors.h.
12395 * omega.c: Likewise.
12396 * tree-ssa-reassoc.c: Likewise.
12397 * config/spu/spu-c.c: Likewise.
12398 * config/spu/t-spu-elf: Update dependencies.
12399
aea4deba
RG
124002009-04-22 Richard Guenther <rguenther@suse.de>
12401
12402 PR tree-optimization/39824
12403 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
12404 make sure the types are compatible.
12405
cfc93532
MLI
124062009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12407
12408 PR c++/14875
12409 * c-common.c (c_parse_error): Take a token_flags parameter.
12410 Use token_type for the token type instead.
12411 Pass token_flags to cpp_type2name.
12412 * c-common.h (c_parse_error): Update declaration.
12413 * c-parser.c (c_parser_error): Pass 0 as token flags.
12414
8632d02a
AB
124152009-04-22 Andrey Belevantsev <abel@ispras.ru>
12416
12417 PR rtl-optimization/39580
12418 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
12419
4c33221c
UW
124202009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12421
12422 * function.c (expand_function_end): Do not emit a jump to the "naked"
12423 return label for fall-through returns.
12424 * except.c (sjlj_emit_function_exit): Always place the call to the
12425 unregister function at the location installed by expand_function_end.
12426
9925bce0
RG
124272009-04-22 Richard Guenther <rguenther@suse.de>
12428
12429 PR tree-optimization/39845
12430 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
12431 (gen_inbound_check): Likewise.
12432
24a40b35
NS
124332009-04-22 Nathan Sidwell <nathan@codesourcery.com>
12434
12435 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
12436 padding for PPC.
12437 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
12438 * config/vxlib.c (__gthread_once): Add race guard for PPC.
12439
6c34a092
PB
124402009-04-22 Paolo Bonzini <bonzini@gnu.org>
12441
12442 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
12443 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
12444 shift counts to avoid out-of-bounds array accesses.
12445
baa48dfa
PB
124462009-04-22 Paolo Bonzini <bonzini@gnu.org>
12447
12448 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
12449 (Pmode): Move above.
12450
7d83f4f5
UB
124512009-04-22 Uros Bizjak <ubizjak@gmail.com>
12452
12453 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
12454 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
12455 GET_CODE macro. Use IN_RANGE macro where appropriate.
12456 * config/alpha/alpha.h: Ditto.
12457 * config/alpha/alpha.md: Ditto.
12458 * config/alpha/constraints.md: Ditto.
12459 * config/alpha/predicates.md: Ditto.
12460
3ad606bc
PB
124612009-04-22 Paolo Bonzini <bonzini@gnu.org>
12462
12463 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
12464 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12465 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12466 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12467 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12468 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12469 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12470 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12471 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12472 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12473 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12474 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12475 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12476 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12477 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12478 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12479 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12480 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12481 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12482 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12483 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12484 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12485 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12486 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12487 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12488 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12489 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12490
3cabd6d1
LB
124912009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12492
12493 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
12494 references from comments.
12495 * cfgbuild.c: (count_basic_blocks): Delete.
12496 (find_basic_blocks_1): Delete.
12497 (find_basic_blocks): Delete.
12498 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 12499 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
12500 * except.h (finish_eh_generation): Delete.
12501 * basic-block.h (find_basic_blocks): Delete.
12502 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
12503
270d1bcd
DK
125042009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
12505
12506 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
12507 (sdbout_parms): Likewise.
12508
b757d36f
KK
125092009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
12510
12511 * config/sh/sh.c (prepare_cbranch_operands): Use
12512 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
12513 (expand_cbranchdi4): Likewise.
12514 (from_compare): Add cast to enum type.
12515 (expand_cbranchsi4): Use add_reg_note.
12516 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
12517 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
12518 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
12519 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12520 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
12521 instead of CODE_FOR_nothing.
12522 (cbranchdi4): Likewise. Fix the order of arguments for
12523 gen_rtx_fmt_ee.
12524 (push_fpscr): Use add_reg_note.
12525 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
12526 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
12527
ad41bd84
JM
125282009-04-21 Joseph Myers <joseph@codesourcery.com>
12529
12530 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
12531 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12532 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12533 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
12534 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
12535 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
12536 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
12537 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
12538 config/alpha/x-vms, config/arc/t-arc,
12539 config/arm/README-interworking, config/arm/arm-c.c,
12540 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
12541 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
12542 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
12543 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
12544 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
12545 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
12546 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
12547 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
12548 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
12549 config/cris/t-elfmulti, config/crx/t-crx,
12550 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
12551 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
12552 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
12553 config/h8300/t-h8300, config/i386/athlon.md,
12554 config/i386/darwin-libgcc.10.4.ver,
12555 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
12556 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
12557 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
12558 config/i386/t-linux64, config/i386/t-nwld,
12559 config/i386/t-rtems-i386, config/i386/t-sol2-10,
12560 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
12561 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
12562 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
12563 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
12564 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
12565 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
12566 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
12567 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
12568 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
12569 config/m68k/t-uclinux, config/mcore/t-mcore,
12570 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
12571 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
12572 config/mips/crtn.asm, config/mips/irix-crti.asm,
12573 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
12574 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
12575 config/mips/mips-fixed.md, config/mips/sb1.md,
12576 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
12577 config/mips/t-iris6, config/mips/t-isa3264,
12578 config/mips/t-libgcc-mips16, config/mips/t-linux64,
12579 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
12580 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
12581 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
12582 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
12583 config/mn10300/t-linux, config/mn10300/t-mn10300,
12584 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
12585 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
12586 config/picochip/libgccExtras/clzsi2.asm,
12587 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
12588 config/rs6000/darwin-libgcc.10.4.ver,
12589 config/rs6000/darwin-libgcc.10.5.ver,
12590 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
12591 config/rs6000/t-aix43, config/rs6000/t-aix52,
12592 config/rs6000/t-darwin, config/rs6000/t-fprules,
12593 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
12594 config/rs6000/t-lynx, config/rs6000/t-netbsd,
12595 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
12596 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
12597 config/rs6000/t-rtems, config/rs6000/t-spe,
12598 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
12599 config/score/t-score-elf, config/sh/divcost-analysis,
12600 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
12601 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
12602 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
12603 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
12604 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
12605 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
12606 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
12607 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
12608 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
12609 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
12610 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
12611 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
12612 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
12613 limitx.h, version.c, xcoff.h: Add copyright and license notices.
12614 * config/h8300/genmova.sh: Include copyright and license notices
12615 in generated output.
12616 * config/h8300/mova.md: Regenerate.
12617 * doc/install.texi2html: Include word "Copyright" in copyright
12618 notice and use name "Free Software Foundation, Inc.".
12619 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12620 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12621 ChangeLog-2007, ChangeLog-2008: Correct dates.
12622
ca80e52b
EB
126232009-04-21 Eric Botcazou <ebotcazou@adacore.com>
12624
12625 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
12626 NE_EXPR operations as well.
12627 * c-parser.c (c_parser_condition): Do not set location information on
12628 the condition.
12629 (c_parser_conditional_expression): Likewise.
12630 (c_parser_binary_expression): Set location information on operators.
12631 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
12632 TRUTH_NOT_EXPR has been folded.
12633 * fold-const.c (fold_truth_not_expr): Copy location information from
12634 the incoming expression to the outgoing one.
12635 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
12636 recursive calls on the LHS of the operator but pass that of the
12637 operator to recursive calls on the RHS of the operator. Set it
12638 on the COND_EXPR.
12639 (shortcut_cond_expr): Set the locus of the operator on the second
12640 COND_EXPR and that of the expression on the first in degenerate cases.
12641 Pass the locus of the expression to calls to shortcut_cond_r.
12642 Set the locus of the 'then' block on the associated jump, if any.
12643 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
12644 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
12645 expression to call to gimplify_boolean_expr.
12646
35091630
KT
126472009-04-21 Kai Tietz <kai.tietz@onevision.com>
12648
12649 * config.gcc: Add additional configuration for
12650 i686-w64-mingw* and x86_64-w64-mingw* triplet.
12651 * config/i386/mingw-w64.h: New mingw-w64 specific header.
12652 (CPP_SPEC): Redefine for allowing -municode option.
12653 (STARTFILE_SPEC): Likewise.
12654 * config/i386/t-mingw-w64: New.
12655 * config/i386/mingw-w64.opt: New.
12656 (municode): Add new target option.
12657 * doc/invoke.texi (municode): Add documentation for new option.
12658
0267afc4
ILT
126592009-04-21 Ian Lance Taylor <iant@google.com>
12660
12661 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12662 Correct test for number of arguments.
12663 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12664
2ba9daa7
AS
126652009-04-21 Andreas Schwab <schwab@linux-m68k.org>
12666
12667 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
12668 argument of emit_library_call.
12669
ad8a1ac0
RG
126702009-04-21 Richard Guenther <rguenther@suse.de>
12671
12672 PR middle-end/39829
12673 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
12674 inside VIEW_CONVERT_EXPRs.
12675
7156c8ab
MJ
126762009-04-21 Martin Jambor <mjambor@suse.cz>
12677
12678 * tree-switch-conversion.c (build_constructors): Split a long line.
12679 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
12680 (build_one_array): Create assigns of constants if possible, do not
12681 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
12682 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
12683 make_rename_temp. Do not call mark_symbols_for_renaming, call
12684 update_stmt.
12685 (gen_def_assigns): Do not call mark_symbols_for_renaming or
12686 find_new_referenced_vars, call update_stmt.
12687 (gen_inbound_check): Use create_tmp_var and create ssa names manually
12688 instead of calling make_rename_temp. Do not call
12689 find_new_referenced_vars or mark_symbols_for_renaming, call
12690 update_stmt.
12691
2970ccb3
RG
126922009-04-21 Richard Guenther <rguenther@suse.de>
12693
12694 PR tree-optimization/39827
7d83f4f5 12695 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
12696 (tree_ssa_phiprop): Pass the correct array size.
12697
47f402d1
UB
126982009-04-21 Uros Bizjak <ubizjak@gmail.com>
12699
12700 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
12701
1e4ae551
MLI
127022009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
12703
12704 PR 16202
12705 * c-typeck.c (lvalue_p): Move declaration ...
12706 * c-common.h (lvalue_p): ... to here.
12707 * c-common.c (candidate_equal_p): New.
12708 (add_tlist): Use it.
12709 (merge_tlist): Use it.
12710 (warn_for_collisions_1): Likewise.
12711 (warning_candidate_p): Accept more candidates.
12712 (verify_tree): A warning candidate can be an expression. Use
12713 candidate_equal_p.
12714
244609a6
BE
127152009-04-21 Ben Elliston <bje@au.ibm.com>
12716
12717 PR target/5267
12718 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
12719 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
12720 options. Remove -mcall-solaris documentation.
12721
9c650d90
MLI
127222009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12723
12724 PR c++/13358
12725 * doc/invoke.texi (-Wlong-long): Update description.
12726 * c-lex (interpret_integer): Only warn if there was no previous
12727 overflow and -Wlong-long is enabled.
12728 * c-decl.c (declspecs_add_type): Drop redundant flags.
12729 * c.opt (Wlong-long): Init to -1.
12730 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
12731 and front-end warn_long_long. Wlong-long only depends on other
12732 flags if it is uninitialized.
12733 * c-parser.c (disable_extension_diagnostics): warn_long_long is
12734 the same for CPP and FE.
12735 (restore_extension_diagnostics): Likewise.
12736
bbbbb16a
ILT
127372009-04-20 Ian Lance Taylor <iant@google.com>
12738
12739 Fix enum conversions which are invalid in C++:
47f402d1
UB
12740 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
12741 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
12742 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
12743 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 12744 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 12745 (dbxout_parms): Likewise.
47f402d1 12746 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
12747 (df_clear_flags): Likewise.
12748 * df-problems.c (df_rd_bb_local_compute_process_def): Change
12749 top_flag parameter to int.
12750 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
12751 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
12752 Remove cast.
bbbbb16a
ILT
12753 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
12754 (df_ref_create_structure, df_def_record_1): Likewise.
12755 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
12756 (df_notes_rescan): Change 0 to VOIDmode in function call.
12757 (df_get_call_refs, df_insn_refs_collect): Likewise.
12758 (df_bb_regs_collect): Likewise.
12759 (df_entry_block_defs_collect): Likewise.
12760 (df_exit_block_uses_collect): Likewise.
12761 * df.h: Update declarations.
12762 * double-int.c (double_int_divmod): Add cast to enum type.
12763 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
12764 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
12765 (based_loc_descr): Likewise.
12766 (loc_descriptor_from_tree_1): Change first_op and second_op to
12767 enum dwarf_location_atom. Add cast to enum type.
12768 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 12769 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
12770 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
12771 (do_store_flag): Likewise.
12772 * fixed-value.h (struct fixed_value): Change mode to enum
12773 machine_mode.
47f402d1 12774 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
12775 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
12776 function call.
12777 (insert_insn_decl, insert_decl, insert_state): Likewise.
12778 (automata_list_finish): Likewise.
12779 * genrecog.c (process_define_predicate): Add cast to enum type.
12780 * gensupport.c (init_predicate_table): Add cast to enum type.
12781 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
12782 function call.
12783 (gimple_build_call_1, gimple_build_label): Likewise.
12784 (gimple_build_goto, gimple_build_asm_1): Likewise.
12785 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 12786 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
12787 (enum fallback): Rename from enum fallback_t.
12788 (fallback_t): Typedef as int.
12789 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
12790 GSI_SAME_STMT in function call.
12791 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
12792 enum type.
12793 (setup_reg_class_relations): Likewise.
47f402d1 12794 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
12795 (setup_prohibited_class_mode_regs): Add cast to enum type.
12796 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 12797 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
12798 (record_address_regs): Change i to enum reg_class.
12799 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
12800 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
12801 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
12802 (GET_MODE_2XWIDER_MODE): Likewise.
12803 (GET_CLASS_NARROWEST_MODE): Likewise.
12804 * omp-low.c (expand_omp_for): Add cast to enum type.
12805 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
12806 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
12807 * postreload.c (reload_cse_simplify_operands): Change rclass local
12808 to enum reg_class.
12809 * predict.c (combine_predictions_for_insn): Change best_predictor
12810 and predictor to enum br_predictor.
12811 (combine_predictions_for_bb): Likewise.
12812 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
12813 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 12814 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
12815 * reginfo.c (init_move_cost): Add casts to enum type.
12816 (init_reg_sets_1, init_fake_stack_mems): Likewise.
12817 * regmove.c (regclass_compatible_p): Change class0 and class1 to
12818 enum reg_class.
12819 * reload.c (find_valid_class): Add casts to enum type.
12820 (push_reload): Change 0 to NO_REGS in function call.
12821 (find_reloads): Change this_alternative to array of enum
12822 reg_class. Remove some now-unnecessary casts.
12823 (make_memloc): Change 0 to VOIDmode in function call.
12824 * reload1.c (reload): Change 0 to VOIDmode in function call.
12825 (eliminate_regs_1, elimination_effects): Likewise.
12826 (eliminate_regs_in_insn): Likewise.
12827 (emit_input_reload_insns): Add cast to enum type.
12828 (delete_output_reload): Change 0 to VOIDmode in function call.
12829 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
12830 to enum type in function call.
12831 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
12832 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 12833 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
12834 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
12835 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
12836 (dump_function): Likewise.
12837 * tree-dump.h: Update declarations.
12838 * tree-pass.h: Update declarations.
12839 * varasm.c (assemble_integer): Change mclass to enum mode_class.
12840 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
12841 enum type.
12842 (arm_rtx_costs_1): Correct parenthesization.
12843 (arm_rtx_costs): Add casts to enum type.
12844 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
12845 (vfp_emit_fstmd): Use add_rg_note.
12846 (emit_multi_reg_push, emit_sfm): Likewise.
12847 (thumb_set_frame_pointer): Likewise.
12848 (arm_expand_prologue): Likewise.
12849 (arm_regno_class): Change return type to enum reg_class.
12850 (thumb1_expand_prologue): Use add_reg_note.
12851 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
12852 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
12853 in function call.
12854 * config/arm/gentune.sh: Add cast to enum type.
12855 * config/arm/arm-tune.md: Rebuild.
12856 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
12857 (ix86_split_fp_branch, predict_jump): Likewise.
12858 (ix86_expand_multi_arg_builtin): Change sub_code from enum
12859 insn_code to enum rtx_code.
12860 (ix86_builtin_vectorized_function): Add cast to enum type.
12861 * config/i386/i386.md (truncdfsf2): Change slot to enum
12862 ix86_stack_slot.
12863 (truncxf<mode>2, isinf<mode>2): Likewise.
12864 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
12865 enum type.
12866 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
12867 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
12868 (insert_bundle_state): Change 1 to INSERT in function call.
12869 (ia64_add_bundle_selector_before): Likewise.
12870 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
12871 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
12872 (restore_stack_nonlocal): Likewise.
12873 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
12874 function call.
12875 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
12876 function call.
12877 (mips_rtx_costs): Likewise.
12878 (mips_override_options): Add casts to enum type.
12879 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
12880 in function call.
12881 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
12882 (store_reg, set_reg_plus_d): Likewise.
12883 (hppa_expand_prologue, hppa_profile_hook): Likewise.
12884 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12885 cast to enum type.
12886 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
12887 function call.
12888 (emit_unlikely_jump): Use add_reg_note.
12889 (rs6000_emit_allocate_stack): Likewise.
12890 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
12891 (output_toc): Change 1 to INSERT in function call.
12892 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
12893 (rs6000_initialize_trampoline): Likewise.
12894 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
12895 function call.
12896 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
12897 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
12898 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
12899 (save_gprs): Use add_reg_note.
12900 (s390_emit_prologue): Likewise.
47f402d1 12901 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
12902 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
12903 (sparc_fold_builtin): Add cast to enum type.
12904 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
12905 enum insn_code.
12906 (spu_expand_prologue): Use add_reg_note.
47f402d1 12907 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
12908
129092009-04-20 Ian Lance Taylor <iant@google.com>
12910
12911 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
12912 (c_parser_postfix_expression_after_primary): Get VEC for list of
12913 arguments. Get original types of arguments. Call
12914 build_function_call_vec.
12915 (cached_expr_list_1, cached_expr_list_2): New static variables.
12916 (c_parser_expr_list): Change return type to VEC *. Add
12917 p_orig_types parameter. Change all callers.
12918 (c_parser_release_expr): New static function.
12919 (c_parser_vec_to_tree_list): New static function.
12920 * c-typeck.c (build_function_call): Rewrite to build a VEC and
12921 call build_function_call_vec.
12922 (build_function_call_vec): New function, based on old
12923 build_function_call.
12924 (convert_arguments): Remove nargs and argarray parameters. Change
12925 values to a VEC. Add origtypes parameter.
47f402d1 12926 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
12927 (convert_for_assignment): Add origtype parameter. Change all
12928 callers. If warn_cxx_compat, check for conversion to an enum
12929 type when calling a function.
12930 (store_init_value): Add origtype parameter. Change all callers.
12931 (digest_init): Likewise.
12932 (struct init_node): Add origtype field.
12933 (add_pending_init): Add origtype parameter. Change all callers.
12934 (output_init_element): Likewise.
12935 (output_pending_init_elements): Pass origtype from init_node to
12936 output_init_element.
f28a61ab 12937 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
12938 output_init_element.
12939 (c_finish_return): Add origtype parameter. Change all callers.
12940 * c-common.c (sync_resolve_size): Change params to VEC *. Change
12941 caller.
12942 (sync_resolve_params): Likewise.
47f402d1 12943 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 12944 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 12945 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
12946 * c-decl.c (finish_decl): Add origtype parameter. Change all
12947 callers. Call build_function_call_vec rather than
12948 build_function_call for cleanup.
12949 * c-tree.h: Update declarations.
12950 * c-common.h: Update declarations.
12951 * stub-objc.c (objc_rewrite_function_call): Change parameter from
12952 params to first_param.
12953 * target.h (struct gcc_target): Change resolve_overloaded_builtin
12954 params parameter from tree to void *.
12955 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12956 Change arglist parameter to have type void *, and to be a pointer
12957 to a VEC.
12958 * config/rs6000/rs6000-protos.h
12959 (altivec_resolve_overloaded_builtin): Update declaration.
12960 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
12961 fnargs parameter to have type void *, and to be a pointer to a
12962 VEC. Call build_function_call_vec instead of
12963 build_function_call.
47f402d1 12964 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 12965
6ff078d4 129662009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 12967 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
12968 H.J. Lu <hongjiu.lu@intel.com>
12969
12970 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
12971
12972 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
12973 (IX86_LEA_PRIORITY): Likewise.
12974 (distance_non_agu_define): New function.
12975 (distance_agu_use): Likewise.
12976 (ix86_lea_for_add_ok): Likewise.
12977 (ix86_dep_by_shift_count): Likewise.
12978
12979 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
12980 should split for LEA.
12981
12982 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
12983 function.
12984 (ix86_dep_by_shift_count): Likewise.
12985
87a5b4cc
RG
129862009-04-20 Richard Guenther <rguenther@suse.de>
12987
12988 * expr.c (handled_component_p): Move ...
12989 * tree.h (handled_component_p): ... here.
12990 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
12991 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
12992 and REALPART_EXPR to be in one group.
12993
438c239d
RG
129942009-04-20 Richard Guenther <rguenther@suse.de>
12995
12996 * basic-block.h (get_all_dominated_blocks): Declare.
12997 * dominance.c (get_all_dominated_blocks): New function.
12998 * tree-cfg.c (get_all_dominated_blocks): Remove.
12999 (remove_edge_and_dominated_blocks): Adjust.
13000 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
13001 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
13002 instead of recursing.
13003
fed5ae11
DK
130042009-04-20 Doug Kwan <dougkwan@google.com>
13005
13006 * cgraph.h (cgraph_node_ptr): New type for vector functions.
13007 (struct cgraph_node_set_def): New type.
13008 (cgraph_node_set) New type. Also declare vector functions.
13009 (struct cgraph_node_set_element_def): New type.
13010 (cgraph_node_set_element): Ditto.
13011 (cgraph_node_set_iterator): New iterator type.
13012 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
13013 cgraph_node_set_remove, dump_cgraph_node_set,
13014 debug_cgraph_node_set): New prototypes.
13015 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
13016 cgraph_node_set_size): New inlines.
13017 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
13018 including cgraph.h.
13019 (struct ipa_opt_pass): Add struct cgraph_node_set_def
13020 argument to function 'write_summary'.
13021 * ipa.c: Include ggc.h.
13022 (hash_cgraph_node_set_element,
13023 eq_cgraph_node_set_element, cgraph_node_set_new,
13024 cgraph_node_set_add, cgraph_node_set_remove,
13025 cgraph_node_set_find, dump_cgraph_node_set,
13026 debug_cgraph_node_set): New functions.
13027 * Makefile.in (ipa.o): Add dependency on GGC_H.
13028
c4551b28
IR
130292009-04-20 Ira Rosen <irar@il.ibm.com>
13030
13031 PR tree-optimization/39675
2ba9daa7 13032 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
13033 check of the return code of vect_schedule_slp. Check that
13034 stmt_vec_info still exists for the statement, before checking its
13035 vectorization type.
c4551b28 13036
21a495fb
MM
130372009-04-20 Michael Matz <matz@suse.de>
13038
13039 * Makefile.in (generated_files): Take out $(simple_generated_c).
13040
8e208874
DK
130412009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
13042
13043 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
13044 (UINTPTR_TYPE): Likewise.
13045
a45e580b
JM
130462009-04-19 Joseph Myers <joseph@codesourcery.com>
13047
13048 PR c/37481
13049 * c-typeck.c (digest_init): Check for initializing an array with a
13050 string literal.
13051
20845d35
JM
130522009-04-19 Joseph Myers <joseph@codesourcery.com>
13053
13054 PR c/19771
13055 * c-semantics.c (pop_stmt_list): Propagate
13056 STATEMENT_LIST_HAS_LABEL to parent statement list.
13057
28143fdd
AN
130582009-04-19 Adam Nemet <anemet@caviumnetworks.com>
13059
13060 * config/mips/mips.h (mips_tune_attr): New macro.
13061 * config/mips/mips.md (cpu): Use it.
13062
da377db9
JM
130632009-04-19 Joseph Myers <joseph@codesourcery.com>
13064
13065 PR c/38243
13066 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
13067 declaring a tag.
13068
3baf459d
DN
130692009-04-19 Diego Novillo <dnovillo@google.com>
13070
13071 * toplev.c (compile_file): Move call to coverage_finish ...
13072 * cgraphunit.c (ipa_passes): ... here.
13073 Call cgraph_process_new_functions.
13074 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
13075 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
13076
b6fa5b01
JH
130772009-04-19 Jan Hubicka <jh@suse.cz>
13078
47f402d1
UB
13079 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
13080 cfun.
b6fa5b01
JH
13081 (dump_cgraph_node): Dump can throw external flag.
13082 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
13083
ca409efd
MLI
130842009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13085
13086 PR c/32061
13087 PR c++/36954
13088 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
13089 * common.opt (Wlogical-op): Move from here...
13090 * c.opt (Wlogical-op): ... to here.
13091 * c-typeck.c (parser_build_binary_op): Update call to
13092 warn_logical_operator.
13093 * c-opts.c (c_common_post_options): Enable warn_logical_op with
13094 extra_warnings.
13095 * c-common.c (warn_logical_op): Update.
13096 * c-common.h (warn_logical_op): Update declaration.
13097
9db4cdd3
EB
130982009-04-19 Eric Botcazou <ebotcazou@adacore.com>
13099
13100 * tree.c (protected_set_expr_location): Fix formatting.
13101
f37acdf9
JM
131022009-04-18 Joseph Myers <joseph@codesourcery.com>
13103
13104 PR c/27676
13105 * c-typeck.c (readonly_warning): new.
13106 (build_unary_op, build_modify_expr): Use readonly_warning for
13107 storing into something readonly but not const-qualified.
13108
2b4b7036
JM
131092009-04-18 Joseph Myers <joseph@codesourcery.com>
13110
13111 PR c/22367
13112 * c-typeck.c (build_unary_op): Check for taking address of
13113 expression of type void.
13114
3ce62965
JM
131152009-04-18 Joseph Myers <joseph@codesourcery.com>
13116
13117 PR c/35210
13118 * c-typeck.c (build_function_call): Check for calling a function
13119 with qualified void return types. Call require_complete_type when
13120 generating a trap.
13121
2505c5ed
JH
131222009-04-18 Jan Hubicka <jh@suse.cz>
13123
13124 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
13125 Set nothrow flag.
13126 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
13127 can_throw_external flag.
13128 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
13129 * ipa-pure-const.c (ignore_edge): New function.
13130 (propagate): Compute order for NOTHROW computation; set NOTHROWs
13131 only over can_throw_external edges.
13132 (local_pure_const): Add nothrow flag.
13133 * ipa-utils.c (searchc): Add ignore_edge callback.
13134 (ipa_utils_reduced_inorder): Add ignore_edge callback.
13135 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
13136 (set_nothrow_function_flags): Update cgraph.
13137 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
13138
2586ba4b
RG
131392009-04-18 Richard Guenther <rguenther@suse.de>
13140
13141 PR middle-end/39804
13142 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
13143 (fold_stmt): ... this and ...
13144 (fold_stmt_inplace): ... this.
13145 (fold_stmt_1): Fold references in calls and asms.
13146 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
13147
1eefab17
KH
131482009-04-18 Kazu Hirata <kazu@codesourcery.com>
13149
13150 * tree-vrp.c (ssa_name_nonzero_p): Remove.
13151 * tree.h: Remove the prototype for ssa_name_nonzero_p.
13152
aa424b01
KH
131532009-04-18 Kazu Hirata <kazu@codesourcery.com>
13154
13155 * tree.c (function_args_count): Remove.
13156 * tree.h: Remove the prototype for function_args_count.
13157
613a896b
KH
131582009-04-18 Kazu Hirata <kazu@codesourcery.com>
13159
13160 * tree-iterator.c (expr_only): Remove.
13161 * tree.h: Remove the prototype for expr_only.
13162
579e694c
KH
131632009-04-18 Kazu Hirata <kazu@codesourcery.com>
13164
13165 * reginfo.c (cannot_change_mode_set_regs): Remove.
13166 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
13167
ee7e3ad3
AS
131682009-04-08 Anatoly Sokolov <aesok@post.ru>
13169
13170 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
13171 whether operands 0 and 1 overlaps.
13172
92ef7fb1
MLI
131732009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
13174
13175 PR middle-end/36902
13176 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
13177 pointer. Use warning_at instead of warning.
13178 (search_for_addr_array): Likewise.
13179 (check_array_bounds): Likewise.
13180 (check_all_array_refs): Check that the incoming edge is not in the
13181 list of edges to be removed.
13182 (check_all_array_refs): Avoid the temporal pointer.
13183 (vrp_visit_cond_stmt): Fix typo.
13184 (simplify_switch_using_ranges): Handle the case where the switch
13185 index is an integer constant.
13186
0e097268
AN
131872009-04-18 Adam Nemet <anemet@caviumnetworks.com>
13188
13189 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
13190
c782f1dd
KH
131912009-04-18 Kazu Hirata <kazu@codesourcery.com>
13192
13193 * doc/extend.texi, doc/invoke.texi: Fix typos.
13194
668fb0e8
CC
131952009-04-17 Cary Coutant <ccoutant@google.com>
13196
13197 * tree-flow-inline.h (get_lineno): Fix inverted test.
13198
4d4014c1
DN
131992009-04-17 Diego Novillo <dnovillo@google.com>
13200
13201 * tree-ssa-pre.c (create_expression_by_pieces): Remove
13202 assertion for AVAIL_OUT.
13203
2984e1b6
MF
132042009-04-17 Mike Frysinger <vapier@gentoo.org>
13205
13206 PR target/38627
13207 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
13208 * config/sh/linux-atomic.asm: Likewise.
13209
9994a182
DN
132102009-04-17 Diego Novillo <dnovillo@google.com>
13211
13212 * except.c (debug_eh_tree): New.
13213 (struct eh_region, struct eh_status): Move ...
13214 * except.h: ... here.
13215 (add_type_for_runtime): Declare extern.
13216 (lookup_type_for_runtime): Likewise.
13217 (debug_eh_tree): Declare.
13218 * Makefile.in (GTFILES): List except.h before except.c
13219
07485407
DN
132202009-04-17 Diego Novillo <dnovillo@google.com>
13221
47f402d1 13222 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
13223 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13224 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
13225 (find_vars_r): ... here.
13226 * tree-flow.h (find_referenced_vars_in): Declare.
13227 * tree-ssa-pre.c (create_expression_by_pieces): Assert
13228 that AVAIL_OUT exists for BLOCK.
13229 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
13230 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
13231 (tree-parloops.o): Likewise.
13232
4e53d196
SB
132332009-04-17 Simon Baldwin <simonb@google.com>
13234
13235 * toplev.c (default_tree_printer): Add handling for %E format.
13236
413d3aa8
DN
132372009-04-17 Diego Novillo <dnovillo@google.com>
13238
47f402d1
UB
13239 * tree-pretty-print.c (dump_generic_node): Add break after
13240 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
13241 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
13242 FUNCTION_TYPE together. Call print_struct_decl when printing
13243 structures and TDF_SLIM is not given.
413d3aa8
DN
13244 (print_struct_decl): Fix logic for detecting recursion.
13245
5a691e98
RAE
132462009-04-17 Rafael Avila de Espindola <espindola@google.com>
13247
13248 PR 31567
13249 * gcc.c (create_at_file): New.
13250 (compile_input_file_p): New.
13251 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
13252 * main.c (main): Update call to toplev_main.
13253 * toplev.c (toplev_main): Change signature. Call expandargv.
13254 * toplev.h (toplev_main): Change signature.
13255
9eacf7a6
EB
132562009-04-17 Eric Botcazou <ebotcazou@adacore.com>
13257
13258 * dwarf2out.c (field_byte_offset): Use the type size as the field size
13259 if the latter is not constant.
13260
58298177
DE
132612009-04-17 David Edelsohn <edelsohn@gnu.org>
13262
13263 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
13264
5b4c43d7
EB
132652009-04-17 Eric Botcazou <ebotcazou@adacore.com>
13266
13267 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
13268 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
13269
b51605c4
RG
132702009-04-17 Richard Guenther <rguenther@suse.de>
13271
13272 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13273 Handle component references view-converting an invariant address.
13274
9e3be889
AN
132752009-04-17 Adam Nemet <anemet@caviumnetworks.com>
13276
13277 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
13278 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
13279 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
13280 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
13281 Use @deftypevr rather than @deftypevar.
13282
7c3e9dc3
RG
132832009-04-17 Richard Guenther <rguenther@suse.de>
13284
47f402d1 13285 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
13286 (get_prop_source_stmt): Likewise.
13287 (can_propagate_from): Likewise.
13288
aca600aa
AS
132892009-04-17 Andrew Stubbs <ams@codesourcery.com>
13290
13291 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
13292 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
13293 (--with-multilib-list): Add default value.
13294 * configure: Regenerate.
13295 * Makefile.in (TM_ENDIAN_CONFIG): Define.
13296 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
13297 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
13298 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
13299 Don't add default cpu to multilib list unnecessarily, but do enable
13300 the relevant compiler option..
13301 Add support for --with-multilib-list=<blank> and
13302 --with-multilib-list=!<somelib> to supress unwanted multilibs.
13303 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
13304 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
13305 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
13306 TM_MULTILIB_CONFIG.
13307 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
13308 (MULTILIB_OSDIRNAMES): New variable.
13309 * config/sh/t-1e: Delete file.
13310 * config/sh/t-mlib-sh1: Delete file.
13311 * config/sh/t-mlib-sh2: Delete file.
13312 * config/sh/t-mlib-sh2a: Delete file.
13313 * config/sh/t-mlib-sh2a-nofpu: Delete file.
13314 * config/sh/t-mlib-sh2a-single: Delete file.
13315 * config/sh/t-mlib-sh2a-single-only: Delete file.
13316 * config/sh/t-mlib-sh2e: Delete file.
13317 * config/sh/t-mlib-sh3e: Delete file.
13318 * config/sh/t-mlib-sh4: Delete file.
13319 * config/sh/t-mlib-sh4-nofpu: Delete file.
13320 * config/sh/t-mlib-sh4-single: Delete file.
13321 * config/sh/t-mlib-sh4-single-only: Delete file.
13322 * config/sh/t-mlib-sh4a: Delete file.
13323 * config/sh/t-mlib-sh4a-nofpu: Delete file.
13324 * config/sh/t-mlib-sh4a-single: Delete file.
13325 * config/sh/t-mlib-sh4a-single-only: Delete file.
13326 * config/sh/t-mlib-sh4al: Delete file.
13327 * config/sh/t-mlib-sh5-32media: Delete file.
13328 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
13329 * config/sh/t-mlib-sh5-64media: Delete file.
13330 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
13331 * config/sh/t-mlib-sh5-compact: Delete file.
13332 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
13333 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
13334 * doc/install.texi (Options specification): Add
13335 --with-multilib-list and --with-endian.
13336
cf8aba7f
RAE
133372009-04-17 Rafael Avila de Espindola <espindola@google.com>
13338
13339 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
13340 REVISION_c.
13341 (OBJS-common): Add plugin-version.o.
13342 (plugin-version.o): New.
13343 * gcc-plugin.h (plugin_gcc_version): New.
13344 (plugin_default_version_check): New.
13345 (plugin_init_func, plugin_init): Add version argument.
13346 * plugin-version.c: New.
13347 * plugin.c (str_plugin_gcc_version_name): New.
13348 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
13349 pass it to the init function.
13350 (plugin_default_version_check): New.
13351
61e20b90
RG
133522009-04-17 Richard Guenther <rguenther@suse.de>
13353
13354 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
13355 for decl-vs-decl disambiguation.
13356
90c6fd8a
AK
133572009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
13358
13359 * config/s390/s390.h (s390_tune_attr): New macro definition.
13360 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
13361
9fe9fe04
RG
133622009-04-17 Richard Guenther <rguenther@suse.de>
13363
13364 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
13365 (fold_stmt_r): Likewise.
13366 (maybe_fold_reference): New function.
13367 (fold_gimple_assign): Handle cases fold_stmt_r did.
13368 (fold_stmt): Do not use fold_stmt_r.
13369 (fold_stmt_inplace): Likewise.
13370
7e673273
RG
133712009-04-17 Richard Guenther <rguenther@suse.de>
13372
13373 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
13374 (record_equivalences_from_stmt): Remove useless checks and
13375 simplifications.
13376 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
13377 the type is already suitable.
13378
fabf2749
PB
133792009-04-17 Paolo Bonzini <bonzini@gnu.org>
13380
13381 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
13382
68f7b061
UB
133832009-04-17 Uros Bizjak <ubizjak@gmail.com>
13384
13385 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
13386 (CMPtype): Define as __gcc_CMPtype.
13387
532bfb0a
AJ
133882009-04-17 Aurelien Jarno <aurelien@aurel32.net>
13389
13390 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
13391 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
13392
e3ac77ff
RG
133932009-04-17 Richard Guenther <rguenther@suse.de>
13394
13395 PR tree-optimization/39746
13396 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
13397 special-casing for builtins and static variable use/def.
13398 (call_may_clobber_ref_p_1): Likewise.
13399
7072a650
ILT
134002009-04-16 Ian Lance Taylor <iant@google.com>
13401
13402 * df.h: Include "timevar.h".
13403 (struct df_problem): Change tv_id field to timevar_id_t.
13404 * tree-pass.h: Include "timevar.h".
13405 (struct opt_pass): Change tv_id field to timevar_id_t.
13406 * timevar.h (timevar_id_t): Define TV_NONE.
13407 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
13408 TV_NONE rather than tv_id != 0.
13409 (execute_one_pass): Likewise.
13410 * Makefile.in (DF_H): Add $(TIMEVAR_H).
13411 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
13412 dependencies to $(TREE_PASS_H).
13413 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
13414 to TV_NONE.
13415 (pass_branch_target_load_optimize2): Likewise.
13416 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
13417 (pass_outof_cfg_layout_mode): Likewise.
13418 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
13419 (pass_rebuild_cgraph_edges): Likewise.
13420 (pass_remove_cgraph_callee_edges): Likewise.
13421 * df-core.c (pass_df_initialize_opt): Likewise.
13422 (pass_df_initialize_no_opt): Likewise.
13423 (pass_df_finish): Likewise.
13424 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
13425 * except.c (pass_set_nothrow_function_flags): Likewise.
13426 (pass_convert_to_eh_region_ranges): Likewise.
13427 * final.c (pass_compute_alignments): Likewise.
13428 * function.c (pass_instantiate_virtual_regs): Likewise.
13429 (pass_init_function): Likewise.
13430 (pass_leaf_regs): Likewise.
13431 (pass_match_asm_constraints): Likewise.
13432 * gimple-low.c (pass_lower_cf): Likewise.
13433 (pass_mark_used_blocks): Likewise.
13434 * init-regs.c (pass_initialize_regs): Likewise.
13435 * integrate.c (pass_initial_value_sets): Likewise.
13436 * ira.c (pass_ira): Likewise.
13437 * jump.c (pass_cleanup_barriers): Likewise.
13438 * omp-low.c (pass_expand_omp): Likewise.
13439 (pass_lower_omp): Likewise.
13440 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
13441 * recog.c (pass_split_all_insns): Likewise.
13442 (pass_split_after_reload): Likewise.
13443 (pass_split_before_regstack): Likewise.
13444 (pass_split_before_sched2): Likewise.
13445 (pass_split_for_shorten_branches): Likewise.
13446 * reginfo.c (pass_reginfo_init): Likewise.
13447 (pass_subregs_of_mode_init): Likewise.
13448 (pass_subregs_of_mode_finish): Likewise.
13449 * passes.c (pass_postreload): Likewise.
13450 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
13451 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
13452 (pass_warn_function_return): Likewise.
13453 (pass_warn_function_noreturn): Likewise.
13454 * tree-complex.c (pass_lower_complex): Likewise.
13455 (pass_lower_complex_O0): Likewise.
13456 * tree-if-conv.c (pass_if_conversion): Likewise.
13457 * tree-into-ssa.c (pass_build_ssa): Likewise.
13458 * tree-mudflap.c (pass_mudflap_1): Likewise.
13459 (pass_mudflap_2): Likewise.
13460 * tree-nomudflap.c (pass_mudflap_1): Likewise.
13461 (pass_mudflap_2): Likewise.
13462 * tree-nrv.c (pass_return_slot): Likewise.
13463 * tree-object-size.c (pass_object_sizes): Likewise.
13464 * tree-optimize.c (pass_all_optimizations): Likewise.
13465 (pass_early_local_passes): Likewise.
13466 (pass_all_early_optimizations): Likewise.
13467 (pass_cleanup_cfg): Likewise.
13468 (pass_cleanup_cfg_post_optimizing): Likewise.
13469 (pass_free_datastructures): Likewise.
13470 (pass_free_cfg_annotations): Likewise.
13471 (pass_fixup_cfg): Likewise.
13472 (pass_init_datastructures): Likewise.
13473 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
13474 (pass_late_warn_uninitialized): Likewise.
13475 (pass_update_address_taken): Likewise.
13476 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
13477 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
13478 (pass_cse_sincos): Likewise.
13479 (pass_convert_to_rsqrt): Likewise.
13480 * tree-ssa-structalias.c (pass_build_alias): Likewise.
13481 * tree-stdarg.c (pass_stdarg): Likewise.
13482 * tree-tailcall.c (pass_tail_recursion): Likewise.
13483 (pass_tail_calls): Likewise.
13484 * tree-vect-generic.c (pass_lower_vector): Likewise.
13485 (pass_lower_vector_ssa): Likewise.
13486 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
13487
0051ef59
JM
134882009-04-16 Joseph Myers <joseph@codesourcery.com>
13489
13490 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
13491 XLR entry.
13492 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
13493 Handle -march=xlr.
13494 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
13495 logical and signext.
13496
b3f8558a
KK
134972009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
13498
13499 PR target/39767
13500 * config/sh/predicates.md (arith_operand): Check if the operand
13501 of TRUNCATE is a REG.
13502
f57597d9
KH
135032009-04-16 Kazu Hirata <kazu@codesourcery.com>
13504
13505 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
13506 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
13507
b172d063
KH
135082009-04-16 Kazu Hirata <kazu@codesourcery.com>
13509
13510 * tree-iterator.c (tsi_split_statement_list_after,
13511 tsi_split_statement_list_before): Remove.
13512 * tree-iterator.h: Remove the prototypes for
532bfb0a 13513 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 13514
78fe4f1f
KH
135152009-04-16 Kazu Hirata <kazu@codesourcery.com>
13516
13517 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
13518 * tree-ssa-propagate.h: Remove the prototype for
13519 stmt_makes_single_load.
13520
43dd3201
KH
135212009-04-16 Kazu Hirata <kazu@codesourcery.com>
13522
13523 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
13524 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
13525
4252a4aa
KH
135262009-04-16 Kazu Hirata <kazu@codesourcery.com>
13527
13528 * tree-iterator.c (EXPR_LAST_BODY): Remove.
13529
bfb69968
KH
135302009-04-16 Kazu Hirata <kazu@codesourcery.com>
13531
13532 * except.c (eh_region_outer_p): Remove.
13533 * except.h: Remove the prototype for eh_region_outer_p.
13534
c7db7fa5
KH
135352009-04-16 Kazu Hirata <kazu@codesourcery.com>
13536
13537 * function.c (current_function_assembler_name): Remove.
13538 * function.h: Remove the prototype for
13539 current_function_assembler_name.
13540
efc0b2bd
ILT
135412009-04-16 Ian Lance Taylor <iant@google.com>
13542
532bfb0a 13543 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
13544 (add_reg_note): Call alloc_reg_note.
13545 * rtl.h (alloc_reg_note): Declare.
13546 * combine.c (try_combine): Use alloc_reg_note.
13547 (recog_for_combine, move_deaths): Likewise.
13548 (distribute_notes): Use alloc_reg_note and add_reg_note.
13549 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
13550 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
13551 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
13552
6080348f
VM
135532009-04-16 Vladimir Makarov <vmakarov@redhat.com>
13554
13555 PR rtl-optimization/39762
13556 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
13557 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 13558 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 13559
6080348f
VM
13560 * ira-conflicts.c (process_regs_for_copy): Use function
13561 ira_get_register_move_cost instead of global
13562 ira_register_move_cost.
13563
13564 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
13565 color_pass, move_spill_restore, update_curr_costs): Ditto.
13566
13567 * ira-lives.c (process_single_reg_class_operands): Ditto.
13568
13569 * ira-emit.c (emit_move_list): Ditto.
13570
13571 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
13572 (record_reg_classes): Ditto. Use functions
13573 ira_get_register_move_cost and ira_get_may_move_cost instead of
13574 global vars ira_register_move_cost, ira_may_move_out_cost and
13575 ira_may_move_in_cost.
13576 (record_address_regs): Don't call ira_init_register_move_cost.
13577 Use function ira_get_may_move_cost instead of global
13578 ira_may_move_in_cost.
13579 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 13580 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 13581 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 13582
646bea10
RG
135832009-04-16 Richard Guenther <rguenther@suse.de>
13584
13585 * tree-cfg.c (verify_gimple_assign_binary):
13586 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
13587 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
13588 (create_general_new_stmt): Note that this function is broken.
13589
02e819ff
RAE
135902009-04-16 Rafael Avila de Espindola <espindola@google.com>
13591
13592 * common.opt (fhelp): Add Var(help_flag).
13593 * gcc-plugin.h (plugin_info): Add help.
13594 * plugin.c (plugin_name_args): Add help.
13595 (register_plugin_info): Set plugin->help.
13596 (print_help_one_plugin): New.
13597 (print_plugins_help): New.
13598 * plugin.h (print_plugins_help): New.
13599 * toplev.c (toplev_main): Call print_plugins_help if needed.
13600
ccacdf06
RG
136012009-04-16 Richard Guenther <rguenther@suse.de>
13602
13603 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
13604 (gimple_ior_addresses_taken_1): New function.
13605 (gimple_ior_addresses_taken): Likewise.
13606 * gimple.h (struct gimple_statement_with_ops_base): Remove
13607 addresses_taken member.
13608 (gimple_ior_addresses_taken): Declare.
13609 (gimple_addresses_taken, gimple_addresses_taken_ptr,
13610 gimple_set_addresses_taken): Remove.
13611 * ipa-reference.c (mark_address): New function.
13612 (scan_stmt_for_static_refs): Use it for marking addresses taken.
13613 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
13614 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
13615 (gimple_add_to_addresses_taken): Remove.
13616 (get_tmr_operands): Call mark_address_taken.
13617 (get_asm_expr_operands): Likewise.
13618 (get_expr_operands): Likewise.
13619 (build_ssa_operands): Do not clear the addresses_taken bitmap.
13620 (free_stmt_operands): Do not free it.
13621 * tree-ssa.c (delete_tree_ssa): Likewise.
13622 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
13623
346ef3fa
RG
136242009-04-16 Richard Guenther <rguenther@suse.de>
13625
13626 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
13627 (walk_stmt_load_store_ops): Likewise.
13628 * gimple.c (get_base_loadstore): New function.
13629 (walk_stmt_load_store_addr_ops): Likewise.
13630 (walk_stmt_load_store_ops): Likewise.
13631 * ipa-pure-const.c (check_op): Simplify.
13632 (check_load, check_store): New functions.
13633 (check_stmt): Use walk_stmt_load_store_ops.
13634 * ipa-reference.c (mark_load): Adjust signature.
13635 (mark_store): Likewise.
13636 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
13637
44e9f006
RAE
136382009-04-16 Rafael Avila de Espindola <espindola@google.com>
13639
13640 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
13641 (plugin_info): New.
13642 * opts.c (common_handle_option): Don't call print_version.
13643 * plugin.c (plugin_name_args): Add version.
13644 (register_plugin_info): New.
13645 (register_callback): Handle PLUGIN_INFO.
13646 (try_init_one_plugin): New.
13647 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
13648 if failed to init.
13649 (finalize_one_plugin): New.
13650 (finalize_plugins): New.
13651 (print_one_plugin): New.
13652 (print_plugins_versions): New.
13653 * plugin.h (print_plugins_versions): New.
13654 (finalize_plugins): New.
13655 * toplev.c (compile_file): Don't call initialize_plugins.
13656 (print_version): Call print_plugins_versions.
13657 (toplev_main): Call initialize_plugins. Print version if needed.
13658 Call finalize_plugins.
13659
41fd0f9b
RAE
136602009-04-16 Rafael Avila de Espindola <espindola@google.com>
13661
13662 * common.opt (fversion): New.
13663 * gcc.c (print_version): New.
13664 (process_command): Don't print the version. Just set print_version.
13665 (main): Print version. Call subprocesses if print_version and
13666 verbose_flag are set.
13667 * opts.c (common_handle_option): Handle OPT_fversion.
13668
550918ca 136692009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 13670 Ira Rosen <irar@il.ibm.com>
550918ca
RG
13671
13672 PR tree-optimization/39698
13673 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
13674 type of the reduction variable. Only generate the def if
13675 it is needed.
13676
13677 * omp-low.c (expand_omp_for_generic): When converting to a pointer
13678 make sure to first convert to an integer of the same precision.
13679 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
13680 the type of the evolution correctly in computing the new
13681 induction variable base.
13682
54634841
RG
136832009-04-16 Richard Guenther <rguenther@suse.de>
13684
13685 PR middle-end/39625
13686 * tree-cfg.c (make_blocks): Split statements with to-be
13687 abnormal SSA names on the lhs.
13688
b6fc2cdb
PB
136892009-04-16 Paolo Bonzini <bonzini@gnu.org>
13690
13691 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
13692 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
13693 * c-typeck.c (really_start_incremental_init): Likewise.
13694 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
13695 (TARGET_INITIALIZER): Remove it.
13696 * target.h (struct target): Remove vector_opaque_p.
13697 * tree.c (build_opaque_vector_type): New.
13698 * tree.h (TYPE_VECTOR_OPAQUE): New.
13699 (build_opaque_vector_type): Declare.
13700 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
13701 * config/rs6000/rs6000.c (build_opaque_vector_type,
13702 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
13703 (rs6000_init_builtins): Use build_opaque_vector_type for
13704 opaque_V4SI_type_node.
13705
a417cdd9
CM
137062009-04-15 Catherine Moore <clm@codesourcery.com>
13707
532bfb0a
AJ
13708 * debug.h (set_name): Declare.
13709 * dwarf2out.c (dwarf2out_set_name): Declare.
13710 (dwarf2_debug_hooks): Add set_name.
13711 (find_AT_string): New.
13712 (add_AT_string): Call find_AT_string.
13713 (dwarf2out_set_name): New.
13714 * cp/decl.c (grokdeclarator): Call set_name.
13715 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
13716 * debug.c (do_nothing_debug_hooks): Likewise.
13717 * dbxout.c (dbx_debug_hooks): Likewise.
13718 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 13719
60839f5d 137202009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 13721
532bfb0a
AJ
13722 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
13723 reg for single-precision FPU.
13724 * config/rs6000/rs6000.md (movsi_internal1): Only for
13725 !TARGET_SINGLE_FPU.
13726 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
13727 single-precision FP regs.
13728
ada39f0b
RG
137292009-04-15 Richard Guenther <rguenther@suse.de>
13730
13731 * omp-low.c (lower_rec_input_clauses): Build correct address
13732 expressions.
13733 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 13734 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
13735 (generate_memset_zero): Fix types.
13736 * tree-profile.c (prepare_instrumented_value): Correctly
13737 widen a pointer.
13738
6866c6e8
ILT
137392009-04-15 Ian Lance Taylor <iant@google.com>
13740
13741 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
13742 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
13743 for -Wall and for -Wc++-compat.
13744 (c_common_post_options): For C++, set warn_enum_compare if not
13745 already set.
13746 * c-tree.h (struct c_expr): Add field original_type.
13747 (build_external_ref): Update declaration.
13748 * c-parser.c (c_parser_braced_init): Set original_type.
13749 (c_parser_initelt): Likewise.
13750 (c_parser_expr_no_commas): Likewise.
13751 (c_parser_conditional_expression): Likewise.
13752 (c_parser_cast_expression): Likewise.
13753 (c_parser_unary_expression): Likewise. Pull setting of
13754 original_code to top of function.
13755 (c_parser_sizeof_expression): Set original_type.
13756 (c_parser_alignof_expression): Likewise.
13757 (c_parser_postfix_expression): Likewise. Pull setting of
13758 original_code to top of function.
532bfb0a 13759 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
13760 (c_parser_postfix_expression_after_primary): Likewise.
13761 (c_parser_expression): Likewise.
13762 * c-typeck.c (build_external_ref): Add type parameter. Change all
13763 callers.
13764 (c_expr_sizeof_expr): Set original_type field.
13765 (parser_build_unary_op): Likewise.
13766 (parser_build_binary_op): Likewise. Optionally warn about
13767 comparisons of enums of different types.
13768 (digest_init): Set original_type field.
13769 (really_start_incremental_init): Likewise.
13770 (push_init_level, pop_init_level): Likewise.
13771 * doc/invoke.texi (Warning Options): -Wenum-compare now
13772 supported in C.
13773
f116fecf
RG
137742009-04-15 Richard Guenther <rguenther@suse.de>
13775
13776 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
13777 out a necessary conversion.
13778 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
13779 names we didn't value number.
13780 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
13781
25e20805
RG
137822009-04-15 Richard Guenther <rguenther@suse.de>
13783
13784 PR tree-optimization/39764
13785 * tree-ssa-ccp.c (get_value): Canonicalize value with
13786 canonicalize_float_value.
13787
90cc3676
JH
137882009-04-15 Jan Hubicka <jh@suse.cz>
13789
13790 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
13791 Wrong version of patch.
13792
6d14c006
JH
137932009-04-15 Jan Hubicka <jh@suse.cz>
13794
13795 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
13796
5afaa917
NS
137972009-04-15 Nathan Sidwell <nathan@codesourcery.com>
13798
13799 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
13800 our distinct integral and vector types.
13801
3b482fca
RAE
138022009-04-15 Rafael Avila de Espindola <espindola@google.com>
13803
13804 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
13805 * init.c (build_vtbl_address): Remove call to assemble_external.
13806
6cd1d2e2
DJ
138072009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
13808
13809 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
13810 output for other floating point modes.
13811
dab71827
DN
138122009-04-14 Diego Novillo <dnovillo@google.com>
13813
13814 * diagnostic.c (diagnostic_report_diagnostic): Do not
13815 warn about loaded plugins for DK_ERROR and DK_WARNING.
13816 * c-decl.c (declspecs_add_type): Move call to
13817 invoke_plugin_callbacks ...
13818 * c-parser.c (c_parser_declspecs): ... here.
13819 * plugin.c (dump_active_plugins): Tidy output.
13820
68a607d8
DN
138212009-04-14 Diego Novillo <dnovillo@google.com>
13822 Le-Chun Wu <lcwu@google.com>
13823
13824 * configure.ac: Add --enable-plugin support.
13825 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
13826 * Makefile.in (PLUGIN_H): Define.
13827 Export ENABLE_PLUGIN and GMPINC to site.exp.
13828 Add PLUGINLIBS to link command.
13829 Add/modify dependencies for plugin.o and files including plugin.h.
13830 (plugin.o): New.
13831 * config.in: Regenerate.
2ba9daa7 13832
68a607d8
DN
13833 * opts.c (common_handle_option): Handle OPT_fplugin_ and
13834 OPT_fplugin_arg_.
13835
138362009-04-14 Le-Chun Wu <lcwu@google.com>
13837
13838 * tree-pass.h (register_one_dump_file): Add a prototype for
13839 register_one_dump_file.
13840 * toplev.c (compile_file): Call initialize_plugins.
13841 (do_compile): Call invoke_plugin_callbacks.
13842 (toplev_main): Call invoke_plugin_callbacks.
13843 * common.opt: Add -fplugin= and -fplugin-arg-.
13844 * gcc-plugin.h: New public header file for plugins to include.
13845 * plugin.c: New source file.
13846 * plugin.h: New internal header file.
13847 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 13848
68a607d8
DN
13849 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
13850
138512009-04-14 Diego Novillo <dnovillo@google.com>
13852
13853 * doc/plugins.texi: New.
13854 * doc/gccint.texi: Add reference to Plugins chapter.
13855 * doc/invoke.texi: Document -fplugin and -fplugin-arg
13856 * diagnostic.c (diagnostic_report_diagnostic): Warn about
13857 loaded plugins, if any.
13858 * timevar.def (TV_PLUGIN_INIT): Define.
13859 (TV_PLUGIN_RUN): Define.
13860 * plugin.c: Include timevar.h
13861 (plugins_active_p): New.
13862 (dump_active_plugins): New.
13863 (debug_active_plugins): New.
13864
50617257
JM
138652009-04-14 Joseph Myers <joseph@codesourcery.com>
13866
13867 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
13868 library paths.
13869 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
13870
b32f6fff
KH
138712009-04-14 Kazu Hirata <kazu@codesourcery.com>
13872
13873 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
13874 the same as a minus without a shift.
13875
85d04fa2
NC
138762009-04-14 Nick Clifton <nickc@redhat.com>
13877
13878 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
13879 comparisons with small integers will always produce a short
13880 branch.
13881
e495a0c8
RAE
138822009-04-14 Rafael Avila de Espindola <espindola@google.com>
13883
13884 Merge:
e495a0c8
RAE
13885 2008-12-19 Diego Novillo <dnovillo@google.com>
13886
532bfb0a 13887 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 13888
ad41bd84 138892009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
13890
13891 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
13892 verification.
13893 (verify_gimple_assign_binary): Likewise. Handle shifts and
13894 rotates correctly.
13895 (verify_gimple_phi): Print the mismatched argument position.
13896 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13897 Fix types.
13898 (vect_update_init_of_dr): Likewise.
13899 * matrix-reorg.c (transform_access_sites): Do what the
13900 comment suggests.
13901 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
13902
60839f5d 139032009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
13904
13905 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
13906 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
13907 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 13908 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
13909 remove duplicate config
13910
b0e2d008
DR
139112009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
13912
13913 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
13914 file_name:line_number type locator of the call site.
2ba9daa7 13915
1244a8b7
VM
139162009-04-13 Vladimir Makarov <vmakarov@redhat.com>
13917
13918 * genautomata.c: Put blank after comma.
13919 (automaton_decls): New.
13920 (struct unit_usage): Add comments to member next.
13921 (store_alt_unit_usage): Keep the list ordered.
13922 (unit_present_on_list_p, equal_alternatives_p): New.
13923 (check_regexp_units_distribution): Check units distribution
13924 correctness correctly.
13925 (main): Don't write automata if error is found. Return correct
13926 exit code.
2ba9daa7 13927
1244a8b7
VM
13928 * config/m68k/cf.md (cfv4_ds): Remove.
13929 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
13930 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
13931
13932 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
13933 power4-load-ext, power4-store, power4-store-update,
13934 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
13935 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
13936 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
13937 power4-sqrt, power4-isync): Modify reservation to make correct
13938 unit distribution to automata.
13939
13940 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
13941 power5-store-update, power5-two, power5-three, power5-lmul,
13942 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 13943
f7dd1864
AN
139442009-04-13 Adam Nemet <anemet@caviumnetworks.com>
13945
13946 * except.c (pass_set_nothrow_function_flags): Set name and add
13947 TODO_dump_func.
13948 (set_nothrow_function_flags): Mention in the dump file when
13949 changing a function to nothrow.
13950
59a1171f
OS
139512009-04-13 Ozkan Sezer <sezeroz@gmail.com>
13952
13953 PR/39066
13954 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
13955 instead of unsigned long.
13956
934c2060
RR
139572009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13958
f7dd1864
AN
13959 * config/arm/arm.c (return_used_this_function): Remove.
13960 (arm_output_function_prologue): Remove use of
934c2060 13961 return_used_this_function.
f7dd1864 13962 (output_return_instruction): Replace use of
934c2060
RR
13963 return_used_this_function
13964 by cfun->machine->return_used_this_function.
f7dd1864
AN
13965 (arm_output_epilogue): Likewise.
13966 (arm_output_function_epilogue): Likewise.
13967 (thumb_unexpanded_epilogue): Likewise.
13968 * config/arm/arm.h (struct machine_function):
934c2060 13969 New member return_used_this_function.
f7dd1864 13970
ae5cc016
MM
139712009-04-12 Mark Mitchell <mark@codesourcery.com>
13972
13973 * doc/install.texi: Correct description of default directory for
13974 --with-gxx-include-dir.
13975
a0ce68df 139762009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
13977
13978 * fold-const.c (build_range_check): Properly deal with enumeral and
13979 boolean base types.
13980
3906a4a1
SB
139812009-04-12 Steven Bosscher <steven@gcc.gnu.org>
13982
13983 * doc/invoke.texi (max_gcse_passes): Remove documentation.
13984 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
13985 * params.h (MAX_GCSE_PASSES): Remove.
13986 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
13987 in sequence. Remove ability to run multiple passes.
13988 (bypass_jumps): Report run as third CPROP pass.
13989
efaadb93
AN
139902009-04-12 Adam Nemet <anemet@caviumnetworks.com>
13991
13992 PR middle-end/39651
13993 * except.c (can_throw_external): Look at each insn in a SEQUENCE
13994 when deciding whether the whole SEQUENCE can throw.
13995
4c48007b
UB
139962009-04-12 Uros Bizjak <ubizjak@gmail.com>
13997
13998 PR target/39740
13999 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
14000 offseted label references.
14001
b4104018
JH
140022009-04-11 Jan Hubicka <jh@suse.cz>
14003
14004 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
14005
32848948
RG
140062009-04-11 Richard Guenther <rguenther@suse.de>
14007
14008 PR middle-end/39732
14009 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
14010 return variables as TREE_ADDRESSABLE.
14011
8810712e
RG
140122009-04-11 Richard Guenther <rguenther@suse.de>
14013
14014 PR tree-optimization/39713
14015 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
14016 reference trees have SSA_NAME operands.
14017
fa78c0c1
RG
140182009-04-11 Richard Guenther <rguenther@suse.de>
14019
14020 PR c/39712
14021 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
14022 address expressions.
14023
4d722130
DK
140242009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
14025
14026 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
14027 match changes in Cygwin 1.7
14028 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
14029 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
14030
567a90f5
PB
140312009-04-10 Paolo Bonzini <bonzini@gnu.org>
14032
14033 PR tree-optimization/39701
14034 * doc/invoke.texi (Optimization Options): Document change in
14035 meaning and initialization of -fdelete-null-pointer-checks.
14036
1ad2f450
L
140372009-04-10 H.J. Lu <hongjiu.lu@intel.com>
14038
14039 PR middle-end/39701
14040 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
14041
14042 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
14043 here.
14044
14045 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
14046
1afc5373
CF
140472009-04-10 Chao-ying Fu <fu@mips.com>
14048
14049 * doc/tm.texi (Instruction Output): Document
14050 TARGET_ASM_FINAL_POSTSCAN_INSN.
14051 * target.h (final_postscan_insn): New field in asm_out.
14052 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
14053 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
14054 * final.c (final_scan_insn): Call
14055 targetm.asm_out.final_postscan_insn after outputting
14056 an asm macro and a normal instruction.
14057
14058 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
14059 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
14060 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
14061 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
14062 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
14063
4d35e75c
PB
140642009-04-10 Paolo Bonzini <bonzini@gnu.org>
14065
14066 PR middle-end/39701
1ad2f450
L
14067 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
14068 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 14069
62c49b83
L
140702009-04-10 H.J. Lu <hongjiu.lu@intel.com>
14071
14072 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
14073
80558628
L
140742009-04-09 H.J. Lu <hongjiu.lu@intel.com>
14075
14076 PR target/39678
14077 * config/i386/i386.c (classify_argument): Handle SCmode with
14078 (bit_offset % 64) != 0.
14079
8c70d28b
SL
140802009-04-09 Sandra Loosemore <sandra@codesourcery.com>
14081
14082 * doc/invoke.texi (Optimize Options): Add cross-reference to
14083 -Q --help=optimizers examples.
14084
e1ff19bf
BE
140852009-04-10 Ben Elliston <bje@au.ibm.com>
14086
14087 PR target/36800
14088 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
14089 regalign for the reg == fpr and TDmode case.
14090
52daca75
DA
140912009-04-09 David Ayers <ayers@fsfe.org>
14092
14093 PR objc/29200
14094 * objc/objc-act.c (warn_with_method): Remove helper function.
14095 (check_duplicates): Call warning and inform directly.
14096 (really_start_method): Likewise.
14097
b45f0e58
PB
140982009-04-09 Paolo Bonzini <bonzini@gnu.org>
14099
14100 * expmed.c (expand_divmod): Always use a comparison for a division
14101 by a large unsigned integer.
14102
1ad2f450
L
14103 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
14104 for things others than variables or functions as nonzero.
b45f0e58 14105
748086b7
JJ
141062009-04-09 Nick Clifton <nickc@redhat.com>
14107
14108 * unwind-compat.c: Change copyright header to refer to version
14109 3 of the GNU General Public License with version 3.1 of the
14110 GCC Runtime Library Exception and to point readers at the
7a715bba 14111 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
14112 * config/alpha/crtfastmath.c: Likewise.
14113 * config/alpha/linux-unwind.h: Likewise.
14114 * config/alpha/qrnnd.asm: Likewise.
14115 * config/alpha/vms-crt0-64.c: Likewise.
14116 * config/alpha/vms-crt0.c: Likewise.
14117 * config/alpha/vms-dwarf2.asm: Likewise.
14118 * config/alpha/vms-dwarf2eh.asm: Likewise.
14119 * config/alpha/vms-psxcrt0-64.c: Likewise.
14120 * config/alpha/vms-psxcrt0.c: Likewise.
14121 * config/alpha/vms_tramp.asm: Likewise.
14122 * config/arc/initfini.c: Likewise.
14123 * config/arc/lib1funcs.asm: Likewise.
14124 * config/arm/bpabi-v6m.S: Likewise.
14125 * config/arm/bpabi.S: Likewise.
14126 * config/arm/bpabi.c: Likewise.
14127 * config/arm/crti.asm: Likewise.
14128 * config/arm/crtn.asm: Likewise.
14129 * config/arm/ieee754-df.S: Likewise.
14130 * config/arm/ieee754-sf.S: Likewise.
14131 * config/arm/lib1funcs.asm: Likewise.
14132 * config/arm/libunwind.S: Likewise.
14133 * config/arm/linux-atomic.c: Likewise.
14134 * config/arm/mmintrin.h: Likewise.
14135 * config/arm/pr-support.c: Likewise.
14136 * config/arm/unaligned-funcs.c: Likewise.
14137 * config/arm/unwind-arm.c: Likewise.
14138 * config/arm/unwind-arm.h: Likewise.
14139 * config/avr/libgcc.S: Likewise.
14140 * config/bfin/crti.s: Likewise.
14141 * config/bfin/crtlibid.s: Likewise.
14142 * config/bfin/crtn.s: Likewise.
14143 * config/bfin/lib1funcs.asm: Likewise.
14144 * config/bfin/linux-unwind.h: Likewise.
14145 * config/cris/arit.c: Likewise.
14146 * config/cris/cris_abi_symbol.c: Likewise.
14147 * config/darwin-64.c: Likewise.
14148 * config/darwin-crt2.c: Likewise.
14149 * config/darwin-crt3.c: Likewise.
14150 * config/darwin.h: Likewise.
14151 * config/dbxelf.h: Likewise.
14152 * config/dfp-bit.c: Likewise.
14153 * config/dfp-bit.h: Likewise.
14154 * config/elfos.h: Likewise.
14155 * config/fixed-bit.c: Likewise.
14156 * config/fixed-bit.h: Likewise.
14157 * config/fp-bit.c: Likewise.
14158 * config/fp-bit.h: Likewise.
14159 * config/fr30/crti.asm: Likewise.
14160 * config/fr30/crtn.asm: Likewise.
14161 * config/fr30/lib1funcs.asm: Likewise.
14162 * config/freebsd-spec.h: Likewise.
14163 * config/frv/cmovd.c: Likewise.
14164 * config/frv/cmovh.c: Likewise.
14165 * config/frv/cmovw.c: Likewise.
14166 * config/frv/frvbegin.c: Likewise.
14167 * config/frv/frvend.c: Likewise.
14168 * config/frv/lib1funcs.asm: Likewise.
14169 * config/glibc-stdint.h: Likewise.
14170 * config/h8300/clzhi2.c: Likewise.
14171 * config/h8300/crti.asm: Likewise.
14172 * config/h8300/crtn.asm: Likewise.
14173 * config/h8300/ctzhi2.c: Likewise.
14174 * config/h8300/fixunssfsi.c: Likewise.
14175 * config/h8300/lib1funcs.asm: Likewise.
14176 * config/h8300/parityhi2.c: Likewise.
14177 * config/h8300/popcounthi2.c: Likewise.
14178 * config/i386/ammintrin.h: Likewise.
14179 * config/i386/att.h: Likewise.
14180 * config/i386/avxintrin.h: Likewise.
14181 * config/i386/biarch64.h: Likewise.
14182 * config/i386/bmmintrin.h: Likewise.
14183 * config/i386/cpuid.h: Likewise.
14184 * config/i386/cross-stdarg.h: Likewise.
14185 * config/i386/crtfastmath.c: Likewise.
14186 * config/i386/crtprec.c: Likewise.
14187 * config/i386/cygming-crtbegin.c: Likewise.
14188 * config/i386/cygming-crtend.c: Likewise.
14189 * config/i386/cygwin.asm: Likewise.
14190 * config/i386/emmintrin.h: Likewise.
14191 * config/i386/gmm_malloc.h: Likewise.
14192 * config/i386/gthr-win32.c: Likewise.
14193 * config/i386/i386.h: Likewise.
14194 * config/i386/immintrin.h: Likewise.
14195 * config/i386/linux-unwind.h: Likewise.
14196 * config/i386/linux64.h: Likewise.
14197 * config/i386/mm3dnow.h: Likewise.
14198 * config/i386/mmintrin-common.h: Likewise.
14199 * config/i386/mmintrin.h: Likewise.
14200 * config/i386/nmmintrin.h: Likewise.
14201 * config/i386/pmm_malloc.h: Likewise.
14202 * config/i386/pmmintrin.h: Likewise.
14203 * config/i386/smmintrin.h: Likewise.
14204 * config/i386/sol2-c1.asm: Likewise.
14205 * config/i386/sol2-ci.asm: Likewise.
14206 * config/i386/sol2-cn.asm: Likewise.
14207 * config/i386/sol2-gc1.asm: Likewise.
14208 * config/i386/tmmintrin.h: Likewise.
14209 * config/i386/unix.h: Likewise.
14210 * config/i386/w32-unwind.h: Likewise.
14211 * config/i386/wmmintrin.h: Likewise.
14212 * config/i386/x86-64.h: Likewise.
14213 * config/i386/x86intrin.h: Likewise.
14214 * config/i386/xmmintrin.h: Likewise.
14215 * config/ia64/crtbegin.asm: Likewise.
14216 * config/ia64/crtend.asm: Likewise.
14217 * config/ia64/crtfastmath.c: Likewise.
14218 * config/ia64/crti.asm: Likewise.
14219 * config/ia64/crtn.asm: Likewise.
14220 * config/ia64/fde-glibc.c: Likewise.
14221 * config/ia64/lib1funcs.asm: Likewise.
14222 * config/ia64/linux-unwind.h: Likewise.
14223 * config/ia64/quadlib.c: Likewise.
14224 * config/ia64/unwind-ia64.c: Likewise.
14225 * config/linux.h: Likewise.
14226 * config/m32c/m32c-lib1.S: Likewise.
14227 * config/m32c/m32c-lib2-trapv.c: Likewise.
14228 * config/m32c/m32c-lib2.c: Likewise.
14229 * config/m32r/initfini.c: Likewise.
14230 * config/m68hc11/larith.asm: Likewise.
14231 * config/m68hc11/m68hc11-crt0.S: Likewise.
14232 * config/m68k/cf.md: Likewise.
14233 * config/m68k/crti.s: Likewise.
14234 * config/m68k/crtn.s: Likewise.
14235 * config/m68k/lb1sf68.asm: Likewise.
14236 * config/m68k/linux-unwind.h: Likewise.
14237 * config/mcore/crti.asm: Likewise.
14238 * config/mcore/crtn.asm: Likewise.
14239 * config/mcore/lib1.asm: Likewise.
14240 * config/mips/linux-unwind.h: Likewise.
14241 * config/mips/loongson.h: Likewise.
14242 * config/mips/mips16.S: Likewise.
14243 * config/mmix/crti.asm: Likewise.
14244 * config/mmix/crtn.asm: Likewise.
14245 * config/pa/fptr.c: Likewise.
14246 * config/pa/hpux-unwind.h: Likewise.
14247 * config/pa/lib2funcs.asm: Likewise.
14248 * config/pa/linux-atomic.c: Likewise.
14249 * config/pa/linux-unwind.h: Likewise.
14250 * config/pa/milli64.S: Likewise.
14251 * config/pa/quadlib.c: Likewise.
14252 * config/pa/stublib.c: Likewise.
14253 * config/picochip/libgccExtras/adddi3.asm: Likewise.
14254 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
14255 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
14256 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
14257 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
14258 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
14259 * config/picochip/libgccExtras/divmod15.asm: Likewise.
14260 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
14261 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
14262 * config/picochip/libgccExtras/longjmp.asm: Likewise.
14263 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
14264 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
14265 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
14266 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
14267 * config/picochip/libgccExtras/setjmp.asm: Likewise.
14268 * config/picochip/libgccExtras/subdi3.asm: Likewise.
14269 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
14270 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
14271 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
14272 * config/rs6000/750cl.h: Likewise.
14273 * config/rs6000/altivec.h: Likewise.
14274 * config/rs6000/biarch64.h: Likewise.
14275 * config/rs6000/crtresfpr.asm: Likewise.
14276 * config/rs6000/crtresgpr.asm: Likewise.
14277 * config/rs6000/crtresxfpr.asm: Likewise.
14278 * config/rs6000/crtresxgpr.asm: Likewise.
14279 * config/rs6000/crtsavfpr.asm: Likewise.
14280 * config/rs6000/crtsavgpr.asm: Likewise.
14281 * config/rs6000/darwin-asm.h: Likewise.
14282 * config/rs6000/darwin-fallback.c: Likewise.
14283 * config/rs6000/darwin-fpsave.asm: Likewise.
14284 * config/rs6000/darwin-ldouble.c: Likewise.
14285 * config/rs6000/darwin-tramp.asm: Likewise.
14286 * config/rs6000/darwin-unwind.h: Likewise.
14287 * config/rs6000/darwin-vecsave.asm: Likewise.
14288 * config/rs6000/darwin-world.asm: Likewise.
14289 * config/rs6000/e500crtres32gpr.asm: Likewise.
14290 * config/rs6000/e500crtres64gpr.asm: Likewise.
14291 * config/rs6000/e500crtres64gprctr.asm: Likewise.
14292 * config/rs6000/e500crtrest32gpr.asm: Likewise.
14293 * config/rs6000/e500crtrest64gpr.asm: Likewise.
14294 * config/rs6000/e500crtresx32gpr.asm: Likewise.
14295 * config/rs6000/e500crtresx64gpr.asm: Likewise.
14296 * config/rs6000/e500crtsav32gpr.asm: Likewise.
14297 * config/rs6000/e500crtsav64gpr.asm: Likewise.
14298 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
14299 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
14300 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
14301 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
14302 * config/rs6000/eabi-ci.asm: Likewise.
14303 * config/rs6000/eabi-cn.asm: Likewise.
14304 * config/rs6000/eabi.asm: Likewise.
14305 * config/rs6000/linux-unwind.h: Likewise.
14306 * config/rs6000/linux64.h: Likewise.
14307 * config/rs6000/paired.h: Likewise.
14308 * config/rs6000/paired.md: Likewise.
14309 * config/rs6000/ppc64-fp.c: Likewise.
14310 * config/rs6000/ppu_intrinsics.h: Likewise.
14311 * config/rs6000/rs6000.h: Likewise.
14312 * config/rs6000/si2vmx.h: Likewise.
14313 * config/rs6000/sol-ci.asm: Likewise.
14314 * config/rs6000/sol-cn.asm: Likewise.
14315 * config/rs6000/spe.h: Likewise.
14316 * config/rs6000/spu2vmx.h: Likewise.
14317 * config/rs6000/sysv4.h: Likewise.
14318 * config/rs6000/tramp.asm: Likewise.
14319 * config/rs6000/vec_types.h: Likewise.
14320 * config/s390/linux-unwind.h: Likewise.
14321 * config/s390/tpf-unwind.h: Likewise.
14322 * config/score/crti.asm: Likewise.
14323 * config/score/crtn.asm: Likewise.
14324 * config/sh/crt1.asm: Likewise.
14325 * config/sh/crti.asm: Likewise.
14326 * config/sh/crtn.asm: Likewise.
14327 * config/sh/divtab-sh4-300.c: Likewise.
14328 * config/sh/divtab-sh4.c: Likewise.
14329 * config/sh/divtab.c: Likewise.
14330 * config/sh/lib1funcs-4-300.asm: Likewise.
14331 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
14332 * config/sh/lib1funcs.asm: Likewise.
14333 * config/sh/lib1funcs.h: Likewise.
14334 * config/sh/linux-atomic.asm: Likewise.
14335 * config/sh/linux-unwind.h: Likewise.
14336 * config/sh/shmedia.h: Likewise.
14337 * config/sh/sshmedia.h: Likewise.
14338 * config/sh/ushmedia.h: Likewise.
14339 * config/sparc/crtfastmath.c: Likewise.
14340 * config/sparc/linux-unwind.h: Likewise.
14341 * config/sparc/sol2-c1.asm: Likewise.
14342 * config/sparc/sol2-ci.asm: Likewise.
14343 * config/sparc/sol2-cn.asm: Likewise.
14344 * config/spu/divmodti4.c: Likewise.
14345 * config/spu/divv2df3.c: Likewise.
14346 * config/spu/float_disf.c: Likewise.
14347 * config/spu/float_unsdidf.c: Likewise.
14348 * config/spu/float_unsdisf.c: Likewise.
14349 * config/spu/float_unssidf.c: Likewise.
14350 * config/spu/mfc_multi_tag_release.c: Likewise.
14351 * config/spu/mfc_multi_tag_reserve.c: Likewise.
14352 * config/spu/mfc_tag_release.c: Likewise.
14353 * config/spu/mfc_tag_reserve.c: Likewise.
14354 * config/spu/mfc_tag_table.c: Likewise.
14355 * config/spu/multi3.c: Likewise.
14356 * config/spu/spu_internals.h: Likewise.
14357 * config/spu/spu_intrinsics.h: Likewise.
14358 * config/spu/spu_mfcio.h: Likewise.
14359 * config/spu/vec_types.h: Likewise.
14360 * config/spu/vmx2spu.h: Likewise.
14361 * config/stormy16/stormy16-lib2.c: Likewise.
14362 * config/svr4.h: Likewise.
14363 * config/sync.c: Likewise.
14364 * config/v850/lib1funcs.asm: Likewise.
14365 * config/vxlib-tls.c: Likewise.
14366 * config/vxlib.c: Likewise.
14367 * config/vxworks-dummy.h: Likewise.
14368 * config/xtensa/crti.asm: Likewise.
14369 * config/xtensa/crtn.asm: Likewise.
14370 * config/xtensa/ieee754-df.S: Likewise.
14371 * config/xtensa/ieee754-sf.S: Likewise.
14372 * config/xtensa/lib1funcs.asm: Likewise.
14373 * config/xtensa/lib2funcs.S: Likewise.
14374 * config/xtensa/linux-unwind.h: Likewise.
14375 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14376 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
14377 * coretypes.h: Likewise.
14378 * crtstuff.c: Likewise.
14379 * defaults.h: Likewise.
14380 * dwarf2.h: Likewise.
14381 * emutls.c: Likewise.
14382 * gbl-ctors.h: Likewise.
14383 * gcov-io.h: Likewise.
14384 * ginclude/float.h: Likewise.
14385 * ginclude/iso646.h: Likewise.
14386 * ginclude/stdarg.h: Likewise.
14387 * ginclude/stdbool.h: Likewise.
14388 * ginclude/stddef.h: Likewise.
14389 * ginclude/stdfix.h: Likewise.
14390 * ginclude/stdint-gcc.h: Likewise.
14391 * ginclude/tgmath.h: Likewise.
14392 * gthr-aix.h: Likewise.
14393 * gthr-dce.h: Likewise.
14394 * gthr-gnat.c: Likewise.
14395 * gthr-gnat.h: Likewise.
14396 * gthr-lynx.h: Likewise.
14397 * gthr-mipssde.h: Likewise.
14398 * gthr-nks.h: Likewise.
14399 * gthr-posix.c: Likewise.
14400 * gthr-posix.h: Likewise.
14401 * gthr-posix95.h: Likewise.
14402 * gthr-rtems.h: Likewise.
14403 * gthr-single.h: Likewise.
14404 * gthr-solaris.h: Likewise.
14405 * gthr-tpf.h: Likewise.
14406 * gthr-vxworks.h: Likewise.
14407 * gthr-win32.h: Likewise.
14408 * gthr.h: Likewise.
14409 * libgcc2.c: Likewise.
14410 * libgcc2.h: Likewise.
14411 * libgcov.c: Likewise.
14412 * tsystem.h: Likewise.
14413 * typeclass.h: Likewise.
14414 * unwind-c.c: Likewise.
14415 * unwind-compat.h: Likewise.
14416 * unwind-dw2-fde-compat.c: Likewise.
14417 * unwind-dw2-fde-darwin.c: Likewise.
14418 * unwind-dw2-fde-glibc.c: Likewise.
14419 * unwind-dw2-fde.c: Likewise.
14420 * unwind-dw2-fde.h: Likewise.
14421 * unwind-dw2.c: Likewise.
14422 * unwind-dw2.h: Likewise.
14423 * unwind-generic.h: Likewise.
14424 * unwind-pe.h: Likewise.
14425 * unwind-sjlj.c: Likewise.
14426 * unwind.inc: Likewise.
14427 * config/arm/neon-gen.ml: Change generated copyright header to
14428 refer to version 3 of the GNU General Public License with
14429 version 3.1 of the GCC Runtime Library Exception and to point
14430 readers at the COPYING3 and COPYING3.RUNTIME files and the
14431 FSF's license web page.
14432 * config/arm/arm_neon.h: Regenerate.
14433
144342009-04-09 Jakub Jelinek <jakub@redhat.com>
14435
14436 * config/cris/cris.md: Change copyright header to refer to version
14437 3 of the GNU General Public License.
14438 * doc/install.texi2html: Change copyright header to refer to version
14439 3 of the GNU General Public License and to point readers at the
14440 COPYING3 file and the FSF's license web page.
14441 * config/vax/linux.h: Likewise.
14442
4a77c72b
PB
144432009-04-09 Paolo Bonzini <bonzini@gnu.org>
14444
1ad2f450
L
14445 * config/i386/i386.md (cmpcc): New.
14446 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
14447 (sync_compare_and_swap_cc*): Delete.
14448
14449 * config/s390/s390.c (s390_compare_emitted): Remove.
14450 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
14451 s390_compare_emitted used to be handled. Assert that modes match.
14452 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
14453 refer to sync_compare_and_swap_ccsi.
14454 * config/s390/s390.h (s390_compare_emitted): Remove.
14455 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
14456 instead of s390_compare_emitted.
14457 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
14458 instead of s390_compare_emitted.
14459 * config/s390/s390.md (cmpcc): New.
14460 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
14461 CC_REGNUM, do not pretend it's set.
14462 (sync_compare_and_swap_cc*): Delete.
14463 * config/s390/predicates.md (cc_reg_operand): New.
14464
14465 * expr.c (sync_compare_and_swap_cc): Delete.
14466 * optabs.h (sync_compare_and_swap_cc): Delete.
14467 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
14468 is being used with can_compare_p.
14469 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
14470 (find_cc_set): New.
14471 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
14472 look for a MODE_CC set instead. Use emit_store_flag.
14473 (expand_compare_and_swap_loop): Likewise, with some additional
14474 complication to avoid a force_reg when useless. Use
14475 emit_cmp_and_jump_insns.
14476 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
14477 * doc/md.texi (sync_compare_and_swap_cc): Merge with
14478 sync_compare_and_swap documentation.
4a77c72b 14479
0c0efb33
JH
144802009-04-09 Jan Hubicka <jh@suse.cz>
14481
14482 * except.c (find_prev_try): Break out from ....
14483 (duplicate_eh_regions): ... here; properly update prev_try pointers
14484 when duplication part of tree.
14485 (dump_eh_tree): Improve dumping.
14486 (verify_eh_region): New.
14487 (verify_eh_tree): Use it.
14488
22a65a54
RG
144892009-04-06 Richard Guenther <rguenther@suse.de>
14490
14491 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
14492 &ARRAY addresses by adjusting their types and prepending
14493 a conversion.
14494 * tree-cfg.c (verify_gimple_assign_single): Verify that
14495 addresses are correct.
14496
f76968e6
RG
144972009-04-09 Richard Guenther <rguenther@suse.de>
14498
14499 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
14500 indices into an array reference if possible.
14501 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14502 Fold POINTER_PLUS_EXPR statements with invariant address.
14503
c90c5fb5
AM
145042009-04-09 Alan Modra <amodra@bigpond.net.au>
14505
14506 PR target/39634
14507 * config.gcc (powerpc64-*-linux*): Always build biarch.
14508
17cede2e
JM
145092009-04-09 Joseph Myers <joseph@codesourcery.com>
14510
14511 PR c/39613
14512 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
14513 it and pedwarn if this results in an INTEGER_CST.
14514
a3337ea2
KG
145152009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14516
14517 * doc/install.texi: Update minimum GMP version. Remove obsolete
14518 text in MPFR section.
14519
ce9ba79b
JJ
145202009-04-08 Jakub Jelinek <jakub@redhat.com>
14521
14522 * dwarf2out.c (class_scope_p): New static inline.
14523 (class_or_namespace_scope_p): Use it.
14524 (gen_variable_die): Use DW_TAG_member tag for static data member
14525 declarations instead of DW_TAG_variable.
14526
4f0ae266
JJ
14527 PR middle-end/39573
14528 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
14529 variables.
14530
d27f0ddc
RG
145312009-04-08 Richard Guenther <rguenther@suse.de>
14532
14533 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
14534 valueize random data.
14535
557cc596
DE
145362009-04-08 David Edelsohn <edelsohn@gnu.org>
14537
14538 * config.gcc (aix tm_file): Add aix-stdint.h.
14539 (aix tm clause use_gcc_stdint): Set to wrap.
14540 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 14541
75ccc1e7
RG
145422009-04-08 Richard Guenther <rguenther@suse.de>
14543
14544 PR middle-end/36291
14545 * tree-dfa.c (add_referenced_var): Do not recurse into
14546 global initializers.
14547 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
14548 exposed variables.
14549 (fold_const_aggregate_ref): Likewise.
14550
c6963675
PB
145512009-04-08 Paolo Bonzini <bonzini@gnu.org>
14552
6c44cf79
L
14553 * recog.c (ordered_comparison_operator): New.
14554 * gensupport.c (std_preds): Add it.
c6963675
PB
14555 * doc/md.texi (Machine-Independent Predicates): Document it.
14556
6d07ad98
JH
145572009-04-08 Jan Hubicka <jh@suse.cz>
14558
14559 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
14560 * function.h (rtl_eh): Remove exception_handler_label_map.
14561 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
14562 remove_exception_handler_label, for_each_eh_label_1): Remove.
14563 (rtl_remove_unreachable_regions): Remove.
14564 (convert_from_eh_region_ranges): Do not remove unreachable regions.
14565 (find_exception_handler_labels): Don't build the hashtable.
14566 (maybe_remove_eh_handler): Remove.
14567 (for_each_eh_label): Rewrite to walk the tree.
14568 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
14569 * except.h (maybe_remove_eh_handler): Remove.
14570 * passes.c (init_optimization_passes): Schedule second EH cleanup
14571 before out-of-ssa.
14572 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
14573 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
14574
7ddf71e3
PB
145752009-04-08 Paolo Bonzini <bonzini@gnu.org>
14576
14577 * genoutput.c (validate_optab_operands): New.
14578 (gen_insn, gen_expand): Call it.
14579
14580 * genflags.c (gen_insn): Detect misused iterators.
14581 (main): Pass line_no to gen_insn, exit with status 1 on error.
14582
14583 * genextract.c (line_no): Make global.
14584 (VEC_safe_set_locstr): Change assertion to error message.
14585 (main): Exit with status 1 on error.
14586
4d84fe7c
JM
145872009-04-08 Joseph Myers <joseph@codesourcery.com>
14588
14589 PR c/39614
14590 PR c/39673
14591 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
14592 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
14593 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
14594 * c-convert.c (convert): Do not call fold on results of conversion
14595 functions when the result is a C_MAYBE_CONST_EXPR.
14596 * c-parser.c (c_parser_postfix_expression): Do not fold condition
14597 of __builtin_choose_expr.
14598 * c-typeck.c (remove_c_maybe_const_expr): New.
14599 (build_unary_op, build_conditional_expr, build_compound_expr,
14600 build_binary_op, c_objc_common_truthvalue_conversion): Call
14601 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
14602 integer operands.
14603
60839f5d 146042009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 14605
2ba9daa7 14606 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 14607 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 14608
8e481a2c
DS
146092009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
14610
14611 PR bootstrap/39660
14612 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
14613 mix declarations and code.
14614
ee618c17
BE
146152009-04-08 Ben Elliston <bje@au.ibm.com>
14616
14617 * gcc.c: Replace `CC' with `GCC' throughout.
14618
f2a758a2
L
146192009-04-07 H.J. Lu <hongjiu.lu@intel.com>
14620
14621 * doc/invoke.texi: Document Atom support.
14622
6ea2bd47
JM
146232009-04-07 Jason Merrill <jason@redhat.com>
14624
14625 PR c++/25185
14626 * c-common.h, c-common.c: Add flag_pretty_templates.
14627 * c-opts.c (c_common_handle_option): Set it.
14628 * c.opt: Add -fno-pretty-templates.
14629 * doc/invoke.texi (C++ Dialect Options): Likewise.
14630
fcb82ab0
UB
146312009-04-07 Uros Bizjak <ubizjak@gmail.com>
14632
14633 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
14634 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
14635 (ia64_expand_builtin): Likewise.
14636
dc5e7298
MJ
146372009-04-07 Martin Jambor <mjambor@suse.cz>
14638
14639 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
14640 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
14641 ADDR_EXPRS are include too.
14642
0609b355
RG
146432009-04-07 Richard Guenther <rguenther@suse.de>
14644
14645 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
14646 decls are only used if passes as parameters or if they are
14647 local statics and the call is not to a builtin.
14648 (call_may_clobber_ref_p_1): Likewise.
14649
d8e535fa
PB
146502009-04-07 Paolo Bonzini <bonzini@gnu.org>
14651
14652 * expr.c (do_store_flag): Remove last argument. Simplify code
14653 to avoid duplication of tests already done by can_compare_p.
14654 (expand_expr_real_1): Adjust caller.
14655
c3c64f50
PB
146562009-04-07 Paolo Bonzini <bonzini@gnu.org>
14657
fcb82ab0
UB
14658 * optabs.c (can_compare_p): Test the predicate of a
14659 cbranch and cstore pattern.
c3c64f50 14660
9a53bc17
PB
146612009-04-07 Paolo Bonzini <bonzini@gnu.org>
14662
fcb82ab0
UB
14663 * expr.c (convert_move): Use emit_store_flag instead of
14664 "emulating" it.
9a53bc17 14665
67b8f1c1
PB
146662009-04-07 Paolo Bonzini <bonzini@gnu.org>
14667
fcb82ab0
UB
14668 * config/i386/i386.c (ix86_compare_emitted): Remove.
14669 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
14670 ix86_compare_op0 like ix86_compare_emitted used to be handled.
14671 * config/i386/i386.h (ix86_compare_emitted): Remove.
14672 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
14673 instead of ix86_compare_emitted.
14674 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 14675
44509946
AS
146762009-04-07 Andrew Stubbs <ams@codesourcery.com>
14677
14678 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
14679 Add t-sysroot-suffix to tmake_file.
14680 * config/print-sysroot-suffix.sh: New file.
14681 * config/t-sysroot-suffix: New file.
14682
ca22d882
BE
146832009-04-07 Ben Elliston <bje@au.ibm.com>
14684
14685 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
14686 as the latter produces a warning when the target does not support
14687 infinity.
14688
95aac11b
BE
146892009-04-07 Ben Elliston <bje@au.ibm.com>
14690
14691 * dfp.c: Replace type punning assignments with memcpy throughout.
14692 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 14693
633dd061
AM
146942009-04-07 Alan Modra <amodra@bigpond.net.au>
14695
14696 PR target/39634
14697 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
14698 Include soft-fp/t-softfp after rs6000/t-linux64.
14699
fe0a25ec
EB
147002009-04-06 Eric Botcazou <ebotcazou@adacore.com>
14701
14702 * stor-layout.c (set_sizetype): Use the full precision of their
14703 machine mode for bitsize types.
14704
0c011bc3
L
147052009-04-06 H.J. Lu <hongjiu.lu@intel.com>
14706
14707 * config/i386/i386.md: Revert 2 accidental checkins.
14708
b6837b94 147092009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 14710 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
14711 H.J. Lu <hongjiu.lu@intel.com>
14712
14713 Atom pipeline model, tuning and insn selection.
14714 * config.gcc (atom): Add atom config options and target.
14715
14716 * config/i386/atom.md: New.
14717
14718 * config/i386/i386.c (atom_cost): New cost.
14719 (m_ATOM): New macro flag.
14720 (initial_ix86_tune_features): Set m_ATOM.
14721 (x86_accumulate_outgoing_args): Likewise.
14722 (x86_arch_always_fancy_math_387): Likewise.
14723 (processor_target): Add Atom cost.
14724 (cpu_names): Add Atom cpu name.
14725 (override_options): Set Atom ISA.
14726 (ix86_issue_rate): New case PROCESSOR_ATOM.
14727 (ix86_adjust_cost): Likewise.
14728
14729 * config/i386/i386.h (TARGET_ATOM): New target macro.
14730 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
14731 (TARGET_OPT_AGU): New target option.
14732 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
14733 (processor_type): Add PROCESSOR_ATOM.
14734
14735 * config/i386/i386.md (cpu): Add new value "atom".
14736 (use_carry, movu): New attr.
14737 (atom.md): Include atom.md.
14738 (adddi3_carry_rex64): Set attr "use_carry".
14739 (addqi3_carry): Likewise.
14740 (addhi3_carry): Likewise.
14741 (addsi3_carry): Likewise.
14742 (*addsi3_carry_zext): Likewise.
14743 (subdi3_carry_rex64): Likewise.
14744 (subqi3_carry): Likewise.
14745 (subhi3_carry): Likewise.
14746 (subsi3_carry): Likewise.
14747 (x86_movdicc_0_m1_rex64): Likewise.
14748 (*x86_movdicc_0_m1_se): Likewise.
14749 (x86_movsicc_0_m1): Likewise.
14750 (*x86_movsicc_0_m1_se): Likewise.
14751 (*adddi_1_rex64): Emit add insn as much as possible.
14752 (*addsi_1): Likewise.
14753 (return_internal): Set atom_unit.
14754 (return_internal_long): Likewise.
14755 (return_pop_internal): Likewise.
14756 (*rcpsf2_sse): Set atom_sse_attr attr.
14757 (*qrt<mode>2_sse): Likewise.
14758 (*prefetch_sse): Likewise.
14759
14760 * config/i386/i386-c.c (ix86_target_macros_internal): New case
14761 PROCESSOR_ATOM.
14762 (ix86_target_macros_internal): Likewise.
14763
14764 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
14765 (*prefetch_sse_rex): Likewise.
14766 (sse_rcpv4sf2): Likewise.
14767 (sse_vmrcpv4sf2): Likewise.
14768 (sse_sqrtv4sf2): Likewise.
14769 (<sse>_vmsqrt<mode>2): Likewise.
14770 (sse_ldmxcsr): Likewise.
14771 (sse_stmxcsr): Likewise.
14772 (*sse_sfence): Likewise.
14773 (sse2_clflush): Likewise.
14774 (*sse2_mfence): Likewise.
14775 (*sse2_lfence): Likewise.
14776 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
14777 (<sse>_movup<ssemodesuffixf2c>): Likewise.
14778 (avx_movdqu<avxmodesuffix>): Likewise.
14779 (avx_lddqu<avxmodesuffix>): Likewise.
14780 (sse2_movntv2di): Change attr "type" to "ssemov".
14781 (sse2_movntsi): Likewise.
14782 (rsqrtv8sf2): Change attr "type" to "sseadd".
14783 (sse3_addsubv2df3): Set attr "atom_unit".
14784 (sse3_h<plusminus_insn>v4sf3): Likewise.
14785 (*sse2_pmaddwd): Likewise.
14786 (*vec_extractv2di_1_rex64): Likewise.
14787 (*vec_extractv2di_1_avx): Likewise.
14788 (sse2_psadbw): Likewise.
14789 (ssse3_phaddwv8hi3): Likewise.
14790 (ssse3_phaddwv4hi3): Likewise.
14791 (ssse3_phadddv4si3): Likewise.
14792 (ssse3_phadddv2si3): Likewise.
14793 (ssse3_phaddswv8hi3): Likewise.
14794 (ssse3_phaddswv4hi3): Likewise.
14795 (ssse3_phsubwv8hi3): Likewise.
14796 (ssse3_phsubwv4hi3): Likewise.
14797 (ssse3_phsubdv4si3): Likewise.
14798 (ssse3_phsubdv2si3): Likewise.
14799 (ssse3_phsubswv8hi3): Likewise.
14800 (ssse3_phsubswv4hi3): Likewise.
14801 (ssse3_pmaddubsw128): Likewise.
14802 (sse3_pmaddubsw: Likewise.
14803 (ssse3_palignrti): Likewise.
14804 (ssse3_palignrdi): Likewise.
14805
53e350d3
GP
148062009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
14807
14808 * doc/install.texi (Specific): Fix two cross-references to MinGW.
14809
439ef907
RG
148102009-04-06 Richard Guenther <rguenther@suse.de>
14811
14812 PR tree-optimization/28868
14813 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
14814 of which PHI results we inserted.
14815 (insert_into_preds_of_block): Record inserted PHIs.
14816 (eliminate): Eliminate redundant PHI nodes.
14817 (init_pre): Init inserted_phi_names.
14818
4bad83f5
RG
148192009-04-06 Richard Guenther <rguenther@suse.de>
14820
14821 PR tree-optimization/39643
14822 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
14823 IMAGPART_EXPRs of complex constants.
14824 (execute_fold_all_builtins): If we folded a call queue
14825 TODO_update_address_taken.
14826
570c4247
JH
148272009-04-06 Jan Hubicka <jh@suse.cz>
14828
14829 PR middle-end/39659
14830 * except.c (remove_unreachable_regions): Propagate may_contain_throw
14831 flag.
14832
a460d7a1
AS
148332009-04-06 Andrew Stubbs <ams@codesourcery.com>
14834
14835 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
14836 delay slot.
14837 (ic_invalidate_array): Likewise.
14838
60839f5d 148392009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
14840
14841 * calls.c (emit_library_call_value_1): Fix a problem with parameter
14842 alignment for library calls.
14843
7d253f6e
DS
148442009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
14845
14846 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
14847 (mingw32 tm clause use_gcc_stdint): Set to wrap.
14848 * config/i386/mingw-stdint.h: New file.
14849
941c3614
RB
148502009-04-05 Richard Guenther <rguenther@suse.de>
14851
14852 PR tree-optimization/39648
14853 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
14854 our &A vs. &A[0] IL deficiencies.
14855
12633413
JH
148562009-04-04 Jan Hubicka <jh@suse.cz>
14857
941c3614
RB
14858 * except.c (sjlj_find_directly_reachable_regions): Be ready for
14859 removed toplevel regions.
12633413
JH
14860 (sjlj_mark_call_sites): Likewise.
14861
bb2aaded
DK
148622009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
14863
14864 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
14865 (cygwin tm clause use_gcc_stdint): Set to wrap.
14866 * config/i386/cygwin-stdint.h: New file.
14867
86290011
RG
148682009-04-04 Richard Guenther <rguenther@suse.de>
14869
14870 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
14871 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
14872 single-argument PHIs if we are in loop-closed SSA form.
14873 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
14874 for the pre-condition.
14875 (slpeel_tree_peel_loop_to_edge): Likewise.
14876 (vect_build_loop_niters): Take an optional sequence to append stmts.
14877 (vect_generate_tmps_on_preheader): Likewise.
14878 (vect_do_peeling_for_loop_bound): Take extra guards for the
14879 pre-condition.
14880 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
14881 the cost model check.
14882 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 14883 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
14884 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
14885 (vect_do_peeling_for_loop_bound): Likewise.
14886 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
14887 loop bound only record extra pre-conditions, do not apply loop
14888 versioning.
14889
5eeeac64
RG
148902009-04-04 Richard Guenther <rguenther@suse.de>
14891
14892 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
14893 renaming code.
14894
1ff7d06b
JH
148952009-04-04 Jan Hubicka <jh@suse.cz>
14896
14897 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14898 last_basic_block for size of bb->index indexed array.
14899 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
14900 compute_out, link_btr_uses, build_btr_def_use_webs,
14901 build_btr_def_use_webs, migrate_btr_defs): Likewise.
14902
14925fcd
JH
149032009-04-04 Jan Hubicka <jh@suse.cz>
14904
14905 * except.c (remove_eh_handler_and_replace): Break out from ...
14906 (remove_eh_handler): ... here.
14907 (bring_to_root): New function.
14908 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
14909 handled ones, bring others to root of tree.
14910
4e6d1743
JH
149112009-04-04 Jan Hubicka <jh@suse.cz>
14912
4cb735f7
JH
14913 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
14914 (all_phis_safe_to_merge): New function.
14915 (update_info): New structure.
14916 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
14917 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 14918
c6803d43
RG
149192009-04-04 Richard Guenther <rguenther@suse.de>
14920
14921 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
14922 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
14923 (append_vuse): Likewise.
14924
54f5943c
JJ
149252009-04-04 Jakub Jelinek <jakub@redhat.com>
14926
14927 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
14928 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
14929 instead of REG_UNSAVED for DW_CFA_undefined.
14930 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
14931 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
14932 outermost frame.
14933
aad2bccb
RE
149342009-04-04 Richard Earnshaw <rearnsha@arm.com>
14935
14936 PR target/39501
14937 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
14938 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
14939 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
14940
aa7069aa
RG
149412009-04-04 Richard Guenther <rguenther@suse.de>
14942
14943 PR tree-optimization/8781
14944 PR tree-optimization/37892
14945 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
14946 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
14947 (valueize_refs): Call it for *& valueizations.
14948 (shared_reference_ops_from_ref): Rename to ...
14949 (valueize_shared_reference_ops_from_ref): ... this and valueize.
14950 (shared_reference_ops_from_call): Rename to ...
14951 (valueize_shared_reference_ops_from_call): ... this and valueize.
14952 (vn_reference_lookup): Update.
14953 (visit_reference_op_call): Likewise.
14954 * tree-ssa-pre.c (phi_translate_1): Fold *&.
14955 (eliminate): Value-replace the call address in call statements.
14956
cd15ad3e
RG
149572009-04-04 Richard Guenther <rguenther@suse.de>
14958
14959 PR tree-optimization/39636
14960 * tree-ssa-forwprop.c
14961 (forward_propagate_addr_into_variable_array_index): Check for
14962 GIMPLE_ASSIGN before accessing the rhs code.
14963
462f3262
JM
149642009-04-03 Jason Merrill <jason@redhat.com>
14965
14966 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
14967
6adb807e
SE
149682009-04-03 Steve Ellcey <sje@cup.hp.com>
14969
14970 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
14971 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
14972 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
14973 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
14974 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
14975 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
14976 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
14977 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
14978 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
14979 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
14980 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
14981 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
14982 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
14983 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
14984 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
14985 Use fr_reg_or_fp01_operand instead of fr_register_operand
14986
14987 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
14988 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
14989 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
14990
174b3107
VM
149912009-04-03 Vladimir Makarov <vmakarov@redhat.com>
14992
b844e5d8
L
14993 PR rtl-optimization/39607
14994 PR rtl-optimization/39631
7a715bba
UB
14995
14996 Revert:
2ba9daa7 14997
174b3107
VM
14998 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
14999 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
15000 instead of DF_LR_OUT.
15001 * ira-lives.c (process_bb_node_lives): Ditto.
15002 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
15003 instead of DF_LR_{OUT,IN}.
15004 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
15005 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
15006
535b544a
SB
150072009-04-03 Steven Bosscher <steven@gcc.gnu.org>
15008
15009 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
15010 (execute_lower_omp): Always run but take the short way out if -fopenmp
15011 is not given.
15012 (gate_lower_omp): Remove, forcing the pass manager to always run the
15013 pass and always set PROP_gimple_lomp.
15014 (pass_lower_omp): Remove gate function.
15015 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
15016 PROP_trees. Instead, require it.
15017 * ipa-cp.c (pass_ipa_cp): Likewise.
15018 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
15019 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
15020 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
15021 and PROP_gimple_leh.
15022
5006671f
RG
150232009-04-03 Richard Guenther <rguenther@suse.de>
15024
15025 PR middle-end/13146
15026 PR tree-optimization/23940
15027 PR tree-optimization/33237
15028 PR middle-end/33974
15029 PR middle-end/34093
15030 PR tree-optimization/36201
15031 PR tree-optimization/36230
15032 PR tree-optimization/38049
15033 PR tree-optimization/38207
15034 PR tree-optimization/38230
15035 PR tree-optimization/38301
15036 PR tree-optimization/38585
15037 PR middle-end/38895
15038 PR tree-optimization/38985
15039 PR tree-optimization/39299
15040 * tree-ssa-structalias.h: Remove.
15041 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
15042 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
15043 (struct vuse_element_d): Remove.
15044 (struct vuse_vec_d): Likewise.
15045 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
15046 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
15047 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
15048 VUSE_ELEMENT_VAR): Likewise.
15049 (struct voptype_d): Likewise.
15050 (NUM_VOP_FREE_BUCKETS): Likewise.
15051 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
15052 (struct stmt_operands_d): Remove.
15053 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
15054 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
15055 VDEF_NUM, VDEF_VECT): Likewise.
15056 (copy_virtual_operands): Remove.
15057 (operand_build_cmp): Likewise.
15058 (create_ssa_artificial_load_stmt): Likewise.
15059 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
15060 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
15061 vuse_index and mayuse_index members. Pack and move done and iter_type
15062 members to the front.
15063 (SSA_OP_VMAYUSE): Remove.
15064 (SSA_OP_VIRTUAL_USES): Adjust.
15065 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
15066 (unlink_stmt_vdef): Declare.
15067 (add_to_addressable_set): Remove.
15068 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
15069 (vrp_visit_stmt): Likewise.
15070 * doc/tree-ssa.texi (Alias analysis): Update.
15071 * doc/invoke.texi (max-aliased-vops): Remove docs.
15072 (avg-aliased-vops): Likewise.
15073 * tree-into-ssa.c (syms_to_rename): Remove.
15074 (need_to_update_vops_p): Likewise.
15075 (need_to_initialize_update_ssa_p): Rename to ...
15076 (update_ssa_initialized_fn): ... this. Track function we are
15077 initialized for.
15078 (symbol_marked_for_renaming): Simplify.
15079 (add_new_name_mapping): Do not set need_to_update_vops_p.
15080 (dump_currdefs): Use SYMS_TO_RENAME.
15081 (rewrite_update_stmt): Always walk all uses/defs.
15082 (dump_update_ssa): Adjust.
15083 (init_update_ssa): Take function argument. Track what we are
15084 initialized for.
15085 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
15086 (create_new_def_for): Initialize for cfun, assert we are initialized
15087 for cfun.
15088 (mark_sym_for_renaming): Simplify.
15089 (mark_set_for_renaming): Do not initialize update-ssa.
15090 (need_ssa_update_p): Simplify. Take function argument.
15091 (name_mappings_registered_p): Assert we ask for the correct function.
15092 (name_registered_for_update_p): Likewise.
15093 (ssa_names_to_replace): Likewise.
15094 (release_ssa_name_after_update_ssa): Likewise.
15095 (update_ssa): Likewise. Use SYMS_TO_RENAME.
15096 (dump_decl_set): Do not print a newline.
15097 (debug_decl_set): Do it here.
15098 (dump_update_ssa): And here.
15099 * tree-ssa-loop-im.c (move_computations): Adjust.
15100 (movement_possibility): Likewise.
15101 (determine_max_movement): Likewise.
15102 (gather_mem_refs_stmt): Likewise.
15103 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
15104 or NAME_MEMORY_TAG.
15105 * tree-complex.c (update_all_vops): Remove.
15106 (expand_complex_move): Adjust.
15107 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
15108 Simplify test for memory referencing statement. Exclude
15109 non-invariant ADDR_EXPRs.
15110 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
15111 * tree-loop-distribution.c (generate_memset_zero): Adjust.
15112 (rdg_flag_uses): Likewise.
15113 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
15114 related code.
15115 (tree_optimize_tail_calls_1): Also split the
15116 edge from the entry block if we have degenerate PHI nodes in
15117 the first basic block.
15118 * tree.c (init_ttree): Remove memory-tag related code.
15119 (tree_code_size): Likewise.
15120 (tree_node_structure): Likewise.
15121 (build7_stat): Re-write to be build6_stat.
15122 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
15123 (SSA_VAR_P): Adjust.
15124 (struct tree_memory_tag): Remove.
15125 (struct tree_memory_partition_tag): Likewise.
15126 (union tree_node): Adjust.
15127 (build7): Re-write to be build6.
15128 * tree-pass.h (pass_reset_cc_flags): Remove.
15129 (TODO_update_address_taken): New flag.
15130 (pass_simple_dse): Remove.
15131 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
15132 * params.h (MAX_ALIASED_VOPS): Remove.
15133 (AVG_ALIASED_VOPS): Likewise.
15134 * omp-low.c (expand_omp_taskreg): Update SSA form.
15135 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
15136 aliases the lhs in a copy stmt.
15137 * tree-ssa-dse.c (struct address_walk_data): Remove.
15138 (memory_ssa_name_same): Likewise.
15139 (memory_address_same): Likewise.
15140 (get_kill_of_stmt_lhs): Likewise.
15141 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
15142 unused stores. Look through PHI nodes into post-dominated regions.
15143 (dse_optimize_stmt): Simplify. Properly remove stores.
15144 (tree_ssa_dse): Compute dominators.
15145 (execute_simple_dse): Remove.
15146 (pass_simple_dse): Likewise.
15147 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
15148 gimple_loaded_syms and gimple_stored_syms computation.
15149 * toplev.c (dump_memory_report): Dump alias and pta stats.
15150 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
15151 (vn_reference_eq): Likewise.
15152 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
15153 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
15154 valueize_vuses): Remove.
15155 (get_def_ref_stmt_vuses): Simplify. Rename to ...
15156 (get_def_ref_stmt_vuse): ... this.
15157 (vn_reference_lookup_2): New function.
15158 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
15159 walking equivalent vuses. Simplify.
15160 (vn_reference_lookup): Likewise.
15161 (vn_reference_insert): Likewise.
15162 (vn_reference_insert_pieces): Likewise.
15163 (visit_reference_op_call): Simplify.
15164 (visit_reference_op_load): Likewise.
15165 (visit_reference_op_store): Likewise.
15166 (init_scc_vn): Remove shared_lookup_vuses initialization.
15167 (free_scc_vn): Remove shared_lookup_vuses freeing.
15168 (sort_vuses, sort_vuses_heap): Remove.
15169 (get_ref_from_reference_ops): Export.
15170 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
15171 vector with single vuse pointer.
15172 (vn_reference_lookup_pieces, vn_reference_lookup,
15173 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
15174 (shared_vuses_from_stmt): Remove.
15175 (get_ref_from_reference_ops): Declare.
15176 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
15177 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15178 memory-tag related code.
15179 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
15180 (likely_value): Add comment, skip static-chain of call statements.
15181 (surely_varying_stmt_p): Adjust.
15182 (gimplify_and_update_call_from_tree): Likewise.
15183 (execute_fold_all_builtins): Do not rebuild alias info.
15184 (gimplify_and_update_call_from_tree): Properly update VOPs.
15185 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
15186 (copy_ref_info): Remove memory-tag related code.
15187 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
15188 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
15189 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
15190 computation.
15191 * tree-ssa-dom.c (gimple_p): Remove typedef.
15192 (eliminate_redundant_computations): Adjust.
15193 (record_equivalences_from_stmt): Likewise.
15194 (avail_expr_hash): Likewise.
15195 (avail_expr_eq): Likewise.
7a715bba 15196 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
15197 (stmt_makes_single_load): Likewise.
15198 (stmt_makes_single_store): Likewise.
15199 * tree-ssa-alias.c: Rewrite completely.
15200 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
15201 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
15202 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
15203 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
15204 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
15205 Remove public functions.
15206 (pass_reset_cc_flags): Remove.
15207 (pass_build_alias): Move ...
15208 * tree-ssa-structalias.c (pass_build_alias): ... here.
15209 * tree-ssa-alias.c (may_be_aliased): Move ...
15210 * tree-flow-inline.h (may_be_aliased): ... here.
15211 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
15212 count_uses_and_derefs): Move ...
15213 * gimple.c: ... here.
15214 * gimple.h (count_uses_and_derefs): Declare.
15215 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
15216 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
15217 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
15218 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
15219 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
15220 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
15221 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
15222 New functions.
15223 * tree-dfa.c (refs_may_alias_p): Move ...
15224 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
15225 * tree-ssa-alias.h: New file.
15226 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
15227 (statement_sink_location): Likewise.
15228 * opts.c (decode_options): Do not adjust max-aliased-vops or
15229 avg-aliased-vops values.
15230 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
15231 (TV_CALL_CLOBBER): Likewise.
15232 (TV_FLOW_SENSITIVE): Likewise.
15233 (TV_FLOW_INSENSITIVE): Likewise.
15234 (TV_MEMORY_PARTITIONING): Likewise.
15235 (TV_ALIAS_STMT_WALK): New timevar.
15236 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
15237 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
15238 (get_address_description): Remove memory-tag related code.
15239 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
15240 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
15241 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
15242 and immediate uses in statements. Document.
15243 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
15244 (dump_symbols): Remove.
15245 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
15246 * alias.c (get_deref_alias_set): New function split out from ...
15247 (get_alias_set): ... here.
15248 * alias.h (get_deref_alias_set): Declare.
15249 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
15250 type parameter. Remove restrict pointer handling. Create a
15251 ref-all pointer in case type-based alias sets do not conflict.
15252 (vect_analyze_data_refs): Remove SMT related code.
15253 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
15254 (vectorizable_load): Likewise.
15255 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
15256 (DR_SYMBOL_TAG, DR_VOPS): Remove.
15257 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
15258 Ignore vops and SMTs.
15259 (dr_analyze_alias): Likewise..
15260 (free_data_ref): Likewise.
15261 (create_data_ref): Likewise.
15262 (analyze_all_data_dependences): Likewise.
15263 (get_references_in_stmt): Adjust.
15264 * tree-flow-inline.h (gimple_aliases_computed_p,
15265 gimple_addressable_vars, gimple_call_clobbered_vars,
15266 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
15267 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
15268 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
15269 gimple_mem_ref_stats): Remove.
15270 (gimple_vop): New function.
15271 (op_iter_next_use): Remove vuses and mayuses cases.
15272 (op_iter_next_def): Remove vdefs case.
15273 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
15274 (clear_and_done_ssa_iter): Do not set removed fields.
15275 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
15276 Assert we are not iterating over vuses or vdefs if not also
15277 iterating over uses or defs.
15278 (op_iter_init_use): Likewise.
15279 (op_iter_init_def): Likewise.
15280 (op_iter_next_vdef): Remove.
15281 (op_iter_next_mustdef): Likewise.
15282 (op_iter_init_vdef): Likewise.
15283 (compare_ssa_operands_equal): Likewise.
15284 (link_use_stmts_after): Handle vuse operand.
15285 (is_call_used): Use is_call_clobbered.
15286 (is_call_clobbered): Global variables are always call clobbered,
15287 query the call-clobbers bitmap.
15288 (mark_call_clobbered): Ignore global variables.
15289 (clear_call_clobbered): Likewise.
15290 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
15291 virtual operands sanity check.
15292 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
15293 Remove.
15294 (TARGET_MEM_REF): Remove TMR_TAG operand.
15295 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
15296 Remove call-clobber related code.
15297 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
15298 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
15299 partitions or escape reason.
15300 (get_single_def_stmt, get_single_def_stmt_from_phi,
15301 get_single_def_stmt_with_phi): Remove.
15302 (dump_referenced_vars): Tidy.
15303 (get_ref_base_and_extent): Allow bare decls.
15304 (collect_dfa_stats): Adjust.
15305 * graphite.c (rename_variables_in_stmt): Adjust.
15306 (graphite_copy_stmts_from_block): Likewise.
15307 (translate_clast): Likewise.
15308 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
15309 (EXPR_DIES): New.
15310 (translate_vuse_through_block): Use the oracle.
15311 (phi_translate_1): Adjust.
15312 (value_dies_in_block_x): Use the oracle. Cache the outcome
15313 in EXPR_DIES.
15314 (valid_in_sets): Check if the VUSE for
15315 a REFERENCE is available.
15316 (eliminate): Do not remove stmts during elimination,
15317 instead queue and remove them afterwards.
15318 (do_pre): Do not rebuild alias info.
15319 (pass_pre): Run TODO_rebuild_alias before PRE.
15320 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
15321 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
15322 (mark_all_v_defs_stmt): Remove.
15323 (mark_all_v_defs_seq): Adjust.
15324 (sra_replace): Likewise.
15325 (scalarize_use): Likewise.
15326 (scalarize_copy): Likewise.
15327 (scalarize_init): Likewise.
15328 (scalarize_ldst): Likewise.
15329 (todoflags): Remove.
15330 (tree_sra): Do not rebuild alias info.
15331 (tree_sra_early): Adjust.
15332 (pass_sra): Run TODO_update_address_taken before SRA.
15333 * tree-predcom.c (set_alias_info): Remove.
15334 (prepare_initializers_chain): Do not call it.
15335 (mark_virtual_ops_for_renaming): Adjust.
15336 (mark_virtual_ops_for_renaming_list): Remove.
15337 (initialize_root_vars): Adjust.
15338 (initialize_root_vars_lm): Likewise.
15339 (prepare_initializers_chain): Likewise.
15340 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
15341 (may_propagate_copy_into_stmt): Likewise.
15342 (merge_alias_info): Do nothing for now.
15343 (propagate_tree_value_into_stmt): Adjust.
15344 (stmt_may_generate_copy): Likewise.
15345 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
15346 not mark symbols for renaming.
15347 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
15348 with the same statement, make sure to update the new pointed-to one.
15349 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
15350 call statements, do not mark symbols for renaming.
15351 (mark_operand_necessary): Dump something.
15352 (ref_may_be_aliased): New function.
15353 (mark_aliased_reaching_defs_necessary_1): New helper function.
15354 (mark_aliased_reaching_defs_necessary): Likewise.
15355 (mark_all_reaching_defs_necessary_1): Likewise.
15356 (mark_all_reaching_defs_necessary): Likewise.
15357 (propagate_necessity): Do not process virtual PHIs. For
15358 non-aliased loads mark all reaching definitions as necessary.
15359 For aliased loads and stores mark the immediate dominating
15360 aliased clobbers as necessary.
15361 (visited): New global static.
15362 (perform_tree_ssa_dce): Free visited bitmap after propagating
15363 necessity.
15364 (remove_dead_phis): Perform simple dead virtual PHI removal.
15365 (remove_dead_stmt): Properly unlink virtual operands when
15366 removing stores.
15367 (eliminate_unnecessary_stmts): Schedule PHI removal after
15368 stmt removal.
15369 * tree-ssa-ter.c (is_replaceable_p): Adjust.
15370 (process_replaceable): Likewise.
15371 (find_replaceable_in_bb): Likewise.
15372 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
15373 based on the single gimple vop.
15374 (verify_flow_insensitive_alias_info): Remove.
15375 (verify_flow_sensitive_alias_info): Likewise.
15376 (verify_call_clobbering): Likewise.
15377 (verify_memory_partitions): Likewise.
15378 (verify_alias_info): Likewise.
15379 (verify_ssa): Adjust..
15380 (execute_update_addresses_taken): Export. Update SSA
15381 manually. Optimize only when optimizing. Use a local bitmap.
15382 (pass_update_address_taken): Remove TODO_update_ssa, add
15383 TODO_dump_func.
15384 (pass_update_address_taken): Just use TODO_update_address_taken.
15385 (init_tree_ssa): Do not initialize addressable_vars.
15386 (verify_ssa): Verify new VUSE / VDEF properties.
15387 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
15388 Do not call verify_alias_info.
15389 (delete_tree_ssa): Clear the VUSE, VDEF operands.
15390 Do not free the loaded and stored syms bitmaps. Reset the escaped
15391 and callused solutions. Do not free addressable_vars.
15392 Remove memory-tag related code.
15393 (warn_uninitialized_var): Aliases are always available.
15394 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
15395 * lambda-code.c (can_put_in_inner_loop): Adjust.
15396 (can_put_after_inner_loop): Likewise.
15397 (perfect_nestify): Likewise.
15398 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
15399 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
15400 (vectorizable_conversion): Do not mark symbols for renaming.
15401 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
15402 (expand_call_inline): Unlink the calls virtual operands before
15403 replacing it.
15404 (tree_function_versioning): Do not call update_ssa if we are not
15405 updating clones. Simplify.
15406 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
15407 (propagate_with_phi): Likewise..
15408 * tree-outof-ssa.c (create_temp): Remove memory tag and call
15409 clobber code. Assert we are not aliased or global.
15410 * tree-flow.h: Include tree-ssa-alias.h
15411 (enum escape_type): Remove.
15412 (struct mem_sym_stats_d): Likewise.
15413 (struct mem_ref_stats_d): Likewise.
15414 (struct gimple_df): Add vop member. Remove global_var,
15415 call_clobbered_vars, call_used_vars, addressable_vars,
15416 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
15417 escaped and callused members.
15418 (struct ptr_info_def): Remove all members, add points-to solution
15419 member pt.
15420 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
15421 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
15422 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
15423 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
15424 (tree-ssa-alias.o): Likewise.
15425 (toplev.o): Add tree-ssa-alias.h
15426 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
15427 * gimple.c (gimple_set_bb): Fix off-by-one error.
15428 (is_gimple_reg): Do not handle memory tags.
15429 (gimple_copy): Also copy virtual operands.
15430 Delay updating the statement. Do not reset loaded and stored syms.
15431 (gimple_set_stored_syms): Remove.
15432 (gimple_set_loaded_syms): Likewise.
15433 (gimple_call_copy_skip_args): Copy the virtual operands
15434 and mark the new statement modified.
15435 * tree-ssa-structalias.c (may_alias_p): Remove.
15436 (set_uids_in_ptset): Take the alias set to prune with as
15437 parameter. Fold in the alias test of may_alias_p.
15438 (compute_points_to_sets): Compute whether a ptr is dereferenced
15439 in a local sbitmap.
15440 (process_constraint): Deal with &ANYTHING on the lhs, reject all
15441 other ADDRESSOF constraints on the lhs.
15442 (get_constraint_for_component_ref): Assert that we don't get
15443 ADDRESSOF constraints from the base of the reference.
15444 Properly generate UNKNOWN_OFFSET for DEREF if needed.
15445 (struct variable_info): Remove collapsed_to member.
15446 (get_varinfo_fc): Remove.
15447 (new_var_info): Do not set collapsed_to.
15448 (dump_constraint): Do not follow cycles.
15449 (dump_constraint_graph): Likewise.
15450 (build_pred_graph): Likewise.
15451 (build_succ_graph): Likewise.
15452 (rewrite_constraints): Likewise.
15453 (do_simple_structure_copy): Remove.
15454 (do_rhs_deref_structure_copy): Remove.
15455 (do_lhs_deref_structure_copy): Remove.
15456 (collapse_rest_of_var): Remove.
15457 (do_structure_copy): Re-implement.
15458 (pta_stats): New global variable.
15459 (dump_pta_stats): New function.
15460 (struct constraint_expr): Make offset signed.
15461 (UNKNOWN_OFFSET): Define special value.
15462 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
15463 (solution_set_expand): New helper function split out from ...
15464 (do_sd_constraint): ... here.
15465 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
15466 (do_ds_constraint): Likewise.
15467 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
15468 and CALLUSED = *CALLUSED.
15469 (set_union_with_increment): Make inc argument signed.
15470 (type_safe): Remove.
15471 (get_constraint_for_ptr_offset): Handle unknown and negative
15472 constant offsets.
15473 (first_vi_for_offset): Handle offsets before start. Bail
15474 out early for offsets beyond the variable extent.
15475 (first_or_preceding_vi_for_offset): New function.
15476 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
15477 Together with ESCAPED = *ESCAPED this properly computes reachability.
15478 (find_what_var_points_to): New function.
15479 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
15480 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
15481 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
15482 pt_solutions_intersect): New functions.
15483 (compute_call_used_vars): Remove.
15484 (compute_may_aliases): New main entry into PTA computation.
15485 * gimple.h (gimple_p): New typedef.
15486 (struct gimple_statement_base): Remove references_memory_p.
15487 (struct gimple_statement_with_memory_ops_base): Remove
15488 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
15489 members.
15490 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
15491 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
15492 gimple_set_references_memory): Remove.
15493 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
15494 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
15495 New functions.
15496 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
15497 (verify_expr): Allow RESULT_DECL.
15498 (gimple_duplicate_bb): Do not copy virtual operands.
15499 (gimple_duplicate_sese_region): Adjust.
15500 (gimple_duplicate_sese_tail): Likewise.
15501 (mark_virtual_ops_in_region): Remove.
15502 (move_sese_region_to_fn): Do not call it.
15503 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
15504 and pass_simple_dse.
15505 (execute_function_todo): Handle TODO_update_address_taken,
15506 call execute_update_addresses_taken for TODO_rebuild_alias.
15507 (execute_todo): Adjust.
15508 (execute_one_pass): Init dump files early.
15509 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
15510 call-clobbered.
15511 (create_general_new_stmt): Clear vops.
15512 * tree-ssa-reassoc.c (get_rank): Adjust.
15513 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
15514 symbols for renaming.
15515 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
15516 (PARAM_AVG_ALIASED_VOPS): Likewise.
15517 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
15518 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 15519 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
15520 (operand_build_cmp, copy_virtual_operands,
15521 create_ssa_artificial_load_stmt, add_to_addressable_set,
15522 gimple_add_to_addresses_taken): Remove public functions.
15523 (unlink_stmt_vdef): New function.
15524
457d1d00
AM
155252009-04-03 Alan Modra <amodra@bigpond.net.au>
15526
15527 * config.gcc (powerpc-*-linux*): Merge variants.
15528
e19da24c 155292009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 15530 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
15531
15532 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
15533 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
15534 cop0_sp_offset.
15535 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
15536 keep_interrupts_masked_p, use_debug_exception_return_p.
15537 (mips_attribute_table): Add interrupt, use_shadow_register_set,
15538 keep_interrupts_masked, use_debug_exception_return.
15539 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
15540 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
15541 New functions.
15542 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
15543 (mips_print_operand): Process COP0 registers to print $0 .. $31
15544 correctly for GAS to process.
15545 (mips_interrupt_extra_call_saved_reg_p): New function.
15546 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
15547 extra registers.
15548 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
15549 (mips_compute_frame_info): Add supports for interrupt context that
15550 includes doubleword accumulators and COP0 registers.
15551 (mips_for_each_saved_acc): New function.
15552 (mips_for_each_saved_gpr_and_fpr): Change the function name from
15553 mips_for_each_saved_reg.
15554 (mips_save_reg): Save accumulators.
15555 (mips_kernel_reg_p): A new for_each_rtx callback.
15556 (mips_expand_prologue): Support interrupt handlers.
15557 (mips_restore_reg): Restore accumulators.
15558 (mips_expand_epilogue): Support interrupt handlers.
15559 (mips_can_use_return_insn): Return false for interrupt handlers.
15560 (mips_epilogue_uses): New function.
15561 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
15562 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
15563 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
15564 cop0_move): New instructions.
15565 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
15566 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
15567 defines.
15568 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
15569 New defines.
15570 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
15571 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
15572 interrupt handlers, we use K0 as the temporary register.
15573 (EPILOGUE_USES): Change to a function call.
15574 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
15575 handlers, we use K0 as the temporary register.
2ba9daa7 15576
e19da24c
CF
15577 * doc/extend.texi (Function Attributes): Document interrupt,
15578 use_shadow_register_set, keep_interrupts_masked,
15579 use_debug_exception_return for MIPS attributes.
15580
aa1ca044
AM
155812009-04-03 Alan Modra <amodra@bigpond.net.au>
15582
15583 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
15584 Remove a number of t-files from tmake_file.
15585 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
15586 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
15587 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15588 target_prototype, not TARGET_PROTOTYPE.
15589 (LINK_OS_GNU_SPEC): Define.
15590 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
15591 and darwin-ldoubdle.c.
15592
14fdc613
MM
155932009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15594
15595 PR driver/39293
15596 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
15597 (cpp_options): Ditto.
15598 (default_compilers): Ditto.
15599 (display_help): Ditto.
15600 (process_command): Ditto.
15601 (do_spec_1): Ditto.
15602 (set_input): Use lbasename instead of duplicate code.
15603 (save_temps_prefix): New static for -save-temps=obj.
15604 (save_temps_length): Ditto.
2ba9daa7 15605
14fdc613
MM
15606 * doc/invoke.texi (-save-temps=obj): Document new variant to
15607 -save-temps switch.
15608
d3aa398e
JL
156092009-04-02 Jeff Law <law@redhat.com>
15610
15611 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
15612 variable.
15613
83f0ccb8
L
156142009-04-02 H.J. Lu <hongjiu.lu@intel.com>
15615
15616 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
15617 * configure: Regenerated.
15618
dcb6e951
RAE
156192009-04-02 Rafael Avila de Espindola <espindola@google.com>
15620
15621 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
15622 share the argument list.
15623
d85478c2
RAE
156242009-04-02 Rafael Avila de Espindola <espindola@google.com>
15625
15626 Merge
15627
15628 2009-02-12 Diego Novillo <dnovillo@google.com>
15629
83f0ccb8
L
15630 * varpool.c (debug_varpool): New.
15631 * cgraph.h (debug_varpool): Declare.
d85478c2 15632
34f42a49
JH
156332009-04-02 Jan Hubicka <jh@suse.cz>
15634
15635 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
15636 pass.
15637
a4747b4a
L
156382009-04-02 H.J. Lu <hongjiu.lu@intel.com>
15639
15640 * config/i386/i386.c (ix86_abi): Move initialization to ...
15641 (override_options): Here.
15642
63a9de54
CB
156432009-04-02 Christian Bruel <christian.bruel@st.com>
15644
15645 * config/sh/sh.c (sh_dwarf_register_span): New function.
15646 (TARGET_DWARF_REGISTER_SPAN): Define.
15647 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 15648
2f0fa28e
IR
156492009-04-02 Ira Rosen <irar@il.ibm.com>
15650
15651 PR tree-optimization/39595
2ba9daa7 15652 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
15653 interleaved loads group is not greater than the SLP group size.
15654
bbf7ce11
RAE
156552009-04-02 Rafael Avila de Espindola <espindola@google.com>
15656
15657 * builtins.c (is_builtin_name): New.
15658 (called_as_built_in): Use is_builtin_name.
15659 * tree.h (is_builtin_name): New.
15660 * varasm.c (incorporeal_function_p): Use is_builtin_name
15661
47e4dfcf
AS
156622009-04-02 Andrew Stubbs <ams@codesourcery.com>
15663
15664 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
15665
d0940d56
DS
156662009-04-02 Dodji Seketeli <dodji@redhat.com>
15667
15668 PR c++/26693
532bfb0a 15669 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
15670 * c-common.c (set_underlying_type): ... here.
15671 Also, make sure the function properly sets TYPE_STUB_DECL() on
15672 the newly created typedef variant type.
15673 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
15674 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
15675 points.
d0940d56 15676
bf1cbdc6
RG
156772009-04-02 Richard Guenther <rguenther@suse.de>
15678
15679 PR tree-optimization/37221
15680 * tree-flow.h (degenerate_phi_result): Declare.
15681 * tree-ssa-dom.c (degenerate_phi_result): Export.
15682 * tree-scalar-evolution.c (analyze_initial_condition): If
15683 the initial condition is defined by a degenerate PHI node
15684 use the degenerate value.
15685
87cfb32c
EB
156862009-04-01 Eric Botcazou <ebotcazou@adacore.com>
15687
15688 PR rtl-optimization/39588
15689 * combine.c (merge_outer_ops): Do not set the constant when this
15690 is not necessary.
15691 (simplify_shift_const_1): Do not modify it either in this case.
15692
bbb6eae8
SB
156932009-04-01 Steven Bosscher <steven@gcc.gnu.org>
15694
15695 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
15696 tuning is deprecated if -mtune value is set to an Itanium1 variant.
15697
839a3b8a
JJ
156982009-04-01 Janis Johnson <janis187@us.ibm.com>
15699
15700 PR c/29027
15701 * c-lex.c (interpret_float): Default (no suffix) is double.
15702
667e8acb
XDL
157032009-04-1 Xinliang David Li <davidxl@google.com>
15704
15705 * config/i386/i386.c (legitimate_constant_p): Recognize
15706 all one vector constant.
15707
60839f5d 157082009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15709
60839f5d 15710 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
15711 Change #include order to silence two warnings.
15712
60839f5d 157132009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15714
60839f5d 15715 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
15716 (ASM_SPEC): Pass -k to the assembler for PIC code.
15717
60839f5d 157182009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15719
60839f5d
EB
15720 * config.gcc: Add vax-*-linux* to the switch.
15721 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
15722 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
15723
60839f5d 157242009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15725
60839f5d 15726 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 15727 Use predicate macros instead of GET_CODE() == foo.
60839f5d 15728 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
15729 ashlsi3, rotrsi3, <unnamed>): Likewise.
15730
60839f5d 157312009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15732
60839f5d 15733 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 15734 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d
EB
15735 * config/vax/constraints.md: Likewise.
15736 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15737 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
15738 * config/vax/predicates.md: Likewise.
15739 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 15740 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
15741 * config/vax/vax.h: Likewise.
15742 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 15743
60839f5d 157442009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15745
60839f5d 15746 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
15747 (indirectable_address_p, adjacent_operands_p): Add spaces around
15748 braces.
60839f5d 15749 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 15750
60839f5d 157512009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15752
60839f5d 15753 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
15754 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
15755 index_term_p, reg_plus_index_p, legitimate_address_p,
15756 vax_mode_dependent_address_p): Update comments to match functions
15757 modified by the recent int->bool conversion.
15758
60839f5d 157592009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15760
60839f5d
EB
15761 * config/vax/builtins.md: Update copyright message.
15762 * config/vax/constraints.md: Likewise.
15763 * config/vax/netbsd-elf.h: Likewise.
15764 * config/vax/predicates.md: Likewise.
15765 * config/vax/vax-protos.h: Likewise.
15766 * config/vax/vax.c: Likewise.
15767 * config/vax/vax.h: Likewise.
15768 * config/vax/vax.md: Likewise.
15769 * config/vax/vax.opt: Likewise.
c4e75102 15770
60839f5d 157712009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 15772
60839f5d 15773 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 15774 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
15775 * config/vax/constraints.md (B, R): Likewise.
15776 * config/vax/predicates.md (external_memory_operand,
c4e75102 15777 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
15778 * config/vax/vax.c (vax_output_int_add): Likewise.
15779 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
15780 untyped_call): Likewise.
15781
60839f5d 157822009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 15783
7a715bba
UB
15784 * config/vax/predicates.md: New file.
15785 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
15786 external_const_operand, nonsymbolic_operand, external_memory_operand,
15787 indirect_memory_operand, indexed_memory_operand,
15788 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
15789 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
15790 predicate.
7a715bba
UB
15791 * config/vax/constraints.md: New file.
15792 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
15793 New constraint.
15794 * config/vax/builtins.md: New file.
15795 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
15796 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
15797 jbbccisi): Define.
c4e75102
MT
15798 * config/vax/vax.opt (mqmath): Add option.
15799 * config/vax/vax.md (isfx): Extend with DI.
15800 (VAXintQH, VAXintQHSD): Define.
15801 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
15802 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
15803 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
15804 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
15805 (movdi): Update constraints and use vax_output_int_move().
15806 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
15807 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
15808 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
15809 nonlocal_goto): New.
15810 (mov<mode>): Extend accepted operand types.
15811 (subdi3_old): Rename from subdi3, change update constraints and use
15812 a new implementation.
60839f5d 15813 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
15814 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
15815 MOVE_RATIO, CLEAR_RATIO): Define.
15816 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
15817 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
15818 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 15819 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
15820 (split_quadword_operands): Make static and really allow variable
15821 splitting.
15822 (print_operand_address): Update for PIC generation.
15823 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
15824 indexable_address_p, fixup_mathdi_operand,
15825 vax_expand_addsub_di_operands, adjacent_operands_p): New.
15826 (vax_float_literal, legitimate_constant_p,
15827 indirectable_constant_address_p, index_term_p,
15828 reg_plus_index_p): Return bool instead of int.
15829 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
15830 where needed.
15831 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
15832 generation.
15833 (vax_output_conditional_branch): Indent.
15834 (legitimate_constant_address_p, indirectable_constant_address_p,
15835 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
15836 vax_mode_dependent_address_p): Return bool instead of int, update for
15837 PIC generation.
15838 * config/vax/vax-protos.h (legitimate_constant_address_p,
15839 legitimate_constant_p, legitimate_address_p,
15840 vax_mode_dependent_address_p): Change declaration to bool.
15841 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
15842 vax_expand_addsub_di_operands, vax_output_int_subtract,
15843 vax_output_movmemsi): Declare.
15844 (split_quadword_operands, vax_float_literal): Delete declaration.
15845 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
15846 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
15847 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
15848 ASM_OUTPUT_DWARF_PCREL): Define.
15849 (ASM_SPEC): Change definition to allow PIC generation.
15850
9332c6eb
L
158512009-04-01 Steve Ellcey <sje@cup.hp.com>
15852
15853 * doc/sourcebuild.texi: Update front-end requirements.
15854
d93e052c
JJ
158552009-04-01 Jakub Jelinek <jakub@redhat.com>
15856
15857 PR target/39226
15858 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
15859 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
15860 (booldi3_internal3): Use boolean_or_operator instead of
15861 boolean_operator.
15862
6ccb2a4a
JM
158632009-04-01 Joseph Myers <joseph@codesourcery.com>
15864
15865 PR c/39605
15866 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
15867 declarator whose size is not an integer constant expression but
15868 folds to an integer constant, then treat it as a constant
15869 subsequently.
15870
299b87f8
RG
158712009-04-01 Richard Guenther <rguenther@suse.de>
15872
15873 * fold-const.c (fold_plusminus_mult_expr): Do not fold
15874 i * 4 + 2 to (i * 2 + 1) * 2.
15875
b85eb797
JJ
158762009-04-01 Jakub Jelinek <jakub@redhat.com>
15877
15878 PR c/37772
15879 * c-parser.c (c_parser_asm_statement): Skip until close paren and
15880 return if c_parser_asm_string_literal returned NULL.
15881
235e1fe8
NC
158822009-04-01 Nick Clifton <nickc@redhat.com>
15883
15884 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
15885 already defined.
15886 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
15887 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
15888 other typedefs to avoid conflicts with libgcc2.c. Define labels
15889 to gain 16-bit bit-manipulation functions from libgcc2.c and then
15890 include it.
15891 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
15892 to gain 16-bit trapping arithmetic functions from libgcc2.c and
15893 then include it.
15894
d6868399
RAE
158952009-04-01 Rafael Avila de Espindola <espindola@google.com>
15896
7a715bba
UB
15897 * varasm.c (default_function_rodata_section): Declare DOT as
15898 const char*.
d6868399 15899
73d21f56 159002009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 15901 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
15902
15903 PR/39492
15904 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
15905 Make object_name unique for each process.
15906
03742a9b
JJ
159072009-04-01 Jakub Jelinek <jakub@redhat.com>
15908
15909 PR other/39591
15910 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
15911 addressable variables in the parallel that could go out of scope while
15912 running queued tasks.
15913
4223ff5f
AS
159142009-04-01 Anatoly Sokolov <aesok@post.ru>
15915
15916 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
15917 (CASE_VALUES_THRESHOLD): Redefine.
15918 * config/avr/avr.c (avr_override_options): Remove initialization of
15919 avr_case_values_threshold variable.
15920 (avr_case_values_threshold): Remove variable. Add new function.
15921 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
15922 * config/avr/avr.opt (mno-tablejump): Remove option.
15923 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
15924
e893f6f3
DD
159252009-04-01 DJ Delorie <dj@redhat.com>
15926
15927 * varasm.c (default_function_rodata_section): Don't assume
15928 anything about where the first '.' in the section name is.
15929
b246d100
AM
159302009-04-01 Alan Modra <amodra@bigpond.net.au>
15931
15932 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
15933 rs6000_emit_stack_tie.
15934
d3e37a9e
ILT
159352009-03-31 Ian Lance Taylor <iant@google.com>
15936
15937 * tree-eh.c (tree_remove_unreachable_handlers): Compare
15938 gimple_code with GIMPLE_RESX, not RESX.
15939
c1b61fca
JM
159402009-03-31 Joseph Myers <joseph@codesourcery.com>
15941
15942 * c-common.c (c_get_ident): New.
7a715bba 15943 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 15944
c2d2ad48
BE
159452009-04-01 Ben Elliston <bje@au.ibm.com>
15946
15947 * config/rs6000/sysv4.opt (msdata): Improve option description.
15948
13d1a6e7
SE
159492009-03-31 Steve Ellcey <sje@cup.hp.com>
15950
15951 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
15952 (divdf3_internal_lat): Remove.
15953 (divxf3_internal_lat): Remove.
15954 (divxf3_internal_thr): Remove.
15955 (divxf): Use divxf3_internal.
15956 * config/ia64/div.md (divsf3_internal_lat): New.
15957 (divdf3_internal_lat): New.
15958 (divxf3_internal): New.
15959
207bf79d
JM
159602009-03-31 Joseph Myers <joseph@codesourcery.com>
15961
15962 PR c/448
15963 * Makefile.in (USE_GCC_STDINT): Define.
15964 (stmp-int-hdrs): Install stdint.h if applicable.
15965 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
15966 if known.
15967 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
15968 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
15969 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15970 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15971 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15972 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15973 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15974 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15975 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15976 (c_common_nodes_and_builtins): Initialize
15977 underlying_wchar_type_node. Do not initialize
15978 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
15979 nodes for new types.
15980 (c_stddef_cpp_builtins): Define macros for new types.
15981 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
15982 Remove.
15983 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
15984 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
15985 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
15986 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
15987 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
15988 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
15989 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
15990 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
15991 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
15992 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
15993 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
15994 int16_type_node, int32_type_node, int64_type_node,
15995 uint8_type_node, uint16_type_node, c_uint32_type_node,
15996 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
15997 int_least32_type_node, int_least64_type_node,
15998 uint_least8_type_node, uint_least16_type_node,
15999 uint_least32_type_node, uint_least64_type_node,
16000 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
16001 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
16002 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
16003 uintptr_type_node): Define.
16004 * c-cppbuiltin.c (builtin_define_constants,
16005 builtin_define_type_minmax): New.
16006 (builtin_define_stdint_macros): Define more macros.
16007 (c_cpp_builtins): Define more limit macros.
16008 (type_suffix): New.
16009 (builtin_define_type_max): Define in terms of
16010 builtin_define_type_minmax. Remove is_long parameter. All
16011 callers changed.
16012 * config.gcc (use_gcc_stdint): Define.
16013 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
16014 Add newlib-stdint.h for generic targets.
16015 * config/glibc-stdint.h, config/newlib-stdint.h,
16016 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
16017 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
16018 * config/score/score.h (UINTPTR_TYPE): Define.
16019 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16020 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16021 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16022 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16023 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16024 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16025 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16026 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16027 * config/spu/spu.h (STDINT_LONG32): Define.
16028 * configure.ac (use_gcc_stdint): Substitute.
16029 * configure: Regenerate.
16030 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
16031 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
16032 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
16033 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
16034 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
16035 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
16036 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
16037 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
16038 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
16039 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
16040 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
16041 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
16042 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
16043 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
16044 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
16045 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
16046 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
16047 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
16048 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
16049 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
16050 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
16051 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
16052 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
16053 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16054 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16055 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16056 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16057 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16058 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
16059
ed853664
BS
160602009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
16061
16062 * loop-iv.c (suitable_set_for_replacement): Renamed from
16063 simplify_using_assignment; changed to return bool and to accept new
16064 args DEST and SRC. Return true iff we find a source/destination pair
16065 that can be used to make a replacement, and fill SRC and DEST if so.
16066 Remove arg ALTERED. Don't deal with altered regs here. All callers
16067 changed.
16068 (simplify_using_initial_values): Deal with altered regs here and track
16069 more precisely the effect they have on the validity of our expression.
16070
1569e190
BS
16071 * loop-iv.c (simplify_using_condition): A condition of the form
16072 (EQ REG CONST) can be used to simply make a substitution.
16073 (simplify_using_initial_values): Keep track of conditions we have seen
16074 and keep using them to simplify new expressions, while applying the
16075 same substitutions to them as to the expression.
16076
1d1eb80c
BS
16077 * simplify-rtx.c (simplify_relational_operation_1): Simplify
16078 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
16079 GEU/LTU reversed.
16080
28af33b0
BS
16081 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
16082 changed. Use this when trying to improve the upper bound.
16083 Generate the comparison by using simplify_gen_relational.
16084
b30321cd
BS
16085 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
16086
60081874
BS
16087 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
16088 functions.
2ba9daa7 16089 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
16090 replace_in_expr to make replacements. Call replace_single_def_regs
16091 once on the initial version of the expression.
16092
bebc6e07
RR
160932009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16094
fcb82ab0 16095 PR target/27237
bebc6e07 16096 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 16097
6b12efe9
RG
160982009-03-31 Richard Guenther <rguenther@suse.de>
16099
16100 PR middle-end/31029
16101 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
16102 equality comparisons. Fold C - X CMP X if C % 2 == 1.
16103
108f6c2f
RG
161042009-03-31 Richard Guenther <rguenther@suse.de>
16105
16106 * tree.h (div_if_zero_remainder): Declare.
16107 * fold-const.c (div_if_zero_remainder): Export.
16108 * tree-ssa-forwprop.c
16109 (forward_propagate_addr_into_variable_array_index): Handle
16110 constant array index addition outside of the variable index.
16111
8f612190
JM
161122009-03-31 Joseph Myers <joseph@codesourcery.com>
16113
16114 PR target/39592
16115 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
16116 define_splits, floatunssi<mode>2): Require x87 conversions from
16117 DImode to be permitted.
16118
47580d22
JM
161192009-03-31 Joseph Myers <joseph@codesourcery.com>
16120
16121 PR preprocessor/15638
16122 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
16123
ba4d8f9d
RG
161242009-03-31 Richard Guenther <rguenther@suse.de>
16125
16126 PR middle-end/23401
16127 PR middle-end/27810
16128 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
16129 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
16130 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
16131 a separate statement.
16132 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
16133 (lookup_tmp_var): Likewise.
16134 (is_gimple_formal_tmp_or_call_rhs): Remove.
16135 (is_gimple_reg_or_call_rhs): Rename to ...
16136 (is_gimple_reg_rhs_or_call): ... this.
16137 (is_gimple_mem_or_call_rhs): Rename to ...
16138 (is_gimple_mem_rhs_or_call): ... this.
16139 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
16140 DECL_GIMPLE_REG_P only if is_formal is true.
16141 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
16142 for non-proper post-modify expression gimplification.
16143 (gimplify_self_mod_expr): For post-modify expressions gimplify
16144 the lvalue to a minimal lvalue.
16145 (rhs_predicate_for): Remove formal temp case.
16146 (gimplify_modify_expr_rhs): Likewise.
16147 (gimplify_addr_expr): Use is_gimple_reg.
16148 (gimplify_expr): Remove formal temp cases.
16149 (gimple_regimplify_operands): Likewise.
16150 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
16151 and FILTER_EXPR like constants.
16152 * gimple.c (walk_gimple_op): Fix val_only initialization, use
16153 is_gimple_reg.
16154 (is_gimple_formal_tmp_rhs): Remove.
16155 (is_gimple_reg_rhs): Remove special casing.
16156 (is_gimple_mem_rhs): Fix.
16157 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
16158 (is_gimple_formal_tmp_var): Remove.
16159 (is_gimple_formal_tmp_reg): Likewise.
16160 (is_gimple_min_lval): Allow invariant component ref parts.
16161 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
16162 is_gimple_formal_tmp_reg): Remove declarations.
16163 * tree-cfg.c (verify_expr): Verify that variables with address
16164 taken do not have DECL_GIMPLE_REG_P set.
16165 * tree-mudflap.c (mf_build_check_statement_for): Use
16166 force_gimple_operand instead of gimplify_expr.
16167
8de9b877
AZ
161682009-03-31 Ayal Zaks <zaks@il.ibm.com>
16169
16170 * modulo-sched.c (sms_schedule_by_order): Pass the actual
16171 schedulable rows to compute_split_row.
16172
b5e3caf2
BE
161732009-03-31 Ben Elliston <bje@au.ibm.com>
16174
16175 PR target/31635
16176 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
16177 OPT_mvrsave.
16178
9752c4ad
AM
161792009-03-31 Alan Modra <amodra@bigpond.net.au>
16180
16181 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
16182 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
16183 * configure: Regenerate.
16184 * config.in: Regenerate.
16185 * config/rs6000/rs6000.opt (mtls-markers): Add.
16186 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
16187 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
16188 (tls_ld_aix, tls_ld_sysv): Likewise.
16189 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
16190 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
16191
b597d1b6
AM
161922009-03-31 Alan Modra <amodra@bigpond.net.au>
16193
16194 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
16195
a203a221
JH
161962009-03-30 Jan Hubicka <jh@suse.cz>
16197
b597d1b6
AM
16198 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
16199 out of RESX.
16200 (tree_remove_unreachable_handlers): Cleanup EH predecestor
16201 detection and label handling.
a203a221 16202
5b0c0b2c
VM
162032009-03-30 Vladimir Makarov <vmakarov@redhat.com>
16204
16205 * ira-int.h (ira_allocno): Rename left_conflicts_num to
16206 left_conflicts_size.
16207 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
16208 ALLOCNO_LEFT_CONFLICTS_SIZE.
16209
16210 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
16211 remove_allocno_from_bucket_and_push,
16212 allocno_spill_priority_compare, push_allocnos_to_stack,
16213 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16214 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
16215 (setup_allocno_left_conflicts_num): Ditto. Rename to
16216 setup_allocno_left_conflicts_size.
16217 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16218 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
16219 setup_allocno_left_conflicts_size instead of
16220 setup_allocno_left_conflicts_num.
16221
16222 * ira-build.c (ira_create_allocno): Use
16223 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
16224 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 16225
9a48a93f
VM
162262009-03-30 Vladimir Makarov <vmakarov@redhat.com>
16227
16228 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
16229 instead of DF_LR_OUT.
16230
16231 * ira-lives.c (process_bb_node_lives): Ditto.
16232
16233 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
16234 instead of DF_LR_{OUT,IN}.
16235
16236 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
16237
16238 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
16239
4c936d4f
JH
162402009-03-30 Jan Hubicka <jh@suse.cz>
16241
16242 * except.c (label_to_region_map): Fix thinko.
16243
f4d9f129
SE
162442009-03-30 Steve Ellcey <sje@cup.hp.com>
16245
16246 PR middle-end/38237
16247 * tree.h (tree_find_value): New declaration.
16248 * tree.c (tree_find_value): New function.
16249 * varasm.c (assemble_external): Avoid duplicate entries on lists.
16250
b3f27c15
JJ
162512009-03-30 Jakub Jelinek <jakub@redhat.com>
16252
16253 PR debug/39563
16254 * c-decl.c (struct c_binding): Add locus field.
16255 (bind): Add locus argument, set locus field from it.
16256 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
16257 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
16258 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
16259 implicitly_declare, undeclared_variable, lookup_label,
16260 declare_label, c_make_fname_decl, c_builtin_function,
16261 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
16262 bind callers.
16263
ad41bd84 162642009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
16265
16266 PR target/38781
16267 * config/i386/i386.c (classify_argument): Check total size of
16268 structure.
16269
133f9369
MJ
162702009-03-30 Martin Jambor <mjambor@suse.cz>
16271
16272 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
16273 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
16274 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
16275 respectively.
16276
16277 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
16278 seen_variable_array_ref while also traversing a union.
16279
16280 * tree-inline.c (optimize_inline_calls): Do not call
16281 cgraph_node_remove_callees.
16282 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
16283 (pass_remove_cgraph_callee_edges): New variable.
16284 * passes.c (init_optimization_passes): Add
16285 pass_remove_cgraph_callee_edges after early inlining and before all
16286 late intraprocedural passes.
16287
16288 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
16289
1190f2eb
PB
162902009-03-30 Paolo Bonzini <bonzini@gnu.org>
16291
16292 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
16293 Fix typos in names.
16294
fedc1775
PB
162952009-03-30 Paolo Bonzini <bonzini@gnu.org>
16296
fcb82ab0
UB
16297 * combine.c (simplify_comparison): Use have_insn_for.
16298 * dojump.c (do_jump): Likewise.
fedc1775 16299
65c5ae8b
PB
163002009-03-30 Paolo Bonzini <bonzini@gnu.org>
16301
16302 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
16303 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
16304 sparc_compare_op0 like sparc_compare_emitted used to be handled.
16305 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
16306 instead of sparc_compare_emitted.
16307 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
16308 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
16309 instead of sparc_compare_emitted.
16310
d25aa7ab
PB
163112009-03-30 Paolo Bonzini <bonzini@gnu.org>
16312
16313 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
16314 enter/exit cfglayout mode.
16315 (pass_partition_block): Require it.
16316 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
16317 (combine_instructions): Track basic blocks instead of labels.
16318 (update_cfg_for_uncondjump): New.
16319 (try_combine): Use it. Update jumps after rescanning.
16320 (pass_combine): Require PROP_cfglayout.
16321 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
16322
9c9e26f5
PB
163232009-03-30 Paolo Bonzini <bonzini@gnu.org>
16324
fcb82ab0
UB
16325 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
16326 Provide/destroy PROP_cfglayout respectively.
16327 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
16328 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 16329
28ddeea1
PB
163302009-03-30 Paolo Bonzini <bonzini@gnu.org>
16331
16332 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
16333 fold_convert_const_fixed_from_fixed,
16334 fold_convert_const_fixed_from_int,
16335 fold_convert_const_fixed_from_real, fold_negate_const): Do not
16336 set TREE_CONSTANT_OVERFLOW.
16337 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
16338 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
16339
ebfd146a
IR
163402009-03-30 Ira Rosen <irar@il.ibm.com>
16341
16342 * tree-vect-loop-manip.c: New file.
16343 * tree-vectorizer.c: Update documentation and included files.
16344 (vect_loop_location): Make extern.
16345 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
16346 (rename_variables_in_bb, rename_variables_in_loop,
16347 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
16348 slpeel_update_phi_nodes_for_guard1,
16349 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
16350 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
16351 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 16352 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
16353 find_loop_location): Likewise.
16354 (new_stmt_vec_info): Move to tree-vect-stmts.c.
16355 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
16356 get_vectype_for_scalar_type, vect_is_simple_use,
16357 supportable_widening_operation, supportable_narrowing_operation):
16358 Likewise.
16359 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
16360 (new_loop_vec_info, destroy_loop_vec_info,
16361 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
16362 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
16363 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
16364 (vect_supportable_dr_alignment): Likewise.
16365 * tree-vectorizer.h (tree-data-ref.h): Include.
16366 (vect_loop_location): Declare.
16367 Reorganize function declarations according to the new file structure.
16368 * tree-vect-loop.c: New file.
2ba9daa7 16369 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
16370 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
16371 * tree-vect-data-refs.c: New file.
16372 * tree-vect-patterns.c (timevar.h): Don't include.
16373 * tree-vect-stmts.c: New file.
2ba9daa7 16374 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 16375 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
16376 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
16377 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
16378 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
16379 (tree-vect-analyze.o): Remove.
16380 (tree-vect-transform.o): Likewise.
16381 (tree-vect-data-refs.o): Add rule.
2ba9daa7 16382 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
16383 tree-vect-slp.o): Likewise.
16384 (tree-vect-patterns.o): Remove redundant dependencies.
16385 (tree-vectorizer.o): Likewise.
16386 * tree-vect-slp.c: New file.
16387
40a1cfba
RW
163882009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16389
16390 * optc-gen.awk: Warn if an option flag has multiple different
16391 help strings.
16392
a9a7a9a2
SP
163932009-03-30 Sebastian Pop <sebastian.pop@amd.com>
16394
16395 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
16396 -floop-block): Document dependences on PPL, CLooG and Graphite.
16397
8ce94e44
JM
163982009-03-30 Joseph Myers <joseph@codesourcery.com>
16399
16400 PR rtl-optimization/323
16401 * c-common.c (c_fully_fold, convert_and_check,
16402 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
16403 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
16404 * c-common.def (EXCESS_PRECISION_EXPR): New.
16405 * c-cppbuiltin.c (builtin_define_float_constants): Define
16406 constants with enough digits for long double.
16407 * c-lex.c (interpret_float): Interpret constant with excess
16408 precision where appropriate.
16409 * c-opts.c (c_common_post_options): Set
16410 flag_excess_precision_cmdline. Give an error for
16411 -fexcess-precision=standard for C++ for processors where the
16412 option is significant.
16413 * c-parser.c (c_parser_conditional_expression): Handle excess
16414 precision in condition.
16415 * c-typeck.c (convert_arguments): Handle arguments with excess
16416 precision.
16417 (build_unary_op): Move excess precision outside operation.
16418 (build_conditional_expr): Likewise.
16419 (build_compound_expr): Likewise.
16420 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
16421 (build_modify_expr): Handle excess precision in RHS.
16422 (convert_for_assignment): Handle excess precision in converted
16423 value.
16424 (digest_init, output_init_element, process_init_element): Handle
16425 excess precision in initializer.
16426 (c_finish_return): Handle excess precision in return value.
16427 (build_binary_op): Handle excess precision in operands and add
16428 excess precision as needed for operation.
16429 * common.opt (-fexcess-precision=): New option.
16430 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
16431 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
16432 For standard excess precision, output explicit conversion to and
16433 truncation from XFmode.
16434 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
16435 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
16436 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
16437 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
16438 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
16439 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
16440 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
16441 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
16442 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
16443 define_splits, sqrt<mode>2): Disable where appropriate for
16444 standard excess precision.
16445 * convert.c (convert_to_real): Do not shorten arithmetic to type
16446 for which excess precision would be used.
16447 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
16448 * doc/invoke.texi (-fexcess-precision=): Document option.
16449 (-mfpmath=): Correct index entry.
16450 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
16451 flag_excess_precision): New.
16452 * langhooks.c (lhd_post_options): Set
16453 flag_excess_precision_cmdline.
16454 * opts.c (common_handle_option): Handle -fexcess-precision=.
16455 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
16456 init_excess_precision): New.
16457 (lang_dependent_init_target): Call init_excess_precision.
16458 * tree.c (excess_precision_type): New.
16459 * tree.h (excess_precision_type): Declare.
16460
1e57bf47
JM
164612009-03-30 Joseph Myers <joseph@codesourcery.com>
16462
16463 PR c/35235
16464 * c-typeck.c (build_component_ref): Do not copy qualifiers from
16465 non-lvalue to component.
16466
148e4216
JM
164672009-03-29 Joseph Myers <joseph@codesourcery.com>
16468
16469 PR preprocessor/34695
16470 * Makefile.in (c-opts.o): Depend on c-tree.h.
16471 * c-common.c: Move down include of diagnostic.h.
16472 (done_lexing, c_cpp_error): New.
16473 * c-common.h (done_lexing): Declare.
16474 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
16475 (parse_in).
16476 * c-opts.c: Include c-tree.h.
16477 (c_common_init_options): Set preprocessor error callback.
16478 (c_common_handle_option): Do not set preprocessor
16479 inhibit_warnings, warnings_are_errors, warn_system_headers,
16480 pedantic_errors or inhibit_warnings flags.
16481 (c_common_post_options): Do not check cpp_errors (parse_in).
16482 (c_common_finish): Do not output dependencies if there were
16483 errors. Do not check return value of cpp_finish.
16484 * c-ppoutput.c (pp_file_change): Set input_location.
16485 * c-tree.h (c_cpp_error): Declare.
16486 * diagnostic.c (diagnostic_set_info_translated): Also initialize
16487 override_column.
16488 (diagnostic_build_prefix): Check override_column.
16489 * diagnostic.h (diagnostic_info): Add override_column field.
16490 (diagnostic_override_column): Define.
16491
2ec5deb5
PB
164922009-03-28 Paolo Bonzini <bonzini@gnu.org>
16493
ba20e309
UB
16494 * c-common.c (c_expand_expr, c_staticp): Remove.
16495 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
16496 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
16497 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
16498 * c-gimplify.c (gimplify_compound_literal_expr,
16499 optimize_compound_literals_in_ctor): Remove.
16500 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
16501 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
16502 * c-semantics.c (emit_local_var): Remove.
16503
16504 * langhooks-def.h (lhd_expand_expr): Remove.
16505 * langhooks.c (lhd_expand_expr): Remove.
16506 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
16507
16508 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
16509 handling from c-semantics.c; don't call into langhook.
16510 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
16511 * gimplify.c (gimplify_compound_literal_expr,
16512 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
16513 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
16514 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
16515 as was done in c-gimplify.c.
16516 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
16517 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
16518 Move from c-common.h.
16519 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
16520
16521 * tree.c (staticp): Do not call langhook.
16522 * langhooks.c (lhd_staticp): Delete.
16523 * langhooks-def.h (lhd_staticp): Delete prototype.
16524 (LANG_HOOKS_STATICP): Delete.
16525 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
16526
ba20e309
UB
16527 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
16528 instead of DECL_STMTs.
2ec5deb5 16529
928c19bb
JM
165302009-03-29 Joseph Myers <joseph@codesourcery.com>
16531
16532 PR c/456
16533 PR c/5675
16534 PR c/19976
16535 PR c/29116
16536 PR c/31871
16537 PR c/35198
16538 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
16539 void_type_node.
16540 (fold_call_expr): Return a NOP_EXPR from folding rather than the
16541 contained expression.
ba20e309 16542 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
16543 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
16544 conditional expressions for C.
16545 (decl_constant_value_for_optimization): Move from
ba20e309 16546 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
16547 whether optimizing and that the expression is a VAR_DECL not of
16548 array type instead of doing such checks in the caller. Do not
16549 check pedantic. Call gcc_unreachable for C++.
16550 * c-common.def (C_MAYBE_CONST_EXPR): New.
16551 * c-common.h (c_fully_fold, c_save_expr,
16552 decl_constant_value_for_optimization): New prototypes.
16553 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
16554 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
16555 EXPR_INT_CONST_OPERANDS): Define.
16556 * c-convert.c (convert): Strip nops from expression.
16557 * c-decl.c (groktypename): Take extra parameters expr and
16558 expr_const_operands. Update call to grokdeclarator.
16559 (start_decl): Update call to grokdeclarator. Add statement for
16560 expressions used in type of decl.
16561 (grokparm): Update call to grokdeclarator.
16562 (push_parm_decl): Update call to grokdeclarator.
16563 (build_compound_literal): Add parameter non_const and build a
16564 C_MAYBE_COSNT_EXPR if applicable.
16565 (grokdeclarator): Take extra parameters expr and
16566 expr_const_operands. Track expressions used in declaration
16567 specifiers and declarators. Fold array sizes and track whether
16568 they are constant expressions and whether they are integer
16569 constant expressions.
16570 (parser_xref_tag): Set expr and expr_const_operands fields in
16571 return value.
16572 (grokfield): Update call to grokdeclarator.
16573 (start_function): Update call to grokdeclarator.
16574 (build_null_declspecs): Set expr and expr_const_operands fields in
16575 return value.
16576 (declspecs_add_type): Handle expressions in typeof specifiers.
16577 * c-parser.c (c_parser_declspecs): Set expr and
16578 expr_const_operands fields for declaration specifiers.
16579 (c_parser_enum_specifier): Likewise.
16580 (c_parser_struct_or_union_specifier): Likewise.
16581 (c_parser_typeof_specifier): Likewise. Update call to
16582 groktypename. Fold expression as needed. Return expressions with
16583 type instead of adding statements.
16584 (c_parser_attributes): Update calls to c_parser_expr_list.
16585 (c_parser_statement_after_labels): Fold expression before passing
16586 to objc_build_throw_stmt.
16587 (c_parser_condition): Fold expression.
16588 (c_parser_asm_operands): Fold expression.
16589 (c_parser_conditional_expression): Use c_save_expr. Update call
16590 to build_conditional_expr.
16591 (c_parser_alignof_expression): Update call to groktypename.
16592 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
16593 original_code. Fold expression argument of va_arg. Create
16594 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
16595 argument to va_arg. Update calls to groktypename. Fold array
16596 index for offsetof. Verify that first argument to
16597 __builtin_choose_expr has integer type.
16598 (c_parser_postfix_expression_after_paren_type): Update calls to
16599 groktypename and build_compound_literal. Handle expressions with
16600 side effects in type name.
16601 (c_parser_postfix_expression_after_primary): Update call to
16602 c_parser_expr_list. Set original_code for calls to
16603 __builtin_constant_p.
16604 (c_parser_expr_list): Take extra parameter fold_p. Fold
16605 expressions if requested.
16606 (c_parser_objc_type_name): Update call to groktypename.
16607 (c_parser_objc_synchronized_statement): Fold expression.
16608 (c_parser_objc_receiver): Fold expression.
16609 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
16610 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
16611 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
16612 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
16613 (struct c_typespec): Add elements expr and expr_const_operands.
16614 (struct c_declspecs): Add elements expr and expr_const_operands.
16615 (groktypename, build_conditional_expr, build_compound_literal):
16616 Update prototypes.
16617 (in_late_binary_op): Declare.
16618 * c-typeck.c (note_integer_operands): New function.
16619 (in_late_binary_op): New variable.
16620 (decl_constant_value_for_broken_optimization): Move to c-common.c
16621 and rename to decl_constant_value_for_optimization.
16622 (default_function_array_conversion): Do not strip nops.
16623 (default_conversion): Do not call
16624 decl_constant_value_for_broken_optimization.
16625 (build_array_ref): Do not fold result.
16626 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
16627 result when operand is a VLA.
16628 (c_expr_sizeof_type): Update call to groktypename. Handle
16629 expressions included in type name. Use C_MAYBE_CONST_EXPR for
16630 result when operand names a VLA type.
16631 (build_function_call): Update call to build_compound_literal.
16632 Only fold result for calls to __builtin_* functions. Strip
16633 NOP_EXPR from INTEGER_CST returned from such functions. Fold
16634 the function designator.
16635 (convert_arguments): Fold arguments. Update call to
16636 convert_for_assignment.
16637 (build_unary_op): Handle increment and decrement of
16638 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
16639 decrement earlier. Fold operand of increment and decrement.
16640 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
16641 built for integer operand. Wrap returns that are INTEGER_CSTs
16642 without being integer constant expressions or that have integer
16643 constant operands without being INTEGER_CSTs.
16644 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
16645 (build_conditional_expr): Add operand ifexp_bcp. Track whether
16646 result is an integer constant expression or can be used in
16647 unevaluated parts of one and avoid folding and wrap as
16648 appropriate. Fold operands before possibly doing -Wsign-compare
16649 warnings.
16650 (build_compound_expr): Wrap result for C99 if operands can be used
16651 in integer constant expressions.
16652 (build_c_cast): Update call to digest_init. Do not ignore
16653 overflow from casting floating-point constants to integers. Wrap
16654 results that could be confused with integer constant expressions,
16655 null pointer constants or floating-point constants.
16656 (c_cast_expr): Update call to groktypename. Handle expressions
16657 included in type name.
16658 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
16659 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
16660 Update calls to convert_for_assignment.
16661 (convert_for_assignment): Take new parameter
16662 null_pointer_constant. Do not strip nops or call
16663 decl_constant_value_for_broken_optimization. Set
16664 in_late_binary_op for conversions to boolean.
16665 (store_init_value): Update call to digest_init.
16666 (digest_init): Take new parameter null_pointer_constant. Do not
16667 call decl_constant_value_for_broken_optimization. pedwarn for
16668 initializers not constant expressions. Update calls to
16669 convert_for_assignment.
16670 (constructor_nonconst): New.
16671 (struct constructor_stack): Add nonconst element.
16672 (really_start_incremental_init, push_init_level, pop_init_level):
16673 Handle constructor_nonconst and nonconst element.
16674 (set_init_index): Call constant_expression_warning for array
16675 designators.
16676 (output_init_element): Fold value. Set constructor_nonconst as
16677 applicable. pedwarn for initializers not constant expressions.
16678 Update call to digest_init. Call constant_expression_warning
16679 where constant initializers are required.
16680 (process_init_element): Use c_save_expr.
16681 (c_finish_goto_ptr): Fold expression.
16682 (c_finish_return): Fold return value. Update call to
16683 convert_for_assignment.
16684 (c_start_case): Fold switch expression.
16685 (c_process_expr_stmt): Fold expression.
16686 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 16687 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
16688 (build_binary_op): Track whether results are integer constant
16689 expressions or may occur in such, disable folding and wrap results
16690 as applicable. Fold operands for -Wsign-compare warnings unless
16691 in_late_binary_op.
16692 (c_objc_common_truthvalue_conversion): Handle results folded to
16693 integer constants that are not integer constant expressions.
16694 * doc/extend.texi: Document when typeof operands are evaluated,
16695 that condition of __builtin_choose_expr is an integer constant
16696 expression, and more about use of __builtin_constant_p in
16697 initializers.
16698
5babbcc0
RG
166992009-03-29 Richard Guenther <rguenther@suse.de>
16700
16701 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16702 propagate addresses of array references.
16703
0340f2ba
SB
167042009-03-29 Steven Bosscher <steven@gcc.gnu.org>
16705
16706 * regmove.c (perhaps_ends_bb_p): Remove.
16707 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
16708 from INSN and check that the main loop stays within that basic block.
16709 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
16710 (regmove_forward_pass): Split out from regmove_optimize. Use
16711 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
16712 (regmove_backward_pass): Split out from regmove_optimize. Use
16713 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
16714 (regmove_optimize): Simplify.
16715
eeae74a1
L
167162009-03-29 H.J. Lu <hongjiu.lu@intel.com>
16717
16718 PR target/39545
16719 * config/i386/i386.c (classify_argument): Ignore flexible array
16720 member in struct and warn ABI change.
16721
a24078b2
L
167222009-03-29 H.J. Lu <hongjiu.lu@intel.com>
16723
16724 * config/i386/i386-protos.h (ix86_agi_dependent): New.
16725
16726 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
16727 (ix86_adjust_cost): Updated.
16728
a8da523f
JH
167292009-03-29 Jan Hubicka <jh@suse.cz>
16730
16731 PR middle-end/28850
16732 * tree-pass.h (pass_cleanup_eh): New function.
16733 (remove_unreachable_regions): Break code handling RTL
16734 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
16735 that can not be reached by runtime.
16736 (can_be_reached_by_runtime): New function.
16737 (label_to_region_map): New function.
16738 (num_eh_regions): New function.
16739 (rtl_remove_unreachable_regions): New function.
16740 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
16741 (remove_eh_region): New function.
16742 * except.h: Include sbitmap and vecprim.
16743 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
16744 num_eh_regions): Declare.
16745 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 16746 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
16747 * tree-eh.c (tree_remove_unreachable_handlers): New function.
16748 (tree_empty_eh_handler_p): New function.
16749 (cleanup_empty_eh): New function.
16750 (cleanup_eh): New function.
16751 (pass_cleanup_eh): New function.
16752
98f358e5
JH
167532009-03-29 Jan Hubicka <jh@suse.cz>
16754
16755 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
16756 for removed regions.
16757
13a9fa44
JH
167582009-03-29 Jan Hubicka <jh@suse.cz>
16759
16760 * except.c (dump_eh_tree): Dump all datastructures.
16761
e38cf733
JH
167622009-03-29 Jan Hubicka <jh@suse.cz>
16763
16764 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
16765 (duplicate_eh_regions_1): Likewise.
16766 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
16767 vector; call EH verification.
16768 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16769 Be ready for region being removed.
16770
12802c2b
JH
167712009-03-29 Jan Hubicka <jh@suse.cz>
16772
16773 * bitmap.c (bitmap_last_set_bit): New function.
16774 * bitmap.h (bitmap_last_set_bit): Declare.
16775
4ea80a41
DA
167762009-03-29 David Ayers <ayers@fsfe.org>
16777
16778 PR objc/27377
16779 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
16780 by calling objc_compare_types and surpress warnings about
16781 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 16782
4ea80a41 167832009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
16784
16785 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
16786 call initialize_inline_failed.
16787 (initialize_inline_failed): Move it from here ...
16788 * cgraph.c (initialize_inline_failed): ... to here.
16789 (cgraph_create_edge): Call initialize_inline_failed rather than
16790 setting inline_failed directly.
16791
7fb0ee07
BE
167922009-03-29 Ben Elliston <bje@au.ibm.com>
16793
16794 PR target/32542
16795 * sysv4.opt (msdata): Improve comment.
16796 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
16797 * sysv4.h (SVR4_ASM_SPEC): Likewise.
16798
0be77bf2
BE
167992009-03-29 Ben Elliston <bje@au.ibm.com>
16800
16801 PR target/30451
16802 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
16803 load and store attributes.
16804
593812b6
BE
168052009-03-29 Ben Elliston <bje@au.ibm.com>
16806
16807 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
16808 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
16809 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
16810 * doc/extend.texi (X86 Built-in Functions): Add index entries for
16811 __builtin_infq and __builtin_huge_valq.
16812
8272d11d
AS
168132009-03-28 Anatoly Sokolov <aesok@post.ru>
16814
16815 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
16816 atmega8m1 devices.
16817 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16818 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
16819
74fe548b
XDL
168202009-03-28 Xinliang David Li <davidxl@google.com>
16821
2ba9daa7 16822 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
16823 (do_dbg_cnt): New function.
16824
33977f81
JH
168252009-03-28 Jan Hubicka <jh@suse.cz>
16826
16827 Merge from pretty-ipa:
16828
16829 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 16830
33977f81
JH
16831 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16832 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
16833 * passes.c (function_called_by_processed_nodes_p): New.
16834 * ipa-pure-const.c (check_call): Fix handling of operands.
16835 (analyze_function): Dump debug output for skipped bodies.
16836 (local_pure_const): Use function_called_by_processed_nodes_p.
16837 * dwarf2out.c (reference_to_unused): Use output.
16838 * passes.c (do_per_function_toporder): Likewise.
16839
16840 2008-11-12 Jan Hubicka <jh@suse.cz>
16841
16842 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
16843 * ipa-pure-const.c (funct_state_d): Add can throw field; make
16844 state_set_in_source enum
16845 (check_decl): Ignore memory tags; do not set fake looping flags;
16846 dump diagnostics.
16847 (check_operand, check_tree, check_rhs_var, check_lhs_var,
16848 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
16849 (check_call, analyze_function): Rewrite.
16850 (check_stmt): New.
16851 (add_new_function): Update call of analyze_function.
16852 (generate_summary): Add call of analyze_function.
16853 (propagate): Propagate can_throw; handle state_set_in_source correctly.
16854 (local_pure_const): New function.
16855 (pass_local_pure_const): New pass.
16856 * ipa-inline.c (inline_transform): Set after_inlining.
16857 * tree-eh.c (stmt_can_throw_external): New.
16858 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
16859 work with aliasing built.
16860 * tree-flow.h (stmt_can_throw_external): New.
16861 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
16862 and local pure/const pass in early and late optimization queue.
ba20e309 16863
617f3897
MJ
168642009-03-28 Martin Jambor <mjambor@suse.cz>
16865
16866 * fold-const.c (get_pointer_modulus_and_residue): New parameter
16867 allow_func_align.
16868 (fold_binary): Allow function decl aligment consideration is the
16869 second argument is integer constant one.
16870 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
16871 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
16872 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
16873
fe89fbc5
JH
168742009-03-28 Jan Hubicka <jh@suse.cz>
16875
16876 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
16877 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
16878 * function.h (rtl_data): Add nothrow flag.
16879 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
16880 set DECL_NOTHROW for AVAILABLE functions.
16881
574872ff
JJ
168822009-03-28 Jakub Jelinek <jakub@redhat.com>
16883
b3bf8855
JJ
16884 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
16885 following vector keyword has expansion starting with pixel or bool
16886 keyword, expand vector to __vector and pixel or bool to __pixel or
16887 __bool.
16888
574872ff
JJ
16889 PR c++/39554
16890 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
16891 warn_if_disallowed_function_p): Removed.
16892 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
16893 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
16894 warning_if_disallowed_function_p.
16895 * flags.h (warn_if_disallowed_function_p,
16896 warn_disallowed_functions): Removed.
16897 * common.opt (Wdisallowed-function-list=): Removed.
16898 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
16899
b005da11
RG
169002009-03-28 Richard Guenther <rguenther@suse.de>
16901
16902 PR tree-optimization/38723
16903 * tree-ssa-pre.c (compute_avail): Add all default definitions to
16904 the entry block.
16905
1de812a6
JH
169062009-03-28 Jan Hubicka <jh@suse.cz>
16907
16908 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
16909 test introduced by my previous patch.
16910
fbb789d4
RG
169112009-03-28 Richard Guenther <rguenther@suse.de>
16912
16913 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
16914 the PHIs value undefined.
16915
6f1873a1
JH
169162009-03-28 Jan Hubicka <jh@suse.cz>
16917
16918 * tree-pass.h (pass_fixup_cfg): New pass.
16919 * ipa-inline.c (inline_transform): Set
16920 always_inline_functions_inlined/after_inlining.
16921 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
16922 (pass_fixup_cfg): New pass.
16923 * passes.c (init_optimization_passes): Add fixup_cfg.
16924
17021bc8
RG
169252009-03-28 Richard Guenther <rguenther@suse.de>
16926
16927 PR tree-optimization/38458
16928 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
16929 argument use the arguments copy-of value.
16930
e8114fba
RG
169312009-03-28 Richard Guenther <rguenther@suse.de>
16932
16933 PR tree-optimization/38180
16934 * tree-ssa-ccp.c (get_default_value): Simplify.
16935 (likely_value): Likewise.
16936 (surely_varying_stmt_p): Properly handle VOP case.
16937 (ccp_initialize): Likewise.
16938 (ccp_fold): Handle propagating through *&.
16939 (fold_const_aggregate_ref): Also handle decls.
16940
257eb6e3
JH
169412009-03-28 Jan Hubicka <jh@suse.cz>
16942
16943 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16944 * cgraph.h (cgraph_node): Likewise.
16945 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
16946 (cgraph_reset_node): Use process flag.
16947 (cgraph_mark_functions_to_output): Likewise.
16948 (cgraph_expand_function): Likewise.
16949 (cgraph_expand_all_functions): Likewise.
16950 (cgraph_output_in_order): Likewise.
16951 * dwarf2out.c (reference_to_unused): Likewise.
16952 * passes.c do_per_function_toporder): Likewise.
16953
61a05df1
JH
169542009-03-28 Jan Hubicka <jh@suse.cz>
16955
16956 Bring from lto-branch:
ba20e309 16957
61a05df1
JH
16958 2008-09-03 Doug Kwan <dougkwan@google.com>
16959
16960 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
16961 enums instead of reason strings.
16962 * cgraph.c (cgraph_create_edge): Same.
16963 (cgraph_inline_failed_string): New function.
16964 * cgraph.h (cgraph_inline_failed_t): New enum type.
16965 (cgraph_inline_failed_string): New prototype.
16966 (struct cgraph_edge): Change type of INLINED_FAILED from constant
16967 char pointer to cgraph_inline_failed_t.
16968 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
16969 (cgraph_default_inline_p): Ditto.
60839f5d 16970 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
16971 to cgraph_inline_failed_t pointer.
16972 * cif-code.def: New file.
16973 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
16974 reason string.
16975 (cgraph_check_inline_limits): Change type of REASON to pointer to
16976 cgraph_inline_failed_t. Replace reason strings with enums.
16977 (cgraph_default_inline_p): Ditto.
16978 (cgraph_recursive_inlining_p): Ditto.
16979 (update_caller_keys): Change type of FAILED_REASON to
16980 cgraph_inline_failed_t.
16981 (cgraph_set_inline_failed): Change type of REASON to pointer to
16982 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
16983 convert enums to strings for text output.
16984 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
16985 to be of type cgraph_inline_failed_t. Replace reason strings with
16986 enums. Call cgraph_inline_failed_string to covert enums
16987 to strings for text output.
16988 (cgraph_decide_inlining): Replace reason strings with enums.
16989 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
16990 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
16991 for text output.
16992 * tree-inline.c (expand_call_inline): Change type of REASON
16993 to cgraph_inline_failed_t. Replace reason strings with enums.
16994 Call cgraph_inline_failed_string for text output.
16995 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
16996 (cgraph.o): Ditto.
16997
144e8aac
JH
169982009-03-28 Jan Hubicka <jh@suse.cz>
16999
17000 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
17001 cgraph_clone_node): Remove master clone handling.
17002 (cgraph_is_master_clone, cgraph_master_clone): Remove.
17003 * cgraph.h (master_clone): Remove.
17004 (cgraph_is_master_clone, cgraph_master_clone): Remove.
17005 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
17006 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
17007
4a371c8d
JH
170082009-03-28 Jan Hubicka <jh@suse.cz>
17009
17010 * cgraph.c (cgraph_function_body_availability): Functions declared
17011 inline are always safe to assume that it is not going to be replaced.
17012
6cdb0ee3
RG
170132009-03-28 Richard Guenther <rguenther@suse.de>
17014
17015 PR tree-optimization/38513
17016 * tree-ssa-pre.c (eliminate): Remove redundant stores.
17017 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
17018 EXC_PTR_EXPR and FILTER_EXPR.
17019 (get_ref_from_reference_ops): Likewise.
17020
8ca1fd76
RG
170212009-03-28 Richard Guenther <rguenther@suse.de>
17022
17023 PR tree-optimization/38968
17024 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
17025 Use FLOOR_MOD_EXPR to compute misalignment.
17026
a254e44d
RG
170272009-03-28 Richard Guenther <rguenther@suse.de>
17028
17029 PR tree-optimization/37795
17030 * tree.h (combine_comparisons): Declare.
17031 * fold-const.c (combine_comparisons): Export.
17032 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
17033 comparisons.
17034 (ifcombine_iforif): Use combine_comparisons.
17035
a8ee227c
JH
170362009-03-28 Jan Hubicka <jh@suse.cz>
17037
17038 * tree-eh.c (inlinable_call_p): New function.
17039 (make_eh_edges): Use it.
17040 (verify_eh_edges): Use it.
17041 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
17042 * except.c (reachable_next_level): Add inlinable_function argument
17043 (sjlj_find_directly_reachable_regions): Update.
17044 (add_reachable_handler): Do not set saw_any_handlers.
17045 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
17046 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
17047 Add new inlinable call parameter.
17048 (can_throw_internal, can_throw_external): Update.
17049 * except.h (can_throw_internal_1, can_throw_external_1,
17050 foreach_reachable_handler): Update declaration.
17051
52c0e446
JM
170522009-03-28 Joseph Myers <joseph@codesourcery.com>
17053
17054 * config/arm/t-arm-coff, config/h8300/coff.h,
17055 config/i386/i386-aout.h, config/i386/i386-coff.h,
17056 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
17057 config/pdp11/2bsd.h, config/rs6000/aix41.h,
17058 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
17059 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
17060 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
17061 sys-types.h: Remove.
17062 * Makefile.in: Remove protoize and fixproto support and references
17063 in comments.
17064 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
17065 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
17066 Remove.
17067 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
17068 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
17069 unprotoize$(exeext).
17070 (rest.encap): Don't depend on $(STMP_FIXPROTO)
17071 (.PHONY): Don't depend on proto.
17072 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
17073 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
17074 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
17075 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
17076 build/gen-protos.o, build/scan.o, xsys-protos.h,
17077 build/fix-header$(build_exeext), build/fix-header.o,
17078 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
17079 stmp-install-fixproto): Remove.
17080 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
17081 SYSCALLS.c or fixproto files.
17082 (install-common): Don't install protoize.
17083 (install-headers-tar, install-headers-cpio, install-headers-cp):
17084 Don't depend on $(STMP_FIXPROTO).
17085 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
17086 install fixproto files or write out fixproto settings.
17087 (uninstall): Don't uninstall protoize.
17088 * config.gcc (use_fixproto): Remove.
17089 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
17090 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
17091 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
17092 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
17093 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
17094 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
17095 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
17096 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
17097 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
17098 * config/t-vxworks (STMP_FIXPROTO): Remove.
17099 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
17100 STMP_FIXPROTO): Remove.
17101 * config.in, configure: Regenerate.
17102 * crtstuff.c (gid_t, uid_t): Don't undefine.
17103 * doc/install.texi: Change m68k-coff to m68k-elf in example.
17104 (arm-*-coff, arm-*-aout: Remove target entries.
17105 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
17106 Remove mention of AIX 4.1.
17107 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
17108 * doc/invoke.texi (Running Protoize): Remove.
17109 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
17110 (Protoize Caveats): Remove.
17111 * tsystem.h: Update comments on headers assumed to exist.
17112
20a07f44
VM
171132009-03-27 Vladimir Makarov <vmakarov@redhat.com>
17114
17115 * genautomata.c: Add a new year to the copyright. Add a new
17116 reference.
17117 (struct insn_reserv_decl): Add comments for member bypass_list.
17118 (find_bypass): Remove.
17119 (insert_bypass): New.
17120 (process_decls): Use insert_bypass.
17121 (output_internal_insn_latency_func): Output all bypasses with the
17122 same input insn in one switch case.
17123
17124 * rtl.def (define_bypass): Describe bypass choice.
17125 * doc/md.texi (define_bypass): Ditto.
17126
3a0d06c1
RB
171272009-03-27 Richard Guenther <rguenther@suse.de>
17128
17129 * gimplify.c (mark_addressable): Export.
17130 * tree-flow.h (mark_addressable): Declare.
17131 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
17132 * tree-ssa.c (verify_phi_args): Verify that address taken
17133 variables have TREE_ADDRESSABLE set.
17134
171352009-03-27 Richard Guenther <rguenther@suse.de>
17136
17137 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
17138 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
17139 Do not mark decls TREE_ADDRESSABLE.
17140 (build_fold_addr_expr): Adjust.
17141 (fold_addr_expr): Remove.
17142 (fold_unary): Use build_fold_addr_expr.
17143 (fold_comparison): Likewise.
17144 (split_address_to_core_and_offset): Likewise.
17145 * coverage.c (tree_coverage_counter_addr): Mark the array decl
17146 TREE_ADDRESSABLE.
17147 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
17148 (gimplify_modify_expr_to_memcpy): Mark source and destination
17149 addressable.
17150 * omp-low.c (create_omp_child_function): Mark the object decl
17151 TREE_ADDRESSABLE.
17152 (lower_rec_input_clauses): Mark the var we take the address of
17153 TREE_ADDRESSABLE.
17154 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
17155
2ac26e15
L
171562009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17157
17158 PR middle-end/39315
17159 * cfgexpand.c (expand_one_stack_var_at): Change alignment
17160 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
17161
472c7fbd
RG
171622009-03-27 Richard Guenther <rguenther@suse.de>
17163
17164 PR tree-optimization/39120
17165 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
17166 constraints.
17167 (handle_lhs_call): Process return constraints. Add escape
17168 constraints if necessary.
17169 (handle_const_call): Fill out return constraints. Make nested
17170 case more precise. Avoid consttmp if possible.
17171 (handle_pure_call): Fill out return constraints. Avoid
17172 callused if possible.
17173 (find_func_aliases): Simplify call handling.
17174
171752009-03-27 Richard Guenther <rguenther@suse.de>
17176
17177 PR tree-optimization/39120
17178 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
17179 as a representative.
17180 (solve_graph): Do propagate CALLUSED.
17181 (handle_pure_call): Use a scalar constraint from CALLUSED for
17182 the return value.
17183 (find_what_p_points_to): CALLUSED shall not appear in poins-to
17184 solutions.
17185
d9223014
L
171862009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17187
17188 PR c/39323
17189 * c-common.c (handle_aligned_attribute): Properly check alignment
17190 overflow. Use (1U << i) instead of (1 << i).
17191
ba20e309 17192 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
17193
17194 * expr.h (get_mem_align_offset): Updated.
17195
17196 * tree.h (tree_decl_common): Change align to "unsigned int" and
17197 move it before pointer_alias_set.
17198
689b689c
L
171992009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17200 Jakub Jelinek <jakub@redhat.com>
17201
17202 PR target/38034
17203 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
17204 gr_register_operand with gr_reg_or_0_operand.
17205 (cmpxchg_rel_di): Likewise.
17206 (sync_lock_test_and_set<mode>): Likewise.
17207
c619e982
L
172082009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17209
17210 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
17211 (true_regnum): Likewise.
17212
17213 * rtlanal.c (subreg_info): Moved to ...
17214 * rtl.h (subreg_info): Here. New.
17215 (subreg_get_info): New.
17216
17217 * rtlanal.c (subreg_get_info): Make it extern.
17218
51212b32
L
172192009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17220
17221 PR target/39472
17222 * config/i386/i386.c (ix86_abi): New.
17223 (override_options): Handle -mabi=.
ba20e309 17224 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
17225 (ix86_call_abi_override): Likewise.
17226 (init_cumulative_args): Likewise.
17227 (function_arg_advance): Likewise.
17228 (function_arg_64): Likewise.
17229 (function_arg): Likewise.
17230 (ix86_pass_by_reference): Likewise.
17231 (ix86_function_value_regno_p): Likewise.
17232 (ix86_build_builtin_va_list_abi): Likewise.
17233 (setup_incoming_varargs_64): Likewise.
17234 (is_va_list_char_pointer): Likewise.
17235 (ix86_init_machine_status): Likewise.
ba20e309 17236 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
17237 (ix86_function_type_abi): Return enum calling_abi. Rewrite
17238 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 17239 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
17240 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
17241 with ix86_abi.
17242 (ix86_fn_abi_va_list): Updated.
17243
17244 * config/i386/i386.h (ix86_abi): New.
17245 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
17246 (CONDITIONAL_REGISTER_USAGE): Likewise.
17247 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
17248 (machine_function): Likewise.
17249
17250 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
17251 with ix86_abi.
17252 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
17253 (STACK_BOUNDARY): Likewise.
17254 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
17255
17256 * config/i386/i386.opt (mabi=): New.
17257
17258 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
17259 return enum calling_abi.
17260 (ix86_function_type_abi): Likewise.
17261 (ix86_function_abi): Removed.
17262
17263 * doc/invoke.texi: Document -mabi= option for x86.
17264
7338ea63
KG
172652009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17266
17267 * builtins.c (real_dconstp): Delete.
17268 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
17269
68599f33
DS
172702009-03-27 Dodji Seketeli <dodji@redhat.com>
17271 Jakub Jelinek <jakub@redhat.com>
17272
17273 PR debug/37959
17274 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
17275 (gen_subprogram_die): When a function is explicit, generate the
17276 DW_AT_explicit attribute.
17277 * langhooks.h (struct lang_hooks_for_decls): Add
17278 function_decl_explicit_p langhook.
17279 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
17280 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
17281
9f5e9983
JJ
172822009-03-27 Jakub Jelinek <jakub@redhat.com>
17283
64d7685c
JJ
17284 * builtins.c (fold_builtin_memory_op): Optimize memmove
17285 into memcpy if we can prove source and destination don't overlap.
17286
9f5e9983
JJ
17287 * tree-inline.c: Include gt-tree-inline.h.
17288 (clone_fn_id_num): New variable.
17289 (clone_function_name): New function.
17290 (tree_function_versioning): Use it.
17291 * Makefile.in (GTFILES): Add tree-inline.c.
17292
e54d52a8
MM
172932009-03-27 Mark Mitchell <mark@codesourcery.com>
17294
17295 * BASE-VER: Change to 4.5.0.
17296
e9d51dc6
XDL
172972009-03-27 Xinliang David Li <davidxl@google.com>
17298
17299 PR tree-optimization/39557
17300 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
17301
4577cea1
XDL
173022009-03-27 Xinliang David Li <davidxl@google.com>
17303
17304 PR tree-optimization/39548
2ba9daa7 17305 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
17306 candidate check.
17307
0f7464f4
L
173082009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17309
17310 * c-common.c (pointer_int_sum): Use %wd on return from
17311 tree_low_cst.
17312
a8847a7f
L
173132009-03-27 H.J. Lu <hongjiu.lu@intel.com>
17314
17315 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
17316 on return from tree_low_cst.
17317
b0957daf
AP
173182009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
17319
17320 PR c++/36799
ba20e309
UB
17321 * ginclude/stdarg.h (va_copy): Define also for
17322 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 17323
a5f805df
MLI
173242009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17325
17326 PR c++/35652
17327 * builtins.h (c_strlen): Do not warn here.
17328 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
17329 * c-common.c (pointer_int_sum): Take an explicit location.
17330 Warn about offsets out of bounds.
17331 * c-common.h (pointer_int_sum): Adjust declaration.
17332
6f401211
RW
173332009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17334
a5f805df
MLI
17335 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
17336 markup glitch.
6f401211 17337
5a59b39e
JJ
173382009-03-26 Jakub Jelinek <jakub@redhat.com>
17339
17340 PR c++/39554
17341 * opts.c (warn_if_disallowed_function_p): Don't assume
17342 get_callee_fndecl must return non-NULL.
17343
d5f89b53
VM
173442009-03-26 Vladimir Makarov <vmakarov@redhat.com>
17345
17346 PR rtl-optimization/39522
17347 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
17348 when reg_reloaded_valid is set.
17349
61238a79
UW
173502009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17351
17352 * config/spu/divv2df3.c: New file.
17353 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
17354 (DPBIT_FUNCS): Filter out _div_df.
17355
03f8829b
BS
173562009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
17357
17358 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
17359 a jump insn, count that jump in the distance to the loop start.
17360
9fdcdc74
KK
173612009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
17362
17363 PR target/39523
17364 * config/sh/sh.c (calc_live_regs): Fix condition for global
17365 registers except PIC_OFFSET_TABLE_REGNUM.
17366
46994828
KT
173672009-03-25 Kai Tietz <kai.tietz@onevision.com>
17368
17369 PR/39518
17370 * doc/invoke.texi (-mconsole): New.
17371 (-mcygwin): New.
17372 (-mno-cygwin): New.
17373 (-mdll): New.
17374 (-mnop-fun-dllimport): New.
17375 (-mthread): New.
17376 (-mwin32): New.
17377 (-mwindows): New.
17378 (sub section "i386 and x86-64 Windows Options"): New.
17379
60839f5d 173802009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
17381
17382 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
17383 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
17384
ae560440
RG
173852009-03-25 Richard Guenther <rguenther@suse.de>
17386
17387 PR middle-end/39497
17388 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
17389 of -Wno-error.
17390
cd510f15
AM
173912009-03-25 Andrey Belevantsev <abel@ispras.ru>
17392
17393 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
17394 neither of haifa/selective schedulers are working.
17395
44ab0f0e
RW
173962009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17397
17398 * doc/invoke.texi (Debugging Options): Fix description of
17399 -fno-merge-debug-strings.
17400
ad9646c7
HPN
174012009-03-24 Hans-Peter Nilsson <hp@axis.com>
17402
e6142656
HPN
17403 * config/cris/libgcc.ver: New version-script.
17404 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
17405
ad9646c7
HPN
17406 * configure.ac <GAS features, nop mnemonic>: Add pattern
17407 crisv32-*-* for "nop".
ba20e309 17408 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
17409 * configure: Regenerate.
17410
09ac4473
IR
174112009-03-24 Ira Rosen <irar@il.ibm.com>
17412
17413 PR tree-optimization/39529
17414 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
17415 mark_sym_for_renaming for the tag copied to the new vector
17416 pointer.
17417
d94a427e
AL
174182009-03-24 Arthur Loiret <aloiret@debian.org>
17419
ba20e309 17420 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
17421 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
17422 EXTRA_SPEC_FUNCTIONS.
17423 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
17424 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
17425 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
17426 -march and -mtune options.
17427
60839f5d 174282009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
17429
17430 * config/m68k/t-rtems: Add m5329 multilib.
17431
603f5959
DS
174322009-03-24 Dodji Seketeli <dodji@redhat.com>
17433 Jakub Jelinek <jakub@redhat.com>
17434
17435 PR debug/39524
17436 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
17437 nodes.
17438
c5cdb03f
JJ
174392009-03-23 Jakub Jelinek <jakub@redhat.com>
17440
17441 PR c/39495
17442 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
17443 instead of c_parser_expression_conv, if original_code isn't one of the
17444 4 allowed comparison codes, fail.
17445
3691626c
RG
174462009-03-23 Richard Guenther <rguenther@suse.de>
17447
17448 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
17449 * tree.h (struct tree_type): Likewise.
17450 * reload.h (struct insn_chain): Likewise.
17451 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
17452 * function.h (struct function): Likewise.
17453 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
17454
88ccb72a
JJ
174552009-03-23 Jakub Jelinek <jakub@redhat.com>
17456
17457 PR tree-optimization/39516
17458 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
17459
60839f5d 174602009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 17461
2ba9daa7 17462 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
17463 should be set true if BITS_PER_WORD of target is bigger than 32
17464
f82162f8
HPN
174652009-03-22 Hans-Peter Nilsson <hp@axis.com>
17466
17467 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
17468 Translate -B-options to -rpath-link. Correct existing
17469 rpath-link and conditionalize on !nostdlib.
17470
048fd785
RW
174712009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17472
17473 * doc/extend.texi (Function Attributes, Variable Attributes):
17474 Fix typos.
17475 * doc/invoke.texi (Debugging Options, Optimize Options)
17476 (i386 and x86-64 Options, MCore Options): Likewise.
17477
6e75c1a9
JJ
174782009-03-20 Jakub Jelinek <jakub@redhat.com>
17479
17480 PR debug/37890
17481 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
17482 it for block local namespace aliases.
17483 (gen_decl_die): Pass context_die to gen_namespace_die.
17484
ea1199ee
JJ
174852009-03-19 Jakub Jelinek <jakub@redhat.com>
17486
17487 PR c/39495
17488 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
17489 minimum or maximum value.
17490
58929c10
AO
174912009-03-19 Alexandre Oliva <aoliva@redhat.com>
17492
17493 * reginfo.c (globalize_reg): Recompute derived reg sets.
17494
60839f5d 174952009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
17496
17497 PR target/39063
17498 * libgcc2.c (mprotect): Do not use signed arguments for
17499 VirtualProtect, use DWORD arguments. Also fix the 'may
17500 be used uninitialized' warning for the np variable.
17501
f57c2f04
JJ
175022009-03-19 Jakub Jelinek <jakub@redhat.com>
17503
17504 PR target/39496
17505 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
17506 functions using regparm calling conventions when not optimizing.
17507 (ix86_function_sseregparm): Similarly for sseregparm calling
17508 conventions.
17509
9e517d61
LF
175102009-03-19 Li Feng <nemokingdom@gmail.com>
17511
17512 PR middle-end/39500
17513 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
17514 dependence if the first conflict is after niter iterations.
17515
8ef20026
HPN
175162009-03-19 Hans-Peter Nilsson <hp@axis.com>
17517
17518 PR middle-end/38609
17519 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
17520 functions with dynamic stack-pointer adjustments.
17521
64e4a1a6
BE
175222009-03-19 Ben Elliston <bje@au.ibm.com>
17523
17524 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
17525 option; change to -msdata=data.
17526
9a0f3e86
RW
175272009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17528
17529 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
17530 and -fopenmp.
17531
09bc5979
EB
175322009-03-18 Eric Botcazou <ebotcazou@adacore.com>
17533
17534 PR target/35180
17535 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
17536
332459cd
SL
175372009-03-18 Sandra Loosemore <sandra@codesourcery.com>
17538
17539 * doc/invoke.texi (Code Gen Options): Expand discussion of
17540 -fno-common.
17541
8f5929e1
JJ
175422009-03-18 Jakub Jelinek <jakub@redhat.com>
17543
17544 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
17545 * matrix-reorg.c (struct matrix_info): Likewise.
17546 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
17547 * rtl.h (struct mem_attrs): Likewise.
17548 * df.h (struct df): Likewise.
17549 * tree-data-ref.h (struct data_dependence_relation): Likewise.
17550 * ira-int.h (struct ira_allocno): Likewise.
17551 * df-scan.c (struct df_collection_rec): Likewise.
17552 * ira.c (struct equivalence): Likewise.
17553 * function.c (struct temp_slot): Likewise.
17554 * cfgloop.h (struct loop): Likewise.
17555
d130d647
JJ
17556 PR debug/39485
17557 * function.c (use_register_for_decl): When not optimizing, disregard
17558 register keyword for variables with types containing methods.
17559
9968d233
SP
175602009-03-18 Sebastian Pop <sebastian.pop@amd.com>
17561
17562 PR middle-end/39447
17563 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
17564 (is_simple_operand): Call contains_component_ref_p before calling data
17565 reference analysis that would fail on COMPONENT_REFs.
17566
17567 * tree-vrp.c (search_for_addr_array): Fix formatting.
17568
69484bfd
RG
175692009-03-18 Richard Guenther <rguenther@suse.de>
17570
17571 * tree-vect-transform.c (vect_loop_versioning): Fold the
17572 generated comparisons.
17573 * tree-vectorizer.c (set_prologue_iterations): Likewise.
17574 (slpeel_tree_peel_loop_to_edge): Likewise.
17575
66811228
RW
175762009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17577
0631b69f
RW
17578 PR middle-end/37805
17579 * opts.c (print_specific_help): In addition to `undocumented',
17580 accept `separate' and `joined' flags if passed alone. Describe
17581 output by the first matched one of those.
17582 (common_handle_option): Skip over empty strings.
17583 * gcc.c (display_help): Fix help string for `--help='.
17584 * doc/invoke.texi (Option Summary, Overall Options): With
17585 `--help=', classes and qualifiers can both be repeated, but
17586 only the latter can be negated. One should not pass only
17587 negated qualifiers. Fix markup and examples.
17588
66811228
RW
17589 Revert
17590 2008-10-14 Jakub Jelinek <jakub@redhat.com>
17591 PR middle-end/37805
17592 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
17593 and -fhelp=separate.
17594
3c072c6b
JY
175952009-03-17 Jing Yu <jingyu@google.com>
17596
17597 PR middle-end/39378
80c65208
JY
17598 * function.h (struct rtl_data): Move is_thunk from here...
17599 (struct function): ...to here.
17600 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
17601 * varasm.c (assemble_start_function): Change is_thunk from crtl to
17602 cfun.
80c65208
JY
17603 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
17604 cfun.
17605 (alpha_does_function_need_gp, alpha_start_function): Likewise.
17606 (alpha_output_function_end_prologue): Likewise.
17607 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
17608 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
17609 (rs6000_output_function_epilogue): Likewise.
17610 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 17611
9ade279b
UB
176122009-03-17 Uros Bizjak <ubizjak@gmail.com>
17613
17614 PR target/39482
17615 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
17616 from different units in a single alternative.
17617 (*truncdfsf_i387): Ditto.
17618 (*truncxfsf2_mixed): Ditto.
17619 (*truncxfdf2_mixed): Ditto.
17620
16e60c17
JJ
176212009-03-17 Jakub Jelinek <jakub@redhat.com>
17622
98381eb4
JJ
17623 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
17624 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
17625
df5deb18
JJ
17626 PR debug/39474
17627 * tree-ssa-live.c (remove_unused_locals): Don't remove local
17628 unused non-artificial variables when not optimizing.
17629
a3f596ba
JJ
17630 PR debug/39471
17631 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
17632 DW_TAG_imported_module even if decl is IMPORTED_DECL with
17633 NAMESPACE_DECL in its DECL_INITIAL.
17634
6b2b8871
JJ
17635 PR middle-end/39443
17636 * optabs.c (set_user_assembler_libfunc): New function.
17637 * expr.h (set_user_assembler_libfunc): New prototype.
17638 * c-common.c: Include libfuncs.h.
17639 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
17640 for memcmp, memset, memcpy, memmove and abort.
17641 * Makefile.in (c-common.o): Depend on libfuncs.h.
17642
16e60c17
JJ
17643 PR debug/39412
17644 * dwarf2out.c (gen_inlined_enumeration_type_die,
17645 gen_inlined_structure_type_die, gen_inlined_union_type_die,
17646 gen_tagged_type_instantiation_die): Removed.
17647 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
17648 do nothing.
17649
4d936aca
JJ
176502009-03-17 Janis Johnson <janis187@us.ibm.com>
17651
17652 PR testsuite/38526
17653 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
17654 its use.
17655 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
17656 (check-parallel-%): Ditto.
17657 (check-consistency): Ditto.
17658
4e9b2e50
KT
176592009-03-17 Kai Tietz <kai.tietz@onevision.com>
17660
17661 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
17662 local variable rhs by NULL_TREE.
17663
21440b2d
L
176642009-03-17 H.J. Lu <hongjiu.lu@intel.com>
17665
17666 PR target/39477
9ade279b 17667 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 17668
d8905c6a
L
176692009-03-17 H.J. Lu <hongjiu.lu@intel.com>
17670
17671 PR target/39476
9ade279b 17672 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
17673
176742009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
17675
17676 PR target/39473
17677 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
17678 for ms->sysv ABI calls only in 64bit mode.
17679
17680 * config/i386/i386.md (untyped_call): Support 32bit.
17681
cdcabece
L
176822009-03-16 H.J. Lu <hongjiu.lu@intel.com>
17683
17684 * doc/extend.texi: Replace x86_65 with x86_64.
17685
97b4ba9f
JJ
176862009-03-16 Jakub Jelinek <jakub@redhat.com>
17687
17688 PR tree-optimization/39455
17689 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
17690 mismatches for POINTER_TYPE_P (type).
17691 (number_of_iterations_le): Likewise.
17692
60839f5d 176932009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
17694
17695 * config/picochip/picochip.c: Removed profiling support.
17696 * config/picochip/picochip.md: Removed profiling instruction.
17697 * config/picochip/picochip.h: Removed profiling builtin.
17698
f38095f3
JM
176992009-03-16 Joseph Myers <joseph@codesourcery.com>
17700
17701 * doc/install.texi (--with-host-libstdcxx): Document.
17702
2cb4817b
AS
177032009-03-14 Anatoly Sokolov <aesok@post.ru>
17704
17705 PR target/34299
17706 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
17707 generate a warning if the function name does not begin with
17708 "__vector" and the function has either the 'signal' or 'interrupt'
17709 attribute, from here to ...
17710 (avr_declare_function_name): ...here. New function.
17711 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
17712 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
17713
39b2ac74
JJ
177142009-03-14 Jakub Jelinek <jakub@redhat.com>
17715
17716 PR bootstrap/39454
17717 * cse.c (fold_rtx): Don't modify original const_arg1 when
17718 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
17719 separate variable instead.
17720 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
17721 from out of range shift counts.
17722 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
17723
ad41bd84 177242009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 17725
60839f5d 17726 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
17727 diagnostic.h with $(DIAGNOSTIC_H).
17728
ad41bd84 177292009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
17730
17731 PR target/39431
17732 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
17733 predicate.
17734 * config/i386/sync.md (sync_compare_and_swap<mode>,
17735 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
17736 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
17737 into a register.
17738 (sync_double_compare_and_swapdi_pic,
17739 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
17740 cmpxchg8b_pic_memory_operand instead of just memory_operand.
17741
122c59c7
L
177422009-03-12 H.J. Lu <hongjiu.lu@intel.com>
17743
17744 PR target/39445
9ade279b 17745 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 17746
cec8874f
L
177472009-03-12 H.J. Lu <hongjiu.lu@intel.com>
17748
17749 PR target/39327
17750 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17751 (avx_addsubv4df3): Likewise.
17752 (*avx_addsubv4sf3): Likewise.
17753 (sse3_addsubv4sf3): Likewise.
17754
bbb52802
L
177552009-03-12 H.J. Lu <hongjiu.lu@intel.com>
17756
17757 PR target/38824
9ade279b 17758 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 17759
a812fb07
VM
177602009-03-12 Vladimir Makarov <vmakarov@redhat.com>
17761
17762 PR debug/39432
17763 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
17764 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17765 registers for allocnos created from user-defined variables.
17766
4caab5ba
UW
177672009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17768
17769 PR target/39181
17770 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
17771 of non-integer mode as well.
17772
498e51ca
AN
177732009-03-11 Adam Nemet <anemet@caviumnetworks.com>
17774
17775 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
17776 for functions for which the parameter types are unknown.
17777
9bfaf89d
JJ
177782009-03-11 Jakub Jelinek <jakub@redhat.com>
17779
17780 PR target/39137
9ade279b 17781 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
17782 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
17783 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
17784 * config/i386/i386.c (ix86_local_alignment): For
17785 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
17786 long long variables on the stack to avoid dynamic realignment.
17787 Allow the first argument to be a decl rather than type.
17788 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
17789
18a3bdcb
NC
177902009-03-11 Nick Clifton <nickc@redhat.com>
17791
17792 PR target/5362
40190a76
NC
17793 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
17794 options.
17795 Add description to mno-lsim option.
17796 * config/mcore/mcore.h: Remove comment about deprecated m4align
17797 option.
17798 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
17799 * doc/invoke.texi: Add description of mno-lsim and
17800 mstack-increment options.
17801
18a3bdcb
NC
17802 * config/fr30/fr30.opt: Document the -mno-lsim option.
17803 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
17804 and -mno-lsim options.
17805
dc215785
UW
178062009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17807
17808 * fold-const.c (fold_comparison): Only call fold_inf_compare
17809 if the mode supports infinities.
17810
7716876b
JM
178112009-03-11 Jason Merrill <jason@redhat.com>
17812
17813 PR debug/39086
17814 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
17815 end already did. Notice GIMPLE_CALL modifications of the result.
17816 Don't copy debug information from an ignored decl or a decl from
17817 another function.
17818
ddef83d2
RG
178192009-03-10 Richard Guenther <rguenther@suse.de>
17820 Nathan Froyd <froydnj@codesourcery.com>
17821
17822 PR middle-end/37850
9ade279b 17823 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
17824 (__divMODE3): Likewise.
17825
9a9ba8d9
JJ
178262009-03-09 Jakub Jelinek <jakub@redhat.com>
17827
17828 PR tree-optimization/39394
17829 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
17830 DECL_SIZE_UNIT of variable length FIELD_DECLs.
17831
929b7fc3
AK
178322009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17833
17834 * recog.c (verfiy_changes): Disallow renaming of hard regs in
17835 inline asms for register asm ("") declarations.
17836
1803581d
EB
178372009-03-09 Eric Botcazou <ebotcazou@adacore.com>
17838
17839 * fold-const.c (fold_unary): Fix comment.
17840
8454d27e
JH
178412009-03-07 Jan Hubicka <jh@suse.cz>
17842
17843 PR target/39361
969a5433
JJ
17844 * tree-inline.c (setup_one_parameter): Do replacement of const
17845 argument by constant in SSA form.
8454d27e 17846
3a695389
UW
178472009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17848
17849 PR middle-end/38028
17850 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
17851 determine alignment passed to assign_stack_local.
17852 (assign_parms_unsplit_complex): Likewise.
17853 * except.c (sjlj_build_landing_pads): Likewise.
17854
9f0e7885
JJ
178552009-03-06 Jakub Jelinek <jakub@redhat.com>
17856
65401a0b
JJ
17857 PR middle-end/39360
17858 * tree-flow.h (add_referenced_var): Return bool instead of void.
17859 * tree-dfa.c (add_referenced_var): Return result of
17860 referenced_var_check_and_insert call.
17861 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
17862 of referenced_var_check_and_insert.
17863
9f0e7885 17864 PR debug/39372
9ade279b 17865 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
17866 (gen_variable_die): Emit DW_AT_location on abstract static variable's
17867 DIE, don't emit it if abstract origin already has it.
17868 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
17869 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
17870
3b664bd1
JBG
178712009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17872
ba20e309 17873 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
17874 detection.
17875 (write_tm_constrs_h): Indent generated code.
17876
d8f8ca80
RR
178772009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17878
17879 * doc/extend.texi (Function Attributes): Add documentation
17880 for isr attributes.
17881
6c3d550c
JJ
178822009-03-06 Jakub Jelinek <jakub@redhat.com>
17883
17884 PR debug/39387
17885 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
17886 take locus from its DECL_SOURCE_LOCATION instead of input_location.
17887
f9e96751
BS
178882009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
17889
17890 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
17891 the loop as bad.
17892
ee0ee7e2
JJ
178932009-03-05 Jakub Jelinek <jakub@redhat.com>
17894
17895 PR debug/39379
17896 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
17897 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
17898
6c6094f1
UB
178992009-03-05 Uros Bizjak <ubizjak@gmail.com>
17900
17901 * config/i386/i386.md (R8_REG, R9_REG): New constants.
17902 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
17903 constants instead of magic numbers.
17904 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
17905 (QI_REG_P): Ditto.
17906 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
17907 (x86_64_ms_abi_int_parameter_registers): Ditto.
17908 (x86_64_int_return_registers): Ditto.
09f8a8d3 17909 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
17910 (ix86_expand_call): Ditto for clobbered_registers array.
17911 (ix86_hard_regno_mode_ok): Ditto.
17912 (x86_extended_QIreg_mentioned_p): Ditto.
17913
b267bd41
R
179142009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
17915
6c6094f1 17916 PR tree-optimization/39349
1f3ad3f0
R
17917 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
17918
b267bd41
R
17919 * combine.c (gen_lowpart_for_combine): Use omode when generating
17920 clobber.
17921
1242bc9d
R
179222009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
17923
6c6094f1 17924 PR rtl-optimization/39235
1242bc9d
R
17925 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
17926
48f03606
ZD
179272009-03-04 Zdenek Dvorak <ook@ucw.cz>
17928
17929 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
17930
b505e785
RG
179312009-03-04 Richard Guenther <rguenther@suse.de>
17932
17933 PR tree-optimization/39362
17934 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
17935 that occur in abnormal PHIs should be varying.
17936
f017bf5e
ZD
179372009-03-04 Zdenek Dvorak <ook@ucw.cz>
17938
17939 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
17940 Extend comments.
17941 (simple_iv): Take loop as an argument instead of statement.
17942 * tree-scalar-evolution.h (simple_iv): Declaration changed.
17943 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
17944 to simple_iv.
17945 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
17946 Ditto.
17947 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
17948 * matrix-reorg.c (analyze_transpose): Ditto.
17949 * tree-data-ref.c (dr_analyze_innermost): Ditto.
17950 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
17951 * tree-predcom.c (ref_at_iteration): Ditto.
17952 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
17953
6a66f28e
RG
179542009-03-04 Richard Guenther <rguenther@suse.de>
17955
17956 PR tree-optimization/39358
17957 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
17958 escaped_id and callused_id.
17959 (solve_graph): Likewise.
17960
57e454ee
RG
179612009-03-04 Richard Guenther <rguenther@suse.de>
17962
17963 PR tree-optimization/39339
17964 * tree-sra.c (try_instantiate_multiple_fields): Make it
17965 no longer ICE on the above.
17966
a6fe9ed4
JM
179672009-03-03 Joseph Myers <joseph@codesourcery.com>
17968
17969 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
17970 that fits within Pmode.
17971
dc672951
SE
179722009-03-03 Steve Ellcey <sje@cup.hp.com>
17973
17974 PR middle-end/10109
17975 * tm.texi (LIBCALL_VALUE): Update description.
17976
8b9d598f
SE
179772009-03-03 Steve Ellcey <sje@cup.hp.com>
17978
17979 PR middle-end/34443
17980 * doc/extend.texi (section): Update description.
17981
13e4e36e
L
179822009-03-03 H.J. Lu <hongjiu.lu@intel.com>
17983
17984 PR middle-end/39345
17985 * tree-inline.c (remapped_type): New.
17986 (can_be_nonlocal): Call remapped_type instead of remap_type.
17987
067dd3c9
JJ
179882009-03-03 Jakub Jelinek <jakub@redhat.com>
17989
17990 PR fortran/39354
17991 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
17992 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
17993
9bd9f738
RG
179942009-03-03 Richard Guenther <rguenther@suse.de>
17995
17996 PR middle-end/39272
17997 * tree.c (tree_nonartificial_location): New function.
17998 * tree.h (tree_nonartificial_location): Declare.
17999 * builtins.c (expand_builtin_memory_chk): Provide location
18000 of the call location for artificial function pieces.
18001 (maybe_emit_chk_warning): Likewise.
18002 (maybe_emit_sprintf_chk_warning): Likewise.
18003 (maybe_emit_free_warning): Likewise.
18004 * expr.c (expand_expr_real_1): Likewise.
18005
f07049c8
JJ
180062009-03-03 Jakub Jelinek <jakub@redhat.com>
18007
18008 PR tree-optimization/39343
18009 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
18010 COMPONENT_REF t has ARRAY_TYPE.
18011
7d4fba4a
SP
180122009-03-02 Sebastian Pop <sebastian.pop@amd.com>
18013
18014 PR middle-end/39335
18015 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
18016 when the type precision of the induction variable should be
18017 larger than the type precision of nit.
18018 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
18019 * graphite.c (graphite_loop_normal_form): Same.
18020 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
18021
78168632
UB
180222009-03-02 Uros Bizjak <ubizjak@gmail.com>
18023
18024 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
18025 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 18026 numbers to describe clobbered registers.
78168632 18027 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
18028 * config/i386/mmx.md (mmx_emms): Ditto.
18029 (mmx_femms): Ditto.
78168632 18030
63553059
RS
180312009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
18032
18033 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
18034 of ABI_64.
18035
500a1f85
UW
180362009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18037
18038 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
18039 (spu_section_type_flags): New function.
18040
962aae34
UB
180412009-03-02 Uros Bizjak <ubizjak@gmail.com>
18042
18043 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
18044 reg_class_contents of FLOAT_REGS into a temporary.
18045
6dfb529c 180462009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 18047 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
18048
18049 PR tree-optimization/39318
18050 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
18051 information to the vectorized statement.
18052
6b5629db
UB
180532009-03-01 Uros Bizjak <ubizjak@gmail.com>
18054
434426d2
UB
18055 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
18056 variable. Use defined names instead of magic constants for REX SSE
18057 registers.
6b5629db 18058
14e5b285
RG
180592009-03-01 Richard Guenther <rguenther@suse.de>
18060
18061 PR tree-optimization/39331
18062 * omp-low.c (lower_send_shared_vars): Do not receive new
18063 values for the reference of DECL_BY_REFERENCE parms or results.
18064
526d73ab
JH
180652009-03-01 Jan Hubicka <jh@suse.cz>
18066
18067 PR debug/39267
18068 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
18069 BLOCK_NONLOCALIZED_VAR): New macros.
18070 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
18071 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
18072 gen_decl_die): Add origin argument. Allow generation of die with
18073 origin at hand only.
526d73ab 18074 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
18075 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
18076 of gen_*.
526d73ab
JH
18077 (gen_block_die): Fix checking for unused blocks.
18078 (process_scope_var): Break out from .... ; work with origins only.
18079 (decls_for_scope) ... here; process nonlocalized list.
18080 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
18081 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
18082 vars.
526d73ab
JH
18083 (dump_scope_block): Dump them.
18084 * tree-inline.c (remap_decls): Handle nonlocalized vars.
18085 (remap_block): Likewise.
18086 (can_be_nonlocal): New predicate.
18087 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
18088
7a9d3fe8
RW
180892009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18090
18091 * configure: Regenerate.
18092
b3cdf3cb
RW
180932009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18094
a16d1645 18095 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 18096 Reuse help texts for duplicate options which do not have any.
a16d1645 18097
1156c176
RW
18098 * gcc.c (display_help): Document --version.
18099
033505fc
RW
18100 * gcc.c (main): If print_help_list and verbose_flag, ensure
18101 driver output comes before subprocess output.
18102
4d077054
RW
18103 * optc-gen.awk: Assign all remaining fields to help string,
18104 space-separated, for multi-line help in *.opt.
18105
a072f1cf
RW
18106 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
18107 -Wno-pedantic-ms-format is for MinGW targets only.
18108
b3cdf3cb
RW
18109 * doc/options.texi (Option file format): Fix bad indentation,
18110 restoring dropped sentence.
18111
a3aadcc5
JH
181122009-02-28 Jan Hubicka <jh@suse.cz>
18113
18114 * tree-inline.c (tree_function_versioning): Output debug info.
18115
1cf5abb3
JH
181162009-02-28 Jan Hubicka <jh@suse.cz>
18117
18118 PR debug/39267
18119 * tree-inline.c (setup_one_parameter): Do not copy propagate
18120 arguments when not optimizing.
18121
c4d3f42f
L
181222009-02-28 H.J. Lu <hongjiu.lu@intel.com>
18123
18124 PR target/39327
18125 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
18126 (avx_addsubv4df3): Likewise.
18127 (*avx_addsubv4sf3): Likewise.
18128 (sse3_addsubv4sf3): Likewise.
18129 (*avx_addsubv2df3): Likewise.
18130 (sse3_addsubv2df3): Likewise.
18131 (avx_unpckhps256): Correct item selectors.
18132 (avx_unpcklps256): Likewise.
18133 (avx_unpckhpd256): Likewise.
18134 (avx_unpcklpd256): Likewise.
18135
eb50f5f4
JH
181362009-02-28 Jan Hubicka <jh@suse.cz>
18137
18138 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
18139 static vars.
18140 (copy_arguments_for_versioning): If var is declared don't declare it.
18141 (tree_function_versioning): First setup substitutions and then copy
18142 args.
18143
26140130
JH
181442009-02-27 Jan Hubicka <jh@suse.cz>
18145
18146 PR debug/39267
18147 * cgraph.h (varpool_output_debug_info): Remove.
18148 * cgraphunit.c (varpool_output_debug_info): Remove.
18149 * dwarf2out.c (deferred_locations_struct): New struct
18150 (deferred_locations): New type.
18151 (deferred_locations_list): New static var.
18152 (deffer_location): New function.
18153 (gen_variable_die): Use it.
18154 (decls_for_scope): Output info on local static vars.
18155 (dwarf2out_finish): Process deferred locations.
18156 * varpool.c (varpool_output_debug_info): Remove.
18157
cff7525f
JH
181582009-02-27 Jan Hubicka <jh@suse.cz>
18159
18160 PR debug/39267
18161 * tree.h (TREE_PROTECTED): Fix comment.
18162 (BLOCK_HANDLER_BLOCK): Remove.
18163 (struct tree_block): Remove handler_block add body_block.
18164 (inlined_function_outer_scope_p): New.
18165 (is_body_block): Remove.
18166 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
18167 * dwarf2out.c (is_inlined_entry_point): Remove.
18168 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
18169 (gen_block_die): Use is_inlined_entry_point check. Remove body block
18170 code.
cff7525f
JH
18171 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
18172 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
18173 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
18174 block with multiple subblocks.
cff7525f
JH
18175 (dump_scope_block): Prettier output; dump more flags and info.
18176 (dump_scope_blocks): New.
18177 (remove_unused_locals): Use dump_scope_blocks.
18178 * tree-flow.h (dump_scope_blocks): Declare.
18179 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
18180 * stmt.c (is_body_block): Remove.
18181 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
18182 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
18183
c20993b9
SP
181842009-02-27 Sebastian Pop <sebastian.pop@amd.com>
18185
18186 PR middle-end/39308
2ba9daa7 18187 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
18188 number_of_iterations_exit from a gcc_assert.
18189
e3cba5e5
AK
181902009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18191
60839f5d 18192 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
18193 jumps if COND is NULL.
18194 (find_cond_jump): New function.
18195 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 18196 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 18197
9dadeeb8
UB
181982009-02-26 Uros Bizjak <ubizjak@gmail.com>
18199
18200 * config/alpha/alpha.h (alpha_expand_mov): Return false if
18201 force_const_mem returns NULL_RTX.
18202
625d3251
EB
182032009-02-26 Jan Hubicka <jh@suse.cz>
18204
18205 PR debug/39267
18206 * cgraph.h (varpool_output_debug_info): Remove.
18207 * cgraphunit.c (varpool_output_debug_info): Remove.
18208 * dwarf2out.c (deferred_locations_struct): New struct
18209 (deferred_locations): New type.
18210 (deferred_locations_list): New static var.
18211 (deffer_location): New function.
18212 (gen_variable_die): Use it.
18213 (decls_for_scope): Output info on local static vars.
18214 (dwarf2out_finish): Process deferred locations.
18215 * varpool.c (varpool_output_debug_info): Remove.
18216
38432148 182172009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
18218
18219 PR rtl-optimization/39241
18220 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
18221 to subreg_offset_representable_p.
18222
62d049cf
PB
182232009-02-25 Paolo Bonzini <bonzini@gnu.org>
18224
18225 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
18226 execute function prototype. Get f and nregs from max_reg_num
18227 and get_insns. Remove the first backward pass as it's dead,
18228 guard the forward pass by flag_expensive_optimizations.
18229 (rest_of_handle_regmove): Delete.
18230 (pass_regmove): Replace it with regmove_optimize.
18231
f618d33e
MJ
182322009-02-25 Martin Jambor <mjambor@suse.cz>
18233
18234 PR tree-optimization/39259
18235 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 18236 calls_alloca function flags.
f618d33e
MJ
18237 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
18238 calls are detected.
18239
c8a05f7c
PB
182402009-02-25 Paolo Bonzini <bonzini@gnu.org>
18241
18242 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
18243 flags_set_1_rtx, flags_set_1_set): Delete.
18244 (regmove_optimize): Do not call mark_flags_life_zones.
18245
6d2538f5
JB
182462009-02-24 Julian Brown <julian@codesourcery.com>
18247
18248 PR target/35965
18249 * config/arm/arm.c (require_pic_register): Only set
18250 cfun->machine->pic_reg once per function.
18251
a2fa6772
SL
182522009-02-24 Sandra Loosemore <sandra@codesourcery.com>
18253
18254 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 18255 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 18256
5472de36
SE
182572009-02-24 Steve Ellcey <sje@cup.hp.com>
18258
18259 PR target/33785
18260 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
18261
844216f3
RG
182622009-02-24 Richard Guenther <rguenther@suse.de>
18263
18264 PR debug/39285
18265 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
18266
71adbef3 182672009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 18268 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
18269
18270 PR tree-optimization/39233
18271 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
18272 from converting them to a generic type.
18273
f1a558e0
SP
182742009-02-23 Sebastian Pop <sebastian.pop@amd.com>
18275
18276 PR tree-optimization/39260
18277 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
18278 contains a condition with a real type.
18279 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
18280
d8028f2c
JM
182812009-02-23 Jason Merrill <jason@redhat.com>
18282
18283 PR c++/38880
18284 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
18285 narrowing_initializer_constant_valid_p.
2ba9daa7 18286 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
18287 null_pointer_node for adding a pointer to itself.
18288
9283b513
JH
182892009-02-23 Jan Hubicka <jh@suse.cz>
18290
18291 PR c/12245
9dadeeb8
UB
18292 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
18293 resizing.
9283b513 18294
61e04322
JH
182952009-02-23 Jan Hubicka <jh@suse.cz>
18296
9dadeeb8
UB
18297 PR tree-optimization/37709
18298 * tree.c (block_ultimate_origin): Move here from dwarf2out.
18299 * tree.h (block_ultimate_origin): Declare.
18300 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
18301 * tree-ssa-live.c (remove_unused_scope_block_p):
18302 Eliminate blocks containig no instructions nor live variables nor
18303 nested blocks.
18304 (dump_scope_block): New function.
18305 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 18306 enable dumping at TDF_DETAILS.
61e04322 18307
38432148 183082009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
18309
18310 * config/i386/i386.c (classify_argument): Don't allow COImode
18311 and OImode.
18312 (function_arg_advance_32): Don't allow OImode.
18313 (function_arg_32): Likewise.
18314 (function_value_32): Likewise.
18315 (return_in_memory_32): Likewise.
18316 (function_arg_64): Remove OImode comment.
18317
38432148 183182009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
18319
18320 PR target/39261
18321 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18322 ix86_expand_vector_set for V4DImode in 64bit mode only.
18323 (ix86_expand_vector_init_one_var): Likewise.
18324
dcd739a6
SP
183252009-02-21 Sebastian Pop <sebastian.pop@amd.com>
18326
18327 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
18328
6c3b938d
RS
183292009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
18330
8e361f23 18331 PR bootstrap/39257
6c3b938d
RS
18332 * loop-iv.c: Revert last change.
18333 * emit-rtl.c: Likewise.
18334
38432148 183352009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
18336
18337 PR target/39256
18338 * config/i386/i386.c (type_natural_mode): Remove an extra
18339 space in the warning message.
18340 (function_value_32): Handle 32-byte vector modes.
18341 (return_in_memory_32): Likewise.
18342
2ec62529
RS
183432009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
18344
18345 * loop-iv.c (truncate_value): New function.
18346 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
18347 of lowpart_subreg.
18348 (lowpart_subreg): Move to...
18349 * emit-rtl.c: ...here.
18350
ecb8c3cc 183512009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 18352
ecb8c3cc
DS
18353 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
18354 accidental and undocumented change at revision 140860.
18355
ae46a823
JM
183562009-02-21 Joseph Myers <joseph@codesourcery.com>
18357
18358 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
18359 take gimple_seq * arguments.
18360 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
18361 types_compatible_p langhook.
18362
07d8efe3 183632009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 18364 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
18365
18366 * config/arm/arm.c (arm_builtin_va_list): New function.
18367 (arm_expand_builtin_va_start): Likewise.
18368 (arm_gimplify_va_arg_expr): Likewise.
18369 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
18370 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
18371 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
18372 (va_list_type): New variable.
18373 (arm_mangle_type): Mangle va_list_type appropriately.
18374
b1fb9f56
JJ
183752009-02-20 Jakub Jelinek <jakub@redhat.com>
18376
18377 PR middle-end/39157
18378 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
18379 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
18380 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
18381 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
18382 parameter to 1000 for -O1 by default.
18383 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
18384 parameter.
18385 * loop-invariant.c: Include params.h.
18386 (move_loop_invariants): Don't call move_single_loop_invariants on
18387 very large loops.
18388
5bc0807c
JM
183892009-02-20 Jaka Mocnik <jaka@xlab.si>
18390
18391 * calls.c (emit_library_call_value_1): Use slot_offset instead of
18392 offset when calculating bounds for indexing stack_usage_map. Fixes
18393 a buffer overflow with certain target setups.
18394
c69cd1f5
JJ
183952009-02-20 Jakub Jelinek <jakub@redhat.com>
18396
18397 PR target/39240
18398 * calls.c (expand_call): Clear try_tail_call if caller and callee
18399 disagree in promotion of function return value.
18400
09812622
JJ
184012009-02-19 Jakub Jelinek <jakub@redhat.com>
18402
18403 PR target/39175
18404 * c-common.c (c_determine_visibility): If visibility changed and
18405 DECL_RTL has been already set, call make_decl_rtl to update symbol
18406 flags.
18407
68017cb4
L
184082009-02-19 H.J. Lu <hongjiu.lu@intel.com>
18409
18410 PR c++/39188
18411 * varasm.c (assemble_variable): Don't check DECL_NAME when
18412 globalizing a variable.
18413
ab4194da
JM
184142009-02-19 Joseph Myers <joseph@codesourcery.com>
18415
18416 PR c/38483
18417 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
18418 expression before any __builtin_trap call.
18419 * c-typeck.c (build_function_call): Convert and check function
18420 arguments before generating a call to a trap. Evaluate the
18421 function arguments before the trap.
18422
6b67572e
UB
184232009-02-19 Uros Bizjak <ubizjak@gmail.com>
18424
18425 PR target/39228
18426 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
18427 (UNSPEC_FXAM_MEM): New unspec.
18428 (fxam<mode>2_i387_with_temp): New insn and split pattern.
18429 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
18430 memory using fxam<mode>2_i387_with_temp to remove excess precision.
18431
9e39dba6
RG
184322009-02-19 Richard Guenther <rguenther@suse.de>
18433
18434 PR tree-optimization/39207
18435 PR tree-optimization/39074
18436 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
18437 storedanything_tree): New.
18438 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 18439 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
18440 (build_succ_graph): Add edges from STOREDANYTHING to all
18441 non-direct nodes.
18442 (init_base_vars): Initialize STOREDANYTHING.
18443 (compute_points_to_sets): Free substitution info after
18444 building the succ graph.
18445 (ipa_pta_execute): Likewise.
18446
18447 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
18448 field.
18449 (do_ds_constraint): Do not add to special var or non-pointer
18450 field solutions.
18451 (type_could_have_pointers): Split out from ...
18452 (could_have_pointers): ... here. For arrays use the element type.
18453 (create_variable_info_for): Initialize may_have_pointers.
18454 (new_var_info): Likewise.
18455 (handle_lhs_call): Make the HEAP variable unknown-sized.
18456 (intra_create_variable_infos): Use a type with pointers for
18457 PARM_NOALIAS, make it unknown-sized.
18458
fd7b2603
L
184592009-02-18 H.J. Lu <hongjiu.lu@intel.com>
18460
18461 PR target/39224
6b67572e 18462 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 18463
98b80692
JM
184642009-02-18 Jason Merrill <jason@redhat.com>
18465
18466 PR target/39179
18467 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
18468 value if DECL_EXTERNAL.
18469 * tree-sra.c (sra_walk_gimple_assign): Likewise.
18470 * target.h (gcc_target::binds_local_p): Clarify "module".
18471 * tree.h (TREE_PUBLIC): Clarify "module".
18472
0705d3f4
L
184732009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
18474
18475 PR target/38891
18476 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
18477 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
18478
bce08d50
L
184792009-02-17 H.J. Lu <hongjiu.lu@intel.com>
18480
18481 PR target/39082
18482 * c.opt (Wabi): Support C and ObjC.
18483 (Wpsabi): New.
18484
18485 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
18486
18487 * config/i386/i386.c (classify_argument): Warn once about the ABI
18488 change when passing union with long double.
18489
18490 * doc/invoke.texi: Update -Wabi for warning psABI changes.
18491
5600f233
JM
184922009-02-18 Joseph Myers <joseph@codesourcery.com>
18493
18494 PR c/35447
18495 * c-parser.c (c_parser_compound_statement): Always enter and leave
18496 a scope.
18497
8cd01fe6
JDA
184982009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18499
18500 PR target/34587
18501 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
18502
418df9d7
JJ
185032009-02-18 Jakub Jelinek <jakub@redhat.com>
18504
18505 PR tree-optimization/36922
18506 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
18507 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
18508 Likewise.
18509
082d2ebb
RS
185102009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
18511
18512 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
18513 to 0 for EABI64.
18514
17de576c
RS
185152009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
18516
18517 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
18518
6d8d5435
RS
185192009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
18520
18521 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
18522 tree sharing.
18523
e69ff910
RB
185242009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
18525 Richard Sandiford <rdsandiford@googlemail.com>
18526
18527 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
18528 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
18529 (loongson_biadd): ...this.
18530
6b24ee26
RG
185312009-02-17 Richard Guenther <rguenther@suse.de>
18532
18533 PR tree-optimization/39202
18534 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
18535 a var make sure to follow existing collapses.
18536
91ab2c86
RG
185372009-02-17 Richard Guenther <rguenther@suse.de>
18538
18539 PR middle-end/39214
18540 * langhooks.c (lhd_print_error_function): Check for NULL block.
18541
73a63870
RG
185422009-02-17 Richard Guenther <rguenther@suse.de>
18543
18544 PR tree-optimization/39204
18545 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
18546 of the PHI arg.
18547
0e08f686
UB
185482009-02-17 Uros Bizjak <ubizjak@gmail.com>
18549
18550 * config/soft-fp/double.h: Update from glibc CVS.
18551
a60b7ddb
RG
185522009-02-17 Richard Guenther <rguenther@suse.de>
18553
18554 PR tree-optimization/39207
18555 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
18556 strict-aliasing warnings for pointers pointing to NULL.
18557
a47e20fd
JM
185582009-02-16 Joseph Myers <joseph@codesourcery.com>
18559
18560 PR c/35446
18561 * c-parser.c (c_parser_braced_init): Call pop_init_level when
18562 skipping until next close brace.
18563
50aab7dc
L
185642009-02-16 H.J. Lu <hongjiu.lu@intel.com>
18565
18566 PR target/37049
18567 * config/i386/i386.c (ix86_expand_push): Set memory alignment
18568 to function argument boundary.
18569
68e53db0
HS
185702009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
18571
18572 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
18573 in the lea_add. Reload eventually constraints it properly.
0d50d55a 18574 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
18575 "b", since it is not needed anymore.
18576
09e361bb
JJ
185772009-02-16 Jakub Jelinek <jakub@redhat.com>
18578
18579 * gthr-dce.h: Uglify function parameter and local variable names.
18580 * gthr-gnat.h: Likewise.
18581 * gthr-mipssde.h: Likewise.
18582 * gthr-nks.h: Likewise.
18583 * gthr-posix95.h: Likewise.
18584 * gthr-posix.h: Likewise.
18585 * gthr-rtems.h: Likewise.
18586 * gthr-single.h: Likewise.
18587 * gthr-solaris.h: Likewise.
18588 * gthr-tpf.h: Likewise.
18589 * gthr-vxworks.h: Likewise.
18590 * gthr-win32.h: Likewise.
18591
47f5a48f
L
185922009-02-15 H.J. Lu <hongjiu.lu@intel.com>
18593
18594 PR target/39196
18595 * config/i386/i386.md: Restrict the new peephole2 to move
18596 between MMX/SSE registers.
18597
68c9ab45
RG
185982009-02-15 Richard Guenther <rguenther@suse.de>
18599
18600 Revert
18601 2009-02-13 Richard Guenther <rguenther@suse.de>
18602
18603 * configure.ac: Enable LFS.
18604 * configure: Re-generate.
18605 * config.in: Likewise.
18606
d7815554
UW
186072009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18608
18609 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
18610 spu_srqwbyte, spu_srqwbytebc): Define.
18611 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
18612 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
18613 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
18614 "shrqby_<mode>"): New insn-and-split patterns.
18615 * config/spu/spu.c (expand_builtin_args): Determine and return
18616 number of operands using spu_builtin_description data.
18617 (spu_expand_builtin_1): Use it.
18618
c208436c
SE
186192009-02-13 Steve Ellcey <sje@cup.hp.com>
18620
18621 PR target/38056
18622 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
18623 TARGET_CONST_GP.
18624
c2e7ba7e
L
186252009-02-13 H.J. Lu <hongjiu.lu@intel.com>
18626
18627 PR target/39149
18628 * config/i386/i386.c (override_options): Correct warning
6c6094f1 18629 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 18630
72f4e3a7
L
186312009-02-13 H.J. Lu <hongjiu.lu@intel.com>
18632
18633 PR target/39152
18634 * config/i386/i386.md: Restrict the new peephole2 to move
18635 between the general purpose registers.
18636
53f648e2
L
186372009-02-13 H.J. Lu <hongjiu.lu@intel.com>
18638
18639 PR target/39162
18640 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 18641 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
18642 (function_arg_advance): Updated.
18643 (function_arg): Likewise.
18644 (ix86_function_value): Likewise.
18645 (ix86_return_in_memory): Likewise.
18646 (ix86_sol10_return_in_memory): Likewise.
18647 (ix86_gimplify_va_arg): Likewise.
18648 (function_arg_32): Don't warn ABX ABI change here.
18649 (function_arg_64): Likewise.
18650
38432148 186512009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
18652
18653 * loop-iv.c (implies_p): In the final case, test that operands 0
18654 of the two comparisons match.
18655
dd2139e7
BS
18656 * config/bfin/bfin.c (find_prev_insn_start): New function.
18657 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
18658 (find_next_insn_start): Move.
18659
601b3e1a
RG
186602009-02-13 Richard Guenther <rguenther@suse.de>
18661
18662 * configure.ac: Enable LFS.
18663 * configure: Re-generate.
18664 * config.in: Likewise.
18665
f007042e
JM
186662009-02-13 Joseph Myers <joseph@codesourcery.com>
18667
18668 PR c/35444
18669 * c-parser.c (c_parser_parms_list_declarator): Discard pending
18670 sizes on syntax error after some arguments have been parsed.
18671
3f238e8b
JJ
186722009-02-12 Jakub Jelinek <jakub@redhat.com>
18673
18674 * doc/invoke.texi (-fira): Remove.
18675
328e13b7
L
186762009-02-12 H.J. Lu <hongjiu.lu@intel.com>
18677
18678 * caller-save.c: Replace regclass.c with reginfo.c in comments.
18679 * recog.c: Likewise.
18680 * rtl.h: Likewise.
18681
c252db20
L
186822009-02-12 Uros Bizjak <ubizjak@gmail.com>
18683
18684 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
18685 (umul_ppmm): Likewise.
18686 (count_leading_zeros): Likewise.
18687 (count_trailing_zeros): Likewise.
18688 (UMUL_TIME): Likewise.
18689
186902009-02-12 H.J. Lu <hongjiu.lu@intel.com>
18691
ba181049
UB
18692 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
18693 soft-fp/t-softfp to tmake_file.
c252db20
L
18694
18695 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
18696 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
18697 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
18698 IA64_BUILTIN_INFQ]: New.
c252db20
L
18699 (ia64_init_builtins): Initialize __builtin_infq,
18700 __builtin_fabsq and __builtin_copysignq if not HPUX.
18701 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
18702 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
18703
18704 * config/ia64/lib1funcs.asm (__divtf3): Define only if
18705 SHARED is defined.
18706 (__fixtfti): Likewise.
18707 (__fixunstfti): Likewise.
18708 (__floattitf): Likewise.
18709
18710 * config/ia64/libgcc-glibc.ver: New.
18711 * config/ia64/t-fprules-softfp: Likewise.
18712 * config/ia64/sfp-machine.h: Likewise.
18713
18714 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
18715 (LIBGCC2_TF_CEXT): Likewise.
18716 (TF_SIZE): Likewise.
18717 (TARGET_INIT_LIBFUNCS): Likewise.
18718
ba181049 18719 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 18720 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 18721
f13eae6a
L
187222009-02-12 H.J. Lu <hongjiu.lu@intel.com>
18723
18724 * config/i386/i386.c (construct_container): Rewrite processing
18725 BLKmode with X86_64_SSE_CLASS.
18726
12019aec
L
187272009-02-12 Paolo Bonzini <bonzini@gnu.org>
18728
18729 PR target/39152
18730 * config/i386/i386.md: Replace simplify_replace_rtx with
18731 replace_rtx in the new peephole2.
18732
28c11eb3
NS
187332009-02-12 Nathan Sidwell <nathan@codesourcery.com>
18734
18735 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
18736 loop unrolling do not happen at -O2.
18737
c7b94907
MM
187382009-02-12 Michael Matz <matz@suse.de>
18739
18740 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
18741
61e98967
JJ
187422009-02-12 Jakub Jelinek <jakub@redhat.com>
18743
18744 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
18745 for -g3.
18746
a2a237b5
BE
187472009-02-12 Ben Elliston <bje@au.ibm.com>
18748
18749 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
18750 patterns when updating the back chain. Missed in the 2009-02-10
18751 change.
18752
853eda8d
JJ
187532009-02-11 Janis Johnson <janis187@us.ibm.com>
18754
18755 * doc/extend.texi (Decimal Floating Types): Update identifier of
18756 draft TR and list of missing support.
18757
3ad6b266
JJ
187582009-02-11 Jakub Jelinek <jakub@redhat.com>
18759
18760 PR middle-end/39154
18761 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
18762 bit to variable length decl's flags, add it also to its
18763 pointer replacement variable.
18764
b058b753
UB
187652009-02-11 Uros Bizjak <ubizjak@gmail.com>
18766 Jakub Jelinek <jakub@redhat.com>
18767
18768 PR target/39118
18769 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
18770 (memory_blockage): New expander.
18771 (*memory_blockage): New insn pattern.
18772 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
18773 instead of general blockage at the end of function prologue when
18774 frame pointer is used to access red zone area. Do not emit blockage
18775 when profiling, it is emitted in generic code.
18776 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
18777 function epilogue when frame pointer is used to access red zone area.
18778
bab64f23
PB
187792009-02-11 Paolo Bonzini <bonzini@gnu.org>
18780
0ce6dcfa 18781 PR target/38824
bab64f23
PB
18782 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
18783 by arithmetic with memory operands.
18784 * config/i386/predicates.md (commutative_operator): New.
18785
8fd94bda
JJ
187862009-02-10 Janis Johnson <janis187@us.ibm.com>
18787
18788 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
18789 bulleted lists.
18790
794511d2
EB
187912009-02-10 Eric Botcazou <ebotcazou@adacore.com>
18792
18793 * alias.h (record_alias_subset): Declare.
18794 * alias.c (record_alias_subset): Make global.
18795
6da7fc87
NC
187962009-02-10 Nick Clifton <nickc@redhat.com>
18797
18798 * tree-parloops.c: Change license to GPLv3.
18799 * ipa-struct-reorg.c: Change license to GPLv3.
18800 * ipa-struct-reorg.h: Change license to GPLv3.
18801
a03813c8
SE
188022009-02-10 Steve Ellcey <sje@cup.hp.com>
18803
18804 PR c/39084
18805 * c-decl.c (start_struct): Return NULL on error.
18806
fc3103e7
JJ
188072009-02-10 Jakub Jelinek <jakub@redhat.com>
18808
9b43d37b
JJ
18809 PR middle-end/39124
18810 * cfgloopmanip.c (remove_path): Call remove_bbs after
18811 cancel_loop_tree, not before it.
18812
fc3103e7 18813 PR target/39139
b058b753 18814 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
18815 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
18816 VAR_DECLs were seen.
18817 * tree-ssa-live.c (remove_unused_locals): Recompute
18818 cfun->has_local_explicit_reg_vars.
18819 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
18820 copies or clearings if cfun->has_local_explicit_reg_vars.
18821
dbf9ee15
UB
188222009-02-10 Uros Bizjak <ubizjak@gmail.com>
18823
18824 PR target/39118
18825 * config/i386/i386.c (expand_prologue): Emit blockage at the end
18826 of function prologue when frame pointer is used to access
18827 red zone area.
18828
bdec4dc7
RG
188292009-02-10 Richard Guenther <rguenther@suse.de>
18830
18831 PR middle-end/39127
18832 * gimplify.c (gimple_regimplify_operands): Always look if
18833 we need to create a temporary.
18834
7cae94fc
RG
188352009-02-10 Richard Guenther <rguenther@suse.de>
18836
18837 PR tree-optimization/39132
18838 * tree-loop-distribution.c (todo): New global var.
18839 (generate_memset_zero): Trigger TODO_rebuild_alias.
18840 (tree_loop_distribution): Return todo.
18841
a8800687
L
188422009-02-10 H.J. Lu <hongjiu.lu@intel.com>
18843
18844 PR target/39119
18845 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
18846 (x86_64_reg_class_name): Removed.
18847 (classify_argument): Return 0 if bytes > 32. Return 0 if the
18848 first one isn't X86_64_SSE_CLASS or any other ones aren't
18849 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
18850 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
18851 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
18852 and 3 X86_64_SSEUP_CLASS.
18853 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
18854 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
18855
d4bacef0
BE
188562009-02-10 Ben Elliston <bje@au.ibm.com>
18857
18858 * config/rs6000/rs6000.md (allocate_stack): Always use an update
18859 form instruction to update the stack back chain word, even if the
18860 user has disabled the generation of update instructions.
18861 (movdi_<mode>_update_stack): New.
18862 (movsi_update_stack): Likewise.
18863 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
18864 always use an update form instruction to update the stack back
18865 chain word.
18866
01d7d2f3
SP
188672009-02-09 Sebastian Pop <sebastian.pop@amd.com>
18868
18869 PR middle-end/38953
b058b753
UB
18870 * graphite.c (if_region_set_false_region): After moving a region in
18871 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
18872 (gloog): Remove wrong fix for PR38953.
18873
e41e2ab4
UW
188742009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18875
18876 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
18877 generation due to implicit sign extension.
18878
4bb07c5d
EB
188792009-02-09 Eric Botcazou <ebotcazou@adacore.com>
18880
18881 PR middle-end/38981
18882 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
18883 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
18884
f060a261
RG
188852009-02-09 Richard Guenther <rguenther@suse.de>
18886
18887 PR middle-end/35202
18888 * convert.c (convert_to_real): Disable (float)fn((double)x)
18889 to fnf(x) conversion if errno differences may occur and
18890 -fmath-errno is set.
18891
5a7e237c
AS
188922009-02-07 Anatoly Sokolov <aesok@post.ru>
18893
18894 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
18895 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18896 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18897
feab5a67
JM
188982009-02-06 Joseph Myers <joseph@codesourcery.com>
18899
18900 PR c/35434
18901 * c-common.c (handle_alias_attribute): Disallow attribute for
18902 anything not a FUNCTION_DECL or VAR_DECL.
18903
90ef2296
JJ
189042009-02-06 Janis Johnson <janis187@us.ibm.com>
18905
18906 PR c/39035
18907 * real.c (do_compare): Special-case compare of zero against
18908 decimal float value.
18909
1de2c900
JM
189102009-02-06 Joseph Myers <joseph@codesourcery.com>
18911
18912 PR c/36432
18913 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
18914 as indicating flexible array members unless the field itself is
18915 being declarared as the incomplete array.
18916
e901811a
JH
189172009-02-06 Jan Hubicka <jh@suse.cz>
18918
18919 PR tree-optimization/38844
18920 * ipa-inline.c (try_inline): Stop inlining recursion when edge
18921 is already inlined.
18922
3cfa762b
RG
189232009-02-06 Richard Guenther <rguenther@suse.de>
18924
18925 PR middle-end/38977
18926 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
18927 fork because we may expand it as __gcov_fork.
18928
8506528c
NC
189292009-02-06 Nick Clifton <nickc@redhat.com>
18930
dbf9ee15 18931 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 18932
85169114
PB
189332009-02-06 Paolo Bonzini <bonzini@gnu.org>
18934
18935 PR tree-optimization/35659
18936 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
18937 vn_phi_eq): Shortcut if hashcode does not match.
18938 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
18939 NULL operands.
18940 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
18941 and avoid iterative_hash_expr.
18942 (FOR_EACH_VALUE_ID_IN_SET): New.
18943 (value_id_compare): Remove.
18944 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
18945 sort expressions by value id.
18946
6d39673d
KK
189472009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
18948
18949 PR target/38991
18950 * config/sh/predicates.md (general_movsrc_operand): Don't check
18951 the subreg of system registers here.
18952
e6e1c050
JJ
189532009-02-05 Jakub Jelinek <jakub@redhat.com>
18954
18955 PR c++/39106
18956 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
18957 on the copied decl.
18958
65a74b5d
PB
189592009-02-05 Paolo Bonzini <bonzini@gnu.org>
18960
18961 PR rtl-optimization/39110
18962 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
18963 addresses, not aligned ones.
18964
08e14b2a
DB
189652009-02-05 Daniel Berlin <dberlin@dberlin.org>
18966 Richard Guenther <rguenther@suse.de>
18967
18968 PR tree-optimization/39100
18969 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
18970 comment says and add edges.
18971
5006381c
JM
189722009-02-05 Joseph Myers <joseph@codesourcery.com>
18973
18974 PR c/35435
18975 * c-common.c (handle_tls_model_attribute): Ignore attribute for
18976 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
18977
2ba9daa7 189782009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
18979
18980 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
18981 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
18982 register_bb_in_sese, new_sese, free_sese): Moved.
18983 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
18984 outermost_loop_in_scop, build_scop_iteration_domain,
18985 expand_scalar_variables_ssa_name, get_vdef_before_scop,
18986 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
18987 Use loop_in_sese_p instead of loop_in_scop_p.
18988 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
18989 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
18990 (scopdet_basic_block_info): Fix bug in scop detection.
18991 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
18992 eq_loop_to_cloog_loop): Remove.
18993 (nb_loops_around_loop_in_scop, nb_loop
18994 ref_nb_loops): Moved here...
18995 * graphite.h (ref_nb_loops): ... from here.
18996 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
18997 (loop_domain_dim, loop_iteration_vector_dim): Remove.
18998 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
18999 * testsuite/gcc.dg/graphite/scop-19.c: New
19000
48e8382e
PB
190012009-02-04 Paolo Bonzini <bonzini@gnu.org>
19002 Hans-Peter Nilsson <hp@axis.com>
19003
19004 PR rtl-optimization/37889
19005 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
19006 Move offset handling from PLUS to before the switch. Use new
19007 arguments when considering SYMBOL_REFs too.
19008 (rtx_addr_can_trap_p): Pass dummy offset and size.
19009 (enum may_trap_p_flags): Remove.
19010 (may_trap_p_1): Pass size from MEM_SIZE.
19011
19012 PR rtl-optimization/38921
19013 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
19014 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
19015 * rtlanal.c (may_trap_after_code_motion_p): Delete.
19016 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
19017
69349ea5
L
190182009-02-04 H.J. Lu <hongjiu.lu@intel.com>
19019
19020 AVX Programming Reference (January, 2009)
19021 * config/i386/sse.md (*vpclmulqdq): New.
19022
b545e411
JJ
190232009-02-04 Jakub Jelinek <jakub@redhat.com>
19024
19025 PR tree-optimization/38977
19026 PR gcov-profile/38292
bf9b2cc9 19027 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 19028
5b43bf05
HS
190292009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
19030
19031 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
19032 non-indexable addresses even before reload.
19033
062c4bb3
JM
190342009-02-03 Joseph Myers <joseph@codesourcery.com>
19035
19036 PR c/29129
19037 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
19038 as having variable size. Do not give an error for unnamed
19039 parameters with [*] declarators. Give a warning for type names
19040 with [*] declarators and mark them as variable size.
19041 * c-parser.c (c_parser_sizeof_expression): Do not give an error
19042 for sizeof applied to [*] type names.
19043
6175f578
AP
190442009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
19045
19046 PR C++/36607
19047 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
19048
d4f4bc84
JJ
190492009-02-03 Jakub Jelinek <jakub@redhat.com>
19050
19051 * gcc.c (process_command): Update copyright notice dates.
19052 * gcov.c (print_version): Likewise.
19053 * gcov-dump.c (print_version): Likewise.
19054 * mips-tfile.c (main): Likewise.
19055 * mips-tdump.c (main): Likewise.
19056
f6294de7
JM
190572009-02-03 Joseph Myers <joseph@codesourcery.com>
19058
19059 PR c/35433
19060 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
19061 for composite type involving a zero-length array type.
19062
754ccf7c
JJ
190632009-02-03 Jakub Jelinek <jakub@redhat.com>
19064
70f16287
JJ
19065 PR target/35318
19066 * function.c (match_asm_constraints_1): Skip over
19067 initial optional % in the constraint.
19068
754ccf7c
JJ
19069 PR inline-asm/39059
19070 * c-parser.c (c_parser_postfix_expression): If fixed point is not
19071 supported, don't accept FIXED_CSTs.
19072 * c-decl.c (finish_declspecs): Error if fixed point is not supported
19073 and _Sat is used without _Fract/_Accum. Set specs->type to
19074 integer_type_node for cts_fract/cts_accum if fixed point is not
19075 supported.
19076
965fdadf
CM
190772009-02-02 Catherine Moore <clm@codesourcery.com>
19078
dbf9ee15 19079 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 19080
2e8a796f
RS
190812009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
19082
19083 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
19084 (ABI_HAS_64BIT_SYMBOLS): Use it.
19085 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
19086
e0079468
PB
190872009-02-02 Paul Brook <paul@codesourcery.com>
19088
19089 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
19090
eca72963
JJ
190912009-02-02 Jakub Jelinek <jakub@redhat.com>
19092
19093 PR inline-asm/39058
19094 * recog.h (asm_operand_ok): Add constraints argument.
19095 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
19096 recurse on matching constraint.
19097 (check_asm_operands): Pass constraints as 3rd argument to
19098 asm_operand_ok. Don't look up matching constraint here.
19099 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
19100 to asm_operand_ok.
19101
b5bde9ff
BE
191022009-02-02 Ben Elliston <bje@au.ibm.com>
19103
19104 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
19105 TARGET_NARROW_VOLATILE_BITFIELD macro names.
19106
30f3e427
JDA
191072009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19108
be7659ba
JDA
19109 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
19110 information. Remove some obsolete information. Reorganize.
19111
30f3e427
JDA
19112 * config/pa/fptr.c: Revert license to GPL 2.
19113 * config/pa/milli64.S: Likewise.
19114
3cbfaf98
DK
191152009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
19116
19117 PR target/38904
19118 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
19119 LIBRARY name in, instead of hard-coding it.
19120 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
19121 extra target make frag to tmake_files according to EH model.
19122 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
19123 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
19124 frags that define makefile variable EH_MODEL appropriately.
19125 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
19126 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
19127 to "-sjlj" according to type of EH configured.
19128 (LIBGCC_SONAME): Concatenate it to shared library base name.
19129 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
19130 to "_sjlj" according to type of EH configured.
19131 (LIBGCC_SONAME): Concatenate it to shared library base name.
19132 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
19133 (SHLIB_LINK): Add missing semicolon to if-else construct.
19134 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
19135 string value of "pe_dll" command-line option.
19136 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
19137 (SHLIB_SONAME): Use it when overriding t-cygming default.
19138 (SHLIB_IMPLIB): Override t-cygming default.
19139 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
19140 string value of "pe_dll" command-line option.
19141
8d0b6068
DK
191422009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
19143
19144 PR target/38952
19145 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 19146 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 19147
14c28276
RG
191482009-01-31 Richard Guenther <rguenther@suse.de>
19149
19150 PR tree-optimization/38937
19151 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
19152 computing the transitive closure.
19153
5f4d82c2
RG
191542009-01-30 Richard Guenther <rguenther@suse.de>
19155
19156 PR tree-optimization/39041
19157 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
19158 Propagate variable indices only if the types match for this stmt.
19159
d0728ae0
JJ
191602009-01-30 Jakub Jelinek <jakub@redhat.com>
19161
19162 PR target/39013
19163 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
19164 inline but never defined.
19165
6b67572e 191662009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
19167
19168 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
19169 (*insv_h_di_reg_extimm): New insn.
19170 (*insv_l<mode>_reg_extimm): New insn.
19171
191722009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
19173
19174 * config/picochip/picochip.c (flag_conserve_stack): set
19175 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
19176 fconserve-stack. Reduce call-overhead used by inliner.
19177
9fec758d 191782009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
19179
19180 PR/38157
19181 * common.opt (flag_conserve_stack): Initialised to zero.
19182
7f1c539c
KT
191832009-01-30 Kai Tietz <kai.tietz@onevision.com>
19184
19185 PR/39002
19186 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
19187 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
19188 method.
19189
3631be48
L
191902009-01-29 H.J. Lu <hongjiu.lu@intel.com>
19191
19192 * ira-color.c (allocno_reload_assign): Update comments.
19193 * regmove.c (regmove_optimize): Likewise.
19194
19195 * ra.h: Removed.
19196
416ac4d4
RM
191972009-01-29 Robert Millan <rmh@aybabtu.com>
19198
60839f5d
EB
19199 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
19200 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 19201 `MD_UNWIND_SUPPORT'.
60839f5d 19202 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 19203
d5e54bc1
KH
192042009-01-29 Kazu Hirata <kazu@codesourcery.com>
19205
19206 PR tree-optimization/39007
19207 * tree-loop-distribution.c (generate_builtin): Use
19208 recompute_dominator to compute the immediate dominator of the
19209 basic block just after the loop.
19210
38432148 192112009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
19212
19213 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
19214 (ASM_OUTPUT_DWARF_PCREL): Define.
19215
38432148 192162009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
19217
19218 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
19219 * doc/passes.texi: Remove entries about regclass, local-alloc, and
19220 global. Modify entries about regmove and IRA.
19221
19222 * ra-conflict.c: Remove the file.
19223
19224 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
19225
19226 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
19227 (pass_regclass_init): Rename to pass_reginfo_init.
19228
19229 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
19230
19231 * toplev.h (flag_ira): Remove.
19232
19233 * caller-save.c (setup_save_areas): Remove flag_ira.
19234
bf9b2cc9 19235 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
19236
19237 * global.c: Remove the file.
19238
ba20e309 19239 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
19240
19241 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
19242
19243 * regmove.c: Modify file description.
19244 (find_use_as_address, try_auto_increment): Define them only if
19245 AUTO_INC_DEC is defined.
19246 (replacement_quality, replace_in_call_usage, fixup_match_1,
19247 stable_and_no_regs_but_for_p): Remove.
19248 (reg_set_in_bb): Make it static.
19249 (regmove_optimize): Remove flag_ira and code which worked for
19250 !flag_ira.
19251
19252 * local-alloc.c: Remove the file.
19253
19254 * common.opt (fira): Remove.
19255
19256 * ira.c: Include except.h.
19257 (eliminable_regset): Move from global.c.
19258 (mark_elimination): Ditto. Remove flag_ira.
19259 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
19260 equiv_mem_modified, validate_equiv_mem_from_store,
19261 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
19262 contains_replace_regs, memref_referenced_p, memref_used_between_p,
19263 no_equiv, recorded_label_ref): Move from local-alloc.c.
19264 (update_equiv_regs): Ditto. Make it static.
19265 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 19266 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
19267 (build_insn_chain): Ditto. Make it static.
19268 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
19269 Rename to init_live_subregs.
19270 (gate_ira): Remove flag_ira.
19271
19272 * regclass.c: Rename reginfo.c. Change file description.
19273 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 19274 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
19275 (init_reg_sets_1): Remove code for evaluation of
19276 reg_class_superclasses and losing_caller_save_reg_set.
19277 (init_regs): Remove init_reg_autoinc.
19278 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
19279 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 19280 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
19281 (pass_regclass_init): Rename to pass_reginfo_init. Modify
19282 corresponding entries.
19283 (dump_regclass, record_operand_costs, scan_one_insn,
19284 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
19285 record_address_regs, auto_inc_dec_reg_p): Remove.
19286 (gt-regclass.h): Rename to gt-reginfo.h.
19287
19288 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 19289 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
19290
19291 * Makefile.in (RA_H): Remove.
19292 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
19293 Rename regclass.o to reginfo.o.
19294 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
19295 gt-reginfo.h.
19296 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
19297 (GTFILES): Rename regclass.c to reginfo.c.
19298
19299 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 19300 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
19301
19302 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
19303 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
19304 Remove flag_ira.
6b67572e 19305 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 19306
c95b2534 193072009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
19308
19309 PR middle-end/35854
19310 * doc/invoke.texi (rtl debug options): Complete rewrite.
19311 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
19312 to auto_inc_dec".
19313 * mode-switching.c (pass_mode_switching): Rename pass from
19314 "mode-sw" to "mode_sw".
19315 * except.c (pass_convert_to_eh_ranges): Rename pass from
19316 "eh-ranges" to "eh_ranges".
19317 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
19318 to "subreg1".
2ba9daa7
AS
19319
19320
72a54528
AM
193212009-01-29 Andrey Belevantsev <abel@ispras.ru>
19322 Alexander Monakov <amonakov@ispras.ru>
19323
19324 PR middle-end/38857
19325 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
19326 register.
19327 (move_exprs_to_boundary): Change return type and pass through
19328 should_move from move_op. Relax assert. Update usage ...
19329 (schedule_expr_on_boundary): ... here. Use should_move instead of
19330 cant_move.
19331 (move_op_orig_expr_found): Indicate that insn was disconnected from
19332 stream.
19333 (code_motion_process_successors): Do not call after_merge_succs
19334 callback if original expression was not found when traversing any of
19335 the branches.
19336 (code_motion_path_driver): Change return type. Update prototype.
19337 (move_op): Update comment. Add a new parameter (should_move). Update
19338 prototype. Set *should_move based on indication provided by
19339 move_op_orig_expr_found.
19340
001b9eb6
PH
193412009-01-28 Pat Haugen <pthaugen@us.ibm.com>
19342
19343 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
19344 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
19345 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
19346 * config/rs6000/rs6000.c (rs6000_override_options): Default
19347 avoid-indexed-addresses on for Power6, off for everything else.
19348 (avoiding_indexed_address_p): New function.
19349 (rs6000_legitimize_address): Use it.
19350 (rs6000_legitimate_address): Likewise.
19351 * config/rs6000/rs6000.md (movXX_updateX): Likewise
19352
59dc4898
KH
193532009-01-28 Kazu Hirata <kazu@codesourcery.com>
19354
19355 PR tree-optimization/38997
19356 * tree-loop-distribution.c (generate_memset_zero): Use
19357 POINTER_PLUS_EXPR for a pointer addition.
19358
07da44ab
AK
193592009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
19360
19361 * config/s390/s390.md (bswap<mode>2): New pattern added.
19362
cdc15d23
WG
193632009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
19364
19365 * config/s390/s390.md (*tls_load_31): Added type attribute.
19366
d46f24b6
WG
193672009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
19368
19369 * config/s390/s390.md: Fix a few comments.
19370
729e750f
WG
193712009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
19372
19373 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
19374 (*tm<mode>_full): Fixed z10prop attribute.
19375 (*tst<mode>_extimm): Fixed z10prop attribute.
19376 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
19377 (*tstqiCCT_cconly): Fixed z10prop attribute.
19378 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
19379 (*movsi_larl): Fixed z10prop attribute.
19380 (*movsi_zarch): Fixed z10prop attribute.
19381 (*movsi_eas): Fixed z10prop attribute.
19382 (*movhi): Fixed z10prop attribute.
19383 (*movqi): Fixed z10prop attribute.
19384 (*movstrictqi): Fixed z10prop attribute.
19385 (*mov<mode>): Fixed z10prop attribute.
19386 (*movcc): Fixed z10prop attribute.
19387 (*sethighpartdi_64): Fixed z10prop attribute.
19388 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
19389 (*negdi2_sign_cc): Fixed z10prop attribute.
19390 (*negdi2_sign): Fixed z10prop attribute.
19391 (*absdi2_sign_cc): Fixed z10prop attribute.
19392 (*absdi2_sign): Fixed z10prop attribute.
19393 (*negabsdi2_sign_cc): Fixed z10prop attribute.
19394 (*negabsdi2_sign): Fixed z10prop attribute.
19395 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
19396 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
19397 (doloop_si64): Fixed z10prop attribute.
19398 (doloop_si31): Fixed z10prop attribute.
19399 (doloop_long): Fixed z10prop attribute.
19400 (indirect_jump): Fixed z10prop attribute.
19401 (nop): Fixed z10prop attribute.
19402 (main_base_64): Fixed z10prop attribute.
19403 (reload_base_64): Fixed z10prop attribute.
19404
c7789bfb
JJ
194052009-01-28 Jakub Jelinek <jakub@redhat.com>
19406
19407 PR rtl-optimization/38740
6b67572e
UB
19408 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
19409 if !optimize.
c7789bfb
JJ
19410 * config/mips/mips.c (mips_reorg): Likewise.
19411
de081cfd
RG
194122009-01-28 Richard Guenther <rguenther@suse.de>
19413
19414 PR tree-optimization/38926
19415 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
19416 with the correct value id to a value.
19417 (do_regular_insertion): Use the value number of edoubleprime
19418 for the value number of the expr.
19419
19420 Revert
19421 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 19422
d748c406
UB
19423 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
19424 a PHI ask VN if it is already available.
19425 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
19426 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 19427
a9d386a1
JJ
194282009-01-28 Jakub Jelinek <jakub@redhat.com>
19429
19430 PR middle-end/38934
19431 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
19432 set to varying whenever max has TREE_OVERFLOW set, similarly
19433 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
19434
97a170cd
RG
194352009-01-28 Richard Guenther <rguenther@suse.de>
19436
19437 PR middle-end/38908
19438 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
19439 uninitialized aggregate uses in call arguments.
19440
89ebafc6
PB
194412009-01-28 Paolo Bonzini <bonzini@gnu.org>
19442
19443 PR tree-optimization/38984
19444 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
19445 the nothing_id variable if -fno-delete-null-pointer-checks.
19446
bef3c57b
UB
194472009-01-28 Uros Bizjak <ubizjak@gmail.com>
19448
19449 PR target/38988
19450 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
19451 (set_got_offset_rex64): Ditto.
19452
0c6390fa
L
194532009-01-27 H.J. Lu <hongjiu.lu@intel.com>
19454
19455 PR target/38941
19456 * doc/extend.texi: Improve local variable with asm reg.
19457
bee6fa6d
AN
194582009-01-27 Adam Nemet <anemet@caviumnetworks.com>
19459
19460 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
19461 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
19462 was not supplied then set warn_packed_bitfield_compat to the
19463 default value of 1.
19464 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
19465 against 1.
19466
b5c3dfbb
RG
194672009-01-27 Richard Guenther <rguenther@suse.de>
19468
19469 PR tree-optimization/38503
19470 * cfgexpand.c (expand_gimple_basic_block): Ignore
19471 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
19472 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
19473 variables that cannot have TBAA applied.
19474 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
19475 statements.
19476
d748c406 194772009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
19478
19479 PR middle-end/38969
19480 * calls.c (initialize_argument_information): Do not wrap complex
19481 arguments in SAVE_EXPR.
19482
9112bb38
AT
194832009-01-26 Andreas Tobler <a.tobler@schweiz.org>
19484
19485 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 19486 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 19487
4757704f
RG
194882009-01-26 Richard Guenther <rguenther@suse.de>
19489
19490 PR tree-optimization/38745
19491 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
19492 from special handling.
19493
e3e6cff4
RG
194942009-01-26 Richard Guenther <rguenther@suse.de>
19495
19496 PR tree-optimization/38745
19497 * tree-ssa.c (execute_update_addresses_taken): Do not include
19498 variables that cannot possibly be a register in not_reg_needs.
19499 Do not clear TREE_ADDRESSABLE on vars that may not become
19500 registers.
19501 * tree-ssa.c (update_alias_info_1): Include those in the set
19502 of addressable vars.
19503
dc874b53
RG
195042009-01-26 Richard Guenther <rguenther@suse.de>
19505
19506 PR middle-end/38851
19507 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
19508 * tree-ssa-dse.c: Include langhooks.h
19509 (execute_simple_dse): Remove stores with zero size.
19510
849421a3
JJ
195112009-01-24 Jakub Jelinek <jakub@redhat.com>
19512
19513 PR c/38957
19514 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
19515 as PLUS_EXPR.
19516
82f70421
JB
195172009-01-24 Julian Brown <julian@codesourcery.com>
19518
19519 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
19520 config/arm/linux-atomic.c.
19521 * config/arm/linux-atomic.c: New.
19522
863412d6
EB
195232009-01-24 Eric Botcazou <ebotcazou@adacore.com>
19524
19525 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
19526 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
19527 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
19528
8c684300
L
195292009-01-24 H.J. Lu <hongjiu.lu@intel.com>
19530
19531 PR c/38938
93f1527a 19532 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
19533 properly.
19534
b840fb02
SP
195352009-01-24 Sebastian Pop <sebastian.pop@amd.com>
19536
19537 PR tree-optimization/38953
19538 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
19539 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
19540 (gloog): Split the exit of the scop when the scop exit is a loop exit.
19541 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
19542 changed the CFG.
19543
ecee559f
PB
195442009-01-24 Paul Brook <paul@codesourcery.com>
19545
19546 * config/arm/neon.md (neon_type): Move to arm.md.
19547 (neon_mov<VSTRUCT>): Add neon_type attribute.
19548 * config/arm/arm.md (neon_type): Move to here.
19549 (conds): Add "unconditioal" and use as default for NEON insns.
19550
61ad0914
BE
195512009-01-24 Ben Elliston <bje@au.ibm.com>
19552
19553 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
19554 void *' warning from -Wc++-compat.
19555 * Makefile.in (dominance.o-warn): Remove.
19556
38432148 195572009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
19558
19559 PR tree-optimization/38932
19560 * fold-const.c (fold_unary_ignore_overflow): New.
19561 * tree.h (fold_unary_ignore_overflow): Declare.
19562 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
19563 * tree-ssa-sccvn.c (visit_reference_op_load,
19564 simplify_unary_expression): Likewise.
19565
2cd36c22
AN
195662009-01-22 Adam Nemet <anemet@caviumnetworks.com>
19567
19568 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
19569 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
19570 regardless of their type.
19571 * c-common.c (handle_packed_attribute): Don't ignore packed on
19572 bitfields.
19573 * c.opt (Wpacked-bitfield-compat): New warning option.
19574 * stor-layout.c (place_field): Warn if offset of a field changed.
19575 * doc/extend.texi (packed): Mention the ABI change.
19576 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
19577 (Warning Options): Add it to the list.
19578
e4e624ab
L
195792009-01-22 H.J. Lu <hongjiu.lu@intel.com>
19580
19581 * c-opts.c (c_common_post_options): Fix a typo in comments.
19582
d0ea0759
SE
195832009-01-22 Steve Ellcey <sje@cup.hp.com>
19584
19585 PR middle-end/38615
19586 * gimplify.c (gimplify_init_constructor): Fix promotion of const
19587 variables to static.
19588 * doc/invoke.texi (-fmerge-all-constants): Update description.
19589
87673f84
UB
195902009-01-22 Uros Bizjak <ubizjak@gmail.com>
19591
19592 PR target/38931
19593 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
19594 (*movdi_1_rex64): Use type "mmx" for alternative 5.
19595
96339268
RE
195962009-01-22 Richard Earnshaw <rearnsha@arm.com>
19597
19598 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
19599 a word boundary.
19600 (LOCAL_ALIGNMENT): Similarly.
19601
442dc742 196022009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 19603 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
19604
19605 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
19606 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
19607 * config/arm/arm-tune.md: Regenerate.
19608 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
19609 -march=iwmmxt2.
19610
9b34732e
MS
196112009-01-22 Mark Shinwell <shinwell@codesourcery.com>
19612
19613 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
19614 version number to five.
19615
03c2a308
DS
196162009-01-22 Dodji Seketeli <dodji@redhat.com>
19617
19618 PR c++/38930
ba20e309 19619 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
19620 * c-common.c (set_underlying_type): Likewise.
19621 (is_typedef_decl ): Likewise
19622 * tree.h: Likewise
19623 (set_underlying_type): Likewise.
19624 (is_typedef_type): Likewise.
19625
1240d76e
VM
196262009-01-21 Vladimir Makarov <vmakarov@redhat.com>
19627
19628 PR middle-end/38587
19629 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
19630 crossing setjmps.
19631
b8a1087d
DK
196322009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
19633
19634 PR bootstrap/37660
19635 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
19636 (LIBGCC_SPEC): Don't define.
19637 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
19638
435da628
UB
196392009-01-21 Uros Bizjak <ubizjak@gmail.com>
19640
19641 PR rtl-optimization/38879
19642 * alias.c (base_alias_check): Unaligned access via AND address can
19643 alias all surrounding object types except those with sizes equal
19644 or wider than the size of unaligned access.
19645
d597b3ce
DS
196462009-01-21 Dodji Seketeli <dodji@redhat.com>
19647
19648 PR c++/26693
ba20e309 19649 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 19650 * c-common.c (set_underlying_type): ... here.
435da628 19651 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
19652 the newly created typedef variant type.
19653 (is_typedef_decl ): New entry point.
19654 * tree.h: Added a new member member_types_needing_access_check to
19655 struct tree_decl_non_common.
19656 (set_underlying_type): New entry point.
19657 (is_typedef_type): Likewise.
19658
71a6fe66
BM
196592009-01-21 Bingfeng Mei <bmei@broadcom.com>
19660
19661 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
19662 Check whether two instructions have memory references that
19663 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
19664 are helper functions for traversing.
19665 * alias.h (insn_alias_sets_confilict_p): New prototypes.
19666 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
19667 not to draw dependency edge for instructions with non-conflicting
19668 alias sets.
19669
5a248274
JM
196702009-01-20 Joseph Myers <joseph@codesourcery.com>
19671
19672 PR other/38758
6b67572e
UB
19673 * longlong.h: Update copyright years. Use soft-fp license notice.
19674 Sync __clz_tab declaration with glibc.
5a248274 19675
4b84f3de
SE
196762009-01-20 Steve Ellcey <sje@cup.hp.com>
19677
19678 PR target/30687
19679 * doc/extend.texi (syscall_linkage): New.
19680 (version_id): Modify.
19681
37348bf1 196822009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 19683 Richard Guenther <rguenther@suse.de>
37348bf1
AP
19684
19685 PR tree-optimization/38747
19686 PR tree-optimization/38748
19687 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
19688 conversion if the base address is an indirect reference and the
19689 aliasing sets could cause issues.
19690
d0a58904
SP
196912009-01-20 Sebastian Pop <sebastian.pop@amd.com>
19692
2ba9daa7 19693 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
19694 explaining why these options are not documented.
19695
71e7afb2
SP
196962009-01-20 Sebastian Pop <sebastian.pop@amd.com>
19697
19698 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
19699 gimple_call_lhs is NULL.
19700
38432148 197012009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
19702
19703 PR target/38868
19704 * emit-rtl.c (adjust_address_1): Make sure memref is never
19705 overwritten.
19706
cbb8dee3
BE
197072009-01-20 Ben Elliston <bje@au.ibm.com>
19708
19709 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 19710 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
19711 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19712 const qualifier from arg 2.
19713
72c66596
IS
197142009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
19715
435da628 19716 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 19717
f68211cd
VM
197182009-01-19 Vladimir Makarov <vmakarov@redhat.com>
19719
19720 PR c/38869
19721 * rtl.h (reinit_regs): New prototype.
19722 * regclass.c: Include ira.h.
19723 (reinit_regs): New.
19724 * Makefile.in (regclass.o): Add ira.h.
19725 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
19726
6e4f1168
L
197272009-01-18 H.J. Lu <hongjiu.lu@intel.com>
19728
19729 PR target/38736
19730 * c-common.c (handle_aligned_attribute): Use
19731 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
19732 default alignment value.
19733
19734 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
19735
19736 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
19737 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
19738
19739 * doc/extend.texi: Update __attribute__ ((aligned)). Document
19740 __BIGGEST_ALIGNMENT__.
19741
19742 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
19743
890065bf
RG
197442009-01-18 Richard Guenther <rguenther@suse.de>
19745
19746 PR tree-optimization/38819
19747 * tree-flow.h (operation_could_trap_helper_p): Declare.
19748 * tree-eh.c (operation_could_trap_helper_p): Export.
19749 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
19750 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
19751 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
19752 are about to insert a possibly trapping instruction and fail
19753 in this case.
19754
a729d731
AS
197552009-01-18 Andreas Schwab <schwab@suse.de>
19756
19757 * doc/install.texi (Configuration): Remove obsolete paragraph
19758 about use of --with-gnu-ld with --with-gnu-as.
19759
a640c13b
KH
197602009-01-18 Kazu Hirata <kazu@codesourcery.com>
19761
19762 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
19763 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
19764 Follow spelling conventions.
19765
dba2cc0c
BE
197662009-01-18 Ben Elliston <bje@au.ibm.com>
19767
19768 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
19769 C++ warning about implicit conversion from void * to struct
19770 bitmap_head_def *.
19771 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 19772 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 19773
2207a498
DK
197742009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
19775
19776 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
19777
8137e465
SP
197782009-01-17 Sebastian Pop <sebastian.pop@amd.com>
19779 Tobias Grosser <tobi.grosser@amd.com>
19780
19781 * graphite.c (graphite_trans_scop_block): Do not block single
19782 nested loops.
19783
5be1c58c
AO
197842009-01-16 Alexandre Oliva <aoliva@redhat.com>
19785
19786 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
19787 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
19788 test with assertion.
19789
786ce82d
RG
197902009-01-16 Richard Guenther <rguenther@suse.de>
19791
19792 PR tree-optimization/38835
19793 PR middle-end/36227
19794 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
19795 and INT + PTR -> (INT)(PTR p+ INT) folding.
19796 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
19797
c1cb09ad
AN
197982009-01-16 Adam Nemet <anemet@caviumnetworks.com>
19799
19800 PR target/38554
19801 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
19802 the subreg from a lowpart subreg if it is also casting the value.
19803
bcab4e19
SP
198042009-01-16 Sebastian Pop <sebastian.pop@amd.com>
19805 Tobias Grosser <tobi.grosser@amd.com>
19806
19807 * graphite.c (compare_prefix_loops): New.
19808 (build_scop_canonical_schedules): Rewritten.
19809 (graphite_transform_loops): Move build_scop_canonical_schedules
19810 after build_scop_iteration_domain.
19811
0b040072
SP
198122009-01-16 Sebastian Pop <sebastian.pop@amd.com>
19813 Tobias Grosser <tobi.grosser@amd.com>
19814
2ba9daa7 19815 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
19816 the dimension of the iteration domain. Do copy the domain
19817 only when it exists.
19818 (build_scop_conditions_1): Do not call add_conditions_to_domain.
19819 (add_conditions_to_constraints): New.
19820 (can_generate_code_stmt, can_generate_code): Removed.
19821 (gloog): Do not call can_generate_code.
19822 (graphite_transform_loops): Call add_conditions_to_constraints
19823 after building the iteration domain.
19824
56c6a499
JJ
198252009-01-16 Jakub Jelinek <jakub@redhat.com>
19826
19827 PR tree-optimization/38789
19828 * tree-ssa-threadedge.c
19829 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19830 __builtin_constant_p.
19831
c95b2534 198322009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
19833
19834 * dce.c (delete_unmarked_insns): Reversed the order that insns are
19835 examined before deleting them.
2ba9daa7 19836
c433cb14
RE
198372009-01-16 Richard Earnshaw <rearnsha@arm.com>
19838
19839 * function.c (aggregate_value_p): Correctly extract the function
19840 type from CALL_EXPR_FN lookup.
19841
c95b2534 198422009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
19843
19844 * config/picochip/picochip.c (picochip_override_options): Revert
19845 CFI asm flag disable commited previously.
19846
c77bb78f
SP
198472009-01-15 Sebastian Pop <sebastian.pop@amd.com>
19848 Tobias Grosser <tobi.grosser@amd.com>
19849 Jan Sjodin <jan.sjodin@amd.com>
19850
19851 * graphite.c (scan_tree_for_params): On substractions negate
19852 all the coefficients of the term.
19853 (clast_to_gcc_expression_red): New. Handle reduction expressions
19854 of more than two operands.
19855 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
19856 (get_vdef_before_scop): Handle also the case of default definitions.
19857
574af2d6
RS
198582009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
19859
19860 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
19861 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
19862 Also use them when walking CALL_INSN_FUNCTION_USAGE.
19863
e939805b
L
198642009-01-15 H.J. Lu <hongjiu.lu@intel.com>
19865 Joey Ye <joey.ye@intel.com>
19866
19867 PR middle-end/37843
19868 * cfgexpand.c (expand_stack_alignment): Don't update stack
19869 boundary nor check incoming stack boundary here.
19870 (gimple_expand_cfg): Update stack boundary and check incoming
19871 stack boundary here.
19872
c95b2534 198732009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 19874
435da628 19875 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 19876
0196c95e
JJ
198772009-01-14 Jakub Jelinek <jakub@redhat.com>
19878
19879 PR rtl-optimization/38245
19880 * calls.c (expand_call): Add stack arguments to
19881 CALL_INSN_FUNCTION_USAGE even for pure calls (when
19882 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
19883 in regs and partially in memory or BLKmode arguments.
19884 (emit_library_call_value_1): Add stack arguments to
19885 CALL_INSN_FUNCTION_USAGE even for pure calls (when
19886 ACCUMULATE_OUTGOING_ARGS).
19887 * dce.c: Include tm_p.h.
19888 (find_call_stack_args): New function.
19889 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
19890 argument.
19891 (mark_insn): Call find_call_stack_args for CALL_Ps.
19892 (prescan_insns_for_dce): Walk insns backwards in bb rather than
19893 forwards. Allocate and free arg_stores bitmap if needed, pass it
19894 down to deletable_insn_p, don't mark stores set in arg_stores
19895 bitmap, clear the bitmap at the beginning of each bb.
19896 * Makefile.in (dce.o): Depend on $(TM_P_H).
19897
6df6bcfa
MM
198982009-01-14 Michael Meissner <gnu@the-meissners.org>
19899
19900 PR target/22599
435da628
UB
19901 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
19902 to make sure the insn is a conditional test (bug 22599). Reformat a
19903 few long lines.
6df6bcfa 19904
765ec70c
SP
199052009-01-14 Sebastian Pop <sebastian.pop@amd.com>
19906
19907 PR middle-end/38431
19908 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
19909 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
19910 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 19911 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
19912 scops have been code generated.
19913
7de2b688
BS
199142009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
19915 * doc/gty.texi (Invoking the garbage collector): Added new node
19916 and section documenting ggc_collect.
19917
10bd6c5c
RG
199182009-01-14 Richard Guenther <rguenther@suse.de>
19919
19920 PR tree-optimization/38826
19921 PR middle-end/38477
19922 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
19923 initialization notes only if we actually emitted a warning.
19924 (intra_create_variable_infos): Add constraints for a result decl
19925 that is passed by hidden reference.
19926 (build_pred_graph): Mark all related variables non-direct on
19927 address-taking.
19928
9c7c70ee
NC
199292009-01-14 Nick Clifton <nickc@redhat.com>
19930
19931 * ira-conflicts.c: Include addresses.h for the definition of
19932 base_reg_class.
435da628
UB
19933 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
19934 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 19935
cf0c2a60
VM
199362009-01-13 Vladimir Makarov <vmakarov@redhat.com>
19937
19938 PR target/38811
19939 * Makefile.in (ira-lives.o): Add except.h.
19940
19941 * ira-lives.c: Include except.h.
19942 (process_bb_node_lives): Process can_throw_internal.
19943
d3302fd3
JJ
199442009-01-13 Jakub Jelinek <jakub@redhat.com>
19945
19946 PR rtl-optimization/38774
19947 * combine.c (simplify_set): When undoing cc_use change, don't do
19948 PUT_CODE on the newly created comparison, but instead put back the
19949 old comparison.
19950
7ab23fd0
JM
199512009-01-13 Joseph Myers <joseph@codesourcery.com>
19952
19953 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
19954 values. Remove duplicate arm8 entry.
19955
f9344488
SP
199562009-01-13 Sebastian Pop <sebastian.pop@amd.com>
19957
19958 PR tree-optimization/38786
19959 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
19960 the SSA_NAME case of expand_scalar_variables_expr.
19961 Set the type of an expression to the type of its assign statement.
19962 (expand_scalar_variables_expr): Also gather the scalar computation
19963 used to index the memory access. Do not pass loop_p.
19964 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
19965 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
19966 the gimple_stmt_iterator where it inserts new code.
19967 Do not pass loop_p.
f9344488
SP
19968 (copy_bb_and_scalar_dependences): Do not pass loop_p.
19969 (translate_clast): Update call to copy_bb_and_scalar_dependences.
19970
2d8bb84d
SP
199712009-01-13 Sebastian Pop <sebastian.pop@amd.com>
19972
19973 * graphite.h (debug_value): Removed.
19974 * graphite.c (debug_value): Removed.
19975
ff128632
RE
199762009-01-13 Richard Earnshaw <rearnsha@arm.com>
19977
435da628
UB
19978 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
19979 ldrd/strd with two 32-bit instructions.
ff128632 19980
d5a0a47b
RE
199812009-01-13 Richard Earnshaw <rearnsha@arm.com>
19982
435da628
UB
19983 * config/arm/arm.c (struct processors): Pass for speed down into
19984 cost helper functions.
d5a0a47b
RE
19985 (const_ok_for_op): Handle COMPARE and inequality nodes.
19986 (arm_rtx_costs_1): Rewrite.
19987 (arm_size_rtx_costs): Update prototype.
19988 (arm_rtx_costs): Pass speed down to helper functions.
19989 (arm_slowmul_rtx_costs): Rework cost calculations.
19990 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
19991 (arm_9e_rtx_costs): Likewise.
19992
26d5bf5b
UB
199932009-01-13 Uros Bizjak <ubizjak@gmail.com>
19994
19995 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 19996 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
19997 (alpha_legitimize_address): Do not split local symbols wider than
19998 UNITS_PER_WORD into HIGH/LO_SUM parts.
19999
5d14e3d5
DS
200002009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
20001
20002 PR bootstrap/38580
20003 * gcc.c (process_command): Replace call to execvp with calls
20004 to pex_one and exit.
20005
33faafca
AS
200062009-01-03 Anatoly Sokolov <aesok@post.ru>
20007
20008 PR target/29141
20009 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
20010 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
20011 variant for devices with 3-byte PC.
ba20e309 20012 (__tablejump_elpm__): New.
33faafca 20013
634b5df5
JJ
200142009-01-12 Jakub Jelinek <jakub@redhat.com>
20015
20016 PR c/32041
20017 * c-parser.c (c_parser_postfix_expression): Allow `->' in
20018 offsetof member-designator, handle it as `[0].'.
20019
2842bb86
JDA
200202009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20021
20022 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
20023 function when not using named sections on targets with named sections
20024 if branch distance is less than 262132.
20025
76ee70f6
RE
200262009-01-12 Richard Earnshaw <rearnsha@arm.com>
20027
20028 * combine.c (combine_instructions): Recompute
20029 optimize_this_for_speed_p for each BB in the main combine loop.
20030
f56e675d
TB
200312009-01-12 Tomas Bily <tbily@suse.cz>
20032
20033 PR middlend/38385
26d5bf5b
UB
20034 * tree-loop-distribution.c (prop_phis): New function.
20035 (generate_builtin): Call prop_phis.
20036 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
f56e675d 20037
c2152239
JJ
200382009-01-12 Jakub Jelinek <jakub@redhat.com>
20039
20040 PR tree-optimization/38807
20041 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
20042 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
20043
0e510b3e
AN
200442009-01-11 Adam Nemet <anemet@caviumnetworks.com>
20045
20046 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
20047 subreg of op0 to the original op0.
20048
c95b2534 200492009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
20050
20051 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 20052
53a7ff9a
MS
200532009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
20054
20055 PR debug/7055
60839f5d 20056 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
20057 starting with digits.
20058
b3a796bc
JJ
200592009-01-10 Jakub Jelinek <jakub@redhat.com>
20060
20061 PR target/38695
20062 * config/arm/arm.c (arm_is_long_call_p): Don't call
20063 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
20064
b21b850e
SB
200652009-01-09 Steven Bosscher <steven@gcc.gnu.org>
20066
20067 * regrename.c (regrename_optimize): Fix dumping.
20068 (find_oldest_value_reg): Preserve REG_POINTER.
20069 (copy_hardreg_forward_1): Likewise.
20070
e0e10d3a
DN
200712009-01-09 Diego Novillo <dnovillo@google.com>
20072
bf9b2cc9 20073 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
20074 the restrictions on its use.
20075 (gimple_uid): Tidy.
20076 (gimple_set_uid): Tidy.
20077
c9da2ae8
JJ
200782009-01-09 Jakub Jelinek <jakub@redhat.com>
20079
20080 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
20081 zero guard even if align_bytes != 0 and count is smaller than
20082 size_needed.
20083
38432148 200842009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
20085
20086 PR rtl-optimization/38495
26d5bf5b 20087 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
20088 (add_range_and_copies_from_move_list): Print all added ranges.
20089 Add ranges to memory optimized destination.
20090
260fda3d
JJ
200912009-01-09 Jakub Jelinek <jakub@redhat.com>
20092
6f6278ad
JJ
20093 PR target/38686
20094 PR target/38708
20095 * config/i386/i386.c (override_options): Reject
20096 -mstringop-strategy=rep_8byte with -m32.
20097 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
20098 to 1. Do count comparison against epilogue_size_needed at compile
20099 time even when count_exp was constant forced into register. For
20100 size_needed don't jump to epilogue, instead just avoid aligning
20101 and invoke the body algorithm. If need_zero_guard, add zero guard
20102 even if count is non-zero, but smaller than size_needed + number of
20103 bytes that could be stored for alignment.
20104 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
20105 to 1. If need_zero_guard, add zero guard even if count is non-zero,
20106 but smaller than size_needed + number of bytes that could be stored
20107 for alignment. Compare size_needed with epilogue_size_needed instead
20108 of desired_align - align, don't adjust size_needed, pass
20109 epilogue_size_needed to the epilogue expanders.
20110
260fda3d 20111 PR c/35742
26d5bf5b 20112 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 20113
67b846fa
JDA
201142009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20115
20116 * pa.c (last_address): Change to unsigned.
20117 (update_total_code_bytes): Change argument to unsigned. Don't
20118 check if insn addresses are set.
20119 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
20120 addresses are not set.
20121 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
20122
91c82473
NC
201232009-01-09 Nick Clifton <nickc@redhat.com>
20124
20125 * config/sh/symbian.c: Replace uses of DECL_INLINE with
20126 DECL_DECLARED_INLINE_P.
20127
4017e262
JJ
201282009-01-09 Jakub Jelinek <jakub@redhat.com>
20129
0a49e5c2
JJ
20130 PR middle-end/38347
20131 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
20132 GET_MODE (op0) in operand_subword_force calls.
20133
4017e262
JJ
20134 PR middle-end/38771
20135 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
20136 fold_convert arg0 operands to TREE_TYPE (op0) first.
20137
7cd06356
VM
201382009-01-08 Vladimir Makarov <vmakarov@redhat.com>
20139
20140 * params.def (ira-max-conflict-table-size): Decrease default value
20141 to 1000.
20142
96867bbd
JJ
201432009-01-08 Jakub Jelinek <jakub@redhat.com>
20144
20145 PR tree-optimization/37031
20146 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
20147 on parameter_set.
20148 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
20149 allocate it using gc instead of heap, use VEC_quick_push instead of
20150 VEC_safe_push.
20151 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
20152 instead of heap, use VEC_quick_push instead of VEC_safe_push.
20153 * tree-data-ref.h (struct access_matrix): Change matrix to gc
20154 allocated vector from heap allocated.
20155 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
20156 * tree-loop-linear.c (linear_transform_loops): Allocate nest
20157 vector only after perfect_loop_nest_depth call.
20158
68f61c3d
SP
201592009-01-08 Sebastian Pop <sebastian.pop@amd.com>
20160 Jan Sjodin <jan.sjodin@amd.com>
20161
20162 PR tree-optimization/38559
20163 * graphite.c (debug_value, copy_constraint,
20164 swap_constraint_variables, scale_constraint_variable, ): New.
20165 (get_lower_bound, get_upper_bound): Removed.
20166 (graphite_trans_bb_strip_mine): Clean up this code that works
20167 only for constant number of iterations. Fully copy upper and
20168 lower bound constraints, not only the constant part of them.
20169 * graphite.h (debug_value): Declared.
20170
82567e33
IR
201712009-01-08 Ira Rosen <irar@il.ibm.com>
20172
20173 PR tree-optimization/37194
20174 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 20175 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
20176 outside cost in case of known number of iterations.
20177
7da13f1d
NF
201782009-01-07 Nathan Froyd <froydnj@codesourcery.com>
20179 Alan Modra <amodra@bigpond.net.au>
20180
20181 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
20182 non-word-aligned REG+CONST addressing.
20183
c0f64575
UB
201842009-01-07 Uros Bizjak <ubizjak@gmail.com>
20185
20186 PR target/38706
20187 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
20188 free_after_compilation when outputting a thunk.
20189 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
20190 Do not call free_after_compilation here.
20191
301b6a4e
UB
201922009-01-07 Uros Bizjak <ubizjak@gmail.com>
20193
20194 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
20195 (ix86_valid_target_attribute_inner_p): Ditto.
20196
6a114766
JS
201972009-01-07 Jan Sjodin <jan.sjodin@amd.com>
20198
20199 PR tree-optimization/38492
20200 PR tree-optimization/38498
20201 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
20202 * tree-chrec.h (scev_is_linear_expression): Declared.
20203 * graphite.c (graphite_cannot_represent_loop_niter): New.
20204 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
20205 (graphite_loop_normal_form): Use gcc_assert.
20206 (scan_tree_for_params): Use CASE_CONVERT.
20207 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
20208 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
20209 Use gcc_assert. Discard scops that contain unhandled cases.
20210 (build_scop_conditions): Return a boolean status for unhandled cases.
20211 (strip_mine_profitable_p): Print the loop number, not its depth.
20212 (is_interchange_valid): Pass the depth of the loop nest, don't
20213 recompute it wrongly.
20214 (graphite_trans_bb_block): Same.
20215 (graphite_trans_bb_block): Print tentative of loop blocking.
20216 (graphite_trans_scop_block): Do not print that the loop has been
20217 blocked.
20218 (graphite_transform_loops): Do not handle scops that contain condition
20219 scalar phi nodes.
20220
65b82caa
L
202212009-01-07 H.J. Lu <hongjiu.lu@intel.com>
20222
20223 AVX Programming Reference (December, 2008)
20224 * config/i386/avxintrin.h (_mm256_stream_si256): New.
20225 (_mm256_stream_pd): Likewise.
20226 (_mm256_stream_ps): Likewise.
20227
20228 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
20229 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
20230 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
20231 (bdesc_special_args): Add __builtin_ia32_movntdq256,
20232 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
20233 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
20234 (ix86_expand_special_args_builtin): Likewise.
20235
20236 * config/i386/sse.md (AVXMODEDI): New.
20237 (avx_movnt<mode>): Likewise.
20238 (avx_movnt<mode>): Likewise.
20239 (<sse>_movnt<mode>): Remove AVX support.
20240 (sse2_movntv2di): Likewise.
20241
cef158f9
RG
202422009-01-07 Richard Guenther <rguenther@suse.de>
20243
20244 PR middle-end/38751
20245 * fold-const.c (extract_muldiv): Remove obsolete comment.
20246 (fold_plusminus_mult_expr): Undo MINUS_EXPR
20247 to PLUS_EXPR canonicalization for the canonicalization.
20248
246cb5be
GP
202492009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
20250
20251 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
20252 hosted cross-compilers generating less efficient code.
20253
84b9b872
RS
202542009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
20255
20256 * function.h (rtl_data): Add a dbr_scheduled_p field.
20257 * reorg.c (dbr_schedule): Set it.
20258 (gate_handle_delay_slots): Check it.
20259 * config/mips/mips.c (mips_base_delayed_branch): Delete.
20260 (mips_reorg): Check flag_delayed_branch instead of
20261 mips_base_delayed_branch.
20262 (mips_override_options): Don't set mips_base_delayed_branch
20263 or flag_delayed_branch.
20264
ace984c8
RS
202652009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
20266
20267 PR rtl-optimization/38426.
20268 * ira.c (ira): Set current_function_is_leaf earlier.
20269
7ad7809b
JJ
202702009-01-06 Jakub Jelinek <jakub@redhat.com>
20271
20272 PR rtl-optimization/38722
20273 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
20274 too early, only set a flag and modify after last possible
20275 undo_all point.
20276
c52ec948
JJ
202772009-01-06 Janis Johnson <janis187@us.ibm.com>
20278
20279 PR c/34252
20280 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
20281 * real.c (decimal_single_format): Correct values of emin and emax.
20282 (decimal_double_format): Ditto.
20283 (decimal_quad_format): Ditto.
20284 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
20285 computation of DECnn_MIN and DECnn_MAX for corrected values of
20286 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
20287 __DECnn_MIN__, and adjust its computation for the corrected value
20288 of emin.
20289
300240e1
JH
202902009-01-06 Jan Hubicka <jh@suse.cz>
20291
20292 PR target/38744
435da628 20293 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 20294
271c069e
GP
202952009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20296
20297 * doc/contrib.texi (Contributors): Slightly adjust the end note.
20298 Add Robert Clark to the list of testers.
20299
64e4c301 203002009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 20301 Kai Tietz <kai.tietz@onevision.com>
64e4c301 20302
435da628
UB
20303 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
20304 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 20305
7650b83e 203062009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 20307 Kai Tietz <kai.tietz@onevision.com>
7650b83e 20308
435da628
UB
20309 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
20310 for w64 ABI.
20311 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
20312 (ix86_nsaved_regs): Count only general purpose regs.
20313 (ix86_nsaved_sseregs): New.
20314 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
20315 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
20316 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
20317 general purpose regs.
7650b83e
JH
20318 (ix86_emit_save_sse_regs_using_mov): New.
20319 (ix86_expand_prologue): Save SSE regs if needed.
20320 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
20321 (ix86_emit_restore_sse_regs_using_mov): New.
20322 (ix86_expand_epilogue): Save SSE regs if needed.
20323
9aa5c1b2 203242009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 20325 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 20326
435da628
UB
20327 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
20328 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
20329 functions when accumulate outgoing args is off.
9aa5c1b2 20330
f7556aae
L
203312009-01-06 H.J. Lu <hongjiu.lu@intel.com>
20332
20333 PR bootstrap/38742
20334 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
20335 before using pseudos_have_intersected_live_ranges_p.
20336
20337 * ira-int.h (ira_assert): Always define.
20338
e47b7d04
L
203392009-01-06 H.J. Lu <hongjiu.lu@intel.com>
20340
20341 AVX Programming Reference (December, 2008)
20342 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
20343 (_mm256_permute2_pd): Likewise.
20344 (_mm_permute2_ps): Likewise.
20345 (_mm256_permute2_ps): Likewise.
20346 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
20347 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
20348
20349 * config/i386/i386.c (ix86_builtins): Remove
20350 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
20351 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
20352 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
20353 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
20354 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
20355 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
20356 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
20357 __builtin_ia32_vpermil2ps256.
20358 (ix86_init_mmx_sse_builtins): Updated.
20359 (ix86_expand_args_builtin): Likewise.
20360
44b86471
JDA
203612009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20362
e47b7d04
L
20363 * pa.c (output_call): Relocate non-jump insns in the delay slot of
20364 long absolute calls when generating PA 2.0 code.
44b86471 20365
311aab06
VM
203662009-01-05 Vladimir Makarov <vmakarov@redhat.com>
20367
20368 PR rtl-optimization/38583
20369 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
20370
20371 * params.def (ira-max-conflict-table-size): New.
20372
20373 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 20374
311aab06 20375 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 20376
311aab06
VM
20377 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
20378 table. Report this. Return result of building.
20379 (ira_build_conflicts): Use ira_conflicts_p. Check result of
20380 building conflict table.
20381
301b6a4e 20382 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 20383 (ira_color): Use ira_conflicts_p.
2ba9daa7 20384
311aab06
VM
20385 * global.c: Include ira.h.
20386 (pseudo_for_reload_consideration_p, build_insn_chain): Use
20387 ira_conflicts_p.
20388
20389 * Makefile.in (global.o): Add ira.h.
2ba9daa7 20390
311aab06
VM
20391 * ira-build.c (mark_all_loops_for_removal,
20392 propagate_some_info_from_allocno): New.
20393 (remove_unnecessary_allocnos): Call
20394 propagate_some_info_from_allocno.
20395 (remove_low_level_allocnos): New.
20396 (remove_unnecessary_regions): Add parameter. Call
20397 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
20398 parameter to remove_unnecessary_regions.
20399 (ira_build): Remove all regions but root if the conflict table was
20400 not built. Update conflict hard regs for allocnos crossing calls.
20401
20402 * ira.c (ira_conflicts_p): New global.
20403 (ira): Define and use ira_conflicts_p.
20404
20405 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20406 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 20407 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 20408
5641785f
BE
204092009-01-06 Ben Elliston <bje@au.ibm.com>
20410
20411 * gengtype-lex.l (YY_NO_INPUT): Define.
20412
e4e5261f
AP
204132009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
20414
20415 PR c/34911
5641785f
BE
20416 * c-common.c (handle_vector_size_attribute): Also reject
20417 BOOLEAN_TYPE types.
e4e5261f 20418
7b10257f
SP
204192009-01-05 Sebastian Pop <sebastian.pop@amd.com>
20420
20421 PR tree-optimization/38492
20422 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
20423 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
20424 rename_map_elt_info, eq_rename_map_elts,
20425 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
20426 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
20427 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
20428 (sese_build_livein_liveouts): New.
20429 (new_sese, free_sese): New.
20430 (new_scop): Call new_sese.
20431 (free_scop): Call free_sese.
20432 (rename_variables_from_edge, rename_phis_end_scop): Removed.
20433 (register_old_new_names): Renamed register_old_and_new_names.
20434 (register_scop_liveout_renames, add_loop_exit_phis,
20435 insert_loop_close_phis, struct igp,
20436 default_liveout_before_guard, add_guard_exit_phis,
20437 insert_guard_phis, copy_renames): New.
20438 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
20439 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
20440 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
20441 (scop_adjust_phis_for_liveouts): New.
20442 (gloog): Call scop_adjust_phis_for_liveouts.
20443
20444 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 20445 num_ver and livein.
7b10257f
SP
20446 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
20447 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
20448 (struct scop): Added field liveout_renames.
20449 (SCOP_LIVEOUT_RENAMES): New.
20450
9761fcc7
HJ
204512009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
20452
20453 PR tree-optimization/38510
20454 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
20455 (translate_clast): Call recompute_all_dominators before
20456 graphite_verify.
20457 (gloog): Call recompute_all_dominators before graphite_verify.
20458
204592009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 20460 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
20461
20462 PR tree-optimization/38500
20463 * graphite.c (create_sese_edges): Call fix_loop_structure after
20464 splitting blocks.
20465
c95b2534 204662009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
20467
20468 * config.gcc: Add m32r*-*-rtems*.
20469 * config/m32r/rtems.h: New file.
20470
fc0cd180
BE
204712009-01-05 Ben Elliston <bje@au.ibm.com>
20472
20473 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
20474 (.po.pox): Likewise.
20475 (po/gcc.pot): Likewise.
20476
3106d8e5
DM
204772009-01-04 David S. Miller <davem@davemloft.net>
20478
20479 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
20480 (STARTING_FRAME_OFFSET): Always set to zero.
20481
0009b473
RS
204822009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
20483
20484 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
20485 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
20486 fixed-point types, and vectors of the same.
20487
4f24c6d6
RS
204882009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
20489
20490 * config/mips/sync.md (*mb_barrier): Rename to...
20491 (*memory_barrier): ...this.
20492
1df48f5c
JW
204932009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
20494
20495 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 20496 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
20497 and put in alphabetical order. Fix 'target' name and put in order.
20498 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
20499 typos.
20500
1a8c13b3
UB
205012009-01-04 Uros Bizjak <ubizjak@gmail.com>
20502
20503 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
20504 (memory_barrier): Expand as unspec instead of unspec_volatile.
20505 Remove mem:BLK from insn operands. Use Pmode scratch register.
20506 (*memory_barrier): Define as unspec instead of unspec_volatile.
20507 Use (match_dup 0) as input operand.
20508
20509 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
20510 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
20511 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
20512 scratch register. Remove operand 1.
20513 (*stbar): Define as unspec instead of unspec_volatile.
20514 Use (match_dup 0) as input operand, remove (const_int 8).
20515 (*membar): Define as unspec instead of unspec_volatile.
20516 Use (match_dup 0) as input operand, remove input operand 2.
20517
20518 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
20519 (memory_barrier): Expand as unspec instead of unspec_volatile.
20520 Remove mem:BLK from insn operands. Use Pmode scratch register.
20521 (*memory_barrier): Define as unspec instead of unspec_volatile.
20522 Use (match_dup 0) as input operand.
20523
20524 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
20525 Remove mem:BLK from insn operands. Use Pmode scratch register.
20526 Set volatile flag on operand 0.
20527 (*memory_barrier): New insn pattern.
20528
20529 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
20530 insn operands.
20531 (*memory_barrier): Use (match_dup 0) as input operand.
20532
20533 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
20534 Remove mem:BLK from insn operands. Use Pmode scratch register.
20535 Set volatile flag on operand 0.
301b6a4e 20536 (*mb_internal): New insn pattern.
1a8c13b3
UB
20537
20538 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
20539
fb0703f7
SB
205402009-01-04 Steven Bosscher <steven@gcc.gnu.org>
20541
20542 PR middle-end/38586
20543 * function.c (struct temp_slot): Move to the section of the file
20544 that deals with temp slots. Remove field 'address'.
20545 (temp_slot_address_table): New hash table of address -> temp slot.
20546 (struct temp_slot_address_entry): New struct, items for the table.
20547 (temp_slot_address_compute_hash, temp_slot_address_hash,
20548 temp_slot_address_eq, insert_temp_slot_address): Support functions
20549 for the new table.
20550 (find_temp_slot_from_address): Rewrite to use the new hash table.
20551 (remove_unused_temp_slot_addresses): Remove addresses of temp
20552 slots that have been made available.
20553 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
20554 worker function for remove_unused_temp_slot_addresses.
20555 (assign_stack_temp_for_type): Don't clear the temp slot address list.
20556 Add the temp slot address to the address -> temp slot map.
20557 (update_temp_slot_address): Update via insert_temp_slot_address.
20558 (free_temp_slots): Call remove_unused_temp_slot_addresses.
20559 (pop_temp_slots): Likewise.
20560 (init_temp_slots): Allocate the address -> temp slot map, or empty
20561 the map if it is already allocated.
20562 (prepare_function_start): Initialize temp slot processing.
20563
b5a430f3
SB
205642009-01-04 Steven Bosscher <steven@gcc.gnu.org>
20565
20566 PR middle-end/38584
20567 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
20568 Calculate the size of all stack vars assuming no packing of stack
20569 vars will happen, replacing a quadratic algorithm with a linear one.
20570
5d560619
JJ
205712009-01-03 Jakub Jelinek <jakub@redhat.com>
20572
20573 PR target/38707
20574 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
20575 can't be used.
20576
953a7caa
DN
205772009-01-03 Diego Novillo <dnovillo@google.com>
20578
20579 * doc/contrib.texi: Update contributions.
20580
5f26a230
JJ
205812009-01-03 Jakub Jelinek <jakub@redhat.com>
20582
493aa551
JJ
20583 PR c++/38705
20584 * builtins.c (fold_builtin_memory_op): Give up if either operand
20585 is volatile. Set srctype or desttype to non-qualified version
20586 of the other type.
20587
5f26a230
JJ
20588 PR c/38700
20589 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
20590 and FUNCTION_DECLs.
20591
c95b2534 205922009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
20593
20594 PR rtl-optimization/35805
20595 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
20596 problem if fast dce is able to remove any instructions.
20597 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 20598
0b355794
MM
205992009-01-02 Mark Mitchell <mark@codesourcery.com>
20600
20601 PR 33649
20602 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
20603
0cf0d02b
JJ
206042009-01-02 Jakub Jelinek <jakub@redhat.com>
20605
20606 PR middle-end/38690
20607 * tree-flow.h (op_code_prio, op_prio): New prototypes.
20608 * tree-pretty-print.c (op_code_prio): New function.
20609 (op_prio): No longer static. Use op_code_prio.
20610 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
20611 Use op_prio and op_code_prio to determine if () should be
20612 printed around operand(s) or not.
20613
20614 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
20615 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
20616 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
20617 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
20618 pp_character instead of pp_string for single letter printing.
20619
e3606f3b
RS
206202009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
20621
20622 * doc/extend.texi: Fix '#pragma GCC option' typo.
20623
c95b2534 206242009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 20625
a5f061dc
RG
20626 * doc/install.texi (--enable-checking): Mention different
20627 default for stage1.
20628 (--enable-stage1-checking): Document.
00f39bd5 20629
26de0bcb
AP
206302009-01-01 Andrew Pinski <pinskia@gmail.com>
20631
20632 PR middle-end/30142
20633 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
20634 case to be an error.
20635
7a7d8fab
BE
206362009-01-02 Ben Elliston <bje@au.ibm.com>
20637
20638 * config/fp-bit.h (pack_d): Constify argument.
20639 * config/fp-bit.c (makenan): Constify return type. Remove casts.
20640 (isnan): Constify argument.
20641 (isinf): Likewise.
20642 (iszero): Likewise.
20643 (pack_d): Likewise.
20644 (_fpadd_parts): Constify return type.
20645 (_fpmul_parts): Likewise.
20646 (_fpdiv_parts): Likewise.
20647
b295aee2
JJ
206482009-01-01 Jakub Jelinek <jakub@redhat.com>
20649
20650 PR c/36489
20651 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
20652 warn about overwriting initializer with side-effects or
20653 -Woverride-init if !IMPLICIT.
20654 (output_init_element): Likewise. Pass IMPLICIT down to
20655 add_pending_init.
20656 (process_init_element): Add IMPLICIT argument. Pass it down
20657 to output_init_element.
20658 (push_init_element, pop_init_level, set_designator): Adjust
20659 process_init_element callers.
20660 (set_nonincremental_init, set_nonincremental_init_from_string):
20661 Adjust add_pending_init callers.
20662 (output_pending_init_elements): Adjust output_init_element callers.
20663 * c-tree.h (process_init_element): Adjust prototype.
20664 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
20665 process_init_element callers.
ad41bd84
JM
20666
20667\f
20668Copyright (C) 2009 Free Software Foundation, Inc.
20669
20670Copying and distribution of this file, with or without modification,
20671are permitted in any medium without royalty provided the copyright
20672notice and this notice are preserved.