hooks.h (hook_bool_const_int_const_int_true): Declare.
[gcc.git] / gcc / ChangeLog
1 2009-08-25 Anatoly Sokolov <aesok@post.ru>
2
3 * hooks.h (hook_bool_const_int_const_int_true): Declare.
4 * hooks.c (hook_bool_const_int_const_int_true): New function.
5 * target.h (struct gcc_target): Add can_eliminate field.
6 * target-def.h (TARGET_CAN_ELIMINATE): Define.
7 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
8 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
9 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
10 (elim_table): Revise comment.
11 * system.h (CAN_ELIMINATE): Poison.
12 * defaults.h (CAN_ELIMINATE): Remove.
13 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
14
15 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
16 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
17 Define macro.
18 (alpha_vms_can_eliminate): Declare as static, change return type to
19 bool.
20 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
21
22 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
23 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
24 (arm_can_eliminate): New function.
25
26 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
27 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
28 (avr_can_eliminate): Declare as static.
29 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
30
31 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
32 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
33 (bfin_can_eliminate): New function.
34
35 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
36 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
37 (crx_can_eliminate): New function.
38
39 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
40 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
41 (fr30_can_eliminate): New function.
42
43 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
44 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
45 (frv_can_eliminate): New function.
46
47 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
48 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
49 (h8300_can_eliminate): New function.
50
51 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
52 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
53 (i386_can_eliminate): Declare as static, change return type to bool.
54 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
55
56 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
57 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
58 (ia64_can_eliminate): New function.
59
60 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
61 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
62 (iq2000_can_eliminate): New function.
63
64 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
65 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
66 (m32r_can_eliminate): New function.
67
68 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
69 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
70 (m68hc11_can_eliminate): New function.
71
72 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
73 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
74 (m68k_can_eliminate): New function.
75
76 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
77 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
78 (mep_can_eliminate): New function.
79
80 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
81 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
82 (mips_can_eliminate): New function.
83
84 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
85 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
86 (rs6000_can_eliminate): New function.
87
88 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
89 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
90 (s390_can_eliminate): Declare as static.
91 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
92
93 * config/score/score.h (CAN_ELIMINATE): Remove macro.
94 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
95 (score_can_eliminate): New function.
96
97 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
98 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
99 (sparc_can_eliminate): Declare as static.
100 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
101
102 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
103 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
104 (xstormy16_can_eliminate): New function.
105
106 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
107 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
108 (v850_can_eliminate): New function.
109
110 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
111
112 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
113 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
114 (*movdfcc_ext[1234]): Disable for IEEE mode.
115
116 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
117
118 * gimplify.c (prepare_gimple_addressable): New static function.
119 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
120 it addressable.
121 (gimplify_addr_expr): Invoke it similarly on the operand instead of
122 manually fiddling with it.
123
124 2009-08-25 Michael Matz <matz@suse.de>
125
126 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
127 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
128 full expression.
129 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
130 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
131 (do_jump): Split out code for simple binary comparisons into ...
132 (do_jump_1): ... this, taking the individual operands and code.
133 Change callers to helper function above accordingly.
134 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
135 comparisons.
136
137 2009-08-25 Michael Matz <matz@suse.de>
138
139 * expr.h (struct separate_ops, sepops): New type for passing
140 around an exploded simple expression.
141 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
142 Use this structure instead of expression tree.
143 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
144 expression, only its type.
145 (expand_vec_cond_expr): Take type and individual operands instead
146 of full expression.
147 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
148 expand_vec_shift_expr): Change prototype accordingly.
149 * tree-vect-stmts.c (vectorizable_condition): Change call of
150 expand_vec_cond_expr_p to pass only type.
151 * expr.c (do_store_flags): Change prototype and implementation
152 to take an exploded expression.
153 (expand_expr_real_1): New local ops initialized with details
154 of the full expression. Use it instead of full
155 expression in calls to do_store_flags, expand_vec_cond_expr,
156 expand_widen_pattern_expr and expand_vec_shift_expr.
157
158 2009-08-25 Michael Matz <matz@suse.de>
159
160 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
161 treeop2 initialized with first three operands of the full expression.
162 Substitute all TREE_OPERAND (exp, [012]) calls with them.
163
164 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
165
166 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
167 (__gthread_objc_condition_allocate): Mark arguments as unused.
168 (__gthread_objc_condition_deallocate): Likewise.
169 (__gthread_objc_condition_wait): Likewise.
170 (__gthread_objc_condition_broadcast): Likewise.
171 (__gthread_objc_condition_signal): Likewise.
172 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
173 (__gthread_objc_thread_id): Likewise.
174
175 2009-08-25 Janus Weil <janus@gcc.gnu.org>
176
177 PR middle-end/41149
178 * tree-pretty-print.c (print_call_name): Print the correct call name
179 for procedure pointer components.
180
181 2009-08-24 Steve Ellcey <sje@cup.hp.com>
182
183 * config/ia64/ia64.c (ia64_promote_function_mode): Call
184 default_promote_function_mode when not VMS.
185
186 2009-08-24 Olivier Hainque <hainque@adacore.com>
187
188 * convert.c (convert_to_integer): Don't assume an input pointer is
189 POINTER_SIZE wide. Fetch from the type instead.
190
191 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
192
193 * configure.ac (AC_PREREQ): Bump to 2.64.
194
195 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
196
197 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
198 (process_command): Don't search standard_exec_prefix_1 and
199 standard_exec_prefix_2.
200
201 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
202
203 * config/arm/arm.c (output_return_instruction): Handle for
204 unified syntax.
205
206 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
207
208 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
209
210 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
211
212 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
213 (*arm_movdf_vfp): Likewise.
214
215 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
216
217 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
218 (vashr<mode>3): Rename from ashr<mode>3.
219 (vlshr<mode>3): Rename from lshr<mode>3.
220
221 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
222
223 PR/40786
224 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
225 (check_format_info_main): Use scalar_identify_flag.
226 (check_format_types): Check for scalar size identity if
227 scalar_identify_flag is set.
228 (printf_length_specs): Extend by new field.
229 (asm_fprintf_length_specs): Likewise.
230 (gcc_diag_length_specs): Likewise.
231 (scanf_length_specs): Likewise.
232 (strfmon_length_specs): Likewise.
233 (gcc_gfc_length_specs): Likewise.
234 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
235 (ms_printf_flag_specs): Likewise.
236 * c-format.h (format_length_info): Add new member scalar_identity_flag.
237
238 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
239
240 PR target/40718
241 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
242 (*call_value_pop_1): Ditto.
243 (*sibcall_pop_1): New insn pattern.
244 (*sibcall_value_pop_1): Ditto.
245
246 2009-08-23 Alan Modra <amodra@bigpond.net.au>
247
248 PR target/41081
249 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
250 ashrsi3_64): New.
251
252 2009-08-23 Alan Modra <amodra@bigpond.net.au>
253
254 PR target/41081
255 * fwprop.c (try_fwprop_subst): Allow multiple sets.
256 (get_reg_use_in): New function.
257 (forward_propagate_subreg): Propagate through subreg of zero_extend
258 or sign_extend.
259
260 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
261
262 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
263 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
264
265 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
266
267 * configure.ac: Remove --with-datarootdir, --with-docdir,
268 --with-htmldir switches. No need to call AC_SUBST for
269 datarootdir, docdir, htmldir any more.
270 * configure: Regenerate.
271 * doc/install.texi (Configuration): Document --datarootdir,
272 --docdir, --htmldir, --pdfdir; update documentation for
273 --infodir, --mandir.
274 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
275 M4 to 1.4.6.
276
277 * aclocal.m4: Regenerate.
278 * config.in: Regenerate.
279 * configure: Regenerate.
280
281 2009-08-21 Douglas B Rupp <rupp@gnat.com>
282 Olivier Hainque <hainque@adacore.com>
283
284 * config/ia64/ia64.c: Include libfuncs.h.
285 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
286 (ia64_expand_call): Use reg 25 on VMS.
287 (ia64_initialize_trampoline): Fix for VMS ABI.
288 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
289 (ia64_function_arg): Initialize reg 25 on VMS.
290 Fix OpenVMS ABI issues for varargs.
291 For OpenVMS, emit the Argument Information register set in the
292 incoming/sibcall case as well.
293 (ia64_arg_type): New function.
294 (ia64_function_arg_advance): Keep track of cum->words.
295 Fix OpenVMS ABI issues for varargs.
296 (ia64_function_value): On VMS, promote mode of non-aggregate types.
297 (ia64_override_options): Set flag_no_common on VMS.
298 (ia64_init_builtins): Disable FWRITE builtin.
299 (ia64_asm_output_external): Call DO_CRTL_NAMES.
300 (ia64_vms_init_libfuncs): Add decc$ routines.
301 (ia64_vms_valid_pointer_mode): New function.
302 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
303 (ia64_promote_function_mode): New function
304 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
305 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
306 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
307 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
308 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
309 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
310 Suppress trailing '#' if VALUE is numeric.
311 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
312 ia64_promote_function_mode.
313 (TARGET_VALID_POINTER_MODE): Define.
314
315 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
316
317 PR target/40671
318 * config/rs6000/rs6000.c (rs6000_override_options): Use
319 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
320
321 PR target/41145
322 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
323 reporting of vector + decimal/boolean/complex error.
324
325 2009-08-21 Jakub Jelinek <jakub@redhat.com>
326
327 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
328 __vector double TYPE_DECL.
329
330 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
331
332 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
333 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
334 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
335 to pointer to enum machine_mode. Update all callers as needed.
336
337 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
338
339 * config/alpha/alpha.md (exception_receiver): Emit alternative
340 GP load sequence if flag_reorder_blocks_and_partition is set.
341 (*exception_receiver_2): Also enable when
342 flag_reorder_blocks_and_partition is set.
343
344 2009-08-20 Matt Rice <ratmice@gmail.com>
345 Diego Novillo <dnovillo@google.com>
346
347 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
348 tree-ssa-sccvn.h.
349
350 2009-08-20 Richard Guenther <rguenther@suse.de>
351
352 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
353 * c-tree.h (c_dup_lang_specific_decl): Remove.
354 (struct lang_decl, struct lang_type): Move definitions ...
355 * c-lang.h: ... here. New file.
356 * c-decl.c: Include c-lang.h.
357 (c_dup_lang_specific_decl): Remove.
358 * c-typeck.c: Include c-lang.h.
359 * Makefile.in (c-decl.o): Add c-lang.h dependency.
360 (c-typeck.o): Likewise.
361 * c-config-lang.in (gtfiles): Add c-lang.h.
362 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
363 like c-tree.h.
364
365 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
366
367 * config/alpha/alpha.c (alpha_end_function): Do not clear
368 crtl->emit structure and free insn locators if cfun->is_thunk is true,
369 this is now handled in generic code.
370
371 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
372
373 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
374 (s390_z10_fix_long_loop_prediction): New function.
375 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
376 (s390_reorg): Walk over the INSNs and invoke
377 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
378
379 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
380
381 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
382 "*brx_64bit", "*brx_31bit"): New patterns.
383 * config/s390/s390.c ('E'): New output modifier.
384
385 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
386 Richard Earnshaw <richard.earnshaw@arm.com>
387
388 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
389 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
390
391 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
392
393 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
394 patterns.
395 * pa.c (emit_move_sequence): Check if address of operand1 is valid
396 for mode mode of operand0 when doing secondary reload for SAR.
397
398 2009-08-19 Jakub Jelinek <jakub@redhat.com>
399
400 PR middle-end/41123
401 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
402 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
403
404 2009-08-19 Jason Merrill <jason@redhat.com>
405
406 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
407 supported template depth in C++0x.
408
409 2009-08-19 Jakub Jelinek <jakub@redhat.com>
410
411 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
412 free_after_compilation.
413 * config/score/score7.c (score7_output_mi_thunk): Likewise.
414 * config/score/score3.c (score3_output_mi_thunk): Likewise.
415 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
416 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
417 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
418 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
419 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
420
421 2009-08-19 Ian Lance Taylor <iant@google.com>
422
423 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
424 of (plus (mult (neg B) C) A).
425
426 2009-08-18 Michael Matz <matz@suse.de>
427
428 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
429 instead of comparing TYPE_MAIN_VARIANT for equality.
430 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
431 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
432 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
433 * gimplify.c (goa_lhs_expr_p): Ditto and use
434 STRIP_USELESS_TYPE_CONVERSION.
435
436 2009-08-18 Michael Matz <matz@suse.de>
437
438 * tree-ssa-structalias.c (create_variable_info_for): Also mark
439 first field in a struct.
440 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
441
442 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
443
444 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
445 locators before emit_insn is called. Remove assert that
446 cfun->is_thunk.
447 (alpha_end_function): Clear crtl->emit structure and free insn
448 locators if cfun->is_thunk is true.
449
450 2009-08-18 Jason Merrill <jason@redhat.com>
451
452 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
453 type if available.
454 * configure.ac: Test for it.
455 * configure, config.in: Regenerate.
456 * doc/install.texi: Document --enable-gnu-unique-object.
457
458 2009-08-18 Richard Guenther <rguenther@suse.de>
459
460 PR middle-end/41094
461 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
462 pow(x,y*z) only if x is nonnegative.
463
464 2009-08-18 Jakub Jelinek <jakub@redhat.com>
465
466 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
467 on jumps.
468
469 PR target/40971
470 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
471 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
472
473 2009-08-17 DJ Delorie <dj@redhat.com>
474
475 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
476 * config/m32c/prologue.md (epilogue_freit): New.
477 (fset_b): New.
478 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
479 (bank_switch_p): Likewise.
480 (fast_interrupt_p): Likewise.
481 (interrupt_p): Likewise.
482 (m32c_conditional_register_usage): Round memregs size up.
483 (need_to_save): We only need to save $a0 when we use ENTER.
484 (interrupt_p): Check for fast_interrupt too.
485 (bank_switch_p): New.
486 (fast_interrupt_p): New.
487 (m32c_attribute_table): Add bank_switch and fast_interrupt.
488 (m32c_emit_prolog): Support bank switching and fast interrupts.
489 * doc/extend.texi (Function Attributes): Add bank_switch and
490 fast_interrupt.
491
492 2009-08-17 Douglas B Rupp <rupp@gnat.com>
493
494 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
495 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
496
497 2009-08-16 Douglas B Rupp <rupp@gnat.com>
498
499 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
500 (menu): Add IA-64/VMS Options.
501 (IA-64/VMS Options): Likewise.
502
503 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
504
505 PR target/38599
506 * config/mips/mips.md (*lwxs): Use :P for pointer values.
507
508 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
509
510 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
511 (mips_pop_asm_switch): Likewise.
512 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
513 with...
514 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
515 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
516 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
517 (mips_print_operand_punctuation): Use them. Check mips_noreorder
518 instead of set_noreorder.
519 (mips_output_function_prologue): Use the new functions.
520 (mips_output_function_epilogue): Likewise.
521 (mips_need_noat_wrapper_p): New function, split out from...
522 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
523 Use mips_push_asm_switch and mips_pop_asm_switch.
524 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
525 and mips_pop_asm_switch.
526 (ASM_OUTPUT_REG_POP): Likewise.
527 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
528 Use mips_pop_asm_switch.
529 (mips_asm_switch): New structure.
530 (set_noreorder, set_nomacro): Replace with...
531 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
532 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
533 instead of set_nomacro.
534 (fix_truncsfsi2_macro): Likewise.
535 (cprestore): Likewise.
536 (hazard): Use mips_noreorder instead of set_noreorder.
537 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
538
539 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
540
541 * config/alpha/alpha.c (alpha_and_function): Handle NULL_RTX returned
542 from prev_active_insn.
543
544 2009-08-16 Anatoly Sokolov <aesok@post.ru>
545
546 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
547 * config/avr/avr.c (avr_override_options): Initialize
548 avr_current_arch variable.
549 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
550 __AVR_HAVE_16BIT_SP__ according to the device type.
551 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
552 TARGET_TINY_STACK.
553 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
554 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
555
556 2009-08-16 Dodji Seketeli <dodji@redhat.com>
557
558 PR debug/37801
559 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
560 generating inlined subroutine die only. We shouldn't be
561 called for anything else.
562 (gen_block_die): Don't generate inline subroutine debug info for
563 abstract blocks.
564
565 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
566
567 * graphite-poly.c (print_pbb): Print PBB index.
568
569 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
570
571 PR middle-end/40981
572 * graphite-interchange.c (ppl_max_for_le): Moved...
573 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
574 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
575 ppl_Pointset_Powerset_C_Polyhedron_maximize.
576 * graphite-ppl.h (ppl_max_for_le): Declared.
577
578 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
579
580 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
581 supported on all platforms.
582 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
583 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
584 * c-pragma.c: Likewise.
585 * target-def.h (TARGET_INITIALIZER): Remove
586 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
587 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
588
589 2009-08-14 Douglas B Rupp <rupp@gnat.com>
590
591 * config/ia64/fde-vms.c: New file.
592 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
593 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
594 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
595 (uw_frame_state_for): Only register a personality routine if it is
596 known to be compatible with our expectations.
597 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
598 Declare unw_table_entry stack variable and
599 mod all calls to _Unwind_FindTableEntry to add arg.
600 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
601 (_Unwind_FindTableEntry): Add arg to prototype.
602
603 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
604
605 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
606 field 'signal_pfs_loc'.
607 (uw_frame_state_for): Remove duplicate code dealing with leaf
608 procedures without unwind info.
609 If in the frame after unwinding through a signal handler, restore
610 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
611 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
612 'pfs_loc' to the AR.PFS location in the signal context; instead
613 set 'signal_pfs_loc'.
614 Manually generate the unwind info for the AR.PFS register.
615 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
616 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
617 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
618 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
619 instead set 'signal_pfs_loc'.
620 Remove code preventing the AR.PFS register from being restored
621 from the signal context.
622
623 2009-08-14 Douglas B Rupp <rupp@gnat.com>
624 Tristan Gingold <gingold@adacore.com>
625
626 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
627 * config/ia64/t-vms: New file.
628 * config/ia64/vms64.h: New file.
629 * config/ia64/vms.h: New file.
630 * config/ia64/vms-crtinit.asm: New file.
631 * config/ia64/vms_symvec_libgcc_s.opt: New file.
632 * config/ia64/vms-unwind.h: New file.
633
634 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
635
636 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
637 TFmode compares.
638
639 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
640
641 PR middle-end/30789
642 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
643 Move declaration...
644 * real.h (do_mpc_arg2): ... here.
645 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
646 and RDIV_EXPR.
647
648 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
649
650 * final.c (add_debug_prefix_map): Don't use GC memory for
651 old_prefix and new_prefix.
652
653 2009-08-14 Richard Guenther <rguenther@suse.de>
654
655 * ipa-prop.c (compute_complex_pass_through): If we cannot
656 compute a non-varying offset for IPA_JF_ANCESTOR punt.
657
658 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
659
660 * c-lex.c (c_lex_with_flags): Increase size of local variable
661 to avoid memory clobber.
662
663 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
664
665 PR target/40934
666 * config/i386/i386.c (ix86_fp_comparison_strategy):
667 Only enable/disable sahf at function granularity.
668
669 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
670
671 PR rtl-optimization/41064
672 * reload1.c (reload_as_needed): Don't call extract_insn
673 for known invalid replacements after calling
674 validate_replace_rtx_group and verify_changes.
675
676 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
677
678 PR target/41019
679 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
680 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
681 ix86_expand_fp_vcond.
682 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
683 Assert that operation is supported by ix86_expand_int_vcond.
684 (vcondu<SSEMODE124C8:mode>): Ditto.
685
686 2009-08-13 DJ Delorie <dj@redhat.com>
687
688 * config/i386/djgpp-stdint.h: New.
689 * config.gcc (djgpp): Use it.
690
691 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
692
693 * config/sh/sh.c (sh_override_options): When flag_exceptions or
694 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
695
696 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
697
698 * tree-ssa-loop-prefetch.c
699 (prune_ref_by_group_reuse): Enhance probabilistic analysis
700 for long-stride pruning.
701 (compute_miss_rate): New function to compute the probability
702 that two memory references access different cache lines.
703
704 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
705
706 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
707
708 2009-08-13 Richard Guenther <rguenther@suse.de>
709
710 PR middle-end/41047
711 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
712 use the constant pointer type.
713 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
714 of CV qualifiers on the target pointer type.
715 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
716 conversion check before restrict check.
717
718 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
719
720 PR target/41029
721 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
722
723 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
724
725 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
726
727 2009-08-12 Richard Guenther <rguenther@suse.de>
728
729 PR tree-optimization/41011
730 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
731 and reference constructing.
732
733 2009-08-12 Xinliang David Li <davidxl@google.com>
734
735 PR tree-optimization/41012
736 * tree-flow.h : New external interface.
737 * gimple-low.c (check_call_arg): Change to public function.
738 Remove argument mismatch check in lowering.
739 * tree-inline.h (tree_can_inline_p): Interface change.
740 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
741 into this function.
742 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
743 Call change to tree_can_inline_p function.
744 (cgraph_decide_inlining_incrementally): Ditto.
745
746 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
747
748 PR tree-optimization/41031
749 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
750 on the partition variable rather than promote_mode on the source
751 type. Assert that the partition variable's type has the same
752 mode as the source value's.
753
754 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
755
756 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
757 for for_return == 2.
758 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
759 comments.
760 * calls.c (expand_call): Fix typo.
761 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
762 and PARM_DECL.
763 * stmt.c (expand_value_return): Use promote_function_mode to copy out
764 of pseudo.
765 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
766 * config/cris/cris.c (cris_promote_function_mode): Likewise.
767 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
768 * config/pa/pa.c (pa_promote_function_mode): Likewise.
769
770 2009-08-12 Andrew Haley <aph@redhat.com>
771
772 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
773
774 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
775
776 PR bootstrap/40103
777 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
778
779 2009-08-12 Richard Guenther <rguenther@suse.de>
780
781 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
782 * gimplify.c (gimplify_modify_expr): Do not use
783 lang_hooks.types_compatible_p.
784 * tree-ssa.c (useless_type_conversion_p): For aggregates
785 just return false if the canonical types differ.
786
787 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
788
789 PR middle-end/40980
790 * sese.c (convert_for_phi_arg): New.
791 (add_guard_exit_phis): Use convert_for_phi_arg.
792
793 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
794
795 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
796 unknown subscript upper bounds.
797
798 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
799 Pranav Garg <pranav.garg2107@gmail.com>
800
801 * graphite-interchange.c (gather_access_strides): Removed.
802 (ppl_max_for_le): New.
803 (build_linearized_memory_access): New.
804 (memory_stride_in_loop): New.
805 (pbb_interchange_profitable_p): Reimplemented.
806 * graphite-ppl.h (ppl_new_id_map): New.
807 (ppl_interchange): New.
808
809 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
810
811 * graphite-interchange.c (compute_subscript): Removed.
812 (compute_array_size_cstr): Removed.
813 (compute_array_size_poly): Removed.
814 (compute_array_size): Removed.
815 (gather_access_strides_poly): Removed.
816 (gather_access_strides): Empty.
817
818 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
819
820 * graphite-dependences.c (dependence_polyhedron_1): Replace
821 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
822 (graphite_legal_transform_dr): Same.
823 (graphite_carried_dependence_level_k): Same.
824 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
825 Initialize PDR_NB_SUBSCRIPTS.
826 (print_pdr_access_layout): Replace pdr_nb_subscripts with
827 PDR_NB_SUBSCRIPTS.
828 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
829 (PDR_NB_SUBSCRIPTS): New.
830 (pdr_nb_subscripts): Removed.
831 (pdr_dim): Simplified.
832 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
833 with PDR_NB_SUBSCRIPTS.
834
835 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
836
837 * graphite-interchange.c (compute_array_size): Remove use of
838 PDR_DATA_CONTAINER.
839 * graphite-poly.c (new_poly_dr): Remove argument data_container.
840 Do not initialize PDR_DATA_CONTAINER.
841 (print_pdr): Do not print PDR_DATA_CONTAINER.
842 * graphite-poly.h (struct poly_dr): Remove data_container field.
843 (PDR_DATA_CONTAINER): Removed.
844 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
845 PDR_DATA_CONTAINER.
846 (build_poly_dr): Same.
847
848 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
849 Sebastian Pop <sebastian.pop@amd.com>
850
851 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
852 copy of the dependence polyhedron. Free the temporary objects.
853 (graphite_carried_dependence_level_k): Free unused objects before
854 returning.
855
856 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
857 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
858 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
859 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
860 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
861
862 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
863
864 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
865 Early return without analyzing the data dependences if no
866 transform has been done. Call restore_scattering if the transform
867 is not legal.
868 (graphite-interchange.c): Same.
869 * graphite-poly.c (print_scattering_function): Test for
870 PBB_TRANSFORMED.
871 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
872 (apply_poly_transforms): Do not gcc_assert that
873 the transform is legal.
874 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
875 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
876 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
877 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
878 * graphite-poly.h (struct poly_scattering): New.
879 (struct poly_bb): Add original, transformed, and saved fields.
880 Remove transformed_scattering, original_scattering,
881 nb_local_variables and nb_scattering_transform fields.
882 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
883 (poly_scattering_new): New.
884 (poly_scattering_free): New.
885 (poly_scattering_copy): New.
886 (store_scattering_pbb): New.
887 (store_scattering): New.
888 (restore_scattering_pbb): New.
889 (restore_scattering): New.
890 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
891 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
892
893 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
894
895 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
896 (print_scop): Same.
897
898 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
899
900 * Makefile.in (graphite.o): Depends on PREDICT_H.
901 * graphite.c: Include predict.h.
902 (graphite_finalize): Call tree_estimate_probability.
903 * predict.c (predict_loops): Do not call scev_initialize and
904 scev_finalize.
905 (tree_estimate_probability_bb): New.
906 (tree_estimate_probability): Do not initialize loops: move that
907 code to the driver. Call tree_estimate_probability_bb.
908 (tree_estimate_probability_driver): New.
909 (pass_profile): Use tree_estimate_probability_driver.
910 * predict.h (tree_estimate_probability): Declared.
911
912 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
913
914 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
915 * graphite-dependences.c (graphite_legal_transform): Add time to
916 TV_GRAPHITE_DATA_DEPS.
917 (dependency_between_pbbs_p): Same.
918 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
919
920 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
921
922 PR rtl-optimization/41033
923 * alias.c (nonoverlapping_component_refs_p): Punt when strict
924 aliasing is disabled.
925
926 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
927
928 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
929 si_mask_operand, and_load_operand, low_bitmask_operand,
930 and_reg_operand, and_operand): New predicates.
931 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
932 * config/mips/mips.c (and_operands_ok): New function.
933 * config/mips/mips-protos.h (and_operands_ok): Declare it.
934 * config/mips/mips.md (move_type): Add ext_ins and logical.
935 (type): Handle them.
936 (and<mode>3): Use and_reg_operand as the second operand's predicate.
937 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
938 shift_shift. Remove commutative constraint modifier.
939 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
940 shift_shift.
941 (*clear_upper32_dext): Remove define_insn_and_split.
942 (*clear_upper32): Turn this define_insn_and_split ...
943 (splitter for ANDing register with 0xffff_ffff): .. into this.
944
945 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
946
947 * combine.c (try_widen_shift_mode): Factor out code to check if an
948 integer constant is a low-order bitmask from here ...
949 * rtlanal.c (low_bitmask_len): ... to here.
950 * rtl.h (low_bitmask_len): Declare.
951
952 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
953
954 PR target/8603
955 * config/alpha/alpha.md (addsi3): Remove expander.
956 (addsi3): Rename from *addsi3_internal insn pattern.
957 (subsi3): Remove expander.
958 (subsi3): Rename from *subsi3_internal insn pattern.
959
960 2009-08-11 Douglas B Rupp <rupp@gnat.com>
961
962 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
963 FWRITE_UNLOCKED.
964
965 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
966 Eric Botcazou <botcazou@adacore.com>
967 Douglas B Rupp <rupp@gnat.com>
968
969 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
970 that records that fit in 64 bits are returned by immediate value,
971 as required by OpenVMS Calling Standard.
972 (function_value): Adjust for above modification.
973 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
974 virtual_incoming_args_rtx as base object, not next_arg.
975 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
976
977 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
978
979 * reload.c (find_reloads_subreg_address): Check the original
980 req_equiv_mem address to detect the case where an address is
981 not valid in the outer mode.
982
983 2009-08-11 Richard Guenther <rguenther@suse.de>
984
985 PR bootstrap/40788
986 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
987
988 2009-08-10 Douglas B Rupp <rupp@gnat.com>
989
990 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
991 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
992
993 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
994 Douglas B Rupp <rupp@gnat.com>
995
996 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
997 PT_STACK when frame_pointer_needed on OpenVMS.
998 (alpha_pv_save_size, alpha_using_fp): Remove.
999 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
1000 with proper processing for PT_NULL.
1001 (alpha_vms_initial_elimination_offset): New function. Support for
1002 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
1003 (alpha_sa_size): Force procedure type to PT_STACK when
1004 frame_pointer_needed on OpenVMS.
1005 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
1006 (alpha_using_fp): Likewise.
1007 (alpha_vms_can_eliminate): Add prototype.
1008 (alpha_vms_initial_elimination_offset): Likewise.
1009 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
1010 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
1011
1012 2009-08-10 Eric Botcazou <botcazou@adacore.com>
1013 Douglas B Rupp <rupp@gnat.com>
1014
1015 * config/alpha/alpha.c (common_object_handler): New function.
1016 (vms_attribute_table): Declare a single attribute "common_object".
1017 (vms_output_aligned_decl_common): New global function.
1018 (SECTION_VMS_OVERLAY): Delete.
1019 (SECTION_VMS_GLOBAL): Likewise.
1020 (SECTION_VMS_INITIALIZE): Likewise.
1021 (vms_asm_named_section): Remove support for above flags.
1022 (vms_section_type_flags): Delete.
1023 (TARGET_SECTION_TYPE_FLAGS): Likewise.
1024 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
1025 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
1026 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
1027
1028 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1029
1030 PR target/41015
1031 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
1032 (sub_ddmmss): Likewise.
1033
1034 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
1035
1036 PR bootstrap/41018
1037 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
1038 year.
1039
1040 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1041
1042 PR target/37053
1043 * reload1.c (reload_as_needed): Use cancel_changes to completely
1044 undo a failed replacement attempt.
1045
1046 2009-08-10 Richard Guenther <rguenther@suse.de>
1047
1048 PR middle-end/41006
1049 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
1050 (useless_type_conversion_p): ... here. Require pointer targets
1051 to be compatible.
1052
1053 2009-08-10 Dodji Seketeli <dodji@redhat.com>
1054
1055 PR c++/40866
1056 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
1057 loose the original type of the statement list.
1058
1059 2009-08-09 Douglas B Rupp <rupp@gnat.com>
1060
1061 * config/alpha/alpha.c: Include libfuncs.h
1062 (avms_asm_output_extern): New function.
1063 (alpha_init_libfuncs): Init some decc libfuncs.
1064 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
1065 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
1066 (DO_CRTL_NAMES): Define.
1067 (LIB_SPEC): Remove.
1068 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
1069 (LONG_TYPE_SIZE): Define.
1070 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
1071 (SUBTARGET_SWITCHES): Define malloc64 switch.
1072 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
1073 (MASK_RETURN_ADDR): Define.
1074 doc/invoke.texi (mmalloc64): Document switch.
1075
1076 2009-08-09 Olivier Hainque <hainque@adacore.com>
1077 Douglas B Rupp <rupp@gnat.com>
1078
1079 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
1080 uses_condition_handler.
1081 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
1082 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
1083 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
1084 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
1085 (code_for_builtin): New insn codes for the new alpha_builtins.
1086 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
1087 (alpha_sa_size): Account for uses_condition_handler.
1088 (alpha_expand_prologue): Likewise.
1089 (alpha_start_function): Likewise.
1090 (alpha_expand_epilogue): Likewise.
1091 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
1092 establish/revert expanders.
1093 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
1094 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
1095 New expander, resorting to the alpha.c associated function.
1096 (builtin_revert_vms_condition_handler): Likewise.
1097 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
1098 __gcc_shell_handler, the static VMS condition handler used as
1099 an indirection wrapper to the current dynamically established
1100 handler.
1101 * config/alpha/vms-unwind.h: Complete rewrite.
1102 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
1103 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
1104
1105 2009-08-09 Eric Botcazou <botcazou@adacore.com>
1106 Douglas B Rupp <rupp@gnat.com>
1107
1108 * config/alpha/alpha.c (alpha_links): Add 'target' field.
1109 (alpha_need_linkage): Handle aliases. Return function symbol.
1110 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
1111 Use ultimate alias target for the linkage name.
1112 * config/alpha/alpha.md (movmemdi): Use the symbol returned
1113 by alpha_need_linkage for the function symbol.
1114 (setmemdi): Likewise.
1115
1116 2009-08-09 Douglas B Rupp <rupp@gnat.com>
1117
1118 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
1119 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
1120 (ASM_WEAKEN_LABEL): Define.
1121 (CRT_CALL_STATIC_FUNCTION): Define.
1122 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
1123 (ENDFILE_SPEC): Define.
1124 (INIT_SECTION_ASM_OP): Define.
1125 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
1126 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
1127 crtend.o crtendS.o.
1128 (MULTILIB_OSDIRNAMES): Define.
1129 (shlib_version): Define.
1130 (SHLIB_EXT): Define.
1131 (SHLIB_OBJS): Define.
1132 (SHLIB_NAME): Define.
1133 (SHLIB_MULTILIB): Define.
1134 (SHLIB_INSTALL): Define.
1135 (SHLIB_SYMVEC): Define.
1136 (SHLIB_SYMVECX2): Define.
1137 (SHLIB_LINK): Define.
1138
1139 2009-08-09 Douglas B Rupp <rupp@gnat.com>
1140
1141 * config/alpha/alpha.c (alpha_initialize_trampoline):
1142 Initialize VMS trampoline IAW ABI for bounded procedure calls.
1143 (alpha_start_function): Emit transfer address on nested functions
1144 for VMS trampoline call.
1145 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
1146 since no longer used.
1147 * config/alpha/vms-tramp.asm: Remove.
1148 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
1149 since now only data initialized at runtime.
1150
1151 2009-08-09 Douglas B Rupp <rupp@gnat.com>
1152
1153 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
1154 (LINK_GCC_C_SEQUENCE_SPEC): Define.
1155 (MD_EXEC_PREFIX): Remove, no longer used.
1156 (MD_STARTFILE_PREFIX): Likewise.
1157 (INCLUDE_DEFAULTS): Likewise.
1158 * config/alpha/t-vms:
1159 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
1160
1161 2009-08-09 Richard Guenther <rguenther@suse.de>
1162
1163 PR tree-optimization/41016
1164 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
1165 (operand_precision): Remove.
1166 (integral_operand_p): Likewise.
1167 (recognize_single_bit_test): Adjust.
1168
1169 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1170
1171 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
1172 operation overflows. Likewise non-cast unary arithmetic.
1173 If one arm of a conditional expression is always taken,
1174 inhibit evaluation warnings for the other arm. Likewise inhibit
1175 evaluation warnings for the second && or || operand if the first
1176 operand is enough to determine the result.
1177 * c-typeck.c (build_conditional_expr): Apply the same inhibition
1178 rules here.
1179 (build_binary_op): Prevent duplicate evaluation warnings.
1180
1181 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
1182
1183 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
1184 and destination have different modes, Use promote_mode to
1185 determine the signedness of the conversion. Assert that the
1186 promoted source mode matches the destination mode. Don't pass
1187 the destination and destination mode to expand_expr if the source
1188 mode is different. Simplify conversion logic.
1189
1190 2009-08-09 Ira Rosen <irar@il.ibm.com>
1191
1192 PR tree-optimization/41008
1193 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
1194 from condition only in case it's a comparison. Adjust checks.
1195
1196 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
1197
1198 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
1199 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
1200 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
1201 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
1202 (dump_cand): Handle them.
1203 (struct iv_cand): New members COST_STEP and AINC_USE.
1204 (stmt_after_increment): Likewise.
1205 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
1206 callers changed. Use gimple_uid comparison instead of scanning.
1207 (add_candidate_1): When looking for identical candidates, take
1208 AINC_USE into account. Set it for new candidates.
1209 (force_expr_to_var_cost): Cast target_spill_cost to int.
1210 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
1211 All callers changed. Check for availability of autoinc addressing
1212 modes, both in general for a given mode, and in the specific use case.
1213 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
1214 changed.
1215 (get_computation_cost): Likewise.
1216 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
1217 add_autoinc_candidates): New static functions.
1218 (add_candidate): Call add_autoinc_candidates for candidates based on
1219 a USE_ADDRESS use.
1220 (find_iv_candidates): Call set_autoinc_for_original_candidates.
1221 (determine_use_iv_cost_address): If we have an autoinc candidate at
1222 the matching use, verify autoinc is possible and subtract the cost
1223 of the candidate's step from the cost.
1224 (determine_iv_cost): Record the cost of the increment in the COST_STEP
1225 member of the candidate.
1226 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
1227 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
1228
1229 2009-08-09 Douglas B Rupp <rupp@gnat.com>
1230
1231 * config.build (ia64-hp-*vms*): New target.
1232 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
1233 with ia64-hp-*vms*.
1234 * config.gcc (ia64-hp-*vms*): New target.
1235 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
1236 with ia64-hp-*vms*.
1237 * config.host (ia64-hp-*vms*): New target.
1238 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
1239 with ia64-hp-*vms*.
1240
1241 2009-08-08 Richard Guenther <rguenther@suse.de>
1242
1243 PR tree-optimization/40991
1244 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
1245
1246 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
1247
1248 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
1249 mode check. Do truncations in an integer mode.
1250 (force_to_mode): Handle subregs for all mode types. Only do
1251 arithmetic simplifications on integer modes.
1252
1253 2009-08-07 Richard Guenther <rguenther@suse.de>
1254
1255 PR tree-optimization/40999
1256 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
1257 (maybe_fold_reference): Lookup constant initializers.
1258 (fold_gimple_assign): Likewise.
1259
1260 2009-08-07 Richard Guenther <rguenther@suse.de>
1261
1262 * tree-ssa.c (useless_type_conversion_p_1): Only for types
1263 that require structural equality defer to the langhook.
1264
1265 2009-08-07 Martin Jambor <mjambor@suse.cz>
1266
1267 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
1268 comments.
1269 (struct ipa_pass_through_data): New type.
1270 (struct ipa_ancestor_jf_data): New type.
1271 (union jump_func_value): Removed field formal_id, added fields
1272 pass_through and ancestor.
1273 (struct ipa_param_call_note): Changed type of formal_id to int from
1274 unsigned.
1275 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
1276 operations jump functions and ancestor jump functions.
1277 (compute_complex_pass_through): New function.
1278 (compute_scalar_jump_functions): Call compute_complex_pass_through,
1279 reflect changes in the jump function strucutre.
1280 (update_jump_functions_after_inlining): Ignore complex pass-through
1281 and ancestor jump functions.
1282 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
1283 polynomial pass-through with operation jump functions.
1284
1285 2009-08-07 Jakub Jelinek <jakub@redhat.com>
1286
1287 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
1288 fde->dw_fde_begin as begin label instead of hot/cold label.
1289 Use LLSDAC label instead of LLSDA for second section lsda.
1290 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
1291 label instead of LLSDA if it is true.
1292 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
1293 callers.
1294 * except.c (add_call_site, dw2_size_of_call_site_table): Add
1295 SECTION argument. Use it as index into crtl->eh.call_site_record
1296 array.
1297 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
1298 use it to determine how to print table entries instead of using
1299 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
1300 label instead of normal begin label as base.
1301 (sjlj_assign_call_site_values): Adjust add_call_site caller.
1302 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
1303 ensure no EH range spans between sections and that landing pads
1304 are always in the corresponding section.
1305 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
1306 for crtl->eh.call_site_record being an array rather than scalar.
1307 (output_one_function_exception_table): New function, copied
1308 from output_function_exception_table. Adjust
1309 dw2_size_of_call_site_table, dw2_output_call_site_table
1310 callers. For SECOND section use *C suffixed labels.
1311 (output_function_exception_table): Call
1312 output_one_function_exception_table and, when doing hot/cold
1313 partitioning, also another time for the second section.
1314 * opts.c: Include except.h.
1315 (decode_options): Allow -freorder-blocks-and-partition with
1316 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
1317 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
1318 * function.h (struct rtl_eh): Change call_site_record from
1319 scalar into array of 2 elements.
1320
1321 2009-08-07 Martin Jambor <mjambor@suse.cz>
1322
1323 * ipa-prop.c (count_formal_params_1): New function.
1324 (ipa_get_vector_of_formal_parms): New function.
1325 (get_vector_of_formal_parm_types): New function.
1326 (ipa_modify_formal_parameters): New function.
1327 (ipa_modify_call_arguments): New function.
1328 (index_in_adjustments_multiple_times_p): New function.
1329 (ipa_combine_adjustments): New function.
1330 (ipa_dump_param_adjustments): New function.
1331 * ipa-prop.h (struct ipa_parm_adjustment): New type.
1332 (ipa_get_vector_of_formal_parms): Declare.
1333 (ipa_modify_formal_parameters): Declare.
1334 (ipa_modify_call_arguments): Declare.
1335 (ipa_combine_adjustments): Declare.
1336 (ipa_dump_param_adjustments): Declare.
1337 (build_ref_for_offset): Declare.
1338 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
1339 * tree-sra.c: Include ipa-prop.c.
1340 (build_ref_for_offset): Make public.
1341
1342 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
1343
1344 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
1345
1346 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
1347
1348 * gcc/doc/extend.texi (__builtin_extract_return_address)
1349 (__builtin_frob_return_address): Document.
1350
1351 2009-08-06 Paul Brook <paul@codesourcery.com>
1352
1353 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
1354 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
1355 implementation on ARMv6-M.
1356
1357 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
1358
1359 * doc/extend.texi (pcs): Document new attribute for ARM.
1360
1361 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
1362
1363 * arm.c (pcs_attribute_args): Comment out unsupported attribute
1364 variants.
1365
1366 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
1367
1368 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
1369 warning ().
1370
1371 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
1372
1373 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
1374
1375 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
1376
1377 Merge ARM/hard_vfp_branch to trunk.
1378
1379 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
1380
1381 * arm.c (libcall_eq): New function.
1382 (libcall_hash): New function.
1383 (add_libcall): New function.
1384 (arm_libcall_uses_aapcs_base): New function.
1385 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
1386 libcalls using the base PCS.
1387 (arm_init_cumulative_args): Likewise.
1388
1389 2009-07-20 Joseph Myers <joseph@codesourcery.com>
1390
1391 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
1392 Use base ABI for conversion libfuncs between HFmode and SFmode.
1393
1394 2009-05-12 Joseph Myers <joseph@codesourcery.com>
1395
1396 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
1397 V4SImode as representatives of all 64-bit and 128-bit vector
1398 types. Allow vector types without vector modes.
1399 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
1400 without vector modes like BLKmode.
1401 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
1402 BLKmode. Avoid unsupported vector modes or TImode moves for
1403 non-TARGET_NEON.
1404 (aapcs_vfp_allocate_return_reg): Likewise.
1405 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
1406 V8QImode if TARGET_NEON || TARGET_IWMMXT.
1407
1408 2009-05-12 Joseph Myers <joseph@codesourcery.com>
1409
1410 * config/arm/arm.c (arm_handle_pcs_attribute): New.
1411 (arm_get_pcs_model): Pass attribute arguments to
1412 arm_pcs_from_attribute.
1413 (arm_init_cumulative_args): Use base AAPCS for conversions from
1414 floating-point types to DImode.
1415 (arm_attribute_table): Add pcs attribute.
1416 (arm_handle_pcs_attribute): New.
1417 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
1418 conversions from floating-point types to DImode, also declare them
1419 to use base AAPCS and declare functions they call to use base
1420 AAPCS and their RTABI names.
1421
1422 2009-05-12 Joseph Myers <joseph@codesourcery.com>
1423
1424 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
1425 -mfloat-abi=hard not being supported for VFP.
1426
1427 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
1428
1429 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
1430 SYMBOL_REF to hard_libcall_value.
1431
1432 2009-03-05 Joseph Myers <joseph@codesourcery.com>
1433 Richard Earnshaw <rearnsha@arm.com>
1434
1435 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
1436 has been put on the stack, all remaining co-processory arguments for
1437 that co-processor also go on the stack.
1438
1439 2009-03-05 Joseph Myers <joseph@codesourcery.com>
1440
1441 * config/arm/arm.c (arm_return_in_memory): Handle returning
1442 vectors of suitable size in registers also for AAPCS case.
1443
1444 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
1445
1446 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
1447
1448 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
1449
1450 ARM Hard-VFP calling convention
1451 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
1452 * target.h (gcc_target): Add libcall_value to table of call hooks.
1453 * targhooks.h (default_libcall_value): Default implementation.
1454 * targhooks.c (default_libcall_value): Likewise.
1455 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
1456 * optabs.c (expand_unop): Use it.
1457 * expr.h (hard_libcall_value): Pass the function RTX through.
1458 * calls.c (emit_library_call_value_1): Update call to
1459 hard_libcall_value.
1460 * explow.c (hard_libcall_value): Use new target hook.
1461 * testsuite/lib/target-supports.exp
1462 (check_effective_target_arm_hard_vfp_ok): New hook.
1463 (check_effective_target_arm_neon_ok): Improve test for neon
1464 availability.
1465 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
1466 * config/arm/arm.c: Include cgraph.h
1467 (TARGET_FUNCTION_VALUE): Override default hook.
1468 (arm_pcs_default): New variable.
1469 (arm_override_options): Don't fault hard calling convention with VFP.
1470 Add support for AAPCS variants.
1471 (arm_function_value): Make static. Handle AAPCS variants.
1472 (arm_libcall_value): New function.
1473 (arm_apply_result_size): Handle VFP registers in results.
1474 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
1475 conventions.
1476 (pcs_attribute_args): New variable.
1477 (arm_pcs_from_attribute): New function.
1478 (arm_get_pcs_model): New function.
1479 (aapcs_vfp_cum_init): New function.
1480 (aapcs_vfp_sub_candidate): New function.
1481 (aapcs_vfp_is_return_candidate): New function.
1482 (aapcs_vfp_is_call_candidate): New function.
1483 (aapcs_vfp_allocate): New function.
1484 (aapcs_vfp_allocate_return_reg): New function.
1485 (aapcs_vfp_advance): New function.
1486 (aapcs_cp_arg_layout): New variable.
1487 (aapcs_select_call_coproc): New function.
1488 (aapcs_select_return_coproc): New function.
1489 (aapcs_allocate_return_reg): New function.
1490 (aapcs_libcall_value): New function.
1491 (aapcs_layout_arg): New function.
1492 (arm_init_cumulative_args): Initialize AAPCS args data.
1493 (arm_function_arg): Handle AAPCS variants using new interface.
1494 (arm_arg_parital_bytes): Likewise.
1495 (arm_function_arg_advance): New function.
1496 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
1497 calling conventions.
1498 (arm_setup_incoming_varargs): Handle new AAPCS args data.
1499 * arm.h (NUM_VFP_ARG_REGS): Define.
1500 (LIBCALL_VALUE): Update.
1501 (FUNCTION_VALUE): Delete.
1502 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
1503 (arm_pcs): New enum.
1504 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
1505 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
1506 (FUNCTION_ARG_REGNO_P): Add VFP regs.
1507 * arm-protos.h (arm_function_arg_advance): Add.
1508 (aapcs_libcall_value): Add.
1509 (arm_function_value): Delete.
1510
1511 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
1512 H.J. Lu <hongjiu.lu@intel.com>
1513
1514 PR target/40957
1515 * config/i386/i386.c (standard_sse_mode_p): Remove.
1516 (standard_sse_constant_p): Return 2 for integer mode
1517 vector_all_ones_operand when SSE2 is enabled.
1518 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
1519 (ix86_expand_vector_move): Do not check for negative values from
1520 standard_sse_constant_p.
1521
1522 2009-08-06 Richard Guenther <rguenther@suse.de>
1523
1524 * tree-ssa.c (useless_type_conversion_p_1): Make function and
1525 array type comparisons frontend independent.
1526 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
1527 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
1528 out array reference lower bound and element size operands.
1529 (ao_ref_init_from_vn_reference): Properly compute the offset
1530 for ARRAY_RANGE_REF.
1531 (vn_reference_fold_indirect): Fill out array reference lower
1532 bound and element size operands.
1533 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
1534 a non gimple valued reference operand which can happen for
1535 array reference lower bound or element size.
1536 (create_component_ref_by_pieces_1): Properly generate the
1537 element size operand for array references.
1538
1539 2009-08-06 Richard Guenther <rguenther@suse.de>
1540
1541 PR tree-optimization/40964
1542 * tree.c (iterative_hash_host_wide_int): Export.
1543 * tree.h (iterative_hash_host_wide_int): Declare.
1544 * tree-ssa-structalias.c (heapvar_map): New struct.
1545 (heapvar_map_eq): New function.
1546 (heapvar_map_hash): Likewise.
1547 (heapvar_lookup): Adjust.
1548 (heapvar_insert): Likewise.
1549 (make_constraint_from_heapvar): Allow multiple heap variables
1550 per decl at different offsets.
1551 (init_alias_heapvars): Adjust.
1552
1553 2009-08-04 David Daney <ddaney@caviumnetworks.com>
1554
1555 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
1556 * mips_output_sync_loop (mips_output_sync_loop): Only emit
1557 trailing sync if TARGET_SYNC_AFTER_SC.
1558
1559 2009-08-05 David Daney <ddaney@caviumnetworks.com>
1560
1561 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
1562 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
1563 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
1564 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
1565 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
1566 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
1567 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1568 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
1569 test_and_set_12): Rewrite calls to mips_output_sync_loop.
1570 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
1571 the prototype declaration match the definition.
1572 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
1573 instructions explicitly. Add barrier_before and operands
1574 parameters.
1575 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
1576 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
1577 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
1578 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
1579 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
1580 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
1581
1582 2009-08-05 Andrew Pinski <pinskia@gmail.com>
1583
1584 * tree-ssa-alias.c: Fix intervals to use [) syntax.
1585
1586 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
1587 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1588
1589 PR target/40906
1590 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
1591 source operand.
1592
1593 2009-08-05 Jakub Jelinek <jakub@redhat.com>
1594
1595 PR rtl-optimization/40924
1596 * dse.c (canon_address): Before calling cselib_expand_value_rtx
1597 make sure canon_rtx (mem_address) isn't simpler than
1598 canon_rtx (expanded_mem_address).
1599
1600 2009-08-05 Li Feng <nemokingdom@gmail.com>
1601
1602 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
1603 for each poly_bb_p.
1604 (build_scop_drs): Build alias set for each SCoP.
1605
1606 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
1607
1608 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
1609 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
1610 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
1611 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1612 (BASE_DRIVER_SELF_SPECS): Likewise.
1613
1614 2009-08-04 Andrew Pinski <pinskia@gmail.com>
1615
1616 * tree-ssa-alias.c: Fix some comment typos.
1617
1618 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
1619
1620 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
1621 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
1622
1623 2009-08-03 Janis Johnson <janis187@us.ibm.com>
1624
1625 PR c/39902
1626 * simplify-rtx.c (simplify_binary_operation_1): Disable
1627 simplifications for decimal float operations.
1628
1629 2009-08-03 Jakub Jelinek <jakub@redhat.com>
1630
1631 PR middle-end/40943
1632 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
1633 operand of INDIRECT_REF.
1634
1635 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
1636
1637 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
1638 constants referencing TLS symbols.
1639
1640 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1641
1642 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
1643 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
1644
1645 2009-08-03 Richard Guenther <rguenther@suse.de>
1646
1647 * tree.c (make_vector_type): Build a main variant first,
1648 get the canonical one and then build the variant.
1649 * tree-ssa.c (useless_type_conversion_p_1): Handle
1650 fixed-point types.
1651 (useless_type_conversion_p): Conversions to pointers to
1652 incomplete record types are useless.
1653
1654 2009-08-03 Richard Guenther <rguenther@suse.de>
1655
1656 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
1657 file will be created.
1658 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
1659 * toplev.c (compile_file): Adjust comment.
1660
1661 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
1662
1663 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
1664 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
1665 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1666 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1667 (sh_promote_function_mode): Fix typo.
1668
1669 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
1670
1671 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
1672
1673 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1674
1675 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
1676 declaration arguments.
1677
1678 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
1679
1680 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
1681 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
1682 (ix86_split_ashl): Ditto.
1683 (ix86_expand_vector_init_one_nonzero): Ditto.
1684 (ix86_expand_vector_set): Ditto.
1685 (ix86_expand_reduc_v4sf): Ditto.
1686
1687 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
1688
1689 * explow.c (promote_function_mode): Remove assert.
1690 * config/sh/sh.c (sh_promote_function_mode): Declare.
1691
1692 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1693
1694 * config/pa/pa.c (pa_promote_function_mode): Declare.
1695 Change to static. Fix promote_mode call.
1696
1697 * gthr-dce.h (CONST_CAST2): Define if not defined.
1698 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
1699
1700 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
1701
1702 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
1703
1704 * expr.c (store_constructor): Use promote_decl_mode. Remove
1705 now write-only variable unsignedp.
1706 (expand_expr_real_1): Use promote_decl_mode.
1707 * expr.h (promote_function_mode, promote_decl_mode): New.
1708 (promote_mode): Remove last argument.
1709 * function.c (assign_temp): Drop last argument of promote_mode.
1710 (assign_parm_find_data_types): Use promote_function_mode.
1711 (assign_parm_setup_reg): Likewise.
1712 (expand_function_end): Use promote_function_mode.
1713 * calls.c (initialize_argument_information): Use promote_function_mode.
1714 (precompute_arguments): Use promote_mode instead of checking if
1715 only PROMOTE_FUNCTION_MODE is defined.
1716 (expand_call): When making sibcall decisions, use promote_function_mode.
1717 Below, remove an if for targetm.calls.promote_function_return and
1718 and use promote_function_mode.
1719 (emit_library_call_value_1): Use promote_function_mode, fix bug
1720 where promote_mode was passed FOR_CALL == 0 for a return value in an
1721 assertion.
1722 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1723 * explow.c (promote_function_mode, promote_decl_mode): New.
1724 (promote_mode): Keep only the FOR_CALL == 0 case.
1725 * combine.c (setup_incoming_promotion): Remove test of
1726 promote_function_args. Use promote_function_mode.
1727 * stmt.c (expand_value_return): Use promote_decl_mode.
1728 (expand_decl): Use promote_decl_mode.
1729
1730 * expr.c (store_constructor): Use promote_decl_mode. Remove
1731 now write-only variable unsignedp.
1732 (expand_expr_real_1): Use promote_decl_mode.
1733 * expr.h (promote_function_mode, promote_decl_mode): New.
1734 (promote_mode): Remove last argument.
1735 * function.c (assign_temp): Drop last argument of promote_mode.
1736 (assign_parm_find_data_types): Use promote_function_mode.
1737 (assign_parm_setup_reg): Likewise.
1738 (expand_function_end): Use promote_function_mode.
1739 * calls.c (initialize_argument_information): Use promote_function_mode.
1740 (precompute_arguments): Use promote_mode instead of checking if
1741 only PROMOTE_FUNCTION_MODE is defined.
1742 (expand_call): When making sibcall decisions, use promote_function_mode.
1743 Below, remove an if for targetm.calls.promote_function_return and
1744 and use promote_function_mode.
1745 (emit_library_call_value_1): Use promote_function_mode, fix bug
1746 where promote_mode was passed FOR_CALL == 0 for a return value in an
1747 assertion.
1748 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
1749 * explow.c (promote_function_mode, promote_decl_mode): New.
1750 (promote_mode): Keep only the FOR_CALL == 0 case.
1751 * combine.c (setup_incoming_promotion): Remove test of
1752 promote_function_args. Use promote_function_mode.
1753 * stmt.c (expand_value_return): Use promote_decl_mode.
1754 (expand_decl): Use promote_decl_mode.
1755
1756 * explow.c (promote_function_mode): Just call the target hook.
1757 * targhooks.c (default_promote_function_mode,
1758 default_promote_function_mode_always_promote): New.
1759 * targhooks.h (default_promote_function_mode,
1760 default_promote_function_mode_always_promote): Declare.
1761 * target.h (promote_function_args, promote_function_return): Remove.
1762 (promote_function_mode): New.
1763 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
1764 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1765 (TARGET_PROMOTE_FUNCTION_MODE): New.
1766 (TARGET_CALLS): Adjust.
1767 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
1768 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
1769
1770 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
1771 * config/s390/s390.c (s390_promote_function_mode): ... here,
1772 with pointer handling.
1773 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1774 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1775
1776 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
1777 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
1778 with pointer handling.
1779 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1780 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1781
1782 * config/sh/sh-protos.h (sh_promote_function_mode): New.
1783 * config/sh/sh.c (sh_promote_function_mode): New.
1784 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1785 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1786
1787 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
1788 * config/cris/cris.c (cris_promote_function_mode): ... here.
1789 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1790 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1791
1792 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
1793 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
1794 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1795 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
1796
1797 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
1798 * config/arm/arm.c (arm_promote_function_mode): ... here, without
1799 complex type handling.
1800 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1801 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1802
1803 * config/pa/pa.c (pa_promote_function_mode): New.
1804 (TARGET_PROMOTE_FUNCTION_MODE): Define.
1805 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1806
1807 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
1808 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
1809 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
1810 * config/xtensa/xtensa.c: Likewise.
1811 * config/stormy16/stormy16.c: Likewise.
1812 * config/iq2000/iq2000.c: Likewise.
1813 * config/rs6000/rs6000.c: Likewise.
1814 * config/picochip/picochip.c: Likewise.
1815 * config/arc/arc.c: Likewise.
1816 * config/mcore/mcore.c: Likewise.
1817 * config/score/score.c: Likewise.
1818 * config/mips/mips.c: Likewise.
1819 * config/bfin/bfin.c: Likewise.
1820 * config/ia64/ia64.c: Likewise (disabled though).
1821
1822 * config/frv/frv.h: Remove pointless remark.
1823
1824 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
1825 TARGET_PROMOTE_FUNCTION_ARGS,
1826 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
1827 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
1828
1829 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
1830
1831 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
1832 -floop-parallelize-all.
1833 * toplev.c (process_options): Rename flag_graphite_force_parallel to
1834 flag_loop_parallelize_all.
1835 * tree-ssa-loop.c (gate_graphite_transforms): Same.
1836 * graphite.c (graphite_transform_loops): Same.
1837 * common.opt: Same.
1838 * graphite-poly.c (apply_poly_transforms): Same.
1839
1840 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
1841
1842 PR tree-optimization/40914
1843 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
1844 if set, then check the delta field of the PMF record.
1845 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
1846 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
1847 call is stored in the delta.
1848
1849 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
1850
1851 * config/mips/mips.md (*clear_upper32_dext): New pattern.
1852
1853 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
1854
1855 * config/i386/bsd.h (ASM_BYTE): New define.
1856 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
1857 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
1858 .byte. Use fputs or putc instead of fprintf where appropriate.
1859 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
1860 fputs or putc instead of fprintf where appropriate.
1861 * config/i386/i386elf.h: Ditto.
1862 * config/i386/sysv4.h: Ditto.
1863
1864 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
1865 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
1866 (*tls_global_dynamic_64): Ditto.
1867
1868 2009-07-31 Christian Bruel <christian.bruel@st.com>
1869
1870 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
1871
1872 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1873
1874 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
1875 Remove dead code for MINUS.
1876
1877 2009-07-31 Anthony Green <green@moxielogic.com>
1878
1879 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
1880 $r12 in prologue.
1881 (moxie_expand_epilogue): Ditto for epilogue.
1882 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
1883 incoming arguments.
1884 (moxie_function_arg): Ditto.
1885 (moxie_pass_by_reference): Ditto.
1886 (moxie_arg_partial_bytes): Ditto.
1887 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
1888 (FUNCTION_ARG_ADVANCE) Ditto.
1889 (REG_PARM_STACK_SPACE) Ditto.
1890 (FUNCTION_ARG_REGNO_P) Dito.
1891
1892 * config.gcc: Add moxie linux config support.
1893 * gcc/config/moxie/uclinux.h: New file.
1894
1895 2009-07-31 DJ Delorie <dj@redhat.com>
1896
1897 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1898 (UNSPECV_SP_SWITCH_E): New.
1899 (sp_switch_1): Change to an unspec.
1900 (sp_switch_2): Change to an unspec. Don't use post-inc when we
1901 replace $r15.
1902 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
1903 reference the new stack's address
1904
1905 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1906
1907 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
1908 graphite-clast-to-gimple.o, graphite-dependences.o,
1909 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1910 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
1911 (graphite-blocking.o,
1912 graphite-clast-to-gimple.o, graphite-dependences.o,
1913 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
1914 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
1915 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
1916 * cfgloop.h (struct loop): Add can_be_parallel field.
1917 * common.opt (fgraphite-identity): Moved up.
1918 (fgraphite-force-parallel): New flag.
1919 * graphite.c: Rewrite.
1920 * graphite.h: Rewrite.
1921 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
1922 after Graphite.
1923 * toplev.c (graphite_out_file): New file descriptor.
1924 (graphite_in_file): New.
1925 (process_options): flag_graphite_force_parallel cannot be used without
1926 Graphite.
1927 * tree-ssa-loop.c: Include toplev.h.
1928 (gate_graphite_transforms): Enable flag_graphite for
1929 flag_graphite_force_parallel.
1930
1931 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1932
1933 * ChangeLog.graphite: New.
1934 * graphite-blocking.c: New.
1935 * graphite-clast-to-gimple.c: New.
1936 * graphite-clast-to-gimple.h: New.
1937 * graphite-dependences.c: New.
1938 * graphite-dependences.h: New.
1939 * graphite-interchange.c: New.
1940 * graphite-poly.c: New.
1941 * graphite-poly.h: New.
1942 * graphite-ppl.c: New.
1943 * graphite-ppl.h: New.
1944 * graphite-scop-detection.c: New.
1945 * graphite-scop-detection.h: New.
1946 * graphite-sese-to-poly.c: New.
1947 * graphite-sese-to-poly.h: New.
1948 * sese.c: New.
1949 * sese.h: New.
1950
1951 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1952
1953 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1954 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
1955
1956 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1957
1958 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
1959 (scev_is_linear_expression): Return false if the evolution is not
1960 affine multivariate.
1961
1962 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1963
1964 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1965 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1966
1967 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1968
1969 * tree-data-ref.c (debug_data_references): New.
1970 (debug_data_reference): New.
1971 * tree-data-ref.h (debug_data_references): Declared.
1972 (debug_data_reference): Declared.
1973
1974 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1975
1976 * tree-data-ref.c (stmt_simple_memref_p: Removed.
1977 * tree-data-ref.h (scop_p): Removed.
1978 (struct data_reference): Remove field scop.
1979 (DR_SCOP): Removed.
1980 (stmt_simple_memref_p): Removed.
1981
1982 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1983
1984 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
1985 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
1986 basic block empty.
1987
1988 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1989
1990 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
1991
1992 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1993
1994 * doc/invoke.texi (-fgraphite-identity): Documented.
1995
1996 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
1997
1998 * tree-scalar-evolution.c: Fix comment.
1999 (instantiate_scev_1): Return unknow from scev instantiation if the
2000 result is not above instantiate_below.
2001
2002 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
2003
2004 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2005 static anymore. Instantiate the symbols that may have been introduced
2006 by chrec_apply.
2007 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2008 Declared.
2009
2010 2009-07-30 DJ Delorie <dj@redhat.com>
2011
2012 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
2013 .vliw directive to VLIW sections.
2014
2015 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2016
2017 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
2018 New variables.
2019 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
2020 (AUTOHEADER): New variable.
2021 ($(srcdir)/cstamp-h.in): Use it.
2022
2023 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2024 Pat Haugen <pthaugen@us.ibm.com>
2025 Revital Eres <ERES@il.ibm.com>
2026
2027 * config/rs6000/vector.md (VEC_F): Add VSX support.
2028 (VEC_A): Ditto.
2029 (VEC_N): Ditto.
2030 (mov<mode>): Ditto.
2031 (vector_load_<mode>): Ditto.
2032 (vector_store_<mode>): Ditto.
2033 (vector GPR move split): Ditto.
2034 (vec_reload_and_plus_<mptrsize>): Ditto.
2035 (vec_reload_and_reg_<mptrsize>): Ditto.
2036 (add<mode>3): Ditto.
2037 (sub<mode>3): Ditto.
2038 (mul<mode>3): Ditto.
2039 (neg<mode>2): Ditto.
2040 (abs<mode>2): Ditto.
2041 (smin<mode>3): Ditto.
2042 (smax<mode>3): Ditto.
2043 (vector_eq<mode>): Ditto.
2044 (vector_gt<mode>): Ditto.
2045 (vector_ge<mode>): Ditto.
2046 (vector_gtu<mode>): Ditto.
2047 (vector_select_<mode>_uns): Ditto.
2048 (vector_eq_<mode>_p): Ditto.
2049 (vector_gt_<mode>_p): Ditto.
2050 (vector_ge_<mode>_p): Ditto.
2051 (vector_gtu_<mode>_p): Ditto.
2052 (cr6_test_for_zero): Ditto.
2053 (cr6_test_for_zero_reverse): Ditto.
2054 (cr6_test_for_lt): Ditto.
2055 (cr6_test_for_lt_reverse): Ditto.
2056 (xor<mode>3): Ditto.
2057 (ior<mode>3): Ditto.
2058 (and<mode>3): Ditto.
2059 (one_cmpl<mode>2): Ditto.
2060 (nor<mode>2): Ditto.
2061 (andc<mode>2): Ditto.
2062 (float<VEC_int<mode>2): Ditto.
2063 (unsigned_float<VEC_int><mode>2): Ditto.
2064 (fix_trunc<mode><VEC_int>2): Ditto.
2065 (fixuns_trunc<mode><VEC_int>2): Ditto.
2066 (vec_init<mode>):
2067 (vec_set<mode>): Ditto.
2068 (vec_extract<mode>): Ditto.
2069 (vec_interleave_highv4sf): Ditto.
2070 (vec_interleave_lowv4sf): Ditto.
2071 (vec_realign_load_<mode>): Ditto.
2072 (vec_shl_<mode>): Ditto.
2073 (vec_shr_<mode>): Ditto.
2074 (div<mode>3): New patterns for VSX.
2075 (vec_interleave_highv2df): Ditto.
2076 (vec_interleave_lowv2df): Ditto.
2077 (vec_pack_trunc_v2df): Ditto.
2078 (vec_pack_sfix_trunc_v2df): Ditto.
2079 (vec_pack_ufix_trunc_v2df): Ditto.
2080 (vec_unpacks_hi_v4sf): Ditto.
2081 (vec_unpacks_lo_v4sf): Ditto.
2082 (vec_unpacks_float_hi_v4si): Ditto.
2083 (vec_unpacks_float_lo_v4si): Ditto.
2084 (vec_unpacku_float_hi_v4si): Ditto.
2085 (vec_unpacku_float_lo_v4si): Ditto.
2086 (movmisalign<mode>): Ditto.
2087 (vector_ceil<mode>2): New patterns for vectorizing math library.
2088 (vector_floor<mode>2): Ditto.
2089 (vector_btrunc<mode>2): Ditto.
2090 (vector_copysign<mode>3): Ditto.
2091
2092 * config/rs6000/predicates.md (easy_vector_constant_msb): New
2093 predicate for setting the high bit in each word, used for copysign.
2094
2095 * config/rs6000/ppc-asm.h (f19): Whitespace.
2096 (f32-f63): Define if VSX.
2097 (v0-v31): Define if Altivec.
2098 (vs0-vs63): Define if VSX.
2099
2100 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
2101
2102 * config/rs6000/power7.md: New file, provide tuning parameters for
2103 -mcpu=power7.
2104
2105 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
2106 (rs6000_cpu_cpp_builtins): Ditto.
2107 (altivec_overloaded_builtins): Ditto.
2108 (altivec_resolve_overloaded_builtin): Ditto.
2109
2110 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
2111 debug switch to disable vectorizing simple math builtin
2112 functions.
2113
2114 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2115 Vectorize simple math builtin functions.
2116 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
2117 hook to vectorize math builtins.
2118 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
2119 (rs6000_builtin_conversion): Add VSX/power7 support.
2120 (rs6000_builtin_vec_perm): Ditto.
2121 (vsplits_constant): Add support for loading up a vector constant
2122 with just the high bit set in each part.
2123 (rs6000_expand_vector_init): Add VSX/power7 support.
2124 (rs6000_expand_vector_set): Ditto.
2125 (rs6000_expand_vector_extract): Ditto.
2126 (rs6000_emit_move): Ditto.
2127 (bdesc_3arg): Ditto.
2128 (bdesc_2arg): Ditto.
2129 (bdesc_1arg): Ditto.
2130 (rs6000_expand_ternop_builtin): Ditto.
2131 (altivec_expand_builtin): Ditto.
2132 (rs6000_expand_unop_builtin): Ditto.
2133 (rs6000_init_builtins): Ditto.
2134 (altivec_init_builtins): Ditto.
2135 (builtin_function_type): Ditto.
2136 (rs6000_common_init_builtins): Ditto.
2137 (rs6000_handle_altivec_attribute); Ditto.
2138 (rs6000_mangle_type): Ditto.
2139 (rs6000_vector_mode_supported_p): Ditto.
2140 (rs6000_mode_dependent_address): Altivec addresses with AND -16
2141 are mode dependent.
2142
2143 * config/rs6000/vsx.md: New file for VSX support.
2144
2145 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
2146 identifing values with just the most significant bit set.
2147 (enum rs6000_builtins): Add builtins for VSX. Add simple math
2148 vectorized builtins.
2149
2150 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
2151 (UNSPEC_VRFIM): Delete.
2152 (splitter for loading up vector with most significant bit): New
2153 splitter for vectorizing copysign.
2154 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
2155 vectorizing simple math functions.
2156 (altivec_vrfip): Add support for vectorizing simple math functions.
2157 (altivec_vrfim): Ditto.
2158 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
2159
2160 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
2161 (power7.md, vsx.md): Include for power7 support.
2162 (copysigndf3): Use VSX instructions if -mvsx.
2163 (negdf2_fpr): Ditto.
2164 (absdf2_fpr): Ditto.
2165 (nabsdf2_fpr): Ditto.
2166 (adddf3_fpr): Ditto.
2167 (subdf3_fpr): Ditto.
2168 (muldf3_fpr): Ditto.
2169 (divdf3_fpr): Ditto.
2170 (fix_truncdfdi2_fpr): Ditto.
2171 (cmpdf_internal1): Ditto.
2172 (fred, fred_fpr): Convert into expander/insn to add VSX support.
2173 (btruncdf2, btruncdf2_fpr): Ditto.
2174 (ceildf2, ceildf2_fpr): Ditto.
2175 (floordf2, floordf2_fpr): Ditto.
2176 (floatdidf2, floatdidf2_fpr): Ditto.
2177 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
2178 (fmsubdf4_fpr): Ditto.
2179 (fnmadddf4_fpr_1): Ditto.
2180 (fnmadddf4_fpr_2): Ditto.
2181 (fnmsubdf4_fpr_1): Ditto.
2182 (fnmsubdf4_fpr_2): Ditto.
2183 (fixuns_truncdfdi2): Add expander for VSX support.
2184 (fix_truncdfdi2): Ditto.
2185 (fix_truncdfsi2): Ditto.
2186 (ftruncdf2): Ditto.
2187 (btruncsf2): Whitespace.
2188 (movdf_hardfloat32): Add support for VSX registers.
2189 (movdf_softfloat32): Ditto.
2190 (movdf_hardfloat64): Ditto.
2191 (movdf_hardfloat64_mfpgpr): Ditto.
2192 (movdf_softfloat64): Ditto.
2193 (movti splitters): Add check for vector registers supporting
2194 TImode in the future.
2195 (bpermd): Add power7 bpermd instruction.
2196
2197 * config/rs6000/altivec.h (vec_div): Define if VSX.
2198 (vec_mul): Ditto.
2199 (vec_msub): Ditto.
2200 (vec_nmadd): Ditto.
2201 (vec_nearbyint): Ditto.
2202 (vec_rint): Ditto.
2203 (vec_sqrt): Ditto.
2204 (all predicates): Use the generic builtin function, and not the V4SF
2205 specific function so that the predicates will work with VSX's V2DF.
2206 (vec_all_*): Ditto.
2207 (vec_any_*): Ditto.
2208
2209 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
2210 Document new VSX functions and types.
2211
2212 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
2213 switches.
2214
2215 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
2216 "wa", and "j" constraints. Modify "v" to talk about Altivec
2217 instead of just vector.
2218
2219 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
2220
2221 PR debug/26475
2222 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
2223 location for phi arguments.
2224 (rewrite_update_phi_arguments): Find locations for reaching defs.
2225 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
2226 Add location to add_phi_arg calls.
2227 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
2228 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
2229 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
2230 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
2231 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
2232 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
2233 * tree-phinodes.c (make_phi_node): Initialize location.
2234 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
2235 (add_phi_arg): Add location parameter.
2236 (remove_phi_arg_num): Move location when moving phi argument.
2237 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
2238 location.
2239 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
2240 slpeel_update_phi_nodes_for_guard1,
2241 slpeel_update_phi_nodes_for_guard2,
2242 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
2243 vect_loop_versioning): Set locations.
2244 * tree-parloops.c (create_phi_for_local_result,
2245 transform_to_exit_first_loop, create_parallel_loop): Add locations.
2246 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
2247 * tree-vect-loop.c (get_initial_def_for_induction,
2248 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
2249 locations.
2250 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
2251 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
2252 (gimple_phi_arg_set_location): New. Set locus.
2253 (gimple_phi_arg_has_location): New. Check for locus.
2254 (redirect_edge_var_map_location): New. Return locus from var_map.
2255 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
2256 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
2257 combining PHI arguments.
2258 (cond_store_replacement): Set location.
2259 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
2260 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
2261 scop_add_exit_phis_edge): Add locations.
2262 * tree-cfgcleanup.c (remove_forwarder_block,
2263 remove_forwarder_block_with_phi): Add locations.
2264 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
2265 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
2266 locations.
2267 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
2268 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
2269 flush_pending_stmts): Add source location.
2270 * lambda-code.c (perfect_nestify): Maintain location stack with argument
2271 stack to preserve locations.
2272 * tree-vect-stmts.c (vectorizable_load): Add location.
2273 * tree-inline.c (copy_phis_for_bb): Copy locus.
2274 (setup_one_parameter): Add call locus to inlined parameter stmts.
2275 (initialize_inlined_parameters): Pass in call location as parameter
2276 assignment locus.
2277 (tree_function_versioning): Pass location to setup_one_parameter.
2278 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
2279 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
2280 copy and edge lists.
2281 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
2282 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
2283 locus parameter and override the stmt default if provided.
2284 (new_elim_graph, clear_elim_graph, delete_elim_graph,
2285 elim_graph_add_edge, elim_graph_remove_succ_edge,
2286 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
2287 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
2288 eliminate_phi): Add locus info in elimination graph for each edge and
2289 value copy.
2290 (insert_backedge_copies): Copy locus if present.
2291 * tree-flow.h (struct _edge_var_map): Add locus field.
2292 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
2293 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
2294 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
2295 locations.
2296 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
2297
2298 2009-07-30 Martin Jambor <mjambor@suse.cz>
2299
2300 PR tree-optimization/40570
2301 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
2302 use inlining loops.
2303
2304 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
2305
2306 * ssa-loop-manip.c: Include langhooks.h.
2307 (rewrite_phi_with_iv): New.
2308 (rewrite_all_phi_nodes_with_iv): New.
2309 (canonicalize_loop_ivs): Move here from tree-parloops.c.
2310 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
2311 * tree-parloops.c (loop_parallel_p): Move out all conditions
2312 except dependency check.
2313 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
2314 (gen_parallel_loop): Call canonicalize_loop_ivs without
2315 reduction_list argument.
2316 (build_new_reduction): New.
2317 (gather_scalar_reductions): New.
2318 (try_get_loop_niter): New.
2319 (try_create_reduction_list): New.
2320 (parallleize_loops): Change the parallel conditions check.
2321 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2322 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
2323
2324 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
2325
2326 * opt-functions.awk (opt_args): Allow argument to be enclosed in
2327 curly braces.
2328 * doc/options.texi (Option properties): Mention new quoting syntax.
2329
2330 2009-07-29 Douglas B Rupp <rupp@gnat.com>
2331
2332 * config/alpha/alpha.c (alpha_start_function):
2333 Handle VMS_DEBUG_MAIN_POINTER
2334 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
2335 * doc/invoke.texi: Document -mdebug-main switch.
2336
2337 2009-07-29 Richard Henderson <rth@redhat.com>
2338
2339 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
2340 (cgraph_create_edge_including_clones): Likewise.
2341 * tree-inline.c (copy_bb): Operate on the correct edges
2342 when updating the callgraph.
2343
2344 2009-07-29 Douglas B Rupp <rupp@gnat.com>
2345
2346 * config/alpha/vms-cc.c: Deleted.
2347 * config/alpha/vms-ld.c: Deleted.
2348 * config/alpha/t-vms64: Moved to config/vms
2349 * config/alpha/vms-crt0-64.c: Moved to config/vms
2350 * config/alpha/vms-crt0.c: Moved to config/vms
2351 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
2352 * config/alpha/vms-psxcrt0.c: Moved to config/vms
2353 * config/alpha/xm-vms.h: Moved to config/vms
2354 * config/alpha/x-vms: Moved to config/vms
2355 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
2356 config/vms/t-vms.
2357 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
2358 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
2359 (version): Set.
2360 * config/vms/t-vms64: Moved here from config/alpha
2361 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
2362 (argc,argv,envp): Enforce 32bit malloc'ing.
2363 * config/vms/vms-psxcrt0-64.c: Likewise.
2364 * config/vms/vms-crt0.c: Moved here from config/alpha.
2365 * config/vms/vms-psxcrt0.c: Likewise.
2366 * config/vms/vms-crtl-64.h: New file.
2367 * config/vms/vms-crtl.h: New file.
2368 * config/vms/vms.opt: New file.
2369 * config/vms/xm-vms64.h: New file.
2370 * config/vms/xm-vms.h: Moved here from config/alpha.
2371 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
2372 Set.
2373 * config/vms/x-vms: Moved here from config/alpha.
2374 (version, VMS_EXTRA_PARTS): Moved to t-vms.
2375 (vms-ld.o, vms-cc.o): Removed.
2376 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
2377
2378 2009-07-29 Douglas B Rupp <rupp@gnat.com>
2379
2380 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
2381 correct stack (obvious VMS fix).
2382
2383 2009-07-29 Douglas B Rupp <rupp@gnat.com>
2384
2385 * dwarf2out.c (output_file_names): Output VMS style file name, size,
2386 date, version info if VMS_DEBUGGING_INFO defined.
2387 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
2388 size, date calculating code moved here.
2389
2390 2009-07-29 Paul Brook <paul@codesourcery.com>
2391
2392 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
2393 do_push/do_pop.
2394
2395 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
2396
2397 PR target/40577
2398 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
2399 to DImode when generating insq_le insn.
2400
2401 2009-07-28 Douglas B Rupp <rupp@gnat.com>
2402
2403 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
2404 New macro set for VMS_DEBUGGGING_INFO.
2405 (AT_string_form): Use it.
2406
2407 2009-07-28 DJ Delorie <dj@redhat.com>
2408
2409 * config/mep/mep.c (vtext_section): New.
2410 (vftext_section): New.
2411 (ftext_section): New.
2412 (mep_select_section): Add support for functions.
2413 (mep_unique_section): Likewise.
2414 (mep_asm_init_sections): Likewise.
2415 (mep_encode_section_info): Remove it from here.
2416
2417 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
2418
2419 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
2420
2421 * tree.h (TREE_DEPRECATED): Document it is used for types too.
2422 (TYPE_VECTOR_OPAQUE): Use default_def_flag
2423
2424 2009-07-28 Douglas B Rupp <rupp@gnat.com>
2425
2426 * dwarf2out.c (output_file_names): Test new macro
2427 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
2428 (add_comp_dir_attribute): Likewise.
2429
2430 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
2431
2432 * config/i386/mingw-w64.h (LINK_SPEC): Add
2433 separating space between commands.
2434
2435 2009-07-28 Jan Hubicka <jh@suse.cz>
2436
2437 PR tree-optimization/40759
2438 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
2439 for renaming.
2440
2441 2009-07-27 DJ Delorie <dj@redhat.com>
2442
2443 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
2444 types are dword-aligned.
2445 (mep_expand_va_start): Likewise.
2446
2447 2009-07-27 Olivier Hainque <hainque@adacore.com>
2448 Douglas B Rupp <rupp@gnat.com>
2449
2450 * convert.c (convert_to_pointer): Don't assume the target
2451 pointer type is POINTER_SIZE long. Fetch its precision instead.
2452
2453 2009-07-27 Douglas B Rupp <rupp@gnat.com>
2454
2455 * system.h (fopen): Undefine if macro.
2456
2457 2009-07-27 Jakub Jelinek <jakub@redhat.com>
2458
2459 * dwarf2out.c (output_cfi_p): Removed.
2460 (output_cfis): New function.
2461 (output_fde): New function, split from output_call_frame_info.
2462 (output_call_frame_info): Use it.
2463 (dwarf2out_switch_text_section): Use output_cfis.
2464
2465 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
2466
2467 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
2468 TARGET_BI_ARCH is specified without enabling SJLJ.
2469 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
2470 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
2471
2472 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
2473
2474 * arm.md (negdi2): Use DImode if forcing a value into a register.
2475
2476 2009-07-26 Ira Rosen <irar@il.ibm.com>
2477
2478 PR tree-optimization/40801
2479 * tree-vect-stmts.c (vectorizable_call): Get previous copy
2480 of vector operand from the previous copy of vector statement.
2481 Pass the correct definition type value to
2482 vect_get_vec_def_for_stmt_copy().
2483
2484 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2485
2486 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
2487 const char ** conversion.
2488
2489 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2490
2491 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
2492 fancy_abort() if !ENABLE_ASSERT_CHECKING.
2493 (gcc_unreachable): Invoke __builtin_unreachable() if
2494 !ENABLE_ASSERT_CHECKING.
2495
2496 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2497
2498 PR rtl-optimization/40445
2499 * emit-rtl.c (next_nonnote_insn_bb): New function.
2500 * rtl.h (next_nonnote_insn_bb): Declare new function.
2501 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
2502 with no successors that is the successor of the ENTRY_BLOCK.
2503 Continue from the top after removing an empty fallthrough block.
2504 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
2505 of next_nonnote_insn.
2506
2507 2009-07-25 David Daney <ddaney@caviumnetworks.com>
2508
2509 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
2510
2511 2009-07-25 Martin Jambor <mjambor@suse.cz>
2512
2513 * c-common.c (c_common_attribute_table): New element for noclone.
2514 (handle_noclone_attribute): New function. Forward-declare.
2515 * tree-inline.c (tree_versionable_function_p): Check for noclone
2516 attribute.
2517 * doc/extend.texi (Labels as Values): Document need for noclone.
2518 (Function Attributes): Document noclone attribute.
2519
2520 2009-07-25 Jakub Jelinek <jakub@redhat.com>
2521
2522 PR rtl-optimization/34999
2523 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
2524 and dw_fde_switched_cold_to_hot fields.
2525 (output_cfi_p): New function.
2526 (output_call_frame_info): If fde->dw_fde_switched_sections,
2527 output 2 FDEs instead of one with corrupted header.
2528 (dwarf2out_do_cfi_startproc): New function.
2529 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
2530 and fde->dw_fde_switched_cold_to_hot.
2531 (dwarf2out_switch_text_section): Compute
2532 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
2533 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
2534 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
2535 Otherwise, compute fde->dw_fde_switch_cfi.
2536
2537 2009-07-24 Cary Coutant <ccoutant@google.com>
2538
2539 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
2540
2541 2009-07-24 Cary Coutant <ccoutant@google.com>
2542
2543 * cfghooks.c (split_block): Copy discriminator to new block.
2544 * tree-cfg.c (assign_discriminator): Check location of last
2545 instruction in block as well as first.
2546
2547 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
2548
2549 * config/i386/linux.c: Use fputs or putc instead of fprintf
2550 where appropriate.
2551 * config/i386/gas.h: Ditto.
2552 * config/i386/x86-64.h: Ditto.
2553 * config/i386/att.h: Ditto.
2554
2555 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2556
2557 * expmed.c (emit_store_flag): Use a recursive call to optimize the
2558 xor case.
2559
2560 2009-07-24 Martin Jambor <mjambor@suse.cz>
2561
2562 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
2563 (ipa_push_func_to_list_1): Declare.
2564 (ipa_push_func_to_list): New function.
2565
2566 * ipa-prop.c (ipa_push_func_to_list_1): New function.
2567 (ipa_init_func_list): Call ipa_push_func_to_list_1.
2568 (ipa_push_func_to_list): Removed.
2569 (ipa_pop_func_from_list): Clear node_enqueued flag.
2570
2571 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
2572
2573 * config/s390/s390.c (override_options): Default
2574 max-unrolled-insns to 100 for z10 tuning.
2575
2576 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2577
2578 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
2579 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
2580 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
2581 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
2582 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
2583 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
2584 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
2585
2586 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
2587
2588 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
2589 use default set in mingw32.h header.
2590 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
2591 64-bit /mingw/include path.
2592 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
2593 path.
2594
2595 2009-07-23 Neil Vachharajani <nvachhar@google.com>
2596
2597 PR rtl-optimization/40209
2598 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
2599
2600 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
2601
2602 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
2603 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
2604 with the rest of string where appropriate. Use fputs or putc
2605 instead of fprintf where appropriate.
2606
2607 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2608 Pat Haugen <pthaugen@us.ibm.com>
2609 Revital Eres <ERES@il.ibm.com>
2610
2611 * config/rs6000/vector.md: New file. Move most of the vector
2612 expander support here from altivec.md to allow for the VSX vector
2613 unit in the future. Add support for secondary_reload patterns.
2614 Rewrite the patterns for vector comparison, and vector comparison
2615 predicate instructions so that the RTL expresses the desired
2616 behavior, instead of using unspec.
2617
2618 * config/rs6000/constraints.md ("f" constraint): Use
2619 rs6000_constraints to hold the precalculated register class.
2620 ("d" constraint): Ditto.
2621 ("wd" constraint): New constraint for VSX.
2622 ("wf" constraint): Ditto.
2623 ("ws" constraint): Ditto.
2624 ("wa" constraint): Ditto.
2625 ("wZ" constraint): Ditto.
2626 ("j" constraint): Ditto.
2627
2628 * config/rs6000/predicates.md (vsx_register_operand): New
2629 predicate for VSX.
2630 (vfloat_operand): New predicate for vector.md.
2631 (vint_operand): Ditto.
2632 (vlogical_operand): Ditto.
2633 (easy_fp_constant): If VSX, 0.0 is an easy constant.
2634 (easy_vector_constant): Add VSX support.
2635 (altivec_indexed_or_indirect_operand): New predicate for
2636 recognizing Altivec style memory references with AND -16.
2637
2638 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
2639 for vector secondary reload support.
2640 (rs6000_vector_reg_class): Delete, replacing it with
2641 rs6000_constraints.
2642 (rs6000_vsx_reg_class): Ditto.
2643 (rs6000_constraints): New array to hold the register classes of
2644 each of the register constraints that can vary at runtime.
2645 (builtin_mode_to_type): New static array for builtin function type
2646 creation.
2647 (builtin_hash_table): New static hash table for builtin function
2648 type creation.
2649 (TARGET_SECONDARY_RELOAD): Define target hook.
2650 (TARGET_IRA_COVER_CLASSES): Ditto.
2651 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
2652 registers are 128 bits if VSX memory reference instructions are used.
2653 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
2654 unit is being used.
2655 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
2656 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
2657 Print several of the scheduling related parameters.
2658 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
2659 rs6000_constraints instead of rs6000_vector_reg_class. Move
2660 -mdebug=reg code to rs6000_debug_reg_global. Add support for
2661 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
2662 Altivec. Add VSX support. Setup for secondary reload support on
2663 Altivec/VSX registers.
2664 (rs6000_override_options): Make power7 set the scheduling groups
2665 like the power5. Add support for new debug switches to override
2666 the scheduling defaults. Temporarily disable -mcpu=power7 from
2667 setting -mvsx. Add support for debug switches -malways-hint,
2668 -msched-groups, and -malign-branch-targets.
2669 (rs6000_buitlin_conversion): Add support for returning unsigned
2670 vector conversion functions to fix regressions due to stricter
2671 type checking.
2672 (rs6000_builtin_mul_widen_even): Ditto.
2673 (rs6000_builtin_mul_widen_odd): Ditto.
2674 (rs6000_builtin_vec_perm): Ditto.
2675 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
2676 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
2677 to zero a register.
2678 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
2679 generated upstream.
2680 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
2681 VSX types for bit operations. Changes to accomidate vector.md.
2682 (bdesc_2arg): Ditto.
2683 (bdesc_1arg): Ditto.
2684 (struct builtin_description_predicates): Rewrite predicate
2685 handling so that RTL describes the operation, instead of passing
2686 the instruction to be used as a string argument.
2687 (bdesc_altivec_preds): Ditto.
2688 (altivec_expand_predicate_builtin): Ditto.
2689 (altivec_expand_builtin): Ditto.
2690 (rs6000_expand_ternop_builtin): Use a switch instead of an if
2691 statement for vsldoi support.
2692 (altivec_expand_ld_builtin): Change to use new names from vector.md.
2693 (altivec_expand_st_builtin): Ditto.
2694 (paired_expand_builtin): Whitespace changes.
2695 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
2696 builtin_mode_to_type table for secondary reload. Call
2697 builtin_function_type to build random builtin functions.
2698 (altivec_init_builtins): Change to use builtin_function_type to
2699 create builtin function types dynamically as we need them.
2700 (builtin_hash_function): New support for hashing the tree types
2701 for builtin function as we need it, rather than trying to build
2702 all of the trees that we need. Add initial preliminary VSX support.
2703 (builtin_function_type): Ditto.
2704 (builtin_function_eq): Ditto.
2705 (builtin_hash_struct): Ditto.
2706 (rs6000_init_builtins): Ditto.
2707 (rs6000_common_init_builtins): Ditto.
2708 (altivec_init_builtins): Ditto.
2709 (rs6000_common_init_builtins): Ditto.
2710 (enum reload_reg_type): New enum for simplifing reg classes.
2711 (rs6000_reload_register_type): Simplify register classes into GPR,
2712 Vector, and other registers. Altivec and VSX addresses in reload.
2713 (rs6000_secondary_reload_inner): Ditto.
2714 (rs6000_ira_cover_classes): New target hook, that returns the
2715 appropriate cover classes, based on -mvsx being used or not.
2716 (rs6000_secondary_reload_class): Add VSX support.
2717 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
2718 (get_vsel_insn): Ditto.
2719 (rs6000_emit_vector_compare): Rewrite vector conditional support
2720 so that where we can, we use RTL operators, instead of blindly use
2721 UNSPEC.
2722 (rs6000_emit_vector_select): Ditto.
2723 (rs6000_emit_vector_cond_expr): Ditto.
2724 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
2725 (create_TOC_reference): Add -mdebug=addr support.
2726 (emit_frame_save): VSX loads/stores need register indexed addressing.
2727
2728 * config/rs6000/rs6000.md: Include vector.md.
2729
2730 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
2731
2732 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2733 support for V2DI, V2DF in logical, permute, select operations.
2734
2735 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
2736 switch for vsx/power7.
2737 (-mvsx-scalar-memory): Ditto.
2738 (-mvsx-align-128): Ditto.
2739 (-mallow-movmisalign): Ditto.
2740 (-mallow-df-permute): Ditto.
2741 (-msched-groups): Ditto.
2742 (-malways-hint): Ditto.
2743 (-malign-branch-targets): Ditto.
2744
2745 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
2746 hook instead.
2747 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
2748 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
2749 (rs6000_vector_reg_class): Delete.
2750 (rs6000_vsx_reg_class): Ditto.
2751 (enum rs6000_reg_class_enum): New enum for the constraints that
2752 vary based on target switches.
2753 (rs6000_constraints): New array to hold the register class for all
2754 of the register constraints that vary based on the switches used.
2755 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
2756 (enum rs6000_builtins): Add unsigned varients for the builtin
2757 declarations returned by target hooks for expanding multiplies,
2758 select, and permute operations. Add VSX builtins.
2759 (enum rs6000_builtin_type_index): Add entries for VSX.
2760 (V2DI_type_node): Ditto.
2761 (V2DF_type_node): Ditto.
2762 (unsigned_V2DI_type_node): Ditto.
2763 (bool_long_type_node): Ditto.
2764 (intDI_type_internal_node): Ditto.
2765 (uintDI_type_internal_node): Ditto.
2766 (double_type_internal_node): Ditto.
2767
2768 * config/rs6000/altivec.md (whole file): Move all expanders to
2769 vector.md from altivec.md. Rename insn matching functions to be
2770 altivec_foo.
2771 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
2772 (altivec_vcmp*): Ditto.
2773 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
2774 (VM): New iterator for moves that includes the VSX types.
2775 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
2776 (altivec_vperm_<mode>_uns): New, for unsigned types.
2777 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
2778 (altivec_eq<mode>): Ditto.
2779 (altivec_gt<mode>): Ditto.
2780 (altivec_gtu<mode>): Ditto.
2781 (altivec_eqv4sf): Ditto.
2782 (altivec_gev4sf): Ditto.
2783 (altivec_gtv4sf): Ditto.
2784 (altivec_vcmpbfp_p): Ditto.
2785
2786 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
2787
2788 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
2789 unsigned HWI.
2790
2791 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
2792
2793 PR target/40832
2794 * config/i386/i386.c (output_387_ffreep): Rewrite to use
2795 ASM_SHORT instead of .word.
2796 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
2797 instead of .word in asm template.
2798
2799 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
2800
2801 PR target/37488
2802 * ira-lives.c (bb_has_abnormal_call_pred): New function.
2803 (process_bb_node_lives): Use it.
2804
2805 * ira.c (setup_cover_and_important_classes): Don't setup
2806 ira_important_class_nums. Add cover classes to the end of
2807 important classes.
2808 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
2809 New.
2810 (find_reg_class_closure): Use reorder_important_classes.
2811
2812 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
2813
2814 * config/i386/i386.c (i386_ira_cover_classes): New function.
2815 (TARGET_IRA_COVER_CLASSES): Redefine.
2816
2817 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
2818 importance of order of cover classes in the array.
2819
2820 2009-07-22 Diego Novillo <dnovillo@google.com>
2821
2822 * tree-pass.h (TDF_EH): Define.
2823 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
2824 contains TDF_EH, print the EH region number holding GS.
2825 * tree-dump.c (dump_options): Add "eh".
2826 * doc/invoke.texi: Document it.
2827
2828 2009-07-22 Doug Kwan <dougkwan@google.com>
2829
2830 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
2831
2832 2009-07-22 Michael Matz <matz@suse.de>
2833
2834 PR tree-optimization/35229
2835 PR tree-optimization/39300
2836
2837 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
2838 (inhibit_phi_insertion): New function.
2839 (insert_into_preds_of_block): Call it for REFERENCEs.
2840 (init_pre): Initialize and finalize scalar evolutions.
2841 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
2842
2843 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
2844
2845 * config/i386/predicates.md (zero_extended_scalar_load_operand):
2846 Use CONST_VECTOR_NUNITS to determine number of elements.
2847
2848 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
2849
2850 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
2851 (U, W): Constraints are now deprecated and will be removed if we
2852 run out of letters.
2853 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
2854 the file.
2855 ("prefetch"): Add the stcmh instruction for prefetching.
2856 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
2857 changes.
2858 (s390_short_displacement): Return always true if compiling for
2859 machines not providing the long displacement facility.
2860 (s390_mem_constraint): Support the new constraint letter Z.
2861 (s390_check_qrst_address): New function.
2862
2863 2009-07-21 DJ Delorie <dj@redhat.com>
2864
2865 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
2866 alone too.
2867
2868 2009-07-21 Jason Merrill <jason@redhat.com>
2869
2870 * c-common.c (max_tinst_depth): Increase default to 1024.
2871
2872 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
2873
2874 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
2875 (vec_unpacku_float_lo_v4si): Ditto.
2876
2877 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
2878
2879 PR target/40811
2880 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
2881 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
2882 (builtin_description): Add __builtin_ia32_cvtudq2ps.
2883 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
2884
2885 2009-07-21 Jakub Jelinek <jakub@redhat.com>
2886
2887 PR tree-optimization/40813
2888 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
2889 it.
2890
2891 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
2892
2893 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
2894 with a NOP_EXPR if needed.
2895
2896 2009-07-21 Paul Brook <paul@codesourcery.com>
2897
2898 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
2899 Terminate debug dump with newline.
2900
2901 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2902
2903 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
2904 Cast "1" to unsigned HOST_WIDE_INT.
2905 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
2906 deposit length to the maximum length - lsb. Extend length if
2907 HOST_BITS_PER_WIDE_INT is 32.
2908
2909 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
2910
2911 * cgraph.h (constant_pool_htab): New function.
2912 (constant_descriptor_tree): Move from varasm.c.
2913 * varasm.c (constant_pool_htab): New function.
2914 (constant_descriptor_tree): Move to cgraph.h.
2915
2916 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
2917
2918 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
2919
2920 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
2921
2922 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
2923 $(VARRAY_H).
2924
2925 2009-07-20 Xinliang David Li <davidxl@google.com>
2926
2927 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
2928
2929 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
2930
2931 * config/mips/mips.md (move_type): Add arith.
2932 (type): Handle arith.
2933 (zero_extendsidi2): Rename this into ...
2934 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
2935 (zero_extendsidi2): New expander.
2936 (*zero_extendsidi2_dext): New pattern.
2937
2938 2009-07-20 Nick Clifton <nickc@redhat.com>
2939
2940 * config.gcc (mips64-*-*): Add definition of tm_defines in order
2941 to set MIPS_ABI_DEFAULT.
2942 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
2943
2944 2009-07-20 Jakub Jelinek <jakub@redhat.com>
2945
2946 * tree-object-size.c (addr_object_size): Handle unions with
2947 array in it as last field of structs in __bos (, 1) as __bos (, 0).
2948
2949 PR tree-optimization/40792
2950 * tree.c (build_function_type_skip_args): Remove bogus assert.
2951
2952 2009-07-20 Jan Hubicka <jh@suse.cz>
2953 Martin Jambor <mjambor@suse.cz>
2954
2955 * cgraph.h (combined_args_to_skip): New field.
2956 * cgraph.c (cgraph_create_virtual_clone): Properly handle
2957 combined_args_to_skip and args_to_skip.
2958 * tree-inline.c (update_clone_info): New function.
2959 (tree_function_versioning): Call update_clone_info.
2960 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
2961 functions.
2962 (cgraph_materialize_all_clones): More extensive dumping, working
2963 with combined_args_to_skip rather than args_to_skip.
2964
2965 2009-07-20 Ira Rosen <irar@il.ibm.com>
2966
2967 * tree-vectorizer.h (vectorizable_condition): Add parameters.
2968 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
2969 (get_initial_def_for_reduction): Likewise.
2970 (vectorizable_reduction): Skip the check of first operand in case
2971 of COND_EXPR. Add check that it is outer loop vectorization if
2972 nested cycle was detected. Call vectorizable_condition() for
2973 COND_EXPR. If reduction epilogue cannot be created do not fail for
2974 nested cycles (if it is not double reduction). Assert that there
2975 is only one type in the loop in case of COND_EXPR. Call
2976 vectorizable_condition() to vectorize COND_EXPR.
2977 * tree-vect-stmts.c (vectorizable_condition): Update comment.
2978 Add parameters. Allow nested cycles if called from
2979 vectorizable_reduction(). Use reduction vector variable if provided.
2980 (vect_analyze_stmt): Call vectorizable_reduction() before
2981 vectorizable_condition().
2982 (vect_transform_stmt): Update call to vectorizable_condition().
2983
2984 2009-07-20 Christian Bruel <christian.bruel@st.com>
2985
2986 * config/sh/sh.opt (-mfmovd): Resurrect and document.
2987 * doc/invoke.texi (-mfmovd): Likewise.
2988 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
2989
2990 2009-07-20 Jan Hubicka <jh@suse.cz>
2991
2992 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
2993 when handling SSA name.
2994
2995 2009-07-19 Jan Hubicka <jh@suse.cz>
2996
2997 PR tree-optimization/40676
2998 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
2999 virtual PHIs in empty BBs.
3000
3001 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
3002
3003 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
3004 re-expanded the compound use gen_lowpart instead to convert to the
3005 desired mode.
3006
3007 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
3008
3009 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
3010 OUTER_CONST arguments.
3011 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
3012 the new wider mode will be masked off.
3013 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
3014
3015 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
3016
3017 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
3018 high-order bits are zero.
3019
3020 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
3021
3022 * combine.c (simplify_shift_const_1): Split code to determine
3023 shift_mode into ...
3024 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
3025 new bits shifted in are identical to the old sign bit.
3026
3027 2009-07-18 Richard Guenther <rguenther@suse.de>
3028
3029 PR c/40787
3030 * gimplify.c (gimplify_call_expr): Reject code using results from
3031 functions returning void.
3032
3033 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
3034
3035 * doc/md.texi: Document the new PowerPC "es" constraint.
3036 Document that "m" can include automodified addresses on this target,
3037 and explain how %U must be used. Extend the "Q" and "Z" documentation
3038 to suggest "es" as well as "m".
3039 * config/rs6000/constraints.md (es): New memory constraint.
3040 (Q, Z): Update strings to match new documentation.
3041
3042 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
3043
3044 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
3045 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
3046 * config/rs6000/predicates.md (volatile_mem_operand): Use
3047 offsettable_nonstrict_memref_p.
3048 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
3049 (*floatunssidf2_internal): Likewise.
3050 (*fix_truncdfsi2_internal): Likewise.
3051 (*fix_trunctfsi2_internal): Likewise.
3052
3053 2009-07-17 Anatoly Sokolov <aesok@post.ru>
3054
3055 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
3056 atmega32u2 devices.
3057 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3058
3059 2009-07-17 Richard Guenther <rguenther@suse.de>
3060
3061 PR c/40401
3062 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
3063 (pass_warn_unused_result): Likewise.
3064 (TODO_set_props): Remove.
3065 * omp-low.c (diagnose_omp_structured_block_errors): Change to
3066 run as a pass.
3067 (pass_diagnose_omp_blocks): Define.
3068 * c-decl.c (pop_file_scope): Do not finalize the CU here.
3069 (c_gimple_diagnostics_recursively): Remove.
3070 (finish_function): Do not call it.
3071 (c_write_global_declarations): Continue after errors.
3072 Finalize the CU here.
3073 * c-gimplify.c (c_genericize): Do not gimplify here.
3074 * c-common.c (c_warn_unused_result): Move ...
3075 * tree-cfg.c (do_warn_unused_result): ... here.
3076 (run_warn_unused_result): New function.
3077 (gate_warn_unused_result): New function.
3078 (pass_warn_unused_result): New pass.
3079 * c-common.h (c_warn_unused_result): Remove.
3080 * flags.h (flag_warn_unused_result): Declare.
3081 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
3082 * opts.c (flag_warn_unused_result): Initialize to false.
3083 * toplev.c (compile_file): Add comment.
3084 * omp-low.c (create_omp_child_function): Do not register
3085 the function with the frontend.
3086 (diagnose_omp_structured_block_errors): Prepare to be
3087 called as optimization pass.
3088 (gate_diagnose_omp_blocks): New function.
3089 (pass_diagnose_omp_blocks): New pass.
3090 * cgraph.h (cgraph_optimize): Remove.
3091 (cgraph_analyze_function): Likewise.
3092 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
3093 * cgraphunit.c (cgraph_lower_function): Lower nested functions
3094 before their parents here.
3095 (cgraph_finalize_function): Not here.
3096 (cgraph_analyze_function): Gimplify functions here.
3097 (cgraph_finalize_compilation_unit): Continue after errors.
3098 Optimize the callgraph from here.
3099 (cgraph_optimize): Make static.
3100 * langhooks.c (write_global_declarations): Finalize the CU.
3101 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
3102 (gimplify_function_tree): Assert we gimplify only once.
3103 Set PROP_gimple_any property.
3104 * tree-nested.c (gimplify_all_functions): New function.
3105 (lower_nested_functions): Gimplify all nested functions.
3106 * gimple.h (diagnose_omp_structured_block_errors): Remove.
3107 * passes.c (init_optimization_passes): Add pass_warn_unused_result
3108 and pass_diagnose_omp_blocks after gimplification. Do not
3109 set TODO_set_props on all_lowering_passes.
3110 (execute_one_pass): Do not handle TODO_set_props.
3111 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
3112 (gimplify.o): Add tree-pass.h dependency.
3113 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
3114 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
3115 (unsave_r): Likewise.
3116 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
3117 temporary variable.
3118
3119 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
3120
3121 * doc/service.texi (Service): Restore previously removed link,
3122 which isn't broken after all.
3123
3124 2009-07-17 Richard Guenther <rguenther@suse.de>
3125
3126 PR tree-optimization/40321
3127 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
3128 PHI nodes to the maximal set.
3129 (make_values_for_phi): Add PHI arguments to the maximal set.
3130 (execute_pre): Dump PHI_GEN and the maximal set.
3131
3132 2009-07-17 Jakub Jelinek <jakub@redhat.com>
3133
3134 PR c++/40780
3135 * gimplify.c (gimplify_conversion): Don't change non-conversions into
3136 VIEW_CONVERT_EXPR.
3137
3138 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
3139
3140 * doc/extend.texi (Nested Functions): Replace broken link with
3141 textual reference.
3142 * doc/service.texi (Service): Remove broken link.
3143
3144 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
3145
3146 PR bootstrap/40781
3147 * builtins.c (expand_builtin_memcmp): Use loc instead of
3148 EXPR_LOCATION (exp).
3149 (expand_builtin_strncmp): Likewise.
3150
3151 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
3152 Manuel López-Ibáñez <manu@gcc.gnu.org>
3153
3154 PR 40435
3155 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
3156 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
3157 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
3158 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
3159 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
3160 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
3161 tree-inline.c, c-common.c, c-common.h, gimple.c,
3162 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
3163 convert.c: Add location argument to fold_{unary,binary,ternary},
3164 fold_build[123], build_call_expr, build_size_arg,
3165 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
3166 fold_build1_initializer, fold_build2_initializer,
3167 fold_build3_initializer, fold_build_call_array,
3168 fold_build_call_array_initializer, fold_single_bit_test,
3169 omit_one_operand, omit_two_operands, invert_truthvalue,
3170 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
3171 combine_comparisons, fold_builtin_*, fold_call_expr,
3172 build_range_check, maybe_fold_offset_to_address, round_up,
3173 round_down.
3174
3175 2009-07-16 Jason Merrill <jason@redhat.com>
3176
3177 PR libstdc++/37907
3178 * c-common.c (c_common_reswords): Add __is_standard_layout
3179 and __is_trivial.
3180 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
3181 * doc/implement-cxx.texi: New.
3182 * doc/gcc.texi: Include it.
3183
3184 2009-07-16 DJ Delorie <dj@redhat.com>
3185
3186 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
3187 compares that may be indirectly affected by previous instructions.
3188
3189 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3190
3191 * builtins.c (do_mpc_arg2): New.
3192 (fold_builtin_2): Fold builtin cpow.
3193 * real.h (HAVE_mpc_pow): New.
3194
3195 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
3196
3197 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
3198 comparison to skip unprofitable schedule
3199
3200 2009-07-16 Simon Baldwin <simonb@google.com>
3201
3202 * gcc.c (option_map): New flag -no-canonical-prefixes.
3203 * (display_help): Print help text for new flag.
3204 * (process_command): Move options translation and language specifics
3205 and handle new flag early. Use it to set a function pointer to a
3206 prefix builder. Replace make_relative_prefix calls with calls to
3207 the function pointed to. Ignore new flag in regular options handling.
3208 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
3209
3210 2009-07-15 DJ Delorie <dj@redhat.com>
3211
3212 * config/mep/mep.md (sibcall_internal): Change register to avoid
3213 argument registers.
3214 (sibcall_value_internal): Likewise.
3215
3216 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
3217
3218 PR rtl-optimization/40710
3219 * resource.c (mark_target_live_regs): Reset DF problem to LR.
3220
3221 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
3222
3223 * config/mips/mips.md (*extenddi_truncate<mode>,
3224 *extendsi_truncate<mode>): Change type attribute to move_type
3225 with shift_shift. Split out code handling exts from here ...
3226 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
3227 pattern.
3228 (*extendhi_truncateqi): Change type attribute to move_type with
3229 shift_shift. Split out code handling exts from here ...
3230 (*extendhi_truncateqi_exts): ... to this new pattern.
3231
3232 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
3233
3234 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
3235 instead of "and" with inverted sign bit mask value. Use
3236 "nonimmediate_operand" for operand 1 and operand 2 predicate.
3237 Allocate registers only for operand 4 and operand 5.
3238
3239 2009-07-15 Jakub Jelinek <jakub@redhat.com>
3240
3241 PR middle-end/40747
3242 * fold-const.c (fold_cond_expr_with_comparison): When folding
3243 < and <= to MIN, make sure the MIN uses the same type as the
3244 comparison's operands.
3245
3246 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
3247
3248 * arm.md (ior_xor): New code iterator.
3249 (split for ior/xor with shift and zero-extend): New split pattern.
3250 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
3251
3252 2009-07-15 Richard Guenther <rguenther@suse.de>
3253
3254 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
3255 offset member.
3256
3257 2009-07-15 Richard Guenther <rguenther@suse.de>
3258
3259 PR middle-end/40753
3260 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
3261
3262 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3263
3264 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
3265 handle 2.6.30 kernel.
3266
3267 2009-07-15 DJ Delorie <dj@redhat.com>
3268
3269 * config/mep/mep.md (sibcall_internal): Change register to allow
3270 for 24-bit addresses.
3271 (sibcall_value_internal): Likewise.
3272
3273 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
3274
3275 * doc/invoke.texi: Added descriptions of the scheduling heuristics
3276 that are enabled/disabled by the flags introduced by a previous patch.
3277
3278 2009-07-14 DJ Delorie <dj@redhat.com>
3279
3280 * config/mep/mep.md (sibcall_internal): Include non-toggling
3281 non-jmp case.
3282 (sibcall_value_internal): Likewise.
3283
3284 2009-07-14 Taras Glek <tglek@mozilla.com>
3285 Rafael Espindola <espindola@google.com>
3286
3287 * doc/sourcebuild.texi: Document install-plugin target.
3288 * configure.ac: Added install-plugin target to language makefiles.
3289 * configure: Regenerate.
3290 * Makefile.in: (install-plugin): Install more headers,
3291 depend on lang.install-plugin.
3292
3293 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3294
3295 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
3296 translation.
3297
3298 2009-07-14 DJ Delorie <dj@redhat.com>
3299
3300 * config/mep/mep.c (mep_vliw_jmp_match): New function.
3301 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
3302 * config/mep/mep.md (sibcall_internal): Change test from
3303 mep_vliw_mode_match to mep_vliw_jmp_match.
3304 (sibcall_value_internal): Likewise.
3305
3306 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
3307
3308 * config/i386/sse.md (copysign<mode>3): New expander.
3309 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
3310 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
3311 Use ix86_build_const_vector.
3312 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
3313 IX86_BUILTIN_CPYSGNPD.
3314 (builtin_description): Add __builtin_ia32_copysignps and
3315 __builtin_ia32_copysignpd.
3316 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
3317 and BUILT_IN_COPYSIGNF.
3318
3319 2009-07-13 Jason Merrill <jason@redhat.com>
3320
3321 * builtins.c (can_trust_pointer_alignment): New fn.
3322 (get_pointer_alignment): Factor it out from here.
3323 * tree.h: Declare it.
3324
3325 2009-07-14 David Edelsohn <edelsohn@gnu.org>
3326
3327 * config/rs6000/predicates.md (offsettable_mem_operand): Test
3328 RTX_AUTOINC class.
3329
3330 2009-07-14 Dodji Seketeli <dodji@redhat.com>
3331
3332 PR debug/40705
3333 PR c++/403057
3334 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
3335
3336 2009-07-14 Richard Guenther <rguenther@suse.de>
3337 Andrey Belevantsev <abel@ispras.ru>
3338
3339 PR middle-end/40745
3340 * cfgexpand.c (partition_stack_vars): Do not bother to update
3341 alias information when not optimizing.
3342
3343 2009-07-14 Richard Guenther <rguenther@suse.de>
3344 Andrey Belevantsev <abel@ispras.ru>
3345
3346 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
3347 (pt_solution_set): Likewise.
3348 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
3349 * tree-ssa-structalias.c (pt_solution_set): New function.
3350 * final.c (rest_of_clean_state): Free SSA data structures.
3351 * print-rtl.c (print_decl_name): Remove.
3352 (print_mem_expr): Implement in terms of print_generic_expr.
3353 * alias.c (ao_ref_from_mem): New function.
3354 (rtx_refs_may_alias_p): Likewise.
3355 (true_dependence): Query alias-export info.
3356 (canon_true_dependence): Likewise.
3357 (write_dependence_p): Likewise.
3358 * tree-dfa.c (get_ref_base_and_extent): For void types leave
3359 size unknown.
3360 * emit-rtl.c (component_ref_for_mem_expr): Remove.
3361 (mem_expr_equal_p): Use operand_equal_p.
3362 (set_mem_attributes_minus_bitpos): Do not use
3363 component_ref_for_mem_expr.
3364 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
3365 (update_alias_info_with_stack_vars): Likewise.
3366 (partition_stack_vars): Call update_alias_info_with_stack_vars.
3367 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
3368 explicitly nor clear stmt operands.
3369 Free the decl-to-pointer map.
3370 * tree-optimize.c (execute_free_datastructures): Do not free
3371 SSA data structures here.
3372 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
3373 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
3374 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
3375 dependencies.
3376 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
3377
3378 2009-07-13 DJ Delorie <dj@redhat.com>
3379
3380 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
3381 unrolling at the right iteration count.
3382
3383 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
3384 calculations.
3385
3386 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
3387
3388 * haifa-sched.c (rank_for_schedule): Introduced flags to
3389 enable/disable individual scheduling heuristics.
3390 * common.opt: Introduced flags to enable/disable individual
3391 heuristics in the scheduler.
3392 * doc/invoke.texi: Introduced flags to enable/disable individual
3393 heuristics in the scheduler.
3394
3395 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
3396
3397 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
3398 config/i386/mingw-tls.c.
3399 * config/i386/mingw-tls.c: Removed.
3400
3401 2009-07-13 Ira Rosen <irar@il.ibm.com>
3402
3403 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
3404 checks access only relevant statements.
3405 (vectorizable_reduction): Likewise.
3406
3407 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
3408
3409 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
3410 just for 32-bit case.
3411
3412 2009-07-12 Jan Hubicka <jh@suse.cz>
3413
3414 PR tree-optimization/40585
3415 * except.c (expand_resx_expr): When there already is resume
3416 instruction, produce linked list.
3417 (build_post_landing_pads): Assert that resume is empty.
3418 (connect_post_landing_pads): Handle resume lists.
3419 (dump_eh_tree): Dump resume list.
3420
3421 2009-07-12 Ira Rosen <irar@il.ibm.com>
3422
3423 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
3424 with additional argument.
3425 * tree-vectorizer.h (enum vect_def_type): Add
3426 vect_double_reduction_def.
3427 (vect_is_simple_reduction): Add argument.
3428 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
3429 indentation.
3430 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
3431 vect_is_simple_reduction with additional argument.
3432 (vect_analyze_loop_operations): Handle exit phi nodes in case of
3433 double reduction.
3434 (reduction_code_for_scalar_code): Handle additional codes by
3435 returning ERROR_MARK for them. Fix comment and indentation.
3436 (vect_is_simple_reduction): Fix comment, add argument to specify
3437 double reduction. Detect double reduction.
3438 (get_initial_def_for_induction): Fix indentation.
3439 (get_initial_def_for_reduction): Fix comment and indentation.
3440 Handle double reduction. Create initial definitions that do not
3441 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
3442 (vect_create_epilog_for_reduction): Fix comment, add argument to
3443 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
3444 epilogue result extraction. Create double reduction phi node and
3445 replace relevant uses.
3446 (vectorizable_reduction): Call vect_is_simple_reduction with
3447 additional argument. Fix indentation. Update epilogue code treatment
3448 according to the changes in reduction_code_for_scalar_code. Check
3449 for double reduction. Call vect_create_epilog_for_reduction with
3450 additional argument.
3451 * tree-vect-stmts.c (process_use): Handle double reduction, update
3452 documentation.
3453 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
3454 (vect_get_vec_def_for_operand): Likewise.
3455
3456 2009-07-12 Danny Smith <dansmister@gmail.com>
3457
3458 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
3459 dllexport if !TREE_PUBLIC.
3460 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
3461
3462 2009-07-11 Anatoly Sokolov <aesok@post.ru>
3463
3464 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
3465 (avr_extra_arch_macro) Remove declatation.
3466 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
3467 (avr_extra_arch_macro) Declare as static.
3468 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
3469
3470 2009-07-11 Jan Hubicka <jh@suse.cz>
3471
3472 PR middle-end/48388
3473 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
3474
3475 2009-07-11 Jakub Jelinek <jakub@redhat.com>
3476
3477 PR debug/40713
3478 * dwarf2out.c (dw_fde_struct): Add in_std_section and
3479 cold_in_std_section bits.
3480 (dwarf2out_begin_prologue): Initialize them.
3481 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
3482 if already covered by text_section or cold_text_section range.
3483
3484 PR rtl-optimization/40667
3485 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
3486 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
3487 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
3488 * config/i386/i386.c (ix86_minimum_alignment): New function.
3489 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
3490 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
3491 * emit-rtl.c (gen_reg_rtx): Likewise.
3492 * function.c (assign_parms): Likewise. If nominal_type needs
3493 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
3494 rather than passed_type's alignment.
3495
3496 PR target/40668
3497 * function.c (assign_parm_setup_stack): Adjust
3498 MEM_OFFSET (data->stack_parm) if promoted_mode is different
3499 from nominal_mode on big endian.
3500
3501 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
3502
3503 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
3504
3505 2009-07-10 DJ Delorie <dj@redhat.com>
3506
3507 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
3508
3509 2009-07-10 Mark Mitchell <mark@codesourcery.com>
3510
3511 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
3512 attribute.
3513 (thumb2_cbnz): Likewise.
3514
3515 2009-07-10 David Daney <ddaney@caviumnetworks.com>
3516
3517 PR target/39079
3518 * config.gcc (supported_defaults): Add synci.
3519 (with_synci): Add validation.
3520 (all_defaults): Add synci.
3521 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
3522 ISA_HAS_SYNCI.
3523 (synci): Same.
3524 * config/mips/mips.opt (msynci): New option.
3525 * config/mips/mips.c (mips_override_options): Warn on use of
3526 -msynci for targets that do now support it.
3527 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
3528 msynci.
3529 * gcc/doc/invoke.texi (-msynci): Document the new option.
3530 * doc/install.texi (--with-synci): Document the new option.
3531
3532 2009-07-10 Richard Guenther <rguenther@suse.de>
3533
3534 PR tree-optimization/40496
3535 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
3536 the PHI result with a compatible type.
3537
3538 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3539
3540 PR 25509
3541 PR 40614
3542 * c.opt (Wunused-result): New.
3543 * doc/invoke.texi: Document it.
3544 * c-common.c (c_warn_unused_result): Use it.
3545
3546 2009-07-09 DJ Delorie <dj@redhat.com>
3547
3548 * targhooks.c (default_target_can_inline_p): Rename from
3549 default_target_option_can_inline_p.
3550 * targhooks.h (default_target_can_inline_p): Likewise.
3551 * target-def.h (TARGET_CAN_INLINE_P): Rename from
3552 TARGET_OPTION_CAN_INLINE_P.
3553 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
3554 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
3555 (mep_target_can_inline_p): Rename from
3556 mep_target_option_can_inline_p.
3557
3558 PR target/40626
3559 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
3560 registers used to pass vectors.
3561
3562 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
3563
3564 2009-07-09 Tom Tromey <tromey@redhat.com>
3565
3566 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
3567 * config/mmix/mmix.c: Include dwarf2.h.
3568 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
3569 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
3570 * config/sh/sh.c: Include dwarf2.h.
3571 * config/i386/i386.c: Include dwarf2.h.
3572 * Makefile.in (DWARF2_H): Remove 'elf'.
3573 * except.c: Include dwarf2.h.
3574 * unwind-dw2.c: Include dwarf2.h.
3575 * dwarf2out.c: Include dwarf2.h.
3576 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
3577 * unwind-dw2-fde.c: Include dwarf2.h.
3578 * dwarf2asm.c: Include dwarf2.h.
3579
3580 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
3581
3582 * haifa-sched.c (insn_finishes_cycle_p): New static function.
3583 (max_issue): Use it.
3584 * sched-int.h (struct sched_info: insn_finishes_block_p): New
3585 scheduler hook.
3586 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
3587 (region_sched_info): Update.
3588 * sched-ebb.c (ebb_sched_info): Update.
3589 * modulo-sched.c (sms_sched_info): Update.
3590 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
3591
3592 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
3593
3594 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
3595
3596 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
3597
3598 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
3599
3600 2009-07-09 Jakub Jelinek <jakub@redhat.com>
3601
3602 PR middle-end/40692
3603 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
3604 arg1 with arg01 if arg1 is already INTEGER_CST.
3605
3606 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
3607
3608 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
3609 Transform (and (truncate)) into (truncate (and)).
3610
3611 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
3612
3613 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
3614 creating LHS paradoxical subregs. Fix surrounding returns to
3615 use NULL_RTX rather than 0.
3616
3617 2009-07-08 DJ Delorie <dj@redhat.com>
3618
3619 * config/mep/mep.c: (mep_option_can_inline_p): New.
3620 (TARGET_OPTION_CAN_INLINE_P): Define.
3621
3622 2009-07-08 Mark Wielaard <mjw@redhat.com>
3623
3624 PR debug/40659
3625 * dwarf2out.c (add_data_member_location_attribute): When we have
3626 only a constant offset don't emit a new location description using
3627 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
3628 dwarf_version > 2.
3629
3630 2009-07-08 Richard Henderson <rth@redhat.com>
3631
3632 PR target/38900
3633 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
3634 (enum reg_class): Add CLOBBERED_REGS.
3635 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3636 * config/i386/i386.c (ix86_conditional_register_usage): Moved
3637 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
3638 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
3639 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
3640 force 64-bit sibcalls into R11.
3641 * config/i386/constraints.md (U): New constraint.
3642 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
3643 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
3644 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
3645
3646 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
3647
3648 * basic-block.h (dump_regset, debug_regset): Remove duplicate
3649 prototypes.
3650 * c-objc-common.h (c_initialize_diagnostics): Ditto.
3651 * ebitmap.h (dump_ebitmap): Ditto.
3652 * optabs.h (optab_libfunc): Ditto.
3653 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
3654 * tree-flow.h (vect_can_force_dr_alignment_p,
3655 get_vectype_for_scalar_type): Ditto.
3656 (vectorize_loops): Move prototype to ...
3657 * tree-vectorizer.h: ... here. Also, adjust comment.
3658 (vect_set_verbosity_level): Remove duplicate prototype.
3659 * tree-ssa-loop.c: Include tree-vectorizer.h.
3660 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
3661
3662 2009-07-08 Nick Clifton <nickc@redhat.com>
3663
3664 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
3665 forward slash.
3666
3667 2009-07-08 DJ Delorie <dj@redhat.com>
3668
3669 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
3670 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
3671 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
3672 written to.
3673 * config/mep/intrinsics.md: Regenerated.
3674 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
3675 registers when asm() or calls are detected.
3676
3677 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3678
3679 PR c++/31246
3680 * gimplify.c (gimplify_expr): Propagate no_warning flag when
3681 gimplifying.
3682 * gimple (gimple_build_call_from_tree): Likewise.
3683 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
3684 no_warning flag before warning.
3685
3686 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3687
3688 * tree.c (set_expr_locus): Remove.
3689 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
3690 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
3691 EXPR_LOCATION.
3692 * gimplify.c (internal_get_tmp_var): Likewise.
3693 (gimplify_call_expr): Likewise.
3694 (gimplify_one_sizepos): Likewise.
3695
3696 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
3697
3698 PR debug/40666
3699 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
3700 to variables for debugging purposes.
3701
3702 2009-06-23 Mark Loeser <mark@halcy0n.com>
3703
3704 PR build/40010
3705 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
3706
3707 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3708
3709 * pretty-print.c (pp_base_format): Remove %J.
3710 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3711 gcc_cxxdiag_char_table): Likewise.
3712 (init_dynamic_diag_info): Likewise.
3713
3714 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3715
3716 * pretty-print.c (pp_base_format): Remove %H.
3717 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3718 gcc_cxxdiag_char_table): Likewise.
3719 (init_dynamic_diag_info): Likewise.
3720 * config/mep/mep.c (mep_select_section): Likewise.
3721
3722 2009-07-07 Duncan Sands <baldrick@free.fr>
3723
3724 * final.c (pass_clean_state): Give the pass a name.
3725 * passes.c (pass_rest_of_compilation): Likewise.
3726 * tree-optimize.c (pass_all_optimizations): Likewise.
3727
3728 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
3729
3730 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
3731 an extra 'decl' for error_at.
3732
3733 2009-07-07 Jakub Jelinek <jakub@redhat.com>
3734
3735 PR middle-end/40669
3736 * tree-tailcall.c (adjust_return_value_with_ops,
3737 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
3738 if it has complex or vector type.
3739
3740 2009-07-07 Olivier Hainque <hainque@adacore.com>
3741
3742 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
3743 pthread symbols.
3744
3745 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
3746
3747 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
3748
3749 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3750
3751 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
3752 * c-decl.c: Likewise.
3753 * function.c: Likewise.
3754 * varasm.c: Likewise.
3755 * tree-ssa.c: Likewise.
3756 * c-common.c: Likewise.
3757 * tree-cfg.c: Likewise.
3758 * config/spu/spu.c: Likewise.
3759 * config/ia64/ia64.c: Likewise.
3760 * config/v850/v850.c: Likewise.
3761
3762 2009-07-06 DJ Delorie <dj@redhat.com>
3763
3764 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
3765 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
3766 unspecified accesses to control registers.
3767 * config/mep/intrinsics.md: Regenerate.
3768 * config/mep/intrinsics.h: Regenerate.
3769 * config/mep/mep-intrin.h: Regenerate.
3770
3771 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3772
3773 * c-lex.c: Replace %H by an explicit location. Update all calls.
3774 * c-common.c: Likewise.
3775 * c-decl.c: Likewise.
3776 * c-typeck.c: Likewise.
3777 * fold-const.c: Likewise.
3778 * gimplify.c: Likewise.
3779 * stmt.c: Likewise.
3780 * tree-cfg.c: Likewise.
3781 * tree-ssa-loop-niter.c: Likewise.
3782 * tree-vrp.c: Likewise.
3783 * value-prof.c: Likewise.
3784
3785 2009-07-06 Diego Novillo <dnovillo@google.com>
3786
3787 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
3788 if it has one. Handle cases where VAR does not have an
3789 annotation or cfun is NULL.
3790
3791 2009-07-06 Diego Novillo <dnovillo@google.com>
3792
3793 * tree.c: Include debug.h.
3794 (initialize_tree_contains_struct): New.
3795 (init_ttree): Call it.
3796 (tree_node_structure_for_code): Factor out of ...
3797 (tree_node_structure): ... here.
3798 * treestruct.def (TS_PHI_NODE): Remove.
3799 (TS_GIMPLE_STATEMENT): Remove.
3800
3801 2009-07-06 Diego Novillo <dnovillo@google.com>
3802
3803 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
3804 (debug_tree_chain): Handle cycles.
3805
3806 2009-07-06 Nick Clifton <nickc@redhat.com>
3807 DJ Delorie <dj@redhat.com>
3808
3809 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
3810 __FMOVD_ENABLED__ is defined.
3811 * config/sh/sh.h
3812 (TARGET_FMOVD): Provide a default definition.
3813 (MASK_FMOVD): Likewise.
3814 (TARGET_CPU_CPP_BUILTINS): Define
3815 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
3816 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
3817 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
3818 (split for DF load from memory into register): Also handle
3819 MEMs which consist of REG+DISP addressing.
3820 (split for DF store from register to memory): Likewise.
3821 (movsf_ie): Always use single fp_mode.
3822 * config/sh/sh.c (sh_override_options): Do not automatically
3823 enable TARGET_MOVD for the SH2A when supporting doubles - leave
3824 that to the -mfmovd command line switch.
3825 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
3826 (fldi_ok): Always allow.
3827 * config/sh/sh.opt (mfmovd): Remove this switch.
3828 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
3829
3830 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
3831 Kaz Kojima <kkojima@gcc.gnu.org>
3832
3833 PR rtl-optimization/30807
3834 * postreload.c (reload_combine): For every new use of REG_SUM,
3835 record the use of BASE.
3836
3837 2009-07-06 Jan Hubicka <jh@suse.cz>
3838
3839 * params.def: Revert my accidental commit at 2009-06-30.
3840
3841 2009-07-04 Ian Lance Taylor <iant@google.com>
3842
3843 PR target/40636
3844 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
3845 EXPORTED_CONST.
3846 (mingw_format_attribute_overrides): Likewise.
3847
3848 2009-07-04 Jakub Jelinek <jakub@redhat.com>
3849
3850 PR debug/40596
3851 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
3852 don't check cfa.reg. Instead of cfa.indirect use
3853 fde && fde->drap_reg != INVALID_REGNUM test.
3854
3855 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
3856
3857 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
3858
3859 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
3860
3861 PR target/40587
3862 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
3863
3864 2009-07-03 Richard Guenther <rguenther@suse.de>
3865
3866 PR tree-optimization/40640
3867 * tree-switch-conversion.c (build_arrays): Perform arithmetic
3868 in original type.
3869
3870 2009-07-03 Jan Hubicka <jh@suse.cz>
3871
3872 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
3873 for size, reduce amount of inlining.
3874
3875 2009-07-03 Richard Guenther <rguenther@suse.de>
3876
3877 PR middle-end/34163
3878 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
3879 if t +- x is known to not overflow and the conversion widens the
3880 operation.
3881 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
3882
3883 2009-07-03 Jan Hubicka <jh@suse.cz>
3884
3885 * ipa-pure-const.c (analyze): Update loop optimizer init.
3886 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
3887 try_remove_empty_loop, remove_empty_loops): Remove.
3888 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
3889 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
3890 to mark regular loops as neccesary.
3891 (degenerate_phi_p): New function.
3892 (propagate_necessity, remove_dead_phis): Use it.
3893 (forward_edge_to_pdom): Likewise.
3894 (eliminate_unnecessary_stmts): Take care to remove uses of results of
3895 virtual PHI nodes that became unreachable.
3896 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
3897 * tree-flow.h (remove_empty_loops): Remove.
3898 * passes.c (init_optimization_passes): Remove.
3899
3900 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
3901
3902 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
3903 can_create_pseudo_p.
3904 (*fix_trunc<mode>_i387_1): Ditto.
3905 (*floathi<mode>2_1): Ditto.
3906 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
3907 (*fistdi2_1): Ditto.
3908 (*fist<mode>2_1): Ditto.
3909 (frndintxf2_floor): Ditto.
3910 (*fist<mode>2_floor_1): Ditto.
3911 (frndintxf2_ceil): Ditto.
3912 (*fist<mode>2_ceil_1): Ditto.
3913 (frndintxf2_trunc): Ditto.
3914 (frndintxf2_mask_pm): Ditto.
3915 (fxam<mode>2_i387_with_temp): Ditto.
3916 * config/i386/sse.md (mulv16qi3): Ditto.
3917 (*sse2_mulv4si3): Ditto.
3918 (mulv2di3): Ditto.
3919 (sse4_2_pcmpestr): Ditto.
3920 (sse4_2_pcmpistr): Ditto.
3921
3922 2009-07-03 Jan Hubicka <jh@suse.cz>
3923
3924 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
3925 (mark_stmt_necessary): Set it.
3926 (mark_operand_necessary): Set it.
3927 (mark_control_dependent_edges_necessary): Set it.
3928 (mark_virtual_phi_result_for_renaming): New function.
3929 (get_live_post_dom): New function.
3930 (forward_edge_to_pdom): New function.
3931 (remove_dead_stmt): Fix handling of control dependences.
3932 (tree_dce_init): Init new bitmap.
3933 (tree_dce_done): Free it.
3934
3935 2009-07-02 Richard Guenther <rguenther@suse.de>
3936
3937 PR bootstrap/40617
3938 * tree-ssa-structalias.c (new_var_info): Initialize
3939 is_restrict_var.
3940
3941 2009-07-02 Jan Hubicka <jh@suse.cz>
3942
3943 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
3944 local.
3945
3946 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
3947
3948 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
3949 instead of recomputing it. Adjust calls.
3950 (emit_store_flag): Adjust recursive calls.
3951
3952 2009-07-02 Richard Guenther <rguenther@suse.de>
3953
3954 * tree-ssa-live.c (remove_unused_locals): Do not remove
3955 heap variables.
3956 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
3957 of DECL_EXTERNAL for HEAP variables.
3958 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
3959 HEAP variables. Do not adjust RESTRICT vars.
3960 (find_what_var_points_to): Nobody cares if something
3961 points to READONLY.
3962
3963 2009-07-02 Ben Elliston <bje@au.ibm.com>
3964
3965 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
3966 pc_low and pc_high declarations to the top of the function.
3967
3968 2009-07-01 DJ Delorie <dj@redhat.com>
3969
3970 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
3971 registers as fixed.
3972 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
3973 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
3974 unspecified accesses to control registers.
3975 * config/mep/intrinsics.md: Regenerate.
3976 * config/mep/intrinsics.h: Regenerate.
3977 * config/mep/mep-intrin.h: Regenerate.
3978
3979 2009-07-01 Anthony Green <green@moxielogic.com>
3980
3981 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3982 instruction when possible.
3983 (moxie_expand_prologue): Ditto. Also, save an instruction and
3984 some complexity by popping off of $r12 instead of $sp.
3985 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
3986 operands.
3987
3988 2009-07-01 Richard Henderson <rth@redhat.com>
3989
3990 PR bootstrap/40347
3991 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
3992 contained no insns, reposition note before last insn.
3993
3994 2009-07-01 Richard Henderson <rth@redhat.com>
3995
3996 PR debug/40431
3997 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
3998 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
3999
4000 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
4001
4002 PR bootstrap/40558
4003 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
4004 darwin9 for printing reg addresses with %y.
4005
4006 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
4007
4008 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
4009 truncation from operands in binary operations.
4010
4011 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
4012
4013 Revert:
4014 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
4015 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
4016 subreg of op0 to the original op0.
4017
4018 * expmed.c (store_bit_field_1): Use a temporary as the destination
4019 instead of a paradoxical subreg when we need to truncate the result.
4020
4021 2009-07-01 DJ Delorie <dj@redhat.com>
4022
4023 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
4024 names to VLIW variants.
4025 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
4026 * config/mep/intrinsics.md: Regenerate.
4027 * config/mep/intrinsics.h: Regenerate.
4028 * config/mep/mep-intrin.h: Regenerate.
4029
4030 2009-07-01 Jakub Jelinek <jakub@redhat.com>
4031
4032 PR debug/40462
4033 * jump.c (returnjump_p): Revert last patch.
4034 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
4035
4036 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4037
4038 PR target/40575
4039 * pa.md (casesi32p): Use jump table label to determine the offset
4040 of the jump table.
4041 (casesi64p): Likewise.
4042
4043 * pa.c (forward_branch_p): Return bool type. Use instruction
4044 addresses when available. Assert that INSN has a jump label.
4045 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
4046 have a jump label.
4047
4048 2009-07-01 Richard Guenther <rguenther@suse.de>
4049
4050 PR tree-optimization/19831
4051 * tree-ssa-dce.c (propagate_necessity): Calls to functions
4052 that only act as barriers do not make any previous stores necessary.
4053 * tree-ssa-structalias.c (handle_lhs_call): Delay making
4054 HEAP variables global, do not add a constraint from nonlocal.
4055 (find_func_aliases): Handle escapes through return statements.
4056 (compute_points_to_sets): Make escaped HEAP variables global.
4057
4058 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
4059
4060 PR bootstrap/40597
4061 * expmed.c (emit_store_flag): Perform a conversion if necessary,
4062 after reducing a DImode cstore to SImode.
4063
4064 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
4065
4066 * expr.c (expand_expr_real_1): Reinstate fallthrough to
4067 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
4068
4069 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
4070
4071 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
4072 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
4073 to 0.
4074 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
4075 and umod_optab if TARGET_BSD_DIVMOD.
4076 * config/vax/lib1funcs.asm: New file.
4077 * config/vax/t-linux: New file.
4078 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
4079
4080 2009-06-30 Jakub Jelinek <jakub@redhat.com>
4081
4082 PR c++/40566
4083 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
4084 to type arguments that have void type.
4085
4086 PR debug/40573
4087 * dwarf2out.c (gen_formal_parameter_die): Call
4088 equate_decl_number_to_die if node is different from origin.
4089
4090 2009-06-30 Anthony Green <green@moxielogic.com>
4091
4092 Clean up moxie port for --enable-build-with-cxx.
4093 * config/moxie/moxie.c (moxie_function_value): First two
4094 parameters are const_tree, not tree.
4095 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
4096 (REG_CLASS_NAMES): Ditto.
4097 (REGNO_REG_CLASS): Ditto.
4098 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
4099 (moxie_function_value): Fix constyness of arguments.
4100
4101 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
4102
4103 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
4104 finalize_size_functions before further processing.
4105 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
4106 (variable_size): Call self_referential_size on size expressions
4107 that contain a PLACEHOLDER_EXPR.
4108 (size_functions): New static variable.
4109 (copy_self_referential_tree_r): New static function.
4110 (self_referential_size): Likewise.
4111 (finalize_size_functions): New global function.
4112 * tree.c: Include tree-inline.h.
4113 (push_without_duplicates): New static function.
4114 (find_placeholder_in_expr): New global function.
4115 (substitute_in_expr) <tcc_declaration>: Return the replacement object
4116 on equality.
4117 <tcc_expression>: Likewise.
4118 <tcc_vl_exp>: If the replacement object is a constant, try to inline
4119 the call in the expression.
4120 * tree.h (finalize_size_functions): Declare.
4121 (find_placeholder_in_expr): Likewise.
4122 (FIND_PLACEHOLDER_IN_EXPR): New macro.
4123 (substitute_placeholder_in_expr): Update comment.
4124 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
4125 is true.
4126 (copy_tree_body_r): Likewise.
4127 (copy_tree_body): New static function.
4128 (maybe_inline_call_in_expr): New global function.
4129 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
4130 (maybe_inline_call_in_expr): Declare.
4131 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
4132 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
4133 GIMPLE_H.
4134
4135 2009-06-30 Richard Guenther <rguenther@suse.de>
4136
4137 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
4138 continue walking.
4139 (propagate_necessity): Do not mark reaching defs of stores
4140 as necessary.
4141
4142 2009-06-30 Jan Hubicka <jh@suse.cz>
4143
4144 * cfgloopanal.c (check_irred): Move into ...
4145 (mark_irreducible_loops): ... here; return true if ireducible
4146 loops was found.
4147 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
4148 (analyze_function): Try to prove loop finiteness.
4149 * cfgloop.h (mark_irreducible_loops): Update prototype.
4150 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
4151
4152 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
4153
4154 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
4155
4156 2009-06-30 Ira Rosen <irar@il.ibm.com>
4157
4158 PR tree-optimization/40542
4159 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
4160 types.
4161
4162 2009-06-30 Martin Jambor <mjambor@suse.cz>
4163
4164 PR tree-optimization/40582
4165 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
4166 than useless_type_conversion_p.
4167 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
4168 proper place.
4169
4170 2009-06-30 Martin Jambor <mjambor@suse.cz>
4171
4172 PR middle-end/40554
4173 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
4174
4175 2009-06-30 Richard Guenther <rguenther@suse.de>
4176
4177 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
4178 use ao_ref references.
4179 (walk_aliased_vdefs): Likewise.
4180 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
4181 * tree-ssa-dce.c (struct ref_data): Remove.
4182 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
4183 (mark_aliased_reaching_defs_necessary): Adjust.
4184 (mark_all_reaching_defs_necessary_1): Likewise.
4185
4186 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
4187
4188 PR boostrap/40597
4189 * expmed.c (emit_cstore): New name of emit_store_flag_1.
4190 (emit_store_flag_1): Extract from emit_store_flag, adjust
4191 calls to (what now is) emit_cstore.
4192 (emit_store_flag): Call emit_store_flag_1 and also use it
4193 for what used to be recursive calls.
4194
4195 2009-06-30 Wei Guozhi <carrot@google.com>
4196
4197 PR/40416
4198 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
4199 if the target bb post dominates from bb.
4200 * config/i386/i386.c (memory_address_length): Check existence of base
4201 register before using it.
4202
4203 2009-06-30 Nick Clifton <nickc@redhat.com>
4204 DJ Delorie <dj@redhat.com>
4205
4206 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
4207 __FMOVD_ENABLED__ is defined.
4208 * config/sh/sh.h
4209 (TARGET_FMOVD): Provide a default definition.
4210 (MASK_FMOVD): Likewise.
4211 (TARGET_CPU_CPP_BUILTINS): Define
4212 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
4213 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
4214 two fmov instructions depending upon whether TARGET_FMOVD is
4215 enabled.
4216 (split for DF load from memory into register): Also handle
4217 MEMs which consist of REG+DISP addressing.
4218 (split for DF store from register to memory): Likewise.
4219 * config/sh/sh.opt (mfmovd): Remove this switch.
4220 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
4221 * config/sh/sh.c (sh_override_options): Do not automatically
4222 enable TARGET_MOVD for the SH2A when supporting doubles - leave
4223 that to the -mfmovd command line switch.
4224
4225 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
4226 the SH4 and SH4A.
4227 (fldi_ok): Always allow.
4228 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
4229
4230 2009-06-29 DJ Delorie <dj@redhat.com>
4231
4232 * doc/install.texi (mep-x-elf): Correct chip's full name.
4233
4234 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
4235
4236 * doc/extend.texi: Fix typo.
4237
4238 2009-06-29 Tom Tromey <tromey@redhat.com>
4239
4240 * dwarf2.h: Remove.
4241 * Makefile.in (DWARF2_H): New variable.
4242 (except.o): Use it.
4243 (dwarf2out.o): Likewise.
4244 (dwarf2asm.o): Likewise.
4245 * config/i386/t-i386: Use DWARF2_H.
4246 * except.c: Include elf/dwarf2.h.
4247 * unwind-dw2.c: Include elf/dwarf2.h.
4248 * dwarf2out.c: Include elf/dwarf2.h.
4249 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
4250 <dtprel>: New field.
4251 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
4252 (size_of_loc_descr): Likewise.
4253 (output_loc_operands_raw): Likewise.
4254 (output_loc_operands): Handle new dtprel field.
4255 (loc_checksum): Update.
4256 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
4257 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
4258 * unwind-dw2-fde.c: Include elf/dwarf2.h.
4259 * dwarf2asm.c: Include elf/dwarf2.h.
4260 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
4261 * config/mmix/mmix.c: Include elf/dwarf2.h.
4262 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
4263 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
4264 * config/sh/sh.c: Include elf/dwarf2.h.
4265 * config/i386/i386.c: Include elf/dwarf2.h.
4266
4267 2009-06-29 DJ Delorie <dj@redhat.com>
4268
4269 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
4270
4271 * doc/extend.texi: Add MeP attributes and pragmas.
4272 * doc/invoke.text: Add MeP Options.
4273 * doc/contrib.texi: Add MeP contribution.
4274 * doc/md.texi: Add MeP constraints.
4275 * doc/install.texi: Add MeP target.
4276
4277 2009-06-30 Anatoly Sokolov <aesok@post.ru>
4278
4279 * target.h (struct gcc_target): Add frame_pointer_required field.
4280 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
4281 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
4282 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
4283 hook.
4284 * reload1.c (update_eliminables): (Ditto.).
4285 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
4286 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
4287 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
4288
4289 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
4290
4291 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
4292 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4293 (arm_frame_pointer_required): New function.
4294
4295 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
4296 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4297 (avr_frame_pointer_required_p): Declare as static.
4298 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
4299
4300 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
4301 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4302 (bfin_frame_pointer_required): Make as static, change return type
4303 to bool.
4304 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
4305
4306 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
4307 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4308 (cris_frame_pointer_required): New function.
4309
4310 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
4311
4312 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
4313 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4314 (fr30_frame_pointer_required): New function.
4315
4316 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
4317 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4318 (frv_frame_pointer_required): Make as static, change return type
4319 to bool.
4320 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
4321
4322 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
4323 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4324 (ix86_frame_pointer_required): Make as static, change return type to
4325 bool.
4326 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
4327
4328 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
4329 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4330
4331 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
4332
4333 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
4334
4335 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
4336
4337 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
4338 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4339 (mips_frame_pointer_required): Make as static.
4340 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
4341
4342 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
4343 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4344 (mmix_frame_pointer_required): Mew function.
4345
4346 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
4347 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4348
4349 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
4350
4351 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
4352
4353 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
4354
4355 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
4356 (CAN_ELIMINATE): Redefine.
4357 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
4358 (sparc_frame_pointer_required): New function.
4359 (sparc_can_eliminate): New function.
4360 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
4361
4362 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
4363 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4364
4365 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
4366 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
4367 (xtensa_frame_pointer_required): Make as static, change return type
4368 to bool.
4369 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
4370 Remove.
4371
4372 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
4373
4374 * doc/plugins.texi: Document PLUGIN_START_UNIT.
4375 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
4376 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
4377 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
4378 (register_callback): Handle PLUGIN_START_UNIT.
4379 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
4380
4381 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
4382
4383 * tree.c (process_call_operands): Propagate TREE_READONLY from the
4384 operands.
4385 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
4386 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
4387
4388 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
4389
4390 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
4391 move cost.
4392
4393 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
4394
4395 * doc/extend.texi (Additional Floating Types): __float128 is also
4396 supported on i386 targets.
4397
4398 2009-06-29 Richard Guenther <rguenther@suse.de>
4399
4400 PR middle-end/14187
4401 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4402 flag.
4403 (pt_solutions_same_restrict_base): Declare.
4404 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
4405 flag.
4406 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
4407 (make_constraint_from, make_copy_constraint): Move earlier.
4408 (make_constraint_from_heapvar): New function.
4409 (make_constraint_from_restrict): Likewise.
4410 (handle_lhs_call): Use it.
4411 (find_func_aliases): Use it to track conversions to restrict
4412 qualified pointers.
4413 (struct fieldoff): Add only_restrict_pointers flag.
4414 (push_fields_onto_fieldstack): Initialize it.
4415 (create_variable_info_for): Track global restrict qualified pointers.
4416 (intra_create_variable_infos): Use make_constraint_from_heapvar.
4417 Track restrict qualified pointer arguments.
4418 (set_uids_in_ptset): Use varinfo is_global_var flag.
4419 (find_what_var_points_to): Set the vars_contains_restrict flag.
4420 Always create the points-to solution for sets including restrict tags.
4421 (pt_solutions_same_restrict_base): New function.
4422 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
4423 qualified pointers use pt_solutions_same_restrict_base as
4424 additional source for disambiguation.
4425
4426 2009-06-29 Richard Guenther <rguenther@suse.de>
4427
4428 PR middle-end/38212
4429 * alias.c (find_base_decl): Remove.
4430 (get_deref_alias_set_1): Remove restrict handling.
4431 * c-common.c (c_apply_type_quals_to_decl): Do not set
4432 DECL_POINTER_ALIAS_SET.
4433 * gimplify.c (find_single_pointer_decl_1): Remove.
4434 (find_single_pointer_decl): Likewise.
4435 (internal_get_tmp_var): Remove restrict handling.
4436 (gimple_regimplify_operands): Likewise.
4437 * omp-low.c (expand_omp_atomic_pipeline): Do not set
4438 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
4439 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
4440 * tree.c (restrict_base_for_decl): Remove.
4441 (init_ttree): Do not allocate it.
4442 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
4443 LABEL_DECL_UID for label decls.
4444 (copy_node_stat): Do not copy restrict information.
4445 (decl_restrict_base_lookup): Remove.
4446 (decl_restrict_base_insert): Likewise.
4447 (print_restrict_base_statistics): Likewise.
4448 (dump_tree_statistics): Do not call print_restrict_base_statistics.
4449 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
4450 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
4451 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
4452 (LABEL_DECL_UID): Adjust.
4453 (DECL_BASED_ON_RESTRICT_P): Remove.
4454 (DECL_GET_RESTRICT_BASE): Likewise.
4455 (SET_DECL_RESTRICT_BASE): Likewise.
4456 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
4457
4458 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
4459 instead of DECL_POINTER_ALIAS_SET.
4460 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
4461 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
4462 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
4463
4464 2009-06-29 Richard Guenther <rguenther@suse.de>
4465
4466 PR tree-optimization/40579
4467 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
4468 the IL to simplify has constants that overflowed.
4469
4470 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
4471
4472 PR tree-optimization/40550
4473 * tree-vect-generic.c (expand_vector_operations_1): Compute in
4474 vector_compute_type only when the size of vector_compute_type is
4475 less than the size of type.
4476
4477 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
4478
4479 * fold-const.c (contains_label_1): Fix comments.
4480 (contains_label_p): Do not walk trees multiple time.
4481
4482 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4483
4484 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
4485 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
4486 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
4487 ix86_fp_comparison_operator.
4488 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
4489 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
4490 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
4491 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
4492 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
4493 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
4494 (related splits): Change predicate to ix86_fp_comparison_operator.
4495 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
4496 instead of ix86_fp_comparison_codes.
4497 (ix86_trivial_fp_comparison_operator,
4498 ix86_fp_comparison_operator): New.
4499 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
4500 (ix86_expand_compare): Eliminate last two parameters.
4501 (ix86_fp_jump_nontrivial_p): Kill.
4502 * config/i386/i386.c (put_condition_code): Eliminate call to
4503 ix86_fp_comparison_codes and subsequent assertion.
4504 (ix86_fp_comparison_codes): Eliminate.
4505 (ix86_fp_swap_condition): New.
4506 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
4507 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
4508 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
4509 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
4510 and ix86_fp_swap_condition.
4511 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
4512 Use ix86_fp_comparison_strategy.
4513 (ix86_expand_compare): Likewise. Eliminate last two arguments.
4514 (ix86_fp_jump_nontrivial_p): Eliminate.
4515 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
4516 call to ix86_expand_compare.
4517 (ix86_split_fp_branch, ix86_expand_setcc,
4518 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
4519 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
4520
4521 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4522
4523 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
4524 related to jump_clobbers.
4525 * config/arm/arm.md (conds): Remove jump_clob case.
4526 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
4527 splits): Change comparison_operator to arm_comparison_operator.
4528 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
4529 Eliminate.
4530
4531 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4532
4533 * dojump.c (do_compare_rtx_and_jump): Try swapping the
4534 condition for floating point modes.
4535 * expmed.c (emit_store_flag_1): Move here a bigger part
4536 of emit_store_flag.
4537 (emit_store_flag): Try swapping the condition for floating point
4538 modes.
4539 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
4540
4541 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4542
4543 * expr.c (expand_expr_real_1): Just use do_store_flag.
4544 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
4545 emit_store_flag_force.
4546 * expmed.c (emit_store_flag_force): Copy here trick
4547 previously in expand_expr_real_1. Try reversing the comparison.
4548 (emit_store_flag_1): Work if target is NULL.
4549 (emit_store_flag): Work if target is NULL, using the result mode
4550 from the comparison. Use split_comparison, restructure final part
4551 to simplify conditionals.
4552
4553 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
4554
4555 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
4556 * dojump.c (do_jump): Change handling of floating-point
4557 ops to use just do_compare_and_jump.
4558 (split_comparison): New.
4559 (do_compare_rtx_and_jump): Add here logic coming previously
4560 in do_jump, using split_comparison.
4561
4562 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
4563
4564 PR target/40489
4565 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
4566
4567 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4568
4569 * tree-ssa-alias.c: Fix unintentional commit.
4570
4571 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4572
4573 * passes.c (execute_one_pass): Fix unintentional commit.
4574
4575 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4576
4577 * df-problems.c (df_set_seen, df_unset_seen): Delete.
4578 (df_rd_local_compute, df_md_local_compute): Inline them.
4579
4580 (df_md_scratch): New.
4581 (df_md_alloc, df_md_free): Allocate/free it.
4582 (df_md_local_compute): Only include live registers in init.
4583 (df_md_transfer_function): Prune the in-set computed by
4584 the confluence function, and the gen-set too.
4585
4586 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4587
4588 PR rtl-optimization/26854
4589 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
4590 * df-problems.c (df_rd_add_problem): Fix comment.
4591 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
4592 df_md_simulate_artificial_defs_at_top,
4593 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
4594 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
4595 df_md_transfer_function, df_md_init, df_md_confluence_0,
4596 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
4597 problem_MD, df_md_add_problem): New.
4598 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
4599 df_md_get_bb_info): New.
4600 (DF_LAST_PROBLEM_PLUS1): Adjust.
4601
4602 * Makefile.in (fwprop.o): Include domwalk.h.
4603 * fwprop.c: Include domwalk.h.
4604 (reg_defs, reg_defs_stack): New.
4605 (bitmap_only_bit_between): Remove.
4606 (process_defs): New.
4607 (process_uses): Use reg_defs and local_md instead of
4608 bitmap_only_bit_between and local_rd.
4609 (single_def_use_enter_block): New, from build_single_def_use_links.
4610 (single_def_use_leave_block): New.
4611 (build_single_def_use_links): Remove code moved to
4612 single_def_use_enter_block, invoke domwalk.
4613 (use_killed_between): Adjust comment.
4614
4615 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4616
4617 * bitmap.h (bitmap_ior_and_into): New.
4618 * bitmap.c (bitmap_ior_and_into): New.
4619
4620 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
4621
4622 * domwalk.h (struct dom_walk_data): Remove all callbacks except
4623 before_dom_children_before_stmts and after_dom_children_after_stmts.
4624 Rename the two remaining callbacks to just before_dom_children and
4625 after_dom_children. Remove other GIMPLE statement walking bits.
4626 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
4627 * graphite.c: Do not include domwalk.h.
4628 * tree-into-ssa.c (interesting_blocks): New global.
4629 (struct mark_def_sites_global_data): Remove it and names_to_rename.
4630 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
4631 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
4632 now that they're not domwalk callbacks.
4633 (rewrite_initialize_block): Rename to...
4634 (rewrite_enter_block): ... this, place after called functions. Test
4635 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
4636 (rewrite_finalize_block): Rename to...
4637 (rewrite_leave_block): ... this, place after called functions.
4638 (rewrite_update_init_block): Rename to...
4639 (rewrite_update_enter_block): ... this, place after called functions.
4640 Test interesting_blocks, call rewrite_update_stmt and
4641 rewrite_update_phi_arguments.
4642 (rewrite_update_fini_block): Rename to...
4643 (rewrite_leave_block): ... this, place after called functions.
4644 (rewrite_blocks): Remove last argument, simplify initialization of
4645 walk_data.
4646 (mark_def_sites_initialize_block): Rename to...
4647 (mark_def_sites_block): ... this, call mark_def_sites.
4648 (mark_def_sites_blocks): Remove argument, simplify initialization of
4649 walk_data.
4650 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
4651 (update_ssa): Likewise.
4652 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
4653 callback.
4654 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
4655 (dom_opt_initialize_block): Rename to...
4656 (dom_opt_enter_block): ... this, place after called functions. Walk
4657 statements here, inline propagate_to_outgoing_edges.
4658 (dom_opt_finalize_block): Rename to...
4659 (dom_opt_leave_block): ... this, place after called functions.
4660 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
4661 domwalk callback.
4662 (dse_enter_block, dse_record_phi): New.
4663 (dse_record_phis): Delete.
4664 (dse_finalize_block): Rename to...
4665 (dse_leave_block): ... this.
4666 (tree_ssa_dse): Simplify initialization of walk_data.
4667 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
4668 Adjust initialization of walk_data.
4669 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
4670 * tree-ssa-loop-phiopt.c (get_non_trapping):
4671 Adjust initialization of walk_data.
4672 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
4673 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
4674 it's not a domwalk callback.
4675 (uncprop_initialize_block): Rename to...
4676 (dse_enter_block): ... this, call uncprop_into_successor_phis.
4677 (dse_finalize_block): Rename to...
4678 (dse_leave_block): ... this.
4679 (tree_ssa_uncprop): Simplify initialization of walk_data.
4680 * Makefile.in: Adjust dependencies.
4681
4682 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
4683
4684 * arm.md (casesi): Fix test for Thumb1.
4685 (thumb1_casesi_internal_pic): Likewise.
4686 (thumb1_casesi_dispatch): Likewise.
4687
4688 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
4689
4690 * config/arm/arm-cores.def: Added core cortex-m0.
4691 * config/arm/arm-tune.md: Regenerated.
4692 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
4693
4694 2009-06-26 DJ Delorie <dj@redhat.com>
4695
4696 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
4697
4698 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
4699 the scheduler doesn't tag jump insns.
4700
4701 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
4702
4703 * c-decl.c (merge_decls): Re-indent.
4704
4705 2009-06-26 Janis Johnson <janis187@us.ibm.com>
4706
4707 PR c/39902
4708 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
4709 Special-case decimal float constants.
4710
4711 2009-06-26 Richard Henderson <rth@redhat.com>
4712
4713 * function.h (struct function): Add cannot_be_copied_reason,
4714 and cannot_be_copied_set.
4715 * tree-inline.c (has_label_address_in_static_1): Rename from
4716 inline_forbidden_p_2; don't set inline_forbidden_reason here.
4717 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
4718 don't set inline_forbidden_reason.
4719 (copy_forbidden): New function, split out of inline_forbidden_p.
4720 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
4721 (inline_forbidden_p): Use copy_forbidden.
4722 (tree_versionable_function_p): Likewise.
4723 (inlinable_function_p): Merge into tree_inlinable_function_p.
4724 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
4725 * ipa-cp.c (ipcp_versionable_function_p): New function.
4726 (ipcp_cloning_candidate_p): Use it.
4727 (ipcp_node_modifiable_p): Likewise.
4728
4729 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
4730
4731 * builtins.c (expand_builtin_alloca): Handle builtin alloca
4732 that is marked not to be inlined. Remove flag_mudflap use.
4733 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
4734 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
4735
4736 2009-06-26 Steve Ellcey <sje@cup.hp.com>
4737
4738 PR bootstrap/40338
4739 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
4740 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
4741
4742 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
4743
4744 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
4745 shared libgcc.
4746 (__mingwthr_remove_key_dtor): Likewise.
4747
4748 2009-06-26 Richard Guenther <rguenther@suse.de>
4749
4750 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
4751
4752 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
4753
4754 PR middle-end/40525
4755 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
4756 try the non-cond_exec path also.
4757
4758 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4759
4760 PR target/40468
4761 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
4762 (output_cbranch): Use new functions.
4763 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
4764 Likewise.
4765
4766 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
4767 Pat Haugen <pthaugen@us.ibm.com>
4768 Revital Eres <ERES@il.ibm.com>
4769
4770 * config/rs6000/rs6000.c (print_operand): Correct lossage message
4771 for %c error. Add %x support to print VSX registers as a unified
4772 register set, instead of separate float and altivec registers.
4773 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
4774 %y case, and add support for VSX pre-modify addresses.
4775 (output_toc): Add assert for CONST containing an integer constant
4776 in the PLUS case.
4777 (rs6000_adjust_cost): Add POWER7 support.
4778 (insn_must_be_first_in_group): Ditto.
4779 (insn_must_be_last_in_group): Ditto.
4780 (rs6000_emit_popcount): Ditto.
4781 (rs6000_vector_mode_supported_p): Ditto.
4782
4783 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
4784 Change some of the functions called by macros to being called
4785 through a pointer, so debug functions can be inserted if
4786 -mdebug=addr or -mdebug=cost.
4787 (rs6000_preferred_reload_class_ptr): Ditto.
4788 (rs6000_secondary_reload_class_ptr): Ditto.
4789 (rs6000_secondary_memory_needed_ptr): Ditto.
4790 (rs6000_cannot_change_mode_class_ptr): Ditto.
4791 (rs6000_secondary_reload_inner): Ditto.
4792 (rs6000_legitimize_reload_address): Ditto.
4793 (rs6000_legitimize_reload_address_ptr): Ditto.
4794 (rs6000_mode_dependent_address): Ditto.
4795 (rs6000_mode_dependent_address_ptr): Ditto.
4796
4797 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
4798 function to return true if the mode allows reg + integer
4799 addresses.
4800 (virtual_stack_registers_memory_p): New function to return true if
4801 the address refers to a virtual stack register.
4802 (rs6000_legitimate_offset_address_p): Move code to say whether a
4803 mode supports reg+int addressing to reg_offset_addressing_ok_p and
4804 call it.
4805 (rs6000_legitimate_address_p): Add checks for modes that only can
4806 do reg+reg addressing. Start adding VSX support.
4807 (rs6000_legitimize_reload_address): Ditto.
4808 (rs6000_legitimize_address): Ditto.
4809 (rs6000_debug_legitimate_address_p): New debug functions for
4810 -mdebug=addr and -mdebug=cost.
4811 (rs6000_debug_rtx_costs): Ditto.
4812 (rs6000_debug_address_costs): Ditto.
4813 (rs6000_debug_adjust_cost): Ditto.
4814 (rs6000_debug_legitimize_address): Ditto.
4815 (rs6000_legitimize_reload_address_ptr): Point to call normal
4816 function or debug function. Make functions called via pointer
4817 static.
4818 (rs6000_mode_dependent_address_ptr): Ditto.
4819 (rs6000_secondary_reload_class_ptr): Ditto.
4820 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
4821 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
4822 into a friendlier error.
4823 (rs6000_init_builtins): Add initial VSX support.
4824 (rs6000_adjust_cost): Fix some spacing issues.
4825
4826 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
4827 (REG_CLASS_NAMES): Ditto.
4828 (REG_CLASS_CONTENTS): Ditto.
4829 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
4830 pointer, to add -mdebug=addr support.
4831 (CANNOT_CHANGE_MODE_CLASS): Ditto.
4832 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
4833 -mdebug=addr support.
4834 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
4835 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
4836 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
4837
4838 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
4839 16-bit values.
4840 (bswapsi*): Set attribute types for load/store. Add combiner
4841 patterns to eliminate zero extend on 64-bit.
4842 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
4843 stdbrx if the hardware supports those instructions.
4844
4845 2009-06-25 Ian Lance Taylor <iant@google.com>
4846
4847 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
4848 (Link Options): Document -static-libstdc++.
4849
4850 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
4851
4852 PR target/38731
4853 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
4854 DATA_ALIGNMENT instead.
4855
4856 2009-06-25 Richard Guenther <rguenther@suse.de>
4857
4858 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
4859 indirect references against the callused/escaped solutions.
4860 (call_may_clobber_ref_p_1): Likewise.
4861
4862 2009-06-25 Martin Jambor <mjambor@suse.cz>
4863
4864 PR tree-optimization/40493
4865 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
4866 (enum unscalarized_data_handling): New type.
4867 (handle_unscalarized_data_in_subtree): Return what has been done.
4868 (load_assign_lhs_subreplacements): Handle left flushes differently.
4869 (sra_modify_assign): Use unscalarized_data_handling, simplified
4870 condition determining whether to remove the statement.
4871
4872 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
4873
4874 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
4875 excerpt - @ should be doubled for texinfo.
4876
4877 2009-06-24 Ian Lance Taylor <iant@google.com>
4878
4879 * config/arc/arc.c: Include "df.h".
4880 (arc_attribute_table): Make static. Move higher in file.
4881 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
4882 (output_shift): Initialize n later to avoid warning.
4883 * config/arm/arm.c (arm_attribute_table): Make static. Move
4884 higher in file.
4885 * config/avr/avr.c (avr_attribute_table): Make static. Move
4886 higher in file.
4887 (reg_class_tab): Change array type from int to enum reg_class.
4888 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
4889 LABEL_REF.
4890 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
4891 (lshrhi3_out): Likewise.
4892 (class_likely_spilled_p): Change return type to bool.
4893 (avr_rtx_costs): Use local code variable with enum type.
4894 * config/avr/avr.md (movmemhi): Use add_reg_note.
4895 (andhi3, andsi3): Don't use AS2 with "and".
4896 (iorhi3, iorsi3): Don't use AS2 with "or".
4897 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
4898 * config/crx/crx.c: Include "df.h".
4899 (crx_attribute_table): Make static.
4900 * config/m32r/m32r.c: Include "df.h".
4901 (m32r_attribute_table): Make static. Move higher in file.
4902 (pop): Use add_reg_note.
4903 (block_move_call): Change 0 to LCT_NORMAL in function call.
4904 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
4905 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
4906 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
4907 declare, not just when TREE_CODE is defined.
4908 * config/m68hc11/m68hc11.c: Include "expr.h".
4909 (m68hc11_attribute_table): Make static. Move higher in file.
4910 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
4911 function call.
4912 (m68hc11_register_indirect_p): Likewise.
4913 (m68hc11_function_arg_padding): Change return type to enum
4914 direction.
4915 (emit_move_after_reload): Use add_reg_note.
4916 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
4917 (m68hc11_split_logical): Likewise.
4918 (m68hc11_rtx_costs): Add local code_and outer_code variables with
4919 enum type.
4920 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
4921 to VOIDmode in function call.
4922 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
4923 tree is defined.
4924 (m68hc11_split_logical): Update declaration.
4925 (m68hc11_function_arg_padding): Update declaration.
4926 * config/mcore/mcore.c (regno_reg_class): Change form array of int
4927 to array of enum reg_class.
4928 (mcore_attribute_table): Make static. Move higher in file.
4929 (mcore_rtx_costs): Add cast to enum type.
4930 * config/mcore/mcore.h (regno_reg_class): Update declaration.
4931 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
4932 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
4933 in file.
4934 * config/sh/predicates.md (trapping_target_operand): Rename and to
4935 and_expr.
4936 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
4937 higher in file.
4938 * config/spu/spu.c (spu_attribute_table): Make static. Move
4939 higher in file.
4940 * config/v850/v850.c (v850_attribute_table): Make static. Move
4941 higher in file.
4942 (v850_rtx_costs): Use local code with enum type.
4943 (expand_epilogue): Add cast.
4944 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
4945
4946 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
4947
4948 PR target/40515
4949 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
4950 -m2a-single-only and -m2a-nofpu.
4951 * config/sh/sh.opt: Document m2a generates FPU code.
4952
4953 2009-06-24 Anatoly Sokolov <aesok@post.ru>
4954
4955 * defaults.h (CAN_ELIMINATE): Provide default.
4956 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
4957 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
4958 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
4959 * config/spu/spu.h (CAN_ELIMINATE): Delete.
4960 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
4961 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
4962 * config/cris/cris.h (CAN_ELIMINATE): Delete.
4963 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
4964 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
4965 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
4966
4967 2009-06-24 DJ Delorie <dj@redhat.com>
4968
4969 * mep-ext-cop.cpu: Fix copyright notice.
4970 * mep-default: Fix copyright notice.
4971 * mep-core: Fix copyright notice.
4972 * mep: Fix copyright notice.
4973 * mep-ivc2: Fix copyright notice.
4974 * mep-c5: Fix copyright notice.
4975
4976 2009-06-24 Denis Chertykov <chertykov@gmail.com>
4977
4978 * doc/contrib.texi (Contributors):
4979
4980 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
4981
4982 PR middle-end/40501
4983 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
4984 src and dst operands if necessary.
4985
4986 2009-06-23 DJ Delorie <dj@redhat.com>
4987
4988 Add MeP port.
4989 * config.gcc: Add mep support.
4990 * recog.c: Resurrect validate_replace_rtx_subexp().
4991 * recog.h: Likewise.
4992 * config/mep/: Add new port:
4993 * config/mep/constraints.md: New file.
4994 * config/mep/default.h: New file.
4995 * config/mep/intrinsics.h: New file.
4996 * config/mep/intrinsics.md: New file.
4997 * config/mep/ivc2-template.h: New file.
4998 * config/mep/mep-c5.cpu: New file.
4999 * config/mep/mep-core.cpu: New file.
5000 * config/mep/mep-default.cpu: New file.
5001 * config/mep/mep-ext-cop.cpu: New file.
5002 * config/mep/mep-intrin.h: New file.
5003 * config/mep/mep-ivc2.cpu: New file.
5004 * config/mep/mep-lib1.asm: New file.
5005 * config/mep/mep-lib2.c: New file.
5006 * config/mep/mep-pragma.c: New file.
5007 * config/mep/mep-protos.h: New file.
5008 * config/mep/mep-tramp.c: New file.
5009 * config/mep/mep.c: New file.
5010 * config/mep/mep.cpu: New file.
5011 * config/mep/mep.h: New file.
5012 * config/mep/mep.md: New file.
5013 * config/mep/mep.opt: New file.
5014 * config/mep/predicates.md: New file.
5015 * config/mep/t-mep: New file.
5016
5017 2009-06-23 Ian Lance Taylor <iant@google.com>
5018
5019 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
5020 from loose_warn into c_loose_warn and from strict_warn into
5021 c_strict_warn. Set and substitute warn_cxxflags. Check for
5022 --enable-build-with-cxx. Set and substitute
5023 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
5024 * Makefile.in (CXXFLAGS): New variable.
5025 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
5026 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
5027 the default is the same as $(STRICT_WARN).
5028 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
5029 (CXX): New variable.
5030 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
5031 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
5032 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
5033 (HOST_LIBS): New variable.
5034 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
5035 (ALL_CXXFLAGS): New variable.
5036 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
5037 * doc/install.texi (Configuration): Document
5038 --enable-build-with-cxx, --with-stage1-ldflags,
5039 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
5040 * configure: Rebuild.
5041
5042 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5043
5044 * config/arm/arm.c (arm_override_options): Fix braces and formatting
5045 from previous commit.
5046
5047 2009-06-23 Ian Lance Taylor <iant@google.com>
5048
5049 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
5050
5051 2009-06-23 Ian Lance Taylor <iant@google.com>
5052
5053 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
5054 with ATTRIBUTE_UNUSED.
5055
5056 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5057 Pat Haugen <pthaugen@us.ibm.com>
5058 Revital Eres <eres@il.ibm.com>
5059
5060 * config.in (HAVE_AS_POPCNTD): Add default definition.
5061 (HAVE_AS_LWSYNC): Ditto.
5062
5063 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
5064 release number.
5065 (gcc_cv_as_powerpc_cmpb): Ditto.
5066 (gcc_cv_as_powerpc_dfp): Ditto.
5067 (gcc_cv_as_powerpc_vsx): Ditto.
5068 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
5069 supporting the popcntd/lwsync instructions.
5070 (gcc_cv_as_powerpc_lwsync): Ditto.
5071 * configure: Regenerate.
5072
5073 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
5074 -mcpu=native and -mcpu=power7.
5075 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
5076
5077 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
5078 a variable instead of a mask to reduce the number of mask bits.
5079 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
5080 (-mbit-word): Ditto.
5081 (-mregnames): Ditto.
5082 * config/rs6000/rs6000.opt (-mupdate): Ditto.
5083 (-mfused-madd): Ditto.
5084
5085 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
5086 2.06 instructions.
5087 (-mvsx): New switch for VSX instructions.
5088 (-misel): Move from a variable to a mask to allow it to be set by
5089 -mcpu=.
5090
5091 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
5092 function declaration to an array declaration.
5093 (rs6000_hard_regno_nregs): New external array declaration.
5094
5095 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
5096 files included by rs6000.md.
5097
5098 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5099 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
5100
5101 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
5102 a target mask.
5103 (rs6000_debug_reg): New -mdebug= variables.
5104 (rs6000_debug_addr): Ditto.
5105 (rs6000_debug_cost): Ditto.
5106 (rs6000_pmode): New variable to hold Pmode.
5107 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
5108 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
5109 calculated at compiler start.
5110 (rs6000_hard_regno_nregs): Change function to an array which holds
5111 HARD_REGNO_NREGS calculated at compiler start.
5112 (rs6000_explicit_options): Delete isel field.
5113 (rs6000_vector_unit): New array to hold which vector unit
5114 supports arithmetic options for a given type.
5115 (rs6000_vector_mem): New array to hold which vector unit supports
5116 memory reference operations for a given type.
5117 (rs6000_vector_align): New array to given the alignment of each
5118 vector type.
5119 (power7_cost): New basic costs for power7.
5120 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
5121 (rs6000_hard_regno_nregs_internal): New function, moved from
5122 HARD_REGNO_NREGS, to calculate the number of registers each hard
5123 register takes for each type.
5124 (rs6000_debug_reg_print): New function for -mdebug=reg support.
5125 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
5126 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
5127 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
5128 unit information here so it is calculated once at compiler startup
5129 time.
5130 (rs6000_override_options): Make -misel a target mask. Add more
5131 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
5132 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
5133 -mdebug=cost.
5134 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
5135 (rs6000_handle_option): Move -misel from variable to target mask.
5136 (rs6000_builtin_mask_for_load): Add VSX support.
5137 (rs6000_conditional_register_usage): Ditto.
5138 (USE_ALTIVEC_FOR_ARG_P): Ditto.
5139 (function_arg_boundary): Ditto.
5140 (rs6000_expand_builtin): Ditto.
5141 (def_builtin): Make abort message a little friendlier.
5142 (rs6000_emit_int_cmove): Add support for 64-bit isel.
5143
5144 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
5145 assembler support the popcntd instruction instead of a vsx
5146 instruction to enable power7 support.
5147 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
5148 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
5149 option to the assembler if -mcpu=native.
5150 (ASM_CPU_NATIVE_SPEC): Ditto.
5151 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
5152 ISA 2.06 features.
5153 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
5154 the lwsync instruction.
5155 (enum processor_type): Add PROCESSOR_POWER7.
5156 (rs6000_debug_reg): New -mdebug= options.
5157 (rs6000_debug_addr): Ditto.
5158 (rs6000_debug_cost): Ditto.
5159 (rs6000_isel): Delete.
5160 (enum rs6000_vector): New enum to say what vector unit we have.
5161 (VECTOR_UNIT_*): New macros to say which vector unit has
5162 arithmetic operations for a given type.
5163 (VECTOR_MEM_*): New macros to say which vector unit has memory
5164 operations for a given type.
5165 (TARGET_LDBRX): Whether the machine supports the ldbrx
5166 instruction.
5167 (TARGET_ISEL): Delete, -misel moved to be a mask.
5168 (TARGET_ISEL64): New macro for 64-bit isel support.
5169 (UNITS_PER_VSX_WORD): New macro.
5170 (POINTER_SIZE): Move to be an external variable, rather than
5171 calculating whether we are generating 32 ot 64-bit code.
5172 (Pmode): Ditto.
5173 (STACK_BOUNDARY): Add VSX support.
5174 (LOCAL_ALIGNMENT): Ditto.
5175 (SLOW_UNALIGNED_ACCESS): Ditto.
5176 (VSX_REGNO_P): New macro for VSX support.
5177 (VFLOAT_REGNO_P): Ditto.
5178 (VINT_REGNO_P): Ditto.
5179 (VLOGICAL_REGNO_P): Ditto.
5180 (VSX_VECTOR_MODE): Ditto.
5181 (VSX_SCALAR_MODE): Ditto.
5182 (VSX_MODE): Ditto.
5183 (VSX_MOVE_MODE): Ditto.
5184 (VSX_REG_CLASS_P): Ditto.
5185 (HARD_REGNO_NREGS): Instead of calling a function, use an array
5186 lookup.
5187 (UNITS_PER_SIMD_WORD): Add VSX support.
5188 (MODES_TIEABLE_P): Ditto.
5189 (STARTING_FRAME_OFFSET): Ditto.
5190 (STACK_DYNAMIC_OFFSET): Ditto.
5191 (EPILOGUE_USES): Ditto.
5192 (REGNO_REG_CLASS): Move to array lookup.
5193 (CLASS_MAX_NREGS): Ditto.
5194 (rs6000_vector_reg_class): Add declaration.
5195 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
5196 overlap with the floating point and Altivec registers.
5197
5198 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
5199
5200 * config/rs6000/driver-rs6000.c (asm_names): New static array to
5201 give the appropriate asm switches if -mcpu=native.
5202 (host_detect_local_cpu): Add support for "asm".
5203 (host_detect_local_cpu): Follow GNU code guidelines for name.
5204
5205 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
5206 -mbit-word to a variable instead of being a target mask.
5207
5208 * config/rs6000/sync.md (lwsync): If the assembler supports it,
5209 emit the lwsync instruction instead of emitting the instruction as
5210 an integer constant.
5211
5212 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
5213 fixuns_trundfsi2, move expander into rs6000.md.
5214
5215 * config/rs6000/rs6000.md (cpu): Add power7.
5216 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
5217 (logical predicate patterns): Change the single instruction
5218 primitives that set CR0 to be fast_compare instead of compare.
5219 (norsi*): Ditto.
5220 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
5221 (popcntddi2): Ditto.
5222 (popcount<mode>): Ditto.
5223 (floating multiply/add insns): Name the floating point
5224 multiply/add insns.
5225 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
5226 (isel_unsigned_<mode>): Ditto.
5227 (fixuns_trundfsi2): Move expander here from spe.md.
5228 (smindi3): Define if we have -misel on 64-bit systems.
5229 (smaxdi3): Ditto.
5230 (umindi3): Ditto.
5231 (umaxdi3): Ditto.
5232
5233 2009-06-23 Anatoly Sokolov <aesok@post.ru>
5234
5235 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
5236 extra_objs.
5237 * config/avr/avr.c (avr_current_device): New variable.
5238 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
5239 (avr_arch, mcu_type_s): Move to avr.h.
5240 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
5241 default_data_section_start fields.
5242 (avr_arch): Moved from avr.c.
5243 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
5244 library_name fields.
5245 (avr_current_device, avr_mcu_types, avr_arch_types,
5246 avr_device_to_arch, avr_device_to_data_start,
5247 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
5248 (EXTRA_SPEC_FUNCTIONS): Define.
5249 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
5250 options mapping. Use device_to_arch and device_to_data_start insted.
5251 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
5252 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
5253 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
5254 * config/avr/driver-avr.c: New file.
5255 * config/avr/avr-devices.c: New file.
5256
5257 2009-06-23 Jakub Jelinek <jakub@redhat.com>
5258
5259 * var-tracking.c (unshare_variable): Force initialized to
5260 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
5261 (set_variable_part): Likewise.
5262 (struct variable_union_info): Remove pos_src field.
5263 (vui_vec, vui_allocated): New variables.
5264 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
5265 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
5266 == 1 use a simpler sorting algorithm. Compute pos field right
5267 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
5268 Avoid quadratic comparison if !flag_var_tracking_uninit.
5269 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
5270 unshare_variable unconditionally.
5271 (dataflow_set_different_2): Removed.
5272 (dataflow_set_different): Don't traverse second hash table.
5273 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
5274 unconditionally to var_reg_set or var_mem_set.
5275 (emit_notes_in_bb): Likewise.
5276 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
5277 unshare_variable.
5278 (emit_note_insn_var_location): Don't set initialized to
5279 VAR_INIT_STATUS_INITIALIZED early.
5280 (vt_finalize): Free vui_vec if needed, clear vui_vec and
5281 vui_allocated.
5282 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
5283
5284 * tree-object-size.c (addr_object_size): Instead of checking
5285 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
5286 are no FIELD_DECLs following it.
5287
5288 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
5289
5290 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
5291 order to match bswaps with signed source operands.
5292
5293 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5294
5295 * sdbout.c (sdbout_one_type): Fix braces in switch.
5296
5297 2009-06-23 Richard Guenther <rguenther@suse.de>
5298
5299 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
5300 member.
5301 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
5302 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
5303 var_callused, callused_tree, var_storedanything, storedanything_tree,
5304 var_integer, integer_tree): Remove global variables.
5305 (new_var_info): Do not pass new id, append the new var to the
5306 global variable vector.
5307 (do_ds_constraint): Use is_global_var member of the variable-info.
5308 (new_scalar_tmp_constraint_exp): Adjust.
5309 (create_function_info_for): Likewise.
5310 (create_variable_info_for): Likewise.
5311 (find_what_var_points_to): Remove dead code.
5312 (init_base_vars): Simplify.
5313 (compute_points_to_sets): Adjust.
5314
5315 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
5316
5317 * combine.c (try_combine): Dump information about the insns we're
5318 combining.
5319
5320 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
5321
5322 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
5323 check when calling force_to_mode on TRUNCATE's operand.
5324
5325 2009-06-22 Ian Lance Taylor <iant@google.com>
5326
5327 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
5328
5329 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
5330
5331 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
5332
5333 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5334
5335 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
5336 override library linkage flags such as -static-libgcc or
5337 -shared-libgcc.
5338
5339 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5340
5341 * config/m68k/m68k-devices.def: Add line for MCF5221x.
5342
5343 2009-06-22 Ian Lance Taylor <iant@google.com>
5344
5345 * config/linux.opt: Put mglibc ahead of muclibc.
5346
5347 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
5348 for duplicate decls.
5349
5350 2009-06-22 Matthias Klose <doko@ubuntu.com>
5351
5352 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
5353
5354 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
5355
5356 PR objc/28050
5357 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
5358 instead of NULL if a parser error occurs.
5359
5360 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5361
5362 * dwarf2out.c (dwarf2_debug_hooks): Initialize
5363 non-DWARF2_DEBUGGING_INFO version.
5364
5365 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
5366
5367 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
5368 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
5369
5370 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
5371 (LIBGCC2_TF_CEXT): Define.
5372 (TF_SIZE): Define.
5373
5374 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5375
5376 PR target/40463
5377 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
5378
5379 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5380
5381 * config/arm/arm.c (arm_override_options): Disable
5382 -mcaller-super-interworking and -mcallee-super-interworking.
5383 * doc/invoke.texi (ARM Options): Document this.
5384
5385 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
5386
5387 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
5388 * config/arm/constraints.md (j): New constraint for movw operands.
5389 (N): Remove thumb2 meaning.
5390 * config/arm/arm.md (*arm_movw): Delete.
5391 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
5392 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
5393 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
5394
5395 2009-06-22 Martin Jambor <mjambor@suse.cz>
5396
5397 PR tree-optimization/40492
5398 * tree-sra.c (sra_modify_assign): Pass zero offsets to
5399 build_ref_for_offset.
5400
5401 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
5402
5403 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
5404 JUMP_TABLE_DATA_P predicates where applicable.
5405 * auto-inc-dec.c: Ditto.
5406 * builtins.c: Ditto.
5407 * caller-save.c: Ditto.
5408 * calls.c: Ditto.
5409 * cfgcleanup.c: Ditto.
5410 * cfglayout.c: Ditto.
5411 * cfgrtl.c: Ditto.
5412 * combine.c: Ditto.
5413 * combine-stack-adj.c: Ditto.
5414 * cse.c: Ditto.
5415 * cselib.c: Ditto.
5416 * dbxout.c: Ditto.
5417 * df-scan.c: Ditto.
5418 * dse.c: Ditto.
5419 * dwarf2asm.c: Ditto.
5420 * dwarf2out.c: Ditto.
5421 * emit-rtl.c: Ditto.
5422 * except.c: Ditto.
5423 * explow.c: Ditto.
5424 * expmed.c: Ditto.
5425 * expr.c: Ditto.
5426 * final.c: Ditto.
5427 * function.c: Ditto.
5428 * fwprop.c: Ditto.
5429 * gcse.c: Ditto.
5430 * genpreds.c: Ditto.
5431 * genrecog.c: Ditto.
5432 * ifcvt.c: Ditto.
5433 * ira-costs.c: Ditto.
5434 * ira-lives.c: Ditto.
5435 * jump.c: Ditto.
5436 * loop-iv.c: Ditto.
5437 * lower-subreg.c: Ditto.
5438 * modulo-sched.c: Ditto.
5439 * optabs.c: Ditto.
5440 * postreload.c: Ditto.
5441 * print-rtl.c: Ditto.
5442 * recog.c: Ditto.
5443 * reginfo.c: Ditto.
5444 * regmove.c: Ditto.
5445 * reload1.c: Ditto.
5446 * reload.c: Ditto.
5447 * reorg.c: Ditto.
5448 * rtlanal.c: Ditto.
5449 * rtl.c: Ditto.
5450 * sched-vis.c: Ditto.
5451 * sdbout.c: Ditto.
5452 * sel-sched-ir.c: Ditto.
5453 * simplify-rtx.c: Ditto.
5454 * targhooks.c: Ditto.
5455 * var-tracking.c: Ditto.
5456 * vmsdbgout.c: Ditto.
5457
5458 2009-06-22 Matthias Klose <doko@ubuntu.com>
5459
5460 * Makefile.in (install-plugin): Always use DESTDIR.
5461
5462 2009-06-22 Olivier Hainque <hainque@adacore.com>
5463
5464 * config/pa/pa.c (output_call): Don't optimize post call jumps
5465 into return address adjustments if the call may throw.
5466
5467 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
5468
5469 * arm.c (thumb1_output_casesi): New function.
5470 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
5471 optimizing for size or PIC.
5472 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
5473 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
5474 (casesi): Handle Thumb-1 when optimizing for size or PIC.
5475 (thumb1_casesi_internal_pic): New expand rule.
5476 (thumb1_casesi_dispatch): New pattern.
5477 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
5478 thumb-1 mode.
5479 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
5480 in the text seciton when PIC or optimizing for size.
5481 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
5482 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
5483 preservation properties of code.
5484 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
5485 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
5486 (__gnu_thumb1_case_si): New function.
5487 * t-arm (LIB1ASMSRC): Define here.
5488 (LIB1ASMFUNCS): Add some common functions.
5489 * t-arm-elf (LIB1ASMSRC): Delete.
5490 (LIB1ASMFUNCS): Append to existing set.
5491 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5492 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5493 * t-symbian (LIB1ASMFUNCS): Likewise.
5494 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5495 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
5496
5497 2009-06-21 Richard Guenther <rguenther@suse.de>
5498
5499 PR tree-optimization/38729
5500 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
5501 to loops with a single exit if -fno-expensive-optimizations.
5502
5503 2009-06-21 Jakub Jelinek <jakub@redhat.com>
5504
5505 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
5506 (dataflow_set): Change vars type from htab_t to shared_hash.
5507 (shared_hash_pool, empty_shared_hash): New variables.
5508 (vars_clear): Removed.
5509 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
5510 shared_hash_find_slot_unshare, shared_hash_find_slot,
5511 shared_hash_find_slot_noinsert, shared_hash_find): New
5512 static inlines.
5513 (shared_hash_unshare, shared_hash_destroy): New functions.
5514 (unshare_variable): Unshare set->vars if shared, use
5515 shared_hash_htab.
5516 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
5517 (get_init_value, find_src_set_src, dump_dataflow_set,
5518 clobber_variable_part, emit_notes_for_differences): Use
5519 shared_hash_htab.
5520 (dataflow_set_init): Remove second argument, set vars to
5521 empty_shared_hash instead of creating a new htab.
5522 (dataflow_set_clear): Call shared_hash_destroy and set vars
5523 to empty_shared_hash instead of calling vars_clear.
5524 (dataflow_set_copy): Don't call vars_copy, instead just share
5525 the src htab with dst.
5526 (variable_union): Use shared_hash_*, use initially NO_INSERT
5527 lookup if set->vars is shared. Don't keep slot cleared before
5528 calling unshare_variable. Unshare set->vars if needed.
5529 Even ->refcount == 1 vars must be unshared if set->vars is shared
5530 and var needs to be modified.
5531 (variable_canonicalize): New function.
5532 (dataflow_set_union): If dst->vars is empty, just share src->vars
5533 with dst->vars and traverse with variable_canonicalize to canonicalize
5534 and unshare what is needed.
5535 (dataflow_set_different): If old_set and new_set use the same shared
5536 htab, they aren't different. If number of htab elements is different,
5537 htabs are different. Use shared_hash_*.
5538 (dataflow_set_destroy): Call shared_hash_destroy instead of
5539 htab_delete.
5540 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
5541 second argument to dataflow_set_init.
5542 (vt_initialize): Likewise. Initialize shared_hash_pool and
5543 empty_shared_hash, move bb in/out initialization afterwards.
5544 Use variable_htab_free instead of NULL as changed_variables del hook.
5545 (variable_was_changed): Change type of second argument to pointer to
5546 dataflow_set. When inserting var into changed_variables, bump
5547 refcount. Unshare set->vars if set is shared htab and slot needs to
5548 be cleared.
5549 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
5550 lookup if set->vars is shared. Unshare set->vars if needed.
5551 Even ->refcount == 1 vars must be unshared if set->vars is shared
5552 and var needs to be modified. Adjust variable_was_changed caller.
5553 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
5554 vars must be unshared if set->vars is shared and var needs to be
5555 modified. Adjust variable_was_changed caller.
5556 (emit_note_insn_var_location): Don't pool_free var.
5557 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
5558 instead of 1.
5559 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
5560 free_alloc_pool on shared_hash_pool.
5561
5562 2009-06-20 Anthony Green <green@moxielogic.com>
5563
5564 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
5565 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
5566
5567 2009-06-20 Richard Guenther <rguenther@suse.de>
5568
5569 * tree-ssa-structalias.c (find_func_aliases): For memset use
5570 a constraint from NULL if we memset to zero.
5571 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
5572 we explicitly handle that do not read from memory.
5573 (call_may_clobber_ref_p_1): Properly handle builtins that may
5574 set errno.
5575
5576 2009-06-20 Richard Guenther <rguenther@suse.de>
5577
5578 PR tree-optimization/40495
5579 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
5580 (new_scalar_tmp_constraint_exp): New function.
5581 (process_constraint): Do not create temporary decls.
5582 (process_all_all_constraints): Likewise.
5583 (handle_const_call): Likewise.
5584 (create_function_info_for): Do not set decl.
5585
5586 2009-06-19 Ian Lance Taylor <iant@google.com>
5587
5588 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
5589 (rs6000_attribute_table): Make static; move before use.
5590
5591 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
5592
5593 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
5594 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
5595 Propagate the TREE_READONLY flag without overwriting it.
5596 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
5597 Propagate the TREE_READONLY flag onto the result.
5598 (process_call_operands): Move around. Use correct constant value.
5599
5600 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5601
5602 PR target/40482
5603 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
5604 * config/arm/arm.md: Likewise.
5605
5606 2009-06-19 Ian Lance Taylor <iant@google.com>
5607
5608 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
5609 to GIMPLE_ERROR_MARK.
5610
5611 * c-typeck.c (build_conditional_expr): Add op1_original_type and
5612 op2_original_type parameters. Warn about using different enum types.
5613 * c-parser.c (c_parser_conditional_expression): Pass original
5614 types to build_conditional_expr.
5615 * c-tree.h (build_conditional_expr): Update declaration.
5616
5617 2009-06-19 Ian Lance Taylor <iant@google.com>
5618
5619 * config/i386/i386.c (ix86_function_specific_save): Test that
5620 fields match values, rather than testing the values are in a
5621 certain range.
5622
5623 2009-06-19 Richard Guenther <rguenther@suse.de>
5624
5625 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5626 ADDR_EXPR pointers.
5627 (ptr_derefs_may_alias_p): Likewise.
5628 (ptr_deref_may_alias_ref_p_1): New function.
5629 (ptr_deref_may_alias_ref_p): Likewise.
5630 (ref_maybe_used_by_call_p_1): Handle builtins that are not
5631 covered by looking at the ESCAPED solution.
5632 (call_may_clobber_ref_p_1): Likewise.
5633 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
5634 Handle NULL_TREE offset. Do not produce redundant constraints.
5635 (process_all_all_constraints): New helper function.
5636 (do_structure_copy): Use it.
5637 (handle_lhs_call): Likewise.
5638 (find_func_aliases): Handle some builtins with pointer arguments
5639 and/or return values explicitly.
5640
5641 2009-06-19 Ian Lance Taylor <iant@google.com>
5642
5643 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
5644
5645 2009-06-19 Ian Lance Taylor <iant@google.com>
5646
5647 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
5648
5649 2009-06-19 Ian Lance Taylor <iant@google.com>
5650
5651 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
5652 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
5653 version.
5654
5655 * c-decl.c (finish_decl): If -Wc++-compat, warn about
5656 uninitialized const.
5657
5658 2009-06-19 Ian Lance Taylor <iant@google.com>
5659
5660 * dse.c (struct store_info): Rename bitmap field to bmap. Change
5661 all uses.
5662
5663 * c-decl.c (in_struct, struct_types): Remove.
5664 (struct c_binding): Add in_struct field.
5665 (c_binding_ptr): Define type, along with VEC.
5666 (struct c_struct_parse_info): Define.
5667 (struct_parse_info): New static variable.
5668 (bind): Initialize in_struct field.
5669 (start_struct): Remove enclosing_in_struct and
5670 enclosing_struct_types parameters. Add
5671 enclosing_struct_parse_info parameter. Change all callers. Set
5672 struct_parse_info rather than in_struct and struct_types.
5673 (grokfield): If -Wc++-compat and there is a symbol binding for the
5674 field name, set the in_struct flag and push it on the
5675 struct_parse_info->fields vector.
5676 (warn_cxx_compat_finish_struct): New static function.
5677 (finish_struct): Remove enclosing_in_struct and
5678 enclosing_struct_types parameters. Add
5679 enclosing_struct_parse_info parameter. Change all callers. Don't
5680 set C_TYPE_DEFINED_IN_STRUCT here. Call
5681 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
5682 parameter. Only push on struct_types if warn_cxx_compat.
5683 (finish_enum): Only push on struct_types if warn_cxx_compat.
5684 (declspecs_add_type): Add loc parameter. Change all callers.
5685 Change all error calls to error_at. Pass loc, not input_location,
5686 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
5687 defined in a struct. If -Wc++-compat and parsing a struct, record
5688 that a typedef name was used.
5689 * c-parser.c (c_parser_declspecs): Get location to pass to
5690 declspecs_add_type.
5691 (c_parser_struct_or_union_specifier): Update calls to start_struct
5692 and finish_struct.
5693 * c-tree.h (struct c_struct_parse_info): Declare.
5694 (finish_struct, start_struct): Update declarations.
5695 (declspecs_add_type): Update declaration.
5696
5697 2009-06-19 Ian Lance Taylor <iant@google.com>
5698
5699 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
5700 variable with an anonymous type.
5701
5702 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
5703
5704 * see.c: Remove for real.
5705
5706 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
5707
5708 * optabs.h (enum optab_index): Add new OTI_significand.
5709 (significand_optab): Define corresponding macro.
5710 * optabs.c (init_optabs): Initialize significand_optab.
5711 * genopinit.c (optabs): Implement significand_optab using
5712 significand?f2 patterns.
5713 * builtins.c (expand_builtin_mathfn): Handle
5714 BUILT_IN_SIGNIFICAND{,F,L}.
5715 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
5716 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5717
5718 * config/i386/i386.md (significandxf2, significand<mode>2): New
5719 expanders to implement significandf, significand and significandl
5720 built-ins as inline x87 intrinsics.
5721
5722 2009-06-18 Anatoly Sokolov <aesok@post.ru>
5723
5724 * config/avr/avr.c (avr_override_options): Remove setting value of
5725 PARAM_INLINE_CALL_COST.
5726
5727 2009-06-18 Richard Henderson <rth@redhat.com>
5728
5729 PR 40488
5730 * tree-pass.h (TDF_ASMNAME): New.
5731 * tree-dump.c (dump_options): Add asmname.
5732 * doc/invoke.texi: Document it.
5733
5734 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
5735 (dump_decl_name): ...here.
5736 (dump_function_name): New flags arg; mind TDF_ASMNAME.
5737 (dump_generic_node): Update dump_function_name calls.
5738 (print_call_name): New flags arg; update all dump calls.
5739 * diagnostic.h (print_call_name): Update.
5740 * gimple-pretty-print.c (dump_gimple_call): Update.
5741
5742 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
5743
5744 PR target/40470
5745 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
5746
5747 2009-06-18 Diego Novillo <dnovillo@google.com>
5748
5749 * doc/plugins.texi: Document plugin_is_GPL_compatible.
5750 * plugin.c (str_license): Declare.
5751 (try_init_one_plugin): Assert that the symbol
5752 'plugin_is_GPL_compatible' exists.
5753
5754 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
5755
5756 * see.c: Remove.
5757 * Makefile.in (OBJS-common): Remove see.o.
5758 (see.o): Remove.
5759 * common.opt (fsee): Mark as preserved for backward compatibility.
5760 * opts.c (common_handle_option): Add OPT_fsee to the backward
5761 compatibility section.
5762 * passes.c (init_optimization_passes, pass_see): Remove pass.
5763 * timevar.def (TV_SEE): Remove.
5764 * tree-pass.h (pass_see): Remove declaration.
5765 * doc/invoke.texi (-fsee): Remove documentation.
5766
5767 2009-06-18 Martin Jambor <mjambor@suse.cz>
5768
5769 * tree-sra.c: Include statistics.h
5770 (sra_stats): New variable.
5771 (sra_initialize): Clear sra_stats.
5772 (create_access_replacement): Increment sra_stats.replacements.
5773 (get_access_replacement): Do not return twice.
5774 (analyze_all_variable_accesses): Increment statistics counter by the
5775 number of scalarized aggregates.
5776 (generate_subtree_copies): Increment sra_stats.subtree_copies.
5777 (sra_modify_expr): Increment sra_stats.exprs.
5778 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
5779 (sra_modify_assign): Increment sra_stats.exprs,
5780 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
5781 (perform_intra_sra): Update statistics counters.
5782 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
5783
5784 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
5785
5786 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
5787 (arm_scalar_mode_supported_p): New function.
5788
5789 2009-06-18 Paul Brook <paul@codesourcery.com>
5790 Sandra Loosemore <sandra@codesourcery.com>
5791
5792 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
5793 (__extendhfsf2, __truncsfhf2): Define.
5794 * config/arm/fp16.c: New file.
5795 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
5796 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
5797
5798 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
5799
5800 * doc/extend.texi (Half-Precision): New section.
5801 * doc/invoke.texi (Option Summary): List -mfp16-format.
5802 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
5803 * config/arm/arm.opt (mfp16-format=): New.
5804 * config/arm/arm.c: Include intl.h.
5805 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
5806 (TARGET_INVALID_RETURN_TYPE): Redefine.
5807 (TARGET_PROMOTED_TYPE): Redefine.
5808 (TARGET_CONVERT_TO_TYPE): Redefine.
5809 (arm_fp16_format): Define.
5810 (all_fpus): Add entry for neon-fp16.
5811 (fp_model_for_fpu): Likewise.
5812 (struct fp16_format): Declare.
5813 (all_fp16_formats): Define.
5814 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
5815 functions.
5816 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
5817 and no ldrh.
5818 (arm_legitimate_index_p): Treat HFmode like HImode.
5819 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
5820 (coproc_secondary_reload_class): Special-case HFmode.
5821 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
5822 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
5823 (arm_init_fp16_builtins): New.
5824 (arm_init_builtins): Call it.
5825 (arm_invalid_parameter_type): New.
5826 (arm_invalid_return_type): New.
5827 (arm_promoted_type): New.
5828 (arm_convert_to_type).
5829 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
5830 format.
5831 (arm_emit_fp16_const): New function.
5832 (arm_mangle_type): Mangle __fp16 as "Dh".
5833 * config/arm/arm.h (TARGET_VFPD32): Make it know about
5834 FPUTYPE_NEON_FP16.
5835 (TARGET_NEON_FP16): New.
5836 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
5837 (enum fputype): Add FPUTYPE_NEON_FP16.
5838 (enum arm_fp16_format_type): Declare.
5839 (arm_fp16_format): Declare.
5840 (LARGEST_EXPONENT_IS_NORMAL): Define.
5841 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
5842 * config/arm/arm-modes.def (HFmode): Define.
5843 * config/arm/vfp.md: (*movhf_vfp): New.
5844 (extendhfsf2): New.
5845 (truncsfhf2): New.
5846 * config/arm/arm.md: (fpu): Add neon_fp16.
5847 (floatsihf2, floatdihf2): New.
5848 (fix_trunchfsi2, fix_trunchfdi2): New.
5849 (truncdfhf2): New.
5850 (extendhfdf2): New.
5851 (movhf): New.
5852 (*arm32_movhf): New.
5853 (*thumb1_movhf): New.
5854 (consttable_2): Add check for HFmode constants.
5855 (consttable_4): Handle HFmode constants.
5856
5857 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
5858
5859 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
5860
5861 2009-06-17 Olivier Hainque <hainque@adacore.com>
5862
5863 * collect2.c (main): Use CONST_CAST2 to perform char ** to
5864 const char ** conversion in AIX specific section.
5865
5866 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
5867
5868 * config/i386/i386.c (ix86_special_builtin_type): Remove
5869 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
5870 (bdesc_special_args): Updated.
5871 (ix86_init_mmx_sse_builtins): Likewise.
5872 (ix86_expand_special_args_builtin): Likewise.
5873
5874 2009-06-17 Richard Henderson <rth@redhat.com>
5875
5876 * tree-pretty-print.c (maybe_dump_asm_name): New.
5877 (dump_decl_name): Use it.
5878 (PRINT_FUNCTION_NAME): Merge into...
5879 (dump_function_name): ... here. Use maybe_dump_asm_name.
5880
5881 2009-06-17 Cary Coutant <ccoutant@google.com>
5882
5883 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
5884 Change caller.
5885 * debug.c (struct gcc_debug_hooks): Change placeholder for
5886 source_line hook.
5887 (debug_nothing_int_charstar_int): Replaced by...
5888 (debug_nothing_int_charstar_int_bool): ...this.
5889 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
5890 source_line prototype.
5891 (debug_nothing_int_charstar_int): Replaced by...
5892 (debug_nothing_int_charstar_int_bool): ...this.
5893 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
5894 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
5895 Output is_stmt operand when necessary.
5896 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
5897 (notice_source_line): Add is_stmt parameter.
5898 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
5899 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
5900 Change callers.
5901 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
5902 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
5903
5904 2009-06-17 Ian Lance Taylor <iant@google.com>
5905
5906 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
5907 Change all uses.
5908 (struct store_by_pieces_d): Rename from store_by_pieces. Change
5909 call uses.
5910
5911 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
5912
5913 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
5914 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
5915 tree_strip_sign_nop_conversions and
5916 tree_ssa_strip_useless_type_conversions rather than stripping
5917 the operations here.
5918 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
5919 Declare them.
5920 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
5921 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
5922 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
5923 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
5924 functions.
5925
5926 2009-06-17 Michael Eager <eager@eagercon.com>
5927
5928 * config/rs6000/constraints.md (register_constraint "d"): New.
5929 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
5930 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
5931 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
5932 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
5933 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
5934 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
5935 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
5936 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
5937 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
5938 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
5939 __fctiwz): Same.
5940 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
5941 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
5942 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
5943 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
5944 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
5945 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
5946 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
5947 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
5948 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
5949 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
5950 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
5951 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
5952 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
5953 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
5954
5955 2009-06-16 Ian Lance Taylor <iant@google.com>
5956
5957 * profile.c (total_num_never_executed): Don't define.
5958 (compute_branch_probabilities): Don't count or print
5959 num_never_executed.
5960 (init_branch_prob): Don't set total_num_never_executed.
5961 (end_branch_prob): Don't print total_num_never_executed.
5962
5963 2009-06-17 David Daney <ddaney@caviumnetworks.com>
5964
5965 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
5966
5967 2009-06-17 David Edelsohn <edelsohn@gnu.org>
5968
5969 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
5970 (nabstd2_fpr): Same.
5971
5972 2009-06-17 Steve Ellcey <sje@cup.hp.com>
5973
5974 * expr.c (expand_assignment): Change complex type check.
5975
5976 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
5977
5978 * doc/plugins.texi (Building GCC plugins): Added new section.
5979
5980 2009-06-17 Ian Lance Taylor <iant@google.com>
5981
5982 * c-pch.c (get_ident): Don't set size of templ array.
5983 (pch_init): Don't set size of partial_pch array.
5984
5985 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
5986 string constant to intialize an array whose size is the length of
5987 the string.
5988
5989 2009-06-17 Richard Guenther <rguenther@suse.de>
5990
5991 PR tree-optimization/40389
5992 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
5993 to addressable types.
5994 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
5995
5996 2009-06-17 Richard Guenther <rguenther@suse.de>
5997
5998 PR middle-end/40460
5999 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
6000 if there is no evolution of left in the loop bail out.
6001 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
6002 chrec_fold_multiply.
6003
6004 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
6005 Janis Johnson <janis187@us.ibm.com>
6006
6007 PR target/39254
6008 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
6009 for the symbol ref of a constant that is the source of a move
6010 - nor for any other not-obvious-label-ref constants.
6011
6012 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
6013
6014 * plugin.c (position_pass): Skip newly inserted pass during list
6015 traversal to avoid repeated insertion.
6016
6017 2009-06-16 Ian Lance Taylor <iant@google.com>
6018
6019 * vec.h (VEC_stack_alloc): Define different version if
6020 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
6021 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
6022 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
6023 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
6024
6025 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
6026
6027 * config.gcc (extra_headers): Add ia32intrin.h for x86.
6028
6029 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
6030 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
6031 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
6032 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
6033 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
6034 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
6035 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
6036 (bdesc_special_args): Add __builtin_ia32_rdtsc and
6037 __builtin_ia32_rdtscp.
6038 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
6039 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
6040 and __builtin_ia32_rorhi.
6041 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
6042 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
6043 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
6044 (ix86_expand_args_builtin): Likewise.
6045 (ix86_expand_special_args_builtin): Likewise.
6046
6047 * config/i386/i386.md (UNSPECV_RDTSCP): New.
6048 (UNSPECV_RDTSC): Likewise.
6049 (UNSPECV_RDPMC): Likewise.
6050 (*bsr): Renamed to ...
6051 (bsr): This
6052 (*bsr_rex64): Renamed to ...
6053 (bsr_rex64): This.
6054 (rdpmc): New.
6055 (*rdpmc): Likewise.
6056 (*rdpmc_rex64): Likewise.
6057 (rdtsc): Likewise.
6058 (*rdtsc): Likewise.
6059 (*rdtsc_rex64): Likewise.
6060 (rdtscp): Likewise.
6061 (*rdtscp): Likewise.
6062 (*rdtscp_rex64): Likewise.
6063
6064 * config/i386/ia32intrin.h: New.
6065
6066 * config/i386/x86intrin.h: Include <ia32intrin.h>.
6067
6068 2009-06-16 Ian Lance Taylor <iant@google.com>
6069
6070 * ira-build.c (copy_info_to_removed_store_destinations):
6071 Initialize parent_a.
6072
6073 2009-06-16 Ian Lance Taylor <iant@google.com>
6074
6075 * c-decl.c (grokdeclarator): Change size_varies to bool.
6076
6077 2009-06-16 Ian Lance Taylor <iant@google.com>
6078
6079 * sel-sched.c: Make forward declarations of move_op_hooks and
6080 fur_hooks explicitly extern.
6081
6082 2009-06-16 Ian Lance Taylor <iant@google.com>
6083
6084 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
6085 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
6086
6087 2009-06-16 Ian Lance Taylor <iant@google.com>
6088
6089 * resource.c (mark_referenced_resources): Change
6090 include_delayed_effects parameter to bool. Change all callers.
6091 (mark_end_of_function_resources): Likewise.
6092 * reorg.c (insn_references_resource_p): Likewise.
6093 (insn_sets_resource_p): Likewise.
6094 * resource.h (mark_referenced_resources): Update declaration.
6095 (mark_end_of_function_resources): Update declaration.
6096
6097 2009-06-16 David Edelsohn <edelsohn@gnu.org>
6098
6099 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
6100
6101 2009-06-16 David Edelsohn <edelsohn@gnu.org>
6102
6103 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
6104 GCC can bootstrap on AIX with GNU Binutils 2.20.
6105
6106 2009-06-16 Ian Lance Taylor <iant@google.com>
6107
6108 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
6109
6110 2009-06-16 Ian Lance Taylor <iant@google.com>
6111
6112 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
6113 inline, not extern inline.
6114 (exact_log2): Likewise.
6115 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
6116 test CLZ_HWI.
6117 (exact_log2): Likewise, but don't test CTZ_HWI.
6118
6119 2009-06-16 Ian Lance Taylor <iant@google.com>
6120
6121 * bitmap.c (bitmap_clear): Don't declare as inline.
6122 * gimple.c (gimplify_assign): Likewise.
6123 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6124 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
6125 (sched_scan_info): Remove duplicate definition.
6126
6127 2009-06-16 Ian Lance Taylor <iant@google.com>
6128
6129 * c-common.c (skip_evaluation): Don't define.
6130 (c_inhibit_evaluation_warnings): Define global variable.
6131 (overflow_warning): Check c_inhibit_evaluation_warnings rather
6132 than skip_evaluation.
6133 (convert_and_check, warn_for_div_by_zero): Likewise.
6134 * c-common.h (skip_evaluation): Don't declare.
6135 (c_inhibit_evaluation_warnings): Declare.
6136 * c-parser.c (c_parser_typeof_specifier): Set
6137 c_inhibit_evaluation_warnings rather than skip_evaluation.
6138 (c_parser_conditional_expression): Likewise.
6139 (c_parser_binary_expression): Likewise.
6140 (c_parser_sizeof_expression): Likewise.
6141 (c_parser_alignof_expression): Likewise.
6142 * c-typeck.c (build_indirect_ref): Check
6143 c_inhibit_evaluation_warnings rather than skip_evaluation.
6144 (build_conditional_expr, build_binary_op): Likewise.
6145
6146 2009-06-16 Richard Guenther <rguenther@suse.de>
6147
6148 * tree-ssa-alias.c (is_escape_site): Remove.
6149 * tree-ssa-alias.h (enum escape_type): Remove.
6150 (is_escape_site): Likewise.
6151 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
6152 via casts and asms without deferring to is_escape_site.
6153
6154 2009-06-16 Jakub Jelinek <jakub@redhat.com>
6155
6156 PR middle-end/40446
6157 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
6158 use gen_lowpart if op0 has complex mode.
6159
6160 2009-06-16 Richard Guenther <rguenther@suse.de>
6161
6162 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
6163 variables add them to ESCAPED.
6164 (find_func_aliases): Do not make all indirectly stored values escaped.
6165
6166 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
6167
6168 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
6169 make_decl_one_only.
6170
6171 2009-06-16 Martin Jambor <mjambor@suse.cz>
6172
6173 PR tree-optimization/40432
6174 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
6175 check whether we need to force gimple register operand.
6176
6177 2009-06-16 Martin Jambor <mjambor@suse.cz>
6178
6179 PR tree-optimization/40413
6180 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
6181 build_ref_for_offset.
6182 (propagate_subacesses_accross_link): Fix a typo in a comment.
6183
6184 2009-06-16 Ira Rosen <irar@il.ibm.com>
6185
6186 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
6187 with additional parameter.
6188 * tree-vectorizer.h (enum vect_def_type): Add new value
6189 vect_nested_cycle.
6190 (enum vect_relevant): Add comments.
6191 (vect_is_simple_reduction): Add new argument.
6192 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
6193 Detect nested cycles.
6194 (vect_is_simple_reduction): Update documentation, add an argument to
6195 distinguish inner-loop reduction from nested cycle, detect nested
6196 cycles, fix printings and indentation, don't swap operands in case
6197 of nested cycle.
6198 (get_initial_def_for_reduction): Handle subtraction.
6199 (vect_create_epilog_for_reduction): Add new argument to specify
6200 reduction variable.
6201 (vect_finalize_reduction): Handle subtraction, fix comments.
6202 (vectorizable_reduction): Handle nested cycles. In case of nested
6203 cycle keep track of the reduction variable position. Call
6204 vect_is_simple_reduction with additional parameter. Use original
6205 statement code in reduction epilogue for nested cycle. Call
6206 vect_create_epilog_for_reduction with additional parameter.
6207 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
6208 inner-loop vectorization.
6209 (vect_recog_widen_sum_pattern): Likewise.
6210 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
6211 and reductions.
6212 (vect_mark_stmts_to_be_vectorized): Likewise.
6213 (vect_get_vec_def_for_operand): Handle nested cycles.
6214
6215 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6216
6217 * doc/invoke.texi (Debugging Options): Fix option index entries
6218 for -fdump-statistics, -frandom-seed add entries for
6219 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
6220 (FRV Options): Fix entries for -mTLS, -mtls.
6221 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
6222 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
6223 (M68hc1x Options): Fix @itemx for -mnominmax.
6224 (MCore Options): Fix entry for -mno-lsim.
6225 (MMIX Options): Fix entry for -mabi=mmixware.
6226 (PDP-11 Options): Fix entry for -mbcopy-builtin.
6227
6228 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
6229
6230 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
6231 Mention the plugin mode of gengtype.
6232 * doc/gty.texi (Source Files Containing Type Information): Likewise.
6233 * gengtype.c: Updated copyright.
6234 (plugin_files, nb_plugin_files) Added new static variables.
6235 (measure_input_list) Care about plugin_files.
6236 (write_rtx_next): Added early return in plugin mode.
6237 (create_file): Updated copyright year in generated file. Added
6238 asserts.
6239 (oprintf): Added early return if NULL outf.
6240 (get_output_file_with_visibility): Care of plugin_files.
6241 (get_output_file_name): May return null.
6242 (write_local): Added early return.
6243 (put_mangled_filename): Ditto.
6244 (finish_root_table): Added check for base_files.
6245 (write_roots): Care about null when plugins.
6246 (main): Added plugin mode.
6247
6248 2009-06-15 Ian Lance Taylor <iant@google.com>
6249
6250 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
6251 * gcov.c (read_count_file): Add braces around variables declared
6252 before label.
6253
6254 * c.opt (Wjump-misses-init): New warning.
6255 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
6256 -Wall and -Wc++-compat if not already set.
6257 (c_common_post_options): Clear warn_jump_misses_init if it was not
6258 set.
6259 * c-decl.c (struct c_binding): Change type field to a union with
6260 new label field. Make it the first field in the struct. Update
6261 references to type to use u.type instead.
6262 (struct c_spot_bindings): Define.
6263 (struct c_goto_bindings): Define.
6264 (c_goto_bindings_p): Define, along with VECs.
6265 (struct c_label_vars): Define.
6266 (struct c_scope): Add has_label_bindings field.
6267 (bind_label, set_spot_bindings): New static functions.
6268 (decl_jump_unsafe, update_spot_bindings): New static functions.
6269 (update_label_decls): New static function.
6270 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
6271 Update binding u.label field to shadowed field.
6272 (c_binding_start_stmt_expr): New function.
6273 (c_binding_end_stmt_expr): New function.
6274 (pushdecl): Don't call c_begin_vm_scope.
6275 (make_label): Add defining and p_label_vars parameters. Change
6276 all callers.
6277 (lookup_label): Correct test for whether a label has not yet been
6278 defined. Call bind_label rather than bind.
6279 (warn_about_goto): New static function.
6280 (lookup_label_for_goto): New function.
6281 (declare_label): Call bind_label rather than bind.
6282 (check_earlier_gotos): New static function.
6283 (define_label): Don't give errors about jumping into statement
6284 expressions or scopes of variably modified types. Call
6285 set_spot_bindings and check_earlier_gotos. Call bind_label
6286 instead of bind. Don't set label_context_stack_se or
6287 label_context_stack_vm.
6288 (c_get_switch_bindings): New function.
6289 (c_release_switch_bindings): New function.
6290 (c_check_switch_jump_warnings): New function.
6291 (start_function): Don't set label_context_stack_se or
6292 label_context_stack_vm.
6293 (finish_function): Likewise.
6294 * c-typeck.c (label_context_stack_se): Don't define.
6295 (label_context_stack_vm): Don't define.
6296 (c_finish_goto_label): Call lookup_label_for_goto rather than
6297 lookup_label. Don't give errors about jumping into a statement
6298 expression or the scope of a variably modified type. Don't set
6299 label_context_stack_se or label_context_stack_vm.
6300 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
6301 fields. Add bindings field.
6302 (c_start_case): Don't set deleted fields. Set bindings field.
6303 (do_case): Rework order of tests. Don't check blocked_stmt_expr
6304 or blocked_vm. Call c_check_switch_jump_warnings.
6305 (c_finish_case): Don't test blocked_stmt_expr field. Call
6306 c_release_switch_bindings.
6307 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
6308 c_switch_stack. Don't walk label_context_stack_se labels. Don't
6309 set label_context_stack_se. Call c_bindings_start_stmt_expr.
6310 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
6311 c_switch_stack. Don't walk label_context_stack_se labels. Don't
6312 set label_context_stack_se. Call c_bindings_end_stmt_expr.
6313 (c_begin_vm_scope, c_end_vm_scope): Don't define.
6314 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
6315 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
6316 (C_DECL_UNJUMPABLE_VM): Don't define.
6317 (C_DECL_UNDEFINABLE_VM): Don't define.
6318 (struct c_label_list): Don't define.
6319 (struct c_label_context_se): Don't define.
6320 (struct c_label_context_vm): Don't define.
6321 (struct c_spot_bindings): Declare.
6322 (c_bindings_start_stmt_expr): Declare.
6323 (c_bindings_end_stmt_expr): Declare.
6324 (lookup_label_for_goto): Declare.
6325 (c_get_switch_bindings, c_release_switch_bindings): Declare.
6326 (c_check_switch_jump_warnings): Declare.
6327 (label_context_stack_se, label_context_stack_vm): Don't declare.
6328 (c_finish_goto_label): Update declaration.
6329 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
6330 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
6331 (Warning Options): Document -Wjump-misses-init.
6332
6333 2009-06-15 Jakub Jelinek <jakub@redhat.com>
6334
6335 * tree-object-size.c (addr_object_size): Fix a pasto in the last
6336 change.
6337
6338 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
6339
6340 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
6341
6342 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
6343
6344 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
6345
6346 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
6347
6348 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
6349
6350 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
6351
6352 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
6353 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
6354 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
6355 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
6356 * dwarf2asm.c (dw2_force_const_mem): Update call to
6357 make_decl_one_only.
6358 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
6359 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
6360 * langhooks.c (lhd_comdat_group): Remove.
6361 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
6362 * tree.h (DECL_COMDAT_GROUP): New.
6363 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
6364 (tree_decl_with_vis): Add comdat_group. Remove one_only.
6365 (make_decl_one_only): Change signature.
6366 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
6367 make_decl_one_only.
6368 (make_decl_one_only): Change signature.
6369 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
6370
6371 2009-06-15 Richard Guenther <rguenther@suse.de>
6372
6373 PR middle-end/40439
6374 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
6375
6376 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6377
6378 * tree-ssa-math-opts.c: Remove extra divide.
6379
6380 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6381
6382 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
6383
6384 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6385
6386 * passes.c: Add bswap pass.
6387 * tree-pass.h: Add pass_optimize_bswap declaration.
6388 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
6389 Include rtl.h, expr.h and optabs.h for optab_handler check.
6390 (struct symbolic_number, pass_optimize_bswap): New definition.
6391 (do_shift_rotate, verify_symbolic_number_p): New functions.
6392 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
6393 (gate_optimize_bswap): New function.
6394 * tree.c (widest_int_cst_value): New function.
6395 * tree.h (widest_int_cst_value): Prototype added.
6396
6397 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
6398
6399 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
6400 REG_EQUAL/REG_EQUIV notes.
6401
6402 2009-06-14 Richard Guenther <rguenther@suse.de>
6403
6404 PR middle-end/40389
6405 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
6406 has its address taken if NRV was applied and it is addressable.
6407 * tree-ssa-structalias.c (get_constraint_for_address_of): New
6408 function split out from ...
6409 (get_constraint_for_1): ... here.
6410 (handle_rhs_call): Use it to mark the return slot escaped if
6411 it is addressable and NRV was applied.
6412
6413 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
6414
6415 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
6416 Change first argument type to location_t.
6417 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
6418 Do not set input_location.
6419 Use loc instead of input_location throughout.
6420
6421 2009-06-13 Richard Guenther <rguenther@suse.de>
6422
6423 PR tree-optimization/40421
6424 * tree-predcom.c (should_unroll_loop_p): Remove.
6425 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
6426
6427 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6428
6429 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6430 Add location argument.
6431
6432 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
6433
6434 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
6435 build_decl.
6436 * config/s390/s390.c (s390_build_builtin_va_list): Same.
6437 (s390_gimplify_va_arg): Pass location to create_artificial_label.
6438 * config/spu/spu-protos.h: Add location to
6439 spu_resolve_overloaded_builtin.
6440 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
6441 spu_build_builtin_va_list.
6442 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
6443 argument. Pass location to build_function_call_vec.
6444 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
6445 build_decl.
6446 (emit_fpu_switch): Same.
6447 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
6448 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
6449 to build_decl and create_artificial_label.
6450 (xtensa_gimplify_va_arg_expr): Same.
6451 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
6452 (xstormy16_gimplify_va_arg_expr): Same.
6453 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
6454 * config/arm/arm.c (arm_build_builtin_va_list): Same.
6455 * config/mips/mips.c (mips_build_builtin_va_list): Same.
6456 (mips16_build_function_stub): Same.
6457 (mips16_build_call_stub): Same.
6458
6459 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
6460
6461 PR target/40327
6462 * arm/constraints.md (Pa, Pb): New constraints.
6463 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
6464 split pattern to deal with them.
6465
6466 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
6467
6468 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
6469 fix index entry for -Xpreprocessor.
6470
6471 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
6472
6473 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6474 Add location argument to build_decl call.
6475 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
6476 (rs6000_init_builtins): Same.
6477 (spe_init_builtins): Same.
6478 (rs6000_gimplify_va_arg): Add location argument to
6479 create_artificial_label call.
6480
6481 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
6482
6483 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
6484 * combine-stack-adj.c (pass_stack_adjustments): Use it.
6485 * Makefile.in: Fix GGC dependency for gcse.o.
6486
6487 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
6488
6489 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
6490 * gimple-pretty-print.c (dump_gimple_stmt): Same.
6491 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
6492 created.
6493 * c-parser.c (c_parser_binary_expression): Use current column while
6494 building binary operations.
6495 * common.opt (fshow-column): Enable by default.
6496 * tree-vrp.c (check_array_ref): Use warning_at.
6497 (check_array_bounds): Use location from call back if expr has no
6498 location.
6499 * tree.h: Add location argument to maybe_fold_*.
6500 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
6501 (maybe_fold_offset_to_array_ref): Add location argument and use it.
6502 (maybe_fold_offset_to_component_ref): Same.
6503 (maybe_fold_offset_to_reference): Same.
6504 (maybe_fold_offset_to_address): Same.
6505 (maybe_fold_stmt_indirect): Same.
6506 (maybe_fold_stmt_addition): Same.
6507 (fold_stmt_r): Pass location to maybe_fold_*.
6508 (fold_gimple_assign): Same.
6509 * c-tree.h: Add location argument to finish_decl,
6510 default_function_array_conversion, store_init_value.
6511 * c-decl.c (define_label): Use error_at.
6512 (c_make_fname_decl): Pass location to finish_decl.
6513 (finish_decl): New location argument.
6514 (build_compound_literal): Pass location to store_init_value.
6515 (grokdeclarator): Pass location to finish_decl.
6516 (grokfield): Same.
6517 * c-typeck.c (array_to_pointer_conversion): New location argument.
6518 (function_to_pointer_conversion): Same.
6519 (default_function_array_conversion): Same.
6520 (parser_build_unary_op): Pass location to overflow_warning.
6521 (parser_build_binary_op): Same. Use warning_at.
6522 (build_unary_op): Pass location to array_to_pointer_conversion.
6523 (build_c_cast): Pass location to digest_init.
6524 (build_modify_expr): New location argument.
6525 (convert_for_assignment): Same.
6526 (store_init_value): Same.
6527 (digest_init): Same.
6528 (output_init_element): Pass location to digest_init and
6529 array_to_pointer_conversion.
6530 (c_finish_return): Pass location to convert_for_assignment.
6531 * gimplify.c (gimplify_conversion): Pass location to
6532 maybe_fold_offset_to_address.
6533 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
6534 to maybe_fold_stmt_addition.
6535 * c-omp.c (c_finish_omp_atomic): Pass new location to
6536 build_modify_expr.
6537 (c_finish_omp_for): Same.
6538 * c-common.c (overflow_warning): New argument.
6539 * c-common.h: New argument to build_modify_expr, overflow_warning.
6540 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
6541 finish_decl.
6542 (c_parser_initializer): Pass location to
6543 default_function_array_conversion.
6544 (c_parser_initelt): Same.
6545 (c_parser_initval): Same.
6546 (c_parser_asm_operands): Same.
6547 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
6548 (c_parser_conditional_expression): Same.
6549 (c_parser_binary_expression): Add location info to stack. Use it.
6550 (c_parser_unary_expression): Pass location to
6551 default_function_array_conversion, parser_build_unary_op,
6552 build_indirect_ref, c_parser_postfix_expression_after_primary.
6553 (c_parser_postfix_expression_after_primary): New location argument.
6554 Use it.
6555 (c_parser_expression_conv): Pass location to
6556 default_function_array_conversion.
6557 (c_parser_expr_list): Same.
6558 (c_parser_omp_atomic): Same.
6559 (c_parser_omp_for_loop): Same.
6560 * c-tree.h: (struct c_declarator): Add comment to id_loc.
6561 (build_array_declarator): New argument.
6562 * c-decl.c (build_array_declarator): Add location argument.
6563 (grokdeclarator): Set id_loc for cdk_array.
6564 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
6565 build_array_declarator.
6566 * tree.c (build_omp_clause): Add location argument.
6567 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
6568 (OMP_CLAUSE_LOCATION): New macro.
6569 (struct tree_omp_clause): Add location field.
6570 (build_omp_clause): Add argument.
6571 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
6572 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
6573 build_omp_clause.
6574 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
6575 (cp_parser_omp_clause_collapse): Same.
6576 (cp_parser_omp_clause_default): Same.
6577 (cp_parser_omp_clause_if): Same.
6578 (cp_parser_omp_clause_nowait): Same.
6579 (cp_parser_omp_clause_num_threads): Same.
6580 (cp_parser_omp_clause_ordered): Same.
6581 (cp_parser_omp_clause_schedule): Same.
6582 (cp_parser_omp_clause_untied): Same.
6583 (cp_parser_omp_for_loop): Same.
6584 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
6585 * c-tree.h (c_start_case): Add location argument.
6586 (c_process_expr_stmt): Same.
6587 (c_finish_goto_*): Same.
6588 * tree-parloops.c (initialize_reductions): Pass location to
6589 build_omp_clause.
6590 (create_parallel_loop): Same.
6591 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
6592 (gfc_trans_omp_reduction_list): Same.
6593 (gfc_trans_omp_clauses): Same.
6594 (gfc_trans_omp_do): Same.
6595 * c-typeck.c (c_finish_goto_label): Same.
6596 (c_finish_goto_ptr): New location argument.
6597 (c_start_case): Same.
6598 (emit_side_effect_warnings): Same.
6599 (c_process_expr_stmt): Same.
6600 (c_finish_stmt_expr): Same.
6601 (c_finish_omp_clauses): Use error_at instead of error.
6602 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
6603 build_omp_clause.
6604 * c-omp.c (c_split_parallel_clauses): New location argument.
6605 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
6606 to build_omp_clause.
6607 (convert_local_reference_stmt): Same.
6608 (convert_gimple_call): Same.
6609 * c-common.h (c_split_parallel_clauses): New argument.
6610 * c-parser.c (c_parser_statement_after_labels): Pass location to
6611 c_finish_goto_label.
6612 (c_parser_switch_statement): Pass location to c_start_case.
6613 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
6614 and c_process_expr_stmt.
6615 (c_parser_omp_variable_list): Add location argument.
6616 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
6617 (c_parser_omp_clause_default): Same.
6618 (c_parser_omp_clause_if): Same.
6619 (c_parser_omp_clause_num_threads): Same.
6620 (-c_parser_omp_clause_ordered): Same.
6621 (c_parser_omp_clause_reduction): Pass location to
6622 c_parser_omp_variable_list.
6623 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
6624 (c_parser_omp_clause_untied): Same.
6625 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
6626 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
6627
6628 * c-tree.h (check_for_loop_decls, undeclared_variable,
6629 build_component_ref, build_array_ref, build_external_ref,
6630 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
6631 build_conditional_expr, build_compound_expr, c_cast_expr,
6632 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
6633 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
6634 argument.
6635 * c-semantics.c (build_stmt): Same.
6636 (build_case_label): Same.
6637 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
6638 (undeclared_variable): New argument.
6639 (make_label): Same.
6640 (lookup_label): Pass location on down.
6641 (define_label): Same.
6642 (finish_decl): Same.
6643 (build_compound_literal): Same.
6644 (finish_struct): Same.
6645 (finish_function): Do not set location here.
6646 (check_for_loop_decls): New argument.
6647 * tree.c (save_expr): Set location.
6648 (build_empty_stmt): New argument.
6649 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
6650 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
6651 * builtins.c (gimplify_va_arg_expr): Use locations.
6652 (expand_builtin_sync_operation): Same.
6653 * c-typeck.c (build_component_ref): New argument.
6654 (build_array_ref): Same.
6655 (build_external_ref): Same.
6656 (c_expr_sizeof_expr): Same.
6657 (c_expr_sizeof_type): Same.
6658 (parser_build_unary_op): Same.
6659 (build_conditional_expr): Same.
6660 (build_compound_expr): Pass location on down.
6661 (build_compound_expr): New argument.
6662 (build_c_cast): Same.
6663 (c_cast_expr): Same.
6664 (build_asm_expr): Same.
6665 (c_finish_return): Same.
6666 (c_process_expr_stmt): Pass location on down.
6667 (c_finish_stmt_expr): New argument.
6668 (push_clenaup): Same.
6669 (c_finish_omp_parallel): Same.
6670 (c_finish_omp_task): Same.
6671 * gimplify.c (gimplify_call_expr): Pass location on down.
6672 * c-omp.c (c_finish_omp_master): New argument.
6673 (c_finish_omp_critical): Same.
6674 (c_finish_omp_ordered): Same.
6675 (c_finish_omp_barrier): Same.
6676 (-c_finish_omp_taskwait): Same.
6677 (c_finish_omp_atomic): Same.
6678 (c_finish_omp_flush): Same.
6679 * tree-inline.c (copy_tree_body_r): Pass location on down.
6680 (inline_forbidden_p): Remove use of input_location.
6681 * c-gimplify.c (c_build_bind_expr): New argument.
6682 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
6683 (c_sizeof_or_alignof_type): New argument.
6684 (c_alignof_expr): Same.
6685 (build_va_arg): Same.
6686 (c_add_case_label): Same.
6687 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
6688 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
6689 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
6690 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
6691 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
6692 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
6693 New argument.
6694 * stub-objc.c (objc_build_selector_expr): Same.
6695 (objc_build_throw_stmt): Same.
6696 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
6697 (c_parser_initelt): Same.
6698 (c_parser_compound_statement): Same.
6699 (c_parser_compound_statement_nostart): Same.
6700 (c_parser_label): Same.
6701 (c_parser_statement_after_labels): Same.
6702 (c_parser_if_body): Same.
6703 (c_parser_else_body): Same.
6704 (c_parser_if_statement): Same.
6705 (c_parser_switch_statement): Same.
6706 (c_parser_while_statement): Same.
6707 (c_parser_do_statement): Same.
6708 (c_parser_for_statement): Same.
6709 (c_parser_asm_statement): Same.
6710 (c_parser_conditional_expression): Same.
6711 (c_parser_binary_expression): Same.
6712 (c_parser_cast_expression): Same.
6713 (c_parser_unary_expression): Same.
6714 (c_parser_sizeof_expression): Same.
6715 (c_parser_alignof_expression): Same.
6716 (c_parser_postfix_expression): Same.
6717 (c_parser_expression): Same.
6718 (c_parser_objc_receiver): Same.
6719 (c_parser_omp_variable_list): Same.
6720 (c_parser_omp_structured_block): Same.
6721 (c_parser_omp_atomic): New argument.
6722 (c_parser_omp_barrier): Same.
6723 (c_parser_omp_critical): Same.
6724 (c_parser_omp_flush): Pass location on down.
6725 (c_parser_omp_for_loop): New argument.
6726 (c_parser_omp_for): Same.
6727 (c_parser_omp_master): Same.
6728 (c_parser_omp_ordered): Same.
6729 (c_parser_omp_sections_scope): Same.
6730 (c_parser_omp_sections): Same.
6731 (c_parser_omp_parallel): Same.
6732 (c_parser_omp_single): Same.
6733 (c_parser_omp_task): Same.
6734 (c_parser_omp_taskwait): Pass location on down.
6735 (c_parser_omp_construct): Same.
6736 (c_parser_omp_threadprivate): Same.
6737 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
6738 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
6739 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
6740 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
6741 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
6742 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
6743 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
6744 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
6745 config/i386/i386.c, stmt.c:
6746 Add location argument to the following function definitions and/or
6747 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
6748 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
6749 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
6750 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
6751 do_case, c_finish_bc_stmt, build_compound_literal,
6752 build_function_call.
6753 * c-decl.c (build_compound_literal): Add location argument.
6754 Make all diagnostic calls use location.
6755 (start_struct): Same.
6756 (finish_struct): Same.
6757 (start_enum): Same.
6758 (build_enumerator): Same.
6759 (start_function): Same.
6760 (grokdeclarator): Make all diagnostic calls use location.
6761 (store_parm_decls_oldstyle): Same.
6762 * c-typeck.c (build_function_call): Add location argument.
6763 Make all diagnostic calls use location.
6764 (do_case): Same.
6765 (c_finish_bc_stmt): Same.
6766 * tree-nested.c (get_trampoline_type): Add argument.
6767 Pass location to build_decl.
6768 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
6769 * rtl.h (RTL_LOCATION): New.
6770 * c-common.c (c_add_case_label): Add location argument.
6771 Make all diagnostic calls use location.
6772 * c-common.h: Add location argument to make_fname_decl, do_case,
6773 c_add_case_label, build_function_call, resolve_overloaded_builtin.
6774 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
6775 Set it appropriately for every case. Pass enum_loc to start_enum
6776 call. Pass value_loc first to build_enumerator. Pass enum_loc to
6777 parser_xref_tag.
6778 (c_parser_struct_or_union_specifier): Save location. Use it for
6779 start_struct, finish_struct, and parser_xref_tag.
6780
6781 2009-06-12 Ian Lance Taylor <iant@google.com>
6782
6783 * fold-const.c (fold_unary): Rename local variable and to and_expr.
6784
6785 * c-opts.c (c_common_handle_option): For -Wc++-compat set
6786 cpp_opts->warn_cxx_operator_names.
6787
6788 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
6789
6790 PR tree-opt/38865
6791 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
6792 is returns NULL and OP is a VCE, look through the VCE.
6793
6794 2009-06-12 Ian Lance Taylor <iant@google.com>
6795
6796 PR bootstrap/40430
6797 * collect2.c (main): Use CONST_CAST2 in code inside #if
6798 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
6799
6800 2009-06-12 Joey Ye <joey.ye@intel.com>
6801
6802 PR middle-end/39146
6803 * cfgexpand.c (get_decl_align_unit): Update
6804 max_used_stack_slot_alignment with align instead of
6805 stack_alignment_needed.
6806
6807 * function.c (assign_stack_local_1): Update
6808 max_used_stack_slot_alignment with alignment_in_bits instead
6809 of stack_alignment_needed.
6810 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
6811 here.
6812
6813 2009-06-12 Jakub Jelinek <jakub@redhat.com>
6814
6815 * dwarf2out.c (last_var_location_insn): New variable.
6816 (dwarf2out_end_epilogue): Clear last_var_location_insn.
6817 (dwarf2out_var_location): Don't record anything after last real
6818 insn. Only change labels if there were any real instructions
6819 in between last note and this one, or if changed sections.
6820
6821 2009-06-11 Richard Henderson <rth@redhat.com>
6822
6823 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
6824 note when storing the frame pointer in a register.
6825 (FRP): Don't redefine to nothing for epilogue.
6826 (alpha_expand_epilogue): Mark register and sp restores.
6827 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
6828
6829 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
6830 when gen_lowpart is needed.
6831
6832 2009-06-11 Richard Henderson <rth@redhat.com>
6833
6834 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
6835
6836 * dwarf2out.c (need_data_align_sf_opcode): New.
6837 (div_data_align): Move earlier.
6838 (def_cfa_1, reg_save): Use it.
6839
6840 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
6841
6842 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
6843 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
6844 (ix86_handle_option): Handle OPT_mcrc32.
6845 (ix86_target_string): Add -mcrc32.
6846 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
6847
6848 * config/i386/i386.h (TARGET_CRC32): New.
6849
6850 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
6851 (sse4_2_crc32di): Likewise.
6852
6853 * config/i386/i386.opt (mcrc32): New.
6854
6855 * doc/invoke.texi: Document -mcrc32.
6856
6857 2009-06-11 Richard Henderson <rth@redhat.com>
6858
6859 * common.opt (gdwarf-): Accept a version number.
6860 * doc/invoke.texi (gdwarf-): Update docs.
6861 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
6862 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
6863 version level, and record it.
6864
6865 * dwarf2.h (DW_CIE_VERSION): Remove.
6866 * dwarf2out.c (DWARF_VERSION): Remove.
6867 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
6868 (output_call_frame_info): Use CIE version 3 for dwarf3,
6869 or if the return register column is out of range for version 1.
6870 (dwarf_stack_op_name): Add all dwarf3 values.
6871 (DEBUG_PUBTYPES_SECTION): New.
6872 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
6873 encoding change for dwarf3.
6874 (output_die) [dw_val_class_die_ref]: Likewise.
6875 (output_compilation_unit_header): Emit correct version for dwarf3.
6876 (output_line_info): Likewise.
6877 (output_pubnames): Update for DWARF_VERSION removal.
6878 (output_aranges): Likewise.
6879 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
6880 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
6881 (dwarf2out_finish): Likewise.
6882
6883 2009-06-11 David Daney <ddaney@caviumnetworks.com>
6884
6885 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
6886 in r148403.
6887
6888 2009-06-11 David Daney <ddaney@caviumnetworks.com>
6889
6890 PR c/39252
6891 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
6892 * builtins.c (expand_builtin_unreachable): New function.
6893 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
6894 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
6895 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
6896 successors.
6897 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
6898 searching for missing barriers.
6899
6900 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6901
6902 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
6903 when -fprofile-generate* was passed.
6904 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
6905
6906 2009-06-11 Anthony Green <green@moxielogic.com>
6907
6908 * config/moxie/moxie.md: Define length attribute for all instructions.
6909 (rCC): Define.
6910 (*b<cond:code>): Support limited branch ranges for new PC-relative
6911 branch instructions.
6912 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
6913
6914 2009-06-11 Jakub Jelinek <jakub@redhat.com>
6915
6916 * config/i386/i386.c (min_insn_size): Use get_attr_length
6917 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
6918 For __asm return 0.
6919
6920 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
6921 instead of emit_insn_before.
6922
6923 2009-06-10 Ian Lance Taylor <iant@google.com>
6924
6925 PR bootstrap/40408
6926 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
6927 GIMPLE_SWITCH.
6928
6929 2009-06-10 Revital Eres <eres@il.ibm.com>
6930
6931 * passes.c (init_optimization_passes): Reschedule
6932 predictive-commoning pass before complete unroll pass.
6933
6934 2009-06-10 Martin Jambor <mjambor@suse.cz>
6935
6936 * cgraph.c (cgraph_node_can_be_local_p): New function.
6937 (cgraph_make_node_local): New function.
6938 * cgraph.h (cgraph_node_can_be_local_p): Declare.
6939 (cgraph_make_node_local): Declare.
6940
6941 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
6942
6943 * tree.h (tree_base): Add packed_flag and user_align fields.
6944 Decrease size of spare field.
6945 (TYPE_USER_ALIGN): Use user_align from tree_base.
6946 (DECL_USER_ALIGN): Likewise.
6947 (TYPE_PACKED): Use packed_flag from tree_base.
6948 (DECL_PACKED): Likewise.
6949 (tree_type): Delete packed_flag and user_align fields. Widen
6950 precision field. Widen mode field and shuffle fields to align
6951 mode on an 8-bit boundary.
6952 (tree_decl_common): Delete decl_flag_1 and user_align fields.
6953 Renumber decl_flag_* fields. Fix comments. Widen
6954 decl_common_unused field.
6955 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
6956 (DECL_EXTERNAL): Likewise.
6957 (DECL_BIT_FIELD): Likewise.
6958 (DECL_NONADDRESSABLE_P): Likewise.
6959 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
6960 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
6961
6962 2009-06-10 Ian Lance Taylor <iant@google.com>
6963
6964 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
6965 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
6966 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
6967 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
6968 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
6969 DEF_VEC_ALLOC_FUNC_P.
6970 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
6971 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
6972 DEF_VEC_ALLOC_FUNC_O.
6973 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
6974 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
6975 DEF_VEC_ALLOC_FUNC_I.
6976 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
6977 (vec_stack_p_reserve_exact_1): Declare.
6978 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
6979 (vec_stack_free): Declare.
6980 (VEC_stack_alloc): Define.
6981 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
6982 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
6983 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
6984 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
6985 for void_p.
6986 (stack_vecs): New static variable.
6987 (vec_stack_p_reserve_exact_1): New function.
6988 (vec_stack_o_reserve_1): New static function.
6989 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
6990 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
6991 (vec_stack_free): New function.
6992 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
6993 (VEC_df_ref_stack_alloc): Define.
6994 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
6995 DEF_VEC_ALLOC_P_STACK.
6996 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
6997 (struct df_collection_rec): Change _vec fields to VEC. Remove
6998 _use fields.
6999 (df_free_collection_rec): Adjust for new fields.
7000 (df_insn_rescan): Use new df_collection_rec fields.
7001 (df_notes_rescan, df_canonize_collection_rec): Likewise.
7002 (df_ref_create_structure, df_ref_record): Likewise.
7003 (df_get_conditional_uses, df_get_call_refs): Likewise.
7004 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
7005 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
7006 (df_record_exit_block_uses, df_bb_verify): Likewise.
7007 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
7008 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
7009 Remove count parameter. Change return type to void. Change all
7010 callers.
7011 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
7012 Remove count parameter. Change return type to void. Change all
7013 callers.
7014 (df_install_refs): Change old_vec parameter to VEC. Remove count
7015 parameter. Change all callers.
7016 (df_install_mws): Change old_vec parameter to VEC. Remove count
7017 parameter. Change all callers.
7018 (df_refs_verify): Change new_rec parameter to VEC. Change call
7019 callers.
7020 (df_mws_verify): Likewise.
7021
7022 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
7023
7024 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
7025
7026 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
7027
7028 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
7029
7030 2009-06-10 Anthony Green <green@moxielogic.com>
7031
7032 * config/moxie/crti.asm: New file.
7033 * config/moxie/crtn.asm: New file.
7034 * config/moxie/moxie.c: New file.
7035 * config/moxie/moxie.h: New file.
7036 * config/moxie/sfp-machine.h: New file.
7037 * config/moxie/moxie-protos.h: New file.
7038 * config/moxie/t-moxie: Created.
7039 * config/moxie/t-moxie-softfp: Created.
7040 * config/moxie/moxie.md: Created.
7041 * config/moxie/constraints.md: Created.
7042 * config.gcc: Add moxie support.
7043 * doc/md.texi (Machine Constraints): Add moxie constraints.
7044 * doc/contrib.texi (Contributors): Mention moxie port.
7045 * doc/install.texi (Specific): Mention the moxie port.
7046
7047 2009-06-09 Ian Lance Taylor <iant@google.com>
7048
7049 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
7050 compiling with C++.
7051 * optabs.c (optab_table): Only use designated initializers if
7052 HAVE_DESIGNATED_INITIALIZERS is defined.
7053 (convert_optab_table): Likewise.
7054 (init_optabs): Always call init_insn_codes if
7055 HAVE_DESIGNATED_INITIALIZERS is not defined.
7056
7057 2009-06-09 Ian Lance Taylor <iant@google.com>
7058
7059 * targhooks.c (default_builtin_vectorized_function): Change fn
7060 parameter to unsigned int.
7061 (default_builtin_vectorized_conversion): Change code parameter to
7062 unsigned int.
7063 (default_builtin_reciprocal): Change fn parameter to unsigned int.
7064 * targhooks.h: Update declarations.
7065 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
7066 parameter to unsigned int.
7067
7068 * c-typeck.c (comptypes_check_enum_int): New static function.
7069 (comptypes_internal): Add enum_and_int_p parameter. Change all
7070 callers.
7071 (comp_target_types): Add location parameter. Change all callers.
7072 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
7073 Change all callers.
7074 (function_types_compatible_p, type_lists_compatible_p): Likewise.
7075 (build_conditional_expr): Add colon_loc parameter. Change all
7076 callers.
7077 (convert_for_assignment): Add location parameter. Change all callers.
7078 * c-parser.c (c_parser_conditional_expression): Pass location of
7079 colon to build_conditional_expr.
7080 * c-tree.h (build_conditional_expr): Update declaration.
7081
7082 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
7083
7084 * graphite.c: Revert previous patch.
7085
7086 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
7087
7088 PR bootstrap/40103
7089 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7090
7091 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
7092
7093 * tree-ssa-loop-prefetch.c
7094 (loop_prefetch_arrays): Fixed a portability problem in printf format
7095 string.
7096
7097 2009-06-09 Martin Jambor <mjambor@suse.cz>
7098
7099 PR tree-optimization/40351
7100 * tree-sra.c (propagate_subacesses_accross_link): Check that a
7101 refrence to a potential artifical subaccess can be constructed.
7102
7103 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
7104
7105 * config/sh/sh-protos.h (sh_optimization_options): Declare.
7106 (sh_override_options): Likewise.
7107 * config/sh/sh.c: Include params.h.
7108 (sh_optimization_options): New.
7109 (sh_override_options): Likewise.
7110 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
7111 (OVERRIDE_OPTIONS): Use sh_override_options.
7112
7113 2009-06-08 Jakub Jelinek <jakub@redhat.com>
7114
7115 * dwarf2out.c (emit_cfa_remember): New variable.
7116 (add_fde_cfi): If emit_cfa_remember, recurse to add
7117 DW_CFA_remember_state first.
7118 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
7119 instead just set emit_cfa_remember.
7120
7121 2009-06-08 Jan Hubicka <jh@suse.cz>
7122
7123 PR debug/40126
7124 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
7125
7126 2009-06-08 Jan Hubicka <jh@suse.cz>
7127
7128 PR middle-end/39834
7129 * cgraphunit.c (save_inline_function_body): Do not copy transform
7130 hooks for saved inline bodies.
7131 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
7132 for given function.
7133
7134 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
7135
7136 * jump.c (returnjump_p): Handle delayed branches. Add missing
7137 function comment.
7138
7139 2009-06-08 Jan Hubicka <jh@suse.cz>
7140
7141 PR middle-end/40102
7142 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
7143 original node might've been modified.
7144 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
7145
7146 2009-06-08 Jakub Jelinek <jakub@redhat.com>
7147
7148 * tree-object-size.c (addr_object_size): Add OSI argument.
7149 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
7150 (compute_builtin_object_size, expr_object_size): Adjust callers.
7151 (plus_stmt_object_size): Call addr_object_size instead of
7152 compute_builtin_object_size.
7153
7154 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
7155 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7156
7157 * tree-ssa-loop-prefetch.c
7158 (gather_memory_references): Introduced a counter for the number of
7159 memory references.
7160 (anything_to_prefetch_p): Introduced a counter for the number of
7161 prefetches.
7162 (is_loop_prefetching_profitable): New function with a cost model
7163 for prefetching.
7164 (loop_prefetch_arrays): Use the new cost model to determine if
7165 prefetching is profitable.
7166 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
7167 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
7168 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
7169 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
7170 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
7171 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
7172
7173 2009-06-08 Michael Matz <matz@suse.de>
7174
7175 PR debug/40012
7176 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
7177 partitions use the same.
7178 (expand_one_var): Deal with DECL_RTL sometimes begin set also
7179 for basevars of SSA_NAMEs.
7180 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
7181 to not expand them twice.
7182 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
7183 multiple places.
7184
7185 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
7186
7187 * common.opt (fcompare-debug=, fcompare-debug-second): New.
7188 (fdump-final-insns=, gtoggle): New.
7189 * doc/invoke.texi: Document them.
7190 * final.c (rest_of_clean_state): Dump final insn stream.
7191 * gcc.c (invoke_as): Hook in -fcompare-debug.
7192 (static_spec_functions): Add compare-debug-dump-opt,
7193 compare-debug-self-opt and compare-debug-auxbase-opt.
7194 (compare_debug, compare_debug_second, compare_debug_opt): New.
7195 (switches_debug_check, n_switches_debug_check): New.
7196 (debug_auxbase_opt, debug_check_temp_file): New.
7197 (process_command): Handle -fno-compare-debug, -fcompare-debug and
7198 -fcompare-debug=*.
7199 (do_self_spec): Handle arguments after switches.
7200 (do_spec_1): Add .gk extension to temp file basenames for compare.
7201 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
7202 (cc1_options): Use it instead of normal auxbase computation for
7203 the second compare-debug compilation.
7204 (compare_files): New.
7205 (main): Set up and implement compare debug mode.
7206 (compare_debug_dump_opt_spec_function): New.
7207 (compare_debug_self_opt_spec_function): New.
7208 (compare_debug_auxbase_opt_spec_function): New.
7209 * toplev.c (process_options): Handle flag_gtoggle,
7210 flag_dump_final_insns.
7211 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
7212 during -fcompare-debug-second compilation.
7213
7214 2009-06-07 Ian Lance Taylor <iant@google.com>
7215
7216 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
7217 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
7218
7219 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
7220 with no default node. Change warning with %H to warning_at.
7221 Don't clear warn_switch around case checking.
7222 * doc/invoke.texi (Warning Options): Clarify distinction between
7223 -Wswitch and -Wswitch-enum.
7224
7225 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7226
7227 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
7228
7229 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7230
7231 * gbl-ctors.h: Add header guard.
7232
7233 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7234
7235 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
7236 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
7237 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
7238 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
7239 prototypes for removed functions.
7240 (expressions_equal_p): Move to ...
7241 * tree-ssa-sccvn.h: ... here and ...
7242 * matrix-reorg.c: ... adjust includes.
7243
7244 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7245
7246 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
7247
7248 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7249
7250 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
7251 (finish_function): Remove erroneous whitespace.
7252
7253 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7254
7255 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
7256 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
7257
7258 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7259
7260 * errors.c (internal_error): Commentary typo fix.
7261 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
7262 * tree-ssa-pre.c: Ditto.
7263
7264 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7265
7266 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
7267 them is supposed to hold actual statements.
7268
7269 2009-06-06 Ian Lance Taylor <iant@google.com>
7270
7271 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
7272 empty statements can now have attributes.
7273
7274 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
7275
7276 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
7277 * config/mips/mips.md: Ditto.
7278
7279 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
7280
7281 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
7282 _RELOCATABLE.
7283 (__eabi_uconvert): Likewise.
7284
7285 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
7286
7287 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
7288 CFI_* definitions with IN_GCC.
7289
7290 2009-06-05 David Edelsohn <edelsohn@gnu.org>
7291
7292 * xcoffout.h (xcoffout_source_line): Update prototype.
7293
7294 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7295
7296 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
7297 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
7298
7299 2009-06-05 Jakub Jelinek <jakub@redhat.com>
7300
7301 PR middle-end/40340
7302 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
7303 inlined_function_outer_scope_p blocks for artificial inlines
7304 even at -g0/-g1.
7305 * tree.c (tree_nonartificial_location): Rewrite using
7306 block_nonartificial_location.
7307
7308 2009-06-05 Revital Eres <eres@il.ibm.com>
7309 Leehod Baruch <leehod@il.ibm.com>
7310
7311 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
7312 (expand_expr_real_1): Remove comment.
7313 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7314 Vectorize misaligned access when the target supports it.
7315 (vect_supportable_dr_alignment): Check for unaligned access support.
7316 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
7317 and remove asset.
7318
7319 2009-06-05 Julian Brown <julian@codesourcery.com>
7320
7321 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
7322 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
7323
7324 2009-06-05 Richard Guenther <rguenther@suse.de>
7325
7326 PR bootstrap/40350
7327 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
7328 as possibly unused.
7329
7330 2009-06-05 Jakub Jelinek <jakub@redhat.com>
7331
7332 * config/s390/s390.c (global_not_special_regno_p): New static inline.
7333 (save_gprs): Don't tell unwinder when a global register is saved.
7334 (s390_emit_epilogue): Emit needed epilogue unwind info.
7335
7336 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
7337
7338 * dwarf2out.c (deferred_asm_name): New.
7339 (add_name_and_src_coords_attributes): Defer creation of
7340 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
7341 computed yet.
7342 (move_linkage_attr): New.
7343 (dwarf2out_finish): Revisit deferrals and emit attributes at the
7344 right place.
7345
7346 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
7347
7348 * tree-nested.c (finalize_nesting_tree_1): Declare the
7349 frame_decl in the binding tree.
7350
7351 2009-06-04 Cary Coutant <ccoutant@google.com>
7352
7353 * basic-block.h (struct basic_block_def): Add discriminator field.
7354 * dbxout.c (dbxout_source_line): Add new parameter. Change all
7355 callers.
7356 * debug.c (do_nothing_debug_hooks): Add additional entry.
7357 (debug_nothing_int_charstar_int): New function.
7358 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
7359 (debug_nothing_int_charstar_int): New declaration.
7360 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
7361 discriminator value in .loc directive.
7362 * final.c (last_discriminator): New variable.
7363 (discriminator): New variable.
7364 (final_start_function): Initialize above variables, pass current
7365 discriminator to debug hook.
7366 (notice_source_line): Check for discriminator change.
7367 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
7368 * sdbout.c (sdbout_source_line): New parameter.
7369 * tree-cfg.c (struct locus_discrim_map): New structure type.
7370 (discriminator_per_locus): New hash table.
7371 (build_gimple_cfg): Allocate and free discriminator hash table.
7372 (make_edges): Call assign_discriminator.
7373 (locus_map_hash): New function.
7374 (locus_map_eq): New function.
7375 (next_discriminator_for_locus): New function.
7376 (same_line_p): New function.
7377 (assign_discriminator): New function.
7378 (make_cond_expr_edges): Call assign_discriminator.
7379 (make_gimple_switch_edges): Likewise.
7380 (first_non_label_stmt): New function.
7381 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
7382 all callers.
7383 * xcoffout.c (xcoffout_source_line): Add new parameter.
7384
7385 * configure.ac (gcc_cv_as_discriminator): New configury check for
7386 gas support for discriminator.
7387 * configure: Regenerate.
7388 * config.in: Regenerate.
7389
7390 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7391
7392 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
7393 val after checking for integers.
7394
7395 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
7396
7397 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
7398 X64_REGPARM_MAX.
7399 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
7400 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
7401 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
7402 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
7403 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
7404 X64_SSE_REGPARM_MAX.
7405 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
7406 X64_SSE_REGPARM_MAX.
7407
7408 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
7409
7410 * gcc.c (report_times_to_file): New.
7411 (execute): Implement it.
7412 (process_command): Support -time=.
7413 * doc/invoke.texi: Document it.
7414
7415 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
7416
7417 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
7418 that have value exprs.
7419
7420 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
7421
7422 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
7423 declarations for constants until...
7424 (dw2_output_indirect_constant_1): ... this point.
7425
7426 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
7427
7428 PR target/10242
7429 * arm.md (arm_addsi3): Don't try to split an add with an
7430 eliminable register until after reload has completed.
7431
7432 2009-06-03 Ian Lance Taylor <iant@google.com>
7433
7434 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
7435 * genattrtab.c (write_length_unit_log): Likewise.
7436 * genchecksum.c (dosum): Likewise.
7437 * gengtype.c (write_rtx_next): Likewise.
7438 (finish_root_table, write_roots): Likewise.
7439 * gimple.c (gimple_ops_offset_): Likewise.
7440 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
7441 * config/arc/arc.c (arc_attribute_table): Likewise.
7442 * config/arm/arm.c (arm_attribute_table): Likewise.
7443 * config/avr/avr.c (avr_attribute_table): Likewise.
7444 * config/crx/crx.c (crx_attribute_table): Likewise.
7445 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
7446 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
7447 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
7448 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
7449 * config/sh/sh.c (sh_attribute_table): Likewise.
7450 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
7451 * config/spu/spu.c (spu_attribute_table): Likewise.
7452 * config/v850/v850.c (v850_attribute_table): Likewise.
7453
7454 * config/alpha/alpha.c (vms_attribute_table): Make static.
7455 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
7456 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
7457 * config/mips/mips.c (mips_attribute_table): Likewise.
7458
7459 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
7460 $(SYSTEM_H).
7461 (cc1-checksum.o): Likewise.
7462
7463 2009-06-03 Steve Ellcey <sje@cup.hp.com>
7464
7465 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
7466
7467 2009-06-03 Jakub Jelinek <jakub@redhat.com>
7468
7469 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
7470 insn if it is changing sp. Use gen_add3_insn instead of
7471 conditionally gen_addsi3 and gen_adddi3.
7472 (offset_below_red_zone_p): New static inline function.
7473 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
7474 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
7475 * config/rs6000/ppc-asm.h: Include auto-host.h.
7476 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
7477 CFI_RESTORE): Define.
7478 * config/rs6000/crtresxgpr.asm: Add unwind info.
7479 * config/rs6000/crtresxfpr.asm: Likewise.
7480 * config/rs6000/crtresgpr.asm: Likewise.
7481 * config/rs6000/crtresfpr.asm: Likewise.
7482 * config/rs6000/crtsavgpr.asm: Likewise.
7483 * config/rs6000/crtsavfpr.asm: Likewise.
7484
7485 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
7486 argument of DWARF2_FRAME_REG_OUT macros.
7487
7488 2009-06-03 Julian Brown <julian@codesourcery.com>
7489
7490 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
7491 words or less (including TImode) in core registers.
7492
7493 2009-06-03 Richard Guenther <rguenther@suse.de>
7494
7495 PR middle-end/40328
7496 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
7497
7498 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
7499
7500 * statistics.c (statistics_counter_event): Do not record event
7501 in pass dump if its number == -1.
7502 (curr_statistics_hash): Add assert that we never get passes
7503 with static number == -1.
7504
7505 2009-06-03 Richard Guenther <rguenther@suse.de>
7506 Andrey Belevantsev <abel@ispras.ru>
7507
7508 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
7509 non-BLKmode arrays addressable.
7510
7511 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
7512
7513 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
7514 * config/m68k/m68k.h: ... here.
7515 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
7516 m68k and fido.
7517
7518 2009-06-03 Martin Jambor <mjambor@suse.cz>
7519
7520 PR tree-optimization/40323
7521 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
7522 assignment.
7523
7524 2009-06-03 Richard Guenther <rguenther@suse.de>
7525
7526 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
7527 consistently.
7528
7529 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
7530
7531 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
7532 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
7533 JUMP_TABLE_DATA_P where applicable.
7534 * config/sh/sh.c: Ditto.
7535 * config/sh/sh.h: Ditto.
7536 * config/sh/sh.md: Ditto.
7537 * config/sh/symbian.c: Ditto.
7538
7539 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
7540
7541 * config/i386/driver-i386.c (describe_cache): Optimize
7542 concatenation of strings. Use snprintf instead of sprintf.
7543 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
7544 target when not compiling with GCC.
7545
7546 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
7547
7548 * config/sh/sh.c: Revert last change.
7549 (sh_expand_epilogue): Emit a blockage insn before the frame
7550 pointer adjustment unconditionally.
7551
7552 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7553
7554 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
7555 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
7556 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
7557 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
7558 to COLLECT_GCC_OPTIONS.
7559
7560 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7561
7562 * collect2.c (target_system_root): New variable.
7563 (main): Handle --sysroot=.
7564 (ignore_library): Strip the sysroot from the library path.
7565
7566 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7567
7568 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
7569 (collect2.o): Depend on collect2-aix.h.
7570 (collect2-aix.o): New rule.
7571 * collect2-aix.h: New file.
7572 * collect2-aix.c: Likewise.
7573 * collect2.c: Include collect2-aix.h. Don't undefine
7574 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
7575 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
7576 Use TARGET_AIX_VERSION instead of _AIX51.
7577 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
7578 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
7579 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
7580 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
7581 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
7582
7583 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7584
7585 * collect2.c (ignore_library): Avoid premature post-increment
7586 and null deference.
7587
7588 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7589
7590 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
7591 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
7592 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
7593 CROSS_DIRECTORY_STRUCTURE too.
7594 (LINK_LIBG_SPEC): Likewise.
7595 (LIB_SPEC): Add %R to sysroot paths.
7596 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
7597 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
7598 * config/rs6000/aix51.h: As for aix43.h.
7599 * config/rs6000/aix52.h: Likewise.
7600 * config/rs6000/aix53.h: Likewise.
7601 * config/rs6000/aix61.h: Likewise.
7602 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
7603 to the beginning of sysroot paths.
7604
7605 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7606
7607 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
7608 INSN_LISTs that are out of the REG_NOTE range.
7609
7610 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7611
7612 * loop-unroll.c (struct iv_to_split): Add pointer to next.
7613 (struct var_to_expand): Likewise.
7614 (struct opt_info): Add head and tail for linked lists of the above.
7615 (analyze_insn_to_expand_var): Initialize next.
7616 (analyze_iv_to_split_insn): Likewise.
7617 (analyze_insns_in_loop): Create linked lists.
7618 (allocate_basic_variable): Simplify for use without hash table.
7619 (insert_var_expansion_initialization): Likewise, make it type-safer.
7620 (combine_var_copies_in_loop_exit): Likewise.
7621 (apply_opt_in_copies): Walk lists rather than hash tables.
7622 (release_var_copies): Simplified and inlined by hand into...
7623 (free_opt_info): ... this function.
7624
7625 2009-06-02 Richard Guenther <rguenther@suse.de>
7626
7627 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
7628 for field decls.
7629
7630 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7631
7632 * cfgexpand.c (gimple_expand_cfg): Discard the source location
7633 only for builtins that are not overridden.
7634
7635 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7636
7637 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
7638 label string.
7639
7640 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7641
7642 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
7643
7644 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7645
7646 * combine.c (move_deaths): Compare LUIDs within the same BB only.
7647
7648 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
7649
7650 * common.opt (fdump-unnumbered-links): New.
7651 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
7652 * print-rtl.c (flag_dump_unnumbered_links): New.
7653 (print_rtx): Test it.
7654
7655 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
7656
7657 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
7658 push/pop multiple to 8-byte alignment.
7659
7660 2009-06-01 Jakub Jelinek <jakub@redhat.com>
7661
7662 * config/i386/i386.c (queued_cfa_restores): New static variable.
7663 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
7664 functions.
7665 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
7666 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
7667 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
7668 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
7669 note unconditionally.
7670 (ix86_emit_restore_regs_using_mov): Likewise.
7671 (ix86_emit_restore_sse_regs_using_mov): Likewise.
7672 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
7673 it through to ix86_emit_restore_reg_using_pop.
7674 (ix86_emit_leave): Add RED_OFFSET argument. Call
7675 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
7676 instead of adding REG_CFA_OFFSET note unconditionally.
7677 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
7678 the above functions. Call ix86_add_queued_cfa_restore_notes when
7679 needed.
7680
7681 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
7682 force output of the label even for dwarf2out_do_cfi_asm.
7683 (add_fde_cfi): If -g2 and above and cfi might change CFA,
7684 force creation of CFI label and chain DW_CFA_set_loc jumping to it
7685 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
7686 caller.
7687 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
7688 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
7689 dwarf2out_cfi_label callers.
7690 * tree.h (dwarf2out_cfi_label): Adjust prototype.
7691 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
7692 Adjust dwarf2out_cfi_label callers.
7693 * config/vax/vax.c (vax_output_function_prologue): Likewise.
7694
7695 * config/i386/i386.h (struct machine_cfa_state,
7696 struct machine_function): Guard with ifndef USED_FOR_TARGET
7697 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
7698
7699 PR other/40024
7700 * emutls.c (__emutls_get_address): Change arr->size to mean number
7701 of allocated arr->data entries instead of # of slots + 1.
7702
7703 PR middle-end/40316
7704 * recog.c (peep2_reinit_state): New function.
7705 (peephole2_init_state): Use it at the end of a basic block and also
7706 when seeing a RTX_FRAME_RELATED_P insn.
7707
7708 2009-06-01 Steve Ellcey <sje@cup.hp.com>
7709
7710 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
7711 fixuns_truncrfdi2): New.
7712 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
7713 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
7714 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
7715 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
7716 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
7717 *recip_approx): Remove.
7718 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
7719 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
7720 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
7721 move to div.md.
7722 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
7723 setf_exp_rf): New.
7724
7725 2009-06-01 Ian Lance Taylor <iant@google.com>
7726
7727 * attribs.c (register_attribute): Use CONST_CAST.
7728 * collect2.c (main): Use CONST_CAST2.
7729 (scan_prog_file): Likewise.
7730 * gcc.c (process_command, main): Likewise.
7731 * toplev.c (toplev_main): Likewise.
7732
7733 * c-typeck.c (handle_warn_cast_qual): New static function,
7734 partially broken out of build_c_cast.
7735 (build_c_cast): Call handle_warn_cast_qual.
7736 * doc/invoke.texi (Warning Options): Document new effect of
7737 -Wcast-qual.
7738
7739 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
7740
7741 * diagnostic.c (diagnostic_build_prefix): Always print columns.
7742 (diagnostic_report_current_module): Print columns.
7743 * common.opt (flag_show_column): Enable by default.
7744
7745 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
7746
7747 * alias.c (find_base_term): Check for NULL term before returning.
7748
7749 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7750
7751 Revert due to PR40320:
7752 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7753 * calls.c (emit_library_call_value_1): Don't force_operand for move
7754 and push insns.
7755
7756 2009-06-01 Olivier Hainque <hainque@adacore.com>
7757 Eric Botcazou <ebotcazou@adacore.com>
7758
7759 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
7760 to be processed as a bitfield for constructor output purposes.
7761 * output.h (initializer_constant_valid_for_bitfield_p): Declare
7762 new function.
7763 * varasm.c (oc_local_state): New type, output_constructor
7764 local state to support communication with helpers.
7765 (oc_outer_state): New type, output_constructor outer state of
7766 relevance in recursive calls.
7767 (output_constructor_array_range): New output_constructor helper,
7768 extracted code for an array range element.
7769 (output_constructor_regular_field): New output_constructor helper,
7770 extracted code for an element that is not a bitfield.
7771 (output_constructor_bitfield): New output_constructor helper,
7772 extracted code for a bitfield element. Accept an OUTER state
7773 argument for recursive processing. Recurse on record or array
7774 CONSTRUCTOR values, possibly past noop conversions.
7775 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
7776 VALUE is a valid constant-valued expression for use in a static
7777 bit-field initializer.
7778 (output_constructor): Rework to use helpers. Accept and honor an
7779 OUTER state argument for recursive calls. Return total size. Be
7780 prepared for nested constructors initializing bitfields.
7781 (output_constant): Feed OUTER in calls to output_constructor.
7782
7783 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7784
7785 * calls.c (emit_library_call_value_1): Don't force_operand for move
7786 and push insns.
7787
7788 2009-06-01 Nick Clifton <nickc@redhat.com>
7789
7790 * doc/invoke.texi (IA-64 Options): Fix typo.
7791
7792 2009-06-01 Ira Rosen <irar@il.ibm.com>
7793
7794 PR tree-optimization/39129
7795 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
7796 printed message.
7797 (vect_do_peeling_for_loop_bound): Use
7798 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
7799 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
7800 (vect_loop_versioning): Likewise.
7801 (vect_create_cond_for_alias_checks): Fix indentation.
7802 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
7803 macros.
7804 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
7805 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
7806 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
7807 "control flow in loop".
7808 (vect_estimate_min_profitable_iters): Use
7809 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
7810 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
7811 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7812 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
7813 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
7814 statement belongs to a group of strided accesses with the exact code
7815 check.
7816 (vectorizable_load): Likewise.
7817 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
7818 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7819
7820 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
7821
7822 * config/freebsd-stdint.h: New file.
7823 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
7824 Add freebsd-stdint.h to tm_file.
7825
7826 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
7827
7828 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
7829 (thumb2_extendhidi2): Likewise.
7830
7831 2009-05-31 Ian Lance Taylor <iant@google.com>
7832
7833 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
7834
7835 2009-05-31 Ian Lance Taylor <iant@google.com>
7836
7837 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
7838 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
7839 (ipa-reference.o): Depend upon gt-ipa-reference.h.
7840
7841 2009-05-31 Jason Merrill <jason@redhat.com>
7842
7843 * tree-pretty-print.c (print_call_name): Take the callee, not the
7844 call itself. Make non-static. Use dump_function_name for functions.
7845 (dump_generic_node): Adjust.
7846 * diagnostic.h: Declare print_call_name.
7847 * gimple-pretty-print.c (dump_gimple_call): Use it.
7848
7849 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
7850
7851 * config/sh/sh.md (ashldi3_std): New define_expand.
7852 (ashldi3): Use it.
7853
7854 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
7855
7856 PR target/40313
7857 * config/sh/sh.c: Include debug.h.
7858 (sh_expand_epilogue): Emit a blockage insn before the frame
7859 pointer adjustment also when dwarf2out_do_frame returns true.
7860
7861 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
7862
7863 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
7864 (thumb2_extendqidi2): New pattern.
7865
7866 2009-05-31 Ira Rosen <irar@il.ibm.com>
7867
7868 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
7869 mark phis for renaming.
7870 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
7871 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
7872 Call mark_sym_for_renaming.
7873 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
7874 * tree-vect-loop.c (vect_transform_loop): Remove
7875 vect_memsyms_to_rename initialization and a call to
7876 mark_set_for_renaming.
7877
7878 2009-05-31 Jakub Jelinek <jakub@redhat.com>
7879
7880 PR middle-end/40304
7881 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
7882 frame related even if !set_cfa && style < 0.
7883
7884 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
7885
7886 * config/i386/mingw-tls.c: New file.
7887 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
7888 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
7889 defining _WIN32 but not __CYGWIN__.
7890
7891 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7892
7893 * configure.ac: Add MPC support.
7894
7895 * config.in, configure: Regenerate.
7896
7897 2009-05-29 Richard Henderson <rth@redhat.com>
7898
7899 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
7900 NOTE_INSN_BASIC_BLOCK.
7901 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
7902 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
7903 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
7904 to be deleted.
7905 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
7906 add in_use field.
7907 (add_cfi): Disable check redefining cfa away from drap.
7908 (lookup_cfa_1): Add remember argument; handle remember/restore.
7909 (lookup_cfa): Pass remember argument.
7910 (cfa_remember): New.
7911 (compute_barrier_args_size_1): Remove sibcall check.
7912 (dwarf2out_frame_debug_def_cfa): New.
7913 (dwarf2out_frame_debug_adjust_cfa): New.
7914 (dwarf2out_frame_debug_cfa_offset): New.
7915 (dwarf2out_frame_debug_cfa_register): New.
7916 (dwarf2out_frame_debug_cfa_restore): New.
7917 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
7918 (dwarf2out_begin_epilogue): New.
7919 (dwarf2out_frame_debug_restore_state): New.
7920 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
7921 DW_CFA_restore_state.
7922 (output_cfi_directive): Likewise.
7923 (convert_cfa_to_fb_loc_list): Likewise.
7924 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
7925 * dwarf2out.h: Update.
7926 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
7927 (copy_insn_1): Early out for null.
7928 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
7929 and dwarf2out_frame_debug_restore_state.
7930 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
7931 (prologue_insn_hash, epilogue_insn_hash): New.
7932 (free_after_compilation): Adjust freeing accordingly.
7933 (record_insns): Create hash table if needed; push insns into
7934 hash instead of array.
7935 (maybe_copy_epilogue_insn): New.
7936 (contains): Search hash table instead of array.
7937 (sibcall_epilogue_contains): Remove.
7938 (thread_prologue_and_epilogue_insns): Split eh_return insns
7939 and mark them as epilogues.
7940 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
7941 scanning in terms of basic blocks.
7942 * insn-notes.def (CFA_RESTORE_STATE): New.
7943 * jump.c (returnjump_p_1): Accept EH_RETURN.
7944 (eh_returnjump_p_1, eh_returnjump_p): New.
7945 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
7946 CFA_REGISTER, CFA_RESTORE): New.
7947 * rtl.def (EH_RETURN): New.
7948 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
7949
7950 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
7951 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
7952
7953 * config/i386/i386.c (gen_push): Update cfa state.
7954 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
7955 add a CFA_ADJUST_CFA note.
7956 (ix86_dwarf_handle_frame_unspec): Remove.
7957 (ix86_expand_prologue): Update cfa state.
7958 (ix86_emit_restore_reg_using_pop): New.
7959 (ix86_emit_restore_regs_using_pop): New.
7960 (ix86_emit_leave): New.
7961 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
7962 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
7963 * config/i386/i386.h (struct machine_cfa_state): New.
7964 (ix86_cfa_state): New.
7965 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
7966 (eh_return_internal): Merge from eh_return_<mode>,
7967 use eh_return rtx, split w/ epilogue.
7968
7969 2009-05-29 Ian Lance Taylor <iant@google.com>
7970
7971 * builtins.c (validate_gimple_arglist): Don't use va_arg with
7972 enum type.
7973 * calls.c (emit_library_call_value_1): Likewise.
7974
7975 * c-typeck.c (c_build_va_arg): New function.
7976 * c-tree.h (c_build_va_arg): Declare.
7977 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
7978 instead of build_va_arg.
7979
7980 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
7981
7982 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
7983 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
7984 (ptr_difference_cost): Use affine combinations to compute it.
7985 (difference_cost): Likewise.
7986 (get_computation_cost_at): Compute more accurate cost for addresses
7987 if the ratio is a multiplier allowed in addresses.
7988 For non-addresses, consider that an additional offset or symbol is
7989 added only once.
7990
7991 2009-05-29 Jakub Jelinek <jakub@redhat.com>
7992
7993 * config/i386/i386.c (ix86_decompose_address): Avoid useless
7994 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
7995
7996 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
7997 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
7998 (prefix_rex): For UNIT_MMX don't imply the prefix by default
7999 if MODE_DI.
8000 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
8001 to 1 for TYPE_SSE{IADD1,CVT1}.
8002 (prefix_vex_imm8): Removed.
8003 (length_vex): Only pass 1 as second argument to
8004 ix86_attr_length_vex_default if prefix_extra is 0.
8005 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
8006 (length): For prefix vex computation use length_immediate
8007 attribute instead of prefix_vex_imm8.
8008 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
8009 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
8010 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
8011 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
8012 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
8013 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
8014 a space in between the operands.
8015 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
8016 if one operand is 0xff and the other one si, di, bp or sp.
8017 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
8018 other one si, di, bp or sp.
8019 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
8020 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
8021 type and mode attributes.
8022 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
8023 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
8024 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
8025 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
8026 prefix_data16 attribute iff MODE_DF.
8027 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
8028 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
8029 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
8030 constm128_operand in length_immediate computation.
8031 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
8032 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
8033 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
8034 length_immediate attribute to 1.
8035 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
8036 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
8037 for certain alternatives.
8038 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
8039 prefix_data16 attribute if MODE_V1DF.
8040 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
8041 length_immediate to 1.
8042 (set_got_rex64, set_rip_rex64): Remove length attribute, set
8043 length_address to 4, set mode attribute to MODE_DI.
8044 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
8045 (fxam<mode>2_i387): Set length attribute to 4.
8046 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
8047 *prefetch_3dnow_rex): Override length_address attribute.
8048 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
8049 attributes.
8050 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
8051 (constm128_operand): Removed.
8052 * config/i386/i386.c (memory_address_length): For
8053 disp && !index && !base in 64-bit mode account for SIB byte if
8054 print_operand_address can't optimize disp32 into disp32(%rip)
8055 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
8056 for fs: or gs: segment.
8057 (ix86_attr_length_immediate_default): When checking if shortform
8058 is possible, truncate immediate to the length of the non-shortened
8059 immediate.
8060 (ix86_attr_length_address_default): Ignore MEM_P operands
8061 with X constraint.
8062 (ix86_attr_length_vex_default): Only check for DImode on
8063 GENERAL_REG_P operands.
8064 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
8065 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
8066 (sse_cvttps2pi): Clear prefix_rep attribute.
8067 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
8068 attribute.
8069 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
8070 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
8071 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
8072 iff operand 2 is const_int_operand.
8073 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
8074 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
8075 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
8076 instead of vex.
8077 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
8078 prefix_data16.
8079 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
8080 prefix_data16 attribute for movlpd and movhpd instructions.
8081 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
8082 length_immediate for shufpd instruction.
8083 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
8084 (avx_cmpp<avxmodesuffixf2c><mode>3,
8085 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
8086 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
8087 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
8088 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
8089 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
8090 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
8091 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
8092 prefix_data16 attribute for the first alternative to 1.
8093 (*avx_loadlps): Override length_immediate for the first alternative.
8094 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
8095 attributes for second alternative.
8096 (*vec_concatv2sf_sse4_1): Override length_immediate and
8097 prefix_data16 attributes for second alternative.
8098 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
8099 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
8100 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
8101 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
8102 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
8103 prefix_data16 and length_immediate to 1.
8104 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
8105 to 1.
8106 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
8107 prefix_extra attribute for variants that don't have 0f prefix alone.
8108 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
8109 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
8110 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
8111 *sse4_1_pextrd): Set length_immediate to 1.
8112 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
8113 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
8114 to 1.
8115 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
8116 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
8117 length_immediate to 1 for second alternative.
8118 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
8119 prefix_extra and length_immediate attributes for the first
8120 alternative.
8121 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
8122 first alternative.
8123 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
8124 to 1 for the first and third alternative.
8125 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
8126 alternative.
8127 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
8128 attribute.
8129 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
8130 attribute to 0.
8131 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
8132 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
8133 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
8134 *avx_psign<mode>3): Set prefix_extra attribute to 1.
8135 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
8136 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
8137 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
8138 ssse3_psign<mode>3): Override prefix_rex attribute.
8139 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
8140 (ssse3_palignrti): Override length_immediate to 1.
8141 (ssse3_palignrdi): Override length_immediate to 1, override
8142 prefix_rex attribute.
8143 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
8144 (sse4a_extrqi): Override length_immediate to 2.
8145 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
8146 (sse4a_insertq): Override prefix_data16 to 0.
8147 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
8148 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
8149 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
8150 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
8151 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
8152 and length_immediate to 1.
8153 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
8154 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
8155 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
8156 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
8157 and length_immediate to 1.
8158 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
8159 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
8160 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
8161 avx_ptest256): Override prefix_extra to 1.
8162 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
8163 Override prefix_data16 and length_immediate to 1.
8164 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
8165 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
8166 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
8167 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
8168 prefix_data16 to 0 and prefix_extra to 2.
8169 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
8170 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
8171 attribute.
8172 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
8173 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
8174 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
8175 and prefix_extra to 2.
8176 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
8177 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
8178 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
8179 avx_vpermilvar<mode>3,
8180 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
8181 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
8182 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
8183 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
8184 Override prefix_extra to 1.
8185 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
8186 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
8187 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
8188 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
8189 prefix_extra and length_immediate to 1.
8190 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
8191 modrm to 0.
8192 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
8193 to 1 for the first alternative.
8194 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
8195 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
8196 cases.
8197 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
8198 *movv2sf_internal_avx, *movv2sf_internal): Override
8199 prefix_rep attribute for certain alternatives.
8200 (*mov<mode>_internal): Override prefix_rep or prefix_data16
8201 attributes for certain alternatives.
8202 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
8203 attributes for certain alternatives.
8204 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
8205 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
8206 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
8207 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
8208 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
8209 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
8210 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
8211 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
8212 length_immediate to 1 if operand 2 is const_int_operand.
8213 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
8214 *vec_extractv2si_1): Set length_immediate attribute to 1.
8215 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
8216 using old 3DNOW insn rather than SSE/3DNOW_A.
8217 (mmx_emms, mmx_femms): Clear modrm attribute.
8218
8219 2009-05-29 Martin Jambor <mjambor@suse.cz>
8220
8221 * tree-sra.c: New implementation of SRA.
8222
8223 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
8224 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
8225 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
8226 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
8227 (SRA_MAX_STRUCTURE_COUNT): Removed.
8228 (SRA_FIELD_STRUCTURE_RATIO): Removed.
8229 * doc/invoke.texi (sra-max-structure-size): Removed.
8230 (sra-field-structure-ratio): Removed.
8231
8232 2009-05-29 Jakub Jelinek <jakub@redhat.com>
8233
8234 PR middle-end/40291
8235 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
8236 before expansion.
8237
8238 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
8239
8240 PR rtl-optimization/40101
8241 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
8242 seqno. Adjust comment.
8243 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
8244 inserting bookkeeping before a jump, the jump is not scheduled.
8245 When no positive seqno found, provide a value. Add comment.
8246
8247 2009-05-29 Richard Guenther <rguenther@suse.de>
8248
8249 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
8250 short-cutting on the first component.
8251
8252 2009-05-29 Jakub Jelinek <jakub@redhat.com>
8253
8254 PR middle-end/39958
8255 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
8256 for trees other than decls/types.
8257
8258 2009-05-29 Richard Guenther <rguenther@suse.de>
8259
8260 * tree-ssa-operands.c (get_expr_operands): Do not handle
8261 INDIRECT_REFs in the handled-component case. Remove
8262 unused get_ref_base_and_extent case.
8263 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
8264 tree_low_cst and host_integerp where possible.
8265 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
8266 codes for equivalence.
8267 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
8268
8269 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
8270
8271 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
8272 to tmake_file for i[34567]86-*-cygwin*.
8273
8274 2009-05-29 Jakub Jelinek <jakub@redhat.com>
8275
8276 PR target/40017
8277 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
8278 (altivec_categorize_keyword, init_vector_keywords,
8279 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
8280 similar to bool.
8281
8282 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
8283
8284 * tree.c (handle_dll_attribute): Check if node is
8285 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
8286
8287 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
8288
8289 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
8290 component.
8291 (thumb2_zero_extendqidi2): Likewise.
8292
8293 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
8294
8295 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
8296 instead of gen_movrt.
8297 * config/sh/sh.md (movrt): Remove.
8298
8299 2009-05-28 Steve Ellcey <sje@cup.hp.com>
8300
8301 * doc/invoke.texi (IA-64 Options):
8302 Add -msdata, -mfused-madd, -mno-inline-float-divide,
8303 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
8304 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
8305 -msched-prefer-non-control-spec-insns,
8306 -msched-stop-bits-after-every-cycle,
8307 -msched-count-spec-in-critical-path,
8308 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
8309 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
8310 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
8311 and -msched-spec-verbose.
8312
8313 2009-05-28 Joseph Myers <joseph@codesourcery.com>
8314
8315 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8316 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
8317 error if used.
8318 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
8319
8320 2009-05-28 Richard Guenther <rguenther@suse.de>
8321
8322 * tree-ssa-alias.c (ao_ref_init): New function.
8323 (ao_ref_base): Likewise.
8324 (ao_ref_base_alias_set): Likewise.
8325 (ao_ref_alias_set): Likewise.
8326 (refs_may_alias_p_1): Change signature.
8327 (refs_may_alias_p): Adjust.
8328 (refs_anti_dependent_p): Likewise.
8329 (refs_output_dependent_p): Likewise.
8330 (call_may_clobber_ref_p_1): Change signature.
8331 (call_may_clobber_ref_p): Adjust.
8332 (stmt_may_clobber_ref_p_1): New function split out from ...
8333 (stmt_may_clobber_ref_p): ... here.
8334 (maybe_skip_until): Adjust signature.
8335 (get_continuation_for_phi): Likewise.
8336 (walk_non_aliased_vuses): Likewise.
8337 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
8338 (ao_ref_init): Declare.
8339 (ao_ref_base): Likewise.
8340 (ao_ref_alias_set): Likewise.
8341 (stmt_may_clobber_ref_p_1): Likewise.
8342 (walk_non_aliased_vuses): Adjust.
8343 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
8344 (get_ref_from_reference_ops): remove.
8345 (vn_reference_lookup_2): Adjust signature.
8346 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
8347 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
8348 (vn_reference_lookup): Adjust.
8349 (vn_reference_insert): Likewise.
8350 (vn_reference_insert_pieces): Adjust signature.
8351 (visit_reference_op_call): Adjust.
8352 * tree-ssa-pre.c (get_expr_type): Simplify.
8353 (phi_translate_1): Adjust.
8354 (compute_avail): Likewise.
8355 (translate_vuse_through_block): Do not re-build trees.
8356 (value_dies_in_block_x): Likewise.
8357 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
8358 fields.
8359 (vn_reference_lookup_pieces): Adjust declaration.
8360 (vn_reference_insert_pieces): Likewise.
8361
8362 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
8363
8364 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
8365 with checking disabled.
8366
8367 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
8368
8369 PR target/37216
8370
8371 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
8372 macro definition for support of three-operand format aligned
8373 .comm directive in assembler on cygwin/pe/mingw target OS.
8374 * configure: Regenerate.
8375 * config.h: Regenerate.
8376
8377 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
8378 aligned form of .comm directive if -mpe-aligned-commons is in effect.
8379 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
8380
8381 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
8382 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
8383
8384 2009-05-28 Ira Rosen <irar@il.ibm.com>
8385
8386 PR tree-optimization/40254
8387 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
8388 in analysis of basic blocks.
8389
8390 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
8391
8392 PR middle-end/33699
8393 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
8394 * target-def.h (TARGET_CONST_ANCHOR): New macro.
8395 (TARGET_INITIALIZER): Use it.
8396 * cse.c (CHEAPER): Move it up to the other macros.
8397 (insert): Rename this ...
8398 (insert_with_costs): ... to this. Add cost parameters. Update
8399 function comment.
8400 (insert): New function. Call insert_with_costs.
8401 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
8402 find_reg_offset_for_const, try_const_anchors): New functions.
8403 (cse_insn): Call try_const_anchors. Adjust cost of src_related
8404 when using a const-anchor. Call insert_const_anchors.
8405 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
8406 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
8407
8408 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
8409
8410 * tree-inline.c (remap_decls): Enable nonlocalized variables
8411 when not optimizing.
8412
8413 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
8414
8415 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
8416 Simplify other tests involving optimize.
8417
8418 2009-05-27 Tom Tromey <tromey@redhat.com>
8419
8420 * unwind-dw2.c (_Unwind_DebugHook): New function.
8421 (uw_install_context): Call _Unwind_DebugHook.
8422
8423 2009-05-27 Tom Tromey <tromey@redhat.com>
8424
8425 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
8426
8427 2009-05-27 Ian Lance Taylor <iant@google.com>
8428
8429 * Makefile.in (LINKER, LINKER_FLAGS): Define.
8430 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
8431 (ALL_LINKERFLAGS): Define.
8432 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
8433 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
8434 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
8435 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
8436 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
8437 $(LINKER_FOR_BUILD).
8438 (build/gcov-iov$(build_exeext)): Likewise.
8439
8440 2009-05-27 Julian Brown <julian@codesourcery.com>
8441
8442 * gcse.c (target.h): Include.
8443 (can_assign_to_reg_without_clobbers_p): Check that the target allows
8444 copy of argument to a pseudo register.
8445
8446 2009-05-27 Diego Novillo <dnovillo@google.com>
8447
8448 * tree-ssa-live.c (dump_scope_block): Document arguments.
8449 (dump_scope_blocks): Document.
8450 (debug_scope_blocks): New.
8451 * tree-flow.h (debug_scope_blocks): Declare.
8452
8453 2009-05-21 Denis Chertykov <denisc@overta.ru>
8454
8455 * doc/contrib.texi (Contributors): Add myself to the list.
8456
8457 2009-05-27 Olivier Hainque <hainque@adacore.com>
8458
8459 * expr.c (target_align): New function. Alignment the TARGET of an
8460 assignment may be assume to have.
8461 (highest_pow2_factor_for_target): Use it instead of relying on
8462 immediate tree attributes of TARGET, not necessarily honored when
8463 intermediate bitfields are involved.
8464
8465 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
8466
8467 PR target/40266
8468 * config/i386/driver-i386.c (host_detect_local_cpu): Support
8469 AVX, SSE4, AES, PCLMUL and POPCNT.
8470
8471 2009-05-27 Diego Novillo <dnovillo@google.com>
8472
8473 * tree-pretty-print.c (dump_location): New.
8474 (dump_generic_node): Call it.
8475 Factor code to handle BLOCK nodes ...
8476 (dump_block_node): ... here.
8477
8478 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
8479
8480 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
8481 with it.
8482 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
8483 included.
8484 * gcc-plugin.h: Include config.h and system.h.
8485 (IN_GCC): Define if not defined.
8486
8487 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
8488
8489 PR middle-end/40249
8490 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
8491 with -fno-inline.
8492
8493 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
8494
8495 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
8496 applicable.
8497 * config/m32r/m32r.h: Ditto.
8498 * config/m32r/m32r.md: Ditto.
8499 * config/m32r/predicates.md: Ditto.
8500
8501 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
8502
8503 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
8504
8505 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
8506
8507 * doc/plugins.texi
8508 (Loading plugins): typo.
8509 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
8510 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
8511 (Interacting with the GCC Garbage Collector): Added new section.
8512 (Giving information about a plugin): Added new section for
8513 PLUGIN_INFO.
8514 * ggc.h (ggc_register_root_tab): Added declaration.
8515 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
8516 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
8517 (register_callback): Improved comment in declaration.
8518 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
8519 (extra_root_vec) Added static variable for dynamic roots registration.
8520 (ggc_register_root_tab) Added new routine.
8521 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
8522 PLUGIN_GGC_MARKING event.
8523 * ggc-zone.c: Include plugin.h.
8524 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
8525 * ggc-page.c: Include plugin.h.
8526 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
8527 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
8528 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
8529 (register_callback): check lack of callbacks for
8530 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
8531 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
8532 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
8533 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
8534 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
8535 dependency on plugin.h.
8536 (plugin.o): Added dependency on ggc.h...
8537
8538 2009-05-26 Richard Guenther <rguenther@suse.de>
8539
8540 PR middle-end/40248
8541 Revert
8542 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
8543 with mismatched comparison modes.
8544
8545 * expr.c (expand_expr_real_1): Expand the operand of a
8546 VIEW_CONVERT_EXPR in its natural mode.
8547
8548 2009-05-26 Ian Lance Taylor <iant@google.com>
8549
8550 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
8551 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
8552 (ALL_COMPILERFLAGS): Define.
8553 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
8554 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
8555 (collect2$(exeext), collect2.o): Likewise.
8556 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
8557 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
8558 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
8559 (libbackend.o, intl.o, cppdefault.o): Likewise.
8560 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
8561 (build/%.o): Use $(COMPILER_FOR_BUILD).
8562 (build/gen%$(build_exeext)): Likewise.
8563 (build/gcov-iov$(build_exeext)): LIkewise.
8564 * config/t-darwin (darwin.o): Use $(COMPILER).
8565 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
8566 * config/t-sol2 (sol2-c.o): Likewise.
8567 (sol2.o): Likewise.
8568 * config/t-vxworks (vxworks.o): Likewise.
8569 * config/x-darwin (host-darwin.o): Likewise.
8570 * config/x-hpux (host-hpux.o): Likewise.
8571 * config/x-linux (host-linux.o): Likewise.
8572 * config/x-solaris (host-solaris.o): Likewise.
8573 * config/alpha/x-alpha (driver-alpha.o): Likewise.
8574 * config/arm/t-arm (arm-c.o): Likewise.
8575 * config/arm/t-pe (pe.o): Likewise.
8576 * config/arm/t-wince-pe (pe.o): Likewise.
8577 * config/i386/t-cygming (winnt.o): Likewise.
8578 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
8579 * config/i386/t-cygwin (cygwin1.o): Likewise.
8580 (cygwin2.o): Likewise.
8581 * config/i386/t-i386 (i386-c.o): Likewise.
8582 * config/i386/t-interix (winnt.o): Likewise.
8583 * config/i386/t-netware (netware.o): Likewise.
8584 * config/i386/t-nwld (nwld.o): Likewise.
8585 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
8586 * config/i386/x-i386 (driver-i386.o): Likewise.
8587 * config/i386/x-cygwin (host-cygwin.o): Likewise.
8588 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
8589 * config/ia64/t-ia64 (ia64-c.o): Likewise.
8590 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
8591 * config/mips/x-native (driver-native.o): Likewise.
8592 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
8593 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
8594 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
8595 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
8596 * config/score/t-score-elf (score7.o): Likewise.
8597 (score3.o): Likewise.
8598 * config/sh/t-sh (sh-c.o): Likewise.
8599 * config/sh/t-symbian (sh-c.o): Likewise.
8600 (symbian.o): Likewise.
8601 * config/spu/t-spu-elf (spu-c.o): Likewise.
8602 * config/v850/t-v850 (v850-c.o): Likewise.
8603 * config/v850/t-v850e (v850-c.o): Likewise.
8604
8605 2009-05-26 Richard Guenther <rguenther@suse.de>
8606
8607 PR tree-optimization/40122
8608 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
8609 VECTOR_CSTs if possible.
8610 (fold_gimple_assign): Likewise.
8611
8612 2009-05-26 Richard Guenther <rguenther@suse.de>
8613
8614 PR middle-end/40252
8615 * fold-const.c (fold_binary): Use the correct types for building
8616 rotates.
8617
8618 2009-05-26 Richard Guenther <rguenther@suse.de>
8619
8620 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
8621 redundant calls to merge_alias_info.
8622 (bump_vector_ptr): Likewise.
8623 * tree-ssa-copy.c (merge_alias_info): Remove.
8624 (replace_exp_1): Remove call to merge_alias_info.
8625 (propagate_tree_value): Likewise.
8626 (fini_copy_prop): Propagate points-to info.
8627 * tree-flow.h (merge_alias_info): Remove.
8628
8629 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
8630
8631 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
8632
8633 2009-05-25 Jan Hubicka <jh@suse.cz>
8634
8635 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8636 * cgraph.h (struct inline_summary): New filed self_wize,
8637 size_inlining_benefit, self_time and time_inlining_benefit.
8638 (struct cgraph_global_info): Replace insns by time ans size fields.
8639 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8640 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8641 (ipcp_update_callgraph): Do not touch function bodies.
8642 * ipa-inline.c: Include except.h
8643 (MAX_TIME): New constant.
8644 (overall_insns): Remove.
8645 (leaf_node_p): New.
8646 (overall_size, max_benefit): New static variables.
8647 (cgraph_estimate_time_after_inlining): New function.
8648 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8649 (cgraph_clone_inlined_nodes): Update size.
8650 (cgraph_mark_inline_edge): Update size.
8651 (cgraph_estimate_growth): Use size info.
8652 (cgraph_check_inline_limits): Check size.
8653 (cgraph_default_inline_p): Likewise.
8654 (cgraph_edge_badness): Compute badness based on benefit and size cost.
8655 (cgraph_decide_recursive_inlining): Check size.
8656 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8657 and times.
8658 (cgraph_decide_inlining): Likewise.
8659 (cgraph_decide_inlining_incrementally): Likewise; honor
8660 PARAM_EARLY_INLINING_INSNS.
8661 (likely_eliminated_by_inlining_p): New predicate.
8662 (estimate_function_body_sizes): New function.
8663 (compute_inline_parameters): Use it.
8664 * except.c (must_not_throw_labels): New function.
8665 * except.h (must_not_throw_labels): Declare.
8666 * tree-inline.c (init_inline_once): Kill inlining_weigths
8667 * tree-ssa-structalias.c: Avoid uninitialized warning.
8668 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8669 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8670 (PARAM_INLINE_CALL_COST): Remove.
8671 (PARAM_EARLY_INLINING_INSNS): New.
8672
8673 2009-05-25 Richard Guenther <rguenther@suse.de>
8674
8675 PR tree-optimization/36327
8676 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
8677 callback for reference translation or lookup at the point of may-defs.
8678 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
8679 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
8680 for union COMPONENT_REFs.
8681 (vn_reference_lookup_3): New callback. Lookup from memset
8682 and CONSTRUCTOR assignment, translate through struct copies.
8683 (vn_reference_lookup_pieces): Make sure to not free the
8684 passed operands array. Adjust walk_non_aliased_vuses call.
8685 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
8686 make sure we do not leak memory.
8687
8688 2009-05-25 Richard Guenther <rguenther@suse.de>
8689
8690 * tree-ssa-alias.h (dump_points_to_solution): Declare.
8691 * tree-inline.c (expand_call_inline): Reset the escaped and
8692 callused solutions.
8693 * tree-ssa-structalias.c (pass_build_ealias): New.
8694 * tree-pass.h (pass_build_ealias): Declare.
8695 * passes.c (init_optimization_passes): Add PTA during
8696 early optimizations.
8697 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
8698 and CALLUSED solutions.
8699 (dump_points_to_solution): New function, split out from ...
8700 (dump_points_to_info_for): ... here.
8701 * tree-parloops.c (parallelize_loops): Reset the escaped and
8702 callused solutions.
8703
8704 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8705
8706 PR bootstrap/40027
8707 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
8708 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
8709
8710 2009-05-25 Ira Rosen <irar@il.ibm.com>
8711
8712 PR tree-optimization/40238
8713 * tree-vect-stmts.c (vect_init_vector): Insert initialization
8714 statements after basic block's labels.
8715 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
8716 to free the allocated memory.
8717
8718 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
8719
8720 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
8721 return address with a USE.
8722
8723 2009-05-24 Richard Guenther <rguenther@suse.de>
8724
8725 PR middle-end/40233
8726 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
8727 array type from the main variant of the inner type.
8728
8729 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8730
8731 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
8732 definition to bool (from int) to un-break build.
8733 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
8734
8735 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
8736
8737 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
8738 discard_stmt_changes): Delete.
8739 * tree-ssa-operands.c (scb_stack): Delete.
8740 (init_ssa_operands): Do not initialize it.
8741 (fini_ssa_operands): Do not free it.
8742 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
8743
8744 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
8745 update_stmt, remove the others. Fix comments.
8746 * tree-dfa.c (optimize_stack_restore): Likewise.
8747 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
8748 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
8749 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
8750 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
8751 Likewise.
8752 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
8753 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
8754 (dom_opt_finalize_block): Likewise, adjusting access to
8755 stmts_to_rescan.
8756 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
8757 (stmts_to_rescan): Change item type to gimple.
8758 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
8759
8760 2009-05-24 Ira Rosen <irar@il.ibm.com>
8761
8762 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
8763 * tree-pass.h (pass_slp_vectorize): New pass.
8764 * params.h (SLP_MAX_INSNS_IN_BB): Define.
8765 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
8766 * tree-vectorizer.c (timevar.h): Include.
8767 (user_vect_verbosity_level): Declare.
8768 (vect_location): Fix comment.
8769 (vect_set_verbosity_level): Update user_vect_verbosity_level
8770 instead of vect_verbosity_level.
8771 (vect_set_dump_settings): Add an argument. Ignore user defined
8772 verbosity if dump flags require higher level of verbosity. Print to
8773 stderr only for loop vectorization.
8774 (vectorize_loops): Update call to vect_set_dump_settings.
8775 (execute_vect_slp): New function.
8776 (gate_vect_slp): Likewise.
8777 (struct gimple_opt_pass pass_slp_vectorize): New.
8778 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
8779 access its members.
8780 (vec_info_for_bb): New function.
8781 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
8782 (VECTORIZATION_ENABLED): New macro.
8783 (SLP_ENABLED, SLP_DISABLED): Likewise.
8784 (vect_is_simple_use): Add bb_vec_info argument.
8785 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
8786 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
8787 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
8788 vect_schedule_slp, vect_analyze_slp): Likewise.
8789 (vect_analyze_stmt): Add slp_tree argument.
8790 (find_bb_location): Declare.
8791 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
8792 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
8793 (vect_analyze_loop_operations, vect_analyze_loop,
8794 get_initial_def_for_induction, vect_create_epilog_for_reduction,
8795 vect_finalize_reduction, vectorizable_reduction,
8796 vectorizable_live_operation, vect_transform_loop): Likewise.
8797 * tree-data-ref.c (dr_analyze_innermost): Update comment,
8798 skip evolution analysis if analyzing a basic block.
8799 (dr_analyze_indices): Likewise.
8800 (initialize_data_dependence_relation): Skip the test whether the
8801 object is invariant for basic blocks.
8802 (compute_all_dependences): Skip dependence analysis for data
8803 references in basic blocks.
8804 (find_data_references_in_stmt): Don't fail in case of invariant
8805 access in basic block.
8806 (find_data_references_in_bb): New function.
8807 (find_data_references_in_loop): Move code to
8808 find_data_references_in_bb and add a call to it.
8809 (compute_data_dependences_for_bb): New function.
8810 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
8811 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
8812 that STEP is 0.
8813 (vect_analyze_data_ref_dependence): Check for interleaving in case of
8814 unknown dependence in basic block and fail in case of dependence in
8815 basic block.
8816 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
8817 dependence instances from either loop or basic block vectorization
8818 info.
8819 (vect_compute_data_ref_alignment): Check if it is loop vectorization
8820 before calling nested_in_vect_loop_p.
8821 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
8822 dependence instances from either loop or basic block vectorization
8823 info.
8824 (vect_verify_datarefs_alignment): Likewise.
8825 (vect_enhance_data_refs_alignment): Adjust function calls.
8826 (vect_analyze_data_refs_alignment): Likewise.
8827 (vect_analyze_group_access): Fix printing. Skip different checks if
8828 DR_STEP is 0. Keep strided stores either in loop or basic block
8829 vectorization data structure. Fix indentation.
8830 (vect_analyze_data_ref_access): Fix comments, allow zero step in
8831 basic blocks.
8832 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
8833 dependence instances from either loop or basic block vectorization
8834 info.
8835 (vect_analyze_data_refs): Update comment. Call
8836 compute_data_dependences_for_bb to analyze basic blocks.
8837 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
8838 case of loop vectorization. In case of basic block vectorization use
8839 data-ref itself as a base.
8840 (vect_create_data_ref_ptr): In case of basic block vectorization:
8841 don't advance the pointer, add new statements before the current
8842 statement. Adjust function calls.
8843 (vect_supportable_dr_alignment): Support only aligned accesses in
8844 basic block vectorization.
8845 * common.opt (ftree-slp-vectorize): New flag.
8846 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
8847 (vect_pattern_recog_1): Likewise.
8848 * tree-vect-stmts.c (process_use): Likewise.
8849 (vect_init_vector): Add new statements in the beginning of the basic
8850 block in case of basic block SLP.
8851 (vect_get_vec_def_for_operand): Adjust function calls.
8852 (vect_finish_stmt_generation): Likewise.
8853 (vectorizable_call): Add assert that it is loop vectorization, adjust
8854 function calls.
8855 (vectorizable_conversion, vectorizable_assignment): Likewise.
8856 (vectorizable_operation): In case of basic block SLP, take
8857 vectorization factor from statement's type and skip the relevance
8858 check. Adjust function calls.
8859 (vectorizable_type_demotion): Add assert that it is loop
8860 vectorization, adjust function calls.
8861 (vectorizable_type_promotion): Likewise.
8862 (vectorizable_store): Check for outer loop only in case of loop
8863 vectorization. Adjust function calls. For basic blocks, skip the
8864 relevance check and don't advance pointers.
8865 (vectorizable_load): Likewise.
8866 (vectorizable_condition): Add assert that it is loop vectorization,
8867 adjust function calls.
8868 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
8869 that it is not reduction, get vector type, call only supported
8870 functions, skip loop specific parts.
8871 (vect_transform_stmt): Check for outer loop only in case of loop
8872 vectorization.
8873 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
8874 (vect_is_simple_use): Fix comment, add new argument, fix conditions
8875 for external definition.
8876 * passes.c (pass_slp_vectorize): New pass.
8877 * tree-vect-slp.c (find_bb_location): New function.
8878 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
8879 check for patterns only in loops.
8880 (vect_build_slp_tree): Add argument, adjust function calls, fail in
8881 case of multiple types in basic block SLP.
8882 (vect_mark_slp_stmts_relevant): New function.
8883 (vect_supported_load_permutation_p): Fix comment.
8884 (vect_analyze_slp_instance): Add argument. In case of basic block
8885 SLP, take vectorization factor from statement's type, check that
8886 unrolling factor is 1. Adjust function call. Save SLP instance in
8887 either loop or basic block vectorization structure. Return FALSE,
8888 if SLP failed.
8889 (vect_analyze_slp): Add argument. Get strided stores groups from
8890 either loop or basic block vectorization structure. Return FALSE
8891 if basic block SLP failed.
8892 (new_bb_vec_info): New function.
8893 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
8894 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
8895 (vect_schedule_slp): Add argument. Get SLP instances from either
8896 loop or basic block vectorization structure. Set vectorization factor
8897 to be 1 for basic block SLP.
8898 (vect_slp_transform_bb): New function.
8899 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
8900
8901 2009-05-23 Mark Mitchell <mark@codesourcery.com>
8902
8903 * final.c (shorten_branches): Do not align labels for jump tables.
8904 (final_scan_insn): Use JUMP_TABLE_DATA_P.
8905
8906 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
8907
8908 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
8909 Remove outdated reference to flow.c and fix nits.
8910 * doc/gccint.texi: Tweak RTL description.
8911 * doc/rtl.texi: Likewise.
8912
8913 2009-05-23 Denis Chertykov <chertykov@gmail.com>
8914
8915 * config/avr/avr.c: Change my email address.
8916 * config/avr/avr.h: Likewise.
8917 * config/avr/avr.md: Likewise.
8918 * config/avr/avr-protos.h: Likewise.
8919 * config/avr/libgcc.S: Likewise.
8920
8921 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
8922
8923 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
8924 (spu_split_load, spu_split_store): Change return type to int.
8925 (spu_split_convert): Declare.
8926 * config/spu/predicates.md (spu_mem_operand): Remove.
8927 (spu_mov_operand): Update.
8928 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
8929 * config/spu/spu.c (regno_aligned_for_load): Remove.
8930 (reg_aligned_for_addr, spu_expand_load): Define.
8931 (spu_expand_extv): Reimplement and handle MEM.
8932 (spu_expand_insv): Handle MEM.
8933 (spu_sched_reorder): Handle insn's with length 0.
8934 (spu_legitimate_address_p): Reimplement.
8935 (store_with_one_insn_p): Return TRUE for any mode with size
8936 larger than 16 bytes.
8937 (address_needs_split): Define.
8938 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
8939 operands.
8940 (spu_convert_move): Define.
8941 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
8942 (spu_split_store): Change all MEM's to TImode.
8943 (spu_init_expanders): Preallocate registers that correspond to
8944 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
8945 mark_reg_pointer.
8946 (spu_split_convert): Define.
8947 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
8948 (_move<mode>, _movdi, _movti): Update predicate and condition.
8949 (load, store): Change to define_split.
8950 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
8951 extend<mode>ti2.
8952 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
8953 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
8954 define_insn_and_split of lshr<mode>3.
8955 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
8956 (<v>ashr<mode>3_imm): Define.
8957 (extv, extzv, insv): Allow MEM operands.
8958 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
8959 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
8960 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
8961 (_spu_convert2): Change to define_insn_and_split and remove the
8962 corresponding define_peephole2.
8963 (stack_protect_set, stack_protect_test, stack_protect_test_si):
8964 Change predicates to memory_operand.
8965
8966 2009-05-22 Mark Mitchell <mark@codesourcery.com>
8967
8968 * config/arm/thumb2.md: Add 16-bit multiply instructions.
8969
8970 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8971
8972 PR tree-optimization/40219
8973 * tree.c (iterative_hash_expr): Make sure the builtin function is
8974 a normal builtin function and not a front end or back end builtin
8975 before indexing into the built_in_decls array.
8976
8977 2009-05-22 Richard Guenther <rguenther@suse.de>
8978
8979 PR middle-end/38964
8980 * alias.c (write_dependence_p): Do not use TBAA for answering
8981 anti-dependence or output-dependence.
8982 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
8983 (emit_pointer_definition): Remove.
8984 (emit_alias_warning): Likewise.
8985 (find_what_var_points_to): Remove TBAA pruning code.
8986 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
8987 violations.
8988 (compute_points_to_sets): Remove code computing the set of
8989 dereferenced pointers.
8990 * tree-data-ref.c (dr_may_alias_p): Properly use the split
8991 oracle for querying anti and output dependencies.
8992 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
8993 if TBAA may be applied.
8994 (refs_anti_dependent_p): New function.
8995 (refs_output_dependent_p): Likewise.
8996 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
8997 (refs_output_dependent_p): Likewise.
8998 * doc/tree-ssa.texi (Memory model): New section.
8999 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
9000 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
9001 * cfgexpand.c (expand_gimple_basic_block): Do not handle
9002 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
9003 * expr.c (expand_expr_real_1): Likewise.
9004 * gimple-low.c (lower_stmt): Likewise.
9005 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
9006 (dump_gimple_cdt): Remove.
9007 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
9008 (gimple_size): Likewise.
9009 (walk_gimple_op): Likewise.
9010 (is_gimple_stmt): Likewise.
9011 (walk_stmt_load_store_addr_ops): Likewise.
9012 (gimple_build_cdt): Remove.
9013 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
9014 * gimple.h (gimple_cdt_new_type): Remove.
9015 (gimple_cdt_new_type_ptr): Likewise.
9016 (gimple_cdt_set_new_type): Likewise.
9017 (gimple_cdt_location): Likewise.
9018 (gimple_cdt_location_ptr): Likewise.
9019 (gimple_cdt_set_location): Likewise.
9020 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
9021 * tree-cfg.c (remove_useless_stmts_1): Do not handle
9022 GIMPLE_CHANGE_DYNAMIC_TYPE.
9023 (verify_types_in_gimple_stmt): Likewise.
9024 * tree-inline.c (estimate_num_insns): Likewise.
9025 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
9026 (copy_decl_to_var): Likewise.
9027 (copy_result_decl_to_var): Likewise.
9028 * tree-pretty-print.c (dump_generic_node): Do not handle
9029 CHANGE_DYNAMIC_TYPE_EXPR.
9030 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9031 * tree-ssa-operands.c (get_expr_operands): Likewise.
9032 * tree-ssa-structalias.c (struct variable_info): Remove
9033 no_tbaa_pruning member.
9034 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
9035 (unify_nodes): Do not copy it.
9036 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
9037 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
9038 (set_uids_in_ptset): Do not check it.
9039 (find_what_var_points_to): Likewise.
9040 (compute_tbaa_pruning): Remove.
9041 (compute_points_to_sets): Do not call it.
9042 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
9043 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
9044 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
9045 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
9046 (DECL_NO_TBAA_P): Likewise.
9047 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
9048 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
9049 (expand_omp_atomic_pipeline): Do not set it.
9050 * print-tree.c (print_node): Do not dump it.
9051 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
9052 redundant check.
9053
9054 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
9055
9056 PR target/39856
9057 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
9058 for clobber.
9059
9060 2009-05-22 Mark Mitchell <mark@codesourcery.com>
9061
9062 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
9063 non-external.
9064
9065 2009-05-22 Ben Elliston <bje@au.ibm.com>
9066
9067 * Makefile.in (bversion.h, s-bversion): New targets.
9068 (TOPLEV_H): Add bversion.h.
9069 * toplev.h: Include "bversion.h".
9070 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
9071 the __format__ attribute only if compiling with the same version
9072 of GCC as the sources (the "build version").
9073
9074 2009-05-22 Ben Elliston <bje@au.ibm.com>
9075
9076 * c-format.c (handle_format_attribute): Fix comment typo.
9077
9078 2009-05-21 Steve Ellcey <sje@cup.hp.com>
9079
9080 PR target/37846
9081 * config/ia64/ia64.opt (mfused-madd): New.
9082 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
9083 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
9084 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
9085 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
9086 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
9087 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
9088 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
9089 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
9090 instruction if !TARGET_FUSED_MADD.
9091 (fpma, fpms): Remove colon from name.
9092
9093 2009-05-22 Richard Guenther <rguenther@suse.de>
9094
9095 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
9096 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
9097 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9098 TARGET_MEM_REF.
9099 (create_expression_by_pieces): Only convert if necessary.
9100 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
9101 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
9102
9103 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
9104
9105 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
9106 regular pattern from a template and rename it ...
9107 (*extzv_truncsi_exts): ... to this.
9108
9109 2009-05-21 Richard Guenther <rguenther@suse.de>
9110
9111 * cgraph.h (struct cgraph_node): Remove inline_decl member.
9112 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
9113 (cgraph_default_inline_p): Likewise.
9114 (cgraph_decide_inlining_incrementally): Likewise.
9115
9116 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
9117 Uros Bizjak <ubizjak@gmail.com>
9118
9119 * config/i386/cpuid.h (bit_MOVBE): New.
9120
9121 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
9122
9123 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
9124 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
9125 (ix86_handle_option): Handle OPT_mmovbe.
9126 (ix86_target_string): Add -mmovbe.
9127 (pta_flags): Add PTA_MOVBE.
9128 (processor_alias_table): Add PTA_MOVBE to "atom".
9129 (override_options): Handle PTA_MOVBE.
9130
9131 * config/i386/i386.h (TARGET_MOVBE): New.
9132
9133 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
9134 (*bswapsi_movbe): New.
9135 (*bswapdi_movbe): Likewise.
9136 (bswapdi2): Renamed to ...
9137 (*bswapdi_1): This.
9138 (bswapdi2): New expander.
9139
9140 * config/i386/i386.opt (mmovbe): New.
9141
9142 * doc/invoke.texi: Document -mmovbe.
9143
9144 2009-05-21 Taras Glek <tglek@mozilla.com>
9145
9146 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
9147 * gcc-plugin.h (plugin_init): Updated signature.
9148 * gcc-plugin.h (plugin_name_args): Moved to this header.
9149 * doc/plugins.texi (plugin_init): Updated documention to reflect
9150 API change.
9151 * doc/plugins.texi (plugin_name_args): Added to documention.
9152
9153 2009-05-21 Mark Mitchell <mark@codesourcery.com>
9154
9155 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
9156 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
9157
9158 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
9159
9160 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
9161 JUMP_TABLE_DATA_P predicates where applicable.
9162 * config/i386/predicates.md: Ditto.
9163 * config/i386/sse.md: Ditto.
9164
9165 2009-05-21 Jakub Jelinek <jakub@redhat.com>
9166
9167 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
9168 operand2 -128 override length_immediate attribute to 1.
9169 * config/i386/predicates.md (constm128_operand): New predicate.
9170
9171 * config/i386/i386.c (memory_address_length): Handle %r12
9172 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
9173 also check REGNO.
9174 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
9175 mode look through optional ZERO_EXTEND and SUBREG.
9176 * config/i386/i386.md (R12_REG): New define_constant.
9177 (prefix_data16): For sse unit set also for MODE_TI insns.
9178 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
9179 insns set if operand 1 is ext_QIreg_operand.
9180 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
9181 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
9182 immediate.
9183 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
9184 mode from MODE_DI to MODE_SI.
9185 (movdi_1_rex64): Override modrm and length_immediate attributes
9186 only for movabs (TYPE_IMOV, alternative 2).
9187 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
9188 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
9189 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
9190 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
9191 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
9192 prefix_rex attribute if DImode.
9193 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
9194 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
9195 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
9196 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
9197 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
9198 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
9199 Likewise. For TYPE_IMOV clear length_immediate attribute.
9200 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
9201 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
9202 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
9203 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
9204 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
9205 or one operand TYPE_ISHIFT.
9206 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
9207 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
9208 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
9209 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
9210 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
9211 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
9212 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
9213 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
9214 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
9215 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
9216 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
9217 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
9218 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
9219 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
9220 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
9221 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
9222 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
9223 set mode attribute, don't override length attribute.
9224 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
9225 to 1.
9226 (return_internal_long): Set length attribute to 2 instead of 1.
9227 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
9228 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
9229 prefix_rex attribute.
9230 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
9231 New predicates.
9232 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
9233
9234 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9235
9236 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
9237
9238 2009-05-20 Ian Lance Taylor <iant@google.com>
9239
9240 * tree.c (build_tree_list_vec_stat): New function.
9241 (ctor_to_vec): New function.
9242 (build_nt_call_vec): New function.
9243 (build_call_array): Change args to be a const pointer.
9244 (build_call_vec): New function.
9245 * tree.h (build_nt_call_vec): Declare.
9246 (build_tree_list_vec_stat): Declare.
9247 (build_tree_list_vec): Define.
9248 (build_call_array): Update declaration.
9249 (build_call_vec): Declare.
9250 (ctor_to_vec): Declare.
9251 * c-common.c (tree_vector_cache): New static variable.
9252 (make_tree_vector): New function.
9253 (release_tree_vector): New function.
9254 (make_tree_vector_single): New function.
9255 (make_tree_vector_copy): New function.
9256 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
9257 (make_tree_vector_single, make_tree_vector_copy): Declare.
9258 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
9259 (c_parser_expr_list): Don't manage cache here, instead call
9260 make_tree_vector.
9261 (c_parser_release_expr_list): Remove static function.
9262 (c_parser_vec_to_tree_list): Remove static function.
9263 (c_parser_attributes): Call build_tree_list_vec instead of
9264 c_parser_vec_to_tree_list. Call release_tree_vector instead of
9265 c_parser_release_expr_list.
9266 (c_parser_postfix_expression_after_primary): Likewise.
9267 (c_parser_objc_keywordexpr): Likewise.
9268
9269 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
9270
9271 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
9272 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
9273 TARGET_CONVERT_TO_TYPE.
9274 * hooks.c (hook_tree_const_tree_null): Define.
9275 * hooks.h (hook_tree_const_tree_null): Declare.
9276 * target.h (struct gcc_target): Add invalid_parameter_type,
9277 invalid_return_type, promoted_type, and convert_to_type fields.
9278 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
9279 (TARGET_INVALID_RETURN_TYPE): Define.
9280 (TARGET_PROMOTED_TYPE): Define.
9281 (TARGET_CONVERT_TO_TYPE): Define.
9282 (TARGET_INITIALIZER): Update for new fields.
9283 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
9284 (grokparms): Check targetm.invalid_parameter_type.
9285 * c-typeck.c (default_conversion): Check targetm.promoted_type.
9286 * c-convert.c (convert): Check targetm.convert_to_type.
9287
9288 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
9289
9290 * config/mips/mips.md (*extenddi_truncate<mode>,
9291 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
9292 defintions.
9293 (*extendhi_truncateqi): New define_insn_and_sptit.
9294
9295 2009-05-20 Jakub Jelinek <jakub@redhat.com>
9296
9297 PR middle-end/40204
9298 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
9299 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
9300
9301 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
9302
9303 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
9304 the operand of VIEW_CONVERT_EXPR.
9305
9306 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
9307
9308 * config/i386/driver-i386.c (host_detect_local_cpu): Check
9309 extended family and model for Intel processors. Support Intel Atom.
9310
9311 2009-05-20 Olivier Hainque <hainque@adacore.com>
9312
9313 * gstab.h (stab_code_type): Define, to be used instead of the
9314 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
9315 notice.
9316 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
9317 occurrences by stab_code_type.
9318 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
9319
9320 2009-05-20 Martin Jambor <mjambor@suse.cz>
9321
9322 * tree-flow.h (insert_edge_copies_seq): Undeclare.
9323 (sra_insert_before): Likewise.
9324 (sra_insert_after): Likewise.
9325 (sra_init_cache): Likewise.
9326 (sra_type_can_be_decomposed_p): Likewise.
9327 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
9328 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
9329 (sra_insert_before): Likewise.
9330 (sra_insert_after): Likewise.
9331 (sra_init_cache): Likewise.
9332 (insert_edge_copies_seq): Made static and moved upwards.
9333
9334 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
9335 case.
9336
9337 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
9338
9339 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
9340 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
9341 simple copies.
9342
9343 2009-05-20 Richard Guenther <rguenther@suse.de>
9344
9345 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
9346 with mismatched comparison modes.
9347
9348 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9349
9350 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
9351 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
9352 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
9353 with shifts for Thumb2.
9354 (orsi_notsi): New for orn.
9355 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
9356 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
9357 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
9358 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
9359 Don't invert remainder for IOR.
9360
9361 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
9362
9363 PR tree-optimization/40087
9364 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
9365 number_of_iterations_ne): Rename never_infinite argument.
9366 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
9367 number_of_iterations_le): Handle pointer-type ivs when
9368 exit_must_be_taken is false.
9369 (number_of_iterations_cond): Do not always assume that
9370 exit_must_be_taken if the control variable is a pointer.
9371
9372 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
9373
9374 * c-typeck.c (build_binary_op): Allow % on integal vectors.
9375 * doc/extend.texi (Vector Extension): Document that % is allowed too.
9376
9377 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
9378
9379 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
9380 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
9381
9382 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9383
9384 PR c/40172
9385 * c.opt (Wlogical-op): Disabled by default.
9386 * c-opt (c_common_post_options): Do not enable Wlogical-op with
9387 Wextra.
9388 * doc/invoke.texi (Wlogical-op): Likewise.
9389
9390 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
9391
9392 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
9393 into CASE_CONVERT.
9394 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
9395 Propagate the type of the first operand.
9396 <ASSERT_EXPR>: Simplify.
9397 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
9398 Rewrite using the RHS code as discriminant.
9399 <NOP_EXPR>: Turn into CASE_CONVERT.
9400 <PLUS_EXPR>: Propagate the type of the first operand.
9401
9402 2009-05-19 Steve Ellcey <sje@cup.hp.com>
9403
9404 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
9405 (ia64_dconst_0_375): New.
9406 * config/ia64/ia64.c (ia64_override_options): Remove
9407 -minline-sqrt-min-latency warning.
9408 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
9409 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
9410 * config/ia64/ia64.md (*sqrt_approx): Remove.
9411 (sqrtsf2): Remove #if 0.
9412 (sqrtsf2_internal_thr): Rewrite and move to div.md.
9413 (sqrtdf): Remove assert.
9414 (sqrtdf2_internal_thr): Rewrite and move to div.md.
9415 (sqrtxf2): Remove #if 0.
9416 (sqrtxf2_internal_thr): Rewrite and move to div.md.
9417 * div.md (sqrt_approx_rf): New.
9418 (sqrtsf2_internal_thr): New implementation.
9419 (sqrtsf2_internal_lat): New.
9420 (sqrtdf2_internal_thr: New implementation.
9421 (sqrtxf2_internal): New implementation.
9422
9423 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
9424 Hans-Peter Nilsson <hp@axis.com>
9425
9426 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
9427 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
9428 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
9429 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
9430 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
9431 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
9432 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
9433 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
9434 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
9435 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
9436 * c-common.c: ...from here.
9437
9438 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9439
9440 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
9441
9442 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9443
9444 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
9445
9446 2009-05-19 Ben Elliston <bje@au.ibm.com>
9447
9448 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
9449 assignments with memcpy calls.
9450 (add_fdes): Likewise.
9451 (binary_search_unencoded_fdes): Likewise.
9452 (linear_search_fdes): Eliminate type puns.
9453
9454 2009-05-19 Richard Guenther <rguenther@suse.de>
9455
9456 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
9457 not falsely claim to have propagated into all uses.
9458
9459 2009-05-19 Ben Elliston <bje@au.ibm.com>
9460
9461 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
9462 version to v3.0.
9463
9464 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
9465
9466 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
9467 * config/sh/sh.c (sh_legitimate_address_p): Make static.
9468 (TARGET_LEGITIMATE_ADDRESS_P): New.
9469 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
9470 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
9471
9472 2009-05-18 Dodji Seketeli <dodji@redhat.com>
9473
9474 PR debug/40109
9475 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
9476 child of the containing namespace's DIE.
9477
9478 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
9479
9480 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
9481 *zero_extendhi_truncqi): Move after the zero_extend patterns.
9482 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
9483 extend patterns.
9484
9485 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
9486
9487 PR target/39942
9488 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
9489 gen_align with gen_pad.
9490 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
9491 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
9492
9493 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
9494 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
9495
9496 * config/i386/i386.md (align): Renamed to ...
9497 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
9498 ASM_OUTPUT_MAX_SKIP_PAD.
9499
9500 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
9501
9502 * config.gcc: Fix variable syntax.
9503
9504 PR target/39531
9505 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
9506 before calling exact_log2.
9507 (output_iorsi3): Likewise.
9508 (output_xorsi3): Likewise.
9509
9510 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
9511
9512 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
9513 for the none zero constant operand except for EQ and NE
9514 comprisons even when the first operand is R0.
9515
9516 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
9517
9518 * config/s390/2064.md: Remove trailing whitespaces.
9519 * config/s390/2084.md: Likewise.
9520 * config/s390/constraints.md: Likewise.
9521 * config/s390/fixdfdi.h: Likewise.
9522 * config/s390/libgcc-glibc.ver: Likewise.
9523 * config/s390/s390-modes.def: Likewise.
9524 * config/s390/s390-protos.h: Likewise.
9525 * config/s390/s390.c: Likewise.
9526 * config/s390/s390.h: Likewise.
9527 * config/s390/s390.md: Likewise.
9528 * config/s390/tpf-unwind.h: Likewise.
9529
9530 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9531
9532 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
9533
9534 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9535
9536 M68K TLS support.
9537 * configure.ac (m68k-*-*): Check if binutils support TLS.
9538 * configure: Regenerate.
9539 * config/m68k/predicates.md (symbolic_operand): Extend comment.
9540 * config/m68k/constraints.md (Cu): New constraint.
9541 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
9542 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
9543 (movsi): Handle TLS symbols.
9544 (addsi3_5200): Handle XTLS symbols, indent.
9545 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
9546 (m68k_tls_reference_p): Declare.
9547 (m68k_legitimize_address): Declare.
9548 (m68k_unwrap_symbol): Declare.
9549 * config/m68k/m68k.opt (mxtls): New option.
9550 * config/m68k/m68k.c (ggc.h): Include.
9551 (m68k_output_dwarf_dtprel): Implement hook.
9552 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
9553 (m68k_expand_prologue): Load GOT pointer when function needs it.
9554 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
9555 (m68k_legitimate_constant_address_p): Same.
9556 (m68k_decompose_address): Handle TLS references.
9557 (m68k_get_gp): New static function.
9558 (enum m68k_reloc): New contants.
9559 (TLS_RELOC_P): New macro.
9560 (m68k_wrap_symbol): New static function.
9561 (m68k_unwrap_symbol): New function.
9562 (m68k_final_prescan_insn_1): New static function.
9563 (m68k_final_prescan_insn): New function.
9564 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
9565 functions.
9566 (legitimize_pic_address): Handle TLS references..
9567 (m68k_tls_get_addr, m68k_get_tls_get_addr)
9568 (m68k_libcall_value_in_a0_p)
9569 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
9570 (m68k_call_m68k_read_tp): Helper variables and functions for ...
9571 (m68k_legitimize_tls_address): Handle TLS references.
9572 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
9573 New functions.
9574 (m68k_legitimize_address): Handle TLS symbols.
9575 (m68k_get_reloc_decoration): New static function.
9576 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
9577 UNSPEC_RELOC32.
9578 (m68k_output_dwarf_dtprel): Implement hook.
9579 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
9580 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
9581 m68k_call_* routines.
9582 (sched_attr_op_type): Handle TLS symbols.
9583 (gt-m68k.h): Include.
9584 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
9585 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
9586
9587 2009-05-18 Martin Jambor <mjambor@suse.cz>
9588
9589 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
9590 (visit_store_addr_for_mod_analysis): New function.
9591 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
9592 (determine_cst_member_ptr): Use gimple_assign_single_p.
9593 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
9594 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
9595 operands. Don't check number of operands of a NOP_EXPR.
9596
9597 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
9598
9599 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
9600
9601 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
9602
9603 PR c/40172
9604 * c-common.c (warn_logical_operator): Don't warn if one of
9605 expression isn't always true or false.
9606
9607 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
9608
9609 * config/i386/biarch32.h: New file.
9610 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
9611
9612 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
9613
9614 * config/mips/mips.md (*zero_extend<mode>_trunchi,
9615 *zero_extend<mode>_truncqi): Merge these into ...
9616 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
9617 Name the pattern following this as *zero_extendhi_truncqi.
9618
9619 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
9620
9621 PR middle-end/39301
9622 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
9623 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
9624 (output_info): Make field HOST_WIDEST_INT.
9625 (print_statistics): Use HOST_WIDEST_INT_PRINT.
9626 (dump_bitmat_statistics): Same.
9627
9628 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
9629
9630 * config.gcc (use_gcc_stdint): Set to wrap.
9631 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
9632 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
9633 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9634 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
9635 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
9636 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
9637 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9638 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
9639
9640 2009-05-16 Joseph Myers <joseph@codesourcery.com>
9641
9642 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
9643 tune_64.
9644 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
9645 Move definitions earlier.
9646 (OPT_ARCH64, OPT_ARCH32): Define.
9647 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
9648 and tune_64.
9649
9650 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
9651
9652 PR target/40153
9653 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
9654 implies.
9655
9656 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
9657
9658 * arm.md (movdi2): Copy non-reg values to DImode registers.
9659
9660 2009-05-16 Jakub Jelinek <jakub@redhat.com>
9661
9662 PR target/39942
9663 * final.c (label_to_max_skip): New function.
9664 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
9665 CODE_LABEL_NUMBER <= max_labelno.
9666 * output.h (label_to_max_skip): New prototype.
9667 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
9668 (ix86_avoid_jump_mispredicts): ... this. Don't define if
9669 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
9670 Handle CODE_LABELs with >= 16 byte alignment or with
9671 max_skip == (1 << align) - 1.
9672 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
9673 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
9674
9675 PR target/39942
9676 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
9677 .p2align 3 if MAX_SKIP is smaller than 7.
9678 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
9679
9680 2009-05-15 Ian Lance Taylor <iant@google.com>
9681
9682 * alias.c (struct alias_set_entry_d): Rename from struct
9683 alias_set_entry. Change all uses.
9684 * except.c (struct call_site_record_d): Rename from struct
9685 call_site_record. Change all uses.
9686 * except.h (struct eh_region_d): Rename from struct eh_region.
9687 Change all uses.
9688 * gcse.c (struct hash_table_d): Rename from struct hash_table.
9689 Change all uses.
9690 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
9691 ivtype_map_elt. Change all uses.
9692 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
9693 Change all uses.
9694 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
9695 * graphite.h (struct name_tree_d): Rename from struct name_tree.
9696 Change all uses.
9697 (struct sese_d): Rename from struct sese. Change all uses.
9698 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
9699 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
9700 * optabs.h (struct optab_d): Rename from struct optab. Change all
9701 uses.
9702 (struct convert_optab_d): Rename from struct convert_optab.
9703 Change all uses.
9704 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
9705 ipa_opt_pass. Change all uses.
9706 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
9707 all uses.
9708
9709 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
9710 defined as a typedef.
9711 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
9712 defined as a tag.
9713
9714 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9715
9716 PR 16302
9717 * fold-const.c (make_range,build_range_check,merge_ranges): Move
9718 declaration to...
9719 (merge_ranges): Returns bool.
9720 * tree.h (make_range): .. to here.
9721 (build_range_check): Likewise.
9722 (merge_ranges): Likewise. Renamed from merge_ranges.
9723 * c-typeck.c (parser_build_binary_op): Update calls to
9724 warn_logical_operator.
9725 * c-common.c (warn_logical_operator): Add new warning.
9726 * c-common.h (warn_logical_operator): Update declaration.
9727
9728 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
9729
9730 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
9731
9732 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9733
9734 * doc/install.texi: Document MPC requirements, flags etc.
9735
9736 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
9737 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
9738 Evaluate constant arguments.
9739 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
9740 (fold_builtin_1): Likewise, also evaluate constant arguments.
9741 Remove superfluous break.
9742 (do_mpc_ckconv): New.
9743 * real.h: Include mpc.h.
9744 * toplev.c (print_version): Output MPC version info if available.
9745
9746 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
9747
9748 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
9749
9750 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
9751
9752 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
9753 only once.
9754
9755 2009-05-15 Jan Hubicka <jh@suse.cz>
9756
9757 * doc/invoke.texi (max-early-inliner-iterations): New flag.
9758 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
9759 (try_inline): Fix return value.
9760 (cgraph_decide_inlining_incrementally): Honor new value.
9761 (cgraph_early_inlining): Handle indirect inlining.
9762 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
9763
9764 2009-05-15 Jan Hubicka <jh@suse.cz>
9765
9766 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
9767 * cgraphunit.c (cgraph_finalize_function): Set it.
9768 (cgraph_expand_function): Use it.
9769
9770 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
9771
9772 * real.c (encode_ieee_half): Define.
9773 (decode_ieee_half): Define.
9774 (ieee_half_format): Define.
9775 (arm_half_format): Define.
9776 * real.h (ieee_half_format): Declare.
9777 (arm_half_format): Declare.
9778
9779 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
9780
9781 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
9782 swapped, and reversed optabs exist before trying to use them.
9783
9784 2009-05-15 Paul Brook <paul@codesourcery.com>
9785 Sandra Loosemore <sandra@codesourcery.com>
9786
9787 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
9788 loads. Allow PRE_DEC.
9789 (output_move_neon): Handle PRE_DEC.
9790 (arm_print_operand): Add 'A' for neon structure loads.
9791 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
9792 * config/arm/neon.md (neon_mov): Update comment.
9793 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
9794 calls.
9795 (Um): New constraint.
9796
9797 2009-05-15 Jan Hubicka <jh@suse.cz>
9798
9799 Revert the following patch until testsuite fallout is fixed:
9800 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
9801 * cgraph.h (struct inline_summary): New filed self_wize,
9802 size_inlining_benefit, self_time and time_inlining_benefit.
9803 (struct cgraph_global_info): Replace insns by time ans size fields.
9804 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
9805 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
9806 (ipcp_update_callgraph): Do not touch function bodies.
9807 * ipa-inline.c: Include except.h
9808 (MAX_TIME): New constant.
9809 (overall_insns): Remove
9810 (overall_size, max_benefit): New static variables.
9811 (cgraph_estimate_time_after_inlining): New function.
9812 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
9813 (cgraph_clone_inlined_nodes): Update size.
9814 (cgraph_mark_inline_edge): Update size.
9815 (cgraph_estimate_growth): Use size info.
9816 (cgraph_check_inline_limits): Check size.
9817 (cgraph_default_inline_p): Likewise.
9818 (cgraph_edge_badness): Compute badness based on benefit and size cost.
9819 (cgraph_decide_recursive_inlining): Check size.
9820 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
9821 and times.
9822 (cgraph_decide_inlining): Likewise.
9823 (cgraph_decide_inlining_incrementally): Likewise; honor
9824 PARAM_EARLY_INLINING_INSNS.
9825 (likely_eliminated_by_inlining_p): New predicate.
9826 (estimate_function_body_sizes): New function.
9827 (compute_inline_parameters): Use it.
9828 * except.c (must_not_throw_labels): New function.
9829 * except.h (must_not_throw_labels): Declare.
9830 * tree-inline.c (init_inline_once): Kill inlining_weigths
9831 * tree-ssa-structalias.c: Avoid uninitialized warning.
9832 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
9833 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
9834 (PARAM_INLINE_CALL_COST): Remove.
9835 (PARAM_EARLY_INLINING_INSNS): New.
9836
9837 2009-05-15 Richard Guenther <rguenther@suse.de>
9838
9839 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
9840 not TODO_update_ssa.
9841
9842 2009-05-15 Richard Guenther <rguenther@suse.de>
9843
9844 PR tree-optimization/39999
9845 * gimple.h (gimple_expr_type): Use the expression type looking
9846 through useless conversions.
9847 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
9848 (vn_nary_op_insert_stmt): Likewise.
9849 (simplify_binary_expression): Likewise.
9850
9851 2009-05-15 Richard Guenther <rguenther@suse.de>
9852
9853 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
9854 New options, enabled by default.
9855 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
9856 Document.
9857 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
9858 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
9859 * tree-ssa-structalias.c (gate_tree_pta): New function.
9860 (pass_build_alias): Use it.
9861
9862 2009-05-15 Joseph Myers <joseph@codesourcery.com>
9863
9864 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
9865 recurse on an invariant address if a conversion from a pointer
9866 type to a wider integer type is involved.
9867
9868 2009-05-15 Jan Hubicka <jh@suse.cz>
9869
9870 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
9871 * cgraph.h (struct inline_summary): New filed self_wize,
9872 size_inlining_benefit, self_time and time_inlining_benefit.
9873 (struct cgraph_global_info): Replace insns by time ans size fields.
9874 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
9875 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
9876 (ipcp_update_callgraph): Do not touch function bodies.
9877 * ipa-inline.c: Include except.h
9878 (MAX_TIME): New constant.
9879 (overall_insns): Remove
9880 (overall_size, max_benefit): New static variables.
9881 (cgraph_estimate_time_after_inlining): New function.
9882 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
9883 (cgraph_clone_inlined_nodes): Update size.
9884 (cgraph_mark_inline_edge): Update size.
9885 (cgraph_estimate_growth): Use size info.
9886 (cgraph_check_inline_limits): Check size.
9887 (cgraph_default_inline_p): Likewise.
9888 (cgraph_edge_badness): Compute badness based on benefit and size cost.
9889 (cgraph_decide_recursive_inlining): Check size.
9890 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
9891 and times.
9892 (cgraph_decide_inlining): Likewise.
9893 (cgraph_decide_inlining_incrementally): Likewise; honor
9894 PARAM_EARLY_INLINING_INSNS.
9895 (likely_eliminated_by_inlining_p): New predicate.
9896 (estimate_function_body_sizes): New function.
9897 (compute_inline_parameters): Use it.
9898 * except.c (must_not_throw_labels): New function.
9899 * except.h (must_not_throw_labels): Declare.
9900 * tree-inline.c (init_inline_once): Kill inlining_weigths
9901 * tree-ssa-structalias.c: Avoid uninitialized warning.
9902 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
9903 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
9904 (PARAM_INLINE_CALL_COST): Remove.
9905 (PARAM_EARLY_INLINING_INSNS): New.
9906 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
9907 (inline-call-cost): Remove.
9908 (early-inlining-insns): New.
9909
9910 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
9911
9912 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
9913 for bounds.
9914 (print_int_cst_bounds_in_octal_p): Likewise.
9915 (dbxout_type): Adjust calls to above functions. Be prepared to deal
9916 with subtypes.
9917 * dwarf2out.c (base_type_die): Likewise.
9918 (is_subrange_type): Delete.
9919 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
9920 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
9921 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
9922 if the destination type is boolean.
9923 (build_range_check): Do not special-case subtypes.
9924 (fold_sign_changed_comparison): Likewise.
9925 (fold_unary): Likewise.
9926 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
9927 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
9928 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
9929 * tree.c (subrange_type_for_debug_p): New predicate based on the
9930 former is_subrange_type.
9931 * tree.h (subrange_type_for_debug_p): Declare.
9932 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
9933 (convert_affine_scev): Remove call to above function.
9934 (chrec_convert_aggressive): Likewise.
9935 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
9936 false for conversions involving subtypes.
9937 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
9938 (vrp_val_min): Likewise.
9939 (needs_overflow_infinity): Likewise.
9940 (extract_range_from_unary_expr): Likewise.
9941
9942 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
9943
9944 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
9945 * config/frv/frv.c: Likewise.
9946 * config/s390/s390.c: Likewise.
9947 * config/sparc/sparc.h: Likewise.
9948 * config/i386/i386.h: Likewise.
9949 * config/i386/i386.c: Likewise.
9950 * config/crx/crx.c: Likewise.
9951 * config/m68hc11/m68hc11.h: Likewise.
9952 * config/iq2000/iq2000.c: Likewise.
9953 * config/mn10300/mn10300.h: Likewise.
9954 * config/mn10300/mn10300.c: Likewise.
9955 * config/m68k/m68k.c: Likewise.
9956 * config/rs6000/rs6000.c: Likewise.
9957 * config/rs6000/xcoff.h: Likewise.
9958 * config/rs6000/linux64.h: Likewise.
9959 * config/rs6000/sysv4.h: Likewise.
9960 * config/score/score3.c: Likewise.
9961 * config/score/score7.c: Likewise.
9962 * config/score/score.c: Likewise.
9963 * config/arm/arm.md: Likewise.
9964 * config/mips/mips.c: Likewise.
9965 * config/mips/mips.md: Likewise.
9966 * config/bfin/bfin.h: Likewise.
9967 * config/pa/pa.c: Likewise.
9968 * config/pa/constraints.md: Likewise.
9969
9970 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
9971 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
9972 * config/pdp11/pdp11.h: Use memory_address_p instead.
9973
9974 2009-05-14 Ian Lance Taylor <iant@google.com>
9975
9976 * passes.c (finish_optimization_passes): Change i to int.
9977 * plugin.c (plugins_active_p): Change event to int.
9978 (dump_active_plugins): Likewise.
9979 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
9980 Add cast.
9981 * tree.c (tree_range_check_failed): Change c to unsigned int.
9982 (omp_clause_range_check_failed): Likewise.
9983 (build_common_builtin_nodes): Change mode to int. Add cast.
9984 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
9985 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
9986
9987 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
9988 ++ or -- with a variable of enum type.
9989
9990 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
9991
9992 PR driver/40144
9993 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
9994
9995 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
9996
9997 * store-motion.c: Do not include params.h
9998 * Makefile.in: Fix dependencies for various files.
9999
10000 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
10001
10002 * auto-inc-dec.c: Fix pass description, remove apparent
10003 accidental duplication.
10004
10005 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
10006
10007 PR middle-end/40147
10008 * ipa-utils.h (memory_identifier_string): Moved to ...
10009 * tree.h (memory_identifier_string): Here. Add GTY(()).
10010
10011 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
10012
10013 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
10014 in the former documentation of...
10015 (GO_IF_LEGITIMATE_ADDRESS): ... this.
10016 * ira-conflicts.c (get_dup_num): Use address_operand.
10017 * targhooks.c (default_legitimate_address_p): New.
10018 * targhooks.h (default_legitimate_address_p): New.
10019 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
10020 Call hook.
10021 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
10022 * target.h (struct target): Add legitimate_address_p.
10023 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
10024 (TARGET_INITIALIZER): Include it.
10025
10026 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10027 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
10028 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
10029 (TARGET_LEGITIMATE_ADDRESS_P): New.
10030
10031 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10032 (REG_OK_STRICT_P): Delete.
10033 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
10034 (frv_legitimate_address_p_1): ... this.
10035 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
10036 (frv_legitimate_address_p_1): ... the renamed old
10037 frv_legitimate_address_p.
10038 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
10039 (TARGET_LEGITIMATE_ADDRESS_P): New.
10040
10041 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10042 * config/s390/s390-protos.h (legitimate_address_p): Remove.
10043 * config/s390/s390.c (legitimate_address_p): Rename to...
10044 (s390_legitimate_address_p): ... this, make static.
10045 (legitimize_address): Adjust call.
10046 (TARGET_LEGITIMATE_ADDRESS_P): New.
10047 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
10048
10049 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10050 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
10051 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
10052 (TARGET_LEGITIMATE_ADDRESS_P): New.
10053
10054 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10055 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
10056 * config/spu/spu.c (spu_legitimate_address): Rename to...
10057 (spu_legitimate_address_p): ... this, make static.
10058 (TARGET_LEGITIMATE_ADDRESS_P): New.
10059
10060 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10061 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
10062 * config/sparc/sparc.c (legitimate_address_p): Rename to...
10063 (sparc_legitimate_address_p): ... this, make static and return bool.
10064 (legitimize_address): Adjust call.
10065 (TARGET_LEGITIMATE_ADDRESS_P): New.
10066
10067 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10068 * config/i386/i386-protos.h (legitimate_address_p): Remove.
10069 * config/i386/i386.c (legitimate_address_p): Rename to...
10070 (ix86_legitimate_address_p): ... this, make static.
10071 (constant_address_p): Move after it, adjust call.
10072 (TARGET_LEGITIMATE_ADDRESS_P): New.
10073
10074 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10075 * config/avr/avr-protos.h (legitimate_address_p): Remove.
10076 * config/avr/avr.c (legitimate_address_p): Rename to...
10077 (avr_legitimate_address_p): ... this, make static.
10078 (legitimize_address): Adjust call.
10079 (TARGET_LEGITIMATE_ADDRESS_P): New.
10080
10081 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10082 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
10083 * config/crx/crx.c (crx_legitimate_address_p): Make static.
10084 (TARGET_LEGITIMATE_ADDRESS_P): New.
10085
10086 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10087 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
10088 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
10089 (TARGET_LEGITIMATE_ADDRESS_P): New.
10090
10091 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10092 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
10093 Remove.
10094 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10095 Make static.
10096 (TARGET_LEGITIMATE_ADDRESS_P): New.
10097
10098 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10099 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
10100 Remove.
10101 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
10102 Rename to...
10103 (m68hc11_legitimate_address_p): ... this, make static.
10104 (go_if_legitimate_address_internal): Rename to...
10105 (m68hc11_legitimate_address_p_1): ... this.
10106 (legitimize_address): Adjust call.
10107 (TARGET_LEGITIMATE_ADDRESS_P): New.
10108
10109 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10110 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
10111 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
10112 (TARGET_LEGITIMATE_ADDRESS_P): New.
10113
10114 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10115 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
10116 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
10117 (mn10300_legitimate_address_p): ... this, make static.
10118 (TARGET_LEGITIMATE_ADDRESS_P): New.
10119
10120 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10121 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
10122 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
10123 (TARGET_LEGITIMATE_ADDRESS_P): New.
10124
10125 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10126 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
10127 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
10128 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10129 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
10130 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
10131 (rs6000_legitimate_address_p): ... this, make static.
10132 (TARGET_LEGITIMATE_ADDRESS_P): New.
10133 (REG_MODE_OK_FOR_BASE_P): Delete.
10134 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
10135
10136 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10137 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
10138 Delete.
10139 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
10140 static, adjust types.
10141 (TARGET_LEGITIMATE_ADDRESS_P): New.
10142
10143 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10144 * config/score/score.c (score_address_p): Rename to...
10145 (score_legitimate_address_p): ... this.
10146 (TARGET_LEGITIMATE_ADDRESS_P): New.
10147 * config/score/score3.c (score3_address_p): Rename to...
10148 (score3_legitimate_address_p): ... this.
10149 * config/score/score7.c (score7_address_p): Rename to...
10150 (score7_legitimate_address_p): ... this.
10151
10152 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
10153 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
10154 GO_IF_LEGITIMATE_ADDRESS): Delete.
10155 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
10156 thumb2_legitimate_address_p): Delete.
10157 (arm_legitimate_address_p): Rename to...
10158 (arm_legitimate_address_outer_p): ... this.
10159 * config/arm/constraints.md ("Uq"): Adjust call.
10160 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
10161 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
10162 to...
10163 (arm_legitimate_address_outer_p): ... this.
10164 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
10165 static.
10166 (TARGET_LEGITIMATE_ADDRESS_P): New.
10167
10168 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10169 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
10170 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
10171 (TARGET_LEGITIMATE_ADDRESS_P): New.
10172
10173 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10174 * config/vax/vax-protos.h (legitimate_address_p): Remove.
10175 * config/vax/vax.c (legitimate_address_p): Rename to...
10176 (vax_legitimate_address_p): ... this, make static.
10177 (TARGET_LEGITIMATE_ADDRESS_P): New.
10178
10179 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10180 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
10181 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
10182 (TARGET_LEGITIMATE_ADDRESS_P): New.
10183
10184 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10185 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
10186 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
10187 (mmix_legitimate_address_p): ... this, make static.
10188 (TARGET_LEGITIMATE_ADDRESS_P): New.
10189
10190 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
10191 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
10192 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
10193 (TARGET_LEGITIMATE_ADDRESS_P): New.
10194
10195 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
10196
10197 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
10198 of MODE_COMPLEX_INT.
10199
10200 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10201
10202 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
10203 LCT_NORMAL in function call.
10204 * mips-tdump.c (print_file_desc): Add cast to enum type.
10205 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
10206 (mark_stabs): Add casts to enum types.
10207 (parse_stabs_common): Add casts to enum types.
10208
10209 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
10210
10211 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
10212 Check for invalid values of LETTER.
10213
10214 2009-05-13 Taras Glek <tglek@mozilla.com>
10215
10216 * attribs.c (register_attribute): moved out attribute registration
10217 into register_attribute.
10218 * doc/plugins.texi: Documented register_attribute and
10219 PLUGIN_ATTRIBUTES.
10220 * gcc-plugin.h: Added forward decl for register_attribute.
10221 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
10222 * plugin.c (register_callback, invoke_plugin_callbacks): Added
10223 PLUGIN_ATTRIBUTES boilerplate.
10224
10225 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
10226
10227 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
10228 values even in sentinel and empty entries.
10229 (ms_printf_flag_specs): Likewise.
10230 (ms_scanf_flag_specs): Likewise.
10231 (ms_strftime_flag_specs): Likewise.
10232 (ms_print_char_table): Likewise.
10233 (ms_scan_char_table): Likewise.
10234 (ms_time_char_table): Likewise.
10235
10236 2009-05-13 Doug Kwan <dougkwan@google.com>
10237
10238 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
10239
10240 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
10241
10242 * config/mips/mips.md (store): Add attributes for QI and HI.
10243 Update comment.
10244 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
10245 (truncdi<mode>2): ... this new pattern.
10246
10247 2009-05-13 Brad Hards <bradh@kde.org>
10248
10249 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
10250
10251 2009-05-14 Jakub Jelinek <jakub@redhat.com>
10252 Ben Elliston <bje@au.ibm.com>
10253
10254 PR middle-end/40035
10255 * dse.c (check_mem_read_rtx): Guard against width == -1.
10256
10257 2009-05-13 Michael Matz <matz@suse.de>
10258
10259 PR middle-end/39976
10260 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
10261 (trivially_conflicts_p): New function.
10262 (insert_backedge_copies): Use it.
10263
10264 2009-05-13 Janis Johnson <janis187@us.ibm.com>
10265
10266 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
10267 (handle_stdc_pragma): Use new enum constant names.
10268 (handle_pragma_float_const_decimal64): Ditto.
10269
10270 2009-05-13 Ian Lance Taylor <iant@google.com>
10271
10272 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
10273 tree.def.
10274
10275 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
10276
10277 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
10278 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
10279 multilibs.
10280 * config/m68k/m68k.h (FL_UCLINUX): Define.
10281
10282 2009-05-13 Jan Hubicka <jh@suse.cz>
10283
10284 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
10285
10286 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
10287
10288 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
10289 unless -fschedule-insns is specified.
10290
10291 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
10292
10293 PR target/39561
10294 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
10295 TARGET_EXPAND_CBRANCHDI4.
10296 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
10297 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
10298 (cmpeqdi): Fix comment.
10299
10300 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
10301
10302 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
10303 (sh_legitimate_address_p): Likewise.
10304 * config/sh/sh.c (sh_legitimate_index_p): New.
10305 (sh_legitimate_address_p): Likewise.
10306 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
10307 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
10308 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
10309 (MAYBE_BASE_REGISTER_RTX_P): New macro.
10310 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
10311 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
10312 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
10313 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
10314 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
10315
10316 2009-05-12 Jan Hubicka <jh@suse.cz>
10317
10318 * tree-inline.c (estimate_operator_cost): Add operands;
10319 when division happens by constant, it is cheap.
10320 (estimate_num_insns): Loads and stores are not having cost of 0;
10321 EH magic stuff is cheap; when computing runtime cost of switch,
10322 use log2 base of amount of its cases; builtin_expect has cost of 0;
10323 compute cost for moving return value of call.
10324 (init_inline_once): Initialize time_based flags.
10325 * tree-inline.h (eni_weights_d): Add time_based flag.
10326
10327 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
10328
10329 * df-core.c: Update head documentation.
10330
10331 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10332
10333 PR bootstrap/40118
10334 * rs6000.c (rs6000_generate_compare): Use op1b instead of
10335 shadowing exisiting variable op1.
10336
10337 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
10338
10339 PR target/37179
10340 * config/i386/driver-i386.c (processor_signatures): New enum.
10341 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
10342 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
10343 processor signature to detect geode processor.
10344
10345 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
10346
10347 Revert:
10348
10349 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
10350
10351 * optabs.c (prepare_cmp_insn): Temporarily disable test that
10352 causes spurious differences between trunk and cond-optab branch.
10353
10354 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
10355
10356 * dojump.c (compare_from_rtx): Delete.
10357 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
10358 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
10359 if the comparison does not satisfy the predicate; test predicates for
10360 operands 2 and 3 of a cstore pattern. Don't try cstore optab
10361 further if one existing pattern fails.
10362 * expr.h (compare_from_rtx): Delete.
10363 (prepare_operand): Declare it.
10364 * optabs.c: Change "lib call" to "libcall" throughout.
10365 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
10366 HAVE_conditional_trap, emit_cmp_insn): Delete.
10367 (can_compare_p): Delete cmp_optab case.
10368 (prepare_float_lib_cmp): Return an rtx and a machine mode.
10369 Accept other parameters by value.
10370 (prepare_operand): Make non-static.
10371 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
10372 other parameters by value. Try to widen operands here based on
10373 an optab_methods argument and looking at cbranch_optab.
10374 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
10375 loop. Use cbranch_optab directly.
10376 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
10377 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
10378 assertion.
10379 (emit_conditional_move, emit_conditional_add): Inline what's needed
10380 of compare_from_rtx, using new prepare_cmp_insn for the rest.
10381 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
10382 with COMPARE. Move cmov_optab and cstore_optab above
10383 with cbranch_optab, move cmp_optab down with ucmp_optab,
10384 remove tst_otpab. Do not initialize trap_rtx.
10385 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
10386 for trap code. Do not check HAVE_conditional_trap. Use
10387 prepare_cmp_insn. Accept no predicate for operand 3.
10388 * optabs.h (OTI_cmp): Mark as used only for libcalls.
10389 (OTI_ctrap, ctrap_optab): New.
10390 (tst_optab): Delete.
10391 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
10392 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
10393 with lookup of ctrap_optab.
10394 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
10395 Delete.
10396 (ctrap_optab): New.
10397
10398 * combine.c (combine_simplify_rtx, simplify_set): Do not
10399 special case comparing against zero for cc0 machines.
10400 * simplify-rtx.c (simplify_binary_operation_1): Never remove
10401 COMPARE on cc0 machines.
10402 (simplify_relational_operation): Return a new expression when
10403 a COMPARE could be removed.
10404 * final.c (final_scan_insn): Compare cc_status values
10405 against LHS of a (compare FOO (const_int 0)) cc0 source.
10406 Also check if cc_status.value is the full compare.
10407
10408 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
10409 (cstoreMM4): Document.
10410 (conditional_trap): Document ctrapMM4 instead.
10411 (sync_compare_and_swapMM): Refer to cbranchcc4.
10412 (Dependent Patterns): Eliminate obsolete information referring to
10413 the old jump optimization phase.
10414 (Canonicalization): Include cbranchcc4 case, omit canonicalization
10415 of compares with 0 on cc0 machines.
10416 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
10417 avoiding references to cc0. Remove text about storing operands
10418 in cmpMM.
10419 * doc/tm.texi (Condition Codes): Include blurb on different
10420 condition code representations, separate into subsections for
10421 CC0, MODE_CC and conditional execution.
10422
10423 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
10424 alpha_emit_setcc): Accept operands and a machine mode.
10425 * config/alpha/alpha.c (alpha_emit_conditional_branch):
10426 Get code/op0/op1 from operands, use machine mode argument
10427 instead of alpha_compare.fp_p. Emit the branch here.
10428 (alpha_emit_setcc): Likewise, and return boolean.
10429 (alpha_emit_conditional_move): Likewise. Assert that
10430 cmp_op_mode == cmp_mode, and simplify accordingly.
10431 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
10432 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
10433 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
10434 Delete.
10435 (stack probe test): Use cbranchdi4.
10436 * config/alpha/predicates.md (alpha_cbranch_operator): New.
10437
10438 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
10439 * config/arc/arc.h (movsicc, movsfcc): Use it.
10440 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
10441 (cbranchsi4, cstoresi4): New.
10442 (cmpsi, bCC and sCC expanders): Remove.
10443
10444 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
10445 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
10446 * config/arm/predicates.md (arm_comparison_operator): Only include
10447 floating-point operators if there is a hardware floating-point unit.
10448 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
10449 deferring to cbranch_cc and cstore_cc respectively.
10450 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
10451 cbranch_cc, cstore_cc): New.
10452 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
10453 arm_compare_op1.
10454 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
10455
10456 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
10457 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
10458 as an argument.
10459 (adjust_insn_length): Adjust calls.
10460 (avr_reorg): Handle (compare (foo) (const_int 0)).
10461 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
10462 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
10463 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
10464 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
10465 (bCC): Remove.
10466 (cbranchqi4, cbranchhi4, cbranchsi4): New.
10467 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
10468
10469 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
10470 (cbranchsi4, cstorebi4, cstoresi4): New.
10471 (movbisi): This insn is duplicate, split it to zero_extend.
10472 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
10473 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
10474 (bfin_optimize_loop): Use cbranch expander.
10475 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
10476 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
10477 (bfin_bimode_comparison_operator): ... this.
10478 (bfin_direct_comparison_operator): New.
10479
10480 * config/cris/cris.c (cris_normal_notice_update_cc): Look
10481 inside (compare FOO (const_int 0)).
10482 (cris_rtx_costs): Handle ZERO_EXTRACT.
10483 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
10484 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
10485 (*tstdi_v32): Delete.
10486 (*cmpdi_non_v32): Add M alternative for operand 1.
10487 (cmpsi, cmp<mode>): Make private.
10488 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
10489 with COMPARE.
10490 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
10491
10492 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
10493 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
10494 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
10495 (cc_reg_operand): New.
10496 (any_cond): Delete.
10497 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
10498 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
10499 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
10500 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
10501 crx_expand_scond): Delete.
10502
10503 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
10504 (cbranchsi4): New.
10505 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
10506 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
10507
10508 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
10509 cstoresi4, cstoresf4, cstoredf4): New.
10510 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
10511 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
10512 Receive the entire operands array.
10513 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
10514 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
10515 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
10516 Get test/op0/op1 from the operands array.
10517 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
10518
10519 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
10520 (h8300_expand_store): New.
10521 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
10522 (const_int 0)).
10523 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
10524 (h8300_expand_store): New.
10525 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
10526 or do not try to produce (set (cc0) REG).
10527 (peepholes): Wrap arguments with COMPARE. Add a peephole to
10528 change a compare into a move to a scratch register. Disable some
10529 peepholes when comparing with zero.
10530 (tstsi, tsthi, tstsi, cmpqi): Make private.
10531 (cmphi): Delete.
10532 (bCC, sCC): Delete.
10533 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
10534 cstoresi4): New.
10535
10536 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
10537 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
10538 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
10539 (ix86_emit_i387_log1p): Use cbranchxf2.
10540 (ix86_expand_setcc): Return void.
10541 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
10542 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
10543 cmp<MODEF>, cmpcc): Remove.
10544 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
10545 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
10546 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
10547 (sCC and bCC expanders): Remove.
10548 (stack_protect_test): Use cbranchcc4.
10549
10550 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
10551 Delete.
10552 (ia64_expand_compare): Accept three rtx by reference and return void.
10553 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
10554 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
10555 from *expr. Update *expr with the BImode comparison to do.
10556 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
10557 cmptf, bCC, sCC, conditional_trap): Delete.
10558 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
10559 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
10560 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
10561 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
10562 * config/ia64/predicates.md (ia64_cbranch_operator): New.
10563
10564 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
10565 type of last argument.
10566 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
10567 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
10568 use machine mode argument instead of branch_type. Remove dead
10569 code for floating-point comparisons.
10570 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
10571 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
10572 Remove.
10573 (cbranchsi4, cstoresi4): New.
10574 * config/iq2000/predicates.md (reg_or_const_operand): New.
10575
10576 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
10577 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
10578 (b<code>_op): Rewrite to...
10579 (bcc_op): ... this, using match_operator.
10580 (s<code>_op): Rewrite to...
10581 (scc_op): ... this, using match_operator.
10582 (s<code>_24_op): Rewrite to...
10583 (scc_op_24): ... this, using match_operator.
10584 (s<code>_<mode>): Rewrite to...
10585 (cstore<mode>4): ... this, using match_operator.
10586 (s<code>_<mode>_24): Rewrite to...
10587 (cstore<mode>4_24): ... this, using match_operator.
10588 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
10589 m32c_unpend_compare, m32c_expand_scc): Delete.
10590 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
10591 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
10592 (m32c_expand_movcc): Change NE to EQ if necessary.
10593 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
10594
10595 * config/m32r/m32r-protos.h (gen_cond_store): New.
10596 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
10597 (gen_cond_store): New, from sCC patterns.
10598 (m32r_expand_block_move): Use cbranchsi4.
10599 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
10600 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
10601 (cbranchsi4, cstoresi4): New.
10602
10603 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
10604 Delete.
10605 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
10606 (m68hc11_notice_update_cc): Look into a compare with 0.
10607 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
10608 Delete.
10609 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
10610 cmphi, cmpqi, bCC): Delete.
10611 (cbranchsi4, cbranchhi4, cbranchqi4): New.
10612 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
10613 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
10614 sets with COMPARE.
10615
10616 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
10617 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
10618 * config/m68k/constraints.md (H): New.
10619 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
10620 the define_insn below.
10621 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
10622 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
10623 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
10624 patterns): Wrap RHS with COMPARE.
10625 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
10626 (*cmpdi_internal): Name this pattern.
10627 (cmpdi): Change to define_insn.
10628 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
10629 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
10630 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
10631 predicate.
10632 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
10633 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
10634 (conditional_trap): Change to...
10635 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
10636 (*conditional_trap): Use the ordered_comparison_operator and
10637 const1_operand predicates.
10638 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
10639 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
10640 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
10641 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
10642
10643 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
10644 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
10645 (mcore_gen_compare): New.
10646 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
10647 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
10648 (mcore_gen_compare): ... this.
10649 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
10650 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
10651 (stack probe pattern): Use cbranchsi4.
10652
10653 * config/mips/predicates.md (mips_cstore_operator): New.
10654 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
10655 * config/mips/mips.md (any_cond): Delete.
10656 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
10657 always succeed.
10658 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
10659 fixuns_truncsfdi2): Use cbranch patterns.
10660 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
10661 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
10662 Adjust call to mips_expand_conditional_branch.
10663 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
10664 cstore<GPR:mode>4.
10665 * config/mips/mips-protos.h (mips_expand_conditional_branch,
10666 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
10667 * config/mips/mips.c (cmp_operands): Delete.
10668 (mips_emit_compare): Get comparison operands from *op0/*op1.
10669 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
10670 that it succeeds. Use op0/op1 instead of cmp_operands.
10671 (mips_expand_conditional_branch, mips_expand_conditional_move,
10672 mips_expand_conditional_trap): Likewise.
10673 (mips_block_move_loop): Use cbranch patterns.
10674 * config/mips/mips.h (cmp_operands): Delete.
10675
10676 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
10677 (mmix_gen_compare_reg): Just return a register in the right CC mode.
10678 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
10679 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
10680 (*cmpcc_folded): Rename to...
10681 (*cmpdi_folded): this.
10682 (*cmpcc): Rename to...
10683 (*cmps): ... this.
10684 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
10685 (bCC): Remove.
10686 (cbranchdi4): New.
10687 (cbranchdf4): New. Handle invalid comparisons here.
10688 * config/mmix/predicates.md (float_comparison_operator): New.
10689
10690 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
10691 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
10692 * config/mn10300/mn10300.md (tst): Delete.
10693 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
10694 Name these patterns and wrap RHS in a compare.
10695 (*cmpsi): Make this pattern private. Include tst.
10696 (*cmpsf): Make this pattern private.
10697 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
10698 (compare with zero peepholes): Likewise.
10699 (bCC): Remove.
10700 (cbranchsi4, cbranchsf4): New.
10701 (casesi): Use cbranchsi4.
10702
10703 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
10704 hppa_branch_type): Delete.
10705 (return_addr_rtx): Use cbranchsi4.
10706 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
10707 Emit CCFPmode comparison here.
10708 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
10709 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
10710 hppa_branch_type): Delete.
10711 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
10712 (movsicc, movdicc): Remove references to hppa_compare_op0,
10713 hppa_compare_op1 and compare_from_rtx.
10714 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
10715 (casesi): Use cbranchsi4.
10716
10717 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
10718 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
10719 * config/pdp11/pdp11.md (register_or_const0_operand): New.
10720 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
10721 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
10722 (bCC): Delete.
10723 (cbranchdf4, cbranchhi4, cbranchqi4): New.
10724 (*branch, *branch_inverted): New.
10725
10726 * config/picochip/picochip.md (cbranchhi4): Use
10727 ordered_comparison_operator.
10728 (cmphi, bCC): Remove.
10729
10730 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
10731 (trap_comparison_operator): Delete.
10732 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
10733 rs6000_emit_cbranch): Accept mode and operands.
10734 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
10735 rs6000_compare_fp_p): Delete.
10736 (rs6000_generate_compare): Accept mode and comparison. Extract code
10737 and op0/op1 from there. Replace references to rs6000_compare_op0
10738 and rs6000_compare_op1.
10739 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
10740 extract result from passed operands.
10741 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
10742 extract loc from passed operands.
10743 (rs6000_emit_cmove): Likewise.
10744 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
10745 rs6000_compare_fp_p): Delete.
10746 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
10747 (cbranch<GPR>4, cbranch<FP>4): New.
10748 (cstore<mode>4): New. Consolidate here all choices about when to use
10749 portable or specialized sCC sequences.
10750 (stack_protect_test): Use cbranchsi4.
10751 (conditional_trap): Replace with ctrap<GPR>4.
10752 (conditional trap insn): Replace trap_comparison_operator with
10753 ordered_comparison_operator.
10754
10755 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
10756 (s390_emit_prologue): Use ctrap.
10757 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
10758 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
10759 New predicates replacing...
10760 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
10761 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
10762 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
10763 (add<mode>cc): Do not use s390_compare_op0/op1.
10764 (s<code>): Change to...
10765 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
10766 (seq): Change to...
10767 (cstorecc4): ... this. Handle EQ or NE equally.
10768 (*sne): Un-privatize for use in cstorecc4.
10769 (b<code>): Change to...
10770 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
10771 (conditional_trap): Replace with...
10772 (ctrap<GPR>4, ctrap<FP>4): ... these.
10773 (stack_protect): Use cbranchcc4.
10774
10775 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
10776 * config/score/score-protos.h (score_gen_cmp): Delete.
10777 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
10778 (score_block_move-loop): Use cbranchsi4.
10779 * config/score/score.md (cbranchsi4): New.
10780 (cmpsi, bCC): Delete.
10781 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
10782 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
10783 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
10784 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
10785 * config/score/score3.h (score3_gen_cmp): Delete.
10786 * config/score/score7.h (score7_gen_cmp): Delete.
10787
10788 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
10789 (sh_emit_scc_to_t): ... this. Return void.
10790 (from_compare): Rename to...
10791 (sh_emit_compare_and_branch): ... this.
10792 (sh_emit_compare_and_set): New.
10793 (sh_expand_t_scc): Accept operands.
10794 * config/sh/predicates.md (sh_float_comparison_operator): New.
10795 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
10796 (prepare_scc_operands): Rename to...
10797 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
10798 arguments.
10799 (sh_emit_cheap_store_flag): New.
10800 (sh_emit_set_t_insn): New.
10801 (from_compare): Rename to...
10802 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
10803 handling of TARGET_SH2E floating point to avoid recursive call.
10804 Generate branch here.
10805 (sh_emit_compare_and_set): New.
10806 (sh_expand_t_scc): Get op0/op1 from arguments.
10807 (sh_emit_cheap_store_flag): New.
10808 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
10809 cases.
10810 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
10811 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
10812 (movsicc, movdicc): Do nothing when it recreated operands from
10813 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
10814 prepare_scc_operands (now sh_emit_scc_to_t).
10815 (udivdi3): Use cstoresi4.
10816 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
10817 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
10818 (cbranchint4_media, cbranchfp4_media): New.
10819 (casesi): Use cbranchdi4.
10820 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
10821 Delete.
10822 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
10823 (movnegt): Remove second operand.
10824 (cbranchsf4, cbranchdf4): New.
10825 (stack_protect): Use cbranchdi4/cbranchsi4.
10826
10827 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
10828 (gen_compare_reg): Accept comparison, extract part of it to...
10829 (gen_compare_reg_1): ... this.
10830 (gen_compare_operator): Delete.
10831 (gen_v9_scc): Accept separate destination, comparison code and arms.
10832 Do not use sparc_compare_op0/sparc_compare_op1.
10833 (emit_scc_insn, emit_conditional_branch_insn): New.
10834 (emit_v9_brxx): Make static. Remove useless assertion.
10835 (sparc_emit_float_lib_cmp): Return RTL instead of calling
10836 emit_cmp_insn.
10837 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
10838 * config/sparc/sparc-protos.h (gen_compare_reg,
10839 sparc_emit_float_lib_cmp): Adjust prototype.
10840 (emit_scc_insn, emit_conditional_branch_insn): New.
10841 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
10842 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
10843 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
10844 iterators to the top.
10845 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
10846 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
10847 snedi_special_trunc): Delete.
10848 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
10849 and snedi_special_trunc.
10850 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
10851 cbranchdi4, cbranch<F:mode>4): New.
10852 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
10853 here. Use gen_compare_reg instead of gen_compare_operator.
10854 (conditional_trap): Replace with...
10855 (ctrapsi4, ctrapdi4): ... this.
10856 (stack_protect_test): Use cbranchcc4.
10857
10858 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
10859 argument to rtx.
10860 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
10861 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
10862 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
10863 from operands[0] or operands[3] depending on is_set.
10864 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
10865 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
10866 cmpdf, bCC), sCC: Remove.
10867 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
10868 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
10869 cstoredf4): New.
10870 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
10871 spu_emit_branch_or_set.
10872
10873 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
10874 Add two arguments.
10875 * config/stormy16/stormy16.h (xstormy16_compare_op0,
10876 xstormy16_compare_op1): Delete.
10877 * config/stormy16/stormy16.c (xstormy16_compare_op0,
10878 xstormy16_compare_op1): Delete.
10879 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
10880 Adjust calls.
10881 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
10882 (cmphi, cmpsi, bCC): Remove.
10883
10884 * config/v850/v850.md (tstsi, cmpsi): Fold into...
10885 (*cmpsi): ... this one.
10886 (cbranchsi4, cstoresi4): New.
10887 (bCC expanders): Delete.
10888 (sCC insns): Fold into...
10889 (*setcc): ... this one.
10890 (casesi): Do not use gen_cmpsi and gen_bgtu.
10891 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
10892 (movsicc): Simplify.
10893 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
10894
10895 * config/vax/vax-protos.h (cond_name): New.
10896 (vax_output_conditional_branch): Remove.
10897 * config/vax/vax.c (cond_name): New.
10898 (vax_output_conditional_branch): Remove.
10899 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
10900 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
10901 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
10902 (bit<VAXint>): Wrap source with (compare).
10903 (b<code> and following unnamed pattern): Rename to *branch and
10904 *branch_reversed. Change macroization to match_operator.
10905 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
10906
10907 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
10908 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
10909 Change last argument to machine_mode.
10910 (xtensa_expand_scc): Add machine_mode argument.
10911 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
10912 (gen_conditional_move, xtensa_expand_conditional_branch,
10913 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
10914 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
10915 Adjust operand numbers.
10916 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
10917 Delete.
10918 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
10919 (cmpsi, cmpsf, b<code>, s<code>): Delete.
10920 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
10921
10922 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
10923
10924 * optabs.c (prepare_cmp_insn): Temporarily disable test that
10925 causes spurious differences between trunk and cond-optab branch.
10926
10927 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
10928
10929 PR target/37137
10930 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
10931
10932 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
10933
10934 * tree.c (iterative_hash_pointer): Delete.
10935 (iterative_hash_expr): Short-circuit handling of NULL pointer.
10936 Hash UIDs and versions of SSA names. Don't special-case built-in
10937 function declarations.
10938
10939 2009-05-11 Ian Lance Taylor <iant@google.com>
10940
10941 PR bootstrap/40103
10942 * graphite.c: Force -Wc++-compat to only be a warning before
10943 #including "cloog/cloog.h".
10944
10945 2009-05-11 Martin Jambor <mjambor@suse.cz>
10946
10947 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
10948
10949 2009-05-11 Jan Hubicka <jh@suse.cz>
10950
10951 * tree-ssa-loop-ivcanon.c: Include target.h
10952 (struct loop_size): new structure.
10953 (constant_after_peeling): New predicate.
10954 (tree_estimate_loop_size): New function.
10955 (estimated_unrolled_size): Rewrite for new estimates.
10956 (try_unroll_loop_completely): Use new estimates.
10957 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
10958
10959 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
10960
10961 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
10962 libcpp interface change.
10963 (spu_macro_to_expand): Likewise.
10964
10965 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
10966
10967 PR tree-optimization/40026
10968 * gimplify.c (gimplify_init_constructor): Change initial conditional
10969 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
10970 optimize_compound_literals_in_ctor.
10971
10972 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
10973
10974 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
10975 New devices.
10976 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
10977
10978 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
10979
10980 * tree-vect-data-refs.c (vect_analyze_group_access): Use
10981 HOST_WIDE_INT for gap.
10982
10983 2009-05-11 Ira Rosen <irar@il.ibm.com>
10984
10985 PR tree-optimization/40074
10986 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
10987 account in group size and step comparison.
10988
10989 2009-05-11 Richard Guenther <rguenther@suse.de>
10990
10991 * passes.c (init_optimization_passes): Strip now incorrect comment.
10992 (execute_function_todo): Do not set PROP_alias.
10993 * tree-pass.h (PROP_alias): Remove.
10994 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
10995 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
10996 * tree-nrv.c (pass_return_slot): Likewise.
10997 * tree-object-size.c (pass_object_sizes): Likewise.
10998 * tree-ssa-dom.c (pass_dominator): Likewise.
10999 (pass_phi_only_cprop): Likewise.
11000 * tree-ssa-dse.c (pass_dse): Likewise.
11001 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
11002 (pass_cselim): Likewise.
11003 * tree-ssa-pre.c (pass_pre): Likewise.
11004 (pass_fre): Likewise.
11005 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11006 * tree-ssa-sink.c (pass_sink_code): Likewise.
11007 * tree-stdarg.c (pass_stdarg): Likewise.
11008 * tree-tailcall.c (pass_tail_calls): Likewise.
11009 * tree-vrp.c (pass_vrp): Likewise.
11010
11011 2009-05-10 Ian Lance Taylor <iant@google.com>
11012
11013 * basic-block.h (enum profile_status): Break out of struct
11014 control_flow_graph.
11015 * cgraph.h (struct inline_summary): Break out of struct
11016 cgraph_local_info.
11017 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
11018 of struct cgraph_order_sort.
11019 * combine.c (enum undo_kind): New enum, broken out of struct undo.
11020 * cse.c (struct branch_path): Break out of struct
11021 cse_basic_block_data.
11022 * except.h (enum eh_region_type): Break out of struct eh_region.
11023 * gcc.c (enum add_del): Break out of struct modify_target.
11024 * genrecog.c (enum decision_type): Break out of struct decision_test.
11025 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
11026 ggc_pch_data.
11027 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
11028 * regmove.c (enum match_use): New enum, broken out of struct match.
11029 * sched-int.h (enum post_call_group): New enum, broken out of
11030 struct deps.
11031 (struct deps_reg): Break out of struct deps.
11032 * target.h (struct asm_int_op): Break out of struct gcc_target.
11033 * tree-eh.c (struct goto_queue_node): Break out of struct
11034 leh_tf_state.
11035 * tree-inline.h (enum copy_body_cge_which): Break out of
11036 copy_body_data.
11037 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
11038
11039 * c-decl.c (in_struct, struct_types): New static variables.
11040 (pushtag): Add loc parameter. Change all callers.
11041 (lookup_tag): Add ploc parameter. Change all callers.
11042 (check_compound_literal_type): New function.
11043 (parser_xref_tag): Add loc parameter. Change all callers. If
11044 -Wc++-compat, warn about struct/union/enum types defined within a
11045 struct or union.
11046 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
11047 and loc parameters. Change all callers. Change error calls to
11048 error_at, using loc. For a redefinition, if the location of the
11049 original definition is known, report it. Set in_struct and
11050 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
11051 (finish_struct): Add new parameters enclosing_in_struct and
11052 enclosing_struct_types. Change all callers. Set
11053 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
11054 in the struct. If in a struct, add this struct to struct_types.
11055 (start_enum): Add loc parameter. Change all callers. Use
11056 error_at for errors, using loc. For a redefinition, if the
11057 location of the original definition is known, report it. If in a
11058 struct, add this enum type to struct_types. If -Wc++-compat warn
11059 if in sizeof, typeof, or alignof.
11060 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
11061 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
11062 (c_parser_enum_specifier): Get enum location for start_enum.
11063 (c_parser_struct_or_union_specifier): Get struct location for
11064 start_struct. Save in_struct and struct_types status between
11065 start_struct and finish_struct.
11066 (c_parser_cast_expression): Get location of cast.
11067 (c_parser_alignof_expression): Get location of type.
11068 (c_parser_postfix_expression): Likewise.
11069 (c_parser_postfix_expression_after_paren_type): Add type_loc
11070 parameter. Change all callers. Call check_compound_literal_type.
11071 Use type_loc for error about variable size type.
11072 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
11073 of an enum constant from an enum type defined in a struct or union.
11074 (c_cast_expr): Add loc parameter. Change all callers. If
11075 -Wc++-compat, warn about defining a type in a cast.
11076 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
11077 (start_enum, start_struct, finish_struct): Update declarations.
11078 (parser_xref_tag, c_cast_expr): Update declarations.
11079 (check_compound_literal_type): Declare.
11080
11081 2009-05-11 Ben Elliston <bje@au.ibm.com>
11082
11083 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
11084 for recent libcpp interface change.
11085 (rs6000_macro_to_expand): Likewise.
11086
11087 2009-05-10 Michael Matz <matz@suse.de>
11088
11089 PR target/40031
11090 * config/arm/arm.c (require_pic_register): Emit on entry edge,
11091 not at entry of function.
11092
11093 2009-05-10 Richard Guenther <rguenther@suse.de>
11094
11095 PR tree-optimization/40081
11096 Revert
11097 * tree-sra.c (instantiate_element): Instantiate scalar replacements
11098 using the main variant of the element type. Do not fiddle with
11099 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
11100
11101 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
11102 structs with volatile fields.
11103
11104 2009-05-10 Jan Hubicka <jh@suse.cz>
11105
11106 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
11107 (estimate_move_cost): Assert that it does not get called for
11108 VOID_TYPE_P.
11109 (estimate_num_insns): Skip VOID types in argument handling.
11110 (optimize_inline_calls): Delete unreachable blocks and verify that
11111 callgraph is valid.
11112
11113 2009-05-10 Jan Hubicka <jh@suse.cz>
11114
11115 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
11116 * cgraph.c (cgraph_mark_address_taken_node): New function.
11117 (dump_cgraph_node): Dump new flag.
11118 * cgraph.h (struct cgraph_node): Add address_taken.
11119 (cgraph_mark_address_taken_node): New function.
11120 * ipa.c (cgraph_postorder): Prioritize functions with address taken
11121 since new direct calls can be born.
11122
11123 2009-05-10 Joseph Myers <joseph@codesourcery.com>
11124
11125 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
11126 tok->val.node.node.
11127
11128 2009-05-10 Jan Hubicka <jh@suse.cz>
11129
11130 PR middle-end/40084
11131 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
11132 argument; rewrite.
11133 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
11134 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
11135 * tree-inline.c (copy_bb): Set frequency correctly.
11136 (fold_marked_statements): Update call to
11137 cgraph_update_edges_for_call_stmt.
11138
11139 2009-05-10 Joseph Myers <joseph@codesourcery.com>
11140
11141 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
11142 identifiers in diagnostics.
11143 * config/arm/arm.c (arm_handle_fndecl_attribute,
11144 arm_handle_isr_attribute): Likewise.
11145 * config/avr/avr.c (avr_handle_progmem_attribute,
11146 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
11147 * config/bfin/bfin.c (handle_int_attribute,
11148 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
11149 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
11150 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
11151 Likewise.
11152 * config/darwin.c (darwin_handle_kext_attribute,
11153 darwin_handle_weak_import_attribute): Likewise.
11154 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
11155 h8300_handle_eightbit_data_attribute,
11156 h8300_handle_tiny_data_attribute): Likewise.
11157 * config/i386/i386.c (ix86_handle_cconv_attribute,
11158 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
11159 * config/i386/winnt.c (ix86_handle_shared_attribute,
11160 ix86_handle_selectany_attribute): Likewise.
11161 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
11162 * config/m32c/m32c.c (function_vector_handler): Likewise.
11163 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
11164 m68hc11_handle_fntype_attribute): Likewise.
11165 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
11166 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
11167 * config/mips/mips.c (mips_insert_attributes,
11168 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
11169 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
11170 rs6000_handle_struct_attribute): Likewise.
11171 * config/sh/sh.c (sh_insert_attributes,
11172 sh_handle_resbank_handler_attribute,
11173 sh_handle_interrupt_handler_attribute,
11174 sh2a_handle_function_vector_handler_attribute,
11175 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
11176 Likewise.
11177 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
11178 * config/spu/spu.c (spu_handle_fndecl_attribute,
11179 spu_handle_vector_attribute): Likewise.
11180 * config/stormy16/stormy16.c
11181 (xstormy16_handle_interrupt_attribute): Likewise.
11182 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
11183 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
11184
11185 2009-05-10 Joseph Myers <joseph@codesourcery.com>
11186
11187 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
11188 (pp_translate_identifiers): New.
11189 (pp_identifier): Only conditionally translate identifier to locale
11190 character set.
11191 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
11192 (pp_base_tree_identifier): Only conditionally translate identifier
11193 to locale character set.
11194 * c-pretty-print.c (M_): Define.
11195 (pp_c_type_specifier, pp_c_primary_expression): Mark English
11196 fragments for conditional translation with M_.
11197 * tree-pretty-print.c (maybe_init_pretty_print): Disable
11198 identifier translation.
11199
11200 2009-05-10 Richard Guenther <rguenther@suse.de>
11201
11202 PR tree-optimization/40081
11203 * tree-sra.c (instantiate_element): Instantiate scalar replacements
11204 using the main variant of the element type. Do not fiddle with
11205 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
11206
11207 2009-05-09 Jan Hubicka <jh@suse.cz>
11208
11209 PR middle-end/40080
11210 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
11211 indirect calls; verify cgraph afterwards.
11212
11213 2009-05-09 Jan Hubicka <jh@suse.cz>
11214
11215 PR bootstrap/40082
11216 * ipa.c (update_inlined_to_pointer): New function.
11217 (cgraph_remove_unreachable_nodes): Use it.
11218
11219 2009-05-09 Jan Hubicka <jh@suse.cz>
11220
11221 * tree-eh.c (struct leh_state): Remove prev_try.
11222 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
11223 not track prev_try.
11224 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
11225 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
11226 remove_eh_handler_and_replace, foreach_reachable_handler,
11227 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
11228 * except.h (struct eh_region): Remove eh_region_u_cleanup.
11229 (gen_eh_region_cleanup): Update prototype.
11230
11231 2009-05-09 Jan Hubicka <jh@suse.cz>
11232
11233 PR middle-end/40043
11234 * except.c (copy_eh_region): Always set prev_try.
11235 (redirect_eh_edge_to_label): Find outer try.
11236 (foreach_reachable_handler): When looking for prev try
11237 handle case where previous try is not going to be taken.
11238
11239 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11240
11241 PR tree-optimization/40049
11242 * tree-vect-stmts.c (vectorizable_operation): If the machine has
11243 only vector/vector shifts, convert the type of the constant to the
11244 appropriate type to avoid building incorrect trees, which
11245 eventually have problems with garbage collection.
11246
11247 2009-05-08 Joseph Myers <joseph@codesourcery.com>
11248
11249 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
11250 -1 for complex floating-point types if honoring signed zeros.
11251
11252 2009-05-08 Jan Hubicka <jh@suse.cz>
11253
11254 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
11255 argument; handle correctly when profile is absent.
11256 (build_cgraph_edges): Update.
11257 (rebuild_cgraph_edges): Update.
11258 * cgraph.c: Do not include varray.h.
11259 (cgraph_set_call_stmt_including_clones): New function.
11260 (cgraph_create_edge_including_clones): Likewise
11261 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
11262 (cgraph_update_edges_for_call_stmt): Handle clones.
11263 (cgraph_remove_node): Handle clone tree.
11264 (cgraph_remove_node_and_inline_clones): New function.
11265 (dump_cgraph_node): Dump clone tree.
11266 (cgraph_clone_node): Handle clone tree.
11267 (clone_function_name): Bring here from tree-inline.c.
11268 (cgraph_create_virtual_clone): New function.
11269 * cgraph.h (ipa_replace_map): Move here from ipa.h.
11270 (cgraph_clone_info): New function.
11271 (strut cgraph_node): Add clone_info and new clone tree pointers.
11272 (cgraph_remove_node_and_inline_clones,
11273 cgraph_set_call_stmt_including_clones,
11274 cgraph_create_edge_including_clones,
11275 cgraph_create_virtual_clone): Declare.
11276 (cgraph_function_versioning): Use VEC argument.
11277 (compute_call_stmt_bb_frequency): Update prototype.
11278 (cgraph_materialize_all_clones): New function.
11279 * ipa-cp.c (ipcp_update_cloned_node): Remove.
11280 (ipcp_create_replace_map): Update to VECtors.
11281 (ipcp_update_callgraph): Use virtual clones.
11282 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
11283 (ipcp_update_profiling): Do not update local profiling.
11284 (ipcp_insert_stage): Use VECtors and virtual clones.
11285 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
11286 (clone_of_p): New function.
11287 (cgraph_preserve_function_body_p): Use clone tree.
11288 (cgraph_optimize): Materialize clones.
11289 (cgraph_function_versioning): Update for VECtors.
11290 (save_inline_function_body): Use clone tree.
11291 (cgraph_materialize_clone): New function.
11292 (cgraph_materialize_all_clones): Likewise.
11293 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
11294 * ipa.c: Include gimple.h.
11295 (cgraph_remove_unreachable_nodes): Use clone tree.
11296 * ipa-prop.c (ipa_note_param_call): Update call to
11297 compute_call_stmt_bb_frequencycall.
11298 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
11299 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
11300 (copy_bb): Handle updating of clone tree; add new edge when new call
11301 appears.
11302 (expand_call_inline): Be strict about every call having edge.
11303 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
11304 (delete_unreachable_blocks_update_callgraph): New function.
11305 (tree_function_versioning): Use VECtors; always remove unreachable
11306 blocks and fold conditionals.
11307 * tree-inline.h: Do not include varray.h.
11308 (tree_function_versioning): Remove.
11309 * Makefile.in (GTFILES): Remove tree-inline.c
11310 * passes.c (do_per_function): Do only functions having body.
11311 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
11312 tree.
11313
11314 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
11315 Andrew Morrow <acm@google.com>
11316
11317 PR c/36892
11318 * c-common.c (c_common_attribute_table): Permit deprecated
11319 attribute to take an optional argument.
11320 (handle_deprecated_attribute): If the optional argument to
11321 __attribute__((deprecated)) is not a string ignore the attribute
11322 and emit a warning.
11323
11324 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
11325 * c-typeck.c (build_component_ref): Likewise.
11326 (build_external_ref): Likewise.
11327
11328 * toplev.c (warn_deprecated_use): Add an attribute argument.
11329 Emit the message associated with __attribute__((deprecated)).
11330
11331 * toplev.h (warn_deprecated_use): Updated.
11332
11333 * doc/extend.texi: Document new optional parameter to
11334 __attribute__((deprecated))
11335
11336 2009-05-08 Michael Eager <eager@eagercon.com>
11337
11338 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
11339 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
11340
11341 2009-05-08 Richard Guenther <rguenther@suse.de>
11342
11343 PR tree-optimization/40062
11344 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
11345 Avoid exponential behavior.
11346
11347 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
11348
11349 PR rtl-optimization/33928
11350 PR 26854
11351 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
11352 process_uses, build_single_def_use_links): New.
11353 (update_df): Update use_def_ref.
11354 (forward_propagate_into): Use get_def_for_use instead of use-def
11355 chains.
11356 (fwprop_init): Call build_single_def_use_links and let it initialize
11357 dataflow.
11358 (fwprop_done): Free use_def_ref.
11359 (fwprop_addr): Eliminate duplicate call to df_set_flags.
11360 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
11361 df_rd_simulate_one_insn): New.
11362 (df_rd_bb_local_compute_process_def): Update head comment.
11363 (df_chain_create_bb): Use the new RD simulation functions.
11364 * df.h (df_rd_simulate_artificial_defs_at_top,
11365 df_rd_simulate_one_insn): New.
11366 * opts.c (decode_options): Enable fwprop at -O1.
11367 * doc/invoke.texi (-fforward-propagate): Document this.
11368
11369 2009-05-08 Joseph Myers <joseph@codesourcery.com>
11370
11371 PR c/24581
11372 * c-typeck.c (build_binary_op): Handle arithmetic between one real
11373 and one complex operand specially.
11374 * tree-complex.c (some_nonzerop): Do not identify a real value as
11375 zero if flag_signed_zeros.
11376
11377 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
11378
11379 PR rtl-optimization/33928
11380 * loop-invariant.c (record_use): Fix && vs. || mishap.
11381
11382 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
11383
11384 PR rtl-optimization/33928
11385 * loop-invariant.c (struct use): Add addr_use_p.
11386 (struct def): Add n_addr_uses.
11387 (struct invariant): Add cheap_address.
11388 (create_new_invariant): Set cheap_address.
11389 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
11390 (record_uses): Pass df_ref to record_use.
11391 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
11392 used only as such.
11393
11394 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
11395
11396 * config/sh/sh.c: Do not include c-pragma.h.
11397
11398 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
11399
11400 * config/spu/spu.c: Remove include of c-common.h.
11401
11402 2009-05-07 Janis Johnson <janis187@us.ibm.com>
11403
11404 PR c/39037
11405 * c-common.h (mark_valid_location_for_stdc_pragma,
11406 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
11407 clear_float_const_decimal64, float_const_decimal64_p): New.
11408 * c.opt (Wunsuffixed-float-constants): New.
11409 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
11410 unsuffixed float constant, handle new warning.
11411 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
11412 * c-decl.c (c_scope): New flag float_const_decimal64.
11413 (set_float_const_decimal64, clear_float_const_decimal64,
11414 float_const_decimal64_p): New.
11415 (push_scope): Set new flag.
11416 * c-parser.c (c_parser_translation_unit): Mark when it's valid
11417 to use STDC pragmas.
11418 (c_parser_external_declaration): Ditto.
11419 (c_parser_compound_statement_nostart): Ditto.
11420 * c-pragma.c (valid_location_for_stdc_pragma,
11421 mark_valid_location_for_stdc_pragma,
11422 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
11423 handle_pragma_float_const_decimal64): New.
11424 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
11425 * cp/semantics.c (valid_location_for_stdc_pragma_p,
11426 set_float_const_decimal64, clear_float_const_decimal64,
11427 float_const_decimal64_p): New dummy functions.
11428 * doc/extend.texi (Decimal Float): Remove statement that the
11429 pragma, and suffix for double constants, are not supported.
11430 * doc/invoke.texi (Warning Options): List new option.
11431 (-Wunsuffixed-float-constants): New.
11432
11433 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
11434
11435 * config/i386/i386.c: Do not include c-common.h.
11436
11437 2009-05-07 Mark Heffernan <meheff@google.com>
11438
11439 * doc/invoke.texi (Debugging Options): Document change of debugging
11440 dump location.
11441 * opts.c (decode_options): Make dump_base_name relative to
11442 aux_base_name directory.
11443
11444 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
11445
11446 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
11447 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
11448
11449 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
11450
11451 * Makefile.in (install-plugin): Simplify a bit.
11452
11453 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
11454
11455 * Makefile.in (OBJS-common): Add regcprop.o.
11456 (regcprop.o): New.
11457 * timevar.def (TV_CPROP_REGISTERS): New.
11458 * regrename.c (regrename_optimize): Return 0.
11459 (rest_of_handle_regrename): Delete.
11460 (pass_rename_registers): Point to regrename_optimize.
11461 (struct value_data_entry, struct value_data,
11462 kill_value_one_regno, kill_value_regno, kill_value,
11463 set_value_regno, init_value_data, kill_clobbered_value,
11464 kill_set_value, kill_autoinc_value, copy_value,
11465 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
11466 replace_oldest_value_reg, replace_oldest_value_addr,
11467 replace_oldest_value_mem, copyprop_hardreg_forward_1,
11468 debug_value_data, validate_value_data): Move...
11469 * regcprop.c: ... here.
11470 (rest_of_handle_cprop): Delete.
11471 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
11472
11473 2009-05-07 Jakub Jelinek <jakub@redhat.com>
11474
11475 PR middle-end/40057
11476 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
11477 GEN_INT for 1 << bitnum.
11478 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
11479 build_int_cst_type.
11480
11481 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
11482
11483 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
11484 Remove wrong description of "nand" operation.
11485
11486 2009-05-06 Richard Guenther <rguenther@suse.de>
11487 Adam Nemet <anemet@caviumnetworks.com>
11488
11489 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
11490 comment. Add that if LHS is not a gimple register, then RHS1 has
11491 to be a single object (GIMPLE_SINGLE_RHS).
11492
11493 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
11494
11495 * expr.c (get_def_for_expr): Move it up in the file.
11496 (store_field): When expanding a bit-field store, look at the
11497 defining gimple stmt for the masking conversion.
11498
11499 2009-05-06 Janis Johnson <janis187@us.ibm.com>
11500
11501 PR middle-end/39986
11502 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
11503 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
11504 32-bit memcpy into long.
11505
11506 2009-05-06 Jakub Jelinek <jakub@redhat.com>
11507
11508 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
11509 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
11510 new_reg_loc_descr.
11511 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
11512 instead of appending DW_OP_deref*.
11513
11514 2009-05-06 Michael Matz <matz@suse.de>
11515
11516 PR middle-end/40021
11517 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
11518 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
11519
11520 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
11521
11522 * Makefile.in (install-plugin): Fix srcdir handling.
11523
11524 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
11525
11526 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
11527 when processing for not_regs_needed bitmap.
11528 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
11529 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
11530 handling it for rhs.
11531
11532 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
11533
11534 * config/i386/i386.md (unnamed inc/dec peephole): Use
11535 optimize_insn_for_size_p instead of optimize_size.
11536 * config/i386/predicates.md (incdec_operand): Likewise.
11537 (aligned_operand): Likewise.
11538 * config/i386/sse.md (divv8sf3): Likewise.
11539 (sqrtv8sf2): Likewise.
11540
11541 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
11542
11543 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
11544
11545 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
11546
11547 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
11548
11549 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
11550 ssemodesuffixf2c with avxmodesuffixf2c.
11551
11552 2009-05-06 Joseph Myers <joseph@codesourcery.com>
11553
11554 PR c/40032
11555 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
11556
11557 2009-05-05 Jakub Jelinek <jakub@redhat.com>
11558
11559 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
11560 (struct tree_base): Adjust spacing for 8 bit boundaries.
11561 (struct tree_decl_common): Add decl_by_reference_flag bit.
11562 (DECL_BY_REFERENCE): Adjust.
11563 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
11564 print DECL_BY_REFERENCE bit.
11565 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
11566 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
11567 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
11568 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
11569 unconditionally.
11570
11571 PR middle-end/39666
11572 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
11573 range of the type, but default label is missing, add it with one
11574 of the existing labels instead of adding a new label for it.
11575
11576 2009-05-05 Joseph Myers <joseph@codesourcery.com>
11577
11578 * dwarf.h: Remove.
11579
11580 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
11581
11582 * Makefile.in (enable_plugin, plugin_includedir): New.
11583 (install): Depend on install-plugin.
11584 (PLUGIN_HEADERS): New.
11585 (install-plugin): New.
11586 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
11587
11588 2009-05-05 Richard Guenther <rguenther@suse.de>
11589
11590 PR tree-optimization/40022
11591 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
11592 the only vuse.
11593 (phivn_valid_p): Fix tuplification error, simplify.
11594 (phiprop_insert_phi): Add dumps.
11595 (propagate_with_phi): Simplify.
11596
11597 2009-05-05 Richard Guenther <rguenther@suse.de>
11598
11599 PR middle-end/40023
11600 * builtins.c (gimplify_va_arg_expr): Properly build the address.
11601
11602 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
11603
11604 * tree.h (strip_float_extensions): Remove duplicate declaration.
11605 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
11606 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
11607 block_ultimate_origin): Rearrange the declarations line to match the
11608 comment that indicates the .c file which the functions are defined.
11609 (dwarf2out_*, set_decl_rtl): Add comment.
11610 (get_base_address): Adjust comment.
11611 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
11612 declarations line and add comment.
11613 (is_builtin_name): Add blank after function name, for clarity.
11614
11615 2009-05-04 Joseph Myers <joseph@codesourcery.com>
11616
11617 * attribs.c (decl_attributes): Use %qE for identifiers in
11618 diagnostics.
11619 * cgraphunit.c (verify_cgraph_node): Translate function names to
11620 locale character set in diagnostics.
11621 * coverage.c (get_coverage_counts): Use %qE for identifiers in
11622 diagnostics.
11623 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
11624 Document that functions are named in UTF-8.
11625 * expr.c (expand_expr_real_1): Translate function names to locale
11626 character set in diagnostics.
11627 * gimplify.c (omp_notice_variable, omp_is_private,
11628 gimplify_scan_omp_clauses): Use %qE for identifiers in
11629 diagnostics.
11630 * langhooks.c (lhd_print_error_function): Translate function names
11631 to locale character set.
11632 * langhooks.h (decl_printable_name): Document that return value is
11633 in internal character set.
11634 * stmt.c: Include pretty-print.h
11635 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
11636 diagnostics.
11637 (resolve_operand_name_1): Translate named operand name to locale
11638 character set.
11639 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
11640 diagnostics.
11641 * toplev.c (announce_function): Translate function names to locale
11642 character set.
11643 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
11644 (default_tree_printer): Use pp_identifier or translate identifiers
11645 to locale character set. Mark "<anonymous>" for translation.
11646 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
11647 for identifiers in diagnostics.
11648 * tree.c (handle_dll_attribute): Use %qE for identifiers in
11649 diagnostics.
11650 * varasm.c (output_constructor): Use %qE for identifiers in
11651 diagnostics.
11652
11653 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
11654
11655 * configure.ac: use ` ` instead of $()
11656 * configure: Regenerate.
11657
11658 2009-05-05 Ben Elliston <bje@au.ibm.com>
11659
11660 * config/pa/linux-atomic.c: Eliminate conditional include of
11661 errno.h on non-LP64 systems to simplify build requirements.
11662
11663 2009-05-04 Joseph Myers <joseph@codesourcery.com>
11664
11665 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
11666 diagnostics.
11667 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
11668 and pass value to identifier_to_locale.
11669 (warn_variable_length_array): Make name a tree.
11670 (grokdeclarator): Separate diagnostic texts for named and unnamed
11671 declarators. Use %qE for named declarators.
11672 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
11673 diagnostics.
11674 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
11675 identifiers in diagnostics.
11676 * c-typeck.c (push_member_name, start_init): Pass identifiers to
11677 identifier_to_locale. Mark "anonymous" strings for translation.
11678
11679 2009-05-04 Michael Eager <eager@eagercon.com>
11680
11681 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
11682 address for DImode/DFmode only if double-precision FP regs.
11683
11684 2009-05-04 Michael Eager <eager@eagercon.com>
11685
11686 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
11687 TARGET_SINGLE_FLOAT check.
11688
11689 2009-05-04 Michael Eager <eager@eagercon.com>
11690
11691 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
11692
11693 2009-05-04 Michael Eager <eager@eagercon.com>
11694
11695 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
11696 * config/rs6000/t-xilinx: New
11697
11698 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
11699
11700 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
11701 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
11702 * gcc/explow.c (memory_address): Use target hook.
11703 * gcc/targhooks.c (default_legitimize_address): New.
11704 * gcc/targhooks.h (default_legitimize_address): New.
11705 * gcc/target.h (legitimize_address): New.
11706 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
11707 (TARGET_INITIALIZER): Include it.
11708 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
11709
11710 * config/bfin/bfin-protos.h (legitimize_address): Remove.
11711 * config/bfin/bfin.c (legitimize_address): Remove.
11712 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
11713 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
11714 Remove.
11715 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
11716 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
11717
11718 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
11719 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
11720 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
11721 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
11722 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
11723 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
11724 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
11725 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
11726 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
11727 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
11728 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
11729 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
11730 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
11731 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
11732 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
11733 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
11734 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
11735 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
11736 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
11737 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
11738 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
11739 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
11740 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
11741
11742 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
11743 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
11744 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
11745 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
11746 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
11747 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
11748 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
11749 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
11750 (thumb_legitimize_address): Delete.
11751 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
11752 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
11753 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
11754 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
11755 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
11756 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
11757 Delete.
11758 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
11759 Delete.
11760
11761 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
11762 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
11763 * config/m32r/m32r.c (m32r_legitimize_address): New.
11764 * config/m68k/m68k.c (m68k_legitimize_address): New.
11765 * config/score/score.c (score_legitimize_address): Standardize.
11766 * config/score/score3.c (score3_legitimize_address): Standardize.
11767 * config/score/score3.h (score3_legitimize_address): Adjust.
11768 * config/score/score7.c (score7_legitimize_address): Standardize.
11769 * config/score/score7.h (score7_legitimize_address): Adjust.
11770 * config/sh/sh.c (sh_legitimize_address): New.
11771 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
11772
11773 * gcc/config/s390/s390.c (legitimize_address): Rename to...
11774 (s390_legitimize_address): ... this.
11775 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
11776 (sparc_legitimize_address): ... this.
11777 * gcc/config/i386/i386.c (legitimize_address): Rename to...
11778 (ix86_legitimize_address): ... this.
11779 * gcc/config/avr/avr.c (legitimize_address): Rename to...
11780 (avr_legitimize_address): ... this.
11781 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
11782 (mn10300_legitimize_address): ... this.
11783 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
11784 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
11785 (alpha_expand_mov): Adjust call.
11786
11787 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
11788 * config/spu/spu.c (spu_legitimize_address): Likewise.
11789 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
11790 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
11791
11792 2009-05-04 Joseph Myers <joseph@codesourcery.com>
11793
11794 * intl.c (locale_encoding, locale_utf8): New.
11795 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
11796 * intl.h (locale_encoding, locale_utf8): Declare.
11797 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
11798 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
11799 New.
11800 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
11801 argument.
11802 (pp_tree_identifier): Define to call pp_base_tree_identifier.
11803 (pp_base_tree_identifier): Declare as function.
11804 (identifier_to_locale): Declare.
11805 * Makefile.in (pretty-print.o): Update dependencies.
11806 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
11807
11808 2009-05-04 Richard Guenther <rguenther@suse.de>
11809
11810 PR middle-end/40015
11811 * builtins.c (fold_builtin_memory_op): Do not decay to element
11812 type if the size matches the whole array.
11813
11814 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
11815
11816 * expmed.c (synth_mult): When trying out a shift, pass the result
11817 of a signed shift.
11818
11819 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
11820
11821 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
11822 (shiftsub1_cost): New.
11823 (init_expmed): Compute shiftsub1_cost.
11824 (synth_mult): Optimize multiplications by constants of the form
11825 -(2^^m-1) for some constant positive integer m.
11826
11827 2009-05-03 Richard Guenther <rguenther@suse.de>
11828
11829 PR c/39983
11830 * c-typeck.c (array_to_pointer_conversion): Do not built
11831 ADDR_EXPRs of arrays of pointer-to-element type.
11832 * c-gimplify.c (c_gimplify_expr): Revert change fixing
11833 up wrong ADDR_EXPRs after-the-fact.
11834 * c-common.c (strict_aliasing_warning): Strip pointer
11835 conversions for obtaining the original type.
11836 * builtins.c (fold_builtin_memset): Handle array types.
11837 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
11838 and array types
11839
11840 2009-05-03 Richard Guenther <rguenther@suse.de>
11841
11842 PR middle-end/23329
11843 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
11844 Do not lose casts from array types with unknown extent to array
11845 types with known extent.
11846 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
11847 alias set compatibility.
11848
11849 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
11850
11851 * flags.h (extra_warnings): Delete.
11852 * toplev.c (process_options): Handle Wuninitialized here.
11853 * opts.c (extra_warnings): Delete.
11854 (set_Wextra): Delete.
11855 (common_handle_option): -Wextra can be handled automatically.
11856 * c-opts.c (c_common_handle_option): Delete obsolete code.
11857 (c_common_post_options): Simplify comment.
11858 * common.opt (W): Add Var.
11859 (Wextra): Add Var.
11860 (Wuninitialized): Initialize to -1.
11861
11862 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
11863 Richard Guenther <rguenther@suse.de>
11864
11865 * expr.c (get_def_for_expr): New function.
11866 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
11867 SSA rather than trees.
11868 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
11869 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
11870
11871 2009-05-03 Joseph Myers <joseph@codesourcery.com>
11872
11873 * c-common.c (reswords): Add _Imaginary.
11874 * c-common.c (enum rid): Add RID_IMAGINARY.
11875
11876 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
11877
11878 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
11879 Patch by Richard Guenther.
11880
11881 2009-05-03 Anatoly Sokolov <aesok@post.ru>
11882
11883 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
11884 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11885 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
11886 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
11887 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
11888 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
11889 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
11890 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
11891 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
11892 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
11893 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
11894 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
11895 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
11896 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
11897 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
11898 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
11899 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
11900 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
11901
11902 2009-05-02 Richard Guenther <rguenther@suse.de>
11903
11904 PR tree-optimization/39940
11905 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
11906 doing so.
11907
11908 2009-05-02 Richard Guenther <rguenther@suse.de>
11909
11910 PR middle-end/40001
11911 * tree-ssa.c (execute_update_addresses_taken): Properly check
11912 if we can mark a variable DECL_GIMPLE_REG_P.
11913 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
11914 back to the end of the function.
11915 (is_gimple_reg_type): Remove complex type special casing.
11916 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
11917 if not optimizing.
11918
11919 2009-05-02 Ben Elliston <bje@au.ibm.com>
11920
11921 * doc/collect2.texi (Collect2): Document search path behaviour
11922 when configured with --with-ld.
11923
11924 2009-05-02 Jan Hubicka <jh@suse.cz>
11925
11926 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
11927 parameter; update callers.
11928 (coalesce_cost_edge): EH edges are costier because they needs
11929 splitting even if not critical and even more costier when there are
11930 multiple EH predecestors.
11931
11932 2009-05-02 Jan Hubicka <jh@suse.cz>
11933
11934 * except.c (remove_eh_handler_and_replace): Handle updating after
11935 removing TRY blocks.
11936
11937 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
11938
11939 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
11940
11941 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
11942
11943 * varasm.c: Do not include c-pragma.h.
11944 * attribs.c: Do not incude c-common.h.
11945
11946 2009-05-01 Michael Matz <matz@suse.de>
11947
11948 * calls.c (initialize_argument_information): Handle SSA names like
11949 decls with a non MEM_P DECL_RTL.
11950
11951 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
11952
11953 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
11954 * ipa-utils.c: Likewise.
11955 * ipa-type-escape.c: Likewise.
11956 * cgraphunit.c Do not include c-common.h.
11957 * ipa-pure-const.c: Likewise.
11958 * tree-if-conv.c: Likewise.
11959 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
11960 * ipa-struct-reorg.c: Likewise.
11961 * tree-nomudflap.c: Likewise.
11962 * tree-ssa-structalias.c: Likewise.
11963
11964 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
11965
11966 * store-motion.c: Many cleanups to make this pass a first-class
11967 citizen instead of an appendix to gcse load motion. Add TODO list
11968 to make this pass faster/cleaner/better.
11969
11970 (struct ls_expr): Post gcse.c-split cleanups.
11971 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
11972 "stores" field to "avail_stores".
11973 (pre_ldst_mems): Rename to store_motion_mems.
11974 (pre_ldst_table): Rename to store_motion_mems_table.
11975 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
11976 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
11977 (ldst_entry): Rename to st_expr_entry, update users.
11978 (free_ldst_entry): Rename to free_st_expr_entry, update users.
11979 (free_ldst_mems): Rename to free_store_motion_mems, update users.
11980 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
11981 update caller.
11982 (first_ls_expr): Rename to first_st_expr, update users.
11983 (next_ls_expr): Rename to next_st_expr, update users.
11984 (print_ldst_list): Rename to print_store_motion_mems. Print names of
11985 fields properly for store motion instead of names inherited from load
11986 motion in gcse.c.
11987 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
11988 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
11989 are done with it.
11990
11991 (ae_kill): Rename to st_kill, update users.
11992 (ae_gen): Rename to st_avloc, update users.
11993 (transp): Rename to st_transp, update users.
11994 (pre_insert_map): Rename to st_insert_map, update users.
11995 (pre_delete_map): Rename to st_delete_map, update users.
11996 (insert_store, build_store_vectors, free_store_memory,
11997 one_store_motion_pass): Update for abovementioned changes.
11998
11999 (gcse_subst_count, gcse_create_count): Remove.
12000 (one_store_motion_pass): New statistics counters "n_stores_deleted"
12001 and "n_stores_created", local variables.
12002
12003 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
12004 use for_each_rtx.
12005
12006 (regvec, compute_store_table_current_insn): Remove.
12007 (reg_set_info, reg_clear_last_set): Remove.
12008 (compute_store_table): Use DF caches instead of local dataflow
12009 solvers.
12010
12011 2009-05-01 Joseph Myers <joseph@codesourcery.com>
12012
12013 * c-objc-common.c (c_tree_printer): Print identifiers with
12014 pp_identifier, not pp_string. Mark "({anonymous})" for
12015 translation.
12016 * c-pretty-print.c (pp_c_ws_string): New.
12017 (pp_c_cv_qualifier, pp_c_type_specifier,
12018 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
12019 pp_c_storage_class_specifier, pp_c_function_specifier,
12020 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
12021 pp_c_primary_expression, pp_c_postfix_expression,
12022 pp_c_unary_expression, pp_c_shift_expression,
12023 pp_c_relational_expression, pp_c_equality_expression,
12024 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
12025 use pp_string and pp_c_ws_string in place of pp_identifier and
12026 pp_c_identifier for non-identifiers. Mark English strings for
12027 translation.
12028 * c-pretty-print.h (pp_c_ws_string): Declare.
12029
12030 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
12031 Roland McGrath <roland@redhat.com>
12032
12033 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
12034 (ENABLE_LD_BUILDID): New configuration option.
12035 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
12036 (LINK_BUILDID_SPEC): New macro.
12037 (init_spec): If defined, prepend it between LINK_EH_SPEC and
12038 link_spec.
12039 * doc/install.texi: Document --enable-linker-build-id option.
12040 * configure: Rebuild.
12041 * config.in: Rebuild.
12042
12043 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
12044
12045 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
12046 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
12047 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
12048 MIPS_GP_SAVE_AREA_SIZE.
12049 * config/mips/mips.c (struct mips_frame_info): Update comment
12050 before arg_pointer_offset and hard_frame_pointer_offset.
12051 (mips_compute_frame_info): Update diagram before function: to
12052 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
12053 indicate the position of frame_pointer_rtx with -fstack-protector and
12054 to show args_size. Don't allocate cprestore area for leaf functions
12055 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
12056 cprestore_size.
12057 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
12058
12059 2009-04-30 Michael Matz <matz@suse.de>
12060
12061 PR tree-optimization/39955
12062 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
12063
12064 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
12065
12066 * ira.c (setup_cover_and_important_classes): Use safe macro
12067 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
12068 directly.
12069 * genpreds.c (write_tm_preds_h): Output suitable definition of
12070 REG_CLASS_FOR_CONSTRAINT.
12071
12072 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
12073
12074 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
12075 instead of an int.
12076 * bitmap.c (bitmap_descriptor): Likewise.
12077 * ggc-common.c (loc_descriptor): Likewise.
12078 * varray.c (varray_descriptor): Likewise.
12079 * vec.c (vec_descriptor): Likewise.
12080
12081 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
12082
12083 * Makefile.in (dce.o): Add $(EXCEPT_H).
12084 * dce.c: Include except.h and delete redundant vector definitions.
12085 (deletable_insn_p): Return false for non-call insns that can throw
12086 if DF is running.
12087
12088 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
12089
12090 * gcse.c (ae_gen): Remove.
12091 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
12092 and make non-static function to make it available in store-motion.c.
12093 Update call sites with search-and-replace.
12094 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
12095 extract_mentioned_regs, extract_mentioned_regs_helper,
12096 find_moveable_store, compute_store_table, load_kills_store, find_loads,
12097 store_killed_in_insn, store_killed_after, store_killed_before,
12098 build_store_vectors, insert_insn_start_basic_block, insert-store,
12099 remove_reachable_equiv_notes, replace_store_insn, delete_store,
12100 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
12101 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
12102 * store-motion.c: ...new file. Also copy data structures from gcse.c
12103 and clean up to remove parts not used by store motion.
12104 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
12105 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
12106
12107 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12108
12109 PR target/38571
12110 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
12111 when optimizing for size.
12112
12113 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
12114
12115 * gcse.c (gcse_constant_p): Fix typo in last change.
12116
12117 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
12118
12119 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
12120
12121 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
12122
12123 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
12124
12125 2009-04-29 James E. Wilson <wilson@codesourcery.com>
12126
12127 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
12128 CONST_HIGH_PART result.
12129
12130 2009-04-29 Anatoly Sokolov <aesok@post.ru>
12131
12132 * config/avr/avr.c (initial_elimination_offset): Rename to
12133 avr_initial_elimination_offset.
12134 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
12135 change return type to bool.
12136 (avr_can_eliminate): New function.
12137 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
12138 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
12139 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
12140 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
12141 avr_initial_elimination_offset.
12142 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
12143 (avr_initial_elimination_offset): Define.
12144
12145 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
12146 Steven Bosscher <steven@gcc.gnu.org>
12147
12148 PR rtl-optimization/39938
12149 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
12150 * cfgrtl.c: Include insn-attr.h.
12151 (rest_of_pass_free_cfg): New function.
12152 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
12153 * resource.c (init_resource_info): Remove call to df_analyze.
12154
12155 2009-04-29 Richard Guenther <rguenther@suse.de>
12156
12157 PR target/39943
12158 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
12159 allow conversion to signed integers.
12160
12161 2009-04-29 Richard Guenther <rguenther@suse.de>
12162
12163 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
12164 shifts of floating point vectors if the shift amount is
12165 a constant multiple of the element size.
12166
12167 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
12168 Michael Matz <matz@suse.de>
12169
12170 PR middle-end/39927
12171 PR bootstrap/39929
12172 * tree-outof-ssa.c (emit_partition_copy): New function.
12173 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
12174 insert_part_to_rtx_on_edge): Perform the partition base var
12175 copy using emit_partition_copy.
12176 (insert_value_copy_on_edge): Convert constants to the right mode.
12177 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
12178 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
12179
12180 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
12181
12182 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
12183 scan backwards to try to find a constant to initialize it.
12184
12185 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
12186 insn before the loop_end instruction, don't look past labels.
12187
12188 2009-04-29 Richard Guenther <rguenther@suse.de>
12189
12190 PR middle-end/39937
12191 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
12192 loose type conversions.
12193 (forward_propagate_addr_expr): Fix tuplification bug. Remove
12194 stmts only if there are no uses of its definition.
12195
12196 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
12197
12198 * config/bfin/bfin.h (splitting_loops): Declare.
12199 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
12200 Reorder bit definitions to be ascending.
12201 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
12202 * config/bfin/bfin.c (splitting_loops): New variable.
12203 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
12204 (struct loop_info): Remove members INIT and LOOP_INIT.
12205 (bfin_optimize_loop): Don't set them. Reorder the code that generates
12206 the LSETUP sequence. Allow LC to be loaded from any register, but
12207 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
12208 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
12209 set to 1.
12210 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
12211 of reload_completed.
12212
12213 From Jie Zhang:
12214 * config/bfin/bfin.md (movsi_insn): Refine constraints.
12215
12216 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
12217
12218 * Makefile.in (PLUGIN_VERSION_H): New.
12219 (OBJS-common): Remove plugin-version.o.
12220 (plugin.o): Depend on (PLUGIN_VERSION_H).
12221 (plugin-version.o): Remove.
12222 * configure: Regenerate
12223 * configure.ac: Create plugin-version.h.
12224 * gcc-plugin.h (plugin_gcc_version): Remove.
12225 (plugin_default_version_check): Change signature.
12226 * plugin-version.c: Remove.
12227 * plugin.c: Include plugin-version.h.
12228 (str_plugin_gcc_version_name): Remove.
12229 (try_init_one_plugin): Pass gcc version to plugin_init.
12230 (plugin_default_version_check): Both gcc and plugin versions are now
12231 arguments.
12232
12233 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
12234
12235 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
12236 problematic last insns. Test for TYPE_CALL rather than CALL_P.
12237 Remove special case testing for last insn of inner loops. Don't fail
12238 if the loop ends with a jump, emit an extra nop instead.
12239
12240 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
12241 DREGS rather than comparing directly. Remove code that tries to
12242 account for latencies.
12243
12244 2009-04-29 Richard Guenther <rguenther@suse.de>
12245
12246 PR tree-optimization/39941
12247 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
12248 eliminating an indirect call.
12249
12250 2009-04-29 Richard Guenther <rguenther@suse.de>
12251
12252 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
12253 parameter. Allow invariants as base if !require_lvalue.
12254 (verify_gimple_assign_single): Adjust.
12255
12256 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
12257
12258 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
12259 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
12260 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
12261 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
12262 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
12263 a VEC_SELECT.
12264 * config/bfin/bfin.c (bfin_expand_builtin,
12265 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
12266
12267 2009-04-28 Richard Guenther <rguenther@suse.de>
12268
12269 * tree-vect-loop.c (get_initial_def_for_induction): Use
12270 correct types for pointer increment.
12271
12272 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12273
12274 * toplev.c (print_version): Update GMP version string calculation.
12275
12276 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
12277
12278 PR rtl-optimization/39938
12279 * resource.c (init_resource_info): Add call to df_analyze.
12280
12281 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
12282
12283 * config/alpha/alpha.md (usegp): Cast the result of
12284 alpha_find_lo_sum_using_gp to enum attr_usegp.
12285 * config/alpha/alpha.c (override_options): Remove end-of-structure
12286 marker element from cpu_table. Use array size of cpu_table to handle
12287 -mcpu and -mtune options.
12288 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
12289
12290 2009-04-28 Joseph Myers <joseph@codesourcery.com>
12291
12292 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
12293 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
12294 tune_32 and tune_64.
12295 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12296 support on PowerPC.
12297 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
12298 * config/rs6000/option-defaults.h: ... here. New file.
12299 (OPT_64, OPT_32): Define.
12300 (MASK_64BIT): Define to 0 if not already defined.
12301 (OPT_ARCH64, OPT_ARCH32): Define.
12302 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
12303 and tune_64.
12304
12305 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12306
12307 * config/arm/arm.c (arm_override_options): Emit error on using
12308 fpa with AAPCS.
12309
12310 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
12311
12312 PR rtl-optimization/39914
12313 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
12314 registers for allocnos created from user-defined variables only
12315 when not optimizing.
12316
12317 2009-04-28 Richard Guenther <rguenther@suse.de>
12318
12319 PR middle-end/39937
12320 * fold-const.c (fold_binary): Use distribute_real_division only
12321 on float types.
12322
12323 2009-04-28 Steve Ellcey <sje@cup.hp.com>
12324
12325 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
12326 add hpux-stdint.h to tm_file.
12327 (hppa[12]*-*-hpux11*): Ditto.
12328 (ia64*-*-hpux*): Ditto.
12329 * config/hpux-stdint.h: New.
12330 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
12331 __STDC_EXT__ for all compiles.
12332 * config/pa/pa-hpux.h: Ditto.
12333 * config/pa/pa-hpux10.h: Ditto.
12334 * config/pa/pa-hpux11.h: Ditto.
12335
12336 2009-04-28 Catherine Moore <clm@codesourcery.com>
12337
12338 * debug.h (set_name): Add comment.
12339
12340 2009-04-28 Andrew Pinski <pinskia@gmail.com>
12341
12342 PR target/39929
12343 * config/darwin.c (machopic_gen_offset): Check
12344 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
12345 * config/arm/arm.c (require_pic_register): Likewise.
12346
12347 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
12348
12349 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
12350 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
12351 m32c_promote_prototypes): Delete.
12352
12353 2009-04-28 Michael Matz <matz@suse.de>
12354
12355 PR middle-end/39922
12356 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
12357 constants.
12358
12359 2009-04-28 Richard Guenther <rguenther@suse.de>
12360
12361 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
12362
12363 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12364
12365 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
12366 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
12367 * config/arm/arm-tune.md: Regenerate.
12368
12369 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
12370
12371 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
12372 block if there are complex incoming edges.
12373 (sel_merge_blocks): Remove useless assert.
12374 (sel_redirect_edge_and_branch): Check that edge was redirected.
12375 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
12376 (sel_find_rgns): Delete declaration.
12377 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
12378 the region when it is not a preheader.
12379
12380 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
12381
12382 PR c/39323
12383 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
12384
12385 2009-04-28 Richard Guenther <rguenther@suse.de>
12386
12387 * tree.h (SSA_NAME_VALUE): Remove.
12388 (struct tree_ssa_name): Remove value_handle member.
12389 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
12390 array for jump threading.
12391 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
12392 SSA_NAME_VALUEs.
12393 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
12394 * tree-flow.h (threadedge_initialize_values): Declare.
12395 (threadedge_finalize_values): Likewise.
12396 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
12397 (SSA_NAME_VALUE): Define.
12398 (threadedge_initialize_values): New function.
12399 (threadedge_finalize_values): Likewise.
12400 * tree-ssa-dom.c (ssa_name_values): New global variable.
12401 (SSA_NAME_VALUE): Define.
12402 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
12403
12404 2009-04-28 Ira Rosen <irar@il.ibm.com>
12405
12406 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
12407 Use REPORT_VECTORIZED_LOCATIONS instead
12408 REPORT_VECTORIZED_LOOPS.
12409 * tree-vectorizer.c (vect_verbosity_level): Make static.
12410 (vect_loop_location): Rename to vect_location.
12411 (vect_set_verbosity_level): Update comment.
12412 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
12413 and vect_location.
12414 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
12415 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
12416 instead REPORT_UNVECTORIZED_LOOPS.
12417 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
12418 and vect_loop_def to vect_external_def and vect_internal_def.
12419 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
12420 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
12421 REPORT_UNVECTORIZED_LOCATIONS.
12422 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
12423 and vect_used_in_loop and to vect_unused_in_scope and
12424 vect_used_in_scope.
12425 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
12426 (vect_verbosity_level): Remove declaration.
12427 (vect_analyze_operations): Likewise.
12428 (vect_analyze_stmt): Declare.
12429 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
12430 REPORT_UNVECTORIZED_LOCATIONS.
12431 (vect_get_loop_niters): Fix indentation.
12432 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
12433 (vect_analyze_loop_operations): New function.
12434 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
12435 vect_analyze_operations.
12436 (vect_is_simple_reduction): Use new names.
12437 (vectorizable_live_operation, vect_transform_loop): Likewise.
12438 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
12439 to specify whether the data references can be a part of interleaving
12440 chain.
12441 (vect_analyze_data_ref_dependence): Use new names.
12442 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
12443 (vect_create_addr_base_for_vector_ref): Remove redundant code.
12444 * tree-vect-patterns.c (widened_name_p): Use new names.
12445 (vect_recog_dot_prod_pattern): Likewise.
12446 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
12447 (process_use, vect_mark_stmts_to_be_vectorized,
12448 vect_model_simple_cost, vect_model_store_cost,
12449 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
12450 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
12451 vectorizable_operation, vectorizable_type_demotion,
12452 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
12453 vectorizable_condition): Likewise.
12454 (vect_analyze_operations): Split into vect_analyze_loop_operations
12455 and ...
12456 (vect_analyze_stmt): ... new function.
12457 (new_stmt_vec_info): Use new names.
12458 (vect_is_simple_use): Use new names and fix comment.
12459 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
12460 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
12461
12462 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
12463
12464 PR target/39911
12465 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
12466 and integer modes for x87 operands. Do not ICE for unsupported size,
12467 generate error instead. Generate error for unsupported operand types.
12468 ['z']: Do not handle HImode memory operands specially. Warning
12469 for floating-point operands. Fallthru to 'Z' for unsupported operand
12470 types. Do not ICE for unsupported size, generate error instead.
12471 (output_387_binary_op): Use %Z to output operands.
12472 (output_fp_compare): Ditto.
12473 (output_387_reg_move): Ditto.
12474
12475 2009-04-28 Ben Elliston <bje@au.ibm.com>
12476
12477 PR c++/35652
12478 Revert:
12479
12480 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12481
12482 * builtins.c (c_strlen): Do not warn here.
12483 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
12484 * c-common.c (pointer_int_sum): Take an explicit location.
12485 Warn about offsets out of bounds.
12486 * c-common.h (pointer_int_sum): Adjust declaration.
12487
12488 2009-04-27 Ian Lance Taylor <iant@google.com>
12489
12490 * collect2.c (is_ctor_dtor): Change type of ret field in struct
12491 names to symkind.
12492 * dce.c (run_fast_df_dce): Change type of old_flags to int.
12493 * df-core.c (df_set_flags): Change return type to int. Change
12494 type of old_flags to int.
12495 (df_clear_flags): Likewise.
12496 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
12497 (df_get_conditional_uses): Likewise.
12498 * df.h (df_set_flags, df_clear_flags): Update declarations.
12499 * dwarf2out.c (struct indirect_string_node): Change type of form
12500 field to enum dwarf_form.
12501 (AT_string_form): Change return type to enum dwarf_form.
12502 * fixed-value.c (fixed_compare): Add cast to enum type.
12503 * fwprop.c (update_df): Change 0 to VOIDmode.
12504 * gensupport.c: Change 0 to UNKNOWN.
12505 * gimple.h (gimple_cond_code): Add cast to enum type.
12506 * haifa-sched.c (reemit_notes): Add cast to enum type.
12507 * hooks.c (hook_int_void_no_regs): Remove function.
12508 * hooks.h (hook_int_void_no_regs): Remove declaration.
12509 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
12510 * predict.c (combine_predictions_for_insn): Add casts to enum type.
12511 * real.c (real_arithmetic): Add cast to enum type.
12512 (real_compare): Likewise.
12513 * target.h (struct gcc_target): Change return type of
12514 branch_target_register_class to enum reg_class.
12515 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
12516 default_branch_target_register_class.
12517 * targhooks.c (default_branch_target_register_class): New function.
12518 * targhooks.h (default_branch_target_register_class): Declare.
12519 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
12520 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
12521 cast to int.
12522 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
12523 ERROR_MARK.
12524 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
12525 vect_uninitialized_def. Change 0 to ERROR_MARK.
12526 * tree-vect-stmts.c (supportable_widening_operation): Don't
12527 initialize icode1 and icode2.
12528 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
12529 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
12530 and to STD_C89.
12531 (cmn_err_flag_specs): Change 0 to STD_C89.
12532 (cmn_err_char_table): Likewise.
12533 * config/arm/arm.c (get_arm_condition_code): Change type of code
12534 to enum arm_cond_code.
12535 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
12536 (IWMMXT_BUILTIN2): Likewise.
12537 (neon_builtin_type_bits): Don't define typedef.
12538 (neon_builtin_datum): Change type of bits field to int.
12539 (arm_expand_neon_args): Add cast to enum type.
12540 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
12541 TLS_MODEL_NONE.
12542 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
12543 casts to enum type.
12544 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
12545 MIPS_FP_COND_f.
12546 * config/mips/mips.md (jal_macro): Return enum constant.
12547 (single_insn): Likewise.
12548 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
12549 CODE_FOR_nothing.
12550 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12551 casts to enum type.
12552 * config/s390/s390.c (s390_tune_flags): Change type to int.
12553 (s390_arch_flags): Likewise.
12554 (s390_handle_arch_option): Change flags field of struct pta to int.
12555 * config/s390/s390.h (s390_tune_flags): Update declaration.
12556 (s390_arch_flags): Likewise.
12557 * config/sh/sh.c (prepare_move_operands): Compare
12558 tls_symbolic_operand result with enum constant.
12559 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
12560 (sh_expand_prologue): Add cast to enum type.
12561 (sh_expand_epilogue): Likewise.
12562 (tls_symbolic_operand): Change return type to enum tls_model.
12563 (fpscr_set_from_mem): Add cast to enum type.
12564 (legitimize_pic_address): Compare tls_symbolic_operand result with
12565 enum constant.
12566 (sh_target_reg_class): Change return type to enum reg_class.
12567 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
12568 PROCESSOR_xxx.
12569 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
12570 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
12571 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
12572 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
12573 (delayed_branch, tls_call_delay): Likewise.
12574 (eligible_for_sibcall_delay): Likewise.
12575 (eligible_for_return_delay): Likewise.
12576 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
12577 (spu_expand_builtin_1): Likewise.
12578
12579 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
12580 for all types of conversions.
12581 (output_init_element): Issue -Wc++-compat warning if needed when
12582 initializing a bitfield with enum type.
12583 * c-parser.c (c_parser_expression): Set original_type to
12584 original_type of right hand operand of comma operator.
12585
12586 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12587
12588 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
12589 grammar nits.
12590 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
12591 * doc/cpp.texi (Standard Predefined Macros)
12592 (Implementation-defined behavior): Likewise.
12593 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
12594 * doc/gimple.texi (GIMPLE Exception Handling)
12595 (@code{GIMPLE_ASSIGN}): Likewise.
12596 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
12597 * doc/invoke.texi (Warning Options, Optimize Options)
12598 (AVR Options, Darwin Options): Likewise.
12599 (Optimize Options): Reformulate -fwhole-program description.
12600 * doc/loop.texi (Lambda): Likewise.
12601 * doc/md.texi (Output Template, Define Constraints)
12602 (Standard Names, Insn Splitting): Likewise.
12603 * doc/options.texi (Option properties): Likewise.
12604 * doc/passes.texi (Tree-SSA passes): Likewise.
12605 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
12606 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
12607 (File Names and DBX): Likewise.
12608 * doc/trouble.texi (Incompatibilities): Likewise.
12609
12610 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12611
12612 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
12613 instruction is correct.
12614
12615 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
12616
12617 Allow non-constant arguments to conversion intrinsics.
12618 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
12619 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
12620 * spu.c (print_operand): Handle 'v' and 'w'.
12621 (exp2_immediate_p, spu_gen_exp2): Define.
12622 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
12623 spu_convtf_1): Update parameter descriptions.
12624 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
12625 * constraints.md ('v', 'w'): New.
12626 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
12627 Remove.
12628 (i2f, I2F): New define_mode_attr.
12629 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
12630 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
12631 fixuns_truncv4sfv4si2): Update to use mode attribute.
12632 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
12633 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
12634 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
12635 patterns for combine.
12636
12637 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
12638
12639 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
12640 (cprop, hoist, pre, store_motion): New debug counters.
12641 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
12642 is not an RTL pass anymore.
12643 (pass_profiling): Remove extern decl for pass removed in 2005.
12644 (pass_gcse, pass_jump_bypass): Remove.
12645 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
12646 to 0 for clean state.
12647 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
12648 * cse.c (gate_handle_cse_after_global_opts,
12649 rest_of_handle_cse_after_global_opts): New functions.
12650 (pass_cse_after_global_opts): New pass, does local CSE.
12651 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
12652 (TV_CPROP): New timevar.
12653 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
12654 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
12655 (gcse_main, recompute_all_luids): Remove.
12656 (compute_hash_table_work): Call max_reg_num instead of reading
12657 max_gcse_regno.
12658 (cprop_jump): Don't set run_jump_opt_after_gcse.
12659 (constprop_register): Always allow to alter jumps.
12660 (cprop_insn): Likewise.
12661 (do_local_cprop): Likewise.
12662 (local_cprop_pass): Likewise. Return non-zero if something changed.
12663 (cprop): Remove function, fold interesting bits into one_cprop_pass.
12664 (find_implicit_sets): Add note about missed optimization opportunity.
12665 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
12666 pass_rtl_cprop execute function.
12667 Don't bother tracking the pass number, each pass gets its own dumpfile
12668 now anyway.
12669 Always allow to alter jumpsand bypass jumps.
12670 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
12671 will just find no suitable set.
12672 (pre_edge_insert): Fix dumping, this function is for PRE only.
12673 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
12674 pass_rtl_pre execute function.
12675 (hoist_code): Return non-zero if something changed. Keep track of
12676 substitutions and insertions for statistics gathering similar to PRE.
12677 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
12678 called from the pass_rtl_hoist execute function. Show pass statistics.
12679 (compute_store_table): Use max_reg_num directly instead of using the
12680 formerly global max_gcse_regno.
12681 (build_store_vectors): Likewise.
12682 (replace_store_insn): Fix dumping.
12683 (store_motion): Rename to ...
12684 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
12685 pass, called from the pass_rtl_store_motion execute function. Keep
12686 track of substitutions and insertions for statistics gathering similar
12687 to PRE.
12688 (bypass_jumps): Remove, fold interesting bits into ...
12689 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
12690 from the pass_rtl_cprop execute function.
12691 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
12692 pass_jump_bypass): Remove.
12693 (gate_handle_gcse, rest_of_handle_gcse): Remove.
12694 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
12695 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
12696 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
12697 (gate_rtl_store_motion, execute_rtl_store_motion,
12698 pass_rtl_store_motion): New.
12699 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
12700 make it clear that -fcse-skip-blocks is a no-op for backward compat.
12701 * passes.c (init_optimization_passes): Remove pass_gcse and
12702 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
12703 and cse_after_global_opts in place of pass_gcse. Schedule cprop
12704 instead of pass_jump_bypass.
12705
12706 2009-04-27 Richard Guenther <rguenther@suse.de>
12707
12708 PR middle-end/39928
12709 * gimplify.c (gimplify_expr): If we are required to create
12710 a temporary make sure it ends up as register.
12711
12712 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
12713
12714 PR target/39903
12715 * config/i386/i386.c (construct_container): Don't call
12716 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
12717 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
12718
12719 2009-04-27 Michael Matz <matz@suse.de>
12720
12721 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
12722 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
12723 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
12724 (dump_replaceable_exprs): Take a bitmap.
12725 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
12726 array.
12727 (expand_gimple_basic_block): Likewise.
12728 * tree-ssa-ter.c (struct temp_expr_table_d): Make
12729 replaceable_expressions member a bitmap.
12730 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
12731 (mark_replaceable): Likewise.
12732 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
12733 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
12734
12735 2009-04-27 Richard Guenther <rguenther@suse.de>
12736
12737 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
12738 (verify_stmts): Dispatch to gimple/type verification code.
12739 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
12740 issue with call argument types.
12741
12742 2009-04-27 Michael Matz <matz@suse.de>
12743
12744 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
12745 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
12746 to above.
12747
12748 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
12749 Eric Botcazou <ebotcazou@adacore.com>
12750
12751 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
12752 a label's basic block.
12753 (mark_target_live_regs): Tidy and rework obsolete comments.
12754 Change back DF problem to LIVE. If a label starts a basic block,
12755 assume that all registers that used to be live then still are.
12756 (init_resource_info): If a label starts a basic block, set its
12757 BLOCK_FOR_INSN accordingly.
12758 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
12759
12760 2009-04-27 Richard Guenther <rguenther@suse.de>
12761
12762 * tree-flow-inline.h (function_ann): Remove.
12763 (get_function_ann): Likewise.
12764 * tree-dfa.c (create_function_ann): Remove.
12765 * tree-flow.h (struct static_var_ann_d): Remove.
12766 (struct function_ann_d): Likewise.
12767 (union tree_ann_d): Remove fdecl member.
12768 (function_ann_t): Remove.
12769 (function_ann, get_function_ann, create_function_ann): Remove
12770 declarations.
12771
12772 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
12773
12774 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
12775
12776 2009-04-27 Jan Hubicka <jh@suse.cz>
12777
12778 * ipa-pure-const.c (struct funct_state_d): New fields
12779 state_previously_known, looping_previously_known; remove
12780 state_set_in_source.
12781 (analyze_function): Use new fields.
12782 (propagate): Avoid assumption that state_set_in_source imply
12783 nonlooping.
12784
12785 * tree-ssa-loop-niter.c (finite_loop_p): New function.
12786 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
12787 * cfgloop.h (finite_loop_p): Declare.
12788
12789 2009-04-26 Michael Matz <matz@suse.de>
12790
12791 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
12792
12793 2009-04-26 Michael Matz <matz@suse.de>
12794
12795 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
12796 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
12797 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
12798 pass_mark_used_blocks): Remove.
12799 * tree-optimize.c (pass_free_datastructures,
12800 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
12801 * passes.c (init_optimization_passes): Don't call
12802 pass_mark_used_blocks, remove dead code.
12803
12804 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
12805
12806 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
12807 * tree-ssa-live.h (register_ssa_partition): Likewise.
12808
12809 2009-04-26 Michael Matz <matz@suse.de>
12810
12811 Expand from SSA.
12812 * builtins.c (fold_builtin_next_arg): Handle SSA names.
12813 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
12814 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
12815 SSA names.
12816 (compare_pairs): Swap cost comparison.
12817 (coalesce_ssa_name): Don't use change_partition_var.
12818 * tree-nrv.c (struct nrv_data): Add modified member.
12819 (finalize_nrv_r): Set it.
12820 (tree_nrv): Use it to update statements.
12821 (pass_nrv): Require PROP_ssa.
12822 * tree-mudflap.c (mf_decl_cache_locals,
12823 mf_build_check_statement_for): Use make_rename_temp.
12824 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
12825 * alias.c (find_base_decl): Handle SSA names.
12826 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
12827 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
12828 * rtl.h (set_reg_attrs_for_parm): Declare.
12829 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
12830 to "optimized", remove unused locals at finish.
12831 (execute_free_datastructures): Make global, call
12832 delete_tree_cfg_annotations.
12833 (execute_free_cfg_annotations): Don't call
12834 delete_tree_cfg_annotations.
12835
12836 * ssaexpand.h: New file.
12837 * expr.c (toplevel): Include ssaexpand.h.
12838 (expand_assignment): Handle SSA names the same as register variables.
12839 (expand_expr_real_1): Expand SSA names.
12840 * cfgexpand.c (toplevel): Include ssaexpand.h.
12841 (SA): New global variable.
12842 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
12843 (SSAVAR): New macro.
12844 (set_rtl): New helper function.
12845 (add_stack_var): Deal with SSA names, use set_rtl.
12846 (expand_one_stack_var_at): Likewise.
12847 (expand_one_stack_var): Deal with SSA names.
12848 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
12849 before unique numbers.
12850 (expand_stack_vars): Use set_rtl.
12851 (expand_one_var): Accept SSA names, add asserts for them, feed them
12852 to above subroutines.
12853 (expand_used_vars): Expand all partitions (without default defs),
12854 then only the local decls (ignoring those expanded already).
12855 (expand_gimple_cond): Remove edges when jumpif() expands an
12856 unconditional jump.
12857 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
12858 or remove abnormal edges. Ignore insns setting the LHS of a TERed
12859 SSA name.
12860 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
12861 members of SA; deal with PARM_DECL partitions here; expand
12862 all PHI nodes, free tree datastructures and SA. Commit instructions
12863 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
12864 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
12865 info and statements at start, collect garbage at finish.
12866 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
12867 (VAR_ANN_PARTITION) Remove.
12868 (change_partition_var): Don't declare.
12869 (partition_to_var): Always return SSA names.
12870 (var_to_partition): Only accept SSA names.
12871 (register_ssa_partition): Only check argument.
12872 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
12873 member.
12874 (delete_var_map): Don't free it.
12875 (var_union): Only accept SSA names, simplify.
12876 (partition_view_init): Mark only useful SSA names as used.
12877 (partition_view_fini): Only deal with SSA names.
12878 (change_partition_var): Remove.
12879 (dump_var_map): Use ssa_name instead of partition_to_var member.
12880 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
12881 basic blocks.
12882 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
12883 (struct _elim_graph): New member const_dests; nodes member vector of
12884 ints.
12885 (set_location_for_edge): New static helper.
12886 (create_temp): Remove.
12887 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
12888 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
12889 (new_elim_graph): Allocate const_dests member.
12890 (clean_elim_graph): Truncate const_dests member.
12891 (delete_elim_graph): Free const_dests member.
12892 (elim_graph_size): Adapt to new type of nodes member.
12893 (elim_graph_add_node): Likewise.
12894 (eliminate_name): Likewise.
12895 (eliminate_build): Don't take basic block argument, deal only with
12896 partition numbers, not variables.
12897 (get_temp_reg): New static helper.
12898 (elim_create): Use it, deal with RTL temporaries instead of trees.
12899 (eliminate_phi): Adjust all calls to new signature.
12900 (assign_vars, replace_use_variable, replace_def_variable): Remove.
12901 (rewrite_trees): Only do checking.
12902 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
12903 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
12904 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
12905 contains_tree_r, MAX_STMTS_IN_LATCH,
12906 process_single_block_loop_latch, analyze_edges_for_bb,
12907 perform_edge_inserts): Remove.
12908 (expand_phi_nodes): New global function.
12909 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
12910 functions, initialize new parameter, remember partitions having a
12911 default def.
12912 (finish_out_of_ssa): New global function.
12913 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
12914 don't reset in_ssa_p here, don't disable TER when mudflap.
12915 (pass_del_ssa): Remove.
12916 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
12917 partition members.
12918 (execute_free_datastructures): Declare.
12919 * Makefile.in (SSAEXPAND_H): New variable.
12920 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
12921 * basic-block.h (commit_one_edge_insertion): Declare.
12922 * passes.c (init_optimization_passes): Move pass_nrv and
12923 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
12924 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
12925 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
12926 (redirect_branch_edge): Deal with super block when expanding, split
12927 out jump patching itself into ...
12928 (patch_jump_insn): ... here, new static helper.
12929
12930 2009-04-26 Michael Matz <matz@suse.de>
12931
12932 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
12933 beyond num_ssa_names.
12934 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
12935 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
12936
12937 2009-04-26 Jakub Jelinek <jakub@redhat.com>
12938
12939 PR inline-asm/39543
12940 * fwprop.c (forward_propagate_asm): New function.
12941 (forward_propagate_and_simplify): Propagate also into __asm, if it
12942 doesn't increase the number of referenced registers.
12943
12944 PR c/39889
12945 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
12946
12947 2009-04-26 Jakub Jelinek <jakub@redhat.com>
12948
12949 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
12950 note_nonlocal_vla_type for nonlocal VLAs.
12951 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
12952 contains_remapped_vars, remap_vla_decls): New functions.
12953 (convert_nonlocal_reference_stmt): If not optimizing, call
12954 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
12955 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
12956 if it wasn't found in var_map.
12957 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
12958 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
12959 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
12960 declare_vars.
12961 * gimplify.c (nonlocal_vlas): New variable.
12962 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
12963 referenced VLAs.
12964 (gimplify_body): Create and destroy nonlocal_vlas.
12965
12966 * dwarf2out.c (loc_descr_plus_const): New function.
12967 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
12968 mem_loc_descriptor, loc_descriptor_from_tree_1,
12969 descr_info_loc, gen_variable_die): Use it.
12970
12971 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
12972 !TREE_STATIC VAR_DECLs.
12973 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
12974 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
12975 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
12976 DECL_BY_REFERENCE is valid.
12977 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
12978 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
12979 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
12980 Copy DECL_BY_REFERENCE.
12981 (struct nesting_copy_body_data): New type.
12982 (nesting_copy_decl): New function.
12983 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
12984 if they have variable length.
12985
12986 2009-04-26 Michael Matz <matz@suse.de>
12987
12988 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
12989 mark new temporaries for renaming.
12990
12991 2009-04-26 Joseph Myers <joseph@codesourcery.com>
12992
12993 PR c/39581
12994 * c-decl.c (global_bindings_p): Return negative value.
12995 (c_variable_size): New. Based on variable_size from
12996 stor-layout.c.
12997 (grokdeclarator): Call c_variable_size not variable_size.
12998
12999 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
13000
13001 * config/i386/i386.c (print_operand) ['z']: Fix typo.
13002
13003 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
13004
13005 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
13006 Redefine it to just use mingw/include.
13007 (ASM_SPEC): Rules for -m32 and -m64.
13008 (LINK_SPEC): Use Likewise.
13009 (SPEC_32): New define.
13010 (SPEC_64): Likewise.
13011 (SUB_LINK_SPEC): Likewise.
13012 (MULTILIB_DEFAULTS): New define.
13013 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
13014 Add multilib options.
13015 (MULTILIB_DIRNAMES): Likewise.
13016 (MULTILIB_OSDIRNAMES): Likewise.
13017 (LIBGCC): Likewise.
13018 (INSTALL_LIBGCC): Likewise.
13019
13020 2009-04-26 Joseph Myers <joseph@codesourcery.com>
13021
13022 PR c/39556
13023 * c-tree.h (enum c_inline_static_type): New.
13024 (record_inline_static): Declare.
13025 * c-decl.c (struct c_inline_static, c_inline_statics,
13026 record_inline_static, check_inline_statics): New.
13027 (pop_file_scope): Call check_inline_statics.
13028 (start_decl): Call record_inline_static instead of pedwarning
13029 directly for static in inline function.
13030 * c-typeck.c (build_external_ref): Call record_inline_static
13031 instead of pedwarning directly for static referenced in inline
13032 function.
13033
13034 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
13035
13036 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
13037 not new but only being rescanned.
13038 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
13039 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
13040 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
13041 record_set_info, compute_set, grealloc): Remove.
13042 (recompute_all_luids): New function.
13043 (gcse_main): Don't compute sets, and don't do related memory
13044 allocations/free-ing. If something changed before the end of the
13045 pass, update LUIDs using recompute_all_luids.
13046 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
13047 (free_gcse_mem): Don't free it either.
13048 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
13049 Use the df insn LUIDs.
13050 (load_killed_in_block): Likewise.
13051 (compute_hash_table_work): Don't compute reg_set_in_block.
13052 (compute_transp): Use DF_REG_DEF_CHAINs.
13053 (local_cprop_pass): Don't use compute_sets and related functions.
13054 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
13055 Use get_max_uid() instead of max_cuid.
13056 (insert_insn_end_basic_block, pre_insert_copy_insn,
13057 update_ld_motion_stores): Don't try to
13058 keep reg_set tables up to date.
13059 (pre_insert_copies): Use df insn LUIDs.
13060 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
13061 (reg_set_info): Don't use extra bitmap argument.
13062 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
13063 information to compute regs_set_in_block.
13064 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
13065 (bypass_jumps): Don't use compute_sets and friends.
13066
13067 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13068
13069 PR testsuite/39710
13070 * opts.c (undocumented_msg): Do not leave blank even with
13071 ENABLE_CHECKING.
13072
13073 2009-04-25 Joseph Myers <joseph@codesourcery.com>
13074
13075 * c-decl.c (build_enumerator): Allow values folding to integer
13076 constants but not integer constant expressions with a pedwarn if
13077 pedantic.
13078
13079 2009-04-25 Joseph Myers <joseph@codesourcery.com>
13080
13081 PR c/39582
13082 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
13083 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
13084 type is an integer constant.
13085
13086 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
13087
13088 PR target/39897
13089 * config/i386/i386.c (print_operand) ['z']: Revert handling of
13090 HImode operands.
13091
13092 2009-04-25 Joseph Myers <joseph@codesourcery.com>
13093
13094 PR c/39564
13095 * c-decl.c (grokdeclarator): Diagnose declarations of functions
13096 with variably modified return type and no storage class
13097 specifiers, except for the case of nested functions. Distinguish
13098 extern declarations of functions with variably modified return
13099 types from those of objects with variably modified types.
13100
13101 2009-04-25 Jan Hubicka <jh@suse.cz>
13102
13103 * tree.c (list_equal_p): New function.
13104 * tree.h (list_equal_p): Declare.
13105 * coretypes.h (edge_def, edge, const_edge, basic_block_def
13106 basic_block_def, basic_block, const_basic_block): New.
13107 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
13108 (redirect_eh_edge): New function.
13109 (make_eh_edge_update_phi): EH edges are not abnormal.
13110 * except.c: Include tree-flow.h.
13111 (list_match): New function.
13112 (eh_region_replaceable_by_p): New function.
13113 (replace_region): New function.
13114 (hash_type_list): New function.
13115 (hash_eh_region): New function.
13116 (eh_regions_equal_p): New function.
13117 (merge_peers): New function.
13118 (remove_unreachable_regions): Verify EH tree when checking;
13119 merge peers.
13120 (copy_eh_region_1): New function.
13121 (copy_eh_region): New function.
13122 (push_reachable_handler): New function.
13123 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
13124 regions without label but with live RESX.
13125 * except.h (redirect_eh_edge_to_label): New.
13126 * tree-flow.h (redirect_eh_edge): New.
13127 * coretypes.h (edge_def, edge, const_edge, basic_block_def
13128 basic_block_def, basic_block, const_basic_block): Remove.
13129 * Makefile.in (except.o): Add dependency on tree-flow.h
13130 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
13131 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
13132 Remove.
13133
13134 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
13135
13136 PR bootstrap/39645
13137 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
13138 on the destination of memcpy.
13139
13140 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
13141
13142 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
13143 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
13144 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
13145
13146 2009-04-25 Jan Hubicka <jh@suse.cz>
13147
13148 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
13149 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
13150 to be reached by different label than left.
13151 (update_eh_edges): Update comment; remove edge_to_remove if possible
13152 and return true if suceeded.
13153 (cleanup_empty_eh): Accept sharing map; handle shared regions.
13154 (cleanup_eh): Compute sharing map.
13155 * except.c (remove_eh_handler_and_replace): Add argument if we should
13156 update regions.
13157 (remove_unreachable_regions): Update for label sharing.
13158 (label_to_region_map): Likewise.
13159 (get_next_region_sharing_label): New function.
13160 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
13161 prev_try pointers.
13162 (remove_eh_handler): Update.
13163 (remove_eh_region_and_replace_by_outer_of): New function.
13164 * except.h (struct eh_region): Add next_region_sharing_label.
13165 (remove_eh_region_and_replace_by_outer_of,
13166 get_next_region_sharing_label): Declare.
13167 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
13168
13169 2009-04-25 Jan Hubicka <jh@suse.cz>
13170
13171 * tree-cfg.c (split_critical_edges): Split also edges where we can't
13172 insert code even if they are not critical.
13173
13174 2009-04-25 Jan Hubicka <jh@suse.cz>
13175
13176 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
13177 (gimple_can_remove_branch_p): EH edges won't remove branch by
13178 redirection.
13179 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
13180 updating of non-abnormal EH edges.
13181 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
13182 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
13183 (split_critical_edges): Split also edges where emitting code on them
13184 will lead to splitting later.
13185
13186 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
13187 H.J. Lu <hongjiu.lu@intel.com>
13188
13189 PR target/39590
13190 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
13191 the configured assembler supports fildq and fistpq mnemonics.
13192 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
13193 * configure: Regenerated.
13194 * config.in: Ditto.
13195
13196 * config/i386/i386.c (print_operand): Handle 'Z'.
13197 ['z']: Remove handling of special fild/fist suffixes.
13198 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
13199 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
13200 suffix of fild insn.
13201 (*floatsi<mode>2_vector_mixed): Ditto.
13202 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
13203 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
13204 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
13205 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
13206 * config/i386/gas.h (GAS_MNEMONICS): Remove.
13207
13208 2009-04-25 Ben Elliston <bje@au.ibm.com>
13209
13210 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
13211 the source of a set operation.
13212
13213 2009-04-25 Anatoly Sokolov <aesok@post.ru>
13214
13215 * target.h (struct gcc_target): Add case_values_threshold field.
13216 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
13217 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
13218 * targhooks.c (default_case_values_threshold): New function.
13219 * targhooks.h (default_case_values_threshold): Declare function.
13220 * stmt.c (expand_case): Use case_values_threshold target hook.
13221 * expr.h (case_values_threshold): Remove declartation.
13222 * expr.c (case_values_threshold): Remove function.
13223 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
13224
13225 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
13226 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
13227 (avr_case_values_threshold): Declare as static.
13228 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
13229
13230 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
13231 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
13232 (mn10300_case_values_threshold): New function.
13233
13234 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
13235
13236 * ira.c (setup_cover_and_important_classes): Add enum cast.
13237
13238 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
13239
13240 * genpreds.c (write_enum_constraint_num): Output definition of
13241 CONSTRAINT_NUM_DEFINED_P macro.
13242 * ira.c (setup_cover_and_important_classes): Use
13243 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
13244
13245 2009-04-24 DJ Delorie <dj@redhat.com>
13246
13247 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
13248 __SH2A_SINGLE_ONLY__ also.
13249
13250 2009-04-24 Steve Ellcey <sje@cup.hp.com>
13251
13252 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
13253 (movdf_internal): Ditto.
13254 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
13255 SFmode and DFmode constants.
13256 (ia64_print_operand): Add 'G' format for printing
13257 floating point constants.
13258
13259 2009-04-24 Richard Guenther <rguenther@suse.de>
13260
13261 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
13262 from unsigned additions.
13263
13264 2009-04-24 Joseph Myers <joseph@codesourcery.com>
13265
13266 * c-typeck.c (set_init_index): Allow array designators that are
13267 not integer constant expressions with a pedwarn if pedantic.
13268
13269 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
13270
13271 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
13272 zero if no overlap in nonzero bits between the operands.
13273
13274 2009-04-24 Ian Lance Taylor <iant@google.com>
13275
13276 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
13277 (record_dead_and_set_regs): Likewise.
13278 * df.h (struct df_mw_hardreg): Change flags field to int.
13279 (struct df_base_ref): Likewise.
13280 (struct df): Change changeable_flags field to int.
13281 * df-scan.c (df_defs_record): Change clobber_flags to int.
13282 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
13283 constants rather than #define macros.
13284 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
13285 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
13286 (enum dwarf_calling_convention): Likewise.
13287 (enum dwarf_line_number_x_ops): Likewise.
13288 (enum dwarf_call_frame_info): Likewise.
13289 (enum dwarf_source_language): Likewise.
13290 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
13291 (add_calling_convention_attribute): Likewise.
13292 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
13293 (combine_comparisons): Change compcode to int. Add cast to enum type.
13294 * genrecog.c (maybe_both_true_2): Change c to int.
13295 (write_switch): Likewise. Add cast to enum type.
13296 * gimplify.c (gimplify_omp_for): Handle return values from
13297 gimplify_expr using MIN rather than bitwise or.
13298 (gimplify_expr): Add cast to enum type.
13299 * ipa-prop.c (update_jump_functions_after_inlining): Change
13300 IPA_BOTTOM to IPA_JF_UNKNOWN.
13301 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
13302 Add casts to enum type.
13303 (setup_cover_and_important_classes): Change cl to int. Add casts
13304 to enum type.
13305 (setup_class_translate): Change cl and mode to int.
13306 (ira_init_once): Change mode to int.
13307 (free_register_move_costs): Likewise.
13308 (setup_prohibited_mode_move_regs): Add casts to enum type.
13309 * langhooks.c (add_builtin_function_common): Rework assertion that
13310 value fits bitfield.
13311 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
13312 * omega.c (omega_do_elimination): Avoid math on enum types.
13313 * optabs.c (expand_vec_shift_expr): Remove casts to int.
13314 * opts.c (set_debug_level): Change 2 to enum constant. Use new
13315 int local to handle integral_argment value.
13316 * regmove.c (try_auto_increment): Change PUT_MODE to
13317 PUT_REG_NOTE_KIND.
13318 * reload.c (push_secondary_reload): Add casts to enum type.
13319 (secondary_reload_class, find_valid_class): Likewise.
13320 * reload1.c (emit_input_reload_insns): Likewise.
13321 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
13322 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
13323 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
13324 constant.
13325 * tree.c (build_common_builtin_nodes): Add casts to enum type.
13326 * tree-complex.c (complex_lattice_t): Typedef to int rather than
13327 enum type.
13328 (expand_complex_libcall): Add casts to enum type.
13329 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
13330 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
13331 with ERROR_MARK, not NUM_TREE_CODES.
13332 (vect_create_epilog_for_reduction): Likewise.
13333 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
13334 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
13335 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
13336 enum machine_mode.
13337 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
13338 vect_unused_in_loop. Change 0 to loop_vect.
13339 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
13340 * var-tracking.c (get_init_value): Change return type to enum
13341 var_init_status.
13342 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
13343 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
13344 arm_fp_model.
13345 (arm_override_options): Add casts to enum type.
13346 (arm_emit_tls_decoration): Likewise.
13347 * config/i386/i386.c (ix86_function_specific_restore): Add casts
13348 to enum type.
13349 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
13350 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
13351 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
13352 enum type.
13353 * config/s390/s390.c (code_for_builtin_64): Change to array of
13354 enum insn_code.
13355 (code_for_builtin_31): Likewise.
13356 (s390_expand_builtin): Change code_for_builtin to enum insn_code
13357 const *.
13358 * config/sparc/sparc.c (sparc_override_options): Change value
13359 field in struct code_model to enum cmodel. In initializer change
13360 0 to NULL and add cast to enum type.
13361
13362 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
13363 Change all callers. Issue a -Wc++-compat warning using
13364 lhs_origtype if necessary.
13365 (convert_for_assignment): Issue -Wc++-compat warnings about
13366 invalid conversions to enum type on assignment.
13367 * c-common.h (build_modify_expr): Update declaration.
13368
13369 2009-04-24 Nick Clifton <nickc@redhat.com>
13370
13371 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
13372 (function_arg_advance): Likewise.
13373 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
13374 5th alternative.
13375
13376 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
13377
13378 * config/s390/constraints.md ('I', 'J'): Fix condition.
13379
13380 2009-04-24 Diego Novillo <dnovillo@google.com>
13381
13382 * gengtype-parse.c (parse_error): Add newline after message.
13383
13384 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
13385
13386 * config/i386/sse.md (avxmodesuffixs): Removed.
13387 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
13388 (*avx_pinsr<ssevecsize>): This.
13389
13390 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
13391
13392 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
13393 follow chains of regs with a single definition, and allow expressions
13394 that are function_invariant_p.
13395 (simple_rhs_p): Allow expressions that are function_invariant_p.
13396
13397 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
13398
13399 PR middle-end/39867
13400 * fold-const.c (fold_cond_expr_with_comparison): When folding
13401 > and >= to MAX, make sure the MAX uses the same type as the
13402 comparison's operands.
13403
13404 2009-04-24 Nick Clifton <nickc@redhat.com>
13405
13406 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
13407 addressing for DImode accesses.
13408 (frv_print_operand_address): Handle PLUS case.
13409 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
13410
13411 2009-04-24 Jakub Jelinek <jakub@redhat.com>
13412
13413 PR rtl-optimization/39794
13414 * alias.c (canon_true_dependence): Add x_addr argument.
13415 * rtl.h (canon_true_dependence): Adjust prototype.
13416 * cse.c (check_dependence): Adjust canon_true_dependence callers.
13417 * cselib.c (cselib_invalidate_mem): Likewise.
13418 * gcse.c (compute_transp): Likewise.
13419 * dse.c (scan_reads_nospill): Likewise.
13420 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
13421 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
13422 canon_base_addr of the group, plus optional offset.
13423 (struct group_info): Rename canon_base_mem to
13424 canon_base_addr.
13425 (get_group_info): Set canon_base_addr to canon_rtx of base, not
13426 canon_rtx of base_mem.
13427
13428 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
13429
13430 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13431 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
13432
13433 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13434
13435 * config/spu/spu-builtins.h: Delete file.
13436
13437 * config/spu/spu.h (enum spu_builtin_type): Move here from
13438 spu-builtins.h.
13439 (struct spu_builtin_description): Likewise. Add GTY marker.
13440 Do not use enum spu_function_code or enum insn_code.
13441 (spu_builtins): Add extern declaration.
13442
13443 * config/spu/spu.c: Do not include "spu-builtins.h".
13444 (enum spu_function_code, enum spu_builtin_type_index,
13445 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
13446 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
13447 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
13448 unsigned_V2DI_type_node): Move here from spu-builtins.h.
13449 (spu_builtin_types): Make static. Add GTY marker.
13450 (spu_builtins): Add extern declaration with GTY marker.
13451 Include "gt-spu.h".
13452
13453 * config/spu/spu-c.c: Do not include "spu-builtins.h".
13454 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
13455 Check programmatically whether all parameters are scalar.
13456
13457 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
13458
13459 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
13460
13461 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
13462 assignment from the constructor either if the target is volatile.
13463
13464 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
13465
13466 * config/arm/arm.md (insv): Do not share operands[0].
13467
13468 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
13469
13470 * config/vxlib-tls.c (active_tls_threads): Delete.
13471 (delete_hook_installed): New.
13472 (tls_delete_hook): Don't delete the delete hook.
13473 (tls_destructor): Delete it here.
13474 (__gthread_set_specific): Adjust installing the delete hook.
13475 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
13476 __gthread_leave_tsd_dtor_context.
13477
13478 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
13479
13480 * c-format.c (gcc_tdiag_char_table): Add support for %E.
13481
13482 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
13483
13484 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
13485 enum type.
13486 (alpha_rtx_costs): Ditto.
13487 (emit_unlikely_jump): Use add_reg_note.
13488 (emit_frame_store_1): Ditto.
13489 (alpha_expand_prologue): Ditto.
13490 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13491 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
13492
13493 2009-04-23 Nick Clifton <nickc@redhat.com>
13494
13495 * config/v850/v850.md (epilogue): Remove suppressed code.
13496 (return): Rename to return_simple and remove test of frame size.
13497 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
13498 to gen_return_simple.
13499
13500 2009-04-22 Jing Yu <jingyu@google.com>
13501
13502 PR testsuite/39781
13503 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
13504
13505 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
13506
13507 PR C/31499
13508 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
13509 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
13510 value is a VECTOR_CST, the element type is the element type of the
13511 vector.
13512
13513 2009-04-22 DJ Delorie <dj@redhat.com>
13514
13515 * config/m32c/m32c.h: Update GTY annotations to new syntax.
13516
13517 2009-04-22 Jakub Jelinek <jakub@redhat.com>
13518
13519 * alias.c (find_base_term): Move around LO_SUM case, so that
13520 CONST falls through into PLUS/MINUS handling.
13521
13522 PR c/39855
13523 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
13524 into 0, use omit_one_operand.
13525
13526 2009-04-23 Ben Elliston <bje@au.ibm.com>
13527
13528 * config/rs6000/linux-unwind.h (get_regs): Remove type
13529 puns. Change the type of `pc' to an array of unsigned ints and
13530 update all users. Constify frame24.
13531
13532 2009-04-22 DJ Delorie <dj@redhat.com>
13533
13534 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
13535 declarations before code.
13536 (current_function_special_page_vector): Likewise.
13537 (m32c_expand_insv): Silence a warning.
13538
13539 2009-04-21 Taras Glek <tglek@mozilla.com>
13540
13541 * alias.c: Update GTY annotations to new syntax.
13542 * basic-block.h: Likewise.
13543 * bitmap.h: Likewise.
13544 * c-common.h: Likewise.
13545 * c-decl.c: Likewise.
13546 * c-parser.c: Likewise.
13547 * c-pragma.c: Likewise.
13548 * c-tree.h: Likewise.
13549 * cfgloop.h: Likewise.
13550 * cgraph.h: Likewise.
13551 * config/alpha/alpha.c: Likewise.
13552 * config/arm/arm.h: Likewise.
13553 * config/avr/avr.h: Likewise.
13554 * config/bfin/bfin.c: Likewise.
13555 * config/cris/cris.c: Likewise.
13556 * config/darwin.c: Likewise.
13557 * config/frv/frv.c: Likewise.
13558 * config/i386/i386.c: Likewise.
13559 * config/i386/i386.h: Likewise.
13560 * config/i386/winnt.c: Likewise.
13561 * config/ia64/ia64.h: Likewise.
13562 * config/iq2000/iq2000.c: Likewise.
13563 * config/mips/mips.c: Likewise.
13564 * config/mmix/mmix.h: Likewise.
13565 * config/pa/pa.c: Likewise.
13566 * config/pa/pa.h: Likewise.
13567 * config/rs6000/rs6000.c: Likewise.
13568 * config/s390/s390.c: Likewise.
13569 * config/sparc/sparc.c: Likewise.
13570 * config/xtensa/xtensa.c: Likewise.
13571 * cselib.h: Likewise.
13572 * dbxout.c: Likewise.
13573 * dwarf2out.c: Likewise.
13574 * except.c: Likewise.
13575 * except.h: Likewise.
13576 * fixed-value.h: Likewise.
13577 * function.c: Likewise.
13578 * function.h: Likewise.
13579 * gimple.h: Likewise.
13580 * integrate.c: Likewise.
13581 * optabs.c: Likewise.
13582 * output.h: Likewise.
13583 * real.h: Likewise.
13584 * rtl.h: Likewise.
13585 * stringpool.c: Likewise.
13586 * tree-data-ref.c: Likewise.
13587 * tree-flow.h: Likewise.
13588 * tree-scalar-evolution.c: Likewise.
13589 * tree-ssa-address.c: Likewise.
13590 * tree-ssa-alias.h: Likewise.
13591 * tree-ssa-operands.h: Likewise.
13592 * tree.c: Likewise.
13593 * tree.h: Likewise.
13594 * varasm.c: Likewise.
13595 * varray.h: Likewise.
13596 * vec.h: Likewise.
13597 * coretypes.h: Do not define GTY macro if it is already defined.
13598 * doc/gty.texi: Update GTY documentation to new syntax.
13599 * gengtype-lex.l: Enforce attribute-like syntax for GTY
13600 annotations on structs.
13601 * gengtype-parse.c: Likewise.
13602
13603 2009-04-22 Mark Heffernan <meheff@google.com>
13604
13605 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
13606
13607 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
13608
13609 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
13610 where appropriate.
13611
13612 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
13613
13614 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
13615 the same as a PLUS without a shift. Increase the cost of a
13616 CONST_INT in MULT.
13617
13618 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13619
13620 * Makefile.in: Update dependencies.
13621 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
13622 * errors.h: Remove bogus comment about compatibility.
13623 (warning): Update declaration.
13624 * genautomata.c: Update all calls to warning.
13625 * gimple.c: Do not include errors.h. Include toplev.h.
13626 * tree-ssa-structalias.c: Do not include errors.h.
13627 * omega.c: Likewise.
13628 * tree-ssa-reassoc.c: Likewise.
13629 * config/spu/spu-c.c: Likewise.
13630 * config/spu/t-spu-elf: Update dependencies.
13631
13632 2009-04-22 Richard Guenther <rguenther@suse.de>
13633
13634 PR tree-optimization/39824
13635 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
13636 make sure the types are compatible.
13637
13638 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13639
13640 PR c++/14875
13641 * c-common.c (c_parse_error): Take a token_flags parameter.
13642 Use token_type for the token type instead.
13643 Pass token_flags to cpp_type2name.
13644 * c-common.h (c_parse_error): Update declaration.
13645 * c-parser.c (c_parser_error): Pass 0 as token flags.
13646
13647 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
13648
13649 PR rtl-optimization/39580
13650 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
13651
13652 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13653
13654 * function.c (expand_function_end): Do not emit a jump to the "naked"
13655 return label for fall-through returns.
13656 * except.c (sjlj_emit_function_exit): Always place the call to the
13657 unregister function at the location installed by expand_function_end.
13658
13659 2009-04-22 Richard Guenther <rguenther@suse.de>
13660
13661 PR tree-optimization/39845
13662 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
13663 (gen_inbound_check): Likewise.
13664
13665 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
13666
13667 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
13668 padding for PPC.
13669 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
13670 * config/vxlib.c (__gthread_once): Add race guard for PPC.
13671
13672 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
13673
13674 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
13675 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
13676 shift counts to avoid out-of-bounds array accesses.
13677
13678 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
13679
13680 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
13681 (Pmode): Move above.
13682
13683 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
13684
13685 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
13686 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
13687 GET_CODE macro. Use IN_RANGE macro where appropriate.
13688 * config/alpha/alpha.h: Ditto.
13689 * config/alpha/alpha.md: Ditto.
13690 * config/alpha/constraints.md: Ditto.
13691 * config/alpha/predicates.md: Ditto.
13692
13693 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
13694
13695 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
13696 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13697 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13698 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13699 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13700 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13701 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13702 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13703 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13704 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13705 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13706 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13707 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13708 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13709 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13710 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13711 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13712 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13713 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13714 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13715 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13716 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13717 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13718 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13719 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13720 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13721 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
13722
13723 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
13724
13725 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
13726 references from comments.
13727 * cfgbuild.c: (count_basic_blocks): Delete.
13728 (find_basic_blocks_1): Delete.
13729 (find_basic_blocks): Delete.
13730 * except.c (finish_eh_generation): Make static. Move comment from
13731 except.h here. Remove find_basic_blocks references from comments.
13732 * except.h (finish_eh_generation): Delete.
13733 * basic-block.h (find_basic_blocks): Delete.
13734 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
13735
13736 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
13737
13738 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
13739 (sdbout_parms): Likewise.
13740
13741 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
13742
13743 * config/sh/sh.c (prepare_cbranch_operands): Use
13744 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
13745 (expand_cbranchdi4): Likewise.
13746 (from_compare): Add cast to enum type.
13747 (expand_cbranchsi4): Use add_reg_note.
13748 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
13749 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
13750 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
13751 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
13752 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
13753 instead of CODE_FOR_nothing.
13754 (cbranchdi4): Likewise. Fix the order of arguments for
13755 gen_rtx_fmt_ee.
13756 (push_fpscr): Use add_reg_note.
13757 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
13758 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
13759
13760 2009-04-21 Joseph Myers <joseph@codesourcery.com>
13761
13762 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
13763 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
13764 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
13765 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
13766 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
13767 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
13768 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
13769 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
13770 config/alpha/x-vms, config/arc/t-arc,
13771 config/arm/README-interworking, config/arm/arm-c.c,
13772 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
13773 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
13774 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
13775 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
13776 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
13777 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
13778 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
13779 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
13780 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
13781 config/cris/t-elfmulti, config/crx/t-crx,
13782 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
13783 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
13784 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
13785 config/h8300/t-h8300, config/i386/athlon.md,
13786 config/i386/darwin-libgcc.10.4.ver,
13787 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
13788 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
13789 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
13790 config/i386/t-linux64, config/i386/t-nwld,
13791 config/i386/t-rtems-i386, config/i386/t-sol2-10,
13792 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
13793 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
13794 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
13795 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
13796 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
13797 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
13798 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
13799 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
13800 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
13801 config/m68k/t-uclinux, config/mcore/t-mcore,
13802 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
13803 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
13804 config/mips/crtn.asm, config/mips/irix-crti.asm,
13805 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
13806 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
13807 config/mips/mips-fixed.md, config/mips/sb1.md,
13808 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
13809 config/mips/t-iris6, config/mips/t-isa3264,
13810 config/mips/t-libgcc-mips16, config/mips/t-linux64,
13811 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
13812 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
13813 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
13814 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
13815 config/mn10300/t-linux, config/mn10300/t-mn10300,
13816 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
13817 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
13818 config/picochip/libgccExtras/clzsi2.asm,
13819 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
13820 config/rs6000/darwin-libgcc.10.4.ver,
13821 config/rs6000/darwin-libgcc.10.5.ver,
13822 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
13823 config/rs6000/t-aix43, config/rs6000/t-aix52,
13824 config/rs6000/t-darwin, config/rs6000/t-fprules,
13825 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
13826 config/rs6000/t-lynx, config/rs6000/t-netbsd,
13827 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
13828 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
13829 config/rs6000/t-rtems, config/rs6000/t-spe,
13830 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
13831 config/score/t-score-elf, config/sh/divcost-analysis,
13832 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
13833 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
13834 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
13835 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
13836 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
13837 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
13838 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
13839 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
13840 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
13841 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
13842 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
13843 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
13844 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
13845 limitx.h, version.c, xcoff.h: Add copyright and license notices.
13846 * config/h8300/genmova.sh: Include copyright and license notices
13847 in generated output.
13848 * config/h8300/mova.md: Regenerate.
13849 * doc/install.texi2html: Include word "Copyright" in copyright
13850 notice and use name "Free Software Foundation, Inc.".
13851 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
13852 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
13853 ChangeLog-2007, ChangeLog-2008: Correct dates.
13854
13855 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
13856
13857 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
13858 NE_EXPR operations as well.
13859 * c-parser.c (c_parser_condition): Do not set location information on
13860 the condition.
13861 (c_parser_conditional_expression): Likewise.
13862 (c_parser_binary_expression): Set location information on operators.
13863 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
13864 TRUTH_NOT_EXPR has been folded.
13865 * fold-const.c (fold_truth_not_expr): Copy location information from
13866 the incoming expression to the outgoing one.
13867 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
13868 recursive calls on the LHS of the operator but pass that of the
13869 operator to recursive calls on the RHS of the operator. Set it
13870 on the COND_EXPR.
13871 (shortcut_cond_expr): Set the locus of the operator on the second
13872 COND_EXPR and that of the expression on the first in degenerate cases.
13873 Pass the locus of the expression to calls to shortcut_cond_r.
13874 Set the locus of the 'then' block on the associated jump, if any.
13875 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
13876 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
13877 expression to call to gimplify_boolean_expr.
13878
13879 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
13880
13881 * config.gcc: Add additional configuration for
13882 i686-w64-mingw* and x86_64-w64-mingw* triplet.
13883 * config/i386/mingw-w64.h: New mingw-w64 specific header.
13884 (CPP_SPEC): Redefine for allowing -municode option.
13885 (STARTFILE_SPEC): Likewise.
13886 * config/i386/t-mingw-w64: New.
13887 * config/i386/mingw-w64.opt: New.
13888 (municode): Add new target option.
13889 * doc/invoke.texi (municode): Add documentation for new option.
13890
13891 2009-04-21 Ian Lance Taylor <iant@google.com>
13892
13893 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13894 Correct test for number of arguments.
13895 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13896
13897 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
13898
13899 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
13900 argument of emit_library_call.
13901
13902 2009-04-21 Richard Guenther <rguenther@suse.de>
13903
13904 PR middle-end/39829
13905 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
13906 inside VIEW_CONVERT_EXPRs.
13907
13908 2009-04-21 Martin Jambor <mjambor@suse.cz>
13909
13910 * tree-switch-conversion.c (build_constructors): Split a long line.
13911 (constructor_contains_same_values_p): New function.
13912 (build_one_array): Create assigns of constants if possible, do not
13913 call mark_sym_for_renaming, call update_stmt.
13914 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
13915 make_rename_temp. Do not call mark_symbols_for_renaming, call
13916 update_stmt.
13917 (gen_def_assigns): Do not call mark_symbols_for_renaming or
13918 find_new_referenced_vars, call update_stmt.
13919 (gen_inbound_check): Use create_tmp_var and create ssa names manually
13920 instead of calling make_rename_temp. Do not call
13921 find_new_referenced_vars or mark_symbols_for_renaming, call
13922 update_stmt.
13923
13924 2009-04-21 Richard Guenther <rguenther@suse.de>
13925
13926 PR tree-optimization/39827
13927 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
13928 (tree_ssa_phiprop): Pass the correct array size.
13929
13930 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
13931
13932 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
13933
13934 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13935
13936 PR 16202
13937 * c-typeck.c (lvalue_p): Move declaration ...
13938 * c-common.h (lvalue_p): ... to here.
13939 * c-common.c (candidate_equal_p): New.
13940 (add_tlist): Use it.
13941 (merge_tlist): Use it.
13942 (warn_for_collisions_1): Likewise.
13943 (warning_candidate_p): Accept more candidates.
13944 (verify_tree): A warning candidate can be an expression. Use
13945 candidate_equal_p.
13946
13947 2009-04-21 Ben Elliston <bje@au.ibm.com>
13948
13949 PR target/5267
13950 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13951 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
13952 options. Remove -mcall-solaris documentation.
13953
13954 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13955
13956 PR c++/13358
13957 * doc/invoke.texi (-Wlong-long): Update description.
13958 * c-lex (interpret_integer): Only warn if there was no previous
13959 overflow and -Wlong-long is enabled.
13960 * c-decl.c (declspecs_add_type): Drop redundant flags.
13961 * c.opt (Wlong-long): Init to -1.
13962 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
13963 and front-end warn_long_long. Wlong-long only depends on other
13964 flags if it is uninitialized.
13965 * c-parser.c (disable_extension_diagnostics): warn_long_long is
13966 the same for CPP and FE.
13967 (restore_extension_diagnostics): Likewise.
13968
13969 2009-04-20 Ian Lance Taylor <iant@google.com>
13970
13971 Fix enum conversions which are invalid in C++:
13972 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
13973 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
13974 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
13975 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
13976 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
13977 (dbxout_parms): Likewise.
13978 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
13979 (df_clear_flags): Likewise.
13980 * df-problems.c (df_rd_bb_local_compute_process_def): Change
13981 top_flag parameter to int.
13982 (df_chain_create_bb_process_use): Likewise.
13983 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
13984 Remove cast.
13985 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
13986 (df_ref_create_structure, df_def_record_1): Likewise.
13987 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
13988 (df_notes_rescan): Change 0 to VOIDmode in function call.
13989 (df_get_call_refs, df_insn_refs_collect): Likewise.
13990 (df_bb_regs_collect): Likewise.
13991 (df_entry_block_defs_collect): Likewise.
13992 (df_exit_block_uses_collect): Likewise.
13993 * df.h: Update declarations.
13994 * double-int.c (double_int_divmod): Add cast to enum type.
13995 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
13996 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
13997 (based_loc_descr): Likewise.
13998 (loc_descriptor_from_tree_1): Change first_op and second_op to
13999 enum dwarf_location_atom. Add cast to enum type.
14000 * expmed.c (init_expmed): Change 0 to SET in function call.
14001 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
14002 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
14003 (do_store_flag): Likewise.
14004 * fixed-value.h (struct fixed_value): Change mode to enum
14005 machine_mode.
14006 * function.c (assign_parms): Change 0 to VOIDmode in function call.
14007 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
14008 function call.
14009 (insert_insn_decl, insert_decl, insert_state): Likewise.
14010 (automata_list_finish): Likewise.
14011 * genrecog.c (process_define_predicate): Add cast to enum type.
14012 * gensupport.c (init_predicate_table): Add cast to enum type.
14013 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
14014 function call.
14015 (gimple_build_call_1, gimple_build_label): Likewise.
14016 (gimple_build_goto, gimple_build_asm_1): Likewise.
14017 (gimple_build_switch_1, gimple_build_cdt): Likewise.
14018 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
14019 (enum fallback): Rename from enum fallback_t.
14020 (fallback_t): Typedef as int.
14021 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
14022 GSI_SAME_STMT in function call.
14023 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
14024 enum type.
14025 (setup_reg_class_relations): Likewise.
14026 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
14027 (setup_prohibited_class_mode_regs): Add cast to enum type.
14028 (setup_prohibited_mode_move_regs): Likewise.
14029 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
14030 (record_address_regs): Change i to enum reg_class.
14031 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
14032 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
14033 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
14034 (GET_MODE_2XWIDER_MODE): Likewise.
14035 (GET_CLASS_NARROWEST_MODE): Likewise.
14036 * omp-low.c (expand_omp_for): Add cast to enum type.
14037 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
14038 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
14039 * postreload.c (reload_cse_simplify_operands): Change rclass local
14040 to enum reg_class.
14041 * predict.c (combine_predictions_for_insn): Change best_predictor
14042 and predictor to enum br_predictor.
14043 (combine_predictions_for_bb): Likewise.
14044 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
14045 use SET_PREDICT_EXPR_OUTCOME.
14046 * real.c (real_arithmetic): Change icode to code in function call.
14047 * reginfo.c (init_move_cost): Add casts to enum type.
14048 (init_reg_sets_1, init_fake_stack_mems): Likewise.
14049 * regmove.c (regclass_compatible_p): Change class0 and class1 to
14050 enum reg_class.
14051 * reload.c (find_valid_class): Add casts to enum type.
14052 (push_reload): Change 0 to NO_REGS in function call.
14053 (find_reloads): Change this_alternative to array of enum
14054 reg_class. Remove some now-unnecessary casts.
14055 (make_memloc): Change 0 to VOIDmode in function call.
14056 * reload1.c (reload): Change 0 to VOIDmode in function call.
14057 (eliminate_regs_1, elimination_effects): Likewise.
14058 (eliminate_regs_in_insn): Likewise.
14059 (emit_input_reload_insns): Add cast to enum type.
14060 (delete_output_reload): Change 0 to VOIDmode in function call.
14061 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
14062 to enum type in function call.
14063 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
14064 (SET_PREDICT_EXPR_OUTCOME): Define.
14065 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
14066 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
14067 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
14068 (dump_function): Likewise.
14069 * tree-dump.h: Update declarations.
14070 * tree-pass.h: Update declarations.
14071 * varasm.c (assemble_integer): Change mclass to enum mode_class.
14072 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
14073 enum type.
14074 (arm_rtx_costs_1): Correct parenthesization.
14075 (arm_rtx_costs): Add casts to enum type.
14076 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
14077 (vfp_emit_fstmd): Use add_rg_note.
14078 (emit_multi_reg_push, emit_sfm): Likewise.
14079 (thumb_set_frame_pointer): Likewise.
14080 (arm_expand_prologue): Likewise.
14081 (arm_regno_class): Change return type to enum reg_class.
14082 (thumb1_expand_prologue): Use add_reg_note.
14083 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
14084 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
14085 in function call.
14086 * config/arm/gentune.sh: Add cast to enum type.
14087 * config/arm/arm-tune.md: Rebuild.
14088 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
14089 (ix86_split_fp_branch, predict_jump): Likewise.
14090 (ix86_expand_multi_arg_builtin): Change sub_code from enum
14091 insn_code to enum rtx_code.
14092 (ix86_builtin_vectorized_function): Add cast to enum type.
14093 * config/i386/i386.md (truncdfsf2): Change slot to enum
14094 ix86_stack_slot.
14095 (truncxf<mode>2, isinf<mode>2): Likewise.
14096 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
14097 enum type.
14098 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
14099 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
14100 (insert_bundle_state): Change 1 to INSERT in function call.
14101 (ia64_add_bundle_selector_before): Likewise.
14102 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
14103 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
14104 (restore_stack_nonlocal): Likewise.
14105 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
14106 function call.
14107 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
14108 function call.
14109 (mips_rtx_costs): Likewise.
14110 (mips_override_options): Add casts to enum type.
14111 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
14112 in function call.
14113 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
14114 (store_reg, set_reg_plus_d): Likewise.
14115 (hppa_expand_prologue, hppa_profile_hook): Likewise.
14116 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
14117 cast to enum type.
14118 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
14119 function call.
14120 (emit_unlikely_jump): Use add_reg_note.
14121 (rs6000_emit_allocate_stack): Likewise.
14122 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
14123 (output_toc): Change 1 to INSERT in function call.
14124 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
14125 (rs6000_initialize_trampoline): Likewise.
14126 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
14127 function call.
14128 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
14129 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
14130 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
14131 (save_gprs): Use add_reg_note.
14132 (s390_emit_prologue): Likewise.
14133 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
14134 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
14135 (sparc_fold_builtin): Add cast to enum type.
14136 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
14137 enum insn_code.
14138 (spu_expand_prologue): Use add_reg_note.
14139 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
14140
14141 2009-04-20 Ian Lance Taylor <iant@google.com>
14142
14143 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
14144 (c_parser_postfix_expression_after_primary): Get VEC for list of
14145 arguments. Get original types of arguments. Call
14146 build_function_call_vec.
14147 (cached_expr_list_1, cached_expr_list_2): New static variables.
14148 (c_parser_expr_list): Change return type to VEC *. Add
14149 p_orig_types parameter. Change all callers.
14150 (c_parser_release_expr): New static function.
14151 (c_parser_vec_to_tree_list): New static function.
14152 * c-typeck.c (build_function_call): Rewrite to build a VEC and
14153 call build_function_call_vec.
14154 (build_function_call_vec): New function, based on old
14155 build_function_call.
14156 (convert_arguments): Remove nargs and argarray parameters. Change
14157 values to a VEC. Add origtypes parameter.
14158 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
14159 (convert_for_assignment): Add origtype parameter. Change all
14160 callers. If warn_cxx_compat, check for conversion to an enum
14161 type when calling a function.
14162 (store_init_value): Add origtype parameter. Change all callers.
14163 (digest_init): Likewise.
14164 (struct init_node): Add origtype field.
14165 (add_pending_init): Add origtype parameter. Change all callers.
14166 (output_init_element): Likewise.
14167 (output_pending_init_elements): Pass origtype from init_node to
14168 output_init_element.
14169 (process_init_element): Pass origtype from c_expr to
14170 output_init_element.
14171 (c_finish_return): Add origtype parameter. Change all callers.
14172 * c-common.c (sync_resolve_size): Change params to VEC *. Change
14173 caller.
14174 (sync_resolve_params): Likewise.
14175 (sync_resolve_return): Change params to first_param. Change caller.
14176 (resolve_overloaded_builtins): Change params to VEC *. Change
14177 callers. Save first parameter around call to build_function_call_vec.
14178 * c-decl.c (finish_decl): Add origtype parameter. Change all
14179 callers. Call build_function_call_vec rather than
14180 build_function_call for cleanup.
14181 * c-tree.h: Update declarations.
14182 * c-common.h: Update declarations.
14183 * stub-objc.c (objc_rewrite_function_call): Change parameter from
14184 params to first_param.
14185 * target.h (struct gcc_target): Change resolve_overloaded_builtin
14186 params parameter from tree to void *.
14187 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14188 Change arglist parameter to have type void *, and to be a pointer
14189 to a VEC.
14190 * config/rs6000/rs6000-protos.h
14191 (altivec_resolve_overloaded_builtin): Update declaration.
14192 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
14193 fnargs parameter to have type void *, and to be a pointer to a
14194 VEC. Call build_function_call_vec instead of
14195 build_function_call.
14196 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
14197
14198 2009-04-20 Joey Ye <joey.ye@intel.com>
14199 Xuepeng Guo <xuepeng.guo@intel.com>
14200 H.J. Lu <hongjiu.lu@intel.com>
14201
14202 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
14203
14204 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
14205 (IX86_LEA_PRIORITY): Likewise.
14206 (distance_non_agu_define): New function.
14207 (distance_agu_use): Likewise.
14208 (ix86_lea_for_add_ok): Likewise.
14209 (ix86_dep_by_shift_count): Likewise.
14210
14211 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
14212 should split for LEA.
14213
14214 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
14215 function.
14216 (ix86_dep_by_shift_count): Likewise.
14217
14218 2009-04-20 Richard Guenther <rguenther@suse.de>
14219
14220 * expr.c (handled_component_p): Move ...
14221 * tree.h (handled_component_p): ... here.
14222 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
14223 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
14224 and REALPART_EXPR to be in one group.
14225
14226 2009-04-20 Richard Guenther <rguenther@suse.de>
14227
14228 * basic-block.h (get_all_dominated_blocks): Declare.
14229 * dominance.c (get_all_dominated_blocks): New function.
14230 * tree-cfg.c (get_all_dominated_blocks): Remove.
14231 (remove_edge_and_dominated_blocks): Adjust.
14232 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
14233 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
14234 instead of recursing.
14235
14236 2009-04-20 Doug Kwan <dougkwan@google.com>
14237
14238 * cgraph.h (cgraph_node_ptr): New type for vector functions.
14239 (struct cgraph_node_set_def): New type.
14240 (cgraph_node_set) New type. Also declare vector functions.
14241 (struct cgraph_node_set_element_def): New type.
14242 (cgraph_node_set_element): Ditto.
14243 (cgraph_node_set_iterator): New iterator type.
14244 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
14245 cgraph_node_set_remove, dump_cgraph_node_set,
14246 debug_cgraph_node_set): New prototypes.
14247 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
14248 cgraph_node_set_size): New inlines.
14249 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
14250 including cgraph.h.
14251 (struct ipa_opt_pass): Add struct cgraph_node_set_def
14252 argument to function 'write_summary'.
14253 * ipa.c: Include ggc.h.
14254 (hash_cgraph_node_set_element,
14255 eq_cgraph_node_set_element, cgraph_node_set_new,
14256 cgraph_node_set_add, cgraph_node_set_remove,
14257 cgraph_node_set_find, dump_cgraph_node_set,
14258 debug_cgraph_node_set): New functions.
14259 * Makefile.in (ipa.o): Add dependency on GGC_H.
14260
14261 2009-04-20 Ira Rosen <irar@il.ibm.com>
14262
14263 PR tree-optimization/39675
14264 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
14265 check of the return code of vect_schedule_slp. Check that
14266 stmt_vec_info still exists for the statement, before checking its
14267 vectorization type.
14268
14269 2009-04-20 Michael Matz <matz@suse.de>
14270
14271 * Makefile.in (generated_files): Take out $(simple_generated_c).
14272
14273 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
14274
14275 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
14276 (UINTPTR_TYPE): Likewise.
14277
14278 2009-04-19 Joseph Myers <joseph@codesourcery.com>
14279
14280 PR c/37481
14281 * c-typeck.c (digest_init): Check for initializing an array with a
14282 string literal.
14283
14284 2009-04-19 Joseph Myers <joseph@codesourcery.com>
14285
14286 PR c/19771
14287 * c-semantics.c (pop_stmt_list): Propagate
14288 STATEMENT_LIST_HAS_LABEL to parent statement list.
14289
14290 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
14291
14292 * config/mips/mips.h (mips_tune_attr): New macro.
14293 * config/mips/mips.md (cpu): Use it.
14294
14295 2009-04-19 Joseph Myers <joseph@codesourcery.com>
14296
14297 PR c/38243
14298 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
14299 declaring a tag.
14300
14301 2009-04-19 Diego Novillo <dnovillo@google.com>
14302
14303 * toplev.c (compile_file): Move call to coverage_finish ...
14304 * cgraphunit.c (ipa_passes): ... here.
14305 Call cgraph_process_new_functions.
14306 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
14307 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
14308
14309 2009-04-19 Jan Hubicka <jh@suse.cz>
14310
14311 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
14312 cfun.
14313 (dump_cgraph_node): Dump can throw external flag.
14314 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
14315
14316 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
14317
14318 PR c/32061
14319 PR c++/36954
14320 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
14321 * common.opt (Wlogical-op): Move from here...
14322 * c.opt (Wlogical-op): ... to here.
14323 * c-typeck.c (parser_build_binary_op): Update call to
14324 warn_logical_operator.
14325 * c-opts.c (c_common_post_options): Enable warn_logical_op with
14326 extra_warnings.
14327 * c-common.c (warn_logical_op): Update.
14328 * c-common.h (warn_logical_op): Update declaration.
14329
14330 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
14331
14332 * tree.c (protected_set_expr_location): Fix formatting.
14333
14334 2009-04-18 Joseph Myers <joseph@codesourcery.com>
14335
14336 PR c/27676
14337 * c-typeck.c (readonly_warning): new.
14338 (build_unary_op, build_modify_expr): Use readonly_warning for
14339 storing into something readonly but not const-qualified.
14340
14341 2009-04-18 Joseph Myers <joseph@codesourcery.com>
14342
14343 PR c/22367
14344 * c-typeck.c (build_unary_op): Check for taking address of
14345 expression of type void.
14346
14347 2009-04-18 Joseph Myers <joseph@codesourcery.com>
14348
14349 PR c/35210
14350 * c-typeck.c (build_function_call): Check for calling a function
14351 with qualified void return types. Call require_complete_type when
14352 generating a trap.
14353
14354 2009-04-18 Jan Hubicka <jh@suse.cz>
14355
14356 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
14357 Set nothrow flag.
14358 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
14359 can_throw_external flag.
14360 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
14361 * ipa-pure-const.c (ignore_edge): New function.
14362 (propagate): Compute order for NOTHROW computation; set NOTHROWs
14363 only over can_throw_external edges.
14364 (local_pure_const): Add nothrow flag.
14365 * ipa-utils.c (searchc): Add ignore_edge callback.
14366 (ipa_utils_reduced_inorder): Add ignore_edge callback.
14367 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
14368 (set_nothrow_function_flags): Update cgraph.
14369 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
14370
14371 2009-04-18 Richard Guenther <rguenther@suse.de>
14372
14373 PR middle-end/39804
14374 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
14375 (fold_stmt): ... this and ...
14376 (fold_stmt_inplace): ... this.
14377 (fold_stmt_1): Fold references in calls and asms.
14378 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
14379
14380 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
14381
14382 * tree-vrp.c (ssa_name_nonzero_p): Remove.
14383 * tree.h: Remove the prototype for ssa_name_nonzero_p.
14384
14385 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
14386
14387 * tree.c (function_args_count): Remove.
14388 * tree.h: Remove the prototype for function_args_count.
14389
14390 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
14391
14392 * tree-iterator.c (expr_only): Remove.
14393 * tree.h: Remove the prototype for expr_only.
14394
14395 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
14396
14397 * reginfo.c (cannot_change_mode_set_regs): Remove.
14398 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
14399
14400 2009-04-08 Anatoly Sokolov <aesok@post.ru>
14401
14402 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
14403 whether operands 0 and 1 overlaps.
14404
14405 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
14406
14407 PR middle-end/36902
14408 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
14409 pointer. Use warning_at instead of warning.
14410 (search_for_addr_array): Likewise.
14411 (check_array_bounds): Likewise.
14412 (check_all_array_refs): Check that the incoming edge is not in the
14413 list of edges to be removed.
14414 (check_all_array_refs): Avoid the temporal pointer.
14415 (vrp_visit_cond_stmt): Fix typo.
14416 (simplify_switch_using_ranges): Handle the case where the switch
14417 index is an integer constant.
14418
14419 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
14420
14421 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
14422
14423 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
14424
14425 * doc/extend.texi, doc/invoke.texi: Fix typos.
14426
14427 2009-04-17 Cary Coutant <ccoutant@google.com>
14428
14429 * tree-flow-inline.h (get_lineno): Fix inverted test.
14430
14431 2009-04-17 Diego Novillo <dnovillo@google.com>
14432
14433 * tree-ssa-pre.c (create_expression_by_pieces): Remove
14434 assertion for AVAIL_OUT.
14435
14436 2009-04-17 Mike Frysinger <vapier@gentoo.org>
14437
14438 PR target/38627
14439 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
14440 * config/sh/linux-atomic.asm: Likewise.
14441
14442 2009-04-17 Diego Novillo <dnovillo@google.com>
14443
14444 * except.c (debug_eh_tree): New.
14445 (struct eh_region, struct eh_status): Move ...
14446 * except.h: ... here.
14447 (add_type_for_runtime): Declare extern.
14448 (lookup_type_for_runtime): Likewise.
14449 (debug_eh_tree): Declare.
14450 * Makefile.in (GTFILES): List except.h before except.c
14451
14452 2009-04-17 Diego Novillo <dnovillo@google.com>
14453
14454 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
14455 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14456 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
14457 (find_vars_r): ... here.
14458 * tree-flow.h (find_referenced_vars_in): Declare.
14459 * tree-ssa-pre.c (create_expression_by_pieces): Assert
14460 that AVAIL_OUT exists for BLOCK.
14461 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
14462 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
14463 (tree-parloops.o): Likewise.
14464
14465 2009-04-17 Simon Baldwin <simonb@google.com>
14466
14467 * toplev.c (default_tree_printer): Add handling for %E format.
14468
14469 2009-04-17 Diego Novillo <dnovillo@google.com>
14470
14471 * tree-pretty-print.c (dump_generic_node): Add break after
14472 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
14473 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
14474 FUNCTION_TYPE together. Call print_struct_decl when printing
14475 structures and TDF_SLIM is not given.
14476 (print_struct_decl): Fix logic for detecting recursion.
14477
14478 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
14479
14480 PR 31567
14481 * gcc.c (create_at_file): New.
14482 (compile_input_file_p): New.
14483 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
14484 * main.c (main): Update call to toplev_main.
14485 * toplev.c (toplev_main): Change signature. Call expandargv.
14486 * toplev.h (toplev_main): Change signature.
14487
14488 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
14489
14490 * dwarf2out.c (field_byte_offset): Use the type size as the field size
14491 if the latter is not constant.
14492
14493 2009-04-17 David Edelsohn <edelsohn@gnu.org>
14494
14495 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
14496
14497 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
14498
14499 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
14500 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
14501
14502 2009-04-17 Richard Guenther <rguenther@suse.de>
14503
14504 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14505 Handle component references view-converting an invariant address.
14506
14507 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
14508
14509 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
14510 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
14511 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
14512 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
14513 Use @deftypevr rather than @deftypevar.
14514
14515 2009-04-17 Richard Guenther <rguenther@suse.de>
14516
14517 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
14518 (get_prop_source_stmt): Likewise.
14519 (can_propagate_from): Likewise.
14520
14521 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
14522
14523 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
14524 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
14525 (--with-multilib-list): Add default value.
14526 * configure: Regenerate.
14527 * Makefile.in (TM_ENDIAN_CONFIG): Define.
14528 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
14529 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
14530 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
14531 Don't add default cpu to multilib list unnecessarily, but do enable
14532 the relevant compiler option..
14533 Add support for --with-multilib-list=<blank> and
14534 --with-multilib-list=!<somelib> to supress unwanted multilibs.
14535 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
14536 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
14537 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
14538 TM_MULTILIB_CONFIG.
14539 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
14540 (MULTILIB_OSDIRNAMES): New variable.
14541 * config/sh/t-1e: Delete file.
14542 * config/sh/t-mlib-sh1: Delete file.
14543 * config/sh/t-mlib-sh2: Delete file.
14544 * config/sh/t-mlib-sh2a: Delete file.
14545 * config/sh/t-mlib-sh2a-nofpu: Delete file.
14546 * config/sh/t-mlib-sh2a-single: Delete file.
14547 * config/sh/t-mlib-sh2a-single-only: Delete file.
14548 * config/sh/t-mlib-sh2e: Delete file.
14549 * config/sh/t-mlib-sh3e: Delete file.
14550 * config/sh/t-mlib-sh4: Delete file.
14551 * config/sh/t-mlib-sh4-nofpu: Delete file.
14552 * config/sh/t-mlib-sh4-single: Delete file.
14553 * config/sh/t-mlib-sh4-single-only: Delete file.
14554 * config/sh/t-mlib-sh4a: Delete file.
14555 * config/sh/t-mlib-sh4a-nofpu: Delete file.
14556 * config/sh/t-mlib-sh4a-single: Delete file.
14557 * config/sh/t-mlib-sh4a-single-only: Delete file.
14558 * config/sh/t-mlib-sh4al: Delete file.
14559 * config/sh/t-mlib-sh5-32media: Delete file.
14560 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
14561 * config/sh/t-mlib-sh5-64media: Delete file.
14562 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
14563 * config/sh/t-mlib-sh5-compact: Delete file.
14564 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
14565 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
14566 * doc/install.texi (Options specification): Add
14567 --with-multilib-list and --with-endian.
14568
14569 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
14570
14571 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
14572 REVISION_c.
14573 (OBJS-common): Add plugin-version.o.
14574 (plugin-version.o): New.
14575 * gcc-plugin.h (plugin_gcc_version): New.
14576 (plugin_default_version_check): New.
14577 (plugin_init_func, plugin_init): Add version argument.
14578 * plugin-version.c: New.
14579 * plugin.c (str_plugin_gcc_version_name): New.
14580 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
14581 pass it to the init function.
14582 (plugin_default_version_check): New.
14583
14584 2009-04-17 Richard Guenther <rguenther@suse.de>
14585
14586 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
14587 for decl-vs-decl disambiguation.
14588
14589 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14590
14591 * config/s390/s390.h (s390_tune_attr): New macro definition.
14592 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
14593
14594 2009-04-17 Richard Guenther <rguenther@suse.de>
14595
14596 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
14597 (fold_stmt_r): Likewise.
14598 (maybe_fold_reference): New function.
14599 (fold_gimple_assign): Handle cases fold_stmt_r did.
14600 (fold_stmt): Do not use fold_stmt_r.
14601 (fold_stmt_inplace): Likewise.
14602
14603 2009-04-17 Richard Guenther <rguenther@suse.de>
14604
14605 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
14606 (record_equivalences_from_stmt): Remove useless checks and
14607 simplifications.
14608 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
14609 the type is already suitable.
14610
14611 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
14612
14613 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
14614
14615 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
14616
14617 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
14618 (CMPtype): Define as __gcc_CMPtype.
14619
14620 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
14621
14622 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
14623 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
14624
14625 2009-04-17 Richard Guenther <rguenther@suse.de>
14626
14627 PR tree-optimization/39746
14628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
14629 special-casing for builtins and static variable use/def.
14630 (call_may_clobber_ref_p_1): Likewise.
14631
14632 2009-04-16 Ian Lance Taylor <iant@google.com>
14633
14634 * df.h: Include "timevar.h".
14635 (struct df_problem): Change tv_id field to timevar_id_t.
14636 * tree-pass.h: Include "timevar.h".
14637 (struct opt_pass): Change tv_id field to timevar_id_t.
14638 * timevar.h (timevar_id_t): Define TV_NONE.
14639 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
14640 TV_NONE rather than tv_id != 0.
14641 (execute_one_pass): Likewise.
14642 * Makefile.in (DF_H): Add $(TIMEVAR_H).
14643 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
14644 dependencies to $(TREE_PASS_H).
14645 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
14646 to TV_NONE.
14647 (pass_branch_target_load_optimize2): Likewise.
14648 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
14649 (pass_outof_cfg_layout_mode): Likewise.
14650 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
14651 (pass_rebuild_cgraph_edges): Likewise.
14652 (pass_remove_cgraph_callee_edges): Likewise.
14653 * df-core.c (pass_df_initialize_opt): Likewise.
14654 (pass_df_initialize_no_opt): Likewise.
14655 (pass_df_finish): Likewise.
14656 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
14657 * except.c (pass_set_nothrow_function_flags): Likewise.
14658 (pass_convert_to_eh_region_ranges): Likewise.
14659 * final.c (pass_compute_alignments): Likewise.
14660 * function.c (pass_instantiate_virtual_regs): Likewise.
14661 (pass_init_function): Likewise.
14662 (pass_leaf_regs): Likewise.
14663 (pass_match_asm_constraints): Likewise.
14664 * gimple-low.c (pass_lower_cf): Likewise.
14665 (pass_mark_used_blocks): Likewise.
14666 * init-regs.c (pass_initialize_regs): Likewise.
14667 * integrate.c (pass_initial_value_sets): Likewise.
14668 * ira.c (pass_ira): Likewise.
14669 * jump.c (pass_cleanup_barriers): Likewise.
14670 * omp-low.c (pass_expand_omp): Likewise.
14671 (pass_lower_omp): Likewise.
14672 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
14673 * recog.c (pass_split_all_insns): Likewise.
14674 (pass_split_after_reload): Likewise.
14675 (pass_split_before_regstack): Likewise.
14676 (pass_split_before_sched2): Likewise.
14677 (pass_split_for_shorten_branches): Likewise.
14678 * reginfo.c (pass_reginfo_init): Likewise.
14679 (pass_subregs_of_mode_init): Likewise.
14680 (pass_subregs_of_mode_finish): Likewise.
14681 * passes.c (pass_postreload): Likewise.
14682 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
14683 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
14684 (pass_warn_function_return): Likewise.
14685 (pass_warn_function_noreturn): Likewise.
14686 * tree-complex.c (pass_lower_complex): Likewise.
14687 (pass_lower_complex_O0): Likewise.
14688 * tree-if-conv.c (pass_if_conversion): Likewise.
14689 * tree-into-ssa.c (pass_build_ssa): Likewise.
14690 * tree-mudflap.c (pass_mudflap_1): Likewise.
14691 (pass_mudflap_2): Likewise.
14692 * tree-nomudflap.c (pass_mudflap_1): Likewise.
14693 (pass_mudflap_2): Likewise.
14694 * tree-nrv.c (pass_return_slot): Likewise.
14695 * tree-object-size.c (pass_object_sizes): Likewise.
14696 * tree-optimize.c (pass_all_optimizations): Likewise.
14697 (pass_early_local_passes): Likewise.
14698 (pass_all_early_optimizations): Likewise.
14699 (pass_cleanup_cfg): Likewise.
14700 (pass_cleanup_cfg_post_optimizing): Likewise.
14701 (pass_free_datastructures): Likewise.
14702 (pass_free_cfg_annotations): Likewise.
14703 (pass_fixup_cfg): Likewise.
14704 (pass_init_datastructures): Likewise.
14705 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
14706 (pass_late_warn_uninitialized): Likewise.
14707 (pass_update_address_taken): Likewise.
14708 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
14709 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
14710 (pass_cse_sincos): Likewise.
14711 (pass_convert_to_rsqrt): Likewise.
14712 * tree-ssa-structalias.c (pass_build_alias): Likewise.
14713 * tree-stdarg.c (pass_stdarg): Likewise.
14714 * tree-tailcall.c (pass_tail_recursion): Likewise.
14715 (pass_tail_calls): Likewise.
14716 * tree-vect-generic.c (pass_lower_vector): Likewise.
14717 (pass_lower_vector_ssa): Likewise.
14718 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
14719
14720 2009-04-16 Joseph Myers <joseph@codesourcery.com>
14721
14722 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
14723 XLR entry.
14724 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
14725 Handle -march=xlr.
14726 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
14727 logical and signext.
14728
14729 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
14730
14731 PR target/39767
14732 * config/sh/predicates.md (arith_operand): Check if the operand
14733 of TRUNCATE is a REG.
14734
14735 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14736
14737 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
14738 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
14739
14740 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14741
14742 * tree-iterator.c (tsi_split_statement_list_after,
14743 tsi_split_statement_list_before): Remove.
14744 * tree-iterator.h: Remove the prototypes for
14745 tsi_split_statement_list_after and tsi_split_statement_list_before.
14746
14747 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14748
14749 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
14750 * tree-ssa-propagate.h: Remove the prototype for
14751 stmt_makes_single_load.
14752
14753 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14754
14755 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
14756 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
14757
14758 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14759
14760 * tree-iterator.c (EXPR_LAST_BODY): Remove.
14761
14762 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14763
14764 * except.c (eh_region_outer_p): Remove.
14765 * except.h: Remove the prototype for eh_region_outer_p.
14766
14767 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
14768
14769 * function.c (current_function_assembler_name): Remove.
14770 * function.h: Remove the prototype for
14771 current_function_assembler_name.
14772
14773 2009-04-16 Ian Lance Taylor <iant@google.com>
14774
14775 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
14776 (add_reg_note): Call alloc_reg_note.
14777 * rtl.h (alloc_reg_note): Declare.
14778 * combine.c (try_combine): Use alloc_reg_note.
14779 (recog_for_combine, move_deaths): Likewise.
14780 (distribute_notes): Use alloc_reg_note and add_reg_note.
14781 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
14782 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
14783 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
14784
14785 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
14786
14787 PR rtl-optimization/39762
14788 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
14789 ira_may_move_out_cost): Add comments about way of their usage.
14790 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
14791
14792 * ira-conflicts.c (process_regs_for_copy): Use function
14793 ira_get_register_move_cost instead of global
14794 ira_register_move_cost.
14795
14796 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
14797 color_pass, move_spill_restore, update_curr_costs): Ditto.
14798
14799 * ira-lives.c (process_single_reg_class_operands): Ditto.
14800
14801 * ira-emit.c (emit_move_list): Ditto.
14802
14803 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
14804 (record_reg_classes): Ditto. Use functions
14805 ira_get_register_move_cost and ira_get_may_move_cost instead of
14806 global vars ira_register_move_cost, ira_may_move_out_cost and
14807 ira_may_move_in_cost.
14808 (record_address_regs): Don't call ira_init_register_move_cost.
14809 Use function ira_get_may_move_cost instead of global
14810 ira_may_move_in_cost.
14811 (process_bb_node_for_hard_reg_moves): Use function
14812 ira_get_register_move_cost instead of global ira_register_move_cost.
14813 (ira_costs): Don't call ira_init_register_move_cost.
14814
14815 2009-04-16 Richard Guenther <rguenther@suse.de>
14816
14817 * tree-cfg.c (verify_gimple_assign_binary):
14818 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
14819 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
14820 (create_general_new_stmt): Note that this function is broken.
14821
14822 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
14823
14824 * common.opt (fhelp): Add Var(help_flag).
14825 * gcc-plugin.h (plugin_info): Add help.
14826 * plugin.c (plugin_name_args): Add help.
14827 (register_plugin_info): Set plugin->help.
14828 (print_help_one_plugin): New.
14829 (print_plugins_help): New.
14830 * plugin.h (print_plugins_help): New.
14831 * toplev.c (toplev_main): Call print_plugins_help if needed.
14832
14833 2009-04-16 Richard Guenther <rguenther@suse.de>
14834
14835 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
14836 (gimple_ior_addresses_taken_1): New function.
14837 (gimple_ior_addresses_taken): Likewise.
14838 * gimple.h (struct gimple_statement_with_ops_base): Remove
14839 addresses_taken member.
14840 (gimple_ior_addresses_taken): Declare.
14841 (gimple_addresses_taken, gimple_addresses_taken_ptr,
14842 gimple_set_addresses_taken): Remove.
14843 * ipa-reference.c (mark_address): New function.
14844 (scan_stmt_for_static_refs): Use it for marking addresses taken.
14845 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
14846 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
14847 (gimple_add_to_addresses_taken): Remove.
14848 (get_tmr_operands): Call mark_address_taken.
14849 (get_asm_expr_operands): Likewise.
14850 (get_expr_operands): Likewise.
14851 (build_ssa_operands): Do not clear the addresses_taken bitmap.
14852 (free_stmt_operands): Do not free it.
14853 * tree-ssa.c (delete_tree_ssa): Likewise.
14854 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
14855
14856 2009-04-16 Richard Guenther <rguenther@suse.de>
14857
14858 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
14859 (walk_stmt_load_store_ops): Likewise.
14860 * gimple.c (get_base_loadstore): New function.
14861 (walk_stmt_load_store_addr_ops): Likewise.
14862 (walk_stmt_load_store_ops): Likewise.
14863 * ipa-pure-const.c (check_op): Simplify.
14864 (check_load, check_store): New functions.
14865 (check_stmt): Use walk_stmt_load_store_ops.
14866 * ipa-reference.c (mark_load): Adjust signature.
14867 (mark_store): Likewise.
14868 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
14869
14870 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
14871
14872 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
14873 (plugin_info): New.
14874 * opts.c (common_handle_option): Don't call print_version.
14875 * plugin.c (plugin_name_args): Add version.
14876 (register_plugin_info): New.
14877 (register_callback): Handle PLUGIN_INFO.
14878 (try_init_one_plugin): New.
14879 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
14880 if failed to init.
14881 (finalize_one_plugin): New.
14882 (finalize_plugins): New.
14883 (print_one_plugin): New.
14884 (print_plugins_versions): New.
14885 * plugin.h (print_plugins_versions): New.
14886 (finalize_plugins): New.
14887 * toplev.c (compile_file): Don't call initialize_plugins.
14888 (print_version): Call print_plugins_versions.
14889 (toplev_main): Call initialize_plugins. Print version if needed.
14890 Call finalize_plugins.
14891
14892 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
14893
14894 * common.opt (fversion): New.
14895 * gcc.c (print_version): New.
14896 (process_command): Don't print the version. Just set print_version.
14897 (main): Print version. Call subprocesses if print_version and
14898 verbose_flag are set.
14899 * opts.c (common_handle_option): Handle OPT_fversion.
14900
14901 2009-04-16 Richard Guenther <rguenther@suse.de>
14902 Ira Rosen <irar@il.ibm.com>
14903
14904 PR tree-optimization/39698
14905 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
14906 type of the reduction variable. Only generate the def if
14907 it is needed.
14908
14909 * omp-low.c (expand_omp_for_generic): When converting to a pointer
14910 make sure to first convert to an integer of the same precision.
14911 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
14912 the type of the evolution correctly in computing the new
14913 induction variable base.
14914
14915 2009-04-16 Richard Guenther <rguenther@suse.de>
14916
14917 PR middle-end/39625
14918 * tree-cfg.c (make_blocks): Split statements with to-be
14919 abnormal SSA names on the lhs.
14920
14921 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
14922
14923 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
14924 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
14925 * c-typeck.c (really_start_incremental_init): Likewise.
14926 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
14927 (TARGET_INITIALIZER): Remove it.
14928 * target.h (struct target): Remove vector_opaque_p.
14929 * tree.c (build_opaque_vector_type): New.
14930 * tree.h (TYPE_VECTOR_OPAQUE): New.
14931 (build_opaque_vector_type): Declare.
14932 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
14933 * config/rs6000/rs6000.c (build_opaque_vector_type,
14934 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
14935 (rs6000_init_builtins): Use build_opaque_vector_type for
14936 opaque_V4SI_type_node.
14937
14938 2009-04-15 Catherine Moore <clm@codesourcery.com>
14939
14940 * debug.h (set_name): Declare.
14941 * dwarf2out.c (dwarf2out_set_name): Declare.
14942 (dwarf2_debug_hooks): Add set_name.
14943 (find_AT_string): New.
14944 (add_AT_string): Call find_AT_string.
14945 (dwarf2out_set_name): New.
14946 * cp/decl.c (grokdeclarator): Call set_name.
14947 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
14948 * debug.c (do_nothing_debug_hooks): Likewise.
14949 * dbxout.c (dbx_debug_hooks): Likewise.
14950 * sdbout.c (sdb_debug_hooks): Likewise.
14951
14952 2009-04-15 Michael Eager <eager@eagercon.com>
14953
14954 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
14955 reg for single-precision FPU.
14956 * config/rs6000/rs6000.md (movsi_internal1): Only for
14957 !TARGET_SINGLE_FPU.
14958 (movsi_internal1_single): New. Add pattern to move SI values to/from
14959 single-precision FP regs.
14960
14961 2009-04-15 Richard Guenther <rguenther@suse.de>
14962
14963 * omp-low.c (lower_rec_input_clauses): Build correct address
14964 expressions.
14965 (expand_omp_for_generic): Fix multiplication type.
14966 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
14967 (generate_memset_zero): Fix types.
14968 * tree-profile.c (prepare_instrumented_value): Correctly
14969 widen a pointer.
14970
14971 2009-04-15 Ian Lance Taylor <iant@google.com>
14972
14973 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
14974 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
14975 for -Wall and for -Wc++-compat.
14976 (c_common_post_options): For C++, set warn_enum_compare if not
14977 already set.
14978 * c-tree.h (struct c_expr): Add field original_type.
14979 (build_external_ref): Update declaration.
14980 * c-parser.c (c_parser_braced_init): Set original_type.
14981 (c_parser_initelt): Likewise.
14982 (c_parser_expr_no_commas): Likewise.
14983 (c_parser_conditional_expression): Likewise.
14984 (c_parser_cast_expression): Likewise.
14985 (c_parser_unary_expression): Likewise. Pull setting of
14986 original_code to top of function.
14987 (c_parser_sizeof_expression): Set original_type.
14988 (c_parser_alignof_expression): Likewise.
14989 (c_parser_postfix_expression): Likewise. Pull setting of
14990 original_code to top of function.
14991 (c_parser_postfix_expression_after_paren_type): Set original_type.
14992 (c_parser_postfix_expression_after_primary): Likewise.
14993 (c_parser_expression): Likewise.
14994 * c-typeck.c (build_external_ref): Add type parameter. Change all
14995 callers.
14996 (c_expr_sizeof_expr): Set original_type field.
14997 (parser_build_unary_op): Likewise.
14998 (parser_build_binary_op): Likewise. Optionally warn about
14999 comparisons of enums of different types.
15000 (digest_init): Set original_type field.
15001 (really_start_incremental_init): Likewise.
15002 (push_init_level, pop_init_level): Likewise.
15003 * doc/invoke.texi (Warning Options): -Wenum-compare now
15004 supported in C.
15005
15006 2009-04-15 Richard Guenther <rguenther@suse.de>
15007
15008 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
15009 out a necessary conversion.
15010 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
15011 names we didn't value number.
15012 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
15013
15014 2009-04-15 Richard Guenther <rguenther@suse.de>
15015
15016 PR tree-optimization/39764
15017 * tree-ssa-ccp.c (get_value): Canonicalize value with
15018 canonicalize_float_value.
15019
15020 2009-04-15 Jan Hubicka <jh@suse.cz>
15021
15022 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
15023 Wrong version of patch.
15024
15025 2009-04-15 Jan Hubicka <jh@suse.cz>
15026
15027 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
15028
15029 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
15030
15031 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
15032 our distinct integral and vector types.
15033
15034 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
15035
15036 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
15037 * init.c (build_vtbl_address): Remove call to assemble_external.
15038
15039 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
15040
15041 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
15042 output for other floating point modes.
15043
15044 2009-04-14 Diego Novillo <dnovillo@google.com>
15045
15046 * diagnostic.c (diagnostic_report_diagnostic): Do not
15047 warn about loaded plugins for DK_ERROR and DK_WARNING.
15048 * c-decl.c (declspecs_add_type): Move call to
15049 invoke_plugin_callbacks ...
15050 * c-parser.c (c_parser_declspecs): ... here.
15051 * plugin.c (dump_active_plugins): Tidy output.
15052
15053 2009-04-14 Diego Novillo <dnovillo@google.com>
15054 Le-Chun Wu <lcwu@google.com>
15055
15056 * configure.ac: Add --enable-plugin support.
15057 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
15058 * Makefile.in (PLUGIN_H): Define.
15059 Export ENABLE_PLUGIN and GMPINC to site.exp.
15060 Add PLUGINLIBS to link command.
15061 Add/modify dependencies for plugin.o and files including plugin.h.
15062 (plugin.o): New.
15063 * config.in: Regenerate.
15064
15065 * opts.c (common_handle_option): Handle OPT_fplugin_ and
15066 OPT_fplugin_arg_.
15067
15068 2009-04-14 Le-Chun Wu <lcwu@google.com>
15069
15070 * tree-pass.h (register_one_dump_file): Add a prototype for
15071 register_one_dump_file.
15072 * toplev.c (compile_file): Call initialize_plugins.
15073 (do_compile): Call invoke_plugin_callbacks.
15074 (toplev_main): Call invoke_plugin_callbacks.
15075 * common.opt: Add -fplugin= and -fplugin-arg-.
15076 * gcc-plugin.h: New public header file for plugins to include.
15077 * plugin.c: New source file.
15078 * plugin.h: New internal header file.
15079 * passes.c (register_one_dump_file): Make it external.
15080
15081 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
15082
15083 2009-04-14 Diego Novillo <dnovillo@google.com>
15084
15085 * doc/plugins.texi: New.
15086 * doc/gccint.texi: Add reference to Plugins chapter.
15087 * doc/invoke.texi: Document -fplugin and -fplugin-arg
15088 * diagnostic.c (diagnostic_report_diagnostic): Warn about
15089 loaded plugins, if any.
15090 * timevar.def (TV_PLUGIN_INIT): Define.
15091 (TV_PLUGIN_RUN): Define.
15092 * plugin.c: Include timevar.h
15093 (plugins_active_p): New.
15094 (dump_active_plugins): New.
15095 (debug_active_plugins): New.
15096
15097 2009-04-14 Joseph Myers <joseph@codesourcery.com>
15098
15099 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
15100 library paths.
15101 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
15102
15103 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
15104
15105 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
15106 the same as a minus without a shift.
15107
15108 2009-04-14 Nick Clifton <nickc@redhat.com>
15109
15110 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
15111 comparisons with small integers will always produce a short
15112 branch.
15113
15114 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
15115
15116 Merge:
15117 2008-12-19 Diego Novillo <dnovillo@google.com>
15118
15119 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
15120
15121 2009-04-14 Richard Guenther <rguenther@suse.de>
15122
15123 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
15124 verification.
15125 (verify_gimple_assign_binary): Likewise. Handle shifts and
15126 rotates correctly.
15127 (verify_gimple_phi): Print the mismatched argument position.
15128 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
15129 Fix types.
15130 (vect_update_init_of_dr): Likewise.
15131 * matrix-reorg.c (transform_access_sites): Do what the
15132 comment suggests.
15133 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
15134
15135 2009-04-13 Michael Eager <eager@eagercon.com>
15136
15137 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
15138 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
15139 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
15140 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
15141 remove duplicate config
15142
15143 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
15144
15145 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
15146 file_name:line_number type locator of the call site.
15147
15148 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
15149
15150 * genautomata.c: Put blank after comma.
15151 (automaton_decls): New.
15152 (struct unit_usage): Add comments to member next.
15153 (store_alt_unit_usage): Keep the list ordered.
15154 (unit_present_on_list_p, equal_alternatives_p): New.
15155 (check_regexp_units_distribution): Check units distribution
15156 correctness correctly.
15157 (main): Don't write automata if error is found. Return correct
15158 exit code.
15159
15160 * config/m68k/cf.md (cfv4_ds): Remove.
15161 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
15162 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
15163
15164 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
15165 power4-load-ext, power4-store, power4-store-update,
15166 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
15167 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
15168 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
15169 power4-sqrt, power4-isync): Modify reservation to make correct
15170 unit distribution to automata.
15171
15172 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
15173 power5-store-update, power5-two, power5-three, power5-lmul,
15174 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
15175
15176 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
15177
15178 * except.c (pass_set_nothrow_function_flags): Set name and add
15179 TODO_dump_func.
15180 (set_nothrow_function_flags): Mention in the dump file when
15181 changing a function to nothrow.
15182
15183 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
15184
15185 PR/39066
15186 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
15187 instead of unsigned long.
15188
15189 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15190
15191 * config/arm/arm.c (return_used_this_function): Remove.
15192 (arm_output_function_prologue): Remove use of
15193 return_used_this_function.
15194 (output_return_instruction): Replace use of
15195 return_used_this_function
15196 by cfun->machine->return_used_this_function.
15197 (arm_output_epilogue): Likewise.
15198 (arm_output_function_epilogue): Likewise.
15199 (thumb_unexpanded_epilogue): Likewise.
15200 * config/arm/arm.h (struct machine_function):
15201 New member return_used_this_function.
15202
15203 2009-04-12 Mark Mitchell <mark@codesourcery.com>
15204
15205 * doc/install.texi: Correct description of default directory for
15206 --with-gxx-include-dir.
15207
15208 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
15209
15210 * fold-const.c (build_range_check): Properly deal with enumeral and
15211 boolean base types.
15212
15213 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
15214
15215 * doc/invoke.texi (max_gcse_passes): Remove documentation.
15216 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
15217 * params.h (MAX_GCSE_PASSES): Remove.
15218 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
15219 in sequence. Remove ability to run multiple passes.
15220 (bypass_jumps): Report run as third CPROP pass.
15221
15222 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
15223
15224 PR middle-end/39651
15225 * except.c (can_throw_external): Look at each insn in a SEQUENCE
15226 when deciding whether the whole SEQUENCE can throw.
15227
15228 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
15229
15230 PR target/39740
15231 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
15232 offseted label references.
15233
15234 2009-04-11 Jan Hubicka <jh@suse.cz>
15235
15236 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
15237
15238 2009-04-11 Richard Guenther <rguenther@suse.de>
15239
15240 PR middle-end/39732
15241 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
15242 return variables as TREE_ADDRESSABLE.
15243
15244 2009-04-11 Richard Guenther <rguenther@suse.de>
15245
15246 PR tree-optimization/39713
15247 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
15248 reference trees have SSA_NAME operands.
15249
15250 2009-04-11 Richard Guenther <rguenther@suse.de>
15251
15252 PR c/39712
15253 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
15254 address expressions.
15255
15256 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
15257
15258 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
15259 match changes in Cygwin 1.7
15260 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
15261 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
15262
15263 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
15264
15265 PR tree-optimization/39701
15266 * doc/invoke.texi (Optimization Options): Document change in
15267 meaning and initialization of -fdelete-null-pointer-checks.
15268
15269 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
15270
15271 PR middle-end/39701
15272 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
15273
15274 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
15275 here.
15276
15277 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
15278
15279 2009-04-10 Chao-ying Fu <fu@mips.com>
15280
15281 * doc/tm.texi (Instruction Output): Document
15282 TARGET_ASM_FINAL_POSTSCAN_INSN.
15283 * target.h (final_postscan_insn): New field in asm_out.
15284 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
15285 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
15286 * final.c (final_scan_insn): Call
15287 targetm.asm_out.final_postscan_insn after outputting
15288 an asm macro and a normal instruction.
15289
15290 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
15291 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
15292 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
15293 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
15294 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
15295
15296 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
15297
15298 PR middle-end/39701
15299 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
15300 variables as non-NULL even with -fdelete-null-pointer-checks.
15301
15302 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
15303
15304 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
15305
15306 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
15307
15308 PR target/39678
15309 * config/i386/i386.c (classify_argument): Handle SCmode with
15310 (bit_offset % 64) != 0.
15311
15312 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
15313
15314 * doc/invoke.texi (Optimize Options): Add cross-reference to
15315 -Q --help=optimizers examples.
15316
15317 2009-04-10 Ben Elliston <bje@au.ibm.com>
15318
15319 PR target/36800
15320 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
15321 regalign for the reg == fpr and TDmode case.
15322
15323 2009-04-09 David Ayers <ayers@fsfe.org>
15324
15325 PR objc/29200
15326 * objc/objc-act.c (warn_with_method): Remove helper function.
15327 (check_duplicates): Call warning and inform directly.
15328 (really_start_method): Likewise.
15329
15330 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
15331
15332 * expmed.c (expand_divmod): Always use a comparison for a division
15333 by a large unsigned integer.
15334
15335 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
15336 for things others than variables or functions as nonzero.
15337
15338 2009-04-09 Nick Clifton <nickc@redhat.com>
15339
15340 * unwind-compat.c: Change copyright header to refer to version
15341 3 of the GNU General Public License with version 3.1 of the
15342 GCC Runtime Library Exception and to point readers at the
15343 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
15344 * config/alpha/crtfastmath.c: Likewise.
15345 * config/alpha/linux-unwind.h: Likewise.
15346 * config/alpha/qrnnd.asm: Likewise.
15347 * config/alpha/vms-crt0-64.c: Likewise.
15348 * config/alpha/vms-crt0.c: Likewise.
15349 * config/alpha/vms-dwarf2.asm: Likewise.
15350 * config/alpha/vms-dwarf2eh.asm: Likewise.
15351 * config/alpha/vms-psxcrt0-64.c: Likewise.
15352 * config/alpha/vms-psxcrt0.c: Likewise.
15353 * config/alpha/vms_tramp.asm: Likewise.
15354 * config/arc/initfini.c: Likewise.
15355 * config/arc/lib1funcs.asm: Likewise.
15356 * config/arm/bpabi-v6m.S: Likewise.
15357 * config/arm/bpabi.S: Likewise.
15358 * config/arm/bpabi.c: Likewise.
15359 * config/arm/crti.asm: Likewise.
15360 * config/arm/crtn.asm: Likewise.
15361 * config/arm/ieee754-df.S: Likewise.
15362 * config/arm/ieee754-sf.S: Likewise.
15363 * config/arm/lib1funcs.asm: Likewise.
15364 * config/arm/libunwind.S: Likewise.
15365 * config/arm/linux-atomic.c: Likewise.
15366 * config/arm/mmintrin.h: Likewise.
15367 * config/arm/pr-support.c: Likewise.
15368 * config/arm/unaligned-funcs.c: Likewise.
15369 * config/arm/unwind-arm.c: Likewise.
15370 * config/arm/unwind-arm.h: Likewise.
15371 * config/avr/libgcc.S: Likewise.
15372 * config/bfin/crti.s: Likewise.
15373 * config/bfin/crtlibid.s: Likewise.
15374 * config/bfin/crtn.s: Likewise.
15375 * config/bfin/lib1funcs.asm: Likewise.
15376 * config/bfin/linux-unwind.h: Likewise.
15377 * config/cris/arit.c: Likewise.
15378 * config/cris/cris_abi_symbol.c: Likewise.
15379 * config/darwin-64.c: Likewise.
15380 * config/darwin-crt2.c: Likewise.
15381 * config/darwin-crt3.c: Likewise.
15382 * config/darwin.h: Likewise.
15383 * config/dbxelf.h: Likewise.
15384 * config/dfp-bit.c: Likewise.
15385 * config/dfp-bit.h: Likewise.
15386 * config/elfos.h: Likewise.
15387 * config/fixed-bit.c: Likewise.
15388 * config/fixed-bit.h: Likewise.
15389 * config/fp-bit.c: Likewise.
15390 * config/fp-bit.h: Likewise.
15391 * config/fr30/crti.asm: Likewise.
15392 * config/fr30/crtn.asm: Likewise.
15393 * config/fr30/lib1funcs.asm: Likewise.
15394 * config/freebsd-spec.h: Likewise.
15395 * config/frv/cmovd.c: Likewise.
15396 * config/frv/cmovh.c: Likewise.
15397 * config/frv/cmovw.c: Likewise.
15398 * config/frv/frvbegin.c: Likewise.
15399 * config/frv/frvend.c: Likewise.
15400 * config/frv/lib1funcs.asm: Likewise.
15401 * config/glibc-stdint.h: Likewise.
15402 * config/h8300/clzhi2.c: Likewise.
15403 * config/h8300/crti.asm: Likewise.
15404 * config/h8300/crtn.asm: Likewise.
15405 * config/h8300/ctzhi2.c: Likewise.
15406 * config/h8300/fixunssfsi.c: Likewise.
15407 * config/h8300/lib1funcs.asm: Likewise.
15408 * config/h8300/parityhi2.c: Likewise.
15409 * config/h8300/popcounthi2.c: Likewise.
15410 * config/i386/ammintrin.h: Likewise.
15411 * config/i386/att.h: Likewise.
15412 * config/i386/avxintrin.h: Likewise.
15413 * config/i386/biarch64.h: Likewise.
15414 * config/i386/bmmintrin.h: Likewise.
15415 * config/i386/cpuid.h: Likewise.
15416 * config/i386/cross-stdarg.h: Likewise.
15417 * config/i386/crtfastmath.c: Likewise.
15418 * config/i386/crtprec.c: Likewise.
15419 * config/i386/cygming-crtbegin.c: Likewise.
15420 * config/i386/cygming-crtend.c: Likewise.
15421 * config/i386/cygwin.asm: Likewise.
15422 * config/i386/emmintrin.h: Likewise.
15423 * config/i386/gmm_malloc.h: Likewise.
15424 * config/i386/gthr-win32.c: Likewise.
15425 * config/i386/i386.h: Likewise.
15426 * config/i386/immintrin.h: Likewise.
15427 * config/i386/linux-unwind.h: Likewise.
15428 * config/i386/linux64.h: Likewise.
15429 * config/i386/mm3dnow.h: Likewise.
15430 * config/i386/mmintrin-common.h: Likewise.
15431 * config/i386/mmintrin.h: Likewise.
15432 * config/i386/nmmintrin.h: Likewise.
15433 * config/i386/pmm_malloc.h: Likewise.
15434 * config/i386/pmmintrin.h: Likewise.
15435 * config/i386/smmintrin.h: Likewise.
15436 * config/i386/sol2-c1.asm: Likewise.
15437 * config/i386/sol2-ci.asm: Likewise.
15438 * config/i386/sol2-cn.asm: Likewise.
15439 * config/i386/sol2-gc1.asm: Likewise.
15440 * config/i386/tmmintrin.h: Likewise.
15441 * config/i386/unix.h: Likewise.
15442 * config/i386/w32-unwind.h: Likewise.
15443 * config/i386/wmmintrin.h: Likewise.
15444 * config/i386/x86-64.h: Likewise.
15445 * config/i386/x86intrin.h: Likewise.
15446 * config/i386/xmmintrin.h: Likewise.
15447 * config/ia64/crtbegin.asm: Likewise.
15448 * config/ia64/crtend.asm: Likewise.
15449 * config/ia64/crtfastmath.c: Likewise.
15450 * config/ia64/crti.asm: Likewise.
15451 * config/ia64/crtn.asm: Likewise.
15452 * config/ia64/fde-glibc.c: Likewise.
15453 * config/ia64/lib1funcs.asm: Likewise.
15454 * config/ia64/linux-unwind.h: Likewise.
15455 * config/ia64/quadlib.c: Likewise.
15456 * config/ia64/unwind-ia64.c: Likewise.
15457 * config/linux.h: Likewise.
15458 * config/m32c/m32c-lib1.S: Likewise.
15459 * config/m32c/m32c-lib2-trapv.c: Likewise.
15460 * config/m32c/m32c-lib2.c: Likewise.
15461 * config/m32r/initfini.c: Likewise.
15462 * config/m68hc11/larith.asm: Likewise.
15463 * config/m68hc11/m68hc11-crt0.S: Likewise.
15464 * config/m68k/cf.md: Likewise.
15465 * config/m68k/crti.s: Likewise.
15466 * config/m68k/crtn.s: Likewise.
15467 * config/m68k/lb1sf68.asm: Likewise.
15468 * config/m68k/linux-unwind.h: Likewise.
15469 * config/mcore/crti.asm: Likewise.
15470 * config/mcore/crtn.asm: Likewise.
15471 * config/mcore/lib1.asm: Likewise.
15472 * config/mips/linux-unwind.h: Likewise.
15473 * config/mips/loongson.h: Likewise.
15474 * config/mips/mips16.S: Likewise.
15475 * config/mmix/crti.asm: Likewise.
15476 * config/mmix/crtn.asm: Likewise.
15477 * config/pa/fptr.c: Likewise.
15478 * config/pa/hpux-unwind.h: Likewise.
15479 * config/pa/lib2funcs.asm: Likewise.
15480 * config/pa/linux-atomic.c: Likewise.
15481 * config/pa/linux-unwind.h: Likewise.
15482 * config/pa/milli64.S: Likewise.
15483 * config/pa/quadlib.c: Likewise.
15484 * config/pa/stublib.c: Likewise.
15485 * config/picochip/libgccExtras/adddi3.asm: Likewise.
15486 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
15487 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
15488 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
15489 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
15490 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
15491 * config/picochip/libgccExtras/divmod15.asm: Likewise.
15492 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
15493 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
15494 * config/picochip/libgccExtras/longjmp.asm: Likewise.
15495 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
15496 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
15497 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
15498 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
15499 * config/picochip/libgccExtras/setjmp.asm: Likewise.
15500 * config/picochip/libgccExtras/subdi3.asm: Likewise.
15501 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
15502 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
15503 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
15504 * config/rs6000/750cl.h: Likewise.
15505 * config/rs6000/altivec.h: Likewise.
15506 * config/rs6000/biarch64.h: Likewise.
15507 * config/rs6000/crtresfpr.asm: Likewise.
15508 * config/rs6000/crtresgpr.asm: Likewise.
15509 * config/rs6000/crtresxfpr.asm: Likewise.
15510 * config/rs6000/crtresxgpr.asm: Likewise.
15511 * config/rs6000/crtsavfpr.asm: Likewise.
15512 * config/rs6000/crtsavgpr.asm: Likewise.
15513 * config/rs6000/darwin-asm.h: Likewise.
15514 * config/rs6000/darwin-fallback.c: Likewise.
15515 * config/rs6000/darwin-fpsave.asm: Likewise.
15516 * config/rs6000/darwin-ldouble.c: Likewise.
15517 * config/rs6000/darwin-tramp.asm: Likewise.
15518 * config/rs6000/darwin-unwind.h: Likewise.
15519 * config/rs6000/darwin-vecsave.asm: Likewise.
15520 * config/rs6000/darwin-world.asm: Likewise.
15521 * config/rs6000/e500crtres32gpr.asm: Likewise.
15522 * config/rs6000/e500crtres64gpr.asm: Likewise.
15523 * config/rs6000/e500crtres64gprctr.asm: Likewise.
15524 * config/rs6000/e500crtrest32gpr.asm: Likewise.
15525 * config/rs6000/e500crtrest64gpr.asm: Likewise.
15526 * config/rs6000/e500crtresx32gpr.asm: Likewise.
15527 * config/rs6000/e500crtresx64gpr.asm: Likewise.
15528 * config/rs6000/e500crtsav32gpr.asm: Likewise.
15529 * config/rs6000/e500crtsav64gpr.asm: Likewise.
15530 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15531 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
15532 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
15533 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
15534 * config/rs6000/eabi-ci.asm: Likewise.
15535 * config/rs6000/eabi-cn.asm: Likewise.
15536 * config/rs6000/eabi.asm: Likewise.
15537 * config/rs6000/linux-unwind.h: Likewise.
15538 * config/rs6000/linux64.h: Likewise.
15539 * config/rs6000/paired.h: Likewise.
15540 * config/rs6000/paired.md: Likewise.
15541 * config/rs6000/ppc64-fp.c: Likewise.
15542 * config/rs6000/ppu_intrinsics.h: Likewise.
15543 * config/rs6000/rs6000.h: Likewise.
15544 * config/rs6000/si2vmx.h: Likewise.
15545 * config/rs6000/sol-ci.asm: Likewise.
15546 * config/rs6000/sol-cn.asm: Likewise.
15547 * config/rs6000/spe.h: Likewise.
15548 * config/rs6000/spu2vmx.h: Likewise.
15549 * config/rs6000/sysv4.h: Likewise.
15550 * config/rs6000/tramp.asm: Likewise.
15551 * config/rs6000/vec_types.h: Likewise.
15552 * config/s390/linux-unwind.h: Likewise.
15553 * config/s390/tpf-unwind.h: Likewise.
15554 * config/score/crti.asm: Likewise.
15555 * config/score/crtn.asm: Likewise.
15556 * config/sh/crt1.asm: Likewise.
15557 * config/sh/crti.asm: Likewise.
15558 * config/sh/crtn.asm: Likewise.
15559 * config/sh/divtab-sh4-300.c: Likewise.
15560 * config/sh/divtab-sh4.c: Likewise.
15561 * config/sh/divtab.c: Likewise.
15562 * config/sh/lib1funcs-4-300.asm: Likewise.
15563 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
15564 * config/sh/lib1funcs.asm: Likewise.
15565 * config/sh/lib1funcs.h: Likewise.
15566 * config/sh/linux-atomic.asm: Likewise.
15567 * config/sh/linux-unwind.h: Likewise.
15568 * config/sh/shmedia.h: Likewise.
15569 * config/sh/sshmedia.h: Likewise.
15570 * config/sh/ushmedia.h: Likewise.
15571 * config/sparc/crtfastmath.c: Likewise.
15572 * config/sparc/linux-unwind.h: Likewise.
15573 * config/sparc/sol2-c1.asm: Likewise.
15574 * config/sparc/sol2-ci.asm: Likewise.
15575 * config/sparc/sol2-cn.asm: Likewise.
15576 * config/spu/divmodti4.c: Likewise.
15577 * config/spu/divv2df3.c: Likewise.
15578 * config/spu/float_disf.c: Likewise.
15579 * config/spu/float_unsdidf.c: Likewise.
15580 * config/spu/float_unsdisf.c: Likewise.
15581 * config/spu/float_unssidf.c: Likewise.
15582 * config/spu/mfc_multi_tag_release.c: Likewise.
15583 * config/spu/mfc_multi_tag_reserve.c: Likewise.
15584 * config/spu/mfc_tag_release.c: Likewise.
15585 * config/spu/mfc_tag_reserve.c: Likewise.
15586 * config/spu/mfc_tag_table.c: Likewise.
15587 * config/spu/multi3.c: Likewise.
15588 * config/spu/spu_internals.h: Likewise.
15589 * config/spu/spu_intrinsics.h: Likewise.
15590 * config/spu/spu_mfcio.h: Likewise.
15591 * config/spu/vec_types.h: Likewise.
15592 * config/spu/vmx2spu.h: Likewise.
15593 * config/stormy16/stormy16-lib2.c: Likewise.
15594 * config/svr4.h: Likewise.
15595 * config/sync.c: Likewise.
15596 * config/v850/lib1funcs.asm: Likewise.
15597 * config/vxlib-tls.c: Likewise.
15598 * config/vxlib.c: Likewise.
15599 * config/vxworks-dummy.h: Likewise.
15600 * config/xtensa/crti.asm: Likewise.
15601 * config/xtensa/crtn.asm: Likewise.
15602 * config/xtensa/ieee754-df.S: Likewise.
15603 * config/xtensa/ieee754-sf.S: Likewise.
15604 * config/xtensa/lib1funcs.asm: Likewise.
15605 * config/xtensa/lib2funcs.S: Likewise.
15606 * config/xtensa/linux-unwind.h: Likewise.
15607 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
15608 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
15609 * coretypes.h: Likewise.
15610 * crtstuff.c: Likewise.
15611 * defaults.h: Likewise.
15612 * dwarf2.h: Likewise.
15613 * emutls.c: Likewise.
15614 * gbl-ctors.h: Likewise.
15615 * gcov-io.h: Likewise.
15616 * ginclude/float.h: Likewise.
15617 * ginclude/iso646.h: Likewise.
15618 * ginclude/stdarg.h: Likewise.
15619 * ginclude/stdbool.h: Likewise.
15620 * ginclude/stddef.h: Likewise.
15621 * ginclude/stdfix.h: Likewise.
15622 * ginclude/stdint-gcc.h: Likewise.
15623 * ginclude/tgmath.h: Likewise.
15624 * gthr-aix.h: Likewise.
15625 * gthr-dce.h: Likewise.
15626 * gthr-gnat.c: Likewise.
15627 * gthr-gnat.h: Likewise.
15628 * gthr-lynx.h: Likewise.
15629 * gthr-mipssde.h: Likewise.
15630 * gthr-nks.h: Likewise.
15631 * gthr-posix.c: Likewise.
15632 * gthr-posix.h: Likewise.
15633 * gthr-posix95.h: Likewise.
15634 * gthr-rtems.h: Likewise.
15635 * gthr-single.h: Likewise.
15636 * gthr-solaris.h: Likewise.
15637 * gthr-tpf.h: Likewise.
15638 * gthr-vxworks.h: Likewise.
15639 * gthr-win32.h: Likewise.
15640 * gthr.h: Likewise.
15641 * libgcc2.c: Likewise.
15642 * libgcc2.h: Likewise.
15643 * libgcov.c: Likewise.
15644 * tsystem.h: Likewise.
15645 * typeclass.h: Likewise.
15646 * unwind-c.c: Likewise.
15647 * unwind-compat.h: Likewise.
15648 * unwind-dw2-fde-compat.c: Likewise.
15649 * unwind-dw2-fde-darwin.c: Likewise.
15650 * unwind-dw2-fde-glibc.c: Likewise.
15651 * unwind-dw2-fde.c: Likewise.
15652 * unwind-dw2-fde.h: Likewise.
15653 * unwind-dw2.c: Likewise.
15654 * unwind-dw2.h: Likewise.
15655 * unwind-generic.h: Likewise.
15656 * unwind-pe.h: Likewise.
15657 * unwind-sjlj.c: Likewise.
15658 * unwind.inc: Likewise.
15659 * config/arm/neon-gen.ml: Change generated copyright header to
15660 refer to version 3 of the GNU General Public License with
15661 version 3.1 of the GCC Runtime Library Exception and to point
15662 readers at the COPYING3 and COPYING3.RUNTIME files and the
15663 FSF's license web page.
15664 * config/arm/arm_neon.h: Regenerate.
15665
15666 2009-04-09 Jakub Jelinek <jakub@redhat.com>
15667
15668 * config/cris/cris.md: Change copyright header to refer to version
15669 3 of the GNU General Public License.
15670 * doc/install.texi2html: Change copyright header to refer to version
15671 3 of the GNU General Public License and to point readers at the
15672 COPYING3 file and the FSF's license web page.
15673 * config/vax/linux.h: Likewise.
15674
15675 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
15676
15677 * config/i386/i386.md (cmpcc): New.
15678 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
15679 (sync_compare_and_swap_cc*): Delete.
15680
15681 * config/s390/s390.c (s390_compare_emitted): Remove.
15682 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
15683 s390_compare_emitted used to be handled. Assert that modes match.
15684 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
15685 refer to sync_compare_and_swap_ccsi.
15686 * config/s390/s390.h (s390_compare_emitted): Remove.
15687 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
15688 instead of s390_compare_emitted.
15689 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
15690 instead of s390_compare_emitted.
15691 * config/s390/s390.md (cmpcc): New.
15692 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
15693 CC_REGNUM, do not pretend it's set.
15694 (sync_compare_and_swap_cc*): Delete.
15695 * config/s390/predicates.md (cc_reg_operand): New.
15696
15697 * expr.c (sync_compare_and_swap_cc): Delete.
15698 * optabs.h (sync_compare_and_swap_cc): Delete.
15699 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
15700 is being used with can_compare_p.
15701 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
15702 (find_cc_set): New.
15703 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
15704 look for a MODE_CC set instead. Use emit_store_flag.
15705 (expand_compare_and_swap_loop): Likewise, with some additional
15706 complication to avoid a force_reg when useless. Use
15707 emit_cmp_and_jump_insns.
15708 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
15709 * doc/md.texi (sync_compare_and_swap_cc): Merge with
15710 sync_compare_and_swap documentation.
15711
15712 2009-04-09 Jan Hubicka <jh@suse.cz>
15713
15714 * except.c (find_prev_try): Break out from ....
15715 (duplicate_eh_regions): ... here; properly update prev_try pointers
15716 when duplication part of tree.
15717 (dump_eh_tree): Improve dumping.
15718 (verify_eh_region): New.
15719 (verify_eh_tree): Use it.
15720
15721 2009-04-06 Richard Guenther <rguenther@suse.de>
15722
15723 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
15724 &ARRAY addresses by adjusting their types and prepending
15725 a conversion.
15726 * tree-cfg.c (verify_gimple_assign_single): Verify that
15727 addresses are correct.
15728
15729 2009-04-09 Richard Guenther <rguenther@suse.de>
15730
15731 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
15732 indices into an array reference if possible.
15733 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15734 Fold POINTER_PLUS_EXPR statements with invariant address.
15735
15736 2009-04-09 Alan Modra <amodra@bigpond.net.au>
15737
15738 PR target/39634
15739 * config.gcc (powerpc64-*-linux*): Always build biarch.
15740
15741 2009-04-09 Joseph Myers <joseph@codesourcery.com>
15742
15743 PR c/39613
15744 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
15745 it and pedwarn if this results in an INTEGER_CST.
15746
15747 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15748
15749 * doc/install.texi: Update minimum GMP version. Remove obsolete
15750 text in MPFR section.
15751
15752 2009-04-08 Jakub Jelinek <jakub@redhat.com>
15753
15754 * dwarf2out.c (class_scope_p): New static inline.
15755 (class_or_namespace_scope_p): Use it.
15756 (gen_variable_die): Use DW_TAG_member tag for static data member
15757 declarations instead of DW_TAG_variable.
15758
15759 PR middle-end/39573
15760 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
15761 variables.
15762
15763 2009-04-08 Richard Guenther <rguenther@suse.de>
15764
15765 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
15766 valueize random data.
15767
15768 2009-04-08 David Edelsohn <edelsohn@gnu.org>
15769
15770 * config.gcc (aix tm_file): Add aix-stdint.h.
15771 (aix tm clause use_gcc_stdint): Set to wrap.
15772 * config/rs6000/aix-stdint.h: New file.
15773
15774 2009-04-08 Richard Guenther <rguenther@suse.de>
15775
15776 PR middle-end/36291
15777 * tree-dfa.c (add_referenced_var): Do not recurse into
15778 global initializers.
15779 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
15780 exposed variables.
15781 (fold_const_aggregate_ref): Likewise.
15782
15783 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
15784
15785 * recog.c (ordered_comparison_operator): New.
15786 * gensupport.c (std_preds): Add it.
15787 * doc/md.texi (Machine-Independent Predicates): Document it.
15788
15789 2009-04-08 Jan Hubicka <jh@suse.cz>
15790
15791 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
15792 * function.h (rtl_eh): Remove exception_handler_label_map.
15793 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
15794 remove_exception_handler_label, for_each_eh_label_1): Remove.
15795 (rtl_remove_unreachable_regions): Remove.
15796 (convert_from_eh_region_ranges): Do not remove unreachable regions.
15797 (find_exception_handler_labels): Don't build the hashtable.
15798 (maybe_remove_eh_handler): Remove.
15799 (for_each_eh_label): Rewrite to walk the tree.
15800 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
15801 * except.h (maybe_remove_eh_handler): Remove.
15802 * passes.c (init_optimization_passes): Schedule second EH cleanup
15803 before out-of-ssa.
15804 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
15805 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
15806
15807 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
15808
15809 * genoutput.c (validate_optab_operands): New.
15810 (gen_insn, gen_expand): Call it.
15811
15812 * genflags.c (gen_insn): Detect misused iterators.
15813 (main): Pass line_no to gen_insn, exit with status 1 on error.
15814
15815 * genextract.c (line_no): Make global.
15816 (VEC_safe_set_locstr): Change assertion to error message.
15817 (main): Exit with status 1 on error.
15818
15819 2009-04-08 Joseph Myers <joseph@codesourcery.com>
15820
15821 PR c/39614
15822 PR c/39673
15823 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
15824 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
15825 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
15826 * c-convert.c (convert): Do not call fold on results of conversion
15827 functions when the result is a C_MAYBE_CONST_EXPR.
15828 * c-parser.c (c_parser_postfix_expression): Do not fold condition
15829 of __builtin_choose_expr.
15830 * c-typeck.c (remove_c_maybe_const_expr): New.
15831 (build_unary_op, build_conditional_expr, build_compound_expr,
15832 build_binary_op, c_objc_common_truthvalue_conversion): Call
15833 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
15834 integer operands.
15835
15836 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
15837
15838 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
15839 CODE to produce a new one. Add a prototype to use fold_convert_const
15840
15841 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
15842
15843 PR bootstrap/39660
15844 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
15845 mix declarations and code.
15846
15847 2009-04-08 Ben Elliston <bje@au.ibm.com>
15848
15849 * gcc.c: Replace `CC' with `GCC' throughout.
15850
15851 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
15852
15853 * doc/invoke.texi: Document Atom support.
15854
15855 2009-04-07 Jason Merrill <jason@redhat.com>
15856
15857 PR c++/25185
15858 * c-common.h, c-common.c: Add flag_pretty_templates.
15859 * c-opts.c (c_common_handle_option): Set it.
15860 * c.opt: Add -fno-pretty-templates.
15861 * doc/invoke.texi (C++ Dialect Options): Likewise.
15862
15863 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
15864
15865 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
15866 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
15867 (ia64_expand_builtin): Likewise.
15868
15869 2009-04-07 Martin Jambor <mjambor@suse.cz>
15870
15871 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
15872 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
15873 ADDR_EXPRS are include too.
15874
15875 2009-04-07 Richard Guenther <rguenther@suse.de>
15876
15877 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
15878 decls are only used if passes as parameters or if they are
15879 local statics and the call is not to a builtin.
15880 (call_may_clobber_ref_p_1): Likewise.
15881
15882 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15883
15884 * expr.c (do_store_flag): Remove last argument. Simplify code
15885 to avoid duplication of tests already done by can_compare_p.
15886 (expand_expr_real_1): Adjust caller.
15887
15888 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15889
15890 * optabs.c (can_compare_p): Test the predicate of a
15891 cbranch and cstore pattern.
15892
15893 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15894
15895 * expr.c (convert_move): Use emit_store_flag instead of
15896 "emulating" it.
15897
15898 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
15899
15900 * config/i386/i386.c (ix86_compare_emitted): Remove.
15901 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
15902 ix86_compare_op0 like ix86_compare_emitted used to be handled.
15903 * config/i386/i386.h (ix86_compare_emitted): Remove.
15904 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
15905 instead of ix86_compare_emitted.
15906 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
15907
15908 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
15909
15910 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
15911 Add t-sysroot-suffix to tmake_file.
15912 * config/print-sysroot-suffix.sh: New file.
15913 * config/t-sysroot-suffix: New file.
15914
15915 2009-04-07 Ben Elliston <bje@au.ibm.com>
15916
15917 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
15918 as the latter produces a warning when the target does not support
15919 infinity.
15920
15921 2009-04-07 Ben Elliston <bje@au.ibm.com>
15922
15923 * dfp.c: Replace type punning assignments with memcpy throughout.
15924 * Makefile.in (dfp.o-warn): Remove.
15925
15926 2009-04-07 Alan Modra <amodra@bigpond.net.au>
15927
15928 PR target/39634
15929 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
15930 Include soft-fp/t-softfp after rs6000/t-linux64.
15931
15932 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
15933
15934 * stor-layout.c (set_sizetype): Use the full precision of their
15935 machine mode for bitsize types.
15936
15937 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
15938
15939 * config/i386/i386.md: Revert 2 accidental checkins.
15940
15941 2009-04-06 Joey Ye <joey.ye@intel.com>
15942 Xuepeng Guo <xuepeng.guo@intel.com>
15943 H.J. Lu <hongjiu.lu@intel.com>
15944
15945 Atom pipeline model, tuning and insn selection.
15946 * config.gcc (atom): Add atom config options and target.
15947
15948 * config/i386/atom.md: New.
15949
15950 * config/i386/i386.c (atom_cost): New cost.
15951 (m_ATOM): New macro flag.
15952 (initial_ix86_tune_features): Set m_ATOM.
15953 (x86_accumulate_outgoing_args): Likewise.
15954 (x86_arch_always_fancy_math_387): Likewise.
15955 (processor_target): Add Atom cost.
15956 (cpu_names): Add Atom cpu name.
15957 (override_options): Set Atom ISA.
15958 (ix86_issue_rate): New case PROCESSOR_ATOM.
15959 (ix86_adjust_cost): Likewise.
15960
15961 * config/i386/i386.h (TARGET_ATOM): New target macro.
15962 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
15963 (TARGET_OPT_AGU): New target option.
15964 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
15965 (processor_type): Add PROCESSOR_ATOM.
15966
15967 * config/i386/i386.md (cpu): Add new value "atom".
15968 (use_carry, movu): New attr.
15969 (atom.md): Include atom.md.
15970 (adddi3_carry_rex64): Set attr "use_carry".
15971 (addqi3_carry): Likewise.
15972 (addhi3_carry): Likewise.
15973 (addsi3_carry): Likewise.
15974 (*addsi3_carry_zext): Likewise.
15975 (subdi3_carry_rex64): Likewise.
15976 (subqi3_carry): Likewise.
15977 (subhi3_carry): Likewise.
15978 (subsi3_carry): Likewise.
15979 (x86_movdicc_0_m1_rex64): Likewise.
15980 (*x86_movdicc_0_m1_se): Likewise.
15981 (x86_movsicc_0_m1): Likewise.
15982 (*x86_movsicc_0_m1_se): Likewise.
15983 (*adddi_1_rex64): Emit add insn as much as possible.
15984 (*addsi_1): Likewise.
15985 (return_internal): Set atom_unit.
15986 (return_internal_long): Likewise.
15987 (return_pop_internal): Likewise.
15988 (*rcpsf2_sse): Set atom_sse_attr attr.
15989 (*qrt<mode>2_sse): Likewise.
15990 (*prefetch_sse): Likewise.
15991
15992 * config/i386/i386-c.c (ix86_target_macros_internal): New case
15993 PROCESSOR_ATOM.
15994 (ix86_target_macros_internal): Likewise.
15995
15996 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
15997 (*prefetch_sse_rex): Likewise.
15998 (sse_rcpv4sf2): Likewise.
15999 (sse_vmrcpv4sf2): Likewise.
16000 (sse_sqrtv4sf2): Likewise.
16001 (<sse>_vmsqrt<mode>2): Likewise.
16002 (sse_ldmxcsr): Likewise.
16003 (sse_stmxcsr): Likewise.
16004 (*sse_sfence): Likewise.
16005 (sse2_clflush): Likewise.
16006 (*sse2_mfence): Likewise.
16007 (*sse2_lfence): Likewise.
16008 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
16009 (<sse>_movup<ssemodesuffixf2c>): Likewise.
16010 (avx_movdqu<avxmodesuffix>): Likewise.
16011 (avx_lddqu<avxmodesuffix>): Likewise.
16012 (sse2_movntv2di): Change attr "type" to "ssemov".
16013 (sse2_movntsi): Likewise.
16014 (rsqrtv8sf2): Change attr "type" to "sseadd".
16015 (sse3_addsubv2df3): Set attr "atom_unit".
16016 (sse3_h<plusminus_insn>v4sf3): Likewise.
16017 (*sse2_pmaddwd): Likewise.
16018 (*vec_extractv2di_1_rex64): Likewise.
16019 (*vec_extractv2di_1_avx): Likewise.
16020 (sse2_psadbw): Likewise.
16021 (ssse3_phaddwv8hi3): Likewise.
16022 (ssse3_phaddwv4hi3): Likewise.
16023 (ssse3_phadddv4si3): Likewise.
16024 (ssse3_phadddv2si3): Likewise.
16025 (ssse3_phaddswv8hi3): Likewise.
16026 (ssse3_phaddswv4hi3): Likewise.
16027 (ssse3_phsubwv8hi3): Likewise.
16028 (ssse3_phsubwv4hi3): Likewise.
16029 (ssse3_phsubdv4si3): Likewise.
16030 (ssse3_phsubdv2si3): Likewise.
16031 (ssse3_phsubswv8hi3): Likewise.
16032 (ssse3_phsubswv4hi3): Likewise.
16033 (ssse3_pmaddubsw128): Likewise.
16034 (sse3_pmaddubsw: Likewise.
16035 (ssse3_palignrti): Likewise.
16036 (ssse3_palignrdi): Likewise.
16037
16038 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
16039
16040 * doc/install.texi (Specific): Fix two cross-references to MinGW.
16041
16042 2009-04-06 Richard Guenther <rguenther@suse.de>
16043
16044 PR tree-optimization/28868
16045 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
16046 of which PHI results we inserted.
16047 (insert_into_preds_of_block): Record inserted PHIs.
16048 (eliminate): Eliminate redundant PHI nodes.
16049 (init_pre): Init inserted_phi_names.
16050
16051 2009-04-06 Richard Guenther <rguenther@suse.de>
16052
16053 PR tree-optimization/39643
16054 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
16055 IMAGPART_EXPRs of complex constants.
16056 (execute_fold_all_builtins): If we folded a call queue
16057 TODO_update_address_taken.
16058
16059 2009-04-06 Jan Hubicka <jh@suse.cz>
16060
16061 PR middle-end/39659
16062 * except.c (remove_unreachable_regions): Propagate may_contain_throw
16063 flag.
16064
16065 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
16066
16067 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
16068 delay slot.
16069 (ic_invalidate_array): Likewise.
16070
16071 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
16072
16073 * calls.c (emit_library_call_value_1): Fix a problem with parameter
16074 alignment for library calls.
16075
16076 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
16077
16078 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
16079 (mingw32 tm clause use_gcc_stdint): Set to wrap.
16080 * config/i386/mingw-stdint.h: New file.
16081
16082 2009-04-05 Richard Guenther <rguenther@suse.de>
16083
16084 PR tree-optimization/39648
16085 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
16086 our &A vs. &A[0] IL deficiencies.
16087
16088 2009-04-04 Jan Hubicka <jh@suse.cz>
16089
16090 * except.c (sjlj_find_directly_reachable_regions): Be ready for
16091 removed toplevel regions.
16092 (sjlj_mark_call_sites): Likewise.
16093
16094 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
16095
16096 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
16097 (cygwin tm clause use_gcc_stdint): Set to wrap.
16098 * config/i386/cygwin-stdint.h: New file.
16099
16100 2009-04-04 Richard Guenther <rguenther@suse.de>
16101
16102 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
16103 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
16104 single-argument PHIs if we are in loop-closed SSA form.
16105 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
16106 for the pre-condition.
16107 (slpeel_tree_peel_loop_to_edge): Likewise.
16108 (vect_build_loop_niters): Take an optional sequence to append stmts.
16109 (vect_generate_tmps_on_preheader): Likewise.
16110 (vect_do_peeling_for_loop_bound): Take extra guards for the
16111 pre-condition.
16112 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
16113 the cost model check.
16114 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
16115 guards if we are going to peel. Do not apply versioning in that case.
16116 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
16117 (vect_do_peeling_for_loop_bound): Likewise.
16118 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
16119 loop bound only record extra pre-conditions, do not apply loop
16120 versioning.
16121
16122 2009-04-04 Richard Guenther <rguenther@suse.de>
16123
16124 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
16125 renaming code.
16126
16127 2009-04-04 Jan Hubicka <jh@suse.cz>
16128
16129 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
16130 last_basic_block for size of bb->index indexed array.
16131 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
16132 compute_out, link_btr_uses, build_btr_def_use_webs,
16133 build_btr_def_use_webs, migrate_btr_defs): Likewise.
16134
16135 2009-04-04 Jan Hubicka <jh@suse.cz>
16136
16137 * except.c (remove_eh_handler_and_replace): Break out from ...
16138 (remove_eh_handler): ... here.
16139 (bring_to_root): New function.
16140 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
16141 handled ones, bring others to root of tree.
16142
16143 2009-04-04 Jan Hubicka <jh@suse.cz>
16144
16145 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
16146 (all_phis_safe_to_merge): New function.
16147 (update_info): New structure.
16148 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
16149 (cleanup_empty_eh): Update SSA if possible.
16150
16151 2009-04-04 Richard Guenther <rguenther@suse.de>
16152
16153 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
16154 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
16155 (append_vuse): Likewise.
16156
16157 2009-04-04 Jakub Jelinek <jakub@redhat.com>
16158
16159 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
16160 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
16161 instead of REG_UNSAVED for DW_CFA_undefined.
16162 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
16163 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
16164 outermost frame.
16165
16166 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
16167
16168 PR target/39501
16169 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
16170 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
16171 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
16172
16173 2009-04-04 Richard Guenther <rguenther@suse.de>
16174
16175 PR tree-optimization/8781
16176 PR tree-optimization/37892
16177 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
16178 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
16179 (valueize_refs): Call it for *& valueizations.
16180 (shared_reference_ops_from_ref): Rename to ...
16181 (valueize_shared_reference_ops_from_ref): ... this and valueize.
16182 (shared_reference_ops_from_call): Rename to ...
16183 (valueize_shared_reference_ops_from_call): ... this and valueize.
16184 (vn_reference_lookup): Update.
16185 (visit_reference_op_call): Likewise.
16186 * tree-ssa-pre.c (phi_translate_1): Fold *&.
16187 (eliminate): Value-replace the call address in call statements.
16188
16189 2009-04-04 Richard Guenther <rguenther@suse.de>
16190
16191 PR tree-optimization/39636
16192 * tree-ssa-forwprop.c
16193 (forward_propagate_addr_into_variable_array_index): Check for
16194 GIMPLE_ASSIGN before accessing the rhs code.
16195
16196 2009-04-03 Jason Merrill <jason@redhat.com>
16197
16198 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
16199
16200 2009-04-03 Steve Ellcey <sje@cup.hp.com>
16201
16202 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
16203 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
16204 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
16205 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
16206 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
16207 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
16208 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
16209 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
16210 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
16211 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
16212 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
16213 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
16214 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
16215 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
16216 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
16217 Use fr_reg_or_fp01_operand instead of fr_register_operand
16218
16219 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
16220 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
16221 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
16222
16223 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
16224
16225 PR rtl-optimization/39607
16226 PR rtl-optimization/39631
16227
16228 Revert:
16229
16230 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
16231 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
16232 instead of DF_LR_OUT.
16233 * ira-lives.c (process_bb_node_lives): Ditto.
16234 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
16235 instead of DF_LR_{OUT,IN}.
16236 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
16237 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
16238
16239 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
16240
16241 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
16242 (execute_lower_omp): Always run but take the short way out if -fopenmp
16243 is not given.
16244 (gate_lower_omp): Remove, forcing the pass manager to always run the
16245 pass and always set PROP_gimple_lomp.
16246 (pass_lower_omp): Remove gate function.
16247 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
16248 PROP_trees. Instead, require it.
16249 * ipa-cp.c (pass_ipa_cp): Likewise.
16250 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
16251 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
16252 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
16253 and PROP_gimple_leh.
16254
16255 2009-04-03 Richard Guenther <rguenther@suse.de>
16256
16257 PR middle-end/13146
16258 PR tree-optimization/23940
16259 PR tree-optimization/33237
16260 PR middle-end/33974
16261 PR middle-end/34093
16262 PR tree-optimization/36201
16263 PR tree-optimization/36230
16264 PR tree-optimization/38049
16265 PR tree-optimization/38207
16266 PR tree-optimization/38230
16267 PR tree-optimization/38301
16268 PR tree-optimization/38585
16269 PR middle-end/38895
16270 PR tree-optimization/38985
16271 PR tree-optimization/39299
16272 * tree-ssa-structalias.h: Remove.
16273 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
16274 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
16275 (struct vuse_element_d): Remove.
16276 (struct vuse_vec_d): Likewise.
16277 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
16278 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
16279 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
16280 VUSE_ELEMENT_VAR): Likewise.
16281 (struct voptype_d): Likewise.
16282 (NUM_VOP_FREE_BUCKETS): Likewise.
16283 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
16284 (struct stmt_operands_d): Remove.
16285 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
16286 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
16287 VDEF_NUM, VDEF_VECT): Likewise.
16288 (copy_virtual_operands): Remove.
16289 (operand_build_cmp): Likewise.
16290 (create_ssa_artificial_load_stmt): Likewise.
16291 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
16292 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
16293 vuse_index and mayuse_index members. Pack and move done and iter_type
16294 members to the front.
16295 (SSA_OP_VMAYUSE): Remove.
16296 (SSA_OP_VIRTUAL_USES): Adjust.
16297 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
16298 (unlink_stmt_vdef): Declare.
16299 (add_to_addressable_set): Remove.
16300 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
16301 (vrp_visit_stmt): Likewise.
16302 * doc/tree-ssa.texi (Alias analysis): Update.
16303 * doc/invoke.texi (max-aliased-vops): Remove docs.
16304 (avg-aliased-vops): Likewise.
16305 * tree-into-ssa.c (syms_to_rename): Remove.
16306 (need_to_update_vops_p): Likewise.
16307 (need_to_initialize_update_ssa_p): Rename to ...
16308 (update_ssa_initialized_fn): ... this. Track function we are
16309 initialized for.
16310 (symbol_marked_for_renaming): Simplify.
16311 (add_new_name_mapping): Do not set need_to_update_vops_p.
16312 (dump_currdefs): Use SYMS_TO_RENAME.
16313 (rewrite_update_stmt): Always walk all uses/defs.
16314 (dump_update_ssa): Adjust.
16315 (init_update_ssa): Take function argument. Track what we are
16316 initialized for.
16317 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
16318 (create_new_def_for): Initialize for cfun, assert we are initialized
16319 for cfun.
16320 (mark_sym_for_renaming): Simplify.
16321 (mark_set_for_renaming): Do not initialize update-ssa.
16322 (need_ssa_update_p): Simplify. Take function argument.
16323 (name_mappings_registered_p): Assert we ask for the correct function.
16324 (name_registered_for_update_p): Likewise.
16325 (ssa_names_to_replace): Likewise.
16326 (release_ssa_name_after_update_ssa): Likewise.
16327 (update_ssa): Likewise. Use SYMS_TO_RENAME.
16328 (dump_decl_set): Do not print a newline.
16329 (debug_decl_set): Do it here.
16330 (dump_update_ssa): And here.
16331 * tree-ssa-loop-im.c (move_computations): Adjust.
16332 (movement_possibility): Likewise.
16333 (determine_max_movement): Likewise.
16334 (gather_mem_refs_stmt): Likewise.
16335 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
16336 or NAME_MEMORY_TAG.
16337 * tree-complex.c (update_all_vops): Remove.
16338 (expand_complex_move): Adjust.
16339 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
16340 Simplify test for memory referencing statement. Exclude
16341 non-invariant ADDR_EXPRs.
16342 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
16343 * tree-loop-distribution.c (generate_memset_zero): Adjust.
16344 (rdg_flag_uses): Likewise.
16345 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
16346 related code.
16347 (tree_optimize_tail_calls_1): Also split the
16348 edge from the entry block if we have degenerate PHI nodes in
16349 the first basic block.
16350 * tree.c (init_ttree): Remove memory-tag related code.
16351 (tree_code_size): Likewise.
16352 (tree_node_structure): Likewise.
16353 (build7_stat): Re-write to be build6_stat.
16354 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
16355 (SSA_VAR_P): Adjust.
16356 (struct tree_memory_tag): Remove.
16357 (struct tree_memory_partition_tag): Likewise.
16358 (union tree_node): Adjust.
16359 (build7): Re-write to be build6.
16360 * tree-pass.h (pass_reset_cc_flags): Remove.
16361 (TODO_update_address_taken): New flag.
16362 (pass_simple_dse): Remove.
16363 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
16364 * params.h (MAX_ALIASED_VOPS): Remove.
16365 (AVG_ALIASED_VOPS): Likewise.
16366 * omp-low.c (expand_omp_taskreg): Update SSA form.
16367 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
16368 aliases the lhs in a copy stmt.
16369 * tree-ssa-dse.c (struct address_walk_data): Remove.
16370 (memory_ssa_name_same): Likewise.
16371 (memory_address_same): Likewise.
16372 (get_kill_of_stmt_lhs): Likewise.
16373 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
16374 unused stores. Look through PHI nodes into post-dominated regions.
16375 (dse_optimize_stmt): Simplify. Properly remove stores.
16376 (tree_ssa_dse): Compute dominators.
16377 (execute_simple_dse): Remove.
16378 (pass_simple_dse): Likewise.
16379 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
16380 gimple_loaded_syms and gimple_stored_syms computation.
16381 * toplev.c (dump_memory_report): Dump alias and pta stats.
16382 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
16383 (vn_reference_eq): Likewise.
16384 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
16385 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
16386 valueize_vuses): Remove.
16387 (get_def_ref_stmt_vuses): Simplify. Rename to ...
16388 (get_def_ref_stmt_vuse): ... this.
16389 (vn_reference_lookup_2): New function.
16390 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
16391 walking equivalent vuses. Simplify.
16392 (vn_reference_lookup): Likewise.
16393 (vn_reference_insert): Likewise.
16394 (vn_reference_insert_pieces): Likewise.
16395 (visit_reference_op_call): Simplify.
16396 (visit_reference_op_load): Likewise.
16397 (visit_reference_op_store): Likewise.
16398 (init_scc_vn): Remove shared_lookup_vuses initialization.
16399 (free_scc_vn): Remove shared_lookup_vuses freeing.
16400 (sort_vuses, sort_vuses_heap): Remove.
16401 (get_ref_from_reference_ops): Export.
16402 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
16403 vector with single vuse pointer.
16404 (vn_reference_lookup_pieces, vn_reference_lookup,
16405 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
16406 (shared_vuses_from_stmt): Remove.
16407 (get_ref_from_reference_ops): Declare.
16408 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
16409 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
16410 memory-tag related code.
16411 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
16412 (likely_value): Add comment, skip static-chain of call statements.
16413 (surely_varying_stmt_p): Adjust.
16414 (gimplify_and_update_call_from_tree): Likewise.
16415 (execute_fold_all_builtins): Do not rebuild alias info.
16416 (gimplify_and_update_call_from_tree): Properly update VOPs.
16417 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
16418 (copy_ref_info): Remove memory-tag related code.
16419 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
16420 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
16421 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
16422 computation.
16423 * tree-ssa-dom.c (gimple_p): Remove typedef.
16424 (eliminate_redundant_computations): Adjust.
16425 (record_equivalences_from_stmt): Likewise.
16426 (avail_expr_hash): Likewise.
16427 (avail_expr_eq): Likewise.
16428 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
16429 (stmt_makes_single_load): Likewise.
16430 (stmt_makes_single_store): Likewise.
16431 * tree-ssa-alias.c: Rewrite completely.
16432 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
16433 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
16434 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
16435 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
16436 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
16437 Remove public functions.
16438 (pass_reset_cc_flags): Remove.
16439 (pass_build_alias): Move ...
16440 * tree-ssa-structalias.c (pass_build_alias): ... here.
16441 * tree-ssa-alias.c (may_be_aliased): Move ...
16442 * tree-flow-inline.h (may_be_aliased): ... here.
16443 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
16444 count_uses_and_derefs): Move ...
16445 * gimple.c: ... here.
16446 * gimple.h (count_uses_and_derefs): Declare.
16447 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
16448 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
16449 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
16450 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
16451 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
16452 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
16453 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
16454 New functions.
16455 * tree-dfa.c (refs_may_alias_p): Move ...
16456 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
16457 * tree-ssa-alias.h: New file.
16458 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
16459 (statement_sink_location): Likewise.
16460 * opts.c (decode_options): Do not adjust max-aliased-vops or
16461 avg-aliased-vops values.
16462 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
16463 (TV_CALL_CLOBBER): Likewise.
16464 (TV_FLOW_SENSITIVE): Likewise.
16465 (TV_FLOW_INSENSITIVE): Likewise.
16466 (TV_MEMORY_PARTITIONING): Likewise.
16467 (TV_ALIAS_STMT_WALK): New timevar.
16468 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
16469 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
16470 (get_address_description): Remove memory-tag related code.
16471 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
16472 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
16473 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
16474 and immediate uses in statements. Document.
16475 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
16476 (dump_symbols): Remove.
16477 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
16478 * alias.c (get_deref_alias_set): New function split out from ...
16479 (get_alias_set): ... here.
16480 * alias.h (get_deref_alias_set): Declare.
16481 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
16482 type parameter. Remove restrict pointer handling. Create a
16483 ref-all pointer in case type-based alias sets do not conflict.
16484 (vect_analyze_data_refs): Remove SMT related code.
16485 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
16486 (vectorizable_load): Likewise.
16487 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
16488 (DR_SYMBOL_TAG, DR_VOPS): Remove.
16489 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
16490 Ignore vops and SMTs.
16491 (dr_analyze_alias): Likewise..
16492 (free_data_ref): Likewise.
16493 (create_data_ref): Likewise.
16494 (analyze_all_data_dependences): Likewise.
16495 (get_references_in_stmt): Adjust.
16496 * tree-flow-inline.h (gimple_aliases_computed_p,
16497 gimple_addressable_vars, gimple_call_clobbered_vars,
16498 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
16499 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
16500 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
16501 gimple_mem_ref_stats): Remove.
16502 (gimple_vop): New function.
16503 (op_iter_next_use): Remove vuses and mayuses cases.
16504 (op_iter_next_def): Remove vdefs case.
16505 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
16506 (clear_and_done_ssa_iter): Do not set removed fields.
16507 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
16508 Assert we are not iterating over vuses or vdefs if not also
16509 iterating over uses or defs.
16510 (op_iter_init_use): Likewise.
16511 (op_iter_init_def): Likewise.
16512 (op_iter_next_vdef): Remove.
16513 (op_iter_next_mustdef): Likewise.
16514 (op_iter_init_vdef): Likewise.
16515 (compare_ssa_operands_equal): Likewise.
16516 (link_use_stmts_after): Handle vuse operand.
16517 (is_call_used): Use is_call_clobbered.
16518 (is_call_clobbered): Global variables are always call clobbered,
16519 query the call-clobbers bitmap.
16520 (mark_call_clobbered): Ignore global variables.
16521 (clear_call_clobbered): Likewise.
16522 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
16523 virtual operands sanity check.
16524 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
16525 Remove.
16526 (TARGET_MEM_REF): Remove TMR_TAG operand.
16527 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
16528 Remove call-clobber related code.
16529 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
16530 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
16531 partitions or escape reason.
16532 (get_single_def_stmt, get_single_def_stmt_from_phi,
16533 get_single_def_stmt_with_phi): Remove.
16534 (dump_referenced_vars): Tidy.
16535 (get_ref_base_and_extent): Allow bare decls.
16536 (collect_dfa_stats): Adjust.
16537 * graphite.c (rename_variables_in_stmt): Adjust.
16538 (graphite_copy_stmts_from_block): Likewise.
16539 (translate_clast): Likewise.
16540 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
16541 (EXPR_DIES): New.
16542 (translate_vuse_through_block): Use the oracle.
16543 (phi_translate_1): Adjust.
16544 (value_dies_in_block_x): Use the oracle. Cache the outcome
16545 in EXPR_DIES.
16546 (valid_in_sets): Check if the VUSE for
16547 a REFERENCE is available.
16548 (eliminate): Do not remove stmts during elimination,
16549 instead queue and remove them afterwards.
16550 (do_pre): Do not rebuild alias info.
16551 (pass_pre): Run TODO_rebuild_alias before PRE.
16552 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
16553 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
16554 (mark_all_v_defs_stmt): Remove.
16555 (mark_all_v_defs_seq): Adjust.
16556 (sra_replace): Likewise.
16557 (scalarize_use): Likewise.
16558 (scalarize_copy): Likewise.
16559 (scalarize_init): Likewise.
16560 (scalarize_ldst): Likewise.
16561 (todoflags): Remove.
16562 (tree_sra): Do not rebuild alias info.
16563 (tree_sra_early): Adjust.
16564 (pass_sra): Run TODO_update_address_taken before SRA.
16565 * tree-predcom.c (set_alias_info): Remove.
16566 (prepare_initializers_chain): Do not call it.
16567 (mark_virtual_ops_for_renaming): Adjust.
16568 (mark_virtual_ops_for_renaming_list): Remove.
16569 (initialize_root_vars): Adjust.
16570 (initialize_root_vars_lm): Likewise.
16571 (prepare_initializers_chain): Likewise.
16572 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
16573 (may_propagate_copy_into_stmt): Likewise.
16574 (merge_alias_info): Do nothing for now.
16575 (propagate_tree_value_into_stmt): Adjust.
16576 (stmt_may_generate_copy): Likewise.
16577 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
16578 not mark symbols for renaming.
16579 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
16580 with the same statement, make sure to update the new pointed-to one.
16581 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
16582 call statements, do not mark symbols for renaming.
16583 (mark_operand_necessary): Dump something.
16584 (ref_may_be_aliased): New function.
16585 (mark_aliased_reaching_defs_necessary_1): New helper function.
16586 (mark_aliased_reaching_defs_necessary): Likewise.
16587 (mark_all_reaching_defs_necessary_1): Likewise.
16588 (mark_all_reaching_defs_necessary): Likewise.
16589 (propagate_necessity): Do not process virtual PHIs. For
16590 non-aliased loads mark all reaching definitions as necessary.
16591 For aliased loads and stores mark the immediate dominating
16592 aliased clobbers as necessary.
16593 (visited): New global static.
16594 (perform_tree_ssa_dce): Free visited bitmap after propagating
16595 necessity.
16596 (remove_dead_phis): Perform simple dead virtual PHI removal.
16597 (remove_dead_stmt): Properly unlink virtual operands when
16598 removing stores.
16599 (eliminate_unnecessary_stmts): Schedule PHI removal after
16600 stmt removal.
16601 * tree-ssa-ter.c (is_replaceable_p): Adjust.
16602 (process_replaceable): Likewise.
16603 (find_replaceable_in_bb): Likewise.
16604 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
16605 based on the single gimple vop.
16606 (verify_flow_insensitive_alias_info): Remove.
16607 (verify_flow_sensitive_alias_info): Likewise.
16608 (verify_call_clobbering): Likewise.
16609 (verify_memory_partitions): Likewise.
16610 (verify_alias_info): Likewise.
16611 (verify_ssa): Adjust..
16612 (execute_update_addresses_taken): Export. Update SSA
16613 manually. Optimize only when optimizing. Use a local bitmap.
16614 (pass_update_address_taken): Remove TODO_update_ssa, add
16615 TODO_dump_func.
16616 (pass_update_address_taken): Just use TODO_update_address_taken.
16617 (init_tree_ssa): Do not initialize addressable_vars.
16618 (verify_ssa): Verify new VUSE / VDEF properties.
16619 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
16620 Do not call verify_alias_info.
16621 (delete_tree_ssa): Clear the VUSE, VDEF operands.
16622 Do not free the loaded and stored syms bitmaps. Reset the escaped
16623 and callused solutions. Do not free addressable_vars.
16624 Remove memory-tag related code.
16625 (warn_uninitialized_var): Aliases are always available.
16626 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
16627 * lambda-code.c (can_put_in_inner_loop): Adjust.
16628 (can_put_after_inner_loop): Likewise.
16629 (perfect_nestify): Likewise.
16630 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
16631 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
16632 (vectorizable_conversion): Do not mark symbols for renaming.
16633 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
16634 (expand_call_inline): Unlink the calls virtual operands before
16635 replacing it.
16636 (tree_function_versioning): Do not call update_ssa if we are not
16637 updating clones. Simplify.
16638 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
16639 (propagate_with_phi): Likewise..
16640 * tree-outof-ssa.c (create_temp): Remove memory tag and call
16641 clobber code. Assert we are not aliased or global.
16642 * tree-flow.h: Include tree-ssa-alias.h
16643 (enum escape_type): Remove.
16644 (struct mem_sym_stats_d): Likewise.
16645 (struct mem_ref_stats_d): Likewise.
16646 (struct gimple_df): Add vop member. Remove global_var,
16647 call_clobbered_vars, call_used_vars, addressable_vars,
16648 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
16649 escaped and callused members.
16650 (struct ptr_info_def): Remove all members, add points-to solution
16651 member pt.
16652 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
16653 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
16654 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
16655 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
16656 (tree-ssa-alias.o): Likewise.
16657 (toplev.o): Add tree-ssa-alias.h
16658 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
16659 * gimple.c (gimple_set_bb): Fix off-by-one error.
16660 (is_gimple_reg): Do not handle memory tags.
16661 (gimple_copy): Also copy virtual operands.
16662 Delay updating the statement. Do not reset loaded and stored syms.
16663 (gimple_set_stored_syms): Remove.
16664 (gimple_set_loaded_syms): Likewise.
16665 (gimple_call_copy_skip_args): Copy the virtual operands
16666 and mark the new statement modified.
16667 * tree-ssa-structalias.c (may_alias_p): Remove.
16668 (set_uids_in_ptset): Take the alias set to prune with as
16669 parameter. Fold in the alias test of may_alias_p.
16670 (compute_points_to_sets): Compute whether a ptr is dereferenced
16671 in a local sbitmap.
16672 (process_constraint): Deal with &ANYTHING on the lhs, reject all
16673 other ADDRESSOF constraints on the lhs.
16674 (get_constraint_for_component_ref): Assert that we don't get
16675 ADDRESSOF constraints from the base of the reference.
16676 Properly generate UNKNOWN_OFFSET for DEREF if needed.
16677 (struct variable_info): Remove collapsed_to member.
16678 (get_varinfo_fc): Remove.
16679 (new_var_info): Do not set collapsed_to.
16680 (dump_constraint): Do not follow cycles.
16681 (dump_constraint_graph): Likewise.
16682 (build_pred_graph): Likewise.
16683 (build_succ_graph): Likewise.
16684 (rewrite_constraints): Likewise.
16685 (do_simple_structure_copy): Remove.
16686 (do_rhs_deref_structure_copy): Remove.
16687 (do_lhs_deref_structure_copy): Remove.
16688 (collapse_rest_of_var): Remove.
16689 (do_structure_copy): Re-implement.
16690 (pta_stats): New global variable.
16691 (dump_pta_stats): New function.
16692 (struct constraint_expr): Make offset signed.
16693 (UNKNOWN_OFFSET): Define special value.
16694 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
16695 (solution_set_expand): New helper function split out from ...
16696 (do_sd_constraint): ... here.
16697 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
16698 (do_ds_constraint): Likewise.
16699 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
16700 and CALLUSED = *CALLUSED.
16701 (set_union_with_increment): Make inc argument signed.
16702 (type_safe): Remove.
16703 (get_constraint_for_ptr_offset): Handle unknown and negative
16704 constant offsets.
16705 (first_vi_for_offset): Handle offsets before start. Bail
16706 out early for offsets beyond the variable extent.
16707 (first_or_preceding_vi_for_offset): New function.
16708 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
16709 Together with ESCAPED = *ESCAPED this properly computes reachability.
16710 (find_what_var_points_to): New function.
16711 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
16712 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
16713 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
16714 pt_solutions_intersect): New functions.
16715 (compute_call_used_vars): Remove.
16716 (compute_may_aliases): New main entry into PTA computation.
16717 * gimple.h (gimple_p): New typedef.
16718 (struct gimple_statement_base): Remove references_memory_p.
16719 (struct gimple_statement_with_memory_ops_base): Remove
16720 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
16721 members.
16722 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
16723 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
16724 gimple_set_references_memory): Remove.
16725 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
16726 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
16727 New functions.
16728 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
16729 (verify_expr): Allow RESULT_DECL.
16730 (gimple_duplicate_bb): Do not copy virtual operands.
16731 (gimple_duplicate_sese_region): Adjust.
16732 (gimple_duplicate_sese_tail): Likewise.
16733 (mark_virtual_ops_in_region): Remove.
16734 (move_sese_region_to_fn): Do not call it.
16735 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
16736 and pass_simple_dse.
16737 (execute_function_todo): Handle TODO_update_address_taken,
16738 call execute_update_addresses_taken for TODO_rebuild_alias.
16739 (execute_todo): Adjust.
16740 (execute_one_pass): Init dump files early.
16741 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
16742 call-clobbered.
16743 (create_general_new_stmt): Clear vops.
16744 * tree-ssa-reassoc.c (get_rank): Adjust.
16745 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
16746 symbols for renaming.
16747 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
16748 (PARAM_AVG_ALIASED_VOPS): Likewise.
16749 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
16750 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
16751 * tree-ssa-operands.c: Simplify for new virtual operand representation.
16752 (operand_build_cmp, copy_virtual_operands,
16753 create_ssa_artificial_load_stmt, add_to_addressable_set,
16754 gimple_add_to_addresses_taken): Remove public functions.
16755 (unlink_stmt_vdef): New function.
16756
16757 2009-04-03 Alan Modra <amodra@bigpond.net.au>
16758
16759 * config.gcc (powerpc-*-linux*): Merge variants.
16760
16761 2009-04-02 Chao-ying Fu <fu@mips.com>
16762 James Grosbach <james.grosbach@microchip.com>
16763
16764 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
16765 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
16766 cop0_sp_offset.
16767 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
16768 keep_interrupts_masked_p, use_debug_exception_return_p.
16769 (mips_attribute_table): Add interrupt, use_shadow_register_set,
16770 keep_interrupts_masked, use_debug_exception_return.
16771 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
16772 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
16773 New functions.
16774 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
16775 (mips_print_operand): Process COP0 registers to print $0 .. $31
16776 correctly for GAS to process.
16777 (mips_interrupt_extra_call_saved_reg_p): New function.
16778 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
16779 extra registers.
16780 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
16781 (mips_compute_frame_info): Add supports for interrupt context that
16782 includes doubleword accumulators and COP0 registers.
16783 (mips_for_each_saved_acc): New function.
16784 (mips_for_each_saved_gpr_and_fpr): Change the function name from
16785 mips_for_each_saved_reg.
16786 (mips_save_reg): Save accumulators.
16787 (mips_kernel_reg_p): A new for_each_rtx callback.
16788 (mips_expand_prologue): Support interrupt handlers.
16789 (mips_restore_reg): Restore accumulators.
16790 (mips_expand_epilogue): Support interrupt handlers.
16791 (mips_can_use_return_insn): Return false for interrupt handlers.
16792 (mips_epilogue_uses): New function.
16793 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
16794 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
16795 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
16796 cop0_move): New instructions.
16797 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
16798 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
16799 defines.
16800 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
16801 New defines.
16802 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
16803 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
16804 interrupt handlers, we use K0 as the temporary register.
16805 (EPILOGUE_USES): Change to a function call.
16806 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
16807 handlers, we use K0 as the temporary register.
16808
16809 * doc/extend.texi (Function Attributes): Document interrupt,
16810 use_shadow_register_set, keep_interrupts_masked,
16811 use_debug_exception_return for MIPS attributes.
16812
16813 2009-04-03 Alan Modra <amodra@bigpond.net.au>
16814
16815 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
16816 Remove a number of t-files from tmake_file.
16817 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
16818 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
16819 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
16820 target_prototype, not TARGET_PROTOTYPE.
16821 (LINK_OS_GNU_SPEC): Define.
16822 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
16823 and darwin-ldoubdle.c.
16824
16825 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
16826
16827 PR driver/39293
16828 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
16829 (cpp_options): Ditto.
16830 (default_compilers): Ditto.
16831 (display_help): Ditto.
16832 (process_command): Ditto.
16833 (do_spec_1): Ditto.
16834 (set_input): Use lbasename instead of duplicate code.
16835 (save_temps_prefix): New static for -save-temps=obj.
16836 (save_temps_length): Ditto.
16837
16838 * doc/invoke.texi (-save-temps=obj): Document new variant to
16839 -save-temps switch.
16840
16841 2009-04-02 Jeff Law <law@redhat.com>
16842
16843 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
16844 variable.
16845
16846 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
16847
16848 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
16849 * configure: Regenerated.
16850
16851 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
16852
16853 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
16854 share the argument list.
16855
16856 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
16857
16858 Merge
16859
16860 2009-02-12 Diego Novillo <dnovillo@google.com>
16861
16862 * varpool.c (debug_varpool): New.
16863 * cgraph.h (debug_varpool): Declare.
16864
16865 2009-04-02 Jan Hubicka <jh@suse.cz>
16866
16867 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
16868 pass.
16869
16870 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
16871
16872 * config/i386/i386.c (ix86_abi): Move initialization to ...
16873 (override_options): Here.
16874
16875 2009-04-02 Christian Bruel <christian.bruel@st.com>
16876
16877 * config/sh/sh.c (sh_dwarf_register_span): New function.
16878 (TARGET_DWARF_REGISTER_SPAN): Define.
16879 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
16880
16881 2009-04-02 Ira Rosen <irar@il.ibm.com>
16882
16883 PR tree-optimization/39595
16884 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
16885 interleaved loads group is not greater than the SLP group size.
16886
16887 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
16888
16889 * builtins.c (is_builtin_name): New.
16890 (called_as_built_in): Use is_builtin_name.
16891 * tree.h (is_builtin_name): New.
16892 * varasm.c (incorporeal_function_p): Use is_builtin_name
16893
16894 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
16895
16896 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
16897
16898 2009-04-02 Dodji Seketeli <dodji@redhat.com>
16899
16900 PR c++/26693
16901 * c-decl.c (clone_underlying_type): Move this ...
16902 * c-common.c (set_underlying_type): ... here.
16903 Also, make sure the function properly sets TYPE_STUB_DECL() on
16904 the newly created typedef variant type.
16905 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
16906 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
16907 points.
16908
16909 2009-04-02 Richard Guenther <rguenther@suse.de>
16910
16911 PR tree-optimization/37221
16912 * tree-flow.h (degenerate_phi_result): Declare.
16913 * tree-ssa-dom.c (degenerate_phi_result): Export.
16914 * tree-scalar-evolution.c (analyze_initial_condition): If
16915 the initial condition is defined by a degenerate PHI node
16916 use the degenerate value.
16917
16918 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
16919
16920 PR rtl-optimization/39588
16921 * combine.c (merge_outer_ops): Do not set the constant when this
16922 is not necessary.
16923 (simplify_shift_const_1): Do not modify it either in this case.
16924
16925 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
16926
16927 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
16928 tuning is deprecated if -mtune value is set to an Itanium1 variant.
16929
16930 2009-04-01 Janis Johnson <janis187@us.ibm.com>
16931
16932 PR c/29027
16933 * c-lex.c (interpret_float): Default (no suffix) is double.
16934
16935 2009-04-1 Xinliang David Li <davidxl@google.com>
16936
16937 * config/i386/i386.c (legitimate_constant_p): Recognize
16938 all one vector constant.
16939
16940 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16941
16942 * config/vax/vax.c: Add #includes to silence warnings.
16943 Change #include order to silence two warnings.
16944
16945 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16946
16947 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
16948 (ASM_SPEC): Pass -k to the assembler for PIC code.
16949
16950 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16951
16952 * config.gcc: Add vax-*-linux* to the switch.
16953 * config/vax/linux.h: New file. (TARGET_VERSION,
16954 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
16955
16956 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16957
16958 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
16959 Use predicate macros instead of GET_CODE() == foo.
16960 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
16961 ashlsi3, rotrsi3, <unnamed>): Likewise.
16962
16963 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16964
16965 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
16966 jbbccihi, jbbccisi): Remova trailing whitespace.
16967 * config/vax/constraints.md: Likewise.
16968 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16969 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
16970 * config/vax/predicates.md: Likewise.
16971 * config/vax/vax.c (print_operand_address, vax_output_int_move,
16972 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
16973 * config/vax/vax.h: Likewise.
16974 * config/vax/vax.md (nonlocal_goto): Likewise.
16975
16976 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16977
16978 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
16979 (indirectable_address_p, adjacent_operands_p): Add spaces around
16980 braces.
16981 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
16982
16983 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16984
16985 * config/vax/vax.c (legitimate_constant_address_p,
16986 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
16987 index_term_p, reg_plus_index_p, legitimate_address_p,
16988 vax_mode_dependent_address_p): Update comments to match functions
16989 modified by the recent int->bool conversion.
16990
16991 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
16992
16993 * config/vax/builtins.md: Update copyright message.
16994 * config/vax/constraints.md: Likewise.
16995 * config/vax/netbsd-elf.h: Likewise.
16996 * config/vax/predicates.md: Likewise.
16997 * config/vax/vax-protos.h: Likewise.
16998 * config/vax/vax.c: Likewise.
16999 * config/vax/vax.h: Likewise.
17000 * config/vax/vax.md: Likewise.
17001 * config/vax/vax.opt: Likewise.
17002
17003 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
17004
17005 * config/vax/builtins.md (ffssi2, ffssi2_internal,
17006 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
17007 * config/vax/constraints.md (B, R): Likewise.
17008 * config/vax/predicates.md (external_memory_operand,
17009 nonimmediate_addsub_di_operand): Likewise.
17010 * config/vax/vax.c (vax_output_int_add): Likewise.
17011 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
17012 untyped_call): Likewise.
17013
17014 2009-04-01 Matt Thomas <matt@3am-software.com>
17015
17016 * config/vax/predicates.md: New file.
17017 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
17018 external_const_operand, nonsymbolic_operand, external_memory_operand,
17019 indirect_memory_operand, indexed_memory_operand,
17020 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
17021 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
17022 predicate.
17023 * config/vax/constraints.md: New file.
17024 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
17025 New constraint.
17026 * config/vax/builtins.md: New file.
17027 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
17028 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
17029 jbbccisi): Define.
17030 * config/vax/vax.opt (mqmath): Add option.
17031 * config/vax/vax.md (isfx): Extend with DI.
17032 (VAXintQH, VAXintQHSD): Define.
17033 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
17034 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
17035 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
17036 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
17037 (movdi): Update constraints and use vax_output_int_move().
17038 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
17039 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
17040 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
17041 nonlocal_goto): New.
17042 (mov<mode>): Extend accepted operand types.
17043 (subdi3_old): Rename from subdi3, change update constraints and use
17044 a new implementation.
17045 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
17046 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
17047 MOVE_RATIO, CLEAR_RATIO): Define.
17048 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
17049 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
17050 (PRINT_OPERAND): Redefine using a function instead of inlined code.
17051 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
17052 (split_quadword_operands): Make static and really allow variable
17053 splitting.
17054 (print_operand_address): Update for PIC generation.
17055 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
17056 indexable_address_p, fixup_mathdi_operand,
17057 vax_expand_addsub_di_operands, adjacent_operands_p): New.
17058 (vax_float_literal, legitimate_constant_p,
17059 indirectable_constant_address_p, index_term_p,
17060 reg_plus_index_p): Return bool instead of int.
17061 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
17062 where needed.
17063 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
17064 generation.
17065 (vax_output_conditional_branch): Indent.
17066 (legitimate_constant_address_p, indirectable_constant_address_p,
17067 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
17068 vax_mode_dependent_address_p): Return bool instead of int, update for
17069 PIC generation.
17070 * config/vax/vax-protos.h (legitimate_constant_address_p,
17071 legitimate_constant_p, legitimate_address_p,
17072 vax_mode_dependent_address_p): Change declaration to bool.
17073 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
17074 vax_expand_addsub_di_operands, vax_output_int_subtract,
17075 vax_output_movmemsi): Declare.
17076 (split_quadword_operands, vax_float_literal): Delete declaration.
17077 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
17078 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
17079 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
17080 ASM_OUTPUT_DWARF_PCREL): Define.
17081 (ASM_SPEC): Change definition to allow PIC generation.
17082
17083 2009-04-01 Steve Ellcey <sje@cup.hp.com>
17084
17085 * doc/sourcebuild.texi: Update front-end requirements.
17086
17087 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17088
17089 PR target/39226
17090 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
17091 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
17092 (booldi3_internal3): Use boolean_or_operator instead of
17093 boolean_operator.
17094
17095 2009-04-01 Joseph Myers <joseph@codesourcery.com>
17096
17097 PR c/39605
17098 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
17099 declarator whose size is not an integer constant expression but
17100 folds to an integer constant, then treat it as a constant
17101 subsequently.
17102
17103 2009-04-01 Richard Guenther <rguenther@suse.de>
17104
17105 * fold-const.c (fold_plusminus_mult_expr): Do not fold
17106 i * 4 + 2 to (i * 2 + 1) * 2.
17107
17108 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17109
17110 PR c/37772
17111 * c-parser.c (c_parser_asm_statement): Skip until close paren and
17112 return if c_parser_asm_string_literal returned NULL.
17113
17114 2009-04-01 Nick Clifton <nickc@redhat.com>
17115
17116 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
17117 already defined.
17118 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
17119 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
17120 other typedefs to avoid conflicts with libgcc2.c. Define labels
17121 to gain 16-bit bit-manipulation functions from libgcc2.c and then
17122 include it.
17123 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
17124 to gain 16-bit trapping arithmetic functions from libgcc2.c and
17125 then include it.
17126
17127 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
17128
17129 * varasm.c (default_function_rodata_section): Declare DOT as
17130 const char*.
17131
17132 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
17133 Andrey Galkin <agalkin@hypercom.com>
17134
17135 PR/39492
17136 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
17137 Make object_name unique for each process.
17138
17139 2009-04-01 Jakub Jelinek <jakub@redhat.com>
17140
17141 PR other/39591
17142 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
17143 addressable variables in the parallel that could go out of scope while
17144 running queued tasks.
17145
17146 2009-04-01 Anatoly Sokolov <aesok@post.ru>
17147
17148 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
17149 (CASE_VALUES_THRESHOLD): Redefine.
17150 * config/avr/avr.c (avr_override_options): Remove initialization of
17151 avr_case_values_threshold variable.
17152 (avr_case_values_threshold): Remove variable. Add new function.
17153 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
17154 * config/avr/avr.opt (mno-tablejump): Remove option.
17155 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
17156
17157 2009-04-01 DJ Delorie <dj@redhat.com>
17158
17159 * varasm.c (default_function_rodata_section): Don't assume
17160 anything about where the first '.' in the section name is.
17161
17162 2009-04-01 Alan Modra <amodra@bigpond.net.au>
17163
17164 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
17165 rs6000_emit_stack_tie.
17166
17167 2009-03-31 Ian Lance Taylor <iant@google.com>
17168
17169 * tree-eh.c (tree_remove_unreachable_handlers): Compare
17170 gimple_code with GIMPLE_RESX, not RESX.
17171
17172 2009-03-31 Joseph Myers <joseph@codesourcery.com>
17173
17174 * c-common.c (c_get_ident): New.
17175 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
17176
17177 2009-04-01 Ben Elliston <bje@au.ibm.com>
17178
17179 * config/rs6000/sysv4.opt (msdata): Improve option description.
17180
17181 2009-03-31 Steve Ellcey <sje@cup.hp.com>
17182
17183 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
17184 (divdf3_internal_lat): Remove.
17185 (divxf3_internal_lat): Remove.
17186 (divxf3_internal_thr): Remove.
17187 (divxf): Use divxf3_internal.
17188 * config/ia64/div.md (divsf3_internal_lat): New.
17189 (divdf3_internal_lat): New.
17190 (divxf3_internal): New.
17191
17192 2009-03-31 Joseph Myers <joseph@codesourcery.com>
17193
17194 PR c/448
17195 * Makefile.in (USE_GCC_STDINT): Define.
17196 (stmp-int-hdrs): Install stdint.h if applicable.
17197 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
17198 if known.
17199 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
17200 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
17201 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
17202 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17203 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17204 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17205 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17206 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17207 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17208 (c_common_nodes_and_builtins): Initialize
17209 underlying_wchar_type_node. Do not initialize
17210 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
17211 nodes for new types.
17212 (c_stddef_cpp_builtins): Define macros for new types.
17213 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
17214 Remove.
17215 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
17216 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
17217 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
17218 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
17219 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
17220 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
17221 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
17222 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
17223 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
17224 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
17225 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
17226 int16_type_node, int32_type_node, int64_type_node,
17227 uint8_type_node, uint16_type_node, c_uint32_type_node,
17228 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
17229 int_least32_type_node, int_least64_type_node,
17230 uint_least8_type_node, uint_least16_type_node,
17231 uint_least32_type_node, uint_least64_type_node,
17232 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
17233 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
17234 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
17235 uintptr_type_node): Define.
17236 * c-cppbuiltin.c (builtin_define_constants,
17237 builtin_define_type_minmax): New.
17238 (builtin_define_stdint_macros): Define more macros.
17239 (c_cpp_builtins): Define more limit macros.
17240 (type_suffix): New.
17241 (builtin_define_type_max): Define in terms of
17242 builtin_define_type_minmax. Remove is_long parameter. All
17243 callers changed.
17244 * config.gcc (use_gcc_stdint): Define.
17245 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
17246 Add newlib-stdint.h for generic targets.
17247 * config/glibc-stdint.h, config/newlib-stdint.h,
17248 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
17249 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
17250 * config/score/score.h (UINTPTR_TYPE): Define.
17251 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
17252 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
17253 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17254 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17255 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17256 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17257 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17258 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
17259 * config/spu/spu.h (STDINT_LONG32): Define.
17260 * configure.ac (use_gcc_stdint): Substitute.
17261 * configure: Regenerate.
17262 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
17263 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
17264 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
17265 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
17266 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
17267 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
17268 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
17269 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
17270 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
17271 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
17272 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
17273 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
17274 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
17275 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
17276 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
17277 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
17278 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
17279 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
17280 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
17281 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
17282 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
17283 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
17284 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
17285 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17286 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
17287 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
17288 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
17289 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17290 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
17291
17292 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
17293
17294 * loop-iv.c (suitable_set_for_replacement): Renamed from
17295 simplify_using_assignment; changed to return bool and to accept new
17296 args DEST and SRC. Return true iff we find a source/destination pair
17297 that can be used to make a replacement, and fill SRC and DEST if so.
17298 Remove arg ALTERED. Don't deal with altered regs here. All callers
17299 changed.
17300 (simplify_using_initial_values): Deal with altered regs here and track
17301 more precisely the effect they have on the validity of our expression.
17302
17303 * loop-iv.c (simplify_using_condition): A condition of the form
17304 (EQ REG CONST) can be used to simply make a substitution.
17305 (simplify_using_initial_values): Keep track of conditions we have seen
17306 and keep using them to simplify new expressions, while applying the
17307 same substitutions to them as to the expression.
17308
17309 * simplify-rtx.c (simplify_relational_operation_1): Simplify
17310 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
17311 GEU/LTU reversed.
17312
17313 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
17314 changed. Use this when trying to improve the upper bound.
17315 Generate the comparison by using simplify_gen_relational.
17316
17317 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
17318
17319 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
17320 functions.
17321 (simplify_using_assignment, simplify_using_initial_values): Call
17322 replace_in_expr to make replacements. Call replace_single_def_regs
17323 once on the initial version of the expression.
17324
17325 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17326
17327 PR target/27237
17328 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
17329
17330 2009-03-31 Richard Guenther <rguenther@suse.de>
17331
17332 PR middle-end/31029
17333 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
17334 equality comparisons. Fold C - X CMP X if C % 2 == 1.
17335
17336 2009-03-31 Richard Guenther <rguenther@suse.de>
17337
17338 * tree.h (div_if_zero_remainder): Declare.
17339 * fold-const.c (div_if_zero_remainder): Export.
17340 * tree-ssa-forwprop.c
17341 (forward_propagate_addr_into_variable_array_index): Handle
17342 constant array index addition outside of the variable index.
17343
17344 2009-03-31 Joseph Myers <joseph@codesourcery.com>
17345
17346 PR target/39592
17347 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
17348 define_splits, floatunssi<mode>2): Require x87 conversions from
17349 DImode to be permitted.
17350
17351 2009-03-31 Joseph Myers <joseph@codesourcery.com>
17352
17353 PR preprocessor/15638
17354 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
17355
17356 2009-03-31 Richard Guenther <rguenther@suse.de>
17357
17358 PR middle-end/23401
17359 PR middle-end/27810
17360 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
17361 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
17362 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
17363 a separate statement.
17364 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
17365 (lookup_tmp_var): Likewise.
17366 (is_gimple_formal_tmp_or_call_rhs): Remove.
17367 (is_gimple_reg_or_call_rhs): Rename to ...
17368 (is_gimple_reg_rhs_or_call): ... this.
17369 (is_gimple_mem_or_call_rhs): Rename to ...
17370 (is_gimple_mem_rhs_or_call): ... this.
17371 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
17372 DECL_GIMPLE_REG_P only if is_formal is true.
17373 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
17374 for non-proper post-modify expression gimplification.
17375 (gimplify_self_mod_expr): For post-modify expressions gimplify
17376 the lvalue to a minimal lvalue.
17377 (rhs_predicate_for): Remove formal temp case.
17378 (gimplify_modify_expr_rhs): Likewise.
17379 (gimplify_addr_expr): Use is_gimple_reg.
17380 (gimplify_expr): Remove formal temp cases.
17381 (gimple_regimplify_operands): Likewise.
17382 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
17383 and FILTER_EXPR like constants.
17384 * gimple.c (walk_gimple_op): Fix val_only initialization, use
17385 is_gimple_reg.
17386 (is_gimple_formal_tmp_rhs): Remove.
17387 (is_gimple_reg_rhs): Remove special casing.
17388 (is_gimple_mem_rhs): Fix.
17389 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
17390 (is_gimple_formal_tmp_var): Remove.
17391 (is_gimple_formal_tmp_reg): Likewise.
17392 (is_gimple_min_lval): Allow invariant component ref parts.
17393 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
17394 is_gimple_formal_tmp_reg): Remove declarations.
17395 * tree-cfg.c (verify_expr): Verify that variables with address
17396 taken do not have DECL_GIMPLE_REG_P set.
17397 * tree-mudflap.c (mf_build_check_statement_for): Use
17398 force_gimple_operand instead of gimplify_expr.
17399
17400 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
17401
17402 * modulo-sched.c (sms_schedule_by_order): Pass the actual
17403 schedulable rows to compute_split_row.
17404
17405 2009-03-31 Ben Elliston <bje@au.ibm.com>
17406
17407 PR target/31635
17408 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
17409 OPT_mvrsave.
17410
17411 2009-03-31 Alan Modra <amodra@bigpond.net.au>
17412
17413 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
17414 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
17415 * configure: Regenerate.
17416 * config.in: Regenerate.
17417 * config/rs6000/rs6000.opt (mtls-markers): Add.
17418 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
17419 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
17420 (tls_ld_aix, tls_ld_sysv): Likewise.
17421 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
17422 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
17423
17424 2009-03-31 Alan Modra <amodra@bigpond.net.au>
17425
17426 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
17427
17428 2009-03-30 Jan Hubicka <jh@suse.cz>
17429
17430 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
17431 out of RESX.
17432 (tree_remove_unreachable_handlers): Cleanup EH predecestor
17433 detection and label handling.
17434
17435 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
17436
17437 * ira-int.h (ira_allocno): Rename left_conflicts_num to
17438 left_conflicts_size.
17439 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
17440 ALLOCNO_LEFT_CONFLICTS_SIZE.
17441
17442 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
17443 remove_allocno_from_bucket_and_push,
17444 allocno_spill_priority_compare, push_allocnos_to_stack,
17445 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
17446 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
17447 (setup_allocno_left_conflicts_num): Ditto. Rename to
17448 setup_allocno_left_conflicts_size.
17449 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
17450 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
17451 setup_allocno_left_conflicts_size instead of
17452 setup_allocno_left_conflicts_num.
17453
17454 * ira-build.c (ira_create_allocno): Use
17455 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
17456 ALLOCNO_LEFT_CONFLICTS_NUM.
17457
17458 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
17459
17460 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
17461 instead of DF_LR_OUT.
17462
17463 * ira-lives.c (process_bb_node_lives): Ditto.
17464
17465 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
17466 instead of DF_LR_{OUT,IN}.
17467
17468 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
17469
17470 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
17471
17472 2009-03-30 Jan Hubicka <jh@suse.cz>
17473
17474 * except.c (label_to_region_map): Fix thinko.
17475
17476 2009-03-30 Steve Ellcey <sje@cup.hp.com>
17477
17478 PR middle-end/38237
17479 * tree.h (tree_find_value): New declaration.
17480 * tree.c (tree_find_value): New function.
17481 * varasm.c (assemble_external): Avoid duplicate entries on lists.
17482
17483 2009-03-30 Jakub Jelinek <jakub@redhat.com>
17484
17485 PR debug/39563
17486 * c-decl.c (struct c_binding): Add locus field.
17487 (bind): Add locus argument, set locus field from it.
17488 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
17489 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
17490 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
17491 implicitly_declare, undeclared_variable, lookup_label,
17492 declare_label, c_make_fname_decl, c_builtin_function,
17493 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
17494 bind callers.
17495
17496 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
17497
17498 PR target/38781
17499 * config/i386/i386.c (classify_argument): Check total size of
17500 structure.
17501
17502 2009-03-30 Martin Jambor <mjambor@suse.cz>
17503
17504 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
17505 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
17506 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
17507 respectively.
17508
17509 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
17510 seen_variable_array_ref while also traversing a union.
17511
17512 * tree-inline.c (optimize_inline_calls): Do not call
17513 cgraph_node_remove_callees.
17514 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
17515 (pass_remove_cgraph_callee_edges): New variable.
17516 * passes.c (init_optimization_passes): Add
17517 pass_remove_cgraph_callee_edges after early inlining and before all
17518 late intraprocedural passes.
17519
17520 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
17521
17522 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17523
17524 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
17525 Fix typos in names.
17526
17527 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17528
17529 * combine.c (simplify_comparison): Use have_insn_for.
17530 * dojump.c (do_jump): Likewise.
17531
17532 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17533
17534 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
17535 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
17536 sparc_compare_op0 like sparc_compare_emitted used to be handled.
17537 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
17538 instead of sparc_compare_emitted.
17539 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
17540 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
17541 instead of sparc_compare_emitted.
17542
17543 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17544
17545 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
17546 enter/exit cfglayout mode.
17547 (pass_partition_block): Require it.
17548 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
17549 (combine_instructions): Track basic blocks instead of labels.
17550 (update_cfg_for_uncondjump): New.
17551 (try_combine): Use it. Update jumps after rescanning.
17552 (pass_combine): Require PROP_cfglayout.
17553 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
17554
17555 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17556
17557 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
17558 Provide/destroy PROP_cfglayout respectively.
17559 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
17560 * tree-pass.h (PROP_cfglayout): New.
17561
17562 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
17563
17564 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
17565 fold_convert_const_fixed_from_fixed,
17566 fold_convert_const_fixed_from_int,
17567 fold_convert_const_fixed_from_real, fold_negate_const): Do not
17568 set TREE_CONSTANT_OVERFLOW.
17569 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
17570 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
17571
17572 2009-03-30 Ira Rosen <irar@il.ibm.com>
17573
17574 * tree-vect-loop-manip.c: New file.
17575 * tree-vectorizer.c: Update documentation and included files.
17576 (vect_loop_location): Make extern.
17577 (rename_use_op): Move to tree-vect-loop-manip.c
17578 (rename_variables_in_bb, rename_variables_in_loop,
17579 slpeel_update_phis_for_duplicate_loop,
17580 slpeel_update_phi_nodes_for_guard1,
17581 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
17582 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
17583 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
17584 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
17585 find_loop_location): Likewise.
17586 (new_stmt_vec_info): Move to tree-vect-stmts.c.
17587 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
17588 get_vectype_for_scalar_type, vect_is_simple_use,
17589 supportable_widening_operation, supportable_narrowing_operation):
17590 Likewise.
17591 (bb_in_loop_p): Move to tree-vect-loop.c.
17592 (new_loop_vec_info, destroy_loop_vec_info,
17593 reduction_code_for_scalar_code, report_vect_op,
17594 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
17595 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
17596 (vect_supportable_dr_alignment): Likewise.
17597 * tree-vectorizer.h (tree-data-ref.h): Include.
17598 (vect_loop_location): Declare.
17599 Reorganize function declarations according to the new file structure.
17600 * tree-vect-loop.c: New file.
17601 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
17602 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
17603 * tree-vect-data-refs.c: New file.
17604 * tree-vect-patterns.c (timevar.h): Don't include.
17605 * tree-vect-stmts.c: New file.
17606 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
17607 tree-vect-slp.c, tree-vect-loop.c.
17608 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
17609 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
17610 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
17611 (tree-vect-analyze.o): Remove.
17612 (tree-vect-transform.o): Likewise.
17613 (tree-vect-data-refs.o): Add rule.
17614 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
17615 tree-vect-slp.o): Likewise.
17616 (tree-vect-patterns.o): Remove redundant dependencies.
17617 (tree-vectorizer.o): Likewise.
17618 * tree-vect-slp.c: New file.
17619
17620 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17621
17622 * optc-gen.awk: Warn if an option flag has multiple different
17623 help strings.
17624
17625 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
17626
17627 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
17628 -floop-block): Document dependences on PPL, CLooG and Graphite.
17629
17630 2009-03-30 Joseph Myers <joseph@codesourcery.com>
17631
17632 PR rtl-optimization/323
17633 * c-common.c (c_fully_fold, convert_and_check,
17634 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
17635 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
17636 * c-common.def (EXCESS_PRECISION_EXPR): New.
17637 * c-cppbuiltin.c (builtin_define_float_constants): Define
17638 constants with enough digits for long double.
17639 * c-lex.c (interpret_float): Interpret constant with excess
17640 precision where appropriate.
17641 * c-opts.c (c_common_post_options): Set
17642 flag_excess_precision_cmdline. Give an error for
17643 -fexcess-precision=standard for C++ for processors where the
17644 option is significant.
17645 * c-parser.c (c_parser_conditional_expression): Handle excess
17646 precision in condition.
17647 * c-typeck.c (convert_arguments): Handle arguments with excess
17648 precision.
17649 (build_unary_op): Move excess precision outside operation.
17650 (build_conditional_expr): Likewise.
17651 (build_compound_expr): Likewise.
17652 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
17653 (build_modify_expr): Handle excess precision in RHS.
17654 (convert_for_assignment): Handle excess precision in converted
17655 value.
17656 (digest_init, output_init_element, process_init_element): Handle
17657 excess precision in initializer.
17658 (c_finish_return): Handle excess precision in return value.
17659 (build_binary_op): Handle excess precision in operands and add
17660 excess precision as needed for operation.
17661 * common.opt (-fexcess-precision=): New option.
17662 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
17663 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17664 For standard excess precision, output explicit conversion to and
17665 truncation from XFmode.
17666 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
17667 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
17668 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
17669 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
17670 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
17671 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
17672 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
17673 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
17674 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
17675 define_splits, sqrt<mode>2): Disable where appropriate for
17676 standard excess precision.
17677 * convert.c (convert_to_real): Do not shorten arithmetic to type
17678 for which excess precision would be used.
17679 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
17680 * doc/invoke.texi (-fexcess-precision=): Document option.
17681 (-mfpmath=): Correct index entry.
17682 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
17683 flag_excess_precision): New.
17684 * langhooks.c (lhd_post_options): Set
17685 flag_excess_precision_cmdline.
17686 * opts.c (common_handle_option): Handle -fexcess-precision=.
17687 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
17688 init_excess_precision): New.
17689 (lang_dependent_init_target): Call init_excess_precision.
17690 * tree.c (excess_precision_type): New.
17691 * tree.h (excess_precision_type): Declare.
17692
17693 2009-03-30 Joseph Myers <joseph@codesourcery.com>
17694
17695 PR c/35235
17696 * c-typeck.c (build_component_ref): Do not copy qualifiers from
17697 non-lvalue to component.
17698
17699 2009-03-29 Joseph Myers <joseph@codesourcery.com>
17700
17701 PR preprocessor/34695
17702 * Makefile.in (c-opts.o): Depend on c-tree.h.
17703 * c-common.c: Move down include of diagnostic.h.
17704 (done_lexing, c_cpp_error): New.
17705 * c-common.h (done_lexing): Declare.
17706 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
17707 (parse_in).
17708 * c-opts.c: Include c-tree.h.
17709 (c_common_init_options): Set preprocessor error callback.
17710 (c_common_handle_option): Do not set preprocessor
17711 inhibit_warnings, warnings_are_errors, warn_system_headers,
17712 pedantic_errors or inhibit_warnings flags.
17713 (c_common_post_options): Do not check cpp_errors (parse_in).
17714 (c_common_finish): Do not output dependencies if there were
17715 errors. Do not check return value of cpp_finish.
17716 * c-ppoutput.c (pp_file_change): Set input_location.
17717 * c-tree.h (c_cpp_error): Declare.
17718 * diagnostic.c (diagnostic_set_info_translated): Also initialize
17719 override_column.
17720 (diagnostic_build_prefix): Check override_column.
17721 * diagnostic.h (diagnostic_info): Add override_column field.
17722 (diagnostic_override_column): Define.
17723
17724 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
17725
17726 * c-common.c (c_expand_expr, c_staticp): Remove.
17727 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
17728 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
17729 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
17730 * c-gimplify.c (gimplify_compound_literal_expr,
17731 optimize_compound_literals_in_ctor): Remove.
17732 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
17733 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
17734 * c-semantics.c (emit_local_var): Remove.
17735
17736 * langhooks-def.h (lhd_expand_expr): Remove.
17737 * langhooks.c (lhd_expand_expr): Remove.
17738 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
17739
17740 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
17741 handling from c-semantics.c; don't call into langhook.
17742 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
17743 * gimplify.c (gimplify_compound_literal_expr,
17744 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
17745 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
17746 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
17747 as was done in c-gimplify.c.
17748 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
17749 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
17750 Move from c-common.h.
17751 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
17752
17753 * tree.c (staticp): Do not call langhook.
17754 * langhooks.c (lhd_staticp): Delete.
17755 * langhooks-def.h (lhd_staticp): Delete prototype.
17756 (LANG_HOOKS_STATICP): Delete.
17757 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
17758
17759 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
17760 instead of DECL_STMTs.
17761
17762 2009-03-29 Joseph Myers <joseph@codesourcery.com>
17763
17764 PR c/456
17765 PR c/5675
17766 PR c/19976
17767 PR c/29116
17768 PR c/31871
17769 PR c/35198
17770 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
17771 void_type_node.
17772 (fold_call_expr): Return a NOP_EXPR from folding rather than the
17773 contained expression.
17774 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
17775 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
17776 conditional expressions for C.
17777 (decl_constant_value_for_optimization): Move from
17778 decl_constant_value_for_broken_optimization in c-typeck.c. Check
17779 whether optimizing and that the expression is a VAR_DECL not of
17780 array type instead of doing such checks in the caller. Do not
17781 check pedantic. Call gcc_unreachable for C++.
17782 * c-common.def (C_MAYBE_CONST_EXPR): New.
17783 * c-common.h (c_fully_fold, c_save_expr,
17784 decl_constant_value_for_optimization): New prototypes.
17785 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
17786 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
17787 EXPR_INT_CONST_OPERANDS): Define.
17788 * c-convert.c (convert): Strip nops from expression.
17789 * c-decl.c (groktypename): Take extra parameters expr and
17790 expr_const_operands. Update call to grokdeclarator.
17791 (start_decl): Update call to grokdeclarator. Add statement for
17792 expressions used in type of decl.
17793 (grokparm): Update call to grokdeclarator.
17794 (push_parm_decl): Update call to grokdeclarator.
17795 (build_compound_literal): Add parameter non_const and build a
17796 C_MAYBE_COSNT_EXPR if applicable.
17797 (grokdeclarator): Take extra parameters expr and
17798 expr_const_operands. Track expressions used in declaration
17799 specifiers and declarators. Fold array sizes and track whether
17800 they are constant expressions and whether they are integer
17801 constant expressions.
17802 (parser_xref_tag): Set expr and expr_const_operands fields in
17803 return value.
17804 (grokfield): Update call to grokdeclarator.
17805 (start_function): Update call to grokdeclarator.
17806 (build_null_declspecs): Set expr and expr_const_operands fields in
17807 return value.
17808 (declspecs_add_type): Handle expressions in typeof specifiers.
17809 * c-parser.c (c_parser_declspecs): Set expr and
17810 expr_const_operands fields for declaration specifiers.
17811 (c_parser_enum_specifier): Likewise.
17812 (c_parser_struct_or_union_specifier): Likewise.
17813 (c_parser_typeof_specifier): Likewise. Update call to
17814 groktypename. Fold expression as needed. Return expressions with
17815 type instead of adding statements.
17816 (c_parser_attributes): Update calls to c_parser_expr_list.
17817 (c_parser_statement_after_labels): Fold expression before passing
17818 to objc_build_throw_stmt.
17819 (c_parser_condition): Fold expression.
17820 (c_parser_asm_operands): Fold expression.
17821 (c_parser_conditional_expression): Use c_save_expr. Update call
17822 to build_conditional_expr.
17823 (c_parser_alignof_expression): Update call to groktypename.
17824 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
17825 original_code. Fold expression argument of va_arg. Create
17826 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
17827 argument to va_arg. Update calls to groktypename. Fold array
17828 index for offsetof. Verify that first argument to
17829 __builtin_choose_expr has integer type.
17830 (c_parser_postfix_expression_after_paren_type): Update calls to
17831 groktypename and build_compound_literal. Handle expressions with
17832 side effects in type name.
17833 (c_parser_postfix_expression_after_primary): Update call to
17834 c_parser_expr_list. Set original_code for calls to
17835 __builtin_constant_p.
17836 (c_parser_expr_list): Take extra parameter fold_p. Fold
17837 expressions if requested.
17838 (c_parser_objc_type_name): Update call to groktypename.
17839 (c_parser_objc_synchronized_statement): Fold expression.
17840 (c_parser_objc_receiver): Fold expression.
17841 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
17842 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
17843 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
17844 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
17845 (struct c_typespec): Add elements expr and expr_const_operands.
17846 (struct c_declspecs): Add elements expr and expr_const_operands.
17847 (groktypename, build_conditional_expr, build_compound_literal):
17848 Update prototypes.
17849 (in_late_binary_op): Declare.
17850 * c-typeck.c (note_integer_operands): New function.
17851 (in_late_binary_op): New variable.
17852 (decl_constant_value_for_broken_optimization): Move to c-common.c
17853 and rename to decl_constant_value_for_optimization.
17854 (default_function_array_conversion): Do not strip nops.
17855 (default_conversion): Do not call
17856 decl_constant_value_for_broken_optimization.
17857 (build_array_ref): Do not fold result.
17858 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
17859 result when operand is a VLA.
17860 (c_expr_sizeof_type): Update call to groktypename. Handle
17861 expressions included in type name. Use C_MAYBE_CONST_EXPR for
17862 result when operand names a VLA type.
17863 (build_function_call): Update call to build_compound_literal.
17864 Only fold result for calls to __builtin_* functions. Strip
17865 NOP_EXPR from INTEGER_CST returned from such functions. Fold
17866 the function designator.
17867 (convert_arguments): Fold arguments. Update call to
17868 convert_for_assignment.
17869 (build_unary_op): Handle increment and decrement of
17870 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
17871 decrement earlier. Fold operand of increment and decrement.
17872 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
17873 built for integer operand. Wrap returns that are INTEGER_CSTs
17874 without being integer constant expressions or that have integer
17875 constant operands without being INTEGER_CSTs.
17876 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
17877 (build_conditional_expr): Add operand ifexp_bcp. Track whether
17878 result is an integer constant expression or can be used in
17879 unevaluated parts of one and avoid folding and wrap as
17880 appropriate. Fold operands before possibly doing -Wsign-compare
17881 warnings.
17882 (build_compound_expr): Wrap result for C99 if operands can be used
17883 in integer constant expressions.
17884 (build_c_cast): Update call to digest_init. Do not ignore
17885 overflow from casting floating-point constants to integers. Wrap
17886 results that could be confused with integer constant expressions,
17887 null pointer constants or floating-point constants.
17888 (c_cast_expr): Update call to groktypename. Handle expressions
17889 included in type name.
17890 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
17891 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
17892 Update calls to convert_for_assignment.
17893 (convert_for_assignment): Take new parameter
17894 null_pointer_constant. Do not strip nops or call
17895 decl_constant_value_for_broken_optimization. Set
17896 in_late_binary_op for conversions to boolean.
17897 (store_init_value): Update call to digest_init.
17898 (digest_init): Take new parameter null_pointer_constant. Do not
17899 call decl_constant_value_for_broken_optimization. pedwarn for
17900 initializers not constant expressions. Update calls to
17901 convert_for_assignment.
17902 (constructor_nonconst): New.
17903 (struct constructor_stack): Add nonconst element.
17904 (really_start_incremental_init, push_init_level, pop_init_level):
17905 Handle constructor_nonconst and nonconst element.
17906 (set_init_index): Call constant_expression_warning for array
17907 designators.
17908 (output_init_element): Fold value. Set constructor_nonconst as
17909 applicable. pedwarn for initializers not constant expressions.
17910 Update call to digest_init. Call constant_expression_warning
17911 where constant initializers are required.
17912 (process_init_element): Use c_save_expr.
17913 (c_finish_goto_ptr): Fold expression.
17914 (c_finish_return): Fold return value. Update call to
17915 convert_for_assignment.
17916 (c_start_case): Fold switch expression.
17917 (c_process_expr_stmt): Fold expression.
17918 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
17919 ensure statement expression is not evaluated in constant expression.
17920 (build_binary_op): Track whether results are integer constant
17921 expressions or may occur in such, disable folding and wrap results
17922 as applicable. Fold operands for -Wsign-compare warnings unless
17923 in_late_binary_op.
17924 (c_objc_common_truthvalue_conversion): Handle results folded to
17925 integer constants that are not integer constant expressions.
17926 * doc/extend.texi: Document when typeof operands are evaluated,
17927 that condition of __builtin_choose_expr is an integer constant
17928 expression, and more about use of __builtin_constant_p in
17929 initializers.
17930
17931 2009-03-29 Richard Guenther <rguenther@suse.de>
17932
17933 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
17934 propagate addresses of array references.
17935
17936 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
17937
17938 * regmove.c (perhaps_ends_bb_p): Remove.
17939 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
17940 from INSN and check that the main loop stays within that basic block.
17941 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
17942 (regmove_forward_pass): Split out from regmove_optimize. Use
17943 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
17944 (regmove_backward_pass): Split out from regmove_optimize. Use
17945 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
17946 (regmove_optimize): Simplify.
17947
17948 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
17949
17950 PR target/39545
17951 * config/i386/i386.c (classify_argument): Ignore flexible array
17952 member in struct and warn ABI change.
17953
17954 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
17955
17956 * config/i386/i386-protos.h (ix86_agi_dependent): New.
17957
17958 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
17959 (ix86_adjust_cost): Updated.
17960
17961 2009-03-29 Jan Hubicka <jh@suse.cz>
17962
17963 PR middle-end/28850
17964 * tree-pass.h (pass_cleanup_eh): New function.
17965 (remove_unreachable_regions): Break code handling RTL
17966 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
17967 that can not be reached by runtime.
17968 (can_be_reached_by_runtime): New function.
17969 (label_to_region_map): New function.
17970 (num_eh_regions): New function.
17971 (rtl_remove_unreachable_regions): New function.
17972 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
17973 (remove_eh_region): New function.
17974 * except.h: Include sbitmap and vecprim.
17975 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
17976 num_eh_regions): Declare.
17977 * passes.c (init_optimization_passes): Schedule cleanup_eh.
17978 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
17979 * tree-eh.c (tree_remove_unreachable_handlers): New function.
17980 (tree_empty_eh_handler_p): New function.
17981 (cleanup_empty_eh): New function.
17982 (cleanup_eh): New function.
17983 (pass_cleanup_eh): New function.
17984
17985 2009-03-29 Jan Hubicka <jh@suse.cz>
17986
17987 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
17988 for removed regions.
17989
17990 2009-03-29 Jan Hubicka <jh@suse.cz>
17991
17992 * except.c (dump_eh_tree): Dump all datastructures.
17993
17994 2009-03-29 Jan Hubicka <jh@suse.cz>
17995
17996 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
17997 (duplicate_eh_regions_1): Likewise.
17998 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
17999 vector; call EH verification.
18000 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
18001 Be ready for region being removed.
18002
18003 2009-03-29 Jan Hubicka <jh@suse.cz>
18004
18005 * bitmap.c (bitmap_last_set_bit): New function.
18006 * bitmap.h (bitmap_last_set_bit): Declare.
18007
18008 2009-03-29 David Ayers <ayers@fsfe.org>
18009
18010 PR objc/27377
18011 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
18012 by calling objc_compare_types and surpress warnings about
18013 incompatible C pointers that are compatible ObjC pointers.
18014
18015 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
18016
18017 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
18018 call initialize_inline_failed.
18019 (initialize_inline_failed): Move it from here ...
18020 * cgraph.c (initialize_inline_failed): ... to here.
18021 (cgraph_create_edge): Call initialize_inline_failed rather than
18022 setting inline_failed directly.
18023
18024 2009-03-29 Ben Elliston <bje@au.ibm.com>
18025
18026 PR target/32542
18027 * sysv4.opt (msdata): Improve comment.
18028 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
18029 * sysv4.h (SVR4_ASM_SPEC): Likewise.
18030
18031 2009-03-29 Ben Elliston <bje@au.ibm.com>
18032
18033 PR target/30451
18034 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
18035 load and store attributes.
18036
18037 2009-03-29 Ben Elliston <bje@au.ibm.com>
18038
18039 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
18040 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
18041 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
18042 * doc/extend.texi (X86 Built-in Functions): Add index entries for
18043 __builtin_infq and __builtin_huge_valq.
18044
18045 2009-03-28 Anatoly Sokolov <aesok@post.ru>
18046
18047 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
18048 atmega8m1 devices.
18049 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18050 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
18051
18052 2009-03-28 Xinliang David Li <davidxl@google.com>
18053
18054 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
18055 (do_dbg_cnt): New function.
18056
18057 2009-03-28 Jan Hubicka <jh@suse.cz>
18058
18059 Merge from pretty-ipa:
18060
18061 2009-03-27 Jan Hubicka <jh@suse.cz>
18062
18063 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
18064 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
18065 * passes.c (function_called_by_processed_nodes_p): New.
18066 * ipa-pure-const.c (check_call): Fix handling of operands.
18067 (analyze_function): Dump debug output for skipped bodies.
18068 (local_pure_const): Use function_called_by_processed_nodes_p.
18069 * dwarf2out.c (reference_to_unused): Use output.
18070 * passes.c (do_per_function_toporder): Likewise.
18071
18072 2008-11-12 Jan Hubicka <jh@suse.cz>
18073
18074 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
18075 * ipa-pure-const.c (funct_state_d): Add can throw field; make
18076 state_set_in_source enum
18077 (check_decl): Ignore memory tags; do not set fake looping flags;
18078 dump diagnostics.
18079 (check_operand, check_tree, check_rhs_var, check_lhs_var,
18080 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
18081 (check_call, analyze_function): Rewrite.
18082 (check_stmt): New.
18083 (add_new_function): Update call of analyze_function.
18084 (generate_summary): Add call of analyze_function.
18085 (propagate): Propagate can_throw; handle state_set_in_source correctly.
18086 (local_pure_const): New function.
18087 (pass_local_pure_const): New pass.
18088 * ipa-inline.c (inline_transform): Set after_inlining.
18089 * tree-eh.c (stmt_can_throw_external): New.
18090 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
18091 work with aliasing built.
18092 * tree-flow.h (stmt_can_throw_external): New.
18093 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
18094 and local pure/const pass in early and late optimization queue.
18095
18096 2009-03-28 Martin Jambor <mjambor@suse.cz>
18097
18098 * fold-const.c (get_pointer_modulus_and_residue): New parameter
18099 allow_func_align.
18100 (fold_binary): Allow function decl aligment consideration is the
18101 second argument is integer constant one.
18102 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
18103 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
18104 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
18105
18106 2009-03-28 Jan Hubicka <jh@suse.cz>
18107
18108 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
18109 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
18110 * function.h (rtl_data): Add nothrow flag.
18111 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
18112 set DECL_NOTHROW for AVAILABLE functions.
18113
18114 2009-03-28 Jakub Jelinek <jakub@redhat.com>
18115
18116 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
18117 following vector keyword has expansion starting with pixel or bool
18118 keyword, expand vector to __vector and pixel or bool to __pixel or
18119 __bool.
18120
18121 PR c++/39554
18122 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
18123 warn_if_disallowed_function_p): Removed.
18124 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
18125 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
18126 warning_if_disallowed_function_p.
18127 * flags.h (warn_if_disallowed_function_p,
18128 warn_disallowed_functions): Removed.
18129 * common.opt (Wdisallowed-function-list=): Removed.
18130 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
18131
18132 2009-03-28 Richard Guenther <rguenther@suse.de>
18133
18134 PR tree-optimization/38723
18135 * tree-ssa-pre.c (compute_avail): Add all default definitions to
18136 the entry block.
18137
18138 2009-03-28 Jan Hubicka <jh@suse.cz>
18139
18140 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
18141 test introduced by my previous patch.
18142
18143 2009-03-28 Richard Guenther <rguenther@suse.de>
18144
18145 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
18146 the PHIs value undefined.
18147
18148 2009-03-28 Jan Hubicka <jh@suse.cz>
18149
18150 * tree-pass.h (pass_fixup_cfg): New pass.
18151 * ipa-inline.c (inline_transform): Set
18152 always_inline_functions_inlined/after_inlining.
18153 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
18154 (pass_fixup_cfg): New pass.
18155 * passes.c (init_optimization_passes): Add fixup_cfg.
18156
18157 2009-03-28 Richard Guenther <rguenther@suse.de>
18158
18159 PR tree-optimization/38458
18160 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
18161 argument use the arguments copy-of value.
18162
18163 2009-03-28 Richard Guenther <rguenther@suse.de>
18164
18165 PR tree-optimization/38180
18166 * tree-ssa-ccp.c (get_default_value): Simplify.
18167 (likely_value): Likewise.
18168 (surely_varying_stmt_p): Properly handle VOP case.
18169 (ccp_initialize): Likewise.
18170 (ccp_fold): Handle propagating through *&.
18171 (fold_const_aggregate_ref): Also handle decls.
18172
18173 2009-03-28 Jan Hubicka <jh@suse.cz>
18174
18175 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
18176 * cgraph.h (cgraph_node): Likewise.
18177 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
18178 (cgraph_reset_node): Use process flag.
18179 (cgraph_mark_functions_to_output): Likewise.
18180 (cgraph_expand_function): Likewise.
18181 (cgraph_expand_all_functions): Likewise.
18182 (cgraph_output_in_order): Likewise.
18183 * dwarf2out.c (reference_to_unused): Likewise.
18184 * passes.c do_per_function_toporder): Likewise.
18185
18186 2009-03-28 Jan Hubicka <jh@suse.cz>
18187
18188 Bring from lto-branch:
18189
18190 2008-09-03 Doug Kwan <dougkwan@google.com>
18191
18192 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
18193 enums instead of reason strings.
18194 * cgraph.c (cgraph_create_edge): Same.
18195 (cgraph_inline_failed_string): New function.
18196 * cgraph.h (cgraph_inline_failed_t): New enum type.
18197 (cgraph_inline_failed_string): New prototype.
18198 (struct cgraph_edge): Change type of INLINED_FAILED from constant
18199 char pointer to cgraph_inline_failed_t.
18200 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
18201 (cgraph_default_inline_p): Ditto.
18202 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
18203 to cgraph_inline_failed_t pointer.
18204 * cif-code.def: New file.
18205 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
18206 reason string.
18207 (cgraph_check_inline_limits): Change type of REASON to pointer to
18208 cgraph_inline_failed_t. Replace reason strings with enums.
18209 (cgraph_default_inline_p): Ditto.
18210 (cgraph_recursive_inlining_p): Ditto.
18211 (update_caller_keys): Change type of FAILED_REASON to
18212 cgraph_inline_failed_t.
18213 (cgraph_set_inline_failed): Change type of REASON to pointer to
18214 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
18215 convert enums to strings for text output.
18216 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
18217 to be of type cgraph_inline_failed_t. Replace reason strings with
18218 enums. Call cgraph_inline_failed_string to covert enums
18219 to strings for text output.
18220 (cgraph_decide_inlining): Replace reason strings with enums.
18221 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
18222 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
18223 for text output.
18224 * tree-inline.c (expand_call_inline): Change type of REASON
18225 to cgraph_inline_failed_t. Replace reason strings with enums.
18226 Call cgraph_inline_failed_string for text output.
18227 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
18228 (cgraph.o): Ditto.
18229
18230 2009-03-28 Jan Hubicka <jh@suse.cz>
18231
18232 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
18233 cgraph_clone_node): Remove master clone handling.
18234 (cgraph_is_master_clone, cgraph_master_clone): Remove.
18235 * cgraph.h (master_clone): Remove.
18236 (cgraph_is_master_clone, cgraph_master_clone): Remove.
18237 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
18238 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
18239
18240 2009-03-28 Jan Hubicka <jh@suse.cz>
18241
18242 * cgraph.c (cgraph_function_body_availability): Functions declared
18243 inline are always safe to assume that it is not going to be replaced.
18244
18245 2009-03-28 Richard Guenther <rguenther@suse.de>
18246
18247 PR tree-optimization/38513
18248 * tree-ssa-pre.c (eliminate): Remove redundant stores.
18249 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
18250 EXC_PTR_EXPR and FILTER_EXPR.
18251 (get_ref_from_reference_ops): Likewise.
18252
18253 2009-03-28 Richard Guenther <rguenther@suse.de>
18254
18255 PR tree-optimization/38968
18256 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
18257 Use FLOOR_MOD_EXPR to compute misalignment.
18258
18259 2009-03-28 Richard Guenther <rguenther@suse.de>
18260
18261 PR tree-optimization/37795
18262 * tree.h (combine_comparisons): Declare.
18263 * fold-const.c (combine_comparisons): Export.
18264 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
18265 comparisons.
18266 (ifcombine_iforif): Use combine_comparisons.
18267
18268 2009-03-28 Jan Hubicka <jh@suse.cz>
18269
18270 * tree-eh.c (inlinable_call_p): New function.
18271 (make_eh_edges): Use it.
18272 (verify_eh_edges): Use it.
18273 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
18274 * except.c (reachable_next_level): Add inlinable_function argument
18275 (sjlj_find_directly_reachable_regions): Update.
18276 (add_reachable_handler): Do not set saw_any_handlers.
18277 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
18278 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
18279 Add new inlinable call parameter.
18280 (can_throw_internal, can_throw_external): Update.
18281 * except.h (can_throw_internal_1, can_throw_external_1,
18282 foreach_reachable_handler): Update declaration.
18283
18284 2009-03-28 Joseph Myers <joseph@codesourcery.com>
18285
18286 * config/arm/t-arm-coff, config/h8300/coff.h,
18287 config/i386/i386-aout.h, config/i386/i386-coff.h,
18288 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
18289 config/pdp11/2bsd.h, config/rs6000/aix41.h,
18290 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
18291 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
18292 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
18293 sys-types.h: Remove.
18294 * Makefile.in: Remove protoize and fixproto support and references
18295 in comments.
18296 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
18297 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
18298 Remove.
18299 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
18300 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
18301 unprotoize$(exeext).
18302 (rest.encap): Don't depend on $(STMP_FIXPROTO)
18303 (.PHONY): Don't depend on proto.
18304 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
18305 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
18306 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
18307 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
18308 build/gen-protos.o, build/scan.o, xsys-protos.h,
18309 build/fix-header$(build_exeext), build/fix-header.o,
18310 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
18311 stmp-install-fixproto): Remove.
18312 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
18313 SYSCALLS.c or fixproto files.
18314 (install-common): Don't install protoize.
18315 (install-headers-tar, install-headers-cpio, install-headers-cp):
18316 Don't depend on $(STMP_FIXPROTO).
18317 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
18318 install fixproto files or write out fixproto settings.
18319 (uninstall): Don't uninstall protoize.
18320 * config.gcc (use_fixproto): Remove.
18321 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
18322 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
18323 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
18324 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
18325 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
18326 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
18327 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
18328 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
18329 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
18330 * config/t-vxworks (STMP_FIXPROTO): Remove.
18331 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
18332 STMP_FIXPROTO): Remove.
18333 * config.in, configure: Regenerate.
18334 * crtstuff.c (gid_t, uid_t): Don't undefine.
18335 * doc/install.texi: Change m68k-coff to m68k-elf in example.
18336 (arm-*-coff, arm-*-aout: Remove target entries.
18337 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
18338 Remove mention of AIX 4.1.
18339 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
18340 * doc/invoke.texi (Running Protoize): Remove.
18341 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
18342 (Protoize Caveats): Remove.
18343 * tsystem.h: Update comments on headers assumed to exist.
18344
18345 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
18346
18347 * genautomata.c: Add a new year to the copyright. Add a new
18348 reference.
18349 (struct insn_reserv_decl): Add comments for member bypass_list.
18350 (find_bypass): Remove.
18351 (insert_bypass): New.
18352 (process_decls): Use insert_bypass.
18353 (output_internal_insn_latency_func): Output all bypasses with the
18354 same input insn in one switch case.
18355
18356 * rtl.def (define_bypass): Describe bypass choice.
18357 * doc/md.texi (define_bypass): Ditto.
18358
18359 2009-03-27 Richard Guenther <rguenther@suse.de>
18360
18361 * gimplify.c (mark_addressable): Export.
18362 * tree-flow.h (mark_addressable): Declare.
18363 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
18364 * tree-ssa.c (verify_phi_args): Verify that address taken
18365 variables have TREE_ADDRESSABLE set.
18366
18367 2009-03-27 Richard Guenther <rguenther@suse.de>
18368
18369 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
18370 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
18371 Do not mark decls TREE_ADDRESSABLE.
18372 (build_fold_addr_expr): Adjust.
18373 (fold_addr_expr): Remove.
18374 (fold_unary): Use build_fold_addr_expr.
18375 (fold_comparison): Likewise.
18376 (split_address_to_core_and_offset): Likewise.
18377 * coverage.c (tree_coverage_counter_addr): Mark the array decl
18378 TREE_ADDRESSABLE.
18379 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
18380 (gimplify_modify_expr_to_memcpy): Mark source and destination
18381 addressable.
18382 * omp-low.c (create_omp_child_function): Mark the object decl
18383 TREE_ADDRESSABLE.
18384 (lower_rec_input_clauses): Mark the var we take the address of
18385 TREE_ADDRESSABLE.
18386 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
18387
18388 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18389
18390 PR middle-end/39315
18391 * cfgexpand.c (expand_one_stack_var_at): Change alignment
18392 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
18393
18394 2009-03-27 Richard Guenther <rguenther@suse.de>
18395
18396 PR tree-optimization/39120
18397 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
18398 constraints.
18399 (handle_lhs_call): Process return constraints. Add escape
18400 constraints if necessary.
18401 (handle_const_call): Fill out return constraints. Make nested
18402 case more precise. Avoid consttmp if possible.
18403 (handle_pure_call): Fill out return constraints. Avoid
18404 callused if possible.
18405 (find_func_aliases): Simplify call handling.
18406
18407 2009-03-27 Richard Guenther <rguenther@suse.de>
18408
18409 PR tree-optimization/39120
18410 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
18411 as a representative.
18412 (solve_graph): Do propagate CALLUSED.
18413 (handle_pure_call): Use a scalar constraint from CALLUSED for
18414 the return value.
18415 (find_what_p_points_to): CALLUSED shall not appear in poins-to
18416 solutions.
18417
18418 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18419
18420 PR c/39323
18421 * c-common.c (handle_aligned_attribute): Properly check alignment
18422 overflow. Use (1U << i) instead of (1 << i).
18423
18424 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
18425
18426 * expr.h (get_mem_align_offset): Updated.
18427
18428 * tree.h (tree_decl_common): Change align to "unsigned int" and
18429 move it before pointer_alias_set.
18430
18431 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18432 Jakub Jelinek <jakub@redhat.com>
18433
18434 PR target/38034
18435 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
18436 gr_register_operand with gr_reg_or_0_operand.
18437 (cmpxchg_rel_di): Likewise.
18438 (sync_lock_test_and_set<mode>): Likewise.
18439
18440 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18441
18442 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
18443 (true_regnum): Likewise.
18444
18445 * rtlanal.c (subreg_info): Moved to ...
18446 * rtl.h (subreg_info): Here. New.
18447 (subreg_get_info): New.
18448
18449 * rtlanal.c (subreg_get_info): Make it extern.
18450
18451 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18452
18453 PR target/39472
18454 * config/i386/i386.c (ix86_abi): New.
18455 (override_options): Handle -mabi=.
18456 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
18457 (ix86_call_abi_override): Likewise.
18458 (init_cumulative_args): Likewise.
18459 (function_arg_advance): Likewise.
18460 (function_arg_64): Likewise.
18461 (function_arg): Likewise.
18462 (ix86_pass_by_reference): Likewise.
18463 (ix86_function_value_regno_p): Likewise.
18464 (ix86_build_builtin_va_list_abi): Likewise.
18465 (setup_incoming_varargs_64): Likewise.
18466 (is_va_list_char_pointer): Likewise.
18467 (ix86_init_machine_status): Likewise.
18468 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
18469 (ix86_function_type_abi): Return enum calling_abi. Rewrite
18470 for 64bit. Replace DEFAULT_ABI with ix86_abi.
18471 (ix86_function_abi): Make it static and return enum calling_abi.
18472 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
18473 with ix86_abi.
18474 (ix86_fn_abi_va_list): Updated.
18475
18476 * config/i386/i386.h (ix86_abi): New.
18477 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
18478 (CONDITIONAL_REGISTER_USAGE): Likewise.
18479 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
18480 (machine_function): Likewise.
18481
18482 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
18483 with ix86_abi.
18484 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
18485 (STACK_BOUNDARY): Likewise.
18486 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
18487
18488 * config/i386/i386.opt (mabi=): New.
18489
18490 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
18491 return enum calling_abi.
18492 (ix86_function_type_abi): Likewise.
18493 (ix86_function_abi): Removed.
18494
18495 * doc/invoke.texi: Document -mabi= option for x86.
18496
18497 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18498
18499 * builtins.c (real_dconstp): Delete.
18500 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
18501
18502 2009-03-27 Dodji Seketeli <dodji@redhat.com>
18503 Jakub Jelinek <jakub@redhat.com>
18504
18505 PR debug/37959
18506 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
18507 (gen_subprogram_die): When a function is explicit, generate the
18508 DW_AT_explicit attribute.
18509 * langhooks.h (struct lang_hooks_for_decls): Add
18510 function_decl_explicit_p langhook.
18511 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
18512 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
18513
18514 2009-03-27 Jakub Jelinek <jakub@redhat.com>
18515
18516 * builtins.c (fold_builtin_memory_op): Optimize memmove
18517 into memcpy if we can prove source and destination don't overlap.
18518
18519 * tree-inline.c: Include gt-tree-inline.h.
18520 (clone_fn_id_num): New variable.
18521 (clone_function_name): New function.
18522 (tree_function_versioning): Use it.
18523 * Makefile.in (GTFILES): Add tree-inline.c.
18524
18525 2009-03-27 Mark Mitchell <mark@codesourcery.com>
18526
18527 * BASE-VER: Change to 4.5.0.
18528
18529 2009-03-27 Xinliang David Li <davidxl@google.com>
18530
18531 PR tree-optimization/39557
18532 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
18533
18534 2009-03-27 Xinliang David Li <davidxl@google.com>
18535
18536 PR tree-optimization/39548
18537 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
18538 candidate check.
18539
18540 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18541
18542 * c-common.c (pointer_int_sum): Use %wd on return from
18543 tree_low_cst.
18544
18545 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
18546
18547 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
18548 on return from tree_low_cst.
18549
18550 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
18551
18552 PR c++/36799
18553 * ginclude/stdarg.h (va_copy): Define also for
18554 __GXX_EXPERIMENTAL_CXX0X__.
18555
18556 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18557
18558 PR c++/35652
18559 * builtins.h (c_strlen): Do not warn here.
18560 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
18561 * c-common.c (pointer_int_sum): Take an explicit location.
18562 Warn about offsets out of bounds.
18563 * c-common.h (pointer_int_sum): Adjust declaration.
18564
18565 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18566
18567 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
18568 markup glitch.
18569
18570 2009-03-26 Jakub Jelinek <jakub@redhat.com>
18571
18572 PR c++/39554
18573 * opts.c (warn_if_disallowed_function_p): Don't assume
18574 get_callee_fndecl must return non-NULL.
18575
18576 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
18577
18578 PR rtl-optimization/39522
18579 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
18580 when reg_reloaded_valid is set.
18581
18582 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18583
18584 * config/spu/divv2df3.c: New file.
18585 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
18586 (DPBIT_FUNCS): Filter out _div_df.
18587
18588 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
18589
18590 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
18591 a jump insn, count that jump in the distance to the loop start.
18592
18593 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
18594
18595 PR target/39523
18596 * config/sh/sh.c (calc_live_regs): Fix condition for global
18597 registers except PIC_OFFSET_TABLE_REGNUM.
18598
18599 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
18600
18601 PR/39518
18602 * doc/invoke.texi (-mconsole): New.
18603 (-mcygwin): New.
18604 (-mno-cygwin): New.
18605 (-mdll): New.
18606 (-mnop-fun-dllimport): New.
18607 (-mthread): New.
18608 (-mwin32): New.
18609 (-mwindows): New.
18610 (sub section "i386 and x86-64 Windows Options"): New.
18611
18612 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
18613
18614 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
18615 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
18616
18617 2009-03-25 Richard Guenther <rguenther@suse.de>
18618
18619 PR middle-end/39497
18620 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
18621 of -Wno-error.
18622
18623 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
18624
18625 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
18626 neither of haifa/selective schedulers are working.
18627
18628 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18629
18630 * doc/invoke.texi (Debugging Options): Fix description of
18631 -fno-merge-debug-strings.
18632
18633 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
18634
18635 * config/cris/libgcc.ver: New version-script.
18636 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
18637
18638 * configure.ac <GAS features, nop mnemonic>: Add pattern
18639 crisv32-*-* for "nop".
18640 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
18641 * configure: Regenerate.
18642
18643 2009-03-24 Ira Rosen <irar@il.ibm.com>
18644
18645 PR tree-optimization/39529
18646 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
18647 mark_sym_for_renaming for the tag copied to the new vector
18648 pointer.
18649
18650 2009-03-24 Arthur Loiret <aloiret@debian.org>
18651
18652 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
18653 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
18654 EXTRA_SPEC_FUNCTIONS.
18655 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
18656 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
18657 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
18658 -march and -mtune options.
18659
18660 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
18661
18662 * config/m68k/t-rtems: Add m5329 multilib.
18663
18664 2009-03-24 Dodji Seketeli <dodji@redhat.com>
18665 Jakub Jelinek <jakub@redhat.com>
18666
18667 PR debug/39524
18668 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
18669 nodes.
18670
18671 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18672
18673 PR c/39495
18674 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
18675 instead of c_parser_expression_conv, if original_code isn't one of the
18676 4 allowed comparison codes, fail.
18677
18678 2009-03-23 Richard Guenther <rguenther@suse.de>
18679
18680 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
18681 * tree.h (struct tree_type): Likewise.
18682 * reload.h (struct insn_chain): Likewise.
18683 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
18684 * function.h (struct function): Likewise.
18685 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
18686
18687 2009-03-23 Jakub Jelinek <jakub@redhat.com>
18688
18689 PR tree-optimization/39516
18690 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
18691
18692 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
18693
18694 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
18695 should be set true if BITS_PER_WORD of target is bigger than 32
18696
18697 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
18698
18699 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
18700 Translate -B-options to -rpath-link. Correct existing
18701 rpath-link and conditionalize on !nostdlib.
18702
18703 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18704
18705 * doc/extend.texi (Function Attributes, Variable Attributes):
18706 Fix typos.
18707 * doc/invoke.texi (Debugging Options, Optimize Options)
18708 (i386 and x86-64 Options, MCore Options): Likewise.
18709
18710 2009-03-20 Jakub Jelinek <jakub@redhat.com>
18711
18712 PR debug/37890
18713 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
18714 it for block local namespace aliases.
18715 (gen_decl_die): Pass context_die to gen_namespace_die.
18716
18717 2009-03-19 Jakub Jelinek <jakub@redhat.com>
18718
18719 PR c/39495
18720 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
18721 minimum or maximum value.
18722
18723 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
18724
18725 * reginfo.c (globalize_reg): Recompute derived reg sets.
18726
18727 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
18728
18729 PR target/39063
18730 * libgcc2.c (mprotect): Do not use signed arguments for
18731 VirtualProtect, use DWORD arguments. Also fix the 'may
18732 be used uninitialized' warning for the np variable.
18733
18734 2009-03-19 Jakub Jelinek <jakub@redhat.com>
18735
18736 PR target/39496
18737 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
18738 functions using regparm calling conventions when not optimizing.
18739 (ix86_function_sseregparm): Similarly for sseregparm calling
18740 conventions.
18741
18742 2009-03-19 Li Feng <nemokingdom@gmail.com>
18743
18744 PR middle-end/39500
18745 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
18746 dependence if the first conflict is after niter iterations.
18747
18748 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
18749
18750 PR middle-end/38609
18751 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
18752 functions with dynamic stack-pointer adjustments.
18753
18754 2009-03-19 Ben Elliston <bje@au.ibm.com>
18755
18756 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
18757 option; change to -msdata=data.
18758
18759 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18760
18761 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
18762 and -fopenmp.
18763
18764 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
18765
18766 PR target/35180
18767 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
18768
18769 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
18770
18771 * doc/invoke.texi (Code Gen Options): Expand discussion of
18772 -fno-common.
18773
18774 2009-03-18 Jakub Jelinek <jakub@redhat.com>
18775
18776 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
18777 * matrix-reorg.c (struct matrix_info): Likewise.
18778 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
18779 * rtl.h (struct mem_attrs): Likewise.
18780 * df.h (struct df): Likewise.
18781 * tree-data-ref.h (struct data_dependence_relation): Likewise.
18782 * ira-int.h (struct ira_allocno): Likewise.
18783 * df-scan.c (struct df_collection_rec): Likewise.
18784 * ira.c (struct equivalence): Likewise.
18785 * function.c (struct temp_slot): Likewise.
18786 * cfgloop.h (struct loop): Likewise.
18787
18788 PR debug/39485
18789 * function.c (use_register_for_decl): When not optimizing, disregard
18790 register keyword for variables with types containing methods.
18791
18792 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
18793
18794 PR middle-end/39447
18795 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
18796 (is_simple_operand): Call contains_component_ref_p before calling data
18797 reference analysis that would fail on COMPONENT_REFs.
18798
18799 * tree-vrp.c (search_for_addr_array): Fix formatting.
18800
18801 2009-03-18 Richard Guenther <rguenther@suse.de>
18802
18803 * tree-vect-transform.c (vect_loop_versioning): Fold the
18804 generated comparisons.
18805 * tree-vectorizer.c (set_prologue_iterations): Likewise.
18806 (slpeel_tree_peel_loop_to_edge): Likewise.
18807
18808 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18809
18810 PR middle-end/37805
18811 * opts.c (print_specific_help): In addition to `undocumented',
18812 accept `separate' and `joined' flags if passed alone. Describe
18813 output by the first matched one of those.
18814 (common_handle_option): Skip over empty strings.
18815 * gcc.c (display_help): Fix help string for `--help='.
18816 * doc/invoke.texi (Option Summary, Overall Options): With
18817 `--help=', classes and qualifiers can both be repeated, but
18818 only the latter can be negated. One should not pass only
18819 negated qualifiers. Fix markup and examples.
18820
18821 Revert
18822 2008-10-14 Jakub Jelinek <jakub@redhat.com>
18823 PR middle-end/37805
18824 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
18825 and -fhelp=separate.
18826
18827 2009-03-17 Jing Yu <jingyu@google.com>
18828
18829 PR middle-end/39378
18830 * function.h (struct rtl_data): Move is_thunk from here...
18831 (struct function): ...to here.
18832 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
18833 * varasm.c (assemble_start_function): Change is_thunk from crtl to
18834 cfun.
18835 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
18836 cfun.
18837 (alpha_does_function_need_gp, alpha_start_function): Likewise.
18838 (alpha_output_function_end_prologue): Likewise.
18839 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
18840 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
18841 (rs6000_output_function_epilogue): Likewise.
18842 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
18843
18844 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
18845
18846 PR target/39482
18847 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
18848 from different units in a single alternative.
18849 (*truncdfsf_i387): Ditto.
18850 (*truncxfsf2_mixed): Ditto.
18851 (*truncxfdf2_mixed): Ditto.
18852
18853 2009-03-17 Jakub Jelinek <jakub@redhat.com>
18854
18855 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
18856 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
18857
18858 PR debug/39474
18859 * tree-ssa-live.c (remove_unused_locals): Don't remove local
18860 unused non-artificial variables when not optimizing.
18861
18862 PR debug/39471
18863 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
18864 DW_TAG_imported_module even if decl is IMPORTED_DECL with
18865 NAMESPACE_DECL in its DECL_INITIAL.
18866
18867 PR middle-end/39443
18868 * optabs.c (set_user_assembler_libfunc): New function.
18869 * expr.h (set_user_assembler_libfunc): New prototype.
18870 * c-common.c: Include libfuncs.h.
18871 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
18872 for memcmp, memset, memcpy, memmove and abort.
18873 * Makefile.in (c-common.o): Depend on libfuncs.h.
18874
18875 PR debug/39412
18876 * dwarf2out.c (gen_inlined_enumeration_type_die,
18877 gen_inlined_structure_type_die, gen_inlined_union_type_die,
18878 gen_tagged_type_instantiation_die): Removed.
18879 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
18880 do nothing.
18881
18882 2009-03-17 Janis Johnson <janis187@us.ibm.com>
18883
18884 PR testsuite/38526
18885 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
18886 its use.
18887 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
18888 (check-parallel-%): Ditto.
18889 (check-consistency): Ditto.
18890
18891 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
18892
18893 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
18894 local variable rhs by NULL_TREE.
18895
18896 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
18897
18898 PR target/39477
18899 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
18900
18901 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
18902
18903 PR target/39476
18904 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
18905
18906 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
18907
18908 PR target/39473
18909 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
18910 for ms->sysv ABI calls only in 64bit mode.
18911
18912 * config/i386/i386.md (untyped_call): Support 32bit.
18913
18914 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
18915
18916 * doc/extend.texi: Replace x86_65 with x86_64.
18917
18918 2009-03-16 Jakub Jelinek <jakub@redhat.com>
18919
18920 PR tree-optimization/39455
18921 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
18922 mismatches for POINTER_TYPE_P (type).
18923 (number_of_iterations_le): Likewise.
18924
18925 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
18926
18927 * config/picochip/picochip.c: Removed profiling support.
18928 * config/picochip/picochip.md: Removed profiling instruction.
18929 * config/picochip/picochip.h: Removed profiling builtin.
18930
18931 2009-03-16 Joseph Myers <joseph@codesourcery.com>
18932
18933 * doc/install.texi (--with-host-libstdcxx): Document.
18934
18935 2009-03-14 Anatoly Sokolov <aesok@post.ru>
18936
18937 PR target/34299
18938 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
18939 generate a warning if the function name does not begin with
18940 "__vector" and the function has either the 'signal' or 'interrupt'
18941 attribute, from here to ...
18942 (avr_declare_function_name): ...here. New function.
18943 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
18944 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
18945
18946 2009-03-14 Jakub Jelinek <jakub@redhat.com>
18947
18948 PR bootstrap/39454
18949 * cse.c (fold_rtx): Don't modify original const_arg1 when
18950 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
18951 separate variable instead.
18952 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
18953 from out of range shift counts.
18954 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
18955
18956 2009-03-13 Catherine Moore <clm@codesourcery.com>
18957
18958 * config/i386/x-mingw32 (host-mingw32.o): Replace
18959 diagnostic.h with $(DIAGNOSTIC_H).
18960
18961 2009-03-12 Jakub Jelinek <jakub@redhat.com>
18962
18963 PR target/39431
18964 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
18965 predicate.
18966 * config/i386/sync.md (sync_compare_and_swap<mode>,
18967 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
18968 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
18969 into a register.
18970 (sync_double_compare_and_swapdi_pic,
18971 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
18972 cmpxchg8b_pic_memory_operand instead of just memory_operand.
18973
18974 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
18975
18976 PR target/39445
18977 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
18978
18979 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
18980
18981 PR target/39327
18982 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
18983 (avx_addsubv4df3): Likewise.
18984 (*avx_addsubv4sf3): Likewise.
18985 (sse3_addsubv4sf3): Likewise.
18986
18987 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
18988
18989 PR target/38824
18990 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
18991
18992 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
18993
18994 PR debug/39432
18995 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
18996 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
18997 registers for allocnos created from user-defined variables.
18998
18999 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19000
19001 PR target/39181
19002 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
19003 of non-integer mode as well.
19004
19005 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
19006
19007 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
19008 for functions for which the parameter types are unknown.
19009
19010 2009-03-11 Jakub Jelinek <jakub@redhat.com>
19011
19012 PR target/39137
19013 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
19014 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
19015 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
19016 * config/i386/i386.c (ix86_local_alignment): For
19017 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
19018 long long variables on the stack to avoid dynamic realignment.
19019 Allow the first argument to be a decl rather than type.
19020 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
19021
19022 2009-03-11 Nick Clifton <nickc@redhat.com>
19023
19024 PR target/5362
19025 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
19026 options.
19027 Add description to mno-lsim option.
19028 * config/mcore/mcore.h: Remove comment about deprecated m4align
19029 option.
19030 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
19031 * doc/invoke.texi: Add description of mno-lsim and
19032 mstack-increment options.
19033
19034 * config/fr30/fr30.opt: Document the -mno-lsim option.
19035 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
19036 and -mno-lsim options.
19037
19038 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19039
19040 * fold-const.c (fold_comparison): Only call fold_inf_compare
19041 if the mode supports infinities.
19042
19043 2009-03-11 Jason Merrill <jason@redhat.com>
19044
19045 PR debug/39086
19046 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
19047 end already did. Notice GIMPLE_CALL modifications of the result.
19048 Don't copy debug information from an ignored decl or a decl from
19049 another function.
19050
19051 2009-03-10 Richard Guenther <rguenther@suse.de>
19052 Nathan Froyd <froydnj@codesourcery.com>
19053
19054 PR middle-end/37850
19055 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
19056 (__divMODE3): Likewise.
19057
19058 2009-03-09 Jakub Jelinek <jakub@redhat.com>
19059
19060 PR tree-optimization/39394
19061 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
19062 DECL_SIZE_UNIT of variable length FIELD_DECLs.
19063
19064 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19065
19066 * recog.c (verfiy_changes): Disallow renaming of hard regs in
19067 inline asms for register asm ("") declarations.
19068
19069 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
19070
19071 * fold-const.c (fold_unary): Fix comment.
19072
19073 2009-03-07 Jan Hubicka <jh@suse.cz>
19074
19075 PR target/39361
19076 * tree-inline.c (setup_one_parameter): Do replacement of const
19077 argument by constant in SSA form.
19078
19079 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19080
19081 PR middle-end/38028
19082 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
19083 determine alignment passed to assign_stack_local.
19084 (assign_parms_unsplit_complex): Likewise.
19085 * except.c (sjlj_build_landing_pads): Likewise.
19086
19087 2009-03-06 Jakub Jelinek <jakub@redhat.com>
19088
19089 PR middle-end/39360
19090 * tree-flow.h (add_referenced_var): Return bool instead of void.
19091 * tree-dfa.c (add_referenced_var): Return result of
19092 referenced_var_check_and_insert call.
19093 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
19094 of referenced_var_check_and_insert.
19095
19096 PR debug/39372
19097 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
19098 (gen_variable_die): Emit DW_AT_location on abstract static variable's
19099 DIE, don't emit it if abstract origin already has it.
19100 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
19101 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
19102
19103 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19104
19105 * genpreds.c (needs_variable): Fix parentheses at variable name
19106 detection.
19107 (write_tm_constrs_h): Indent generated code.
19108
19109 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19110
19111 * doc/extend.texi (Function Attributes): Add documentation
19112 for isr attributes.
19113
19114 2009-03-06 Jakub Jelinek <jakub@redhat.com>
19115
19116 PR debug/39387
19117 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
19118 take locus from its DECL_SOURCE_LOCATION instead of input_location.
19119
19120 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
19121
19122 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
19123 the loop as bad.
19124
19125 2009-03-05 Jakub Jelinek <jakub@redhat.com>
19126
19127 PR debug/39379
19128 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
19129 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
19130
19131 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
19132
19133 * config/i386/i386.md (R8_REG, R9_REG): New constants.
19134 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
19135 constants instead of magic numbers.
19136 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
19137 (QI_REG_P): Ditto.
19138 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
19139 (x86_64_ms_abi_int_parameter_registers): Ditto.
19140 (x86_64_int_return_registers): Ditto.
19141 (ix86_maybe_switch_abi): Ditto.
19142 (ix86_expand_call): Ditto for clobbered_registers array.
19143 (ix86_hard_regno_mode_ok): Ditto.
19144 (x86_extended_QIreg_mentioned_p): Ditto.
19145
19146 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
19147
19148 PR tree-optimization/39349
19149 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
19150
19151 * combine.c (gen_lowpart_for_combine): Use omode when generating
19152 clobber.
19153
19154 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
19155
19156 PR rtl-optimization/39235
19157 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
19158
19159 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
19160
19161 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
19162
19163 2009-03-04 Richard Guenther <rguenther@suse.de>
19164
19165 PR tree-optimization/39362
19166 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
19167 that occur in abnormal PHIs should be varying.
19168
19169 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
19170
19171 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
19172 Extend comments.
19173 (simple_iv): Take loop as an argument instead of statement.
19174 * tree-scalar-evolution.h (simple_iv): Declaration changed.
19175 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
19176 to simple_iv.
19177 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
19178 Ditto.
19179 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
19180 * matrix-reorg.c (analyze_transpose): Ditto.
19181 * tree-data-ref.c (dr_analyze_innermost): Ditto.
19182 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
19183 * tree-predcom.c (ref_at_iteration): Ditto.
19184 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
19185
19186 2009-03-04 Richard Guenther <rguenther@suse.de>
19187
19188 PR tree-optimization/39358
19189 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
19190 escaped_id and callused_id.
19191 (solve_graph): Likewise.
19192
19193 2009-03-04 Richard Guenther <rguenther@suse.de>
19194
19195 PR tree-optimization/39339
19196 * tree-sra.c (try_instantiate_multiple_fields): Make it
19197 no longer ICE on the above.
19198
19199 2009-03-03 Joseph Myers <joseph@codesourcery.com>
19200
19201 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
19202 that fits within Pmode.
19203
19204 2009-03-03 Steve Ellcey <sje@cup.hp.com>
19205
19206 PR middle-end/10109
19207 * tm.texi (LIBCALL_VALUE): Update description.
19208
19209 2009-03-03 Steve Ellcey <sje@cup.hp.com>
19210
19211 PR middle-end/34443
19212 * doc/extend.texi (section): Update description.
19213
19214 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
19215
19216 PR middle-end/39345
19217 * tree-inline.c (remapped_type): New.
19218 (can_be_nonlocal): Call remapped_type instead of remap_type.
19219
19220 2009-03-03 Jakub Jelinek <jakub@redhat.com>
19221
19222 PR fortran/39354
19223 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
19224 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
19225
19226 2009-03-03 Richard Guenther <rguenther@suse.de>
19227
19228 PR middle-end/39272
19229 * tree.c (tree_nonartificial_location): New function.
19230 * tree.h (tree_nonartificial_location): Declare.
19231 * builtins.c (expand_builtin_memory_chk): Provide location
19232 of the call location for artificial function pieces.
19233 (maybe_emit_chk_warning): Likewise.
19234 (maybe_emit_sprintf_chk_warning): Likewise.
19235 (maybe_emit_free_warning): Likewise.
19236 * expr.c (expand_expr_real_1): Likewise.
19237
19238 2009-03-03 Jakub Jelinek <jakub@redhat.com>
19239
19240 PR tree-optimization/39343
19241 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
19242 COMPONENT_REF t has ARRAY_TYPE.
19243
19244 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
19245
19246 PR middle-end/39335
19247 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
19248 when the type precision of the induction variable should be
19249 larger than the type precision of nit.
19250 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
19251 * graphite.c (graphite_loop_normal_form): Same.
19252 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
19253
19254 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
19255
19256 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
19257 (*call_1_rex64_ms_sysv): Use named constants instead of magic
19258 numbers to describe clobbered registers.
19259 (*call_value_0_rex64_ms_sysv): Ditto.
19260 * config/i386/mmx.md (mmx_emms): Ditto.
19261 (mmx_femms): Ditto.
19262
19263 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
19264
19265 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
19266 of ABI_64.
19267
19268 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19269
19270 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
19271 (spu_section_type_flags): New function.
19272
19273 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
19274
19275 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
19276 reg_class_contents of FLOAT_REGS into a temporary.
19277
19278 2009-03-02 Richard Guenther <rguenther@suse.de>
19279 Ira Rosen <irar@il.ibm.com>
19280
19281 PR tree-optimization/39318
19282 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
19283 information to the vectorized statement.
19284
19285 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
19286
19287 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
19288 variable. Use defined names instead of magic constants for REX SSE
19289 registers.
19290
19291 2009-03-01 Richard Guenther <rguenther@suse.de>
19292
19293 PR tree-optimization/39331
19294 * omp-low.c (lower_send_shared_vars): Do not receive new
19295 values for the reference of DECL_BY_REFERENCE parms or results.
19296
19297 2009-03-01 Jan Hubicka <jh@suse.cz>
19298
19299 PR debug/39267
19300 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
19301 BLOCK_NONLOCALIZED_VAR): New macros.
19302 (tree_block): Add nonlocalized_vars.
19303 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
19304 gen_decl_die): Add origin argument. Allow generation of die with
19305 origin at hand only.
19306 (gen_member_die, gen_type_die_with_usage, force_decl_die,
19307 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
19308 of gen_*.
19309 (gen_block_die): Fix checking for unused blocks.
19310 (process_scope_var): Break out from .... ; work with origins only.
19311 (decls_for_scope) ... here; process nonlocalized list.
19312 (dwarf2out_ignore_block): Look for nonlocalized vars.
19313 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
19314 vars.
19315 (dump_scope_block): Dump them.
19316 * tree-inline.c (remap_decls): Handle nonlocalized vars.
19317 (remap_block): Likewise.
19318 (can_be_nonlocal): New predicate.
19319 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
19320
19321 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19322
19323 * configure: Regenerate.
19324
19325 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19326
19327 * optc-gen.awk: No need to duplicate option flags twice.
19328 Reuse help texts for duplicate options which do not have any.
19329
19330 * gcc.c (display_help): Document --version.
19331
19332 * gcc.c (main): If print_help_list and verbose_flag, ensure
19333 driver output comes before subprocess output.
19334
19335 * optc-gen.awk: Assign all remaining fields to help string,
19336 space-separated, for multi-line help in *.opt.
19337
19338 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
19339 -Wno-pedantic-ms-format is for MinGW targets only.
19340
19341 * doc/options.texi (Option file format): Fix bad indentation,
19342 restoring dropped sentence.
19343
19344 2009-02-28 Jan Hubicka <jh@suse.cz>
19345
19346 * tree-inline.c (tree_function_versioning): Output debug info.
19347
19348 2009-02-28 Jan Hubicka <jh@suse.cz>
19349
19350 PR debug/39267
19351 * tree-inline.c (setup_one_parameter): Do not copy propagate
19352 arguments when not optimizing.
19353
19354 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
19355
19356 PR target/39327
19357 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
19358 (avx_addsubv4df3): Likewise.
19359 (*avx_addsubv4sf3): Likewise.
19360 (sse3_addsubv4sf3): Likewise.
19361 (*avx_addsubv2df3): Likewise.
19362 (sse3_addsubv2df3): Likewise.
19363 (avx_unpckhps256): Correct item selectors.
19364 (avx_unpcklps256): Likewise.
19365 (avx_unpckhpd256): Likewise.
19366 (avx_unpcklpd256): Likewise.
19367
19368 2009-02-28 Jan Hubicka <jh@suse.cz>
19369
19370 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
19371 static vars.
19372 (copy_arguments_for_versioning): If var is declared don't declare it.
19373 (tree_function_versioning): First setup substitutions and then copy
19374 args.
19375
19376 2009-02-27 Jan Hubicka <jh@suse.cz>
19377
19378 PR debug/39267
19379 * cgraph.h (varpool_output_debug_info): Remove.
19380 * cgraphunit.c (varpool_output_debug_info): Remove.
19381 * dwarf2out.c (deferred_locations_struct): New struct
19382 (deferred_locations): New type.
19383 (deferred_locations_list): New static var.
19384 (deffer_location): New function.
19385 (gen_variable_die): Use it.
19386 (decls_for_scope): Output info on local static vars.
19387 (dwarf2out_finish): Process deferred locations.
19388 * varpool.c (varpool_output_debug_info): Remove.
19389
19390 2009-02-27 Jan Hubicka <jh@suse.cz>
19391
19392 PR debug/39267
19393 * tree.h (TREE_PROTECTED): Fix comment.
19394 (BLOCK_HANDLER_BLOCK): Remove.
19395 (struct tree_block): Remove handler_block add body_block.
19396 (inlined_function_outer_scope_p): New.
19397 (is_body_block): Remove.
19398 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
19399 * dwarf2out.c (is_inlined_entry_point): Remove.
19400 (add_high_low_attributes): Use inlined_function_outer_scope_p.
19401 (gen_block_die): Use is_inlined_entry_point check. Remove body block
19402 code.
19403 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
19404 * gimplify.c (gimplify_expr): Gimplify body blocks.
19405 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
19406 block with multiple subblocks.
19407 (dump_scope_block): Prettier output; dump more flags and info.
19408 (dump_scope_blocks): New.
19409 (remove_unused_locals): Use dump_scope_blocks.
19410 * tree-flow.h (dump_scope_blocks): Declare.
19411 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
19412 * stmt.c (is_body_block): Remove.
19413 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
19414 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
19415
19416 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
19417
19418 PR middle-end/39308
19419 * graphite.c (graphite_loop_normal_form): Do not call
19420 number_of_iterations_exit from a gcc_assert.
19421
19422 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19423
19424 * config/s390/s390.c (s390_swap_cmp): Look for conditional
19425 jumps if COND is NULL.
19426 (find_cond_jump): New function.
19427 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
19428 * config/s390/s390.md: Remove z10_cobra attribute value.
19429
19430 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
19431
19432 * config/alpha/alpha.h (alpha_expand_mov): Return false if
19433 force_const_mem returns NULL_RTX.
19434
19435 2009-02-26 Jan Hubicka <jh@suse.cz>
19436
19437 PR debug/39267
19438 * cgraph.h (varpool_output_debug_info): Remove.
19439 * cgraphunit.c (varpool_output_debug_info): Remove.
19440 * dwarf2out.c (deferred_locations_struct): New struct
19441 (deferred_locations): New type.
19442 (deferred_locations_list): New static var.
19443 (deffer_location): New function.
19444 (gen_variable_die): Use it.
19445 (decls_for_scope): Output info on local static vars.
19446 (dwarf2out_finish): Process deferred locations.
19447 * varpool.c (varpool_output_debug_info): Remove.
19448
19449 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
19450
19451 PR rtl-optimization/39241
19452 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
19453 to subreg_offset_representable_p.
19454
19455 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
19456
19457 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
19458 execute function prototype. Get f and nregs from max_reg_num
19459 and get_insns. Remove the first backward pass as it's dead,
19460 guard the forward pass by flag_expensive_optimizations.
19461 (rest_of_handle_regmove): Delete.
19462 (pass_regmove): Replace it with regmove_optimize.
19463
19464 2009-02-25 Martin Jambor <mjambor@suse.cz>
19465
19466 PR tree-optimization/39259
19467 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
19468 calls_alloca function flags.
19469 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
19470 calls are detected.
19471
19472 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
19473
19474 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
19475 flags_set_1_rtx, flags_set_1_set): Delete.
19476 (regmove_optimize): Do not call mark_flags_life_zones.
19477
19478 2009-02-24 Julian Brown <julian@codesourcery.com>
19479
19480 PR target/35965
19481 * config/arm/arm.c (require_pic_register): Only set
19482 cfun->machine->pic_reg once per function.
19483
19484 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
19485
19486 * doc/invoke.texi (Link Options): Document an easier way to pass
19487 options that take arguments to the GNU linker using -Xlinker and -Wl.
19488
19489 2009-02-24 Steve Ellcey <sje@cup.hp.com>
19490
19491 PR target/33785
19492 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
19493
19494 2009-02-24 Richard Guenther <rguenther@suse.de>
19495
19496 PR debug/39285
19497 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
19498
19499 2009-02-24 Richard Guenther <rguenther@suse.de>
19500 Zdenek Dvorak <ook@ucw.cz>
19501
19502 PR tree-optimization/39233
19503 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
19504 from converting them to a generic type.
19505
19506 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
19507
19508 PR tree-optimization/39260
19509 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
19510 contains a condition with a real type.
19511 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
19512
19513 2009-02-23 Jason Merrill <jason@redhat.com>
19514
19515 PR c++/38880
19516 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
19517 narrowing_initializer_constant_valid_p.
19518 (narrowing_initializer_constant_valid_p): Don't return
19519 null_pointer_node for adding a pointer to itself.
19520
19521 2009-02-23 Jan Hubicka <jh@suse.cz>
19522
19523 PR c/12245
19524 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
19525 resizing.
19526
19527 2009-02-23 Jan Hubicka <jh@suse.cz>
19528
19529 PR tree-optimization/37709
19530 * tree.c (block_ultimate_origin): Move here from dwarf2out.
19531 * tree.h (block_ultimate_origin): Declare.
19532 * dwarf2out.c (block_ultimate_origin): Move to tree.c
19533 * tree-ssa-live.c (remove_unused_scope_block_p):
19534 Eliminate blocks containig no instructions nor live variables nor
19535 nested blocks.
19536 (dump_scope_block): New function.
19537 (remove_unused_locals): Enable removal of dead blocks by default;
19538 enable dumping at TDF_DETAILS.
19539
19540 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
19541
19542 * config/i386/i386.c (classify_argument): Don't allow COImode
19543 and OImode.
19544 (function_arg_advance_32): Don't allow OImode.
19545 (function_arg_32): Likewise.
19546 (function_value_32): Likewise.
19547 (return_in_memory_32): Likewise.
19548 (function_arg_64): Remove OImode comment.
19549
19550 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
19551
19552 PR target/39261
19553 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
19554 ix86_expand_vector_set for V4DImode in 64bit mode only.
19555 (ix86_expand_vector_init_one_var): Likewise.
19556
19557 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
19558
19559 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
19560
19561 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
19562
19563 PR bootstrap/39257
19564 * loop-iv.c: Revert last change.
19565 * emit-rtl.c: Likewise.
19566
19567 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
19568
19569 PR target/39256
19570 * config/i386/i386.c (type_natural_mode): Remove an extra
19571 space in the warning message.
19572 (function_value_32): Handle 32-byte vector modes.
19573 (return_in_memory_32): Likewise.
19574
19575 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
19576
19577 * loop-iv.c (truncate_value): New function.
19578 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
19579 of lowpart_subreg.
19580 (lowpart_subreg): Move to...
19581 * emit-rtl.c: ...here.
19582
19583 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
19584
19585 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
19586 accidental and undocumented change at revision 140860.
19587
19588 2009-02-21 Joseph Myers <joseph@codesourcery.com>
19589
19590 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
19591 take gimple_seq * arguments.
19592 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
19593 types_compatible_p langhook.
19594
19595 2009-02-20 Mark Mitchell <mark@codesourcery.com>
19596 Joseph Myers <joseph@codesourcery.com>
19597
19598 * config/arm/arm.c (arm_builtin_va_list): New function.
19599 (arm_expand_builtin_va_start): Likewise.
19600 (arm_gimplify_va_arg_expr): Likewise.
19601 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
19602 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
19603 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
19604 (va_list_type): New variable.
19605 (arm_mangle_type): Mangle va_list_type appropriately.
19606
19607 2009-02-20 Jakub Jelinek <jakub@redhat.com>
19608
19609 PR middle-end/39157
19610 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
19611 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
19612 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
19613 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
19614 parameter to 1000 for -O1 by default.
19615 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
19616 parameter.
19617 * loop-invariant.c: Include params.h.
19618 (move_loop_invariants): Don't call move_single_loop_invariants on
19619 very large loops.
19620
19621 2009-02-20 Jaka Mocnik <jaka@xlab.si>
19622
19623 * calls.c (emit_library_call_value_1): Use slot_offset instead of
19624 offset when calculating bounds for indexing stack_usage_map. Fixes
19625 a buffer overflow with certain target setups.
19626
19627 2009-02-20 Jakub Jelinek <jakub@redhat.com>
19628
19629 PR target/39240
19630 * calls.c (expand_call): Clear try_tail_call if caller and callee
19631 disagree in promotion of function return value.
19632
19633 2009-02-19 Jakub Jelinek <jakub@redhat.com>
19634
19635 PR target/39175
19636 * c-common.c (c_determine_visibility): If visibility changed and
19637 DECL_RTL has been already set, call make_decl_rtl to update symbol
19638 flags.
19639
19640 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
19641
19642 PR c++/39188
19643 * varasm.c (assemble_variable): Don't check DECL_NAME when
19644 globalizing a variable.
19645
19646 2009-02-19 Joseph Myers <joseph@codesourcery.com>
19647
19648 PR c/38483
19649 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
19650 expression before any __builtin_trap call.
19651 * c-typeck.c (build_function_call): Convert and check function
19652 arguments before generating a call to a trap. Evaluate the
19653 function arguments before the trap.
19654
19655 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
19656
19657 PR target/39228
19658 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
19659 (UNSPEC_FXAM_MEM): New unspec.
19660 (fxam<mode>2_i387_with_temp): New insn and split pattern.
19661 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
19662 memory using fxam<mode>2_i387_with_temp to remove excess precision.
19663
19664 2009-02-19 Richard Guenther <rguenther@suse.de>
19665
19666 PR tree-optimization/39207
19667 PR tree-optimization/39074
19668 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
19669 storedanything_tree): New.
19670 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
19671 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
19672 (build_succ_graph): Add edges from STOREDANYTHING to all
19673 non-direct nodes.
19674 (init_base_vars): Initialize STOREDANYTHING.
19675 (compute_points_to_sets): Free substitution info after
19676 building the succ graph.
19677 (ipa_pta_execute): Likewise.
19678
19679 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
19680 field.
19681 (do_ds_constraint): Do not add to special var or non-pointer
19682 field solutions.
19683 (type_could_have_pointers): Split out from ...
19684 (could_have_pointers): ... here. For arrays use the element type.
19685 (create_variable_info_for): Initialize may_have_pointers.
19686 (new_var_info): Likewise.
19687 (handle_lhs_call): Make the HEAP variable unknown-sized.
19688 (intra_create_variable_infos): Use a type with pointers for
19689 PARM_NOALIAS, make it unknown-sized.
19690
19691 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
19692
19693 PR target/39224
19694 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
19695
19696 2009-02-18 Jason Merrill <jason@redhat.com>
19697
19698 PR target/39179
19699 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
19700 value if DECL_EXTERNAL.
19701 * tree-sra.c (sra_walk_gimple_assign): Likewise.
19702 * target.h (gcc_target::binds_local_p): Clarify "module".
19703 * tree.h (TREE_PUBLIC): Clarify "module".
19704
19705 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
19706
19707 PR target/38891
19708 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
19709 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
19710
19711 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
19712
19713 PR target/39082
19714 * c.opt (Wabi): Support C and ObjC.
19715 (Wpsabi): New.
19716
19717 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
19718
19719 * config/i386/i386.c (classify_argument): Warn once about the ABI
19720 change when passing union with long double.
19721
19722 * doc/invoke.texi: Update -Wabi for warning psABI changes.
19723
19724 2009-02-18 Joseph Myers <joseph@codesourcery.com>
19725
19726 PR c/35447
19727 * c-parser.c (c_parser_compound_statement): Always enter and leave
19728 a scope.
19729
19730 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19731
19732 PR target/34587
19733 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
19734
19735 2009-02-18 Jakub Jelinek <jakub@redhat.com>
19736
19737 PR tree-optimization/36922
19738 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
19739 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
19740 Likewise.
19741
19742 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
19743
19744 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
19745 to 0 for EABI64.
19746
19747 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
19748
19749 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
19750
19751 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
19752
19753 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
19754 tree sharing.
19755
19756 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
19757 Richard Sandiford <rdsandiford@googlemail.com>
19758
19759 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
19760 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
19761 (loongson_biadd): ...this.
19762
19763 2009-02-17 Richard Guenther <rguenther@suse.de>
19764
19765 PR tree-optimization/39202
19766 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
19767 a var make sure to follow existing collapses.
19768
19769 2009-02-17 Richard Guenther <rguenther@suse.de>
19770
19771 PR middle-end/39214
19772 * langhooks.c (lhd_print_error_function): Check for NULL block.
19773
19774 2009-02-17 Richard Guenther <rguenther@suse.de>
19775
19776 PR tree-optimization/39204
19777 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
19778 of the PHI arg.
19779
19780 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
19781
19782 * config/soft-fp/double.h: Update from glibc CVS.
19783
19784 2009-02-17 Richard Guenther <rguenther@suse.de>
19785
19786 PR tree-optimization/39207
19787 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
19788 strict-aliasing warnings for pointers pointing to NULL.
19789
19790 2009-02-16 Joseph Myers <joseph@codesourcery.com>
19791
19792 PR c/35446
19793 * c-parser.c (c_parser_braced_init): Call pop_init_level when
19794 skipping until next close brace.
19795
19796 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
19797
19798 PR target/37049
19799 * config/i386/i386.c (ix86_expand_push): Set memory alignment
19800 to function argument boundary.
19801
19802 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
19803
19804 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
19805 in the lea_add. Reload eventually constraints it properly.
19806 * config/picochip/constraints.md: Remove the target constraint
19807 "b", since it is not needed anymore.
19808
19809 2009-02-16 Jakub Jelinek <jakub@redhat.com>
19810
19811 * gthr-dce.h: Uglify function parameter and local variable names.
19812 * gthr-gnat.h: Likewise.
19813 * gthr-mipssde.h: Likewise.
19814 * gthr-nks.h: Likewise.
19815 * gthr-posix95.h: Likewise.
19816 * gthr-posix.h: Likewise.
19817 * gthr-rtems.h: Likewise.
19818 * gthr-single.h: Likewise.
19819 * gthr-solaris.h: Likewise.
19820 * gthr-tpf.h: Likewise.
19821 * gthr-vxworks.h: Likewise.
19822 * gthr-win32.h: Likewise.
19823
19824 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
19825
19826 PR target/39196
19827 * config/i386/i386.md: Restrict the new peephole2 to move
19828 between MMX/SSE registers.
19829
19830 2009-02-15 Richard Guenther <rguenther@suse.de>
19831
19832 Revert
19833 2009-02-13 Richard Guenther <rguenther@suse.de>
19834
19835 * configure.ac: Enable LFS.
19836 * configure: Re-generate.
19837 * config.in: Likewise.
19838
19839 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19840
19841 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
19842 spu_srqwbyte, spu_srqwbytebc): Define.
19843 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
19844 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
19845 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
19846 "shrqby_<mode>"): New insn-and-split patterns.
19847 * config/spu/spu.c (expand_builtin_args): Determine and return
19848 number of operands using spu_builtin_description data.
19849 (spu_expand_builtin_1): Use it.
19850
19851 2009-02-13 Steve Ellcey <sje@cup.hp.com>
19852
19853 PR target/38056
19854 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
19855 TARGET_CONST_GP.
19856
19857 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
19858
19859 PR target/39149
19860 * config/i386/i386.c (override_options): Correct warning
19861 messages for -malign-loops, -malign-jumps and -malign-functions.
19862
19863 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
19864
19865 PR target/39152
19866 * config/i386/i386.md: Restrict the new peephole2 to move
19867 between the general purpose registers.
19868
19869 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
19870
19871 PR target/39162
19872 * config/i386/i386.c (type_natural_mode): Add a new argument.
19873 Return the original mode and warn ABI change if vector size is 32byte.
19874 (function_arg_advance): Updated.
19875 (function_arg): Likewise.
19876 (ix86_function_value): Likewise.
19877 (ix86_return_in_memory): Likewise.
19878 (ix86_sol10_return_in_memory): Likewise.
19879 (ix86_gimplify_va_arg): Likewise.
19880 (function_arg_32): Don't warn ABX ABI change here.
19881 (function_arg_64): Likewise.
19882
19883 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
19884
19885 * loop-iv.c (implies_p): In the final case, test that operands 0
19886 of the two comparisons match.
19887
19888 * config/bfin/bfin.c (find_prev_insn_start): New function.
19889 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
19890 (find_next_insn_start): Move.
19891
19892 2009-02-13 Richard Guenther <rguenther@suse.de>
19893
19894 * configure.ac: Enable LFS.
19895 * configure: Re-generate.
19896 * config.in: Likewise.
19897
19898 2009-02-13 Joseph Myers <joseph@codesourcery.com>
19899
19900 PR c/35444
19901 * c-parser.c (c_parser_parms_list_declarator): Discard pending
19902 sizes on syntax error after some arguments have been parsed.
19903
19904 2009-02-12 Jakub Jelinek <jakub@redhat.com>
19905
19906 * doc/invoke.texi (-fira): Remove.
19907
19908 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
19909
19910 * caller-save.c: Replace regclass.c with reginfo.c in comments.
19911 * recog.c: Likewise.
19912 * rtl.h: Likewise.
19913
19914 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
19915
19916 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
19917 (umul_ppmm): Likewise.
19918 (count_leading_zeros): Likewise.
19919 (count_trailing_zeros): Likewise.
19920 (UMUL_TIME): Likewise.
19921
19922 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
19923
19924 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
19925 soft-fp/t-softfp to tmake_file.
19926
19927 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
19928 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
19929 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
19930 IA64_BUILTIN_INFQ]: New.
19931 (ia64_init_builtins): Initialize __builtin_infq,
19932 __builtin_fabsq and __builtin_copysignq if not HPUX.
19933 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
19934 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
19935
19936 * config/ia64/lib1funcs.asm (__divtf3): Define only if
19937 SHARED is defined.
19938 (__fixtfti): Likewise.
19939 (__fixunstfti): Likewise.
19940 (__floattitf): Likewise.
19941
19942 * config/ia64/libgcc-glibc.ver: New.
19943 * config/ia64/t-fprules-softfp: Likewise.
19944 * config/ia64/sfp-machine.h: Likewise.
19945
19946 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
19947 (LIBGCC2_TF_CEXT): Likewise.
19948 (TF_SIZE): Likewise.
19949 (TARGET_INIT_LIBFUNCS): Likewise.
19950
19951 * config/ia64/t-glibc (SHLINB_MAPFILES):
19952 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
19953
19954 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
19955
19956 * config/i386/i386.c (construct_container): Rewrite processing
19957 BLKmode with X86_64_SSE_CLASS.
19958
19959 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
19960
19961 PR target/39152
19962 * config/i386/i386.md: Replace simplify_replace_rtx with
19963 replace_rtx in the new peephole2.
19964
19965 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
19966
19967 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
19968 loop unrolling do not happen at -O2.
19969
19970 2009-02-12 Michael Matz <matz@suse.de>
19971
19972 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
19973
19974 2009-02-12 Jakub Jelinek <jakub@redhat.com>
19975
19976 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
19977 for -g3.
19978
19979 2009-02-12 Ben Elliston <bje@au.ibm.com>
19980
19981 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
19982 patterns when updating the back chain. Missed in the 2009-02-10
19983 change.
19984
19985 2009-02-11 Janis Johnson <janis187@us.ibm.com>
19986
19987 * doc/extend.texi (Decimal Floating Types): Update identifier of
19988 draft TR and list of missing support.
19989
19990 2009-02-11 Jakub Jelinek <jakub@redhat.com>
19991
19992 PR middle-end/39154
19993 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
19994 bit to variable length decl's flags, add it also to its
19995 pointer replacement variable.
19996
19997 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
19998 Jakub Jelinek <jakub@redhat.com>
19999
20000 PR target/39118
20001 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
20002 (memory_blockage): New expander.
20003 (*memory_blockage): New insn pattern.
20004 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
20005 instead of general blockage at the end of function prologue when
20006 frame pointer is used to access red zone area. Do not emit blockage
20007 when profiling, it is emitted in generic code.
20008 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
20009 function epilogue when frame pointer is used to access red zone area.
20010
20011 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
20012
20013 PR target/38824
20014 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
20015 by arithmetic with memory operands.
20016 * config/i386/predicates.md (commutative_operator): New.
20017
20018 2009-02-10 Janis Johnson <janis187@us.ibm.com>
20019
20020 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
20021 bulleted lists.
20022
20023 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
20024
20025 * alias.h (record_alias_subset): Declare.
20026 * alias.c (record_alias_subset): Make global.
20027
20028 2009-02-10 Nick Clifton <nickc@redhat.com>
20029
20030 * tree-parloops.c: Change license to GPLv3.
20031 * ipa-struct-reorg.c: Change license to GPLv3.
20032 * ipa-struct-reorg.h: Change license to GPLv3.
20033
20034 2009-02-10 Steve Ellcey <sje@cup.hp.com>
20035
20036 PR c/39084
20037 * c-decl.c (start_struct): Return NULL on error.
20038
20039 2009-02-10 Jakub Jelinek <jakub@redhat.com>
20040
20041 PR middle-end/39124
20042 * cfgloopmanip.c (remove_path): Call remove_bbs after
20043 cancel_loop_tree, not before it.
20044
20045 PR target/39139
20046 * function.h (struct function): Add has_local_explicit_reg_vars bit.
20047 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
20048 VAR_DECLs were seen.
20049 * tree-ssa-live.c (remove_unused_locals): Recompute
20050 cfun->has_local_explicit_reg_vars.
20051 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
20052 copies or clearings if cfun->has_local_explicit_reg_vars.
20053
20054 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
20055
20056 PR target/39118
20057 * config/i386/i386.c (expand_prologue): Emit blockage at the end
20058 of function prologue when frame pointer is used to access
20059 red zone area.
20060
20061 2009-02-10 Richard Guenther <rguenther@suse.de>
20062
20063 PR middle-end/39127
20064 * gimplify.c (gimple_regimplify_operands): Always look if
20065 we need to create a temporary.
20066
20067 2009-02-10 Richard Guenther <rguenther@suse.de>
20068
20069 PR tree-optimization/39132
20070 * tree-loop-distribution.c (todo): New global var.
20071 (generate_memset_zero): Trigger TODO_rebuild_alias.
20072 (tree_loop_distribution): Return todo.
20073
20074 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
20075
20076 PR target/39119
20077 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
20078 (x86_64_reg_class_name): Removed.
20079 (classify_argument): Return 0 if bytes > 32. Return 0 if the
20080 first one isn't X86_64_SSE_CLASS or any other ones aren't
20081 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
20082 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
20083 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
20084 and 3 X86_64_SSEUP_CLASS.
20085 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
20086 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
20087
20088 2009-02-10 Ben Elliston <bje@au.ibm.com>
20089
20090 * config/rs6000/rs6000.md (allocate_stack): Always use an update
20091 form instruction to update the stack back chain word, even if the
20092 user has disabled the generation of update instructions.
20093 (movdi_<mode>_update_stack): New.
20094 (movsi_update_stack): Likewise.
20095 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
20096 always use an update form instruction to update the stack back
20097 chain word.
20098
20099 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
20100
20101 PR middle-end/38953
20102 * graphite.c (if_region_set_false_region): After moving a region in
20103 the false branch of a condition, remove the empty dummy basic block.
20104 (gloog): Remove wrong fix for PR38953.
20105
20106 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20107
20108 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
20109 generation due to implicit sign extension.
20110
20111 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
20112
20113 PR middle-end/38981
20114 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
20115 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
20116
20117 2009-02-09 Richard Guenther <rguenther@suse.de>
20118
20119 PR middle-end/35202
20120 * convert.c (convert_to_real): Disable (float)fn((double)x)
20121 to fnf(x) conversion if errno differences may occur and
20122 -fmath-errno is set.
20123
20124 2009-02-07 Anatoly Sokolov <aesok@post.ru>
20125
20126 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
20127 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
20128 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
20129
20130 2009-02-06 Joseph Myers <joseph@codesourcery.com>
20131
20132 PR c/35434
20133 * c-common.c (handle_alias_attribute): Disallow attribute for
20134 anything not a FUNCTION_DECL or VAR_DECL.
20135
20136 2009-02-06 Janis Johnson <janis187@us.ibm.com>
20137
20138 PR c/39035
20139 * real.c (do_compare): Special-case compare of zero against
20140 decimal float value.
20141
20142 2009-02-06 Joseph Myers <joseph@codesourcery.com>
20143
20144 PR c/36432
20145 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
20146 as indicating flexible array members unless the field itself is
20147 being declarared as the incomplete array.
20148
20149 2009-02-06 Jan Hubicka <jh@suse.cz>
20150
20151 PR tree-optimization/38844
20152 * ipa-inline.c (try_inline): Stop inlining recursion when edge
20153 is already inlined.
20154
20155 2009-02-06 Richard Guenther <rguenther@suse.de>
20156
20157 PR middle-end/38977
20158 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
20159 fork because we may expand it as __gcov_fork.
20160
20161 2009-02-06 Nick Clifton <nickc@redhat.com>
20162
20163 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
20164
20165 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
20166
20167 PR tree-optimization/35659
20168 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
20169 vn_phi_eq): Shortcut if hashcode does not match.
20170 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
20171 NULL operands.
20172 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
20173 and avoid iterative_hash_expr.
20174 (FOR_EACH_VALUE_ID_IN_SET): New.
20175 (value_id_compare): Remove.
20176 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
20177 sort expressions by value id.
20178
20179 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
20180
20181 PR target/38991
20182 * config/sh/predicates.md (general_movsrc_operand): Don't check
20183 the subreg of system registers here.
20184
20185 2009-02-05 Jakub Jelinek <jakub@redhat.com>
20186
20187 PR c++/39106
20188 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
20189 on the copied decl.
20190
20191 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
20192
20193 PR rtl-optimization/39110
20194 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
20195 addresses, not aligned ones.
20196
20197 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
20198 Richard Guenther <rguenther@suse.de>
20199
20200 PR tree-optimization/39100
20201 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
20202 comment says and add edges.
20203
20204 2009-02-05 Joseph Myers <joseph@codesourcery.com>
20205
20206 PR c/35435
20207 * c-common.c (handle_tls_model_attribute): Ignore attribute for
20208 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
20209
20210 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
20211
20212 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
20213 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
20214 register_bb_in_sese, new_sese, free_sese): Moved.
20215 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
20216 outermost_loop_in_scop, build_scop_iteration_domain,
20217 expand_scalar_variables_ssa_name, get_vdef_before_scop,
20218 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
20219 Use loop_in_sese_p instead of loop_in_scop_p.
20220 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
20221 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
20222 (scopdet_basic_block_info): Fix bug in scop detection.
20223 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
20224 eq_loop_to_cloog_loop): Remove.
20225 (nb_loops_around_loop_in_scop, nb_loop
20226 ref_nb_loops): Moved here...
20227 * graphite.h (ref_nb_loops): ... from here.
20228 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
20229 (loop_domain_dim, loop_iteration_vector_dim): Remove.
20230 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
20231 * testsuite/gcc.dg/graphite/scop-19.c: New
20232
20233 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
20234 Hans-Peter Nilsson <hp@axis.com>
20235
20236 PR rtl-optimization/37889
20237 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
20238 Move offset handling from PLUS to before the switch. Use new
20239 arguments when considering SYMBOL_REFs too.
20240 (rtx_addr_can_trap_p): Pass dummy offset and size.
20241 (enum may_trap_p_flags): Remove.
20242 (may_trap_p_1): Pass size from MEM_SIZE.
20243
20244 PR rtl-optimization/38921
20245 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
20246 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
20247 * rtlanal.c (may_trap_after_code_motion_p): Delete.
20248 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
20249
20250 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
20251
20252 AVX Programming Reference (January, 2009)
20253 * config/i386/sse.md (*vpclmulqdq): New.
20254
20255 2009-02-04 Jakub Jelinek <jakub@redhat.com>
20256
20257 PR tree-optimization/38977
20258 PR gcov-profile/38292
20259 * calls.c (special_function_p): Disregard __builtin_ prefix.
20260
20261 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
20262
20263 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
20264 non-indexable addresses even before reload.
20265
20266 2009-02-03 Joseph Myers <joseph@codesourcery.com>
20267
20268 PR c/29129
20269 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
20270 as having variable size. Do not give an error for unnamed
20271 parameters with [*] declarators. Give a warning for type names
20272 with [*] declarators and mark them as variable size.
20273 * c-parser.c (c_parser_sizeof_expression): Do not give an error
20274 for sizeof applied to [*] type names.
20275
20276 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
20277
20278 PR C++/36607
20279 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
20280
20281 2009-02-03 Jakub Jelinek <jakub@redhat.com>
20282
20283 * gcc.c (process_command): Update copyright notice dates.
20284 * gcov.c (print_version): Likewise.
20285 * gcov-dump.c (print_version): Likewise.
20286 * mips-tfile.c (main): Likewise.
20287 * mips-tdump.c (main): Likewise.
20288
20289 2009-02-03 Joseph Myers <joseph@codesourcery.com>
20290
20291 PR c/35433
20292 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
20293 for composite type involving a zero-length array type.
20294
20295 2009-02-03 Jakub Jelinek <jakub@redhat.com>
20296
20297 PR target/35318
20298 * function.c (match_asm_constraints_1): Skip over
20299 initial optional % in the constraint.
20300
20301 PR inline-asm/39059
20302 * c-parser.c (c_parser_postfix_expression): If fixed point is not
20303 supported, don't accept FIXED_CSTs.
20304 * c-decl.c (finish_declspecs): Error if fixed point is not supported
20305 and _Sat is used without _Fract/_Accum. Set specs->type to
20306 integer_type_node for cts_fract/cts_accum if fixed point is not
20307 supported.
20308
20309 2009-02-02 Catherine Moore <clm@codesourcery.com>
20310
20311 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
20312
20313 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
20314
20315 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
20316 (ABI_HAS_64BIT_SYMBOLS): Use it.
20317 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
20318
20319 2009-02-02 Paul Brook <paul@codesourcery.com>
20320
20321 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
20322
20323 2009-02-02 Jakub Jelinek <jakub@redhat.com>
20324
20325 PR inline-asm/39058
20326 * recog.h (asm_operand_ok): Add constraints argument.
20327 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
20328 recurse on matching constraint.
20329 (check_asm_operands): Pass constraints as 3rd argument to
20330 asm_operand_ok. Don't look up matching constraint here.
20331 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
20332 to asm_operand_ok.
20333
20334 2009-02-02 Ben Elliston <bje@au.ibm.com>
20335
20336 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
20337 TARGET_NARROW_VOLATILE_BITFIELD macro names.
20338
20339 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20340
20341 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
20342 information. Remove some obsolete information. Reorganize.
20343
20344 * config/pa/fptr.c: Revert license to GPL 2.
20345 * config/pa/milli64.S: Likewise.
20346
20347 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
20348
20349 PR target/38904
20350 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
20351 LIBRARY name in, instead of hard-coding it.
20352 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
20353 extra target make frag to tmake_files according to EH model.
20354 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20355 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
20356 frags that define makefile variable EH_MODEL appropriately.
20357 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
20358 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
20359 to "-sjlj" according to type of EH configured.
20360 (LIBGCC_SONAME): Concatenate it to shared library base name.
20361 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
20362 to "_sjlj" according to type of EH configured.
20363 (LIBGCC_SONAME): Concatenate it to shared library base name.
20364 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
20365 (SHLIB_LINK): Add missing semicolon to if-else construct.
20366 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
20367 string value of "pe_dll" command-line option.
20368 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
20369 (SHLIB_SONAME): Use it when overriding t-cygming default.
20370 (SHLIB_IMPLIB): Override t-cygming default.
20371 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
20372 string value of "pe_dll" command-line option.
20373
20374 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
20375
20376 PR target/38952
20377 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
20378 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
20379
20380 2009-01-31 Richard Guenther <rguenther@suse.de>
20381
20382 PR tree-optimization/38937
20383 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
20384 computing the transitive closure.
20385
20386 2009-01-30 Richard Guenther <rguenther@suse.de>
20387
20388 PR tree-optimization/39041
20389 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
20390 Propagate variable indices only if the types match for this stmt.
20391
20392 2009-01-30 Jakub Jelinek <jakub@redhat.com>
20393
20394 PR target/39013
20395 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
20396 inline but never defined.
20397
20398 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
20399
20400 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
20401 (*insv_h_di_reg_extimm): New insn.
20402 (*insv_l<mode>_reg_extimm): New insn.
20403
20404 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
20405
20406 * config/picochip/picochip.c (flag_conserve_stack): set
20407 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
20408 fconserve-stack. Reduce call-overhead used by inliner.
20409
20410 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
20411
20412 PR/38157
20413 * common.opt (flag_conserve_stack): Initialised to zero.
20414
20415 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
20416
20417 PR/39002
20418 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
20419 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
20420 method.
20421
20422 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
20423
20424 * ira-color.c (allocno_reload_assign): Update comments.
20425 * regmove.c (regmove_optimize): Likewise.
20426
20427 * ra.h: Removed.
20428
20429 2009-01-29 Robert Millan <rmh@aybabtu.com>
20430
20431 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
20432 * config/i386/kopensolaris-gnu.h: New file. Undefine
20433 `MD_UNWIND_SUPPORT'.
20434 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
20435
20436 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
20437
20438 PR tree-optimization/39007
20439 * tree-loop-distribution.c (generate_builtin): Use
20440 recompute_dominator to compute the immediate dominator of the
20441 basic block just after the loop.
20442
20443 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20444
20445 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
20446 (ASM_OUTPUT_DWARF_PCREL): Define.
20447
20448 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
20449
20450 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
20451 * doc/passes.texi: Remove entries about regclass, local-alloc, and
20452 global. Modify entries about regmove and IRA.
20453
20454 * ra-conflict.c: Remove the file.
20455
20456 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
20457
20458 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
20459 (pass_regclass_init): Rename to pass_reginfo_init.
20460
20461 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
20462
20463 * toplev.h (flag_ira): Remove.
20464
20465 * caller-save.c (setup_save_areas): Remove flag_ira.
20466
20467 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
20468
20469 * global.c: Remove the file.
20470
20471 * opts.c (decode_options): Remove flag_ira.
20472
20473 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
20474
20475 * regmove.c: Modify file description.
20476 (find_use_as_address, try_auto_increment): Define them only if
20477 AUTO_INC_DEC is defined.
20478 (replacement_quality, replace_in_call_usage, fixup_match_1,
20479 stable_and_no_regs_but_for_p): Remove.
20480 (reg_set_in_bb): Make it static.
20481 (regmove_optimize): Remove flag_ira and code which worked for
20482 !flag_ira.
20483
20484 * local-alloc.c: Remove the file.
20485
20486 * common.opt (fira): Remove.
20487
20488 * ira.c: Include except.h.
20489 (eliminable_regset): Move from global.c.
20490 (mark_elimination): Ditto. Remove flag_ira.
20491 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
20492 equiv_mem_modified, validate_equiv_mem_from_store,
20493 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
20494 contains_replace_regs, memref_referenced_p, memref_used_between_p,
20495 no_equiv, recorded_label_ref): Move from local-alloc.c.
20496 (update_equiv_regs): Ditto. Make it static.
20497 (print_insn_chain, print_insn_chains): Move it from global.c.
20498 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
20499 (build_insn_chain): Ditto. Make it static.
20500 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
20501 Rename to init_live_subregs.
20502 (gate_ira): Remove flag_ira.
20503
20504 * regclass.c: Rename reginfo.c. Change file description.
20505 (FORBIDDEN_INC_DEC_CLASSES): Remove.
20506 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
20507 (init_reg_sets_1): Remove code for evaluation of
20508 reg_class_superclasses and losing_caller_save_reg_set.
20509 (init_regs): Remove init_reg_autoinc.
20510 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
20511 ok_for_base_p_nonstrict): Remove.
20512 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
20513 (pass_regclass_init): Rename to pass_reginfo_init. Modify
20514 corresponding entries.
20515 (dump_regclass, record_operand_costs, scan_one_insn,
20516 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
20517 record_address_regs, auto_inc_dec_reg_p): Remove.
20518 (gt-regclass.h): Rename to gt-reginfo.h.
20519
20520 * rtl.h (dump_global_regs, retry_global_alloc,
20521 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
20522
20523 * Makefile.in (RA_H): Remove.
20524 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
20525 Rename regclass.o to reginfo.o.
20526 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
20527 gt-reginfo.h.
20528 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
20529 (GTFILES): Rename regclass.c to reginfo.c.
20530
20531 * passes.c (init_optimization_passes): Remove pass_local_alloc and
20532 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
20533
20534 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20535 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
20536 Remove flag_ira.
20537 (finish_spills): Ditto. Remove code for !flag_ira.
20538
20539 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
20540
20541 PR middle-end/35854
20542 * doc/invoke.texi (rtl debug options): Complete rewrite.
20543 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
20544 to auto_inc_dec".
20545 * mode-switching.c (pass_mode_switching): Rename pass from
20546 "mode-sw" to "mode_sw".
20547 * except.c (pass_convert_to_eh_ranges): Rename pass from
20548 "eh-ranges" to "eh_ranges".
20549 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
20550 to "subreg1".
20551
20552
20553 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
20554 Alexander Monakov <amonakov@ispras.ru>
20555
20556 PR middle-end/38857
20557 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
20558 register.
20559 (move_exprs_to_boundary): Change return type and pass through
20560 should_move from move_op. Relax assert. Update usage ...
20561 (schedule_expr_on_boundary): ... here. Use should_move instead of
20562 cant_move.
20563 (move_op_orig_expr_found): Indicate that insn was disconnected from
20564 stream.
20565 (code_motion_process_successors): Do not call after_merge_succs
20566 callback if original expression was not found when traversing any of
20567 the branches.
20568 (code_motion_path_driver): Change return type. Update prototype.
20569 (move_op): Update comment. Add a new parameter (should_move). Update
20570 prototype. Set *should_move based on indication provided by
20571 move_op_orig_expr_found.
20572
20573 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
20574
20575 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
20576 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
20577 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
20578 * config/rs6000/rs6000.c (rs6000_override_options): Default
20579 avoid-indexed-addresses on for Power6, off for everything else.
20580 (avoiding_indexed_address_p): New function.
20581 (rs6000_legitimize_address): Use it.
20582 (rs6000_legitimate_address): Likewise.
20583 * config/rs6000/rs6000.md (movXX_updateX): Likewise
20584
20585 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
20586
20587 PR tree-optimization/38997
20588 * tree-loop-distribution.c (generate_memset_zero): Use
20589 POINTER_PLUS_EXPR for a pointer addition.
20590
20591 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
20592
20593 * config/s390/s390.md (bswap<mode>2): New pattern added.
20594
20595 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
20596
20597 * config/s390/s390.md (*tls_load_31): Added type attribute.
20598
20599 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
20600
20601 * config/s390/s390.md: Fix a few comments.
20602
20603 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
20604
20605 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
20606 (*tm<mode>_full): Fixed z10prop attribute.
20607 (*tst<mode>_extimm): Fixed z10prop attribute.
20608 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
20609 (*tstqiCCT_cconly): Fixed z10prop attribute.
20610 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
20611 (*movsi_larl): Fixed z10prop attribute.
20612 (*movsi_zarch): Fixed z10prop attribute.
20613 (*movsi_eas): Fixed z10prop attribute.
20614 (*movhi): Fixed z10prop attribute.
20615 (*movqi): Fixed z10prop attribute.
20616 (*movstrictqi): Fixed z10prop attribute.
20617 (*mov<mode>): Fixed z10prop attribute.
20618 (*movcc): Fixed z10prop attribute.
20619 (*sethighpartdi_64): Fixed z10prop attribute.
20620 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
20621 (*negdi2_sign_cc): Fixed z10prop attribute.
20622 (*negdi2_sign): Fixed z10prop attribute.
20623 (*absdi2_sign_cc): Fixed z10prop attribute.
20624 (*absdi2_sign): Fixed z10prop attribute.
20625 (*negabsdi2_sign_cc): Fixed z10prop attribute.
20626 (*negabsdi2_sign): Fixed z10prop attribute.
20627 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
20628 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
20629 (doloop_si64): Fixed z10prop attribute.
20630 (doloop_si31): Fixed z10prop attribute.
20631 (doloop_long): Fixed z10prop attribute.
20632 (indirect_jump): Fixed z10prop attribute.
20633 (nop): Fixed z10prop attribute.
20634 (main_base_64): Fixed z10prop attribute.
20635 (reload_base_64): Fixed z10prop attribute.
20636
20637 2009-01-28 Jakub Jelinek <jakub@redhat.com>
20638
20639 PR rtl-optimization/38740
20640 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
20641 if !optimize.
20642 * config/mips/mips.c (mips_reorg): Likewise.
20643
20644 2009-01-28 Richard Guenther <rguenther@suse.de>
20645
20646 PR tree-optimization/38926
20647 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
20648 with the correct value id to a value.
20649 (do_regular_insertion): Use the value number of edoubleprime
20650 for the value number of the expr.
20651
20652 Revert
20653 2008-08-21 Richard Guenther <rguenther@suse.de>
20654
20655 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
20656 a PHI ask VN if it is already available.
20657 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
20658 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
20659
20660 2009-01-28 Jakub Jelinek <jakub@redhat.com>
20661
20662 PR middle-end/38934
20663 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
20664 set to varying whenever max has TREE_OVERFLOW set, similarly
20665 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
20666
20667 2009-01-28 Richard Guenther <rguenther@suse.de>
20668
20669 PR middle-end/38908
20670 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
20671 uninitialized aggregate uses in call arguments.
20672
20673 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
20674
20675 PR tree-optimization/38984
20676 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
20677 the nothing_id variable if -fno-delete-null-pointer-checks.
20678
20679 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
20680
20681 PR target/38988
20682 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
20683 (set_got_offset_rex64): Ditto.
20684
20685 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
20686
20687 PR target/38941
20688 * doc/extend.texi: Improve local variable with asm reg.
20689
20690 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
20691
20692 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
20693 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
20694 was not supplied then set warn_packed_bitfield_compat to the
20695 default value of 1.
20696 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
20697 against 1.
20698
20699 2009-01-27 Richard Guenther <rguenther@suse.de>
20700
20701 PR tree-optimization/38503
20702 * cfgexpand.c (expand_gimple_basic_block): Ignore
20703 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
20704 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
20705 variables that cannot have TBAA applied.
20706 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
20707 statements.
20708
20709 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
20710
20711 PR middle-end/38969
20712 * calls.c (initialize_argument_information): Do not wrap complex
20713 arguments in SAVE_EXPR.
20714
20715 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
20716
20717 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
20718 (INSTALL_LIBGCC): Revert typo commit.
20719
20720 2009-01-26 Richard Guenther <rguenther@suse.de>
20721
20722 PR tree-optimization/38745
20723 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
20724 from special handling.
20725
20726 2009-01-26 Richard Guenther <rguenther@suse.de>
20727
20728 PR tree-optimization/38745
20729 * tree-ssa.c (execute_update_addresses_taken): Do not include
20730 variables that cannot possibly be a register in not_reg_needs.
20731 Do not clear TREE_ADDRESSABLE on vars that may not become
20732 registers.
20733 * tree-ssa.c (update_alias_info_1): Include those in the set
20734 of addressable vars.
20735
20736 2009-01-26 Richard Guenther <rguenther@suse.de>
20737
20738 PR middle-end/38851
20739 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
20740 * tree-ssa-dse.c: Include langhooks.h
20741 (execute_simple_dse): Remove stores with zero size.
20742
20743 2009-01-24 Jakub Jelinek <jakub@redhat.com>
20744
20745 PR c/38957
20746 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
20747 as PLUS_EXPR.
20748
20749 2009-01-24 Julian Brown <julian@codesourcery.com>
20750
20751 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
20752 config/arm/linux-atomic.c.
20753 * config/arm/linux-atomic.c: New.
20754
20755 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
20756
20757 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
20758 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
20759 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
20760
20761 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
20762
20763 PR c/38938
20764 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
20765 properly.
20766
20767 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
20768
20769 PR tree-optimization/38953
20770 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
20771 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
20772 (gloog): Split the exit of the scop when the scop exit is a loop exit.
20773 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
20774 changed the CFG.
20775
20776 2009-01-24 Paul Brook <paul@codesourcery.com>
20777
20778 * config/arm/neon.md (neon_type): Move to arm.md.
20779 (neon_mov<VSTRUCT>): Add neon_type attribute.
20780 * config/arm/arm.md (neon_type): Move to here.
20781 (conds): Add "unconditioal" and use as default for NEON insns.
20782
20783 2009-01-24 Ben Elliston <bje@au.ibm.com>
20784
20785 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
20786 void *' warning from -Wc++-compat.
20787 * Makefile.in (dominance.o-warn): Remove.
20788
20789 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
20790
20791 PR tree-optimization/38932
20792 * fold-const.c (fold_unary_ignore_overflow): New.
20793 * tree.h (fold_unary_ignore_overflow): Declare.
20794 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
20795 * tree-ssa-sccvn.c (visit_reference_op_load,
20796 simplify_unary_expression): Likewise.
20797
20798 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
20799
20800 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
20801 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
20802 regardless of their type.
20803 * c-common.c (handle_packed_attribute): Don't ignore packed on
20804 bitfields.
20805 * c.opt (Wpacked-bitfield-compat): New warning option.
20806 * stor-layout.c (place_field): Warn if offset of a field changed.
20807 * doc/extend.texi (packed): Mention the ABI change.
20808 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
20809 (Warning Options): Add it to the list.
20810
20811 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
20812
20813 * c-opts.c (c_common_post_options): Fix a typo in comments.
20814
20815 2009-01-22 Steve Ellcey <sje@cup.hp.com>
20816
20817 PR middle-end/38615
20818 * gimplify.c (gimplify_init_constructor): Fix promotion of const
20819 variables to static.
20820 * doc/invoke.texi (-fmerge-all-constants): Update description.
20821
20822 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
20823
20824 PR target/38931
20825 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
20826 (*movdi_1_rex64): Use type "mmx" for alternative 5.
20827
20828 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
20829
20830 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
20831 a word boundary.
20832 (LOCAL_ALIGNMENT): Similarly.
20833
20834 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
20835 Joseph Myers <joseph@codesourcery.com>
20836
20837 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
20838 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
20839 * config/arm/arm-tune.md: Regenerate.
20840 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
20841 -march=iwmmxt2.
20842
20843 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
20844
20845 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
20846 version number to five.
20847
20848 2009-01-22 Dodji Seketeli <dodji@redhat.com>
20849
20850 PR c++/38930
20851 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
20852 * c-common.c (set_underlying_type): Likewise.
20853 (is_typedef_decl ): Likewise
20854 * tree.h: Likewise
20855 (set_underlying_type): Likewise.
20856 (is_typedef_type): Likewise.
20857
20858 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
20859
20860 PR middle-end/38587
20861 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
20862 crossing setjmps.
20863
20864 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
20865
20866 PR bootstrap/37660
20867 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
20868 (LIBGCC_SPEC): Don't define.
20869 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
20870
20871 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
20872
20873 PR rtl-optimization/38879
20874 * alias.c (base_alias_check): Unaligned access via AND address can
20875 alias all surrounding object types except those with sizes equal
20876 or wider than the size of unaligned access.
20877
20878 2009-01-21 Dodji Seketeli <dodji@redhat.com>
20879
20880 PR c++/26693
20881 * c-decl.c (clone_underlying_type): Move this ...
20882 * c-common.c (set_underlying_type): ... here.
20883 Also, make sure the function properly sets TYPE_STUB_DECL() on
20884 the newly created typedef variant type.
20885 (is_typedef_decl ): New entry point.
20886 * tree.h: Added a new member member_types_needing_access_check to
20887 struct tree_decl_non_common.
20888 (set_underlying_type): New entry point.
20889 (is_typedef_type): Likewise.
20890
20891 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
20892
20893 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
20894 Check whether two instructions have memory references that
20895 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
20896 are helper functions for traversing.
20897 * alias.h (insn_alias_sets_confilict_p): New prototypes.
20898 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
20899 not to draw dependency edge for instructions with non-conflicting
20900 alias sets.
20901
20902 2009-01-20 Joseph Myers <joseph@codesourcery.com>
20903
20904 PR other/38758
20905 * longlong.h: Update copyright years. Use soft-fp license notice.
20906 Sync __clz_tab declaration with glibc.
20907
20908 2009-01-20 Steve Ellcey <sje@cup.hp.com>
20909
20910 PR target/30687
20911 * doc/extend.texi (syscall_linkage): New.
20912 (version_id): Modify.
20913
20914 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
20915 Richard Guenther <rguenther@suse.de>
20916
20917 PR tree-optimization/38747
20918 PR tree-optimization/38748
20919 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
20920 conversion if the base address is an indirect reference and the
20921 aliasing sets could cause issues.
20922
20923 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
20924
20925 * common.opt (fgraphite, fgraphite-identity): Add comment for
20926 explaining why these options are not documented.
20927
20928 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
20929
20930 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
20931 gimple_call_lhs is NULL.
20932
20933 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
20934
20935 PR target/38868
20936 * emit-rtl.c (adjust_address_1): Make sure memref is never
20937 overwritten.
20938
20939 2009-01-20 Ben Elliston <bje@au.ibm.com>
20940
20941 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
20942 const qualifier from arg parameter. Remove unnecessary cast to char *.
20943 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
20944 const qualifier from arg 2.
20945
20946 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
20947
20948 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
20949
20950 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
20951
20952 PR c/38869
20953 * rtl.h (reinit_regs): New prototype.
20954 * regclass.c: Include ira.h.
20955 (reinit_regs): New.
20956 * Makefile.in (regclass.o): Add ira.h.
20957 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
20958
20959 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
20960
20961 PR target/38736
20962 * c-common.c (handle_aligned_attribute): Use
20963 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
20964 default alignment value.
20965
20966 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
20967
20968 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
20969 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
20970
20971 * doc/extend.texi: Update __attribute__ ((aligned)). Document
20972 __BIGGEST_ALIGNMENT__.
20973
20974 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
20975
20976 2009-01-18 Richard Guenther <rguenther@suse.de>
20977
20978 PR tree-optimization/38819
20979 * tree-flow.h (operation_could_trap_helper_p): Declare.
20980 * tree-eh.c (operation_could_trap_helper_p): Export.
20981 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
20982 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
20983 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
20984 are about to insert a possibly trapping instruction and fail
20985 in this case.
20986
20987 2009-01-18 Andreas Schwab <schwab@suse.de>
20988
20989 * doc/install.texi (Configuration): Remove obsolete paragraph
20990 about use of --with-gnu-ld with --with-gnu-as.
20991
20992 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
20993
20994 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
20995 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
20996 Follow spelling conventions.
20997
20998 2009-01-18 Ben Elliston <bje@au.ibm.com>
20999
21000 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
21001 C++ warning about implicit conversion from void * to struct
21002 bitmap_head_def *.
21003 (bitmap_obstack_free): Likewise for bitmap_element *.
21004 * Makefile.in (bitmap.o-warn): Remove.
21005
21006 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
21007
21008 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
21009
21010 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
21011 Tobias Grosser <tobi.grosser@amd.com>
21012
21013 * graphite.c (graphite_trans_scop_block): Do not block single
21014 nested loops.
21015
21016 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
21017
21018 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
21019 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
21020 test with assertion.
21021
21022 2009-01-16 Richard Guenther <rguenther@suse.de>
21023
21024 PR tree-optimization/38835
21025 PR middle-end/36227
21026 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
21027 and INT + PTR -> (INT)(PTR p+ INT) folding.
21028 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
21029
21030 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
21031
21032 PR target/38554
21033 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
21034 the subreg from a lowpart subreg if it is also casting the value.
21035
21036 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
21037 Tobias Grosser <tobi.grosser@amd.com>
21038
21039 * graphite.c (compare_prefix_loops): New.
21040 (build_scop_canonical_schedules): Rewritten.
21041 (graphite_transform_loops): Move build_scop_canonical_schedules
21042 after build_scop_iteration_domain.
21043
21044 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
21045 Tobias Grosser <tobi.grosser@amd.com>
21046
21047 * graphite.c (add_conditions_to_domain): Add the loops to
21048 the dimension of the iteration domain. Do copy the domain
21049 only when it exists.
21050 (build_scop_conditions_1): Do not call add_conditions_to_domain.
21051 (add_conditions_to_constraints): New.
21052 (can_generate_code_stmt, can_generate_code): Removed.
21053 (gloog): Do not call can_generate_code.
21054 (graphite_transform_loops): Call add_conditions_to_constraints
21055 after building the iteration domain.
21056
21057 2009-01-16 Jakub Jelinek <jakub@redhat.com>
21058
21059 PR tree-optimization/38789
21060 * tree-ssa-threadedge.c
21061 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
21062 __builtin_constant_p.
21063
21064 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
21065
21066 * dce.c (delete_unmarked_insns): Reversed the order that insns are
21067 examined before deleting them.
21068
21069 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
21070
21071 * function.c (aggregate_value_p): Correctly extract the function
21072 type from CALL_EXPR_FN lookup.
21073
21074 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
21075
21076 * config/picochip/picochip.c (picochip_override_options): Revert
21077 CFI asm flag disable commited previously.
21078
21079 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
21080 Tobias Grosser <tobi.grosser@amd.com>
21081 Jan Sjodin <jan.sjodin@amd.com>
21082
21083 * graphite.c (scan_tree_for_params): On substractions negate
21084 all the coefficients of the term.
21085 (clast_to_gcc_expression_red): New. Handle reduction expressions
21086 of more than two operands.
21087 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
21088 (get_vdef_before_scop): Handle also the case of default definitions.
21089
21090 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
21091
21092 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
21093 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
21094 Also use them when walking CALL_INSN_FUNCTION_USAGE.
21095
21096 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
21097 Joey Ye <joey.ye@intel.com>
21098
21099 PR middle-end/37843
21100 * cfgexpand.c (expand_stack_alignment): Don't update stack
21101 boundary nor check incoming stack boundary here.
21102 (gimple_expand_cfg): Update stack boundary and check incoming
21103 stack boundary here.
21104
21105 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
21106
21107 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
21108
21109 2009-01-14 Jakub Jelinek <jakub@redhat.com>
21110
21111 PR rtl-optimization/38245
21112 * calls.c (expand_call): Add stack arguments to
21113 CALL_INSN_FUNCTION_USAGE even for pure calls (when
21114 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
21115 in regs and partially in memory or BLKmode arguments.
21116 (emit_library_call_value_1): Add stack arguments to
21117 CALL_INSN_FUNCTION_USAGE even for pure calls (when
21118 ACCUMULATE_OUTGOING_ARGS).
21119 * dce.c: Include tm_p.h.
21120 (find_call_stack_args): New function.
21121 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
21122 argument.
21123 (mark_insn): Call find_call_stack_args for CALL_Ps.
21124 (prescan_insns_for_dce): Walk insns backwards in bb rather than
21125 forwards. Allocate and free arg_stores bitmap if needed, pass it
21126 down to deletable_insn_p, don't mark stores set in arg_stores
21127 bitmap, clear the bitmap at the beginning of each bb.
21128 * Makefile.in (dce.o): Depend on $(TM_P_H).
21129
21130 2009-01-14 Michael Meissner <gnu@the-meissners.org>
21131
21132 PR target/22599
21133 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
21134 to make sure the insn is a conditional test (bug 22599). Reformat a
21135 few long lines.
21136
21137 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
21138
21139 PR middle-end/38431
21140 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
21141 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
21142 (gloog): Do not call cleanup_tree_cfg.
21143 (graphite_transform_loops): Call cleanup_tree_cfg after all
21144 scops have been code generated.
21145
21146 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
21147 * doc/gty.texi (Invoking the garbage collector): Added new node
21148 and section documenting ggc_collect.
21149
21150 2009-01-14 Richard Guenther <rguenther@suse.de>
21151
21152 PR tree-optimization/38826
21153 PR middle-end/38477
21154 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
21155 initialization notes only if we actually emitted a warning.
21156 (intra_create_variable_infos): Add constraints for a result decl
21157 that is passed by hidden reference.
21158 (build_pred_graph): Mark all related variables non-direct on
21159 address-taking.
21160
21161 2009-01-14 Nick Clifton <nickc@redhat.com>
21162
21163 * ira-conflicts.c: Include addresses.h for the definition of
21164 base_reg_class.
21165 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
21166 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
21167
21168 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
21169
21170 PR target/38811
21171 * Makefile.in (ira-lives.o): Add except.h.
21172
21173 * ira-lives.c: Include except.h.
21174 (process_bb_node_lives): Process can_throw_internal.
21175
21176 2009-01-13 Jakub Jelinek <jakub@redhat.com>
21177
21178 PR rtl-optimization/38774
21179 * combine.c (simplify_set): When undoing cc_use change, don't do
21180 PUT_CODE on the newly created comparison, but instead put back the
21181 old comparison.
21182
21183 2009-01-13 Joseph Myers <joseph@codesourcery.com>
21184
21185 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
21186 values. Remove duplicate arm8 entry.
21187
21188 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
21189
21190 PR tree-optimization/38786
21191 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
21192 the SSA_NAME case of expand_scalar_variables_expr.
21193 Set the type of an expression to the type of its assign statement.
21194 (expand_scalar_variables_expr): Also gather the scalar computation
21195 used to index the memory access. Do not pass loop_p.
21196 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
21197 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
21198 the gimple_stmt_iterator where it inserts new code.
21199 Do not pass loop_p.
21200 (copy_bb_and_scalar_dependences): Do not pass loop_p.
21201 (translate_clast): Update call to copy_bb_and_scalar_dependences.
21202
21203 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
21204
21205 * graphite.h (debug_value): Removed.
21206 * graphite.c (debug_value): Removed.
21207
21208 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
21209
21210 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
21211 ldrd/strd with two 32-bit instructions.
21212
21213 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
21214
21215 * config/arm/arm.c (struct processors): Pass for speed down into
21216 cost helper functions.
21217 (const_ok_for_op): Handle COMPARE and inequality nodes.
21218 (arm_rtx_costs_1): Rewrite.
21219 (arm_size_rtx_costs): Update prototype.
21220 (arm_rtx_costs): Pass speed down to helper functions.
21221 (arm_slowmul_rtx_costs): Rework cost calculations.
21222 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
21223 (arm_9e_rtx_costs): Likewise.
21224
21225 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
21226
21227 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
21228 relocations of local symbols wider than UNITS_PER_WORD are not valid.
21229 (alpha_legitimize_address): Do not split local symbols wider than
21230 UNITS_PER_WORD into HIGH/LO_SUM parts.
21231
21232 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
21233
21234 PR bootstrap/38580
21235 * gcc.c (process_command): Replace call to execvp with calls
21236 to pex_one and exit.
21237
21238 2009-01-03 Anatoly Sokolov <aesok@post.ru>
21239
21240 PR target/29141
21241 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
21242 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
21243 variant for devices with 3-byte PC.
21244 (__tablejump_elpm__): New.
21245
21246 2009-01-12 Jakub Jelinek <jakub@redhat.com>
21247
21248 PR c/32041
21249 * c-parser.c (c_parser_postfix_expression): Allow `->' in
21250 offsetof member-designator, handle it as `[0].'.
21251
21252 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21253
21254 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
21255 function when not using named sections on targets with named sections
21256 if branch distance is less than 262132.
21257
21258 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
21259
21260 * combine.c (combine_instructions): Recompute
21261 optimize_this_for_speed_p for each BB in the main combine loop.
21262
21263 2009-01-12 Tomas Bily <tbily@suse.cz>
21264
21265 PR middlend/38385
21266 * tree-loop-distribution.c (prop_phis): New function.
21267 (generate_builtin): Call prop_phis.
21268 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
21269
21270 2009-01-12 Jakub Jelinek <jakub@redhat.com>
21271
21272 PR tree-optimization/38807
21273 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
21274 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
21275
21276 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
21277
21278 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
21279 subreg of op0 to the original op0.
21280
21281 2009-01-11 Laurent GUERBY <laurent@guerby.net>
21282
21283 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
21284
21285 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
21286
21287 PR debug/7055
21288 * mips-tfile.c (parse_def): Fix parsing of def strings
21289 starting with digits.
21290
21291 2009-01-10 Jakub Jelinek <jakub@redhat.com>
21292
21293 PR target/38695
21294 * config/arm/arm.c (arm_is_long_call_p): Don't call
21295 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
21296
21297 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
21298
21299 * regrename.c (regrename_optimize): Fix dumping.
21300 (find_oldest_value_reg): Preserve REG_POINTER.
21301 (copy_hardreg_forward_1): Likewise.
21302
21303 2009-01-09 Diego Novillo <dnovillo@google.com>
21304
21305 * gimple.h (struct gimple_statement_base) <uid>: Document
21306 the restrictions on its use.
21307 (gimple_uid): Tidy.
21308 (gimple_set_uid): Tidy.
21309
21310 2009-01-09 Jakub Jelinek <jakub@redhat.com>
21311
21312 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
21313 zero guard even if align_bytes != 0 and count is smaller than
21314 size_needed.
21315
21316 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
21317
21318 PR rtl-optimization/38495
21319 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
21320 (add_range_and_copies_from_move_list): Print all added ranges.
21321 Add ranges to memory optimized destination.
21322
21323 2009-01-09 Jakub Jelinek <jakub@redhat.com>
21324
21325 PR target/38686
21326 PR target/38708
21327 * config/i386/i386.c (override_options): Reject
21328 -mstringop-strategy=rep_8byte with -m32.
21329 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
21330 to 1. Do count comparison against epilogue_size_needed at compile
21331 time even when count_exp was constant forced into register. For
21332 size_needed don't jump to epilogue, instead just avoid aligning
21333 and invoke the body algorithm. If need_zero_guard, add zero guard
21334 even if count is non-zero, but smaller than size_needed + number of
21335 bytes that could be stored for alignment.
21336 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
21337 to 1. If need_zero_guard, add zero guard even if count is non-zero,
21338 but smaller than size_needed + number of bytes that could be stored
21339 for alignment. Compare size_needed with epilogue_size_needed instead
21340 of desired_align - align, don't adjust size_needed, pass
21341 epilogue_size_needed to the epilogue expanders.
21342
21343 PR c/35742
21344 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
21345
21346 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21347
21348 * pa.c (last_address): Change to unsigned.
21349 (update_total_code_bytes): Change argument to unsigned. Don't
21350 check if insn addresses are set.
21351 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
21352 addresses are not set.
21353 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
21354
21355 2009-01-09 Nick Clifton <nickc@redhat.com>
21356
21357 * config/sh/symbian.c: Replace uses of DECL_INLINE with
21358 DECL_DECLARED_INLINE_P.
21359
21360 2009-01-09 Jakub Jelinek <jakub@redhat.com>
21361
21362 PR middle-end/38347
21363 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
21364 GET_MODE (op0) in operand_subword_force calls.
21365
21366 PR middle-end/38771
21367 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
21368 fold_convert arg0 operands to TREE_TYPE (op0) first.
21369
21370 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
21371
21372 * params.def (ira-max-conflict-table-size): Decrease default value
21373 to 1000.
21374
21375 2009-01-08 Jakub Jelinek <jakub@redhat.com>
21376
21377 PR tree-optimization/37031
21378 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
21379 on parameter_set.
21380 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
21381 allocate it using gc instead of heap, use VEC_quick_push instead of
21382 VEC_safe_push.
21383 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
21384 instead of heap, use VEC_quick_push instead of VEC_safe_push.
21385 * tree-data-ref.h (struct access_matrix): Change matrix to gc
21386 allocated vector from heap allocated.
21387 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
21388 * tree-loop-linear.c (linear_transform_loops): Allocate nest
21389 vector only after perfect_loop_nest_depth call.
21390
21391 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
21392 Jan Sjodin <jan.sjodin@amd.com>
21393
21394 PR tree-optimization/38559
21395 * graphite.c (debug_value, copy_constraint,
21396 swap_constraint_variables, scale_constraint_variable, ): New.
21397 (get_lower_bound, get_upper_bound): Removed.
21398 (graphite_trans_bb_strip_mine): Clean up this code that works
21399 only for constant number of iterations. Fully copy upper and
21400 lower bound constraints, not only the constant part of them.
21401 * graphite.h (debug_value): Declared.
21402
21403 2009-01-08 Ira Rosen <irar@il.ibm.com>
21404
21405 PR tree-optimization/37194
21406 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
21407 Don't add the cost of cost model guard in prologue to scalar
21408 outside cost in case of known number of iterations.
21409
21410 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
21411 Alan Modra <amodra@bigpond.net.au>
21412
21413 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
21414 non-word-aligned REG+CONST addressing.
21415
21416 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
21417
21418 PR target/38706
21419 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
21420 free_after_compilation when outputting a thunk.
21421 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
21422 Do not call free_after_compilation here.
21423
21424 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
21425
21426 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
21427 (ix86_valid_target_attribute_inner_p): Ditto.
21428
21429 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
21430
21431 PR tree-optimization/38492
21432 PR tree-optimization/38498
21433 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
21434 * tree-chrec.h (scev_is_linear_expression): Declared.
21435 * graphite.c (graphite_cannot_represent_loop_niter): New.
21436 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
21437 (graphite_loop_normal_form): Use gcc_assert.
21438 (scan_tree_for_params): Use CASE_CONVERT.
21439 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
21440 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
21441 Use gcc_assert. Discard scops that contain unhandled cases.
21442 (build_scop_conditions): Return a boolean status for unhandled cases.
21443 (strip_mine_profitable_p): Print the loop number, not its depth.
21444 (is_interchange_valid): Pass the depth of the loop nest, don't
21445 recompute it wrongly.
21446 (graphite_trans_bb_block): Same.
21447 (graphite_trans_bb_block): Print tentative of loop blocking.
21448 (graphite_trans_scop_block): Do not print that the loop has been
21449 blocked.
21450 (graphite_transform_loops): Do not handle scops that contain condition
21451 scalar phi nodes.
21452
21453 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
21454
21455 AVX Programming Reference (December, 2008)
21456 * config/i386/avxintrin.h (_mm256_stream_si256): New.
21457 (_mm256_stream_pd): Likewise.
21458 (_mm256_stream_ps): Likewise.
21459
21460 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
21461 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
21462 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
21463 (bdesc_special_args): Add __builtin_ia32_movntdq256,
21464 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
21465 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
21466 (ix86_expand_special_args_builtin): Likewise.
21467
21468 * config/i386/sse.md (AVXMODEDI): New.
21469 (avx_movnt<mode>): Likewise.
21470 (avx_movnt<mode>): Likewise.
21471 (<sse>_movnt<mode>): Remove AVX support.
21472 (sse2_movntv2di): Likewise.
21473
21474 2009-01-07 Richard Guenther <rguenther@suse.de>
21475
21476 PR middle-end/38751
21477 * fold-const.c (extract_muldiv): Remove obsolete comment.
21478 (fold_plusminus_mult_expr): Undo MINUS_EXPR
21479 to PLUS_EXPR canonicalization for the canonicalization.
21480
21481 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
21482
21483 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
21484 hosted cross-compilers generating less efficient code.
21485
21486 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
21487
21488 * function.h (rtl_data): Add a dbr_scheduled_p field.
21489 * reorg.c (dbr_schedule): Set it.
21490 (gate_handle_delay_slots): Check it.
21491 * config/mips/mips.c (mips_base_delayed_branch): Delete.
21492 (mips_reorg): Check flag_delayed_branch instead of
21493 mips_base_delayed_branch.
21494 (mips_override_options): Don't set mips_base_delayed_branch
21495 or flag_delayed_branch.
21496
21497 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
21498
21499 PR rtl-optimization/38426.
21500 * ira.c (ira): Set current_function_is_leaf earlier.
21501
21502 2009-01-06 Jakub Jelinek <jakub@redhat.com>
21503
21504 PR rtl-optimization/38722
21505 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
21506 too early, only set a flag and modify after last possible
21507 undo_all point.
21508
21509 2009-01-06 Janis Johnson <janis187@us.ibm.com>
21510
21511 PR c/34252
21512 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
21513 * real.c (decimal_single_format): Correct values of emin and emax.
21514 (decimal_double_format): Ditto.
21515 (decimal_quad_format): Ditto.
21516 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
21517 computation of DECnn_MIN and DECnn_MAX for corrected values of
21518 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
21519 __DECnn_MIN__, and adjust its computation for the corrected value
21520 of emin.
21521
21522 2009-01-06 Jan Hubicka <jh@suse.cz>
21523
21524 PR target/38744
21525 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
21526
21527 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
21528
21529 * doc/contrib.texi (Contributors): Slightly adjust the end note.
21530 Add Robert Clark to the list of testers.
21531
21532 2009-01-06 Jan Hubicka <jh@suse.cz>
21533 Kai Tietz <kai.tietz@onevision.com>
21534
21535 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
21536 * config/i386/i386.c (ix86_expand_call): Add clobbers.
21537
21538 2009-01-06 Jan Hubicka <jh@suse.cz>
21539 Kai Tietz <kai.tietz@onevision.com>
21540
21541 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
21542 for w64 ABI.
21543 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
21544 (ix86_nsaved_regs): Count only general purpose regs.
21545 (ix86_nsaved_sseregs): New.
21546 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
21547 to 16 for w64; compute padding and size of sse reg save area.
21548 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
21549 general purpose regs.
21550 (ix86_emit_save_sse_regs_using_mov): New.
21551 (ix86_expand_prologue): Save SSE regs if needed.
21552 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
21553 (ix86_emit_restore_sse_regs_using_mov): New.
21554 (ix86_expand_epilogue): Save SSE regs if needed.
21555
21556 2009-01-06 Jan Hubicka <jh@suse.cz>
21557 Kai Tietz <kai.tietz@onevision.com>
21558
21559 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
21560 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
21561 functions when accumulate outgoing args is off.
21562
21563 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
21564
21565 PR bootstrap/38742
21566 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
21567 before using pseudos_have_intersected_live_ranges_p.
21568
21569 * ira-int.h (ira_assert): Always define.
21570
21571 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
21572
21573 AVX Programming Reference (December, 2008)
21574 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
21575 (_mm256_permute2_pd): Likewise.
21576 (_mm_permute2_ps): Likewise.
21577 (_mm256_permute2_ps): Likewise.
21578 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
21579 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
21580
21581 * config/i386/i386.c (ix86_builtins): Remove
21582 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
21583 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
21584 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
21585 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
21586 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
21587 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
21588 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
21589 __builtin_ia32_vpermil2ps256.
21590 (ix86_init_mmx_sse_builtins): Updated.
21591 (ix86_expand_args_builtin): Likewise.
21592
21593 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21594
21595 * pa.c (output_call): Relocate non-jump insns in the delay slot of
21596 long absolute calls when generating PA 2.0 code.
21597
21598 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
21599
21600 PR rtl-optimization/38583
21601 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
21602
21603 * params.def (ira-max-conflict-table-size): New.
21604
21605 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
21606
21607 * ira.h (ira_conflicts_p): New external definition.
21608
21609 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
21610 table. Report this. Return result of building.
21611 (ira_build_conflicts): Use ira_conflicts_p. Check result of
21612 building conflict table.
21613
21614 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
21615 (ira_color): Use ira_conflicts_p.
21616
21617 * global.c: Include ira.h.
21618 (pseudo_for_reload_consideration_p, build_insn_chain): Use
21619 ira_conflicts_p.
21620
21621 * Makefile.in (global.o): Add ira.h.
21622
21623 * ira-build.c (mark_all_loops_for_removal,
21624 propagate_some_info_from_allocno): New.
21625 (remove_unnecessary_allocnos): Call
21626 propagate_some_info_from_allocno.
21627 (remove_low_level_allocnos): New.
21628 (remove_unnecessary_regions): Add parameter. Call
21629 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
21630 parameter to remove_unnecessary_regions.
21631 (ira_build): Remove all regions but root if the conflict table was
21632 not built. Update conflict hard regs for allocnos crossing calls.
21633
21634 * ira.c (ira_conflicts_p): New global.
21635 (ira): Define and use ira_conflicts_p.
21636
21637 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
21638 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
21639 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
21640
21641 2009-01-06 Ben Elliston <bje@au.ibm.com>
21642
21643 * gengtype-lex.l (YY_NO_INPUT): Define.
21644
21645 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
21646
21647 PR c/34911
21648 * c-common.c (handle_vector_size_attribute): Also reject
21649 BOOLEAN_TYPE types.
21650
21651 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
21652
21653 PR tree-optimization/38492
21654 * graphite.c (rename_map_elt, debug_rename_elt,
21655 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
21656 rename_map_elt_info, eq_rename_map_elts,
21657 get_new_name_from_old_name, bb_in_sese_p): Moved around.
21658 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
21659 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
21660 (sese_build_livein_liveouts): New.
21661 (new_sese, free_sese): New.
21662 (new_scop): Call new_sese.
21663 (free_scop): Call free_sese.
21664 (rename_variables_from_edge, rename_phis_end_scop): Removed.
21665 (register_old_new_names): Renamed register_old_and_new_names.
21666 (register_scop_liveout_renames, add_loop_exit_phis,
21667 insert_loop_close_phis, struct igp,
21668 default_liveout_before_guard, add_guard_exit_phis,
21669 insert_guard_phis, copy_renames): New.
21670 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
21671 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
21672 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
21673 (scop_adjust_phis_for_liveouts): New.
21674 (gloog): Call scop_adjust_phis_for_liveouts.
21675
21676 * graphite.h (struct sese): Documented. Added fields liveout,
21677 num_ver and livein.
21678 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
21679 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
21680 (struct scop): Added field liveout_renames.
21681 (SCOP_LIVEOUT_RENAMES): New.
21682
21683 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
21684
21685 PR tree-optimization/38510
21686 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
21687 (translate_clast): Call recompute_all_dominators before
21688 graphite_verify.
21689 (gloog): Call recompute_all_dominators before graphite_verify.
21690
21691 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
21692 Jan Sjodin <jan.sjodin@amd.com>
21693
21694 PR tree-optimization/38500
21695 * graphite.c (create_sese_edges): Call fix_loop_structure after
21696 splitting blocks.
21697
21698 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
21699
21700 * config.gcc: Add m32r*-*-rtems*.
21701 * config/m32r/rtems.h: New file.
21702
21703 2009-01-05 Ben Elliston <bje@au.ibm.com>
21704
21705 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
21706 (.po.pox): Likewise.
21707 (po/gcc.pot): Likewise.
21708
21709 2009-01-04 David S. Miller <davem@davemloft.net>
21710
21711 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
21712 (STARTING_FRAME_OFFSET): Always set to zero.
21713
21714 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
21715
21716 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
21717 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
21718 fixed-point types, and vectors of the same.
21719
21720 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
21721
21722 * config/mips/sync.md (*mb_barrier): Rename to...
21723 (*memory_barrier): ...this.
21724
21725 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
21726
21727 * doc/extend.texi (Function Attributes): Move @cindex after @item
21728 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
21729 and put in alphabetical order. Fix 'target' name and put in order.
21730 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
21731 typos.
21732
21733 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
21734
21735 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
21736 (memory_barrier): Expand as unspec instead of unspec_volatile.
21737 Remove mem:BLK from insn operands. Use Pmode scratch register.
21738 (*memory_barrier): Define as unspec instead of unspec_volatile.
21739 Use (match_dup 0) as input operand.
21740
21741 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
21742 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
21743 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
21744 scratch register. Remove operand 1.
21745 (*stbar): Define as unspec instead of unspec_volatile.
21746 Use (match_dup 0) as input operand, remove (const_int 8).
21747 (*membar): Define as unspec instead of unspec_volatile.
21748 Use (match_dup 0) as input operand, remove input operand 2.
21749
21750 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
21751 (memory_barrier): Expand as unspec instead of unspec_volatile.
21752 Remove mem:BLK from insn operands. Use Pmode scratch register.
21753 (*memory_barrier): Define as unspec instead of unspec_volatile.
21754 Use (match_dup 0) as input operand.
21755
21756 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
21757 Remove mem:BLK from insn operands. Use Pmode scratch register.
21758 Set volatile flag on operand 0.
21759 (*memory_barrier): New insn pattern.
21760
21761 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
21762 insn operands.
21763 (*memory_barrier): Use (match_dup 0) as input operand.
21764
21765 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
21766 Remove mem:BLK from insn operands. Use Pmode scratch register.
21767 Set volatile flag on operand 0.
21768 (*mb_internal): New insn pattern.
21769
21770 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
21771
21772 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
21773
21774 PR middle-end/38586
21775 * function.c (struct temp_slot): Move to the section of the file
21776 that deals with temp slots. Remove field 'address'.
21777 (temp_slot_address_table): New hash table of address -> temp slot.
21778 (struct temp_slot_address_entry): New struct, items for the table.
21779 (temp_slot_address_compute_hash, temp_slot_address_hash,
21780 temp_slot_address_eq, insert_temp_slot_address): Support functions
21781 for the new table.
21782 (find_temp_slot_from_address): Rewrite to use the new hash table.
21783 (remove_unused_temp_slot_addresses): Remove addresses of temp
21784 slots that have been made available.
21785 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
21786 worker function for remove_unused_temp_slot_addresses.
21787 (assign_stack_temp_for_type): Don't clear the temp slot address list.
21788 Add the temp slot address to the address -> temp slot map.
21789 (update_temp_slot_address): Update via insert_temp_slot_address.
21790 (free_temp_slots): Call remove_unused_temp_slot_addresses.
21791 (pop_temp_slots): Likewise.
21792 (init_temp_slots): Allocate the address -> temp slot map, or empty
21793 the map if it is already allocated.
21794 (prepare_function_start): Initialize temp slot processing.
21795
21796 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
21797
21798 PR middle-end/38584
21799 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
21800 Calculate the size of all stack vars assuming no packing of stack
21801 vars will happen, replacing a quadratic algorithm with a linear one.
21802
21803 2009-01-03 Jakub Jelinek <jakub@redhat.com>
21804
21805 PR target/38707
21806 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
21807 can't be used.
21808
21809 2009-01-03 Diego Novillo <dnovillo@google.com>
21810
21811 * doc/contrib.texi: Update contributions.
21812
21813 2009-01-03 Jakub Jelinek <jakub@redhat.com>
21814
21815 PR c++/38705
21816 * builtins.c (fold_builtin_memory_op): Give up if either operand
21817 is volatile. Set srctype or desttype to non-qualified version
21818 of the other type.
21819
21820 PR c/38700
21821 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
21822 and FUNCTION_DECLs.
21823
21824 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
21825
21826 PR rtl-optimization/35805
21827 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
21828 problem if fast dce is able to remove any instructions.
21829 * dce.c (dce_process_block): Fix dump message.
21830
21831 2009-01-02 Mark Mitchell <mark@codesourcery.com>
21832
21833 PR 33649
21834 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
21835
21836 2009-01-02 Jakub Jelinek <jakub@redhat.com>
21837
21838 PR middle-end/38690
21839 * tree-flow.h (op_code_prio, op_prio): New prototypes.
21840 * tree-pretty-print.c (op_code_prio): New function.
21841 (op_prio): No longer static. Use op_code_prio.
21842 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
21843 Use op_prio and op_code_prio to determine if () should be
21844 printed around operand(s) or not.
21845
21846 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
21847 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
21848 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
21849 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
21850 pp_character instead of pp_string for single letter printing.
21851
21852 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
21853
21854 * doc/extend.texi: Fix '#pragma GCC option' typo.
21855
21856 2009-01-02 Richard Guenther <rguenther@suse.de>
21857
21858 * doc/install.texi (--enable-checking): Mention different
21859 default for stage1.
21860 (--enable-stage1-checking): Document.
21861
21862 2009-01-01 Andrew Pinski <pinskia@gmail.com>
21863
21864 PR middle-end/30142
21865 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
21866 case to be an error.
21867
21868 2009-01-02 Ben Elliston <bje@au.ibm.com>
21869
21870 * config/fp-bit.h (pack_d): Constify argument.
21871 * config/fp-bit.c (makenan): Constify return type. Remove casts.
21872 (isnan): Constify argument.
21873 (isinf): Likewise.
21874 (iszero): Likewise.
21875 (pack_d): Likewise.
21876 (_fpadd_parts): Constify return type.
21877 (_fpmul_parts): Likewise.
21878 (_fpdiv_parts): Likewise.
21879
21880 2009-01-01 Jakub Jelinek <jakub@redhat.com>
21881
21882 PR c/36489
21883 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
21884 warn about overwriting initializer with side-effects or
21885 -Woverride-init if !IMPLICIT.
21886 (output_init_element): Likewise. Pass IMPLICIT down to
21887 add_pending_init.
21888 (process_init_element): Add IMPLICIT argument. Pass it down
21889 to output_init_element.
21890 (push_init_element, pop_init_level, set_designator): Adjust
21891 process_init_element callers.
21892 (set_nonincremental_init, set_nonincremental_init_from_string):
21893 Adjust add_pending_init callers.
21894 (output_pending_init_elements): Adjust output_init_element callers.
21895 * c-tree.h (process_init_element): Adjust prototype.
21896 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
21897 process_init_element callers.
21898
21899 \f
21900 Copyright (C) 2009 Free Software Foundation, Inc.
21901
21902 Copying and distribution of this file, with or without modification,
21903 are permitted in any medium without royalty provided the copyright
21904 notice and this notice are preserved.